From c17af88cc7535813df8a6885d6495cc69613a8a5 Mon Sep 17 00:00:00 2001 From: Mikhail Shilkov Date: Mon, 7 Sep 2020 09:07:48 +0200 Subject: [PATCH] Update to Open API specs 2020-09-07 --- azure-rest-api-specs | 2 +- .../V20200804Preview/GetHealthAlert.cs | 117 + .../V20200804Preview/HealthAlert.cs | 198 ++ .../Inputs/HealthAlertActionArgs.cs | 40 + .../Inputs/HealthAlertCriteriaArgs.cs | 34 + .../Inputs/HealthStateArgs.cs | 34 + .../Inputs/VmGuestHealthAlertCriterionArgs.cs | 46 + .../HealthAlertActionResponseResult.cs | 35 + .../HealthAlertCriteriaResponseResult.cs | 27 + .../Outputs/HealthStateResponseResult.cs | 35 + ...GuestHealthAlertCriterionResponseResult.cs | 42 + .../V20200804Preview/README.md | 1 + .../V20200701Preview/GetPolicyExemption.cs | 117 + .../Outputs/SystemDataResponseResult.cs | 63 + .../V20200701Preview/PolicyExemption.cs | 192 ++ .../Authorization/V20200701Preview/README.md | 1 + sdk/dotnet/Devices/Latest/DpsCertificate.cs | 1 + ...IotDpsResourcePrivateEndpointConnection.cs | 74 + .../Inputs/IotDpsPropertiesDescriptionArgs.cs | 18 + .../Inputs/IotHubDefinitionDescriptionArgs.cs | 2 +- sdk/dotnet/Devices/Latest/IotDpsResource.cs | 1 + ...IotDpsResourcePrivateEndpointConnection.cs | 112 + ...tDpsPropertiesDescriptionResponseResult.cs | 14 + ...tHubDefinitionDescriptionResponseResult.cs | 2 +- .../V20170821Preview/DpsCertificate.cs | 1 + .../V20170821Preview/IotDpsResource.cs | 1 + .../Devices/V20171115/DpsCertificate.cs | 1 + .../Devices/V20171115/IotDpsResource.cs | 1 + .../Devices/V20180122/DpsCertificate.cs | 1 + .../Devices/V20180122/IotDpsResource.cs | 1 + .../Devices/V20200101/DpsCertificate.cs | 1 + .../Devices/V20200101/IotDpsResource.cs | 1 + .../Devices/V20200301/DpsCertificate.cs | 122 + .../Devices/V20200301/GetDpsCertificate.cs | 81 + .../Devices/V20200301/GetIotDpsResource.cs | 96 + ...IotDpsResourcePrivateEndpointConnection.cs | 74 + .../Inputs/IotDpsPropertiesDescriptionArgs.cs | 94 + .../V20200301/Inputs/IotDpsSkuInfoArgs.cs | 34 + .../Inputs/IotHubDefinitionDescriptionArgs.cs | 46 + ...rizationRuleAccessRightsDescriptionArgs.cs | 46 + .../Devices/V20200301/IotDpsResource.cs | 164 + ...IotDpsResourcePrivateEndpointConnection.cs | 112 + .../V20200301/ListIotDpsResourceKeys.cs | 61 + .../ListIotDpsResourceKeysForKeyName.cs | 81 + .../CertificatePropertiesResponseResult.cs | 9 +- ...tDpsPropertiesDescriptionResponseResult.cs | 98 + .../Outputs/IotDpsSkuInfoResponseResult.cs | 42 + ...tHubDefinitionDescriptionResponseResult.cs | 56 + ...leAccessRightsDescriptionResponseResult.cs | 49 + .../Inputs/DynamicMetricCriteriaArgs.cs | 6 + .../Latest/Inputs/MetricCriteriaArgs.cs | 6 + .../DynamicMetricCriteriaResponseResult.cs | 7 + .../Outputs/MetricCriteriaResponseResult.cs | 7 + .../Inputs/DynamicMetricCriteriaArgs.cs | 6 + .../V20180301/Inputs/MetricCriteriaArgs.cs | 6 + .../DynamicMetricCriteriaResponseResult.cs | 7 + .../Outputs/MetricCriteriaResponseResult.cs | 7 + .../Latest/GetPrivateEndpointConnection.cs | 32 +- ...PrivateEndpointConnectionResponseResult.cs | 34 +- .../Latest/PrivateEndpointConnection.cs | 58 +- .../V20200601/GetPrivateEndpointConnection.cs | 32 +- ...PrivateEndpointConnectionResponseResult.cs | 34 +- .../V20200601/PrivateEndpointConnection.cs | 58 +- .../v20200804preview/getHealthAlert.go | 48 + .../v20200804preview/healthAlert.go | 179 ++ .../v20200804preview/pulumiTypes.go | 970 ++++++ .../v20200701preview/getPolicyExemption.go | 48 + .../v20200701preview/policyExemption.go | 173 ++ .../v20200701preview/pulumiTypes.go | 245 ++ .../azurerm/devices/latest/dpsCertificate.go | 3 + ...IotDpsResourcePrivateEndpointConnection.go | 36 + .../azurerm/devices/latest/iotDpsResource.go | 3 + ...iotDpsResourcePrivateEndpointConnection.go | 117 + sdk/go/azurerm/devices/latest/pulumiTypes.go | 92 +- .../v20170821preview/dpsCertificate.go | 3 + .../v20170821preview/iotDpsResource.go | 3 + .../devices/v20171115/dpsCertificate.go | 3 + .../devices/v20171115/iotDpsResource.go | 3 + .../devices/v20180122/dpsCertificate.go | 3 + .../devices/v20180122/iotDpsResource.go | 3 + .../devices/v20200101/dpsCertificate.go | 3 + .../devices/v20200101/iotDpsResource.go | 3 + .../devices/v20200301/dpsCertificate.go | 132 + .../devices/v20200301/getDpsCertificate.go | 38 + .../devices/v20200301/getIotDpsResource.go | 42 + ...IotDpsResourcePrivateEndpointConnection.go | 36 + .../devices/v20200301/iotDpsResource.go | 168 ++ ...iotDpsResourcePrivateEndpointConnection.go | 117 + .../v20200301/listIotDpsResourceKeys.go | 32 + .../listIotDpsResourceKeysForKeyName.go | 38 + .../azurerm/devices/v20200301/pulumiTypes.go | 1708 ++++++++++- sdk/go/azurerm/insights/latest/pulumiTypes.go | 36 + .../azurerm/insights/v20180301/pulumiTypes.go | 36 + .../latest/getPrivateEndpointConnection.go | 12 +- .../latest/privateEndpointConnection.go | 52 +- .../latest/pulumiTypes.go | 54 +- .../v20200601/getPrivateEndpointConnection.go | 12 +- .../v20200601/privateEndpointConnection.go | 52 +- .../v20200601/pulumiTypes.go | 54 +- sdk/nodejs/alertsmanagement/index.ts | 3 +- .../v20200804preview/getHealthAlert.ts | 78 + .../v20200804preview/healthAlert.ts | 183 ++ .../v20200804preview/index.ts | 6 + sdk/nodejs/authorization/index.ts | 3 +- .../v20200701preview/getPolicyExemption.ts | 78 + .../authorization/v20200701preview/index.ts | 6 + .../v20200701preview/policyExemption.ts | 177 ++ sdk/nodejs/devices/latest/dpsCertificate.ts | 2 +- ...IotDpsResourcePrivateEndpointConnection.ts | 55 + sdk/nodejs/devices/latest/index.ts | 2 + sdk/nodejs/devices/latest/iotDpsResource.ts | 2 +- ...iotDpsResourcePrivateEndpointConnection.ts | 118 + .../v20170821preview/dpsCertificate.ts | 2 +- .../v20170821preview/iotDpsResource.ts | 2 +- .../devices/v20171115/dpsCertificate.ts | 2 +- .../devices/v20171115/iotDpsResource.ts | 2 +- .../devices/v20180122/dpsCertificate.ts | 2 +- .../devices/v20180122/iotDpsResource.ts | 2 +- .../devices/v20200101/dpsCertificate.ts | 2 +- .../devices/v20200101/iotDpsResource.ts | 2 +- .../devices/v20200301/dpsCertificate.ts | 122 + .../devices/v20200301/getDpsCertificate.ts | 59 + .../devices/v20200301/getIotDpsResource.ts | 66 + ...IotDpsResourcePrivateEndpointConnection.ts | 55 + sdk/nodejs/devices/v20200301/index.ts | 8 + .../devices/v20200301/iotDpsResource.ts | 156 + ...iotDpsResourcePrivateEndpointConnection.ts | 118 + .../v20200301/listIotDpsResourceKeys.ts | 46 + .../listIotDpsResourceKeysForKeyName.ts | 59 + .../latest/getPrivateEndpointConnection.ts | 20 +- .../latest/privateEndpointConnection.ts | 44 +- .../v20200601/getPrivateEndpointConnection.ts | 20 +- .../v20200601/privateEndpointConnection.ts | 44 +- sdk/nodejs/tsconfig.json | 16 + sdk/nodejs/types/input.ts | 184 +- sdk/nodejs/types/output.ts | 282 +- sdk/python/pulumi_azurerm/_tables.py | 16 + .../alertsmanagement/__init__.py | 1 + .../v20200804preview/__init__.py | 9 + .../v20200804preview/_inputs.py | 173 ++ .../v20200804preview/get_health_alert.py | 182 ++ .../v20200804preview/health_alert.py | 197 ++ .../v20200804preview/outputs.py | 166 ++ .../pulumi_azurerm/authorization/__init__.py | 1 + .../v20200701preview/__init__.py | 8 + .../v20200701preview/get_policy_exemption.py | 182 ++ .../authorization/v20200701preview/outputs.py | 100 + .../v20200701preview/policy_exemption.py | 192 ++ .../pulumi_azurerm/devices/latest/__init__.py | 2 + .../pulumi_azurerm/devices/latest/_inputs.py | 36 +- .../devices/latest/dps_certificate.py | 2 +- ...ps_resource_private_endpoint_connection.py | 94 + .../devices/latest/iot_dps_resource.py | 2 +- ...ps_resource_private_endpoint_connection.py | 123 + .../pulumi_azurerm/devices/latest/outputs.py | 28 +- .../v20170821preview/dps_certificate.py | 2 +- .../v20170821preview/iot_dps_resource.py | 2 +- .../devices/v20171115/dps_certificate.py | 2 +- .../devices/v20171115/iot_dps_resource.py | 2 +- .../devices/v20180122/dps_certificate.py | 2 +- .../devices/v20180122/iot_dps_resource.py | 2 +- .../devices/v20200101/dps_certificate.py | 2 +- .../devices/v20200101/iot_dps_resource.py | 2 +- .../devices/v20200301/__init__.py | 8 + .../devices/v20200301/_inputs.py | 320 ++ .../devices/v20200301/dps_certificate.py | 130 + .../devices/v20200301/get_dps_certificate.py | 107 + .../devices/v20200301/get_iot_dps_resource.py | 143 + ...ps_resource_private_endpoint_connection.py | 94 + .../devices/v20200301/iot_dps_resource.py | 166 ++ ...ps_resource_private_endpoint_connection.py | 123 + .../v20200301/list_iot_dps_resource_keys.py | 78 + ...list_iot_dps_resource_keys_for_key_name.py | 106 + .../devices/v20200301/outputs.py | 345 ++- .../pulumi_azurerm/insights/latest/_inputs.py | 36 +- .../pulumi_azurerm/insights/latest/outputs.py | 28 +- .../insights/v20180301/_inputs.py | 36 +- .../insights/v20180301/outputs.py | 28 +- .../latest/get_private_endpoint_connection.py | 58 +- .../machinelearningservices/latest/outputs.py | 62 +- .../latest/private_endpoint_connection.py | 48 +- .../get_private_endpoint_connection.py | 58 +- .../v20200601/outputs.py | 62 +- .../v20200601/private_endpoint_connection.py | 48 +- sdk/schema/metadata.json | 2036 ++++++++++--- sdk/schema/schema.json | 2631 +++++++++++++---- 186 files changed, 15507 insertions(+), 2140 deletions(-) create mode 100644 sdk/dotnet/AlertsManagement/V20200804Preview/GetHealthAlert.cs create mode 100644 sdk/dotnet/AlertsManagement/V20200804Preview/HealthAlert.cs create mode 100644 sdk/dotnet/AlertsManagement/V20200804Preview/Inputs/HealthAlertActionArgs.cs create mode 100644 sdk/dotnet/AlertsManagement/V20200804Preview/Inputs/HealthAlertCriteriaArgs.cs create mode 100644 sdk/dotnet/AlertsManagement/V20200804Preview/Inputs/HealthStateArgs.cs create mode 100644 sdk/dotnet/AlertsManagement/V20200804Preview/Inputs/VmGuestHealthAlertCriterionArgs.cs create mode 100644 sdk/dotnet/AlertsManagement/V20200804Preview/Outputs/HealthAlertActionResponseResult.cs create mode 100644 sdk/dotnet/AlertsManagement/V20200804Preview/Outputs/HealthAlertCriteriaResponseResult.cs create mode 100644 sdk/dotnet/AlertsManagement/V20200804Preview/Outputs/HealthStateResponseResult.cs create mode 100644 sdk/dotnet/AlertsManagement/V20200804Preview/Outputs/VmGuestHealthAlertCriterionResponseResult.cs create mode 100644 sdk/dotnet/AlertsManagement/V20200804Preview/README.md create mode 100644 sdk/dotnet/Authorization/V20200701Preview/GetPolicyExemption.cs create mode 100644 sdk/dotnet/Authorization/V20200701Preview/Outputs/SystemDataResponseResult.cs create mode 100644 sdk/dotnet/Authorization/V20200701Preview/PolicyExemption.cs create mode 100644 sdk/dotnet/Authorization/V20200701Preview/README.md create mode 100644 sdk/dotnet/Devices/Latest/GetIotDpsResourcePrivateEndpointConnection.cs create mode 100644 sdk/dotnet/Devices/Latest/IotDpsResourcePrivateEndpointConnection.cs create mode 100644 sdk/dotnet/Devices/V20200301/DpsCertificate.cs create mode 100644 sdk/dotnet/Devices/V20200301/GetDpsCertificate.cs create mode 100644 sdk/dotnet/Devices/V20200301/GetIotDpsResource.cs create mode 100644 sdk/dotnet/Devices/V20200301/GetIotDpsResourcePrivateEndpointConnection.cs create mode 100644 sdk/dotnet/Devices/V20200301/Inputs/IotDpsPropertiesDescriptionArgs.cs create mode 100644 sdk/dotnet/Devices/V20200301/Inputs/IotDpsSkuInfoArgs.cs create mode 100644 sdk/dotnet/Devices/V20200301/Inputs/IotHubDefinitionDescriptionArgs.cs create mode 100644 sdk/dotnet/Devices/V20200301/Inputs/SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArgs.cs create mode 100644 sdk/dotnet/Devices/V20200301/IotDpsResource.cs create mode 100644 sdk/dotnet/Devices/V20200301/IotDpsResourcePrivateEndpointConnection.cs create mode 100644 sdk/dotnet/Devices/V20200301/ListIotDpsResourceKeys.cs create mode 100644 sdk/dotnet/Devices/V20200301/ListIotDpsResourceKeysForKeyName.cs create mode 100644 sdk/dotnet/Devices/V20200301/Outputs/IotDpsPropertiesDescriptionResponseResult.cs create mode 100644 sdk/dotnet/Devices/V20200301/Outputs/IotDpsSkuInfoResponseResult.cs create mode 100644 sdk/dotnet/Devices/V20200301/Outputs/IotHubDefinitionDescriptionResponseResult.cs create mode 100644 sdk/dotnet/Devices/V20200301/Outputs/SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseResult.cs create mode 100644 sdk/go/azurerm/alertsmanagement/v20200804preview/getHealthAlert.go create mode 100644 sdk/go/azurerm/alertsmanagement/v20200804preview/healthAlert.go create mode 100644 sdk/go/azurerm/alertsmanagement/v20200804preview/pulumiTypes.go create mode 100644 sdk/go/azurerm/authorization/v20200701preview/getPolicyExemption.go create mode 100644 sdk/go/azurerm/authorization/v20200701preview/policyExemption.go create mode 100644 sdk/go/azurerm/authorization/v20200701preview/pulumiTypes.go create mode 100644 sdk/go/azurerm/devices/latest/getIotDpsResourcePrivateEndpointConnection.go create mode 100644 sdk/go/azurerm/devices/latest/iotDpsResourcePrivateEndpointConnection.go create mode 100644 sdk/go/azurerm/devices/v20200301/dpsCertificate.go create mode 100644 sdk/go/azurerm/devices/v20200301/getDpsCertificate.go create mode 100644 sdk/go/azurerm/devices/v20200301/getIotDpsResource.go create mode 100644 sdk/go/azurerm/devices/v20200301/getIotDpsResourcePrivateEndpointConnection.go create mode 100644 sdk/go/azurerm/devices/v20200301/iotDpsResource.go create mode 100644 sdk/go/azurerm/devices/v20200301/iotDpsResourcePrivateEndpointConnection.go create mode 100644 sdk/go/azurerm/devices/v20200301/listIotDpsResourceKeys.go create mode 100644 sdk/go/azurerm/devices/v20200301/listIotDpsResourceKeysForKeyName.go create mode 100644 sdk/nodejs/alertsmanagement/v20200804preview/getHealthAlert.ts create mode 100644 sdk/nodejs/alertsmanagement/v20200804preview/healthAlert.ts create mode 100644 sdk/nodejs/alertsmanagement/v20200804preview/index.ts create mode 100644 sdk/nodejs/authorization/v20200701preview/getPolicyExemption.ts create mode 100644 sdk/nodejs/authorization/v20200701preview/index.ts create mode 100644 sdk/nodejs/authorization/v20200701preview/policyExemption.ts create mode 100644 sdk/nodejs/devices/latest/getIotDpsResourcePrivateEndpointConnection.ts create mode 100644 sdk/nodejs/devices/latest/iotDpsResourcePrivateEndpointConnection.ts create mode 100644 sdk/nodejs/devices/v20200301/dpsCertificate.ts create mode 100644 sdk/nodejs/devices/v20200301/getDpsCertificate.ts create mode 100644 sdk/nodejs/devices/v20200301/getIotDpsResource.ts create mode 100644 sdk/nodejs/devices/v20200301/getIotDpsResourcePrivateEndpointConnection.ts create mode 100644 sdk/nodejs/devices/v20200301/iotDpsResource.ts create mode 100644 sdk/nodejs/devices/v20200301/iotDpsResourcePrivateEndpointConnection.ts create mode 100644 sdk/nodejs/devices/v20200301/listIotDpsResourceKeys.ts create mode 100644 sdk/nodejs/devices/v20200301/listIotDpsResourceKeysForKeyName.ts create mode 100644 sdk/python/pulumi_azurerm/alertsmanagement/v20200804preview/__init__.py create mode 100644 sdk/python/pulumi_azurerm/alertsmanagement/v20200804preview/_inputs.py create mode 100644 sdk/python/pulumi_azurerm/alertsmanagement/v20200804preview/get_health_alert.py create mode 100644 sdk/python/pulumi_azurerm/alertsmanagement/v20200804preview/health_alert.py create mode 100644 sdk/python/pulumi_azurerm/alertsmanagement/v20200804preview/outputs.py create mode 100644 sdk/python/pulumi_azurerm/authorization/v20200701preview/__init__.py create mode 100644 sdk/python/pulumi_azurerm/authorization/v20200701preview/get_policy_exemption.py create mode 100644 sdk/python/pulumi_azurerm/authorization/v20200701preview/outputs.py create mode 100644 sdk/python/pulumi_azurerm/authorization/v20200701preview/policy_exemption.py create mode 100644 sdk/python/pulumi_azurerm/devices/latest/get_iot_dps_resource_private_endpoint_connection.py create mode 100644 sdk/python/pulumi_azurerm/devices/latest/iot_dps_resource_private_endpoint_connection.py create mode 100644 sdk/python/pulumi_azurerm/devices/v20200301/dps_certificate.py create mode 100644 sdk/python/pulumi_azurerm/devices/v20200301/get_dps_certificate.py create mode 100644 sdk/python/pulumi_azurerm/devices/v20200301/get_iot_dps_resource.py create mode 100644 sdk/python/pulumi_azurerm/devices/v20200301/get_iot_dps_resource_private_endpoint_connection.py create mode 100644 sdk/python/pulumi_azurerm/devices/v20200301/iot_dps_resource.py create mode 100644 sdk/python/pulumi_azurerm/devices/v20200301/iot_dps_resource_private_endpoint_connection.py create mode 100644 sdk/python/pulumi_azurerm/devices/v20200301/list_iot_dps_resource_keys.py create mode 100644 sdk/python/pulumi_azurerm/devices/v20200301/list_iot_dps_resource_keys_for_key_name.py diff --git a/azure-rest-api-specs b/azure-rest-api-specs index ec2102330080..f19ed0186981 160000 --- a/azure-rest-api-specs +++ b/azure-rest-api-specs @@ -1 +1 @@ -Subproject commit ec2102330080b905b605275c562e47d53a18d56a +Subproject commit f19ed0186981aa6fe7d0f8570e160b5db603772b diff --git a/sdk/dotnet/AlertsManagement/V20200804Preview/GetHealthAlert.cs b/sdk/dotnet/AlertsManagement/V20200804Preview/GetHealthAlert.cs new file mode 100644 index 000000000000..a77f6c8b9200 --- /dev/null +++ b/sdk/dotnet/AlertsManagement/V20200804Preview/GetHealthAlert.cs @@ -0,0 +1,117 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AzureRM.AlertsManagement.V20200804Preview +{ + public static class GetHealthAlert + { + public static Task InvokeAsync(GetHealthAlertArgs args, InvokeOptions? options = null) + => Pulumi.Deployment.Instance.InvokeAsync("azurerm:alertsmanagement/v20200804preview:getHealthAlert", args ?? new GetHealthAlertArgs(), options.WithVersion()); + } + + + public sealed class GetHealthAlertArgs : Pulumi.InvokeArgs + { + /// + /// The name of the resource group. + /// + [Input("resourceGroupName", required: true)] + public string ResourceGroupName { get; set; } = null!; + + /// + /// The name of the rule. + /// + [Input("ruleName", required: true)] + public string RuleName { get; set; } = null!; + + public GetHealthAlertArgs() + { + } + } + + + [OutputType] + public sealed class GetHealthAlertResult + { + /// + /// the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved. + /// + public readonly ImmutableArray Actions; + /// + /// defines the specific alert criteria information. + /// + public readonly Outputs.HealthAlertCriteriaResponseResult Criteria; + /// + /// the description of the health alert that will be included in the alert email. + /// + public readonly string Description; + /// + /// the flag that indicates whether the health alert is enabled. + /// + public readonly bool Enabled; + /// + /// Last time the rule was updated in ISO8601 format. + /// + public readonly string LastUpdatedTime; + /// + /// Resource location + /// + public readonly string Location; + /// + /// Azure resource name + /// + public readonly string Name; + /// + /// the list of resource id's that this health alert is scoped to. + /// + public readonly ImmutableArray Scopes; + /// + /// Resource tags + /// + public readonly ImmutableDictionary? Tags; + /// + /// Azure resource type + /// + public readonly string Type; + + [OutputConstructor] + private GetHealthAlertResult( + ImmutableArray actions, + + Outputs.HealthAlertCriteriaResponseResult criteria, + + string description, + + bool enabled, + + string lastUpdatedTime, + + string location, + + string name, + + ImmutableArray scopes, + + ImmutableDictionary? tags, + + string type) + { + Actions = actions; + Criteria = criteria; + Description = description; + Enabled = enabled; + LastUpdatedTime = lastUpdatedTime; + Location = location; + Name = name; + Scopes = scopes; + Tags = tags; + Type = type; + } + } +} diff --git a/sdk/dotnet/AlertsManagement/V20200804Preview/HealthAlert.cs b/sdk/dotnet/AlertsManagement/V20200804Preview/HealthAlert.cs new file mode 100644 index 000000000000..5d65e235a18a --- /dev/null +++ b/sdk/dotnet/AlertsManagement/V20200804Preview/HealthAlert.cs @@ -0,0 +1,198 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AzureRM.AlertsManagement.V20200804Preview +{ + /// + /// The health alert resource. + /// + public partial class HealthAlert : Pulumi.CustomResource + { + /// + /// the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved. + /// + [Output("actions")] + public Output> Actions { get; private set; } = null!; + + /// + /// defines the specific alert criteria information. + /// + [Output("criteria")] + public Output Criteria { get; private set; } = null!; + + /// + /// the description of the health alert that will be included in the alert email. + /// + [Output("description")] + public Output Description { get; private set; } = null!; + + /// + /// the flag that indicates whether the health alert is enabled. + /// + [Output("enabled")] + public Output Enabled { get; private set; } = null!; + + /// + /// Last time the rule was updated in ISO8601 format. + /// + [Output("lastUpdatedTime")] + public Output LastUpdatedTime { get; private set; } = null!; + + /// + /// Resource location + /// + [Output("location")] + public Output Location { get; private set; } = null!; + + /// + /// Azure resource name + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + /// + /// the list of resource id's that this health alert is scoped to. + /// + [Output("scopes")] + public Output> Scopes { get; private set; } = null!; + + /// + /// Resource tags + /// + [Output("tags")] + public Output?> Tags { get; private set; } = null!; + + /// + /// Azure resource type + /// + [Output("type")] + public Output Type { get; private set; } = null!; + + + /// + /// Create a HealthAlert resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public HealthAlert(string name, HealthAlertArgs args, CustomResourceOptions? options = null) + : base("azurerm:alertsmanagement/v20200804preview:HealthAlert", name, args ?? new HealthAlertArgs(), MakeResourceOptions(options, "")) + { + } + + private HealthAlert(string name, Input id, CustomResourceOptions? options = null) + : base("azurerm:alertsmanagement/v20200804preview:HealthAlert", name, null, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing HealthAlert resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// A bag of options that control this resource's behavior + public static HealthAlert Get(string name, Input id, CustomResourceOptions? options = null) + { + return new HealthAlert(name, id, options); + } + } + + public sealed class HealthAlertArgs : Pulumi.ResourceArgs + { + [Input("actions")] + private InputList? _actions; + + /// + /// the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved. + /// + public InputList Actions + { + get => _actions ?? (_actions = new InputList()); + set => _actions = value; + } + + /// + /// defines the specific alert criteria information. + /// + [Input("criteria", required: true)] + public Input Criteria { get; set; } = null!; + + /// + /// the description of the health alert that will be included in the alert email. + /// + [Input("description", required: true)] + public Input Description { get; set; } = null!; + + /// + /// the flag that indicates whether the health alert is enabled. + /// + [Input("enabled", required: true)] + public Input Enabled { get; set; } = null!; + + /// + /// Resource location + /// + [Input("location", required: true)] + public Input Location { get; set; } = null!; + + /// + /// The name of the resource group. + /// + [Input("resourceGroupName", required: true)] + public Input ResourceGroupName { get; set; } = null!; + + /// + /// The name of the rule. + /// + [Input("ruleName", required: true)] + public Input RuleName { get; set; } = null!; + + [Input("scopes")] + private InputList? _scopes; + + /// + /// the list of resource id's that this health alert is scoped to. + /// + public InputList Scopes + { + get => _scopes ?? (_scopes = new InputList()); + set => _scopes = value; + } + + [Input("tags")] + private InputMap? _tags; + + /// + /// Resource tags + /// + public InputMap Tags + { + get => _tags ?? (_tags = new InputMap()); + set => _tags = value; + } + + public HealthAlertArgs() + { + } + } +} diff --git a/sdk/dotnet/AlertsManagement/V20200804Preview/Inputs/HealthAlertActionArgs.cs b/sdk/dotnet/AlertsManagement/V20200804Preview/Inputs/HealthAlertActionArgs.cs new file mode 100644 index 000000000000..55db07ccfcd3 --- /dev/null +++ b/sdk/dotnet/AlertsManagement/V20200804Preview/Inputs/HealthAlertActionArgs.cs @@ -0,0 +1,40 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AzureRM.AlertsManagement.V20200804Preview.Inputs +{ + + /// + /// An alert action. + /// + public sealed class HealthAlertActionArgs : Pulumi.ResourceArgs + { + /// + /// the id of the action group to use. + /// + [Input("actionGroupId")] + public Input? ActionGroupId { get; set; } + + [Input("webHookProperties")] + private InputMap? _webHookProperties; + + /// + /// The properties of a webhook object. + /// + public InputMap WebHookProperties + { + get => _webHookProperties ?? (_webHookProperties = new InputMap()); + set => _webHookProperties = value; + } + + public HealthAlertActionArgs() + { + } + } +} diff --git a/sdk/dotnet/AlertsManagement/V20200804Preview/Inputs/HealthAlertCriteriaArgs.cs b/sdk/dotnet/AlertsManagement/V20200804Preview/Inputs/HealthAlertCriteriaArgs.cs new file mode 100644 index 000000000000..d248be2a7103 --- /dev/null +++ b/sdk/dotnet/AlertsManagement/V20200804Preview/Inputs/HealthAlertCriteriaArgs.cs @@ -0,0 +1,34 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AzureRM.AlertsManagement.V20200804Preview.Inputs +{ + + /// + /// Specifies the resource health alert criteria for a single resource that has multiple metric criteria. + /// + public sealed class HealthAlertCriteriaArgs : Pulumi.ResourceArgs + { + [Input("allOf")] + private InputList? _allOf; + + /// + /// The list of metric criteria for this 'all of' operation. + /// + public InputList AllOf + { + get => _allOf ?? (_allOf = new InputList()); + set => _allOf = value; + } + + public HealthAlertCriteriaArgs() + { + } + } +} diff --git a/sdk/dotnet/AlertsManagement/V20200804Preview/Inputs/HealthStateArgs.cs b/sdk/dotnet/AlertsManagement/V20200804Preview/Inputs/HealthStateArgs.cs new file mode 100644 index 000000000000..30ec3334299a --- /dev/null +++ b/sdk/dotnet/AlertsManagement/V20200804Preview/Inputs/HealthStateArgs.cs @@ -0,0 +1,34 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AzureRM.AlertsManagement.V20200804Preview.Inputs +{ + + /// + /// Specifies the health state to alert on and the corresponding severity + /// + public sealed class HealthStateArgs : Pulumi.ResourceArgs + { + /// + /// Health state + /// + [Input("healthStateName", required: true)] + public Input HealthStateName { get; set; } = null!; + + /// + /// Severity of alert fired + /// + [Input("severity", required: true)] + public Input Severity { get; set; } = null!; + + public HealthStateArgs() + { + } + } +} diff --git a/sdk/dotnet/AlertsManagement/V20200804Preview/Inputs/VmGuestHealthAlertCriterionArgs.cs b/sdk/dotnet/AlertsManagement/V20200804Preview/Inputs/VmGuestHealthAlertCriterionArgs.cs new file mode 100644 index 000000000000..42c65563c54f --- /dev/null +++ b/sdk/dotnet/AlertsManagement/V20200804Preview/Inputs/VmGuestHealthAlertCriterionArgs.cs @@ -0,0 +1,46 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AzureRM.AlertsManagement.V20200804Preview.Inputs +{ + + /// + /// Specifies the health alert criteria to alert on. + /// + public sealed class VmGuestHealthAlertCriterionArgs : Pulumi.ResourceArgs + { + /// + /// Name of health monitor on which to define alert + /// + [Input("healthMonitorName", required: true)] + public Input HealthMonitorName { get; set; } = null!; + + [Input("healthStates")] + private InputList? _healthStates; + + /// + /// Health states to alert on + /// + public InputList HealthStates + { + get => _healthStates ?? (_healthStates = new InputList()); + set => _healthStates = value; + } + + /// + /// specifies the type of the alert criterion. + /// + [Input("namespace", required: true)] + public Input Namespace { get; set; } = null!; + + public VmGuestHealthAlertCriterionArgs() + { + } + } +} diff --git a/sdk/dotnet/AlertsManagement/V20200804Preview/Outputs/HealthAlertActionResponseResult.cs b/sdk/dotnet/AlertsManagement/V20200804Preview/Outputs/HealthAlertActionResponseResult.cs new file mode 100644 index 000000000000..9a1433a4818e --- /dev/null +++ b/sdk/dotnet/AlertsManagement/V20200804Preview/Outputs/HealthAlertActionResponseResult.cs @@ -0,0 +1,35 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AzureRM.AlertsManagement.V20200804Preview.Outputs +{ + + [OutputType] + public sealed class HealthAlertActionResponseResult + { + /// + /// the id of the action group to use. + /// + public readonly string? ActionGroupId; + /// + /// The properties of a webhook object. + /// + public readonly ImmutableDictionary? WebHookProperties; + + [OutputConstructor] + private HealthAlertActionResponseResult( + string? actionGroupId, + + ImmutableDictionary? webHookProperties) + { + ActionGroupId = actionGroupId; + WebHookProperties = webHookProperties; + } + } +} diff --git a/sdk/dotnet/AlertsManagement/V20200804Preview/Outputs/HealthAlertCriteriaResponseResult.cs b/sdk/dotnet/AlertsManagement/V20200804Preview/Outputs/HealthAlertCriteriaResponseResult.cs new file mode 100644 index 000000000000..36ae32e79f21 --- /dev/null +++ b/sdk/dotnet/AlertsManagement/V20200804Preview/Outputs/HealthAlertCriteriaResponseResult.cs @@ -0,0 +1,27 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AzureRM.AlertsManagement.V20200804Preview.Outputs +{ + + [OutputType] + public sealed class HealthAlertCriteriaResponseResult + { + /// + /// The list of metric criteria for this 'all of' operation. + /// + public readonly ImmutableArray AllOf; + + [OutputConstructor] + private HealthAlertCriteriaResponseResult(ImmutableArray allOf) + { + AllOf = allOf; + } + } +} diff --git a/sdk/dotnet/AlertsManagement/V20200804Preview/Outputs/HealthStateResponseResult.cs b/sdk/dotnet/AlertsManagement/V20200804Preview/Outputs/HealthStateResponseResult.cs new file mode 100644 index 000000000000..e9094dd3a93c --- /dev/null +++ b/sdk/dotnet/AlertsManagement/V20200804Preview/Outputs/HealthStateResponseResult.cs @@ -0,0 +1,35 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AzureRM.AlertsManagement.V20200804Preview.Outputs +{ + + [OutputType] + public sealed class HealthStateResponseResult + { + /// + /// Health state + /// + public readonly string HealthStateName; + /// + /// Severity of alert fired + /// + public readonly string Severity; + + [OutputConstructor] + private HealthStateResponseResult( + string healthStateName, + + string severity) + { + HealthStateName = healthStateName; + Severity = severity; + } + } +} diff --git a/sdk/dotnet/AlertsManagement/V20200804Preview/Outputs/VmGuestHealthAlertCriterionResponseResult.cs b/sdk/dotnet/AlertsManagement/V20200804Preview/Outputs/VmGuestHealthAlertCriterionResponseResult.cs new file mode 100644 index 000000000000..accb471668c4 --- /dev/null +++ b/sdk/dotnet/AlertsManagement/V20200804Preview/Outputs/VmGuestHealthAlertCriterionResponseResult.cs @@ -0,0 +1,42 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AzureRM.AlertsManagement.V20200804Preview.Outputs +{ + + [OutputType] + public sealed class VmGuestHealthAlertCriterionResponseResult + { + /// + /// Name of health monitor on which to define alert + /// + public readonly string HealthMonitorName; + /// + /// Health states to alert on + /// + public readonly ImmutableArray HealthStates; + /// + /// specifies the type of the alert criterion. + /// + public readonly string Namespace; + + [OutputConstructor] + private VmGuestHealthAlertCriterionResponseResult( + string healthMonitorName, + + ImmutableArray healthStates, + + string @namespace) + { + HealthMonitorName = healthMonitorName; + HealthStates = healthStates; + Namespace = @namespace; + } + } +} diff --git a/sdk/dotnet/AlertsManagement/V20200804Preview/README.md b/sdk/dotnet/AlertsManagement/V20200804Preview/README.md new file mode 100644 index 000000000000..8d4df9d51c7c --- /dev/null +++ b/sdk/dotnet/AlertsManagement/V20200804Preview/README.md @@ -0,0 +1 @@ +A Pulumi package for creating and managing Azure resources. diff --git a/sdk/dotnet/Authorization/V20200701Preview/GetPolicyExemption.cs b/sdk/dotnet/Authorization/V20200701Preview/GetPolicyExemption.cs new file mode 100644 index 000000000000..74aa87f60da0 --- /dev/null +++ b/sdk/dotnet/Authorization/V20200701Preview/GetPolicyExemption.cs @@ -0,0 +1,117 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AzureRM.Authorization.V20200701Preview +{ + public static class GetPolicyExemption + { + public static Task InvokeAsync(GetPolicyExemptionArgs args, InvokeOptions? options = null) + => Pulumi.Deployment.Instance.InvokeAsync("azurerm:authorization/v20200701preview:getPolicyExemption", args ?? new GetPolicyExemptionArgs(), options.WithVersion()); + } + + + public sealed class GetPolicyExemptionArgs : Pulumi.InvokeArgs + { + /// + /// The name of the policy exemption to delete. + /// + [Input("policyExemptionName", required: true)] + public string PolicyExemptionName { get; set; } = null!; + + /// + /// The scope of the policy exemption. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' + /// + [Input("scope", required: true)] + public string Scope { get; set; } = null!; + + public GetPolicyExemptionArgs() + { + } + } + + + [OutputType] + public sealed class GetPolicyExemptionResult + { + /// + /// The description of the policy exemption. + /// + public readonly string? Description; + /// + /// The display name of the policy exemption. + /// + public readonly string? DisplayName; + /// + /// The policy exemption category. Possible values are Waiver and Mitigated. + /// + public readonly string ExemptionCategory; + /// + /// The expiration date and time (in UTC ISO 8601 format yyyy-MM-ddTHH:mm:ssZ) of the policy exemption. + /// + public readonly string? ExpiresOn; + /// + /// The policy exemption metadata. Metadata is an open ended object and is typically a collection of key value pairs. + /// + public readonly ImmutableDictionary? Metadata; + /// + /// The name of the resource + /// + public readonly string Name; + /// + /// The ID of the policy assignment that is being exempted. + /// + public readonly string PolicyAssignmentId; + /// + /// The policy definition reference ID list when the associated policy assignment is an assignment of a policy set definition. + /// + public readonly ImmutableArray PolicyDefinitionReferenceIds; + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + public readonly Outputs.SystemDataResponseResult SystemData; + /// + /// The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + /// + public readonly string Type; + + [OutputConstructor] + private GetPolicyExemptionResult( + string? description, + + string? displayName, + + string exemptionCategory, + + string? expiresOn, + + ImmutableDictionary? metadata, + + string name, + + string policyAssignmentId, + + ImmutableArray policyDefinitionReferenceIds, + + Outputs.SystemDataResponseResult systemData, + + string type) + { + Description = description; + DisplayName = displayName; + ExemptionCategory = exemptionCategory; + ExpiresOn = expiresOn; + Metadata = metadata; + Name = name; + PolicyAssignmentId = policyAssignmentId; + PolicyDefinitionReferenceIds = policyDefinitionReferenceIds; + SystemData = systemData; + Type = type; + } + } +} diff --git a/sdk/dotnet/Authorization/V20200701Preview/Outputs/SystemDataResponseResult.cs b/sdk/dotnet/Authorization/V20200701Preview/Outputs/SystemDataResponseResult.cs new file mode 100644 index 000000000000..ffc626065662 --- /dev/null +++ b/sdk/dotnet/Authorization/V20200701Preview/Outputs/SystemDataResponseResult.cs @@ -0,0 +1,63 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AzureRM.Authorization.V20200701Preview.Outputs +{ + + [OutputType] + public sealed class SystemDataResponseResult + { + /// + /// The timestamp of resource creation (UTC). + /// + public readonly string? CreatedAt; + /// + /// The identity that created the resource. + /// + public readonly string? CreatedBy; + /// + /// The type of identity that created the resource. + /// + public readonly string? CreatedByType; + /// + /// The type of identity that last modified the resource. + /// + public readonly string? LastModifiedAt; + /// + /// The identity that last modified the resource. + /// + public readonly string? LastModifiedBy; + /// + /// The type of identity that last modified the resource. + /// + public readonly string? LastModifiedByType; + + [OutputConstructor] + private SystemDataResponseResult( + string? createdAt, + + string? createdBy, + + string? createdByType, + + string? lastModifiedAt, + + string? lastModifiedBy, + + string? lastModifiedByType) + { + CreatedAt = createdAt; + CreatedBy = createdBy; + CreatedByType = createdByType; + LastModifiedAt = lastModifiedAt; + LastModifiedBy = lastModifiedBy; + LastModifiedByType = lastModifiedByType; + } + } +} diff --git a/sdk/dotnet/Authorization/V20200701Preview/PolicyExemption.cs b/sdk/dotnet/Authorization/V20200701Preview/PolicyExemption.cs new file mode 100644 index 000000000000..2b5b5b7ea2a1 --- /dev/null +++ b/sdk/dotnet/Authorization/V20200701Preview/PolicyExemption.cs @@ -0,0 +1,192 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AzureRM.Authorization.V20200701Preview +{ + /// + /// The policy exemption. + /// + public partial class PolicyExemption : Pulumi.CustomResource + { + /// + /// The description of the policy exemption. + /// + [Output("description")] + public Output Description { get; private set; } = null!; + + /// + /// The display name of the policy exemption. + /// + [Output("displayName")] + public Output DisplayName { get; private set; } = null!; + + /// + /// The policy exemption category. Possible values are Waiver and Mitigated. + /// + [Output("exemptionCategory")] + public Output ExemptionCategory { get; private set; } = null!; + + /// + /// The expiration date and time (in UTC ISO 8601 format yyyy-MM-ddTHH:mm:ssZ) of the policy exemption. + /// + [Output("expiresOn")] + public Output ExpiresOn { get; private set; } = null!; + + /// + /// The policy exemption metadata. Metadata is an open ended object and is typically a collection of key value pairs. + /// + [Output("metadata")] + public Output?> Metadata { get; private set; } = null!; + + /// + /// The name of the resource + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + /// + /// The ID of the policy assignment that is being exempted. + /// + [Output("policyAssignmentId")] + public Output PolicyAssignmentId { get; private set; } = null!; + + /// + /// The policy definition reference ID list when the associated policy assignment is an assignment of a policy set definition. + /// + [Output("policyDefinitionReferenceIds")] + public Output> PolicyDefinitionReferenceIds { get; private set; } = null!; + + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Output("systemData")] + public Output SystemData { get; private set; } = null!; + + /// + /// The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + /// + [Output("type")] + public Output Type { get; private set; } = null!; + + + /// + /// Create a PolicyExemption resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public PolicyExemption(string name, PolicyExemptionArgs args, CustomResourceOptions? options = null) + : base("azurerm:authorization/v20200701preview:PolicyExemption", name, args ?? new PolicyExemptionArgs(), MakeResourceOptions(options, "")) + { + } + + private PolicyExemption(string name, Input id, CustomResourceOptions? options = null) + : base("azurerm:authorization/v20200701preview:PolicyExemption", name, null, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing PolicyExemption resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// A bag of options that control this resource's behavior + public static PolicyExemption Get(string name, Input id, CustomResourceOptions? options = null) + { + return new PolicyExemption(name, id, options); + } + } + + public sealed class PolicyExemptionArgs : Pulumi.ResourceArgs + { + /// + /// The description of the policy exemption. + /// + [Input("description")] + public Input? Description { get; set; } + + /// + /// The display name of the policy exemption. + /// + [Input("displayName")] + public Input? DisplayName { get; set; } + + /// + /// The policy exemption category. Possible values are Waiver and Mitigated. + /// + [Input("exemptionCategory", required: true)] + public Input ExemptionCategory { get; set; } = null!; + + /// + /// The expiration date and time (in UTC ISO 8601 format yyyy-MM-ddTHH:mm:ssZ) of the policy exemption. + /// + [Input("expiresOn")] + public Input? ExpiresOn { get; set; } + + [Input("metadata")] + private InputMap? _metadata; + + /// + /// The policy exemption metadata. Metadata is an open ended object and is typically a collection of key value pairs. + /// + public InputMap Metadata + { + get => _metadata ?? (_metadata = new InputMap()); + set => _metadata = value; + } + + /// + /// The ID of the policy assignment that is being exempted. + /// + [Input("policyAssignmentId", required: true)] + public Input PolicyAssignmentId { get; set; } = null!; + + [Input("policyDefinitionReferenceIds")] + private InputList? _policyDefinitionReferenceIds; + + /// + /// The policy definition reference ID list when the associated policy assignment is an assignment of a policy set definition. + /// + public InputList PolicyDefinitionReferenceIds + { + get => _policyDefinitionReferenceIds ?? (_policyDefinitionReferenceIds = new InputList()); + set => _policyDefinitionReferenceIds = value; + } + + /// + /// The name of the policy exemption to delete. + /// + [Input("policyExemptionName", required: true)] + public Input PolicyExemptionName { get; set; } = null!; + + /// + /// The scope of the policy exemption. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' + /// + [Input("scope", required: true)] + public Input Scope { get; set; } = null!; + + public PolicyExemptionArgs() + { + } + } +} diff --git a/sdk/dotnet/Authorization/V20200701Preview/README.md b/sdk/dotnet/Authorization/V20200701Preview/README.md new file mode 100644 index 000000000000..8d4df9d51c7c --- /dev/null +++ b/sdk/dotnet/Authorization/V20200701Preview/README.md @@ -0,0 +1 @@ +A Pulumi package for creating and managing Azure resources. diff --git a/sdk/dotnet/Devices/Latest/DpsCertificate.cs b/sdk/dotnet/Devices/Latest/DpsCertificate.cs index 6709c9c3426b..f9fe24d068de 100644 --- a/sdk/dotnet/Devices/Latest/DpsCertificate.cs +++ b/sdk/dotnet/Devices/Latest/DpsCertificate.cs @@ -67,6 +67,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? new Pulumi.Alias { Type = "azurerm:devices/v20171115:DpsCertificate"}, new Pulumi.Alias { Type = "azurerm:devices/v20180122:DpsCertificate"}, new Pulumi.Alias { Type = "azurerm:devices/v20200101:DpsCertificate"}, + new Pulumi.Alias { Type = "azurerm:devices/v20200301:DpsCertificate"}, }, }; var merged = CustomResourceOptions.Merge(defaultOptions, options); diff --git a/sdk/dotnet/Devices/Latest/GetIotDpsResourcePrivateEndpointConnection.cs b/sdk/dotnet/Devices/Latest/GetIotDpsResourcePrivateEndpointConnection.cs new file mode 100644 index 000000000000..504dde6a0598 --- /dev/null +++ b/sdk/dotnet/Devices/Latest/GetIotDpsResourcePrivateEndpointConnection.cs @@ -0,0 +1,74 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AzureRM.Devices.Latest +{ + public static class GetIotDpsResourcePrivateEndpointConnection + { + public static Task InvokeAsync(GetIotDpsResourcePrivateEndpointConnectionArgs args, InvokeOptions? options = null) + => Pulumi.Deployment.Instance.InvokeAsync("azurerm:devices/latest:getIotDpsResourcePrivateEndpointConnection", args ?? new GetIotDpsResourcePrivateEndpointConnectionArgs(), options.WithVersion()); + } + + + public sealed class GetIotDpsResourcePrivateEndpointConnectionArgs : Pulumi.InvokeArgs + { + /// + /// The name of the private endpoint connection + /// + [Input("privateEndpointConnectionName", required: true)] + public string PrivateEndpointConnectionName { get; set; } = null!; + + /// + /// The name of the resource group that contains the provisioning service. + /// + [Input("resourceGroupName", required: true)] + public string ResourceGroupName { get; set; } = null!; + + /// + /// The name of the provisioning service. + /// + [Input("resourceName", required: true)] + public string ResourceName { get; set; } = null!; + + public GetIotDpsResourcePrivateEndpointConnectionArgs() + { + } + } + + + [OutputType] + public sealed class GetIotDpsResourcePrivateEndpointConnectionResult + { + /// + /// The resource name. + /// + public readonly string Name; + /// + /// The properties of a private endpoint connection + /// + public readonly Outputs.PrivateEndpointConnectionPropertiesResponseResult Properties; + /// + /// The resource type. + /// + public readonly string Type; + + [OutputConstructor] + private GetIotDpsResourcePrivateEndpointConnectionResult( + string name, + + Outputs.PrivateEndpointConnectionPropertiesResponseResult properties, + + string type) + { + Name = name; + Properties = properties; + Type = type; + } + } +} diff --git a/sdk/dotnet/Devices/Latest/Inputs/IotDpsPropertiesDescriptionArgs.cs b/sdk/dotnet/Devices/Latest/Inputs/IotDpsPropertiesDescriptionArgs.cs index d017fd4ff6f5..a47eff5fbc59 100644 --- a/sdk/dotnet/Devices/Latest/Inputs/IotDpsPropertiesDescriptionArgs.cs +++ b/sdk/dotnet/Devices/Latest/Inputs/IotDpsPropertiesDescriptionArgs.cs @@ -57,12 +57,30 @@ public InputList IpFilterRules set => _ipFilterRules = value; } + [Input("privateEndpointConnections")] + private InputList? _privateEndpointConnections; + + /// + /// Private endpoint connections created on this IotHub + /// + public InputList PrivateEndpointConnections + { + get => _privateEndpointConnections ?? (_privateEndpointConnections = new InputList()); + set => _privateEndpointConnections = value; + } + /// /// The ARM provisioning state of the provisioning service. /// [Input("provisioningState")] public Input? ProvisioningState { get; set; } + /// + /// Whether requests from Public Network are allowed + /// + [Input("publicNetworkAccess")] + public Input? PublicNetworkAccess { get; set; } + /// /// Current state of the provisioning service. /// diff --git a/sdk/dotnet/Devices/Latest/Inputs/IotHubDefinitionDescriptionArgs.cs b/sdk/dotnet/Devices/Latest/Inputs/IotHubDefinitionDescriptionArgs.cs index 9327099d87e6..6aba4ba01fc9 100644 --- a/sdk/dotnet/Devices/Latest/Inputs/IotHubDefinitionDescriptionArgs.cs +++ b/sdk/dotnet/Devices/Latest/Inputs/IotHubDefinitionDescriptionArgs.cs @@ -28,7 +28,7 @@ public sealed class IotHubDefinitionDescriptionArgs : Pulumi.ResourceArgs public Input? ApplyAllocationPolicy { get; set; } /// - /// Connection string og the IoT hub. + /// Connection string of the IoT hub. /// [Input("connectionString", required: true)] public Input ConnectionString { get; set; } = null!; diff --git a/sdk/dotnet/Devices/Latest/IotDpsResource.cs b/sdk/dotnet/Devices/Latest/IotDpsResource.cs index 2850a6514062..8a420a936e21 100644 --- a/sdk/dotnet/Devices/Latest/IotDpsResource.cs +++ b/sdk/dotnet/Devices/Latest/IotDpsResource.cs @@ -85,6 +85,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? new Pulumi.Alias { Type = "azurerm:devices/v20171115:IotDpsResource"}, new Pulumi.Alias { Type = "azurerm:devices/v20180122:IotDpsResource"}, new Pulumi.Alias { Type = "azurerm:devices/v20200101:IotDpsResource"}, + new Pulumi.Alias { Type = "azurerm:devices/v20200301:IotDpsResource"}, }, }; var merged = CustomResourceOptions.Merge(defaultOptions, options); diff --git a/sdk/dotnet/Devices/Latest/IotDpsResourcePrivateEndpointConnection.cs b/sdk/dotnet/Devices/Latest/IotDpsResourcePrivateEndpointConnection.cs new file mode 100644 index 000000000000..dfcc7c061cc3 --- /dev/null +++ b/sdk/dotnet/Devices/Latest/IotDpsResourcePrivateEndpointConnection.cs @@ -0,0 +1,112 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AzureRM.Devices.Latest +{ + /// + /// The private endpoint connection of a provisioning service + /// + public partial class IotDpsResourcePrivateEndpointConnection : Pulumi.CustomResource + { + /// + /// The resource name. + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + /// + /// The properties of a private endpoint connection + /// + [Output("properties")] + public Output Properties { get; private set; } = null!; + + /// + /// The resource type. + /// + [Output("type")] + public Output Type { get; private set; } = null!; + + + /// + /// Create a IotDpsResourcePrivateEndpointConnection resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public IotDpsResourcePrivateEndpointConnection(string name, IotDpsResourcePrivateEndpointConnectionArgs args, CustomResourceOptions? options = null) + : base("azurerm:devices/latest:IotDpsResourcePrivateEndpointConnection", name, args ?? new IotDpsResourcePrivateEndpointConnectionArgs(), MakeResourceOptions(options, "")) + { + } + + private IotDpsResourcePrivateEndpointConnection(string name, Input id, CustomResourceOptions? options = null) + : base("azurerm:devices/latest:IotDpsResourcePrivateEndpointConnection", name, null, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + Aliases = + { + new Pulumi.Alias { Type = "azurerm:devices/v20200301:IotDpsResourcePrivateEndpointConnection"}, + }, + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing IotDpsResourcePrivateEndpointConnection resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// A bag of options that control this resource's behavior + public static IotDpsResourcePrivateEndpointConnection Get(string name, Input id, CustomResourceOptions? options = null) + { + return new IotDpsResourcePrivateEndpointConnection(name, id, options); + } + } + + public sealed class IotDpsResourcePrivateEndpointConnectionArgs : Pulumi.ResourceArgs + { + /// + /// The name of the private endpoint connection + /// + [Input("privateEndpointConnectionName", required: true)] + public Input PrivateEndpointConnectionName { get; set; } = null!; + + /// + /// The properties of a private endpoint connection + /// + [Input("properties", required: true)] + public Input Properties { get; set; } = null!; + + /// + /// The name of the resource group that contains the provisioning service. + /// + [Input("resourceGroupName", required: true)] + public Input ResourceGroupName { get; set; } = null!; + + /// + /// The name of the provisioning service. + /// + [Input("resourceName", required: true)] + public Input ResourceName { get; set; } = null!; + + public IotDpsResourcePrivateEndpointConnectionArgs() + { + } + } +} diff --git a/sdk/dotnet/Devices/Latest/Outputs/IotDpsPropertiesDescriptionResponseResult.cs b/sdk/dotnet/Devices/Latest/Outputs/IotDpsPropertiesDescriptionResponseResult.cs index d42a4143c1df..08c6193dc2f0 100644 --- a/sdk/dotnet/Devices/Latest/Outputs/IotDpsPropertiesDescriptionResponseResult.cs +++ b/sdk/dotnet/Devices/Latest/Outputs/IotDpsPropertiesDescriptionResponseResult.cs @@ -38,10 +38,18 @@ public sealed class IotDpsPropertiesDescriptionResponseResult /// public readonly ImmutableArray IpFilterRules; /// + /// Private endpoint connections created on this IotHub + /// + public readonly ImmutableArray PrivateEndpointConnections; + /// /// The ARM provisioning state of the provisioning service. /// public readonly string? ProvisioningState; /// + /// Whether requests from Public Network are allowed + /// + public readonly string? PublicNetworkAccess; + /// /// Service endpoint for provisioning service. /// public readonly string ServiceOperationsHostName; @@ -64,8 +72,12 @@ private IotDpsPropertiesDescriptionResponseResult( ImmutableArray ipFilterRules, + ImmutableArray privateEndpointConnections, + string? provisioningState, + string? publicNetworkAccess, + string serviceOperationsHostName, string? state) @@ -76,7 +88,9 @@ private IotDpsPropertiesDescriptionResponseResult( IdScope = idScope; IotHubs = iotHubs; IpFilterRules = ipFilterRules; + PrivateEndpointConnections = privateEndpointConnections; ProvisioningState = provisioningState; + PublicNetworkAccess = publicNetworkAccess; ServiceOperationsHostName = serviceOperationsHostName; State = state; } diff --git a/sdk/dotnet/Devices/Latest/Outputs/IotHubDefinitionDescriptionResponseResult.cs b/sdk/dotnet/Devices/Latest/Outputs/IotHubDefinitionDescriptionResponseResult.cs index 31647613c490..cd678f585fda 100644 --- a/sdk/dotnet/Devices/Latest/Outputs/IotHubDefinitionDescriptionResponseResult.cs +++ b/sdk/dotnet/Devices/Latest/Outputs/IotHubDefinitionDescriptionResponseResult.cs @@ -22,7 +22,7 @@ public sealed class IotHubDefinitionDescriptionResponseResult /// public readonly bool? ApplyAllocationPolicy; /// - /// Connection string og the IoT hub. + /// Connection string of the IoT hub. /// public readonly string ConnectionString; /// diff --git a/sdk/dotnet/Devices/V20170821Preview/DpsCertificate.cs b/sdk/dotnet/Devices/V20170821Preview/DpsCertificate.cs index 519273dbf275..5fc298bb4e99 100644 --- a/sdk/dotnet/Devices/V20170821Preview/DpsCertificate.cs +++ b/sdk/dotnet/Devices/V20170821Preview/DpsCertificate.cs @@ -67,6 +67,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? new Pulumi.Alias { Type = "azurerm:devices/v20171115:DpsCertificate"}, new Pulumi.Alias { Type = "azurerm:devices/v20180122:DpsCertificate"}, new Pulumi.Alias { Type = "azurerm:devices/v20200101:DpsCertificate"}, + new Pulumi.Alias { Type = "azurerm:devices/v20200301:DpsCertificate"}, }, }; var merged = CustomResourceOptions.Merge(defaultOptions, options); diff --git a/sdk/dotnet/Devices/V20170821Preview/IotDpsResource.cs b/sdk/dotnet/Devices/V20170821Preview/IotDpsResource.cs index f45f6549b6b7..1dd0121188a3 100644 --- a/sdk/dotnet/Devices/V20170821Preview/IotDpsResource.cs +++ b/sdk/dotnet/Devices/V20170821Preview/IotDpsResource.cs @@ -82,6 +82,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? new Pulumi.Alias { Type = "azurerm:devices/v20171115:IotDpsResource"}, new Pulumi.Alias { Type = "azurerm:devices/v20180122:IotDpsResource"}, new Pulumi.Alias { Type = "azurerm:devices/v20200101:IotDpsResource"}, + new Pulumi.Alias { Type = "azurerm:devices/v20200301:IotDpsResource"}, }, }; var merged = CustomResourceOptions.Merge(defaultOptions, options); diff --git a/sdk/dotnet/Devices/V20171115/DpsCertificate.cs b/sdk/dotnet/Devices/V20171115/DpsCertificate.cs index 7b49dc8805c3..b12e7e4e6918 100644 --- a/sdk/dotnet/Devices/V20171115/DpsCertificate.cs +++ b/sdk/dotnet/Devices/V20171115/DpsCertificate.cs @@ -67,6 +67,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? new Pulumi.Alias { Type = "azurerm:devices/v20170821preview:DpsCertificate"}, new Pulumi.Alias { Type = "azurerm:devices/v20180122:DpsCertificate"}, new Pulumi.Alias { Type = "azurerm:devices/v20200101:DpsCertificate"}, + new Pulumi.Alias { Type = "azurerm:devices/v20200301:DpsCertificate"}, }, }; var merged = CustomResourceOptions.Merge(defaultOptions, options); diff --git a/sdk/dotnet/Devices/V20171115/IotDpsResource.cs b/sdk/dotnet/Devices/V20171115/IotDpsResource.cs index da0f98f9f191..f7f3b804d75b 100644 --- a/sdk/dotnet/Devices/V20171115/IotDpsResource.cs +++ b/sdk/dotnet/Devices/V20171115/IotDpsResource.cs @@ -85,6 +85,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? new Pulumi.Alias { Type = "azurerm:devices/v20170821preview:IotDpsResource"}, new Pulumi.Alias { Type = "azurerm:devices/v20180122:IotDpsResource"}, new Pulumi.Alias { Type = "azurerm:devices/v20200101:IotDpsResource"}, + new Pulumi.Alias { Type = "azurerm:devices/v20200301:IotDpsResource"}, }, }; var merged = CustomResourceOptions.Merge(defaultOptions, options); diff --git a/sdk/dotnet/Devices/V20180122/DpsCertificate.cs b/sdk/dotnet/Devices/V20180122/DpsCertificate.cs index 21eb75558710..1ef32f387a8a 100644 --- a/sdk/dotnet/Devices/V20180122/DpsCertificate.cs +++ b/sdk/dotnet/Devices/V20180122/DpsCertificate.cs @@ -67,6 +67,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? new Pulumi.Alias { Type = "azurerm:devices/v20170821preview:DpsCertificate"}, new Pulumi.Alias { Type = "azurerm:devices/v20171115:DpsCertificate"}, new Pulumi.Alias { Type = "azurerm:devices/v20200101:DpsCertificate"}, + new Pulumi.Alias { Type = "azurerm:devices/v20200301:DpsCertificate"}, }, }; var merged = CustomResourceOptions.Merge(defaultOptions, options); diff --git a/sdk/dotnet/Devices/V20180122/IotDpsResource.cs b/sdk/dotnet/Devices/V20180122/IotDpsResource.cs index fd2b659dbc18..075cd3d3436e 100644 --- a/sdk/dotnet/Devices/V20180122/IotDpsResource.cs +++ b/sdk/dotnet/Devices/V20180122/IotDpsResource.cs @@ -85,6 +85,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? new Pulumi.Alias { Type = "azurerm:devices/v20170821preview:IotDpsResource"}, new Pulumi.Alias { Type = "azurerm:devices/v20171115:IotDpsResource"}, new Pulumi.Alias { Type = "azurerm:devices/v20200101:IotDpsResource"}, + new Pulumi.Alias { Type = "azurerm:devices/v20200301:IotDpsResource"}, }, }; var merged = CustomResourceOptions.Merge(defaultOptions, options); diff --git a/sdk/dotnet/Devices/V20200101/DpsCertificate.cs b/sdk/dotnet/Devices/V20200101/DpsCertificate.cs index 26b939f397d1..4a4e64cd3736 100644 --- a/sdk/dotnet/Devices/V20200101/DpsCertificate.cs +++ b/sdk/dotnet/Devices/V20200101/DpsCertificate.cs @@ -67,6 +67,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? new Pulumi.Alias { Type = "azurerm:devices/v20170821preview:DpsCertificate"}, new Pulumi.Alias { Type = "azurerm:devices/v20171115:DpsCertificate"}, new Pulumi.Alias { Type = "azurerm:devices/v20180122:DpsCertificate"}, + new Pulumi.Alias { Type = "azurerm:devices/v20200301:DpsCertificate"}, }, }; var merged = CustomResourceOptions.Merge(defaultOptions, options); diff --git a/sdk/dotnet/Devices/V20200101/IotDpsResource.cs b/sdk/dotnet/Devices/V20200101/IotDpsResource.cs index 50e203f9b26d..887266031684 100644 --- a/sdk/dotnet/Devices/V20200101/IotDpsResource.cs +++ b/sdk/dotnet/Devices/V20200101/IotDpsResource.cs @@ -85,6 +85,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? new Pulumi.Alias { Type = "azurerm:devices/v20170821preview:IotDpsResource"}, new Pulumi.Alias { Type = "azurerm:devices/v20171115:IotDpsResource"}, new Pulumi.Alias { Type = "azurerm:devices/v20180122:IotDpsResource"}, + new Pulumi.Alias { Type = "azurerm:devices/v20200301:IotDpsResource"}, }, }; var merged = CustomResourceOptions.Merge(defaultOptions, options); diff --git a/sdk/dotnet/Devices/V20200301/DpsCertificate.cs b/sdk/dotnet/Devices/V20200301/DpsCertificate.cs new file mode 100644 index 000000000000..b9ff89cf4404 --- /dev/null +++ b/sdk/dotnet/Devices/V20200301/DpsCertificate.cs @@ -0,0 +1,122 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AzureRM.Devices.V20200301 +{ + /// + /// The X509 Certificate. + /// + public partial class DpsCertificate : Pulumi.CustomResource + { + /// + /// The entity tag. + /// + [Output("etag")] + public Output Etag { get; private set; } = null!; + + /// + /// The name of the certificate. + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + /// + /// properties of a certificate + /// + [Output("properties")] + public Output Properties { get; private set; } = null!; + + /// + /// The resource type. + /// + [Output("type")] + public Output Type { get; private set; } = null!; + + + /// + /// Create a DpsCertificate resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public DpsCertificate(string name, DpsCertificateArgs args, CustomResourceOptions? options = null) + : base("azurerm:devices/v20200301:DpsCertificate", name, args ?? new DpsCertificateArgs(), MakeResourceOptions(options, "")) + { + } + + private DpsCertificate(string name, Input id, CustomResourceOptions? options = null) + : base("azurerm:devices/v20200301:DpsCertificate", name, null, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + Aliases = + { + new Pulumi.Alias { Type = "azurerm:devices/latest:DpsCertificate"}, + new Pulumi.Alias { Type = "azurerm:devices/v20170821preview:DpsCertificate"}, + new Pulumi.Alias { Type = "azurerm:devices/v20171115:DpsCertificate"}, + new Pulumi.Alias { Type = "azurerm:devices/v20180122:DpsCertificate"}, + new Pulumi.Alias { Type = "azurerm:devices/v20200101:DpsCertificate"}, + }, + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing DpsCertificate resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// A bag of options that control this resource's behavior + public static DpsCertificate Get(string name, Input id, CustomResourceOptions? options = null) + { + return new DpsCertificate(name, id, options); + } + } + + public sealed class DpsCertificateArgs : Pulumi.ResourceArgs + { + /// + /// Base-64 representation of the X509 leaf certificate .cer file or just .pem file content. + /// + [Input("certificate")] + public Input? Certificate { get; set; } + + /// + /// The name of the certificate create or update. + /// + [Input("certificateName", required: true)] + public Input CertificateName { get; set; } = null!; + + /// + /// The name of the provisioning service. + /// + [Input("provisioningServiceName", required: true)] + public Input ProvisioningServiceName { get; set; } = null!; + + /// + /// Resource group identifier. + /// + [Input("resourceGroupName", required: true)] + public Input ResourceGroupName { get; set; } = null!; + + public DpsCertificateArgs() + { + } + } +} diff --git a/sdk/dotnet/Devices/V20200301/GetDpsCertificate.cs b/sdk/dotnet/Devices/V20200301/GetDpsCertificate.cs new file mode 100644 index 000000000000..13cf03f2fdf9 --- /dev/null +++ b/sdk/dotnet/Devices/V20200301/GetDpsCertificate.cs @@ -0,0 +1,81 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AzureRM.Devices.V20200301 +{ + public static class GetDpsCertificate + { + public static Task InvokeAsync(GetDpsCertificateArgs args, InvokeOptions? options = null) + => Pulumi.Deployment.Instance.InvokeAsync("azurerm:devices/v20200301:getDpsCertificate", args ?? new GetDpsCertificateArgs(), options.WithVersion()); + } + + + public sealed class GetDpsCertificateArgs : Pulumi.InvokeArgs + { + /// + /// Name of the certificate to retrieve. + /// + [Input("certificateName", required: true)] + public string CertificateName { get; set; } = null!; + + /// + /// Name of the provisioning service the certificate is associated with. + /// + [Input("provisioningServiceName", required: true)] + public string ProvisioningServiceName { get; set; } = null!; + + /// + /// Resource group identifier. + /// + [Input("resourceGroupName", required: true)] + public string ResourceGroupName { get; set; } = null!; + + public GetDpsCertificateArgs() + { + } + } + + + [OutputType] + public sealed class GetDpsCertificateResult + { + /// + /// The entity tag. + /// + public readonly string Etag; + /// + /// The name of the certificate. + /// + public readonly string Name; + /// + /// properties of a certificate + /// + public readonly Outputs.CertificatePropertiesResponseResult Properties; + /// + /// The resource type. + /// + public readonly string Type; + + [OutputConstructor] + private GetDpsCertificateResult( + string etag, + + string name, + + Outputs.CertificatePropertiesResponseResult properties, + + string type) + { + Etag = etag; + Name = name; + Properties = properties; + Type = type; + } + } +} diff --git a/sdk/dotnet/Devices/V20200301/GetIotDpsResource.cs b/sdk/dotnet/Devices/V20200301/GetIotDpsResource.cs new file mode 100644 index 000000000000..6a6936c60ea5 --- /dev/null +++ b/sdk/dotnet/Devices/V20200301/GetIotDpsResource.cs @@ -0,0 +1,96 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AzureRM.Devices.V20200301 +{ + public static class GetIotDpsResource + { + public static Task InvokeAsync(GetIotDpsResourceArgs args, InvokeOptions? options = null) + => Pulumi.Deployment.Instance.InvokeAsync("azurerm:devices/v20200301:getIotDpsResource", args ?? new GetIotDpsResourceArgs(), options.WithVersion()); + } + + + public sealed class GetIotDpsResourceArgs : Pulumi.InvokeArgs + { + /// + /// Name of the provisioning service to retrieve. + /// + [Input("provisioningServiceName", required: true)] + public string ProvisioningServiceName { get; set; } = null!; + + /// + /// Resource group name. + /// + [Input("resourceGroupName", required: true)] + public string ResourceGroupName { get; set; } = null!; + + public GetIotDpsResourceArgs() + { + } + } + + + [OutputType] + public sealed class GetIotDpsResourceResult + { + /// + /// The Etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal ETag convention. + /// + public readonly string? Etag; + /// + /// The resource location. + /// + public readonly string Location; + /// + /// The resource name. + /// + public readonly string Name; + /// + /// Service specific properties for a provisioning service + /// + public readonly Outputs.IotDpsPropertiesDescriptionResponseResult Properties; + /// + /// Sku info for a provisioning Service. + /// + public readonly Outputs.IotDpsSkuInfoResponseResult Sku; + /// + /// The resource tags. + /// + public readonly ImmutableDictionary? Tags; + /// + /// The resource type. + /// + public readonly string Type; + + [OutputConstructor] + private GetIotDpsResourceResult( + string? etag, + + string location, + + string name, + + Outputs.IotDpsPropertiesDescriptionResponseResult properties, + + Outputs.IotDpsSkuInfoResponseResult sku, + + ImmutableDictionary? tags, + + string type) + { + Etag = etag; + Location = location; + Name = name; + Properties = properties; + Sku = sku; + Tags = tags; + Type = type; + } + } +} diff --git a/sdk/dotnet/Devices/V20200301/GetIotDpsResourcePrivateEndpointConnection.cs b/sdk/dotnet/Devices/V20200301/GetIotDpsResourcePrivateEndpointConnection.cs new file mode 100644 index 000000000000..b0bf8d7adc2d --- /dev/null +++ b/sdk/dotnet/Devices/V20200301/GetIotDpsResourcePrivateEndpointConnection.cs @@ -0,0 +1,74 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AzureRM.Devices.V20200301 +{ + public static class GetIotDpsResourcePrivateEndpointConnection + { + public static Task InvokeAsync(GetIotDpsResourcePrivateEndpointConnectionArgs args, InvokeOptions? options = null) + => Pulumi.Deployment.Instance.InvokeAsync("azurerm:devices/v20200301:getIotDpsResourcePrivateEndpointConnection", args ?? new GetIotDpsResourcePrivateEndpointConnectionArgs(), options.WithVersion()); + } + + + public sealed class GetIotDpsResourcePrivateEndpointConnectionArgs : Pulumi.InvokeArgs + { + /// + /// The name of the private endpoint connection + /// + [Input("privateEndpointConnectionName", required: true)] + public string PrivateEndpointConnectionName { get; set; } = null!; + + /// + /// The name of the resource group that contains the provisioning service. + /// + [Input("resourceGroupName", required: true)] + public string ResourceGroupName { get; set; } = null!; + + /// + /// The name of the provisioning service. + /// + [Input("resourceName", required: true)] + public string ResourceName { get; set; } = null!; + + public GetIotDpsResourcePrivateEndpointConnectionArgs() + { + } + } + + + [OutputType] + public sealed class GetIotDpsResourcePrivateEndpointConnectionResult + { + /// + /// The resource name. + /// + public readonly string Name; + /// + /// The properties of a private endpoint connection + /// + public readonly Outputs.PrivateEndpointConnectionPropertiesResponseResult Properties; + /// + /// The resource type. + /// + public readonly string Type; + + [OutputConstructor] + private GetIotDpsResourcePrivateEndpointConnectionResult( + string name, + + Outputs.PrivateEndpointConnectionPropertiesResponseResult properties, + + string type) + { + Name = name; + Properties = properties; + Type = type; + } + } +} diff --git a/sdk/dotnet/Devices/V20200301/Inputs/IotDpsPropertiesDescriptionArgs.cs b/sdk/dotnet/Devices/V20200301/Inputs/IotDpsPropertiesDescriptionArgs.cs new file mode 100644 index 000000000000..235fc88e6876 --- /dev/null +++ b/sdk/dotnet/Devices/V20200301/Inputs/IotDpsPropertiesDescriptionArgs.cs @@ -0,0 +1,94 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AzureRM.Devices.V20200301.Inputs +{ + + /// + /// the service specific properties of a provisioning service, including keys, linked iot hubs, current state, and system generated properties such as hostname and idScope + /// + public sealed class IotDpsPropertiesDescriptionArgs : Pulumi.ResourceArgs + { + /// + /// Allocation policy to be used by this provisioning service. + /// + [Input("allocationPolicy")] + public Input? AllocationPolicy { get; set; } + + [Input("authorizationPolicies")] + private InputList? _authorizationPolicies; + + /// + /// List of authorization keys for a provisioning service. + /// + public InputList AuthorizationPolicies + { + get => _authorizationPolicies ?? (_authorizationPolicies = new InputList()); + set => _authorizationPolicies = value; + } + + [Input("iotHubs")] + private InputList? _iotHubs; + + /// + /// List of IoT hubs associated with this provisioning service. + /// + public InputList IotHubs + { + get => _iotHubs ?? (_iotHubs = new InputList()); + set => _iotHubs = value; + } + + [Input("ipFilterRules")] + private InputList? _ipFilterRules; + + /// + /// The IP filter rules. + /// + public InputList IpFilterRules + { + get => _ipFilterRules ?? (_ipFilterRules = new InputList()); + set => _ipFilterRules = value; + } + + [Input("privateEndpointConnections")] + private InputList? _privateEndpointConnections; + + /// + /// Private endpoint connections created on this IotHub + /// + public InputList PrivateEndpointConnections + { + get => _privateEndpointConnections ?? (_privateEndpointConnections = new InputList()); + set => _privateEndpointConnections = value; + } + + /// + /// The ARM provisioning state of the provisioning service. + /// + [Input("provisioningState")] + public Input? ProvisioningState { get; set; } + + /// + /// Whether requests from Public Network are allowed + /// + [Input("publicNetworkAccess")] + public Input? PublicNetworkAccess { get; set; } + + /// + /// Current state of the provisioning service. + /// + [Input("state")] + public Input? State { get; set; } + + public IotDpsPropertiesDescriptionArgs() + { + } + } +} diff --git a/sdk/dotnet/Devices/V20200301/Inputs/IotDpsSkuInfoArgs.cs b/sdk/dotnet/Devices/V20200301/Inputs/IotDpsSkuInfoArgs.cs new file mode 100644 index 000000000000..495e64353c00 --- /dev/null +++ b/sdk/dotnet/Devices/V20200301/Inputs/IotDpsSkuInfoArgs.cs @@ -0,0 +1,34 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AzureRM.Devices.V20200301.Inputs +{ + + /// + /// List of possible provisioning service SKUs. + /// + public sealed class IotDpsSkuInfoArgs : Pulumi.ResourceArgs + { + /// + /// The number of units to provision + /// + [Input("capacity")] + public Input? Capacity { get; set; } + + /// + /// Sku name. + /// + [Input("name")] + public Input? Name { get; set; } + + public IotDpsSkuInfoArgs() + { + } + } +} diff --git a/sdk/dotnet/Devices/V20200301/Inputs/IotHubDefinitionDescriptionArgs.cs b/sdk/dotnet/Devices/V20200301/Inputs/IotHubDefinitionDescriptionArgs.cs new file mode 100644 index 000000000000..24b2b4597836 --- /dev/null +++ b/sdk/dotnet/Devices/V20200301/Inputs/IotHubDefinitionDescriptionArgs.cs @@ -0,0 +1,46 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AzureRM.Devices.V20200301.Inputs +{ + + /// + /// Description of the IoT hub. + /// + public sealed class IotHubDefinitionDescriptionArgs : Pulumi.ResourceArgs + { + /// + /// weight to apply for a given iot h. + /// + [Input("allocationWeight")] + public Input? AllocationWeight { get; set; } + + /// + /// flag for applying allocationPolicy or not for a given iot hub. + /// + [Input("applyAllocationPolicy")] + public Input? ApplyAllocationPolicy { get; set; } + + /// + /// Connection string of the IoT hub. + /// + [Input("connectionString", required: true)] + public Input ConnectionString { get; set; } = null!; + + /// + /// ARM region of the IoT hub. + /// + [Input("location", required: true)] + public Input Location { get; set; } = null!; + + public IotHubDefinitionDescriptionArgs() + { + } + } +} diff --git a/sdk/dotnet/Devices/V20200301/Inputs/SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArgs.cs b/sdk/dotnet/Devices/V20200301/Inputs/SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArgs.cs new file mode 100644 index 000000000000..41eee0fe7a91 --- /dev/null +++ b/sdk/dotnet/Devices/V20200301/Inputs/SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArgs.cs @@ -0,0 +1,46 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AzureRM.Devices.V20200301.Inputs +{ + + /// + /// Description of the shared access key. + /// + public sealed class SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArgs : Pulumi.ResourceArgs + { + /// + /// Name of the key. + /// + [Input("keyName", required: true)] + public Input KeyName { get; set; } = null!; + + /// + /// Primary SAS key value. + /// + [Input("primaryKey")] + public Input? PrimaryKey { get; set; } + + /// + /// Rights that this key has. + /// + [Input("rights", required: true)] + public Input Rights { get; set; } = null!; + + /// + /// Secondary SAS key value. + /// + [Input("secondaryKey")] + public Input? SecondaryKey { get; set; } + + public SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArgs() + { + } + } +} diff --git a/sdk/dotnet/Devices/V20200301/IotDpsResource.cs b/sdk/dotnet/Devices/V20200301/IotDpsResource.cs new file mode 100644 index 000000000000..6a2802f62159 --- /dev/null +++ b/sdk/dotnet/Devices/V20200301/IotDpsResource.cs @@ -0,0 +1,164 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AzureRM.Devices.V20200301 +{ + /// + /// The description of the provisioning service. + /// + public partial class IotDpsResource : Pulumi.CustomResource + { + /// + /// The Etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal ETag convention. + /// + [Output("etag")] + public Output Etag { get; private set; } = null!; + + /// + /// The resource location. + /// + [Output("location")] + public Output Location { get; private set; } = null!; + + /// + /// The resource name. + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + /// + /// Service specific properties for a provisioning service + /// + [Output("properties")] + public Output Properties { get; private set; } = null!; + + /// + /// Sku info for a provisioning Service. + /// + [Output("sku")] + public Output Sku { get; private set; } = null!; + + /// + /// The resource tags. + /// + [Output("tags")] + public Output?> Tags { get; private set; } = null!; + + /// + /// The resource type. + /// + [Output("type")] + public Output Type { get; private set; } = null!; + + + /// + /// Create a IotDpsResource resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public IotDpsResource(string name, IotDpsResourceArgs args, CustomResourceOptions? options = null) + : base("azurerm:devices/v20200301:IotDpsResource", name, args ?? new IotDpsResourceArgs(), MakeResourceOptions(options, "")) + { + } + + private IotDpsResource(string name, Input id, CustomResourceOptions? options = null) + : base("azurerm:devices/v20200301:IotDpsResource", name, null, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + Aliases = + { + new Pulumi.Alias { Type = "azurerm:devices/latest:IotDpsResource"}, + new Pulumi.Alias { Type = "azurerm:devices/v20170821preview:IotDpsResource"}, + new Pulumi.Alias { Type = "azurerm:devices/v20171115:IotDpsResource"}, + new Pulumi.Alias { Type = "azurerm:devices/v20180122:IotDpsResource"}, + new Pulumi.Alias { Type = "azurerm:devices/v20200101:IotDpsResource"}, + }, + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing IotDpsResource resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// A bag of options that control this resource's behavior + public static IotDpsResource Get(string name, Input id, CustomResourceOptions? options = null) + { + return new IotDpsResource(name, id, options); + } + } + + public sealed class IotDpsResourceArgs : Pulumi.ResourceArgs + { + /// + /// The Etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal ETag convention. + /// + [Input("etag")] + public Input? Etag { get; set; } + + /// + /// The resource location. + /// + [Input("location", required: true)] + public Input Location { get; set; } = null!; + + /// + /// Service specific properties for a provisioning service + /// + [Input("properties", required: true)] + public Input Properties { get; set; } = null!; + + /// + /// Name of provisioning service to create or update. + /// + [Input("provisioningServiceName", required: true)] + public Input ProvisioningServiceName { get; set; } = null!; + + /// + /// Resource group identifier. + /// + [Input("resourceGroupName", required: true)] + public Input ResourceGroupName { get; set; } = null!; + + /// + /// Sku info for a provisioning Service. + /// + [Input("sku", required: true)] + public Input Sku { get; set; } = null!; + + [Input("tags")] + private InputMap? _tags; + + /// + /// The resource tags. + /// + public InputMap Tags + { + get => _tags ?? (_tags = new InputMap()); + set => _tags = value; + } + + public IotDpsResourceArgs() + { + } + } +} diff --git a/sdk/dotnet/Devices/V20200301/IotDpsResourcePrivateEndpointConnection.cs b/sdk/dotnet/Devices/V20200301/IotDpsResourcePrivateEndpointConnection.cs new file mode 100644 index 000000000000..d3b1221dbf9e --- /dev/null +++ b/sdk/dotnet/Devices/V20200301/IotDpsResourcePrivateEndpointConnection.cs @@ -0,0 +1,112 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AzureRM.Devices.V20200301 +{ + /// + /// The private endpoint connection of a provisioning service + /// + public partial class IotDpsResourcePrivateEndpointConnection : Pulumi.CustomResource + { + /// + /// The resource name. + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + /// + /// The properties of a private endpoint connection + /// + [Output("properties")] + public Output Properties { get; private set; } = null!; + + /// + /// The resource type. + /// + [Output("type")] + public Output Type { get; private set; } = null!; + + + /// + /// Create a IotDpsResourcePrivateEndpointConnection resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public IotDpsResourcePrivateEndpointConnection(string name, IotDpsResourcePrivateEndpointConnectionArgs args, CustomResourceOptions? options = null) + : base("azurerm:devices/v20200301:IotDpsResourcePrivateEndpointConnection", name, args ?? new IotDpsResourcePrivateEndpointConnectionArgs(), MakeResourceOptions(options, "")) + { + } + + private IotDpsResourcePrivateEndpointConnection(string name, Input id, CustomResourceOptions? options = null) + : base("azurerm:devices/v20200301:IotDpsResourcePrivateEndpointConnection", name, null, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + Aliases = + { + new Pulumi.Alias { Type = "azurerm:devices/latest:IotDpsResourcePrivateEndpointConnection"}, + }, + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing IotDpsResourcePrivateEndpointConnection resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// A bag of options that control this resource's behavior + public static IotDpsResourcePrivateEndpointConnection Get(string name, Input id, CustomResourceOptions? options = null) + { + return new IotDpsResourcePrivateEndpointConnection(name, id, options); + } + } + + public sealed class IotDpsResourcePrivateEndpointConnectionArgs : Pulumi.ResourceArgs + { + /// + /// The name of the private endpoint connection + /// + [Input("privateEndpointConnectionName", required: true)] + public Input PrivateEndpointConnectionName { get; set; } = null!; + + /// + /// The properties of a private endpoint connection + /// + [Input("properties", required: true)] + public Input Properties { get; set; } = null!; + + /// + /// The name of the resource group that contains the provisioning service. + /// + [Input("resourceGroupName", required: true)] + public Input ResourceGroupName { get; set; } = null!; + + /// + /// The name of the provisioning service. + /// + [Input("resourceName", required: true)] + public Input ResourceName { get; set; } = null!; + + public IotDpsResourcePrivateEndpointConnectionArgs() + { + } + } +} diff --git a/sdk/dotnet/Devices/V20200301/ListIotDpsResourceKeys.cs b/sdk/dotnet/Devices/V20200301/ListIotDpsResourceKeys.cs new file mode 100644 index 000000000000..d336ab7a776f --- /dev/null +++ b/sdk/dotnet/Devices/V20200301/ListIotDpsResourceKeys.cs @@ -0,0 +1,61 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AzureRM.Devices.V20200301 +{ + public static class ListIotDpsResourceKeys + { + public static Task InvokeAsync(ListIotDpsResourceKeysArgs args, InvokeOptions? options = null) + => Pulumi.Deployment.Instance.InvokeAsync("azurerm:devices/v20200301:listIotDpsResourceKeys", args ?? new ListIotDpsResourceKeysArgs(), options.WithVersion()); + } + + + public sealed class ListIotDpsResourceKeysArgs : Pulumi.InvokeArgs + { + /// + /// The provisioning service name to get the shared access keys for. + /// + [Input("provisioningServiceName", required: true)] + public string ProvisioningServiceName { get; set; } = null!; + + /// + /// resource group name + /// + [Input("resourceGroupName", required: true)] + public string ResourceGroupName { get; set; } = null!; + + public ListIotDpsResourceKeysArgs() + { + } + } + + + [OutputType] + public sealed class ListIotDpsResourceKeysResult + { + /// + /// The next link. + /// + public readonly string NextLink; + /// + /// The list of shared access policies. + /// + public readonly ImmutableArray Value; + + [OutputConstructor] + private ListIotDpsResourceKeysResult( + string nextLink, + + ImmutableArray value) + { + NextLink = nextLink; + Value = value; + } + } +} diff --git a/sdk/dotnet/Devices/V20200301/ListIotDpsResourceKeysForKeyName.cs b/sdk/dotnet/Devices/V20200301/ListIotDpsResourceKeysForKeyName.cs new file mode 100644 index 000000000000..533aebedb223 --- /dev/null +++ b/sdk/dotnet/Devices/V20200301/ListIotDpsResourceKeysForKeyName.cs @@ -0,0 +1,81 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AzureRM.Devices.V20200301 +{ + public static class ListIotDpsResourceKeysForKeyName + { + public static Task InvokeAsync(ListIotDpsResourceKeysForKeyNameArgs args, InvokeOptions? options = null) + => Pulumi.Deployment.Instance.InvokeAsync("azurerm:devices/v20200301:listIotDpsResourceKeysForKeyName", args ?? new ListIotDpsResourceKeysForKeyNameArgs(), options.WithVersion()); + } + + + public sealed class ListIotDpsResourceKeysForKeyNameArgs : Pulumi.InvokeArgs + { + /// + /// Logical key name to get key-values for. + /// + [Input("keyName", required: true)] + public string KeyName { get; set; } = null!; + + /// + /// Name of the provisioning service. + /// + [Input("provisioningServiceName", required: true)] + public string ProvisioningServiceName { get; set; } = null!; + + /// + /// The name of the resource group that contains the provisioning service. + /// + [Input("resourceGroupName", required: true)] + public string ResourceGroupName { get; set; } = null!; + + public ListIotDpsResourceKeysForKeyNameArgs() + { + } + } + + + [OutputType] + public sealed class ListIotDpsResourceKeysForKeyNameResult + { + /// + /// Name of the key. + /// + public readonly string KeyName; + /// + /// Primary SAS key value. + /// + public readonly string? PrimaryKey; + /// + /// Rights that this key has. + /// + public readonly string Rights; + /// + /// Secondary SAS key value. + /// + public readonly string? SecondaryKey; + + [OutputConstructor] + private ListIotDpsResourceKeysForKeyNameResult( + string keyName, + + string? primaryKey, + + string rights, + + string? secondaryKey) + { + KeyName = keyName; + PrimaryKey = primaryKey; + Rights = rights; + SecondaryKey = secondaryKey; + } + } +} diff --git a/sdk/dotnet/Devices/V20200301/Outputs/CertificatePropertiesResponseResult.cs b/sdk/dotnet/Devices/V20200301/Outputs/CertificatePropertiesResponseResult.cs index 8ea6d39cdfde..c210782ecb3c 100644 --- a/sdk/dotnet/Devices/V20200301/Outputs/CertificatePropertiesResponseResult.cs +++ b/sdk/dotnet/Devices/V20200301/Outputs/CertificatePropertiesResponseResult.cs @@ -14,11 +14,7 @@ namespace Pulumi.AzureRM.Devices.V20200301.Outputs public sealed class CertificatePropertiesResponseResult { /// - /// The certificate content - /// - public readonly string? Certificate; - /// - /// The certificate's create date and time. + /// The certificate's creation date and time. /// public readonly string Created; /// @@ -44,8 +40,6 @@ public sealed class CertificatePropertiesResponseResult [OutputConstructor] private CertificatePropertiesResponseResult( - string? certificate, - string created, string expiry, @@ -58,7 +52,6 @@ private CertificatePropertiesResponseResult( string updated) { - Certificate = certificate; Created = created; Expiry = expiry; IsVerified = isVerified; diff --git a/sdk/dotnet/Devices/V20200301/Outputs/IotDpsPropertiesDescriptionResponseResult.cs b/sdk/dotnet/Devices/V20200301/Outputs/IotDpsPropertiesDescriptionResponseResult.cs new file mode 100644 index 000000000000..5939184fea13 --- /dev/null +++ b/sdk/dotnet/Devices/V20200301/Outputs/IotDpsPropertiesDescriptionResponseResult.cs @@ -0,0 +1,98 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AzureRM.Devices.V20200301.Outputs +{ + + [OutputType] + public sealed class IotDpsPropertiesDescriptionResponseResult + { + /// + /// Allocation policy to be used by this provisioning service. + /// + public readonly string? AllocationPolicy; + /// + /// List of authorization keys for a provisioning service. + /// + public readonly ImmutableArray AuthorizationPolicies; + /// + /// Device endpoint for this provisioning service. + /// + public readonly string DeviceProvisioningHostName; + /// + /// Unique identifier of this provisioning service. + /// + public readonly string IdScope; + /// + /// List of IoT hubs associated with this provisioning service. + /// + public readonly ImmutableArray IotHubs; + /// + /// The IP filter rules. + /// + public readonly ImmutableArray IpFilterRules; + /// + /// Private endpoint connections created on this IotHub + /// + public readonly ImmutableArray PrivateEndpointConnections; + /// + /// The ARM provisioning state of the provisioning service. + /// + public readonly string? ProvisioningState; + /// + /// Whether requests from Public Network are allowed + /// + public readonly string? PublicNetworkAccess; + /// + /// Service endpoint for provisioning service. + /// + public readonly string ServiceOperationsHostName; + /// + /// Current state of the provisioning service. + /// + public readonly string? State; + + [OutputConstructor] + private IotDpsPropertiesDescriptionResponseResult( + string? allocationPolicy, + + ImmutableArray authorizationPolicies, + + string deviceProvisioningHostName, + + string idScope, + + ImmutableArray iotHubs, + + ImmutableArray ipFilterRules, + + ImmutableArray privateEndpointConnections, + + string? provisioningState, + + string? publicNetworkAccess, + + string serviceOperationsHostName, + + string? state) + { + AllocationPolicy = allocationPolicy; + AuthorizationPolicies = authorizationPolicies; + DeviceProvisioningHostName = deviceProvisioningHostName; + IdScope = idScope; + IotHubs = iotHubs; + IpFilterRules = ipFilterRules; + PrivateEndpointConnections = privateEndpointConnections; + ProvisioningState = provisioningState; + PublicNetworkAccess = publicNetworkAccess; + ServiceOperationsHostName = serviceOperationsHostName; + State = state; + } + } +} diff --git a/sdk/dotnet/Devices/V20200301/Outputs/IotDpsSkuInfoResponseResult.cs b/sdk/dotnet/Devices/V20200301/Outputs/IotDpsSkuInfoResponseResult.cs new file mode 100644 index 000000000000..6fd2b7160dda --- /dev/null +++ b/sdk/dotnet/Devices/V20200301/Outputs/IotDpsSkuInfoResponseResult.cs @@ -0,0 +1,42 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AzureRM.Devices.V20200301.Outputs +{ + + [OutputType] + public sealed class IotDpsSkuInfoResponseResult + { + /// + /// The number of units to provision + /// + public readonly int? Capacity; + /// + /// Sku name. + /// + public readonly string? Name; + /// + /// Pricing tier name of the provisioning service. + /// + public readonly string Tier; + + [OutputConstructor] + private IotDpsSkuInfoResponseResult( + int? capacity, + + string? name, + + string tier) + { + Capacity = capacity; + Name = name; + Tier = tier; + } + } +} diff --git a/sdk/dotnet/Devices/V20200301/Outputs/IotHubDefinitionDescriptionResponseResult.cs b/sdk/dotnet/Devices/V20200301/Outputs/IotHubDefinitionDescriptionResponseResult.cs new file mode 100644 index 000000000000..351f1e2207ac --- /dev/null +++ b/sdk/dotnet/Devices/V20200301/Outputs/IotHubDefinitionDescriptionResponseResult.cs @@ -0,0 +1,56 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AzureRM.Devices.V20200301.Outputs +{ + + [OutputType] + public sealed class IotHubDefinitionDescriptionResponseResult + { + /// + /// weight to apply for a given iot h. + /// + public readonly int? AllocationWeight; + /// + /// flag for applying allocationPolicy or not for a given iot hub. + /// + public readonly bool? ApplyAllocationPolicy; + /// + /// Connection string of the IoT hub. + /// + public readonly string ConnectionString; + /// + /// ARM region of the IoT hub. + /// + public readonly string Location; + /// + /// Host name of the IoT hub. + /// + public readonly string Name; + + [OutputConstructor] + private IotHubDefinitionDescriptionResponseResult( + int? allocationWeight, + + bool? applyAllocationPolicy, + + string connectionString, + + string location, + + string name) + { + AllocationWeight = allocationWeight; + ApplyAllocationPolicy = applyAllocationPolicy; + ConnectionString = connectionString; + Location = location; + Name = name; + } + } +} diff --git a/sdk/dotnet/Devices/V20200301/Outputs/SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseResult.cs b/sdk/dotnet/Devices/V20200301/Outputs/SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseResult.cs new file mode 100644 index 000000000000..1ba290209d55 --- /dev/null +++ b/sdk/dotnet/Devices/V20200301/Outputs/SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseResult.cs @@ -0,0 +1,49 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AzureRM.Devices.V20200301.Outputs +{ + + [OutputType] + public sealed class SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseResult + { + /// + /// Name of the key. + /// + public readonly string KeyName; + /// + /// Primary SAS key value. + /// + public readonly string? PrimaryKey; + /// + /// Rights that this key has. + /// + public readonly string Rights; + /// + /// Secondary SAS key value. + /// + public readonly string? SecondaryKey; + + [OutputConstructor] + private SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseResult( + string keyName, + + string? primaryKey, + + string rights, + + string? secondaryKey) + { + KeyName = keyName; + PrimaryKey = primaryKey; + Rights = rights; + SecondaryKey = secondaryKey; + } + } +} diff --git a/sdk/dotnet/Insights/Latest/Inputs/DynamicMetricCriteriaArgs.cs b/sdk/dotnet/Insights/Latest/Inputs/DynamicMetricCriteriaArgs.cs index bbd5942229fa..5bc50f7d1526 100644 --- a/sdk/dotnet/Insights/Latest/Inputs/DynamicMetricCriteriaArgs.cs +++ b/sdk/dotnet/Insights/Latest/Inputs/DynamicMetricCriteriaArgs.cs @@ -75,6 +75,12 @@ public InputList Dimensions [Input("operator", required: true)] public Input Operator { get; set; } = null!; + /// + /// Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. + /// + [Input("skipMetricValidation")] + public Input? SkipMetricValidation { get; set; } + [Input("timeAggregation", required: true)] private InputMap? _timeAggregation; diff --git a/sdk/dotnet/Insights/Latest/Inputs/MetricCriteriaArgs.cs b/sdk/dotnet/Insights/Latest/Inputs/MetricCriteriaArgs.cs index ce24d52f2bbf..ed74c10bc0ba 100644 --- a/sdk/dotnet/Insights/Latest/Inputs/MetricCriteriaArgs.cs +++ b/sdk/dotnet/Insights/Latest/Inputs/MetricCriteriaArgs.cs @@ -57,6 +57,12 @@ public InputList Dimensions [Input("operator", required: true)] public Input Operator { get; set; } = null!; + /// + /// Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. + /// + [Input("skipMetricValidation")] + public Input? SkipMetricValidation { get; set; } + /// /// the criteria threshold value that activates the alert. /// diff --git a/sdk/dotnet/Insights/Latest/Outputs/DynamicMetricCriteriaResponseResult.cs b/sdk/dotnet/Insights/Latest/Outputs/DynamicMetricCriteriaResponseResult.cs index 468ddeb12c84..1d2dc7686c50 100644 --- a/sdk/dotnet/Insights/Latest/Outputs/DynamicMetricCriteriaResponseResult.cs +++ b/sdk/dotnet/Insights/Latest/Outputs/DynamicMetricCriteriaResponseResult.cs @@ -50,6 +50,10 @@ public sealed class DynamicMetricCriteriaResponseResult /// public readonly string Operator; /// + /// Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. + /// + public readonly bool? SkipMetricValidation; + /// /// the criteria time aggregation types. /// public readonly ImmutableDictionary TimeAggregation; @@ -74,6 +78,8 @@ private DynamicMetricCriteriaResponseResult( string @operator, + bool? skipMetricValidation, + ImmutableDictionary timeAggregation) { AlertSensitivity = alertSensitivity; @@ -85,6 +91,7 @@ private DynamicMetricCriteriaResponseResult( MetricNamespace = metricNamespace; Name = name; Operator = @operator; + SkipMetricValidation = skipMetricValidation; TimeAggregation = timeAggregation; } } diff --git a/sdk/dotnet/Insights/Latest/Outputs/MetricCriteriaResponseResult.cs b/sdk/dotnet/Insights/Latest/Outputs/MetricCriteriaResponseResult.cs index b03cdf57281b..04ba2fb822a7 100644 --- a/sdk/dotnet/Insights/Latest/Outputs/MetricCriteriaResponseResult.cs +++ b/sdk/dotnet/Insights/Latest/Outputs/MetricCriteriaResponseResult.cs @@ -38,6 +38,10 @@ public sealed class MetricCriteriaResponseResult /// public readonly string Operator; /// + /// Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. + /// + public readonly bool? SkipMetricValidation; + /// /// the criteria threshold value that activates the alert. /// public readonly double Threshold; @@ -60,6 +64,8 @@ private MetricCriteriaResponseResult( string @operator, + bool? skipMetricValidation, + double threshold, ImmutableDictionary timeAggregation) @@ -70,6 +76,7 @@ private MetricCriteriaResponseResult( MetricNamespace = metricNamespace; Name = name; Operator = @operator; + SkipMetricValidation = skipMetricValidation; Threshold = threshold; TimeAggregation = timeAggregation; } diff --git a/sdk/dotnet/Insights/V20180301/Inputs/DynamicMetricCriteriaArgs.cs b/sdk/dotnet/Insights/V20180301/Inputs/DynamicMetricCriteriaArgs.cs index be1e64bc038c..e5d3fec739bb 100644 --- a/sdk/dotnet/Insights/V20180301/Inputs/DynamicMetricCriteriaArgs.cs +++ b/sdk/dotnet/Insights/V20180301/Inputs/DynamicMetricCriteriaArgs.cs @@ -75,6 +75,12 @@ public InputList Dimensions [Input("operator", required: true)] public Input Operator { get; set; } = null!; + /// + /// Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. + /// + [Input("skipMetricValidation")] + public Input? SkipMetricValidation { get; set; } + [Input("timeAggregation", required: true)] private InputMap? _timeAggregation; diff --git a/sdk/dotnet/Insights/V20180301/Inputs/MetricCriteriaArgs.cs b/sdk/dotnet/Insights/V20180301/Inputs/MetricCriteriaArgs.cs index 721e9752d0c5..4d026972280f 100644 --- a/sdk/dotnet/Insights/V20180301/Inputs/MetricCriteriaArgs.cs +++ b/sdk/dotnet/Insights/V20180301/Inputs/MetricCriteriaArgs.cs @@ -57,6 +57,12 @@ public InputList Dimensions [Input("operator", required: true)] public Input Operator { get; set; } = null!; + /// + /// Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. + /// + [Input("skipMetricValidation")] + public Input? SkipMetricValidation { get; set; } + /// /// the criteria threshold value that activates the alert. /// diff --git a/sdk/dotnet/Insights/V20180301/Outputs/DynamicMetricCriteriaResponseResult.cs b/sdk/dotnet/Insights/V20180301/Outputs/DynamicMetricCriteriaResponseResult.cs index 27c4e7fb5355..bb2159fa4a33 100644 --- a/sdk/dotnet/Insights/V20180301/Outputs/DynamicMetricCriteriaResponseResult.cs +++ b/sdk/dotnet/Insights/V20180301/Outputs/DynamicMetricCriteriaResponseResult.cs @@ -50,6 +50,10 @@ public sealed class DynamicMetricCriteriaResponseResult /// public readonly string Operator; /// + /// Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. + /// + public readonly bool? SkipMetricValidation; + /// /// the criteria time aggregation types. /// public readonly ImmutableDictionary TimeAggregation; @@ -74,6 +78,8 @@ private DynamicMetricCriteriaResponseResult( string @operator, + bool? skipMetricValidation, + ImmutableDictionary timeAggregation) { AlertSensitivity = alertSensitivity; @@ -85,6 +91,7 @@ private DynamicMetricCriteriaResponseResult( MetricNamespace = metricNamespace; Name = name; Operator = @operator; + SkipMetricValidation = skipMetricValidation; TimeAggregation = timeAggregation; } } diff --git a/sdk/dotnet/Insights/V20180301/Outputs/MetricCriteriaResponseResult.cs b/sdk/dotnet/Insights/V20180301/Outputs/MetricCriteriaResponseResult.cs index 68af8f986c45..b9f1c4060274 100644 --- a/sdk/dotnet/Insights/V20180301/Outputs/MetricCriteriaResponseResult.cs +++ b/sdk/dotnet/Insights/V20180301/Outputs/MetricCriteriaResponseResult.cs @@ -38,6 +38,10 @@ public sealed class MetricCriteriaResponseResult /// public readonly string Operator; /// + /// Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. + /// + public readonly bool? SkipMetricValidation; + /// /// the criteria threshold value that activates the alert. /// public readonly double Threshold; @@ -60,6 +64,8 @@ private MetricCriteriaResponseResult( string @operator, + bool? skipMetricValidation, + double threshold, ImmutableDictionary timeAggregation) @@ -70,6 +76,7 @@ private MetricCriteriaResponseResult( MetricNamespace = metricNamespace; Name = name; Operator = @operator; + SkipMetricValidation = skipMetricValidation; Threshold = threshold; TimeAggregation = timeAggregation; } diff --git a/sdk/dotnet/MachineLearningServices/Latest/GetPrivateEndpointConnection.cs b/sdk/dotnet/MachineLearningServices/Latest/GetPrivateEndpointConnection.cs index e035d589e7e8..e5c0b573da53 100644 --- a/sdk/dotnet/MachineLearningServices/Latest/GetPrivateEndpointConnection.cs +++ b/sdk/dotnet/MachineLearningServices/Latest/GetPrivateEndpointConnection.cs @@ -46,15 +46,7 @@ public GetPrivateEndpointConnectionArgs() public sealed class GetPrivateEndpointConnectionResult { /// - /// The identity of the resource. - /// - public readonly Outputs.IdentityResponseResult? Identity; - /// - /// Specifies the location of the resource. - /// - public readonly string? Location; - /// - /// Specifies the name of the resource. + /// Friendly name of the private endpoint connection. /// public readonly string Name; /// @@ -70,24 +62,12 @@ public sealed class GetPrivateEndpointConnectionResult /// public readonly string? ProvisioningState; /// - /// The sku of the workspace. - /// - public readonly Outputs.SkuResponseResult? Sku; - /// - /// Contains resource tags defined as key/value pairs. - /// - public readonly ImmutableDictionary? Tags; - /// - /// Specifies the type of the resource. + /// Resource type of private endpoint connection. /// public readonly string Type; [OutputConstructor] private GetPrivateEndpointConnectionResult( - Outputs.IdentityResponseResult? identity, - - string? location, - string name, Outputs.PrivateEndpointResponseResult? privateEndpoint, @@ -96,20 +76,12 @@ private GetPrivateEndpointConnectionResult( string? provisioningState, - Outputs.SkuResponseResult? sku, - - ImmutableDictionary? tags, - string type) { - Identity = identity; - Location = location; Name = name; PrivateEndpoint = privateEndpoint; PrivateLinkServiceConnectionState = privateLinkServiceConnectionState; ProvisioningState = provisioningState; - Sku = sku; - Tags = tags; Type = type; } } diff --git a/sdk/dotnet/MachineLearningServices/Latest/Outputs/PrivateEndpointConnectionResponseResult.cs b/sdk/dotnet/MachineLearningServices/Latest/Outputs/PrivateEndpointConnectionResponseResult.cs index 5b88f4033a1a..ec972abc92ae 100644 --- a/sdk/dotnet/MachineLearningServices/Latest/Outputs/PrivateEndpointConnectionResponseResult.cs +++ b/sdk/dotnet/MachineLearningServices/Latest/Outputs/PrivateEndpointConnectionResponseResult.cs @@ -14,19 +14,11 @@ namespace Pulumi.AzureRM.MachineLearningServices.Latest.Outputs public sealed class PrivateEndpointConnectionResponseResult { /// - /// Specifies the resource ID. + /// ResourceId of the private endpoint connection. /// public readonly string Id; /// - /// The identity of the resource. - /// - public readonly Outputs.IdentityResponseResult? Identity; - /// - /// Specifies the location of the resource. - /// - public readonly string? Location; - /// - /// Specifies the name of the resource. + /// Friendly name of the private endpoint connection. /// public readonly string Name; /// @@ -42,15 +34,7 @@ public sealed class PrivateEndpointConnectionResponseResult /// public readonly string? ProvisioningState; /// - /// The sku of the workspace. - /// - public readonly Outputs.SkuResponseResult? Sku; - /// - /// Contains resource tags defined as key/value pairs. - /// - public readonly ImmutableDictionary? Tags; - /// - /// Specifies the type of the resource. + /// Resource type of private endpoint connection. /// public readonly string Type; @@ -58,10 +42,6 @@ public sealed class PrivateEndpointConnectionResponseResult private PrivateEndpointConnectionResponseResult( string id, - Outputs.IdentityResponseResult? identity, - - string? location, - string name, Outputs.PrivateEndpointResponseResult? privateEndpoint, @@ -70,21 +50,13 @@ private PrivateEndpointConnectionResponseResult( string? provisioningState, - Outputs.SkuResponseResult? sku, - - ImmutableDictionary? tags, - string type) { Id = id; - Identity = identity; - Location = location; Name = name; PrivateEndpoint = privateEndpoint; PrivateLinkServiceConnectionState = privateLinkServiceConnectionState; ProvisioningState = provisioningState; - Sku = sku; - Tags = tags; Type = type; } } diff --git a/sdk/dotnet/MachineLearningServices/Latest/PrivateEndpointConnection.cs b/sdk/dotnet/MachineLearningServices/Latest/PrivateEndpointConnection.cs index 226d4364500a..55c5073b1ec5 100644 --- a/sdk/dotnet/MachineLearningServices/Latest/PrivateEndpointConnection.cs +++ b/sdk/dotnet/MachineLearningServices/Latest/PrivateEndpointConnection.cs @@ -15,19 +15,7 @@ namespace Pulumi.AzureRM.MachineLearningServices.Latest public partial class PrivateEndpointConnection : Pulumi.CustomResource { /// - /// The identity of the resource. - /// - [Output("identity")] - public Output Identity { get; private set; } = null!; - - /// - /// Specifies the location of the resource. - /// - [Output("location")] - public Output Location { get; private set; } = null!; - - /// - /// Specifies the name of the resource. + /// Friendly name of the private endpoint connection. /// [Output("name")] public Output Name { get; private set; } = null!; @@ -51,19 +39,7 @@ public partial class PrivateEndpointConnection : Pulumi.CustomResource public Output ProvisioningState { get; private set; } = null!; /// - /// The sku of the workspace. - /// - [Output("sku")] - public Output Sku { get; private set; } = null!; - - /// - /// Contains resource tags defined as key/value pairs. - /// - [Output("tags")] - public Output?> Tags { get; private set; } = null!; - - /// - /// Specifies the type of the resource. + /// Resource type of private endpoint connection. /// [Output("type")] public Output Type { get; private set; } = null!; @@ -124,18 +100,6 @@ public static PrivateEndpointConnection Get(string name, Input id, Custo public sealed class PrivateEndpointConnectionArgs : Pulumi.ResourceArgs { - /// - /// The identity of the resource. - /// - [Input("identity")] - public Input? Identity { get; set; } - - /// - /// Specifies the location of the resource. - /// - [Input("location")] - public Input? Location { get; set; } - /// /// The name of the private endpoint connection associated with the workspace /// @@ -160,24 +124,6 @@ public sealed class PrivateEndpointConnectionArgs : Pulumi.ResourceArgs [Input("resourceGroupName", required: true)] public Input ResourceGroupName { get; set; } = null!; - /// - /// The sku of the workspace. - /// - [Input("sku")] - public Input? Sku { get; set; } - - [Input("tags")] - private InputMap? _tags; - - /// - /// Contains resource tags defined as key/value pairs. - /// - public InputMap Tags - { - get => _tags ?? (_tags = new InputMap()); - set => _tags = value; - } - /// /// Name of Azure Machine Learning workspace. /// diff --git a/sdk/dotnet/MachineLearningServices/V20200601/GetPrivateEndpointConnection.cs b/sdk/dotnet/MachineLearningServices/V20200601/GetPrivateEndpointConnection.cs index 62cf5f5044ce..b358286e090d 100644 --- a/sdk/dotnet/MachineLearningServices/V20200601/GetPrivateEndpointConnection.cs +++ b/sdk/dotnet/MachineLearningServices/V20200601/GetPrivateEndpointConnection.cs @@ -46,15 +46,7 @@ public GetPrivateEndpointConnectionArgs() public sealed class GetPrivateEndpointConnectionResult { /// - /// The identity of the resource. - /// - public readonly Outputs.IdentityResponseResult? Identity; - /// - /// Specifies the location of the resource. - /// - public readonly string? Location; - /// - /// Specifies the name of the resource. + /// Friendly name of the private endpoint connection. /// public readonly string Name; /// @@ -70,24 +62,12 @@ public sealed class GetPrivateEndpointConnectionResult /// public readonly string? ProvisioningState; /// - /// The sku of the workspace. - /// - public readonly Outputs.SkuResponseResult? Sku; - /// - /// Contains resource tags defined as key/value pairs. - /// - public readonly ImmutableDictionary? Tags; - /// - /// Specifies the type of the resource. + /// Resource type of private endpoint connection. /// public readonly string Type; [OutputConstructor] private GetPrivateEndpointConnectionResult( - Outputs.IdentityResponseResult? identity, - - string? location, - string name, Outputs.PrivateEndpointResponseResult? privateEndpoint, @@ -96,20 +76,12 @@ private GetPrivateEndpointConnectionResult( string? provisioningState, - Outputs.SkuResponseResult? sku, - - ImmutableDictionary? tags, - string type) { - Identity = identity; - Location = location; Name = name; PrivateEndpoint = privateEndpoint; PrivateLinkServiceConnectionState = privateLinkServiceConnectionState; ProvisioningState = provisioningState; - Sku = sku; - Tags = tags; Type = type; } } diff --git a/sdk/dotnet/MachineLearningServices/V20200601/Outputs/PrivateEndpointConnectionResponseResult.cs b/sdk/dotnet/MachineLearningServices/V20200601/Outputs/PrivateEndpointConnectionResponseResult.cs index 301e4980ee81..31e734fafefd 100644 --- a/sdk/dotnet/MachineLearningServices/V20200601/Outputs/PrivateEndpointConnectionResponseResult.cs +++ b/sdk/dotnet/MachineLearningServices/V20200601/Outputs/PrivateEndpointConnectionResponseResult.cs @@ -14,19 +14,11 @@ namespace Pulumi.AzureRM.MachineLearningServices.V20200601.Outputs public sealed class PrivateEndpointConnectionResponseResult { /// - /// Specifies the resource ID. + /// ResourceId of the private endpoint connection. /// public readonly string Id; /// - /// The identity of the resource. - /// - public readonly Outputs.IdentityResponseResult? Identity; - /// - /// Specifies the location of the resource. - /// - public readonly string? Location; - /// - /// Specifies the name of the resource. + /// Friendly name of the private endpoint connection. /// public readonly string Name; /// @@ -42,15 +34,7 @@ public sealed class PrivateEndpointConnectionResponseResult /// public readonly string? ProvisioningState; /// - /// The sku of the workspace. - /// - public readonly Outputs.SkuResponseResult? Sku; - /// - /// Contains resource tags defined as key/value pairs. - /// - public readonly ImmutableDictionary? Tags; - /// - /// Specifies the type of the resource. + /// Resource type of private endpoint connection. /// public readonly string Type; @@ -58,10 +42,6 @@ public sealed class PrivateEndpointConnectionResponseResult private PrivateEndpointConnectionResponseResult( string id, - Outputs.IdentityResponseResult? identity, - - string? location, - string name, Outputs.PrivateEndpointResponseResult? privateEndpoint, @@ -70,21 +50,13 @@ private PrivateEndpointConnectionResponseResult( string? provisioningState, - Outputs.SkuResponseResult? sku, - - ImmutableDictionary? tags, - string type) { Id = id; - Identity = identity; - Location = location; Name = name; PrivateEndpoint = privateEndpoint; PrivateLinkServiceConnectionState = privateLinkServiceConnectionState; ProvisioningState = provisioningState; - Sku = sku; - Tags = tags; Type = type; } } diff --git a/sdk/dotnet/MachineLearningServices/V20200601/PrivateEndpointConnection.cs b/sdk/dotnet/MachineLearningServices/V20200601/PrivateEndpointConnection.cs index 707a4fccc92e..ffa27296119d 100644 --- a/sdk/dotnet/MachineLearningServices/V20200601/PrivateEndpointConnection.cs +++ b/sdk/dotnet/MachineLearningServices/V20200601/PrivateEndpointConnection.cs @@ -15,19 +15,7 @@ namespace Pulumi.AzureRM.MachineLearningServices.V20200601 public partial class PrivateEndpointConnection : Pulumi.CustomResource { /// - /// The identity of the resource. - /// - [Output("identity")] - public Output Identity { get; private set; } = null!; - - /// - /// Specifies the location of the resource. - /// - [Output("location")] - public Output Location { get; private set; } = null!; - - /// - /// Specifies the name of the resource. + /// Friendly name of the private endpoint connection. /// [Output("name")] public Output Name { get; private set; } = null!; @@ -51,19 +39,7 @@ public partial class PrivateEndpointConnection : Pulumi.CustomResource public Output ProvisioningState { get; private set; } = null!; /// - /// The sku of the workspace. - /// - [Output("sku")] - public Output Sku { get; private set; } = null!; - - /// - /// Contains resource tags defined as key/value pairs. - /// - [Output("tags")] - public Output?> Tags { get; private set; } = null!; - - /// - /// Specifies the type of the resource. + /// Resource type of private endpoint connection. /// [Output("type")] public Output Type { get; private set; } = null!; @@ -124,18 +100,6 @@ public static PrivateEndpointConnection Get(string name, Input id, Custo public sealed class PrivateEndpointConnectionArgs : Pulumi.ResourceArgs { - /// - /// The identity of the resource. - /// - [Input("identity")] - public Input? Identity { get; set; } - - /// - /// Specifies the location of the resource. - /// - [Input("location")] - public Input? Location { get; set; } - /// /// The name of the private endpoint connection associated with the workspace /// @@ -160,24 +124,6 @@ public sealed class PrivateEndpointConnectionArgs : Pulumi.ResourceArgs [Input("resourceGroupName", required: true)] public Input ResourceGroupName { get; set; } = null!; - /// - /// The sku of the workspace. - /// - [Input("sku")] - public Input? Sku { get; set; } - - [Input("tags")] - private InputMap? _tags; - - /// - /// Contains resource tags defined as key/value pairs. - /// - public InputMap Tags - { - get => _tags ?? (_tags = new InputMap()); - set => _tags = value; - } - /// /// Name of Azure Machine Learning workspace. /// diff --git a/sdk/go/azurerm/alertsmanagement/v20200804preview/getHealthAlert.go b/sdk/go/azurerm/alertsmanagement/v20200804preview/getHealthAlert.go new file mode 100644 index 000000000000..8df8447452ab --- /dev/null +++ b/sdk/go/azurerm/alertsmanagement/v20200804preview/getHealthAlert.go @@ -0,0 +1,48 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package v20200804preview + +import ( + "github.com/pulumi/pulumi/sdk/v2/go/pulumi" +) + +func LookupHealthAlert(ctx *pulumi.Context, args *LookupHealthAlertArgs, opts ...pulumi.InvokeOption) (*LookupHealthAlertResult, error) { + var rv LookupHealthAlertResult + err := ctx.Invoke("azurerm:alertsmanagement/v20200804preview:getHealthAlert", args, &rv, opts...) + if err != nil { + return nil, err + } + return &rv, nil +} + +type LookupHealthAlertArgs struct { + // The name of the resource group. + ResourceGroupName string `pulumi:"resourceGroupName"` + // The name of the rule. + RuleName string `pulumi:"ruleName"` +} + +// The health alert resource. +type LookupHealthAlertResult struct { + // the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved. + Actions []HealthAlertActionResponse `pulumi:"actions"` + // defines the specific alert criteria information. + Criteria HealthAlertCriteriaResponse `pulumi:"criteria"` + // the description of the health alert that will be included in the alert email. + Description string `pulumi:"description"` + // the flag that indicates whether the health alert is enabled. + Enabled bool `pulumi:"enabled"` + // Last time the rule was updated in ISO8601 format. + LastUpdatedTime string `pulumi:"lastUpdatedTime"` + // Resource location + Location string `pulumi:"location"` + // Azure resource name + Name string `pulumi:"name"` + // the list of resource id's that this health alert is scoped to. + Scopes []string `pulumi:"scopes"` + // Resource tags + Tags map[string]string `pulumi:"tags"` + // Azure resource type + Type string `pulumi:"type"` +} diff --git a/sdk/go/azurerm/alertsmanagement/v20200804preview/healthAlert.go b/sdk/go/azurerm/alertsmanagement/v20200804preview/healthAlert.go new file mode 100644 index 000000000000..3159b903aa05 --- /dev/null +++ b/sdk/go/azurerm/alertsmanagement/v20200804preview/healthAlert.go @@ -0,0 +1,179 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package v20200804preview + +import ( + "reflect" + + "github.com/pkg/errors" + "github.com/pulumi/pulumi/sdk/v2/go/pulumi" +) + +// The health alert resource. +type HealthAlert struct { + pulumi.CustomResourceState + + // the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved. + Actions HealthAlertActionResponseArrayOutput `pulumi:"actions"` + // defines the specific alert criteria information. + Criteria HealthAlertCriteriaResponseOutput `pulumi:"criteria"` + // the description of the health alert that will be included in the alert email. + Description pulumi.StringOutput `pulumi:"description"` + // the flag that indicates whether the health alert is enabled. + Enabled pulumi.BoolOutput `pulumi:"enabled"` + // Last time the rule was updated in ISO8601 format. + LastUpdatedTime pulumi.StringOutput `pulumi:"lastUpdatedTime"` + // Resource location + Location pulumi.StringOutput `pulumi:"location"` + // Azure resource name + Name pulumi.StringOutput `pulumi:"name"` + // the list of resource id's that this health alert is scoped to. + Scopes pulumi.StringArrayOutput `pulumi:"scopes"` + // Resource tags + Tags pulumi.StringMapOutput `pulumi:"tags"` + // Azure resource type + Type pulumi.StringOutput `pulumi:"type"` +} + +// NewHealthAlert registers a new resource with the given unique name, arguments, and options. +func NewHealthAlert(ctx *pulumi.Context, + name string, args *HealthAlertArgs, opts ...pulumi.ResourceOption) (*HealthAlert, error) { + if args == nil || args.Criteria == nil { + return nil, errors.New("missing required argument 'Criteria'") + } + if args == nil || args.Description == nil { + return nil, errors.New("missing required argument 'Description'") + } + if args == nil || args.Enabled == nil { + return nil, errors.New("missing required argument 'Enabled'") + } + if args == nil || args.Location == nil { + return nil, errors.New("missing required argument 'Location'") + } + if args == nil || args.ResourceGroupName == nil { + return nil, errors.New("missing required argument 'ResourceGroupName'") + } + if args == nil || args.RuleName == nil { + return nil, errors.New("missing required argument 'RuleName'") + } + if args == nil { + args = &HealthAlertArgs{} + } + var resource HealthAlert + err := ctx.RegisterResource("azurerm:alertsmanagement/v20200804preview:HealthAlert", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetHealthAlert gets an existing HealthAlert resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetHealthAlert(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *HealthAlertState, opts ...pulumi.ResourceOption) (*HealthAlert, error) { + var resource HealthAlert + err := ctx.ReadResource("azurerm:alertsmanagement/v20200804preview:HealthAlert", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering HealthAlert resources. +type healthAlertState struct { + // the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved. + Actions []HealthAlertActionResponse `pulumi:"actions"` + // defines the specific alert criteria information. + Criteria *HealthAlertCriteriaResponse `pulumi:"criteria"` + // the description of the health alert that will be included in the alert email. + Description *string `pulumi:"description"` + // the flag that indicates whether the health alert is enabled. + Enabled *bool `pulumi:"enabled"` + // Last time the rule was updated in ISO8601 format. + LastUpdatedTime *string `pulumi:"lastUpdatedTime"` + // Resource location + Location *string `pulumi:"location"` + // Azure resource name + Name *string `pulumi:"name"` + // the list of resource id's that this health alert is scoped to. + Scopes []string `pulumi:"scopes"` + // Resource tags + Tags map[string]string `pulumi:"tags"` + // Azure resource type + Type *string `pulumi:"type"` +} + +type HealthAlertState struct { + // the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved. + Actions HealthAlertActionResponseArrayInput + // defines the specific alert criteria information. + Criteria HealthAlertCriteriaResponsePtrInput + // the description of the health alert that will be included in the alert email. + Description pulumi.StringPtrInput + // the flag that indicates whether the health alert is enabled. + Enabled pulumi.BoolPtrInput + // Last time the rule was updated in ISO8601 format. + LastUpdatedTime pulumi.StringPtrInput + // Resource location + Location pulumi.StringPtrInput + // Azure resource name + Name pulumi.StringPtrInput + // the list of resource id's that this health alert is scoped to. + Scopes pulumi.StringArrayInput + // Resource tags + Tags pulumi.StringMapInput + // Azure resource type + Type pulumi.StringPtrInput +} + +func (HealthAlertState) ElementType() reflect.Type { + return reflect.TypeOf((*healthAlertState)(nil)).Elem() +} + +type healthAlertArgs struct { + // the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved. + Actions []HealthAlertAction `pulumi:"actions"` + // defines the specific alert criteria information. + Criteria HealthAlertCriteria `pulumi:"criteria"` + // the description of the health alert that will be included in the alert email. + Description string `pulumi:"description"` + // the flag that indicates whether the health alert is enabled. + Enabled bool `pulumi:"enabled"` + // Resource location + Location string `pulumi:"location"` + // The name of the resource group. + ResourceGroupName string `pulumi:"resourceGroupName"` + // The name of the rule. + RuleName string `pulumi:"ruleName"` + // the list of resource id's that this health alert is scoped to. + Scopes []string `pulumi:"scopes"` + // Resource tags + Tags map[string]string `pulumi:"tags"` +} + +// The set of arguments for constructing a HealthAlert resource. +type HealthAlertArgs struct { + // the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved. + Actions HealthAlertActionArrayInput + // defines the specific alert criteria information. + Criteria HealthAlertCriteriaInput + // the description of the health alert that will be included in the alert email. + Description pulumi.StringInput + // the flag that indicates whether the health alert is enabled. + Enabled pulumi.BoolInput + // Resource location + Location pulumi.StringInput + // The name of the resource group. + ResourceGroupName pulumi.StringInput + // The name of the rule. + RuleName pulumi.StringInput + // the list of resource id's that this health alert is scoped to. + Scopes pulumi.StringArrayInput + // Resource tags + Tags pulumi.StringMapInput +} + +func (HealthAlertArgs) ElementType() reflect.Type { + return reflect.TypeOf((*healthAlertArgs)(nil)).Elem() +} diff --git a/sdk/go/azurerm/alertsmanagement/v20200804preview/pulumiTypes.go b/sdk/go/azurerm/alertsmanagement/v20200804preview/pulumiTypes.go new file mode 100644 index 000000000000..46d9a2e00a3c --- /dev/null +++ b/sdk/go/azurerm/alertsmanagement/v20200804preview/pulumiTypes.go @@ -0,0 +1,970 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package v20200804preview + +import ( + "context" + "reflect" + + "github.com/pulumi/pulumi/sdk/v2/go/pulumi" +) + +// An alert action. +type HealthAlertAction struct { + // the id of the action group to use. + ActionGroupId *string `pulumi:"actionGroupId"` + // The properties of a webhook object. + WebHookProperties map[string]string `pulumi:"webHookProperties"` +} + +// HealthAlertActionInput is an input type that accepts HealthAlertActionArgs and HealthAlertActionOutput values. +// You can construct a concrete instance of `HealthAlertActionInput` via: +// +// HealthAlertActionArgs{...} +type HealthAlertActionInput interface { + pulumi.Input + + ToHealthAlertActionOutput() HealthAlertActionOutput + ToHealthAlertActionOutputWithContext(context.Context) HealthAlertActionOutput +} + +// An alert action. +type HealthAlertActionArgs struct { + // the id of the action group to use. + ActionGroupId pulumi.StringPtrInput `pulumi:"actionGroupId"` + // The properties of a webhook object. + WebHookProperties pulumi.StringMapInput `pulumi:"webHookProperties"` +} + +func (HealthAlertActionArgs) ElementType() reflect.Type { + return reflect.TypeOf((*HealthAlertAction)(nil)).Elem() +} + +func (i HealthAlertActionArgs) ToHealthAlertActionOutput() HealthAlertActionOutput { + return i.ToHealthAlertActionOutputWithContext(context.Background()) +} + +func (i HealthAlertActionArgs) ToHealthAlertActionOutputWithContext(ctx context.Context) HealthAlertActionOutput { + return pulumi.ToOutputWithContext(ctx, i).(HealthAlertActionOutput) +} + +// HealthAlertActionArrayInput is an input type that accepts HealthAlertActionArray and HealthAlertActionArrayOutput values. +// You can construct a concrete instance of `HealthAlertActionArrayInput` via: +// +// HealthAlertActionArray{ HealthAlertActionArgs{...} } +type HealthAlertActionArrayInput interface { + pulumi.Input + + ToHealthAlertActionArrayOutput() HealthAlertActionArrayOutput + ToHealthAlertActionArrayOutputWithContext(context.Context) HealthAlertActionArrayOutput +} + +type HealthAlertActionArray []HealthAlertActionInput + +func (HealthAlertActionArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]HealthAlertAction)(nil)).Elem() +} + +func (i HealthAlertActionArray) ToHealthAlertActionArrayOutput() HealthAlertActionArrayOutput { + return i.ToHealthAlertActionArrayOutputWithContext(context.Background()) +} + +func (i HealthAlertActionArray) ToHealthAlertActionArrayOutputWithContext(ctx context.Context) HealthAlertActionArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(HealthAlertActionArrayOutput) +} + +// An alert action. +type HealthAlertActionOutput struct{ *pulumi.OutputState } + +func (HealthAlertActionOutput) ElementType() reflect.Type { + return reflect.TypeOf((*HealthAlertAction)(nil)).Elem() +} + +func (o HealthAlertActionOutput) ToHealthAlertActionOutput() HealthAlertActionOutput { + return o +} + +func (o HealthAlertActionOutput) ToHealthAlertActionOutputWithContext(ctx context.Context) HealthAlertActionOutput { + return o +} + +// the id of the action group to use. +func (o HealthAlertActionOutput) ActionGroupId() pulumi.StringPtrOutput { + return o.ApplyT(func(v HealthAlertAction) *string { return v.ActionGroupId }).(pulumi.StringPtrOutput) +} + +// The properties of a webhook object. +func (o HealthAlertActionOutput) WebHookProperties() pulumi.StringMapOutput { + return o.ApplyT(func(v HealthAlertAction) map[string]string { return v.WebHookProperties }).(pulumi.StringMapOutput) +} + +type HealthAlertActionArrayOutput struct{ *pulumi.OutputState } + +func (HealthAlertActionArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]HealthAlertAction)(nil)).Elem() +} + +func (o HealthAlertActionArrayOutput) ToHealthAlertActionArrayOutput() HealthAlertActionArrayOutput { + return o +} + +func (o HealthAlertActionArrayOutput) ToHealthAlertActionArrayOutputWithContext(ctx context.Context) HealthAlertActionArrayOutput { + return o +} + +func (o HealthAlertActionArrayOutput) Index(i pulumi.IntInput) HealthAlertActionOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) HealthAlertAction { + return vs[0].([]HealthAlertAction)[vs[1].(int)] + }).(HealthAlertActionOutput) +} + +// An alert action. +type HealthAlertActionResponse struct { + // the id of the action group to use. + ActionGroupId *string `pulumi:"actionGroupId"` + // The properties of a webhook object. + WebHookProperties map[string]string `pulumi:"webHookProperties"` +} + +// HealthAlertActionResponseInput is an input type that accepts HealthAlertActionResponseArgs and HealthAlertActionResponseOutput values. +// You can construct a concrete instance of `HealthAlertActionResponseInput` via: +// +// HealthAlertActionResponseArgs{...} +type HealthAlertActionResponseInput interface { + pulumi.Input + + ToHealthAlertActionResponseOutput() HealthAlertActionResponseOutput + ToHealthAlertActionResponseOutputWithContext(context.Context) HealthAlertActionResponseOutput +} + +// An alert action. +type HealthAlertActionResponseArgs struct { + // the id of the action group to use. + ActionGroupId pulumi.StringPtrInput `pulumi:"actionGroupId"` + // The properties of a webhook object. + WebHookProperties pulumi.StringMapInput `pulumi:"webHookProperties"` +} + +func (HealthAlertActionResponseArgs) ElementType() reflect.Type { + return reflect.TypeOf((*HealthAlertActionResponse)(nil)).Elem() +} + +func (i HealthAlertActionResponseArgs) ToHealthAlertActionResponseOutput() HealthAlertActionResponseOutput { + return i.ToHealthAlertActionResponseOutputWithContext(context.Background()) +} + +func (i HealthAlertActionResponseArgs) ToHealthAlertActionResponseOutputWithContext(ctx context.Context) HealthAlertActionResponseOutput { + return pulumi.ToOutputWithContext(ctx, i).(HealthAlertActionResponseOutput) +} + +// HealthAlertActionResponseArrayInput is an input type that accepts HealthAlertActionResponseArray and HealthAlertActionResponseArrayOutput values. +// You can construct a concrete instance of `HealthAlertActionResponseArrayInput` via: +// +// HealthAlertActionResponseArray{ HealthAlertActionResponseArgs{...} } +type HealthAlertActionResponseArrayInput interface { + pulumi.Input + + ToHealthAlertActionResponseArrayOutput() HealthAlertActionResponseArrayOutput + ToHealthAlertActionResponseArrayOutputWithContext(context.Context) HealthAlertActionResponseArrayOutput +} + +type HealthAlertActionResponseArray []HealthAlertActionResponseInput + +func (HealthAlertActionResponseArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]HealthAlertActionResponse)(nil)).Elem() +} + +func (i HealthAlertActionResponseArray) ToHealthAlertActionResponseArrayOutput() HealthAlertActionResponseArrayOutput { + return i.ToHealthAlertActionResponseArrayOutputWithContext(context.Background()) +} + +func (i HealthAlertActionResponseArray) ToHealthAlertActionResponseArrayOutputWithContext(ctx context.Context) HealthAlertActionResponseArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(HealthAlertActionResponseArrayOutput) +} + +// An alert action. +type HealthAlertActionResponseOutput struct{ *pulumi.OutputState } + +func (HealthAlertActionResponseOutput) ElementType() reflect.Type { + return reflect.TypeOf((*HealthAlertActionResponse)(nil)).Elem() +} + +func (o HealthAlertActionResponseOutput) ToHealthAlertActionResponseOutput() HealthAlertActionResponseOutput { + return o +} + +func (o HealthAlertActionResponseOutput) ToHealthAlertActionResponseOutputWithContext(ctx context.Context) HealthAlertActionResponseOutput { + return o +} + +// the id of the action group to use. +func (o HealthAlertActionResponseOutput) ActionGroupId() pulumi.StringPtrOutput { + return o.ApplyT(func(v HealthAlertActionResponse) *string { return v.ActionGroupId }).(pulumi.StringPtrOutput) +} + +// The properties of a webhook object. +func (o HealthAlertActionResponseOutput) WebHookProperties() pulumi.StringMapOutput { + return o.ApplyT(func(v HealthAlertActionResponse) map[string]string { return v.WebHookProperties }).(pulumi.StringMapOutput) +} + +type HealthAlertActionResponseArrayOutput struct{ *pulumi.OutputState } + +func (HealthAlertActionResponseArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]HealthAlertActionResponse)(nil)).Elem() +} + +func (o HealthAlertActionResponseArrayOutput) ToHealthAlertActionResponseArrayOutput() HealthAlertActionResponseArrayOutput { + return o +} + +func (o HealthAlertActionResponseArrayOutput) ToHealthAlertActionResponseArrayOutputWithContext(ctx context.Context) HealthAlertActionResponseArrayOutput { + return o +} + +func (o HealthAlertActionResponseArrayOutput) Index(i pulumi.IntInput) HealthAlertActionResponseOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) HealthAlertActionResponse { + return vs[0].([]HealthAlertActionResponse)[vs[1].(int)] + }).(HealthAlertActionResponseOutput) +} + +// Specifies the resource health alert criteria for a single resource that has multiple metric criteria. +type HealthAlertCriteria struct { + // The list of metric criteria for this 'all of' operation. + AllOf []VmGuestHealthAlertCriterion `pulumi:"allOf"` +} + +// HealthAlertCriteriaInput is an input type that accepts HealthAlertCriteriaArgs and HealthAlertCriteriaOutput values. +// You can construct a concrete instance of `HealthAlertCriteriaInput` via: +// +// HealthAlertCriteriaArgs{...} +type HealthAlertCriteriaInput interface { + pulumi.Input + + ToHealthAlertCriteriaOutput() HealthAlertCriteriaOutput + ToHealthAlertCriteriaOutputWithContext(context.Context) HealthAlertCriteriaOutput +} + +// Specifies the resource health alert criteria for a single resource that has multiple metric criteria. +type HealthAlertCriteriaArgs struct { + // The list of metric criteria for this 'all of' operation. + AllOf VmGuestHealthAlertCriterionArrayInput `pulumi:"allOf"` +} + +func (HealthAlertCriteriaArgs) ElementType() reflect.Type { + return reflect.TypeOf((*HealthAlertCriteria)(nil)).Elem() +} + +func (i HealthAlertCriteriaArgs) ToHealthAlertCriteriaOutput() HealthAlertCriteriaOutput { + return i.ToHealthAlertCriteriaOutputWithContext(context.Background()) +} + +func (i HealthAlertCriteriaArgs) ToHealthAlertCriteriaOutputWithContext(ctx context.Context) HealthAlertCriteriaOutput { + return pulumi.ToOutputWithContext(ctx, i).(HealthAlertCriteriaOutput) +} + +func (i HealthAlertCriteriaArgs) ToHealthAlertCriteriaPtrOutput() HealthAlertCriteriaPtrOutput { + return i.ToHealthAlertCriteriaPtrOutputWithContext(context.Background()) +} + +func (i HealthAlertCriteriaArgs) ToHealthAlertCriteriaPtrOutputWithContext(ctx context.Context) HealthAlertCriteriaPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(HealthAlertCriteriaOutput).ToHealthAlertCriteriaPtrOutputWithContext(ctx) +} + +// HealthAlertCriteriaPtrInput is an input type that accepts HealthAlertCriteriaArgs, HealthAlertCriteriaPtr and HealthAlertCriteriaPtrOutput values. +// You can construct a concrete instance of `HealthAlertCriteriaPtrInput` via: +// +// HealthAlertCriteriaArgs{...} +// +// or: +// +// nil +type HealthAlertCriteriaPtrInput interface { + pulumi.Input + + ToHealthAlertCriteriaPtrOutput() HealthAlertCriteriaPtrOutput + ToHealthAlertCriteriaPtrOutputWithContext(context.Context) HealthAlertCriteriaPtrOutput +} + +type healthAlertCriteriaPtrType HealthAlertCriteriaArgs + +func HealthAlertCriteriaPtr(v *HealthAlertCriteriaArgs) HealthAlertCriteriaPtrInput { + return (*healthAlertCriteriaPtrType)(v) +} + +func (*healthAlertCriteriaPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**HealthAlertCriteria)(nil)).Elem() +} + +func (i *healthAlertCriteriaPtrType) ToHealthAlertCriteriaPtrOutput() HealthAlertCriteriaPtrOutput { + return i.ToHealthAlertCriteriaPtrOutputWithContext(context.Background()) +} + +func (i *healthAlertCriteriaPtrType) ToHealthAlertCriteriaPtrOutputWithContext(ctx context.Context) HealthAlertCriteriaPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(HealthAlertCriteriaPtrOutput) +} + +// Specifies the resource health alert criteria for a single resource that has multiple metric criteria. +type HealthAlertCriteriaOutput struct{ *pulumi.OutputState } + +func (HealthAlertCriteriaOutput) ElementType() reflect.Type { + return reflect.TypeOf((*HealthAlertCriteria)(nil)).Elem() +} + +func (o HealthAlertCriteriaOutput) ToHealthAlertCriteriaOutput() HealthAlertCriteriaOutput { + return o +} + +func (o HealthAlertCriteriaOutput) ToHealthAlertCriteriaOutputWithContext(ctx context.Context) HealthAlertCriteriaOutput { + return o +} + +func (o HealthAlertCriteriaOutput) ToHealthAlertCriteriaPtrOutput() HealthAlertCriteriaPtrOutput { + return o.ToHealthAlertCriteriaPtrOutputWithContext(context.Background()) +} + +func (o HealthAlertCriteriaOutput) ToHealthAlertCriteriaPtrOutputWithContext(ctx context.Context) HealthAlertCriteriaPtrOutput { + return o.ApplyT(func(v HealthAlertCriteria) *HealthAlertCriteria { + return &v + }).(HealthAlertCriteriaPtrOutput) +} + +// The list of metric criteria for this 'all of' operation. +func (o HealthAlertCriteriaOutput) AllOf() VmGuestHealthAlertCriterionArrayOutput { + return o.ApplyT(func(v HealthAlertCriteria) []VmGuestHealthAlertCriterion { return v.AllOf }).(VmGuestHealthAlertCriterionArrayOutput) +} + +type HealthAlertCriteriaPtrOutput struct{ *pulumi.OutputState } + +func (HealthAlertCriteriaPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**HealthAlertCriteria)(nil)).Elem() +} + +func (o HealthAlertCriteriaPtrOutput) ToHealthAlertCriteriaPtrOutput() HealthAlertCriteriaPtrOutput { + return o +} + +func (o HealthAlertCriteriaPtrOutput) ToHealthAlertCriteriaPtrOutputWithContext(ctx context.Context) HealthAlertCriteriaPtrOutput { + return o +} + +func (o HealthAlertCriteriaPtrOutput) Elem() HealthAlertCriteriaOutput { + return o.ApplyT(func(v *HealthAlertCriteria) HealthAlertCriteria { return *v }).(HealthAlertCriteriaOutput) +} + +// The list of metric criteria for this 'all of' operation. +func (o HealthAlertCriteriaPtrOutput) AllOf() VmGuestHealthAlertCriterionArrayOutput { + return o.ApplyT(func(v *HealthAlertCriteria) []VmGuestHealthAlertCriterion { + if v == nil { + return nil + } + return v.AllOf + }).(VmGuestHealthAlertCriterionArrayOutput) +} + +// Specifies the resource health alert criteria for a single resource that has multiple metric criteria. +type HealthAlertCriteriaResponse struct { + // The list of metric criteria for this 'all of' operation. + AllOf []VmGuestHealthAlertCriterionResponse `pulumi:"allOf"` +} + +// HealthAlertCriteriaResponseInput is an input type that accepts HealthAlertCriteriaResponseArgs and HealthAlertCriteriaResponseOutput values. +// You can construct a concrete instance of `HealthAlertCriteriaResponseInput` via: +// +// HealthAlertCriteriaResponseArgs{...} +type HealthAlertCriteriaResponseInput interface { + pulumi.Input + + ToHealthAlertCriteriaResponseOutput() HealthAlertCriteriaResponseOutput + ToHealthAlertCriteriaResponseOutputWithContext(context.Context) HealthAlertCriteriaResponseOutput +} + +// Specifies the resource health alert criteria for a single resource that has multiple metric criteria. +type HealthAlertCriteriaResponseArgs struct { + // The list of metric criteria for this 'all of' operation. + AllOf VmGuestHealthAlertCriterionResponseArrayInput `pulumi:"allOf"` +} + +func (HealthAlertCriteriaResponseArgs) ElementType() reflect.Type { + return reflect.TypeOf((*HealthAlertCriteriaResponse)(nil)).Elem() +} + +func (i HealthAlertCriteriaResponseArgs) ToHealthAlertCriteriaResponseOutput() HealthAlertCriteriaResponseOutput { + return i.ToHealthAlertCriteriaResponseOutputWithContext(context.Background()) +} + +func (i HealthAlertCriteriaResponseArgs) ToHealthAlertCriteriaResponseOutputWithContext(ctx context.Context) HealthAlertCriteriaResponseOutput { + return pulumi.ToOutputWithContext(ctx, i).(HealthAlertCriteriaResponseOutput) +} + +func (i HealthAlertCriteriaResponseArgs) ToHealthAlertCriteriaResponsePtrOutput() HealthAlertCriteriaResponsePtrOutput { + return i.ToHealthAlertCriteriaResponsePtrOutputWithContext(context.Background()) +} + +func (i HealthAlertCriteriaResponseArgs) ToHealthAlertCriteriaResponsePtrOutputWithContext(ctx context.Context) HealthAlertCriteriaResponsePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(HealthAlertCriteriaResponseOutput).ToHealthAlertCriteriaResponsePtrOutputWithContext(ctx) +} + +// HealthAlertCriteriaResponsePtrInput is an input type that accepts HealthAlertCriteriaResponseArgs, HealthAlertCriteriaResponsePtr and HealthAlertCriteriaResponsePtrOutput values. +// You can construct a concrete instance of `HealthAlertCriteriaResponsePtrInput` via: +// +// HealthAlertCriteriaResponseArgs{...} +// +// or: +// +// nil +type HealthAlertCriteriaResponsePtrInput interface { + pulumi.Input + + ToHealthAlertCriteriaResponsePtrOutput() HealthAlertCriteriaResponsePtrOutput + ToHealthAlertCriteriaResponsePtrOutputWithContext(context.Context) HealthAlertCriteriaResponsePtrOutput +} + +type healthAlertCriteriaResponsePtrType HealthAlertCriteriaResponseArgs + +func HealthAlertCriteriaResponsePtr(v *HealthAlertCriteriaResponseArgs) HealthAlertCriteriaResponsePtrInput { + return (*healthAlertCriteriaResponsePtrType)(v) +} + +func (*healthAlertCriteriaResponsePtrType) ElementType() reflect.Type { + return reflect.TypeOf((**HealthAlertCriteriaResponse)(nil)).Elem() +} + +func (i *healthAlertCriteriaResponsePtrType) ToHealthAlertCriteriaResponsePtrOutput() HealthAlertCriteriaResponsePtrOutput { + return i.ToHealthAlertCriteriaResponsePtrOutputWithContext(context.Background()) +} + +func (i *healthAlertCriteriaResponsePtrType) ToHealthAlertCriteriaResponsePtrOutputWithContext(ctx context.Context) HealthAlertCriteriaResponsePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(HealthAlertCriteriaResponsePtrOutput) +} + +// Specifies the resource health alert criteria for a single resource that has multiple metric criteria. +type HealthAlertCriteriaResponseOutput struct{ *pulumi.OutputState } + +func (HealthAlertCriteriaResponseOutput) ElementType() reflect.Type { + return reflect.TypeOf((*HealthAlertCriteriaResponse)(nil)).Elem() +} + +func (o HealthAlertCriteriaResponseOutput) ToHealthAlertCriteriaResponseOutput() HealthAlertCriteriaResponseOutput { + return o +} + +func (o HealthAlertCriteriaResponseOutput) ToHealthAlertCriteriaResponseOutputWithContext(ctx context.Context) HealthAlertCriteriaResponseOutput { + return o +} + +func (o HealthAlertCriteriaResponseOutput) ToHealthAlertCriteriaResponsePtrOutput() HealthAlertCriteriaResponsePtrOutput { + return o.ToHealthAlertCriteriaResponsePtrOutputWithContext(context.Background()) +} + +func (o HealthAlertCriteriaResponseOutput) ToHealthAlertCriteriaResponsePtrOutputWithContext(ctx context.Context) HealthAlertCriteriaResponsePtrOutput { + return o.ApplyT(func(v HealthAlertCriteriaResponse) *HealthAlertCriteriaResponse { + return &v + }).(HealthAlertCriteriaResponsePtrOutput) +} + +// The list of metric criteria for this 'all of' operation. +func (o HealthAlertCriteriaResponseOutput) AllOf() VmGuestHealthAlertCriterionResponseArrayOutput { + return o.ApplyT(func(v HealthAlertCriteriaResponse) []VmGuestHealthAlertCriterionResponse { return v.AllOf }).(VmGuestHealthAlertCriterionResponseArrayOutput) +} + +type HealthAlertCriteriaResponsePtrOutput struct{ *pulumi.OutputState } + +func (HealthAlertCriteriaResponsePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**HealthAlertCriteriaResponse)(nil)).Elem() +} + +func (o HealthAlertCriteriaResponsePtrOutput) ToHealthAlertCriteriaResponsePtrOutput() HealthAlertCriteriaResponsePtrOutput { + return o +} + +func (o HealthAlertCriteriaResponsePtrOutput) ToHealthAlertCriteriaResponsePtrOutputWithContext(ctx context.Context) HealthAlertCriteriaResponsePtrOutput { + return o +} + +func (o HealthAlertCriteriaResponsePtrOutput) Elem() HealthAlertCriteriaResponseOutput { + return o.ApplyT(func(v *HealthAlertCriteriaResponse) HealthAlertCriteriaResponse { return *v }).(HealthAlertCriteriaResponseOutput) +} + +// The list of metric criteria for this 'all of' operation. +func (o HealthAlertCriteriaResponsePtrOutput) AllOf() VmGuestHealthAlertCriterionResponseArrayOutput { + return o.ApplyT(func(v *HealthAlertCriteriaResponse) []VmGuestHealthAlertCriterionResponse { + if v == nil { + return nil + } + return v.AllOf + }).(VmGuestHealthAlertCriterionResponseArrayOutput) +} + +// Specifies the health state to alert on and the corresponding severity +type HealthState struct { + // Health state + HealthStateName string `pulumi:"healthStateName"` + // Severity of alert fired + Severity string `pulumi:"severity"` +} + +// HealthStateInput is an input type that accepts HealthStateArgs and HealthStateOutput values. +// You can construct a concrete instance of `HealthStateInput` via: +// +// HealthStateArgs{...} +type HealthStateInput interface { + pulumi.Input + + ToHealthStateOutput() HealthStateOutput + ToHealthStateOutputWithContext(context.Context) HealthStateOutput +} + +// Specifies the health state to alert on and the corresponding severity +type HealthStateArgs struct { + // Health state + HealthStateName pulumi.StringInput `pulumi:"healthStateName"` + // Severity of alert fired + Severity pulumi.StringInput `pulumi:"severity"` +} + +func (HealthStateArgs) ElementType() reflect.Type { + return reflect.TypeOf((*HealthState)(nil)).Elem() +} + +func (i HealthStateArgs) ToHealthStateOutput() HealthStateOutput { + return i.ToHealthStateOutputWithContext(context.Background()) +} + +func (i HealthStateArgs) ToHealthStateOutputWithContext(ctx context.Context) HealthStateOutput { + return pulumi.ToOutputWithContext(ctx, i).(HealthStateOutput) +} + +// HealthStateArrayInput is an input type that accepts HealthStateArray and HealthStateArrayOutput values. +// You can construct a concrete instance of `HealthStateArrayInput` via: +// +// HealthStateArray{ HealthStateArgs{...} } +type HealthStateArrayInput interface { + pulumi.Input + + ToHealthStateArrayOutput() HealthStateArrayOutput + ToHealthStateArrayOutputWithContext(context.Context) HealthStateArrayOutput +} + +type HealthStateArray []HealthStateInput + +func (HealthStateArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]HealthState)(nil)).Elem() +} + +func (i HealthStateArray) ToHealthStateArrayOutput() HealthStateArrayOutput { + return i.ToHealthStateArrayOutputWithContext(context.Background()) +} + +func (i HealthStateArray) ToHealthStateArrayOutputWithContext(ctx context.Context) HealthStateArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(HealthStateArrayOutput) +} + +// Specifies the health state to alert on and the corresponding severity +type HealthStateOutput struct{ *pulumi.OutputState } + +func (HealthStateOutput) ElementType() reflect.Type { + return reflect.TypeOf((*HealthState)(nil)).Elem() +} + +func (o HealthStateOutput) ToHealthStateOutput() HealthStateOutput { + return o +} + +func (o HealthStateOutput) ToHealthStateOutputWithContext(ctx context.Context) HealthStateOutput { + return o +} + +// Health state +func (o HealthStateOutput) HealthStateName() pulumi.StringOutput { + return o.ApplyT(func(v HealthState) string { return v.HealthStateName }).(pulumi.StringOutput) +} + +// Severity of alert fired +func (o HealthStateOutput) Severity() pulumi.StringOutput { + return o.ApplyT(func(v HealthState) string { return v.Severity }).(pulumi.StringOutput) +} + +type HealthStateArrayOutput struct{ *pulumi.OutputState } + +func (HealthStateArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]HealthState)(nil)).Elem() +} + +func (o HealthStateArrayOutput) ToHealthStateArrayOutput() HealthStateArrayOutput { + return o +} + +func (o HealthStateArrayOutput) ToHealthStateArrayOutputWithContext(ctx context.Context) HealthStateArrayOutput { + return o +} + +func (o HealthStateArrayOutput) Index(i pulumi.IntInput) HealthStateOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) HealthState { + return vs[0].([]HealthState)[vs[1].(int)] + }).(HealthStateOutput) +} + +// Specifies the health state to alert on and the corresponding severity +type HealthStateResponse struct { + // Health state + HealthStateName string `pulumi:"healthStateName"` + // Severity of alert fired + Severity string `pulumi:"severity"` +} + +// HealthStateResponseInput is an input type that accepts HealthStateResponseArgs and HealthStateResponseOutput values. +// You can construct a concrete instance of `HealthStateResponseInput` via: +// +// HealthStateResponseArgs{...} +type HealthStateResponseInput interface { + pulumi.Input + + ToHealthStateResponseOutput() HealthStateResponseOutput + ToHealthStateResponseOutputWithContext(context.Context) HealthStateResponseOutput +} + +// Specifies the health state to alert on and the corresponding severity +type HealthStateResponseArgs struct { + // Health state + HealthStateName pulumi.StringInput `pulumi:"healthStateName"` + // Severity of alert fired + Severity pulumi.StringInput `pulumi:"severity"` +} + +func (HealthStateResponseArgs) ElementType() reflect.Type { + return reflect.TypeOf((*HealthStateResponse)(nil)).Elem() +} + +func (i HealthStateResponseArgs) ToHealthStateResponseOutput() HealthStateResponseOutput { + return i.ToHealthStateResponseOutputWithContext(context.Background()) +} + +func (i HealthStateResponseArgs) ToHealthStateResponseOutputWithContext(ctx context.Context) HealthStateResponseOutput { + return pulumi.ToOutputWithContext(ctx, i).(HealthStateResponseOutput) +} + +// HealthStateResponseArrayInput is an input type that accepts HealthStateResponseArray and HealthStateResponseArrayOutput values. +// You can construct a concrete instance of `HealthStateResponseArrayInput` via: +// +// HealthStateResponseArray{ HealthStateResponseArgs{...} } +type HealthStateResponseArrayInput interface { + pulumi.Input + + ToHealthStateResponseArrayOutput() HealthStateResponseArrayOutput + ToHealthStateResponseArrayOutputWithContext(context.Context) HealthStateResponseArrayOutput +} + +type HealthStateResponseArray []HealthStateResponseInput + +func (HealthStateResponseArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]HealthStateResponse)(nil)).Elem() +} + +func (i HealthStateResponseArray) ToHealthStateResponseArrayOutput() HealthStateResponseArrayOutput { + return i.ToHealthStateResponseArrayOutputWithContext(context.Background()) +} + +func (i HealthStateResponseArray) ToHealthStateResponseArrayOutputWithContext(ctx context.Context) HealthStateResponseArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(HealthStateResponseArrayOutput) +} + +// Specifies the health state to alert on and the corresponding severity +type HealthStateResponseOutput struct{ *pulumi.OutputState } + +func (HealthStateResponseOutput) ElementType() reflect.Type { + return reflect.TypeOf((*HealthStateResponse)(nil)).Elem() +} + +func (o HealthStateResponseOutput) ToHealthStateResponseOutput() HealthStateResponseOutput { + return o +} + +func (o HealthStateResponseOutput) ToHealthStateResponseOutputWithContext(ctx context.Context) HealthStateResponseOutput { + return o +} + +// Health state +func (o HealthStateResponseOutput) HealthStateName() pulumi.StringOutput { + return o.ApplyT(func(v HealthStateResponse) string { return v.HealthStateName }).(pulumi.StringOutput) +} + +// Severity of alert fired +func (o HealthStateResponseOutput) Severity() pulumi.StringOutput { + return o.ApplyT(func(v HealthStateResponse) string { return v.Severity }).(pulumi.StringOutput) +} + +type HealthStateResponseArrayOutput struct{ *pulumi.OutputState } + +func (HealthStateResponseArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]HealthStateResponse)(nil)).Elem() +} + +func (o HealthStateResponseArrayOutput) ToHealthStateResponseArrayOutput() HealthStateResponseArrayOutput { + return o +} + +func (o HealthStateResponseArrayOutput) ToHealthStateResponseArrayOutputWithContext(ctx context.Context) HealthStateResponseArrayOutput { + return o +} + +func (o HealthStateResponseArrayOutput) Index(i pulumi.IntInput) HealthStateResponseOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) HealthStateResponse { + return vs[0].([]HealthStateResponse)[vs[1].(int)] + }).(HealthStateResponseOutput) +} + +// Specifies the health alert criteria to alert on. +type VmGuestHealthAlertCriterion struct { + // Name of health monitor on which to define alert + HealthMonitorName string `pulumi:"healthMonitorName"` + // Health states to alert on + HealthStates []HealthState `pulumi:"healthStates"` + // specifies the type of the alert criterion. + Namespace string `pulumi:"namespace"` +} + +// VmGuestHealthAlertCriterionInput is an input type that accepts VmGuestHealthAlertCriterionArgs and VmGuestHealthAlertCriterionOutput values. +// You can construct a concrete instance of `VmGuestHealthAlertCriterionInput` via: +// +// VmGuestHealthAlertCriterionArgs{...} +type VmGuestHealthAlertCriterionInput interface { + pulumi.Input + + ToVmGuestHealthAlertCriterionOutput() VmGuestHealthAlertCriterionOutput + ToVmGuestHealthAlertCriterionOutputWithContext(context.Context) VmGuestHealthAlertCriterionOutput +} + +// Specifies the health alert criteria to alert on. +type VmGuestHealthAlertCriterionArgs struct { + // Name of health monitor on which to define alert + HealthMonitorName pulumi.StringInput `pulumi:"healthMonitorName"` + // Health states to alert on + HealthStates HealthStateArrayInput `pulumi:"healthStates"` + // specifies the type of the alert criterion. + Namespace pulumi.StringInput `pulumi:"namespace"` +} + +func (VmGuestHealthAlertCriterionArgs) ElementType() reflect.Type { + return reflect.TypeOf((*VmGuestHealthAlertCriterion)(nil)).Elem() +} + +func (i VmGuestHealthAlertCriterionArgs) ToVmGuestHealthAlertCriterionOutput() VmGuestHealthAlertCriterionOutput { + return i.ToVmGuestHealthAlertCriterionOutputWithContext(context.Background()) +} + +func (i VmGuestHealthAlertCriterionArgs) ToVmGuestHealthAlertCriterionOutputWithContext(ctx context.Context) VmGuestHealthAlertCriterionOutput { + return pulumi.ToOutputWithContext(ctx, i).(VmGuestHealthAlertCriterionOutput) +} + +// VmGuestHealthAlertCriterionArrayInput is an input type that accepts VmGuestHealthAlertCriterionArray and VmGuestHealthAlertCriterionArrayOutput values. +// You can construct a concrete instance of `VmGuestHealthAlertCriterionArrayInput` via: +// +// VmGuestHealthAlertCriterionArray{ VmGuestHealthAlertCriterionArgs{...} } +type VmGuestHealthAlertCriterionArrayInput interface { + pulumi.Input + + ToVmGuestHealthAlertCriterionArrayOutput() VmGuestHealthAlertCriterionArrayOutput + ToVmGuestHealthAlertCriterionArrayOutputWithContext(context.Context) VmGuestHealthAlertCriterionArrayOutput +} + +type VmGuestHealthAlertCriterionArray []VmGuestHealthAlertCriterionInput + +func (VmGuestHealthAlertCriterionArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]VmGuestHealthAlertCriterion)(nil)).Elem() +} + +func (i VmGuestHealthAlertCriterionArray) ToVmGuestHealthAlertCriterionArrayOutput() VmGuestHealthAlertCriterionArrayOutput { + return i.ToVmGuestHealthAlertCriterionArrayOutputWithContext(context.Background()) +} + +func (i VmGuestHealthAlertCriterionArray) ToVmGuestHealthAlertCriterionArrayOutputWithContext(ctx context.Context) VmGuestHealthAlertCriterionArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(VmGuestHealthAlertCriterionArrayOutput) +} + +// Specifies the health alert criteria to alert on. +type VmGuestHealthAlertCriterionOutput struct{ *pulumi.OutputState } + +func (VmGuestHealthAlertCriterionOutput) ElementType() reflect.Type { + return reflect.TypeOf((*VmGuestHealthAlertCriterion)(nil)).Elem() +} + +func (o VmGuestHealthAlertCriterionOutput) ToVmGuestHealthAlertCriterionOutput() VmGuestHealthAlertCriterionOutput { + return o +} + +func (o VmGuestHealthAlertCriterionOutput) ToVmGuestHealthAlertCriterionOutputWithContext(ctx context.Context) VmGuestHealthAlertCriterionOutput { + return o +} + +// Name of health monitor on which to define alert +func (o VmGuestHealthAlertCriterionOutput) HealthMonitorName() pulumi.StringOutput { + return o.ApplyT(func(v VmGuestHealthAlertCriterion) string { return v.HealthMonitorName }).(pulumi.StringOutput) +} + +// Health states to alert on +func (o VmGuestHealthAlertCriterionOutput) HealthStates() HealthStateArrayOutput { + return o.ApplyT(func(v VmGuestHealthAlertCriterion) []HealthState { return v.HealthStates }).(HealthStateArrayOutput) +} + +// specifies the type of the alert criterion. +func (o VmGuestHealthAlertCriterionOutput) Namespace() pulumi.StringOutput { + return o.ApplyT(func(v VmGuestHealthAlertCriterion) string { return v.Namespace }).(pulumi.StringOutput) +} + +type VmGuestHealthAlertCriterionArrayOutput struct{ *pulumi.OutputState } + +func (VmGuestHealthAlertCriterionArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]VmGuestHealthAlertCriterion)(nil)).Elem() +} + +func (o VmGuestHealthAlertCriterionArrayOutput) ToVmGuestHealthAlertCriterionArrayOutput() VmGuestHealthAlertCriterionArrayOutput { + return o +} + +func (o VmGuestHealthAlertCriterionArrayOutput) ToVmGuestHealthAlertCriterionArrayOutputWithContext(ctx context.Context) VmGuestHealthAlertCriterionArrayOutput { + return o +} + +func (o VmGuestHealthAlertCriterionArrayOutput) Index(i pulumi.IntInput) VmGuestHealthAlertCriterionOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) VmGuestHealthAlertCriterion { + return vs[0].([]VmGuestHealthAlertCriterion)[vs[1].(int)] + }).(VmGuestHealthAlertCriterionOutput) +} + +// Specifies the health alert criteria to alert on. +type VmGuestHealthAlertCriterionResponse struct { + // Name of health monitor on which to define alert + HealthMonitorName string `pulumi:"healthMonitorName"` + // Health states to alert on + HealthStates []HealthStateResponse `pulumi:"healthStates"` + // specifies the type of the alert criterion. + Namespace string `pulumi:"namespace"` +} + +// VmGuestHealthAlertCriterionResponseInput is an input type that accepts VmGuestHealthAlertCriterionResponseArgs and VmGuestHealthAlertCriterionResponseOutput values. +// You can construct a concrete instance of `VmGuestHealthAlertCriterionResponseInput` via: +// +// VmGuestHealthAlertCriterionResponseArgs{...} +type VmGuestHealthAlertCriterionResponseInput interface { + pulumi.Input + + ToVmGuestHealthAlertCriterionResponseOutput() VmGuestHealthAlertCriterionResponseOutput + ToVmGuestHealthAlertCriterionResponseOutputWithContext(context.Context) VmGuestHealthAlertCriterionResponseOutput +} + +// Specifies the health alert criteria to alert on. +type VmGuestHealthAlertCriterionResponseArgs struct { + // Name of health monitor on which to define alert + HealthMonitorName pulumi.StringInput `pulumi:"healthMonitorName"` + // Health states to alert on + HealthStates HealthStateResponseArrayInput `pulumi:"healthStates"` + // specifies the type of the alert criterion. + Namespace pulumi.StringInput `pulumi:"namespace"` +} + +func (VmGuestHealthAlertCriterionResponseArgs) ElementType() reflect.Type { + return reflect.TypeOf((*VmGuestHealthAlertCriterionResponse)(nil)).Elem() +} + +func (i VmGuestHealthAlertCriterionResponseArgs) ToVmGuestHealthAlertCriterionResponseOutput() VmGuestHealthAlertCriterionResponseOutput { + return i.ToVmGuestHealthAlertCriterionResponseOutputWithContext(context.Background()) +} + +func (i VmGuestHealthAlertCriterionResponseArgs) ToVmGuestHealthAlertCriterionResponseOutputWithContext(ctx context.Context) VmGuestHealthAlertCriterionResponseOutput { + return pulumi.ToOutputWithContext(ctx, i).(VmGuestHealthAlertCriterionResponseOutput) +} + +// VmGuestHealthAlertCriterionResponseArrayInput is an input type that accepts VmGuestHealthAlertCriterionResponseArray and VmGuestHealthAlertCriterionResponseArrayOutput values. +// You can construct a concrete instance of `VmGuestHealthAlertCriterionResponseArrayInput` via: +// +// VmGuestHealthAlertCriterionResponseArray{ VmGuestHealthAlertCriterionResponseArgs{...} } +type VmGuestHealthAlertCriterionResponseArrayInput interface { + pulumi.Input + + ToVmGuestHealthAlertCriterionResponseArrayOutput() VmGuestHealthAlertCriterionResponseArrayOutput + ToVmGuestHealthAlertCriterionResponseArrayOutputWithContext(context.Context) VmGuestHealthAlertCriterionResponseArrayOutput +} + +type VmGuestHealthAlertCriterionResponseArray []VmGuestHealthAlertCriterionResponseInput + +func (VmGuestHealthAlertCriterionResponseArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]VmGuestHealthAlertCriterionResponse)(nil)).Elem() +} + +func (i VmGuestHealthAlertCriterionResponseArray) ToVmGuestHealthAlertCriterionResponseArrayOutput() VmGuestHealthAlertCriterionResponseArrayOutput { + return i.ToVmGuestHealthAlertCriterionResponseArrayOutputWithContext(context.Background()) +} + +func (i VmGuestHealthAlertCriterionResponseArray) ToVmGuestHealthAlertCriterionResponseArrayOutputWithContext(ctx context.Context) VmGuestHealthAlertCriterionResponseArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(VmGuestHealthAlertCriterionResponseArrayOutput) +} + +// Specifies the health alert criteria to alert on. +type VmGuestHealthAlertCriterionResponseOutput struct{ *pulumi.OutputState } + +func (VmGuestHealthAlertCriterionResponseOutput) ElementType() reflect.Type { + return reflect.TypeOf((*VmGuestHealthAlertCriterionResponse)(nil)).Elem() +} + +func (o VmGuestHealthAlertCriterionResponseOutput) ToVmGuestHealthAlertCriterionResponseOutput() VmGuestHealthAlertCriterionResponseOutput { + return o +} + +func (o VmGuestHealthAlertCriterionResponseOutput) ToVmGuestHealthAlertCriterionResponseOutputWithContext(ctx context.Context) VmGuestHealthAlertCriterionResponseOutput { + return o +} + +// Name of health monitor on which to define alert +func (o VmGuestHealthAlertCriterionResponseOutput) HealthMonitorName() pulumi.StringOutput { + return o.ApplyT(func(v VmGuestHealthAlertCriterionResponse) string { return v.HealthMonitorName }).(pulumi.StringOutput) +} + +// Health states to alert on +func (o VmGuestHealthAlertCriterionResponseOutput) HealthStates() HealthStateResponseArrayOutput { + return o.ApplyT(func(v VmGuestHealthAlertCriterionResponse) []HealthStateResponse { return v.HealthStates }).(HealthStateResponseArrayOutput) +} + +// specifies the type of the alert criterion. +func (o VmGuestHealthAlertCriterionResponseOutput) Namespace() pulumi.StringOutput { + return o.ApplyT(func(v VmGuestHealthAlertCriterionResponse) string { return v.Namespace }).(pulumi.StringOutput) +} + +type VmGuestHealthAlertCriterionResponseArrayOutput struct{ *pulumi.OutputState } + +func (VmGuestHealthAlertCriterionResponseArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]VmGuestHealthAlertCriterionResponse)(nil)).Elem() +} + +func (o VmGuestHealthAlertCriterionResponseArrayOutput) ToVmGuestHealthAlertCriterionResponseArrayOutput() VmGuestHealthAlertCriterionResponseArrayOutput { + return o +} + +func (o VmGuestHealthAlertCriterionResponseArrayOutput) ToVmGuestHealthAlertCriterionResponseArrayOutputWithContext(ctx context.Context) VmGuestHealthAlertCriterionResponseArrayOutput { + return o +} + +func (o VmGuestHealthAlertCriterionResponseArrayOutput) Index(i pulumi.IntInput) VmGuestHealthAlertCriterionResponseOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) VmGuestHealthAlertCriterionResponse { + return vs[0].([]VmGuestHealthAlertCriterionResponse)[vs[1].(int)] + }).(VmGuestHealthAlertCriterionResponseOutput) +} + +func init() { + pulumi.RegisterOutputType(HealthAlertActionOutput{}) + pulumi.RegisterOutputType(HealthAlertActionArrayOutput{}) + pulumi.RegisterOutputType(HealthAlertActionResponseOutput{}) + pulumi.RegisterOutputType(HealthAlertActionResponseArrayOutput{}) + pulumi.RegisterOutputType(HealthAlertCriteriaOutput{}) + pulumi.RegisterOutputType(HealthAlertCriteriaPtrOutput{}) + pulumi.RegisterOutputType(HealthAlertCriteriaResponseOutput{}) + pulumi.RegisterOutputType(HealthAlertCriteriaResponsePtrOutput{}) + pulumi.RegisterOutputType(HealthStateOutput{}) + pulumi.RegisterOutputType(HealthStateArrayOutput{}) + pulumi.RegisterOutputType(HealthStateResponseOutput{}) + pulumi.RegisterOutputType(HealthStateResponseArrayOutput{}) + pulumi.RegisterOutputType(VmGuestHealthAlertCriterionOutput{}) + pulumi.RegisterOutputType(VmGuestHealthAlertCriterionArrayOutput{}) + pulumi.RegisterOutputType(VmGuestHealthAlertCriterionResponseOutput{}) + pulumi.RegisterOutputType(VmGuestHealthAlertCriterionResponseArrayOutput{}) +} diff --git a/sdk/go/azurerm/authorization/v20200701preview/getPolicyExemption.go b/sdk/go/azurerm/authorization/v20200701preview/getPolicyExemption.go new file mode 100644 index 000000000000..461e83fb6c39 --- /dev/null +++ b/sdk/go/azurerm/authorization/v20200701preview/getPolicyExemption.go @@ -0,0 +1,48 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package v20200701preview + +import ( + "github.com/pulumi/pulumi/sdk/v2/go/pulumi" +) + +func LookupPolicyExemption(ctx *pulumi.Context, args *LookupPolicyExemptionArgs, opts ...pulumi.InvokeOption) (*LookupPolicyExemptionResult, error) { + var rv LookupPolicyExemptionResult + err := ctx.Invoke("azurerm:authorization/v20200701preview:getPolicyExemption", args, &rv, opts...) + if err != nil { + return nil, err + } + return &rv, nil +} + +type LookupPolicyExemptionArgs struct { + // The name of the policy exemption to delete. + PolicyExemptionName string `pulumi:"policyExemptionName"` + // The scope of the policy exemption. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' + Scope string `pulumi:"scope"` +} + +// The policy exemption. +type LookupPolicyExemptionResult struct { + // The description of the policy exemption. + Description *string `pulumi:"description"` + // The display name of the policy exemption. + DisplayName *string `pulumi:"displayName"` + // The policy exemption category. Possible values are Waiver and Mitigated. + ExemptionCategory string `pulumi:"exemptionCategory"` + // The expiration date and time (in UTC ISO 8601 format yyyy-MM-ddTHH:mm:ssZ) of the policy exemption. + ExpiresOn *string `pulumi:"expiresOn"` + // The policy exemption metadata. Metadata is an open ended object and is typically a collection of key value pairs. + Metadata map[string]interface{} `pulumi:"metadata"` + // The name of the resource + Name string `pulumi:"name"` + // The ID of the policy assignment that is being exempted. + PolicyAssignmentId string `pulumi:"policyAssignmentId"` + // The policy definition reference ID list when the associated policy assignment is an assignment of a policy set definition. + PolicyDefinitionReferenceIds []string `pulumi:"policyDefinitionReferenceIds"` + // Azure Resource Manager metadata containing createdBy and modifiedBy information. + SystemData SystemDataResponse `pulumi:"systemData"` + // The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + Type string `pulumi:"type"` +} diff --git a/sdk/go/azurerm/authorization/v20200701preview/policyExemption.go b/sdk/go/azurerm/authorization/v20200701preview/policyExemption.go new file mode 100644 index 000000000000..ba8b4edfdd97 --- /dev/null +++ b/sdk/go/azurerm/authorization/v20200701preview/policyExemption.go @@ -0,0 +1,173 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package v20200701preview + +import ( + "reflect" + + "github.com/pkg/errors" + "github.com/pulumi/pulumi/sdk/v2/go/pulumi" +) + +// The policy exemption. +type PolicyExemption struct { + pulumi.CustomResourceState + + // The description of the policy exemption. + Description pulumi.StringPtrOutput `pulumi:"description"` + // The display name of the policy exemption. + DisplayName pulumi.StringPtrOutput `pulumi:"displayName"` + // The policy exemption category. Possible values are Waiver and Mitigated. + ExemptionCategory pulumi.StringOutput `pulumi:"exemptionCategory"` + // The expiration date and time (in UTC ISO 8601 format yyyy-MM-ddTHH:mm:ssZ) of the policy exemption. + ExpiresOn pulumi.StringPtrOutput `pulumi:"expiresOn"` + // The policy exemption metadata. Metadata is an open ended object and is typically a collection of key value pairs. + Metadata pulumi.MapOutput `pulumi:"metadata"` + // The name of the resource + Name pulumi.StringOutput `pulumi:"name"` + // The ID of the policy assignment that is being exempted. + PolicyAssignmentId pulumi.StringOutput `pulumi:"policyAssignmentId"` + // The policy definition reference ID list when the associated policy assignment is an assignment of a policy set definition. + PolicyDefinitionReferenceIds pulumi.StringArrayOutput `pulumi:"policyDefinitionReferenceIds"` + // Azure Resource Manager metadata containing createdBy and modifiedBy information. + SystemData SystemDataResponseOutput `pulumi:"systemData"` + // The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + Type pulumi.StringOutput `pulumi:"type"` +} + +// NewPolicyExemption registers a new resource with the given unique name, arguments, and options. +func NewPolicyExemption(ctx *pulumi.Context, + name string, args *PolicyExemptionArgs, opts ...pulumi.ResourceOption) (*PolicyExemption, error) { + if args == nil || args.ExemptionCategory == nil { + return nil, errors.New("missing required argument 'ExemptionCategory'") + } + if args == nil || args.PolicyAssignmentId == nil { + return nil, errors.New("missing required argument 'PolicyAssignmentId'") + } + if args == nil || args.PolicyExemptionName == nil { + return nil, errors.New("missing required argument 'PolicyExemptionName'") + } + if args == nil || args.Scope == nil { + return nil, errors.New("missing required argument 'Scope'") + } + if args == nil { + args = &PolicyExemptionArgs{} + } + var resource PolicyExemption + err := ctx.RegisterResource("azurerm:authorization/v20200701preview:PolicyExemption", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetPolicyExemption gets an existing PolicyExemption resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetPolicyExemption(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *PolicyExemptionState, opts ...pulumi.ResourceOption) (*PolicyExemption, error) { + var resource PolicyExemption + err := ctx.ReadResource("azurerm:authorization/v20200701preview:PolicyExemption", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering PolicyExemption resources. +type policyExemptionState struct { + // The description of the policy exemption. + Description *string `pulumi:"description"` + // The display name of the policy exemption. + DisplayName *string `pulumi:"displayName"` + // The policy exemption category. Possible values are Waiver and Mitigated. + ExemptionCategory *string `pulumi:"exemptionCategory"` + // The expiration date and time (in UTC ISO 8601 format yyyy-MM-ddTHH:mm:ssZ) of the policy exemption. + ExpiresOn *string `pulumi:"expiresOn"` + // The policy exemption metadata. Metadata is an open ended object and is typically a collection of key value pairs. + Metadata map[string]interface{} `pulumi:"metadata"` + // The name of the resource + Name *string `pulumi:"name"` + // The ID of the policy assignment that is being exempted. + PolicyAssignmentId *string `pulumi:"policyAssignmentId"` + // The policy definition reference ID list when the associated policy assignment is an assignment of a policy set definition. + PolicyDefinitionReferenceIds []string `pulumi:"policyDefinitionReferenceIds"` + // Azure Resource Manager metadata containing createdBy and modifiedBy information. + SystemData *SystemDataResponse `pulumi:"systemData"` + // The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + Type *string `pulumi:"type"` +} + +type PolicyExemptionState struct { + // The description of the policy exemption. + Description pulumi.StringPtrInput + // The display name of the policy exemption. + DisplayName pulumi.StringPtrInput + // The policy exemption category. Possible values are Waiver and Mitigated. + ExemptionCategory pulumi.StringPtrInput + // The expiration date and time (in UTC ISO 8601 format yyyy-MM-ddTHH:mm:ssZ) of the policy exemption. + ExpiresOn pulumi.StringPtrInput + // The policy exemption metadata. Metadata is an open ended object and is typically a collection of key value pairs. + Metadata pulumi.MapInput + // The name of the resource + Name pulumi.StringPtrInput + // The ID of the policy assignment that is being exempted. + PolicyAssignmentId pulumi.StringPtrInput + // The policy definition reference ID list when the associated policy assignment is an assignment of a policy set definition. + PolicyDefinitionReferenceIds pulumi.StringArrayInput + // Azure Resource Manager metadata containing createdBy and modifiedBy information. + SystemData SystemDataResponsePtrInput + // The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + Type pulumi.StringPtrInput +} + +func (PolicyExemptionState) ElementType() reflect.Type { + return reflect.TypeOf((*policyExemptionState)(nil)).Elem() +} + +type policyExemptionArgs struct { + // The description of the policy exemption. + Description *string `pulumi:"description"` + // The display name of the policy exemption. + DisplayName *string `pulumi:"displayName"` + // The policy exemption category. Possible values are Waiver and Mitigated. + ExemptionCategory string `pulumi:"exemptionCategory"` + // The expiration date and time (in UTC ISO 8601 format yyyy-MM-ddTHH:mm:ssZ) of the policy exemption. + ExpiresOn *string `pulumi:"expiresOn"` + // The policy exemption metadata. Metadata is an open ended object and is typically a collection of key value pairs. + Metadata map[string]interface{} `pulumi:"metadata"` + // The ID of the policy assignment that is being exempted. + PolicyAssignmentId string `pulumi:"policyAssignmentId"` + // The policy definition reference ID list when the associated policy assignment is an assignment of a policy set definition. + PolicyDefinitionReferenceIds []string `pulumi:"policyDefinitionReferenceIds"` + // The name of the policy exemption to delete. + PolicyExemptionName string `pulumi:"policyExemptionName"` + // The scope of the policy exemption. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' + Scope string `pulumi:"scope"` +} + +// The set of arguments for constructing a PolicyExemption resource. +type PolicyExemptionArgs struct { + // The description of the policy exemption. + Description pulumi.StringPtrInput + // The display name of the policy exemption. + DisplayName pulumi.StringPtrInput + // The policy exemption category. Possible values are Waiver and Mitigated. + ExemptionCategory pulumi.StringInput + // The expiration date and time (in UTC ISO 8601 format yyyy-MM-ddTHH:mm:ssZ) of the policy exemption. + ExpiresOn pulumi.StringPtrInput + // The policy exemption metadata. Metadata is an open ended object and is typically a collection of key value pairs. + Metadata pulumi.MapInput + // The ID of the policy assignment that is being exempted. + PolicyAssignmentId pulumi.StringInput + // The policy definition reference ID list when the associated policy assignment is an assignment of a policy set definition. + PolicyDefinitionReferenceIds pulumi.StringArrayInput + // The name of the policy exemption to delete. + PolicyExemptionName pulumi.StringInput + // The scope of the policy exemption. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' + Scope pulumi.StringInput +} + +func (PolicyExemptionArgs) ElementType() reflect.Type { + return reflect.TypeOf((*policyExemptionArgs)(nil)).Elem() +} diff --git a/sdk/go/azurerm/authorization/v20200701preview/pulumiTypes.go b/sdk/go/azurerm/authorization/v20200701preview/pulumiTypes.go new file mode 100644 index 000000000000..7f56313880f4 --- /dev/null +++ b/sdk/go/azurerm/authorization/v20200701preview/pulumiTypes.go @@ -0,0 +1,245 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package v20200701preview + +import ( + "context" + "reflect" + + "github.com/pulumi/pulumi/sdk/v2/go/pulumi" +) + +// Metadata pertaining to creation and last modification of the resource. +type SystemDataResponse struct { + // The timestamp of resource creation (UTC). + CreatedAt *string `pulumi:"createdAt"` + // The identity that created the resource. + CreatedBy *string `pulumi:"createdBy"` + // The type of identity that created the resource. + CreatedByType *string `pulumi:"createdByType"` + // The type of identity that last modified the resource. + LastModifiedAt *string `pulumi:"lastModifiedAt"` + // The identity that last modified the resource. + LastModifiedBy *string `pulumi:"lastModifiedBy"` + // The type of identity that last modified the resource. + LastModifiedByType *string `pulumi:"lastModifiedByType"` +} + +// SystemDataResponseInput is an input type that accepts SystemDataResponseArgs and SystemDataResponseOutput values. +// You can construct a concrete instance of `SystemDataResponseInput` via: +// +// SystemDataResponseArgs{...} +type SystemDataResponseInput interface { + pulumi.Input + + ToSystemDataResponseOutput() SystemDataResponseOutput + ToSystemDataResponseOutputWithContext(context.Context) SystemDataResponseOutput +} + +// Metadata pertaining to creation and last modification of the resource. +type SystemDataResponseArgs struct { + // The timestamp of resource creation (UTC). + CreatedAt pulumi.StringPtrInput `pulumi:"createdAt"` + // The identity that created the resource. + CreatedBy pulumi.StringPtrInput `pulumi:"createdBy"` + // The type of identity that created the resource. + CreatedByType pulumi.StringPtrInput `pulumi:"createdByType"` + // The type of identity that last modified the resource. + LastModifiedAt pulumi.StringPtrInput `pulumi:"lastModifiedAt"` + // The identity that last modified the resource. + LastModifiedBy pulumi.StringPtrInput `pulumi:"lastModifiedBy"` + // The type of identity that last modified the resource. + LastModifiedByType pulumi.StringPtrInput `pulumi:"lastModifiedByType"` +} + +func (SystemDataResponseArgs) ElementType() reflect.Type { + return reflect.TypeOf((*SystemDataResponse)(nil)).Elem() +} + +func (i SystemDataResponseArgs) ToSystemDataResponseOutput() SystemDataResponseOutput { + return i.ToSystemDataResponseOutputWithContext(context.Background()) +} + +func (i SystemDataResponseArgs) ToSystemDataResponseOutputWithContext(ctx context.Context) SystemDataResponseOutput { + return pulumi.ToOutputWithContext(ctx, i).(SystemDataResponseOutput) +} + +func (i SystemDataResponseArgs) ToSystemDataResponsePtrOutput() SystemDataResponsePtrOutput { + return i.ToSystemDataResponsePtrOutputWithContext(context.Background()) +} + +func (i SystemDataResponseArgs) ToSystemDataResponsePtrOutputWithContext(ctx context.Context) SystemDataResponsePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(SystemDataResponseOutput).ToSystemDataResponsePtrOutputWithContext(ctx) +} + +// SystemDataResponsePtrInput is an input type that accepts SystemDataResponseArgs, SystemDataResponsePtr and SystemDataResponsePtrOutput values. +// You can construct a concrete instance of `SystemDataResponsePtrInput` via: +// +// SystemDataResponseArgs{...} +// +// or: +// +// nil +type SystemDataResponsePtrInput interface { + pulumi.Input + + ToSystemDataResponsePtrOutput() SystemDataResponsePtrOutput + ToSystemDataResponsePtrOutputWithContext(context.Context) SystemDataResponsePtrOutput +} + +type systemDataResponsePtrType SystemDataResponseArgs + +func SystemDataResponsePtr(v *SystemDataResponseArgs) SystemDataResponsePtrInput { + return (*systemDataResponsePtrType)(v) +} + +func (*systemDataResponsePtrType) ElementType() reflect.Type { + return reflect.TypeOf((**SystemDataResponse)(nil)).Elem() +} + +func (i *systemDataResponsePtrType) ToSystemDataResponsePtrOutput() SystemDataResponsePtrOutput { + return i.ToSystemDataResponsePtrOutputWithContext(context.Background()) +} + +func (i *systemDataResponsePtrType) ToSystemDataResponsePtrOutputWithContext(ctx context.Context) SystemDataResponsePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(SystemDataResponsePtrOutput) +} + +// Metadata pertaining to creation and last modification of the resource. +type SystemDataResponseOutput struct{ *pulumi.OutputState } + +func (SystemDataResponseOutput) ElementType() reflect.Type { + return reflect.TypeOf((*SystemDataResponse)(nil)).Elem() +} + +func (o SystemDataResponseOutput) ToSystemDataResponseOutput() SystemDataResponseOutput { + return o +} + +func (o SystemDataResponseOutput) ToSystemDataResponseOutputWithContext(ctx context.Context) SystemDataResponseOutput { + return o +} + +func (o SystemDataResponseOutput) ToSystemDataResponsePtrOutput() SystemDataResponsePtrOutput { + return o.ToSystemDataResponsePtrOutputWithContext(context.Background()) +} + +func (o SystemDataResponseOutput) ToSystemDataResponsePtrOutputWithContext(ctx context.Context) SystemDataResponsePtrOutput { + return o.ApplyT(func(v SystemDataResponse) *SystemDataResponse { + return &v + }).(SystemDataResponsePtrOutput) +} + +// The timestamp of resource creation (UTC). +func (o SystemDataResponseOutput) CreatedAt() pulumi.StringPtrOutput { + return o.ApplyT(func(v SystemDataResponse) *string { return v.CreatedAt }).(pulumi.StringPtrOutput) +} + +// The identity that created the resource. +func (o SystemDataResponseOutput) CreatedBy() pulumi.StringPtrOutput { + return o.ApplyT(func(v SystemDataResponse) *string { return v.CreatedBy }).(pulumi.StringPtrOutput) +} + +// The type of identity that created the resource. +func (o SystemDataResponseOutput) CreatedByType() pulumi.StringPtrOutput { + return o.ApplyT(func(v SystemDataResponse) *string { return v.CreatedByType }).(pulumi.StringPtrOutput) +} + +// The type of identity that last modified the resource. +func (o SystemDataResponseOutput) LastModifiedAt() pulumi.StringPtrOutput { + return o.ApplyT(func(v SystemDataResponse) *string { return v.LastModifiedAt }).(pulumi.StringPtrOutput) +} + +// The identity that last modified the resource. +func (o SystemDataResponseOutput) LastModifiedBy() pulumi.StringPtrOutput { + return o.ApplyT(func(v SystemDataResponse) *string { return v.LastModifiedBy }).(pulumi.StringPtrOutput) +} + +// The type of identity that last modified the resource. +func (o SystemDataResponseOutput) LastModifiedByType() pulumi.StringPtrOutput { + return o.ApplyT(func(v SystemDataResponse) *string { return v.LastModifiedByType }).(pulumi.StringPtrOutput) +} + +type SystemDataResponsePtrOutput struct{ *pulumi.OutputState } + +func (SystemDataResponsePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**SystemDataResponse)(nil)).Elem() +} + +func (o SystemDataResponsePtrOutput) ToSystemDataResponsePtrOutput() SystemDataResponsePtrOutput { + return o +} + +func (o SystemDataResponsePtrOutput) ToSystemDataResponsePtrOutputWithContext(ctx context.Context) SystemDataResponsePtrOutput { + return o +} + +func (o SystemDataResponsePtrOutput) Elem() SystemDataResponseOutput { + return o.ApplyT(func(v *SystemDataResponse) SystemDataResponse { return *v }).(SystemDataResponseOutput) +} + +// The timestamp of resource creation (UTC). +func (o SystemDataResponsePtrOutput) CreatedAt() pulumi.StringPtrOutput { + return o.ApplyT(func(v *SystemDataResponse) *string { + if v == nil { + return nil + } + return v.CreatedAt + }).(pulumi.StringPtrOutput) +} + +// The identity that created the resource. +func (o SystemDataResponsePtrOutput) CreatedBy() pulumi.StringPtrOutput { + return o.ApplyT(func(v *SystemDataResponse) *string { + if v == nil { + return nil + } + return v.CreatedBy + }).(pulumi.StringPtrOutput) +} + +// The type of identity that created the resource. +func (o SystemDataResponsePtrOutput) CreatedByType() pulumi.StringPtrOutput { + return o.ApplyT(func(v *SystemDataResponse) *string { + if v == nil { + return nil + } + return v.CreatedByType + }).(pulumi.StringPtrOutput) +} + +// The type of identity that last modified the resource. +func (o SystemDataResponsePtrOutput) LastModifiedAt() pulumi.StringPtrOutput { + return o.ApplyT(func(v *SystemDataResponse) *string { + if v == nil { + return nil + } + return v.LastModifiedAt + }).(pulumi.StringPtrOutput) +} + +// The identity that last modified the resource. +func (o SystemDataResponsePtrOutput) LastModifiedBy() pulumi.StringPtrOutput { + return o.ApplyT(func(v *SystemDataResponse) *string { + if v == nil { + return nil + } + return v.LastModifiedBy + }).(pulumi.StringPtrOutput) +} + +// The type of identity that last modified the resource. +func (o SystemDataResponsePtrOutput) LastModifiedByType() pulumi.StringPtrOutput { + return o.ApplyT(func(v *SystemDataResponse) *string { + if v == nil { + return nil + } + return v.LastModifiedByType + }).(pulumi.StringPtrOutput) +} + +func init() { + pulumi.RegisterOutputType(SystemDataResponseOutput{}) + pulumi.RegisterOutputType(SystemDataResponsePtrOutput{}) +} diff --git a/sdk/go/azurerm/devices/latest/dpsCertificate.go b/sdk/go/azurerm/devices/latest/dpsCertificate.go index 07bd83490774..80e258d7c72f 100644 --- a/sdk/go/azurerm/devices/latest/dpsCertificate.go +++ b/sdk/go/azurerm/devices/latest/dpsCertificate.go @@ -52,6 +52,9 @@ func NewDpsCertificate(ctx *pulumi.Context, { Type: pulumi.String("azurerm:devices/v20200101:DpsCertificate"), }, + { + Type: pulumi.String("azurerm:devices/v20200301:DpsCertificate"), + }, }) opts = append(opts, aliases) var resource DpsCertificate diff --git a/sdk/go/azurerm/devices/latest/getIotDpsResourcePrivateEndpointConnection.go b/sdk/go/azurerm/devices/latest/getIotDpsResourcePrivateEndpointConnection.go new file mode 100644 index 000000000000..b14137d0bae0 --- /dev/null +++ b/sdk/go/azurerm/devices/latest/getIotDpsResourcePrivateEndpointConnection.go @@ -0,0 +1,36 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package latest + +import ( + "github.com/pulumi/pulumi/sdk/v2/go/pulumi" +) + +func LookupIotDpsResourcePrivateEndpointConnection(ctx *pulumi.Context, args *LookupIotDpsResourcePrivateEndpointConnectionArgs, opts ...pulumi.InvokeOption) (*LookupIotDpsResourcePrivateEndpointConnectionResult, error) { + var rv LookupIotDpsResourcePrivateEndpointConnectionResult + err := ctx.Invoke("azurerm:devices/latest:getIotDpsResourcePrivateEndpointConnection", args, &rv, opts...) + if err != nil { + return nil, err + } + return &rv, nil +} + +type LookupIotDpsResourcePrivateEndpointConnectionArgs struct { + // The name of the private endpoint connection + PrivateEndpointConnectionName string `pulumi:"privateEndpointConnectionName"` + // The name of the resource group that contains the provisioning service. + ResourceGroupName string `pulumi:"resourceGroupName"` + // The name of the provisioning service. + ResourceName string `pulumi:"resourceName"` +} + +// The private endpoint connection of a provisioning service +type LookupIotDpsResourcePrivateEndpointConnectionResult struct { + // The resource name. + Name string `pulumi:"name"` + // The properties of a private endpoint connection + Properties PrivateEndpointConnectionPropertiesResponse `pulumi:"properties"` + // The resource type. + Type string `pulumi:"type"` +} diff --git a/sdk/go/azurerm/devices/latest/iotDpsResource.go b/sdk/go/azurerm/devices/latest/iotDpsResource.go index 967f3d78f1fa..88a3c0e5a761 100644 --- a/sdk/go/azurerm/devices/latest/iotDpsResource.go +++ b/sdk/go/azurerm/devices/latest/iotDpsResource.go @@ -64,6 +64,9 @@ func NewIotDpsResource(ctx *pulumi.Context, { Type: pulumi.String("azurerm:devices/v20200101:IotDpsResource"), }, + { + Type: pulumi.String("azurerm:devices/v20200301:IotDpsResource"), + }, }) opts = append(opts, aliases) var resource IotDpsResource diff --git a/sdk/go/azurerm/devices/latest/iotDpsResourcePrivateEndpointConnection.go b/sdk/go/azurerm/devices/latest/iotDpsResourcePrivateEndpointConnection.go new file mode 100644 index 000000000000..ac451bf8fda5 --- /dev/null +++ b/sdk/go/azurerm/devices/latest/iotDpsResourcePrivateEndpointConnection.go @@ -0,0 +1,117 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package latest + +import ( + "reflect" + + "github.com/pkg/errors" + "github.com/pulumi/pulumi/sdk/v2/go/pulumi" +) + +// The private endpoint connection of a provisioning service +type IotDpsResourcePrivateEndpointConnection struct { + pulumi.CustomResourceState + + // The resource name. + Name pulumi.StringOutput `pulumi:"name"` + // The properties of a private endpoint connection + Properties PrivateEndpointConnectionPropertiesResponseOutput `pulumi:"properties"` + // The resource type. + Type pulumi.StringOutput `pulumi:"type"` +} + +// NewIotDpsResourcePrivateEndpointConnection registers a new resource with the given unique name, arguments, and options. +func NewIotDpsResourcePrivateEndpointConnection(ctx *pulumi.Context, + name string, args *IotDpsResourcePrivateEndpointConnectionArgs, opts ...pulumi.ResourceOption) (*IotDpsResourcePrivateEndpointConnection, error) { + if args == nil || args.PrivateEndpointConnectionName == nil { + return nil, errors.New("missing required argument 'PrivateEndpointConnectionName'") + } + if args == nil || args.Properties == nil { + return nil, errors.New("missing required argument 'Properties'") + } + if args == nil || args.ResourceGroupName == nil { + return nil, errors.New("missing required argument 'ResourceGroupName'") + } + if args == nil || args.ResourceName == nil { + return nil, errors.New("missing required argument 'ResourceName'") + } + if args == nil { + args = &IotDpsResourcePrivateEndpointConnectionArgs{} + } + aliases := pulumi.Aliases([]pulumi.Alias{ + { + Type: pulumi.String("azurerm:devices/v20200301:IotDpsResourcePrivateEndpointConnection"), + }, + }) + opts = append(opts, aliases) + var resource IotDpsResourcePrivateEndpointConnection + err := ctx.RegisterResource("azurerm:devices/latest:IotDpsResourcePrivateEndpointConnection", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetIotDpsResourcePrivateEndpointConnection gets an existing IotDpsResourcePrivateEndpointConnection resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetIotDpsResourcePrivateEndpointConnection(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *IotDpsResourcePrivateEndpointConnectionState, opts ...pulumi.ResourceOption) (*IotDpsResourcePrivateEndpointConnection, error) { + var resource IotDpsResourcePrivateEndpointConnection + err := ctx.ReadResource("azurerm:devices/latest:IotDpsResourcePrivateEndpointConnection", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering IotDpsResourcePrivateEndpointConnection resources. +type iotDpsResourcePrivateEndpointConnectionState struct { + // The resource name. + Name *string `pulumi:"name"` + // The properties of a private endpoint connection + Properties *PrivateEndpointConnectionPropertiesResponse `pulumi:"properties"` + // The resource type. + Type *string `pulumi:"type"` +} + +type IotDpsResourcePrivateEndpointConnectionState struct { + // The resource name. + Name pulumi.StringPtrInput + // The properties of a private endpoint connection + Properties PrivateEndpointConnectionPropertiesResponsePtrInput + // The resource type. + Type pulumi.StringPtrInput +} + +func (IotDpsResourcePrivateEndpointConnectionState) ElementType() reflect.Type { + return reflect.TypeOf((*iotDpsResourcePrivateEndpointConnectionState)(nil)).Elem() +} + +type iotDpsResourcePrivateEndpointConnectionArgs struct { + // The name of the private endpoint connection + PrivateEndpointConnectionName string `pulumi:"privateEndpointConnectionName"` + // The properties of a private endpoint connection + Properties PrivateEndpointConnectionProperties `pulumi:"properties"` + // The name of the resource group that contains the provisioning service. + ResourceGroupName string `pulumi:"resourceGroupName"` + // The name of the provisioning service. + ResourceName string `pulumi:"resourceName"` +} + +// The set of arguments for constructing a IotDpsResourcePrivateEndpointConnection resource. +type IotDpsResourcePrivateEndpointConnectionArgs struct { + // The name of the private endpoint connection + PrivateEndpointConnectionName pulumi.StringInput + // The properties of a private endpoint connection + Properties PrivateEndpointConnectionPropertiesInput + // The name of the resource group that contains the provisioning service. + ResourceGroupName pulumi.StringInput + // The name of the provisioning service. + ResourceName pulumi.StringInput +} + +func (IotDpsResourcePrivateEndpointConnectionArgs) ElementType() reflect.Type { + return reflect.TypeOf((*iotDpsResourcePrivateEndpointConnectionArgs)(nil)).Elem() +} diff --git a/sdk/go/azurerm/devices/latest/pulumiTypes.go b/sdk/go/azurerm/devices/latest/pulumiTypes.go index cc7ec5e34d7f..a556d580c28b 100644 --- a/sdk/go/azurerm/devices/latest/pulumiTypes.go +++ b/sdk/go/azurerm/devices/latest/pulumiTypes.go @@ -2106,8 +2106,12 @@ type IotDpsPropertiesDescription struct { IotHubs []IotHubDefinitionDescription `pulumi:"iotHubs"` // The IP filter rules. IpFilterRules []IpFilterRule `pulumi:"ipFilterRules"` + // Private endpoint connections created on this IotHub + PrivateEndpointConnections []PrivateEndpointConnectionType `pulumi:"privateEndpointConnections"` // The ARM provisioning state of the provisioning service. ProvisioningState *string `pulumi:"provisioningState"` + // Whether requests from Public Network are allowed + PublicNetworkAccess *string `pulumi:"publicNetworkAccess"` // Current state of the provisioning service. State *string `pulumi:"state"` } @@ -2133,8 +2137,12 @@ type IotDpsPropertiesDescriptionArgs struct { IotHubs IotHubDefinitionDescriptionArrayInput `pulumi:"iotHubs"` // The IP filter rules. IpFilterRules IpFilterRuleArrayInput `pulumi:"ipFilterRules"` + // Private endpoint connections created on this IotHub + PrivateEndpointConnections PrivateEndpointConnectionTypeArrayInput `pulumi:"privateEndpointConnections"` // The ARM provisioning state of the provisioning service. ProvisioningState pulumi.StringPtrInput `pulumi:"provisioningState"` + // Whether requests from Public Network are allowed + PublicNetworkAccess pulumi.StringPtrInput `pulumi:"publicNetworkAccess"` // Current state of the provisioning service. State pulumi.StringPtrInput `pulumi:"state"` } @@ -2239,11 +2247,23 @@ func (o IotDpsPropertiesDescriptionOutput) IpFilterRules() IpFilterRuleArrayOutp return o.ApplyT(func(v IotDpsPropertiesDescription) []IpFilterRule { return v.IpFilterRules }).(IpFilterRuleArrayOutput) } +// Private endpoint connections created on this IotHub +func (o IotDpsPropertiesDescriptionOutput) PrivateEndpointConnections() PrivateEndpointConnectionTypeArrayOutput { + return o.ApplyT(func(v IotDpsPropertiesDescription) []PrivateEndpointConnectionType { + return v.PrivateEndpointConnections + }).(PrivateEndpointConnectionTypeArrayOutput) +} + // The ARM provisioning state of the provisioning service. func (o IotDpsPropertiesDescriptionOutput) ProvisioningState() pulumi.StringPtrOutput { return o.ApplyT(func(v IotDpsPropertiesDescription) *string { return v.ProvisioningState }).(pulumi.StringPtrOutput) } +// Whether requests from Public Network are allowed +func (o IotDpsPropertiesDescriptionOutput) PublicNetworkAccess() pulumi.StringPtrOutput { + return o.ApplyT(func(v IotDpsPropertiesDescription) *string { return v.PublicNetworkAccess }).(pulumi.StringPtrOutput) +} + // Current state of the provisioning service. func (o IotDpsPropertiesDescriptionOutput) State() pulumi.StringPtrOutput { return o.ApplyT(func(v IotDpsPropertiesDescription) *string { return v.State }).(pulumi.StringPtrOutput) @@ -2307,6 +2327,16 @@ func (o IotDpsPropertiesDescriptionPtrOutput) IpFilterRules() IpFilterRuleArrayO }).(IpFilterRuleArrayOutput) } +// Private endpoint connections created on this IotHub +func (o IotDpsPropertiesDescriptionPtrOutput) PrivateEndpointConnections() PrivateEndpointConnectionTypeArrayOutput { + return o.ApplyT(func(v *IotDpsPropertiesDescription) []PrivateEndpointConnectionType { + if v == nil { + return nil + } + return v.PrivateEndpointConnections + }).(PrivateEndpointConnectionTypeArrayOutput) +} + // The ARM provisioning state of the provisioning service. func (o IotDpsPropertiesDescriptionPtrOutput) ProvisioningState() pulumi.StringPtrOutput { return o.ApplyT(func(v *IotDpsPropertiesDescription) *string { @@ -2317,6 +2347,16 @@ func (o IotDpsPropertiesDescriptionPtrOutput) ProvisioningState() pulumi.StringP }).(pulumi.StringPtrOutput) } +// Whether requests from Public Network are allowed +func (o IotDpsPropertiesDescriptionPtrOutput) PublicNetworkAccess() pulumi.StringPtrOutput { + return o.ApplyT(func(v *IotDpsPropertiesDescription) *string { + if v == nil { + return nil + } + return v.PublicNetworkAccess + }).(pulumi.StringPtrOutput) +} + // Current state of the provisioning service. func (o IotDpsPropertiesDescriptionPtrOutput) State() pulumi.StringPtrOutput { return o.ApplyT(func(v *IotDpsPropertiesDescription) *string { @@ -2341,8 +2381,12 @@ type IotDpsPropertiesDescriptionResponse struct { IotHubs []IotHubDefinitionDescriptionResponse `pulumi:"iotHubs"` // The IP filter rules. IpFilterRules []IpFilterRuleResponse `pulumi:"ipFilterRules"` + // Private endpoint connections created on this IotHub + PrivateEndpointConnections []PrivateEndpointConnectionResponse `pulumi:"privateEndpointConnections"` // The ARM provisioning state of the provisioning service. ProvisioningState *string `pulumi:"provisioningState"` + // Whether requests from Public Network are allowed + PublicNetworkAccess *string `pulumi:"publicNetworkAccess"` // Service endpoint for provisioning service. ServiceOperationsHostName string `pulumi:"serviceOperationsHostName"` // Current state of the provisioning service. @@ -2374,8 +2418,12 @@ type IotDpsPropertiesDescriptionResponseArgs struct { IotHubs IotHubDefinitionDescriptionResponseArrayInput `pulumi:"iotHubs"` // The IP filter rules. IpFilterRules IpFilterRuleResponseArrayInput `pulumi:"ipFilterRules"` + // Private endpoint connections created on this IotHub + PrivateEndpointConnections PrivateEndpointConnectionResponseArrayInput `pulumi:"privateEndpointConnections"` // The ARM provisioning state of the provisioning service. ProvisioningState pulumi.StringPtrInput `pulumi:"provisioningState"` + // Whether requests from Public Network are allowed + PublicNetworkAccess pulumi.StringPtrInput `pulumi:"publicNetworkAccess"` // Service endpoint for provisioning service. ServiceOperationsHostName pulumi.StringInput `pulumi:"serviceOperationsHostName"` // Current state of the provisioning service. @@ -2492,11 +2540,23 @@ func (o IotDpsPropertiesDescriptionResponseOutput) IpFilterRules() IpFilterRuleR return o.ApplyT(func(v IotDpsPropertiesDescriptionResponse) []IpFilterRuleResponse { return v.IpFilterRules }).(IpFilterRuleResponseArrayOutput) } +// Private endpoint connections created on this IotHub +func (o IotDpsPropertiesDescriptionResponseOutput) PrivateEndpointConnections() PrivateEndpointConnectionResponseArrayOutput { + return o.ApplyT(func(v IotDpsPropertiesDescriptionResponse) []PrivateEndpointConnectionResponse { + return v.PrivateEndpointConnections + }).(PrivateEndpointConnectionResponseArrayOutput) +} + // The ARM provisioning state of the provisioning service. func (o IotDpsPropertiesDescriptionResponseOutput) ProvisioningState() pulumi.StringPtrOutput { return o.ApplyT(func(v IotDpsPropertiesDescriptionResponse) *string { return v.ProvisioningState }).(pulumi.StringPtrOutput) } +// Whether requests from Public Network are allowed +func (o IotDpsPropertiesDescriptionResponseOutput) PublicNetworkAccess() pulumi.StringPtrOutput { + return o.ApplyT(func(v IotDpsPropertiesDescriptionResponse) *string { return v.PublicNetworkAccess }).(pulumi.StringPtrOutput) +} + // Service endpoint for provisioning service. func (o IotDpsPropertiesDescriptionResponseOutput) ServiceOperationsHostName() pulumi.StringOutput { return o.ApplyT(func(v IotDpsPropertiesDescriptionResponse) string { return v.ServiceOperationsHostName }).(pulumi.StringOutput) @@ -2585,6 +2645,16 @@ func (o IotDpsPropertiesDescriptionResponsePtrOutput) IpFilterRules() IpFilterRu }).(IpFilterRuleResponseArrayOutput) } +// Private endpoint connections created on this IotHub +func (o IotDpsPropertiesDescriptionResponsePtrOutput) PrivateEndpointConnections() PrivateEndpointConnectionResponseArrayOutput { + return o.ApplyT(func(v *IotDpsPropertiesDescriptionResponse) []PrivateEndpointConnectionResponse { + if v == nil { + return nil + } + return v.PrivateEndpointConnections + }).(PrivateEndpointConnectionResponseArrayOutput) +} + // The ARM provisioning state of the provisioning service. func (o IotDpsPropertiesDescriptionResponsePtrOutput) ProvisioningState() pulumi.StringPtrOutput { return o.ApplyT(func(v *IotDpsPropertiesDescriptionResponse) *string { @@ -2595,6 +2665,16 @@ func (o IotDpsPropertiesDescriptionResponsePtrOutput) ProvisioningState() pulumi }).(pulumi.StringPtrOutput) } +// Whether requests from Public Network are allowed +func (o IotDpsPropertiesDescriptionResponsePtrOutput) PublicNetworkAccess() pulumi.StringPtrOutput { + return o.ApplyT(func(v *IotDpsPropertiesDescriptionResponse) *string { + if v == nil { + return nil + } + return v.PublicNetworkAccess + }).(pulumi.StringPtrOutput) +} + // Service endpoint for provisioning service. func (o IotDpsPropertiesDescriptionResponsePtrOutput) ServiceOperationsHostName() pulumi.StringPtrOutput { return o.ApplyT(func(v *IotDpsPropertiesDescriptionResponse) *string { @@ -2946,7 +3026,7 @@ type IotHubDefinitionDescription struct { AllocationWeight *int `pulumi:"allocationWeight"` // flag for applying allocationPolicy or not for a given iot hub. ApplyAllocationPolicy *bool `pulumi:"applyAllocationPolicy"` - // Connection string og the IoT hub. + // Connection string of the IoT hub. ConnectionString string `pulumi:"connectionString"` // ARM region of the IoT hub. Location string `pulumi:"location"` @@ -2969,7 +3049,7 @@ type IotHubDefinitionDescriptionArgs struct { AllocationWeight pulumi.IntPtrInput `pulumi:"allocationWeight"` // flag for applying allocationPolicy or not for a given iot hub. ApplyAllocationPolicy pulumi.BoolPtrInput `pulumi:"applyAllocationPolicy"` - // Connection string og the IoT hub. + // Connection string of the IoT hub. ConnectionString pulumi.StringInput `pulumi:"connectionString"` // ARM region of the IoT hub. Location pulumi.StringInput `pulumi:"location"` @@ -3037,7 +3117,7 @@ func (o IotHubDefinitionDescriptionOutput) ApplyAllocationPolicy() pulumi.BoolPt return o.ApplyT(func(v IotHubDefinitionDescription) *bool { return v.ApplyAllocationPolicy }).(pulumi.BoolPtrOutput) } -// Connection string og the IoT hub. +// Connection string of the IoT hub. func (o IotHubDefinitionDescriptionOutput) ConnectionString() pulumi.StringOutput { return o.ApplyT(func(v IotHubDefinitionDescription) string { return v.ConnectionString }).(pulumi.StringOutput) } @@ -3073,7 +3153,7 @@ type IotHubDefinitionDescriptionResponse struct { AllocationWeight *int `pulumi:"allocationWeight"` // flag for applying allocationPolicy or not for a given iot hub. ApplyAllocationPolicy *bool `pulumi:"applyAllocationPolicy"` - // Connection string og the IoT hub. + // Connection string of the IoT hub. ConnectionString string `pulumi:"connectionString"` // ARM region of the IoT hub. Location string `pulumi:"location"` @@ -3098,7 +3178,7 @@ type IotHubDefinitionDescriptionResponseArgs struct { AllocationWeight pulumi.IntPtrInput `pulumi:"allocationWeight"` // flag for applying allocationPolicy or not for a given iot hub. ApplyAllocationPolicy pulumi.BoolPtrInput `pulumi:"applyAllocationPolicy"` - // Connection string og the IoT hub. + // Connection string of the IoT hub. ConnectionString pulumi.StringInput `pulumi:"connectionString"` // ARM region of the IoT hub. Location pulumi.StringInput `pulumi:"location"` @@ -3168,7 +3248,7 @@ func (o IotHubDefinitionDescriptionResponseOutput) ApplyAllocationPolicy() pulum return o.ApplyT(func(v IotHubDefinitionDescriptionResponse) *bool { return v.ApplyAllocationPolicy }).(pulumi.BoolPtrOutput) } -// Connection string og the IoT hub. +// Connection string of the IoT hub. func (o IotHubDefinitionDescriptionResponseOutput) ConnectionString() pulumi.StringOutput { return o.ApplyT(func(v IotHubDefinitionDescriptionResponse) string { return v.ConnectionString }).(pulumi.StringOutput) } diff --git a/sdk/go/azurerm/devices/v20170821preview/dpsCertificate.go b/sdk/go/azurerm/devices/v20170821preview/dpsCertificate.go index 5cdf614ff34a..e63ae456468e 100644 --- a/sdk/go/azurerm/devices/v20170821preview/dpsCertificate.go +++ b/sdk/go/azurerm/devices/v20170821preview/dpsCertificate.go @@ -52,6 +52,9 @@ func NewDpsCertificate(ctx *pulumi.Context, { Type: pulumi.String("azurerm:devices/v20200101:DpsCertificate"), }, + { + Type: pulumi.String("azurerm:devices/v20200301:DpsCertificate"), + }, }) opts = append(opts, aliases) var resource DpsCertificate diff --git a/sdk/go/azurerm/devices/v20170821preview/iotDpsResource.go b/sdk/go/azurerm/devices/v20170821preview/iotDpsResource.go index 4489747e98df..3be05a25c2fa 100644 --- a/sdk/go/azurerm/devices/v20170821preview/iotDpsResource.go +++ b/sdk/go/azurerm/devices/v20170821preview/iotDpsResource.go @@ -63,6 +63,9 @@ func NewIotDpsResource(ctx *pulumi.Context, { Type: pulumi.String("azurerm:devices/v20200101:IotDpsResource"), }, + { + Type: pulumi.String("azurerm:devices/v20200301:IotDpsResource"), + }, }) opts = append(opts, aliases) var resource IotDpsResource diff --git a/sdk/go/azurerm/devices/v20171115/dpsCertificate.go b/sdk/go/azurerm/devices/v20171115/dpsCertificate.go index 2e1d6d779888..547bdebadba5 100644 --- a/sdk/go/azurerm/devices/v20171115/dpsCertificate.go +++ b/sdk/go/azurerm/devices/v20171115/dpsCertificate.go @@ -52,6 +52,9 @@ func NewDpsCertificate(ctx *pulumi.Context, { Type: pulumi.String("azurerm:devices/v20200101:DpsCertificate"), }, + { + Type: pulumi.String("azurerm:devices/v20200301:DpsCertificate"), + }, }) opts = append(opts, aliases) var resource DpsCertificate diff --git a/sdk/go/azurerm/devices/v20171115/iotDpsResource.go b/sdk/go/azurerm/devices/v20171115/iotDpsResource.go index ae447b60343c..c1464a6f698a 100644 --- a/sdk/go/azurerm/devices/v20171115/iotDpsResource.go +++ b/sdk/go/azurerm/devices/v20171115/iotDpsResource.go @@ -64,6 +64,9 @@ func NewIotDpsResource(ctx *pulumi.Context, { Type: pulumi.String("azurerm:devices/v20200101:IotDpsResource"), }, + { + Type: pulumi.String("azurerm:devices/v20200301:IotDpsResource"), + }, }) opts = append(opts, aliases) var resource IotDpsResource diff --git a/sdk/go/azurerm/devices/v20180122/dpsCertificate.go b/sdk/go/azurerm/devices/v20180122/dpsCertificate.go index 0b3e700a7fe7..aca11e74d452 100644 --- a/sdk/go/azurerm/devices/v20180122/dpsCertificate.go +++ b/sdk/go/azurerm/devices/v20180122/dpsCertificate.go @@ -52,6 +52,9 @@ func NewDpsCertificate(ctx *pulumi.Context, { Type: pulumi.String("azurerm:devices/v20200101:DpsCertificate"), }, + { + Type: pulumi.String("azurerm:devices/v20200301:DpsCertificate"), + }, }) opts = append(opts, aliases) var resource DpsCertificate diff --git a/sdk/go/azurerm/devices/v20180122/iotDpsResource.go b/sdk/go/azurerm/devices/v20180122/iotDpsResource.go index 75cb48df1935..87a11e912f98 100644 --- a/sdk/go/azurerm/devices/v20180122/iotDpsResource.go +++ b/sdk/go/azurerm/devices/v20180122/iotDpsResource.go @@ -64,6 +64,9 @@ func NewIotDpsResource(ctx *pulumi.Context, { Type: pulumi.String("azurerm:devices/v20200101:IotDpsResource"), }, + { + Type: pulumi.String("azurerm:devices/v20200301:IotDpsResource"), + }, }) opts = append(opts, aliases) var resource IotDpsResource diff --git a/sdk/go/azurerm/devices/v20200101/dpsCertificate.go b/sdk/go/azurerm/devices/v20200101/dpsCertificate.go index 153b4cf0dbd9..807f10a46e75 100644 --- a/sdk/go/azurerm/devices/v20200101/dpsCertificate.go +++ b/sdk/go/azurerm/devices/v20200101/dpsCertificate.go @@ -52,6 +52,9 @@ func NewDpsCertificate(ctx *pulumi.Context, { Type: pulumi.String("azurerm:devices/v20180122:DpsCertificate"), }, + { + Type: pulumi.String("azurerm:devices/v20200301:DpsCertificate"), + }, }) opts = append(opts, aliases) var resource DpsCertificate diff --git a/sdk/go/azurerm/devices/v20200101/iotDpsResource.go b/sdk/go/azurerm/devices/v20200101/iotDpsResource.go index 82216ccf1f54..2ec5ddb3ac01 100644 --- a/sdk/go/azurerm/devices/v20200101/iotDpsResource.go +++ b/sdk/go/azurerm/devices/v20200101/iotDpsResource.go @@ -64,6 +64,9 @@ func NewIotDpsResource(ctx *pulumi.Context, { Type: pulumi.String("azurerm:devices/v20180122:IotDpsResource"), }, + { + Type: pulumi.String("azurerm:devices/v20200301:IotDpsResource"), + }, }) opts = append(opts, aliases) var resource IotDpsResource diff --git a/sdk/go/azurerm/devices/v20200301/dpsCertificate.go b/sdk/go/azurerm/devices/v20200301/dpsCertificate.go new file mode 100644 index 000000000000..4c0894a4c7dc --- /dev/null +++ b/sdk/go/azurerm/devices/v20200301/dpsCertificate.go @@ -0,0 +1,132 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package v20200301 + +import ( + "reflect" + + "github.com/pkg/errors" + "github.com/pulumi/pulumi/sdk/v2/go/pulumi" +) + +// The X509 Certificate. +type DpsCertificate struct { + pulumi.CustomResourceState + + // The entity tag. + Etag pulumi.StringOutput `pulumi:"etag"` + // The name of the certificate. + Name pulumi.StringOutput `pulumi:"name"` + // properties of a certificate + Properties CertificatePropertiesResponseOutput `pulumi:"properties"` + // The resource type. + Type pulumi.StringOutput `pulumi:"type"` +} + +// NewDpsCertificate registers a new resource with the given unique name, arguments, and options. +func NewDpsCertificate(ctx *pulumi.Context, + name string, args *DpsCertificateArgs, opts ...pulumi.ResourceOption) (*DpsCertificate, error) { + if args == nil || args.CertificateName == nil { + return nil, errors.New("missing required argument 'CertificateName'") + } + if args == nil || args.ProvisioningServiceName == nil { + return nil, errors.New("missing required argument 'ProvisioningServiceName'") + } + if args == nil || args.ResourceGroupName == nil { + return nil, errors.New("missing required argument 'ResourceGroupName'") + } + if args == nil { + args = &DpsCertificateArgs{} + } + aliases := pulumi.Aliases([]pulumi.Alias{ + { + Type: pulumi.String("azurerm:devices/latest:DpsCertificate"), + }, + { + Type: pulumi.String("azurerm:devices/v20170821preview:DpsCertificate"), + }, + { + Type: pulumi.String("azurerm:devices/v20171115:DpsCertificate"), + }, + { + Type: pulumi.String("azurerm:devices/v20180122:DpsCertificate"), + }, + { + Type: pulumi.String("azurerm:devices/v20200101:DpsCertificate"), + }, + }) + opts = append(opts, aliases) + var resource DpsCertificate + err := ctx.RegisterResource("azurerm:devices/v20200301:DpsCertificate", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetDpsCertificate gets an existing DpsCertificate resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetDpsCertificate(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *DpsCertificateState, opts ...pulumi.ResourceOption) (*DpsCertificate, error) { + var resource DpsCertificate + err := ctx.ReadResource("azurerm:devices/v20200301:DpsCertificate", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering DpsCertificate resources. +type dpsCertificateState struct { + // The entity tag. + Etag *string `pulumi:"etag"` + // The name of the certificate. + Name *string `pulumi:"name"` + // properties of a certificate + Properties *CertificatePropertiesResponse `pulumi:"properties"` + // The resource type. + Type *string `pulumi:"type"` +} + +type DpsCertificateState struct { + // The entity tag. + Etag pulumi.StringPtrInput + // The name of the certificate. + Name pulumi.StringPtrInput + // properties of a certificate + Properties CertificatePropertiesResponsePtrInput + // The resource type. + Type pulumi.StringPtrInput +} + +func (DpsCertificateState) ElementType() reflect.Type { + return reflect.TypeOf((*dpsCertificateState)(nil)).Elem() +} + +type dpsCertificateArgs struct { + // Base-64 representation of the X509 leaf certificate .cer file or just .pem file content. + Certificate *string `pulumi:"certificate"` + // The name of the certificate create or update. + CertificateName string `pulumi:"certificateName"` + // The name of the provisioning service. + ProvisioningServiceName string `pulumi:"provisioningServiceName"` + // Resource group identifier. + ResourceGroupName string `pulumi:"resourceGroupName"` +} + +// The set of arguments for constructing a DpsCertificate resource. +type DpsCertificateArgs struct { + // Base-64 representation of the X509 leaf certificate .cer file or just .pem file content. + Certificate pulumi.StringPtrInput + // The name of the certificate create or update. + CertificateName pulumi.StringInput + // The name of the provisioning service. + ProvisioningServiceName pulumi.StringInput + // Resource group identifier. + ResourceGroupName pulumi.StringInput +} + +func (DpsCertificateArgs) ElementType() reflect.Type { + return reflect.TypeOf((*dpsCertificateArgs)(nil)).Elem() +} diff --git a/sdk/go/azurerm/devices/v20200301/getDpsCertificate.go b/sdk/go/azurerm/devices/v20200301/getDpsCertificate.go new file mode 100644 index 000000000000..30530728ce04 --- /dev/null +++ b/sdk/go/azurerm/devices/v20200301/getDpsCertificate.go @@ -0,0 +1,38 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package v20200301 + +import ( + "github.com/pulumi/pulumi/sdk/v2/go/pulumi" +) + +func LookupDpsCertificate(ctx *pulumi.Context, args *LookupDpsCertificateArgs, opts ...pulumi.InvokeOption) (*LookupDpsCertificateResult, error) { + var rv LookupDpsCertificateResult + err := ctx.Invoke("azurerm:devices/v20200301:getDpsCertificate", args, &rv, opts...) + if err != nil { + return nil, err + } + return &rv, nil +} + +type LookupDpsCertificateArgs struct { + // Name of the certificate to retrieve. + CertificateName string `pulumi:"certificateName"` + // Name of the provisioning service the certificate is associated with. + ProvisioningServiceName string `pulumi:"provisioningServiceName"` + // Resource group identifier. + ResourceGroupName string `pulumi:"resourceGroupName"` +} + +// The X509 Certificate. +type LookupDpsCertificateResult struct { + // The entity tag. + Etag string `pulumi:"etag"` + // The name of the certificate. + Name string `pulumi:"name"` + // properties of a certificate + Properties CertificatePropertiesResponse `pulumi:"properties"` + // The resource type. + Type string `pulumi:"type"` +} diff --git a/sdk/go/azurerm/devices/v20200301/getIotDpsResource.go b/sdk/go/azurerm/devices/v20200301/getIotDpsResource.go new file mode 100644 index 000000000000..9f8438b6c576 --- /dev/null +++ b/sdk/go/azurerm/devices/v20200301/getIotDpsResource.go @@ -0,0 +1,42 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package v20200301 + +import ( + "github.com/pulumi/pulumi/sdk/v2/go/pulumi" +) + +func LookupIotDpsResource(ctx *pulumi.Context, args *LookupIotDpsResourceArgs, opts ...pulumi.InvokeOption) (*LookupIotDpsResourceResult, error) { + var rv LookupIotDpsResourceResult + err := ctx.Invoke("azurerm:devices/v20200301:getIotDpsResource", args, &rv, opts...) + if err != nil { + return nil, err + } + return &rv, nil +} + +type LookupIotDpsResourceArgs struct { + // Name of the provisioning service to retrieve. + ProvisioningServiceName string `pulumi:"provisioningServiceName"` + // Resource group name. + ResourceGroupName string `pulumi:"resourceGroupName"` +} + +// The description of the provisioning service. +type LookupIotDpsResourceResult struct { + // The Etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal ETag convention. + Etag *string `pulumi:"etag"` + // The resource location. + Location string `pulumi:"location"` + // The resource name. + Name string `pulumi:"name"` + // Service specific properties for a provisioning service + Properties IotDpsPropertiesDescriptionResponse `pulumi:"properties"` + // Sku info for a provisioning Service. + Sku IotDpsSkuInfoResponse `pulumi:"sku"` + // The resource tags. + Tags map[string]string `pulumi:"tags"` + // The resource type. + Type string `pulumi:"type"` +} diff --git a/sdk/go/azurerm/devices/v20200301/getIotDpsResourcePrivateEndpointConnection.go b/sdk/go/azurerm/devices/v20200301/getIotDpsResourcePrivateEndpointConnection.go new file mode 100644 index 000000000000..b72a20cd8a33 --- /dev/null +++ b/sdk/go/azurerm/devices/v20200301/getIotDpsResourcePrivateEndpointConnection.go @@ -0,0 +1,36 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package v20200301 + +import ( + "github.com/pulumi/pulumi/sdk/v2/go/pulumi" +) + +func LookupIotDpsResourcePrivateEndpointConnection(ctx *pulumi.Context, args *LookupIotDpsResourcePrivateEndpointConnectionArgs, opts ...pulumi.InvokeOption) (*LookupIotDpsResourcePrivateEndpointConnectionResult, error) { + var rv LookupIotDpsResourcePrivateEndpointConnectionResult + err := ctx.Invoke("azurerm:devices/v20200301:getIotDpsResourcePrivateEndpointConnection", args, &rv, opts...) + if err != nil { + return nil, err + } + return &rv, nil +} + +type LookupIotDpsResourcePrivateEndpointConnectionArgs struct { + // The name of the private endpoint connection + PrivateEndpointConnectionName string `pulumi:"privateEndpointConnectionName"` + // The name of the resource group that contains the provisioning service. + ResourceGroupName string `pulumi:"resourceGroupName"` + // The name of the provisioning service. + ResourceName string `pulumi:"resourceName"` +} + +// The private endpoint connection of a provisioning service +type LookupIotDpsResourcePrivateEndpointConnectionResult struct { + // The resource name. + Name string `pulumi:"name"` + // The properties of a private endpoint connection + Properties PrivateEndpointConnectionPropertiesResponse `pulumi:"properties"` + // The resource type. + Type string `pulumi:"type"` +} diff --git a/sdk/go/azurerm/devices/v20200301/iotDpsResource.go b/sdk/go/azurerm/devices/v20200301/iotDpsResource.go new file mode 100644 index 000000000000..aa7c0b26e4c8 --- /dev/null +++ b/sdk/go/azurerm/devices/v20200301/iotDpsResource.go @@ -0,0 +1,168 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package v20200301 + +import ( + "reflect" + + "github.com/pkg/errors" + "github.com/pulumi/pulumi/sdk/v2/go/pulumi" +) + +// The description of the provisioning service. +type IotDpsResource struct { + pulumi.CustomResourceState + + // The Etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal ETag convention. + Etag pulumi.StringPtrOutput `pulumi:"etag"` + // The resource location. + Location pulumi.StringOutput `pulumi:"location"` + // The resource name. + Name pulumi.StringOutput `pulumi:"name"` + // Service specific properties for a provisioning service + Properties IotDpsPropertiesDescriptionResponseOutput `pulumi:"properties"` + // Sku info for a provisioning Service. + Sku IotDpsSkuInfoResponseOutput `pulumi:"sku"` + // The resource tags. + Tags pulumi.StringMapOutput `pulumi:"tags"` + // The resource type. + Type pulumi.StringOutput `pulumi:"type"` +} + +// NewIotDpsResource registers a new resource with the given unique name, arguments, and options. +func NewIotDpsResource(ctx *pulumi.Context, + name string, args *IotDpsResourceArgs, opts ...pulumi.ResourceOption) (*IotDpsResource, error) { + if args == nil || args.Location == nil { + return nil, errors.New("missing required argument 'Location'") + } + if args == nil || args.Properties == nil { + return nil, errors.New("missing required argument 'Properties'") + } + if args == nil || args.ProvisioningServiceName == nil { + return nil, errors.New("missing required argument 'ProvisioningServiceName'") + } + if args == nil || args.ResourceGroupName == nil { + return nil, errors.New("missing required argument 'ResourceGroupName'") + } + if args == nil || args.Sku == nil { + return nil, errors.New("missing required argument 'Sku'") + } + if args == nil { + args = &IotDpsResourceArgs{} + } + aliases := pulumi.Aliases([]pulumi.Alias{ + { + Type: pulumi.String("azurerm:devices/latest:IotDpsResource"), + }, + { + Type: pulumi.String("azurerm:devices/v20170821preview:IotDpsResource"), + }, + { + Type: pulumi.String("azurerm:devices/v20171115:IotDpsResource"), + }, + { + Type: pulumi.String("azurerm:devices/v20180122:IotDpsResource"), + }, + { + Type: pulumi.String("azurerm:devices/v20200101:IotDpsResource"), + }, + }) + opts = append(opts, aliases) + var resource IotDpsResource + err := ctx.RegisterResource("azurerm:devices/v20200301:IotDpsResource", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetIotDpsResource gets an existing IotDpsResource resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetIotDpsResource(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *IotDpsResourceState, opts ...pulumi.ResourceOption) (*IotDpsResource, error) { + var resource IotDpsResource + err := ctx.ReadResource("azurerm:devices/v20200301:IotDpsResource", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering IotDpsResource resources. +type iotDpsResourceState struct { + // The Etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal ETag convention. + Etag *string `pulumi:"etag"` + // The resource location. + Location *string `pulumi:"location"` + // The resource name. + Name *string `pulumi:"name"` + // Service specific properties for a provisioning service + Properties *IotDpsPropertiesDescriptionResponse `pulumi:"properties"` + // Sku info for a provisioning Service. + Sku *IotDpsSkuInfoResponse `pulumi:"sku"` + // The resource tags. + Tags map[string]string `pulumi:"tags"` + // The resource type. + Type *string `pulumi:"type"` +} + +type IotDpsResourceState struct { + // The Etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal ETag convention. + Etag pulumi.StringPtrInput + // The resource location. + Location pulumi.StringPtrInput + // The resource name. + Name pulumi.StringPtrInput + // Service specific properties for a provisioning service + Properties IotDpsPropertiesDescriptionResponsePtrInput + // Sku info for a provisioning Service. + Sku IotDpsSkuInfoResponsePtrInput + // The resource tags. + Tags pulumi.StringMapInput + // The resource type. + Type pulumi.StringPtrInput +} + +func (IotDpsResourceState) ElementType() reflect.Type { + return reflect.TypeOf((*iotDpsResourceState)(nil)).Elem() +} + +type iotDpsResourceArgs struct { + // The Etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal ETag convention. + Etag *string `pulumi:"etag"` + // The resource location. + Location string `pulumi:"location"` + // Service specific properties for a provisioning service + Properties IotDpsPropertiesDescription `pulumi:"properties"` + // Name of provisioning service to create or update. + ProvisioningServiceName string `pulumi:"provisioningServiceName"` + // Resource group identifier. + ResourceGroupName string `pulumi:"resourceGroupName"` + // Sku info for a provisioning Service. + Sku IotDpsSkuInfo `pulumi:"sku"` + // The resource tags. + Tags map[string]string `pulumi:"tags"` +} + +// The set of arguments for constructing a IotDpsResource resource. +type IotDpsResourceArgs struct { + // The Etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal ETag convention. + Etag pulumi.StringPtrInput + // The resource location. + Location pulumi.StringInput + // Service specific properties for a provisioning service + Properties IotDpsPropertiesDescriptionInput + // Name of provisioning service to create or update. + ProvisioningServiceName pulumi.StringInput + // Resource group identifier. + ResourceGroupName pulumi.StringInput + // Sku info for a provisioning Service. + Sku IotDpsSkuInfoInput + // The resource tags. + Tags pulumi.StringMapInput +} + +func (IotDpsResourceArgs) ElementType() reflect.Type { + return reflect.TypeOf((*iotDpsResourceArgs)(nil)).Elem() +} diff --git a/sdk/go/azurerm/devices/v20200301/iotDpsResourcePrivateEndpointConnection.go b/sdk/go/azurerm/devices/v20200301/iotDpsResourcePrivateEndpointConnection.go new file mode 100644 index 000000000000..ea096e7cf786 --- /dev/null +++ b/sdk/go/azurerm/devices/v20200301/iotDpsResourcePrivateEndpointConnection.go @@ -0,0 +1,117 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package v20200301 + +import ( + "reflect" + + "github.com/pkg/errors" + "github.com/pulumi/pulumi/sdk/v2/go/pulumi" +) + +// The private endpoint connection of a provisioning service +type IotDpsResourcePrivateEndpointConnection struct { + pulumi.CustomResourceState + + // The resource name. + Name pulumi.StringOutput `pulumi:"name"` + // The properties of a private endpoint connection + Properties PrivateEndpointConnectionPropertiesResponseOutput `pulumi:"properties"` + // The resource type. + Type pulumi.StringOutput `pulumi:"type"` +} + +// NewIotDpsResourcePrivateEndpointConnection registers a new resource with the given unique name, arguments, and options. +func NewIotDpsResourcePrivateEndpointConnection(ctx *pulumi.Context, + name string, args *IotDpsResourcePrivateEndpointConnectionArgs, opts ...pulumi.ResourceOption) (*IotDpsResourcePrivateEndpointConnection, error) { + if args == nil || args.PrivateEndpointConnectionName == nil { + return nil, errors.New("missing required argument 'PrivateEndpointConnectionName'") + } + if args == nil || args.Properties == nil { + return nil, errors.New("missing required argument 'Properties'") + } + if args == nil || args.ResourceGroupName == nil { + return nil, errors.New("missing required argument 'ResourceGroupName'") + } + if args == nil || args.ResourceName == nil { + return nil, errors.New("missing required argument 'ResourceName'") + } + if args == nil { + args = &IotDpsResourcePrivateEndpointConnectionArgs{} + } + aliases := pulumi.Aliases([]pulumi.Alias{ + { + Type: pulumi.String("azurerm:devices/latest:IotDpsResourcePrivateEndpointConnection"), + }, + }) + opts = append(opts, aliases) + var resource IotDpsResourcePrivateEndpointConnection + err := ctx.RegisterResource("azurerm:devices/v20200301:IotDpsResourcePrivateEndpointConnection", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetIotDpsResourcePrivateEndpointConnection gets an existing IotDpsResourcePrivateEndpointConnection resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetIotDpsResourcePrivateEndpointConnection(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *IotDpsResourcePrivateEndpointConnectionState, opts ...pulumi.ResourceOption) (*IotDpsResourcePrivateEndpointConnection, error) { + var resource IotDpsResourcePrivateEndpointConnection + err := ctx.ReadResource("azurerm:devices/v20200301:IotDpsResourcePrivateEndpointConnection", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering IotDpsResourcePrivateEndpointConnection resources. +type iotDpsResourcePrivateEndpointConnectionState struct { + // The resource name. + Name *string `pulumi:"name"` + // The properties of a private endpoint connection + Properties *PrivateEndpointConnectionPropertiesResponse `pulumi:"properties"` + // The resource type. + Type *string `pulumi:"type"` +} + +type IotDpsResourcePrivateEndpointConnectionState struct { + // The resource name. + Name pulumi.StringPtrInput + // The properties of a private endpoint connection + Properties PrivateEndpointConnectionPropertiesResponsePtrInput + // The resource type. + Type pulumi.StringPtrInput +} + +func (IotDpsResourcePrivateEndpointConnectionState) ElementType() reflect.Type { + return reflect.TypeOf((*iotDpsResourcePrivateEndpointConnectionState)(nil)).Elem() +} + +type iotDpsResourcePrivateEndpointConnectionArgs struct { + // The name of the private endpoint connection + PrivateEndpointConnectionName string `pulumi:"privateEndpointConnectionName"` + // The properties of a private endpoint connection + Properties PrivateEndpointConnectionProperties `pulumi:"properties"` + // The name of the resource group that contains the provisioning service. + ResourceGroupName string `pulumi:"resourceGroupName"` + // The name of the provisioning service. + ResourceName string `pulumi:"resourceName"` +} + +// The set of arguments for constructing a IotDpsResourcePrivateEndpointConnection resource. +type IotDpsResourcePrivateEndpointConnectionArgs struct { + // The name of the private endpoint connection + PrivateEndpointConnectionName pulumi.StringInput + // The properties of a private endpoint connection + Properties PrivateEndpointConnectionPropertiesInput + // The name of the resource group that contains the provisioning service. + ResourceGroupName pulumi.StringInput + // The name of the provisioning service. + ResourceName pulumi.StringInput +} + +func (IotDpsResourcePrivateEndpointConnectionArgs) ElementType() reflect.Type { + return reflect.TypeOf((*iotDpsResourcePrivateEndpointConnectionArgs)(nil)).Elem() +} diff --git a/sdk/go/azurerm/devices/v20200301/listIotDpsResourceKeys.go b/sdk/go/azurerm/devices/v20200301/listIotDpsResourceKeys.go new file mode 100644 index 000000000000..217f9502a732 --- /dev/null +++ b/sdk/go/azurerm/devices/v20200301/listIotDpsResourceKeys.go @@ -0,0 +1,32 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package v20200301 + +import ( + "github.com/pulumi/pulumi/sdk/v2/go/pulumi" +) + +func ListIotDpsResourceKeys(ctx *pulumi.Context, args *ListIotDpsResourceKeysArgs, opts ...pulumi.InvokeOption) (*ListIotDpsResourceKeysResult, error) { + var rv ListIotDpsResourceKeysResult + err := ctx.Invoke("azurerm:devices/v20200301:listIotDpsResourceKeys", args, &rv, opts...) + if err != nil { + return nil, err + } + return &rv, nil +} + +type ListIotDpsResourceKeysArgs struct { + // The provisioning service name to get the shared access keys for. + ProvisioningServiceName string `pulumi:"provisioningServiceName"` + // resource group name + ResourceGroupName string `pulumi:"resourceGroupName"` +} + +// List of shared access keys. +type ListIotDpsResourceKeysResult struct { + // The next link. + NextLink string `pulumi:"nextLink"` + // The list of shared access policies. + Value []SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponse `pulumi:"value"` +} diff --git a/sdk/go/azurerm/devices/v20200301/listIotDpsResourceKeysForKeyName.go b/sdk/go/azurerm/devices/v20200301/listIotDpsResourceKeysForKeyName.go new file mode 100644 index 000000000000..192b675c43a9 --- /dev/null +++ b/sdk/go/azurerm/devices/v20200301/listIotDpsResourceKeysForKeyName.go @@ -0,0 +1,38 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package v20200301 + +import ( + "github.com/pulumi/pulumi/sdk/v2/go/pulumi" +) + +func ListIotDpsResourceKeysForKeyName(ctx *pulumi.Context, args *ListIotDpsResourceKeysForKeyNameArgs, opts ...pulumi.InvokeOption) (*ListIotDpsResourceKeysForKeyNameResult, error) { + var rv ListIotDpsResourceKeysForKeyNameResult + err := ctx.Invoke("azurerm:devices/v20200301:listIotDpsResourceKeysForKeyName", args, &rv, opts...) + if err != nil { + return nil, err + } + return &rv, nil +} + +type ListIotDpsResourceKeysForKeyNameArgs struct { + // Logical key name to get key-values for. + KeyName string `pulumi:"keyName"` + // Name of the provisioning service. + ProvisioningServiceName string `pulumi:"provisioningServiceName"` + // The name of the resource group that contains the provisioning service. + ResourceGroupName string `pulumi:"resourceGroupName"` +} + +// Description of the shared access key. +type ListIotDpsResourceKeysForKeyNameResult struct { + // Name of the key. + KeyName string `pulumi:"keyName"` + // Primary SAS key value. + PrimaryKey *string `pulumi:"primaryKey"` + // Rights that this key has. + Rights string `pulumi:"rights"` + // Secondary SAS key value. + SecondaryKey *string `pulumi:"secondaryKey"` +} diff --git a/sdk/go/azurerm/devices/v20200301/pulumiTypes.go b/sdk/go/azurerm/devices/v20200301/pulumiTypes.go index 4505a75a6d5d..552e35d55c37 100644 --- a/sdk/go/azurerm/devices/v20200301/pulumiTypes.go +++ b/sdk/go/azurerm/devices/v20200301/pulumiTypes.go @@ -12,9 +12,7 @@ import ( // The description of an X509 CA Certificate. type CertificatePropertiesResponse struct { - // The certificate content - Certificate *string `pulumi:"certificate"` - // The certificate's create date and time. + // The certificate's creation date and time. Created string `pulumi:"created"` // The certificate's expiration date and time. Expiry string `pulumi:"expiry"` @@ -41,9 +39,7 @@ type CertificatePropertiesResponseInput interface { // The description of an X509 CA Certificate. type CertificatePropertiesResponseArgs struct { - // The certificate content - Certificate pulumi.StringPtrInput `pulumi:"certificate"` - // The certificate's create date and time. + // The certificate's creation date and time. Created pulumi.StringInput `pulumi:"created"` // The certificate's expiration date and time. Expiry pulumi.StringInput `pulumi:"expiry"` @@ -135,12 +131,7 @@ func (o CertificatePropertiesResponseOutput) ToCertificatePropertiesResponsePtrO }).(CertificatePropertiesResponsePtrOutput) } -// The certificate content -func (o CertificatePropertiesResponseOutput) Certificate() pulumi.StringPtrOutput { - return o.ApplyT(func(v CertificatePropertiesResponse) *string { return v.Certificate }).(pulumi.StringPtrOutput) -} - -// The certificate's create date and time. +// The certificate's creation date and time. func (o CertificatePropertiesResponseOutput) Created() pulumi.StringOutput { return o.ApplyT(func(v CertificatePropertiesResponse) string { return v.Created }).(pulumi.StringOutput) } @@ -188,17 +179,7 @@ func (o CertificatePropertiesResponsePtrOutput) Elem() CertificatePropertiesResp return o.ApplyT(func(v *CertificatePropertiesResponse) CertificatePropertiesResponse { return *v }).(CertificatePropertiesResponseOutput) } -// The certificate content -func (o CertificatePropertiesResponsePtrOutput) Certificate() pulumi.StringPtrOutput { - return o.ApplyT(func(v *CertificatePropertiesResponse) *string { - if v == nil { - return nil - } - return v.Certificate - }).(pulumi.StringPtrOutput) -} - -// The certificate's create date and time. +// The certificate's creation date and time. func (o CertificatePropertiesResponsePtrOutput) Created() pulumi.StringPtrOutput { return o.ApplyT(func(v *CertificatePropertiesResponse) *string { if v == nil { @@ -1675,176 +1656,1363 @@ func (o FeedbackPropertiesPtrOutput) TtlAsIso8601() pulumi.StringPtrOutput { }).(pulumi.StringPtrOutput) } -// The properties of the feedback queue for cloud-to-device messages. -type FeedbackPropertiesResponse struct { - // The lock duration for the feedback queue. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages. - LockDurationAsIso8601 *string `pulumi:"lockDurationAsIso8601"` - // The number of times the IoT hub attempts to deliver a message on the feedback queue. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages. - MaxDeliveryCount *int `pulumi:"maxDeliveryCount"` - // The period of time for which a message is available to consume before it is expired by the IoT hub. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages. - TtlAsIso8601 *string `pulumi:"ttlAsIso8601"` +// The properties of the feedback queue for cloud-to-device messages. +type FeedbackPropertiesResponse struct { + // The lock duration for the feedback queue. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages. + LockDurationAsIso8601 *string `pulumi:"lockDurationAsIso8601"` + // The number of times the IoT hub attempts to deliver a message on the feedback queue. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages. + MaxDeliveryCount *int `pulumi:"maxDeliveryCount"` + // The period of time for which a message is available to consume before it is expired by the IoT hub. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages. + TtlAsIso8601 *string `pulumi:"ttlAsIso8601"` +} + +// FeedbackPropertiesResponseInput is an input type that accepts FeedbackPropertiesResponseArgs and FeedbackPropertiesResponseOutput values. +// You can construct a concrete instance of `FeedbackPropertiesResponseInput` via: +// +// FeedbackPropertiesResponseArgs{...} +type FeedbackPropertiesResponseInput interface { + pulumi.Input + + ToFeedbackPropertiesResponseOutput() FeedbackPropertiesResponseOutput + ToFeedbackPropertiesResponseOutputWithContext(context.Context) FeedbackPropertiesResponseOutput +} + +// The properties of the feedback queue for cloud-to-device messages. +type FeedbackPropertiesResponseArgs struct { + // The lock duration for the feedback queue. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages. + LockDurationAsIso8601 pulumi.StringPtrInput `pulumi:"lockDurationAsIso8601"` + // The number of times the IoT hub attempts to deliver a message on the feedback queue. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages. + MaxDeliveryCount pulumi.IntPtrInput `pulumi:"maxDeliveryCount"` + // The period of time for which a message is available to consume before it is expired by the IoT hub. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages. + TtlAsIso8601 pulumi.StringPtrInput `pulumi:"ttlAsIso8601"` +} + +func (FeedbackPropertiesResponseArgs) ElementType() reflect.Type { + return reflect.TypeOf((*FeedbackPropertiesResponse)(nil)).Elem() +} + +func (i FeedbackPropertiesResponseArgs) ToFeedbackPropertiesResponseOutput() FeedbackPropertiesResponseOutput { + return i.ToFeedbackPropertiesResponseOutputWithContext(context.Background()) +} + +func (i FeedbackPropertiesResponseArgs) ToFeedbackPropertiesResponseOutputWithContext(ctx context.Context) FeedbackPropertiesResponseOutput { + return pulumi.ToOutputWithContext(ctx, i).(FeedbackPropertiesResponseOutput) +} + +func (i FeedbackPropertiesResponseArgs) ToFeedbackPropertiesResponsePtrOutput() FeedbackPropertiesResponsePtrOutput { + return i.ToFeedbackPropertiesResponsePtrOutputWithContext(context.Background()) +} + +func (i FeedbackPropertiesResponseArgs) ToFeedbackPropertiesResponsePtrOutputWithContext(ctx context.Context) FeedbackPropertiesResponsePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(FeedbackPropertiesResponseOutput).ToFeedbackPropertiesResponsePtrOutputWithContext(ctx) +} + +// FeedbackPropertiesResponsePtrInput is an input type that accepts FeedbackPropertiesResponseArgs, FeedbackPropertiesResponsePtr and FeedbackPropertiesResponsePtrOutput values. +// You can construct a concrete instance of `FeedbackPropertiesResponsePtrInput` via: +// +// FeedbackPropertiesResponseArgs{...} +// +// or: +// +// nil +type FeedbackPropertiesResponsePtrInput interface { + pulumi.Input + + ToFeedbackPropertiesResponsePtrOutput() FeedbackPropertiesResponsePtrOutput + ToFeedbackPropertiesResponsePtrOutputWithContext(context.Context) FeedbackPropertiesResponsePtrOutput +} + +type feedbackPropertiesResponsePtrType FeedbackPropertiesResponseArgs + +func FeedbackPropertiesResponsePtr(v *FeedbackPropertiesResponseArgs) FeedbackPropertiesResponsePtrInput { + return (*feedbackPropertiesResponsePtrType)(v) +} + +func (*feedbackPropertiesResponsePtrType) ElementType() reflect.Type { + return reflect.TypeOf((**FeedbackPropertiesResponse)(nil)).Elem() +} + +func (i *feedbackPropertiesResponsePtrType) ToFeedbackPropertiesResponsePtrOutput() FeedbackPropertiesResponsePtrOutput { + return i.ToFeedbackPropertiesResponsePtrOutputWithContext(context.Background()) +} + +func (i *feedbackPropertiesResponsePtrType) ToFeedbackPropertiesResponsePtrOutputWithContext(ctx context.Context) FeedbackPropertiesResponsePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(FeedbackPropertiesResponsePtrOutput) +} + +// The properties of the feedback queue for cloud-to-device messages. +type FeedbackPropertiesResponseOutput struct{ *pulumi.OutputState } + +func (FeedbackPropertiesResponseOutput) ElementType() reflect.Type { + return reflect.TypeOf((*FeedbackPropertiesResponse)(nil)).Elem() +} + +func (o FeedbackPropertiesResponseOutput) ToFeedbackPropertiesResponseOutput() FeedbackPropertiesResponseOutput { + return o +} + +func (o FeedbackPropertiesResponseOutput) ToFeedbackPropertiesResponseOutputWithContext(ctx context.Context) FeedbackPropertiesResponseOutput { + return o +} + +func (o FeedbackPropertiesResponseOutput) ToFeedbackPropertiesResponsePtrOutput() FeedbackPropertiesResponsePtrOutput { + return o.ToFeedbackPropertiesResponsePtrOutputWithContext(context.Background()) +} + +func (o FeedbackPropertiesResponseOutput) ToFeedbackPropertiesResponsePtrOutputWithContext(ctx context.Context) FeedbackPropertiesResponsePtrOutput { + return o.ApplyT(func(v FeedbackPropertiesResponse) *FeedbackPropertiesResponse { + return &v + }).(FeedbackPropertiesResponsePtrOutput) +} + +// The lock duration for the feedback queue. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages. +func (o FeedbackPropertiesResponseOutput) LockDurationAsIso8601() pulumi.StringPtrOutput { + return o.ApplyT(func(v FeedbackPropertiesResponse) *string { return v.LockDurationAsIso8601 }).(pulumi.StringPtrOutput) +} + +// The number of times the IoT hub attempts to deliver a message on the feedback queue. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages. +func (o FeedbackPropertiesResponseOutput) MaxDeliveryCount() pulumi.IntPtrOutput { + return o.ApplyT(func(v FeedbackPropertiesResponse) *int { return v.MaxDeliveryCount }).(pulumi.IntPtrOutput) +} + +// The period of time for which a message is available to consume before it is expired by the IoT hub. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages. +func (o FeedbackPropertiesResponseOutput) TtlAsIso8601() pulumi.StringPtrOutput { + return o.ApplyT(func(v FeedbackPropertiesResponse) *string { return v.TtlAsIso8601 }).(pulumi.StringPtrOutput) +} + +type FeedbackPropertiesResponsePtrOutput struct{ *pulumi.OutputState } + +func (FeedbackPropertiesResponsePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**FeedbackPropertiesResponse)(nil)).Elem() +} + +func (o FeedbackPropertiesResponsePtrOutput) ToFeedbackPropertiesResponsePtrOutput() FeedbackPropertiesResponsePtrOutput { + return o +} + +func (o FeedbackPropertiesResponsePtrOutput) ToFeedbackPropertiesResponsePtrOutputWithContext(ctx context.Context) FeedbackPropertiesResponsePtrOutput { + return o +} + +func (o FeedbackPropertiesResponsePtrOutput) Elem() FeedbackPropertiesResponseOutput { + return o.ApplyT(func(v *FeedbackPropertiesResponse) FeedbackPropertiesResponse { return *v }).(FeedbackPropertiesResponseOutput) +} + +// The lock duration for the feedback queue. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages. +func (o FeedbackPropertiesResponsePtrOutput) LockDurationAsIso8601() pulumi.StringPtrOutput { + return o.ApplyT(func(v *FeedbackPropertiesResponse) *string { + if v == nil { + return nil + } + return v.LockDurationAsIso8601 + }).(pulumi.StringPtrOutput) +} + +// The number of times the IoT hub attempts to deliver a message on the feedback queue. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages. +func (o FeedbackPropertiesResponsePtrOutput) MaxDeliveryCount() pulumi.IntPtrOutput { + return o.ApplyT(func(v *FeedbackPropertiesResponse) *int { + if v == nil { + return nil + } + return v.MaxDeliveryCount + }).(pulumi.IntPtrOutput) +} + +// The period of time for which a message is available to consume before it is expired by the IoT hub. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages. +func (o FeedbackPropertiesResponsePtrOutput) TtlAsIso8601() pulumi.StringPtrOutput { + return o.ApplyT(func(v *FeedbackPropertiesResponse) *string { + if v == nil { + return nil + } + return v.TtlAsIso8601 + }).(pulumi.StringPtrOutput) +} + +// the service specific properties of a provisioning service, including keys, linked iot hubs, current state, and system generated properties such as hostname and idScope +type IotDpsPropertiesDescription struct { + // Allocation policy to be used by this provisioning service. + AllocationPolicy *string `pulumi:"allocationPolicy"` + // List of authorization keys for a provisioning service. + AuthorizationPolicies []SharedAccessSignatureAuthorizationRuleAccessRightsDescription `pulumi:"authorizationPolicies"` + // List of IoT hubs associated with this provisioning service. + IotHubs []IotHubDefinitionDescription `pulumi:"iotHubs"` + // The IP filter rules. + IpFilterRules []IpFilterRule `pulumi:"ipFilterRules"` + // Private endpoint connections created on this IotHub + PrivateEndpointConnections []PrivateEndpointConnectionType `pulumi:"privateEndpointConnections"` + // The ARM provisioning state of the provisioning service. + ProvisioningState *string `pulumi:"provisioningState"` + // Whether requests from Public Network are allowed + PublicNetworkAccess *string `pulumi:"publicNetworkAccess"` + // Current state of the provisioning service. + State *string `pulumi:"state"` +} + +// IotDpsPropertiesDescriptionInput is an input type that accepts IotDpsPropertiesDescriptionArgs and IotDpsPropertiesDescriptionOutput values. +// You can construct a concrete instance of `IotDpsPropertiesDescriptionInput` via: +// +// IotDpsPropertiesDescriptionArgs{...} +type IotDpsPropertiesDescriptionInput interface { + pulumi.Input + + ToIotDpsPropertiesDescriptionOutput() IotDpsPropertiesDescriptionOutput + ToIotDpsPropertiesDescriptionOutputWithContext(context.Context) IotDpsPropertiesDescriptionOutput +} + +// the service specific properties of a provisioning service, including keys, linked iot hubs, current state, and system generated properties such as hostname and idScope +type IotDpsPropertiesDescriptionArgs struct { + // Allocation policy to be used by this provisioning service. + AllocationPolicy pulumi.StringPtrInput `pulumi:"allocationPolicy"` + // List of authorization keys for a provisioning service. + AuthorizationPolicies SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArrayInput `pulumi:"authorizationPolicies"` + // List of IoT hubs associated with this provisioning service. + IotHubs IotHubDefinitionDescriptionArrayInput `pulumi:"iotHubs"` + // The IP filter rules. + IpFilterRules IpFilterRuleArrayInput `pulumi:"ipFilterRules"` + // Private endpoint connections created on this IotHub + PrivateEndpointConnections PrivateEndpointConnectionTypeArrayInput `pulumi:"privateEndpointConnections"` + // The ARM provisioning state of the provisioning service. + ProvisioningState pulumi.StringPtrInput `pulumi:"provisioningState"` + // Whether requests from Public Network are allowed + PublicNetworkAccess pulumi.StringPtrInput `pulumi:"publicNetworkAccess"` + // Current state of the provisioning service. + State pulumi.StringPtrInput `pulumi:"state"` +} + +func (IotDpsPropertiesDescriptionArgs) ElementType() reflect.Type { + return reflect.TypeOf((*IotDpsPropertiesDescription)(nil)).Elem() +} + +func (i IotDpsPropertiesDescriptionArgs) ToIotDpsPropertiesDescriptionOutput() IotDpsPropertiesDescriptionOutput { + return i.ToIotDpsPropertiesDescriptionOutputWithContext(context.Background()) +} + +func (i IotDpsPropertiesDescriptionArgs) ToIotDpsPropertiesDescriptionOutputWithContext(ctx context.Context) IotDpsPropertiesDescriptionOutput { + return pulumi.ToOutputWithContext(ctx, i).(IotDpsPropertiesDescriptionOutput) +} + +func (i IotDpsPropertiesDescriptionArgs) ToIotDpsPropertiesDescriptionPtrOutput() IotDpsPropertiesDescriptionPtrOutput { + return i.ToIotDpsPropertiesDescriptionPtrOutputWithContext(context.Background()) +} + +func (i IotDpsPropertiesDescriptionArgs) ToIotDpsPropertiesDescriptionPtrOutputWithContext(ctx context.Context) IotDpsPropertiesDescriptionPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(IotDpsPropertiesDescriptionOutput).ToIotDpsPropertiesDescriptionPtrOutputWithContext(ctx) +} + +// IotDpsPropertiesDescriptionPtrInput is an input type that accepts IotDpsPropertiesDescriptionArgs, IotDpsPropertiesDescriptionPtr and IotDpsPropertiesDescriptionPtrOutput values. +// You can construct a concrete instance of `IotDpsPropertiesDescriptionPtrInput` via: +// +// IotDpsPropertiesDescriptionArgs{...} +// +// or: +// +// nil +type IotDpsPropertiesDescriptionPtrInput interface { + pulumi.Input + + ToIotDpsPropertiesDescriptionPtrOutput() IotDpsPropertiesDescriptionPtrOutput + ToIotDpsPropertiesDescriptionPtrOutputWithContext(context.Context) IotDpsPropertiesDescriptionPtrOutput +} + +type iotDpsPropertiesDescriptionPtrType IotDpsPropertiesDescriptionArgs + +func IotDpsPropertiesDescriptionPtr(v *IotDpsPropertiesDescriptionArgs) IotDpsPropertiesDescriptionPtrInput { + return (*iotDpsPropertiesDescriptionPtrType)(v) +} + +func (*iotDpsPropertiesDescriptionPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**IotDpsPropertiesDescription)(nil)).Elem() +} + +func (i *iotDpsPropertiesDescriptionPtrType) ToIotDpsPropertiesDescriptionPtrOutput() IotDpsPropertiesDescriptionPtrOutput { + return i.ToIotDpsPropertiesDescriptionPtrOutputWithContext(context.Background()) +} + +func (i *iotDpsPropertiesDescriptionPtrType) ToIotDpsPropertiesDescriptionPtrOutputWithContext(ctx context.Context) IotDpsPropertiesDescriptionPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(IotDpsPropertiesDescriptionPtrOutput) +} + +// the service specific properties of a provisioning service, including keys, linked iot hubs, current state, and system generated properties such as hostname and idScope +type IotDpsPropertiesDescriptionOutput struct{ *pulumi.OutputState } + +func (IotDpsPropertiesDescriptionOutput) ElementType() reflect.Type { + return reflect.TypeOf((*IotDpsPropertiesDescription)(nil)).Elem() +} + +func (o IotDpsPropertiesDescriptionOutput) ToIotDpsPropertiesDescriptionOutput() IotDpsPropertiesDescriptionOutput { + return o +} + +func (o IotDpsPropertiesDescriptionOutput) ToIotDpsPropertiesDescriptionOutputWithContext(ctx context.Context) IotDpsPropertiesDescriptionOutput { + return o +} + +func (o IotDpsPropertiesDescriptionOutput) ToIotDpsPropertiesDescriptionPtrOutput() IotDpsPropertiesDescriptionPtrOutput { + return o.ToIotDpsPropertiesDescriptionPtrOutputWithContext(context.Background()) +} + +func (o IotDpsPropertiesDescriptionOutput) ToIotDpsPropertiesDescriptionPtrOutputWithContext(ctx context.Context) IotDpsPropertiesDescriptionPtrOutput { + return o.ApplyT(func(v IotDpsPropertiesDescription) *IotDpsPropertiesDescription { + return &v + }).(IotDpsPropertiesDescriptionPtrOutput) +} + +// Allocation policy to be used by this provisioning service. +func (o IotDpsPropertiesDescriptionOutput) AllocationPolicy() pulumi.StringPtrOutput { + return o.ApplyT(func(v IotDpsPropertiesDescription) *string { return v.AllocationPolicy }).(pulumi.StringPtrOutput) +} + +// List of authorization keys for a provisioning service. +func (o IotDpsPropertiesDescriptionOutput) AuthorizationPolicies() SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArrayOutput { + return o.ApplyT(func(v IotDpsPropertiesDescription) []SharedAccessSignatureAuthorizationRuleAccessRightsDescription { + return v.AuthorizationPolicies + }).(SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArrayOutput) +} + +// List of IoT hubs associated with this provisioning service. +func (o IotDpsPropertiesDescriptionOutput) IotHubs() IotHubDefinitionDescriptionArrayOutput { + return o.ApplyT(func(v IotDpsPropertiesDescription) []IotHubDefinitionDescription { return v.IotHubs }).(IotHubDefinitionDescriptionArrayOutput) +} + +// The IP filter rules. +func (o IotDpsPropertiesDescriptionOutput) IpFilterRules() IpFilterRuleArrayOutput { + return o.ApplyT(func(v IotDpsPropertiesDescription) []IpFilterRule { return v.IpFilterRules }).(IpFilterRuleArrayOutput) +} + +// Private endpoint connections created on this IotHub +func (o IotDpsPropertiesDescriptionOutput) PrivateEndpointConnections() PrivateEndpointConnectionTypeArrayOutput { + return o.ApplyT(func(v IotDpsPropertiesDescription) []PrivateEndpointConnectionType { + return v.PrivateEndpointConnections + }).(PrivateEndpointConnectionTypeArrayOutput) +} + +// The ARM provisioning state of the provisioning service. +func (o IotDpsPropertiesDescriptionOutput) ProvisioningState() pulumi.StringPtrOutput { + return o.ApplyT(func(v IotDpsPropertiesDescription) *string { return v.ProvisioningState }).(pulumi.StringPtrOutput) +} + +// Whether requests from Public Network are allowed +func (o IotDpsPropertiesDescriptionOutput) PublicNetworkAccess() pulumi.StringPtrOutput { + return o.ApplyT(func(v IotDpsPropertiesDescription) *string { return v.PublicNetworkAccess }).(pulumi.StringPtrOutput) +} + +// Current state of the provisioning service. +func (o IotDpsPropertiesDescriptionOutput) State() pulumi.StringPtrOutput { + return o.ApplyT(func(v IotDpsPropertiesDescription) *string { return v.State }).(pulumi.StringPtrOutput) +} + +type IotDpsPropertiesDescriptionPtrOutput struct{ *pulumi.OutputState } + +func (IotDpsPropertiesDescriptionPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**IotDpsPropertiesDescription)(nil)).Elem() +} + +func (o IotDpsPropertiesDescriptionPtrOutput) ToIotDpsPropertiesDescriptionPtrOutput() IotDpsPropertiesDescriptionPtrOutput { + return o +} + +func (o IotDpsPropertiesDescriptionPtrOutput) ToIotDpsPropertiesDescriptionPtrOutputWithContext(ctx context.Context) IotDpsPropertiesDescriptionPtrOutput { + return o +} + +func (o IotDpsPropertiesDescriptionPtrOutput) Elem() IotDpsPropertiesDescriptionOutput { + return o.ApplyT(func(v *IotDpsPropertiesDescription) IotDpsPropertiesDescription { return *v }).(IotDpsPropertiesDescriptionOutput) +} + +// Allocation policy to be used by this provisioning service. +func (o IotDpsPropertiesDescriptionPtrOutput) AllocationPolicy() pulumi.StringPtrOutput { + return o.ApplyT(func(v *IotDpsPropertiesDescription) *string { + if v == nil { + return nil + } + return v.AllocationPolicy + }).(pulumi.StringPtrOutput) +} + +// List of authorization keys for a provisioning service. +func (o IotDpsPropertiesDescriptionPtrOutput) AuthorizationPolicies() SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArrayOutput { + return o.ApplyT(func(v *IotDpsPropertiesDescription) []SharedAccessSignatureAuthorizationRuleAccessRightsDescription { + if v == nil { + return nil + } + return v.AuthorizationPolicies + }).(SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArrayOutput) +} + +// List of IoT hubs associated with this provisioning service. +func (o IotDpsPropertiesDescriptionPtrOutput) IotHubs() IotHubDefinitionDescriptionArrayOutput { + return o.ApplyT(func(v *IotDpsPropertiesDescription) []IotHubDefinitionDescription { + if v == nil { + return nil + } + return v.IotHubs + }).(IotHubDefinitionDescriptionArrayOutput) +} + +// The IP filter rules. +func (o IotDpsPropertiesDescriptionPtrOutput) IpFilterRules() IpFilterRuleArrayOutput { + return o.ApplyT(func(v *IotDpsPropertiesDescription) []IpFilterRule { + if v == nil { + return nil + } + return v.IpFilterRules + }).(IpFilterRuleArrayOutput) +} + +// Private endpoint connections created on this IotHub +func (o IotDpsPropertiesDescriptionPtrOutput) PrivateEndpointConnections() PrivateEndpointConnectionTypeArrayOutput { + return o.ApplyT(func(v *IotDpsPropertiesDescription) []PrivateEndpointConnectionType { + if v == nil { + return nil + } + return v.PrivateEndpointConnections + }).(PrivateEndpointConnectionTypeArrayOutput) +} + +// The ARM provisioning state of the provisioning service. +func (o IotDpsPropertiesDescriptionPtrOutput) ProvisioningState() pulumi.StringPtrOutput { + return o.ApplyT(func(v *IotDpsPropertiesDescription) *string { + if v == nil { + return nil + } + return v.ProvisioningState + }).(pulumi.StringPtrOutput) +} + +// Whether requests from Public Network are allowed +func (o IotDpsPropertiesDescriptionPtrOutput) PublicNetworkAccess() pulumi.StringPtrOutput { + return o.ApplyT(func(v *IotDpsPropertiesDescription) *string { + if v == nil { + return nil + } + return v.PublicNetworkAccess + }).(pulumi.StringPtrOutput) +} + +// Current state of the provisioning service. +func (o IotDpsPropertiesDescriptionPtrOutput) State() pulumi.StringPtrOutput { + return o.ApplyT(func(v *IotDpsPropertiesDescription) *string { + if v == nil { + return nil + } + return v.State + }).(pulumi.StringPtrOutput) +} + +// the service specific properties of a provisioning service, including keys, linked iot hubs, current state, and system generated properties such as hostname and idScope +type IotDpsPropertiesDescriptionResponse struct { + // Allocation policy to be used by this provisioning service. + AllocationPolicy *string `pulumi:"allocationPolicy"` + // List of authorization keys for a provisioning service. + AuthorizationPolicies []SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponse `pulumi:"authorizationPolicies"` + // Device endpoint for this provisioning service. + DeviceProvisioningHostName string `pulumi:"deviceProvisioningHostName"` + // Unique identifier of this provisioning service. + IdScope string `pulumi:"idScope"` + // List of IoT hubs associated with this provisioning service. + IotHubs []IotHubDefinitionDescriptionResponse `pulumi:"iotHubs"` + // The IP filter rules. + IpFilterRules []IpFilterRuleResponse `pulumi:"ipFilterRules"` + // Private endpoint connections created on this IotHub + PrivateEndpointConnections []PrivateEndpointConnectionResponse `pulumi:"privateEndpointConnections"` + // The ARM provisioning state of the provisioning service. + ProvisioningState *string `pulumi:"provisioningState"` + // Whether requests from Public Network are allowed + PublicNetworkAccess *string `pulumi:"publicNetworkAccess"` + // Service endpoint for provisioning service. + ServiceOperationsHostName string `pulumi:"serviceOperationsHostName"` + // Current state of the provisioning service. + State *string `pulumi:"state"` +} + +// IotDpsPropertiesDescriptionResponseInput is an input type that accepts IotDpsPropertiesDescriptionResponseArgs and IotDpsPropertiesDescriptionResponseOutput values. +// You can construct a concrete instance of `IotDpsPropertiesDescriptionResponseInput` via: +// +// IotDpsPropertiesDescriptionResponseArgs{...} +type IotDpsPropertiesDescriptionResponseInput interface { + pulumi.Input + + ToIotDpsPropertiesDescriptionResponseOutput() IotDpsPropertiesDescriptionResponseOutput + ToIotDpsPropertiesDescriptionResponseOutputWithContext(context.Context) IotDpsPropertiesDescriptionResponseOutput +} + +// the service specific properties of a provisioning service, including keys, linked iot hubs, current state, and system generated properties such as hostname and idScope +type IotDpsPropertiesDescriptionResponseArgs struct { + // Allocation policy to be used by this provisioning service. + AllocationPolicy pulumi.StringPtrInput `pulumi:"allocationPolicy"` + // List of authorization keys for a provisioning service. + AuthorizationPolicies SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseArrayInput `pulumi:"authorizationPolicies"` + // Device endpoint for this provisioning service. + DeviceProvisioningHostName pulumi.StringInput `pulumi:"deviceProvisioningHostName"` + // Unique identifier of this provisioning service. + IdScope pulumi.StringInput `pulumi:"idScope"` + // List of IoT hubs associated with this provisioning service. + IotHubs IotHubDefinitionDescriptionResponseArrayInput `pulumi:"iotHubs"` + // The IP filter rules. + IpFilterRules IpFilterRuleResponseArrayInput `pulumi:"ipFilterRules"` + // Private endpoint connections created on this IotHub + PrivateEndpointConnections PrivateEndpointConnectionResponseArrayInput `pulumi:"privateEndpointConnections"` + // The ARM provisioning state of the provisioning service. + ProvisioningState pulumi.StringPtrInput `pulumi:"provisioningState"` + // Whether requests from Public Network are allowed + PublicNetworkAccess pulumi.StringPtrInput `pulumi:"publicNetworkAccess"` + // Service endpoint for provisioning service. + ServiceOperationsHostName pulumi.StringInput `pulumi:"serviceOperationsHostName"` + // Current state of the provisioning service. + State pulumi.StringPtrInput `pulumi:"state"` +} + +func (IotDpsPropertiesDescriptionResponseArgs) ElementType() reflect.Type { + return reflect.TypeOf((*IotDpsPropertiesDescriptionResponse)(nil)).Elem() +} + +func (i IotDpsPropertiesDescriptionResponseArgs) ToIotDpsPropertiesDescriptionResponseOutput() IotDpsPropertiesDescriptionResponseOutput { + return i.ToIotDpsPropertiesDescriptionResponseOutputWithContext(context.Background()) +} + +func (i IotDpsPropertiesDescriptionResponseArgs) ToIotDpsPropertiesDescriptionResponseOutputWithContext(ctx context.Context) IotDpsPropertiesDescriptionResponseOutput { + return pulumi.ToOutputWithContext(ctx, i).(IotDpsPropertiesDescriptionResponseOutput) +} + +func (i IotDpsPropertiesDescriptionResponseArgs) ToIotDpsPropertiesDescriptionResponsePtrOutput() IotDpsPropertiesDescriptionResponsePtrOutput { + return i.ToIotDpsPropertiesDescriptionResponsePtrOutputWithContext(context.Background()) +} + +func (i IotDpsPropertiesDescriptionResponseArgs) ToIotDpsPropertiesDescriptionResponsePtrOutputWithContext(ctx context.Context) IotDpsPropertiesDescriptionResponsePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(IotDpsPropertiesDescriptionResponseOutput).ToIotDpsPropertiesDescriptionResponsePtrOutputWithContext(ctx) +} + +// IotDpsPropertiesDescriptionResponsePtrInput is an input type that accepts IotDpsPropertiesDescriptionResponseArgs, IotDpsPropertiesDescriptionResponsePtr and IotDpsPropertiesDescriptionResponsePtrOutput values. +// You can construct a concrete instance of `IotDpsPropertiesDescriptionResponsePtrInput` via: +// +// IotDpsPropertiesDescriptionResponseArgs{...} +// +// or: +// +// nil +type IotDpsPropertiesDescriptionResponsePtrInput interface { + pulumi.Input + + ToIotDpsPropertiesDescriptionResponsePtrOutput() IotDpsPropertiesDescriptionResponsePtrOutput + ToIotDpsPropertiesDescriptionResponsePtrOutputWithContext(context.Context) IotDpsPropertiesDescriptionResponsePtrOutput +} + +type iotDpsPropertiesDescriptionResponsePtrType IotDpsPropertiesDescriptionResponseArgs + +func IotDpsPropertiesDescriptionResponsePtr(v *IotDpsPropertiesDescriptionResponseArgs) IotDpsPropertiesDescriptionResponsePtrInput { + return (*iotDpsPropertiesDescriptionResponsePtrType)(v) +} + +func (*iotDpsPropertiesDescriptionResponsePtrType) ElementType() reflect.Type { + return reflect.TypeOf((**IotDpsPropertiesDescriptionResponse)(nil)).Elem() +} + +func (i *iotDpsPropertiesDescriptionResponsePtrType) ToIotDpsPropertiesDescriptionResponsePtrOutput() IotDpsPropertiesDescriptionResponsePtrOutput { + return i.ToIotDpsPropertiesDescriptionResponsePtrOutputWithContext(context.Background()) +} + +func (i *iotDpsPropertiesDescriptionResponsePtrType) ToIotDpsPropertiesDescriptionResponsePtrOutputWithContext(ctx context.Context) IotDpsPropertiesDescriptionResponsePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(IotDpsPropertiesDescriptionResponsePtrOutput) +} + +// the service specific properties of a provisioning service, including keys, linked iot hubs, current state, and system generated properties such as hostname and idScope +type IotDpsPropertiesDescriptionResponseOutput struct{ *pulumi.OutputState } + +func (IotDpsPropertiesDescriptionResponseOutput) ElementType() reflect.Type { + return reflect.TypeOf((*IotDpsPropertiesDescriptionResponse)(nil)).Elem() +} + +func (o IotDpsPropertiesDescriptionResponseOutput) ToIotDpsPropertiesDescriptionResponseOutput() IotDpsPropertiesDescriptionResponseOutput { + return o +} + +func (o IotDpsPropertiesDescriptionResponseOutput) ToIotDpsPropertiesDescriptionResponseOutputWithContext(ctx context.Context) IotDpsPropertiesDescriptionResponseOutput { + return o +} + +func (o IotDpsPropertiesDescriptionResponseOutput) ToIotDpsPropertiesDescriptionResponsePtrOutput() IotDpsPropertiesDescriptionResponsePtrOutput { + return o.ToIotDpsPropertiesDescriptionResponsePtrOutputWithContext(context.Background()) +} + +func (o IotDpsPropertiesDescriptionResponseOutput) ToIotDpsPropertiesDescriptionResponsePtrOutputWithContext(ctx context.Context) IotDpsPropertiesDescriptionResponsePtrOutput { + return o.ApplyT(func(v IotDpsPropertiesDescriptionResponse) *IotDpsPropertiesDescriptionResponse { + return &v + }).(IotDpsPropertiesDescriptionResponsePtrOutput) +} + +// Allocation policy to be used by this provisioning service. +func (o IotDpsPropertiesDescriptionResponseOutput) AllocationPolicy() pulumi.StringPtrOutput { + return o.ApplyT(func(v IotDpsPropertiesDescriptionResponse) *string { return v.AllocationPolicy }).(pulumi.StringPtrOutput) +} + +// List of authorization keys for a provisioning service. +func (o IotDpsPropertiesDescriptionResponseOutput) AuthorizationPolicies() SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseArrayOutput { + return o.ApplyT(func(v IotDpsPropertiesDescriptionResponse) []SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponse { + return v.AuthorizationPolicies + }).(SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseArrayOutput) +} + +// Device endpoint for this provisioning service. +func (o IotDpsPropertiesDescriptionResponseOutput) DeviceProvisioningHostName() pulumi.StringOutput { + return o.ApplyT(func(v IotDpsPropertiesDescriptionResponse) string { return v.DeviceProvisioningHostName }).(pulumi.StringOutput) +} + +// Unique identifier of this provisioning service. +func (o IotDpsPropertiesDescriptionResponseOutput) IdScope() pulumi.StringOutput { + return o.ApplyT(func(v IotDpsPropertiesDescriptionResponse) string { return v.IdScope }).(pulumi.StringOutput) +} + +// List of IoT hubs associated with this provisioning service. +func (o IotDpsPropertiesDescriptionResponseOutput) IotHubs() IotHubDefinitionDescriptionResponseArrayOutput { + return o.ApplyT(func(v IotDpsPropertiesDescriptionResponse) []IotHubDefinitionDescriptionResponse { return v.IotHubs }).(IotHubDefinitionDescriptionResponseArrayOutput) +} + +// The IP filter rules. +func (o IotDpsPropertiesDescriptionResponseOutput) IpFilterRules() IpFilterRuleResponseArrayOutput { + return o.ApplyT(func(v IotDpsPropertiesDescriptionResponse) []IpFilterRuleResponse { return v.IpFilterRules }).(IpFilterRuleResponseArrayOutput) +} + +// Private endpoint connections created on this IotHub +func (o IotDpsPropertiesDescriptionResponseOutput) PrivateEndpointConnections() PrivateEndpointConnectionResponseArrayOutput { + return o.ApplyT(func(v IotDpsPropertiesDescriptionResponse) []PrivateEndpointConnectionResponse { + return v.PrivateEndpointConnections + }).(PrivateEndpointConnectionResponseArrayOutput) +} + +// The ARM provisioning state of the provisioning service. +func (o IotDpsPropertiesDescriptionResponseOutput) ProvisioningState() pulumi.StringPtrOutput { + return o.ApplyT(func(v IotDpsPropertiesDescriptionResponse) *string { return v.ProvisioningState }).(pulumi.StringPtrOutput) +} + +// Whether requests from Public Network are allowed +func (o IotDpsPropertiesDescriptionResponseOutput) PublicNetworkAccess() pulumi.StringPtrOutput { + return o.ApplyT(func(v IotDpsPropertiesDescriptionResponse) *string { return v.PublicNetworkAccess }).(pulumi.StringPtrOutput) +} + +// Service endpoint for provisioning service. +func (o IotDpsPropertiesDescriptionResponseOutput) ServiceOperationsHostName() pulumi.StringOutput { + return o.ApplyT(func(v IotDpsPropertiesDescriptionResponse) string { return v.ServiceOperationsHostName }).(pulumi.StringOutput) +} + +// Current state of the provisioning service. +func (o IotDpsPropertiesDescriptionResponseOutput) State() pulumi.StringPtrOutput { + return o.ApplyT(func(v IotDpsPropertiesDescriptionResponse) *string { return v.State }).(pulumi.StringPtrOutput) +} + +type IotDpsPropertiesDescriptionResponsePtrOutput struct{ *pulumi.OutputState } + +func (IotDpsPropertiesDescriptionResponsePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**IotDpsPropertiesDescriptionResponse)(nil)).Elem() +} + +func (o IotDpsPropertiesDescriptionResponsePtrOutput) ToIotDpsPropertiesDescriptionResponsePtrOutput() IotDpsPropertiesDescriptionResponsePtrOutput { + return o +} + +func (o IotDpsPropertiesDescriptionResponsePtrOutput) ToIotDpsPropertiesDescriptionResponsePtrOutputWithContext(ctx context.Context) IotDpsPropertiesDescriptionResponsePtrOutput { + return o +} + +func (o IotDpsPropertiesDescriptionResponsePtrOutput) Elem() IotDpsPropertiesDescriptionResponseOutput { + return o.ApplyT(func(v *IotDpsPropertiesDescriptionResponse) IotDpsPropertiesDescriptionResponse { return *v }).(IotDpsPropertiesDescriptionResponseOutput) +} + +// Allocation policy to be used by this provisioning service. +func (o IotDpsPropertiesDescriptionResponsePtrOutput) AllocationPolicy() pulumi.StringPtrOutput { + return o.ApplyT(func(v *IotDpsPropertiesDescriptionResponse) *string { + if v == nil { + return nil + } + return v.AllocationPolicy + }).(pulumi.StringPtrOutput) +} + +// List of authorization keys for a provisioning service. +func (o IotDpsPropertiesDescriptionResponsePtrOutput) AuthorizationPolicies() SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseArrayOutput { + return o.ApplyT(func(v *IotDpsPropertiesDescriptionResponse) []SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponse { + if v == nil { + return nil + } + return v.AuthorizationPolicies + }).(SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseArrayOutput) +} + +// Device endpoint for this provisioning service. +func (o IotDpsPropertiesDescriptionResponsePtrOutput) DeviceProvisioningHostName() pulumi.StringPtrOutput { + return o.ApplyT(func(v *IotDpsPropertiesDescriptionResponse) *string { + if v == nil { + return nil + } + return &v.DeviceProvisioningHostName + }).(pulumi.StringPtrOutput) +} + +// Unique identifier of this provisioning service. +func (o IotDpsPropertiesDescriptionResponsePtrOutput) IdScope() pulumi.StringPtrOutput { + return o.ApplyT(func(v *IotDpsPropertiesDescriptionResponse) *string { + if v == nil { + return nil + } + return &v.IdScope + }).(pulumi.StringPtrOutput) +} + +// List of IoT hubs associated with this provisioning service. +func (o IotDpsPropertiesDescriptionResponsePtrOutput) IotHubs() IotHubDefinitionDescriptionResponseArrayOutput { + return o.ApplyT(func(v *IotDpsPropertiesDescriptionResponse) []IotHubDefinitionDescriptionResponse { + if v == nil { + return nil + } + return v.IotHubs + }).(IotHubDefinitionDescriptionResponseArrayOutput) +} + +// The IP filter rules. +func (o IotDpsPropertiesDescriptionResponsePtrOutput) IpFilterRules() IpFilterRuleResponseArrayOutput { + return o.ApplyT(func(v *IotDpsPropertiesDescriptionResponse) []IpFilterRuleResponse { + if v == nil { + return nil + } + return v.IpFilterRules + }).(IpFilterRuleResponseArrayOutput) +} + +// Private endpoint connections created on this IotHub +func (o IotDpsPropertiesDescriptionResponsePtrOutput) PrivateEndpointConnections() PrivateEndpointConnectionResponseArrayOutput { + return o.ApplyT(func(v *IotDpsPropertiesDescriptionResponse) []PrivateEndpointConnectionResponse { + if v == nil { + return nil + } + return v.PrivateEndpointConnections + }).(PrivateEndpointConnectionResponseArrayOutput) +} + +// The ARM provisioning state of the provisioning service. +func (o IotDpsPropertiesDescriptionResponsePtrOutput) ProvisioningState() pulumi.StringPtrOutput { + return o.ApplyT(func(v *IotDpsPropertiesDescriptionResponse) *string { + if v == nil { + return nil + } + return v.ProvisioningState + }).(pulumi.StringPtrOutput) +} + +// Whether requests from Public Network are allowed +func (o IotDpsPropertiesDescriptionResponsePtrOutput) PublicNetworkAccess() pulumi.StringPtrOutput { + return o.ApplyT(func(v *IotDpsPropertiesDescriptionResponse) *string { + if v == nil { + return nil + } + return v.PublicNetworkAccess + }).(pulumi.StringPtrOutput) +} + +// Service endpoint for provisioning service. +func (o IotDpsPropertiesDescriptionResponsePtrOutput) ServiceOperationsHostName() pulumi.StringPtrOutput { + return o.ApplyT(func(v *IotDpsPropertiesDescriptionResponse) *string { + if v == nil { + return nil + } + return &v.ServiceOperationsHostName + }).(pulumi.StringPtrOutput) +} + +// Current state of the provisioning service. +func (o IotDpsPropertiesDescriptionResponsePtrOutput) State() pulumi.StringPtrOutput { + return o.ApplyT(func(v *IotDpsPropertiesDescriptionResponse) *string { + if v == nil { + return nil + } + return v.State + }).(pulumi.StringPtrOutput) +} + +// List of possible provisioning service SKUs. +type IotDpsSkuInfo struct { + // The number of units to provision + Capacity *int `pulumi:"capacity"` + // Sku name. + Name *string `pulumi:"name"` +} + +// IotDpsSkuInfoInput is an input type that accepts IotDpsSkuInfoArgs and IotDpsSkuInfoOutput values. +// You can construct a concrete instance of `IotDpsSkuInfoInput` via: +// +// IotDpsSkuInfoArgs{...} +type IotDpsSkuInfoInput interface { + pulumi.Input + + ToIotDpsSkuInfoOutput() IotDpsSkuInfoOutput + ToIotDpsSkuInfoOutputWithContext(context.Context) IotDpsSkuInfoOutput +} + +// List of possible provisioning service SKUs. +type IotDpsSkuInfoArgs struct { + // The number of units to provision + Capacity pulumi.IntPtrInput `pulumi:"capacity"` + // Sku name. + Name pulumi.StringPtrInput `pulumi:"name"` +} + +func (IotDpsSkuInfoArgs) ElementType() reflect.Type { + return reflect.TypeOf((*IotDpsSkuInfo)(nil)).Elem() +} + +func (i IotDpsSkuInfoArgs) ToIotDpsSkuInfoOutput() IotDpsSkuInfoOutput { + return i.ToIotDpsSkuInfoOutputWithContext(context.Background()) +} + +func (i IotDpsSkuInfoArgs) ToIotDpsSkuInfoOutputWithContext(ctx context.Context) IotDpsSkuInfoOutput { + return pulumi.ToOutputWithContext(ctx, i).(IotDpsSkuInfoOutput) +} + +func (i IotDpsSkuInfoArgs) ToIotDpsSkuInfoPtrOutput() IotDpsSkuInfoPtrOutput { + return i.ToIotDpsSkuInfoPtrOutputWithContext(context.Background()) +} + +func (i IotDpsSkuInfoArgs) ToIotDpsSkuInfoPtrOutputWithContext(ctx context.Context) IotDpsSkuInfoPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(IotDpsSkuInfoOutput).ToIotDpsSkuInfoPtrOutputWithContext(ctx) +} + +// IotDpsSkuInfoPtrInput is an input type that accepts IotDpsSkuInfoArgs, IotDpsSkuInfoPtr and IotDpsSkuInfoPtrOutput values. +// You can construct a concrete instance of `IotDpsSkuInfoPtrInput` via: +// +// IotDpsSkuInfoArgs{...} +// +// or: +// +// nil +type IotDpsSkuInfoPtrInput interface { + pulumi.Input + + ToIotDpsSkuInfoPtrOutput() IotDpsSkuInfoPtrOutput + ToIotDpsSkuInfoPtrOutputWithContext(context.Context) IotDpsSkuInfoPtrOutput +} + +type iotDpsSkuInfoPtrType IotDpsSkuInfoArgs + +func IotDpsSkuInfoPtr(v *IotDpsSkuInfoArgs) IotDpsSkuInfoPtrInput { + return (*iotDpsSkuInfoPtrType)(v) +} + +func (*iotDpsSkuInfoPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**IotDpsSkuInfo)(nil)).Elem() +} + +func (i *iotDpsSkuInfoPtrType) ToIotDpsSkuInfoPtrOutput() IotDpsSkuInfoPtrOutput { + return i.ToIotDpsSkuInfoPtrOutputWithContext(context.Background()) +} + +func (i *iotDpsSkuInfoPtrType) ToIotDpsSkuInfoPtrOutputWithContext(ctx context.Context) IotDpsSkuInfoPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(IotDpsSkuInfoPtrOutput) +} + +// List of possible provisioning service SKUs. +type IotDpsSkuInfoOutput struct{ *pulumi.OutputState } + +func (IotDpsSkuInfoOutput) ElementType() reflect.Type { + return reflect.TypeOf((*IotDpsSkuInfo)(nil)).Elem() +} + +func (o IotDpsSkuInfoOutput) ToIotDpsSkuInfoOutput() IotDpsSkuInfoOutput { + return o +} + +func (o IotDpsSkuInfoOutput) ToIotDpsSkuInfoOutputWithContext(ctx context.Context) IotDpsSkuInfoOutput { + return o +} + +func (o IotDpsSkuInfoOutput) ToIotDpsSkuInfoPtrOutput() IotDpsSkuInfoPtrOutput { + return o.ToIotDpsSkuInfoPtrOutputWithContext(context.Background()) +} + +func (o IotDpsSkuInfoOutput) ToIotDpsSkuInfoPtrOutputWithContext(ctx context.Context) IotDpsSkuInfoPtrOutput { + return o.ApplyT(func(v IotDpsSkuInfo) *IotDpsSkuInfo { + return &v + }).(IotDpsSkuInfoPtrOutput) +} + +// The number of units to provision +func (o IotDpsSkuInfoOutput) Capacity() pulumi.IntPtrOutput { + return o.ApplyT(func(v IotDpsSkuInfo) *int { return v.Capacity }).(pulumi.IntPtrOutput) +} + +// Sku name. +func (o IotDpsSkuInfoOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v IotDpsSkuInfo) *string { return v.Name }).(pulumi.StringPtrOutput) +} + +type IotDpsSkuInfoPtrOutput struct{ *pulumi.OutputState } + +func (IotDpsSkuInfoPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**IotDpsSkuInfo)(nil)).Elem() +} + +func (o IotDpsSkuInfoPtrOutput) ToIotDpsSkuInfoPtrOutput() IotDpsSkuInfoPtrOutput { + return o +} + +func (o IotDpsSkuInfoPtrOutput) ToIotDpsSkuInfoPtrOutputWithContext(ctx context.Context) IotDpsSkuInfoPtrOutput { + return o +} + +func (o IotDpsSkuInfoPtrOutput) Elem() IotDpsSkuInfoOutput { + return o.ApplyT(func(v *IotDpsSkuInfo) IotDpsSkuInfo { return *v }).(IotDpsSkuInfoOutput) +} + +// The number of units to provision +func (o IotDpsSkuInfoPtrOutput) Capacity() pulumi.IntPtrOutput { + return o.ApplyT(func(v *IotDpsSkuInfo) *int { + if v == nil { + return nil + } + return v.Capacity + }).(pulumi.IntPtrOutput) +} + +// Sku name. +func (o IotDpsSkuInfoPtrOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *IotDpsSkuInfo) *string { + if v == nil { + return nil + } + return v.Name + }).(pulumi.StringPtrOutput) +} + +// List of possible provisioning service SKUs. +type IotDpsSkuInfoResponse struct { + // The number of units to provision + Capacity *int `pulumi:"capacity"` + // Sku name. + Name *string `pulumi:"name"` + // Pricing tier name of the provisioning service. + Tier string `pulumi:"tier"` +} + +// IotDpsSkuInfoResponseInput is an input type that accepts IotDpsSkuInfoResponseArgs and IotDpsSkuInfoResponseOutput values. +// You can construct a concrete instance of `IotDpsSkuInfoResponseInput` via: +// +// IotDpsSkuInfoResponseArgs{...} +type IotDpsSkuInfoResponseInput interface { + pulumi.Input + + ToIotDpsSkuInfoResponseOutput() IotDpsSkuInfoResponseOutput + ToIotDpsSkuInfoResponseOutputWithContext(context.Context) IotDpsSkuInfoResponseOutput +} + +// List of possible provisioning service SKUs. +type IotDpsSkuInfoResponseArgs struct { + // The number of units to provision + Capacity pulumi.IntPtrInput `pulumi:"capacity"` + // Sku name. + Name pulumi.StringPtrInput `pulumi:"name"` + // Pricing tier name of the provisioning service. + Tier pulumi.StringInput `pulumi:"tier"` +} + +func (IotDpsSkuInfoResponseArgs) ElementType() reflect.Type { + return reflect.TypeOf((*IotDpsSkuInfoResponse)(nil)).Elem() +} + +func (i IotDpsSkuInfoResponseArgs) ToIotDpsSkuInfoResponseOutput() IotDpsSkuInfoResponseOutput { + return i.ToIotDpsSkuInfoResponseOutputWithContext(context.Background()) +} + +func (i IotDpsSkuInfoResponseArgs) ToIotDpsSkuInfoResponseOutputWithContext(ctx context.Context) IotDpsSkuInfoResponseOutput { + return pulumi.ToOutputWithContext(ctx, i).(IotDpsSkuInfoResponseOutput) +} + +func (i IotDpsSkuInfoResponseArgs) ToIotDpsSkuInfoResponsePtrOutput() IotDpsSkuInfoResponsePtrOutput { + return i.ToIotDpsSkuInfoResponsePtrOutputWithContext(context.Background()) +} + +func (i IotDpsSkuInfoResponseArgs) ToIotDpsSkuInfoResponsePtrOutputWithContext(ctx context.Context) IotDpsSkuInfoResponsePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(IotDpsSkuInfoResponseOutput).ToIotDpsSkuInfoResponsePtrOutputWithContext(ctx) +} + +// IotDpsSkuInfoResponsePtrInput is an input type that accepts IotDpsSkuInfoResponseArgs, IotDpsSkuInfoResponsePtr and IotDpsSkuInfoResponsePtrOutput values. +// You can construct a concrete instance of `IotDpsSkuInfoResponsePtrInput` via: +// +// IotDpsSkuInfoResponseArgs{...} +// +// or: +// +// nil +type IotDpsSkuInfoResponsePtrInput interface { + pulumi.Input + + ToIotDpsSkuInfoResponsePtrOutput() IotDpsSkuInfoResponsePtrOutput + ToIotDpsSkuInfoResponsePtrOutputWithContext(context.Context) IotDpsSkuInfoResponsePtrOutput +} + +type iotDpsSkuInfoResponsePtrType IotDpsSkuInfoResponseArgs + +func IotDpsSkuInfoResponsePtr(v *IotDpsSkuInfoResponseArgs) IotDpsSkuInfoResponsePtrInput { + return (*iotDpsSkuInfoResponsePtrType)(v) +} + +func (*iotDpsSkuInfoResponsePtrType) ElementType() reflect.Type { + return reflect.TypeOf((**IotDpsSkuInfoResponse)(nil)).Elem() +} + +func (i *iotDpsSkuInfoResponsePtrType) ToIotDpsSkuInfoResponsePtrOutput() IotDpsSkuInfoResponsePtrOutput { + return i.ToIotDpsSkuInfoResponsePtrOutputWithContext(context.Background()) +} + +func (i *iotDpsSkuInfoResponsePtrType) ToIotDpsSkuInfoResponsePtrOutputWithContext(ctx context.Context) IotDpsSkuInfoResponsePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(IotDpsSkuInfoResponsePtrOutput) +} + +// List of possible provisioning service SKUs. +type IotDpsSkuInfoResponseOutput struct{ *pulumi.OutputState } + +func (IotDpsSkuInfoResponseOutput) ElementType() reflect.Type { + return reflect.TypeOf((*IotDpsSkuInfoResponse)(nil)).Elem() +} + +func (o IotDpsSkuInfoResponseOutput) ToIotDpsSkuInfoResponseOutput() IotDpsSkuInfoResponseOutput { + return o +} + +func (o IotDpsSkuInfoResponseOutput) ToIotDpsSkuInfoResponseOutputWithContext(ctx context.Context) IotDpsSkuInfoResponseOutput { + return o +} + +func (o IotDpsSkuInfoResponseOutput) ToIotDpsSkuInfoResponsePtrOutput() IotDpsSkuInfoResponsePtrOutput { + return o.ToIotDpsSkuInfoResponsePtrOutputWithContext(context.Background()) +} + +func (o IotDpsSkuInfoResponseOutput) ToIotDpsSkuInfoResponsePtrOutputWithContext(ctx context.Context) IotDpsSkuInfoResponsePtrOutput { + return o.ApplyT(func(v IotDpsSkuInfoResponse) *IotDpsSkuInfoResponse { + return &v + }).(IotDpsSkuInfoResponsePtrOutput) +} + +// The number of units to provision +func (o IotDpsSkuInfoResponseOutput) Capacity() pulumi.IntPtrOutput { + return o.ApplyT(func(v IotDpsSkuInfoResponse) *int { return v.Capacity }).(pulumi.IntPtrOutput) +} + +// Sku name. +func (o IotDpsSkuInfoResponseOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v IotDpsSkuInfoResponse) *string { return v.Name }).(pulumi.StringPtrOutput) +} + +// Pricing tier name of the provisioning service. +func (o IotDpsSkuInfoResponseOutput) Tier() pulumi.StringOutput { + return o.ApplyT(func(v IotDpsSkuInfoResponse) string { return v.Tier }).(pulumi.StringOutput) +} + +type IotDpsSkuInfoResponsePtrOutput struct{ *pulumi.OutputState } + +func (IotDpsSkuInfoResponsePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**IotDpsSkuInfoResponse)(nil)).Elem() +} + +func (o IotDpsSkuInfoResponsePtrOutput) ToIotDpsSkuInfoResponsePtrOutput() IotDpsSkuInfoResponsePtrOutput { + return o +} + +func (o IotDpsSkuInfoResponsePtrOutput) ToIotDpsSkuInfoResponsePtrOutputWithContext(ctx context.Context) IotDpsSkuInfoResponsePtrOutput { + return o +} + +func (o IotDpsSkuInfoResponsePtrOutput) Elem() IotDpsSkuInfoResponseOutput { + return o.ApplyT(func(v *IotDpsSkuInfoResponse) IotDpsSkuInfoResponse { return *v }).(IotDpsSkuInfoResponseOutput) +} + +// The number of units to provision +func (o IotDpsSkuInfoResponsePtrOutput) Capacity() pulumi.IntPtrOutput { + return o.ApplyT(func(v *IotDpsSkuInfoResponse) *int { + if v == nil { + return nil + } + return v.Capacity + }).(pulumi.IntPtrOutput) +} + +// Sku name. +func (o IotDpsSkuInfoResponsePtrOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *IotDpsSkuInfoResponse) *string { + if v == nil { + return nil + } + return v.Name + }).(pulumi.StringPtrOutput) +} + +// Pricing tier name of the provisioning service. +func (o IotDpsSkuInfoResponsePtrOutput) Tier() pulumi.StringPtrOutput { + return o.ApplyT(func(v *IotDpsSkuInfoResponse) *string { + if v == nil { + return nil + } + return &v.Tier + }).(pulumi.StringPtrOutput) +} + +// Description of the IoT hub. +type IotHubDefinitionDescription struct { + // weight to apply for a given iot h. + AllocationWeight *int `pulumi:"allocationWeight"` + // flag for applying allocationPolicy or not for a given iot hub. + ApplyAllocationPolicy *bool `pulumi:"applyAllocationPolicy"` + // Connection string of the IoT hub. + ConnectionString string `pulumi:"connectionString"` + // ARM region of the IoT hub. + Location string `pulumi:"location"` +} + +// IotHubDefinitionDescriptionInput is an input type that accepts IotHubDefinitionDescriptionArgs and IotHubDefinitionDescriptionOutput values. +// You can construct a concrete instance of `IotHubDefinitionDescriptionInput` via: +// +// IotHubDefinitionDescriptionArgs{...} +type IotHubDefinitionDescriptionInput interface { + pulumi.Input + + ToIotHubDefinitionDescriptionOutput() IotHubDefinitionDescriptionOutput + ToIotHubDefinitionDescriptionOutputWithContext(context.Context) IotHubDefinitionDescriptionOutput +} + +// Description of the IoT hub. +type IotHubDefinitionDescriptionArgs struct { + // weight to apply for a given iot h. + AllocationWeight pulumi.IntPtrInput `pulumi:"allocationWeight"` + // flag for applying allocationPolicy or not for a given iot hub. + ApplyAllocationPolicy pulumi.BoolPtrInput `pulumi:"applyAllocationPolicy"` + // Connection string of the IoT hub. + ConnectionString pulumi.StringInput `pulumi:"connectionString"` + // ARM region of the IoT hub. + Location pulumi.StringInput `pulumi:"location"` +} + +func (IotHubDefinitionDescriptionArgs) ElementType() reflect.Type { + return reflect.TypeOf((*IotHubDefinitionDescription)(nil)).Elem() +} + +func (i IotHubDefinitionDescriptionArgs) ToIotHubDefinitionDescriptionOutput() IotHubDefinitionDescriptionOutput { + return i.ToIotHubDefinitionDescriptionOutputWithContext(context.Background()) +} + +func (i IotHubDefinitionDescriptionArgs) ToIotHubDefinitionDescriptionOutputWithContext(ctx context.Context) IotHubDefinitionDescriptionOutput { + return pulumi.ToOutputWithContext(ctx, i).(IotHubDefinitionDescriptionOutput) +} + +// IotHubDefinitionDescriptionArrayInput is an input type that accepts IotHubDefinitionDescriptionArray and IotHubDefinitionDescriptionArrayOutput values. +// You can construct a concrete instance of `IotHubDefinitionDescriptionArrayInput` via: +// +// IotHubDefinitionDescriptionArray{ IotHubDefinitionDescriptionArgs{...} } +type IotHubDefinitionDescriptionArrayInput interface { + pulumi.Input + + ToIotHubDefinitionDescriptionArrayOutput() IotHubDefinitionDescriptionArrayOutput + ToIotHubDefinitionDescriptionArrayOutputWithContext(context.Context) IotHubDefinitionDescriptionArrayOutput +} + +type IotHubDefinitionDescriptionArray []IotHubDefinitionDescriptionInput + +func (IotHubDefinitionDescriptionArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]IotHubDefinitionDescription)(nil)).Elem() +} + +func (i IotHubDefinitionDescriptionArray) ToIotHubDefinitionDescriptionArrayOutput() IotHubDefinitionDescriptionArrayOutput { + return i.ToIotHubDefinitionDescriptionArrayOutputWithContext(context.Background()) +} + +func (i IotHubDefinitionDescriptionArray) ToIotHubDefinitionDescriptionArrayOutputWithContext(ctx context.Context) IotHubDefinitionDescriptionArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(IotHubDefinitionDescriptionArrayOutput) +} + +// Description of the IoT hub. +type IotHubDefinitionDescriptionOutput struct{ *pulumi.OutputState } + +func (IotHubDefinitionDescriptionOutput) ElementType() reflect.Type { + return reflect.TypeOf((*IotHubDefinitionDescription)(nil)).Elem() +} + +func (o IotHubDefinitionDescriptionOutput) ToIotHubDefinitionDescriptionOutput() IotHubDefinitionDescriptionOutput { + return o +} + +func (o IotHubDefinitionDescriptionOutput) ToIotHubDefinitionDescriptionOutputWithContext(ctx context.Context) IotHubDefinitionDescriptionOutput { + return o +} + +// weight to apply for a given iot h. +func (o IotHubDefinitionDescriptionOutput) AllocationWeight() pulumi.IntPtrOutput { + return o.ApplyT(func(v IotHubDefinitionDescription) *int { return v.AllocationWeight }).(pulumi.IntPtrOutput) } -// FeedbackPropertiesResponseInput is an input type that accepts FeedbackPropertiesResponseArgs and FeedbackPropertiesResponseOutput values. -// You can construct a concrete instance of `FeedbackPropertiesResponseInput` via: -// -// FeedbackPropertiesResponseArgs{...} -type FeedbackPropertiesResponseInput interface { - pulumi.Input +// flag for applying allocationPolicy or not for a given iot hub. +func (o IotHubDefinitionDescriptionOutput) ApplyAllocationPolicy() pulumi.BoolPtrOutput { + return o.ApplyT(func(v IotHubDefinitionDescription) *bool { return v.ApplyAllocationPolicy }).(pulumi.BoolPtrOutput) +} - ToFeedbackPropertiesResponseOutput() FeedbackPropertiesResponseOutput - ToFeedbackPropertiesResponseOutputWithContext(context.Context) FeedbackPropertiesResponseOutput +// Connection string of the IoT hub. +func (o IotHubDefinitionDescriptionOutput) ConnectionString() pulumi.StringOutput { + return o.ApplyT(func(v IotHubDefinitionDescription) string { return v.ConnectionString }).(pulumi.StringOutput) } -// The properties of the feedback queue for cloud-to-device messages. -type FeedbackPropertiesResponseArgs struct { - // The lock duration for the feedback queue. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages. - LockDurationAsIso8601 pulumi.StringPtrInput `pulumi:"lockDurationAsIso8601"` - // The number of times the IoT hub attempts to deliver a message on the feedback queue. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages. - MaxDeliveryCount pulumi.IntPtrInput `pulumi:"maxDeliveryCount"` - // The period of time for which a message is available to consume before it is expired by the IoT hub. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages. - TtlAsIso8601 pulumi.StringPtrInput `pulumi:"ttlAsIso8601"` +// ARM region of the IoT hub. +func (o IotHubDefinitionDescriptionOutput) Location() pulumi.StringOutput { + return o.ApplyT(func(v IotHubDefinitionDescription) string { return v.Location }).(pulumi.StringOutput) } -func (FeedbackPropertiesResponseArgs) ElementType() reflect.Type { - return reflect.TypeOf((*FeedbackPropertiesResponse)(nil)).Elem() +type IotHubDefinitionDescriptionArrayOutput struct{ *pulumi.OutputState } + +func (IotHubDefinitionDescriptionArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]IotHubDefinitionDescription)(nil)).Elem() } -func (i FeedbackPropertiesResponseArgs) ToFeedbackPropertiesResponseOutput() FeedbackPropertiesResponseOutput { - return i.ToFeedbackPropertiesResponseOutputWithContext(context.Background()) +func (o IotHubDefinitionDescriptionArrayOutput) ToIotHubDefinitionDescriptionArrayOutput() IotHubDefinitionDescriptionArrayOutput { + return o } -func (i FeedbackPropertiesResponseArgs) ToFeedbackPropertiesResponseOutputWithContext(ctx context.Context) FeedbackPropertiesResponseOutput { - return pulumi.ToOutputWithContext(ctx, i).(FeedbackPropertiesResponseOutput) +func (o IotHubDefinitionDescriptionArrayOutput) ToIotHubDefinitionDescriptionArrayOutputWithContext(ctx context.Context) IotHubDefinitionDescriptionArrayOutput { + return o } -func (i FeedbackPropertiesResponseArgs) ToFeedbackPropertiesResponsePtrOutput() FeedbackPropertiesResponsePtrOutput { - return i.ToFeedbackPropertiesResponsePtrOutputWithContext(context.Background()) +func (o IotHubDefinitionDescriptionArrayOutput) Index(i pulumi.IntInput) IotHubDefinitionDescriptionOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) IotHubDefinitionDescription { + return vs[0].([]IotHubDefinitionDescription)[vs[1].(int)] + }).(IotHubDefinitionDescriptionOutput) } -func (i FeedbackPropertiesResponseArgs) ToFeedbackPropertiesResponsePtrOutputWithContext(ctx context.Context) FeedbackPropertiesResponsePtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(FeedbackPropertiesResponseOutput).ToFeedbackPropertiesResponsePtrOutputWithContext(ctx) +// Description of the IoT hub. +type IotHubDefinitionDescriptionResponse struct { + // weight to apply for a given iot h. + AllocationWeight *int `pulumi:"allocationWeight"` + // flag for applying allocationPolicy or not for a given iot hub. + ApplyAllocationPolicy *bool `pulumi:"applyAllocationPolicy"` + // Connection string of the IoT hub. + ConnectionString string `pulumi:"connectionString"` + // ARM region of the IoT hub. + Location string `pulumi:"location"` + // Host name of the IoT hub. + Name string `pulumi:"name"` } -// FeedbackPropertiesResponsePtrInput is an input type that accepts FeedbackPropertiesResponseArgs, FeedbackPropertiesResponsePtr and FeedbackPropertiesResponsePtrOutput values. -// You can construct a concrete instance of `FeedbackPropertiesResponsePtrInput` via: -// -// FeedbackPropertiesResponseArgs{...} +// IotHubDefinitionDescriptionResponseInput is an input type that accepts IotHubDefinitionDescriptionResponseArgs and IotHubDefinitionDescriptionResponseOutput values. +// You can construct a concrete instance of `IotHubDefinitionDescriptionResponseInput` via: // -// or: -// -// nil -type FeedbackPropertiesResponsePtrInput interface { +// IotHubDefinitionDescriptionResponseArgs{...} +type IotHubDefinitionDescriptionResponseInput interface { pulumi.Input - ToFeedbackPropertiesResponsePtrOutput() FeedbackPropertiesResponsePtrOutput - ToFeedbackPropertiesResponsePtrOutputWithContext(context.Context) FeedbackPropertiesResponsePtrOutput + ToIotHubDefinitionDescriptionResponseOutput() IotHubDefinitionDescriptionResponseOutput + ToIotHubDefinitionDescriptionResponseOutputWithContext(context.Context) IotHubDefinitionDescriptionResponseOutput } -type feedbackPropertiesResponsePtrType FeedbackPropertiesResponseArgs - -func FeedbackPropertiesResponsePtr(v *FeedbackPropertiesResponseArgs) FeedbackPropertiesResponsePtrInput { - return (*feedbackPropertiesResponsePtrType)(v) +// Description of the IoT hub. +type IotHubDefinitionDescriptionResponseArgs struct { + // weight to apply for a given iot h. + AllocationWeight pulumi.IntPtrInput `pulumi:"allocationWeight"` + // flag for applying allocationPolicy or not for a given iot hub. + ApplyAllocationPolicy pulumi.BoolPtrInput `pulumi:"applyAllocationPolicy"` + // Connection string of the IoT hub. + ConnectionString pulumi.StringInput `pulumi:"connectionString"` + // ARM region of the IoT hub. + Location pulumi.StringInput `pulumi:"location"` + // Host name of the IoT hub. + Name pulumi.StringInput `pulumi:"name"` } -func (*feedbackPropertiesResponsePtrType) ElementType() reflect.Type { - return reflect.TypeOf((**FeedbackPropertiesResponse)(nil)).Elem() +func (IotHubDefinitionDescriptionResponseArgs) ElementType() reflect.Type { + return reflect.TypeOf((*IotHubDefinitionDescriptionResponse)(nil)).Elem() } -func (i *feedbackPropertiesResponsePtrType) ToFeedbackPropertiesResponsePtrOutput() FeedbackPropertiesResponsePtrOutput { - return i.ToFeedbackPropertiesResponsePtrOutputWithContext(context.Background()) +func (i IotHubDefinitionDescriptionResponseArgs) ToIotHubDefinitionDescriptionResponseOutput() IotHubDefinitionDescriptionResponseOutput { + return i.ToIotHubDefinitionDescriptionResponseOutputWithContext(context.Background()) } -func (i *feedbackPropertiesResponsePtrType) ToFeedbackPropertiesResponsePtrOutputWithContext(ctx context.Context) FeedbackPropertiesResponsePtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(FeedbackPropertiesResponsePtrOutput) +func (i IotHubDefinitionDescriptionResponseArgs) ToIotHubDefinitionDescriptionResponseOutputWithContext(ctx context.Context) IotHubDefinitionDescriptionResponseOutput { + return pulumi.ToOutputWithContext(ctx, i).(IotHubDefinitionDescriptionResponseOutput) } -// The properties of the feedback queue for cloud-to-device messages. -type FeedbackPropertiesResponseOutput struct{ *pulumi.OutputState } +// IotHubDefinitionDescriptionResponseArrayInput is an input type that accepts IotHubDefinitionDescriptionResponseArray and IotHubDefinitionDescriptionResponseArrayOutput values. +// You can construct a concrete instance of `IotHubDefinitionDescriptionResponseArrayInput` via: +// +// IotHubDefinitionDescriptionResponseArray{ IotHubDefinitionDescriptionResponseArgs{...} } +type IotHubDefinitionDescriptionResponseArrayInput interface { + pulumi.Input -func (FeedbackPropertiesResponseOutput) ElementType() reflect.Type { - return reflect.TypeOf((*FeedbackPropertiesResponse)(nil)).Elem() + ToIotHubDefinitionDescriptionResponseArrayOutput() IotHubDefinitionDescriptionResponseArrayOutput + ToIotHubDefinitionDescriptionResponseArrayOutputWithContext(context.Context) IotHubDefinitionDescriptionResponseArrayOutput } -func (o FeedbackPropertiesResponseOutput) ToFeedbackPropertiesResponseOutput() FeedbackPropertiesResponseOutput { - return o +type IotHubDefinitionDescriptionResponseArray []IotHubDefinitionDescriptionResponseInput + +func (IotHubDefinitionDescriptionResponseArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]IotHubDefinitionDescriptionResponse)(nil)).Elem() } -func (o FeedbackPropertiesResponseOutput) ToFeedbackPropertiesResponseOutputWithContext(ctx context.Context) FeedbackPropertiesResponseOutput { - return o +func (i IotHubDefinitionDescriptionResponseArray) ToIotHubDefinitionDescriptionResponseArrayOutput() IotHubDefinitionDescriptionResponseArrayOutput { + return i.ToIotHubDefinitionDescriptionResponseArrayOutputWithContext(context.Background()) } -func (o FeedbackPropertiesResponseOutput) ToFeedbackPropertiesResponsePtrOutput() FeedbackPropertiesResponsePtrOutput { - return o.ToFeedbackPropertiesResponsePtrOutputWithContext(context.Background()) +func (i IotHubDefinitionDescriptionResponseArray) ToIotHubDefinitionDescriptionResponseArrayOutputWithContext(ctx context.Context) IotHubDefinitionDescriptionResponseArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(IotHubDefinitionDescriptionResponseArrayOutput) } -func (o FeedbackPropertiesResponseOutput) ToFeedbackPropertiesResponsePtrOutputWithContext(ctx context.Context) FeedbackPropertiesResponsePtrOutput { - return o.ApplyT(func(v FeedbackPropertiesResponse) *FeedbackPropertiesResponse { - return &v - }).(FeedbackPropertiesResponsePtrOutput) +// Description of the IoT hub. +type IotHubDefinitionDescriptionResponseOutput struct{ *pulumi.OutputState } + +func (IotHubDefinitionDescriptionResponseOutput) ElementType() reflect.Type { + return reflect.TypeOf((*IotHubDefinitionDescriptionResponse)(nil)).Elem() } -// The lock duration for the feedback queue. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages. -func (o FeedbackPropertiesResponseOutput) LockDurationAsIso8601() pulumi.StringPtrOutput { - return o.ApplyT(func(v FeedbackPropertiesResponse) *string { return v.LockDurationAsIso8601 }).(pulumi.StringPtrOutput) +func (o IotHubDefinitionDescriptionResponseOutput) ToIotHubDefinitionDescriptionResponseOutput() IotHubDefinitionDescriptionResponseOutput { + return o } -// The number of times the IoT hub attempts to deliver a message on the feedback queue. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages. -func (o FeedbackPropertiesResponseOutput) MaxDeliveryCount() pulumi.IntPtrOutput { - return o.ApplyT(func(v FeedbackPropertiesResponse) *int { return v.MaxDeliveryCount }).(pulumi.IntPtrOutput) +func (o IotHubDefinitionDescriptionResponseOutput) ToIotHubDefinitionDescriptionResponseOutputWithContext(ctx context.Context) IotHubDefinitionDescriptionResponseOutput { + return o } -// The period of time for which a message is available to consume before it is expired by the IoT hub. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages. -func (o FeedbackPropertiesResponseOutput) TtlAsIso8601() pulumi.StringPtrOutput { - return o.ApplyT(func(v FeedbackPropertiesResponse) *string { return v.TtlAsIso8601 }).(pulumi.StringPtrOutput) +// weight to apply for a given iot h. +func (o IotHubDefinitionDescriptionResponseOutput) AllocationWeight() pulumi.IntPtrOutput { + return o.ApplyT(func(v IotHubDefinitionDescriptionResponse) *int { return v.AllocationWeight }).(pulumi.IntPtrOutput) } -type FeedbackPropertiesResponsePtrOutput struct{ *pulumi.OutputState } +// flag for applying allocationPolicy or not for a given iot hub. +func (o IotHubDefinitionDescriptionResponseOutput) ApplyAllocationPolicy() pulumi.BoolPtrOutput { + return o.ApplyT(func(v IotHubDefinitionDescriptionResponse) *bool { return v.ApplyAllocationPolicy }).(pulumi.BoolPtrOutput) +} -func (FeedbackPropertiesResponsePtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**FeedbackPropertiesResponse)(nil)).Elem() +// Connection string of the IoT hub. +func (o IotHubDefinitionDescriptionResponseOutput) ConnectionString() pulumi.StringOutput { + return o.ApplyT(func(v IotHubDefinitionDescriptionResponse) string { return v.ConnectionString }).(pulumi.StringOutput) } -func (o FeedbackPropertiesResponsePtrOutput) ToFeedbackPropertiesResponsePtrOutput() FeedbackPropertiesResponsePtrOutput { - return o +// ARM region of the IoT hub. +func (o IotHubDefinitionDescriptionResponseOutput) Location() pulumi.StringOutput { + return o.ApplyT(func(v IotHubDefinitionDescriptionResponse) string { return v.Location }).(pulumi.StringOutput) } -func (o FeedbackPropertiesResponsePtrOutput) ToFeedbackPropertiesResponsePtrOutputWithContext(ctx context.Context) FeedbackPropertiesResponsePtrOutput { - return o +// Host name of the IoT hub. +func (o IotHubDefinitionDescriptionResponseOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v IotHubDefinitionDescriptionResponse) string { return v.Name }).(pulumi.StringOutput) } -func (o FeedbackPropertiesResponsePtrOutput) Elem() FeedbackPropertiesResponseOutput { - return o.ApplyT(func(v *FeedbackPropertiesResponse) FeedbackPropertiesResponse { return *v }).(FeedbackPropertiesResponseOutput) +type IotHubDefinitionDescriptionResponseArrayOutput struct{ *pulumi.OutputState } + +func (IotHubDefinitionDescriptionResponseArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]IotHubDefinitionDescriptionResponse)(nil)).Elem() } -// The lock duration for the feedback queue. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages. -func (o FeedbackPropertiesResponsePtrOutput) LockDurationAsIso8601() pulumi.StringPtrOutput { - return o.ApplyT(func(v *FeedbackPropertiesResponse) *string { - if v == nil { - return nil - } - return v.LockDurationAsIso8601 - }).(pulumi.StringPtrOutput) +func (o IotHubDefinitionDescriptionResponseArrayOutput) ToIotHubDefinitionDescriptionResponseArrayOutput() IotHubDefinitionDescriptionResponseArrayOutput { + return o } -// The number of times the IoT hub attempts to deliver a message on the feedback queue. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages. -func (o FeedbackPropertiesResponsePtrOutput) MaxDeliveryCount() pulumi.IntPtrOutput { - return o.ApplyT(func(v *FeedbackPropertiesResponse) *int { - if v == nil { - return nil - } - return v.MaxDeliveryCount - }).(pulumi.IntPtrOutput) +func (o IotHubDefinitionDescriptionResponseArrayOutput) ToIotHubDefinitionDescriptionResponseArrayOutputWithContext(ctx context.Context) IotHubDefinitionDescriptionResponseArrayOutput { + return o } -// The period of time for which a message is available to consume before it is expired by the IoT hub. See: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages. -func (o FeedbackPropertiesResponsePtrOutput) TtlAsIso8601() pulumi.StringPtrOutput { - return o.ApplyT(func(v *FeedbackPropertiesResponse) *string { - if v == nil { - return nil - } - return v.TtlAsIso8601 - }).(pulumi.StringPtrOutput) +func (o IotHubDefinitionDescriptionResponseArrayOutput) Index(i pulumi.IntInput) IotHubDefinitionDescriptionResponseOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) IotHubDefinitionDescriptionResponse { + return vs[0].([]IotHubDefinitionDescriptionResponse)[vs[1].(int)] + }).(IotHubDefinitionDescriptionResponseOutput) } // Public representation of one of the locations where a resource is provisioned. @@ -7108,6 +8276,264 @@ func (o SharedAccessSignatureAuthorizationRuleArrayOutput) Index(i pulumi.IntInp }).(SharedAccessSignatureAuthorizationRuleOutput) } +// Description of the shared access key. +type SharedAccessSignatureAuthorizationRuleAccessRightsDescription struct { + // Name of the key. + KeyName string `pulumi:"keyName"` + // Primary SAS key value. + PrimaryKey *string `pulumi:"primaryKey"` + // Rights that this key has. + Rights string `pulumi:"rights"` + // Secondary SAS key value. + SecondaryKey *string `pulumi:"secondaryKey"` +} + +// SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionInput is an input type that accepts SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArgs and SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionOutput values. +// You can construct a concrete instance of `SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionInput` via: +// +// SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArgs{...} +type SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionInput interface { + pulumi.Input + + ToSharedAccessSignatureAuthorizationRuleAccessRightsDescriptionOutput() SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionOutput + ToSharedAccessSignatureAuthorizationRuleAccessRightsDescriptionOutputWithContext(context.Context) SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionOutput +} + +// Description of the shared access key. +type SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArgs struct { + // Name of the key. + KeyName pulumi.StringInput `pulumi:"keyName"` + // Primary SAS key value. + PrimaryKey pulumi.StringPtrInput `pulumi:"primaryKey"` + // Rights that this key has. + Rights pulumi.StringInput `pulumi:"rights"` + // Secondary SAS key value. + SecondaryKey pulumi.StringPtrInput `pulumi:"secondaryKey"` +} + +func (SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArgs) ElementType() reflect.Type { + return reflect.TypeOf((*SharedAccessSignatureAuthorizationRuleAccessRightsDescription)(nil)).Elem() +} + +func (i SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArgs) ToSharedAccessSignatureAuthorizationRuleAccessRightsDescriptionOutput() SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionOutput { + return i.ToSharedAccessSignatureAuthorizationRuleAccessRightsDescriptionOutputWithContext(context.Background()) +} + +func (i SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArgs) ToSharedAccessSignatureAuthorizationRuleAccessRightsDescriptionOutputWithContext(ctx context.Context) SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionOutput { + return pulumi.ToOutputWithContext(ctx, i).(SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionOutput) +} + +// SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArrayInput is an input type that accepts SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArray and SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArrayOutput values. +// You can construct a concrete instance of `SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArrayInput` via: +// +// SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArray{ SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArgs{...} } +type SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArrayInput interface { + pulumi.Input + + ToSharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArrayOutput() SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArrayOutput + ToSharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArrayOutputWithContext(context.Context) SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArrayOutput +} + +type SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArray []SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionInput + +func (SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]SharedAccessSignatureAuthorizationRuleAccessRightsDescription)(nil)).Elem() +} + +func (i SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArray) ToSharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArrayOutput() SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArrayOutput { + return i.ToSharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArrayOutputWithContext(context.Background()) +} + +func (i SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArray) ToSharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArrayOutputWithContext(ctx context.Context) SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArrayOutput) +} + +// Description of the shared access key. +type SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionOutput struct{ *pulumi.OutputState } + +func (SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionOutput) ElementType() reflect.Type { + return reflect.TypeOf((*SharedAccessSignatureAuthorizationRuleAccessRightsDescription)(nil)).Elem() +} + +func (o SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionOutput) ToSharedAccessSignatureAuthorizationRuleAccessRightsDescriptionOutput() SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionOutput { + return o +} + +func (o SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionOutput) ToSharedAccessSignatureAuthorizationRuleAccessRightsDescriptionOutputWithContext(ctx context.Context) SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionOutput { + return o +} + +// Name of the key. +func (o SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionOutput) KeyName() pulumi.StringOutput { + return o.ApplyT(func(v SharedAccessSignatureAuthorizationRuleAccessRightsDescription) string { return v.KeyName }).(pulumi.StringOutput) +} + +// Primary SAS key value. +func (o SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionOutput) PrimaryKey() pulumi.StringPtrOutput { + return o.ApplyT(func(v SharedAccessSignatureAuthorizationRuleAccessRightsDescription) *string { return v.PrimaryKey }).(pulumi.StringPtrOutput) +} + +// Rights that this key has. +func (o SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionOutput) Rights() pulumi.StringOutput { + return o.ApplyT(func(v SharedAccessSignatureAuthorizationRuleAccessRightsDescription) string { return v.Rights }).(pulumi.StringOutput) +} + +// Secondary SAS key value. +func (o SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionOutput) SecondaryKey() pulumi.StringPtrOutput { + return o.ApplyT(func(v SharedAccessSignatureAuthorizationRuleAccessRightsDescription) *string { return v.SecondaryKey }).(pulumi.StringPtrOutput) +} + +type SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArrayOutput struct{ *pulumi.OutputState } + +func (SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]SharedAccessSignatureAuthorizationRuleAccessRightsDescription)(nil)).Elem() +} + +func (o SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArrayOutput) ToSharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArrayOutput() SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArrayOutput { + return o +} + +func (o SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArrayOutput) ToSharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArrayOutputWithContext(ctx context.Context) SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArrayOutput { + return o +} + +func (o SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArrayOutput) Index(i pulumi.IntInput) SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) SharedAccessSignatureAuthorizationRuleAccessRightsDescription { + return vs[0].([]SharedAccessSignatureAuthorizationRuleAccessRightsDescription)[vs[1].(int)] + }).(SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionOutput) +} + +// Description of the shared access key. +type SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponse struct { + // Name of the key. + KeyName string `pulumi:"keyName"` + // Primary SAS key value. + PrimaryKey *string `pulumi:"primaryKey"` + // Rights that this key has. + Rights string `pulumi:"rights"` + // Secondary SAS key value. + SecondaryKey *string `pulumi:"secondaryKey"` +} + +// SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseInput is an input type that accepts SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseArgs and SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseOutput values. +// You can construct a concrete instance of `SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseInput` via: +// +// SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseArgs{...} +type SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseInput interface { + pulumi.Input + + ToSharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseOutput() SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseOutput + ToSharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseOutputWithContext(context.Context) SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseOutput +} + +// Description of the shared access key. +type SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseArgs struct { + // Name of the key. + KeyName pulumi.StringInput `pulumi:"keyName"` + // Primary SAS key value. + PrimaryKey pulumi.StringPtrInput `pulumi:"primaryKey"` + // Rights that this key has. + Rights pulumi.StringInput `pulumi:"rights"` + // Secondary SAS key value. + SecondaryKey pulumi.StringPtrInput `pulumi:"secondaryKey"` +} + +func (SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseArgs) ElementType() reflect.Type { + return reflect.TypeOf((*SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponse)(nil)).Elem() +} + +func (i SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseArgs) ToSharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseOutput() SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseOutput { + return i.ToSharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseOutputWithContext(context.Background()) +} + +func (i SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseArgs) ToSharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseOutputWithContext(ctx context.Context) SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseOutput { + return pulumi.ToOutputWithContext(ctx, i).(SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseOutput) +} + +// SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseArrayInput is an input type that accepts SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseArray and SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseArrayOutput values. +// You can construct a concrete instance of `SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseArrayInput` via: +// +// SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseArray{ SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseArgs{...} } +type SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseArrayInput interface { + pulumi.Input + + ToSharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseArrayOutput() SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseArrayOutput + ToSharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseArrayOutputWithContext(context.Context) SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseArrayOutput +} + +type SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseArray []SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseInput + +func (SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponse)(nil)).Elem() +} + +func (i SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseArray) ToSharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseArrayOutput() SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseArrayOutput { + return i.ToSharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseArrayOutputWithContext(context.Background()) +} + +func (i SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseArray) ToSharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseArrayOutputWithContext(ctx context.Context) SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseArrayOutput) +} + +// Description of the shared access key. +type SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseOutput struct{ *pulumi.OutputState } + +func (SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseOutput) ElementType() reflect.Type { + return reflect.TypeOf((*SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponse)(nil)).Elem() +} + +func (o SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseOutput) ToSharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseOutput() SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseOutput { + return o +} + +func (o SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseOutput) ToSharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseOutputWithContext(ctx context.Context) SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseOutput { + return o +} + +// Name of the key. +func (o SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseOutput) KeyName() pulumi.StringOutput { + return o.ApplyT(func(v SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponse) string { return v.KeyName }).(pulumi.StringOutput) +} + +// Primary SAS key value. +func (o SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseOutput) PrimaryKey() pulumi.StringPtrOutput { + return o.ApplyT(func(v SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponse) *string { + return v.PrimaryKey + }).(pulumi.StringPtrOutput) +} + +// Rights that this key has. +func (o SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseOutput) Rights() pulumi.StringOutput { + return o.ApplyT(func(v SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponse) string { return v.Rights }).(pulumi.StringOutput) +} + +// Secondary SAS key value. +func (o SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseOutput) SecondaryKey() pulumi.StringPtrOutput { + return o.ApplyT(func(v SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponse) *string { + return v.SecondaryKey + }).(pulumi.StringPtrOutput) +} + +type SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseArrayOutput struct{ *pulumi.OutputState } + +func (SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponse)(nil)).Elem() +} + +func (o SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseArrayOutput) ToSharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseArrayOutput() SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseArrayOutput { + return o +} + +func (o SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseArrayOutput) ToSharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseArrayOutputWithContext(ctx context.Context) SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseArrayOutput { + return o +} + +func (o SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseArrayOutput) Index(i pulumi.IntInput) SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponse { + return vs[0].([]SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponse)[vs[1].(int)] + }).(SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseOutput) +} + // The properties of an IoT hub shared access policy. type SharedAccessSignatureAuthorizationRuleResponse struct { // The name of the shared access policy. @@ -7512,6 +8938,18 @@ func init() { pulumi.RegisterOutputType(FeedbackPropertiesPtrOutput{}) pulumi.RegisterOutputType(FeedbackPropertiesResponseOutput{}) pulumi.RegisterOutputType(FeedbackPropertiesResponsePtrOutput{}) + pulumi.RegisterOutputType(IotDpsPropertiesDescriptionOutput{}) + pulumi.RegisterOutputType(IotDpsPropertiesDescriptionPtrOutput{}) + pulumi.RegisterOutputType(IotDpsPropertiesDescriptionResponseOutput{}) + pulumi.RegisterOutputType(IotDpsPropertiesDescriptionResponsePtrOutput{}) + pulumi.RegisterOutputType(IotDpsSkuInfoOutput{}) + pulumi.RegisterOutputType(IotDpsSkuInfoPtrOutput{}) + pulumi.RegisterOutputType(IotDpsSkuInfoResponseOutput{}) + pulumi.RegisterOutputType(IotDpsSkuInfoResponsePtrOutput{}) + pulumi.RegisterOutputType(IotHubDefinitionDescriptionOutput{}) + pulumi.RegisterOutputType(IotHubDefinitionDescriptionArrayOutput{}) + pulumi.RegisterOutputType(IotHubDefinitionDescriptionResponseOutput{}) + pulumi.RegisterOutputType(IotHubDefinitionDescriptionResponseArrayOutput{}) pulumi.RegisterOutputType(IotHubLocationDescriptionResponseOutput{}) pulumi.RegisterOutputType(IotHubLocationDescriptionResponseArrayOutput{}) pulumi.RegisterOutputType(IotHubPropertiesOutput{}) @@ -7574,6 +9012,10 @@ func init() { pulumi.RegisterOutputType(RoutingStorageContainerPropertiesResponseArrayOutput{}) pulumi.RegisterOutputType(SharedAccessSignatureAuthorizationRuleOutput{}) pulumi.RegisterOutputType(SharedAccessSignatureAuthorizationRuleArrayOutput{}) + pulumi.RegisterOutputType(SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionOutput{}) + pulumi.RegisterOutputType(SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArrayOutput{}) + pulumi.RegisterOutputType(SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseOutput{}) + pulumi.RegisterOutputType(SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseArrayOutput{}) pulumi.RegisterOutputType(SharedAccessSignatureAuthorizationRuleResponseOutput{}) pulumi.RegisterOutputType(SharedAccessSignatureAuthorizationRuleResponseArrayOutput{}) pulumi.RegisterOutputType(StorageEndpointPropertiesOutput{}) diff --git a/sdk/go/azurerm/insights/latest/pulumiTypes.go b/sdk/go/azurerm/insights/latest/pulumiTypes.go index fcd164e84945..ed9b0a2406fc 100644 --- a/sdk/go/azurerm/insights/latest/pulumiTypes.go +++ b/sdk/go/azurerm/insights/latest/pulumiTypes.go @@ -3798,6 +3798,8 @@ type DynamicMetricCriteria struct { Name string `pulumi:"name"` // The operator used to compare the metric value against the threshold. Operator string `pulumi:"operator"` + // Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. + SkipMetricValidation *bool `pulumi:"skipMetricValidation"` // the criteria time aggregation types. TimeAggregation map[string]interface{} `pulumi:"timeAggregation"` } @@ -3833,6 +3835,8 @@ type DynamicMetricCriteriaArgs struct { Name pulumi.StringInput `pulumi:"name"` // The operator used to compare the metric value against the threshold. Operator pulumi.StringInput `pulumi:"operator"` + // Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. + SkipMetricValidation pulumi.BoolPtrInput `pulumi:"skipMetricValidation"` // the criteria time aggregation types. TimeAggregation pulumi.MapInput `pulumi:"timeAggregation"` } @@ -3909,6 +3913,11 @@ func (o DynamicMetricCriteriaOutput) Operator() pulumi.StringOutput { return o.ApplyT(func(v DynamicMetricCriteria) string { return v.Operator }).(pulumi.StringOutput) } +// Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. +func (o DynamicMetricCriteriaOutput) SkipMetricValidation() pulumi.BoolPtrOutput { + return o.ApplyT(func(v DynamicMetricCriteria) *bool { return v.SkipMetricValidation }).(pulumi.BoolPtrOutput) +} + // the criteria time aggregation types. func (o DynamicMetricCriteriaOutput) TimeAggregation() pulumi.MapOutput { return o.ApplyT(func(v DynamicMetricCriteria) map[string]interface{} { return v.TimeAggregation }).(pulumi.MapOutput) @@ -3934,6 +3943,8 @@ type DynamicMetricCriteriaResponse struct { Name string `pulumi:"name"` // The operator used to compare the metric value against the threshold. Operator string `pulumi:"operator"` + // Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. + SkipMetricValidation *bool `pulumi:"skipMetricValidation"` // the criteria time aggregation types. TimeAggregation map[string]interface{} `pulumi:"timeAggregation"` } @@ -3969,6 +3980,8 @@ type DynamicMetricCriteriaResponseArgs struct { Name pulumi.StringInput `pulumi:"name"` // The operator used to compare the metric value against the threshold. Operator pulumi.StringInput `pulumi:"operator"` + // Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. + SkipMetricValidation pulumi.BoolPtrInput `pulumi:"skipMetricValidation"` // the criteria time aggregation types. TimeAggregation pulumi.MapInput `pulumi:"timeAggregation"` } @@ -4045,6 +4058,11 @@ func (o DynamicMetricCriteriaResponseOutput) Operator() pulumi.StringOutput { return o.ApplyT(func(v DynamicMetricCriteriaResponse) string { return v.Operator }).(pulumi.StringOutput) } +// Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. +func (o DynamicMetricCriteriaResponseOutput) SkipMetricValidation() pulumi.BoolPtrOutput { + return o.ApplyT(func(v DynamicMetricCriteriaResponse) *bool { return v.SkipMetricValidation }).(pulumi.BoolPtrOutput) +} + // the criteria time aggregation types. func (o DynamicMetricCriteriaResponseOutput) TimeAggregation() pulumi.MapOutput { return o.ApplyT(func(v DynamicMetricCriteriaResponse) map[string]interface{} { return v.TimeAggregation }).(pulumi.MapOutput) @@ -6951,6 +6969,8 @@ type MetricCriteria struct { Name string `pulumi:"name"` // the criteria operator. Operator string `pulumi:"operator"` + // Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. + SkipMetricValidation *bool `pulumi:"skipMetricValidation"` // the criteria threshold value that activates the alert. Threshold float64 `pulumi:"threshold"` // the criteria time aggregation types. @@ -6982,6 +7002,8 @@ type MetricCriteriaArgs struct { Name pulumi.StringInput `pulumi:"name"` // the criteria operator. Operator pulumi.StringInput `pulumi:"operator"` + // Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. + SkipMetricValidation pulumi.BoolPtrInput `pulumi:"skipMetricValidation"` // the criteria threshold value that activates the alert. Threshold pulumi.Float64Input `pulumi:"threshold"` // the criteria time aggregation types. @@ -7070,6 +7092,11 @@ func (o MetricCriteriaOutput) Operator() pulumi.StringOutput { return o.ApplyT(func(v MetricCriteria) string { return v.Operator }).(pulumi.StringOutput) } +// Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. +func (o MetricCriteriaOutput) SkipMetricValidation() pulumi.BoolPtrOutput { + return o.ApplyT(func(v MetricCriteria) *bool { return v.SkipMetricValidation }).(pulumi.BoolPtrOutput) +} + // the criteria threshold value that activates the alert. func (o MetricCriteriaOutput) Threshold() pulumi.Float64Output { return o.ApplyT(func(v MetricCriteria) float64 { return v.Threshold }).(pulumi.Float64Output) @@ -7114,6 +7141,8 @@ type MetricCriteriaResponse struct { Name string `pulumi:"name"` // the criteria operator. Operator string `pulumi:"operator"` + // Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. + SkipMetricValidation *bool `pulumi:"skipMetricValidation"` // the criteria threshold value that activates the alert. Threshold float64 `pulumi:"threshold"` // the criteria time aggregation types. @@ -7145,6 +7174,8 @@ type MetricCriteriaResponseArgs struct { Name pulumi.StringInput `pulumi:"name"` // the criteria operator. Operator pulumi.StringInput `pulumi:"operator"` + // Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. + SkipMetricValidation pulumi.BoolPtrInput `pulumi:"skipMetricValidation"` // the criteria threshold value that activates the alert. Threshold pulumi.Float64Input `pulumi:"threshold"` // the criteria time aggregation types. @@ -7233,6 +7264,11 @@ func (o MetricCriteriaResponseOutput) Operator() pulumi.StringOutput { return o.ApplyT(func(v MetricCriteriaResponse) string { return v.Operator }).(pulumi.StringOutput) } +// Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. +func (o MetricCriteriaResponseOutput) SkipMetricValidation() pulumi.BoolPtrOutput { + return o.ApplyT(func(v MetricCriteriaResponse) *bool { return v.SkipMetricValidation }).(pulumi.BoolPtrOutput) +} + // the criteria threshold value that activates the alert. func (o MetricCriteriaResponseOutput) Threshold() pulumi.Float64Output { return o.ApplyT(func(v MetricCriteriaResponse) float64 { return v.Threshold }).(pulumi.Float64Output) diff --git a/sdk/go/azurerm/insights/v20180301/pulumiTypes.go b/sdk/go/azurerm/insights/v20180301/pulumiTypes.go index 67ec50283af6..531d4dc7a482 100644 --- a/sdk/go/azurerm/insights/v20180301/pulumiTypes.go +++ b/sdk/go/azurerm/insights/v20180301/pulumiTypes.go @@ -792,6 +792,8 @@ type DynamicMetricCriteria struct { Name string `pulumi:"name"` // The operator used to compare the metric value against the threshold. Operator string `pulumi:"operator"` + // Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. + SkipMetricValidation *bool `pulumi:"skipMetricValidation"` // the criteria time aggregation types. TimeAggregation map[string]interface{} `pulumi:"timeAggregation"` } @@ -827,6 +829,8 @@ type DynamicMetricCriteriaArgs struct { Name pulumi.StringInput `pulumi:"name"` // The operator used to compare the metric value against the threshold. Operator pulumi.StringInput `pulumi:"operator"` + // Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. + SkipMetricValidation pulumi.BoolPtrInput `pulumi:"skipMetricValidation"` // the criteria time aggregation types. TimeAggregation pulumi.MapInput `pulumi:"timeAggregation"` } @@ -903,6 +907,11 @@ func (o DynamicMetricCriteriaOutput) Operator() pulumi.StringOutput { return o.ApplyT(func(v DynamicMetricCriteria) string { return v.Operator }).(pulumi.StringOutput) } +// Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. +func (o DynamicMetricCriteriaOutput) SkipMetricValidation() pulumi.BoolPtrOutput { + return o.ApplyT(func(v DynamicMetricCriteria) *bool { return v.SkipMetricValidation }).(pulumi.BoolPtrOutput) +} + // the criteria time aggregation types. func (o DynamicMetricCriteriaOutput) TimeAggregation() pulumi.MapOutput { return o.ApplyT(func(v DynamicMetricCriteria) map[string]interface{} { return v.TimeAggregation }).(pulumi.MapOutput) @@ -928,6 +937,8 @@ type DynamicMetricCriteriaResponse struct { Name string `pulumi:"name"` // The operator used to compare the metric value against the threshold. Operator string `pulumi:"operator"` + // Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. + SkipMetricValidation *bool `pulumi:"skipMetricValidation"` // the criteria time aggregation types. TimeAggregation map[string]interface{} `pulumi:"timeAggregation"` } @@ -963,6 +974,8 @@ type DynamicMetricCriteriaResponseArgs struct { Name pulumi.StringInput `pulumi:"name"` // The operator used to compare the metric value against the threshold. Operator pulumi.StringInput `pulumi:"operator"` + // Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. + SkipMetricValidation pulumi.BoolPtrInput `pulumi:"skipMetricValidation"` // the criteria time aggregation types. TimeAggregation pulumi.MapInput `pulumi:"timeAggregation"` } @@ -1039,6 +1052,11 @@ func (o DynamicMetricCriteriaResponseOutput) Operator() pulumi.StringOutput { return o.ApplyT(func(v DynamicMetricCriteriaResponse) string { return v.Operator }).(pulumi.StringOutput) } +// Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. +func (o DynamicMetricCriteriaResponseOutput) SkipMetricValidation() pulumi.BoolPtrOutput { + return o.ApplyT(func(v DynamicMetricCriteriaResponse) *bool { return v.SkipMetricValidation }).(pulumi.BoolPtrOutput) +} + // the criteria time aggregation types. func (o DynamicMetricCriteriaResponseOutput) TimeAggregation() pulumi.MapOutput { return o.ApplyT(func(v DynamicMetricCriteriaResponse) map[string]interface{} { return v.TimeAggregation }).(pulumi.MapOutput) @@ -2397,6 +2415,8 @@ type MetricCriteria struct { Name string `pulumi:"name"` // the criteria operator. Operator string `pulumi:"operator"` + // Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. + SkipMetricValidation *bool `pulumi:"skipMetricValidation"` // the criteria threshold value that activates the alert. Threshold float64 `pulumi:"threshold"` // the criteria time aggregation types. @@ -2428,6 +2448,8 @@ type MetricCriteriaArgs struct { Name pulumi.StringInput `pulumi:"name"` // the criteria operator. Operator pulumi.StringInput `pulumi:"operator"` + // Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. + SkipMetricValidation pulumi.BoolPtrInput `pulumi:"skipMetricValidation"` // the criteria threshold value that activates the alert. Threshold pulumi.Float64Input `pulumi:"threshold"` // the criteria time aggregation types. @@ -2516,6 +2538,11 @@ func (o MetricCriteriaOutput) Operator() pulumi.StringOutput { return o.ApplyT(func(v MetricCriteria) string { return v.Operator }).(pulumi.StringOutput) } +// Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. +func (o MetricCriteriaOutput) SkipMetricValidation() pulumi.BoolPtrOutput { + return o.ApplyT(func(v MetricCriteria) *bool { return v.SkipMetricValidation }).(pulumi.BoolPtrOutput) +} + // the criteria threshold value that activates the alert. func (o MetricCriteriaOutput) Threshold() pulumi.Float64Output { return o.ApplyT(func(v MetricCriteria) float64 { return v.Threshold }).(pulumi.Float64Output) @@ -2560,6 +2587,8 @@ type MetricCriteriaResponse struct { Name string `pulumi:"name"` // the criteria operator. Operator string `pulumi:"operator"` + // Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. + SkipMetricValidation *bool `pulumi:"skipMetricValidation"` // the criteria threshold value that activates the alert. Threshold float64 `pulumi:"threshold"` // the criteria time aggregation types. @@ -2591,6 +2620,8 @@ type MetricCriteriaResponseArgs struct { Name pulumi.StringInput `pulumi:"name"` // the criteria operator. Operator pulumi.StringInput `pulumi:"operator"` + // Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. + SkipMetricValidation pulumi.BoolPtrInput `pulumi:"skipMetricValidation"` // the criteria threshold value that activates the alert. Threshold pulumi.Float64Input `pulumi:"threshold"` // the criteria time aggregation types. @@ -2679,6 +2710,11 @@ func (o MetricCriteriaResponseOutput) Operator() pulumi.StringOutput { return o.ApplyT(func(v MetricCriteriaResponse) string { return v.Operator }).(pulumi.StringOutput) } +// Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. +func (o MetricCriteriaResponseOutput) SkipMetricValidation() pulumi.BoolPtrOutput { + return o.ApplyT(func(v MetricCriteriaResponse) *bool { return v.SkipMetricValidation }).(pulumi.BoolPtrOutput) +} + // the criteria threshold value that activates the alert. func (o MetricCriteriaResponseOutput) Threshold() pulumi.Float64Output { return o.ApplyT(func(v MetricCriteriaResponse) float64 { return v.Threshold }).(pulumi.Float64Output) diff --git a/sdk/go/azurerm/machinelearningservices/latest/getPrivateEndpointConnection.go b/sdk/go/azurerm/machinelearningservices/latest/getPrivateEndpointConnection.go index 80e1823676a0..3670e96ac78d 100644 --- a/sdk/go/azurerm/machinelearningservices/latest/getPrivateEndpointConnection.go +++ b/sdk/go/azurerm/machinelearningservices/latest/getPrivateEndpointConnection.go @@ -27,11 +27,7 @@ type LookupPrivateEndpointConnectionArgs struct { // The Private Endpoint Connection resource. type LookupPrivateEndpointConnectionResult struct { - // The identity of the resource. - Identity *IdentityResponse `pulumi:"identity"` - // Specifies the location of the resource. - Location *string `pulumi:"location"` - // Specifies the name of the resource. + // Friendly name of the private endpoint connection. Name string `pulumi:"name"` // The resource of private end point. PrivateEndpoint *PrivateEndpointResponse `pulumi:"privateEndpoint"` @@ -39,10 +35,6 @@ type LookupPrivateEndpointConnectionResult struct { PrivateLinkServiceConnectionState PrivateLinkServiceConnectionStateResponse `pulumi:"privateLinkServiceConnectionState"` // The provisioning state of the private endpoint connection resource. ProvisioningState *string `pulumi:"provisioningState"` - // The sku of the workspace. - Sku *SkuResponse `pulumi:"sku"` - // Contains resource tags defined as key/value pairs. - Tags map[string]string `pulumi:"tags"` - // Specifies the type of the resource. + // Resource type of private endpoint connection. Type string `pulumi:"type"` } diff --git a/sdk/go/azurerm/machinelearningservices/latest/privateEndpointConnection.go b/sdk/go/azurerm/machinelearningservices/latest/privateEndpointConnection.go index 17919957b400..d8f25d468794 100644 --- a/sdk/go/azurerm/machinelearningservices/latest/privateEndpointConnection.go +++ b/sdk/go/azurerm/machinelearningservices/latest/privateEndpointConnection.go @@ -14,11 +14,7 @@ import ( type PrivateEndpointConnection struct { pulumi.CustomResourceState - // The identity of the resource. - Identity IdentityResponsePtrOutput `pulumi:"identity"` - // Specifies the location of the resource. - Location pulumi.StringPtrOutput `pulumi:"location"` - // Specifies the name of the resource. + // Friendly name of the private endpoint connection. Name pulumi.StringOutput `pulumi:"name"` // The resource of private end point. PrivateEndpoint PrivateEndpointResponsePtrOutput `pulumi:"privateEndpoint"` @@ -26,11 +22,7 @@ type PrivateEndpointConnection struct { PrivateLinkServiceConnectionState PrivateLinkServiceConnectionStateResponseOutput `pulumi:"privateLinkServiceConnectionState"` // The provisioning state of the private endpoint connection resource. ProvisioningState pulumi.StringPtrOutput `pulumi:"provisioningState"` - // The sku of the workspace. - Sku SkuResponsePtrOutput `pulumi:"sku"` - // Contains resource tags defined as key/value pairs. - Tags pulumi.StringMapOutput `pulumi:"tags"` - // Specifies the type of the resource. + // Resource type of private endpoint connection. Type pulumi.StringOutput `pulumi:"type"` } @@ -101,11 +93,7 @@ func GetPrivateEndpointConnection(ctx *pulumi.Context, // Input properties used for looking up and filtering PrivateEndpointConnection resources. type privateEndpointConnectionState struct { - // The identity of the resource. - Identity *IdentityResponse `pulumi:"identity"` - // Specifies the location of the resource. - Location *string `pulumi:"location"` - // Specifies the name of the resource. + // Friendly name of the private endpoint connection. Name *string `pulumi:"name"` // The resource of private end point. PrivateEndpoint *PrivateEndpointResponse `pulumi:"privateEndpoint"` @@ -113,20 +101,12 @@ type privateEndpointConnectionState struct { PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionStateResponse `pulumi:"privateLinkServiceConnectionState"` // The provisioning state of the private endpoint connection resource. ProvisioningState *string `pulumi:"provisioningState"` - // The sku of the workspace. - Sku *SkuResponse `pulumi:"sku"` - // Contains resource tags defined as key/value pairs. - Tags map[string]string `pulumi:"tags"` - // Specifies the type of the resource. + // Resource type of private endpoint connection. Type *string `pulumi:"type"` } type PrivateEndpointConnectionState struct { - // The identity of the resource. - Identity IdentityResponsePtrInput - // Specifies the location of the resource. - Location pulumi.StringPtrInput - // Specifies the name of the resource. + // Friendly name of the private endpoint connection. Name pulumi.StringPtrInput // The resource of private end point. PrivateEndpoint PrivateEndpointResponsePtrInput @@ -134,11 +114,7 @@ type PrivateEndpointConnectionState struct { PrivateLinkServiceConnectionState PrivateLinkServiceConnectionStateResponsePtrInput // The provisioning state of the private endpoint connection resource. ProvisioningState pulumi.StringPtrInput - // The sku of the workspace. - Sku SkuResponsePtrInput - // Contains resource tags defined as key/value pairs. - Tags pulumi.StringMapInput - // Specifies the type of the resource. + // Resource type of private endpoint connection. Type pulumi.StringPtrInput } @@ -147,10 +123,6 @@ func (PrivateEndpointConnectionState) ElementType() reflect.Type { } type privateEndpointConnectionArgs struct { - // The identity of the resource. - Identity *Identity `pulumi:"identity"` - // Specifies the location of the resource. - Location *string `pulumi:"location"` // The name of the private endpoint connection associated with the workspace PrivateEndpointConnectionName string `pulumi:"privateEndpointConnectionName"` // A collection of information about the state of the connection between service consumer and provider. @@ -159,20 +131,12 @@ type privateEndpointConnectionArgs struct { ProvisioningState *string `pulumi:"provisioningState"` // Name of the resource group in which workspace is located. ResourceGroupName string `pulumi:"resourceGroupName"` - // The sku of the workspace. - Sku *Sku `pulumi:"sku"` - // Contains resource tags defined as key/value pairs. - Tags map[string]string `pulumi:"tags"` // Name of Azure Machine Learning workspace. WorkspaceName string `pulumi:"workspaceName"` } // The set of arguments for constructing a PrivateEndpointConnection resource. type PrivateEndpointConnectionArgs struct { - // The identity of the resource. - Identity IdentityPtrInput - // Specifies the location of the resource. - Location pulumi.StringPtrInput // The name of the private endpoint connection associated with the workspace PrivateEndpointConnectionName pulumi.StringInput // A collection of information about the state of the connection between service consumer and provider. @@ -181,10 +145,6 @@ type PrivateEndpointConnectionArgs struct { ProvisioningState pulumi.StringPtrInput // Name of the resource group in which workspace is located. ResourceGroupName pulumi.StringInput - // The sku of the workspace. - Sku SkuPtrInput - // Contains resource tags defined as key/value pairs. - Tags pulumi.StringMapInput // Name of Azure Machine Learning workspace. WorkspaceName pulumi.StringInput } diff --git a/sdk/go/azurerm/machinelearningservices/latest/pulumiTypes.go b/sdk/go/azurerm/machinelearningservices/latest/pulumiTypes.go index 792fbe926dc6..89f1f6197152 100644 --- a/sdk/go/azurerm/machinelearningservices/latest/pulumiTypes.go +++ b/sdk/go/azurerm/machinelearningservices/latest/pulumiTypes.go @@ -7576,13 +7576,9 @@ func (o PasswordResponseArrayOutput) Index(i pulumi.IntInput) PasswordResponseOu // The Private Endpoint Connection resource. type PrivateEndpointConnectionResponse struct { - // Specifies the resource ID. + // ResourceId of the private endpoint connection. Id string `pulumi:"id"` - // The identity of the resource. - Identity *IdentityResponse `pulumi:"identity"` - // Specifies the location of the resource. - Location *string `pulumi:"location"` - // Specifies the name of the resource. + // Friendly name of the private endpoint connection. Name string `pulumi:"name"` // The resource of private end point. PrivateEndpoint *PrivateEndpointResponse `pulumi:"privateEndpoint"` @@ -7590,11 +7586,7 @@ type PrivateEndpointConnectionResponse struct { PrivateLinkServiceConnectionState PrivateLinkServiceConnectionStateResponse `pulumi:"privateLinkServiceConnectionState"` // The provisioning state of the private endpoint connection resource. ProvisioningState *string `pulumi:"provisioningState"` - // The sku of the workspace. - Sku *SkuResponse `pulumi:"sku"` - // Contains resource tags defined as key/value pairs. - Tags map[string]string `pulumi:"tags"` - // Specifies the type of the resource. + // Resource type of private endpoint connection. Type string `pulumi:"type"` } @@ -7611,13 +7603,9 @@ type PrivateEndpointConnectionResponseInput interface { // The Private Endpoint Connection resource. type PrivateEndpointConnectionResponseArgs struct { - // Specifies the resource ID. + // ResourceId of the private endpoint connection. Id pulumi.StringInput `pulumi:"id"` - // The identity of the resource. - Identity IdentityResponsePtrInput `pulumi:"identity"` - // Specifies the location of the resource. - Location pulumi.StringPtrInput `pulumi:"location"` - // Specifies the name of the resource. + // Friendly name of the private endpoint connection. Name pulumi.StringInput `pulumi:"name"` // The resource of private end point. PrivateEndpoint PrivateEndpointResponsePtrInput `pulumi:"privateEndpoint"` @@ -7625,11 +7613,7 @@ type PrivateEndpointConnectionResponseArgs struct { PrivateLinkServiceConnectionState PrivateLinkServiceConnectionStateResponseInput `pulumi:"privateLinkServiceConnectionState"` // The provisioning state of the private endpoint connection resource. ProvisioningState pulumi.StringPtrInput `pulumi:"provisioningState"` - // The sku of the workspace. - Sku SkuResponsePtrInput `pulumi:"sku"` - // Contains resource tags defined as key/value pairs. - Tags pulumi.StringMapInput `pulumi:"tags"` - // Specifies the type of the resource. + // Resource type of private endpoint connection. Type pulumi.StringInput `pulumi:"type"` } @@ -7685,22 +7669,12 @@ func (o PrivateEndpointConnectionResponseOutput) ToPrivateEndpointConnectionResp return o } -// Specifies the resource ID. +// ResourceId of the private endpoint connection. func (o PrivateEndpointConnectionResponseOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v PrivateEndpointConnectionResponse) string { return v.Id }).(pulumi.StringOutput) } -// The identity of the resource. -func (o PrivateEndpointConnectionResponseOutput) Identity() IdentityResponsePtrOutput { - return o.ApplyT(func(v PrivateEndpointConnectionResponse) *IdentityResponse { return v.Identity }).(IdentityResponsePtrOutput) -} - -// Specifies the location of the resource. -func (o PrivateEndpointConnectionResponseOutput) Location() pulumi.StringPtrOutput { - return o.ApplyT(func(v PrivateEndpointConnectionResponse) *string { return v.Location }).(pulumi.StringPtrOutput) -} - -// Specifies the name of the resource. +// Friendly name of the private endpoint connection. func (o PrivateEndpointConnectionResponseOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v PrivateEndpointConnectionResponse) string { return v.Name }).(pulumi.StringOutput) } @@ -7722,17 +7696,7 @@ func (o PrivateEndpointConnectionResponseOutput) ProvisioningState() pulumi.Stri return o.ApplyT(func(v PrivateEndpointConnectionResponse) *string { return v.ProvisioningState }).(pulumi.StringPtrOutput) } -// The sku of the workspace. -func (o PrivateEndpointConnectionResponseOutput) Sku() SkuResponsePtrOutput { - return o.ApplyT(func(v PrivateEndpointConnectionResponse) *SkuResponse { return v.Sku }).(SkuResponsePtrOutput) -} - -// Contains resource tags defined as key/value pairs. -func (o PrivateEndpointConnectionResponseOutput) Tags() pulumi.StringMapOutput { - return o.ApplyT(func(v PrivateEndpointConnectionResponse) map[string]string { return v.Tags }).(pulumi.StringMapOutput) -} - -// Specifies the type of the resource. +// Resource type of private endpoint connection. func (o PrivateEndpointConnectionResponseOutput) Type() pulumi.StringOutput { return o.ApplyT(func(v PrivateEndpointConnectionResponse) string { return v.Type }).(pulumi.StringOutput) } diff --git a/sdk/go/azurerm/machinelearningservices/v20200601/getPrivateEndpointConnection.go b/sdk/go/azurerm/machinelearningservices/v20200601/getPrivateEndpointConnection.go index c39a47634384..f3c42f61f551 100644 --- a/sdk/go/azurerm/machinelearningservices/v20200601/getPrivateEndpointConnection.go +++ b/sdk/go/azurerm/machinelearningservices/v20200601/getPrivateEndpointConnection.go @@ -27,11 +27,7 @@ type LookupPrivateEndpointConnectionArgs struct { // The Private Endpoint Connection resource. type LookupPrivateEndpointConnectionResult struct { - // The identity of the resource. - Identity *IdentityResponse `pulumi:"identity"` - // Specifies the location of the resource. - Location *string `pulumi:"location"` - // Specifies the name of the resource. + // Friendly name of the private endpoint connection. Name string `pulumi:"name"` // The resource of private end point. PrivateEndpoint *PrivateEndpointResponse `pulumi:"privateEndpoint"` @@ -39,10 +35,6 @@ type LookupPrivateEndpointConnectionResult struct { PrivateLinkServiceConnectionState PrivateLinkServiceConnectionStateResponse `pulumi:"privateLinkServiceConnectionState"` // The provisioning state of the private endpoint connection resource. ProvisioningState *string `pulumi:"provisioningState"` - // The sku of the workspace. - Sku *SkuResponse `pulumi:"sku"` - // Contains resource tags defined as key/value pairs. - Tags map[string]string `pulumi:"tags"` - // Specifies the type of the resource. + // Resource type of private endpoint connection. Type string `pulumi:"type"` } diff --git a/sdk/go/azurerm/machinelearningservices/v20200601/privateEndpointConnection.go b/sdk/go/azurerm/machinelearningservices/v20200601/privateEndpointConnection.go index fcaed0cc4113..d3dbf898c473 100644 --- a/sdk/go/azurerm/machinelearningservices/v20200601/privateEndpointConnection.go +++ b/sdk/go/azurerm/machinelearningservices/v20200601/privateEndpointConnection.go @@ -14,11 +14,7 @@ import ( type PrivateEndpointConnection struct { pulumi.CustomResourceState - // The identity of the resource. - Identity IdentityResponsePtrOutput `pulumi:"identity"` - // Specifies the location of the resource. - Location pulumi.StringPtrOutput `pulumi:"location"` - // Specifies the name of the resource. + // Friendly name of the private endpoint connection. Name pulumi.StringOutput `pulumi:"name"` // The resource of private end point. PrivateEndpoint PrivateEndpointResponsePtrOutput `pulumi:"privateEndpoint"` @@ -26,11 +22,7 @@ type PrivateEndpointConnection struct { PrivateLinkServiceConnectionState PrivateLinkServiceConnectionStateResponseOutput `pulumi:"privateLinkServiceConnectionState"` // The provisioning state of the private endpoint connection resource. ProvisioningState pulumi.StringPtrOutput `pulumi:"provisioningState"` - // The sku of the workspace. - Sku SkuResponsePtrOutput `pulumi:"sku"` - // Contains resource tags defined as key/value pairs. - Tags pulumi.StringMapOutput `pulumi:"tags"` - // Specifies the type of the resource. + // Resource type of private endpoint connection. Type pulumi.StringOutput `pulumi:"type"` } @@ -101,11 +93,7 @@ func GetPrivateEndpointConnection(ctx *pulumi.Context, // Input properties used for looking up and filtering PrivateEndpointConnection resources. type privateEndpointConnectionState struct { - // The identity of the resource. - Identity *IdentityResponse `pulumi:"identity"` - // Specifies the location of the resource. - Location *string `pulumi:"location"` - // Specifies the name of the resource. + // Friendly name of the private endpoint connection. Name *string `pulumi:"name"` // The resource of private end point. PrivateEndpoint *PrivateEndpointResponse `pulumi:"privateEndpoint"` @@ -113,20 +101,12 @@ type privateEndpointConnectionState struct { PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionStateResponse `pulumi:"privateLinkServiceConnectionState"` // The provisioning state of the private endpoint connection resource. ProvisioningState *string `pulumi:"provisioningState"` - // The sku of the workspace. - Sku *SkuResponse `pulumi:"sku"` - // Contains resource tags defined as key/value pairs. - Tags map[string]string `pulumi:"tags"` - // Specifies the type of the resource. + // Resource type of private endpoint connection. Type *string `pulumi:"type"` } type PrivateEndpointConnectionState struct { - // The identity of the resource. - Identity IdentityResponsePtrInput - // Specifies the location of the resource. - Location pulumi.StringPtrInput - // Specifies the name of the resource. + // Friendly name of the private endpoint connection. Name pulumi.StringPtrInput // The resource of private end point. PrivateEndpoint PrivateEndpointResponsePtrInput @@ -134,11 +114,7 @@ type PrivateEndpointConnectionState struct { PrivateLinkServiceConnectionState PrivateLinkServiceConnectionStateResponsePtrInput // The provisioning state of the private endpoint connection resource. ProvisioningState pulumi.StringPtrInput - // The sku of the workspace. - Sku SkuResponsePtrInput - // Contains resource tags defined as key/value pairs. - Tags pulumi.StringMapInput - // Specifies the type of the resource. + // Resource type of private endpoint connection. Type pulumi.StringPtrInput } @@ -147,10 +123,6 @@ func (PrivateEndpointConnectionState) ElementType() reflect.Type { } type privateEndpointConnectionArgs struct { - // The identity of the resource. - Identity *Identity `pulumi:"identity"` - // Specifies the location of the resource. - Location *string `pulumi:"location"` // The name of the private endpoint connection associated with the workspace PrivateEndpointConnectionName string `pulumi:"privateEndpointConnectionName"` // A collection of information about the state of the connection between service consumer and provider. @@ -159,20 +131,12 @@ type privateEndpointConnectionArgs struct { ProvisioningState *string `pulumi:"provisioningState"` // Name of the resource group in which workspace is located. ResourceGroupName string `pulumi:"resourceGroupName"` - // The sku of the workspace. - Sku *Sku `pulumi:"sku"` - // Contains resource tags defined as key/value pairs. - Tags map[string]string `pulumi:"tags"` // Name of Azure Machine Learning workspace. WorkspaceName string `pulumi:"workspaceName"` } // The set of arguments for constructing a PrivateEndpointConnection resource. type PrivateEndpointConnectionArgs struct { - // The identity of the resource. - Identity IdentityPtrInput - // Specifies the location of the resource. - Location pulumi.StringPtrInput // The name of the private endpoint connection associated with the workspace PrivateEndpointConnectionName pulumi.StringInput // A collection of information about the state of the connection between service consumer and provider. @@ -181,10 +145,6 @@ type PrivateEndpointConnectionArgs struct { ProvisioningState pulumi.StringPtrInput // Name of the resource group in which workspace is located. ResourceGroupName pulumi.StringInput - // The sku of the workspace. - Sku SkuPtrInput - // Contains resource tags defined as key/value pairs. - Tags pulumi.StringMapInput // Name of Azure Machine Learning workspace. WorkspaceName pulumi.StringInput } diff --git a/sdk/go/azurerm/machinelearningservices/v20200601/pulumiTypes.go b/sdk/go/azurerm/machinelearningservices/v20200601/pulumiTypes.go index 502e0b758f66..b6967c8dece8 100644 --- a/sdk/go/azurerm/machinelearningservices/v20200601/pulumiTypes.go +++ b/sdk/go/azurerm/machinelearningservices/v20200601/pulumiTypes.go @@ -7270,13 +7270,9 @@ func (o PasswordResponseArrayOutput) Index(i pulumi.IntInput) PasswordResponseOu // The Private Endpoint Connection resource. type PrivateEndpointConnectionResponse struct { - // Specifies the resource ID. + // ResourceId of the private endpoint connection. Id string `pulumi:"id"` - // The identity of the resource. - Identity *IdentityResponse `pulumi:"identity"` - // Specifies the location of the resource. - Location *string `pulumi:"location"` - // Specifies the name of the resource. + // Friendly name of the private endpoint connection. Name string `pulumi:"name"` // The resource of private end point. PrivateEndpoint *PrivateEndpointResponse `pulumi:"privateEndpoint"` @@ -7284,11 +7280,7 @@ type PrivateEndpointConnectionResponse struct { PrivateLinkServiceConnectionState PrivateLinkServiceConnectionStateResponse `pulumi:"privateLinkServiceConnectionState"` // The provisioning state of the private endpoint connection resource. ProvisioningState *string `pulumi:"provisioningState"` - // The sku of the workspace. - Sku *SkuResponse `pulumi:"sku"` - // Contains resource tags defined as key/value pairs. - Tags map[string]string `pulumi:"tags"` - // Specifies the type of the resource. + // Resource type of private endpoint connection. Type string `pulumi:"type"` } @@ -7305,13 +7297,9 @@ type PrivateEndpointConnectionResponseInput interface { // The Private Endpoint Connection resource. type PrivateEndpointConnectionResponseArgs struct { - // Specifies the resource ID. + // ResourceId of the private endpoint connection. Id pulumi.StringInput `pulumi:"id"` - // The identity of the resource. - Identity IdentityResponsePtrInput `pulumi:"identity"` - // Specifies the location of the resource. - Location pulumi.StringPtrInput `pulumi:"location"` - // Specifies the name of the resource. + // Friendly name of the private endpoint connection. Name pulumi.StringInput `pulumi:"name"` // The resource of private end point. PrivateEndpoint PrivateEndpointResponsePtrInput `pulumi:"privateEndpoint"` @@ -7319,11 +7307,7 @@ type PrivateEndpointConnectionResponseArgs struct { PrivateLinkServiceConnectionState PrivateLinkServiceConnectionStateResponseInput `pulumi:"privateLinkServiceConnectionState"` // The provisioning state of the private endpoint connection resource. ProvisioningState pulumi.StringPtrInput `pulumi:"provisioningState"` - // The sku of the workspace. - Sku SkuResponsePtrInput `pulumi:"sku"` - // Contains resource tags defined as key/value pairs. - Tags pulumi.StringMapInput `pulumi:"tags"` - // Specifies the type of the resource. + // Resource type of private endpoint connection. Type pulumi.StringInput `pulumi:"type"` } @@ -7379,22 +7363,12 @@ func (o PrivateEndpointConnectionResponseOutput) ToPrivateEndpointConnectionResp return o } -// Specifies the resource ID. +// ResourceId of the private endpoint connection. func (o PrivateEndpointConnectionResponseOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v PrivateEndpointConnectionResponse) string { return v.Id }).(pulumi.StringOutput) } -// The identity of the resource. -func (o PrivateEndpointConnectionResponseOutput) Identity() IdentityResponsePtrOutput { - return o.ApplyT(func(v PrivateEndpointConnectionResponse) *IdentityResponse { return v.Identity }).(IdentityResponsePtrOutput) -} - -// Specifies the location of the resource. -func (o PrivateEndpointConnectionResponseOutput) Location() pulumi.StringPtrOutput { - return o.ApplyT(func(v PrivateEndpointConnectionResponse) *string { return v.Location }).(pulumi.StringPtrOutput) -} - -// Specifies the name of the resource. +// Friendly name of the private endpoint connection. func (o PrivateEndpointConnectionResponseOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v PrivateEndpointConnectionResponse) string { return v.Name }).(pulumi.StringOutput) } @@ -7416,17 +7390,7 @@ func (o PrivateEndpointConnectionResponseOutput) ProvisioningState() pulumi.Stri return o.ApplyT(func(v PrivateEndpointConnectionResponse) *string { return v.ProvisioningState }).(pulumi.StringPtrOutput) } -// The sku of the workspace. -func (o PrivateEndpointConnectionResponseOutput) Sku() SkuResponsePtrOutput { - return o.ApplyT(func(v PrivateEndpointConnectionResponse) *SkuResponse { return v.Sku }).(SkuResponsePtrOutput) -} - -// Contains resource tags defined as key/value pairs. -func (o PrivateEndpointConnectionResponseOutput) Tags() pulumi.StringMapOutput { - return o.ApplyT(func(v PrivateEndpointConnectionResponse) map[string]string { return v.Tags }).(pulumi.StringMapOutput) -} - -// Specifies the type of the resource. +// Resource type of private endpoint connection. func (o PrivateEndpointConnectionResponseOutput) Type() pulumi.StringOutput { return o.ApplyT(func(v PrivateEndpointConnectionResponse) string { return v.Type }).(pulumi.StringOutput) } diff --git a/sdk/nodejs/alertsmanagement/index.ts b/sdk/nodejs/alertsmanagement/index.ts index 8d6528bf703f..f15fb4e4f5e2 100644 --- a/sdk/nodejs/alertsmanagement/index.ts +++ b/sdk/nodejs/alertsmanagement/index.ts @@ -7,4 +7,5 @@ import * as v20181102privatepreview from "./v20181102privatepreview"; import * as v20190301 from "./v20190301"; import * as v20190505preview from "./v20190505preview"; import * as v20190601 from "./v20190601"; -export {latest, v20181102privatepreview, v20190301, v20190505preview, v20190601}; +import * as v20200804preview from "./v20200804preview"; +export {latest, v20181102privatepreview, v20190301, v20190505preview, v20190601, v20200804preview}; diff --git a/sdk/nodejs/alertsmanagement/v20200804preview/getHealthAlert.ts b/sdk/nodejs/alertsmanagement/v20200804preview/getHealthAlert.ts new file mode 100644 index 000000000000..0c1030b2a4ed --- /dev/null +++ b/sdk/nodejs/alertsmanagement/v20200804preview/getHealthAlert.ts @@ -0,0 +1,78 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as inputs from "../../types/input"; +import * as outputs from "../../types/output"; +import * as utilities from "../../utilities"; + +export function getHealthAlert(args: GetHealthAlertArgs, opts?: pulumi.InvokeOptions): Promise { + if (!opts) { + opts = {} + } + + if (!opts.version) { + opts.version = utilities.getVersion(); + } + return pulumi.runtime.invoke("azurerm:alertsmanagement/v20200804preview:getHealthAlert", { + "resourceGroupName": args.resourceGroupName, + "ruleName": args.ruleName, + }, opts); +} + +export interface GetHealthAlertArgs { + /** + * The name of the resource group. + */ + readonly resourceGroupName: string; + /** + * The name of the rule. + */ + readonly ruleName: string; +} + +/** + * The health alert resource. + */ +export interface GetHealthAlertResult { + /** + * the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved. + */ + readonly actions?: outputs.alertsmanagement.v20200804preview.HealthAlertActionResponse[]; + /** + * defines the specific alert criteria information. + */ + readonly criteria: outputs.alertsmanagement.v20200804preview.HealthAlertCriteriaResponse; + /** + * the description of the health alert that will be included in the alert email. + */ + readonly description: string; + /** + * the flag that indicates whether the health alert is enabled. + */ + readonly enabled: boolean; + /** + * Last time the rule was updated in ISO8601 format. + */ + readonly lastUpdatedTime: string; + /** + * Resource location + */ + readonly location: string; + /** + * Azure resource name + */ + readonly name: string; + /** + * the list of resource id's that this health alert is scoped to. + */ + readonly scopes?: string[]; + /** + * Resource tags + */ + readonly tags?: {[key: string]: string}; + /** + * Azure resource type + */ + readonly type: string; +} diff --git a/sdk/nodejs/alertsmanagement/v20200804preview/healthAlert.ts b/sdk/nodejs/alertsmanagement/v20200804preview/healthAlert.ts new file mode 100644 index 000000000000..ab18ba54f343 --- /dev/null +++ b/sdk/nodejs/alertsmanagement/v20200804preview/healthAlert.ts @@ -0,0 +1,183 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as inputs from "../../types/input"; +import * as outputs from "../../types/output"; +import * as utilities from "../../utilities"; + +/** + * The health alert resource. + */ +export class HealthAlert extends pulumi.CustomResource { + /** + * Get an existing HealthAlert resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, opts?: pulumi.CustomResourceOptions): HealthAlert { + return new HealthAlert(name, undefined as any, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'azurerm:alertsmanagement/v20200804preview:HealthAlert'; + + /** + * Returns true if the given object is an instance of HealthAlert. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is HealthAlert { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === HealthAlert.__pulumiType; + } + + /** + * the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved. + */ + public readonly actions!: pulumi.Output; + /** + * defines the specific alert criteria information. + */ + public readonly criteria!: pulumi.Output; + /** + * the description of the health alert that will be included in the alert email. + */ + public readonly description!: pulumi.Output; + /** + * the flag that indicates whether the health alert is enabled. + */ + public readonly enabled!: pulumi.Output; + /** + * Last time the rule was updated in ISO8601 format. + */ + public /*out*/ readonly lastUpdatedTime!: pulumi.Output; + /** + * Resource location + */ + public readonly location!: pulumi.Output; + /** + * Azure resource name + */ + public /*out*/ readonly name!: pulumi.Output; + /** + * the list of resource id's that this health alert is scoped to. + */ + public readonly scopes!: pulumi.Output; + /** + * Resource tags + */ + public readonly tags!: pulumi.Output<{[key: string]: string} | undefined>; + /** + * Azure resource type + */ + public /*out*/ readonly type!: pulumi.Output; + + /** + * Create a HealthAlert resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: HealthAlertArgs, opts?: pulumi.CustomResourceOptions) { + let inputs: pulumi.Inputs = {}; + if (!(opts && opts.id)) { + if (!args || args.criteria === undefined) { + throw new Error("Missing required property 'criteria'"); + } + if (!args || args.description === undefined) { + throw new Error("Missing required property 'description'"); + } + if (!args || args.enabled === undefined) { + throw new Error("Missing required property 'enabled'"); + } + if (!args || args.location === undefined) { + throw new Error("Missing required property 'location'"); + } + if (!args || args.resourceGroupName === undefined) { + throw new Error("Missing required property 'resourceGroupName'"); + } + if (!args || args.ruleName === undefined) { + throw new Error("Missing required property 'ruleName'"); + } + inputs["actions"] = args ? args.actions : undefined; + inputs["criteria"] = args ? args.criteria : undefined; + inputs["description"] = args ? args.description : undefined; + inputs["enabled"] = args ? args.enabled : undefined; + inputs["location"] = args ? args.location : undefined; + inputs["resourceGroupName"] = args ? args.resourceGroupName : undefined; + inputs["ruleName"] = args ? args.ruleName : undefined; + inputs["scopes"] = args ? args.scopes : undefined; + inputs["tags"] = args ? args.tags : undefined; + inputs["lastUpdatedTime"] = undefined /*out*/; + inputs["name"] = undefined /*out*/; + inputs["type"] = undefined /*out*/; + } else { + inputs["actions"] = undefined /*out*/; + inputs["criteria"] = undefined /*out*/; + inputs["description"] = undefined /*out*/; + inputs["enabled"] = undefined /*out*/; + inputs["lastUpdatedTime"] = undefined /*out*/; + inputs["location"] = undefined /*out*/; + inputs["name"] = undefined /*out*/; + inputs["scopes"] = undefined /*out*/; + inputs["tags"] = undefined /*out*/; + inputs["type"] = undefined /*out*/; + } + if (!opts) { + opts = {} + } + + if (!opts.version) { + opts.version = utilities.getVersion(); + } + super(HealthAlert.__pulumiType, name, inputs, opts); + } +} + +/** + * The set of arguments for constructing a HealthAlert resource. + */ +export interface HealthAlertArgs { + /** + * the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved. + */ + readonly actions?: pulumi.Input[]>; + /** + * defines the specific alert criteria information. + */ + readonly criteria: pulumi.Input; + /** + * the description of the health alert that will be included in the alert email. + */ + readonly description: pulumi.Input; + /** + * the flag that indicates whether the health alert is enabled. + */ + readonly enabled: pulumi.Input; + /** + * Resource location + */ + readonly location: pulumi.Input; + /** + * The name of the resource group. + */ + readonly resourceGroupName: pulumi.Input; + /** + * The name of the rule. + */ + readonly ruleName: pulumi.Input; + /** + * the list of resource id's that this health alert is scoped to. + */ + readonly scopes?: pulumi.Input[]>; + /** + * Resource tags + */ + readonly tags?: pulumi.Input<{[key: string]: pulumi.Input}>; +} diff --git a/sdk/nodejs/alertsmanagement/v20200804preview/index.ts b/sdk/nodejs/alertsmanagement/v20200804preview/index.ts new file mode 100644 index 000000000000..01f5597ce793 --- /dev/null +++ b/sdk/nodejs/alertsmanagement/v20200804preview/index.ts @@ -0,0 +1,6 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +// Export members: +export * from "./getHealthAlert"; +export * from "./healthAlert"; diff --git a/sdk/nodejs/authorization/index.ts b/sdk/nodejs/authorization/index.ts index d618e991ef6f..f2d3b2fa06bd 100644 --- a/sdk/nodejs/authorization/index.ts +++ b/sdk/nodejs/authorization/index.ts @@ -21,4 +21,5 @@ import * as v20190601 from "./v20190601"; import * as v20190901 from "./v20190901"; import * as v20200301 from "./v20200301"; import * as v20200401preview from "./v20200401preview"; -export {latest, v20150101, v20150701, v20151001preview, v20151101, v20160401, v20160901, v20161201, v20170601preview, v20171001preview, v20180101preview, v20180301, v20180501, v20180901preview, v20190101, v20190601, v20190901, v20200301, v20200401preview}; +import * as v20200701preview from "./v20200701preview"; +export {latest, v20150101, v20150701, v20151001preview, v20151101, v20160401, v20160901, v20161201, v20170601preview, v20171001preview, v20180101preview, v20180301, v20180501, v20180901preview, v20190101, v20190601, v20190901, v20200301, v20200401preview, v20200701preview}; diff --git a/sdk/nodejs/authorization/v20200701preview/getPolicyExemption.ts b/sdk/nodejs/authorization/v20200701preview/getPolicyExemption.ts new file mode 100644 index 000000000000..2709aead5469 --- /dev/null +++ b/sdk/nodejs/authorization/v20200701preview/getPolicyExemption.ts @@ -0,0 +1,78 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as inputs from "../../types/input"; +import * as outputs from "../../types/output"; +import * as utilities from "../../utilities"; + +export function getPolicyExemption(args: GetPolicyExemptionArgs, opts?: pulumi.InvokeOptions): Promise { + if (!opts) { + opts = {} + } + + if (!opts.version) { + opts.version = utilities.getVersion(); + } + return pulumi.runtime.invoke("azurerm:authorization/v20200701preview:getPolicyExemption", { + "policyExemptionName": args.policyExemptionName, + "scope": args.scope, + }, opts); +} + +export interface GetPolicyExemptionArgs { + /** + * The name of the policy exemption to delete. + */ + readonly policyExemptionName: string; + /** + * The scope of the policy exemption. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' + */ + readonly scope: string; +} + +/** + * The policy exemption. + */ +export interface GetPolicyExemptionResult { + /** + * The description of the policy exemption. + */ + readonly description?: string; + /** + * The display name of the policy exemption. + */ + readonly displayName?: string; + /** + * The policy exemption category. Possible values are Waiver and Mitigated. + */ + readonly exemptionCategory: string; + /** + * The expiration date and time (in UTC ISO 8601 format yyyy-MM-ddTHH:mm:ssZ) of the policy exemption. + */ + readonly expiresOn?: string; + /** + * The policy exemption metadata. Metadata is an open ended object and is typically a collection of key value pairs. + */ + readonly metadata?: {[key: string]: any}; + /** + * The name of the resource + */ + readonly name: string; + /** + * The ID of the policy assignment that is being exempted. + */ + readonly policyAssignmentId: string; + /** + * The policy definition reference ID list when the associated policy assignment is an assignment of a policy set definition. + */ + readonly policyDefinitionReferenceIds?: string[]; + /** + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + readonly systemData: outputs.authorization.v20200701preview.SystemDataResponse; + /** + * The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + */ + readonly type: string; +} diff --git a/sdk/nodejs/authorization/v20200701preview/index.ts b/sdk/nodejs/authorization/v20200701preview/index.ts new file mode 100644 index 000000000000..aca0b30fdfe2 --- /dev/null +++ b/sdk/nodejs/authorization/v20200701preview/index.ts @@ -0,0 +1,6 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +// Export members: +export * from "./getPolicyExemption"; +export * from "./policyExemption"; diff --git a/sdk/nodejs/authorization/v20200701preview/policyExemption.ts b/sdk/nodejs/authorization/v20200701preview/policyExemption.ts new file mode 100644 index 000000000000..f544db964c95 --- /dev/null +++ b/sdk/nodejs/authorization/v20200701preview/policyExemption.ts @@ -0,0 +1,177 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as inputs from "../../types/input"; +import * as outputs from "../../types/output"; +import * as utilities from "../../utilities"; + +/** + * The policy exemption. + */ +export class PolicyExemption extends pulumi.CustomResource { + /** + * Get an existing PolicyExemption resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, opts?: pulumi.CustomResourceOptions): PolicyExemption { + return new PolicyExemption(name, undefined as any, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'azurerm:authorization/v20200701preview:PolicyExemption'; + + /** + * Returns true if the given object is an instance of PolicyExemption. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is PolicyExemption { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === PolicyExemption.__pulumiType; + } + + /** + * The description of the policy exemption. + */ + public readonly description!: pulumi.Output; + /** + * The display name of the policy exemption. + */ + public readonly displayName!: pulumi.Output; + /** + * The policy exemption category. Possible values are Waiver and Mitigated. + */ + public readonly exemptionCategory!: pulumi.Output; + /** + * The expiration date and time (in UTC ISO 8601 format yyyy-MM-ddTHH:mm:ssZ) of the policy exemption. + */ + public readonly expiresOn!: pulumi.Output; + /** + * The policy exemption metadata. Metadata is an open ended object and is typically a collection of key value pairs. + */ + public readonly metadata!: pulumi.Output<{[key: string]: any} | undefined>; + /** + * The name of the resource + */ + public /*out*/ readonly name!: pulumi.Output; + /** + * The ID of the policy assignment that is being exempted. + */ + public readonly policyAssignmentId!: pulumi.Output; + /** + * The policy definition reference ID list when the associated policy assignment is an assignment of a policy set definition. + */ + public readonly policyDefinitionReferenceIds!: pulumi.Output; + /** + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + public /*out*/ readonly systemData!: pulumi.Output; + /** + * The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + */ + public /*out*/ readonly type!: pulumi.Output; + + /** + * Create a PolicyExemption resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: PolicyExemptionArgs, opts?: pulumi.CustomResourceOptions) { + let inputs: pulumi.Inputs = {}; + if (!(opts && opts.id)) { + if (!args || args.exemptionCategory === undefined) { + throw new Error("Missing required property 'exemptionCategory'"); + } + if (!args || args.policyAssignmentId === undefined) { + throw new Error("Missing required property 'policyAssignmentId'"); + } + if (!args || args.policyExemptionName === undefined) { + throw new Error("Missing required property 'policyExemptionName'"); + } + if (!args || args.scope === undefined) { + throw new Error("Missing required property 'scope'"); + } + inputs["description"] = args ? args.description : undefined; + inputs["displayName"] = args ? args.displayName : undefined; + inputs["exemptionCategory"] = args ? args.exemptionCategory : undefined; + inputs["expiresOn"] = args ? args.expiresOn : undefined; + inputs["metadata"] = args ? args.metadata : undefined; + inputs["policyAssignmentId"] = args ? args.policyAssignmentId : undefined; + inputs["policyDefinitionReferenceIds"] = args ? args.policyDefinitionReferenceIds : undefined; + inputs["policyExemptionName"] = args ? args.policyExemptionName : undefined; + inputs["scope"] = args ? args.scope : undefined; + inputs["name"] = undefined /*out*/; + inputs["systemData"] = undefined /*out*/; + inputs["type"] = undefined /*out*/; + } else { + inputs["description"] = undefined /*out*/; + inputs["displayName"] = undefined /*out*/; + inputs["exemptionCategory"] = undefined /*out*/; + inputs["expiresOn"] = undefined /*out*/; + inputs["metadata"] = undefined /*out*/; + inputs["name"] = undefined /*out*/; + inputs["policyAssignmentId"] = undefined /*out*/; + inputs["policyDefinitionReferenceIds"] = undefined /*out*/; + inputs["systemData"] = undefined /*out*/; + inputs["type"] = undefined /*out*/; + } + if (!opts) { + opts = {} + } + + if (!opts.version) { + opts.version = utilities.getVersion(); + } + super(PolicyExemption.__pulumiType, name, inputs, opts); + } +} + +/** + * The set of arguments for constructing a PolicyExemption resource. + */ +export interface PolicyExemptionArgs { + /** + * The description of the policy exemption. + */ + readonly description?: pulumi.Input; + /** + * The display name of the policy exemption. + */ + readonly displayName?: pulumi.Input; + /** + * The policy exemption category. Possible values are Waiver and Mitigated. + */ + readonly exemptionCategory: pulumi.Input; + /** + * The expiration date and time (in UTC ISO 8601 format yyyy-MM-ddTHH:mm:ssZ) of the policy exemption. + */ + readonly expiresOn?: pulumi.Input; + /** + * The policy exemption metadata. Metadata is an open ended object and is typically a collection of key value pairs. + */ + readonly metadata?: pulumi.Input<{[key: string]: any}>; + /** + * The ID of the policy assignment that is being exempted. + */ + readonly policyAssignmentId: pulumi.Input; + /** + * The policy definition reference ID list when the associated policy assignment is an assignment of a policy set definition. + */ + readonly policyDefinitionReferenceIds?: pulumi.Input[]>; + /** + * The name of the policy exemption to delete. + */ + readonly policyExemptionName: pulumi.Input; + /** + * The scope of the policy exemption. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' + */ + readonly scope: pulumi.Input; +} diff --git a/sdk/nodejs/devices/latest/dpsCertificate.ts b/sdk/nodejs/devices/latest/dpsCertificate.ts index 619f20926bff..f563a3beeb65 100644 --- a/sdk/nodejs/devices/latest/dpsCertificate.ts +++ b/sdk/nodejs/devices/latest/dpsCertificate.ts @@ -93,7 +93,7 @@ export class DpsCertificate extends pulumi.CustomResource { if (!opts.version) { opts.version = utilities.getVersion(); } - const aliasOpts = { aliases: [{ type: "azurerm:devices/v20170821preview:DpsCertificate" }, { type: "azurerm:devices/v20171115:DpsCertificate" }, { type: "azurerm:devices/v20180122:DpsCertificate" }, { type: "azurerm:devices/v20200101:DpsCertificate" }] }; + const aliasOpts = { aliases: [{ type: "azurerm:devices/v20170821preview:DpsCertificate" }, { type: "azurerm:devices/v20171115:DpsCertificate" }, { type: "azurerm:devices/v20180122:DpsCertificate" }, { type: "azurerm:devices/v20200101:DpsCertificate" }, { type: "azurerm:devices/v20200301:DpsCertificate" }] }; opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; super(DpsCertificate.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/devices/latest/getIotDpsResourcePrivateEndpointConnection.ts b/sdk/nodejs/devices/latest/getIotDpsResourcePrivateEndpointConnection.ts new file mode 100644 index 000000000000..990aafcb9d91 --- /dev/null +++ b/sdk/nodejs/devices/latest/getIotDpsResourcePrivateEndpointConnection.ts @@ -0,0 +1,55 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as inputs from "../../types/input"; +import * as outputs from "../../types/output"; +import * as utilities from "../../utilities"; + +export function getIotDpsResourcePrivateEndpointConnection(args: GetIotDpsResourcePrivateEndpointConnectionArgs, opts?: pulumi.InvokeOptions): Promise { + if (!opts) { + opts = {} + } + + if (!opts.version) { + opts.version = utilities.getVersion(); + } + return pulumi.runtime.invoke("azurerm:devices/latest:getIotDpsResourcePrivateEndpointConnection", { + "privateEndpointConnectionName": args.privateEndpointConnectionName, + "resourceGroupName": args.resourceGroupName, + "resourceName": args.resourceName, + }, opts); +} + +export interface GetIotDpsResourcePrivateEndpointConnectionArgs { + /** + * The name of the private endpoint connection + */ + readonly privateEndpointConnectionName: string; + /** + * The name of the resource group that contains the provisioning service. + */ + readonly resourceGroupName: string; + /** + * The name of the provisioning service. + */ + readonly resourceName: string; +} + +/** + * The private endpoint connection of a provisioning service + */ +export interface GetIotDpsResourcePrivateEndpointConnectionResult { + /** + * The resource name. + */ + readonly name: string; + /** + * The properties of a private endpoint connection + */ + readonly properties: outputs.devices.latest.PrivateEndpointConnectionPropertiesResponse; + /** + * The resource type. + */ + readonly type: string; +} diff --git a/sdk/nodejs/devices/latest/index.ts b/sdk/nodejs/devices/latest/index.ts index a1b286909eb6..4f68f2de5ff4 100644 --- a/sdk/nodejs/devices/latest/index.ts +++ b/sdk/nodejs/devices/latest/index.ts @@ -7,10 +7,12 @@ export * from "./dpsCertificate"; export * from "./getCertificate"; export * from "./getDpsCertificate"; export * from "./getIotDpsResource"; +export * from "./getIotDpsResourcePrivateEndpointConnection"; export * from "./getIotHubResource"; export * from "./getIotHubResourceEventHubConsumerGroup"; export * from "./getPrivateEndpointConnection"; export * from "./iotDpsResource"; +export * from "./iotDpsResourcePrivateEndpointConnection"; export * from "./iotHubResource"; export * from "./iotHubResourceEventHubConsumerGroup"; export * from "./listIotDpsResourceKeys"; diff --git a/sdk/nodejs/devices/latest/iotDpsResource.ts b/sdk/nodejs/devices/latest/iotDpsResource.ts index f5f71fdb499f..76c71626e619 100644 --- a/sdk/nodejs/devices/latest/iotDpsResource.ts +++ b/sdk/nodejs/devices/latest/iotDpsResource.ts @@ -115,7 +115,7 @@ export class IotDpsResource extends pulumi.CustomResource { if (!opts.version) { opts.version = utilities.getVersion(); } - const aliasOpts = { aliases: [{ type: "azurerm:devices/v20170821preview:IotDpsResource" }, { type: "azurerm:devices/v20171115:IotDpsResource" }, { type: "azurerm:devices/v20180122:IotDpsResource" }, { type: "azurerm:devices/v20200101:IotDpsResource" }] }; + const aliasOpts = { aliases: [{ type: "azurerm:devices/v20170821preview:IotDpsResource" }, { type: "azurerm:devices/v20171115:IotDpsResource" }, { type: "azurerm:devices/v20180122:IotDpsResource" }, { type: "azurerm:devices/v20200101:IotDpsResource" }, { type: "azurerm:devices/v20200301:IotDpsResource" }] }; opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; super(IotDpsResource.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/devices/latest/iotDpsResourcePrivateEndpointConnection.ts b/sdk/nodejs/devices/latest/iotDpsResourcePrivateEndpointConnection.ts new file mode 100644 index 000000000000..4182adcf6e90 --- /dev/null +++ b/sdk/nodejs/devices/latest/iotDpsResourcePrivateEndpointConnection.ts @@ -0,0 +1,118 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as inputs from "../../types/input"; +import * as outputs from "../../types/output"; +import * as utilities from "../../utilities"; + +/** + * The private endpoint connection of a provisioning service + */ +export class IotDpsResourcePrivateEndpointConnection extends pulumi.CustomResource { + /** + * Get an existing IotDpsResourcePrivateEndpointConnection resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, opts?: pulumi.CustomResourceOptions): IotDpsResourcePrivateEndpointConnection { + return new IotDpsResourcePrivateEndpointConnection(name, undefined as any, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'azurerm:devices/latest:IotDpsResourcePrivateEndpointConnection'; + + /** + * Returns true if the given object is an instance of IotDpsResourcePrivateEndpointConnection. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is IotDpsResourcePrivateEndpointConnection { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === IotDpsResourcePrivateEndpointConnection.__pulumiType; + } + + /** + * The resource name. + */ + public /*out*/ readonly name!: pulumi.Output; + /** + * The properties of a private endpoint connection + */ + public readonly properties!: pulumi.Output; + /** + * The resource type. + */ + public /*out*/ readonly type!: pulumi.Output; + + /** + * Create a IotDpsResourcePrivateEndpointConnection resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: IotDpsResourcePrivateEndpointConnectionArgs, opts?: pulumi.CustomResourceOptions) { + let inputs: pulumi.Inputs = {}; + if (!(opts && opts.id)) { + if (!args || args.privateEndpointConnectionName === undefined) { + throw new Error("Missing required property 'privateEndpointConnectionName'"); + } + if (!args || args.properties === undefined) { + throw new Error("Missing required property 'properties'"); + } + if (!args || args.resourceGroupName === undefined) { + throw new Error("Missing required property 'resourceGroupName'"); + } + if (!args || args.resourceName === undefined) { + throw new Error("Missing required property 'resourceName'"); + } + inputs["privateEndpointConnectionName"] = args ? args.privateEndpointConnectionName : undefined; + inputs["properties"] = args ? args.properties : undefined; + inputs["resourceGroupName"] = args ? args.resourceGroupName : undefined; + inputs["resourceName"] = args ? args.resourceName : undefined; + inputs["name"] = undefined /*out*/; + inputs["type"] = undefined /*out*/; + } else { + inputs["name"] = undefined /*out*/; + inputs["properties"] = undefined /*out*/; + inputs["type"] = undefined /*out*/; + } + if (!opts) { + opts = {} + } + + if (!opts.version) { + opts.version = utilities.getVersion(); + } + const aliasOpts = { aliases: [{ type: "azurerm:devices/v20200301:IotDpsResourcePrivateEndpointConnection" }] }; + opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + super(IotDpsResourcePrivateEndpointConnection.__pulumiType, name, inputs, opts); + } +} + +/** + * The set of arguments for constructing a IotDpsResourcePrivateEndpointConnection resource. + */ +export interface IotDpsResourcePrivateEndpointConnectionArgs { + /** + * The name of the private endpoint connection + */ + readonly privateEndpointConnectionName: pulumi.Input; + /** + * The properties of a private endpoint connection + */ + readonly properties: pulumi.Input; + /** + * The name of the resource group that contains the provisioning service. + */ + readonly resourceGroupName: pulumi.Input; + /** + * The name of the provisioning service. + */ + readonly resourceName: pulumi.Input; +} diff --git a/sdk/nodejs/devices/v20170821preview/dpsCertificate.ts b/sdk/nodejs/devices/v20170821preview/dpsCertificate.ts index 1765cac1c75b..e874fe731741 100644 --- a/sdk/nodejs/devices/v20170821preview/dpsCertificate.ts +++ b/sdk/nodejs/devices/v20170821preview/dpsCertificate.ts @@ -93,7 +93,7 @@ export class DpsCertificate extends pulumi.CustomResource { if (!opts.version) { opts.version = utilities.getVersion(); } - const aliasOpts = { aliases: [{ type: "azurerm:devices/latest:DpsCertificate" }, { type: "azurerm:devices/v20171115:DpsCertificate" }, { type: "azurerm:devices/v20180122:DpsCertificate" }, { type: "azurerm:devices/v20200101:DpsCertificate" }] }; + const aliasOpts = { aliases: [{ type: "azurerm:devices/latest:DpsCertificate" }, { type: "azurerm:devices/v20171115:DpsCertificate" }, { type: "azurerm:devices/v20180122:DpsCertificate" }, { type: "azurerm:devices/v20200101:DpsCertificate" }, { type: "azurerm:devices/v20200301:DpsCertificate" }] }; opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; super(DpsCertificate.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/devices/v20170821preview/iotDpsResource.ts b/sdk/nodejs/devices/v20170821preview/iotDpsResource.ts index b1664e622812..eb593a75d8bf 100644 --- a/sdk/nodejs/devices/v20170821preview/iotDpsResource.ts +++ b/sdk/nodejs/devices/v20170821preview/iotDpsResource.ts @@ -112,7 +112,7 @@ export class IotDpsResource extends pulumi.CustomResource { if (!opts.version) { opts.version = utilities.getVersion(); } - const aliasOpts = { aliases: [{ type: "azurerm:devices/latest:IotDpsResource" }, { type: "azurerm:devices/v20171115:IotDpsResource" }, { type: "azurerm:devices/v20180122:IotDpsResource" }, { type: "azurerm:devices/v20200101:IotDpsResource" }] }; + const aliasOpts = { aliases: [{ type: "azurerm:devices/latest:IotDpsResource" }, { type: "azurerm:devices/v20171115:IotDpsResource" }, { type: "azurerm:devices/v20180122:IotDpsResource" }, { type: "azurerm:devices/v20200101:IotDpsResource" }, { type: "azurerm:devices/v20200301:IotDpsResource" }] }; opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; super(IotDpsResource.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/devices/v20171115/dpsCertificate.ts b/sdk/nodejs/devices/v20171115/dpsCertificate.ts index 98447271640a..c338b6be47cc 100644 --- a/sdk/nodejs/devices/v20171115/dpsCertificate.ts +++ b/sdk/nodejs/devices/v20171115/dpsCertificate.ts @@ -93,7 +93,7 @@ export class DpsCertificate extends pulumi.CustomResource { if (!opts.version) { opts.version = utilities.getVersion(); } - const aliasOpts = { aliases: [{ type: "azurerm:devices/latest:DpsCertificate" }, { type: "azurerm:devices/v20170821preview:DpsCertificate" }, { type: "azurerm:devices/v20180122:DpsCertificate" }, { type: "azurerm:devices/v20200101:DpsCertificate" }] }; + const aliasOpts = { aliases: [{ type: "azurerm:devices/latest:DpsCertificate" }, { type: "azurerm:devices/v20170821preview:DpsCertificate" }, { type: "azurerm:devices/v20180122:DpsCertificate" }, { type: "azurerm:devices/v20200101:DpsCertificate" }, { type: "azurerm:devices/v20200301:DpsCertificate" }] }; opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; super(DpsCertificate.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/devices/v20171115/iotDpsResource.ts b/sdk/nodejs/devices/v20171115/iotDpsResource.ts index 6abf85fab6b9..1159768e07a1 100644 --- a/sdk/nodejs/devices/v20171115/iotDpsResource.ts +++ b/sdk/nodejs/devices/v20171115/iotDpsResource.ts @@ -115,7 +115,7 @@ export class IotDpsResource extends pulumi.CustomResource { if (!opts.version) { opts.version = utilities.getVersion(); } - const aliasOpts = { aliases: [{ type: "azurerm:devices/latest:IotDpsResource" }, { type: "azurerm:devices/v20170821preview:IotDpsResource" }, { type: "azurerm:devices/v20180122:IotDpsResource" }, { type: "azurerm:devices/v20200101:IotDpsResource" }] }; + const aliasOpts = { aliases: [{ type: "azurerm:devices/latest:IotDpsResource" }, { type: "azurerm:devices/v20170821preview:IotDpsResource" }, { type: "azurerm:devices/v20180122:IotDpsResource" }, { type: "azurerm:devices/v20200101:IotDpsResource" }, { type: "azurerm:devices/v20200301:IotDpsResource" }] }; opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; super(IotDpsResource.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/devices/v20180122/dpsCertificate.ts b/sdk/nodejs/devices/v20180122/dpsCertificate.ts index 6b5440ae0806..19a2f1e336d4 100644 --- a/sdk/nodejs/devices/v20180122/dpsCertificate.ts +++ b/sdk/nodejs/devices/v20180122/dpsCertificate.ts @@ -93,7 +93,7 @@ export class DpsCertificate extends pulumi.CustomResource { if (!opts.version) { opts.version = utilities.getVersion(); } - const aliasOpts = { aliases: [{ type: "azurerm:devices/latest:DpsCertificate" }, { type: "azurerm:devices/v20170821preview:DpsCertificate" }, { type: "azurerm:devices/v20171115:DpsCertificate" }, { type: "azurerm:devices/v20200101:DpsCertificate" }] }; + const aliasOpts = { aliases: [{ type: "azurerm:devices/latest:DpsCertificate" }, { type: "azurerm:devices/v20170821preview:DpsCertificate" }, { type: "azurerm:devices/v20171115:DpsCertificate" }, { type: "azurerm:devices/v20200101:DpsCertificate" }, { type: "azurerm:devices/v20200301:DpsCertificate" }] }; opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; super(DpsCertificate.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/devices/v20180122/iotDpsResource.ts b/sdk/nodejs/devices/v20180122/iotDpsResource.ts index 43925732b864..2e37236dc40e 100644 --- a/sdk/nodejs/devices/v20180122/iotDpsResource.ts +++ b/sdk/nodejs/devices/v20180122/iotDpsResource.ts @@ -115,7 +115,7 @@ export class IotDpsResource extends pulumi.CustomResource { if (!opts.version) { opts.version = utilities.getVersion(); } - const aliasOpts = { aliases: [{ type: "azurerm:devices/latest:IotDpsResource" }, { type: "azurerm:devices/v20170821preview:IotDpsResource" }, { type: "azurerm:devices/v20171115:IotDpsResource" }, { type: "azurerm:devices/v20200101:IotDpsResource" }] }; + const aliasOpts = { aliases: [{ type: "azurerm:devices/latest:IotDpsResource" }, { type: "azurerm:devices/v20170821preview:IotDpsResource" }, { type: "azurerm:devices/v20171115:IotDpsResource" }, { type: "azurerm:devices/v20200101:IotDpsResource" }, { type: "azurerm:devices/v20200301:IotDpsResource" }] }; opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; super(IotDpsResource.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/devices/v20200101/dpsCertificate.ts b/sdk/nodejs/devices/v20200101/dpsCertificate.ts index 68bb8f5d3809..0ef57f9b09b1 100644 --- a/sdk/nodejs/devices/v20200101/dpsCertificate.ts +++ b/sdk/nodejs/devices/v20200101/dpsCertificate.ts @@ -93,7 +93,7 @@ export class DpsCertificate extends pulumi.CustomResource { if (!opts.version) { opts.version = utilities.getVersion(); } - const aliasOpts = { aliases: [{ type: "azurerm:devices/latest:DpsCertificate" }, { type: "azurerm:devices/v20170821preview:DpsCertificate" }, { type: "azurerm:devices/v20171115:DpsCertificate" }, { type: "azurerm:devices/v20180122:DpsCertificate" }] }; + const aliasOpts = { aliases: [{ type: "azurerm:devices/latest:DpsCertificate" }, { type: "azurerm:devices/v20170821preview:DpsCertificate" }, { type: "azurerm:devices/v20171115:DpsCertificate" }, { type: "azurerm:devices/v20180122:DpsCertificate" }, { type: "azurerm:devices/v20200301:DpsCertificate" }] }; opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; super(DpsCertificate.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/devices/v20200101/iotDpsResource.ts b/sdk/nodejs/devices/v20200101/iotDpsResource.ts index b806bbb73ad7..10dd16baa62e 100644 --- a/sdk/nodejs/devices/v20200101/iotDpsResource.ts +++ b/sdk/nodejs/devices/v20200101/iotDpsResource.ts @@ -115,7 +115,7 @@ export class IotDpsResource extends pulumi.CustomResource { if (!opts.version) { opts.version = utilities.getVersion(); } - const aliasOpts = { aliases: [{ type: "azurerm:devices/latest:IotDpsResource" }, { type: "azurerm:devices/v20170821preview:IotDpsResource" }, { type: "azurerm:devices/v20171115:IotDpsResource" }, { type: "azurerm:devices/v20180122:IotDpsResource" }] }; + const aliasOpts = { aliases: [{ type: "azurerm:devices/latest:IotDpsResource" }, { type: "azurerm:devices/v20170821preview:IotDpsResource" }, { type: "azurerm:devices/v20171115:IotDpsResource" }, { type: "azurerm:devices/v20180122:IotDpsResource" }, { type: "azurerm:devices/v20200301:IotDpsResource" }] }; opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; super(IotDpsResource.__pulumiType, name, inputs, opts); } diff --git a/sdk/nodejs/devices/v20200301/dpsCertificate.ts b/sdk/nodejs/devices/v20200301/dpsCertificate.ts new file mode 100644 index 000000000000..066bd31a53c4 --- /dev/null +++ b/sdk/nodejs/devices/v20200301/dpsCertificate.ts @@ -0,0 +1,122 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as inputs from "../../types/input"; +import * as outputs from "../../types/output"; +import * as utilities from "../../utilities"; + +/** + * The X509 Certificate. + */ +export class DpsCertificate extends pulumi.CustomResource { + /** + * Get an existing DpsCertificate resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, opts?: pulumi.CustomResourceOptions): DpsCertificate { + return new DpsCertificate(name, undefined as any, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'azurerm:devices/v20200301:DpsCertificate'; + + /** + * Returns true if the given object is an instance of DpsCertificate. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is DpsCertificate { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === DpsCertificate.__pulumiType; + } + + /** + * The entity tag. + */ + public /*out*/ readonly etag!: pulumi.Output; + /** + * The name of the certificate. + */ + public /*out*/ readonly name!: pulumi.Output; + /** + * properties of a certificate + */ + public /*out*/ readonly properties!: pulumi.Output; + /** + * The resource type. + */ + public /*out*/ readonly type!: pulumi.Output; + + /** + * Create a DpsCertificate resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: DpsCertificateArgs, opts?: pulumi.CustomResourceOptions) { + let inputs: pulumi.Inputs = {}; + if (!(opts && opts.id)) { + if (!args || args.certificateName === undefined) { + throw new Error("Missing required property 'certificateName'"); + } + if (!args || args.provisioningServiceName === undefined) { + throw new Error("Missing required property 'provisioningServiceName'"); + } + if (!args || args.resourceGroupName === undefined) { + throw new Error("Missing required property 'resourceGroupName'"); + } + inputs["certificate"] = args ? args.certificate : undefined; + inputs["certificateName"] = args ? args.certificateName : undefined; + inputs["provisioningServiceName"] = args ? args.provisioningServiceName : undefined; + inputs["resourceGroupName"] = args ? args.resourceGroupName : undefined; + inputs["etag"] = undefined /*out*/; + inputs["name"] = undefined /*out*/; + inputs["properties"] = undefined /*out*/; + inputs["type"] = undefined /*out*/; + } else { + inputs["etag"] = undefined /*out*/; + inputs["name"] = undefined /*out*/; + inputs["properties"] = undefined /*out*/; + inputs["type"] = undefined /*out*/; + } + if (!opts) { + opts = {} + } + + if (!opts.version) { + opts.version = utilities.getVersion(); + } + const aliasOpts = { aliases: [{ type: "azurerm:devices/latest:DpsCertificate" }, { type: "azurerm:devices/v20170821preview:DpsCertificate" }, { type: "azurerm:devices/v20171115:DpsCertificate" }, { type: "azurerm:devices/v20180122:DpsCertificate" }, { type: "azurerm:devices/v20200101:DpsCertificate" }] }; + opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + super(DpsCertificate.__pulumiType, name, inputs, opts); + } +} + +/** + * The set of arguments for constructing a DpsCertificate resource. + */ +export interface DpsCertificateArgs { + /** + * Base-64 representation of the X509 leaf certificate .cer file or just .pem file content. + */ + readonly certificate?: pulumi.Input; + /** + * The name of the certificate create or update. + */ + readonly certificateName: pulumi.Input; + /** + * The name of the provisioning service. + */ + readonly provisioningServiceName: pulumi.Input; + /** + * Resource group identifier. + */ + readonly resourceGroupName: pulumi.Input; +} diff --git a/sdk/nodejs/devices/v20200301/getDpsCertificate.ts b/sdk/nodejs/devices/v20200301/getDpsCertificate.ts new file mode 100644 index 000000000000..df38c95a94e5 --- /dev/null +++ b/sdk/nodejs/devices/v20200301/getDpsCertificate.ts @@ -0,0 +1,59 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as inputs from "../../types/input"; +import * as outputs from "../../types/output"; +import * as utilities from "../../utilities"; + +export function getDpsCertificate(args: GetDpsCertificateArgs, opts?: pulumi.InvokeOptions): Promise { + if (!opts) { + opts = {} + } + + if (!opts.version) { + opts.version = utilities.getVersion(); + } + return pulumi.runtime.invoke("azurerm:devices/v20200301:getDpsCertificate", { + "certificateName": args.certificateName, + "provisioningServiceName": args.provisioningServiceName, + "resourceGroupName": args.resourceGroupName, + }, opts); +} + +export interface GetDpsCertificateArgs { + /** + * Name of the certificate to retrieve. + */ + readonly certificateName: string; + /** + * Name of the provisioning service the certificate is associated with. + */ + readonly provisioningServiceName: string; + /** + * Resource group identifier. + */ + readonly resourceGroupName: string; +} + +/** + * The X509 Certificate. + */ +export interface GetDpsCertificateResult { + /** + * The entity tag. + */ + readonly etag: string; + /** + * The name of the certificate. + */ + readonly name: string; + /** + * properties of a certificate + */ + readonly properties: outputs.devices.v20200301.CertificatePropertiesResponse; + /** + * The resource type. + */ + readonly type: string; +} diff --git a/sdk/nodejs/devices/v20200301/getIotDpsResource.ts b/sdk/nodejs/devices/v20200301/getIotDpsResource.ts new file mode 100644 index 000000000000..c15cfb1021a2 --- /dev/null +++ b/sdk/nodejs/devices/v20200301/getIotDpsResource.ts @@ -0,0 +1,66 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as inputs from "../../types/input"; +import * as outputs from "../../types/output"; +import * as utilities from "../../utilities"; + +export function getIotDpsResource(args: GetIotDpsResourceArgs, opts?: pulumi.InvokeOptions): Promise { + if (!opts) { + opts = {} + } + + if (!opts.version) { + opts.version = utilities.getVersion(); + } + return pulumi.runtime.invoke("azurerm:devices/v20200301:getIotDpsResource", { + "provisioningServiceName": args.provisioningServiceName, + "resourceGroupName": args.resourceGroupName, + }, opts); +} + +export interface GetIotDpsResourceArgs { + /** + * Name of the provisioning service to retrieve. + */ + readonly provisioningServiceName: string; + /** + * Resource group name. + */ + readonly resourceGroupName: string; +} + +/** + * The description of the provisioning service. + */ +export interface GetIotDpsResourceResult { + /** + * The Etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal ETag convention. + */ + readonly etag?: string; + /** + * The resource location. + */ + readonly location: string; + /** + * The resource name. + */ + readonly name: string; + /** + * Service specific properties for a provisioning service + */ + readonly properties: outputs.devices.v20200301.IotDpsPropertiesDescriptionResponse; + /** + * Sku info for a provisioning Service. + */ + readonly sku: outputs.devices.v20200301.IotDpsSkuInfoResponse; + /** + * The resource tags. + */ + readonly tags?: {[key: string]: string}; + /** + * The resource type. + */ + readonly type: string; +} diff --git a/sdk/nodejs/devices/v20200301/getIotDpsResourcePrivateEndpointConnection.ts b/sdk/nodejs/devices/v20200301/getIotDpsResourcePrivateEndpointConnection.ts new file mode 100644 index 000000000000..a1be142442fe --- /dev/null +++ b/sdk/nodejs/devices/v20200301/getIotDpsResourcePrivateEndpointConnection.ts @@ -0,0 +1,55 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as inputs from "../../types/input"; +import * as outputs from "../../types/output"; +import * as utilities from "../../utilities"; + +export function getIotDpsResourcePrivateEndpointConnection(args: GetIotDpsResourcePrivateEndpointConnectionArgs, opts?: pulumi.InvokeOptions): Promise { + if (!opts) { + opts = {} + } + + if (!opts.version) { + opts.version = utilities.getVersion(); + } + return pulumi.runtime.invoke("azurerm:devices/v20200301:getIotDpsResourcePrivateEndpointConnection", { + "privateEndpointConnectionName": args.privateEndpointConnectionName, + "resourceGroupName": args.resourceGroupName, + "resourceName": args.resourceName, + }, opts); +} + +export interface GetIotDpsResourcePrivateEndpointConnectionArgs { + /** + * The name of the private endpoint connection + */ + readonly privateEndpointConnectionName: string; + /** + * The name of the resource group that contains the provisioning service. + */ + readonly resourceGroupName: string; + /** + * The name of the provisioning service. + */ + readonly resourceName: string; +} + +/** + * The private endpoint connection of a provisioning service + */ +export interface GetIotDpsResourcePrivateEndpointConnectionResult { + /** + * The resource name. + */ + readonly name: string; + /** + * The properties of a private endpoint connection + */ + readonly properties: outputs.devices.v20200301.PrivateEndpointConnectionPropertiesResponse; + /** + * The resource type. + */ + readonly type: string; +} diff --git a/sdk/nodejs/devices/v20200301/index.ts b/sdk/nodejs/devices/v20200301/index.ts index 8ce8965a78ad..4f68f2de5ff4 100644 --- a/sdk/nodejs/devices/v20200301/index.ts +++ b/sdk/nodejs/devices/v20200301/index.ts @@ -3,12 +3,20 @@ // Export members: export * from "./certificate"; +export * from "./dpsCertificate"; export * from "./getCertificate"; +export * from "./getDpsCertificate"; +export * from "./getIotDpsResource"; +export * from "./getIotDpsResourcePrivateEndpointConnection"; export * from "./getIotHubResource"; export * from "./getIotHubResourceEventHubConsumerGroup"; export * from "./getPrivateEndpointConnection"; +export * from "./iotDpsResource"; +export * from "./iotDpsResourcePrivateEndpointConnection"; export * from "./iotHubResource"; export * from "./iotHubResourceEventHubConsumerGroup"; +export * from "./listIotDpsResourceKeys"; +export * from "./listIotDpsResourceKeysForKeyName"; export * from "./listIotHubResourceKeys"; export * from "./listIotHubResourceKeysForKeyName"; export * from "./privateEndpointConnection"; diff --git a/sdk/nodejs/devices/v20200301/iotDpsResource.ts b/sdk/nodejs/devices/v20200301/iotDpsResource.ts new file mode 100644 index 000000000000..0ccf2cc730ae --- /dev/null +++ b/sdk/nodejs/devices/v20200301/iotDpsResource.ts @@ -0,0 +1,156 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as inputs from "../../types/input"; +import * as outputs from "../../types/output"; +import * as utilities from "../../utilities"; + +/** + * The description of the provisioning service. + */ +export class IotDpsResource extends pulumi.CustomResource { + /** + * Get an existing IotDpsResource resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, opts?: pulumi.CustomResourceOptions): IotDpsResource { + return new IotDpsResource(name, undefined as any, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'azurerm:devices/v20200301:IotDpsResource'; + + /** + * Returns true if the given object is an instance of IotDpsResource. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is IotDpsResource { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === IotDpsResource.__pulumiType; + } + + /** + * The Etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal ETag convention. + */ + public readonly etag!: pulumi.Output; + /** + * The resource location. + */ + public readonly location!: pulumi.Output; + /** + * The resource name. + */ + public /*out*/ readonly name!: pulumi.Output; + /** + * Service specific properties for a provisioning service + */ + public readonly properties!: pulumi.Output; + /** + * Sku info for a provisioning Service. + */ + public readonly sku!: pulumi.Output; + /** + * The resource tags. + */ + public readonly tags!: pulumi.Output<{[key: string]: string} | undefined>; + /** + * The resource type. + */ + public /*out*/ readonly type!: pulumi.Output; + + /** + * Create a IotDpsResource resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: IotDpsResourceArgs, opts?: pulumi.CustomResourceOptions) { + let inputs: pulumi.Inputs = {}; + if (!(opts && opts.id)) { + if (!args || args.location === undefined) { + throw new Error("Missing required property 'location'"); + } + if (!args || args.properties === undefined) { + throw new Error("Missing required property 'properties'"); + } + if (!args || args.provisioningServiceName === undefined) { + throw new Error("Missing required property 'provisioningServiceName'"); + } + if (!args || args.resourceGroupName === undefined) { + throw new Error("Missing required property 'resourceGroupName'"); + } + if (!args || args.sku === undefined) { + throw new Error("Missing required property 'sku'"); + } + inputs["etag"] = args ? args.etag : undefined; + inputs["location"] = args ? args.location : undefined; + inputs["properties"] = args ? args.properties : undefined; + inputs["provisioningServiceName"] = args ? args.provisioningServiceName : undefined; + inputs["resourceGroupName"] = args ? args.resourceGroupName : undefined; + inputs["sku"] = args ? args.sku : undefined; + inputs["tags"] = args ? args.tags : undefined; + inputs["name"] = undefined /*out*/; + inputs["type"] = undefined /*out*/; + } else { + inputs["etag"] = undefined /*out*/; + inputs["location"] = undefined /*out*/; + inputs["name"] = undefined /*out*/; + inputs["properties"] = undefined /*out*/; + inputs["sku"] = undefined /*out*/; + inputs["tags"] = undefined /*out*/; + inputs["type"] = undefined /*out*/; + } + if (!opts) { + opts = {} + } + + if (!opts.version) { + opts.version = utilities.getVersion(); + } + const aliasOpts = { aliases: [{ type: "azurerm:devices/latest:IotDpsResource" }, { type: "azurerm:devices/v20170821preview:IotDpsResource" }, { type: "azurerm:devices/v20171115:IotDpsResource" }, { type: "azurerm:devices/v20180122:IotDpsResource" }, { type: "azurerm:devices/v20200101:IotDpsResource" }] }; + opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + super(IotDpsResource.__pulumiType, name, inputs, opts); + } +} + +/** + * The set of arguments for constructing a IotDpsResource resource. + */ +export interface IotDpsResourceArgs { + /** + * The Etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal ETag convention. + */ + readonly etag?: pulumi.Input; + /** + * The resource location. + */ + readonly location: pulumi.Input; + /** + * Service specific properties for a provisioning service + */ + readonly properties: pulumi.Input; + /** + * Name of provisioning service to create or update. + */ + readonly provisioningServiceName: pulumi.Input; + /** + * Resource group identifier. + */ + readonly resourceGroupName: pulumi.Input; + /** + * Sku info for a provisioning Service. + */ + readonly sku: pulumi.Input; + /** + * The resource tags. + */ + readonly tags?: pulumi.Input<{[key: string]: pulumi.Input}>; +} diff --git a/sdk/nodejs/devices/v20200301/iotDpsResourcePrivateEndpointConnection.ts b/sdk/nodejs/devices/v20200301/iotDpsResourcePrivateEndpointConnection.ts new file mode 100644 index 000000000000..cca65a8bcf19 --- /dev/null +++ b/sdk/nodejs/devices/v20200301/iotDpsResourcePrivateEndpointConnection.ts @@ -0,0 +1,118 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as inputs from "../../types/input"; +import * as outputs from "../../types/output"; +import * as utilities from "../../utilities"; + +/** + * The private endpoint connection of a provisioning service + */ +export class IotDpsResourcePrivateEndpointConnection extends pulumi.CustomResource { + /** + * Get an existing IotDpsResourcePrivateEndpointConnection resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, opts?: pulumi.CustomResourceOptions): IotDpsResourcePrivateEndpointConnection { + return new IotDpsResourcePrivateEndpointConnection(name, undefined as any, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'azurerm:devices/v20200301:IotDpsResourcePrivateEndpointConnection'; + + /** + * Returns true if the given object is an instance of IotDpsResourcePrivateEndpointConnection. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is IotDpsResourcePrivateEndpointConnection { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === IotDpsResourcePrivateEndpointConnection.__pulumiType; + } + + /** + * The resource name. + */ + public /*out*/ readonly name!: pulumi.Output; + /** + * The properties of a private endpoint connection + */ + public readonly properties!: pulumi.Output; + /** + * The resource type. + */ + public /*out*/ readonly type!: pulumi.Output; + + /** + * Create a IotDpsResourcePrivateEndpointConnection resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: IotDpsResourcePrivateEndpointConnectionArgs, opts?: pulumi.CustomResourceOptions) { + let inputs: pulumi.Inputs = {}; + if (!(opts && opts.id)) { + if (!args || args.privateEndpointConnectionName === undefined) { + throw new Error("Missing required property 'privateEndpointConnectionName'"); + } + if (!args || args.properties === undefined) { + throw new Error("Missing required property 'properties'"); + } + if (!args || args.resourceGroupName === undefined) { + throw new Error("Missing required property 'resourceGroupName'"); + } + if (!args || args.resourceName === undefined) { + throw new Error("Missing required property 'resourceName'"); + } + inputs["privateEndpointConnectionName"] = args ? args.privateEndpointConnectionName : undefined; + inputs["properties"] = args ? args.properties : undefined; + inputs["resourceGroupName"] = args ? args.resourceGroupName : undefined; + inputs["resourceName"] = args ? args.resourceName : undefined; + inputs["name"] = undefined /*out*/; + inputs["type"] = undefined /*out*/; + } else { + inputs["name"] = undefined /*out*/; + inputs["properties"] = undefined /*out*/; + inputs["type"] = undefined /*out*/; + } + if (!opts) { + opts = {} + } + + if (!opts.version) { + opts.version = utilities.getVersion(); + } + const aliasOpts = { aliases: [{ type: "azurerm:devices/latest:IotDpsResourcePrivateEndpointConnection" }] }; + opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + super(IotDpsResourcePrivateEndpointConnection.__pulumiType, name, inputs, opts); + } +} + +/** + * The set of arguments for constructing a IotDpsResourcePrivateEndpointConnection resource. + */ +export interface IotDpsResourcePrivateEndpointConnectionArgs { + /** + * The name of the private endpoint connection + */ + readonly privateEndpointConnectionName: pulumi.Input; + /** + * The properties of a private endpoint connection + */ + readonly properties: pulumi.Input; + /** + * The name of the resource group that contains the provisioning service. + */ + readonly resourceGroupName: pulumi.Input; + /** + * The name of the provisioning service. + */ + readonly resourceName: pulumi.Input; +} diff --git a/sdk/nodejs/devices/v20200301/listIotDpsResourceKeys.ts b/sdk/nodejs/devices/v20200301/listIotDpsResourceKeys.ts new file mode 100644 index 000000000000..ab730a814f03 --- /dev/null +++ b/sdk/nodejs/devices/v20200301/listIotDpsResourceKeys.ts @@ -0,0 +1,46 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as inputs from "../../types/input"; +import * as outputs from "../../types/output"; +import * as utilities from "../../utilities"; + +export function listIotDpsResourceKeys(args: ListIotDpsResourceKeysArgs, opts?: pulumi.InvokeOptions): Promise { + if (!opts) { + opts = {} + } + + if (!opts.version) { + opts.version = utilities.getVersion(); + } + return pulumi.runtime.invoke("azurerm:devices/v20200301:listIotDpsResourceKeys", { + "provisioningServiceName": args.provisioningServiceName, + "resourceGroupName": args.resourceGroupName, + }, opts); +} + +export interface ListIotDpsResourceKeysArgs { + /** + * The provisioning service name to get the shared access keys for. + */ + readonly provisioningServiceName: string; + /** + * resource group name + */ + readonly resourceGroupName: string; +} + +/** + * List of shared access keys. + */ +export interface ListIotDpsResourceKeysResult { + /** + * The next link. + */ + readonly nextLink: string; + /** + * The list of shared access policies. + */ + readonly value?: outputs.devices.v20200301.SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponse[]; +} diff --git a/sdk/nodejs/devices/v20200301/listIotDpsResourceKeysForKeyName.ts b/sdk/nodejs/devices/v20200301/listIotDpsResourceKeysForKeyName.ts new file mode 100644 index 000000000000..c4881fefdd82 --- /dev/null +++ b/sdk/nodejs/devices/v20200301/listIotDpsResourceKeysForKeyName.ts @@ -0,0 +1,59 @@ +// *** WARNING: this file was generated by the Pulumi SDK Generator. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as inputs from "../../types/input"; +import * as outputs from "../../types/output"; +import * as utilities from "../../utilities"; + +export function listIotDpsResourceKeysForKeyName(args: ListIotDpsResourceKeysForKeyNameArgs, opts?: pulumi.InvokeOptions): Promise { + if (!opts) { + opts = {} + } + + if (!opts.version) { + opts.version = utilities.getVersion(); + } + return pulumi.runtime.invoke("azurerm:devices/v20200301:listIotDpsResourceKeysForKeyName", { + "keyName": args.keyName, + "provisioningServiceName": args.provisioningServiceName, + "resourceGroupName": args.resourceGroupName, + }, opts); +} + +export interface ListIotDpsResourceKeysForKeyNameArgs { + /** + * Logical key name to get key-values for. + */ + readonly keyName: string; + /** + * Name of the provisioning service. + */ + readonly provisioningServiceName: string; + /** + * The name of the resource group that contains the provisioning service. + */ + readonly resourceGroupName: string; +} + +/** + * Description of the shared access key. + */ +export interface ListIotDpsResourceKeysForKeyNameResult { + /** + * Name of the key. + */ + readonly keyName: string; + /** + * Primary SAS key value. + */ + readonly primaryKey?: string; + /** + * Rights that this key has. + */ + readonly rights: string; + /** + * Secondary SAS key value. + */ + readonly secondaryKey?: string; +} diff --git a/sdk/nodejs/machinelearningservices/latest/getPrivateEndpointConnection.ts b/sdk/nodejs/machinelearningservices/latest/getPrivateEndpointConnection.ts index cc26935e4249..2bacaeeb3749 100644 --- a/sdk/nodejs/machinelearningservices/latest/getPrivateEndpointConnection.ts +++ b/sdk/nodejs/machinelearningservices/latest/getPrivateEndpointConnection.ts @@ -41,15 +41,7 @@ export interface GetPrivateEndpointConnectionArgs { */ export interface GetPrivateEndpointConnectionResult { /** - * The identity of the resource. - */ - readonly identity?: outputs.machinelearningservices.latest.IdentityResponse; - /** - * Specifies the location of the resource. - */ - readonly location?: string; - /** - * Specifies the name of the resource. + * Friendly name of the private endpoint connection. */ readonly name: string; /** @@ -65,15 +57,7 @@ export interface GetPrivateEndpointConnectionResult { */ readonly provisioningState?: string; /** - * The sku of the workspace. - */ - readonly sku?: outputs.machinelearningservices.latest.SkuResponse; - /** - * Contains resource tags defined as key/value pairs. - */ - readonly tags?: {[key: string]: string}; - /** - * Specifies the type of the resource. + * Resource type of private endpoint connection. */ readonly type: string; } diff --git a/sdk/nodejs/machinelearningservices/latest/privateEndpointConnection.ts b/sdk/nodejs/machinelearningservices/latest/privateEndpointConnection.ts index 839b65779d38..8bfe420f3ff7 100644 --- a/sdk/nodejs/machinelearningservices/latest/privateEndpointConnection.ts +++ b/sdk/nodejs/machinelearningservices/latest/privateEndpointConnection.ts @@ -37,15 +37,7 @@ export class PrivateEndpointConnection extends pulumi.CustomResource { } /** - * The identity of the resource. - */ - public readonly identity!: pulumi.Output; - /** - * Specifies the location of the resource. - */ - public readonly location!: pulumi.Output; - /** - * Specifies the name of the resource. + * Friendly name of the private endpoint connection. */ public /*out*/ readonly name!: pulumi.Output; /** @@ -61,15 +53,7 @@ export class PrivateEndpointConnection extends pulumi.CustomResource { */ public readonly provisioningState!: pulumi.Output; /** - * The sku of the workspace. - */ - public readonly sku!: pulumi.Output; - /** - * Contains resource tags defined as key/value pairs. - */ - public readonly tags!: pulumi.Output<{[key: string]: string} | undefined>; - /** - * Specifies the type of the resource. + * Resource type of private endpoint connection. */ public /*out*/ readonly type!: pulumi.Output; @@ -95,27 +79,19 @@ export class PrivateEndpointConnection extends pulumi.CustomResource { if (!args || args.workspaceName === undefined) { throw new Error("Missing required property 'workspaceName'"); } - inputs["identity"] = args ? args.identity : undefined; - inputs["location"] = args ? args.location : undefined; inputs["privateEndpointConnectionName"] = args ? args.privateEndpointConnectionName : undefined; inputs["privateLinkServiceConnectionState"] = args ? args.privateLinkServiceConnectionState : undefined; inputs["provisioningState"] = args ? args.provisioningState : undefined; inputs["resourceGroupName"] = args ? args.resourceGroupName : undefined; - inputs["sku"] = args ? args.sku : undefined; - inputs["tags"] = args ? args.tags : undefined; inputs["workspaceName"] = args ? args.workspaceName : undefined; inputs["name"] = undefined /*out*/; inputs["privateEndpoint"] = undefined /*out*/; inputs["type"] = undefined /*out*/; } else { - inputs["identity"] = undefined /*out*/; - inputs["location"] = undefined /*out*/; inputs["name"] = undefined /*out*/; inputs["privateEndpoint"] = undefined /*out*/; inputs["privateLinkServiceConnectionState"] = undefined /*out*/; inputs["provisioningState"] = undefined /*out*/; - inputs["sku"] = undefined /*out*/; - inputs["tags"] = undefined /*out*/; inputs["type"] = undefined /*out*/; } if (!opts) { @@ -135,14 +111,6 @@ export class PrivateEndpointConnection extends pulumi.CustomResource { * The set of arguments for constructing a PrivateEndpointConnection resource. */ export interface PrivateEndpointConnectionArgs { - /** - * The identity of the resource. - */ - readonly identity?: pulumi.Input; - /** - * Specifies the location of the resource. - */ - readonly location?: pulumi.Input; /** * The name of the private endpoint connection associated with the workspace */ @@ -159,14 +127,6 @@ export interface PrivateEndpointConnectionArgs { * Name of the resource group in which workspace is located. */ readonly resourceGroupName: pulumi.Input; - /** - * The sku of the workspace. - */ - readonly sku?: pulumi.Input; - /** - * Contains resource tags defined as key/value pairs. - */ - readonly tags?: pulumi.Input<{[key: string]: pulumi.Input}>; /** * Name of Azure Machine Learning workspace. */ diff --git a/sdk/nodejs/machinelearningservices/v20200601/getPrivateEndpointConnection.ts b/sdk/nodejs/machinelearningservices/v20200601/getPrivateEndpointConnection.ts index 8feb0e19b566..cacd4d20be3e 100644 --- a/sdk/nodejs/machinelearningservices/v20200601/getPrivateEndpointConnection.ts +++ b/sdk/nodejs/machinelearningservices/v20200601/getPrivateEndpointConnection.ts @@ -41,15 +41,7 @@ export interface GetPrivateEndpointConnectionArgs { */ export interface GetPrivateEndpointConnectionResult { /** - * The identity of the resource. - */ - readonly identity?: outputs.machinelearningservices.v20200601.IdentityResponse; - /** - * Specifies the location of the resource. - */ - readonly location?: string; - /** - * Specifies the name of the resource. + * Friendly name of the private endpoint connection. */ readonly name: string; /** @@ -65,15 +57,7 @@ export interface GetPrivateEndpointConnectionResult { */ readonly provisioningState?: string; /** - * The sku of the workspace. - */ - readonly sku?: outputs.machinelearningservices.v20200601.SkuResponse; - /** - * Contains resource tags defined as key/value pairs. - */ - readonly tags?: {[key: string]: string}; - /** - * Specifies the type of the resource. + * Resource type of private endpoint connection. */ readonly type: string; } diff --git a/sdk/nodejs/machinelearningservices/v20200601/privateEndpointConnection.ts b/sdk/nodejs/machinelearningservices/v20200601/privateEndpointConnection.ts index 6b7559e32a60..fe119b864c65 100644 --- a/sdk/nodejs/machinelearningservices/v20200601/privateEndpointConnection.ts +++ b/sdk/nodejs/machinelearningservices/v20200601/privateEndpointConnection.ts @@ -37,15 +37,7 @@ export class PrivateEndpointConnection extends pulumi.CustomResource { } /** - * The identity of the resource. - */ - public readonly identity!: pulumi.Output; - /** - * Specifies the location of the resource. - */ - public readonly location!: pulumi.Output; - /** - * Specifies the name of the resource. + * Friendly name of the private endpoint connection. */ public /*out*/ readonly name!: pulumi.Output; /** @@ -61,15 +53,7 @@ export class PrivateEndpointConnection extends pulumi.CustomResource { */ public readonly provisioningState!: pulumi.Output; /** - * The sku of the workspace. - */ - public readonly sku!: pulumi.Output; - /** - * Contains resource tags defined as key/value pairs. - */ - public readonly tags!: pulumi.Output<{[key: string]: string} | undefined>; - /** - * Specifies the type of the resource. + * Resource type of private endpoint connection. */ public /*out*/ readonly type!: pulumi.Output; @@ -95,27 +79,19 @@ export class PrivateEndpointConnection extends pulumi.CustomResource { if (!args || args.workspaceName === undefined) { throw new Error("Missing required property 'workspaceName'"); } - inputs["identity"] = args ? args.identity : undefined; - inputs["location"] = args ? args.location : undefined; inputs["privateEndpointConnectionName"] = args ? args.privateEndpointConnectionName : undefined; inputs["privateLinkServiceConnectionState"] = args ? args.privateLinkServiceConnectionState : undefined; inputs["provisioningState"] = args ? args.provisioningState : undefined; inputs["resourceGroupName"] = args ? args.resourceGroupName : undefined; - inputs["sku"] = args ? args.sku : undefined; - inputs["tags"] = args ? args.tags : undefined; inputs["workspaceName"] = args ? args.workspaceName : undefined; inputs["name"] = undefined /*out*/; inputs["privateEndpoint"] = undefined /*out*/; inputs["type"] = undefined /*out*/; } else { - inputs["identity"] = undefined /*out*/; - inputs["location"] = undefined /*out*/; inputs["name"] = undefined /*out*/; inputs["privateEndpoint"] = undefined /*out*/; inputs["privateLinkServiceConnectionState"] = undefined /*out*/; inputs["provisioningState"] = undefined /*out*/; - inputs["sku"] = undefined /*out*/; - inputs["tags"] = undefined /*out*/; inputs["type"] = undefined /*out*/; } if (!opts) { @@ -135,14 +111,6 @@ export class PrivateEndpointConnection extends pulumi.CustomResource { * The set of arguments for constructing a PrivateEndpointConnection resource. */ export interface PrivateEndpointConnectionArgs { - /** - * The identity of the resource. - */ - readonly identity?: pulumi.Input; - /** - * Specifies the location of the resource. - */ - readonly location?: pulumi.Input; /** * The name of the private endpoint connection associated with the workspace */ @@ -159,14 +127,6 @@ export interface PrivateEndpointConnectionArgs { * Name of the resource group in which workspace is located. */ readonly resourceGroupName: pulumi.Input; - /** - * The sku of the workspace. - */ - readonly sku?: pulumi.Input; - /** - * Contains resource tags defined as key/value pairs. - */ - readonly tags?: pulumi.Input<{[key: string]: pulumi.Input}>; /** * Name of Azure Machine Learning workspace. */ diff --git a/sdk/nodejs/tsconfig.json b/sdk/nodejs/tsconfig.json index 6892aa314b20..e07215697962 100644 --- a/sdk/nodejs/tsconfig.json +++ b/sdk/nodejs/tsconfig.json @@ -87,6 +87,9 @@ "alertsmanagement/v20190601/getSmartDetectorAlertRule.ts", "alertsmanagement/v20190601/index.ts", "alertsmanagement/v20190601/smartDetectorAlertRule.ts", + "alertsmanagement/v20200804preview/getHealthAlert.ts", + "alertsmanagement/v20200804preview/healthAlert.ts", + "alertsmanagement/v20200804preview/index.ts", "analysisservices/index.ts", "analysisservices/latest/getServerDetails.ts", "analysisservices/latest/index.ts", @@ -822,6 +825,9 @@ "authorization/v20200401preview/getRoleAssignment.ts", "authorization/v20200401preview/index.ts", "authorization/v20200401preview/roleAssignment.ts", + "authorization/v20200701preview/getPolicyExemption.ts", + "authorization/v20200701preview/index.ts", + "authorization/v20200701preview/policyExemption.ts", "automanage/index.ts", "automanage/v20200630preview/account.ts", "automanage/v20200630preview/configurationProfilePreference.ts", @@ -2839,11 +2845,13 @@ "devices/latest/getCertificate.ts", "devices/latest/getDpsCertificate.ts", "devices/latest/getIotDpsResource.ts", + "devices/latest/getIotDpsResourcePrivateEndpointConnection.ts", "devices/latest/getIotHubResource.ts", "devices/latest/getIotHubResourceEventHubConsumerGroup.ts", "devices/latest/getPrivateEndpointConnection.ts", "devices/latest/index.ts", "devices/latest/iotDpsResource.ts", + "devices/latest/iotDpsResourcePrivateEndpointConnection.ts", "devices/latest/iotHubResource.ts", "devices/latest/iotHubResourceEventHubConsumerGroup.ts", "devices/latest/listIotDpsResourceKeys.ts", @@ -2965,13 +2973,21 @@ "devices/v20200101/listIotDpsResourceKeys.ts", "devices/v20200101/listIotDpsResourceKeysForKeyName.ts", "devices/v20200301/certificate.ts", + "devices/v20200301/dpsCertificate.ts", "devices/v20200301/getCertificate.ts", + "devices/v20200301/getDpsCertificate.ts", + "devices/v20200301/getIotDpsResource.ts", + "devices/v20200301/getIotDpsResourcePrivateEndpointConnection.ts", "devices/v20200301/getIotHubResource.ts", "devices/v20200301/getIotHubResourceEventHubConsumerGroup.ts", "devices/v20200301/getPrivateEndpointConnection.ts", "devices/v20200301/index.ts", + "devices/v20200301/iotDpsResource.ts", + "devices/v20200301/iotDpsResourcePrivateEndpointConnection.ts", "devices/v20200301/iotHubResource.ts", "devices/v20200301/iotHubResourceEventHubConsumerGroup.ts", + "devices/v20200301/listIotDpsResourceKeys.ts", + "devices/v20200301/listIotDpsResourceKeysForKeyName.ts", "devices/v20200301/listIotHubResourceKeys.ts", "devices/v20200301/listIotHubResourceKeysForKeyName.ts", "devices/v20200301/privateEndpointConnection.ts", diff --git a/sdk/nodejs/types/input.ts b/sdk/nodejs/types/input.ts index dbb737d73221..64f48410c59a 100644 --- a/sdk/nodejs/types/input.ts +++ b/sdk/nodejs/types/input.ts @@ -875,6 +875,65 @@ export namespace alertsmanagement { } } + + export namespace v20200804preview { + /** + * An alert action. + */ + export interface HealthAlertAction { + /** + * the id of the action group to use. + */ + actionGroupId?: pulumi.Input; + /** + * The properties of a webhook object. + */ + webHookProperties?: pulumi.Input<{[key: string]: pulumi.Input}>; + } + + /** + * Specifies the resource health alert criteria for a single resource that has multiple metric criteria. + */ + export interface HealthAlertCriteria { + /** + * The list of metric criteria for this 'all of' operation. + */ + allOf?: pulumi.Input[]>; + } + + /** + * Specifies the health state to alert on and the corresponding severity + */ + export interface HealthState { + /** + * Health state + */ + healthStateName: pulumi.Input; + /** + * Severity of alert fired + */ + severity: pulumi.Input; + } + + /** + * Specifies the health alert criteria to alert on. + */ + export interface VmGuestHealthAlertCriterion { + /** + * Name of health monitor on which to define alert + */ + healthMonitorName: pulumi.Input; + /** + * Health states to alert on + */ + healthStates?: pulumi.Input[]>; + /** + * specifies the type of the alert criterion. + */ + namespace: pulumi.Input<"VmGuestHealth">; + } + + } } export namespace analysisservices { @@ -7188,6 +7247,9 @@ export namespace authorization { } } + + export namespace v20200701preview { + } } export namespace automanage { @@ -98437,10 +98499,18 @@ export namespace devices { * The IP filter rules. */ ipFilterRules?: pulumi.Input[]>; + /** + * Private endpoint connections created on this IotHub + */ + privateEndpointConnections?: pulumi.Input[]>; /** * The ARM provisioning state of the provisioning service. */ provisioningState?: pulumi.Input; + /** + * Whether requests from Public Network are allowed + */ + publicNetworkAccess?: pulumi.Input; /** * Current state of the provisioning service. */ @@ -98474,7 +98544,7 @@ export namespace devices { */ applyAllocationPolicy?: pulumi.Input; /** - * Connection string og the IoT hub. + * Connection string of the IoT hub. */ connectionString: pulumi.Input; /** @@ -103199,6 +103269,80 @@ export namespace devices { ttlAsIso8601?: pulumi.Input; } + /** + * the service specific properties of a provisioning service, including keys, linked iot hubs, current state, and system generated properties such as hostname and idScope + */ + export interface IotDpsPropertiesDescription { + /** + * Allocation policy to be used by this provisioning service. + */ + allocationPolicy?: pulumi.Input; + /** + * List of authorization keys for a provisioning service. + */ + authorizationPolicies?: pulumi.Input[]>; + /** + * List of IoT hubs associated with this provisioning service. + */ + iotHubs?: pulumi.Input[]>; + /** + * The IP filter rules. + */ + ipFilterRules?: pulumi.Input[]>; + /** + * Private endpoint connections created on this IotHub + */ + privateEndpointConnections?: pulumi.Input[]>; + /** + * The ARM provisioning state of the provisioning service. + */ + provisioningState?: pulumi.Input; + /** + * Whether requests from Public Network are allowed + */ + publicNetworkAccess?: pulumi.Input; + /** + * Current state of the provisioning service. + */ + state?: pulumi.Input; + } + + /** + * List of possible provisioning service SKUs. + */ + export interface IotDpsSkuInfo { + /** + * The number of units to provision + */ + capacity?: pulumi.Input; + /** + * Sku name. + */ + name?: pulumi.Input; + } + + /** + * Description of the IoT hub. + */ + export interface IotHubDefinitionDescription { + /** + * weight to apply for a given iot h. + */ + allocationWeight?: pulumi.Input; + /** + * flag for applying allocationPolicy or not for a given iot hub. + */ + applyAllocationPolicy?: pulumi.Input; + /** + * Connection string of the IoT hub. + */ + connectionString: pulumi.Input; + /** + * ARM region of the IoT hub. + */ + location: pulumi.Input; + } + /** * The properties of an IoT hub. */ @@ -103605,6 +103749,28 @@ export namespace devices { secondaryKey?: pulumi.Input; } + /** + * Description of the shared access key. + */ + export interface SharedAccessSignatureAuthorizationRuleAccessRightsDescription { + /** + * Name of the key. + */ + keyName: pulumi.Input; + /** + * Primary SAS key value. + */ + primaryKey?: pulumi.Input; + /** + * Rights that this key has. + */ + rights: pulumi.Input; + /** + * Secondary SAS key value. + */ + secondaryKey?: pulumi.Input; + } + /** * The properties of the Azure Storage endpoint for file upload. */ @@ -122893,6 +123059,10 @@ export namespace insights { * The operator used to compare the metric value against the threshold. */ operator: pulumi.Input; + /** + * Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. + */ + skipMetricValidation?: pulumi.Input; /** * the criteria time aggregation types. */ @@ -123161,6 +123331,10 @@ export namespace insights { * the criteria operator. */ operator: pulumi.Input; + /** + * Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. + */ + skipMetricValidation?: pulumi.Input; /** * the criteria threshold value that activates the alert. */ @@ -124600,6 +124774,10 @@ export namespace insights { * The operator used to compare the metric value against the threshold. */ operator: pulumi.Input; + /** + * Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. + */ + skipMetricValidation?: pulumi.Input; /** * the criteria time aggregation types. */ @@ -124748,6 +124926,10 @@ export namespace insights { * the criteria operator. */ operator: pulumi.Input; + /** + * Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. + */ + skipMetricValidation?: pulumi.Input; /** * the criteria threshold value that activates the alert. */ diff --git a/sdk/nodejs/types/output.ts b/sdk/nodejs/types/output.ts index 18028b7de85b..f9f83def7560 100644 --- a/sdk/nodejs/types/output.ts +++ b/sdk/nodejs/types/output.ts @@ -1320,6 +1320,64 @@ export namespace alertsmanagement { duration?: string; } } + + export namespace v20200804preview { + /** + * An alert action. + */ + export interface HealthAlertActionResponse { + /** + * the id of the action group to use. + */ + actionGroupId?: string; + /** + * The properties of a webhook object. + */ + webHookProperties?: {[key: string]: string}; + } + + /** + * Specifies the resource health alert criteria for a single resource that has multiple metric criteria. + */ + export interface HealthAlertCriteriaResponse { + /** + * The list of metric criteria for this 'all of' operation. + */ + allOf?: outputs.alertsmanagement.v20200804preview.VmGuestHealthAlertCriterionResponse[]; + } + + /** + * Specifies the health state to alert on and the corresponding severity + */ + export interface HealthStateResponse { + /** + * Health state + */ + healthStateName: string; + /** + * Severity of alert fired + */ + severity: string; + } + + /** + * Specifies the health alert criteria to alert on. + */ + export interface VmGuestHealthAlertCriterionResponse { + /** + * Name of health monitor on which to define alert + */ + healthMonitorName: string; + /** + * Health states to alert on + */ + healthStates?: outputs.alertsmanagement.v20200804preview.HealthStateResponse[]; + /** + * specifies the type of the alert criterion. + */ + namespace: "VmGuestHealth"; + } + } } export namespace analysisservices { @@ -8529,6 +8587,38 @@ export namespace authorization { tier?: string; } } + + export namespace v20200701preview { + /** + * Metadata pertaining to creation and last modification of the resource. + */ + export interface SystemDataResponse { + /** + * The timestamp of resource creation (UTC). + */ + createdAt?: string; + /** + * The identity that created the resource. + */ + createdBy?: string; + /** + * The type of identity that created the resource. + */ + createdByType?: string; + /** + * The type of identity that last modified the resource. + */ + lastModifiedAt?: string; + /** + * The identity that last modified the resource. + */ + lastModifiedBy?: string; + /** + * The type of identity that last modified the resource. + */ + lastModifiedByType?: string; + } + } } export namespace automanage { @@ -126692,10 +126782,18 @@ export namespace devices { * The IP filter rules. */ ipFilterRules?: outputs.devices.latest.IpFilterRuleResponse[]; + /** + * Private endpoint connections created on this IotHub + */ + privateEndpointConnections?: outputs.devices.latest.PrivateEndpointConnectionResponse[]; /** * The ARM provisioning state of the provisioning service. */ provisioningState?: string; + /** + * Whether requests from Public Network are allowed + */ + publicNetworkAccess?: string; /** * Service endpoint for provisioning service. */ @@ -126737,7 +126835,7 @@ export namespace devices { */ applyAllocationPolicy?: boolean; /** - * Connection string og the IoT hub. + * Connection string of the IoT hub. */ connectionString: string; /** @@ -132197,11 +132295,7 @@ export namespace devices { */ export interface CertificatePropertiesResponse { /** - * The certificate content - */ - certificate?: string; - /** - * The certificate's create date and time. + * The certificate's creation date and time. */ created: string; /** @@ -132332,6 +132426,100 @@ export namespace devices { ttlAsIso8601?: string; } + /** + * the service specific properties of a provisioning service, including keys, linked iot hubs, current state, and system generated properties such as hostname and idScope + */ + export interface IotDpsPropertiesDescriptionResponse { + /** + * Allocation policy to be used by this provisioning service. + */ + allocationPolicy?: string; + /** + * List of authorization keys for a provisioning service. + */ + authorizationPolicies?: outputs.devices.v20200301.SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponse[]; + /** + * Device endpoint for this provisioning service. + */ + deviceProvisioningHostName: string; + /** + * Unique identifier of this provisioning service. + */ + idScope: string; + /** + * List of IoT hubs associated with this provisioning service. + */ + iotHubs?: outputs.devices.v20200301.IotHubDefinitionDescriptionResponse[]; + /** + * The IP filter rules. + */ + ipFilterRules?: outputs.devices.v20200301.IpFilterRuleResponse[]; + /** + * Private endpoint connections created on this IotHub + */ + privateEndpointConnections?: outputs.devices.v20200301.PrivateEndpointConnectionResponse[]; + /** + * The ARM provisioning state of the provisioning service. + */ + provisioningState?: string; + /** + * Whether requests from Public Network are allowed + */ + publicNetworkAccess?: string; + /** + * Service endpoint for provisioning service. + */ + serviceOperationsHostName: string; + /** + * Current state of the provisioning service. + */ + state?: string; + } + + /** + * List of possible provisioning service SKUs. + */ + export interface IotDpsSkuInfoResponse { + /** + * The number of units to provision + */ + capacity?: number; + /** + * Sku name. + */ + name?: string; + /** + * Pricing tier name of the provisioning service. + */ + tier: string; + } + + /** + * Description of the IoT hub. + */ + export interface IotHubDefinitionDescriptionResponse { + /** + * weight to apply for a given iot h. + */ + allocationWeight?: number; + /** + * flag for applying allocationPolicy or not for a given iot hub. + */ + applyAllocationPolicy?: boolean; + /** + * Connection string of the IoT hub. + */ + connectionString: string; + /** + * ARM region of the IoT hub. + */ + location: string; + /** + * Host name of the IoT hub. + */ + name: string; + } + /** * Public representation of one of the locations where a resource is provisioned. */ @@ -132776,6 +132964,28 @@ export namespace devices { subscriptionId?: string; } + /** + * Description of the shared access key. + */ + export interface SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponse { + /** + * Name of the key. + */ + keyName: string; + /** + * Primary SAS key value. + */ + primaryKey?: string; + /** + * Rights that this key has. + */ + rights: string; + /** + * Secondary SAS key value. + */ + secondaryKey?: string; + } + /** * The properties of an IoT hub shared access policy. */ @@ -155190,6 +155400,10 @@ export namespace insights { * The operator used to compare the metric value against the threshold. */ operator: string; + /** + * Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. + */ + skipMetricValidation?: boolean; /** * the criteria time aggregation types. */ @@ -155462,6 +155676,10 @@ export namespace insights { * the criteria operator. */ operator: string; + /** + * Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. + */ + skipMetricValidation?: boolean; /** * the criteria threshold value that activates the alert. */ @@ -156934,6 +157152,10 @@ export namespace insights { * The operator used to compare the metric value against the threshold. */ operator: string; + /** + * Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. + */ + skipMetricValidation?: boolean; /** * the criteria time aggregation types. */ @@ -157086,6 +157308,10 @@ export namespace insights { * the criteria operator. */ operator: string; + /** + * Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. + */ + skipMetricValidation?: boolean; /** * the criteria threshold value that activates the alert. */ @@ -175059,19 +175285,11 @@ export namespace machinelearningservices { */ export interface PrivateEndpointConnectionResponse { /** - * Specifies the resource ID. + * ResourceId of the private endpoint connection. */ id: string; /** - * The identity of the resource. - */ - identity?: outputs.machinelearningservices.latest.IdentityResponse; - /** - * Specifies the location of the resource. - */ - location?: string; - /** - * Specifies the name of the resource. + * Friendly name of the private endpoint connection. */ name: string; /** @@ -175087,15 +175305,7 @@ export namespace machinelearningservices { */ provisioningState?: string; /** - * The sku of the workspace. - */ - sku?: outputs.machinelearningservices.latest.SkuResponse; - /** - * Contains resource tags defined as key/value pairs. - */ - tags?: {[key: string]: string}; - /** - * Specifies the type of the resource. + * Resource type of private endpoint connection. */ type: string; } @@ -185715,19 +185925,11 @@ export namespace machinelearningservices { */ export interface PrivateEndpointConnectionResponse { /** - * Specifies the resource ID. + * ResourceId of the private endpoint connection. */ id: string; /** - * The identity of the resource. - */ - identity?: outputs.machinelearningservices.v20200601.IdentityResponse; - /** - * Specifies the location of the resource. - */ - location?: string; - /** - * Specifies the name of the resource. + * Friendly name of the private endpoint connection. */ name: string; /** @@ -185743,15 +185945,7 @@ export namespace machinelearningservices { */ provisioningState?: string; /** - * The sku of the workspace. - */ - sku?: outputs.machinelearningservices.v20200601.SkuResponse; - /** - * Contains resource tags defined as key/value pairs. - */ - tags?: {[key: string]: string}; - /** - * Specifies the type of the resource. + * Resource type of private endpoint connection. */ type: string; } diff --git a/sdk/python/pulumi_azurerm/_tables.py b/sdk/python/pulumi_azurerm/_tables.py index 0fa59971c35a..423004ea841d 100644 --- a/sdk/python/pulumi_azurerm/_tables.py +++ b/sdk/python/pulumi_azurerm/_tables.py @@ -2098,6 +2098,7 @@ "execution_state": "executionState", "execution_state_transition_time": "executionStateTransitionTime", "execution_type": "executionType", + "exemption_category": "exemptionCategory", "existing_backup_errors": "existingBackupErrors", "existing_cluster_id": "existingClusterId", "existing_lab_disk_id": "existingLabDiskId", @@ -2118,6 +2119,7 @@ "expire_after_seconds": "expireAfterSeconds", "expire_time": "expireTime", "expires_in": "expiresIn", + "expires_on": "expiresOn", "expiry_date": "expiryDate", "expiry_date_time_utc": "expiryDateTimeUtc", "expiry_time": "expiryTime", @@ -2512,12 +2514,15 @@ "health_errors": "healthErrors", "health_last_evaluated": "healthLastEvaluated", "health_last_updated_timestamp": "healthLastUpdatedTimestamp", + "health_monitor_name": "healthMonitorName", "health_monitors": "healthMonitors", "health_policy": "healthPolicy", "health_probe": "healthProbe", "health_probe_method": "healthProbeMethod", "health_probe_settings": "healthProbeSettings", "health_state": "healthState", + "health_state_name": "healthStateName", + "health_states": "healthStates", "health_status": "healthStatus", "healthy_state_duration": "healthyStateDuration", "helm_operator_properties": "helmOperatorProperties", @@ -4221,9 +4226,11 @@ "policy_definition_id": "policyDefinitionId", "policy_definition_name": "policyDefinitionName", "policy_definition_reference_id": "policyDefinitionReferenceId", + "policy_definition_reference_ids": "policyDefinitionReferenceIds", "policy_definitions": "policyDefinitions", "policy_enabled": "policyEnabled", "policy_enforced": "policyEnforced", + "policy_exemption_name": "policyExemptionName", "policy_friendly_name": "policyFriendlyName", "policy_id": "policyId", "policy_inconsistent": "policyInconsistent", @@ -5504,6 +5511,7 @@ "skip_empty_archives": "skipEmptyArchives", "skip_host_key_validation": "skipHostKeyValidation", "skip_line_count": "skipLineCount", + "skip_metric_validation": "skipMetricValidation", "skip_succeeded_on_retry": "skipSucceededOnRetry", "sku_capacity": "skuCapacity", "sku_description": "skuDescription", @@ -8837,6 +8845,7 @@ "executionState": "execution_state", "executionStateTransitionTime": "execution_state_transition_time", "executionType": "execution_type", + "exemptionCategory": "exemption_category", "existingBackupErrors": "existing_backup_errors", "existingClusterId": "existing_cluster_id", "existingLabDiskId": "existing_lab_disk_id", @@ -8857,6 +8866,7 @@ "expireAfterSeconds": "expire_after_seconds", "expireTime": "expire_time", "expiresIn": "expires_in", + "expiresOn": "expires_on", "expiryDate": "expiry_date", "expiryDateTimeUtc": "expiry_date_time_utc", "expiryTime": "expiry_time", @@ -9251,12 +9261,15 @@ "healthErrors": "health_errors", "healthLastEvaluated": "health_last_evaluated", "healthLastUpdatedTimestamp": "health_last_updated_timestamp", + "healthMonitorName": "health_monitor_name", "healthMonitors": "health_monitors", "healthPolicy": "health_policy", "healthProbe": "health_probe", "healthProbeMethod": "health_probe_method", "healthProbeSettings": "health_probe_settings", "healthState": "health_state", + "healthStateName": "health_state_name", + "healthStates": "health_states", "healthStatus": "health_status", "healthyStateDuration": "healthy_state_duration", "helmOperatorProperties": "helm_operator_properties", @@ -10960,9 +10973,11 @@ "policyDefinitionId": "policy_definition_id", "policyDefinitionName": "policy_definition_name", "policyDefinitionReferenceId": "policy_definition_reference_id", + "policyDefinitionReferenceIds": "policy_definition_reference_ids", "policyDefinitions": "policy_definitions", "policyEnabled": "policy_enabled", "policyEnforced": "policy_enforced", + "policyExemptionName": "policy_exemption_name", "policyFriendlyName": "policy_friendly_name", "policyId": "policy_id", "policyInconsistent": "policy_inconsistent", @@ -12243,6 +12258,7 @@ "skipEmptyArchives": "skip_empty_archives", "skipHostKeyValidation": "skip_host_key_validation", "skipLineCount": "skip_line_count", + "skipMetricValidation": "skip_metric_validation", "skipSucceededOnRetry": "skip_succeeded_on_retry", "skuCapacity": "sku_capacity", "skuDescription": "sku_description", diff --git a/sdk/python/pulumi_azurerm/alertsmanagement/__init__.py b/sdk/python/pulumi_azurerm/alertsmanagement/__init__.py index 9082c7fca5d1..46d882a4c101 100644 --- a/sdk/python/pulumi_azurerm/alertsmanagement/__init__.py +++ b/sdk/python/pulumi_azurerm/alertsmanagement/__init__.py @@ -10,4 +10,5 @@ v20190301, v20190505preview, v20190601, + v20200804preview, ) diff --git a/sdk/python/pulumi_azurerm/alertsmanagement/v20200804preview/__init__.py b/sdk/python/pulumi_azurerm/alertsmanagement/v20200804preview/__init__.py new file mode 100644 index 000000000000..e3f53521a7cb --- /dev/null +++ b/sdk/python/pulumi_azurerm/alertsmanagement/v20200804preview/__init__.py @@ -0,0 +1,9 @@ +# coding=utf-8 +# *** WARNING: this file was generated by the Pulumi SDK Generator. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +# Export this package's modules as members: +from .get_health_alert import * +from .health_alert import * +from ._inputs import * +from . import outputs diff --git a/sdk/python/pulumi_azurerm/alertsmanagement/v20200804preview/_inputs.py b/sdk/python/pulumi_azurerm/alertsmanagement/v20200804preview/_inputs.py new file mode 100644 index 000000000000..37ab1b046d55 --- /dev/null +++ b/sdk/python/pulumi_azurerm/alertsmanagement/v20200804preview/_inputs.py @@ -0,0 +1,173 @@ +# coding=utf-8 +# *** WARNING: this file was generated by the Pulumi SDK Generator. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import warnings +import pulumi +import pulumi.runtime +from typing import Any, Dict, List, Mapping, Optional, Tuple, Union +from ... import _utilities, _tables + +__all__ = [ + 'HealthAlertActionArgs', + 'HealthAlertCriteriaArgs', + 'HealthStateArgs', + 'VmGuestHealthAlertCriterionArgs', +] + +@pulumi.input_type +class HealthAlertActionArgs: + def __init__(__self__, *, + action_group_id: Optional[pulumi.Input[str]] = None, + web_hook_properties: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None): + """ + An alert action. + :param pulumi.Input[str] action_group_id: the id of the action group to use. + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] web_hook_properties: The properties of a webhook object. + """ + if action_group_id is not None: + pulumi.set(__self__, "action_group_id", action_group_id) + if web_hook_properties is not None: + pulumi.set(__self__, "web_hook_properties", web_hook_properties) + + @property + @pulumi.getter(name="actionGroupId") + def action_group_id(self) -> Optional[pulumi.Input[str]]: + """ + the id of the action group to use. + """ + return pulumi.get(self, "action_group_id") + + @action_group_id.setter + def action_group_id(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "action_group_id", value) + + @property + @pulumi.getter(name="webHookProperties") + def web_hook_properties(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: + """ + The properties of a webhook object. + """ + return pulumi.get(self, "web_hook_properties") + + @web_hook_properties.setter + def web_hook_properties(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]): + pulumi.set(self, "web_hook_properties", value) + + +@pulumi.input_type +class HealthAlertCriteriaArgs: + def __init__(__self__, *, + all_of: Optional[pulumi.Input[List[pulumi.Input['VmGuestHealthAlertCriterionArgs']]]] = None): + """ + Specifies the resource health alert criteria for a single resource that has multiple metric criteria. + :param pulumi.Input[List[pulumi.Input['VmGuestHealthAlertCriterionArgs']]] all_of: The list of metric criteria for this 'all of' operation. + """ + if all_of is not None: + pulumi.set(__self__, "all_of", all_of) + + @property + @pulumi.getter(name="allOf") + def all_of(self) -> Optional[pulumi.Input[List[pulumi.Input['VmGuestHealthAlertCriterionArgs']]]]: + """ + The list of metric criteria for this 'all of' operation. + """ + return pulumi.get(self, "all_of") + + @all_of.setter + def all_of(self, value: Optional[pulumi.Input[List[pulumi.Input['VmGuestHealthAlertCriterionArgs']]]]): + pulumi.set(self, "all_of", value) + + +@pulumi.input_type +class HealthStateArgs: + def __init__(__self__, *, + health_state_name: pulumi.Input[str], + severity: pulumi.Input[str]): + """ + Specifies the health state to alert on and the corresponding severity + :param pulumi.Input[str] health_state_name: Health state + :param pulumi.Input[str] severity: Severity of alert fired + """ + pulumi.set(__self__, "health_state_name", health_state_name) + pulumi.set(__self__, "severity", severity) + + @property + @pulumi.getter(name="healthStateName") + def health_state_name(self) -> pulumi.Input[str]: + """ + Health state + """ + return pulumi.get(self, "health_state_name") + + @health_state_name.setter + def health_state_name(self, value: pulumi.Input[str]): + pulumi.set(self, "health_state_name", value) + + @property + @pulumi.getter + def severity(self) -> pulumi.Input[str]: + """ + Severity of alert fired + """ + return pulumi.get(self, "severity") + + @severity.setter + def severity(self, value: pulumi.Input[str]): + pulumi.set(self, "severity", value) + + +@pulumi.input_type +class VmGuestHealthAlertCriterionArgs: + def __init__(__self__, *, + health_monitor_name: pulumi.Input[str], + namespace: pulumi.Input[str], + health_states: Optional[pulumi.Input[List[pulumi.Input['HealthStateArgs']]]] = None): + """ + Specifies the health alert criteria to alert on. + :param pulumi.Input[str] health_monitor_name: Name of health monitor on which to define alert + :param pulumi.Input[str] namespace: specifies the type of the alert criterion. + :param pulumi.Input[List[pulumi.Input['HealthStateArgs']]] health_states: Health states to alert on + """ + pulumi.set(__self__, "health_monitor_name", health_monitor_name) + pulumi.set(__self__, "namespace", 'VmGuestHealth') + if health_states is not None: + pulumi.set(__self__, "health_states", health_states) + + @property + @pulumi.getter(name="healthMonitorName") + def health_monitor_name(self) -> pulumi.Input[str]: + """ + Name of health monitor on which to define alert + """ + return pulumi.get(self, "health_monitor_name") + + @health_monitor_name.setter + def health_monitor_name(self, value: pulumi.Input[str]): + pulumi.set(self, "health_monitor_name", value) + + @property + @pulumi.getter + def namespace(self) -> pulumi.Input[str]: + """ + specifies the type of the alert criterion. + """ + return pulumi.get(self, "namespace") + + @namespace.setter + def namespace(self, value: pulumi.Input[str]): + pulumi.set(self, "namespace", value) + + @property + @pulumi.getter(name="healthStates") + def health_states(self) -> Optional[pulumi.Input[List[pulumi.Input['HealthStateArgs']]]]: + """ + Health states to alert on + """ + return pulumi.get(self, "health_states") + + @health_states.setter + def health_states(self, value: Optional[pulumi.Input[List[pulumi.Input['HealthStateArgs']]]]): + pulumi.set(self, "health_states", value) + + diff --git a/sdk/python/pulumi_azurerm/alertsmanagement/v20200804preview/get_health_alert.py b/sdk/python/pulumi_azurerm/alertsmanagement/v20200804preview/get_health_alert.py new file mode 100644 index 000000000000..806b5d16f390 --- /dev/null +++ b/sdk/python/pulumi_azurerm/alertsmanagement/v20200804preview/get_health_alert.py @@ -0,0 +1,182 @@ +# coding=utf-8 +# *** WARNING: this file was generated by the Pulumi SDK Generator. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import warnings +import pulumi +import pulumi.runtime +from typing import Any, Dict, List, Mapping, Optional, Tuple, Union +from ... import _utilities, _tables +from . import outputs + +__all__ = [ + 'GetHealthAlertResult', + 'AwaitableGetHealthAlertResult', + 'get_health_alert', +] + +@pulumi.output_type +class GetHealthAlertResult: + """ + The health alert resource. + """ + def __init__(__self__, actions=None, criteria=None, description=None, enabled=None, last_updated_time=None, location=None, name=None, scopes=None, tags=None, type=None): + if actions and not isinstance(actions, list): + raise TypeError("Expected argument 'actions' to be a list") + pulumi.set(__self__, "actions", actions) + if criteria and not isinstance(criteria, dict): + raise TypeError("Expected argument 'criteria' to be a dict") + pulumi.set(__self__, "criteria", criteria) + if description and not isinstance(description, str): + raise TypeError("Expected argument 'description' to be a str") + pulumi.set(__self__, "description", description) + if enabled and not isinstance(enabled, bool): + raise TypeError("Expected argument 'enabled' to be a bool") + pulumi.set(__self__, "enabled", enabled) + if last_updated_time and not isinstance(last_updated_time, str): + raise TypeError("Expected argument 'last_updated_time' to be a str") + pulumi.set(__self__, "last_updated_time", last_updated_time) + if location and not isinstance(location, str): + raise TypeError("Expected argument 'location' to be a str") + pulumi.set(__self__, "location", location) + if name and not isinstance(name, str): + raise TypeError("Expected argument 'name' to be a str") + pulumi.set(__self__, "name", name) + if scopes and not isinstance(scopes, list): + raise TypeError("Expected argument 'scopes' to be a list") + pulumi.set(__self__, "scopes", scopes) + if tags and not isinstance(tags, dict): + raise TypeError("Expected argument 'tags' to be a dict") + pulumi.set(__self__, "tags", tags) + if type and not isinstance(type, str): + raise TypeError("Expected argument 'type' to be a str") + pulumi.set(__self__, "type", type) + + @property + @pulumi.getter + def actions(self) -> Optional[List['outputs.HealthAlertActionResponse']]: + """ + the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved. + """ + return pulumi.get(self, "actions") + + @property + @pulumi.getter + def criteria(self) -> 'outputs.HealthAlertCriteriaResponse': + """ + defines the specific alert criteria information. + """ + return pulumi.get(self, "criteria") + + @property + @pulumi.getter + def description(self) -> str: + """ + the description of the health alert that will be included in the alert email. + """ + return pulumi.get(self, "description") + + @property + @pulumi.getter + def enabled(self) -> bool: + """ + the flag that indicates whether the health alert is enabled. + """ + return pulumi.get(self, "enabled") + + @property + @pulumi.getter(name="lastUpdatedTime") + def last_updated_time(self) -> str: + """ + Last time the rule was updated in ISO8601 format. + """ + return pulumi.get(self, "last_updated_time") + + @property + @pulumi.getter + def location(self) -> str: + """ + Resource location + """ + return pulumi.get(self, "location") + + @property + @pulumi.getter + def name(self) -> str: + """ + Azure resource name + """ + return pulumi.get(self, "name") + + @property + @pulumi.getter + def scopes(self) -> Optional[List[str]]: + """ + the list of resource id's that this health alert is scoped to. + """ + return pulumi.get(self, "scopes") + + @property + @pulumi.getter + def tags(self) -> Optional[Mapping[str, str]]: + """ + Resource tags + """ + return pulumi.get(self, "tags") + + @property + @pulumi.getter + def type(self) -> str: + """ + Azure resource type + """ + return pulumi.get(self, "type") + + +class AwaitableGetHealthAlertResult(GetHealthAlertResult): + # pylint: disable=using-constant-test + def __await__(self): + if False: + yield self + return GetHealthAlertResult( + actions=self.actions, + criteria=self.criteria, + description=self.description, + enabled=self.enabled, + last_updated_time=self.last_updated_time, + location=self.location, + name=self.name, + scopes=self.scopes, + tags=self.tags, + type=self.type) + + +def get_health_alert(resource_group_name: Optional[str] = None, + rule_name: Optional[str] = None, + opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetHealthAlertResult: + """ + Use this data source to access information about an existing resource. + + :param str resource_group_name: The name of the resource group. + :param str rule_name: The name of the rule. + """ + __args__ = dict() + __args__['resourceGroupName'] = resource_group_name + __args__['ruleName'] = rule_name + if opts is None: + opts = pulumi.InvokeOptions() + if opts.version is None: + opts.version = _utilities.get_version() + __ret__ = pulumi.runtime.invoke('azurerm:alertsmanagement/v20200804preview:getHealthAlert', __args__, opts=opts, typ=GetHealthAlertResult).value + + return AwaitableGetHealthAlertResult( + actions=__ret__.actions, + criteria=__ret__.criteria, + description=__ret__.description, + enabled=__ret__.enabled, + last_updated_time=__ret__.last_updated_time, + location=__ret__.location, + name=__ret__.name, + scopes=__ret__.scopes, + tags=__ret__.tags, + type=__ret__.type) diff --git a/sdk/python/pulumi_azurerm/alertsmanagement/v20200804preview/health_alert.py b/sdk/python/pulumi_azurerm/alertsmanagement/v20200804preview/health_alert.py new file mode 100644 index 000000000000..7d1e36433727 --- /dev/null +++ b/sdk/python/pulumi_azurerm/alertsmanagement/v20200804preview/health_alert.py @@ -0,0 +1,197 @@ +# coding=utf-8 +# *** WARNING: this file was generated by the Pulumi SDK Generator. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import warnings +import pulumi +import pulumi.runtime +from typing import Any, Dict, List, Mapping, Optional, Tuple, Union +from ... import _utilities, _tables +from . import outputs +from ._inputs import * + +__all__ = ['HealthAlert'] + + +class HealthAlert(pulumi.CustomResource): + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + actions: Optional[pulumi.Input[List[pulumi.Input[pulumi.InputType['HealthAlertActionArgs']]]]] = None, + criteria: Optional[pulumi.Input[pulumi.InputType['HealthAlertCriteriaArgs']]] = None, + description: Optional[pulumi.Input[str]] = None, + enabled: Optional[pulumi.Input[bool]] = None, + location: Optional[pulumi.Input[str]] = None, + resource_group_name: Optional[pulumi.Input[str]] = None, + rule_name: Optional[pulumi.Input[str]] = None, + scopes: Optional[pulumi.Input[List[pulumi.Input[str]]]] = None, + tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + __props__=None, + __name__=None, + __opts__=None): + """ + The health alert resource. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[List[pulumi.Input[pulumi.InputType['HealthAlertActionArgs']]]] actions: the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved. + :param pulumi.Input[pulumi.InputType['HealthAlertCriteriaArgs']] criteria: defines the specific alert criteria information. + :param pulumi.Input[str] description: the description of the health alert that will be included in the alert email. + :param pulumi.Input[bool] enabled: the flag that indicates whether the health alert is enabled. + :param pulumi.Input[str] location: Resource location + :param pulumi.Input[str] resource_group_name: The name of the resource group. + :param pulumi.Input[str] rule_name: The name of the rule. + :param pulumi.Input[List[pulumi.Input[str]]] scopes: the list of resource id's that this health alert is scoped to. + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: Resource tags + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = _utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['actions'] = actions + if criteria is None: + raise TypeError("Missing required property 'criteria'") + __props__['criteria'] = criteria + if description is None: + raise TypeError("Missing required property 'description'") + __props__['description'] = description + if enabled is None: + raise TypeError("Missing required property 'enabled'") + __props__['enabled'] = enabled + if location is None: + raise TypeError("Missing required property 'location'") + __props__['location'] = location + if resource_group_name is None: + raise TypeError("Missing required property 'resource_group_name'") + __props__['resource_group_name'] = resource_group_name + if rule_name is None: + raise TypeError("Missing required property 'rule_name'") + __props__['rule_name'] = rule_name + __props__['scopes'] = scopes + __props__['tags'] = tags + __props__['last_updated_time'] = None + __props__['name'] = None + __props__['type'] = None + super(HealthAlert, __self__).__init__( + 'azurerm:alertsmanagement/v20200804preview:HealthAlert', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None) -> 'HealthAlert': + """ + Get an existing HealthAlert resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return HealthAlert(resource_name, opts=opts, __props__=__props__) + + @property + @pulumi.getter + def actions(self) -> pulumi.Output[Optional[List['outputs.HealthAlertActionResponse']]]: + """ + the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved. + """ + return pulumi.get(self, "actions") + + @property + @pulumi.getter + def criteria(self) -> pulumi.Output['outputs.HealthAlertCriteriaResponse']: + """ + defines the specific alert criteria information. + """ + return pulumi.get(self, "criteria") + + @property + @pulumi.getter + def description(self) -> pulumi.Output[str]: + """ + the description of the health alert that will be included in the alert email. + """ + return pulumi.get(self, "description") + + @property + @pulumi.getter + def enabled(self) -> pulumi.Output[bool]: + """ + the flag that indicates whether the health alert is enabled. + """ + return pulumi.get(self, "enabled") + + @property + @pulumi.getter(name="lastUpdatedTime") + def last_updated_time(self) -> pulumi.Output[str]: + """ + Last time the rule was updated in ISO8601 format. + """ + return pulumi.get(self, "last_updated_time") + + @property + @pulumi.getter + def location(self) -> pulumi.Output[str]: + """ + Resource location + """ + return pulumi.get(self, "location") + + @property + @pulumi.getter + def name(self) -> pulumi.Output[str]: + """ + Azure resource name + """ + return pulumi.get(self, "name") + + @property + @pulumi.getter + def scopes(self) -> pulumi.Output[Optional[List[str]]]: + """ + the list of resource id's that this health alert is scoped to. + """ + return pulumi.get(self, "scopes") + + @property + @pulumi.getter + def tags(self) -> pulumi.Output[Optional[Mapping[str, str]]]: + """ + Resource tags + """ + return pulumi.get(self, "tags") + + @property + @pulumi.getter + def type(self) -> pulumi.Output[str]: + """ + Azure resource type + """ + return pulumi.get(self, "type") + + def translate_output_property(self, prop): + return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return _tables.SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop + diff --git a/sdk/python/pulumi_azurerm/alertsmanagement/v20200804preview/outputs.py b/sdk/python/pulumi_azurerm/alertsmanagement/v20200804preview/outputs.py new file mode 100644 index 000000000000..0cbce30ae615 --- /dev/null +++ b/sdk/python/pulumi_azurerm/alertsmanagement/v20200804preview/outputs.py @@ -0,0 +1,166 @@ +# coding=utf-8 +# *** WARNING: this file was generated by the Pulumi SDK Generator. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import warnings +import pulumi +import pulumi.runtime +from typing import Any, Dict, List, Mapping, Optional, Tuple, Union +from ... import _utilities, _tables +from . import outputs + +__all__ = [ + 'HealthAlertActionResponse', + 'HealthAlertCriteriaResponse', + 'HealthStateResponse', + 'VmGuestHealthAlertCriterionResponse', +] + +@pulumi.output_type +class HealthAlertActionResponse(dict): + """ + An alert action. + """ + def __init__(__self__, *, + action_group_id: Optional[str] = None, + web_hook_properties: Optional[Mapping[str, str]] = None): + """ + An alert action. + :param str action_group_id: the id of the action group to use. + :param Mapping[str, str] web_hook_properties: The properties of a webhook object. + """ + if action_group_id is not None: + pulumi.set(__self__, "action_group_id", action_group_id) + if web_hook_properties is not None: + pulumi.set(__self__, "web_hook_properties", web_hook_properties) + + @property + @pulumi.getter(name="actionGroupId") + def action_group_id(self) -> Optional[str]: + """ + the id of the action group to use. + """ + return pulumi.get(self, "action_group_id") + + @property + @pulumi.getter(name="webHookProperties") + def web_hook_properties(self) -> Optional[Mapping[str, str]]: + """ + The properties of a webhook object. + """ + return pulumi.get(self, "web_hook_properties") + + def _translate_property(self, prop): + return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + +@pulumi.output_type +class HealthAlertCriteriaResponse(dict): + """ + Specifies the resource health alert criteria for a single resource that has multiple metric criteria. + """ + def __init__(__self__, *, + all_of: Optional[List['outputs.VmGuestHealthAlertCriterionResponse']] = None): + """ + Specifies the resource health alert criteria for a single resource that has multiple metric criteria. + :param List['VmGuestHealthAlertCriterionResponseArgs'] all_of: The list of metric criteria for this 'all of' operation. + """ + if all_of is not None: + pulumi.set(__self__, "all_of", all_of) + + @property + @pulumi.getter(name="allOf") + def all_of(self) -> Optional[List['outputs.VmGuestHealthAlertCriterionResponse']]: + """ + The list of metric criteria for this 'all of' operation. + """ + return pulumi.get(self, "all_of") + + def _translate_property(self, prop): + return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + +@pulumi.output_type +class HealthStateResponse(dict): + """ + Specifies the health state to alert on and the corresponding severity + """ + def __init__(__self__, *, + health_state_name: str, + severity: str): + """ + Specifies the health state to alert on and the corresponding severity + :param str health_state_name: Health state + :param str severity: Severity of alert fired + """ + pulumi.set(__self__, "health_state_name", health_state_name) + pulumi.set(__self__, "severity", severity) + + @property + @pulumi.getter(name="healthStateName") + def health_state_name(self) -> str: + """ + Health state + """ + return pulumi.get(self, "health_state_name") + + @property + @pulumi.getter + def severity(self) -> str: + """ + Severity of alert fired + """ + return pulumi.get(self, "severity") + + def _translate_property(self, prop): + return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + +@pulumi.output_type +class VmGuestHealthAlertCriterionResponse(dict): + """ + Specifies the health alert criteria to alert on. + """ + def __init__(__self__, *, + health_monitor_name: str, + namespace: str, + health_states: Optional[List['outputs.HealthStateResponse']] = None): + """ + Specifies the health alert criteria to alert on. + :param str health_monitor_name: Name of health monitor on which to define alert + :param str namespace: specifies the type of the alert criterion. + :param List['HealthStateResponseArgs'] health_states: Health states to alert on + """ + pulumi.set(__self__, "health_monitor_name", health_monitor_name) + pulumi.set(__self__, "namespace", 'VmGuestHealth') + if health_states is not None: + pulumi.set(__self__, "health_states", health_states) + + @property + @pulumi.getter(name="healthMonitorName") + def health_monitor_name(self) -> str: + """ + Name of health monitor on which to define alert + """ + return pulumi.get(self, "health_monitor_name") + + @property + @pulumi.getter + def namespace(self) -> str: + """ + specifies the type of the alert criterion. + """ + return pulumi.get(self, "namespace") + + @property + @pulumi.getter(name="healthStates") + def health_states(self) -> Optional[List['outputs.HealthStateResponse']]: + """ + Health states to alert on + """ + return pulumi.get(self, "health_states") + + def _translate_property(self, prop): + return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + diff --git a/sdk/python/pulumi_azurerm/authorization/__init__.py b/sdk/python/pulumi_azurerm/authorization/__init__.py index 2d0fe58f1fea..0e85ef2e23e0 100644 --- a/sdk/python/pulumi_azurerm/authorization/__init__.py +++ b/sdk/python/pulumi_azurerm/authorization/__init__.py @@ -24,4 +24,5 @@ v20190901, v20200301, v20200401preview, + v20200701preview, ) diff --git a/sdk/python/pulumi_azurerm/authorization/v20200701preview/__init__.py b/sdk/python/pulumi_azurerm/authorization/v20200701preview/__init__.py new file mode 100644 index 000000000000..4e6ed6e9d724 --- /dev/null +++ b/sdk/python/pulumi_azurerm/authorization/v20200701preview/__init__.py @@ -0,0 +1,8 @@ +# coding=utf-8 +# *** WARNING: this file was generated by the Pulumi SDK Generator. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +# Export this package's modules as members: +from .get_policy_exemption import * +from .policy_exemption import * +from . import outputs diff --git a/sdk/python/pulumi_azurerm/authorization/v20200701preview/get_policy_exemption.py b/sdk/python/pulumi_azurerm/authorization/v20200701preview/get_policy_exemption.py new file mode 100644 index 000000000000..0eec0e94e769 --- /dev/null +++ b/sdk/python/pulumi_azurerm/authorization/v20200701preview/get_policy_exemption.py @@ -0,0 +1,182 @@ +# coding=utf-8 +# *** WARNING: this file was generated by the Pulumi SDK Generator. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import warnings +import pulumi +import pulumi.runtime +from typing import Any, Dict, List, Mapping, Optional, Tuple, Union +from ... import _utilities, _tables +from . import outputs + +__all__ = [ + 'GetPolicyExemptionResult', + 'AwaitableGetPolicyExemptionResult', + 'get_policy_exemption', +] + +@pulumi.output_type +class GetPolicyExemptionResult: + """ + The policy exemption. + """ + def __init__(__self__, description=None, display_name=None, exemption_category=None, expires_on=None, metadata=None, name=None, policy_assignment_id=None, policy_definition_reference_ids=None, system_data=None, type=None): + if description and not isinstance(description, str): + raise TypeError("Expected argument 'description' to be a str") + pulumi.set(__self__, "description", description) + if display_name and not isinstance(display_name, str): + raise TypeError("Expected argument 'display_name' to be a str") + pulumi.set(__self__, "display_name", display_name) + if exemption_category and not isinstance(exemption_category, str): + raise TypeError("Expected argument 'exemption_category' to be a str") + pulumi.set(__self__, "exemption_category", exemption_category) + if expires_on and not isinstance(expires_on, str): + raise TypeError("Expected argument 'expires_on' to be a str") + pulumi.set(__self__, "expires_on", expires_on) + if metadata and not isinstance(metadata, dict): + raise TypeError("Expected argument 'metadata' to be a dict") + pulumi.set(__self__, "metadata", metadata) + if name and not isinstance(name, str): + raise TypeError("Expected argument 'name' to be a str") + pulumi.set(__self__, "name", name) + if policy_assignment_id and not isinstance(policy_assignment_id, str): + raise TypeError("Expected argument 'policy_assignment_id' to be a str") + pulumi.set(__self__, "policy_assignment_id", policy_assignment_id) + if policy_definition_reference_ids and not isinstance(policy_definition_reference_ids, list): + raise TypeError("Expected argument 'policy_definition_reference_ids' to be a list") + pulumi.set(__self__, "policy_definition_reference_ids", policy_definition_reference_ids) + if system_data and not isinstance(system_data, dict): + raise TypeError("Expected argument 'system_data' to be a dict") + pulumi.set(__self__, "system_data", system_data) + if type and not isinstance(type, str): + raise TypeError("Expected argument 'type' to be a str") + pulumi.set(__self__, "type", type) + + @property + @pulumi.getter + def description(self) -> Optional[str]: + """ + The description of the policy exemption. + """ + return pulumi.get(self, "description") + + @property + @pulumi.getter(name="displayName") + def display_name(self) -> Optional[str]: + """ + The display name of the policy exemption. + """ + return pulumi.get(self, "display_name") + + @property + @pulumi.getter(name="exemptionCategory") + def exemption_category(self) -> str: + """ + The policy exemption category. Possible values are Waiver and Mitigated. + """ + return pulumi.get(self, "exemption_category") + + @property + @pulumi.getter(name="expiresOn") + def expires_on(self) -> Optional[str]: + """ + The expiration date and time (in UTC ISO 8601 format yyyy-MM-ddTHH:mm:ssZ) of the policy exemption. + """ + return pulumi.get(self, "expires_on") + + @property + @pulumi.getter + def metadata(self) -> Optional[Mapping[str, Any]]: + """ + The policy exemption metadata. Metadata is an open ended object and is typically a collection of key value pairs. + """ + return pulumi.get(self, "metadata") + + @property + @pulumi.getter + def name(self) -> str: + """ + The name of the resource + """ + return pulumi.get(self, "name") + + @property + @pulumi.getter(name="policyAssignmentId") + def policy_assignment_id(self) -> str: + """ + The ID of the policy assignment that is being exempted. + """ + return pulumi.get(self, "policy_assignment_id") + + @property + @pulumi.getter(name="policyDefinitionReferenceIds") + def policy_definition_reference_ids(self) -> Optional[List[str]]: + """ + The policy definition reference ID list when the associated policy assignment is an assignment of a policy set definition. + """ + return pulumi.get(self, "policy_definition_reference_ids") + + @property + @pulumi.getter(name="systemData") + def system_data(self) -> 'outputs.SystemDataResponse': + """ + Azure Resource Manager metadata containing createdBy and modifiedBy information. + """ + return pulumi.get(self, "system_data") + + @property + @pulumi.getter + def type(self) -> str: + """ + The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + """ + return pulumi.get(self, "type") + + +class AwaitableGetPolicyExemptionResult(GetPolicyExemptionResult): + # pylint: disable=using-constant-test + def __await__(self): + if False: + yield self + return GetPolicyExemptionResult( + description=self.description, + display_name=self.display_name, + exemption_category=self.exemption_category, + expires_on=self.expires_on, + metadata=self.metadata, + name=self.name, + policy_assignment_id=self.policy_assignment_id, + policy_definition_reference_ids=self.policy_definition_reference_ids, + system_data=self.system_data, + type=self.type) + + +def get_policy_exemption(policy_exemption_name: Optional[str] = None, + scope: Optional[str] = None, + opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetPolicyExemptionResult: + """ + Use this data source to access information about an existing resource. + + :param str policy_exemption_name: The name of the policy exemption to delete. + :param str scope: The scope of the policy exemption. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' + """ + __args__ = dict() + __args__['policyExemptionName'] = policy_exemption_name + __args__['scope'] = scope + if opts is None: + opts = pulumi.InvokeOptions() + if opts.version is None: + opts.version = _utilities.get_version() + __ret__ = pulumi.runtime.invoke('azurerm:authorization/v20200701preview:getPolicyExemption', __args__, opts=opts, typ=GetPolicyExemptionResult).value + + return AwaitableGetPolicyExemptionResult( + description=__ret__.description, + display_name=__ret__.display_name, + exemption_category=__ret__.exemption_category, + expires_on=__ret__.expires_on, + metadata=__ret__.metadata, + name=__ret__.name, + policy_assignment_id=__ret__.policy_assignment_id, + policy_definition_reference_ids=__ret__.policy_definition_reference_ids, + system_data=__ret__.system_data, + type=__ret__.type) diff --git a/sdk/python/pulumi_azurerm/authorization/v20200701preview/outputs.py b/sdk/python/pulumi_azurerm/authorization/v20200701preview/outputs.py new file mode 100644 index 000000000000..399eb0aaca65 --- /dev/null +++ b/sdk/python/pulumi_azurerm/authorization/v20200701preview/outputs.py @@ -0,0 +1,100 @@ +# coding=utf-8 +# *** WARNING: this file was generated by the Pulumi SDK Generator. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import warnings +import pulumi +import pulumi.runtime +from typing import Any, Dict, List, Mapping, Optional, Tuple, Union +from ... import _utilities, _tables + +__all__ = [ + 'SystemDataResponse', +] + +@pulumi.output_type +class SystemDataResponse(dict): + """ + Metadata pertaining to creation and last modification of the resource. + """ + def __init__(__self__, *, + created_at: Optional[str] = None, + created_by: Optional[str] = None, + created_by_type: Optional[str] = None, + last_modified_at: Optional[str] = None, + last_modified_by: Optional[str] = None, + last_modified_by_type: Optional[str] = None): + """ + Metadata pertaining to creation and last modification of the resource. + :param str created_at: The timestamp of resource creation (UTC). + :param str created_by: The identity that created the resource. + :param str created_by_type: The type of identity that created the resource. + :param str last_modified_at: The type of identity that last modified the resource. + :param str last_modified_by: The identity that last modified the resource. + :param str last_modified_by_type: The type of identity that last modified the resource. + """ + if created_at is not None: + pulumi.set(__self__, "created_at", created_at) + if created_by is not None: + pulumi.set(__self__, "created_by", created_by) + if created_by_type is not None: + pulumi.set(__self__, "created_by_type", created_by_type) + if last_modified_at is not None: + pulumi.set(__self__, "last_modified_at", last_modified_at) + if last_modified_by is not None: + pulumi.set(__self__, "last_modified_by", last_modified_by) + if last_modified_by_type is not None: + pulumi.set(__self__, "last_modified_by_type", last_modified_by_type) + + @property + @pulumi.getter(name="createdAt") + def created_at(self) -> Optional[str]: + """ + The timestamp of resource creation (UTC). + """ + return pulumi.get(self, "created_at") + + @property + @pulumi.getter(name="createdBy") + def created_by(self) -> Optional[str]: + """ + The identity that created the resource. + """ + return pulumi.get(self, "created_by") + + @property + @pulumi.getter(name="createdByType") + def created_by_type(self) -> Optional[str]: + """ + The type of identity that created the resource. + """ + return pulumi.get(self, "created_by_type") + + @property + @pulumi.getter(name="lastModifiedAt") + def last_modified_at(self) -> Optional[str]: + """ + The type of identity that last modified the resource. + """ + return pulumi.get(self, "last_modified_at") + + @property + @pulumi.getter(name="lastModifiedBy") + def last_modified_by(self) -> Optional[str]: + """ + The identity that last modified the resource. + """ + return pulumi.get(self, "last_modified_by") + + @property + @pulumi.getter(name="lastModifiedByType") + def last_modified_by_type(self) -> Optional[str]: + """ + The type of identity that last modified the resource. + """ + return pulumi.get(self, "last_modified_by_type") + + def _translate_property(self, prop): + return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + diff --git a/sdk/python/pulumi_azurerm/authorization/v20200701preview/policy_exemption.py b/sdk/python/pulumi_azurerm/authorization/v20200701preview/policy_exemption.py new file mode 100644 index 000000000000..02da92fab7ae --- /dev/null +++ b/sdk/python/pulumi_azurerm/authorization/v20200701preview/policy_exemption.py @@ -0,0 +1,192 @@ +# coding=utf-8 +# *** WARNING: this file was generated by the Pulumi SDK Generator. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import warnings +import pulumi +import pulumi.runtime +from typing import Any, Dict, List, Mapping, Optional, Tuple, Union +from ... import _utilities, _tables +from . import outputs + +__all__ = ['PolicyExemption'] + + +class PolicyExemption(pulumi.CustomResource): + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + description: Optional[pulumi.Input[str]] = None, + display_name: Optional[pulumi.Input[str]] = None, + exemption_category: Optional[pulumi.Input[str]] = None, + expires_on: Optional[pulumi.Input[str]] = None, + metadata: Optional[pulumi.Input[Mapping[str, Any]]] = None, + policy_assignment_id: Optional[pulumi.Input[str]] = None, + policy_definition_reference_ids: Optional[pulumi.Input[List[pulumi.Input[str]]]] = None, + policy_exemption_name: Optional[pulumi.Input[str]] = None, + scope: Optional[pulumi.Input[str]] = None, + __props__=None, + __name__=None, + __opts__=None): + """ + The policy exemption. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[str] description: The description of the policy exemption. + :param pulumi.Input[str] display_name: The display name of the policy exemption. + :param pulumi.Input[str] exemption_category: The policy exemption category. Possible values are Waiver and Mitigated. + :param pulumi.Input[str] expires_on: The expiration date and time (in UTC ISO 8601 format yyyy-MM-ddTHH:mm:ssZ) of the policy exemption. + :param pulumi.Input[Mapping[str, Any]] metadata: The policy exemption metadata. Metadata is an open ended object and is typically a collection of key value pairs. + :param pulumi.Input[str] policy_assignment_id: The ID of the policy assignment that is being exempted. + :param pulumi.Input[List[pulumi.Input[str]]] policy_definition_reference_ids: The policy definition reference ID list when the associated policy assignment is an assignment of a policy set definition. + :param pulumi.Input[str] policy_exemption_name: The name of the policy exemption to delete. + :param pulumi.Input[str] scope: The scope of the policy exemption. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = _utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['description'] = description + __props__['display_name'] = display_name + if exemption_category is None: + raise TypeError("Missing required property 'exemption_category'") + __props__['exemption_category'] = exemption_category + __props__['expires_on'] = expires_on + __props__['metadata'] = metadata + if policy_assignment_id is None: + raise TypeError("Missing required property 'policy_assignment_id'") + __props__['policy_assignment_id'] = policy_assignment_id + __props__['policy_definition_reference_ids'] = policy_definition_reference_ids + if policy_exemption_name is None: + raise TypeError("Missing required property 'policy_exemption_name'") + __props__['policy_exemption_name'] = policy_exemption_name + if scope is None: + raise TypeError("Missing required property 'scope'") + __props__['scope'] = scope + __props__['name'] = None + __props__['system_data'] = None + __props__['type'] = None + super(PolicyExemption, __self__).__init__( + 'azurerm:authorization/v20200701preview:PolicyExemption', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None) -> 'PolicyExemption': + """ + Get an existing PolicyExemption resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return PolicyExemption(resource_name, opts=opts, __props__=__props__) + + @property + @pulumi.getter + def description(self) -> pulumi.Output[Optional[str]]: + """ + The description of the policy exemption. + """ + return pulumi.get(self, "description") + + @property + @pulumi.getter(name="displayName") + def display_name(self) -> pulumi.Output[Optional[str]]: + """ + The display name of the policy exemption. + """ + return pulumi.get(self, "display_name") + + @property + @pulumi.getter(name="exemptionCategory") + def exemption_category(self) -> pulumi.Output[str]: + """ + The policy exemption category. Possible values are Waiver and Mitigated. + """ + return pulumi.get(self, "exemption_category") + + @property + @pulumi.getter(name="expiresOn") + def expires_on(self) -> pulumi.Output[Optional[str]]: + """ + The expiration date and time (in UTC ISO 8601 format yyyy-MM-ddTHH:mm:ssZ) of the policy exemption. + """ + return pulumi.get(self, "expires_on") + + @property + @pulumi.getter + def metadata(self) -> pulumi.Output[Optional[Mapping[str, Any]]]: + """ + The policy exemption metadata. Metadata is an open ended object and is typically a collection of key value pairs. + """ + return pulumi.get(self, "metadata") + + @property + @pulumi.getter + def name(self) -> pulumi.Output[str]: + """ + The name of the resource + """ + return pulumi.get(self, "name") + + @property + @pulumi.getter(name="policyAssignmentId") + def policy_assignment_id(self) -> pulumi.Output[str]: + """ + The ID of the policy assignment that is being exempted. + """ + return pulumi.get(self, "policy_assignment_id") + + @property + @pulumi.getter(name="policyDefinitionReferenceIds") + def policy_definition_reference_ids(self) -> pulumi.Output[Optional[List[str]]]: + """ + The policy definition reference ID list when the associated policy assignment is an assignment of a policy set definition. + """ + return pulumi.get(self, "policy_definition_reference_ids") + + @property + @pulumi.getter(name="systemData") + def system_data(self) -> pulumi.Output['outputs.SystemDataResponse']: + """ + Azure Resource Manager metadata containing createdBy and modifiedBy information. + """ + return pulumi.get(self, "system_data") + + @property + @pulumi.getter + def type(self) -> pulumi.Output[str]: + """ + The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + """ + return pulumi.get(self, "type") + + def translate_output_property(self, prop): + return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return _tables.SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop + diff --git a/sdk/python/pulumi_azurerm/devices/latest/__init__.py b/sdk/python/pulumi_azurerm/devices/latest/__init__.py index 804ab6b1a8ab..7af74bec9139 100644 --- a/sdk/python/pulumi_azurerm/devices/latest/__init__.py +++ b/sdk/python/pulumi_azurerm/devices/latest/__init__.py @@ -8,10 +8,12 @@ from .get_certificate import * from .get_dps_certificate import * from .get_iot_dps_resource import * +from .get_iot_dps_resource_private_endpoint_connection import * from .get_iot_hub_resource import * from .get_iot_hub_resource_event_hub_consumer_group import * from .get_private_endpoint_connection import * from .iot_dps_resource import * +from .iot_dps_resource_private_endpoint_connection import * from .iot_hub_resource import * from .iot_hub_resource_event_hub_consumer_group import * from .list_iot_dps_resource_keys import * diff --git a/sdk/python/pulumi_azurerm/devices/latest/_inputs.py b/sdk/python/pulumi_azurerm/devices/latest/_inputs.py index 0dcc37320374..0596919770a8 100644 --- a/sdk/python/pulumi_azurerm/devices/latest/_inputs.py +++ b/sdk/python/pulumi_azurerm/devices/latest/_inputs.py @@ -383,7 +383,9 @@ def __init__(__self__, *, authorization_policies: Optional[pulumi.Input[List[pulumi.Input['SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArgs']]]] = None, iot_hubs: Optional[pulumi.Input[List[pulumi.Input['IotHubDefinitionDescriptionArgs']]]] = None, ip_filter_rules: Optional[pulumi.Input[List[pulumi.Input['IpFilterRuleArgs']]]] = None, + private_endpoint_connections: Optional[pulumi.Input[List[pulumi.Input['PrivateEndpointConnectionArgs']]]] = None, provisioning_state: Optional[pulumi.Input[str]] = None, + public_network_access: Optional[pulumi.Input[str]] = None, state: Optional[pulumi.Input[str]] = None): """ the service specific properties of a provisioning service, including keys, linked iot hubs, current state, and system generated properties such as hostname and idScope @@ -391,7 +393,9 @@ def __init__(__self__, *, :param pulumi.Input[List[pulumi.Input['SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArgs']]] authorization_policies: List of authorization keys for a provisioning service. :param pulumi.Input[List[pulumi.Input['IotHubDefinitionDescriptionArgs']]] iot_hubs: List of IoT hubs associated with this provisioning service. :param pulumi.Input[List[pulumi.Input['IpFilterRuleArgs']]] ip_filter_rules: The IP filter rules. + :param pulumi.Input[List[pulumi.Input['PrivateEndpointConnectionArgs']]] private_endpoint_connections: Private endpoint connections created on this IotHub :param pulumi.Input[str] provisioning_state: The ARM provisioning state of the provisioning service. + :param pulumi.Input[str] public_network_access: Whether requests from Public Network are allowed :param pulumi.Input[str] state: Current state of the provisioning service. """ if allocation_policy is not None: @@ -402,8 +406,12 @@ def __init__(__self__, *, pulumi.set(__self__, "iot_hubs", iot_hubs) if ip_filter_rules is not None: pulumi.set(__self__, "ip_filter_rules", ip_filter_rules) + if private_endpoint_connections is not None: + pulumi.set(__self__, "private_endpoint_connections", private_endpoint_connections) if provisioning_state is not None: pulumi.set(__self__, "provisioning_state", provisioning_state) + if public_network_access is not None: + pulumi.set(__self__, "public_network_access", public_network_access) if state is not None: pulumi.set(__self__, "state", state) @@ -455,6 +463,18 @@ def ip_filter_rules(self) -> Optional[pulumi.Input[List[pulumi.Input['IpFilterRu def ip_filter_rules(self, value: Optional[pulumi.Input[List[pulumi.Input['IpFilterRuleArgs']]]]): pulumi.set(self, "ip_filter_rules", value) + @property + @pulumi.getter(name="privateEndpointConnections") + def private_endpoint_connections(self) -> Optional[pulumi.Input[List[pulumi.Input['PrivateEndpointConnectionArgs']]]]: + """ + Private endpoint connections created on this IotHub + """ + return pulumi.get(self, "private_endpoint_connections") + + @private_endpoint_connections.setter + def private_endpoint_connections(self, value: Optional[pulumi.Input[List[pulumi.Input['PrivateEndpointConnectionArgs']]]]): + pulumi.set(self, "private_endpoint_connections", value) + @property @pulumi.getter(name="provisioningState") def provisioning_state(self) -> Optional[pulumi.Input[str]]: @@ -467,6 +487,18 @@ def provisioning_state(self) -> Optional[pulumi.Input[str]]: def provisioning_state(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "provisioning_state", value) + @property + @pulumi.getter(name="publicNetworkAccess") + def public_network_access(self) -> Optional[pulumi.Input[str]]: + """ + Whether requests from Public Network are allowed + """ + return pulumi.get(self, "public_network_access") + + @public_network_access.setter + def public_network_access(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "public_network_access", value) + @property @pulumi.getter def state(self) -> Optional[pulumi.Input[str]]: @@ -529,7 +561,7 @@ def __init__(__self__, *, apply_allocation_policy: Optional[pulumi.Input[bool]] = None): """ Description of the IoT hub. - :param pulumi.Input[str] connection_string: Connection string og the IoT hub. + :param pulumi.Input[str] connection_string: Connection string of the IoT hub. :param pulumi.Input[str] location: ARM region of the IoT hub. :param pulumi.Input[float] allocation_weight: weight to apply for a given iot h. :param pulumi.Input[bool] apply_allocation_policy: flag for applying allocationPolicy or not for a given iot hub. @@ -545,7 +577,7 @@ def __init__(__self__, *, @pulumi.getter(name="connectionString") def connection_string(self) -> pulumi.Input[str]: """ - Connection string og the IoT hub. + Connection string of the IoT hub. """ return pulumi.get(self, "connection_string") diff --git a/sdk/python/pulumi_azurerm/devices/latest/dps_certificate.py b/sdk/python/pulumi_azurerm/devices/latest/dps_certificate.py index 7460646e8b29..9f13a011bb03 100644 --- a/sdk/python/pulumi_azurerm/devices/latest/dps_certificate.py +++ b/sdk/python/pulumi_azurerm/devices/latest/dps_certificate.py @@ -64,7 +64,7 @@ def __init__(__self__, __props__['name'] = None __props__['properties'] = None __props__['type'] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azurerm:devices/v20170821preview:DpsCertificate"), pulumi.Alias(type_="azurerm:devices/v20171115:DpsCertificate"), pulumi.Alias(type_="azurerm:devices/v20180122:DpsCertificate"), pulumi.Alias(type_="azurerm:devices/v20200101:DpsCertificate")]) + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azurerm:devices/v20170821preview:DpsCertificate"), pulumi.Alias(type_="azurerm:devices/v20171115:DpsCertificate"), pulumi.Alias(type_="azurerm:devices/v20180122:DpsCertificate"), pulumi.Alias(type_="azurerm:devices/v20200101:DpsCertificate"), pulumi.Alias(type_="azurerm:devices/v20200301:DpsCertificate")]) opts = pulumi.ResourceOptions.merge(opts, alias_opts) super(DpsCertificate, __self__).__init__( 'azurerm:devices/latest:DpsCertificate', diff --git a/sdk/python/pulumi_azurerm/devices/latest/get_iot_dps_resource_private_endpoint_connection.py b/sdk/python/pulumi_azurerm/devices/latest/get_iot_dps_resource_private_endpoint_connection.py new file mode 100644 index 000000000000..8a143c587d1a --- /dev/null +++ b/sdk/python/pulumi_azurerm/devices/latest/get_iot_dps_resource_private_endpoint_connection.py @@ -0,0 +1,94 @@ +# coding=utf-8 +# *** WARNING: this file was generated by the Pulumi SDK Generator. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import warnings +import pulumi +import pulumi.runtime +from typing import Any, Dict, List, Mapping, Optional, Tuple, Union +from ... import _utilities, _tables +from . import outputs + +__all__ = [ + 'GetIotDpsResourcePrivateEndpointConnectionResult', + 'AwaitableGetIotDpsResourcePrivateEndpointConnectionResult', + 'get_iot_dps_resource_private_endpoint_connection', +] + +@pulumi.output_type +class GetIotDpsResourcePrivateEndpointConnectionResult: + """ + The private endpoint connection of a provisioning service + """ + def __init__(__self__, name=None, properties=None, type=None): + if name and not isinstance(name, str): + raise TypeError("Expected argument 'name' to be a str") + pulumi.set(__self__, "name", name) + if properties and not isinstance(properties, dict): + raise TypeError("Expected argument 'properties' to be a dict") + pulumi.set(__self__, "properties", properties) + if type and not isinstance(type, str): + raise TypeError("Expected argument 'type' to be a str") + pulumi.set(__self__, "type", type) + + @property + @pulumi.getter + def name(self) -> str: + """ + The resource name. + """ + return pulumi.get(self, "name") + + @property + @pulumi.getter + def properties(self) -> 'outputs.PrivateEndpointConnectionPropertiesResponse': + """ + The properties of a private endpoint connection + """ + return pulumi.get(self, "properties") + + @property + @pulumi.getter + def type(self) -> str: + """ + The resource type. + """ + return pulumi.get(self, "type") + + +class AwaitableGetIotDpsResourcePrivateEndpointConnectionResult(GetIotDpsResourcePrivateEndpointConnectionResult): + # pylint: disable=using-constant-test + def __await__(self): + if False: + yield self + return GetIotDpsResourcePrivateEndpointConnectionResult( + name=self.name, + properties=self.properties, + type=self.type) + + +def get_iot_dps_resource_private_endpoint_connection(private_endpoint_connection_name: Optional[str] = None, + resource_group_name: Optional[str] = None, + resource_name: Optional[str] = None, + opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetIotDpsResourcePrivateEndpointConnectionResult: + """ + Use this data source to access information about an existing resource. + + :param str private_endpoint_connection_name: The name of the private endpoint connection + :param str resource_group_name: The name of the resource group that contains the provisioning service. + :param str resource_name: The name of the provisioning service. + """ + __args__ = dict() + __args__['privateEndpointConnectionName'] = private_endpoint_connection_name + __args__['resourceGroupName'] = resource_group_name + __args__['resourceName'] = resource_name + if opts is None: + opts = pulumi.InvokeOptions() + if opts.version is None: + opts.version = _utilities.get_version() + __ret__ = pulumi.runtime.invoke('azurerm:devices/latest:getIotDpsResourcePrivateEndpointConnection', __args__, opts=opts, typ=GetIotDpsResourcePrivateEndpointConnectionResult).value + + return AwaitableGetIotDpsResourcePrivateEndpointConnectionResult( + name=__ret__.name, + properties=__ret__.properties, + type=__ret__.type) diff --git a/sdk/python/pulumi_azurerm/devices/latest/iot_dps_resource.py b/sdk/python/pulumi_azurerm/devices/latest/iot_dps_resource.py index e4e48a6b8a9f..3d9ad5dc7a98 100644 --- a/sdk/python/pulumi_azurerm/devices/latest/iot_dps_resource.py +++ b/sdk/python/pulumi_azurerm/devices/latest/iot_dps_resource.py @@ -76,7 +76,7 @@ def __init__(__self__, __props__['tags'] = tags __props__['name'] = None __props__['type'] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azurerm:devices/v20170821preview:IotDpsResource"), pulumi.Alias(type_="azurerm:devices/v20171115:IotDpsResource"), pulumi.Alias(type_="azurerm:devices/v20180122:IotDpsResource"), pulumi.Alias(type_="azurerm:devices/v20200101:IotDpsResource")]) + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azurerm:devices/v20170821preview:IotDpsResource"), pulumi.Alias(type_="azurerm:devices/v20171115:IotDpsResource"), pulumi.Alias(type_="azurerm:devices/v20180122:IotDpsResource"), pulumi.Alias(type_="azurerm:devices/v20200101:IotDpsResource"), pulumi.Alias(type_="azurerm:devices/v20200301:IotDpsResource")]) opts = pulumi.ResourceOptions.merge(opts, alias_opts) super(IotDpsResource, __self__).__init__( 'azurerm:devices/latest:IotDpsResource', diff --git a/sdk/python/pulumi_azurerm/devices/latest/iot_dps_resource_private_endpoint_connection.py b/sdk/python/pulumi_azurerm/devices/latest/iot_dps_resource_private_endpoint_connection.py new file mode 100644 index 000000000000..7ac3ee3dec06 --- /dev/null +++ b/sdk/python/pulumi_azurerm/devices/latest/iot_dps_resource_private_endpoint_connection.py @@ -0,0 +1,123 @@ +# coding=utf-8 +# *** WARNING: this file was generated by the Pulumi SDK Generator. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import warnings +import pulumi +import pulumi.runtime +from typing import Any, Dict, List, Mapping, Optional, Tuple, Union +from ... import _utilities, _tables +from . import outputs +from ._inputs import * + +__all__ = ['IotDpsResourcePrivateEndpointConnection'] + + +class IotDpsResourcePrivateEndpointConnection(pulumi.CustomResource): + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + private_endpoint_connection_name: Optional[pulumi.Input[str]] = None, + properties: Optional[pulumi.Input[pulumi.InputType['PrivateEndpointConnectionPropertiesArgs']]] = None, + resource_group_name: Optional[pulumi.Input[str]] = None, + resource_name_: Optional[pulumi.Input[str]] = None, + __props__=None, + __name__=None, + __opts__=None): + """ + The private endpoint connection of a provisioning service + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[str] private_endpoint_connection_name: The name of the private endpoint connection + :param pulumi.Input[pulumi.InputType['PrivateEndpointConnectionPropertiesArgs']] properties: The properties of a private endpoint connection + :param pulumi.Input[str] resource_group_name: The name of the resource group that contains the provisioning service. + :param pulumi.Input[str] resource_name_: The name of the provisioning service. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = _utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + if private_endpoint_connection_name is None: + raise TypeError("Missing required property 'private_endpoint_connection_name'") + __props__['private_endpoint_connection_name'] = private_endpoint_connection_name + if properties is None: + raise TypeError("Missing required property 'properties'") + __props__['properties'] = properties + if resource_group_name is None: + raise TypeError("Missing required property 'resource_group_name'") + __props__['resource_group_name'] = resource_group_name + if resource_name_ is None: + raise TypeError("Missing required property 'resource_name_'") + __props__['resource_name'] = resource_name_ + __props__['name'] = None + __props__['type'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azurerm:devices/v20200301:IotDpsResourcePrivateEndpointConnection")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(IotDpsResourcePrivateEndpointConnection, __self__).__init__( + 'azurerm:devices/latest:IotDpsResourcePrivateEndpointConnection', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None) -> 'IotDpsResourcePrivateEndpointConnection': + """ + Get an existing IotDpsResourcePrivateEndpointConnection resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return IotDpsResourcePrivateEndpointConnection(resource_name, opts=opts, __props__=__props__) + + @property + @pulumi.getter + def name(self) -> pulumi.Output[str]: + """ + The resource name. + """ + return pulumi.get(self, "name") + + @property + @pulumi.getter + def properties(self) -> pulumi.Output['outputs.PrivateEndpointConnectionPropertiesResponse']: + """ + The properties of a private endpoint connection + """ + return pulumi.get(self, "properties") + + @property + @pulumi.getter + def type(self) -> pulumi.Output[str]: + """ + The resource type. + """ + return pulumi.get(self, "type") + + def translate_output_property(self, prop): + return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return _tables.SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop + diff --git a/sdk/python/pulumi_azurerm/devices/latest/outputs.py b/sdk/python/pulumi_azurerm/devices/latest/outputs.py index f9e10b3a7760..6bc5fcd7e644 100644 --- a/sdk/python/pulumi_azurerm/devices/latest/outputs.py +++ b/sdk/python/pulumi_azurerm/devices/latest/outputs.py @@ -422,7 +422,9 @@ def __init__(__self__, *, authorization_policies: Optional[List['outputs.SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponse']] = None, iot_hubs: Optional[List['outputs.IotHubDefinitionDescriptionResponse']] = None, ip_filter_rules: Optional[List['outputs.IpFilterRuleResponse']] = None, + private_endpoint_connections: Optional[List['outputs.PrivateEndpointConnectionResponse']] = None, provisioning_state: Optional[str] = None, + public_network_access: Optional[str] = None, state: Optional[str] = None): """ the service specific properties of a provisioning service, including keys, linked iot hubs, current state, and system generated properties such as hostname and idScope @@ -433,7 +435,9 @@ def __init__(__self__, *, :param List['SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseArgs'] authorization_policies: List of authorization keys for a provisioning service. :param List['IotHubDefinitionDescriptionResponseArgs'] iot_hubs: List of IoT hubs associated with this provisioning service. :param List['IpFilterRuleResponseArgs'] ip_filter_rules: The IP filter rules. + :param List['PrivateEndpointConnectionResponseArgs'] private_endpoint_connections: Private endpoint connections created on this IotHub :param str provisioning_state: The ARM provisioning state of the provisioning service. + :param str public_network_access: Whether requests from Public Network are allowed :param str state: Current state of the provisioning service. """ pulumi.set(__self__, "device_provisioning_host_name", device_provisioning_host_name) @@ -447,8 +451,12 @@ def __init__(__self__, *, pulumi.set(__self__, "iot_hubs", iot_hubs) if ip_filter_rules is not None: pulumi.set(__self__, "ip_filter_rules", ip_filter_rules) + if private_endpoint_connections is not None: + pulumi.set(__self__, "private_endpoint_connections", private_endpoint_connections) if provisioning_state is not None: pulumi.set(__self__, "provisioning_state", provisioning_state) + if public_network_access is not None: + pulumi.set(__self__, "public_network_access", public_network_access) if state is not None: pulumi.set(__self__, "state", state) @@ -508,6 +516,14 @@ def ip_filter_rules(self) -> Optional[List['outputs.IpFilterRuleResponse']]: """ return pulumi.get(self, "ip_filter_rules") + @property + @pulumi.getter(name="privateEndpointConnections") + def private_endpoint_connections(self) -> Optional[List['outputs.PrivateEndpointConnectionResponse']]: + """ + Private endpoint connections created on this IotHub + """ + return pulumi.get(self, "private_endpoint_connections") + @property @pulumi.getter(name="provisioningState") def provisioning_state(self) -> Optional[str]: @@ -516,6 +532,14 @@ def provisioning_state(self) -> Optional[str]: """ return pulumi.get(self, "provisioning_state") + @property + @pulumi.getter(name="publicNetworkAccess") + def public_network_access(self) -> Optional[str]: + """ + Whether requests from Public Network are allowed + """ + return pulumi.get(self, "public_network_access") + @property @pulumi.getter def state(self) -> Optional[str]: @@ -590,7 +614,7 @@ def __init__(__self__, *, apply_allocation_policy: Optional[bool] = None): """ Description of the IoT hub. - :param str connection_string: Connection string og the IoT hub. + :param str connection_string: Connection string of the IoT hub. :param str location: ARM region of the IoT hub. :param str name: Host name of the IoT hub. :param float allocation_weight: weight to apply for a given iot h. @@ -608,7 +632,7 @@ def __init__(__self__, *, @pulumi.getter(name="connectionString") def connection_string(self) -> str: """ - Connection string og the IoT hub. + Connection string of the IoT hub. """ return pulumi.get(self, "connection_string") diff --git a/sdk/python/pulumi_azurerm/devices/v20170821preview/dps_certificate.py b/sdk/python/pulumi_azurerm/devices/v20170821preview/dps_certificate.py index 3ce554914376..1c490f69fc99 100644 --- a/sdk/python/pulumi_azurerm/devices/v20170821preview/dps_certificate.py +++ b/sdk/python/pulumi_azurerm/devices/v20170821preview/dps_certificate.py @@ -64,7 +64,7 @@ def __init__(__self__, __props__['name'] = None __props__['properties'] = None __props__['type'] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azurerm:devices/latest:DpsCertificate"), pulumi.Alias(type_="azurerm:devices/v20171115:DpsCertificate"), pulumi.Alias(type_="azurerm:devices/v20180122:DpsCertificate"), pulumi.Alias(type_="azurerm:devices/v20200101:DpsCertificate")]) + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azurerm:devices/latest:DpsCertificate"), pulumi.Alias(type_="azurerm:devices/v20171115:DpsCertificate"), pulumi.Alias(type_="azurerm:devices/v20180122:DpsCertificate"), pulumi.Alias(type_="azurerm:devices/v20200101:DpsCertificate"), pulumi.Alias(type_="azurerm:devices/v20200301:DpsCertificate")]) opts = pulumi.ResourceOptions.merge(opts, alias_opts) super(DpsCertificate, __self__).__init__( 'azurerm:devices/v20170821preview:DpsCertificate', diff --git a/sdk/python/pulumi_azurerm/devices/v20170821preview/iot_dps_resource.py b/sdk/python/pulumi_azurerm/devices/v20170821preview/iot_dps_resource.py index e565175682a2..7919518df365 100644 --- a/sdk/python/pulumi_azurerm/devices/v20170821preview/iot_dps_resource.py +++ b/sdk/python/pulumi_azurerm/devices/v20170821preview/iot_dps_resource.py @@ -75,7 +75,7 @@ def __init__(__self__, __props__['tags'] = tags __props__['name'] = None __props__['type'] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azurerm:devices/latest:IotDpsResource"), pulumi.Alias(type_="azurerm:devices/v20171115:IotDpsResource"), pulumi.Alias(type_="azurerm:devices/v20180122:IotDpsResource"), pulumi.Alias(type_="azurerm:devices/v20200101:IotDpsResource")]) + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azurerm:devices/latest:IotDpsResource"), pulumi.Alias(type_="azurerm:devices/v20171115:IotDpsResource"), pulumi.Alias(type_="azurerm:devices/v20180122:IotDpsResource"), pulumi.Alias(type_="azurerm:devices/v20200101:IotDpsResource"), pulumi.Alias(type_="azurerm:devices/v20200301:IotDpsResource")]) opts = pulumi.ResourceOptions.merge(opts, alias_opts) super(IotDpsResource, __self__).__init__( 'azurerm:devices/v20170821preview:IotDpsResource', diff --git a/sdk/python/pulumi_azurerm/devices/v20171115/dps_certificate.py b/sdk/python/pulumi_azurerm/devices/v20171115/dps_certificate.py index 29d1bc7bb5d6..4c2be86427bc 100644 --- a/sdk/python/pulumi_azurerm/devices/v20171115/dps_certificate.py +++ b/sdk/python/pulumi_azurerm/devices/v20171115/dps_certificate.py @@ -64,7 +64,7 @@ def __init__(__self__, __props__['name'] = None __props__['properties'] = None __props__['type'] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azurerm:devices/latest:DpsCertificate"), pulumi.Alias(type_="azurerm:devices/v20170821preview:DpsCertificate"), pulumi.Alias(type_="azurerm:devices/v20180122:DpsCertificate"), pulumi.Alias(type_="azurerm:devices/v20200101:DpsCertificate")]) + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azurerm:devices/latest:DpsCertificate"), pulumi.Alias(type_="azurerm:devices/v20170821preview:DpsCertificate"), pulumi.Alias(type_="azurerm:devices/v20180122:DpsCertificate"), pulumi.Alias(type_="azurerm:devices/v20200101:DpsCertificate"), pulumi.Alias(type_="azurerm:devices/v20200301:DpsCertificate")]) opts = pulumi.ResourceOptions.merge(opts, alias_opts) super(DpsCertificate, __self__).__init__( 'azurerm:devices/v20171115:DpsCertificate', diff --git a/sdk/python/pulumi_azurerm/devices/v20171115/iot_dps_resource.py b/sdk/python/pulumi_azurerm/devices/v20171115/iot_dps_resource.py index 85a08161f3ca..75f30d186a98 100644 --- a/sdk/python/pulumi_azurerm/devices/v20171115/iot_dps_resource.py +++ b/sdk/python/pulumi_azurerm/devices/v20171115/iot_dps_resource.py @@ -76,7 +76,7 @@ def __init__(__self__, __props__['tags'] = tags __props__['name'] = None __props__['type'] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azurerm:devices/latest:IotDpsResource"), pulumi.Alias(type_="azurerm:devices/v20170821preview:IotDpsResource"), pulumi.Alias(type_="azurerm:devices/v20180122:IotDpsResource"), pulumi.Alias(type_="azurerm:devices/v20200101:IotDpsResource")]) + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azurerm:devices/latest:IotDpsResource"), pulumi.Alias(type_="azurerm:devices/v20170821preview:IotDpsResource"), pulumi.Alias(type_="azurerm:devices/v20180122:IotDpsResource"), pulumi.Alias(type_="azurerm:devices/v20200101:IotDpsResource"), pulumi.Alias(type_="azurerm:devices/v20200301:IotDpsResource")]) opts = pulumi.ResourceOptions.merge(opts, alias_opts) super(IotDpsResource, __self__).__init__( 'azurerm:devices/v20171115:IotDpsResource', diff --git a/sdk/python/pulumi_azurerm/devices/v20180122/dps_certificate.py b/sdk/python/pulumi_azurerm/devices/v20180122/dps_certificate.py index 2dafa3ece212..3474d772b20a 100644 --- a/sdk/python/pulumi_azurerm/devices/v20180122/dps_certificate.py +++ b/sdk/python/pulumi_azurerm/devices/v20180122/dps_certificate.py @@ -64,7 +64,7 @@ def __init__(__self__, __props__['name'] = None __props__['properties'] = None __props__['type'] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azurerm:devices/latest:DpsCertificate"), pulumi.Alias(type_="azurerm:devices/v20170821preview:DpsCertificate"), pulumi.Alias(type_="azurerm:devices/v20171115:DpsCertificate"), pulumi.Alias(type_="azurerm:devices/v20200101:DpsCertificate")]) + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azurerm:devices/latest:DpsCertificate"), pulumi.Alias(type_="azurerm:devices/v20170821preview:DpsCertificate"), pulumi.Alias(type_="azurerm:devices/v20171115:DpsCertificate"), pulumi.Alias(type_="azurerm:devices/v20200101:DpsCertificate"), pulumi.Alias(type_="azurerm:devices/v20200301:DpsCertificate")]) opts = pulumi.ResourceOptions.merge(opts, alias_opts) super(DpsCertificate, __self__).__init__( 'azurerm:devices/v20180122:DpsCertificate', diff --git a/sdk/python/pulumi_azurerm/devices/v20180122/iot_dps_resource.py b/sdk/python/pulumi_azurerm/devices/v20180122/iot_dps_resource.py index fcc618d2149c..133af5dbb239 100644 --- a/sdk/python/pulumi_azurerm/devices/v20180122/iot_dps_resource.py +++ b/sdk/python/pulumi_azurerm/devices/v20180122/iot_dps_resource.py @@ -76,7 +76,7 @@ def __init__(__self__, __props__['tags'] = tags __props__['name'] = None __props__['type'] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azurerm:devices/latest:IotDpsResource"), pulumi.Alias(type_="azurerm:devices/v20170821preview:IotDpsResource"), pulumi.Alias(type_="azurerm:devices/v20171115:IotDpsResource"), pulumi.Alias(type_="azurerm:devices/v20200101:IotDpsResource")]) + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azurerm:devices/latest:IotDpsResource"), pulumi.Alias(type_="azurerm:devices/v20170821preview:IotDpsResource"), pulumi.Alias(type_="azurerm:devices/v20171115:IotDpsResource"), pulumi.Alias(type_="azurerm:devices/v20200101:IotDpsResource"), pulumi.Alias(type_="azurerm:devices/v20200301:IotDpsResource")]) opts = pulumi.ResourceOptions.merge(opts, alias_opts) super(IotDpsResource, __self__).__init__( 'azurerm:devices/v20180122:IotDpsResource', diff --git a/sdk/python/pulumi_azurerm/devices/v20200101/dps_certificate.py b/sdk/python/pulumi_azurerm/devices/v20200101/dps_certificate.py index d7cf274cafc6..c66134383c11 100644 --- a/sdk/python/pulumi_azurerm/devices/v20200101/dps_certificate.py +++ b/sdk/python/pulumi_azurerm/devices/v20200101/dps_certificate.py @@ -64,7 +64,7 @@ def __init__(__self__, __props__['name'] = None __props__['properties'] = None __props__['type'] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azurerm:devices/latest:DpsCertificate"), pulumi.Alias(type_="azurerm:devices/v20170821preview:DpsCertificate"), pulumi.Alias(type_="azurerm:devices/v20171115:DpsCertificate"), pulumi.Alias(type_="azurerm:devices/v20180122:DpsCertificate")]) + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azurerm:devices/latest:DpsCertificate"), pulumi.Alias(type_="azurerm:devices/v20170821preview:DpsCertificate"), pulumi.Alias(type_="azurerm:devices/v20171115:DpsCertificate"), pulumi.Alias(type_="azurerm:devices/v20180122:DpsCertificate"), pulumi.Alias(type_="azurerm:devices/v20200301:DpsCertificate")]) opts = pulumi.ResourceOptions.merge(opts, alias_opts) super(DpsCertificate, __self__).__init__( 'azurerm:devices/v20200101:DpsCertificate', diff --git a/sdk/python/pulumi_azurerm/devices/v20200101/iot_dps_resource.py b/sdk/python/pulumi_azurerm/devices/v20200101/iot_dps_resource.py index f29d466d35b1..f38b116058f3 100644 --- a/sdk/python/pulumi_azurerm/devices/v20200101/iot_dps_resource.py +++ b/sdk/python/pulumi_azurerm/devices/v20200101/iot_dps_resource.py @@ -76,7 +76,7 @@ def __init__(__self__, __props__['tags'] = tags __props__['name'] = None __props__['type'] = None - alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azurerm:devices/latest:IotDpsResource"), pulumi.Alias(type_="azurerm:devices/v20170821preview:IotDpsResource"), pulumi.Alias(type_="azurerm:devices/v20171115:IotDpsResource"), pulumi.Alias(type_="azurerm:devices/v20180122:IotDpsResource")]) + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azurerm:devices/latest:IotDpsResource"), pulumi.Alias(type_="azurerm:devices/v20170821preview:IotDpsResource"), pulumi.Alias(type_="azurerm:devices/v20171115:IotDpsResource"), pulumi.Alias(type_="azurerm:devices/v20180122:IotDpsResource"), pulumi.Alias(type_="azurerm:devices/v20200301:IotDpsResource")]) opts = pulumi.ResourceOptions.merge(opts, alias_opts) super(IotDpsResource, __self__).__init__( 'azurerm:devices/v20200101:IotDpsResource', diff --git a/sdk/python/pulumi_azurerm/devices/v20200301/__init__.py b/sdk/python/pulumi_azurerm/devices/v20200301/__init__.py index 631ef6a0802a..7af74bec9139 100644 --- a/sdk/python/pulumi_azurerm/devices/v20200301/__init__.py +++ b/sdk/python/pulumi_azurerm/devices/v20200301/__init__.py @@ -4,12 +4,20 @@ # Export this package's modules as members: from .certificate import * +from .dps_certificate import * from .get_certificate import * +from .get_dps_certificate import * +from .get_iot_dps_resource import * +from .get_iot_dps_resource_private_endpoint_connection import * from .get_iot_hub_resource import * from .get_iot_hub_resource_event_hub_consumer_group import * from .get_private_endpoint_connection import * +from .iot_dps_resource import * +from .iot_dps_resource_private_endpoint_connection import * from .iot_hub_resource import * from .iot_hub_resource_event_hub_consumer_group import * +from .list_iot_dps_resource_keys import * +from .list_iot_dps_resource_keys_for_key_name import * from .list_iot_hub_resource_keys import * from .list_iot_hub_resource_keys_for_key_name import * from .private_endpoint_connection import * diff --git a/sdk/python/pulumi_azurerm/devices/v20200301/_inputs.py b/sdk/python/pulumi_azurerm/devices/v20200301/_inputs.py index 6ebe20241105..d8e6eb160794 100644 --- a/sdk/python/pulumi_azurerm/devices/v20200301/_inputs.py +++ b/sdk/python/pulumi_azurerm/devices/v20200301/_inputs.py @@ -14,6 +14,9 @@ 'EventHubPropertiesArgs', 'FallbackRoutePropertiesArgs', 'FeedbackPropertiesArgs', + 'IotDpsPropertiesDescriptionArgs', + 'IotDpsSkuInfoArgs', + 'IotHubDefinitionDescriptionArgs', 'IotHubPropertiesArgs', 'IotHubSkuInfoArgs', 'IpFilterRuleArgs', @@ -29,6 +32,7 @@ 'RoutingServiceBusTopicEndpointPropertiesArgs', 'RoutingStorageContainerPropertiesArgs', 'SharedAccessSignatureAuthorizationRuleArgs', + 'SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArgs', 'StorageEndpointPropertiesArgs', ] @@ -322,6 +326,252 @@ def ttl_as_iso8601(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "ttl_as_iso8601", value) +@pulumi.input_type +class IotDpsPropertiesDescriptionArgs: + def __init__(__self__, *, + allocation_policy: Optional[pulumi.Input[str]] = None, + authorization_policies: Optional[pulumi.Input[List[pulumi.Input['SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArgs']]]] = None, + iot_hubs: Optional[pulumi.Input[List[pulumi.Input['IotHubDefinitionDescriptionArgs']]]] = None, + ip_filter_rules: Optional[pulumi.Input[List[pulumi.Input['IpFilterRuleArgs']]]] = None, + private_endpoint_connections: Optional[pulumi.Input[List[pulumi.Input['PrivateEndpointConnectionArgs']]]] = None, + provisioning_state: Optional[pulumi.Input[str]] = None, + public_network_access: Optional[pulumi.Input[str]] = None, + state: Optional[pulumi.Input[str]] = None): + """ + the service specific properties of a provisioning service, including keys, linked iot hubs, current state, and system generated properties such as hostname and idScope + :param pulumi.Input[str] allocation_policy: Allocation policy to be used by this provisioning service. + :param pulumi.Input[List[pulumi.Input['SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArgs']]] authorization_policies: List of authorization keys for a provisioning service. + :param pulumi.Input[List[pulumi.Input['IotHubDefinitionDescriptionArgs']]] iot_hubs: List of IoT hubs associated with this provisioning service. + :param pulumi.Input[List[pulumi.Input['IpFilterRuleArgs']]] ip_filter_rules: The IP filter rules. + :param pulumi.Input[List[pulumi.Input['PrivateEndpointConnectionArgs']]] private_endpoint_connections: Private endpoint connections created on this IotHub + :param pulumi.Input[str] provisioning_state: The ARM provisioning state of the provisioning service. + :param pulumi.Input[str] public_network_access: Whether requests from Public Network are allowed + :param pulumi.Input[str] state: Current state of the provisioning service. + """ + if allocation_policy is not None: + pulumi.set(__self__, "allocation_policy", allocation_policy) + if authorization_policies is not None: + pulumi.set(__self__, "authorization_policies", authorization_policies) + if iot_hubs is not None: + pulumi.set(__self__, "iot_hubs", iot_hubs) + if ip_filter_rules is not None: + pulumi.set(__self__, "ip_filter_rules", ip_filter_rules) + if private_endpoint_connections is not None: + pulumi.set(__self__, "private_endpoint_connections", private_endpoint_connections) + if provisioning_state is not None: + pulumi.set(__self__, "provisioning_state", provisioning_state) + if public_network_access is not None: + pulumi.set(__self__, "public_network_access", public_network_access) + if state is not None: + pulumi.set(__self__, "state", state) + + @property + @pulumi.getter(name="allocationPolicy") + def allocation_policy(self) -> Optional[pulumi.Input[str]]: + """ + Allocation policy to be used by this provisioning service. + """ + return pulumi.get(self, "allocation_policy") + + @allocation_policy.setter + def allocation_policy(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "allocation_policy", value) + + @property + @pulumi.getter(name="authorizationPolicies") + def authorization_policies(self) -> Optional[pulumi.Input[List[pulumi.Input['SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArgs']]]]: + """ + List of authorization keys for a provisioning service. + """ + return pulumi.get(self, "authorization_policies") + + @authorization_policies.setter + def authorization_policies(self, value: Optional[pulumi.Input[List[pulumi.Input['SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArgs']]]]): + pulumi.set(self, "authorization_policies", value) + + @property + @pulumi.getter(name="iotHubs") + def iot_hubs(self) -> Optional[pulumi.Input[List[pulumi.Input['IotHubDefinitionDescriptionArgs']]]]: + """ + List of IoT hubs associated with this provisioning service. + """ + return pulumi.get(self, "iot_hubs") + + @iot_hubs.setter + def iot_hubs(self, value: Optional[pulumi.Input[List[pulumi.Input['IotHubDefinitionDescriptionArgs']]]]): + pulumi.set(self, "iot_hubs", value) + + @property + @pulumi.getter(name="ipFilterRules") + def ip_filter_rules(self) -> Optional[pulumi.Input[List[pulumi.Input['IpFilterRuleArgs']]]]: + """ + The IP filter rules. + """ + return pulumi.get(self, "ip_filter_rules") + + @ip_filter_rules.setter + def ip_filter_rules(self, value: Optional[pulumi.Input[List[pulumi.Input['IpFilterRuleArgs']]]]): + pulumi.set(self, "ip_filter_rules", value) + + @property + @pulumi.getter(name="privateEndpointConnections") + def private_endpoint_connections(self) -> Optional[pulumi.Input[List[pulumi.Input['PrivateEndpointConnectionArgs']]]]: + """ + Private endpoint connections created on this IotHub + """ + return pulumi.get(self, "private_endpoint_connections") + + @private_endpoint_connections.setter + def private_endpoint_connections(self, value: Optional[pulumi.Input[List[pulumi.Input['PrivateEndpointConnectionArgs']]]]): + pulumi.set(self, "private_endpoint_connections", value) + + @property + @pulumi.getter(name="provisioningState") + def provisioning_state(self) -> Optional[pulumi.Input[str]]: + """ + The ARM provisioning state of the provisioning service. + """ + return pulumi.get(self, "provisioning_state") + + @provisioning_state.setter + def provisioning_state(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "provisioning_state", value) + + @property + @pulumi.getter(name="publicNetworkAccess") + def public_network_access(self) -> Optional[pulumi.Input[str]]: + """ + Whether requests from Public Network are allowed + """ + return pulumi.get(self, "public_network_access") + + @public_network_access.setter + def public_network_access(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "public_network_access", value) + + @property + @pulumi.getter + def state(self) -> Optional[pulumi.Input[str]]: + """ + Current state of the provisioning service. + """ + return pulumi.get(self, "state") + + @state.setter + def state(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "state", value) + + +@pulumi.input_type +class IotDpsSkuInfoArgs: + def __init__(__self__, *, + capacity: Optional[pulumi.Input[float]] = None, + name: Optional[pulumi.Input[str]] = None): + """ + List of possible provisioning service SKUs. + :param pulumi.Input[float] capacity: The number of units to provision + :param pulumi.Input[str] name: Sku name. + """ + if capacity is not None: + pulumi.set(__self__, "capacity", capacity) + if name is not None: + pulumi.set(__self__, "name", name) + + @property + @pulumi.getter + def capacity(self) -> Optional[pulumi.Input[float]]: + """ + The number of units to provision + """ + return pulumi.get(self, "capacity") + + @capacity.setter + def capacity(self, value: Optional[pulumi.Input[float]]): + pulumi.set(self, "capacity", value) + + @property + @pulumi.getter + def name(self) -> Optional[pulumi.Input[str]]: + """ + Sku name. + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "name", value) + + +@pulumi.input_type +class IotHubDefinitionDescriptionArgs: + def __init__(__self__, *, + connection_string: pulumi.Input[str], + location: pulumi.Input[str], + allocation_weight: Optional[pulumi.Input[float]] = None, + apply_allocation_policy: Optional[pulumi.Input[bool]] = None): + """ + Description of the IoT hub. + :param pulumi.Input[str] connection_string: Connection string of the IoT hub. + :param pulumi.Input[str] location: ARM region of the IoT hub. + :param pulumi.Input[float] allocation_weight: weight to apply for a given iot h. + :param pulumi.Input[bool] apply_allocation_policy: flag for applying allocationPolicy or not for a given iot hub. + """ + pulumi.set(__self__, "connection_string", connection_string) + pulumi.set(__self__, "location", location) + if allocation_weight is not None: + pulumi.set(__self__, "allocation_weight", allocation_weight) + if apply_allocation_policy is not None: + pulumi.set(__self__, "apply_allocation_policy", apply_allocation_policy) + + @property + @pulumi.getter(name="connectionString") + def connection_string(self) -> pulumi.Input[str]: + """ + Connection string of the IoT hub. + """ + return pulumi.get(self, "connection_string") + + @connection_string.setter + def connection_string(self, value: pulumi.Input[str]): + pulumi.set(self, "connection_string", value) + + @property + @pulumi.getter + def location(self) -> pulumi.Input[str]: + """ + ARM region of the IoT hub. + """ + return pulumi.get(self, "location") + + @location.setter + def location(self, value: pulumi.Input[str]): + pulumi.set(self, "location", value) + + @property + @pulumi.getter(name="allocationWeight") + def allocation_weight(self) -> Optional[pulumi.Input[float]]: + """ + weight to apply for a given iot h. + """ + return pulumi.get(self, "allocation_weight") + + @allocation_weight.setter + def allocation_weight(self, value: Optional[pulumi.Input[float]]): + pulumi.set(self, "allocation_weight", value) + + @property + @pulumi.getter(name="applyAllocationPolicy") + def apply_allocation_policy(self) -> Optional[pulumi.Input[bool]]: + """ + flag for applying allocationPolicy or not for a given iot hub. + """ + return pulumi.get(self, "apply_allocation_policy") + + @apply_allocation_policy.setter + def apply_allocation_policy(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "apply_allocation_policy", value) + + @pulumi.input_type class IotHubPropertiesArgs: def __init__(__self__, *, @@ -1687,6 +1937,76 @@ def secondary_key(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "secondary_key", value) +@pulumi.input_type +class SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionArgs: + def __init__(__self__, *, + key_name: pulumi.Input[str], + rights: pulumi.Input[str], + primary_key: Optional[pulumi.Input[str]] = None, + secondary_key: Optional[pulumi.Input[str]] = None): + """ + Description of the shared access key. + :param pulumi.Input[str] key_name: Name of the key. + :param pulumi.Input[str] rights: Rights that this key has. + :param pulumi.Input[str] primary_key: Primary SAS key value. + :param pulumi.Input[str] secondary_key: Secondary SAS key value. + """ + pulumi.set(__self__, "key_name", key_name) + pulumi.set(__self__, "rights", rights) + if primary_key is not None: + pulumi.set(__self__, "primary_key", primary_key) + if secondary_key is not None: + pulumi.set(__self__, "secondary_key", secondary_key) + + @property + @pulumi.getter(name="keyName") + def key_name(self) -> pulumi.Input[str]: + """ + Name of the key. + """ + return pulumi.get(self, "key_name") + + @key_name.setter + def key_name(self, value: pulumi.Input[str]): + pulumi.set(self, "key_name", value) + + @property + @pulumi.getter + def rights(self) -> pulumi.Input[str]: + """ + Rights that this key has. + """ + return pulumi.get(self, "rights") + + @rights.setter + def rights(self, value: pulumi.Input[str]): + pulumi.set(self, "rights", value) + + @property + @pulumi.getter(name="primaryKey") + def primary_key(self) -> Optional[pulumi.Input[str]]: + """ + Primary SAS key value. + """ + return pulumi.get(self, "primary_key") + + @primary_key.setter + def primary_key(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "primary_key", value) + + @property + @pulumi.getter(name="secondaryKey") + def secondary_key(self) -> Optional[pulumi.Input[str]]: + """ + Secondary SAS key value. + """ + return pulumi.get(self, "secondary_key") + + @secondary_key.setter + def secondary_key(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "secondary_key", value) + + @pulumi.input_type class StorageEndpointPropertiesArgs: def __init__(__self__, *, diff --git a/sdk/python/pulumi_azurerm/devices/v20200301/dps_certificate.py b/sdk/python/pulumi_azurerm/devices/v20200301/dps_certificate.py new file mode 100644 index 000000000000..00de06ed21da --- /dev/null +++ b/sdk/python/pulumi_azurerm/devices/v20200301/dps_certificate.py @@ -0,0 +1,130 @@ +# coding=utf-8 +# *** WARNING: this file was generated by the Pulumi SDK Generator. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import warnings +import pulumi +import pulumi.runtime +from typing import Any, Dict, List, Mapping, Optional, Tuple, Union +from ... import _utilities, _tables +from . import outputs + +__all__ = ['DpsCertificate'] + + +class DpsCertificate(pulumi.CustomResource): + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + certificate: Optional[pulumi.Input[str]] = None, + certificate_name: Optional[pulumi.Input[str]] = None, + provisioning_service_name: Optional[pulumi.Input[str]] = None, + resource_group_name: Optional[pulumi.Input[str]] = None, + __props__=None, + __name__=None, + __opts__=None): + """ + The X509 Certificate. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[str] certificate: Base-64 representation of the X509 leaf certificate .cer file or just .pem file content. + :param pulumi.Input[str] certificate_name: The name of the certificate create or update. + :param pulumi.Input[str] provisioning_service_name: The name of the provisioning service. + :param pulumi.Input[str] resource_group_name: Resource group identifier. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = _utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['certificate'] = certificate + if certificate_name is None: + raise TypeError("Missing required property 'certificate_name'") + __props__['certificate_name'] = certificate_name + if provisioning_service_name is None: + raise TypeError("Missing required property 'provisioning_service_name'") + __props__['provisioning_service_name'] = provisioning_service_name + if resource_group_name is None: + raise TypeError("Missing required property 'resource_group_name'") + __props__['resource_group_name'] = resource_group_name + __props__['etag'] = None + __props__['name'] = None + __props__['properties'] = None + __props__['type'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azurerm:devices/latest:DpsCertificate"), pulumi.Alias(type_="azurerm:devices/v20170821preview:DpsCertificate"), pulumi.Alias(type_="azurerm:devices/v20171115:DpsCertificate"), pulumi.Alias(type_="azurerm:devices/v20180122:DpsCertificate"), pulumi.Alias(type_="azurerm:devices/v20200101:DpsCertificate")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(DpsCertificate, __self__).__init__( + 'azurerm:devices/v20200301:DpsCertificate', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None) -> 'DpsCertificate': + """ + Get an existing DpsCertificate resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return DpsCertificate(resource_name, opts=opts, __props__=__props__) + + @property + @pulumi.getter + def etag(self) -> pulumi.Output[str]: + """ + The entity tag. + """ + return pulumi.get(self, "etag") + + @property + @pulumi.getter + def name(self) -> pulumi.Output[str]: + """ + The name of the certificate. + """ + return pulumi.get(self, "name") + + @property + @pulumi.getter + def properties(self) -> pulumi.Output['outputs.CertificatePropertiesResponse']: + """ + properties of a certificate + """ + return pulumi.get(self, "properties") + + @property + @pulumi.getter + def type(self) -> pulumi.Output[str]: + """ + The resource type. + """ + return pulumi.get(self, "type") + + def translate_output_property(self, prop): + return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return _tables.SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop + diff --git a/sdk/python/pulumi_azurerm/devices/v20200301/get_dps_certificate.py b/sdk/python/pulumi_azurerm/devices/v20200301/get_dps_certificate.py new file mode 100644 index 000000000000..e707c60faa96 --- /dev/null +++ b/sdk/python/pulumi_azurerm/devices/v20200301/get_dps_certificate.py @@ -0,0 +1,107 @@ +# coding=utf-8 +# *** WARNING: this file was generated by the Pulumi SDK Generator. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import warnings +import pulumi +import pulumi.runtime +from typing import Any, Dict, List, Mapping, Optional, Tuple, Union +from ... import _utilities, _tables +from . import outputs + +__all__ = [ + 'GetDpsCertificateResult', + 'AwaitableGetDpsCertificateResult', + 'get_dps_certificate', +] + +@pulumi.output_type +class GetDpsCertificateResult: + """ + The X509 Certificate. + """ + def __init__(__self__, etag=None, name=None, properties=None, type=None): + if etag and not isinstance(etag, str): + raise TypeError("Expected argument 'etag' to be a str") + pulumi.set(__self__, "etag", etag) + if name and not isinstance(name, str): + raise TypeError("Expected argument 'name' to be a str") + pulumi.set(__self__, "name", name) + if properties and not isinstance(properties, dict): + raise TypeError("Expected argument 'properties' to be a dict") + pulumi.set(__self__, "properties", properties) + if type and not isinstance(type, str): + raise TypeError("Expected argument 'type' to be a str") + pulumi.set(__self__, "type", type) + + @property + @pulumi.getter + def etag(self) -> str: + """ + The entity tag. + """ + return pulumi.get(self, "etag") + + @property + @pulumi.getter + def name(self) -> str: + """ + The name of the certificate. + """ + return pulumi.get(self, "name") + + @property + @pulumi.getter + def properties(self) -> 'outputs.CertificatePropertiesResponse': + """ + properties of a certificate + """ + return pulumi.get(self, "properties") + + @property + @pulumi.getter + def type(self) -> str: + """ + The resource type. + """ + return pulumi.get(self, "type") + + +class AwaitableGetDpsCertificateResult(GetDpsCertificateResult): + # pylint: disable=using-constant-test + def __await__(self): + if False: + yield self + return GetDpsCertificateResult( + etag=self.etag, + name=self.name, + properties=self.properties, + type=self.type) + + +def get_dps_certificate(certificate_name: Optional[str] = None, + provisioning_service_name: Optional[str] = None, + resource_group_name: Optional[str] = None, + opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDpsCertificateResult: + """ + Use this data source to access information about an existing resource. + + :param str certificate_name: Name of the certificate to retrieve. + :param str provisioning_service_name: Name of the provisioning service the certificate is associated with. + :param str resource_group_name: Resource group identifier. + """ + __args__ = dict() + __args__['certificateName'] = certificate_name + __args__['provisioningServiceName'] = provisioning_service_name + __args__['resourceGroupName'] = resource_group_name + if opts is None: + opts = pulumi.InvokeOptions() + if opts.version is None: + opts.version = _utilities.get_version() + __ret__ = pulumi.runtime.invoke('azurerm:devices/v20200301:getDpsCertificate', __args__, opts=opts, typ=GetDpsCertificateResult).value + + return AwaitableGetDpsCertificateResult( + etag=__ret__.etag, + name=__ret__.name, + properties=__ret__.properties, + type=__ret__.type) diff --git a/sdk/python/pulumi_azurerm/devices/v20200301/get_iot_dps_resource.py b/sdk/python/pulumi_azurerm/devices/v20200301/get_iot_dps_resource.py new file mode 100644 index 000000000000..6d29ba920457 --- /dev/null +++ b/sdk/python/pulumi_azurerm/devices/v20200301/get_iot_dps_resource.py @@ -0,0 +1,143 @@ +# coding=utf-8 +# *** WARNING: this file was generated by the Pulumi SDK Generator. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import warnings +import pulumi +import pulumi.runtime +from typing import Any, Dict, List, Mapping, Optional, Tuple, Union +from ... import _utilities, _tables +from . import outputs + +__all__ = [ + 'GetIotDpsResourceResult', + 'AwaitableGetIotDpsResourceResult', + 'get_iot_dps_resource', +] + +@pulumi.output_type +class GetIotDpsResourceResult: + """ + The description of the provisioning service. + """ + def __init__(__self__, etag=None, location=None, name=None, properties=None, sku=None, tags=None, type=None): + if etag and not isinstance(etag, str): + raise TypeError("Expected argument 'etag' to be a str") + pulumi.set(__self__, "etag", etag) + if location and not isinstance(location, str): + raise TypeError("Expected argument 'location' to be a str") + pulumi.set(__self__, "location", location) + if name and not isinstance(name, str): + raise TypeError("Expected argument 'name' to be a str") + pulumi.set(__self__, "name", name) + if properties and not isinstance(properties, dict): + raise TypeError("Expected argument 'properties' to be a dict") + pulumi.set(__self__, "properties", properties) + if sku and not isinstance(sku, dict): + raise TypeError("Expected argument 'sku' to be a dict") + pulumi.set(__self__, "sku", sku) + if tags and not isinstance(tags, dict): + raise TypeError("Expected argument 'tags' to be a dict") + pulumi.set(__self__, "tags", tags) + if type and not isinstance(type, str): + raise TypeError("Expected argument 'type' to be a str") + pulumi.set(__self__, "type", type) + + @property + @pulumi.getter + def etag(self) -> Optional[str]: + """ + The Etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal ETag convention. + """ + return pulumi.get(self, "etag") + + @property + @pulumi.getter + def location(self) -> str: + """ + The resource location. + """ + return pulumi.get(self, "location") + + @property + @pulumi.getter + def name(self) -> str: + """ + The resource name. + """ + return pulumi.get(self, "name") + + @property + @pulumi.getter + def properties(self) -> 'outputs.IotDpsPropertiesDescriptionResponse': + """ + Service specific properties for a provisioning service + """ + return pulumi.get(self, "properties") + + @property + @pulumi.getter + def sku(self) -> 'outputs.IotDpsSkuInfoResponse': + """ + Sku info for a provisioning Service. + """ + return pulumi.get(self, "sku") + + @property + @pulumi.getter + def tags(self) -> Optional[Mapping[str, str]]: + """ + The resource tags. + """ + return pulumi.get(self, "tags") + + @property + @pulumi.getter + def type(self) -> str: + """ + The resource type. + """ + return pulumi.get(self, "type") + + +class AwaitableGetIotDpsResourceResult(GetIotDpsResourceResult): + # pylint: disable=using-constant-test + def __await__(self): + if False: + yield self + return GetIotDpsResourceResult( + etag=self.etag, + location=self.location, + name=self.name, + properties=self.properties, + sku=self.sku, + tags=self.tags, + type=self.type) + + +def get_iot_dps_resource(provisioning_service_name: Optional[str] = None, + resource_group_name: Optional[str] = None, + opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetIotDpsResourceResult: + """ + Use this data source to access information about an existing resource. + + :param str provisioning_service_name: Name of the provisioning service to retrieve. + :param str resource_group_name: Resource group name. + """ + __args__ = dict() + __args__['provisioningServiceName'] = provisioning_service_name + __args__['resourceGroupName'] = resource_group_name + if opts is None: + opts = pulumi.InvokeOptions() + if opts.version is None: + opts.version = _utilities.get_version() + __ret__ = pulumi.runtime.invoke('azurerm:devices/v20200301:getIotDpsResource', __args__, opts=opts, typ=GetIotDpsResourceResult).value + + return AwaitableGetIotDpsResourceResult( + etag=__ret__.etag, + location=__ret__.location, + name=__ret__.name, + properties=__ret__.properties, + sku=__ret__.sku, + tags=__ret__.tags, + type=__ret__.type) diff --git a/sdk/python/pulumi_azurerm/devices/v20200301/get_iot_dps_resource_private_endpoint_connection.py b/sdk/python/pulumi_azurerm/devices/v20200301/get_iot_dps_resource_private_endpoint_connection.py new file mode 100644 index 000000000000..08ddf0d1e835 --- /dev/null +++ b/sdk/python/pulumi_azurerm/devices/v20200301/get_iot_dps_resource_private_endpoint_connection.py @@ -0,0 +1,94 @@ +# coding=utf-8 +# *** WARNING: this file was generated by the Pulumi SDK Generator. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import warnings +import pulumi +import pulumi.runtime +from typing import Any, Dict, List, Mapping, Optional, Tuple, Union +from ... import _utilities, _tables +from . import outputs + +__all__ = [ + 'GetIotDpsResourcePrivateEndpointConnectionResult', + 'AwaitableGetIotDpsResourcePrivateEndpointConnectionResult', + 'get_iot_dps_resource_private_endpoint_connection', +] + +@pulumi.output_type +class GetIotDpsResourcePrivateEndpointConnectionResult: + """ + The private endpoint connection of a provisioning service + """ + def __init__(__self__, name=None, properties=None, type=None): + if name and not isinstance(name, str): + raise TypeError("Expected argument 'name' to be a str") + pulumi.set(__self__, "name", name) + if properties and not isinstance(properties, dict): + raise TypeError("Expected argument 'properties' to be a dict") + pulumi.set(__self__, "properties", properties) + if type and not isinstance(type, str): + raise TypeError("Expected argument 'type' to be a str") + pulumi.set(__self__, "type", type) + + @property + @pulumi.getter + def name(self) -> str: + """ + The resource name. + """ + return pulumi.get(self, "name") + + @property + @pulumi.getter + def properties(self) -> 'outputs.PrivateEndpointConnectionPropertiesResponse': + """ + The properties of a private endpoint connection + """ + return pulumi.get(self, "properties") + + @property + @pulumi.getter + def type(self) -> str: + """ + The resource type. + """ + return pulumi.get(self, "type") + + +class AwaitableGetIotDpsResourcePrivateEndpointConnectionResult(GetIotDpsResourcePrivateEndpointConnectionResult): + # pylint: disable=using-constant-test + def __await__(self): + if False: + yield self + return GetIotDpsResourcePrivateEndpointConnectionResult( + name=self.name, + properties=self.properties, + type=self.type) + + +def get_iot_dps_resource_private_endpoint_connection(private_endpoint_connection_name: Optional[str] = None, + resource_group_name: Optional[str] = None, + resource_name: Optional[str] = None, + opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetIotDpsResourcePrivateEndpointConnectionResult: + """ + Use this data source to access information about an existing resource. + + :param str private_endpoint_connection_name: The name of the private endpoint connection + :param str resource_group_name: The name of the resource group that contains the provisioning service. + :param str resource_name: The name of the provisioning service. + """ + __args__ = dict() + __args__['privateEndpointConnectionName'] = private_endpoint_connection_name + __args__['resourceGroupName'] = resource_group_name + __args__['resourceName'] = resource_name + if opts is None: + opts = pulumi.InvokeOptions() + if opts.version is None: + opts.version = _utilities.get_version() + __ret__ = pulumi.runtime.invoke('azurerm:devices/v20200301:getIotDpsResourcePrivateEndpointConnection', __args__, opts=opts, typ=GetIotDpsResourcePrivateEndpointConnectionResult).value + + return AwaitableGetIotDpsResourcePrivateEndpointConnectionResult( + name=__ret__.name, + properties=__ret__.properties, + type=__ret__.type) diff --git a/sdk/python/pulumi_azurerm/devices/v20200301/iot_dps_resource.py b/sdk/python/pulumi_azurerm/devices/v20200301/iot_dps_resource.py new file mode 100644 index 000000000000..851dfb3bc2d0 --- /dev/null +++ b/sdk/python/pulumi_azurerm/devices/v20200301/iot_dps_resource.py @@ -0,0 +1,166 @@ +# coding=utf-8 +# *** WARNING: this file was generated by the Pulumi SDK Generator. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import warnings +import pulumi +import pulumi.runtime +from typing import Any, Dict, List, Mapping, Optional, Tuple, Union +from ... import _utilities, _tables +from . import outputs +from ._inputs import * + +__all__ = ['IotDpsResource'] + + +class IotDpsResource(pulumi.CustomResource): + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + etag: Optional[pulumi.Input[str]] = None, + location: Optional[pulumi.Input[str]] = None, + properties: Optional[pulumi.Input[pulumi.InputType['IotDpsPropertiesDescriptionArgs']]] = None, + provisioning_service_name: Optional[pulumi.Input[str]] = None, + resource_group_name: Optional[pulumi.Input[str]] = None, + sku: Optional[pulumi.Input[pulumi.InputType['IotDpsSkuInfoArgs']]] = None, + tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + __props__=None, + __name__=None, + __opts__=None): + """ + The description of the provisioning service. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[str] etag: The Etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal ETag convention. + :param pulumi.Input[str] location: The resource location. + :param pulumi.Input[pulumi.InputType['IotDpsPropertiesDescriptionArgs']] properties: Service specific properties for a provisioning service + :param pulumi.Input[str] provisioning_service_name: Name of provisioning service to create or update. + :param pulumi.Input[str] resource_group_name: Resource group identifier. + :param pulumi.Input[pulumi.InputType['IotDpsSkuInfoArgs']] sku: Sku info for a provisioning Service. + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: The resource tags. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = _utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + __props__['etag'] = etag + if location is None: + raise TypeError("Missing required property 'location'") + __props__['location'] = location + if properties is None: + raise TypeError("Missing required property 'properties'") + __props__['properties'] = properties + if provisioning_service_name is None: + raise TypeError("Missing required property 'provisioning_service_name'") + __props__['provisioning_service_name'] = provisioning_service_name + if resource_group_name is None: + raise TypeError("Missing required property 'resource_group_name'") + __props__['resource_group_name'] = resource_group_name + if sku is None: + raise TypeError("Missing required property 'sku'") + __props__['sku'] = sku + __props__['tags'] = tags + __props__['name'] = None + __props__['type'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azurerm:devices/latest:IotDpsResource"), pulumi.Alias(type_="azurerm:devices/v20170821preview:IotDpsResource"), pulumi.Alias(type_="azurerm:devices/v20171115:IotDpsResource"), pulumi.Alias(type_="azurerm:devices/v20180122:IotDpsResource"), pulumi.Alias(type_="azurerm:devices/v20200101:IotDpsResource")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(IotDpsResource, __self__).__init__( + 'azurerm:devices/v20200301:IotDpsResource', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None) -> 'IotDpsResource': + """ + Get an existing IotDpsResource resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return IotDpsResource(resource_name, opts=opts, __props__=__props__) + + @property + @pulumi.getter + def etag(self) -> pulumi.Output[Optional[str]]: + """ + The Etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal ETag convention. + """ + return pulumi.get(self, "etag") + + @property + @pulumi.getter + def location(self) -> pulumi.Output[str]: + """ + The resource location. + """ + return pulumi.get(self, "location") + + @property + @pulumi.getter + def name(self) -> pulumi.Output[str]: + """ + The resource name. + """ + return pulumi.get(self, "name") + + @property + @pulumi.getter + def properties(self) -> pulumi.Output['outputs.IotDpsPropertiesDescriptionResponse']: + """ + Service specific properties for a provisioning service + """ + return pulumi.get(self, "properties") + + @property + @pulumi.getter + def sku(self) -> pulumi.Output['outputs.IotDpsSkuInfoResponse']: + """ + Sku info for a provisioning Service. + """ + return pulumi.get(self, "sku") + + @property + @pulumi.getter + def tags(self) -> pulumi.Output[Optional[Mapping[str, str]]]: + """ + The resource tags. + """ + return pulumi.get(self, "tags") + + @property + @pulumi.getter + def type(self) -> pulumi.Output[str]: + """ + The resource type. + """ + return pulumi.get(self, "type") + + def translate_output_property(self, prop): + return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return _tables.SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop + diff --git a/sdk/python/pulumi_azurerm/devices/v20200301/iot_dps_resource_private_endpoint_connection.py b/sdk/python/pulumi_azurerm/devices/v20200301/iot_dps_resource_private_endpoint_connection.py new file mode 100644 index 000000000000..01345f05c335 --- /dev/null +++ b/sdk/python/pulumi_azurerm/devices/v20200301/iot_dps_resource_private_endpoint_connection.py @@ -0,0 +1,123 @@ +# coding=utf-8 +# *** WARNING: this file was generated by the Pulumi SDK Generator. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import warnings +import pulumi +import pulumi.runtime +from typing import Any, Dict, List, Mapping, Optional, Tuple, Union +from ... import _utilities, _tables +from . import outputs +from ._inputs import * + +__all__ = ['IotDpsResourcePrivateEndpointConnection'] + + +class IotDpsResourcePrivateEndpointConnection(pulumi.CustomResource): + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + private_endpoint_connection_name: Optional[pulumi.Input[str]] = None, + properties: Optional[pulumi.Input[pulumi.InputType['PrivateEndpointConnectionPropertiesArgs']]] = None, + resource_group_name: Optional[pulumi.Input[str]] = None, + resource_name_: Optional[pulumi.Input[str]] = None, + __props__=None, + __name__=None, + __opts__=None): + """ + The private endpoint connection of a provisioning service + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[str] private_endpoint_connection_name: The name of the private endpoint connection + :param pulumi.Input[pulumi.InputType['PrivateEndpointConnectionPropertiesArgs']] properties: The properties of a private endpoint connection + :param pulumi.Input[str] resource_group_name: The name of the resource group that contains the provisioning service. + :param pulumi.Input[str] resource_name_: The name of the provisioning service. + """ + if __name__ is not None: + warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) + resource_name = __name__ + if __opts__ is not None: + warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) + opts = __opts__ + if opts is None: + opts = pulumi.ResourceOptions() + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.version is None: + opts.version = _utilities.get_version() + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = dict() + + if private_endpoint_connection_name is None: + raise TypeError("Missing required property 'private_endpoint_connection_name'") + __props__['private_endpoint_connection_name'] = private_endpoint_connection_name + if properties is None: + raise TypeError("Missing required property 'properties'") + __props__['properties'] = properties + if resource_group_name is None: + raise TypeError("Missing required property 'resource_group_name'") + __props__['resource_group_name'] = resource_group_name + if resource_name_ is None: + raise TypeError("Missing required property 'resource_name_'") + __props__['resource_name'] = resource_name_ + __props__['name'] = None + __props__['type'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azurerm:devices/latest:IotDpsResourcePrivateEndpointConnection")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(IotDpsResourcePrivateEndpointConnection, __self__).__init__( + 'azurerm:devices/v20200301:IotDpsResourcePrivateEndpointConnection', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None) -> 'IotDpsResourcePrivateEndpointConnection': + """ + Get an existing IotDpsResourcePrivateEndpointConnection resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = dict() + + return IotDpsResourcePrivateEndpointConnection(resource_name, opts=opts, __props__=__props__) + + @property + @pulumi.getter + def name(self) -> pulumi.Output[str]: + """ + The resource name. + """ + return pulumi.get(self, "name") + + @property + @pulumi.getter + def properties(self) -> pulumi.Output['outputs.PrivateEndpointConnectionPropertiesResponse']: + """ + The properties of a private endpoint connection + """ + return pulumi.get(self, "properties") + + @property + @pulumi.getter + def type(self) -> pulumi.Output[str]: + """ + The resource type. + """ + return pulumi.get(self, "type") + + def translate_output_property(self, prop): + return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + def translate_input_property(self, prop): + return _tables.SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop + diff --git a/sdk/python/pulumi_azurerm/devices/v20200301/list_iot_dps_resource_keys.py b/sdk/python/pulumi_azurerm/devices/v20200301/list_iot_dps_resource_keys.py new file mode 100644 index 000000000000..13006f771c75 --- /dev/null +++ b/sdk/python/pulumi_azurerm/devices/v20200301/list_iot_dps_resource_keys.py @@ -0,0 +1,78 @@ +# coding=utf-8 +# *** WARNING: this file was generated by the Pulumi SDK Generator. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import warnings +import pulumi +import pulumi.runtime +from typing import Any, Dict, List, Mapping, Optional, Tuple, Union +from ... import _utilities, _tables +from . import outputs + +__all__ = [ + 'ListIotDpsResourceKeysResult', + 'AwaitableListIotDpsResourceKeysResult', + 'list_iot_dps_resource_keys', +] + +@pulumi.output_type +class ListIotDpsResourceKeysResult: + """ + List of shared access keys. + """ + def __init__(__self__, next_link=None, value=None): + if next_link and not isinstance(next_link, str): + raise TypeError("Expected argument 'next_link' to be a str") + pulumi.set(__self__, "next_link", next_link) + if value and not isinstance(value, list): + raise TypeError("Expected argument 'value' to be a list") + pulumi.set(__self__, "value", value) + + @property + @pulumi.getter(name="nextLink") + def next_link(self) -> str: + """ + The next link. + """ + return pulumi.get(self, "next_link") + + @property + @pulumi.getter + def value(self) -> Optional[List['outputs.SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponse']]: + """ + The list of shared access policies. + """ + return pulumi.get(self, "value") + + +class AwaitableListIotDpsResourceKeysResult(ListIotDpsResourceKeysResult): + # pylint: disable=using-constant-test + def __await__(self): + if False: + yield self + return ListIotDpsResourceKeysResult( + next_link=self.next_link, + value=self.value) + + +def list_iot_dps_resource_keys(provisioning_service_name: Optional[str] = None, + resource_group_name: Optional[str] = None, + opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableListIotDpsResourceKeysResult: + """ + Use this data source to access information about an existing resource. + + :param str provisioning_service_name: The provisioning service name to get the shared access keys for. + :param str resource_group_name: resource group name + """ + __args__ = dict() + __args__['provisioningServiceName'] = provisioning_service_name + __args__['resourceGroupName'] = resource_group_name + if opts is None: + opts = pulumi.InvokeOptions() + if opts.version is None: + opts.version = _utilities.get_version() + __ret__ = pulumi.runtime.invoke('azurerm:devices/v20200301:listIotDpsResourceKeys', __args__, opts=opts, typ=ListIotDpsResourceKeysResult).value + + return AwaitableListIotDpsResourceKeysResult( + next_link=__ret__.next_link, + value=__ret__.value) diff --git a/sdk/python/pulumi_azurerm/devices/v20200301/list_iot_dps_resource_keys_for_key_name.py b/sdk/python/pulumi_azurerm/devices/v20200301/list_iot_dps_resource_keys_for_key_name.py new file mode 100644 index 000000000000..1e2a12c4e9ad --- /dev/null +++ b/sdk/python/pulumi_azurerm/devices/v20200301/list_iot_dps_resource_keys_for_key_name.py @@ -0,0 +1,106 @@ +# coding=utf-8 +# *** WARNING: this file was generated by the Pulumi SDK Generator. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import warnings +import pulumi +import pulumi.runtime +from typing import Any, Dict, List, Mapping, Optional, Tuple, Union +from ... import _utilities, _tables + +__all__ = [ + 'ListIotDpsResourceKeysForKeyNameResult', + 'AwaitableListIotDpsResourceKeysForKeyNameResult', + 'list_iot_dps_resource_keys_for_key_name', +] + +@pulumi.output_type +class ListIotDpsResourceKeysForKeyNameResult: + """ + Description of the shared access key. + """ + def __init__(__self__, key_name=None, primary_key=None, rights=None, secondary_key=None): + if key_name and not isinstance(key_name, str): + raise TypeError("Expected argument 'key_name' to be a str") + pulumi.set(__self__, "key_name", key_name) + if primary_key and not isinstance(primary_key, str): + raise TypeError("Expected argument 'primary_key' to be a str") + pulumi.set(__self__, "primary_key", primary_key) + if rights and not isinstance(rights, str): + raise TypeError("Expected argument 'rights' to be a str") + pulumi.set(__self__, "rights", rights) + if secondary_key and not isinstance(secondary_key, str): + raise TypeError("Expected argument 'secondary_key' to be a str") + pulumi.set(__self__, "secondary_key", secondary_key) + + @property + @pulumi.getter(name="keyName") + def key_name(self) -> str: + """ + Name of the key. + """ + return pulumi.get(self, "key_name") + + @property + @pulumi.getter(name="primaryKey") + def primary_key(self) -> Optional[str]: + """ + Primary SAS key value. + """ + return pulumi.get(self, "primary_key") + + @property + @pulumi.getter + def rights(self) -> str: + """ + Rights that this key has. + """ + return pulumi.get(self, "rights") + + @property + @pulumi.getter(name="secondaryKey") + def secondary_key(self) -> Optional[str]: + """ + Secondary SAS key value. + """ + return pulumi.get(self, "secondary_key") + + +class AwaitableListIotDpsResourceKeysForKeyNameResult(ListIotDpsResourceKeysForKeyNameResult): + # pylint: disable=using-constant-test + def __await__(self): + if False: + yield self + return ListIotDpsResourceKeysForKeyNameResult( + key_name=self.key_name, + primary_key=self.primary_key, + rights=self.rights, + secondary_key=self.secondary_key) + + +def list_iot_dps_resource_keys_for_key_name(key_name: Optional[str] = None, + provisioning_service_name: Optional[str] = None, + resource_group_name: Optional[str] = None, + opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableListIotDpsResourceKeysForKeyNameResult: + """ + Use this data source to access information about an existing resource. + + :param str key_name: Logical key name to get key-values for. + :param str provisioning_service_name: Name of the provisioning service. + :param str resource_group_name: The name of the resource group that contains the provisioning service. + """ + __args__ = dict() + __args__['keyName'] = key_name + __args__['provisioningServiceName'] = provisioning_service_name + __args__['resourceGroupName'] = resource_group_name + if opts is None: + opts = pulumi.InvokeOptions() + if opts.version is None: + opts.version = _utilities.get_version() + __ret__ = pulumi.runtime.invoke('azurerm:devices/v20200301:listIotDpsResourceKeysForKeyName', __args__, opts=opts, typ=ListIotDpsResourceKeysForKeyNameResult).value + + return AwaitableListIotDpsResourceKeysForKeyNameResult( + key_name=__ret__.key_name, + primary_key=__ret__.primary_key, + rights=__ret__.rights, + secondary_key=__ret__.secondary_key) diff --git a/sdk/python/pulumi_azurerm/devices/v20200301/outputs.py b/sdk/python/pulumi_azurerm/devices/v20200301/outputs.py index 0938631e4a99..6bc5fcd7e644 100644 --- a/sdk/python/pulumi_azurerm/devices/v20200301/outputs.py +++ b/sdk/python/pulumi_azurerm/devices/v20200301/outputs.py @@ -16,6 +16,9 @@ 'EventHubPropertiesResponse', 'FallbackRoutePropertiesResponse', 'FeedbackPropertiesResponse', + 'IotDpsPropertiesDescriptionResponse', + 'IotDpsSkuInfoResponse', + 'IotHubDefinitionDescriptionResponse', 'IotHubLocationDescriptionResponse', 'IotHubPropertiesResponse', 'IotHubSkuInfoResponse', @@ -32,6 +35,7 @@ 'RoutingServiceBusQueueEndpointPropertiesResponse', 'RoutingServiceBusTopicEndpointPropertiesResponse', 'RoutingStorageContainerPropertiesResponse', + 'SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponse', 'SharedAccessSignatureAuthorizationRuleResponse', 'StorageEndpointPropertiesResponse', ] @@ -47,17 +51,15 @@ def __init__(__self__, *, is_verified: bool, subject: str, thumbprint: str, - updated: str, - certificate: Optional[str] = None): + updated: str): """ The description of an X509 CA Certificate. - :param str created: The certificate's create date and time. + :param str created: The certificate's creation date and time. :param str expiry: The certificate's expiration date and time. :param bool is_verified: Determines whether certificate has been verified. :param str subject: The certificate's subject name. :param str thumbprint: The certificate's thumbprint. :param str updated: The certificate's last update date and time. - :param str certificate: The certificate content """ pulumi.set(__self__, "created", created) pulumi.set(__self__, "expiry", expiry) @@ -65,14 +67,12 @@ def __init__(__self__, *, pulumi.set(__self__, "subject", subject) pulumi.set(__self__, "thumbprint", thumbprint) pulumi.set(__self__, "updated", updated) - if certificate is not None: - pulumi.set(__self__, "certificate", certificate) @property @pulumi.getter def created(self) -> str: """ - The certificate's create date and time. + The certificate's creation date and time. """ return pulumi.get(self, "created") @@ -116,14 +116,6 @@ def updated(self) -> str: """ return pulumi.get(self, "updated") - @property - @pulumi.getter - def certificate(self) -> Optional[str]: - """ - The certificate content - """ - return pulumi.get(self, "certificate") - def _translate_property(self, prop): return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop @@ -417,6 +409,269 @@ def _translate_property(self, prop): return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop +@pulumi.output_type +class IotDpsPropertiesDescriptionResponse(dict): + """ + the service specific properties of a provisioning service, including keys, linked iot hubs, current state, and system generated properties such as hostname and idScope + """ + def __init__(__self__, *, + device_provisioning_host_name: str, + id_scope: str, + service_operations_host_name: str, + allocation_policy: Optional[str] = None, + authorization_policies: Optional[List['outputs.SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponse']] = None, + iot_hubs: Optional[List['outputs.IotHubDefinitionDescriptionResponse']] = None, + ip_filter_rules: Optional[List['outputs.IpFilterRuleResponse']] = None, + private_endpoint_connections: Optional[List['outputs.PrivateEndpointConnectionResponse']] = None, + provisioning_state: Optional[str] = None, + public_network_access: Optional[str] = None, + state: Optional[str] = None): + """ + the service specific properties of a provisioning service, including keys, linked iot hubs, current state, and system generated properties such as hostname and idScope + :param str device_provisioning_host_name: Device endpoint for this provisioning service. + :param str id_scope: Unique identifier of this provisioning service. + :param str service_operations_host_name: Service endpoint for provisioning service. + :param str allocation_policy: Allocation policy to be used by this provisioning service. + :param List['SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponseArgs'] authorization_policies: List of authorization keys for a provisioning service. + :param List['IotHubDefinitionDescriptionResponseArgs'] iot_hubs: List of IoT hubs associated with this provisioning service. + :param List['IpFilterRuleResponseArgs'] ip_filter_rules: The IP filter rules. + :param List['PrivateEndpointConnectionResponseArgs'] private_endpoint_connections: Private endpoint connections created on this IotHub + :param str provisioning_state: The ARM provisioning state of the provisioning service. + :param str public_network_access: Whether requests from Public Network are allowed + :param str state: Current state of the provisioning service. + """ + pulumi.set(__self__, "device_provisioning_host_name", device_provisioning_host_name) + pulumi.set(__self__, "id_scope", id_scope) + pulumi.set(__self__, "service_operations_host_name", service_operations_host_name) + if allocation_policy is not None: + pulumi.set(__self__, "allocation_policy", allocation_policy) + if authorization_policies is not None: + pulumi.set(__self__, "authorization_policies", authorization_policies) + if iot_hubs is not None: + pulumi.set(__self__, "iot_hubs", iot_hubs) + if ip_filter_rules is not None: + pulumi.set(__self__, "ip_filter_rules", ip_filter_rules) + if private_endpoint_connections is not None: + pulumi.set(__self__, "private_endpoint_connections", private_endpoint_connections) + if provisioning_state is not None: + pulumi.set(__self__, "provisioning_state", provisioning_state) + if public_network_access is not None: + pulumi.set(__self__, "public_network_access", public_network_access) + if state is not None: + pulumi.set(__self__, "state", state) + + @property + @pulumi.getter(name="deviceProvisioningHostName") + def device_provisioning_host_name(self) -> str: + """ + Device endpoint for this provisioning service. + """ + return pulumi.get(self, "device_provisioning_host_name") + + @property + @pulumi.getter(name="idScope") + def id_scope(self) -> str: + """ + Unique identifier of this provisioning service. + """ + return pulumi.get(self, "id_scope") + + @property + @pulumi.getter(name="serviceOperationsHostName") + def service_operations_host_name(self) -> str: + """ + Service endpoint for provisioning service. + """ + return pulumi.get(self, "service_operations_host_name") + + @property + @pulumi.getter(name="allocationPolicy") + def allocation_policy(self) -> Optional[str]: + """ + Allocation policy to be used by this provisioning service. + """ + return pulumi.get(self, "allocation_policy") + + @property + @pulumi.getter(name="authorizationPolicies") + def authorization_policies(self) -> Optional[List['outputs.SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponse']]: + """ + List of authorization keys for a provisioning service. + """ + return pulumi.get(self, "authorization_policies") + + @property + @pulumi.getter(name="iotHubs") + def iot_hubs(self) -> Optional[List['outputs.IotHubDefinitionDescriptionResponse']]: + """ + List of IoT hubs associated with this provisioning service. + """ + return pulumi.get(self, "iot_hubs") + + @property + @pulumi.getter(name="ipFilterRules") + def ip_filter_rules(self) -> Optional[List['outputs.IpFilterRuleResponse']]: + """ + The IP filter rules. + """ + return pulumi.get(self, "ip_filter_rules") + + @property + @pulumi.getter(name="privateEndpointConnections") + def private_endpoint_connections(self) -> Optional[List['outputs.PrivateEndpointConnectionResponse']]: + """ + Private endpoint connections created on this IotHub + """ + return pulumi.get(self, "private_endpoint_connections") + + @property + @pulumi.getter(name="provisioningState") + def provisioning_state(self) -> Optional[str]: + """ + The ARM provisioning state of the provisioning service. + """ + return pulumi.get(self, "provisioning_state") + + @property + @pulumi.getter(name="publicNetworkAccess") + def public_network_access(self) -> Optional[str]: + """ + Whether requests from Public Network are allowed + """ + return pulumi.get(self, "public_network_access") + + @property + @pulumi.getter + def state(self) -> Optional[str]: + """ + Current state of the provisioning service. + """ + return pulumi.get(self, "state") + + def _translate_property(self, prop): + return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + +@pulumi.output_type +class IotDpsSkuInfoResponse(dict): + """ + List of possible provisioning service SKUs. + """ + def __init__(__self__, *, + tier: str, + capacity: Optional[float] = None, + name: Optional[str] = None): + """ + List of possible provisioning service SKUs. + :param str tier: Pricing tier name of the provisioning service. + :param float capacity: The number of units to provision + :param str name: Sku name. + """ + pulumi.set(__self__, "tier", tier) + if capacity is not None: + pulumi.set(__self__, "capacity", capacity) + if name is not None: + pulumi.set(__self__, "name", name) + + @property + @pulumi.getter + def tier(self) -> str: + """ + Pricing tier name of the provisioning service. + """ + return pulumi.get(self, "tier") + + @property + @pulumi.getter + def capacity(self) -> Optional[float]: + """ + The number of units to provision + """ + return pulumi.get(self, "capacity") + + @property + @pulumi.getter + def name(self) -> Optional[str]: + """ + Sku name. + """ + return pulumi.get(self, "name") + + def _translate_property(self, prop): + return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + +@pulumi.output_type +class IotHubDefinitionDescriptionResponse(dict): + """ + Description of the IoT hub. + """ + def __init__(__self__, *, + connection_string: str, + location: str, + name: str, + allocation_weight: Optional[float] = None, + apply_allocation_policy: Optional[bool] = None): + """ + Description of the IoT hub. + :param str connection_string: Connection string of the IoT hub. + :param str location: ARM region of the IoT hub. + :param str name: Host name of the IoT hub. + :param float allocation_weight: weight to apply for a given iot h. + :param bool apply_allocation_policy: flag for applying allocationPolicy or not for a given iot hub. + """ + pulumi.set(__self__, "connection_string", connection_string) + pulumi.set(__self__, "location", location) + pulumi.set(__self__, "name", name) + if allocation_weight is not None: + pulumi.set(__self__, "allocation_weight", allocation_weight) + if apply_allocation_policy is not None: + pulumi.set(__self__, "apply_allocation_policy", apply_allocation_policy) + + @property + @pulumi.getter(name="connectionString") + def connection_string(self) -> str: + """ + Connection string of the IoT hub. + """ + return pulumi.get(self, "connection_string") + + @property + @pulumi.getter + def location(self) -> str: + """ + ARM region of the IoT hub. + """ + return pulumi.get(self, "location") + + @property + @pulumi.getter + def name(self) -> str: + """ + Host name of the IoT hub. + """ + return pulumi.get(self, "name") + + @property + @pulumi.getter(name="allocationWeight") + def allocation_weight(self) -> Optional[float]: + """ + weight to apply for a given iot h. + """ + return pulumi.get(self, "allocation_weight") + + @property + @pulumi.getter(name="applyAllocationPolicy") + def apply_allocation_policy(self) -> Optional[bool]: + """ + flag for applying allocationPolicy or not for a given iot hub. + """ + return pulumi.get(self, "apply_allocation_policy") + + def _translate_property(self, prop): + return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + @pulumi.output_type class IotHubLocationDescriptionResponse(dict): """ @@ -1659,6 +1914,66 @@ def _translate_property(self, prop): return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop +@pulumi.output_type +class SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponse(dict): + """ + Description of the shared access key. + """ + def __init__(__self__, *, + key_name: str, + rights: str, + primary_key: Optional[str] = None, + secondary_key: Optional[str] = None): + """ + Description of the shared access key. + :param str key_name: Name of the key. + :param str rights: Rights that this key has. + :param str primary_key: Primary SAS key value. + :param str secondary_key: Secondary SAS key value. + """ + pulumi.set(__self__, "key_name", key_name) + pulumi.set(__self__, "rights", rights) + if primary_key is not None: + pulumi.set(__self__, "primary_key", primary_key) + if secondary_key is not None: + pulumi.set(__self__, "secondary_key", secondary_key) + + @property + @pulumi.getter(name="keyName") + def key_name(self) -> str: + """ + Name of the key. + """ + return pulumi.get(self, "key_name") + + @property + @pulumi.getter + def rights(self) -> str: + """ + Rights that this key has. + """ + return pulumi.get(self, "rights") + + @property + @pulumi.getter(name="primaryKey") + def primary_key(self) -> Optional[str]: + """ + Primary SAS key value. + """ + return pulumi.get(self, "primary_key") + + @property + @pulumi.getter(name="secondaryKey") + def secondary_key(self) -> Optional[str]: + """ + Secondary SAS key value. + """ + return pulumi.get(self, "secondary_key") + + def _translate_property(self, prop): + return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + @pulumi.output_type class SharedAccessSignatureAuthorizationRuleResponse(dict): """ diff --git a/sdk/python/pulumi_azurerm/insights/latest/_inputs.py b/sdk/python/pulumi_azurerm/insights/latest/_inputs.py index df01b8f1bd51..6734be95518a 100644 --- a/sdk/python/pulumi_azurerm/insights/latest/_inputs.py +++ b/sdk/python/pulumi_azurerm/insights/latest/_inputs.py @@ -889,7 +889,8 @@ def __init__(__self__, *, time_aggregation: pulumi.Input[Mapping[str, Any]], dimensions: Optional[pulumi.Input[List[pulumi.Input['MetricDimensionArgs']]]] = None, ignore_data_before: Optional[pulumi.Input[str]] = None, - metric_namespace: Optional[pulumi.Input[str]] = None): + metric_namespace: Optional[pulumi.Input[str]] = None, + skip_metric_validation: Optional[pulumi.Input[bool]] = None): """ Criterion for dynamic threshold. :param pulumi.Input[str] alert_sensitivity: The extent of deviation required to trigger an alert. This will affect how tight the threshold is to the metric series pattern. @@ -902,6 +903,7 @@ def __init__(__self__, *, :param pulumi.Input[List[pulumi.Input['MetricDimensionArgs']]] dimensions: List of dimension conditions. :param pulumi.Input[str] ignore_data_before: Use this option to set the date from which to start learning the metric historical data and calculate the dynamic thresholds (in ISO8601 format) :param pulumi.Input[str] metric_namespace: Namespace of the metric. + :param pulumi.Input[bool] skip_metric_validation: Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. """ pulumi.set(__self__, "alert_sensitivity", alert_sensitivity) pulumi.set(__self__, "criterion_type", 'DynamicThresholdCriterion') @@ -916,6 +918,8 @@ def __init__(__self__, *, pulumi.set(__self__, "ignore_data_before", ignore_data_before) if metric_namespace is not None: pulumi.set(__self__, "metric_namespace", metric_namespace) + if skip_metric_validation is not None: + pulumi.set(__self__, "skip_metric_validation", skip_metric_validation) @property @pulumi.getter(name="alertSensitivity") @@ -1037,6 +1041,18 @@ def metric_namespace(self) -> Optional[pulumi.Input[str]]: def metric_namespace(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "metric_namespace", value) + @property + @pulumi.getter(name="skipMetricValidation") + def skip_metric_validation(self) -> Optional[pulumi.Input[bool]]: + """ + Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. + """ + return pulumi.get(self, "skip_metric_validation") + + @skip_metric_validation.setter + def skip_metric_validation(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "skip_metric_validation", value) + @pulumi.input_type class DynamicThresholdFailingPeriodsArgs: @@ -1755,7 +1771,8 @@ def __init__(__self__, *, threshold: pulumi.Input[float], time_aggregation: pulumi.Input[Mapping[str, Any]], dimensions: Optional[pulumi.Input[List[pulumi.Input['MetricDimensionArgs']]]] = None, - metric_namespace: Optional[pulumi.Input[str]] = None): + metric_namespace: Optional[pulumi.Input[str]] = None, + skip_metric_validation: Optional[pulumi.Input[bool]] = None): """ Criterion to filter metrics. :param pulumi.Input[str] criterion_type: Specifies the type of threshold criteria @@ -1766,6 +1783,7 @@ def __init__(__self__, *, :param pulumi.Input[Mapping[str, Any]] time_aggregation: the criteria time aggregation types. :param pulumi.Input[List[pulumi.Input['MetricDimensionArgs']]] dimensions: List of dimension conditions. :param pulumi.Input[str] metric_namespace: Namespace of the metric. + :param pulumi.Input[bool] skip_metric_validation: Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. """ pulumi.set(__self__, "criterion_type", 'StaticThresholdCriterion') pulumi.set(__self__, "metric_name", metric_name) @@ -1777,6 +1795,8 @@ def __init__(__self__, *, pulumi.set(__self__, "dimensions", dimensions) if metric_namespace is not None: pulumi.set(__self__, "metric_namespace", metric_namespace) + if skip_metric_validation is not None: + pulumi.set(__self__, "skip_metric_validation", skip_metric_validation) @property @pulumi.getter(name="criterionType") @@ -1874,6 +1894,18 @@ def metric_namespace(self) -> Optional[pulumi.Input[str]]: def metric_namespace(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "metric_namespace", value) + @property + @pulumi.getter(name="skipMetricValidation") + def skip_metric_validation(self) -> Optional[pulumi.Input[bool]]: + """ + Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. + """ + return pulumi.get(self, "skip_metric_validation") + + @skip_metric_validation.setter + def skip_metric_validation(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "skip_metric_validation", value) + @pulumi.input_type class MetricDimensionArgs: diff --git a/sdk/python/pulumi_azurerm/insights/latest/outputs.py b/sdk/python/pulumi_azurerm/insights/latest/outputs.py index bf2a2b993c7a..f7955a1b4e83 100644 --- a/sdk/python/pulumi_azurerm/insights/latest/outputs.py +++ b/sdk/python/pulumi_azurerm/insights/latest/outputs.py @@ -804,7 +804,8 @@ def __init__(__self__, *, time_aggregation: Mapping[str, Any], dimensions: Optional[List['outputs.MetricDimensionResponse']] = None, ignore_data_before: Optional[str] = None, - metric_namespace: Optional[str] = None): + metric_namespace: Optional[str] = None, + skip_metric_validation: Optional[bool] = None): """ Criterion for dynamic threshold. :param str alert_sensitivity: The extent of deviation required to trigger an alert. This will affect how tight the threshold is to the metric series pattern. @@ -817,6 +818,7 @@ def __init__(__self__, *, :param List['MetricDimensionResponseArgs'] dimensions: List of dimension conditions. :param str ignore_data_before: Use this option to set the date from which to start learning the metric historical data and calculate the dynamic thresholds (in ISO8601 format) :param str metric_namespace: Namespace of the metric. + :param bool skip_metric_validation: Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. """ pulumi.set(__self__, "alert_sensitivity", alert_sensitivity) pulumi.set(__self__, "criterion_type", 'DynamicThresholdCriterion') @@ -831,6 +833,8 @@ def __init__(__self__, *, pulumi.set(__self__, "ignore_data_before", ignore_data_before) if metric_namespace is not None: pulumi.set(__self__, "metric_namespace", metric_namespace) + if skip_metric_validation is not None: + pulumi.set(__self__, "skip_metric_validation", skip_metric_validation) @property @pulumi.getter(name="alertSensitivity") @@ -912,6 +916,14 @@ def metric_namespace(self) -> Optional[str]: """ return pulumi.get(self, "metric_namespace") + @property + @pulumi.getter(name="skipMetricValidation") + def skip_metric_validation(self) -> Optional[bool]: + """ + Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. + """ + return pulumi.get(self, "skip_metric_validation") + def _translate_property(self, prop): return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop @@ -1569,7 +1581,8 @@ def __init__(__self__, *, threshold: float, time_aggregation: Mapping[str, Any], dimensions: Optional[List['outputs.MetricDimensionResponse']] = None, - metric_namespace: Optional[str] = None): + metric_namespace: Optional[str] = None, + skip_metric_validation: Optional[bool] = None): """ Criterion to filter metrics. :param str criterion_type: Specifies the type of threshold criteria @@ -1580,6 +1593,7 @@ def __init__(__self__, *, :param Mapping[str, Any] time_aggregation: the criteria time aggregation types. :param List['MetricDimensionResponseArgs'] dimensions: List of dimension conditions. :param str metric_namespace: Namespace of the metric. + :param bool skip_metric_validation: Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. """ pulumi.set(__self__, "criterion_type", 'StaticThresholdCriterion') pulumi.set(__self__, "metric_name", metric_name) @@ -1591,6 +1605,8 @@ def __init__(__self__, *, pulumi.set(__self__, "dimensions", dimensions) if metric_namespace is not None: pulumi.set(__self__, "metric_namespace", metric_namespace) + if skip_metric_validation is not None: + pulumi.set(__self__, "skip_metric_validation", skip_metric_validation) @property @pulumi.getter(name="criterionType") @@ -1656,6 +1672,14 @@ def metric_namespace(self) -> Optional[str]: """ return pulumi.get(self, "metric_namespace") + @property + @pulumi.getter(name="skipMetricValidation") + def skip_metric_validation(self) -> Optional[bool]: + """ + Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. + """ + return pulumi.get(self, "skip_metric_validation") + def _translate_property(self, prop): return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_azurerm/insights/v20180301/_inputs.py b/sdk/python/pulumi_azurerm/insights/v20180301/_inputs.py index fd504d0093ce..b07caabf93fd 100644 --- a/sdk/python/pulumi_azurerm/insights/v20180301/_inputs.py +++ b/sdk/python/pulumi_azurerm/insights/v20180301/_inputs.py @@ -246,7 +246,8 @@ def __init__(__self__, *, time_aggregation: pulumi.Input[Mapping[str, Any]], dimensions: Optional[pulumi.Input[List[pulumi.Input['MetricDimensionArgs']]]] = None, ignore_data_before: Optional[pulumi.Input[str]] = None, - metric_namespace: Optional[pulumi.Input[str]] = None): + metric_namespace: Optional[pulumi.Input[str]] = None, + skip_metric_validation: Optional[pulumi.Input[bool]] = None): """ Criterion for dynamic threshold. :param pulumi.Input[str] alert_sensitivity: The extent of deviation required to trigger an alert. This will affect how tight the threshold is to the metric series pattern. @@ -259,6 +260,7 @@ def __init__(__self__, *, :param pulumi.Input[List[pulumi.Input['MetricDimensionArgs']]] dimensions: List of dimension conditions. :param pulumi.Input[str] ignore_data_before: Use this option to set the date from which to start learning the metric historical data and calculate the dynamic thresholds (in ISO8601 format) :param pulumi.Input[str] metric_namespace: Namespace of the metric. + :param pulumi.Input[bool] skip_metric_validation: Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. """ pulumi.set(__self__, "alert_sensitivity", alert_sensitivity) pulumi.set(__self__, "criterion_type", 'DynamicThresholdCriterion') @@ -273,6 +275,8 @@ def __init__(__self__, *, pulumi.set(__self__, "ignore_data_before", ignore_data_before) if metric_namespace is not None: pulumi.set(__self__, "metric_namespace", metric_namespace) + if skip_metric_validation is not None: + pulumi.set(__self__, "skip_metric_validation", skip_metric_validation) @property @pulumi.getter(name="alertSensitivity") @@ -394,6 +398,18 @@ def metric_namespace(self) -> Optional[pulumi.Input[str]]: def metric_namespace(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "metric_namespace", value) + @property + @pulumi.getter(name="skipMetricValidation") + def skip_metric_validation(self) -> Optional[pulumi.Input[bool]]: + """ + Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. + """ + return pulumi.get(self, "skip_metric_validation") + + @skip_metric_validation.setter + def skip_metric_validation(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "skip_metric_validation", value) + @pulumi.input_type class DynamicThresholdFailingPeriodsArgs: @@ -735,7 +751,8 @@ def __init__(__self__, *, threshold: pulumi.Input[float], time_aggregation: pulumi.Input[Mapping[str, Any]], dimensions: Optional[pulumi.Input[List[pulumi.Input['MetricDimensionArgs']]]] = None, - metric_namespace: Optional[pulumi.Input[str]] = None): + metric_namespace: Optional[pulumi.Input[str]] = None, + skip_metric_validation: Optional[pulumi.Input[bool]] = None): """ Criterion to filter metrics. :param pulumi.Input[str] criterion_type: Specifies the type of threshold criteria @@ -746,6 +763,7 @@ def __init__(__self__, *, :param pulumi.Input[Mapping[str, Any]] time_aggregation: the criteria time aggregation types. :param pulumi.Input[List[pulumi.Input['MetricDimensionArgs']]] dimensions: List of dimension conditions. :param pulumi.Input[str] metric_namespace: Namespace of the metric. + :param pulumi.Input[bool] skip_metric_validation: Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. """ pulumi.set(__self__, "criterion_type", 'StaticThresholdCriterion') pulumi.set(__self__, "metric_name", metric_name) @@ -757,6 +775,8 @@ def __init__(__self__, *, pulumi.set(__self__, "dimensions", dimensions) if metric_namespace is not None: pulumi.set(__self__, "metric_namespace", metric_namespace) + if skip_metric_validation is not None: + pulumi.set(__self__, "skip_metric_validation", skip_metric_validation) @property @pulumi.getter(name="criterionType") @@ -854,6 +874,18 @@ def metric_namespace(self) -> Optional[pulumi.Input[str]]: def metric_namespace(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "metric_namespace", value) + @property + @pulumi.getter(name="skipMetricValidation") + def skip_metric_validation(self) -> Optional[pulumi.Input[bool]]: + """ + Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. + """ + return pulumi.get(self, "skip_metric_validation") + + @skip_metric_validation.setter + def skip_metric_validation(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "skip_metric_validation", value) + @pulumi.input_type class MetricDimensionArgs: diff --git a/sdk/python/pulumi_azurerm/insights/v20180301/outputs.py b/sdk/python/pulumi_azurerm/insights/v20180301/outputs.py index d223b9ea77d8..a47b9b25752f 100644 --- a/sdk/python/pulumi_azurerm/insights/v20180301/outputs.py +++ b/sdk/python/pulumi_azurerm/insights/v20180301/outputs.py @@ -220,7 +220,8 @@ def __init__(__self__, *, time_aggregation: Mapping[str, Any], dimensions: Optional[List['outputs.MetricDimensionResponse']] = None, ignore_data_before: Optional[str] = None, - metric_namespace: Optional[str] = None): + metric_namespace: Optional[str] = None, + skip_metric_validation: Optional[bool] = None): """ Criterion for dynamic threshold. :param str alert_sensitivity: The extent of deviation required to trigger an alert. This will affect how tight the threshold is to the metric series pattern. @@ -233,6 +234,7 @@ def __init__(__self__, *, :param List['MetricDimensionResponseArgs'] dimensions: List of dimension conditions. :param str ignore_data_before: Use this option to set the date from which to start learning the metric historical data and calculate the dynamic thresholds (in ISO8601 format) :param str metric_namespace: Namespace of the metric. + :param bool skip_metric_validation: Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. """ pulumi.set(__self__, "alert_sensitivity", alert_sensitivity) pulumi.set(__self__, "criterion_type", 'DynamicThresholdCriterion') @@ -247,6 +249,8 @@ def __init__(__self__, *, pulumi.set(__self__, "ignore_data_before", ignore_data_before) if metric_namespace is not None: pulumi.set(__self__, "metric_namespace", metric_namespace) + if skip_metric_validation is not None: + pulumi.set(__self__, "skip_metric_validation", skip_metric_validation) @property @pulumi.getter(name="alertSensitivity") @@ -328,6 +332,14 @@ def metric_namespace(self) -> Optional[str]: """ return pulumi.get(self, "metric_namespace") + @property + @pulumi.getter(name="skipMetricValidation") + def skip_metric_validation(self) -> Optional[bool]: + """ + Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. + """ + return pulumi.get(self, "skip_metric_validation") + def _translate_property(self, prop): return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop @@ -656,7 +668,8 @@ def __init__(__self__, *, threshold: float, time_aggregation: Mapping[str, Any], dimensions: Optional[List['outputs.MetricDimensionResponse']] = None, - metric_namespace: Optional[str] = None): + metric_namespace: Optional[str] = None, + skip_metric_validation: Optional[bool] = None): """ Criterion to filter metrics. :param str criterion_type: Specifies the type of threshold criteria @@ -667,6 +680,7 @@ def __init__(__self__, *, :param Mapping[str, Any] time_aggregation: the criteria time aggregation types. :param List['MetricDimensionResponseArgs'] dimensions: List of dimension conditions. :param str metric_namespace: Namespace of the metric. + :param bool skip_metric_validation: Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. """ pulumi.set(__self__, "criterion_type", 'StaticThresholdCriterion') pulumi.set(__self__, "metric_name", metric_name) @@ -678,6 +692,8 @@ def __init__(__self__, *, pulumi.set(__self__, "dimensions", dimensions) if metric_namespace is not None: pulumi.set(__self__, "metric_namespace", metric_namespace) + if skip_metric_validation is not None: + pulumi.set(__self__, "skip_metric_validation", skip_metric_validation) @property @pulumi.getter(name="criterionType") @@ -743,6 +759,14 @@ def metric_namespace(self) -> Optional[str]: """ return pulumi.get(self, "metric_namespace") + @property + @pulumi.getter(name="skipMetricValidation") + def skip_metric_validation(self) -> Optional[bool]: + """ + Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. + """ + return pulumi.get(self, "skip_metric_validation") + def _translate_property(self, prop): return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_azurerm/machinelearningservices/latest/get_private_endpoint_connection.py b/sdk/python/pulumi_azurerm/machinelearningservices/latest/get_private_endpoint_connection.py index 55e00216739e..3c2f151e46bc 100644 --- a/sdk/python/pulumi_azurerm/machinelearningservices/latest/get_private_endpoint_connection.py +++ b/sdk/python/pulumi_azurerm/machinelearningservices/latest/get_private_endpoint_connection.py @@ -20,13 +20,7 @@ class GetPrivateEndpointConnectionResult: """ The Private Endpoint Connection resource. """ - def __init__(__self__, identity=None, location=None, name=None, private_endpoint=None, private_link_service_connection_state=None, provisioning_state=None, sku=None, tags=None, type=None): - if identity and not isinstance(identity, dict): - raise TypeError("Expected argument 'identity' to be a dict") - pulumi.set(__self__, "identity", identity) - if location and not isinstance(location, str): - raise TypeError("Expected argument 'location' to be a str") - pulumi.set(__self__, "location", location) + def __init__(__self__, name=None, private_endpoint=None, private_link_service_connection_state=None, provisioning_state=None, type=None): if name and not isinstance(name, str): raise TypeError("Expected argument 'name' to be a str") pulumi.set(__self__, "name", name) @@ -39,37 +33,15 @@ def __init__(__self__, identity=None, location=None, name=None, private_endpoint if provisioning_state and not isinstance(provisioning_state, str): raise TypeError("Expected argument 'provisioning_state' to be a str") pulumi.set(__self__, "provisioning_state", provisioning_state) - if sku and not isinstance(sku, dict): - raise TypeError("Expected argument 'sku' to be a dict") - pulumi.set(__self__, "sku", sku) - if tags and not isinstance(tags, dict): - raise TypeError("Expected argument 'tags' to be a dict") - pulumi.set(__self__, "tags", tags) if type and not isinstance(type, str): raise TypeError("Expected argument 'type' to be a str") pulumi.set(__self__, "type", type) - @property - @pulumi.getter - def identity(self) -> Optional['outputs.IdentityResponse']: - """ - The identity of the resource. - """ - return pulumi.get(self, "identity") - - @property - @pulumi.getter - def location(self) -> Optional[str]: - """ - Specifies the location of the resource. - """ - return pulumi.get(self, "location") - @property @pulumi.getter def name(self) -> str: """ - Specifies the name of the resource. + Friendly name of the private endpoint connection. """ return pulumi.get(self, "name") @@ -97,27 +69,11 @@ def provisioning_state(self) -> Optional[str]: """ return pulumi.get(self, "provisioning_state") - @property - @pulumi.getter - def sku(self) -> Optional['outputs.SkuResponse']: - """ - The sku of the workspace. - """ - return pulumi.get(self, "sku") - - @property - @pulumi.getter - def tags(self) -> Optional[Mapping[str, str]]: - """ - Contains resource tags defined as key/value pairs. - """ - return pulumi.get(self, "tags") - @property @pulumi.getter def type(self) -> str: """ - Specifies the type of the resource. + Resource type of private endpoint connection. """ return pulumi.get(self, "type") @@ -128,14 +84,10 @@ def __await__(self): if False: yield self return GetPrivateEndpointConnectionResult( - identity=self.identity, - location=self.location, name=self.name, private_endpoint=self.private_endpoint, private_link_service_connection_state=self.private_link_service_connection_state, provisioning_state=self.provisioning_state, - sku=self.sku, - tags=self.tags, type=self.type) @@ -161,12 +113,8 @@ def get_private_endpoint_connection(private_endpoint_connection_name: Optional[s __ret__ = pulumi.runtime.invoke('azurerm:machinelearningservices/latest:getPrivateEndpointConnection', __args__, opts=opts, typ=GetPrivateEndpointConnectionResult).value return AwaitableGetPrivateEndpointConnectionResult( - identity=__ret__.identity, - location=__ret__.location, name=__ret__.name, private_endpoint=__ret__.private_endpoint, private_link_service_connection_state=__ret__.private_link_service_connection_state, provisioning_state=__ret__.provisioning_state, - sku=__ret__.sku, - tags=__ret__.tags, type=__ret__.type) diff --git a/sdk/python/pulumi_azurerm/machinelearningservices/latest/outputs.py b/sdk/python/pulumi_azurerm/machinelearningservices/latest/outputs.py index 409f6caeab9b..ec341dbb9102 100644 --- a/sdk/python/pulumi_azurerm/machinelearningservices/latest/outputs.py +++ b/sdk/python/pulumi_azurerm/machinelearningservices/latest/outputs.py @@ -2203,47 +2203,31 @@ def __init__(__self__, *, name: str, private_link_service_connection_state: 'outputs.PrivateLinkServiceConnectionStateResponse', type: str, - identity: Optional['outputs.IdentityResponse'] = None, - location: Optional[str] = None, private_endpoint: Optional['outputs.PrivateEndpointResponse'] = None, - provisioning_state: Optional[str] = None, - sku: Optional['outputs.SkuResponse'] = None, - tags: Optional[Mapping[str, str]] = None): + provisioning_state: Optional[str] = None): """ The Private Endpoint Connection resource. - :param str id: Specifies the resource ID. - :param str name: Specifies the name of the resource. + :param str id: ResourceId of the private endpoint connection. + :param str name: Friendly name of the private endpoint connection. :param 'PrivateLinkServiceConnectionStateResponseArgs' private_link_service_connection_state: A collection of information about the state of the connection between service consumer and provider. - :param str type: Specifies the type of the resource. - :param 'IdentityResponseArgs' identity: The identity of the resource. - :param str location: Specifies the location of the resource. + :param str type: Resource type of private endpoint connection. :param 'PrivateEndpointResponseArgs' private_endpoint: The resource of private end point. :param str provisioning_state: The provisioning state of the private endpoint connection resource. - :param 'SkuResponseArgs' sku: The sku of the workspace. - :param Mapping[str, str] tags: Contains resource tags defined as key/value pairs. """ pulumi.set(__self__, "id", id) pulumi.set(__self__, "name", name) pulumi.set(__self__, "private_link_service_connection_state", private_link_service_connection_state) pulumi.set(__self__, "type", type) - if identity is not None: - pulumi.set(__self__, "identity", identity) - if location is not None: - pulumi.set(__self__, "location", location) if private_endpoint is not None: pulumi.set(__self__, "private_endpoint", private_endpoint) if provisioning_state is not None: pulumi.set(__self__, "provisioning_state", provisioning_state) - if sku is not None: - pulumi.set(__self__, "sku", sku) - if tags is not None: - pulumi.set(__self__, "tags", tags) @property @pulumi.getter def id(self) -> str: """ - Specifies the resource ID. + ResourceId of the private endpoint connection. """ return pulumi.get(self, "id") @@ -2251,7 +2235,7 @@ def id(self) -> str: @pulumi.getter def name(self) -> str: """ - Specifies the name of the resource. + Friendly name of the private endpoint connection. """ return pulumi.get(self, "name") @@ -2267,26 +2251,10 @@ def private_link_service_connection_state(self) -> 'outputs.PrivateLinkServiceCo @pulumi.getter def type(self) -> str: """ - Specifies the type of the resource. + Resource type of private endpoint connection. """ return pulumi.get(self, "type") - @property - @pulumi.getter - def identity(self) -> Optional['outputs.IdentityResponse']: - """ - The identity of the resource. - """ - return pulumi.get(self, "identity") - - @property - @pulumi.getter - def location(self) -> Optional[str]: - """ - Specifies the location of the resource. - """ - return pulumi.get(self, "location") - @property @pulumi.getter(name="privateEndpoint") def private_endpoint(self) -> Optional['outputs.PrivateEndpointResponse']: @@ -2303,22 +2271,6 @@ def provisioning_state(self) -> Optional[str]: """ return pulumi.get(self, "provisioning_state") - @property - @pulumi.getter - def sku(self) -> Optional['outputs.SkuResponse']: - """ - The sku of the workspace. - """ - return pulumi.get(self, "sku") - - @property - @pulumi.getter - def tags(self) -> Optional[Mapping[str, str]]: - """ - Contains resource tags defined as key/value pairs. - """ - return pulumi.get(self, "tags") - def _translate_property(self, prop): return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_azurerm/machinelearningservices/latest/private_endpoint_connection.py b/sdk/python/pulumi_azurerm/machinelearningservices/latest/private_endpoint_connection.py index 77456b3fd177..8931a9575b24 100644 --- a/sdk/python/pulumi_azurerm/machinelearningservices/latest/private_endpoint_connection.py +++ b/sdk/python/pulumi_azurerm/machinelearningservices/latest/private_endpoint_connection.py @@ -17,14 +17,10 @@ class PrivateEndpointConnection(pulumi.CustomResource): def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - identity: Optional[pulumi.Input[pulumi.InputType['IdentityArgs']]] = None, - location: Optional[pulumi.Input[str]] = None, private_endpoint_connection_name: Optional[pulumi.Input[str]] = None, private_link_service_connection_state: Optional[pulumi.Input[pulumi.InputType['PrivateLinkServiceConnectionStateArgs']]] = None, provisioning_state: Optional[pulumi.Input[str]] = None, resource_group_name: Optional[pulumi.Input[str]] = None, - sku: Optional[pulumi.Input[pulumi.InputType['SkuArgs']]] = None, - tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, workspace_name: Optional[pulumi.Input[str]] = None, __props__=None, __name__=None, @@ -34,14 +30,10 @@ def __init__(__self__, :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[pulumi.InputType['IdentityArgs']] identity: The identity of the resource. - :param pulumi.Input[str] location: Specifies the location of the resource. :param pulumi.Input[str] private_endpoint_connection_name: The name of the private endpoint connection associated with the workspace :param pulumi.Input[pulumi.InputType['PrivateLinkServiceConnectionStateArgs']] private_link_service_connection_state: A collection of information about the state of the connection between service consumer and provider. :param pulumi.Input[str] provisioning_state: The provisioning state of the private endpoint connection resource. :param pulumi.Input[str] resource_group_name: Name of the resource group in which workspace is located. - :param pulumi.Input[pulumi.InputType['SkuArgs']] sku: The sku of the workspace. - :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: Contains resource tags defined as key/value pairs. :param pulumi.Input[str] workspace_name: Name of Azure Machine Learning workspace. """ if __name__ is not None: @@ -61,8 +53,6 @@ def __init__(__self__, raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['identity'] = identity - __props__['location'] = location if private_endpoint_connection_name is None: raise TypeError("Missing required property 'private_endpoint_connection_name'") __props__['private_endpoint_connection_name'] = private_endpoint_connection_name @@ -73,8 +63,6 @@ def __init__(__self__, if resource_group_name is None: raise TypeError("Missing required property 'resource_group_name'") __props__['resource_group_name'] = resource_group_name - __props__['sku'] = sku - __props__['tags'] = tags if workspace_name is None: raise TypeError("Missing required property 'workspace_name'") __props__['workspace_name'] = workspace_name @@ -107,27 +95,11 @@ def get(resource_name: str, return PrivateEndpointConnection(resource_name, opts=opts, __props__=__props__) - @property - @pulumi.getter - def identity(self) -> pulumi.Output[Optional['outputs.IdentityResponse']]: - """ - The identity of the resource. - """ - return pulumi.get(self, "identity") - - @property - @pulumi.getter - def location(self) -> pulumi.Output[Optional[str]]: - """ - Specifies the location of the resource. - """ - return pulumi.get(self, "location") - @property @pulumi.getter def name(self) -> pulumi.Output[str]: """ - Specifies the name of the resource. + Friendly name of the private endpoint connection. """ return pulumi.get(self, "name") @@ -155,27 +127,11 @@ def provisioning_state(self) -> pulumi.Output[Optional[str]]: """ return pulumi.get(self, "provisioning_state") - @property - @pulumi.getter - def sku(self) -> pulumi.Output[Optional['outputs.SkuResponse']]: - """ - The sku of the workspace. - """ - return pulumi.get(self, "sku") - - @property - @pulumi.getter - def tags(self) -> pulumi.Output[Optional[Mapping[str, str]]]: - """ - Contains resource tags defined as key/value pairs. - """ - return pulumi.get(self, "tags") - @property @pulumi.getter def type(self) -> pulumi.Output[str]: """ - Specifies the type of the resource. + Resource type of private endpoint connection. """ return pulumi.get(self, "type") diff --git a/sdk/python/pulumi_azurerm/machinelearningservices/v20200601/get_private_endpoint_connection.py b/sdk/python/pulumi_azurerm/machinelearningservices/v20200601/get_private_endpoint_connection.py index 2fa2429c06c7..f4737ef5f08e 100644 --- a/sdk/python/pulumi_azurerm/machinelearningservices/v20200601/get_private_endpoint_connection.py +++ b/sdk/python/pulumi_azurerm/machinelearningservices/v20200601/get_private_endpoint_connection.py @@ -20,13 +20,7 @@ class GetPrivateEndpointConnectionResult: """ The Private Endpoint Connection resource. """ - def __init__(__self__, identity=None, location=None, name=None, private_endpoint=None, private_link_service_connection_state=None, provisioning_state=None, sku=None, tags=None, type=None): - if identity and not isinstance(identity, dict): - raise TypeError("Expected argument 'identity' to be a dict") - pulumi.set(__self__, "identity", identity) - if location and not isinstance(location, str): - raise TypeError("Expected argument 'location' to be a str") - pulumi.set(__self__, "location", location) + def __init__(__self__, name=None, private_endpoint=None, private_link_service_connection_state=None, provisioning_state=None, type=None): if name and not isinstance(name, str): raise TypeError("Expected argument 'name' to be a str") pulumi.set(__self__, "name", name) @@ -39,37 +33,15 @@ def __init__(__self__, identity=None, location=None, name=None, private_endpoint if provisioning_state and not isinstance(provisioning_state, str): raise TypeError("Expected argument 'provisioning_state' to be a str") pulumi.set(__self__, "provisioning_state", provisioning_state) - if sku and not isinstance(sku, dict): - raise TypeError("Expected argument 'sku' to be a dict") - pulumi.set(__self__, "sku", sku) - if tags and not isinstance(tags, dict): - raise TypeError("Expected argument 'tags' to be a dict") - pulumi.set(__self__, "tags", tags) if type and not isinstance(type, str): raise TypeError("Expected argument 'type' to be a str") pulumi.set(__self__, "type", type) - @property - @pulumi.getter - def identity(self) -> Optional['outputs.IdentityResponse']: - """ - The identity of the resource. - """ - return pulumi.get(self, "identity") - - @property - @pulumi.getter - def location(self) -> Optional[str]: - """ - Specifies the location of the resource. - """ - return pulumi.get(self, "location") - @property @pulumi.getter def name(self) -> str: """ - Specifies the name of the resource. + Friendly name of the private endpoint connection. """ return pulumi.get(self, "name") @@ -97,27 +69,11 @@ def provisioning_state(self) -> Optional[str]: """ return pulumi.get(self, "provisioning_state") - @property - @pulumi.getter - def sku(self) -> Optional['outputs.SkuResponse']: - """ - The sku of the workspace. - """ - return pulumi.get(self, "sku") - - @property - @pulumi.getter - def tags(self) -> Optional[Mapping[str, str]]: - """ - Contains resource tags defined as key/value pairs. - """ - return pulumi.get(self, "tags") - @property @pulumi.getter def type(self) -> str: """ - Specifies the type of the resource. + Resource type of private endpoint connection. """ return pulumi.get(self, "type") @@ -128,14 +84,10 @@ def __await__(self): if False: yield self return GetPrivateEndpointConnectionResult( - identity=self.identity, - location=self.location, name=self.name, private_endpoint=self.private_endpoint, private_link_service_connection_state=self.private_link_service_connection_state, provisioning_state=self.provisioning_state, - sku=self.sku, - tags=self.tags, type=self.type) @@ -161,12 +113,8 @@ def get_private_endpoint_connection(private_endpoint_connection_name: Optional[s __ret__ = pulumi.runtime.invoke('azurerm:machinelearningservices/v20200601:getPrivateEndpointConnection', __args__, opts=opts, typ=GetPrivateEndpointConnectionResult).value return AwaitableGetPrivateEndpointConnectionResult( - identity=__ret__.identity, - location=__ret__.location, name=__ret__.name, private_endpoint=__ret__.private_endpoint, private_link_service_connection_state=__ret__.private_link_service_connection_state, provisioning_state=__ret__.provisioning_state, - sku=__ret__.sku, - tags=__ret__.tags, type=__ret__.type) diff --git a/sdk/python/pulumi_azurerm/machinelearningservices/v20200601/outputs.py b/sdk/python/pulumi_azurerm/machinelearningservices/v20200601/outputs.py index d81a6060973a..b6d64bb0c0e6 100644 --- a/sdk/python/pulumi_azurerm/machinelearningservices/v20200601/outputs.py +++ b/sdk/python/pulumi_azurerm/machinelearningservices/v20200601/outputs.py @@ -2164,47 +2164,31 @@ def __init__(__self__, *, name: str, private_link_service_connection_state: 'outputs.PrivateLinkServiceConnectionStateResponse', type: str, - identity: Optional['outputs.IdentityResponse'] = None, - location: Optional[str] = None, private_endpoint: Optional['outputs.PrivateEndpointResponse'] = None, - provisioning_state: Optional[str] = None, - sku: Optional['outputs.SkuResponse'] = None, - tags: Optional[Mapping[str, str]] = None): + provisioning_state: Optional[str] = None): """ The Private Endpoint Connection resource. - :param str id: Specifies the resource ID. - :param str name: Specifies the name of the resource. + :param str id: ResourceId of the private endpoint connection. + :param str name: Friendly name of the private endpoint connection. :param 'PrivateLinkServiceConnectionStateResponseArgs' private_link_service_connection_state: A collection of information about the state of the connection between service consumer and provider. - :param str type: Specifies the type of the resource. - :param 'IdentityResponseArgs' identity: The identity of the resource. - :param str location: Specifies the location of the resource. + :param str type: Resource type of private endpoint connection. :param 'PrivateEndpointResponseArgs' private_endpoint: The resource of private end point. :param str provisioning_state: The provisioning state of the private endpoint connection resource. - :param 'SkuResponseArgs' sku: The sku of the workspace. - :param Mapping[str, str] tags: Contains resource tags defined as key/value pairs. """ pulumi.set(__self__, "id", id) pulumi.set(__self__, "name", name) pulumi.set(__self__, "private_link_service_connection_state", private_link_service_connection_state) pulumi.set(__self__, "type", type) - if identity is not None: - pulumi.set(__self__, "identity", identity) - if location is not None: - pulumi.set(__self__, "location", location) if private_endpoint is not None: pulumi.set(__self__, "private_endpoint", private_endpoint) if provisioning_state is not None: pulumi.set(__self__, "provisioning_state", provisioning_state) - if sku is not None: - pulumi.set(__self__, "sku", sku) - if tags is not None: - pulumi.set(__self__, "tags", tags) @property @pulumi.getter def id(self) -> str: """ - Specifies the resource ID. + ResourceId of the private endpoint connection. """ return pulumi.get(self, "id") @@ -2212,7 +2196,7 @@ def id(self) -> str: @pulumi.getter def name(self) -> str: """ - Specifies the name of the resource. + Friendly name of the private endpoint connection. """ return pulumi.get(self, "name") @@ -2228,26 +2212,10 @@ def private_link_service_connection_state(self) -> 'outputs.PrivateLinkServiceCo @pulumi.getter def type(self) -> str: """ - Specifies the type of the resource. + Resource type of private endpoint connection. """ return pulumi.get(self, "type") - @property - @pulumi.getter - def identity(self) -> Optional['outputs.IdentityResponse']: - """ - The identity of the resource. - """ - return pulumi.get(self, "identity") - - @property - @pulumi.getter - def location(self) -> Optional[str]: - """ - Specifies the location of the resource. - """ - return pulumi.get(self, "location") - @property @pulumi.getter(name="privateEndpoint") def private_endpoint(self) -> Optional['outputs.PrivateEndpointResponse']: @@ -2264,22 +2232,6 @@ def provisioning_state(self) -> Optional[str]: """ return pulumi.get(self, "provisioning_state") - @property - @pulumi.getter - def sku(self) -> Optional['outputs.SkuResponse']: - """ - The sku of the workspace. - """ - return pulumi.get(self, "sku") - - @property - @pulumi.getter - def tags(self) -> Optional[Mapping[str, str]]: - """ - Contains resource tags defined as key/value pairs. - """ - return pulumi.get(self, "tags") - def _translate_property(self, prop): return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_azurerm/machinelearningservices/v20200601/private_endpoint_connection.py b/sdk/python/pulumi_azurerm/machinelearningservices/v20200601/private_endpoint_connection.py index 4cbf1d4a624e..e5c882121453 100644 --- a/sdk/python/pulumi_azurerm/machinelearningservices/v20200601/private_endpoint_connection.py +++ b/sdk/python/pulumi_azurerm/machinelearningservices/v20200601/private_endpoint_connection.py @@ -17,14 +17,10 @@ class PrivateEndpointConnection(pulumi.CustomResource): def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, - identity: Optional[pulumi.Input[pulumi.InputType['IdentityArgs']]] = None, - location: Optional[pulumi.Input[str]] = None, private_endpoint_connection_name: Optional[pulumi.Input[str]] = None, private_link_service_connection_state: Optional[pulumi.Input[pulumi.InputType['PrivateLinkServiceConnectionStateArgs']]] = None, provisioning_state: Optional[pulumi.Input[str]] = None, resource_group_name: Optional[pulumi.Input[str]] = None, - sku: Optional[pulumi.Input[pulumi.InputType['SkuArgs']]] = None, - tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, workspace_name: Optional[pulumi.Input[str]] = None, __props__=None, __name__=None, @@ -34,14 +30,10 @@ def __init__(__self__, :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[pulumi.InputType['IdentityArgs']] identity: The identity of the resource. - :param pulumi.Input[str] location: Specifies the location of the resource. :param pulumi.Input[str] private_endpoint_connection_name: The name of the private endpoint connection associated with the workspace :param pulumi.Input[pulumi.InputType['PrivateLinkServiceConnectionStateArgs']] private_link_service_connection_state: A collection of information about the state of the connection between service consumer and provider. :param pulumi.Input[str] provisioning_state: The provisioning state of the private endpoint connection resource. :param pulumi.Input[str] resource_group_name: Name of the resource group in which workspace is located. - :param pulumi.Input[pulumi.InputType['SkuArgs']] sku: The sku of the workspace. - :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: Contains resource tags defined as key/value pairs. :param pulumi.Input[str] workspace_name: Name of Azure Machine Learning workspace. """ if __name__ is not None: @@ -61,8 +53,6 @@ def __init__(__self__, raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') __props__ = dict() - __props__['identity'] = identity - __props__['location'] = location if private_endpoint_connection_name is None: raise TypeError("Missing required property 'private_endpoint_connection_name'") __props__['private_endpoint_connection_name'] = private_endpoint_connection_name @@ -73,8 +63,6 @@ def __init__(__self__, if resource_group_name is None: raise TypeError("Missing required property 'resource_group_name'") __props__['resource_group_name'] = resource_group_name - __props__['sku'] = sku - __props__['tags'] = tags if workspace_name is None: raise TypeError("Missing required property 'workspace_name'") __props__['workspace_name'] = workspace_name @@ -107,27 +95,11 @@ def get(resource_name: str, return PrivateEndpointConnection(resource_name, opts=opts, __props__=__props__) - @property - @pulumi.getter - def identity(self) -> pulumi.Output[Optional['outputs.IdentityResponse']]: - """ - The identity of the resource. - """ - return pulumi.get(self, "identity") - - @property - @pulumi.getter - def location(self) -> pulumi.Output[Optional[str]]: - """ - Specifies the location of the resource. - """ - return pulumi.get(self, "location") - @property @pulumi.getter def name(self) -> pulumi.Output[str]: """ - Specifies the name of the resource. + Friendly name of the private endpoint connection. """ return pulumi.get(self, "name") @@ -155,27 +127,11 @@ def provisioning_state(self) -> pulumi.Output[Optional[str]]: """ return pulumi.get(self, "provisioning_state") - @property - @pulumi.getter - def sku(self) -> pulumi.Output[Optional['outputs.SkuResponse']]: - """ - The sku of the workspace. - """ - return pulumi.get(self, "sku") - - @property - @pulumi.getter - def tags(self) -> pulumi.Output[Optional[Mapping[str, str]]]: - """ - Contains resource tags defined as key/value pairs. - """ - return pulumi.get(self, "tags") - @property @pulumi.getter def type(self) -> pulumi.Output[str]: """ - Specifies the type of the resource. + Resource type of private endpoint connection. """ return pulumi.get(self, "type") diff --git a/sdk/schema/metadata.json b/sdk/schema/metadata.json index 44e4ed1711ff..22caed0210b3 100644 --- a/sdk/schema/metadata.json +++ b/sdk/schema/metadata.json @@ -1387,6 +1387,103 @@ "duration": {} } }, + "azurerm:alertsmanagement/v20200804preview:HealthAlertAction": { + "properties": { + "actionGroupId": { + "type": "string" + }, + "webHookProperties": { + "type": "object" + } + } + }, + "azurerm:alertsmanagement/v20200804preview:HealthAlertActionResponse": { + "properties": { + "actionGroupId": {}, + "webHookProperties": {} + } + }, + "azurerm:alertsmanagement/v20200804preview:HealthAlertCriteria": { + "properties": { + "allOf": { + "type": "array", + "items": { + "$ref": "#/types/azurerm:alertsmanagement/v20200804preview:VmGuestHealthAlertCriterion" + } + } + } + }, + "azurerm:alertsmanagement/v20200804preview:HealthAlertCriteriaResponse": { + "properties": { + "allOf": { + "items": { + "$ref": "#/types/azurerm:alertsmanagement/v20200804preview:VmGuestHealthAlertCriterionResponse" + } + } + } + }, + "azurerm:alertsmanagement/v20200804preview:HealthState": { + "properties": { + "healthStateName": { + "type": "string" + }, + "severity": { + "type": "string" + } + }, + "required": [ + "healthStateName", + "severity" + ] + }, + "azurerm:alertsmanagement/v20200804preview:HealthStateResponse": { + "properties": { + "healthStateName": {}, + "severity": {} + }, + "required": [ + "healthStateName", + "severity" + ] + }, + "azurerm:alertsmanagement/v20200804preview:VmGuestHealthAlertCriterion": { + "properties": { + "healthMonitorName": { + "type": "string" + }, + "healthStates": { + "type": "array", + "items": { + "$ref": "#/types/azurerm:alertsmanagement/v20200804preview:HealthState" + } + }, + "namespace": { + "type": "string", + "const": "VmGuestHealth" + } + }, + "required": [ + "healthMonitorName", + "namespace" + ] + }, + "azurerm:alertsmanagement/v20200804preview:VmGuestHealthAlertCriterionResponse": { + "properties": { + "healthMonitorName": {}, + "healthStates": { + "items": { + "$ref": "#/types/azurerm:alertsmanagement/v20200804preview:HealthStateResponse" + } + }, + "namespace": { + "const": "VmGuestHealth" + } + }, + "required": [ + "healthMonitorName", + "namespace" + ] + }, "azurerm:analysisservices/latest:GatewayDetails": { "properties": { "gatewayResourceId": { @@ -11243,6 +11340,16 @@ "name" ] }, + "azurerm:authorization/v20200701preview:systemDataResponse": { + "properties": { + "createdAt": {}, + "createdBy": {}, + "createdByType": {}, + "lastModifiedAt": {}, + "lastModifiedBy": {}, + "lastModifiedByType": {} + } + }, "azurerm:automanage/v20200630preview:AccountIdentity": { "properties": { "type": { @@ -182787,9 +182894,18 @@ "$ref": "#/types/azurerm:devices/latest:IpFilterRule" } }, + "privateEndpointConnections": { + "type": "array", + "items": { + "$ref": "#/types/azurerm:devices/latest:PrivateEndpointConnection" + } + }, "provisioningState": { "type": "string" }, + "publicNetworkAccess": { + "type": "string" + }, "state": { "type": "string" } @@ -182815,7 +182931,13 @@ "$ref": "#/types/azurerm:devices/latest:IpFilterRuleResponse" } }, + "privateEndpointConnections": { + "items": { + "$ref": "#/types/azurerm:devices/latest:PrivateEndpointConnectionResponse" + } + }, "provisioningState": {}, + "publicNetworkAccess": {}, "serviceOperationsHostName": {}, "state": {} } @@ -190547,7 +190669,6 @@ }, "azurerm:devices/v20200301:CertificatePropertiesResponse": { "properties": { - "certificate": {}, "created": {}, "expiry": {}, "isVerified": {}, @@ -190707,6 +190828,127 @@ "ttlAsIso8601": {} } }, + "azurerm:devices/v20200301:IotDpsPropertiesDescription": { + "properties": { + "allocationPolicy": { + "type": "string" + }, + "authorizationPolicies": { + "type": "array", + "items": { + "$ref": "#/types/azurerm:devices/v20200301:SharedAccessSignatureAuthorizationRuleAccessRightsDescription" + } + }, + "iotHubs": { + "type": "array", + "items": { + "$ref": "#/types/azurerm:devices/v20200301:IotHubDefinitionDescription" + } + }, + "ipFilterRules": { + "type": "array", + "items": { + "$ref": "#/types/azurerm:devices/v20200301:IpFilterRule" + } + }, + "privateEndpointConnections": { + "type": "array", + "items": { + "$ref": "#/types/azurerm:devices/v20200301:PrivateEndpointConnection" + } + }, + "provisioningState": { + "type": "string" + }, + "publicNetworkAccess": { + "type": "string" + }, + "state": { + "type": "string" + } + } + }, + "azurerm:devices/v20200301:IotDpsPropertiesDescriptionResponse": { + "properties": { + "allocationPolicy": {}, + "authorizationPolicies": { + "items": { + "$ref": "#/types/azurerm:devices/v20200301:SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponse" + } + }, + "deviceProvisioningHostName": {}, + "idScope": {}, + "iotHubs": { + "items": { + "$ref": "#/types/azurerm:devices/v20200301:IotHubDefinitionDescriptionResponse" + } + }, + "ipFilterRules": { + "items": { + "$ref": "#/types/azurerm:devices/v20200301:IpFilterRuleResponse" + } + }, + "privateEndpointConnections": { + "items": { + "$ref": "#/types/azurerm:devices/v20200301:PrivateEndpointConnectionResponse" + } + }, + "provisioningState": {}, + "publicNetworkAccess": {}, + "serviceOperationsHostName": {}, + "state": {} + } + }, + "azurerm:devices/v20200301:IotDpsSkuInfo": { + "properties": { + "capacity": { + "type": "integer" + }, + "name": { + "type": "string" + } + } + }, + "azurerm:devices/v20200301:IotDpsSkuInfoResponse": { + "properties": { + "capacity": {}, + "name": {}, + "tier": {} + } + }, + "azurerm:devices/v20200301:IotHubDefinitionDescription": { + "properties": { + "allocationWeight": { + "type": "integer" + }, + "applyAllocationPolicy": { + "type": "boolean" + }, + "connectionString": { + "type": "string" + }, + "location": { + "type": "string" + } + }, + "required": [ + "connectionString", + "location" + ] + }, + "azurerm:devices/v20200301:IotHubDefinitionDescriptionResponse": { + "properties": { + "allocationWeight": {}, + "applyAllocationPolicy": {}, + "connectionString": {}, + "location": {}, + "name": {} + }, + "required": [ + "connectionString", + "location" + ] + }, "azurerm:devices/v20200301:IotHubLocationDescriptionResponse": { "properties": { "location": {}, @@ -191358,6 +191600,38 @@ "rights" ] }, + "azurerm:devices/v20200301:SharedAccessSignatureAuthorizationRuleAccessRightsDescription": { + "properties": { + "keyName": { + "type": "string" + }, + "primaryKey": { + "type": "string" + }, + "rights": { + "type": "string" + }, + "secondaryKey": { + "type": "string" + } + }, + "required": [ + "keyName", + "rights" + ] + }, + "azurerm:devices/v20200301:SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponse": { + "properties": { + "keyName": {}, + "primaryKey": {}, + "rights": {}, + "secondaryKey": {} + }, + "required": [ + "keyName", + "rights" + ] + }, "azurerm:devices/v20200301:SharedAccessSignatureAuthorizationRuleResponse": { "properties": { "keyName": {}, @@ -222257,6 +222531,9 @@ "operator": { "type": "string" }, + "skipMetricValidation": { + "type": "boolean" + }, "timeAggregation": { "type": "object" } @@ -222290,6 +222567,7 @@ "metricNamespace": {}, "name": {}, "operator": {}, + "skipMetricValidation": {}, "timeAggregation": {} }, "required": [ @@ -222768,6 +223046,9 @@ "operator": { "type": "string" }, + "skipMetricValidation": { + "type": "boolean" + }, "threshold": { "type": "number" }, @@ -222798,6 +223079,7 @@ "metricNamespace": {}, "name": {}, "operator": {}, + "skipMetricValidation": {}, "threshold": {}, "timeAggregation": {} }, @@ -225382,6 +225664,9 @@ "operator": { "type": "string" }, + "skipMetricValidation": { + "type": "boolean" + }, "timeAggregation": { "type": "object" } @@ -225415,6 +225700,7 @@ "metricNamespace": {}, "name": {}, "operator": {}, + "skipMetricValidation": {}, "timeAggregation": {} }, "required": [ @@ -225666,6 +225952,9 @@ "operator": { "type": "string" }, + "skipMetricValidation": { + "type": "boolean" + }, "threshold": { "type": "number" }, @@ -225696,6 +225985,7 @@ "metricNamespace": {}, "name": {}, "operator": {}, + "skipMetricValidation": {}, "threshold": {}, "timeAggregation": {} }, @@ -249819,7 +250109,7 @@ "enum": [ "SystemAssigned", "UserAssigned", - "SystemAssigned, UserAssigned", + "SystemAssigned,UserAssigned", "None" ] } @@ -249936,10 +250226,6 @@ "azurerm:machinelearningservices/latest:PrivateEndpointConnectionResponse": { "properties": { "id": {}, - "identity": { - "$ref": "#/types/azurerm:machinelearningservices/latest:IdentityResponse" - }, - "location": {}, "name": {}, "privateEndpoint": { "$ref": "#/types/azurerm:machinelearningservices/latest:PrivateEndpointResponse", @@ -249952,10 +250238,6 @@ "provisioningState": { "container": "properties" }, - "sku": { - "$ref": "#/types/azurerm:machinelearningservices/latest:SkuResponse" - }, - "tags": {}, "type": {} }, "required": [ @@ -261140,7 +261422,7 @@ "enum": [ "SystemAssigned", "UserAssigned", - "SystemAssigned, UserAssigned", + "SystemAssigned,UserAssigned", "None" ] } @@ -261241,10 +261523,6 @@ "azurerm:machinelearningservices/v20200601:PrivateEndpointConnectionResponse": { "properties": { "id": {}, - "identity": { - "$ref": "#/types/azurerm:machinelearningservices/v20200601:IdentityResponse" - }, - "location": {}, "name": {}, "privateEndpoint": { "$ref": "#/types/azurerm:machinelearningservices/v20200601:PrivateEndpointResponse", @@ -261257,10 +261535,6 @@ "provisioningState": { "container": "properties" }, - "sku": { - "$ref": "#/types/azurerm:machinelearningservices/v20200601:SkuResponse" - }, - "tags": {}, "type": {} }, "required": [ @@ -543701,6 +543975,147 @@ "type": {} } }, + "azurerm:alertsmanagement/v20200804preview:HealthAlert": { + "apiVersion": "2020-08-04-preview", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AlertsManagement/resourceHealthAlerts/{ruleName}", + "GET": [ + { + "name": "subscriptionId", + "location": "path", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "resourceGroupName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "ruleName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string" + } + } + ], + "PUT": [ + { + "name": "subscriptionId", + "location": "path", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "resourceGroupName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "ruleName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "parameters", + "location": "body", + "required": true, + "value": {}, + "body": { + "properties": { + "actions": { + "type": "array", + "items": { + "$ref": "#/types/azurerm:alertsmanagement/v20200804preview:HealthAlertAction" + }, + "container": "properties" + }, + "criteria": { + "$ref": "#/types/azurerm:alertsmanagement/v20200804preview:HealthAlertCriteria", + "container": "properties" + }, + "description": { + "type": "string", + "container": "properties" + }, + "enabled": { + "type": "boolean", + "container": "properties" + }, + "location": { + "type": "string", + "forceNew": true + }, + "scopes": { + "type": "array", + "items": { + "type": "string" + }, + "container": "properties" + }, + "tags": { + "type": "object" + } + }, + "required": [ + "criteria", + "description", + "enabled", + "location" + ] + } + } + ], + "response": { + "actions": { + "items": { + "$ref": "#/types/azurerm:alertsmanagement/v20200804preview:HealthAlertActionResponse" + }, + "container": "properties" + }, + "criteria": { + "$ref": "#/types/azurerm:alertsmanagement/v20200804preview:HealthAlertCriteriaResponse", + "container": "properties" + }, + "description": { + "container": "properties" + }, + "enabled": { + "container": "properties" + }, + "id": {}, + "lastUpdatedTime": { + "container": "properties" + }, + "location": {}, + "name": {}, + "scopes": { + "items": { + "type": "string" + }, + "container": "properties" + }, + "tags": {}, + "type": {} + } + }, "azurerm:analysisservices/latest:ServerDetails": { "apiVersion": "2017-08-01-beta", "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}", @@ -591827,6 +592242,127 @@ "type": {} } }, + "azurerm:authorization/v20200701preview:PolicyExemption": { + "apiVersion": "2020-07-01-preview", + "path": "/{scope}/providers/Microsoft.Authorization/policyExemptions/{policyExemptionName}", + "GET": [ + { + "name": "scope", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "policyExemptionName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string" + } + } + ], + "PUT": [ + { + "name": "parameters", + "location": "body", + "required": true, + "value": {}, + "body": { + "properties": { + "description": { + "type": "string", + "container": "properties" + }, + "displayName": { + "type": "string", + "container": "properties" + }, + "exemptionCategory": { + "type": "string", + "container": "properties" + }, + "expiresOn": { + "type": "string", + "container": "properties" + }, + "metadata": { + "type": "object", + "container": "properties" + }, + "policyAssignmentId": { + "type": "string", + "container": "properties" + }, + "policyDefinitionReferenceIds": { + "type": "array", + "items": { + "type": "string" + }, + "container": "properties" + } + }, + "required": [ + "exemptionCategory", + "policyAssignmentId" + ] + } + }, + { + "name": "scope", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "policyExemptionName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string" + } + } + ], + "response": { + "description": { + "container": "properties" + }, + "displayName": { + "container": "properties" + }, + "exemptionCategory": { + "container": "properties" + }, + "expiresOn": { + "container": "properties" + }, + "id": {}, + "metadata": { + "container": "properties" + }, + "name": {}, + "policyAssignmentId": { + "container": "properties" + }, + "policyDefinitionReferenceIds": { + "items": { + "type": "string" + }, + "container": "properties" + }, + "systemData": { + "$ref": "#/types/azurerm:authorization/v20200701preview:systemDataResponse" + }, + "type": {} + } + }, "azurerm:automanage/v20200630preview:Account": { "apiVersion": "2020-06-30-preview", "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automanage/accounts/{accountName}", @@ -709798,7 +710334,7 @@ } }, "azurerm:devices/latest:DpsCertificate": { - "apiVersion": "2020-01-01", + "apiVersion": "2020-03-01", "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/certificates/{certificateName}", "GET": [ { @@ -709893,7 +710429,7 @@ } }, "azurerm:devices/latest:IotDpsResource": { - "apiVersion": "2020-01-01", + "apiVersion": "2020-03-01", "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}", "GET": [ { @@ -709992,9 +710528,111 @@ "type": {} } }, - "azurerm:devices/latest:IotHubResource": { - "apiVersion": "2020-08-01", - "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}", + "azurerm:devices/latest:IotDpsResourcePrivateEndpointConnection": { + "apiVersion": "2020-03-01", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}", + "GET": [ + { + "name": "subscriptionId", + "location": "path", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "resourceGroupName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "resourceName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "privateEndpointConnectionName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string" + } + } + ], + "PUT": [ + { + "name": "subscriptionId", + "location": "path", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "resourceGroupName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "resourceName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "privateEndpointConnectionName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "privateEndpointConnection", + "location": "body", + "required": true, + "value": {}, + "body": { + "properties": { + "properties": { + "$ref": "#/types/azurerm:devices/latest:PrivateEndpointConnectionProperties" + } + }, + "required": [ + "properties" + ] + } + } + ], + "response": { + "id": {}, + "name": {}, + "properties": { + "$ref": "#/types/azurerm:devices/latest:PrivateEndpointConnectionPropertiesResponse" + }, + "type": {} + } + }, + "azurerm:devices/latest:IotHubResource": { + "apiVersion": "2020-08-01", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}", "GET": [ { "name": "subscriptionId", @@ -714035,10 +714673,18 @@ "type": {} } }, - "azurerm:devices/v20200301:IotHubResource": { + "azurerm:devices/v20200301:DpsCertificate": { "apiVersion": "2020-03-01", - "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/certificates/{certificateName}", "GET": [ + { + "name": "certificateName", + "location": "path", + "required": true, + "value": { + "type": "string" + } + }, { "name": "subscriptionId", "location": "path", @@ -714050,16 +714696,14 @@ { "name": "resourceGroupName", "location": "path", - "source": "method", "required": true, "value": { "type": "string" } }, { - "name": "resourceName", + "name": "provisioningServiceName", "location": "path", - "source": "method", "required": true, "value": { "type": "string" @@ -714078,23 +714722,108 @@ { "name": "resourceGroupName", "location": "path", - "source": "method", "required": true, "value": { "type": "string" } }, { - "name": "resourceName", + "name": "provisioningServiceName", "location": "path", - "source": "method", "required": true, "value": { "type": "string" } }, { - "name": "iotHubDescription", + "name": "certificateName", + "location": "path", + "required": true, + "value": { + "type": "string", + "maxLength": 256 + } + }, + { + "name": "certificateDescription", + "location": "body", + "required": true, + "value": {}, + "body": { + "properties": { + "certificate": { + "type": "string" + } + } + } + } + ], + "response": { + "etag": {}, + "id": {}, + "name": {}, + "properties": { + "$ref": "#/types/azurerm:devices/v20200301:CertificatePropertiesResponse" + }, + "type": {} + } + }, + "azurerm:devices/v20200301:IotDpsResource": { + "apiVersion": "2020-03-01", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}", + "GET": [ + { + "name": "provisioningServiceName", + "location": "path", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "subscriptionId", + "location": "path", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "resourceGroupName", + "location": "path", + "required": true, + "value": { + "type": "string" + } + } + ], + "PUT": [ + { + "name": "subscriptionId", + "location": "path", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "resourceGroupName", + "location": "path", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "provisioningServiceName", + "location": "path", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "iotDpsDescription", "location": "body", "required": true, "value": {}, @@ -714107,10 +714836,10 @@ "type": "string" }, "properties": { - "$ref": "#/types/azurerm:devices/v20200301:IotHubProperties" + "$ref": "#/types/azurerm:devices/v20200301:IotDpsPropertiesDescription" }, "sku": { - "$ref": "#/types/azurerm:devices/v20200301:IotHubSkuInfo" + "$ref": "#/types/azurerm:devices/v20200301:IotDpsSkuInfo" }, "tags": { "type": "object" @@ -714118,6 +714847,7 @@ }, "required": [ "location", + "properties", "sku" ] } @@ -714129,18 +714859,18 @@ "location": {}, "name": {}, "properties": { - "$ref": "#/types/azurerm:devices/v20200301:IotHubPropertiesResponse" + "$ref": "#/types/azurerm:devices/v20200301:IotDpsPropertiesDescriptionResponse" }, "sku": { - "$ref": "#/types/azurerm:devices/v20200301:IotHubSkuInfoResponse" + "$ref": "#/types/azurerm:devices/v20200301:IotDpsSkuInfoResponse" }, "tags": {}, "type": {} } }, - "azurerm:devices/v20200301:IotHubResourceEventHubConsumerGroup": { + "azurerm:devices/v20200301:IotDpsResourcePrivateEndpointConnection": { "apiVersion": "2020-03-01", - "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/eventHubEndpoints/{eventHubEndpointName}/ConsumerGroups/{name}", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}", "GET": [ { "name": "subscriptionId", @@ -714169,16 +714899,9 @@ } }, { - "name": "eventHubEndpointName", - "location": "path", - "required": true, - "value": { - "type": "string" - } - }, - { - "name": "name", + "name": "privateEndpointConnectionName", "location": "path", + "source": "method", "required": true, "value": { "type": "string" @@ -714213,33 +714936,43 @@ } }, { - "name": "eventHubEndpointName", + "name": "privateEndpointConnectionName", "location": "path", + "source": "method", "required": true, "value": { "type": "string" } }, { - "name": "name", - "location": "path", + "name": "privateEndpointConnection", + "location": "body", "required": true, - "value": { - "type": "string" + "value": {}, + "body": { + "properties": { + "properties": { + "$ref": "#/types/azurerm:devices/v20200301:PrivateEndpointConnectionProperties" + } + }, + "required": [ + "properties" + ] } } ], "response": { - "etag": {}, "id": {}, "name": {}, - "properties": {}, + "properties": { + "$ref": "#/types/azurerm:devices/v20200301:PrivateEndpointConnectionPropertiesResponse" + }, "type": {} } }, - "azurerm:devices/v20200301:PrivateEndpointConnection": { + "azurerm:devices/v20200301:IotHubResource": { "apiVersion": "2020-03-01", - "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/iotHubs/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}", "GET": [ { "name": "subscriptionId", @@ -714266,15 +714999,217 @@ "value": { "type": "string" } - }, - { - "name": "privateEndpointConnectionName", - "location": "path", - "source": "method", - "required": true, - "value": { - "type": "string" - } + } + ], + "PUT": [ + { + "name": "subscriptionId", + "location": "path", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "resourceGroupName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "resourceName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "iotHubDescription", + "location": "body", + "required": true, + "value": {}, + "body": { + "properties": { + "etag": { + "type": "string" + }, + "location": { + "type": "string" + }, + "properties": { + "$ref": "#/types/azurerm:devices/v20200301:IotHubProperties" + }, + "sku": { + "$ref": "#/types/azurerm:devices/v20200301:IotHubSkuInfo" + }, + "tags": { + "type": "object" + } + }, + "required": [ + "location", + "sku" + ] + } + } + ], + "response": { + "etag": {}, + "id": {}, + "location": {}, + "name": {}, + "properties": { + "$ref": "#/types/azurerm:devices/v20200301:IotHubPropertiesResponse" + }, + "sku": { + "$ref": "#/types/azurerm:devices/v20200301:IotHubSkuInfoResponse" + }, + "tags": {}, + "type": {} + } + }, + "azurerm:devices/v20200301:IotHubResourceEventHubConsumerGroup": { + "apiVersion": "2020-03-01", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/eventHubEndpoints/{eventHubEndpointName}/ConsumerGroups/{name}", + "GET": [ + { + "name": "subscriptionId", + "location": "path", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "resourceGroupName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "resourceName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "eventHubEndpointName", + "location": "path", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "name", + "location": "path", + "required": true, + "value": { + "type": "string" + } + } + ], + "PUT": [ + { + "name": "subscriptionId", + "location": "path", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "resourceGroupName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "resourceName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "eventHubEndpointName", + "location": "path", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "name", + "location": "path", + "required": true, + "value": { + "type": "string" + } + } + ], + "response": { + "etag": {}, + "id": {}, + "name": {}, + "properties": {}, + "type": {} + } + }, + "azurerm:devices/v20200301:PrivateEndpointConnection": { + "apiVersion": "2020-03-01", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/iotHubs/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}", + "GET": [ + { + "name": "subscriptionId", + "location": "path", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "resourceGroupName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "resourceName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "privateEndpointConnectionName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string" + } } ], "PUT": [ @@ -793540,12 +794475,6 @@ "value": {}, "body": { "properties": { - "identity": { - "$ref": "#/types/azurerm:machinelearningservices/latest:Identity" - }, - "location": { - "type": "string" - }, "privateLinkServiceConnectionState": { "$ref": "#/types/azurerm:machinelearningservices/latest:PrivateLinkServiceConnectionState", "container": "properties" @@ -793553,12 +794482,6 @@ "provisioningState": { "type": "string", "container": "properties" - }, - "sku": { - "$ref": "#/types/azurerm:machinelearningservices/latest:Sku" - }, - "tags": { - "type": "object" } }, "required": [ @@ -793569,10 +794492,6 @@ ], "response": { "id": {}, - "identity": { - "$ref": "#/types/azurerm:machinelearningservices/latest:IdentityResponse" - }, - "location": {}, "name": {}, "privateEndpoint": { "$ref": "#/types/azurerm:machinelearningservices/latest:PrivateEndpointResponse", @@ -793585,10 +794504,6 @@ "provisioningState": { "container": "properties" }, - "sku": { - "$ref": "#/types/azurerm:machinelearningservices/latest:SkuResponse" - }, - "tags": {}, "type": {} } }, @@ -798936,12 +799851,6 @@ "value": {}, "body": { "properties": { - "identity": { - "$ref": "#/types/azurerm:machinelearningservices/v20200601:Identity" - }, - "location": { - "type": "string" - }, "privateLinkServiceConnectionState": { "$ref": "#/types/azurerm:machinelearningservices/v20200601:PrivateLinkServiceConnectionState", "container": "properties" @@ -798949,12 +799858,6 @@ "provisioningState": { "type": "string", "container": "properties" - }, - "sku": { - "$ref": "#/types/azurerm:machinelearningservices/v20200601:Sku" - }, - "tags": { - "type": "object" } }, "required": [ @@ -798965,10 +799868,6 @@ ], "response": { "id": {}, - "identity": { - "$ref": "#/types/azurerm:machinelearningservices/v20200601:IdentityResponse" - }, - "location": {}, "name": {}, "privateEndpoint": { "$ref": "#/types/azurerm:machinelearningservices/v20200601:PrivateEndpointResponse", @@ -798981,10 +799880,6 @@ "provisioningState": { "container": "properties" }, - "sku": { - "$ref": "#/types/azurerm:machinelearningservices/v20200601:SkuResponse" - }, - "tags": {}, "type": {} } }, @@ -1178389,20 +1179284,145 @@ "POST": null, "response": { "actionGroups": { - "$ref": "#/types/azurerm:alertsmanagement/v20190301:ActionGroupsInformationResponse", + "$ref": "#/types/azurerm:alertsmanagement/v20190301:ActionGroupsInformationResponse", + "container": "properties" + }, + "description": { + "container": "properties" + }, + "detector": { + "$ref": "#/types/azurerm:alertsmanagement/v20190301:DetectorResponse", + "container": "properties" + }, + "frequency": { + "container": "properties" + }, + "id": {}, + "name": {}, + "scope": { + "items": { + "type": "string" + }, + "container": "properties" + }, + "severity": { + "container": "properties" + }, + "state": { + "container": "properties" + }, + "throttling": { + "$ref": "#/types/azurerm:alertsmanagement/v20190301:ThrottlingInformationResponse", + "container": "properties" + }, + "type": {} + } + }, + "azurerm:alertsmanagement/v20190505preview:getActionRuleByName": { + "apiVersion": "2019-05-05-preview", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AlertsManagement/actionRules/{actionRuleName}", + "GET": [ + { + "name": "subscriptionId", + "location": "path", + "required": true, + "value": { + "type": "string", + "minLength": 1 + } + }, + { + "name": "resourceGroupName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "actionRuleName", + "location": "path", + "required": true, + "value": { + "type": "string" + } + } + ], + "POST": null, + "response": { + "id": {}, + "location": {}, + "name": {}, + "properties": { + "oneOf": [ + "#/types/azurerm:alertsmanagement/v20190505preview:ActionGroupResponse", + "#/types/azurerm:alertsmanagement/v20190505preview:DiagnosticsResponse", + "#/types/azurerm:alertsmanagement/v20190505preview:SuppressionResponse" + ] + }, + "tags": {}, + "type": {} + } + }, + "azurerm:alertsmanagement/v20190601:getSmartDetectorAlertRule": { + "apiVersion": "2019-06-01", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.alertsManagement/smartDetectorAlertRules/{alertRuleName}", + "GET": [ + { + "name": "subscriptionId", + "location": "path", + "required": true, + "value": { + "type": "string", + "minLength": 1 + } + }, + { + "name": "resourceGroupName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "alertRuleName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "expandDetector", + "location": "query", + "source": "method", + "value": { + "type": "boolean" + } + } + ], + "POST": null, + "response": { + "actionGroups": { + "$ref": "#/types/azurerm:alertsmanagement/v20190601:ActionGroupsInformationResponse", "container": "properties" }, "description": { "container": "properties" }, "detector": { - "$ref": "#/types/azurerm:alertsmanagement/v20190301:DetectorResponse", + "$ref": "#/types/azurerm:alertsmanagement/v20190601:DetectorResponse", "container": "properties" }, "frequency": { "container": "properties" }, "id": {}, + "location": {}, "name": {}, "scope": { "items": { @@ -1178416,72 +1179436,25 @@ "state": { "container": "properties" }, + "tags": {}, "throttling": { - "$ref": "#/types/azurerm:alertsmanagement/v20190301:ThrottlingInformationResponse", + "$ref": "#/types/azurerm:alertsmanagement/v20190601:ThrottlingInformationResponse", "container": "properties" }, "type": {} } }, - "azurerm:alertsmanagement/v20190505preview:getActionRuleByName": { - "apiVersion": "2019-05-05-preview", - "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AlertsManagement/actionRules/{actionRuleName}", + "azurerm:alertsmanagement/v20200804preview:getHealthAlert": { + "apiVersion": "2020-08-04-preview", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AlertsManagement/resourceHealthAlerts/{ruleName}", "GET": [ { "name": "subscriptionId", "location": "path", "required": true, - "value": { - "type": "string", - "minLength": 1 - } - }, - { - "name": "resourceGroupName", - "location": "path", - "source": "method", - "required": true, - "value": { - "type": "string" - } - }, - { - "name": "actionRuleName", - "location": "path", - "required": true, "value": { "type": "string" } - } - ], - "POST": null, - "response": { - "id": {}, - "location": {}, - "name": {}, - "properties": { - "oneOf": [ - "#/types/azurerm:alertsmanagement/v20190505preview:ActionGroupResponse", - "#/types/azurerm:alertsmanagement/v20190505preview:DiagnosticsResponse", - "#/types/azurerm:alertsmanagement/v20190505preview:SuppressionResponse" - ] - }, - "tags": {}, - "type": {} - } - }, - "azurerm:alertsmanagement/v20190601:getSmartDetectorAlertRule": { - "apiVersion": "2019-06-01", - "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.alertsManagement/smartDetectorAlertRules/{alertRuleName}", - "GET": [ - { - "name": "subscriptionId", - "location": "path", - "required": true, - "value": { - "type": "string", - "minLength": 1 - } }, { "name": "resourceGroupName", @@ -1178493,59 +1179466,46 @@ } }, { - "name": "alertRuleName", + "name": "ruleName", "location": "path", "source": "method", "required": true, "value": { "type": "string" } - }, - { - "name": "expandDetector", - "location": "query", - "source": "method", - "value": { - "type": "boolean" - } } ], "POST": null, "response": { - "actionGroups": { - "$ref": "#/types/azurerm:alertsmanagement/v20190601:ActionGroupsInformationResponse", + "actions": { + "items": { + "$ref": "#/types/azurerm:alertsmanagement/v20200804preview:HealthAlertActionResponse" + }, "container": "properties" }, - "description": { + "criteria": { + "$ref": "#/types/azurerm:alertsmanagement/v20200804preview:HealthAlertCriteriaResponse", "container": "properties" }, - "detector": { - "$ref": "#/types/azurerm:alertsmanagement/v20190601:DetectorResponse", + "description": { "container": "properties" }, - "frequency": { + "enabled": { "container": "properties" }, "id": {}, + "lastUpdatedTime": { + "container": "properties" + }, "location": {}, "name": {}, - "scope": { + "scopes": { "items": { "type": "string" }, "container": "properties" }, - "severity": { - "container": "properties" - }, - "state": { - "container": "properties" - }, "tags": {}, - "throttling": { - "$ref": "#/types/azurerm:alertsmanagement/v20190601:ThrottlingInformationResponse", - "container": "properties" - }, "type": {} } }, @@ -1203448,13 +1204408,179 @@ }, "policyDefinitionGroups": { "items": { - "$ref": "#/types/azurerm:authorization/v20190901:PolicyDefinitionGroupResponse" + "$ref": "#/types/azurerm:authorization/v20190901:PolicyDefinitionGroupResponse" + }, + "container": "properties" + }, + "policyDefinitions": { + "items": { + "$ref": "#/types/azurerm:authorization/v20190901:PolicyDefinitionReferenceResponse" + }, + "container": "properties" + }, + "policyType": { + "container": "properties" + }, + "type": {} + } + }, + "azurerm:authorization/v20200301:getPolicyAssignment": { + "apiVersion": "2020-03-01", + "path": "/{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}", + "GET": [ + { + "name": "scope", + "location": "path", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "policyAssignmentName", + "location": "path", + "required": true, + "value": { + "type": "string" + } + } + ], + "POST": null, + "response": { + "description": { + "container": "properties" + }, + "displayName": { + "container": "properties" + }, + "enforcementMode": { + "container": "properties" + }, + "id": {}, + "identity": { + "$ref": "#/types/azurerm:authorization/v20200301:IdentityResponse" + }, + "location": {}, + "metadata": { + "container": "properties" + }, + "name": {}, + "notScopes": { + "items": { + "type": "string" + }, + "container": "properties" + }, + "parameters": { + "container": "properties" + }, + "policyDefinitionId": { + "container": "properties" + }, + "scope": { + "container": "properties" + }, + "sku": { + "$ref": "#/types/azurerm:authorization/v20200301:PolicySkuResponse" + }, + "type": {} + } + }, + "azurerm:authorization/v20200301:getPolicyDefinition": { + "apiVersion": "2020-03-01", + "path": "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}", + "GET": [ + { + "name": "policyDefinitionName", + "location": "path", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "subscriptionId", + "location": "path", + "required": true, + "value": { + "type": "string" + } + } + ], + "POST": null, + "response": { + "description": { + "container": "properties" + }, + "displayName": { + "container": "properties" + }, + "id": {}, + "metadata": { + "container": "properties" + }, + "mode": { + "container": "properties" + }, + "name": {}, + "parameters": { + "container": "properties" + }, + "policyRule": { + "container": "properties" + }, + "policyType": { + "container": "properties" + }, + "type": {} + } + }, + "azurerm:authorization/v20200301:getPolicySetDefinition": { + "apiVersion": "2020-03-01", + "path": "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}", + "GET": [ + { + "name": "policySetDefinitionName", + "location": "path", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "subscriptionId", + "location": "path", + "required": true, + "value": { + "type": "string" + } + } + ], + "POST": null, + "response": { + "description": { + "container": "properties" + }, + "displayName": { + "container": "properties" + }, + "id": {}, + "metadata": { + "container": "properties" + }, + "name": {}, + "parameters": { + "container": "properties" + }, + "policyDefinitionGroups": { + "items": { + "$ref": "#/types/azurerm:authorization/v20200301:PolicyDefinitionGroupResponse" }, "container": "properties" }, "policyDefinitions": { "items": { - "$ref": "#/types/azurerm:authorization/v20190901:PolicyDefinitionReferenceResponse" + "$ref": "#/types/azurerm:authorization/v20200301:PolicyDefinitionReferenceResponse" }, "container": "properties" }, @@ -1203464,9 +1204590,9 @@ "type": {} } }, - "azurerm:authorization/v20200301:getPolicyAssignment": { - "apiVersion": "2020-03-01", - "path": "/{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}", + "azurerm:authorization/v20200401preview:getRoleAssignment": { + "apiVersion": "2020-04-01-preview", + "path": "/{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}", "GET": [ { "name": "scope", @@ -1203477,7 +1204603,7 @@ } }, { - "name": "policyAssignmentName", + "name": "roleAssignmentName", "location": "path", "required": true, "value": { @@ -1203487,60 +1204613,52 @@ ], "POST": null, "response": { - "description": { + "canDelegate": { "container": "properties" }, - "displayName": { + "condition": { "container": "properties" }, - "enforcementMode": { + "conditionVersion": { "container": "properties" }, - "id": {}, - "identity": { - "$ref": "#/types/azurerm:authorization/v20200301:IdentityResponse" - }, - "location": {}, - "metadata": { + "description": { "container": "properties" }, + "id": {}, "name": {}, - "notScopes": { - "items": { - "type": "string" - }, + "principalId": { "container": "properties" }, - "parameters": { + "principalType": { "container": "properties" }, - "policyDefinitionId": { + "roleDefinitionId": { "container": "properties" }, "scope": { "container": "properties" }, - "sku": { - "$ref": "#/types/azurerm:authorization/v20200301:PolicySkuResponse" - }, "type": {} } }, - "azurerm:authorization/v20200301:getPolicyDefinition": { - "apiVersion": "2020-03-01", - "path": "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}", + "azurerm:authorization/v20200701preview:getPolicyExemption": { + "apiVersion": "2020-07-01-preview", + "path": "/{scope}/providers/Microsoft.Authorization/policyExemptions/{policyExemptionName}", "GET": [ { - "name": "policyDefinitionName", + "name": "scope", "location": "path", + "source": "method", "required": true, "value": { "type": "string" } }, { - "name": "subscriptionId", + "name": "policyExemptionName", "location": "path", + "source": "method", "required": true, "value": { "type": "string" @@ -1203555,53 +1204673,10 @@ "displayName": { "container": "properties" }, - "id": {}, - "metadata": { - "container": "properties" - }, - "mode": { - "container": "properties" - }, - "name": {}, - "parameters": { - "container": "properties" - }, - "policyRule": { - "container": "properties" - }, - "policyType": { - "container": "properties" - }, - "type": {} - } - }, - "azurerm:authorization/v20200301:getPolicySetDefinition": { - "apiVersion": "2020-03-01", - "path": "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}", - "GET": [ - { - "name": "policySetDefinitionName", - "location": "path", - "required": true, - "value": { - "type": "string" - } - }, - { - "name": "subscriptionId", - "location": "path", - "required": true, - "value": { - "type": "string" - } - } - ], - "POST": null, - "response": { - "description": { + "exemptionCategory": { "container": "properties" }, - "displayName": { + "expiresOn": { "container": "properties" }, "id": {}, @@ -1203609,75 +1204684,17 @@ "container": "properties" }, "name": {}, - "parameters": { - "container": "properties" - }, - "policyDefinitionGroups": { - "items": { - "$ref": "#/types/azurerm:authorization/v20200301:PolicyDefinitionGroupResponse" - }, + "policyAssignmentId": { "container": "properties" }, - "policyDefinitions": { + "policyDefinitionReferenceIds": { "items": { - "$ref": "#/types/azurerm:authorization/v20200301:PolicyDefinitionReferenceResponse" - }, - "container": "properties" - }, - "policyType": { - "container": "properties" - }, - "type": {} - } - }, - "azurerm:authorization/v20200401preview:getRoleAssignment": { - "apiVersion": "2020-04-01-preview", - "path": "/{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}", - "GET": [ - { - "name": "scope", - "location": "path", - "required": true, - "value": { - "type": "string" - } - }, - { - "name": "roleAssignmentName", - "location": "path", - "required": true, - "value": { "type": "string" - } - } - ], - "POST": null, - "response": { - "canDelegate": { - "container": "properties" - }, - "condition": { - "container": "properties" - }, - "conditionVersion": { - "container": "properties" - }, - "description": { - "container": "properties" - }, - "id": {}, - "name": {}, - "principalId": { - "container": "properties" - }, - "principalType": { - "container": "properties" - }, - "roleDefinitionId": { + }, "container": "properties" }, - "scope": { - "container": "properties" + "systemData": { + "$ref": "#/types/azurerm:authorization/v20200701preview:systemDataResponse" }, "type": {} } @@ -1271396,7 +1272413,7 @@ } }, "azurerm:devices/latest:getDpsCertificate": { - "apiVersion": "2020-01-01", + "apiVersion": "2020-03-01", "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/certificates/{certificateName}", "GET": [ { @@ -1271444,7 +1272461,7 @@ } }, "azurerm:devices/latest:getIotDpsResource": { - "apiVersion": "2020-01-01", + "apiVersion": "2020-03-01", "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}", "GET": [ { @@ -1271488,6 +1272505,56 @@ "type": {} } }, + "azurerm:devices/latest:getIotDpsResourcePrivateEndpointConnection": { + "apiVersion": "2020-03-01", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}", + "GET": [ + { + "name": "subscriptionId", + "location": "path", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "resourceGroupName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "resourceName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "privateEndpointConnectionName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string" + } + } + ], + "POST": null, + "response": { + "id": {}, + "name": {}, + "properties": { + "$ref": "#/types/azurerm:devices/latest:PrivateEndpointConnectionPropertiesResponse" + }, + "type": {} + } + }, "azurerm:devices/latest:getIotHubResource": { "apiVersion": "2020-08-01", "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}", @@ -1271642,7 +1272709,7 @@ } }, "azurerm:devices/latest:listIotDpsResourceKeys": { - "apiVersion": "2020-01-01", + "apiVersion": "2020-03-01", "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/listkeys", "GET": null, "POST": [ @@ -1271681,7 +1272748,7 @@ } }, "azurerm:devices/latest:listIotDpsResourceKeysForKeyName": { - "apiVersion": "2020-01-01", + "apiVersion": "2020-03-01", "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/keys/{keyName}/listkeys", "GET": null, "POST": [ @@ -1274731,25 +1275798,64 @@ } } ], - "POST": null, + "POST": null, + "response": { + "etag": {}, + "id": {}, + "location": {}, + "name": {}, + "properties": { + "$ref": "#/types/azurerm:devices/v20200101:IotDpsPropertiesDescriptionResponse" + }, + "sku": { + "$ref": "#/types/azurerm:devices/v20200101:IotDpsSkuInfoResponse" + }, + "tags": {}, + "type": {} + } + }, + "azurerm:devices/v20200101:listIotDpsResourceKeys": { + "apiVersion": "2020-01-01", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/listkeys", + "GET": null, + "POST": [ + { + "name": "provisioningServiceName", + "location": "path", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "subscriptionId", + "location": "path", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "resourceGroupName", + "location": "path", + "required": true, + "value": { + "type": "string" + } + } + ], "response": { - "etag": {}, - "id": {}, - "location": {}, - "name": {}, - "properties": { - "$ref": "#/types/azurerm:devices/v20200101:IotDpsPropertiesDescriptionResponse" - }, - "sku": { - "$ref": "#/types/azurerm:devices/v20200101:IotDpsSkuInfoResponse" - }, - "tags": {}, - "type": {} + "nextLink": {}, + "value": { + "items": { + "$ref": "#/types/azurerm:devices/v20200101:SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponse" + } + } } }, - "azurerm:devices/v20200101:listIotDpsResourceKeys": { + "azurerm:devices/v20200101:listIotDpsResourceKeysForKeyName": { "apiVersion": "2020-01-01", - "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/listkeys", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/keys/{keyName}/listkeys", "GET": null, "POST": [ { @@ -1274760,6 +1275866,14 @@ "type": "string" } }, + { + "name": "keyName", + "location": "path", + "required": true, + "value": { + "type": "string" + } + }, { "name": "subscriptionId", "location": "path", @@ -1274778,19 +1275892,92 @@ } ], "response": { - "nextLink": {}, - "value": { - "items": { - "$ref": "#/types/azurerm:devices/v20200101:SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponse" + "keyName": {}, + "primaryKey": {}, + "rights": {}, + "secondaryKey": {} + } + }, + "azurerm:devices/v20200301:getCertificate": { + "apiVersion": "2020-03-01", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/certificates/{certificateName}", + "GET": [ + { + "name": "subscriptionId", + "location": "path", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "resourceGroupName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "resourceName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "certificateName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string", + "pattern": "^[A-Za-z0-9-._]{1,64}$" } } + ], + "POST": null, + "response": { + "etag": {}, + "id": {}, + "name": {}, + "properties": { + "$ref": "#/types/azurerm:devices/v20200301:CertificatePropertiesResponse" + }, + "type": {} } }, - "azurerm:devices/v20200101:listIotDpsResourceKeysForKeyName": { - "apiVersion": "2020-01-01", - "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/keys/{keyName}/listkeys", - "GET": null, - "POST": [ + "azurerm:devices/v20200301:getDpsCertificate": { + "apiVersion": "2020-03-01", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/certificates/{certificateName}", + "GET": [ + { + "name": "certificateName", + "location": "path", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "subscriptionId", + "location": "path", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "resourceGroupName", + "location": "path", + "required": true, + "value": { + "type": "string" + } + }, { "name": "provisioningServiceName", "location": "path", @@ -1274798,9 +1275985,25 @@ "value": { "type": "string" } + } + ], + "POST": null, + "response": { + "etag": {}, + "id": {}, + "name": {}, + "properties": { + "$ref": "#/types/azurerm:devices/v20200301:CertificatePropertiesResponse" }, + "type": {} + } + }, + "azurerm:devices/v20200301:getIotDpsResource": { + "apiVersion": "2020-03-01", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}", + "GET": [ { - "name": "keyName", + "name": "provisioningServiceName", "location": "path", "required": true, "value": { @@ -1274824,16 +1276027,25 @@ } } ], + "POST": null, "response": { - "keyName": {}, - "primaryKey": {}, - "rights": {}, - "secondaryKey": {} + "etag": {}, + "id": {}, + "location": {}, + "name": {}, + "properties": { + "$ref": "#/types/azurerm:devices/v20200301:IotDpsPropertiesDescriptionResponse" + }, + "sku": { + "$ref": "#/types/azurerm:devices/v20200301:IotDpsSkuInfoResponse" + }, + "tags": {}, + "type": {} } }, - "azurerm:devices/v20200301:getCertificate": { + "azurerm:devices/v20200301:getIotDpsResourcePrivateEndpointConnection": { "apiVersion": "2020-03-01", - "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/certificates/{certificateName}", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}", "GET": [ { "name": "subscriptionId", @@ -1274862,23 +1276074,21 @@ } }, { - "name": "certificateName", + "name": "privateEndpointConnectionName", "location": "path", "source": "method", "required": true, "value": { - "type": "string", - "pattern": "^[A-Za-z0-9-._]{1,64}$" + "type": "string" } } ], "POST": null, "response": { - "etag": {}, "id": {}, "name": {}, "properties": { - "$ref": "#/types/azurerm:devices/v20200301:CertificatePropertiesResponse" + "$ref": "#/types/azurerm:devices/v20200301:PrivateEndpointConnectionPropertiesResponse" }, "type": {} } @@ -1275036,6 +1276246,90 @@ "type": {} } }, + "azurerm:devices/v20200301:listIotDpsResourceKeys": { + "apiVersion": "2020-03-01", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/listkeys", + "GET": null, + "POST": [ + { + "name": "provisioningServiceName", + "location": "path", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "subscriptionId", + "location": "path", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "resourceGroupName", + "location": "path", + "required": true, + "value": { + "type": "string" + } + } + ], + "response": { + "nextLink": {}, + "value": { + "items": { + "$ref": "#/types/azurerm:devices/v20200301:SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponse" + } + } + } + }, + "azurerm:devices/v20200301:listIotDpsResourceKeysForKeyName": { + "apiVersion": "2020-03-01", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/keys/{keyName}/listkeys", + "GET": null, + "POST": [ + { + "name": "provisioningServiceName", + "location": "path", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "keyName", + "location": "path", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "subscriptionId", + "location": "path", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "resourceGroupName", + "location": "path", + "required": true, + "value": { + "type": "string" + } + } + ], + "response": { + "keyName": {}, + "primaryKey": {}, + "rights": {}, + "secondaryKey": {} + } + }, "azurerm:devices/v20200301:listIotHubResourceKeys": { "apiVersion": "2020-03-01", "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/listkeys", @@ -1322846,10 +1324140,6 @@ "POST": null, "response": { "id": {}, - "identity": { - "$ref": "#/types/azurerm:machinelearningservices/latest:IdentityResponse" - }, - "location": {}, "name": {}, "privateEndpoint": { "$ref": "#/types/azurerm:machinelearningservices/latest:PrivateEndpointResponse", @@ -1322862,10 +1324152,6 @@ "provisioningState": { "container": "properties" }, - "sku": { - "$ref": "#/types/azurerm:machinelearningservices/latest:SkuResponse" - }, - "tags": {}, "type": {} } }, @@ -1327147,10 +1328433,6 @@ "POST": null, "response": { "id": {}, - "identity": { - "$ref": "#/types/azurerm:machinelearningservices/v20200601:IdentityResponse" - }, - "location": {}, "name": {}, "privateEndpoint": { "$ref": "#/types/azurerm:machinelearningservices/v20200601:PrivateEndpointResponse", @@ -1327163,10 +1328445,6 @@ "provisioningState": { "container": "properties" }, - "sku": { - "$ref": "#/types/azurerm:machinelearningservices/v20200601:SkuResponse" - }, - "tags": {}, "type": {} } }, diff --git a/sdk/schema/schema.json b/sdk/schema/schema.json index 43ddb2f2d873..f109ec17facb 100644 --- a/sdk/schema/schema.json +++ b/sdk/schema/schema.json @@ -2522,6 +2522,154 @@ }, "type": "object" }, + "azurerm:alertsmanagement/v20200804preview:HealthAlertAction": { + "description": "An alert action.", + "properties": { + "actionGroupId": { + "type": "string", + "description": "the id of the action group to use." + }, + "webHookProperties": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "The properties of a webhook object." + } + }, + "type": "object" + }, + "azurerm:alertsmanagement/v20200804preview:HealthAlertActionResponse": { + "description": "An alert action.", + "properties": { + "actionGroupId": { + "type": "string", + "description": "the id of the action group to use." + }, + "webHookProperties": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "The properties of a webhook object." + } + }, + "type": "object" + }, + "azurerm:alertsmanagement/v20200804preview:HealthAlertCriteria": { + "description": "Specifies the resource health alert criteria for a single resource that has multiple metric criteria.", + "properties": { + "allOf": { + "type": "array", + "items": { + "$ref": "#/types/azurerm:alertsmanagement/v20200804preview:VmGuestHealthAlertCriterion" + }, + "description": "The list of metric criteria for this 'all of' operation. " + } + }, + "type": "object" + }, + "azurerm:alertsmanagement/v20200804preview:HealthAlertCriteriaResponse": { + "description": "Specifies the resource health alert criteria for a single resource that has multiple metric criteria.", + "properties": { + "allOf": { + "type": "array", + "items": { + "$ref": "#/types/azurerm:alertsmanagement/v20200804preview:VmGuestHealthAlertCriterionResponse" + }, + "description": "The list of metric criteria for this 'all of' operation. " + } + }, + "type": "object" + }, + "azurerm:alertsmanagement/v20200804preview:HealthState": { + "description": "Specifies the health state to alert on and the corresponding severity", + "properties": { + "healthStateName": { + "type": "string", + "description": "Health state" + }, + "severity": { + "type": "string", + "description": "Severity of alert fired" + } + }, + "type": "object", + "required": [ + "healthStateName", + "severity" + ] + }, + "azurerm:alertsmanagement/v20200804preview:HealthStateResponse": { + "description": "Specifies the health state to alert on and the corresponding severity", + "properties": { + "healthStateName": { + "type": "string", + "description": "Health state" + }, + "severity": { + "type": "string", + "description": "Severity of alert fired" + } + }, + "type": "object", + "required": [ + "healthStateName", + "severity" + ] + }, + "azurerm:alertsmanagement/v20200804preview:VmGuestHealthAlertCriterion": { + "description": "Specifies the health alert criteria to alert on.", + "properties": { + "healthMonitorName": { + "type": "string", + "description": "Name of health monitor on which to define alert" + }, + "healthStates": { + "type": "array", + "items": { + "$ref": "#/types/azurerm:alertsmanagement/v20200804preview:HealthState" + }, + "description": "Health states to alert on" + }, + "namespace": { + "type": "string", + "description": "specifies the type of the alert criterion.", + "const": "VmGuestHealth" + } + }, + "type": "object", + "required": [ + "healthMonitorName", + "namespace" + ] + }, + "azurerm:alertsmanagement/v20200804preview:VmGuestHealthAlertCriterionResponse": { + "description": "Specifies the health alert criteria to alert on.", + "properties": { + "healthMonitorName": { + "type": "string", + "description": "Name of health monitor on which to define alert" + }, + "healthStates": { + "type": "array", + "items": { + "$ref": "#/types/azurerm:alertsmanagement/v20200804preview:HealthStateResponse" + }, + "description": "Health states to alert on" + }, + "namespace": { + "type": "string", + "description": "specifies the type of the alert criterion.", + "const": "VmGuestHealth" + } + }, + "type": "object", + "required": [ + "healthMonitorName", + "namespace" + ] + }, "azurerm:analysisservices/latest:GatewayDetails": { "description": "The gateway details.", "properties": { @@ -18568,6 +18716,36 @@ "name" ] }, + "azurerm:authorization/v20200701preview:systemDataResponse": { + "description": "Metadata pertaining to creation and last modification of the resource.", + "properties": { + "createdAt": { + "type": "string", + "description": "The timestamp of resource creation (UTC)." + }, + "createdBy": { + "type": "string", + "description": "The identity that created the resource." + }, + "createdByType": { + "type": "string", + "description": "The type of identity that created the resource." + }, + "lastModifiedAt": { + "type": "string", + "description": "The type of identity that last modified the resource." + }, + "lastModifiedBy": { + "type": "string", + "description": "The identity that last modified the resource." + }, + "lastModifiedByType": { + "type": "string", + "description": "The type of identity that last modified the resource." + } + }, + "type": "object" + }, "azurerm:automanage/v20200630preview:AccountIdentity": { "description": "Identity for the Automanage account.", "properties": { @@ -302620,10 +302798,21 @@ }, "description": "The IP filter rules." }, + "privateEndpointConnections": { + "type": "array", + "items": { + "$ref": "#/types/azurerm:devices/latest:PrivateEndpointConnection" + }, + "description": "Private endpoint connections created on this IotHub" + }, "provisioningState": { "type": "string", "description": "The ARM provisioning state of the provisioning service." }, + "publicNetworkAccess": { + "type": "string", + "description": "Whether requests from Public Network are allowed" + }, "state": { "type": "string", "description": "Current state of the provisioning service." @@ -302667,10 +302856,21 @@ }, "description": "The IP filter rules." }, + "privateEndpointConnections": { + "type": "array", + "items": { + "$ref": "#/types/azurerm:devices/latest:PrivateEndpointConnectionResponse" + }, + "description": "Private endpoint connections created on this IotHub" + }, "provisioningState": { "type": "string", "description": "The ARM provisioning state of the provisioning service." }, + "publicNetworkAccess": { + "type": "string", + "description": "Whether requests from Public Network are allowed" + }, "serviceOperationsHostName": { "type": "string", "description": "Service endpoint for provisioning service." @@ -302735,7 +302935,7 @@ }, "connectionString": { "type": "string", - "description": "Connection string og the IoT hub." + "description": "Connection string of the IoT hub." }, "location": { "type": "string", @@ -302761,7 +302961,7 @@ }, "connectionString": { "type": "string", - "description": "Connection string og the IoT hub." + "description": "Connection string of the IoT hub." }, "location": { "type": "string", @@ -315025,13 +315225,9 @@ "azurerm:devices/v20200301:CertificatePropertiesResponse": { "description": "The description of an X509 CA Certificate.", "properties": { - "certificate": { - "type": "string", - "description": "The certificate content" - }, "created": { "type": "string", - "description": "The certificate's create date and time." + "description": "The certificate's creation date and time." }, "expiry": { "type": "string", @@ -315304,6 +315500,215 @@ }, "type": "object" }, + "azurerm:devices/v20200301:IotDpsPropertiesDescription": { + "description": "the service specific properties of a provisioning service, including keys, linked iot hubs, current state, and system generated properties such as hostname and idScope", + "properties": { + "allocationPolicy": { + "type": "string", + "description": "Allocation policy to be used by this provisioning service." + }, + "authorizationPolicies": { + "type": "array", + "items": { + "$ref": "#/types/azurerm:devices/v20200301:SharedAccessSignatureAuthorizationRuleAccessRightsDescription" + }, + "description": "List of authorization keys for a provisioning service." + }, + "iotHubs": { + "type": "array", + "items": { + "$ref": "#/types/azurerm:devices/v20200301:IotHubDefinitionDescription" + }, + "description": "List of IoT hubs associated with this provisioning service." + }, + "ipFilterRules": { + "type": "array", + "items": { + "$ref": "#/types/azurerm:devices/v20200301:IpFilterRule" + }, + "description": "The IP filter rules." + }, + "privateEndpointConnections": { + "type": "array", + "items": { + "$ref": "#/types/azurerm:devices/v20200301:PrivateEndpointConnection" + }, + "description": "Private endpoint connections created on this IotHub" + }, + "provisioningState": { + "type": "string", + "description": "The ARM provisioning state of the provisioning service." + }, + "publicNetworkAccess": { + "type": "string", + "description": "Whether requests from Public Network are allowed" + }, + "state": { + "type": "string", + "description": "Current state of the provisioning service." + } + }, + "type": "object" + }, + "azurerm:devices/v20200301:IotDpsPropertiesDescriptionResponse": { + "description": "the service specific properties of a provisioning service, including keys, linked iot hubs, current state, and system generated properties such as hostname and idScope", + "properties": { + "allocationPolicy": { + "type": "string", + "description": "Allocation policy to be used by this provisioning service." + }, + "authorizationPolicies": { + "type": "array", + "items": { + "$ref": "#/types/azurerm:devices/v20200301:SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponse" + }, + "description": "List of authorization keys for a provisioning service." + }, + "deviceProvisioningHostName": { + "type": "string", + "description": "Device endpoint for this provisioning service." + }, + "idScope": { + "type": "string", + "description": "Unique identifier of this provisioning service." + }, + "iotHubs": { + "type": "array", + "items": { + "$ref": "#/types/azurerm:devices/v20200301:IotHubDefinitionDescriptionResponse" + }, + "description": "List of IoT hubs associated with this provisioning service." + }, + "ipFilterRules": { + "type": "array", + "items": { + "$ref": "#/types/azurerm:devices/v20200301:IpFilterRuleResponse" + }, + "description": "The IP filter rules." + }, + "privateEndpointConnections": { + "type": "array", + "items": { + "$ref": "#/types/azurerm:devices/v20200301:PrivateEndpointConnectionResponse" + }, + "description": "Private endpoint connections created on this IotHub" + }, + "provisioningState": { + "type": "string", + "description": "The ARM provisioning state of the provisioning service." + }, + "publicNetworkAccess": { + "type": "string", + "description": "Whether requests from Public Network are allowed" + }, + "serviceOperationsHostName": { + "type": "string", + "description": "Service endpoint for provisioning service." + }, + "state": { + "type": "string", + "description": "Current state of the provisioning service." + } + }, + "type": "object", + "required": [ + "deviceProvisioningHostName", + "idScope", + "serviceOperationsHostName" + ] + }, + "azurerm:devices/v20200301:IotDpsSkuInfo": { + "description": "List of possible provisioning service SKUs.", + "properties": { + "capacity": { + "type": "integer", + "description": "The number of units to provision" + }, + "name": { + "type": "string", + "description": "Sku name." + } + }, + "type": "object" + }, + "azurerm:devices/v20200301:IotDpsSkuInfoResponse": { + "description": "List of possible provisioning service SKUs.", + "properties": { + "capacity": { + "type": "integer", + "description": "The number of units to provision" + }, + "name": { + "type": "string", + "description": "Sku name." + }, + "tier": { + "type": "string", + "description": "Pricing tier name of the provisioning service." + } + }, + "type": "object", + "required": [ + "tier" + ] + }, + "azurerm:devices/v20200301:IotHubDefinitionDescription": { + "description": "Description of the IoT hub.", + "properties": { + "allocationWeight": { + "type": "integer", + "description": "weight to apply for a given iot h." + }, + "applyAllocationPolicy": { + "type": "boolean", + "description": "flag for applying allocationPolicy or not for a given iot hub." + }, + "connectionString": { + "type": "string", + "description": "Connection string of the IoT hub." + }, + "location": { + "type": "string", + "description": "ARM region of the IoT hub." + } + }, + "type": "object", + "required": [ + "connectionString", + "location" + ] + }, + "azurerm:devices/v20200301:IotHubDefinitionDescriptionResponse": { + "description": "Description of the IoT hub.", + "properties": { + "allocationWeight": { + "type": "integer", + "description": "weight to apply for a given iot h." + }, + "applyAllocationPolicy": { + "type": "boolean", + "description": "flag for applying allocationPolicy or not for a given iot hub." + }, + "connectionString": { + "type": "string", + "description": "Connection string of the IoT hub." + }, + "location": { + "type": "string", + "description": "ARM region of the IoT hub." + }, + "name": { + "type": "string", + "description": "Host name of the IoT hub." + } + }, + "type": "object", + "required": [ + "connectionString", + "location", + "name" + ] + }, "azurerm:devices/v20200301:IotHubLocationDescriptionResponse": { "description": "Public representation of one of the locations where a resource is provisioned.", "properties": { @@ -316326,6 +316731,58 @@ "rights" ] }, + "azurerm:devices/v20200301:SharedAccessSignatureAuthorizationRuleAccessRightsDescription": { + "description": "Description of the shared access key.", + "properties": { + "keyName": { + "type": "string", + "description": "Name of the key." + }, + "primaryKey": { + "type": "string", + "description": "Primary SAS key value." + }, + "rights": { + "type": "string", + "description": "Rights that this key has." + }, + "secondaryKey": { + "type": "string", + "description": "Secondary SAS key value." + } + }, + "type": "object", + "required": [ + "keyName", + "rights" + ] + }, + "azurerm:devices/v20200301:SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponse": { + "description": "Description of the shared access key.", + "properties": { + "keyName": { + "type": "string", + "description": "Name of the key." + }, + "primaryKey": { + "type": "string", + "description": "Primary SAS key value." + }, + "rights": { + "type": "string", + "description": "Rights that this key has." + }, + "secondaryKey": { + "type": "string", + "description": "Secondary SAS key value." + } + }, + "type": "object", + "required": [ + "keyName", + "rights" + ] + }, "azurerm:devices/v20200301:SharedAccessSignatureAuthorizationRuleResponse": { "description": "The properties of an IoT hub shared access policy.", "properties": { @@ -365292,6 +365749,10 @@ "type": "string", "description": "The operator used to compare the metric value against the threshold." }, + "skipMetricValidation": { + "type": "boolean", + "description": "Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped." + }, "timeAggregation": { "type": "object", "additionalProperties": { @@ -365354,6 +365815,10 @@ "type": "string", "description": "The operator used to compare the metric value against the threshold." }, + "skipMetricValidation": { + "type": "boolean", + "description": "Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped." + }, "timeAggregation": { "type": "object", "additionalProperties": { @@ -366037,6 +366502,10 @@ "type": "string", "description": "the criteria operator." }, + "skipMetricValidation": { + "type": "boolean", + "description": "Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped." + }, "threshold": { "type": "number", "description": "the criteria threshold value that activates the alert." @@ -366090,6 +366559,10 @@ "type": "string", "description": "the criteria operator." }, + "skipMetricValidation": { + "type": "boolean", + "description": "Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped." + }, "threshold": { "type": "number", "description": "the criteria threshold value that activates the alert." @@ -369696,6 +370169,10 @@ "type": "string", "description": "The operator used to compare the metric value against the threshold." }, + "skipMetricValidation": { + "type": "boolean", + "description": "Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped." + }, "timeAggregation": { "type": "object", "additionalProperties": { @@ -369758,6 +370235,10 @@ "type": "string", "description": "The operator used to compare the metric value against the threshold." }, + "skipMetricValidation": { + "type": "boolean", + "description": "Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped." + }, "timeAggregation": { "type": "object", "additionalProperties": { @@ -370129,6 +370610,10 @@ "type": "string", "description": "the criteria operator." }, + "skipMetricValidation": { + "type": "boolean", + "description": "Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped." + }, "threshold": { "type": "number", "description": "the criteria threshold value that activates the alert." @@ -370182,6 +370667,10 @@ "type": "string", "description": "the criteria operator." }, + "skipMetricValidation": { + "type": "boolean", + "description": "Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped." + }, "threshold": { "type": "number", "description": "the criteria threshold value that activates the alert." @@ -409779,19 +410268,11 @@ "properties": { "id": { "type": "string", - "description": "Specifies the resource ID." - }, - "identity": { - "$ref": "#/types/azurerm:machinelearningservices/latest:IdentityResponse", - "description": "The identity of the resource." - }, - "location": { - "type": "string", - "description": "Specifies the location of the resource." + "description": "ResourceId of the private endpoint connection." }, "name": { "type": "string", - "description": "Specifies the name of the resource." + "description": "Friendly name of the private endpoint connection." }, "privateEndpoint": { "$ref": "#/types/azurerm:machinelearningservices/latest:PrivateEndpointResponse", @@ -409805,20 +410286,9 @@ "type": "string", "description": "The provisioning state of the private endpoint connection resource." }, - "sku": { - "$ref": "#/types/azurerm:machinelearningservices/latest:SkuResponse", - "description": "The sku of the workspace." - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Contains resource tags defined as key/value pairs." - }, "type": { "type": "string", - "description": "Specifies the type of the resource." + "description": "Resource type of private endpoint connection." } }, "type": "object", @@ -430136,19 +430606,11 @@ "properties": { "id": { "type": "string", - "description": "Specifies the resource ID." - }, - "identity": { - "$ref": "#/types/azurerm:machinelearningservices/v20200601:IdentityResponse", - "description": "The identity of the resource." - }, - "location": { - "type": "string", - "description": "Specifies the location of the resource." + "description": "ResourceId of the private endpoint connection." }, "name": { "type": "string", - "description": "Specifies the name of the resource." + "description": "Friendly name of the private endpoint connection." }, "privateEndpoint": { "$ref": "#/types/azurerm:machinelearningservices/v20200601:PrivateEndpointResponse", @@ -430162,20 +430624,9 @@ "type": "string", "description": "The provisioning state of the private endpoint connection resource." }, - "sku": { - "$ref": "#/types/azurerm:machinelearningservices/v20200601:SkuResponse", - "description": "The sku of the workspace." - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Contains resource tags defined as key/value pairs." - }, "type": { "type": "string", - "description": "Specifies the type of the resource." + "description": "Resource type of private endpoint connection." } }, "type": "object", @@ -863839,151 +864290,143 @@ } ] }, - "azurerm:analysisservices/latest:ServerDetails": { - "description": "Represents an instance of an Analysis Services resource.", + "azurerm:alertsmanagement/v20200804preview:HealthAlert": { + "description": "The health alert resource.", "properties": { - "asAdministrators": { - "$ref": "#/types/azurerm:analysisservices/latest:ServerAdministratorsResponse", - "description": "A collection of AS server administrators" - }, - "backupBlobContainerUri": { - "type": "string", - "description": "The SAS container URI to the backup container." - }, - "gatewayDetails": { - "$ref": "#/types/azurerm:analysisservices/latest:GatewayDetailsResponse", - "description": "The gateway details configured for the AS server." + "actions": { + "type": "array", + "items": { + "$ref": "#/types/azurerm:alertsmanagement/v20200804preview:HealthAlertActionResponse" + }, + "description": "the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved." }, - "ipV4FirewallSettings": { - "$ref": "#/types/azurerm:analysisservices/latest:IPv4FirewallSettingsResponse", - "description": "The firewall settings for the AS server." + "criteria": { + "$ref": "#/types/azurerm:alertsmanagement/v20200804preview:HealthAlertCriteriaResponse", + "description": "defines the specific alert criteria information." }, - "location": { + "description": { "type": "string", - "description": "Location of the Analysis Services resource." + "description": "the description of the health alert that will be included in the alert email." }, - "name": { - "type": "string", - "description": "The name of the Analysis Services resource." + "enabled": { + "type": "boolean", + "description": "the flag that indicates whether the health alert is enabled." }, - "provisioningState": { + "lastUpdatedTime": { "type": "string", - "description": "The current deployment state of Analysis Services resource. The provisioningState is to indicate states for resource provisioning." + "description": "Last time the rule was updated in ISO8601 format." }, - "querypoolConnectionMode": { + "location": { "type": "string", - "description": "How the read-write server's participation in the query pool is controlled.\u003cbr/\u003eIt can have the following values: \u003cul\u003e\u003cli\u003ereadOnly - indicates that the read-write server is intended not to participate in query operations\u003c/li\u003e\u003cli\u003eall - indicates that the read-write server can participate in query operations\u003c/li\u003e\u003c/ul\u003eSpecifying readOnly when capacity is 1 results in error." + "description": "Resource location" }, - "serverFullName": { + "name": { "type": "string", - "description": "The full name of the Analysis Services resource." - }, - "sku": { - "$ref": "#/types/azurerm:analysisservices/latest:ResourceSkuResponse", - "description": "The SKU of the Analysis Services resource." + "description": "Azure resource name" }, - "state": { - "type": "string", - "description": "The current state of Analysis Services resource. The state is to indicate more states outside of resource provisioning." + "scopes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "the list of resource id's that this health alert is scoped to." }, "tags": { "type": "object", "additionalProperties": { "type": "string" }, - "description": "Key-value pairs of additional resource provisioning properties." + "description": "Resource tags" }, "type": { "type": "string", - "description": "The type of the Analysis Services resource." + "description": "Azure resource type" } }, "type": "object", "required": [ + "criteria", + "description", + "enabled", + "lastUpdatedTime", "location", "name", - "provisioningState", - "serverFullName", - "sku", - "state", "type" ], "inputProperties": { - "asAdministrators": { - "$ref": "#/types/azurerm:analysisservices/latest:ServerAdministrators", - "description": "A collection of AS server administrators" + "actions": { + "type": "array", + "items": { + "$ref": "#/types/azurerm:alertsmanagement/v20200804preview:HealthAlertAction" + }, + "description": "the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved." }, - "backupBlobContainerUri": { - "type": "string", - "description": "The SAS container URI to the backup container." + "criteria": { + "$ref": "#/types/azurerm:alertsmanagement/v20200804preview:HealthAlertCriteria", + "description": "defines the specific alert criteria information." }, - "gatewayDetails": { - "$ref": "#/types/azurerm:analysisservices/latest:GatewayDetails", - "description": "The gateway details configured for the AS server." + "description": { + "type": "string", + "description": "the description of the health alert that will be included in the alert email." }, - "ipV4FirewallSettings": { - "$ref": "#/types/azurerm:analysisservices/latest:IPv4FirewallSettings", - "description": "The firewall settings for the AS server." + "enabled": { + "type": "boolean", + "description": "the flag that indicates whether the health alert is enabled." }, "location": { "type": "string", - "description": "Location of the Analysis Services resource." - }, - "querypoolConnectionMode": { - "type": "string", - "description": "How the read-write server's participation in the query pool is controlled.\u003cbr/\u003eIt can have the following values: \u003cul\u003e\u003cli\u003ereadOnly - indicates that the read-write server is intended not to participate in query operations\u003c/li\u003e\u003cli\u003eall - indicates that the read-write server can participate in query operations\u003c/li\u003e\u003c/ul\u003eSpecifying readOnly when capacity is 1 results in error." + "description": "Resource location" }, "resourceGroupName": { "type": "string", - "description": "The name of the Azure Resource group of which a given Analysis Services server is part. This name must be at least 1 character in length, and no more than 90." + "description": "The name of the resource group." }, - "serverName": { + "ruleName": { "type": "string", - "description": "The name of the Analysis Services server. It must be a minimum of 3 characters, and a maximum of 63." + "description": "The name of the rule." }, - "sku": { - "$ref": "#/types/azurerm:analysisservices/latest:ResourceSku", - "description": "The SKU of the Analysis Services resource." + "scopes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "the list of resource id's that this health alert is scoped to." }, "tags": { "type": "object", "additionalProperties": { "type": "string" }, - "description": "Key-value pairs of additional resource provisioning properties." + "description": "Resource tags" } }, "requiredInputs": [ + "criteria", + "description", + "enabled", "location", "resourceGroupName", - "serverName", - "sku" - ], - "aliases": [ - { - "type": "azurerm:analysisservices/v20160516:ServerDetails" - }, - { - "type": "azurerm:analysisservices/v20170714:ServerDetails" - }, - { - "type": "azurerm:analysisservices/v20170801:ServerDetails" - }, - { - "type": "azurerm:analysisservices/v20170801beta:ServerDetails" - } + "ruleName" ] }, - "azurerm:analysisservices/v20160516:ServerDetails": { + "azurerm:analysisservices/latest:ServerDetails": { "description": "Represents an instance of an Analysis Services resource.", "properties": { "asAdministrators": { - "$ref": "#/types/azurerm:analysisservices/v20160516:ServerAdministratorsResponse", + "$ref": "#/types/azurerm:analysisservices/latest:ServerAdministratorsResponse", "description": "A collection of AS server administrators" }, "backupBlobContainerUri": { "type": "string", - "description": "The container URI of backup blob." + "description": "The SAS container URI to the backup container." + }, + "gatewayDetails": { + "$ref": "#/types/azurerm:analysisservices/latest:GatewayDetailsResponse", + "description": "The gateway details configured for the AS server." + }, + "ipV4FirewallSettings": { + "$ref": "#/types/azurerm:analysisservices/latest:IPv4FirewallSettingsResponse", + "description": "The firewall settings for the AS server." }, "location": { "type": "string", @@ -863997,12 +864440,139 @@ "type": "string", "description": "The current deployment state of Analysis Services resource. The provisioningState is to indicate states for resource provisioning." }, + "querypoolConnectionMode": { + "type": "string", + "description": "How the read-write server's participation in the query pool is controlled.\u003cbr/\u003eIt can have the following values: \u003cul\u003e\u003cli\u003ereadOnly - indicates that the read-write server is intended not to participate in query operations\u003c/li\u003e\u003cli\u003eall - indicates that the read-write server can participate in query operations\u003c/li\u003e\u003c/ul\u003eSpecifying readOnly when capacity is 1 results in error." + }, "serverFullName": { "type": "string", "description": "The full name of the Analysis Services resource." }, "sku": { - "$ref": "#/types/azurerm:analysisservices/v20160516:ResourceSkuResponse", + "$ref": "#/types/azurerm:analysisservices/latest:ResourceSkuResponse", + "description": "The SKU of the Analysis Services resource." + }, + "state": { + "type": "string", + "description": "The current state of Analysis Services resource. The state is to indicate more states outside of resource provisioning." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Key-value pairs of additional resource provisioning properties." + }, + "type": { + "type": "string", + "description": "The type of the Analysis Services resource." + } + }, + "type": "object", + "required": [ + "location", + "name", + "provisioningState", + "serverFullName", + "sku", + "state", + "type" + ], + "inputProperties": { + "asAdministrators": { + "$ref": "#/types/azurerm:analysisservices/latest:ServerAdministrators", + "description": "A collection of AS server administrators" + }, + "backupBlobContainerUri": { + "type": "string", + "description": "The SAS container URI to the backup container." + }, + "gatewayDetails": { + "$ref": "#/types/azurerm:analysisservices/latest:GatewayDetails", + "description": "The gateway details configured for the AS server." + }, + "ipV4FirewallSettings": { + "$ref": "#/types/azurerm:analysisservices/latest:IPv4FirewallSettings", + "description": "The firewall settings for the AS server." + }, + "location": { + "type": "string", + "description": "Location of the Analysis Services resource." + }, + "querypoolConnectionMode": { + "type": "string", + "description": "How the read-write server's participation in the query pool is controlled.\u003cbr/\u003eIt can have the following values: \u003cul\u003e\u003cli\u003ereadOnly - indicates that the read-write server is intended not to participate in query operations\u003c/li\u003e\u003cli\u003eall - indicates that the read-write server can participate in query operations\u003c/li\u003e\u003c/ul\u003eSpecifying readOnly when capacity is 1 results in error." + }, + "resourceGroupName": { + "type": "string", + "description": "The name of the Azure Resource group of which a given Analysis Services server is part. This name must be at least 1 character in length, and no more than 90." + }, + "serverName": { + "type": "string", + "description": "The name of the Analysis Services server. It must be a minimum of 3 characters, and a maximum of 63." + }, + "sku": { + "$ref": "#/types/azurerm:analysisservices/latest:ResourceSku", + "description": "The SKU of the Analysis Services resource." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Key-value pairs of additional resource provisioning properties." + } + }, + "requiredInputs": [ + "location", + "resourceGroupName", + "serverName", + "sku" + ], + "aliases": [ + { + "type": "azurerm:analysisservices/v20160516:ServerDetails" + }, + { + "type": "azurerm:analysisservices/v20170714:ServerDetails" + }, + { + "type": "azurerm:analysisservices/v20170801:ServerDetails" + }, + { + "type": "azurerm:analysisservices/v20170801beta:ServerDetails" + } + ] + }, + "azurerm:analysisservices/v20160516:ServerDetails": { + "description": "Represents an instance of an Analysis Services resource.", + "properties": { + "asAdministrators": { + "$ref": "#/types/azurerm:analysisservices/v20160516:ServerAdministratorsResponse", + "description": "A collection of AS server administrators" + }, + "backupBlobContainerUri": { + "type": "string", + "description": "The container URI of backup blob." + }, + "location": { + "type": "string", + "description": "Location of the Analysis Services resource." + }, + "name": { + "type": "string", + "description": "The name of the Analysis Services resource." + }, + "provisioningState": { + "type": "string", + "description": "The current deployment state of Analysis Services resource. The provisioningState is to indicate states for resource provisioning." + }, + "serverFullName": { + "type": "string", + "description": "The full name of the Analysis Services resource." + }, + "sku": { + "$ref": "#/types/azurerm:analysisservices/v20160516:ResourceSkuResponse", "description": "The SKU of the Analysis Services resource." }, "state": { @@ -899017,6 +899587,115 @@ } ] }, + "azurerm:authorization/v20200701preview:PolicyExemption": { + "description": "The policy exemption.", + "properties": { + "description": { + "type": "string", + "description": "The description of the policy exemption." + }, + "displayName": { + "type": "string", + "description": "The display name of the policy exemption." + }, + "exemptionCategory": { + "type": "string", + "description": "The policy exemption category. Possible values are Waiver and Mitigated." + }, + "expiresOn": { + "type": "string", + "description": "The expiration date and time (in UTC ISO 8601 format yyyy-MM-ddTHH:mm:ssZ) of the policy exemption." + }, + "metadata": { + "type": "object", + "additionalProperties": { + "$ref": "pulumi.json#/Any" + }, + "description": "The policy exemption metadata. Metadata is an open ended object and is typically a collection of key value pairs." + }, + "name": { + "type": "string", + "description": "The name of the resource" + }, + "policyAssignmentId": { + "type": "string", + "description": "The ID of the policy assignment that is being exempted." + }, + "policyDefinitionReferenceIds": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The policy definition reference ID list when the associated policy assignment is an assignment of a policy set definition." + }, + "systemData": { + "$ref": "#/types/azurerm:authorization/v20200701preview:systemDataResponse", + "description": "Azure Resource Manager metadata containing createdBy and modifiedBy information." + }, + "type": { + "type": "string", + "description": "The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts." + } + }, + "type": "object", + "required": [ + "exemptionCategory", + "name", + "policyAssignmentId", + "systemData", + "type" + ], + "inputProperties": { + "description": { + "type": "string", + "description": "The description of the policy exemption." + }, + "displayName": { + "type": "string", + "description": "The display name of the policy exemption." + }, + "exemptionCategory": { + "type": "string", + "description": "The policy exemption category. Possible values are Waiver and Mitigated." + }, + "expiresOn": { + "type": "string", + "description": "The expiration date and time (in UTC ISO 8601 format yyyy-MM-ddTHH:mm:ssZ) of the policy exemption." + }, + "metadata": { + "type": "object", + "additionalProperties": { + "$ref": "pulumi.json#/Any" + }, + "description": "The policy exemption metadata. Metadata is an open ended object and is typically a collection of key value pairs." + }, + "policyAssignmentId": { + "type": "string", + "description": "The ID of the policy assignment that is being exempted." + }, + "policyDefinitionReferenceIds": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The policy definition reference ID list when the associated policy assignment is an assignment of a policy set definition." + }, + "policyExemptionName": { + "type": "string", + "description": "The name of the policy exemption to delete." + }, + "scope": { + "type": "string", + "description": "The scope of the policy exemption. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'" + } + }, + "requiredInputs": [ + "exemptionCategory", + "policyAssignmentId", + "policyExemptionName", + "scope" + ] + }, "azurerm:automanage/v20200630preview:Account": { "description": "Definition of the Automanage account.", "properties": { @@ -1004376,6 +1005055,9 @@ }, { "type": "azurerm:devices/v20200101:DpsCertificate" + }, + { + "type": "azurerm:devices/v20200301:DpsCertificate" } ] }, @@ -1004474,6 +1005156,61 @@ }, { "type": "azurerm:devices/v20200101:IotDpsResource" + }, + { + "type": "azurerm:devices/v20200301:IotDpsResource" + } + ] + }, + "azurerm:devices/latest:IotDpsResourcePrivateEndpointConnection": { + "description": "The private endpoint connection of a provisioning service", + "properties": { + "name": { + "type": "string", + "description": "The resource name." + }, + "properties": { + "$ref": "#/types/azurerm:devices/latest:PrivateEndpointConnectionPropertiesResponse", + "description": "The properties of a private endpoint connection" + }, + "type": { + "type": "string", + "description": "The resource type." + } + }, + "type": "object", + "required": [ + "name", + "properties", + "type" + ], + "inputProperties": { + "privateEndpointConnectionName": { + "type": "string", + "description": "The name of the private endpoint connection" + }, + "properties": { + "$ref": "#/types/azurerm:devices/latest:PrivateEndpointConnectionProperties", + "description": "The properties of a private endpoint connection" + }, + "resourceGroupName": { + "type": "string", + "description": "The name of the resource group that contains the provisioning service." + }, + "resourceName": { + "type": "string", + "description": "The name of the provisioning service." + } + }, + "requiredInputs": [ + "privateEndpointConnectionName", + "properties", + "resourceGroupName", + "resourceName" + ], + "aliases": [ + { + "type": "azurerm:devices/v20200301:IotDpsResourcePrivateEndpointConnection" } ] }, @@ -1005645,6 +1006382,9 @@ }, { "type": "azurerm:devices/v20200101:DpsCertificate" + }, + { + "type": "azurerm:devices/v20200301:DpsCertificate" } ] }, @@ -1005741,6 +1006481,9 @@ }, { "type": "azurerm:devices/v20200101:IotDpsResource" + }, + { + "type": "azurerm:devices/v20200301:IotDpsResource" } ] }, @@ -1005806,6 +1006549,9 @@ }, { "type": "azurerm:devices/v20200101:DpsCertificate" + }, + { + "type": "azurerm:devices/v20200301:DpsCertificate" } ] }, @@ -1005904,6 +1006650,9 @@ }, { "type": "azurerm:devices/v20200101:IotDpsResource" + }, + { + "type": "azurerm:devices/v20200301:IotDpsResource" } ] }, @@ -1006061,6 +1006810,9 @@ }, { "type": "azurerm:devices/v20200101:DpsCertificate" + }, + { + "type": "azurerm:devices/v20200301:DpsCertificate" } ] }, @@ -1006159,6 +1006911,9 @@ }, { "type": "azurerm:devices/v20200101:IotDpsResource" + }, + { + "type": "azurerm:devices/v20200301:IotDpsResource" } ] }, @@ -1008400,6 +1009155,9 @@ }, { "type": "azurerm:devices/v20180122:DpsCertificate" + }, + { + "type": "azurerm:devices/v20200301:DpsCertificate" } ] }, @@ -1008498,6 +1009256,9 @@ }, { "type": "azurerm:devices/v20180122:IotDpsResource" + }, + { + "type": "azurerm:devices/v20200301:IotDpsResource" } ] }, @@ -1008593,6 +1009354,227 @@ } ] }, + "azurerm:devices/v20200301:DpsCertificate": { + "description": "The X509 Certificate.", + "properties": { + "etag": { + "type": "string", + "description": "The entity tag." + }, + "name": { + "type": "string", + "description": "The name of the certificate." + }, + "properties": { + "$ref": "#/types/azurerm:devices/v20200301:CertificatePropertiesResponse", + "description": "properties of a certificate" + }, + "type": { + "type": "string", + "description": "The resource type." + } + }, + "type": "object", + "required": [ + "etag", + "name", + "properties", + "type" + ], + "inputProperties": { + "certificate": { + "type": "string", + "description": "Base-64 representation of the X509 leaf certificate .cer file or just .pem file content." + }, + "certificateName": { + "type": "string", + "description": "The name of the certificate create or update." + }, + "provisioningServiceName": { + "type": "string", + "description": "The name of the provisioning service." + }, + "resourceGroupName": { + "type": "string", + "description": "Resource group identifier." + } + }, + "requiredInputs": [ + "certificateName", + "provisioningServiceName", + "resourceGroupName" + ], + "aliases": [ + { + "type": "azurerm:devices/latest:DpsCertificate" + }, + { + "type": "azurerm:devices/v20170821preview:DpsCertificate" + }, + { + "type": "azurerm:devices/v20171115:DpsCertificate" + }, + { + "type": "azurerm:devices/v20180122:DpsCertificate" + }, + { + "type": "azurerm:devices/v20200101:DpsCertificate" + } + ] + }, + "azurerm:devices/v20200301:IotDpsResource": { + "description": "The description of the provisioning service.", + "properties": { + "etag": { + "type": "string", + "description": "The Etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal ETag convention." + }, + "location": { + "type": "string", + "description": "The resource location." + }, + "name": { + "type": "string", + "description": "The resource name." + }, + "properties": { + "$ref": "#/types/azurerm:devices/v20200301:IotDpsPropertiesDescriptionResponse", + "description": "Service specific properties for a provisioning service" + }, + "sku": { + "$ref": "#/types/azurerm:devices/v20200301:IotDpsSkuInfoResponse", + "description": "Sku info for a provisioning Service." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "The resource tags." + }, + "type": { + "type": "string", + "description": "The resource type." + } + }, + "type": "object", + "required": [ + "location", + "name", + "properties", + "sku", + "type" + ], + "inputProperties": { + "etag": { + "type": "string", + "description": "The Etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal ETag convention." + }, + "location": { + "type": "string", + "description": "The resource location." + }, + "properties": { + "$ref": "#/types/azurerm:devices/v20200301:IotDpsPropertiesDescription", + "description": "Service specific properties for a provisioning service" + }, + "provisioningServiceName": { + "type": "string", + "description": "Name of provisioning service to create or update." + }, + "resourceGroupName": { + "type": "string", + "description": "Resource group identifier." + }, + "sku": { + "$ref": "#/types/azurerm:devices/v20200301:IotDpsSkuInfo", + "description": "Sku info for a provisioning Service." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "The resource tags." + } + }, + "requiredInputs": [ + "location", + "properties", + "provisioningServiceName", + "resourceGroupName", + "sku" + ], + "aliases": [ + { + "type": "azurerm:devices/latest:IotDpsResource" + }, + { + "type": "azurerm:devices/v20170821preview:IotDpsResource" + }, + { + "type": "azurerm:devices/v20171115:IotDpsResource" + }, + { + "type": "azurerm:devices/v20180122:IotDpsResource" + }, + { + "type": "azurerm:devices/v20200101:IotDpsResource" + } + ] + }, + "azurerm:devices/v20200301:IotDpsResourcePrivateEndpointConnection": { + "description": "The private endpoint connection of a provisioning service", + "properties": { + "name": { + "type": "string", + "description": "The resource name." + }, + "properties": { + "$ref": "#/types/azurerm:devices/v20200301:PrivateEndpointConnectionPropertiesResponse", + "description": "The properties of a private endpoint connection" + }, + "type": { + "type": "string", + "description": "The resource type." + } + }, + "type": "object", + "required": [ + "name", + "properties", + "type" + ], + "inputProperties": { + "privateEndpointConnectionName": { + "type": "string", + "description": "The name of the private endpoint connection" + }, + "properties": { + "$ref": "#/types/azurerm:devices/v20200301:PrivateEndpointConnectionProperties", + "description": "The properties of a private endpoint connection" + }, + "resourceGroupName": { + "type": "string", + "description": "The name of the resource group that contains the provisioning service." + }, + "resourceName": { + "type": "string", + "description": "The name of the provisioning service." + } + }, + "requiredInputs": [ + "privateEndpointConnectionName", + "properties", + "resourceGroupName", + "resourceName" + ], + "aliases": [ + { + "type": "azurerm:devices/latest:IotDpsResourcePrivateEndpointConnection" + } + ] + }, "azurerm:devices/v20200301:IotHubResource": { "description": "The description of the IoT hub.", "properties": { @@ -1073249,17 +1074231,9 @@ "azurerm:machinelearningservices/latest:PrivateEndpointConnection": { "description": "The Private Endpoint Connection resource.", "properties": { - "identity": { - "$ref": "#/types/azurerm:machinelearningservices/latest:IdentityResponse", - "description": "The identity of the resource." - }, - "location": { - "type": "string", - "description": "Specifies the location of the resource." - }, "name": { "type": "string", - "description": "Specifies the name of the resource." + "description": "Friendly name of the private endpoint connection." }, "privateEndpoint": { "$ref": "#/types/azurerm:machinelearningservices/latest:PrivateEndpointResponse", @@ -1073273,20 +1074247,9 @@ "type": "string", "description": "The provisioning state of the private endpoint connection resource." }, - "sku": { - "$ref": "#/types/azurerm:machinelearningservices/latest:SkuResponse", - "description": "The sku of the workspace." - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Contains resource tags defined as key/value pairs." - }, "type": { "type": "string", - "description": "Specifies the type of the resource." + "description": "Resource type of private endpoint connection." } }, "type": "object", @@ -1073296,14 +1074259,6 @@ "type" ], "inputProperties": { - "identity": { - "$ref": "#/types/azurerm:machinelearningservices/latest:Identity", - "description": "The identity of the resource." - }, - "location": { - "type": "string", - "description": "Specifies the location of the resource." - }, "privateEndpointConnectionName": { "type": "string", "description": "The name of the private endpoint connection associated with the workspace" @@ -1073320,17 +1074275,6 @@ "type": "string", "description": "Name of the resource group in which workspace is located." }, - "sku": { - "$ref": "#/types/azurerm:machinelearningservices/latest:Sku", - "description": "The sku of the workspace." - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Contains resource tags defined as key/value pairs." - }, "workspaceName": { "type": "string", "description": "Name of Azure Machine Learning workspace." @@ -1079108,17 +1080052,9 @@ "azurerm:machinelearningservices/v20200601:PrivateEndpointConnection": { "description": "The Private Endpoint Connection resource.", "properties": { - "identity": { - "$ref": "#/types/azurerm:machinelearningservices/v20200601:IdentityResponse", - "description": "The identity of the resource." - }, - "location": { - "type": "string", - "description": "Specifies the location of the resource." - }, "name": { "type": "string", - "description": "Specifies the name of the resource." + "description": "Friendly name of the private endpoint connection." }, "privateEndpoint": { "$ref": "#/types/azurerm:machinelearningservices/v20200601:PrivateEndpointResponse", @@ -1079132,20 +1080068,9 @@ "type": "string", "description": "The provisioning state of the private endpoint connection resource." }, - "sku": { - "$ref": "#/types/azurerm:machinelearningservices/v20200601:SkuResponse", - "description": "The sku of the workspace." - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Contains resource tags defined as key/value pairs." - }, "type": { "type": "string", - "description": "Specifies the type of the resource." + "description": "Resource type of private endpoint connection." } }, "type": "object", @@ -1079155,14 +1080080,6 @@ "type" ], "inputProperties": { - "identity": { - "$ref": "#/types/azurerm:machinelearningservices/v20200601:Identity", - "description": "The identity of the resource." - }, - "location": { - "type": "string", - "description": "Specifies the location of the resource." - }, "privateEndpointConnectionName": { "type": "string", "description": "The name of the private endpoint connection associated with the workspace" @@ -1079179,17 +1080096,6 @@ "type": "string", "description": "Name of the resource group in which workspace is located." }, - "sku": { - "$ref": "#/types/azurerm:machinelearningservices/v20200601:Sku", - "description": "The sku of the workspace." - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Contains resource tags defined as key/value pairs." - }, "workspaceName": { "type": "string", "description": "Name of Azure Machine Learning workspace." @@ -1494654,202 +1495560,90 @@ ] } }, - "azurerm:analysisservices/latest:getServerDetails": { + "azurerm:alertsmanagement/v20200804preview:getHealthAlert": { "inputs": { "properties": { "resourceGroupName": { "type": "string", - "description": "The name of the Azure Resource group of which a given Analysis Services server is part. This name must be at least 1 character in length, and no more than 90." + "description": "The name of the resource group." }, - "serverName": { + "ruleName": { "type": "string", - "description": "The name of the Analysis Services server. It must be a minimum of 3 characters, and a maximum of 63." + "description": "The name of the rule." } }, "type": "object", "required": [ "resourceGroupName", - "serverName" + "ruleName" ] }, "outputs": { - "description": "Represents an instance of an Analysis Services resource.", + "description": "The health alert resource.", "properties": { - "asAdministrators": { - "$ref": "#/types/azurerm:analysisservices/latest:ServerAdministratorsResponse", - "description": "A collection of AS server administrators" - }, - "backupBlobContainerUri": { - "type": "string", - "description": "The SAS container URI to the backup container." - }, - "gatewayDetails": { - "$ref": "#/types/azurerm:analysisservices/latest:GatewayDetailsResponse", - "description": "The gateway details configured for the AS server." - }, - "ipV4FirewallSettings": { - "$ref": "#/types/azurerm:analysisservices/latest:IPv4FirewallSettingsResponse", - "description": "The firewall settings for the AS server." - }, - "location": { - "type": "string", - "description": "Location of the Analysis Services resource." - }, - "name": { - "type": "string", - "description": "The name of the Analysis Services resource." - }, - "provisioningState": { - "type": "string", - "description": "The current deployment state of Analysis Services resource. The provisioningState is to indicate states for resource provisioning." - }, - "querypoolConnectionMode": { - "type": "string", - "description": "How the read-write server's participation in the query pool is controlled.\u003cbr/\u003eIt can have the following values: \u003cul\u003e\u003cli\u003ereadOnly - indicates that the read-write server is intended not to participate in query operations\u003c/li\u003e\u003cli\u003eall - indicates that the read-write server can participate in query operations\u003c/li\u003e\u003c/ul\u003eSpecifying readOnly when capacity is 1 results in error." - }, - "serverFullName": { - "type": "string", - "description": "The full name of the Analysis Services resource." - }, - "sku": { - "$ref": "#/types/azurerm:analysisservices/latest:ResourceSkuResponse", - "description": "The SKU of the Analysis Services resource." - }, - "state": { - "type": "string", - "description": "The current state of Analysis Services resource. The state is to indicate more states outside of resource provisioning." - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" + "actions": { + "type": "array", + "items": { + "$ref": "#/types/azurerm:alertsmanagement/v20200804preview:HealthAlertActionResponse" }, - "description": "Key-value pairs of additional resource provisioning properties." + "description": "the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved." }, - "type": { - "type": "string", - "description": "The type of the Analysis Services resource." - } - }, - "type": "object", - "required": [ - "location", - "name", - "provisioningState", - "serverFullName", - "sku", - "state", - "type" - ] - } - }, - "azurerm:analysisservices/latest:listServerGatewayStatus": { - "inputs": { - "properties": { - "resourceGroupName": { - "type": "string", - "description": "The name of the Azure Resource group of which a given Analysis Services server is part. This name must be at least 1 character in length, and no more than 90." + "criteria": { + "$ref": "#/types/azurerm:alertsmanagement/v20200804preview:HealthAlertCriteriaResponse", + "description": "defines the specific alert criteria information." }, - "serverName": { - "type": "string", - "description": "The name of the Analysis Services server." - } - }, - "type": "object", - "required": [ - "resourceGroupName", - "serverName" - ] - }, - "outputs": { - "description": "Status of gateway is live.", - "properties": { - "status": { - "type": "string", - "description": "Live message of list gateway." - } - }, - "type": "object" - } - }, - "azurerm:analysisservices/v20160516:getServerDetails": { - "inputs": { - "properties": { - "resourceGroupName": { + "description": { "type": "string", - "description": "The name of the Azure Resource group of which a given Analysis Services server is part. This name must be at least 1 character in length, and no more than 90." + "description": "the description of the health alert that will be included in the alert email." }, - "serverName": { - "type": "string", - "description": "The name of the Analysis Services server. It must be a minimum of 3 characters, and a maximum of 63." - } - }, - "type": "object", - "required": [ - "resourceGroupName", - "serverName" - ] - }, - "outputs": { - "description": "Represents an instance of an Analysis Services resource.", - "properties": { - "asAdministrators": { - "$ref": "#/types/azurerm:analysisservices/v20160516:ServerAdministratorsResponse", - "description": "A collection of AS server administrators" + "enabled": { + "type": "boolean", + "description": "the flag that indicates whether the health alert is enabled." }, - "backupBlobContainerUri": { + "lastUpdatedTime": { "type": "string", - "description": "The container URI of backup blob." + "description": "Last time the rule was updated in ISO8601 format." }, "location": { "type": "string", - "description": "Location of the Analysis Services resource." + "description": "Resource location" }, "name": { "type": "string", - "description": "The name of the Analysis Services resource." - }, - "provisioningState": { - "type": "string", - "description": "The current deployment state of Analysis Services resource. The provisioningState is to indicate states for resource provisioning." - }, - "serverFullName": { - "type": "string", - "description": "The full name of the Analysis Services resource." - }, - "sku": { - "$ref": "#/types/azurerm:analysisservices/v20160516:ResourceSkuResponse", - "description": "The SKU of the Analysis Services resource." + "description": "Azure resource name" }, - "state": { - "type": "string", - "description": "The current state of Analysis Services resource. The state is to indicate more states outside of resource provisioning." + "scopes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "the list of resource id's that this health alert is scoped to." }, "tags": { "type": "object", "additionalProperties": { "type": "string" }, - "description": "Key-value pairs of additional resource provisioning properties." + "description": "Resource tags" }, "type": { "type": "string", - "description": "The type of the Analysis Services resource." + "description": "Azure resource type" } }, "type": "object", "required": [ + "criteria", + "description", + "enabled", + "lastUpdatedTime", "location", "name", - "provisioningState", - "serverFullName", - "sku", - "state", "type" ] } }, - "azurerm:analysisservices/v20170714:getServerDetails": { + "azurerm:analysisservices/latest:getServerDetails": { "inputs": { "properties": { "resourceGroupName": { @@ -1494871,7 +1495665,7 @@ "description": "Represents an instance of an Analysis Services resource.", "properties": { "asAdministrators": { - "$ref": "#/types/azurerm:analysisservices/v20170714:ServerAdministratorsResponse", + "$ref": "#/types/azurerm:analysisservices/latest:ServerAdministratorsResponse", "description": "A collection of AS server administrators" }, "backupBlobContainerUri": { @@ -1494879,9 +1495673,13 @@ "description": "The SAS container URI to the backup container." }, "gatewayDetails": { - "$ref": "#/types/azurerm:analysisservices/v20170714:GatewayDetailsResponse", + "$ref": "#/types/azurerm:analysisservices/latest:GatewayDetailsResponse", "description": "The gateway details configured for the AS server." }, + "ipV4FirewallSettings": { + "$ref": "#/types/azurerm:analysisservices/latest:IPv4FirewallSettingsResponse", + "description": "The firewall settings for the AS server." + }, "location": { "type": "string", "description": "Location of the Analysis Services resource." @@ -1494894,12 +1495692,16 @@ "type": "string", "description": "The current deployment state of Analysis Services resource. The provisioningState is to indicate states for resource provisioning." }, + "querypoolConnectionMode": { + "type": "string", + "description": "How the read-write server's participation in the query pool is controlled.\u003cbr/\u003eIt can have the following values: \u003cul\u003e\u003cli\u003ereadOnly - indicates that the read-write server is intended not to participate in query operations\u003c/li\u003e\u003cli\u003eall - indicates that the read-write server can participate in query operations\u003c/li\u003e\u003c/ul\u003eSpecifying readOnly when capacity is 1 results in error." + }, "serverFullName": { "type": "string", "description": "The full name of the Analysis Services resource." }, "sku": { - "$ref": "#/types/azurerm:analysisservices/v20170714:ResourceSkuResponse", + "$ref": "#/types/azurerm:analysisservices/latest:ResourceSkuResponse", "description": "The SKU of the Analysis Services resource." }, "state": { @@ -1494930,7 +1495732,7 @@ ] } }, - "azurerm:analysisservices/v20170714:listServerGatewayStatus": { + "azurerm:analysisservices/latest:listServerGatewayStatus": { "inputs": { "properties": { "resourceGroupName": { @@ -1494939,7 +1495741,7 @@ }, "serverName": { "type": "string", - "description": "The name of the Analysis Services server. It must be at least 3 characters in length, and no more than 63." + "description": "The name of the Analysis Services server." } }, "type": "object", @@ -1494949,7 +1495751,7 @@ ] }, "outputs": { - "description": "Status of gateway is live", + "description": "Status of gateway is live.", "properties": { "status": { "type": "string", @@ -1494959,7 +1495761,7 @@ "type": "object" } }, - "azurerm:analysisservices/v20170801:getServerDetails": { + "azurerm:analysisservices/v20160516:getServerDetails": { "inputs": { "properties": { "resourceGroupName": { @@ -1494981,20 +1495783,12 @@ "description": "Represents an instance of an Analysis Services resource.", "properties": { "asAdministrators": { - "$ref": "#/types/azurerm:analysisservices/v20170801:ServerAdministratorsResponse", + "$ref": "#/types/azurerm:analysisservices/v20160516:ServerAdministratorsResponse", "description": "A collection of AS server administrators" }, "backupBlobContainerUri": { "type": "string", - "description": "The SAS container URI to the backup container." - }, - "gatewayDetails": { - "$ref": "#/types/azurerm:analysisservices/v20170801:GatewayDetailsResponse", - "description": "The gateway details configured for the AS server." - }, - "ipV4FirewallSettings": { - "$ref": "#/types/azurerm:analysisservices/v20170801:IPv4FirewallSettingsResponse", - "description": "The firewall settings for the AS server." + "description": "The container URI of backup blob." }, "location": { "type": "string", @@ -1495008,16 +1495802,211 @@ "type": "string", "description": "The current deployment state of Analysis Services resource. The provisioningState is to indicate states for resource provisioning." }, - "querypoolConnectionMode": { - "type": "string", - "description": "How the read-write server's participation in the query pool is controlled.\u003cbr/\u003eIt can have the following values: \u003cul\u003e\u003cli\u003ereadOnly - indicates that the read-write server is intended not to participate in query operations\u003c/li\u003e\u003cli\u003eall - indicates that the read-write server can participate in query operations\u003c/li\u003e\u003c/ul\u003eSpecifying readOnly when capacity is 1 results in error." - }, "serverFullName": { "type": "string", "description": "The full name of the Analysis Services resource." }, "sku": { - "$ref": "#/types/azurerm:analysisservices/v20170801:ResourceSkuResponse", + "$ref": "#/types/azurerm:analysisservices/v20160516:ResourceSkuResponse", + "description": "The SKU of the Analysis Services resource." + }, + "state": { + "type": "string", + "description": "The current state of Analysis Services resource. The state is to indicate more states outside of resource provisioning." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Key-value pairs of additional resource provisioning properties." + }, + "type": { + "type": "string", + "description": "The type of the Analysis Services resource." + } + }, + "type": "object", + "required": [ + "location", + "name", + "provisioningState", + "serverFullName", + "sku", + "state", + "type" + ] + } + }, + "azurerm:analysisservices/v20170714:getServerDetails": { + "inputs": { + "properties": { + "resourceGroupName": { + "type": "string", + "description": "The name of the Azure Resource group of which a given Analysis Services server is part. This name must be at least 1 character in length, and no more than 90." + }, + "serverName": { + "type": "string", + "description": "The name of the Analysis Services server. It must be a minimum of 3 characters, and a maximum of 63." + } + }, + "type": "object", + "required": [ + "resourceGroupName", + "serverName" + ] + }, + "outputs": { + "description": "Represents an instance of an Analysis Services resource.", + "properties": { + "asAdministrators": { + "$ref": "#/types/azurerm:analysisservices/v20170714:ServerAdministratorsResponse", + "description": "A collection of AS server administrators" + }, + "backupBlobContainerUri": { + "type": "string", + "description": "The SAS container URI to the backup container." + }, + "gatewayDetails": { + "$ref": "#/types/azurerm:analysisservices/v20170714:GatewayDetailsResponse", + "description": "The gateway details configured for the AS server." + }, + "location": { + "type": "string", + "description": "Location of the Analysis Services resource." + }, + "name": { + "type": "string", + "description": "The name of the Analysis Services resource." + }, + "provisioningState": { + "type": "string", + "description": "The current deployment state of Analysis Services resource. The provisioningState is to indicate states for resource provisioning." + }, + "serverFullName": { + "type": "string", + "description": "The full name of the Analysis Services resource." + }, + "sku": { + "$ref": "#/types/azurerm:analysisservices/v20170714:ResourceSkuResponse", + "description": "The SKU of the Analysis Services resource." + }, + "state": { + "type": "string", + "description": "The current state of Analysis Services resource. The state is to indicate more states outside of resource provisioning." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Key-value pairs of additional resource provisioning properties." + }, + "type": { + "type": "string", + "description": "The type of the Analysis Services resource." + } + }, + "type": "object", + "required": [ + "location", + "name", + "provisioningState", + "serverFullName", + "sku", + "state", + "type" + ] + } + }, + "azurerm:analysisservices/v20170714:listServerGatewayStatus": { + "inputs": { + "properties": { + "resourceGroupName": { + "type": "string", + "description": "The name of the Azure Resource group of which a given Analysis Services server is part. This name must be at least 1 character in length, and no more than 90." + }, + "serverName": { + "type": "string", + "description": "The name of the Analysis Services server. It must be at least 3 characters in length, and no more than 63." + } + }, + "type": "object", + "required": [ + "resourceGroupName", + "serverName" + ] + }, + "outputs": { + "description": "Status of gateway is live", + "properties": { + "status": { + "type": "string", + "description": "Live message of list gateway." + } + }, + "type": "object" + } + }, + "azurerm:analysisservices/v20170801:getServerDetails": { + "inputs": { + "properties": { + "resourceGroupName": { + "type": "string", + "description": "The name of the Azure Resource group of which a given Analysis Services server is part. This name must be at least 1 character in length, and no more than 90." + }, + "serverName": { + "type": "string", + "description": "The name of the Analysis Services server. It must be a minimum of 3 characters, and a maximum of 63." + } + }, + "type": "object", + "required": [ + "resourceGroupName", + "serverName" + ] + }, + "outputs": { + "description": "Represents an instance of an Analysis Services resource.", + "properties": { + "asAdministrators": { + "$ref": "#/types/azurerm:analysisservices/v20170801:ServerAdministratorsResponse", + "description": "A collection of AS server administrators" + }, + "backupBlobContainerUri": { + "type": "string", + "description": "The SAS container URI to the backup container." + }, + "gatewayDetails": { + "$ref": "#/types/azurerm:analysisservices/v20170801:GatewayDetailsResponse", + "description": "The gateway details configured for the AS server." + }, + "ipV4FirewallSettings": { + "$ref": "#/types/azurerm:analysisservices/v20170801:IPv4FirewallSettingsResponse", + "description": "The firewall settings for the AS server." + }, + "location": { + "type": "string", + "description": "Location of the Analysis Services resource." + }, + "name": { + "type": "string", + "description": "The name of the Analysis Services resource." + }, + "provisioningState": { + "type": "string", + "description": "The current deployment state of Analysis Services resource. The provisioningState is to indicate states for resource provisioning." + }, + "querypoolConnectionMode": { + "type": "string", + "description": "How the read-write server's participation in the query pool is controlled.\u003cbr/\u003eIt can have the following values: \u003cul\u003e\u003cli\u003ereadOnly - indicates that the read-write server is intended not to participate in query operations\u003c/li\u003e\u003cli\u003eall - indicates that the read-write server can participate in query operations\u003c/li\u003e\u003c/ul\u003eSpecifying readOnly when capacity is 1 results in error." + }, + "serverFullName": { + "type": "string", + "description": "The full name of the Analysis Services resource." + }, + "sku": { + "$ref": "#/types/azurerm:analysisservices/v20170801:ResourceSkuResponse", "description": "The SKU of the Analysis Services resource." }, "state": { @@ -1518948,6 +1519937,84 @@ ] } }, + "azurerm:authorization/v20200701preview:getPolicyExemption": { + "inputs": { + "properties": { + "policyExemptionName": { + "type": "string", + "description": "The name of the policy exemption to delete." + }, + "scope": { + "type": "string", + "description": "The scope of the policy exemption. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'" + } + }, + "type": "object", + "required": [ + "policyExemptionName", + "scope" + ] + }, + "outputs": { + "description": "The policy exemption.", + "properties": { + "description": { + "type": "string", + "description": "The description of the policy exemption." + }, + "displayName": { + "type": "string", + "description": "The display name of the policy exemption." + }, + "exemptionCategory": { + "type": "string", + "description": "The policy exemption category. Possible values are Waiver and Mitigated." + }, + "expiresOn": { + "type": "string", + "description": "The expiration date and time (in UTC ISO 8601 format yyyy-MM-ddTHH:mm:ssZ) of the policy exemption." + }, + "metadata": { + "type": "object", + "additionalProperties": { + "$ref": "pulumi.json#/Any" + }, + "description": "The policy exemption metadata. Metadata is an open ended object and is typically a collection of key value pairs." + }, + "name": { + "type": "string", + "description": "The name of the resource" + }, + "policyAssignmentId": { + "type": "string", + "description": "The ID of the policy assignment that is being exempted." + }, + "policyDefinitionReferenceIds": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The policy definition reference ID list when the associated policy assignment is an assignment of a policy set definition." + }, + "systemData": { + "$ref": "#/types/azurerm:authorization/v20200701preview:systemDataResponse", + "description": "Azure Resource Manager metadata containing createdBy and modifiedBy information." + }, + "type": { + "type": "string", + "description": "The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts." + } + }, + "type": "object", + "required": [ + "exemptionCategory", + "name", + "policyAssignmentId", + "systemData", + "type" + ] + } + }, "azurerm:automanage/v20200630preview:getAccount": { "inputs": { "properties": { @@ -1596461,6 +1597528,53 @@ ] } }, + "azurerm:devices/latest:getIotDpsResourcePrivateEndpointConnection": { + "inputs": { + "properties": { + "privateEndpointConnectionName": { + "type": "string", + "description": "The name of the private endpoint connection" + }, + "resourceGroupName": { + "type": "string", + "description": "The name of the resource group that contains the provisioning service." + }, + "resourceName": { + "type": "string", + "description": "The name of the provisioning service." + } + }, + "type": "object", + "required": [ + "privateEndpointConnectionName", + "resourceGroupName", + "resourceName" + ] + }, + "outputs": { + "description": "The private endpoint connection of a provisioning service", + "properties": { + "name": { + "type": "string", + "description": "The resource name." + }, + "properties": { + "$ref": "#/types/azurerm:devices/latest:PrivateEndpointConnectionPropertiesResponse", + "description": "The properties of a private endpoint connection" + }, + "type": { + "type": "string", + "description": "The resource type." + } + }, + "type": "object", + "required": [ + "name", + "properties", + "type" + ] + } + }, "azurerm:devices/latest:getIotHubResource": { "inputs": { "properties": { @@ -1600146,228 +1601260,479 @@ ] } }, - "azurerm:devices/v20200301:getCertificate": { - "inputs": { - "properties": { - "certificateName": { - "type": "string", - "description": "The name of the certificate" - }, - "resourceGroupName": { - "type": "string", - "description": "The name of the resource group that contains the IoT hub." - }, - "resourceName": { - "type": "string", - "description": "The name of the IoT hub." - } - }, - "type": "object", - "required": [ - "certificateName", - "resourceGroupName", - "resourceName" - ] - }, - "outputs": { - "description": "The X509 Certificate.", - "properties": { - "etag": { - "type": "string", - "description": "The entity tag." - }, - "name": { - "type": "string", - "description": "The name of the certificate." - }, - "properties": { - "$ref": "#/types/azurerm:devices/v20200301:CertificatePropertiesResponse", - "description": "The description of an X509 CA Certificate." - }, - "type": { - "type": "string", - "description": "The resource type." - } - }, - "type": "object", - "required": [ - "etag", - "name", - "properties", - "type" - ] - } - }, - "azurerm:devices/v20200301:getIotHubResource": { - "inputs": { - "properties": { - "resourceGroupName": { - "type": "string", - "description": "The name of the resource group that contains the IoT hub." - }, - "resourceName": { - "type": "string", - "description": "The name of the IoT hub." - } - }, - "type": "object", - "required": [ - "resourceGroupName", - "resourceName" - ] - }, - "outputs": { - "description": "The description of the IoT hub.", - "properties": { - "etag": { - "type": "string", - "description": "The Etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal ETag convention." - }, - "location": { - "type": "string", - "description": "The resource location." - }, - "name": { - "type": "string", - "description": "The resource name." - }, - "properties": { - "$ref": "#/types/azurerm:devices/v20200301:IotHubPropertiesResponse", - "description": "IotHub properties" - }, - "sku": { - "$ref": "#/types/azurerm:devices/v20200301:IotHubSkuInfoResponse", - "description": "IotHub SKU info" - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "The resource tags." - }, - "type": { - "type": "string", - "description": "The resource type." - } - }, - "type": "object", - "required": [ - "location", - "name", - "properties", - "sku", - "type" - ] - } - }, - "azurerm:devices/v20200301:getIotHubResourceEventHubConsumerGroup": { - "inputs": { - "properties": { - "eventHubEndpointName": { - "type": "string", - "description": "The name of the Event Hub-compatible endpoint in the IoT hub." - }, - "name": { - "type": "string", - "description": "The name of the consumer group to retrieve." - }, - "resourceGroupName": { - "type": "string", - "description": "The name of the resource group that contains the IoT hub." - }, - "resourceName": { - "type": "string", - "description": "The name of the IoT hub." - } - }, - "type": "object", - "required": [ - "eventHubEndpointName", - "name", - "resourceGroupName", - "resourceName" - ] - }, - "outputs": { - "description": "The properties of the EventHubConsumerGroupInfo object.", - "properties": { - "etag": { - "type": "string", - "description": "The etag." - }, - "name": { - "type": "string", - "description": "The Event Hub-compatible consumer group name." - }, - "properties": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "The tags." - }, - "type": { - "type": "string", - "description": "the resource type." - } - }, - "type": "object", - "required": [ - "etag", - "name", - "properties", - "type" - ] - } - }, - "azurerm:devices/v20200301:getPrivateEndpointConnection": { - "inputs": { - "properties": { - "privateEndpointConnectionName": { - "type": "string", - "description": "The name of the private endpoint connection" - }, - "resourceGroupName": { - "type": "string", - "description": "The name of the resource group that contains the IoT hub." - }, - "resourceName": { - "type": "string", - "description": "The name of the IoT hub." - } - }, - "type": "object", - "required": [ - "privateEndpointConnectionName", - "resourceGroupName", - "resourceName" - ] - }, - "outputs": { - "description": "The private endpoint connection of an IotHub", - "properties": { - "name": { - "type": "string", - "description": "The resource name." - }, - "properties": { - "$ref": "#/types/azurerm:devices/v20200301:PrivateEndpointConnectionPropertiesResponse", - "description": "The properties of a private endpoint connection" - }, - "type": { - "type": "string", - "description": "The resource type." - } - }, - "type": "object", - "required": [ - "name", - "properties", - "type" - ] - } - }, + "azurerm:devices/v20200301:getCertificate": { + "inputs": { + "properties": { + "certificateName": { + "type": "string", + "description": "The name of the certificate" + }, + "resourceGroupName": { + "type": "string", + "description": "The name of the resource group that contains the IoT hub." + }, + "resourceName": { + "type": "string", + "description": "The name of the IoT hub." + } + }, + "type": "object", + "required": [ + "certificateName", + "resourceGroupName", + "resourceName" + ] + }, + "outputs": { + "description": "The X509 Certificate.", + "properties": { + "etag": { + "type": "string", + "description": "The entity tag." + }, + "name": { + "type": "string", + "description": "The name of the certificate." + }, + "properties": { + "$ref": "#/types/azurerm:devices/v20200301:CertificatePropertiesResponse", + "description": "The description of an X509 CA Certificate." + }, + "type": { + "type": "string", + "description": "The resource type." + } + }, + "type": "object", + "required": [ + "etag", + "name", + "properties", + "type" + ] + } + }, + "azurerm:devices/v20200301:getDpsCertificate": { + "inputs": { + "properties": { + "certificateName": { + "type": "string", + "description": "Name of the certificate to retrieve." + }, + "provisioningServiceName": { + "type": "string", + "description": "Name of the provisioning service the certificate is associated with." + }, + "resourceGroupName": { + "type": "string", + "description": "Resource group identifier." + } + }, + "type": "object", + "required": [ + "certificateName", + "provisioningServiceName", + "resourceGroupName" + ] + }, + "outputs": { + "description": "The X509 Certificate.", + "properties": { + "etag": { + "type": "string", + "description": "The entity tag." + }, + "name": { + "type": "string", + "description": "The name of the certificate." + }, + "properties": { + "$ref": "#/types/azurerm:devices/v20200301:CertificatePropertiesResponse", + "description": "properties of a certificate" + }, + "type": { + "type": "string", + "description": "The resource type." + } + }, + "type": "object", + "required": [ + "etag", + "name", + "properties", + "type" + ] + } + }, + "azurerm:devices/v20200301:getIotDpsResource": { + "inputs": { + "properties": { + "provisioningServiceName": { + "type": "string", + "description": "Name of the provisioning service to retrieve." + }, + "resourceGroupName": { + "type": "string", + "description": "Resource group name." + } + }, + "type": "object", + "required": [ + "provisioningServiceName", + "resourceGroupName" + ] + }, + "outputs": { + "description": "The description of the provisioning service.", + "properties": { + "etag": { + "type": "string", + "description": "The Etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal ETag convention." + }, + "location": { + "type": "string", + "description": "The resource location." + }, + "name": { + "type": "string", + "description": "The resource name." + }, + "properties": { + "$ref": "#/types/azurerm:devices/v20200301:IotDpsPropertiesDescriptionResponse", + "description": "Service specific properties for a provisioning service" + }, + "sku": { + "$ref": "#/types/azurerm:devices/v20200301:IotDpsSkuInfoResponse", + "description": "Sku info for a provisioning Service." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "The resource tags." + }, + "type": { + "type": "string", + "description": "The resource type." + } + }, + "type": "object", + "required": [ + "location", + "name", + "properties", + "sku", + "type" + ] + } + }, + "azurerm:devices/v20200301:getIotDpsResourcePrivateEndpointConnection": { + "inputs": { + "properties": { + "privateEndpointConnectionName": { + "type": "string", + "description": "The name of the private endpoint connection" + }, + "resourceGroupName": { + "type": "string", + "description": "The name of the resource group that contains the provisioning service." + }, + "resourceName": { + "type": "string", + "description": "The name of the provisioning service." + } + }, + "type": "object", + "required": [ + "privateEndpointConnectionName", + "resourceGroupName", + "resourceName" + ] + }, + "outputs": { + "description": "The private endpoint connection of a provisioning service", + "properties": { + "name": { + "type": "string", + "description": "The resource name." + }, + "properties": { + "$ref": "#/types/azurerm:devices/v20200301:PrivateEndpointConnectionPropertiesResponse", + "description": "The properties of a private endpoint connection" + }, + "type": { + "type": "string", + "description": "The resource type." + } + }, + "type": "object", + "required": [ + "name", + "properties", + "type" + ] + } + }, + "azurerm:devices/v20200301:getIotHubResource": { + "inputs": { + "properties": { + "resourceGroupName": { + "type": "string", + "description": "The name of the resource group that contains the IoT hub." + }, + "resourceName": { + "type": "string", + "description": "The name of the IoT hub." + } + }, + "type": "object", + "required": [ + "resourceGroupName", + "resourceName" + ] + }, + "outputs": { + "description": "The description of the IoT hub.", + "properties": { + "etag": { + "type": "string", + "description": "The Etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal ETag convention." + }, + "location": { + "type": "string", + "description": "The resource location." + }, + "name": { + "type": "string", + "description": "The resource name." + }, + "properties": { + "$ref": "#/types/azurerm:devices/v20200301:IotHubPropertiesResponse", + "description": "IotHub properties" + }, + "sku": { + "$ref": "#/types/azurerm:devices/v20200301:IotHubSkuInfoResponse", + "description": "IotHub SKU info" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "The resource tags." + }, + "type": { + "type": "string", + "description": "The resource type." + } + }, + "type": "object", + "required": [ + "location", + "name", + "properties", + "sku", + "type" + ] + } + }, + "azurerm:devices/v20200301:getIotHubResourceEventHubConsumerGroup": { + "inputs": { + "properties": { + "eventHubEndpointName": { + "type": "string", + "description": "The name of the Event Hub-compatible endpoint in the IoT hub." + }, + "name": { + "type": "string", + "description": "The name of the consumer group to retrieve." + }, + "resourceGroupName": { + "type": "string", + "description": "The name of the resource group that contains the IoT hub." + }, + "resourceName": { + "type": "string", + "description": "The name of the IoT hub." + } + }, + "type": "object", + "required": [ + "eventHubEndpointName", + "name", + "resourceGroupName", + "resourceName" + ] + }, + "outputs": { + "description": "The properties of the EventHubConsumerGroupInfo object.", + "properties": { + "etag": { + "type": "string", + "description": "The etag." + }, + "name": { + "type": "string", + "description": "The Event Hub-compatible consumer group name." + }, + "properties": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "The tags." + }, + "type": { + "type": "string", + "description": "the resource type." + } + }, + "type": "object", + "required": [ + "etag", + "name", + "properties", + "type" + ] + } + }, + "azurerm:devices/v20200301:getPrivateEndpointConnection": { + "inputs": { + "properties": { + "privateEndpointConnectionName": { + "type": "string", + "description": "The name of the private endpoint connection" + }, + "resourceGroupName": { + "type": "string", + "description": "The name of the resource group that contains the IoT hub." + }, + "resourceName": { + "type": "string", + "description": "The name of the IoT hub." + } + }, + "type": "object", + "required": [ + "privateEndpointConnectionName", + "resourceGroupName", + "resourceName" + ] + }, + "outputs": { + "description": "The private endpoint connection of an IotHub", + "properties": { + "name": { + "type": "string", + "description": "The resource name." + }, + "properties": { + "$ref": "#/types/azurerm:devices/v20200301:PrivateEndpointConnectionPropertiesResponse", + "description": "The properties of a private endpoint connection" + }, + "type": { + "type": "string", + "description": "The resource type." + } + }, + "type": "object", + "required": [ + "name", + "properties", + "type" + ] + } + }, + "azurerm:devices/v20200301:listIotDpsResourceKeys": { + "inputs": { + "properties": { + "provisioningServiceName": { + "type": "string", + "description": "The provisioning service name to get the shared access keys for." + }, + "resourceGroupName": { + "type": "string", + "description": "resource group name" + } + }, + "type": "object", + "required": [ + "provisioningServiceName", + "resourceGroupName" + ] + }, + "outputs": { + "description": "List of shared access keys.", + "properties": { + "nextLink": { + "type": "string", + "description": "The next link." + }, + "value": { + "type": "array", + "items": { + "$ref": "#/types/azurerm:devices/v20200301:SharedAccessSignatureAuthorizationRuleAccessRightsDescriptionResponse" + }, + "description": "The list of shared access policies." + } + }, + "type": "object", + "required": [ + "nextLink" + ] + } + }, + "azurerm:devices/v20200301:listIotDpsResourceKeysForKeyName": { + "inputs": { + "properties": { + "keyName": { + "type": "string", + "description": "Logical key name to get key-values for." + }, + "provisioningServiceName": { + "type": "string", + "description": "Name of the provisioning service." + }, + "resourceGroupName": { + "type": "string", + "description": "The name of the resource group that contains the provisioning service." + } + }, + "type": "object", + "required": [ + "keyName", + "provisioningServiceName", + "resourceGroupName" + ] + }, + "outputs": { + "description": "Description of the shared access key.", + "properties": { + "keyName": { + "type": "string", + "description": "Name of the key." + }, + "primaryKey": { + "type": "string", + "description": "Primary SAS key value." + }, + "rights": { + "type": "string", + "description": "Rights that this key has." + }, + "secondaryKey": { + "type": "string", + "description": "Secondary SAS key value." + } + }, + "type": "object", + "required": [ + "keyName", + "rights" + ] + } + }, "azurerm:devices/v20200301:listIotHubResourceKeys": { "inputs": { "properties": { @@ -1652281,17 +1653646,9 @@ "outputs": { "description": "The Private Endpoint Connection resource.", "properties": { - "identity": { - "$ref": "#/types/azurerm:machinelearningservices/latest:IdentityResponse", - "description": "The identity of the resource." - }, - "location": { - "type": "string", - "description": "Specifies the location of the resource." - }, "name": { "type": "string", - "description": "Specifies the name of the resource." + "description": "Friendly name of the private endpoint connection." }, "privateEndpoint": { "$ref": "#/types/azurerm:machinelearningservices/latest:PrivateEndpointResponse", @@ -1652305,20 +1653662,9 @@ "type": "string", "description": "The provisioning state of the private endpoint connection resource." }, - "sku": { - "$ref": "#/types/azurerm:machinelearningservices/latest:SkuResponse", - "description": "The sku of the workspace." - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Contains resource tags defined as key/value pairs." - }, "type": { "type": "string", - "description": "Specifies the type of the resource." + "description": "Resource type of private endpoint connection." } }, "type": "object", @@ -1657132,17 +1658478,9 @@ "outputs": { "description": "The Private Endpoint Connection resource.", "properties": { - "identity": { - "$ref": "#/types/azurerm:machinelearningservices/v20200601:IdentityResponse", - "description": "The identity of the resource." - }, - "location": { - "type": "string", - "description": "Specifies the location of the resource." - }, "name": { "type": "string", - "description": "Specifies the name of the resource." + "description": "Friendly name of the private endpoint connection." }, "privateEndpoint": { "$ref": "#/types/azurerm:machinelearningservices/v20200601:PrivateEndpointResponse", @@ -1657156,20 +1658494,9 @@ "type": "string", "description": "The provisioning state of the private endpoint connection resource." }, - "sku": { - "$ref": "#/types/azurerm:machinelearningservices/v20200601:SkuResponse", - "description": "The sku of the workspace." - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Contains resource tags defined as key/value pairs." - }, "type": { "type": "string", - "description": "Specifies the type of the resource." + "description": "Resource type of private endpoint connection." } }, "type": "object", @@ -1893444,6 +1894771,7 @@ "alertsmanagement/v20190301preview": "AlertsManagement.V20190301Preview", "alertsmanagement/v20190505preview": "AlertsManagement.V20190505Preview", "alertsmanagement/v20190601": "AlertsManagement.V20190601", + "alertsmanagement/v20200804preview": "AlertsManagement.V20200804Preview", "analysisservices/latest": "AnalysisServices.Latest", "analysisservices/v20160516": "AnalysisServices.V20160516", "analysisservices/v20170714": "AnalysisServices.V20170714", @@ -1893489,6 +1894817,7 @@ "authorization/v20190901": "Authorization.V20190901", "authorization/v20200301": "Authorization.V20200301", "authorization/v20200401preview": "Authorization.V20200401Preview", + "authorization/v20200701preview": "Authorization.V20200701Preview", "automanage/latest": "Automanage.Latest", "automanage/v20200630preview": "Automanage.V20200630Preview", "automation/latest": "Automation.Latest", @@ -1894024,6 +1895353,7 @@ "management/v20200301": "Management.V20200301", "management/v20200501": "Management.V20200501", "management/v20200601": "Management.V20200601", + "management/v20200701preview": "Management.V20200701Preview", "managementpartner/latest": "ManagementPartner.Latest", "managementpartner/v20180201": "ManagementPartner.V20180201", "maps/latest": "Maps.Latest", @@ -1894403,6 +1895733,7 @@ "alertsmanagement/v20190301preview": "alertsmanagement/v20190301preview", "alertsmanagement/v20190505preview": "alertsmanagement/v20190505preview", "alertsmanagement/v20190601": "alertsmanagement/v20190601", + "alertsmanagement/v20200804preview": "alertsmanagement/v20200804preview", "analysisservices/latest": "analysisservices/latest", "analysisservices/v20160516": "analysisservices/v20160516", "analysisservices/v20170714": "analysisservices/v20170714", @@ -1894448,6 +1895779,7 @@ "authorization/v20190901": "authorization/v20190901", "authorization/v20200301": "authorization/v20200301", "authorization/v20200401preview": "authorization/v20200401preview", + "authorization/v20200701preview": "authorization/v20200701preview", "automanage/latest": "automanage/latest", "automanage/v20200630preview": "automanage/v20200630preview", "automation/latest": "automation/latest", @@ -1894982,6 +1896314,7 @@ "management/v20200301": "management/v20200301", "management/v20200501": "management/v20200501", "management/v20200601": "management/v20200601", + "management/v20200701preview": "management/v20200701preview", "managementpartner/latest": "managementpartner/latest", "managementpartner/v20180201": "managementpartner/v20180201", "maps/latest": "maps/latest",