diff --git a/azure-rest-api-specs b/azure-rest-api-specs index bd9aa6d93b1b..32af5f5785ce 160000 --- a/azure-rest-api-specs +++ b/azure-rest-api-specs @@ -1 +1 @@ -Subproject commit bd9aa6d93b1ba8c6a7f23dd6b614d06bbca6500a +Subproject commit 32af5f5785cef4925b565b799a47af9f0fbd37a9 diff --git a/provider/cmd/pulumi-resource-azurerm/metadata.json b/provider/cmd/pulumi-resource-azurerm/metadata.json index 2c65c456ae2d..d0ac9b8b28f6 100644 --- a/provider/cmd/pulumi-resource-azurerm/metadata.json +++ b/provider/cmd/pulumi-resource-azurerm/metadata.json @@ -200180,6 +200180,126 @@ "windowsOsState": {} } }, + "azurerm:digitaltwins/latest:EventGrid": { + "properties": { + "TopicEndpoint": { + "type": "string", + "sdkName": "topicEndpoint" + }, + "accessKey1": { + "type": "string" + }, + "accessKey2": { + "type": "string" + }, + "deadLetterSecret": { + "type": "string" + }, + "endpointType": { + "type": "string", + "const": "EventGrid" + } + }, + "required": [ + "TopicEndpoint", + "accessKey1", + "endpointType" + ] + }, + "azurerm:digitaltwins/latest:EventGridResponse": { + "properties": { + "TopicEndpoint": { + "sdkName": "topicEndpoint" + }, + "accessKey1": {}, + "accessKey2": {}, + "createdTime": {}, + "deadLetterSecret": {}, + "endpointType": { + "const": "EventGrid" + }, + "provisioningState": {} + }, + "required": [ + "TopicEndpoint", + "accessKey1", + "endpointType" + ] + }, + "azurerm:digitaltwins/latest:EventHub": { + "properties": { + "connectionStringPrimaryKey": { + "type": "string" + }, + "connectionStringSecondaryKey": { + "type": "string" + }, + "deadLetterSecret": { + "type": "string" + }, + "endpointType": { + "type": "string", + "const": "EventHub" + } + }, + "required": [ + "connectionStringPrimaryKey", + "endpointType" + ] + }, + "azurerm:digitaltwins/latest:EventHubResponse": { + "properties": { + "connectionStringPrimaryKey": {}, + "connectionStringSecondaryKey": {}, + "createdTime": {}, + "deadLetterSecret": {}, + "endpointType": { + "const": "EventHub" + }, + "provisioningState": {} + }, + "required": [ + "connectionStringPrimaryKey", + "endpointType" + ] + }, + "azurerm:digitaltwins/latest:ServiceBus": { + "properties": { + "deadLetterSecret": { + "type": "string" + }, + "endpointType": { + "type": "string", + "const": "ServiceBus" + }, + "primaryConnectionString": { + "type": "string" + }, + "secondaryConnectionString": { + "type": "string" + } + }, + "required": [ + "endpointType", + "primaryConnectionString" + ] + }, + "azurerm:digitaltwins/latest:ServiceBusResponse": { + "properties": { + "createdTime": {}, + "deadLetterSecret": {}, + "endpointType": { + "const": "ServiceBus" + }, + "primaryConnectionString": {}, + "provisioningState": {}, + "secondaryConnectionString": {} + }, + "required": [ + "endpointType", + "primaryConnectionString" + ] + }, "azurerm:digitaltwins/v20200301preview:DigitalTwinsSkuInfo": { "properties": { "name": { @@ -200328,6 +200448,126 @@ "secondaryConnectionString" ] }, + "azurerm:digitaltwins/v20201031:EventGrid": { + "properties": { + "TopicEndpoint": { + "type": "string", + "sdkName": "topicEndpoint" + }, + "accessKey1": { + "type": "string" + }, + "accessKey2": { + "type": "string" + }, + "deadLetterSecret": { + "type": "string" + }, + "endpointType": { + "type": "string", + "const": "EventGrid" + } + }, + "required": [ + "TopicEndpoint", + "accessKey1", + "endpointType" + ] + }, + "azurerm:digitaltwins/v20201031:EventGridResponse": { + "properties": { + "TopicEndpoint": { + "sdkName": "topicEndpoint" + }, + "accessKey1": {}, + "accessKey2": {}, + "createdTime": {}, + "deadLetterSecret": {}, + "endpointType": { + "const": "EventGrid" + }, + "provisioningState": {} + }, + "required": [ + "TopicEndpoint", + "accessKey1", + "endpointType" + ] + }, + "azurerm:digitaltwins/v20201031:EventHub": { + "properties": { + "connectionStringPrimaryKey": { + "type": "string" + }, + "connectionStringSecondaryKey": { + "type": "string" + }, + "deadLetterSecret": { + "type": "string" + }, + "endpointType": { + "type": "string", + "const": "EventHub" + } + }, + "required": [ + "connectionStringPrimaryKey", + "endpointType" + ] + }, + "azurerm:digitaltwins/v20201031:EventHubResponse": { + "properties": { + "connectionStringPrimaryKey": {}, + "connectionStringSecondaryKey": {}, + "createdTime": {}, + "deadLetterSecret": {}, + "endpointType": { + "const": "EventHub" + }, + "provisioningState": {} + }, + "required": [ + "connectionStringPrimaryKey", + "endpointType" + ] + }, + "azurerm:digitaltwins/v20201031:ServiceBus": { + "properties": { + "deadLetterSecret": { + "type": "string" + }, + "endpointType": { + "type": "string", + "const": "ServiceBus" + }, + "primaryConnectionString": { + "type": "string" + }, + "secondaryConnectionString": { + "type": "string" + } + }, + "required": [ + "endpointType", + "primaryConnectionString" + ] + }, + "azurerm:digitaltwins/v20201031:ServiceBusResponse": { + "properties": { + "createdTime": {}, + "deadLetterSecret": {}, + "endpointType": { + "const": "ServiceBus" + }, + "primaryConnectionString": {}, + "provisioningState": {}, + "secondaryConnectionString": {} + }, + "required": [ + "endpointType", + "primaryConnectionString" + ] + }, "azurerm:documentdb/latest:ApiProperties": { "properties": { "serverVersion": { @@ -231440,6 +231680,30 @@ "id" ] }, + "azurerm:kubernetes/v20200101preview:AuthenticationCertificateDetails": { + "properties": { + "certificateData": { + "type": "string" + }, + "keyData": { + "type": "string" + } + }, + "required": [ + "certificateData", + "keyData" + ] + }, + "azurerm:kubernetes/v20200101preview:AuthenticationDetailsValue": { + "properties": { + "clientCertificate": { + "$ref": "#/types/azurerm:kubernetes/v20200101preview:AuthenticationCertificateDetails" + }, + "token": { + "type": "string" + } + } + }, "azurerm:kubernetes/v20200101preview:ConnectedClusterAADProfile": { "properties": { "clientAppId": { @@ -517134,6 +517398,24 @@ "type": {} } }, + "azurerm:sql/v20200202preview:ServerInfo": { + "properties": { + "serverId": { + "type": "string" + } + }, + "required": [ + "serverId" + ] + }, + "azurerm:sql/v20200202preview:ServerInfoResponse": { + "properties": { + "serverId": {} + }, + "required": [ + "serverId" + ] + }, "azurerm:sql/v20200202preview:Sku": { "properties": { "capacity": { @@ -733984,8 +734266,8 @@ } } }, - "azurerm:digitaltwins/v20200301preview:DigitalTwin": { - "apiVersion": "2020-03-01-preview", + "azurerm:digitaltwins/latest:DigitalTwin": { + "apiVersion": "2020-10-31", "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}", "GET": [ { @@ -734012,14 +734294,246 @@ "location": "path", "source": "method", "required": true, + "value": { + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^(?!-)[A-Za-z0-9-]{3,63}(?\u003c!-)$" + } + } + ], + "PUT": [ + { + "name": "subscriptionId", + "location": "path", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "resourceGroupName", + "location": "path", + "source": "method", + "required": true, "value": { "type": "string", "minLength": 1, "maxLength": 64 } + }, + { + "name": "resourceName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^(?!-)[A-Za-z0-9-]{3,63}(?\u003c!-)$" + } + }, + { + "name": "digitalTwinsCreate", + "location": "body", + "required": true, + "value": {}, + "body": { + "properties": { + "location": { + "type": "string", + "forceNew": true + }, + "tags": { + "type": "object" + } + }, + "required": [ + "location" + ] + } } ], - "PUT": [ + "response": { + "createdTime": { + "container": "properties" + }, + "hostName": { + "container": "properties" + }, + "id": {}, + "lastUpdatedTime": { + "container": "properties" + }, + "location": {}, + "name": {}, + "provisioningState": { + "container": "properties" + }, + "tags": {}, + "type": {} + } + }, + "azurerm:digitaltwins/latest:DigitalTwinsEndpoint": { + "apiVersion": "2020-10-31", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/endpoints/{endpointName}", + "GET": [ + { + "name": "subscriptionId", + "location": "path", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "resourceGroupName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string", + "minLength": 1, + "maxLength": 64 + } + }, + { + "name": "resourceName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^(?!-)[A-Za-z0-9-]{3,63}(?\u003c!-)$" + } + }, + { + "name": "endpointName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string", + "minLength": 2, + "maxLength": 49, + "pattern": "^(?![0-9]+$)(?!-)[a-zA-Z0-9-]{2,49}[a-zA-Z0-9]$" + } + } + ], + "PUT": [ + { + "name": "subscriptionId", + "location": "path", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "resourceGroupName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string", + "minLength": 1, + "maxLength": 64 + } + }, + { + "name": "resourceName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^(?!-)[A-Za-z0-9-]{3,63}(?\u003c!-)$" + } + }, + { + "name": "endpointName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string", + "minLength": 2, + "maxLength": 49, + "pattern": "^(?![0-9]+$)(?!-)[a-zA-Z0-9-]{2,49}[a-zA-Z0-9]$" + } + }, + { + "name": "endpointDescription", + "location": "body", + "required": true, + "value": {}, + "body": { + "properties": { + "properties": { + "oneOf": [ + "#/types/azurerm:digitaltwins/latest:EventGrid", + "#/types/azurerm:digitaltwins/latest:EventHub", + "#/types/azurerm:digitaltwins/latest:ServiceBus" + ] + } + } + } + } + ], + "response": { + "id": {}, + "name": {}, + "properties": { + "oneOf": [ + "#/types/azurerm:digitaltwins/latest:EventGridResponse", + "#/types/azurerm:digitaltwins/latest:EventHubResponse", + "#/types/azurerm:digitaltwins/latest:ServiceBusResponse" + ] + }, + "type": {} + } + }, + "azurerm:digitaltwins/v20200301preview:DigitalTwin": { + "apiVersion": "2020-03-01-preview", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}", + "GET": [ + { + "name": "subscriptionId", + "location": "path", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "resourceGroupName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string", + "minLength": 1, + "maxLength": 64 + } + }, + { + "name": "resourceName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string", + "minLength": 1, + "maxLength": 64 + } + } + ], + "PUT": [ { "name": "subscriptionId", "location": "path", @@ -734090,15 +734604,245 @@ "provisioningState": { "container": "properties" }, - "sku": { - "$ref": "#/types/azurerm:digitaltwins/v20200301preview:DigitalTwinsSkuInfoResponse" - }, + "sku": { + "$ref": "#/types/azurerm:digitaltwins/v20200301preview:DigitalTwinsSkuInfoResponse" + }, + "tags": {}, + "type": {} + } + }, + "azurerm:digitaltwins/v20200301preview:DigitalTwinsEndpoint": { + "apiVersion": "2020-03-01-preview", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/endpoints/{endpointName}", + "GET": [ + { + "name": "subscriptionId", + "location": "path", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "resourceGroupName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string", + "minLength": 1, + "maxLength": 64 + } + }, + { + "name": "resourceName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string", + "minLength": 1, + "maxLength": 64 + } + }, + { + "name": "endpointName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string", + "minLength": 1, + "maxLength": 64, + "pattern": "^[A-Za-z0-9-._]{1,64}$" + } + } + ], + "PUT": [ + { + "name": "subscriptionId", + "location": "path", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "resourceGroupName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string", + "minLength": 1, + "maxLength": 64 + } + }, + { + "name": "resourceName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string", + "minLength": 1, + "maxLength": 64 + } + }, + { + "name": "endpointName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string", + "minLength": 1, + "maxLength": 64, + "pattern": "^[A-Za-z0-9-._]{1,64}$" + } + }, + { + "name": "endpointDescription", + "location": "body", + "required": true, + "value": {}, + "body": { + "properties": { + "properties": { + "oneOf": [ + "#/types/azurerm:digitaltwins/v20200301preview:EventGrid", + "#/types/azurerm:digitaltwins/v20200301preview:EventHub", + "#/types/azurerm:digitaltwins/v20200301preview:ServiceBus" + ] + } + } + } + } + ], + "response": { + "id": {}, + "name": {}, + "properties": { + "oneOf": [ + "#/types/azurerm:digitaltwins/v20200301preview:EventGridResponse", + "#/types/azurerm:digitaltwins/v20200301preview:EventHubResponse", + "#/types/azurerm:digitaltwins/v20200301preview:ServiceBusResponse" + ] + }, + "type": {} + } + }, + "azurerm:digitaltwins/v20201031:DigitalTwin": { + "apiVersion": "2020-10-31", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}", + "GET": [ + { + "name": "subscriptionId", + "location": "path", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "resourceGroupName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string", + "minLength": 1, + "maxLength": 64 + } + }, + { + "name": "resourceName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^(?!-)[A-Za-z0-9-]{3,63}(?\u003c!-)$" + } + } + ], + "PUT": [ + { + "name": "subscriptionId", + "location": "path", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "resourceGroupName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string", + "minLength": 1, + "maxLength": 64 + } + }, + { + "name": "resourceName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^(?!-)[A-Za-z0-9-]{3,63}(?\u003c!-)$" + } + }, + { + "name": "digitalTwinsCreate", + "location": "body", + "required": true, + "value": {}, + "body": { + "properties": { + "location": { + "type": "string", + "forceNew": true + }, + "tags": { + "type": "object" + } + }, + "required": [ + "location" + ] + } + } + ], + "response": { + "createdTime": { + "container": "properties" + }, + "hostName": { + "container": "properties" + }, + "id": {}, + "lastUpdatedTime": { + "container": "properties" + }, + "location": {}, + "name": {}, + "provisioningState": { + "container": "properties" + }, "tags": {}, "type": {} } }, - "azurerm:digitaltwins/v20200301preview:DigitalTwinsEndpoint": { - "apiVersion": "2020-03-01-preview", + "azurerm:digitaltwins/v20201031:DigitalTwinsEndpoint": { + "apiVersion": "2020-10-31", "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/endpoints/{endpointName}", "GET": [ { @@ -734127,8 +734871,9 @@ "required": true, "value": { "type": "string", - "minLength": 1, - "maxLength": 64 + "minLength": 3, + "maxLength": 63, + "pattern": "^(?!-)[A-Za-z0-9-]{3,63}(?\u003c!-)$" } }, { @@ -734138,9 +734883,9 @@ "required": true, "value": { "type": "string", - "minLength": 1, - "maxLength": 64, - "pattern": "^[A-Za-z0-9-._]{1,64}$" + "minLength": 2, + "maxLength": 49, + "pattern": "^(?![0-9]+$)(?!-)[a-zA-Z0-9-]{2,49}[a-zA-Z0-9]$" } } ], @@ -734171,8 +734916,9 @@ "required": true, "value": { "type": "string", - "minLength": 1, - "maxLength": 64 + "minLength": 3, + "maxLength": 63, + "pattern": "^(?!-)[A-Za-z0-9-]{3,63}(?\u003c!-)$" } }, { @@ -734182,9 +734928,9 @@ "required": true, "value": { "type": "string", - "minLength": 1, - "maxLength": 64, - "pattern": "^[A-Za-z0-9-._]{1,64}$" + "minLength": 2, + "maxLength": 49, + "pattern": "^(?![0-9]+$)(?!-)[a-zA-Z0-9-]{2,49}[a-zA-Z0-9]$" } }, { @@ -734196,9 +734942,9 @@ "properties": { "properties": { "oneOf": [ - "#/types/azurerm:digitaltwins/v20200301preview:EventGrid", - "#/types/azurerm:digitaltwins/v20200301preview:EventHub", - "#/types/azurerm:digitaltwins/v20200301preview:ServiceBus" + "#/types/azurerm:digitaltwins/v20201031:EventGrid", + "#/types/azurerm:digitaltwins/v20201031:EventHub", + "#/types/azurerm:digitaltwins/v20201031:ServiceBus" ] } } @@ -734210,9 +734956,9 @@ "name": {}, "properties": { "oneOf": [ - "#/types/azurerm:digitaltwins/v20200301preview:EventGridResponse", - "#/types/azurerm:digitaltwins/v20200301preview:EventHubResponse", - "#/types/azurerm:digitaltwins/v20200301preview:ServiceBusResponse" + "#/types/azurerm:digitaltwins/v20201031:EventGridResponse", + "#/types/azurerm:digitaltwins/v20201031:EventHubResponse", + "#/types/azurerm:digitaltwins/v20201031:ServiceBusResponse" ] }, "type": {} @@ -779668,13 +780414,13 @@ "type": "string", "container": "properties" }, - "tags": { - "type": "object" - }, - "userId": { + "sourceId": { "type": "string", "container": "properties" }, + "tags": { + "type": "object" + }, "version": { "type": "string", "container": "properties" @@ -779684,8 +780430,7 @@ "category", "displayName", "location", - "serializedData", - "userId" + "serializedData" ] } } @@ -779704,6 +780449,9 @@ "serializedData": { "container": "properties" }, + "sourceId": { + "container": "properties" + }, "tags": {}, "timeModified": { "container": "properties" @@ -827758,10 +828506,7 @@ "body": { "properties": { "dailySchedule": { - "type": "object", - "items": { - "$ref": "#/types/azurerm:netapp/latest:dailySchedule" - }, + "$ref": "#/types/azurerm:netapp/latest:dailySchedule", "container": "properties" }, "enabled": { @@ -827769,10 +828514,7 @@ "container": "properties" }, "hourlySchedule": { - "type": "object", - "items": { - "$ref": "#/types/azurerm:netapp/latest:hourlySchedule" - }, + "$ref": "#/types/azurerm:netapp/latest:hourlySchedule", "container": "properties" }, "location": { @@ -827780,20 +828522,14 @@ "forceNew": true }, "monthlySchedule": { - "type": "object", - "items": { - "$ref": "#/types/azurerm:netapp/latest:monthlySchedule" - }, + "$ref": "#/types/azurerm:netapp/latest:monthlySchedule", "container": "properties" }, "tags": { "type": "object" }, "weeklySchedule": { - "type": "object", - "items": { - "$ref": "#/types/azurerm:netapp/latest:weeklySchedule" - }, + "$ref": "#/types/azurerm:netapp/latest:weeklySchedule", "container": "properties" } }, @@ -827843,35 +828579,32 @@ ], "response": { "dailySchedule": { - "items": { - "$ref": "#/types/azurerm:netapp/latest:dailyScheduleResponse" - }, + "$ref": "#/types/azurerm:netapp/latest:dailyScheduleResponse", "container": "properties" }, "enabled": { "container": "properties" }, "hourlySchedule": { - "items": { - "$ref": "#/types/azurerm:netapp/latest:hourlyScheduleResponse" - }, + "$ref": "#/types/azurerm:netapp/latest:hourlyScheduleResponse", "container": "properties" }, "id": {}, "location": {}, "monthlySchedule": { - "items": { - "$ref": "#/types/azurerm:netapp/latest:monthlyScheduleResponse" - }, + "$ref": "#/types/azurerm:netapp/latest:monthlyScheduleResponse", + "container": "properties" + }, + "name": { + "container": "properties" + }, + "provisioningState": { "container": "properties" }, - "name": {}, "tags": {}, "type": {}, "weeklySchedule": { - "items": { - "$ref": "#/types/azurerm:netapp/latest:weeklyScheduleResponse" - }, + "$ref": "#/types/azurerm:netapp/latest:weeklyScheduleResponse", "container": "properties" } } @@ -834075,10 +834808,7 @@ "body": { "properties": { "dailySchedule": { - "type": "object", - "items": { - "$ref": "#/types/azurerm:netapp/v20200601:dailySchedule" - }, + "$ref": "#/types/azurerm:netapp/v20200601:dailySchedule", "container": "properties" }, "enabled": { @@ -834086,10 +834816,7 @@ "container": "properties" }, "hourlySchedule": { - "type": "object", - "items": { - "$ref": "#/types/azurerm:netapp/v20200601:hourlySchedule" - }, + "$ref": "#/types/azurerm:netapp/v20200601:hourlySchedule", "container": "properties" }, "location": { @@ -834097,20 +834824,14 @@ "forceNew": true }, "monthlySchedule": { - "type": "object", - "items": { - "$ref": "#/types/azurerm:netapp/v20200601:monthlySchedule" - }, + "$ref": "#/types/azurerm:netapp/v20200601:monthlySchedule", "container": "properties" }, "tags": { "type": "object" }, "weeklySchedule": { - "type": "object", - "items": { - "$ref": "#/types/azurerm:netapp/v20200601:weeklySchedule" - }, + "$ref": "#/types/azurerm:netapp/v20200601:weeklySchedule", "container": "properties" } }, @@ -834160,35 +834881,32 @@ ], "response": { "dailySchedule": { - "items": { - "$ref": "#/types/azurerm:netapp/v20200601:dailyScheduleResponse" - }, + "$ref": "#/types/azurerm:netapp/v20200601:dailyScheduleResponse", "container": "properties" }, "enabled": { "container": "properties" }, "hourlySchedule": { - "items": { - "$ref": "#/types/azurerm:netapp/v20200601:hourlyScheduleResponse" - }, + "$ref": "#/types/azurerm:netapp/v20200601:hourlyScheduleResponse", "container": "properties" }, "id": {}, "location": {}, "monthlySchedule": { - "items": { - "$ref": "#/types/azurerm:netapp/v20200601:monthlyScheduleResponse" - }, + "$ref": "#/types/azurerm:netapp/v20200601:monthlyScheduleResponse", + "container": "properties" + }, + "name": { + "container": "properties" + }, + "provisioningState": { "container": "properties" }, - "name": {}, "tags": {}, "type": {}, "weeklySchedule": { - "items": { - "$ref": "#/types/azurerm:netapp/v20200601:weeklyScheduleResponse" - }, + "$ref": "#/types/azurerm:netapp/v20200601:weeklyScheduleResponse", "container": "properties" } } @@ -1119256,6 +1119974,127 @@ "type": {} } }, + "azurerm:sql/v20200202preview:ServerTrustGroup": { + "apiVersion": "2020-02-02-preview", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/serverTrustGroups/{serverTrustGroupName}", + "GET": [ + { + "name": "resourceGroupName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "locationName", + "location": "path", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "serverTrustGroupName", + "location": "path", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "subscriptionId", + "location": "path", + "source": "client", + "required": true, + "value": { + "type": "string" + } + } + ], + "PUT": [ + { + "name": "resourceGroupName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "locationName", + "location": "path", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "serverTrustGroupName", + "location": "path", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "parameters", + "location": "body", + "required": true, + "value": {}, + "body": { + "properties": { + "groupMembers": { + "type": "array", + "items": { + "$ref": "#/types/azurerm:sql/v20200202preview:ServerInfo" + }, + "container": "properties" + }, + "trustScopes": { + "type": "array", + "items": { + "type": "string" + }, + "container": "properties" + } + }, + "required": [ + "groupMembers", + "trustScopes" + ] + } + }, + { + "name": "subscriptionId", + "location": "path", + "source": "client", + "required": true, + "value": { + "type": "string" + } + } + ], + "response": { + "groupMembers": { + "items": { + "$ref": "#/types/azurerm:sql/v20200202preview:ServerInfoResponse" + }, + "container": "properties" + }, + "id": {}, + "name": {}, + "trustScopes": { + "items": { + "type": "string" + }, + "container": "properties" + }, + "type": {} + } + }, "azurerm:sqlvirtualmachine/v20170301preview:AvailabilityGroupListener": { "apiVersion": "2017-03-01-preview", "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}/availabilityGroupListeners/{availabilityGroupListenerName}", @@ -1294036,11 +1294875,65 @@ "type": {} } }, - "azurerm:devtestlab/v20180915:listVirtualMachineApplicableSchedules": { - "apiVersion": "2018-09-15", - "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/listApplicableSchedules", - "GET": null, - "POST": [ + "azurerm:devtestlab/v20180915:listVirtualMachineApplicableSchedules": { + "apiVersion": "2018-09-15", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}/listApplicableSchedules", + "GET": null, + "POST": [ + { + "name": "subscriptionId", + "location": "path", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "resourceGroupName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "labName", + "location": "path", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "name", + "location": "path", + "required": true, + "value": { + "type": "string" + } + } + ], + "response": { + "id": {}, + "labVmsShutdown": { + "$ref": "#/types/azurerm:devtestlab/v20180915:ScheduleResponse", + "container": "properties" + }, + "labVmsStartup": { + "$ref": "#/types/azurerm:devtestlab/v20180915:ScheduleResponse", + "container": "properties" + }, + "location": {}, + "name": {}, + "tags": {}, + "type": {} + } + }, + "azurerm:digitaltwins/latest:getDigitalTwin": { + "apiVersion": "2020-10-31", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}", + "GET": [ { "name": "subscriptionId", "location": "path", @@ -1294055,39 +1294948,104 @@ "source": "method", "required": true, "value": { - "type": "string" + "type": "string", + "minLength": 1, + "maxLength": 64 } }, { - "name": "labName", + "name": "resourceName", "location": "path", + "source": "method", "required": true, "value": { - "type": "string" + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^(?!-)[A-Za-z0-9-]{3,63}(?\u003c!-)$" } + } + ], + "POST": null, + "response": { + "createdTime": { + "container": "properties" }, + "hostName": { + "container": "properties" + }, + "id": {}, + "lastUpdatedTime": { + "container": "properties" + }, + "location": {}, + "name": {}, + "provisioningState": { + "container": "properties" + }, + "tags": {}, + "type": {} + } + }, + "azurerm:digitaltwins/latest:getDigitalTwinsEndpoint": { + "apiVersion": "2020-10-31", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/endpoints/{endpointName}", + "GET": [ { - "name": "name", + "name": "subscriptionId", "location": "path", "required": true, "value": { "type": "string" } + }, + { + "name": "resourceGroupName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string", + "minLength": 1, + "maxLength": 64 + } + }, + { + "name": "resourceName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^(?!-)[A-Za-z0-9-]{3,63}(?\u003c!-)$" + } + }, + { + "name": "endpointName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string", + "minLength": 2, + "maxLength": 49, + "pattern": "^(?![0-9]+$)(?!-)[a-zA-Z0-9-]{2,49}[a-zA-Z0-9]$" + } } ], + "POST": null, "response": { "id": {}, - "labVmsShutdown": { - "$ref": "#/types/azurerm:devtestlab/v20180915:ScheduleResponse", - "container": "properties" - }, - "labVmsStartup": { - "$ref": "#/types/azurerm:devtestlab/v20180915:ScheduleResponse", - "container": "properties" - }, - "location": {}, "name": {}, - "tags": {}, + "properties": { + "oneOf": [ + "#/types/azurerm:digitaltwins/latest:EventGridResponse", + "#/types/azurerm:digitaltwins/latest:EventHubResponse", + "#/types/azurerm:digitaltwins/latest:ServiceBusResponse" + ] + }, "type": {} } }, @@ -1294211,6 +1295169,125 @@ "type": {} } }, + "azurerm:digitaltwins/v20201031:getDigitalTwin": { + "apiVersion": "2020-10-31", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}", + "GET": [ + { + "name": "subscriptionId", + "location": "path", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "resourceGroupName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string", + "minLength": 1, + "maxLength": 64 + } + }, + { + "name": "resourceName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^(?!-)[A-Za-z0-9-]{3,63}(?\u003c!-)$" + } + } + ], + "POST": null, + "response": { + "createdTime": { + "container": "properties" + }, + "hostName": { + "container": "properties" + }, + "id": {}, + "lastUpdatedTime": { + "container": "properties" + }, + "location": {}, + "name": {}, + "provisioningState": { + "container": "properties" + }, + "tags": {}, + "type": {} + } + }, + "azurerm:digitaltwins/v20201031:getDigitalTwinsEndpoint": { + "apiVersion": "2020-10-31", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/endpoints/{endpointName}", + "GET": [ + { + "name": "subscriptionId", + "location": "path", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "resourceGroupName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string", + "minLength": 1, + "maxLength": 64 + } + }, + { + "name": "resourceName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string", + "minLength": 3, + "maxLength": 63, + "pattern": "^(?!-)[A-Za-z0-9-]{3,63}(?\u003c!-)$" + } + }, + { + "name": "endpointName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string", + "minLength": 2, + "maxLength": 49, + "pattern": "^(?![0-9]+$)(?!-)[a-zA-Z0-9-]{2,49}[a-zA-Z0-9]$" + } + } + ], + "POST": null, + "response": { + "id": {}, + "name": {}, + "properties": { + "oneOf": [ + "#/types/azurerm:digitaltwins/v20201031:EventGridResponse", + "#/types/azurerm:digitaltwins/v20201031:EventHubResponse", + "#/types/azurerm:digitaltwins/v20201031:ServiceBusResponse" + ] + }, + "type": {} + } + }, "azurerm:documentdb/latest:getCassandraResourceCassandraKeyspace": { "apiVersion": "2020-04-01", "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}", @@ -1319838,6 +1320915,9 @@ "serializedData": { "container": "properties" }, + "sourceId": { + "container": "properties" + }, "tags": {}, "timeModified": { "container": "properties" @@ -1322189,6 +1323269,25 @@ "value": { "type": "string" } + }, + { + "name": "ClientAuthenticationDetails", + "location": "body", + "value": {}, + "body": { + "properties": { + "authenticationMethod": { + "type": "string" + }, + "value": { + "$ref": "#/types/azurerm:kubernetes/v20200101preview:AuthenticationDetailsValue" + } + }, + "required": [ + "authenticationMethod", + "value" + ] + } } ], "response": { @@ -1351593,35 +1352692,32 @@ "POST": null, "response": { "dailySchedule": { - "items": { - "$ref": "#/types/azurerm:netapp/latest:dailyScheduleResponse" - }, + "$ref": "#/types/azurerm:netapp/latest:dailyScheduleResponse", "container": "properties" }, "enabled": { "container": "properties" }, "hourlySchedule": { - "items": { - "$ref": "#/types/azurerm:netapp/latest:hourlyScheduleResponse" - }, + "$ref": "#/types/azurerm:netapp/latest:hourlyScheduleResponse", "container": "properties" }, "id": {}, "location": {}, "monthlySchedule": { - "items": { - "$ref": "#/types/azurerm:netapp/latest:monthlyScheduleResponse" - }, + "$ref": "#/types/azurerm:netapp/latest:monthlyScheduleResponse", + "container": "properties" + }, + "name": { + "container": "properties" + }, + "provisioningState": { "container": "properties" }, - "name": {}, "tags": {}, "type": {}, "weeklySchedule": { - "items": { - "$ref": "#/types/azurerm:netapp/latest:weeklyScheduleResponse" - }, + "$ref": "#/types/azurerm:netapp/latest:weeklyScheduleResponse", "container": "properties" } } @@ -1354620,35 +1355716,32 @@ "POST": null, "response": { "dailySchedule": { - "items": { - "$ref": "#/types/azurerm:netapp/v20200601:dailyScheduleResponse" - }, + "$ref": "#/types/azurerm:netapp/v20200601:dailyScheduleResponse", "container": "properties" }, "enabled": { "container": "properties" }, "hourlySchedule": { - "items": { - "$ref": "#/types/azurerm:netapp/v20200601:hourlyScheduleResponse" - }, + "$ref": "#/types/azurerm:netapp/v20200601:hourlyScheduleResponse", "container": "properties" }, "id": {}, "location": {}, "monthlySchedule": { - "items": { - "$ref": "#/types/azurerm:netapp/v20200601:monthlyScheduleResponse" - }, + "$ref": "#/types/azurerm:netapp/v20200601:monthlyScheduleResponse", + "container": "properties" + }, + "name": { + "container": "properties" + }, + "provisioningState": { "container": "properties" }, - "name": {}, "tags": {}, "type": {}, "weeklySchedule": { - "items": { - "$ref": "#/types/azurerm:netapp/v20200601:weeklyScheduleResponse" - }, + "$ref": "#/types/azurerm:netapp/v20200601:weeklyScheduleResponse", "container": "properties" } } @@ -1497406,6 +1498499,64 @@ "type": {} } }, + "azurerm:sql/v20200202preview:getServerTrustGroup": { + "apiVersion": "2020-02-02-preview", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/serverTrustGroups/{serverTrustGroupName}", + "GET": [ + { + "name": "resourceGroupName", + "location": "path", + "source": "method", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "locationName", + "location": "path", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "serverTrustGroupName", + "location": "path", + "required": true, + "value": { + "type": "string" + } + }, + { + "name": "subscriptionId", + "location": "path", + "source": "client", + "required": true, + "value": { + "type": "string" + } + } + ], + "POST": null, + "response": { + "groupMembers": { + "items": { + "$ref": "#/types/azurerm:sql/v20200202preview:ServerInfoResponse" + }, + "container": "properties" + }, + "id": {}, + "name": {}, + "trustScopes": { + "items": { + "type": "string" + }, + "container": "properties" + }, + "type": {} + } + }, "azurerm:sqlvirtualmachine/v20170301preview:getAvailabilityGroupListener": { "apiVersion": "2017-03-01-preview", "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}/availabilityGroupListeners/{availabilityGroupListenerName}", diff --git a/provider/cmd/pulumi-resource-azurerm/schema-full.json b/provider/cmd/pulumi-resource-azurerm/schema-full.json index 5b7847ac8c35..91b91bf5f1b5 100644 --- a/provider/cmd/pulumi-resource-azurerm/schema-full.json +++ b/provider/cmd/pulumi-resource-azurerm/schema-full.json @@ -331837,6 +331837,208 @@ }, "type": "object" }, + "azurerm:digitaltwins/latest:EventGrid": { + "description": "Properties related to EventGrid.", + "properties": { + "accessKey1": { + "type": "string", + "description": "EventGrid secondary accesskey. Will be obfuscated during read." + }, + "accessKey2": { + "type": "string", + "description": "EventGrid secondary accesskey. Will be obfuscated during read." + }, + "deadLetterSecret": { + "type": "string", + "description": "Dead letter storage secret. Will be obfuscated during read." + }, + "endpointType": { + "type": "string", + "description": "The type of Digital Twins endpoint", + "const": "EventGrid" + }, + "topicEndpoint": { + "type": "string", + "description": "EventGrid Topic Endpoint" + } + }, + "type": "object", + "required": [ + "accessKey1", + "endpointType", + "topicEndpoint" + ] + }, + "azurerm:digitaltwins/latest:EventGridResponse": { + "description": "Properties related to EventGrid.", + "properties": { + "accessKey1": { + "type": "string", + "description": "EventGrid secondary accesskey. Will be obfuscated during read." + }, + "accessKey2": { + "type": "string", + "description": "EventGrid secondary accesskey. Will be obfuscated during read." + }, + "createdTime": { + "type": "string", + "description": "Time when the Endpoint was added to DigitalTwinsInstance." + }, + "deadLetterSecret": { + "type": "string", + "description": "Dead letter storage secret. Will be obfuscated during read." + }, + "endpointType": { + "type": "string", + "description": "The type of Digital Twins endpoint", + "const": "EventGrid" + }, + "provisioningState": { + "type": "string", + "description": "The provisioning state." + }, + "topicEndpoint": { + "type": "string", + "description": "EventGrid Topic Endpoint" + } + }, + "type": "object", + "required": [ + "accessKey1", + "createdTime", + "endpointType", + "provisioningState", + "topicEndpoint" + ] + }, + "azurerm:digitaltwins/latest:EventHub": { + "description": "Properties related to EventHub.", + "properties": { + "connectionStringPrimaryKey": { + "type": "string", + "description": "PrimaryConnectionString of the endpoint. Will be obfuscated during read." + }, + "connectionStringSecondaryKey": { + "type": "string", + "description": "SecondaryConnectionString of the endpoint. Will be obfuscated during read." + }, + "deadLetterSecret": { + "type": "string", + "description": "Dead letter storage secret. Will be obfuscated during read." + }, + "endpointType": { + "type": "string", + "description": "The type of Digital Twins endpoint", + "const": "EventHub" + } + }, + "type": "object", + "required": [ + "connectionStringPrimaryKey", + "endpointType" + ] + }, + "azurerm:digitaltwins/latest:EventHubResponse": { + "description": "Properties related to EventHub.", + "properties": { + "connectionStringPrimaryKey": { + "type": "string", + "description": "PrimaryConnectionString of the endpoint. Will be obfuscated during read." + }, + "connectionStringSecondaryKey": { + "type": "string", + "description": "SecondaryConnectionString of the endpoint. Will be obfuscated during read." + }, + "createdTime": { + "type": "string", + "description": "Time when the Endpoint was added to DigitalTwinsInstance." + }, + "deadLetterSecret": { + "type": "string", + "description": "Dead letter storage secret. Will be obfuscated during read." + }, + "endpointType": { + "type": "string", + "description": "The type of Digital Twins endpoint", + "const": "EventHub" + }, + "provisioningState": { + "type": "string", + "description": "The provisioning state." + } + }, + "type": "object", + "required": [ + "connectionStringPrimaryKey", + "createdTime", + "endpointType", + "provisioningState" + ] + }, + "azurerm:digitaltwins/latest:ServiceBus": { + "description": "Properties related to ServiceBus.", + "properties": { + "deadLetterSecret": { + "type": "string", + "description": "Dead letter storage secret. Will be obfuscated during read." + }, + "endpointType": { + "type": "string", + "description": "The type of Digital Twins endpoint", + "const": "ServiceBus" + }, + "primaryConnectionString": { + "type": "string", + "description": "PrimaryConnectionString of the endpoint. Will be obfuscated during read." + }, + "secondaryConnectionString": { + "type": "string", + "description": "SecondaryConnectionString of the endpoint. Will be obfuscated during read." + } + }, + "type": "object", + "required": [ + "endpointType", + "primaryConnectionString" + ] + }, + "azurerm:digitaltwins/latest:ServiceBusResponse": { + "description": "Properties related to ServiceBus.", + "properties": { + "createdTime": { + "type": "string", + "description": "Time when the Endpoint was added to DigitalTwinsInstance." + }, + "deadLetterSecret": { + "type": "string", + "description": "Dead letter storage secret. Will be obfuscated during read." + }, + "endpointType": { + "type": "string", + "description": "The type of Digital Twins endpoint", + "const": "ServiceBus" + }, + "primaryConnectionString": { + "type": "string", + "description": "PrimaryConnectionString of the endpoint. Will be obfuscated during read." + }, + "provisioningState": { + "type": "string", + "description": "The provisioning state." + }, + "secondaryConnectionString": { + "type": "string", + "description": "SecondaryConnectionString of the endpoint. Will be obfuscated during read." + } + }, + "type": "object", + "required": [ + "createdTime", + "endpointType", + "primaryConnectionString", + "provisioningState" + ] + }, "azurerm:digitaltwins/v20200301preview:DigitalTwinsSkuInfo": { "description": "Information about the SKU of the DigitalTwinsInstance.", "properties": { @@ -332087,6 +332289,208 @@ "secondaryConnectionString" ] }, + "azurerm:digitaltwins/v20201031:EventGrid": { + "description": "Properties related to EventGrid.", + "properties": { + "accessKey1": { + "type": "string", + "description": "EventGrid secondary accesskey. Will be obfuscated during read." + }, + "accessKey2": { + "type": "string", + "description": "EventGrid secondary accesskey. Will be obfuscated during read." + }, + "deadLetterSecret": { + "type": "string", + "description": "Dead letter storage secret. Will be obfuscated during read." + }, + "endpointType": { + "type": "string", + "description": "The type of Digital Twins endpoint", + "const": "EventGrid" + }, + "topicEndpoint": { + "type": "string", + "description": "EventGrid Topic Endpoint" + } + }, + "type": "object", + "required": [ + "accessKey1", + "endpointType", + "topicEndpoint" + ] + }, + "azurerm:digitaltwins/v20201031:EventGridResponse": { + "description": "Properties related to EventGrid.", + "properties": { + "accessKey1": { + "type": "string", + "description": "EventGrid secondary accesskey. Will be obfuscated during read." + }, + "accessKey2": { + "type": "string", + "description": "EventGrid secondary accesskey. Will be obfuscated during read." + }, + "createdTime": { + "type": "string", + "description": "Time when the Endpoint was added to DigitalTwinsInstance." + }, + "deadLetterSecret": { + "type": "string", + "description": "Dead letter storage secret. Will be obfuscated during read." + }, + "endpointType": { + "type": "string", + "description": "The type of Digital Twins endpoint", + "const": "EventGrid" + }, + "provisioningState": { + "type": "string", + "description": "The provisioning state." + }, + "topicEndpoint": { + "type": "string", + "description": "EventGrid Topic Endpoint" + } + }, + "type": "object", + "required": [ + "accessKey1", + "createdTime", + "endpointType", + "provisioningState", + "topicEndpoint" + ] + }, + "azurerm:digitaltwins/v20201031:EventHub": { + "description": "Properties related to EventHub.", + "properties": { + "connectionStringPrimaryKey": { + "type": "string", + "description": "PrimaryConnectionString of the endpoint. Will be obfuscated during read." + }, + "connectionStringSecondaryKey": { + "type": "string", + "description": "SecondaryConnectionString of the endpoint. Will be obfuscated during read." + }, + "deadLetterSecret": { + "type": "string", + "description": "Dead letter storage secret. Will be obfuscated during read." + }, + "endpointType": { + "type": "string", + "description": "The type of Digital Twins endpoint", + "const": "EventHub" + } + }, + "type": "object", + "required": [ + "connectionStringPrimaryKey", + "endpointType" + ] + }, + "azurerm:digitaltwins/v20201031:EventHubResponse": { + "description": "Properties related to EventHub.", + "properties": { + "connectionStringPrimaryKey": { + "type": "string", + "description": "PrimaryConnectionString of the endpoint. Will be obfuscated during read." + }, + "connectionStringSecondaryKey": { + "type": "string", + "description": "SecondaryConnectionString of the endpoint. Will be obfuscated during read." + }, + "createdTime": { + "type": "string", + "description": "Time when the Endpoint was added to DigitalTwinsInstance." + }, + "deadLetterSecret": { + "type": "string", + "description": "Dead letter storage secret. Will be obfuscated during read." + }, + "endpointType": { + "type": "string", + "description": "The type of Digital Twins endpoint", + "const": "EventHub" + }, + "provisioningState": { + "type": "string", + "description": "The provisioning state." + } + }, + "type": "object", + "required": [ + "connectionStringPrimaryKey", + "createdTime", + "endpointType", + "provisioningState" + ] + }, + "azurerm:digitaltwins/v20201031:ServiceBus": { + "description": "Properties related to ServiceBus.", + "properties": { + "deadLetterSecret": { + "type": "string", + "description": "Dead letter storage secret. Will be obfuscated during read." + }, + "endpointType": { + "type": "string", + "description": "The type of Digital Twins endpoint", + "const": "ServiceBus" + }, + "primaryConnectionString": { + "type": "string", + "description": "PrimaryConnectionString of the endpoint. Will be obfuscated during read." + }, + "secondaryConnectionString": { + "type": "string", + "description": "SecondaryConnectionString of the endpoint. Will be obfuscated during read." + } + }, + "type": "object", + "required": [ + "endpointType", + "primaryConnectionString" + ] + }, + "azurerm:digitaltwins/v20201031:ServiceBusResponse": { + "description": "Properties related to ServiceBus.", + "properties": { + "createdTime": { + "type": "string", + "description": "Time when the Endpoint was added to DigitalTwinsInstance." + }, + "deadLetterSecret": { + "type": "string", + "description": "Dead letter storage secret. Will be obfuscated during read." + }, + "endpointType": { + "type": "string", + "description": "The type of Digital Twins endpoint", + "const": "ServiceBus" + }, + "primaryConnectionString": { + "type": "string", + "description": "PrimaryConnectionString of the endpoint. Will be obfuscated during read." + }, + "provisioningState": { + "type": "string", + "description": "The provisioning state." + }, + "secondaryConnectionString": { + "type": "string", + "description": "SecondaryConnectionString of the endpoint. Will be obfuscated during read." + } + }, + "type": "object", + "required": [ + "createdTime", + "endpointType", + "primaryConnectionString", + "provisioningState" + ] + }, "azurerm:documentdb/latest:ApiProperties": { "properties": { "serverVersion": { @@ -380271,6 +380675,35 @@ "id" ] }, + "azurerm:kubernetes/v20200101preview:AuthenticationCertificateDetails": { + "properties": { + "certificateData": { + "type": "string", + "description": "Base64 encoded client certificate data." + }, + "keyData": { + "type": "string", + "description": "Base64 encoded key data." + } + }, + "type": "object", + "required": [ + "certificateData", + "keyData" + ] + }, + "azurerm:kubernetes/v20200101preview:AuthenticationDetailsValue": { + "properties": { + "clientCertificate": { + "$ref": "#/types/azurerm:kubernetes/v20200101preview:AuthenticationCertificateDetails" + }, + "token": { + "type": "string", + "description": "Authentication token." + } + }, + "type": "object" + }, "azurerm:kubernetes/v20200101preview:ConnectedClusterAADProfile": { "properties": { "clientAppId": { @@ -823646,6 +824079,32 @@ "tenantId" ] }, + "azurerm:sql/v20200202preview:ServerInfo": { + "description": "Server info for the server trust group.", + "properties": { + "serverId": { + "type": "string", + "description": "Server Id." + } + }, + "type": "object", + "required": [ + "serverId" + ] + }, + "azurerm:sql/v20200202preview:ServerInfoResponse": { + "description": "Server info for the server trust group.", + "properties": { + "serverId": { + "type": "string", + "description": "Server Id." + } + }, + "type": "object", + "required": [ + "serverId" + ] + }, "azurerm:sql/v20200202preview:Sku": { "description": "An ARM Resource SKU.", "properties": { @@ -1031152,6 +1031611,164 @@ } ] }, + "azurerm:digitaltwins/latest:DigitalTwin": { + "description": "The description of the DigitalTwins service.", + "properties": { + "createdTime": { + "type": "string", + "description": "Time when DigitalTwinsInstance was created." + }, + "hostName": { + "type": "string", + "description": "Api endpoint to work with DigitalTwinsInstance." + }, + "lastUpdatedTime": { + "type": "string", + "description": "Time when DigitalTwinsInstance was updated." + }, + "location": { + "type": "string", + "description": "The resource location." + }, + "name": { + "type": "string", + "description": "The resource name." + }, + "provisioningState": { + "type": "string", + "description": "The provisioning state." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "The resource tags." + }, + "type": { + "type": "string", + "description": "The resource type." + } + }, + "type": "object", + "required": [ + "createdTime", + "hostName", + "lastUpdatedTime", + "location", + "name", + "provisioningState", + "type" + ], + "inputProperties": { + "location": { + "type": "string", + "description": "The resource location." + }, + "resourceGroupName": { + "type": "string", + "description": "The name of the resource group that contains the DigitalTwinsInstance." + }, + "resourceName": { + "type": "string", + "description": "The name of the DigitalTwinsInstance." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "The resource tags." + } + }, + "requiredInputs": [ + "location", + "resourceGroupName", + "resourceName" + ], + "aliases": [ + { + "type": "azurerm:digitaltwins/v20200301preview:DigitalTwin" + }, + { + "type": "azurerm:digitaltwins/v20201031:DigitalTwin" + } + ] + }, + "azurerm:digitaltwins/latest:DigitalTwinsEndpoint": { + "description": "DigitalTwinsInstance endpoint resource.", + "properties": { + "name": { + "type": "string", + "description": "Extension resource name." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/types/azurerm:digitaltwins/latest:EventGridResponse" + }, + { + "$ref": "#/types/azurerm:digitaltwins/latest:EventHubResponse" + }, + { + "$ref": "#/types/azurerm:digitaltwins/latest:ServiceBusResponse" + } + ], + "description": "DigitalTwinsInstance endpoint resource properties." + }, + "type": { + "type": "string", + "description": "The resource type." + } + }, + "type": "object", + "required": [ + "name", + "properties", + "type" + ], + "inputProperties": { + "endpointName": { + "type": "string", + "description": "Name of Endpoint Resource." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/types/azurerm:digitaltwins/latest:EventGrid" + }, + { + "$ref": "#/types/azurerm:digitaltwins/latest:EventHub" + }, + { + "$ref": "#/types/azurerm:digitaltwins/latest:ServiceBus" + } + ], + "description": "DigitalTwinsInstance endpoint resource properties." + }, + "resourceGroupName": { + "type": "string", + "description": "The name of the resource group that contains the DigitalTwinsInstance." + }, + "resourceName": { + "type": "string", + "description": "The name of the DigitalTwinsInstance." + } + }, + "requiredInputs": [ + "endpointName", + "resourceGroupName", + "resourceName" + ], + "aliases": [ + { + "type": "azurerm:digitaltwins/v20200301preview:DigitalTwinsEndpoint" + }, + { + "type": "azurerm:digitaltwins/v20201031:DigitalTwinsEndpoint" + } + ] + }, "azurerm:digitaltwins/v20200301preview:DigitalTwin": { "description": "The description of the DigitalTwins service.", "properties": { @@ -1031234,6 +1031851,14 @@ "location", "resourceGroupName", "resourceName" + ], + "aliases": [ + { + "type": "azurerm:digitaltwins/latest:DigitalTwin" + }, + { + "type": "azurerm:digitaltwins/v20201031:DigitalTwin" + } ] }, "azurerm:digitaltwins/v20200301preview:DigitalTwinsEndpoint": { @@ -1031300,102 +1031925,176 @@ "endpointName", "resourceGroupName", "resourceName" + ], + "aliases": [ + { + "type": "azurerm:digitaltwins/latest:DigitalTwinsEndpoint" + }, + { + "type": "azurerm:digitaltwins/v20201031:DigitalTwinsEndpoint" + } ] }, - "azurerm:documentdb/latest:CassandraResourceCassandraKeyspace": { - "description": "An Azure Cosmos DB Cassandra keyspace.", + "azurerm:digitaltwins/v20201031:DigitalTwin": { + "description": "The description of the DigitalTwins service.", "properties": { + "createdTime": { + "type": "string", + "description": "Time when DigitalTwinsInstance was created." + }, + "hostName": { + "type": "string", + "description": "Api endpoint to work with DigitalTwinsInstance." + }, + "lastUpdatedTime": { + "type": "string", + "description": "Time when DigitalTwinsInstance was updated." + }, "location": { "type": "string", - "description": "The location of the resource group to which the resource belongs." + "description": "The resource location." }, "name": { "type": "string", - "description": "The name of the ARM resource." - }, - "options": { - "$ref": "#/types/azurerm:documentdb/latest:CassandraKeyspaceGetPropertiesResponseOptions" + "description": "The resource name." }, - "resource": { - "$ref": "#/types/azurerm:documentdb/latest:CassandraKeyspaceGetPropertiesResponseResource" + "provisioningState": { + "type": "string", + "description": "The provisioning state." }, "tags": { "type": "object", "additionalProperties": { "type": "string" }, - "description": "Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with \"defaultExperience\": \"Cassandra\". Current \"defaultExperience\" values also include \"Table\", \"Graph\", \"DocumentDB\", and \"MongoDB\"." + "description": "The resource tags." }, "type": { "type": "string", - "description": "The type of Azure resource." + "description": "The resource type." } }, "type": "object", "required": [ + "createdTime", + "hostName", + "lastUpdatedTime", + "location", "name", + "provisioningState", "type" ], "inputProperties": { - "accountName": { - "type": "string", - "description": "Cosmos DB database account name." - }, - "keyspaceName": { - "type": "string", - "description": "Cosmos DB keyspace name." - }, "location": { "type": "string", - "description": "The location of the resource group to which the resource belongs." - }, - "options": { - "$ref": "#/types/azurerm:documentdb/latest:CreateUpdateOptions", - "description": "A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request." - }, - "resource": { - "$ref": "#/types/azurerm:documentdb/latest:CassandraKeyspaceResource", - "description": "The standard JSON format of a Cassandra keyspace" + "description": "The resource location." }, "resourceGroupName": { "type": "string", - "description": "The name of the resource group. The name is case insensitive." + "description": "The name of the resource group that contains the DigitalTwinsInstance." + }, + "resourceName": { + "type": "string", + "description": "The name of the DigitalTwinsInstance." }, "tags": { "type": "object", "additionalProperties": { "type": "string" }, - "description": "Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with \"defaultExperience\": \"Cassandra\". Current \"defaultExperience\" values also include \"Table\", \"Graph\", \"DocumentDB\", and \"MongoDB\"." + "description": "The resource tags." } }, "requiredInputs": [ - "accountName", - "keyspaceName", - "options", - "resource", - "resourceGroupName" + "location", + "resourceGroupName", + "resourceName" ], "aliases": [ { - "type": "azurerm:documentdb/v20190801:CassandraResourceCassandraKeyspace" + "type": "azurerm:digitaltwins/latest:DigitalTwin" }, { - "type": "azurerm:documentdb/v20191212:CassandraResourceCassandraKeyspace" + "type": "azurerm:digitaltwins/v20200301preview:DigitalTwin" + } + ] + }, + "azurerm:digitaltwins/v20201031:DigitalTwinsEndpoint": { + "description": "DigitalTwinsInstance endpoint resource.", + "properties": { + "name": { + "type": "string", + "description": "Extension resource name." }, - { - "type": "azurerm:documentdb/v20200301:CassandraResourceCassandraKeyspace" + "properties": { + "oneOf": [ + { + "$ref": "#/types/azurerm:digitaltwins/v20201031:EventGridResponse" + }, + { + "$ref": "#/types/azurerm:digitaltwins/v20201031:EventHubResponse" + }, + { + "$ref": "#/types/azurerm:digitaltwins/v20201031:ServiceBusResponse" + } + ], + "description": "DigitalTwinsInstance endpoint resource properties." + }, + "type": { + "type": "string", + "description": "The resource type." + } + }, + "type": "object", + "required": [ + "name", + "properties", + "type" + ], + "inputProperties": { + "endpointName": { + "type": "string", + "description": "Name of Endpoint Resource." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/types/azurerm:digitaltwins/v20201031:EventGrid" + }, + { + "$ref": "#/types/azurerm:digitaltwins/v20201031:EventHub" + }, + { + "$ref": "#/types/azurerm:digitaltwins/v20201031:ServiceBus" + } + ], + "description": "DigitalTwinsInstance endpoint resource properties." + }, + "resourceGroupName": { + "type": "string", + "description": "The name of the resource group that contains the DigitalTwinsInstance." }, + "resourceName": { + "type": "string", + "description": "The name of the DigitalTwinsInstance." + } + }, + "requiredInputs": [ + "endpointName", + "resourceGroupName", + "resourceName" + ], + "aliases": [ { - "type": "azurerm:documentdb/v20200401:CassandraResourceCassandraKeyspace" + "type": "azurerm:digitaltwins/latest:DigitalTwinsEndpoint" }, { - "type": "azurerm:documentdb/v20200601preview:CassandraResourceCassandraKeyspace" + "type": "azurerm:digitaltwins/v20200301preview:DigitalTwinsEndpoint" } ] }, - "azurerm:documentdb/latest:CassandraResourceCassandraTable": { - "description": "An Azure Cosmos DB Cassandra table.", + "azurerm:documentdb/latest:CassandraResourceCassandraKeyspace": { + "description": "An Azure Cosmos DB Cassandra keyspace.", "properties": { "location": { "type": "string", @@ -1031406,10 +1032105,102 @@ "description": "The name of the ARM resource." }, "options": { - "$ref": "#/types/azurerm:documentdb/latest:CassandraTableGetPropertiesResponseOptions" + "$ref": "#/types/azurerm:documentdb/latest:CassandraKeyspaceGetPropertiesResponseOptions" }, "resource": { - "$ref": "#/types/azurerm:documentdb/latest:CassandraTableGetPropertiesResponseResource" + "$ref": "#/types/azurerm:documentdb/latest:CassandraKeyspaceGetPropertiesResponseResource" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with \"defaultExperience\": \"Cassandra\". Current \"defaultExperience\" values also include \"Table\", \"Graph\", \"DocumentDB\", and \"MongoDB\"." + }, + "type": { + "type": "string", + "description": "The type of Azure resource." + } + }, + "type": "object", + "required": [ + "name", + "type" + ], + "inputProperties": { + "accountName": { + "type": "string", + "description": "Cosmos DB database account name." + }, + "keyspaceName": { + "type": "string", + "description": "Cosmos DB keyspace name." + }, + "location": { + "type": "string", + "description": "The location of the resource group to which the resource belongs." + }, + "options": { + "$ref": "#/types/azurerm:documentdb/latest:CreateUpdateOptions", + "description": "A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request." + }, + "resource": { + "$ref": "#/types/azurerm:documentdb/latest:CassandraKeyspaceResource", + "description": "The standard JSON format of a Cassandra keyspace" + }, + "resourceGroupName": { + "type": "string", + "description": "The name of the resource group. The name is case insensitive." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with \"defaultExperience\": \"Cassandra\". Current \"defaultExperience\" values also include \"Table\", \"Graph\", \"DocumentDB\", and \"MongoDB\"." + } + }, + "requiredInputs": [ + "accountName", + "keyspaceName", + "options", + "resource", + "resourceGroupName" + ], + "aliases": [ + { + "type": "azurerm:documentdb/v20190801:CassandraResourceCassandraKeyspace" + }, + { + "type": "azurerm:documentdb/v20191212:CassandraResourceCassandraKeyspace" + }, + { + "type": "azurerm:documentdb/v20200301:CassandraResourceCassandraKeyspace" + }, + { + "type": "azurerm:documentdb/v20200401:CassandraResourceCassandraKeyspace" + }, + { + "type": "azurerm:documentdb/v20200601preview:CassandraResourceCassandraKeyspace" + } + ] + }, + "azurerm:documentdb/latest:CassandraResourceCassandraTable": { + "description": "An Azure Cosmos DB Cassandra table.", + "properties": { + "location": { + "type": "string", + "description": "The location of the resource group to which the resource belongs." + }, + "name": { + "type": "string", + "description": "The name of the ARM resource." + }, + "options": { + "$ref": "#/types/azurerm:documentdb/latest:CassandraTableGetPropertiesResponseOptions" + }, + "resource": { + "$ref": "#/types/azurerm:documentdb/latest:CassandraTableGetPropertiesResponseResource" }, "tags": { "type": "object", @@ -1067006,6 +1067797,10 @@ "type": "string", "description": "Configuration of this particular workbook. Configuration data is a string containing valid JSON" }, + "sourceId": { + "type": "string", + "description": "ResourceId for a source resource." + }, "tags": { "type": "object", "additionalProperties": { @@ -1067072,7 +1067867,7 @@ }, "sourceId": { "type": "string", - "description": "Azure Resource Id that will fetch all related workbooks." + "description": "ResourceId for a source resource." }, "tags": { "type": "object", @@ -1067081,10 +1067876,6 @@ }, "description": "Resource tags" }, - "userId": { - "type": "string", - "description": "Unique user id of the specific user that owns this workbook." - }, "version": { "type": "string", "description": "Workbook version" @@ -1067097,8 +1067888,7 @@ "resourceGroupName", "resourceName", "serializedData", - "sourceId", - "userId" + "sourceId" ], "aliases": [ { @@ -1108857,13 +1109647,7 @@ "description": "Snapshot policy information", "properties": { "dailySchedule": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "items": { - "$ref": "#/types/azurerm:netapp/latest:dailyScheduleResponse" - }, + "$ref": "#/types/azurerm:netapp/latest:dailyScheduleResponse", "description": "Schedule for daily snapshots" }, "enabled": { @@ -1108871,13 +1109655,7 @@ "description": "The property to decide policy is enabled or not" }, "hourlySchedule": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "items": { - "$ref": "#/types/azurerm:netapp/latest:hourlyScheduleResponse" - }, + "$ref": "#/types/azurerm:netapp/latest:hourlyScheduleResponse", "description": "Schedule for hourly snapshots" }, "location": { @@ -1108885,18 +1109663,16 @@ "description": "Resource location" }, "monthlySchedule": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "items": { - "$ref": "#/types/azurerm:netapp/latest:monthlyScheduleResponse" - }, + "$ref": "#/types/azurerm:netapp/latest:monthlyScheduleResponse", "description": "Schedule for monthly snapshots" }, "name": { "type": "string", - "description": "Resource name" + "description": "Snapshot policy name" + }, + "provisioningState": { + "type": "string", + "description": "Azure lifecycle management" }, "tags": { "type": "object", @@ -1108910,13 +1109686,7 @@ "description": "Resource type" }, "weeklySchedule": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "items": { - "$ref": "#/types/azurerm:netapp/latest:weeklyScheduleResponse" - }, + "$ref": "#/types/azurerm:netapp/latest:weeklyScheduleResponse", "description": "Schedule for weekly snapshots" } }, @@ -1108924,6 +1109694,7 @@ "required": [ "location", "name", + "provisioningState", "type" ], "inputProperties": { @@ -1108932,13 +1109703,7 @@ "description": "The name of the NetApp account" }, "dailySchedule": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "items": { - "$ref": "#/types/azurerm:netapp/latest:dailySchedule" - }, + "$ref": "#/types/azurerm:netapp/latest:dailySchedule", "description": "Schedule for daily snapshots" }, "enabled": { @@ -1108946,13 +1109711,7 @@ "description": "The property to decide policy is enabled or not" }, "hourlySchedule": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "items": { - "$ref": "#/types/azurerm:netapp/latest:hourlySchedule" - }, + "$ref": "#/types/azurerm:netapp/latest:hourlySchedule", "description": "Schedule for hourly snapshots" }, "location": { @@ -1108960,13 +1109719,7 @@ "description": "Resource location" }, "monthlySchedule": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "items": { - "$ref": "#/types/azurerm:netapp/latest:monthlySchedule" - }, + "$ref": "#/types/azurerm:netapp/latest:monthlySchedule", "description": "Schedule for monthly snapshots" }, "resourceGroupName": { @@ -1108985,13 +1109738,7 @@ "description": "Resource tags" }, "weeklySchedule": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "items": { - "$ref": "#/types/azurerm:netapp/latest:weeklySchedule" - }, + "$ref": "#/types/azurerm:netapp/latest:weeklySchedule", "description": "Schedule for weekly snapshots" } }, @@ -1114074,13 +1114821,7 @@ "description": "Snapshot policy information", "properties": { "dailySchedule": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "items": { - "$ref": "#/types/azurerm:netapp/v20200601:dailyScheduleResponse" - }, + "$ref": "#/types/azurerm:netapp/v20200601:dailyScheduleResponse", "description": "Schedule for daily snapshots" }, "enabled": { @@ -1114088,13 +1114829,7 @@ "description": "The property to decide policy is enabled or not" }, "hourlySchedule": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "items": { - "$ref": "#/types/azurerm:netapp/v20200601:hourlyScheduleResponse" - }, + "$ref": "#/types/azurerm:netapp/v20200601:hourlyScheduleResponse", "description": "Schedule for hourly snapshots" }, "location": { @@ -1114102,18 +1114837,16 @@ "description": "Resource location" }, "monthlySchedule": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "items": { - "$ref": "#/types/azurerm:netapp/v20200601:monthlyScheduleResponse" - }, + "$ref": "#/types/azurerm:netapp/v20200601:monthlyScheduleResponse", "description": "Schedule for monthly snapshots" }, "name": { "type": "string", - "description": "Resource name" + "description": "Snapshot policy name" + }, + "provisioningState": { + "type": "string", + "description": "Azure lifecycle management" }, "tags": { "type": "object", @@ -1114127,13 +1114860,7 @@ "description": "Resource type" }, "weeklySchedule": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "items": { - "$ref": "#/types/azurerm:netapp/v20200601:weeklyScheduleResponse" - }, + "$ref": "#/types/azurerm:netapp/v20200601:weeklyScheduleResponse", "description": "Schedule for weekly snapshots" } }, @@ -1114141,6 +1114868,7 @@ "required": [ "location", "name", + "provisioningState", "type" ], "inputProperties": { @@ -1114149,13 +1114877,7 @@ "description": "The name of the NetApp account" }, "dailySchedule": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "items": { - "$ref": "#/types/azurerm:netapp/v20200601:dailySchedule" - }, + "$ref": "#/types/azurerm:netapp/v20200601:dailySchedule", "description": "Schedule for daily snapshots" }, "enabled": { @@ -1114163,13 +1114885,7 @@ "description": "The property to decide policy is enabled or not" }, "hourlySchedule": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "items": { - "$ref": "#/types/azurerm:netapp/v20200601:hourlySchedule" - }, + "$ref": "#/types/azurerm:netapp/v20200601:hourlySchedule", "description": "Schedule for hourly snapshots" }, "location": { @@ -1114177,13 +1114893,7 @@ "description": "Resource location" }, "monthlySchedule": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "items": { - "$ref": "#/types/azurerm:netapp/v20200601:monthlySchedule" - }, + "$ref": "#/types/azurerm:netapp/v20200601:monthlySchedule", "description": "Schedule for monthly snapshots" }, "resourceGroupName": { @@ -1114202,13 +1114912,7 @@ "description": "Resource tags" }, "weeklySchedule": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "items": { - "$ref": "#/types/azurerm:netapp/v20200601:weeklySchedule" - }, + "$ref": "#/types/azurerm:netapp/v20200601:weeklySchedule", "description": "Schedule for weekly snapshots" } }, @@ -1450010,6 +1450714,75 @@ "serverName" ] }, + "azurerm:sql/v20200202preview:ServerTrustGroup": { + "description": "A server trust group.", + "properties": { + "groupMembers": { + "type": "array", + "items": { + "$ref": "#/types/azurerm:sql/v20200202preview:ServerInfoResponse" + }, + "description": "Group members information for the server trust group." + }, + "name": { + "type": "string", + "description": "Resource name." + }, + "trustScopes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Trust scope of the server trust group." + }, + "type": { + "type": "string", + "description": "Resource type." + } + }, + "type": "object", + "required": [ + "groupMembers", + "name", + "trustScopes", + "type" + ], + "inputProperties": { + "groupMembers": { + "type": "array", + "items": { + "$ref": "#/types/azurerm:sql/v20200202preview:ServerInfo" + }, + "description": "Group members information for the server trust group." + }, + "locationName": { + "type": "string", + "description": "The name of the region where the resource is located." + }, + "resourceGroupName": { + "type": "string", + "description": "The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal." + }, + "serverTrustGroupName": { + "type": "string", + "description": "The name of the server trust group." + }, + "trustScopes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Trust scope of the server trust group." + } + }, + "requiredInputs": [ + "groupMembers", + "locationName", + "resourceGroupName", + "serverTrustGroupName", + "trustScopes" + ] + }, "azurerm:sqlvirtualmachine/v20170301preview:AvailabilityGroupListener": { "description": "A SQL Server availability group listener.", "properties": { @@ -1624405,6 +1625178,132 @@ ] } }, + "azurerm:digitaltwins/latest:getDigitalTwin": { + "inputs": { + "properties": { + "resourceGroupName": { + "type": "string", + "description": "The name of the resource group that contains the DigitalTwinsInstance." + }, + "resourceName": { + "type": "string", + "description": "The name of the DigitalTwinsInstance." + } + }, + "type": "object", + "required": [ + "resourceGroupName", + "resourceName" + ] + }, + "outputs": { + "description": "The description of the DigitalTwins service.", + "properties": { + "createdTime": { + "type": "string", + "description": "Time when DigitalTwinsInstance was created." + }, + "hostName": { + "type": "string", + "description": "Api endpoint to work with DigitalTwinsInstance." + }, + "lastUpdatedTime": { + "type": "string", + "description": "Time when DigitalTwinsInstance was updated." + }, + "location": { + "type": "string", + "description": "The resource location." + }, + "name": { + "type": "string", + "description": "The resource name." + }, + "provisioningState": { + "type": "string", + "description": "The provisioning state." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "The resource tags." + }, + "type": { + "type": "string", + "description": "The resource type." + } + }, + "type": "object", + "required": [ + "createdTime", + "hostName", + "lastUpdatedTime", + "location", + "name", + "provisioningState", + "type" + ] + } + }, + "azurerm:digitaltwins/latest:getDigitalTwinsEndpoint": { + "inputs": { + "properties": { + "endpointName": { + "type": "string", + "description": "Name of Endpoint Resource." + }, + "resourceGroupName": { + "type": "string", + "description": "The name of the resource group that contains the DigitalTwinsInstance." + }, + "resourceName": { + "type": "string", + "description": "The name of the DigitalTwinsInstance." + } + }, + "type": "object", + "required": [ + "endpointName", + "resourceGroupName", + "resourceName" + ] + }, + "outputs": { + "description": "DigitalTwinsInstance endpoint resource.", + "properties": { + "name": { + "type": "string", + "description": "Extension resource name." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/types/azurerm:digitaltwins/latest:EventGridResponse" + }, + { + "$ref": "#/types/azurerm:digitaltwins/latest:EventHubResponse" + }, + { + "$ref": "#/types/azurerm:digitaltwins/latest:ServiceBusResponse" + } + ], + "description": "DigitalTwinsInstance endpoint resource properties." + }, + "type": { + "type": "string", + "description": "The resource type." + } + }, + "type": "object", + "required": [ + "name", + "properties", + "type" + ] + } + }, "azurerm:digitaltwins/v20200301preview:getDigitalTwin": { "inputs": { "properties": { @@ -1624535,6 +1625434,132 @@ ] } }, + "azurerm:digitaltwins/v20201031:getDigitalTwin": { + "inputs": { + "properties": { + "resourceGroupName": { + "type": "string", + "description": "The name of the resource group that contains the DigitalTwinsInstance." + }, + "resourceName": { + "type": "string", + "description": "The name of the DigitalTwinsInstance." + } + }, + "type": "object", + "required": [ + "resourceGroupName", + "resourceName" + ] + }, + "outputs": { + "description": "The description of the DigitalTwins service.", + "properties": { + "createdTime": { + "type": "string", + "description": "Time when DigitalTwinsInstance was created." + }, + "hostName": { + "type": "string", + "description": "Api endpoint to work with DigitalTwinsInstance." + }, + "lastUpdatedTime": { + "type": "string", + "description": "Time when DigitalTwinsInstance was updated." + }, + "location": { + "type": "string", + "description": "The resource location." + }, + "name": { + "type": "string", + "description": "The resource name." + }, + "provisioningState": { + "type": "string", + "description": "The provisioning state." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "The resource tags." + }, + "type": { + "type": "string", + "description": "The resource type." + } + }, + "type": "object", + "required": [ + "createdTime", + "hostName", + "lastUpdatedTime", + "location", + "name", + "provisioningState", + "type" + ] + } + }, + "azurerm:digitaltwins/v20201031:getDigitalTwinsEndpoint": { + "inputs": { + "properties": { + "endpointName": { + "type": "string", + "description": "Name of Endpoint Resource." + }, + "resourceGroupName": { + "type": "string", + "description": "The name of the resource group that contains the DigitalTwinsInstance." + }, + "resourceName": { + "type": "string", + "description": "The name of the DigitalTwinsInstance." + } + }, + "type": "object", + "required": [ + "endpointName", + "resourceGroupName", + "resourceName" + ] + }, + "outputs": { + "description": "DigitalTwinsInstance endpoint resource.", + "properties": { + "name": { + "type": "string", + "description": "Extension resource name." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/types/azurerm:digitaltwins/v20201031:EventGridResponse" + }, + { + "$ref": "#/types/azurerm:digitaltwins/v20201031:EventHubResponse" + }, + { + "$ref": "#/types/azurerm:digitaltwins/v20201031:ServiceBusResponse" + } + ], + "description": "DigitalTwinsInstance endpoint resource properties." + }, + "type": { + "type": "string", + "description": "The resource type." + } + }, + "type": "object", + "required": [ + "name", + "properties", + "type" + ] + } + }, "azurerm:documentdb/latest:getCassandraResourceCassandraKeyspace": { "inputs": { "properties": { @@ -1651688,6 +1652713,10 @@ "type": "string", "description": "Configuration of this particular workbook. Configuration data is a string containing valid JSON" }, + "sourceId": { + "type": "string", + "description": "ResourceId for a source resource." + }, "tags": { "type": "object", "additionalProperties": { @@ -1654487,6 +1655516,10 @@ "azurerm:kubernetes/v20200101preview:listConnectedClusterUserCredentials": { "inputs": { "properties": { + "authenticationMethod": { + "type": "string", + "description": "The mode of client authentication." + }, "clusterName": { "type": "string", "description": "The name of the Kubernetes cluster on which get is called." @@ -1654494,12 +1655527,17 @@ "resourceGroupName": { "type": "string", "description": "The name of the resource group. The name is case insensitive." + }, + "value": { + "$ref": "#/types/azurerm:kubernetes/v20200101preview:AuthenticationDetailsValue" } }, "type": "object", "required": [ + "authenticationMethod", "clusterName", - "resourceGroupName" + "resourceGroupName", + "value" ] }, "outputs": { @@ -1687139,13 +1688177,7 @@ "description": "Snapshot policy information", "properties": { "dailySchedule": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "items": { - "$ref": "#/types/azurerm:netapp/latest:dailyScheduleResponse" - }, + "$ref": "#/types/azurerm:netapp/latest:dailyScheduleResponse", "description": "Schedule for daily snapshots" }, "enabled": { @@ -1687153,13 +1688185,7 @@ "description": "The property to decide policy is enabled or not" }, "hourlySchedule": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "items": { - "$ref": "#/types/azurerm:netapp/latest:hourlyScheduleResponse" - }, + "$ref": "#/types/azurerm:netapp/latest:hourlyScheduleResponse", "description": "Schedule for hourly snapshots" }, "location": { @@ -1687167,18 +1688193,16 @@ "description": "Resource location" }, "monthlySchedule": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "items": { - "$ref": "#/types/azurerm:netapp/latest:monthlyScheduleResponse" - }, + "$ref": "#/types/azurerm:netapp/latest:monthlyScheduleResponse", "description": "Schedule for monthly snapshots" }, "name": { "type": "string", - "description": "Resource name" + "description": "Snapshot policy name" + }, + "provisioningState": { + "type": "string", + "description": "Azure lifecycle management" }, "tags": { "type": "object", @@ -1687192,13 +1688216,7 @@ "description": "Resource type" }, "weeklySchedule": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "items": { - "$ref": "#/types/azurerm:netapp/latest:weeklyScheduleResponse" - }, + "$ref": "#/types/azurerm:netapp/latest:weeklyScheduleResponse", "description": "Schedule for weekly snapshots" } }, @@ -1687206,6 +1688224,7 @@ "required": [ "location", "name", + "provisioningState", "type" ] } @@ -1690402,13 +1691421,7 @@ "description": "Snapshot policy information", "properties": { "dailySchedule": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "items": { - "$ref": "#/types/azurerm:netapp/v20200601:dailyScheduleResponse" - }, + "$ref": "#/types/azurerm:netapp/v20200601:dailyScheduleResponse", "description": "Schedule for daily snapshots" }, "enabled": { @@ -1690416,13 +1691429,7 @@ "description": "The property to decide policy is enabled or not" }, "hourlySchedule": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "items": { - "$ref": "#/types/azurerm:netapp/v20200601:hourlyScheduleResponse" - }, + "$ref": "#/types/azurerm:netapp/v20200601:hourlyScheduleResponse", "description": "Schedule for hourly snapshots" }, "location": { @@ -1690430,18 +1691437,16 @@ "description": "Resource location" }, "monthlySchedule": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "items": { - "$ref": "#/types/azurerm:netapp/v20200601:monthlyScheduleResponse" - }, + "$ref": "#/types/azurerm:netapp/v20200601:monthlyScheduleResponse", "description": "Schedule for monthly snapshots" }, "name": { "type": "string", - "description": "Resource name" + "description": "Snapshot policy name" + }, + "provisioningState": { + "type": "string", + "description": "Azure lifecycle management" }, "tags": { "type": "object", @@ -1690455,13 +1691460,7 @@ "description": "Resource type" }, "weeklySchedule": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "items": { - "$ref": "#/types/azurerm:netapp/v20200601:weeklyScheduleResponse" - }, + "$ref": "#/types/azurerm:netapp/v20200601:weeklyScheduleResponse", "description": "Schedule for weekly snapshots" } }, @@ -1690469,6 +1691468,7 @@ "required": [ "location", "name", + "provisioningState", "type" ] } @@ -1858484,6 +1859484,64 @@ ] } }, + "azurerm:sql/v20200202preview:getServerTrustGroup": { + "inputs": { + "properties": { + "locationName": { + "type": "string", + "description": "The name of the region where the resource is located." + }, + "resourceGroupName": { + "type": "string", + "description": "The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal." + }, + "serverTrustGroupName": { + "type": "string", + "description": "The name of the server trust group." + } + }, + "type": "object", + "required": [ + "locationName", + "resourceGroupName", + "serverTrustGroupName" + ] + }, + "outputs": { + "description": "A server trust group.", + "properties": { + "groupMembers": { + "type": "array", + "items": { + "$ref": "#/types/azurerm:sql/v20200202preview:ServerInfoResponse" + }, + "description": "Group members information for the server trust group." + }, + "name": { + "type": "string", + "description": "Resource name." + }, + "trustScopes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Trust scope of the server trust group." + }, + "type": { + "type": "string", + "description": "Resource type." + } + }, + "type": "object", + "required": [ + "groupMembers", + "name", + "trustScopes", + "type" + ] + } + }, "azurerm:sqlvirtualmachine/v20170301preview:getAvailabilityGroupListener": { "inputs": { "properties": { @@ -1911288,6 +1912346,7 @@ "devtestlab/v20180915": "DevTestLab.V20180915", "digitaltwins/latest": "DigitalTwins.Latest", "digitaltwins/v20200301preview": "DigitalTwins.V20200301Preview", + "digitaltwins/v20201031": "DigitalTwins.V20201031", "documentdb/latest": "DocumentDB.Latest", "documentdb/v20150401": "DocumentDB.V20150401", "documentdb/v20150408": "DocumentDB.V20150408", @@ -1912258,6 +1913317,7 @@ "devtestlab/v20180915": "devtestlab/v20180915", "digitaltwins/latest": "digitaltwins/latest", "digitaltwins/v20200301preview": "digitaltwins/v20200301preview", + "digitaltwins/v20201031": "digitaltwins/v20201031", "documentdb/latest": "documentdb/latest", "documentdb/v20150401": "documentdb/v20150401", "documentdb/v20150408": "documentdb/v20150408", diff --git a/provider/cmd/pulumi-resource-azurerm/schema.json b/provider/cmd/pulumi-resource-azurerm/schema.json index 290ee5838fd6..8004a86aca77 100644 --- a/provider/cmd/pulumi-resource-azurerm/schema.json +++ b/provider/cmd/pulumi-resource-azurerm/schema.json @@ -100847,55 +100847,26 @@ }, "type": "object" }, - "azurerm:digitaltwins/v20200301preview:DigitalTwinsSkuInfo": { - "description": "Information about the SKU of the DigitalTwinsInstance.", - "properties": { - "name": { - "type": "string", - "description": "The name of the SKU." - } - }, - "type": "object", - "required": [ - "name" - ] - }, - "azurerm:digitaltwins/v20200301preview:DigitalTwinsSkuInfoResponse": { - "description": "Information about the SKU of the DigitalTwinsInstance.", - "properties": { - "name": { - "type": "string", - "description": "The name of the SKU." - } - }, - "type": "object", - "required": [ - "name" - ] - }, - "azurerm:digitaltwins/v20200301preview:EventGrid": { - "description": "properties related to eventgrid.", + "azurerm:digitaltwins/latest:EventGrid": { + "description": "Properties related to EventGrid.", "properties": { "accessKey1": { "type": "string", - "description": "EventGrid secondary accesskey. Will be obfuscated during read" + "description": "EventGrid secondary accesskey. Will be obfuscated during read." }, "accessKey2": { "type": "string", - "description": "EventGrid secondary accesskey. Will be obfuscated during read" + "description": "EventGrid secondary accesskey. Will be obfuscated during read." + }, + "deadLetterSecret": { + "type": "string", + "description": "Dead letter storage secret. Will be obfuscated during read." }, "endpointType": { "type": "string", "description": "The type of Digital Twins endpoint", "const": "EventGrid" }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "The resource tags." - }, "topicEndpoint": { "type": "string", "description": "EventGrid Topic Endpoint" @@ -100904,25 +100875,29 @@ "type": "object", "required": [ "accessKey1", - "accessKey2", - "endpointType" + "endpointType", + "topicEndpoint" ] }, - "azurerm:digitaltwins/v20200301preview:EventGridResponse": { - "description": "properties related to eventgrid.", + "azurerm:digitaltwins/latest:EventGridResponse": { + "description": "Properties related to EventGrid.", "properties": { "accessKey1": { "type": "string", - "description": "EventGrid secondary accesskey. Will be obfuscated during read" + "description": "EventGrid secondary accesskey. Will be obfuscated during read." }, "accessKey2": { "type": "string", - "description": "EventGrid secondary accesskey. Will be obfuscated during read" + "description": "EventGrid secondary accesskey. Will be obfuscated during read." }, "createdTime": { "type": "string", "description": "Time when the Endpoint was added to DigitalTwinsInstance." }, + "deadLetterSecret": { + "type": "string", + "description": "Dead letter storage secret. Will be obfuscated during read." + }, "endpointType": { "type": "string", "description": "The type of Digital Twins endpoint", @@ -100932,13 +100907,6 @@ "type": "string", "description": "The provisioning state." }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "The resource tags." - }, "topicEndpoint": { "type": "string", "description": "EventGrid Topic Endpoint" @@ -100947,58 +100915,58 @@ "type": "object", "required": [ "accessKey1", - "accessKey2", "createdTime", "endpointType", - "provisioningState" + "provisioningState", + "topicEndpoint" ] }, - "azurerm:digitaltwins/v20200301preview:EventHub": { - "description": "properties related to eventhub.", + "azurerm:digitaltwins/latest:EventHub": { + "description": "Properties related to EventHub.", "properties": { "connectionStringPrimaryKey": { "type": "string", - "description": "PrimaryConnectionString of the endpoint. Will be obfuscated during read" + "description": "PrimaryConnectionString of the endpoint. Will be obfuscated during read." }, "connectionStringSecondaryKey": { "type": "string", - "description": "SecondaryConnectionString of the endpoint. Will be obfuscated during read" + "description": "SecondaryConnectionString of the endpoint. Will be obfuscated during read." + }, + "deadLetterSecret": { + "type": "string", + "description": "Dead letter storage secret. Will be obfuscated during read." }, "endpointType": { "type": "string", "description": "The type of Digital Twins endpoint", "const": "EventHub" - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "The resource tags." } }, "type": "object", "required": [ "connectionStringPrimaryKey", - "connectionStringSecondaryKey", "endpointType" ] }, - "azurerm:digitaltwins/v20200301preview:EventHubResponse": { - "description": "properties related to eventhub.", + "azurerm:digitaltwins/latest:EventHubResponse": { + "description": "Properties related to EventHub.", "properties": { "connectionStringPrimaryKey": { "type": "string", - "description": "PrimaryConnectionString of the endpoint. Will be obfuscated during read" + "description": "PrimaryConnectionString of the endpoint. Will be obfuscated during read." }, "connectionStringSecondaryKey": { "type": "string", - "description": "SecondaryConnectionString of the endpoint. Will be obfuscated during read" + "description": "SecondaryConnectionString of the endpoint. Will be obfuscated during read." }, "createdTime": { "type": "string", "description": "Time when the Endpoint was added to DigitalTwinsInstance." }, + "deadLetterSecret": { + "type": "string", + "description": "Dead letter storage secret. Will be obfuscated during read." + }, "endpointType": { "type": "string", "description": "The type of Digital Twins endpoint", @@ -101007,27 +100975,23 @@ "provisioningState": { "type": "string", "description": "The provisioning state." - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "The resource tags." } }, "type": "object", "required": [ "connectionStringPrimaryKey", - "connectionStringSecondaryKey", "createdTime", "endpointType", "provisioningState" ] }, - "azurerm:digitaltwins/v20200301preview:ServiceBus": { - "description": "properties related to servicebus.", + "azurerm:digitaltwins/latest:ServiceBus": { + "description": "Properties related to ServiceBus.", "properties": { + "deadLetterSecret": { + "type": "string", + "description": "Dead letter storage secret. Will be obfuscated during read." + }, "endpointType": { "type": "string", "description": "The type of Digital Twins endpoint", @@ -101035,34 +100999,30 @@ }, "primaryConnectionString": { "type": "string", - "description": "PrimaryConnectionString of the endpoint. Will be obfuscated during read" + "description": "PrimaryConnectionString of the endpoint. Will be obfuscated during read." }, "secondaryConnectionString": { "type": "string", - "description": "SecondaryConnectionString of the endpoint. Will be obfuscated during read" - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "The resource tags." + "description": "SecondaryConnectionString of the endpoint. Will be obfuscated during read." } }, "type": "object", "required": [ "endpointType", - "primaryConnectionString", - "secondaryConnectionString" + "primaryConnectionString" ] }, - "azurerm:digitaltwins/v20200301preview:ServiceBusResponse": { - "description": "properties related to servicebus.", + "azurerm:digitaltwins/latest:ServiceBusResponse": { + "description": "Properties related to ServiceBus.", "properties": { "createdTime": { "type": "string", "description": "Time when the Endpoint was added to DigitalTwinsInstance." }, + "deadLetterSecret": { + "type": "string", + "description": "Dead letter storage secret. Will be obfuscated during read." + }, "endpointType": { "type": "string", "description": "The type of Digital Twins endpoint", @@ -101070,7 +101030,7 @@ }, "primaryConnectionString": { "type": "string", - "description": "PrimaryConnectionString of the endpoint. Will be obfuscated during read" + "description": "PrimaryConnectionString of the endpoint. Will be obfuscated during read." }, "provisioningState": { "type": "string", @@ -101078,14 +101038,7 @@ }, "secondaryConnectionString": { "type": "string", - "description": "SecondaryConnectionString of the endpoint. Will be obfuscated during read" - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "The resource tags." + "description": "SecondaryConnectionString of the endpoint. Will be obfuscated during read." } }, "type": "object", @@ -101093,8 +101046,7 @@ "createdTime", "endpointType", "primaryConnectionString", - "provisioningState", - "secondaryConnectionString" + "provisioningState" ] }, "azurerm:documentdb/latest:ApiProperties": { @@ -118374,6 +118326,35 @@ "id" ] }, + "azurerm:kubernetes/v20200101preview:AuthenticationCertificateDetails": { + "properties": { + "certificateData": { + "type": "string", + "description": "Base64 encoded client certificate data." + }, + "keyData": { + "type": "string", + "description": "Base64 encoded key data." + } + }, + "type": "object", + "required": [ + "certificateData", + "keyData" + ] + }, + "azurerm:kubernetes/v20200101preview:AuthenticationDetailsValue": { + "properties": { + "clientCertificate": { + "$ref": "#/types/azurerm:kubernetes/v20200101preview:AuthenticationCertificateDetails" + }, + "token": { + "type": "string", + "description": "Authentication token." + } + }, + "type": "object" + }, "azurerm:kubernetes/v20200101preview:ConnectedClusterAADProfile": { "properties": { "clientAppId": { @@ -182972,6 +182953,32 @@ "tenantId" ] }, + "azurerm:sql/v20200202preview:ServerInfo": { + "description": "Server info for the server trust group.", + "properties": { + "serverId": { + "type": "string", + "description": "Server Id." + } + }, + "type": "object", + "required": [ + "serverId" + ] + }, + "azurerm:sql/v20200202preview:ServerInfoResponse": { + "description": "Server info for the server trust group.", + "properties": { + "serverId": { + "type": "string", + "description": "Server Id." + } + }, + "type": "object", + "required": [ + "serverId" + ] + }, "azurerm:sql/v20200202preview:Sku": { "description": "An ARM Resource SKU.", "properties": { @@ -244414,7 +244421,7 @@ } ] }, - "azurerm:digitaltwins/v20200301preview:DigitalTwin": { + "azurerm:digitaltwins/latest:DigitalTwin": { "description": "The description of the DigitalTwins service.", "properties": { "createdTime": { @@ -244427,7 +244434,7 @@ }, "lastUpdatedTime": { "type": "string", - "description": "Time when DigitalTwinsInstance was created." + "description": "Time when DigitalTwinsInstance was updated." }, "location": { "type": "string", @@ -244441,10 +244448,6 @@ "type": "string", "description": "The provisioning state." }, - "sku": { - "$ref": "#/types/azurerm:digitaltwins/v20200301preview:DigitalTwinsSkuInfoResponse", - "description": "This property is reserved for future use, and will be ignored/omitted" - }, "tags": { "type": "object", "additionalProperties": { @@ -244480,10 +244483,6 @@ "type": "string", "description": "The name of the DigitalTwinsInstance." }, - "sku": { - "$ref": "#/types/azurerm:digitaltwins/v20200301preview:DigitalTwinsSkuInfo", - "description": "This property is reserved for future use, and will be ignored/omitted" - }, "tags": { "type": "object", "additionalProperties": { @@ -244496,9 +244495,17 @@ "location", "resourceGroupName", "resourceName" + ], + "aliases": [ + { + "type": "azurerm:digitaltwins/v20200301preview:DigitalTwin" + }, + { + "type": "azurerm:digitaltwins/v20201031:DigitalTwin" + } ] }, - "azurerm:digitaltwins/v20200301preview:DigitalTwinsEndpoint": { + "azurerm:digitaltwins/latest:DigitalTwinsEndpoint": { "description": "DigitalTwinsInstance endpoint resource.", "properties": { "name": { @@ -244508,13 +244515,13 @@ "properties": { "oneOf": [ { - "$ref": "#/types/azurerm:digitaltwins/v20200301preview:EventGridResponse" + "$ref": "#/types/azurerm:digitaltwins/latest:EventGridResponse" }, { - "$ref": "#/types/azurerm:digitaltwins/v20200301preview:EventHubResponse" + "$ref": "#/types/azurerm:digitaltwins/latest:EventHubResponse" }, { - "$ref": "#/types/azurerm:digitaltwins/v20200301preview:ServiceBusResponse" + "$ref": "#/types/azurerm:digitaltwins/latest:ServiceBusResponse" } ], "description": "DigitalTwinsInstance endpoint resource properties." @@ -244538,13 +244545,13 @@ "properties": { "oneOf": [ { - "$ref": "#/types/azurerm:digitaltwins/v20200301preview:EventGrid" + "$ref": "#/types/azurerm:digitaltwins/latest:EventGrid" }, { - "$ref": "#/types/azurerm:digitaltwins/v20200301preview:EventHub" + "$ref": "#/types/azurerm:digitaltwins/latest:EventHub" }, { - "$ref": "#/types/azurerm:digitaltwins/v20200301preview:ServiceBus" + "$ref": "#/types/azurerm:digitaltwins/latest:ServiceBus" } ], "description": "DigitalTwinsInstance endpoint resource properties." @@ -244562,6 +244569,14 @@ "endpointName", "resourceGroupName", "resourceName" + ], + "aliases": [ + { + "type": "azurerm:digitaltwins/v20200301preview:DigitalTwinsEndpoint" + }, + { + "type": "azurerm:digitaltwins/v20201031:DigitalTwinsEndpoint" + } ] }, "azurerm:documentdb/latest:CassandraResourceCassandraKeyspace": { @@ -256264,6 +256279,10 @@ "type": "string", "description": "Configuration of this particular workbook. Configuration data is a string containing valid JSON" }, + "sourceId": { + "type": "string", + "description": "ResourceId for a source resource." + }, "tags": { "type": "object", "additionalProperties": { @@ -256330,7 +256349,7 @@ }, "sourceId": { "type": "string", - "description": "Azure Resource Id that will fetch all related workbooks." + "description": "ResourceId for a source resource." }, "tags": { "type": "object", @@ -256339,10 +256358,6 @@ }, "description": "Resource tags" }, - "userId": { - "type": "string", - "description": "Unique user id of the specific user that owns this workbook." - }, "version": { "type": "string", "description": "Workbook version" @@ -256355,8 +256370,7 @@ "resourceGroupName", "resourceName", "serializedData", - "sourceId", - "userId" + "sourceId" ], "aliases": [ { @@ -269213,13 +269227,7 @@ "description": "Snapshot policy information", "properties": { "dailySchedule": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "items": { - "$ref": "#/types/azurerm:netapp/latest:dailyScheduleResponse" - }, + "$ref": "#/types/azurerm:netapp/latest:dailyScheduleResponse", "description": "Schedule for daily snapshots" }, "enabled": { @@ -269227,13 +269235,7 @@ "description": "The property to decide policy is enabled or not" }, "hourlySchedule": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "items": { - "$ref": "#/types/azurerm:netapp/latest:hourlyScheduleResponse" - }, + "$ref": "#/types/azurerm:netapp/latest:hourlyScheduleResponse", "description": "Schedule for hourly snapshots" }, "location": { @@ -269241,18 +269243,16 @@ "description": "Resource location" }, "monthlySchedule": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "items": { - "$ref": "#/types/azurerm:netapp/latest:monthlyScheduleResponse" - }, + "$ref": "#/types/azurerm:netapp/latest:monthlyScheduleResponse", "description": "Schedule for monthly snapshots" }, "name": { "type": "string", - "description": "Resource name" + "description": "Snapshot policy name" + }, + "provisioningState": { + "type": "string", + "description": "Azure lifecycle management" }, "tags": { "type": "object", @@ -269266,13 +269266,7 @@ "description": "Resource type" }, "weeklySchedule": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "items": { - "$ref": "#/types/azurerm:netapp/latest:weeklyScheduleResponse" - }, + "$ref": "#/types/azurerm:netapp/latest:weeklyScheduleResponse", "description": "Schedule for weekly snapshots" } }, @@ -269280,6 +269274,7 @@ "required": [ "location", "name", + "provisioningState", "type" ], "inputProperties": { @@ -269288,13 +269283,7 @@ "description": "The name of the NetApp account" }, "dailySchedule": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "items": { - "$ref": "#/types/azurerm:netapp/latest:dailySchedule" - }, + "$ref": "#/types/azurerm:netapp/latest:dailySchedule", "description": "Schedule for daily snapshots" }, "enabled": { @@ -269302,13 +269291,7 @@ "description": "The property to decide policy is enabled or not" }, "hourlySchedule": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "items": { - "$ref": "#/types/azurerm:netapp/latest:hourlySchedule" - }, + "$ref": "#/types/azurerm:netapp/latest:hourlySchedule", "description": "Schedule for hourly snapshots" }, "location": { @@ -269316,13 +269299,7 @@ "description": "Resource location" }, "monthlySchedule": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "items": { - "$ref": "#/types/azurerm:netapp/latest:monthlySchedule" - }, + "$ref": "#/types/azurerm:netapp/latest:monthlySchedule", "description": "Schedule for monthly snapshots" }, "resourceGroupName": { @@ -269341,13 +269318,7 @@ "description": "Resource tags" }, "weeklySchedule": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "items": { - "$ref": "#/types/azurerm:netapp/latest:weeklySchedule" - }, + "$ref": "#/types/azurerm:netapp/latest:weeklySchedule", "description": "Schedule for weekly snapshots" } }, @@ -303967,6 +303938,75 @@ "serverName" ] }, + "azurerm:sql/v20200202preview:ServerTrustGroup": { + "description": "A server trust group.", + "properties": { + "groupMembers": { + "type": "array", + "items": { + "$ref": "#/types/azurerm:sql/v20200202preview:ServerInfoResponse" + }, + "description": "Group members information for the server trust group." + }, + "name": { + "type": "string", + "description": "Resource name." + }, + "trustScopes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Trust scope of the server trust group." + }, + "type": { + "type": "string", + "description": "Resource type." + } + }, + "type": "object", + "required": [ + "groupMembers", + "name", + "trustScopes", + "type" + ], + "inputProperties": { + "groupMembers": { + "type": "array", + "items": { + "$ref": "#/types/azurerm:sql/v20200202preview:ServerInfo" + }, + "description": "Group members information for the server trust group." + }, + "locationName": { + "type": "string", + "description": "The name of the region where the resource is located." + }, + "resourceGroupName": { + "type": "string", + "description": "The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal." + }, + "serverTrustGroupName": { + "type": "string", + "description": "The name of the server trust group." + }, + "trustScopes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Trust scope of the server trust group." + } + }, + "requiredInputs": [ + "groupMembers", + "locationName", + "resourceGroupName", + "serverTrustGroupName", + "trustScopes" + ] + }, "azurerm:sqlvirtualmachine/v20170301preview:AvailabilityGroupListener": { "description": "A SQL Server availability group listener.", "properties": { @@ -353054,7 +353094,7 @@ ] } }, - "azurerm:digitaltwins/v20200301preview:getDigitalTwin": { + "azurerm:digitaltwins/latest:getDigitalTwin": { "inputs": { "properties": { "resourceGroupName": { @@ -353085,7 +353125,7 @@ }, "lastUpdatedTime": { "type": "string", - "description": "Time when DigitalTwinsInstance was created." + "description": "Time when DigitalTwinsInstance was updated." }, "location": { "type": "string", @@ -353099,10 +353139,6 @@ "type": "string", "description": "The provisioning state." }, - "sku": { - "$ref": "#/types/azurerm:digitaltwins/v20200301preview:DigitalTwinsSkuInfoResponse", - "description": "This property is reserved for future use, and will be ignored/omitted" - }, "tags": { "type": "object", "additionalProperties": { @@ -353127,7 +353163,7 @@ ] } }, - "azurerm:digitaltwins/v20200301preview:getDigitalTwinsEndpoint": { + "azurerm:digitaltwins/latest:getDigitalTwinsEndpoint": { "inputs": { "properties": { "endpointName": { @@ -353160,13 +353196,13 @@ "properties": { "oneOf": [ { - "$ref": "#/types/azurerm:digitaltwins/v20200301preview:EventGridResponse" + "$ref": "#/types/azurerm:digitaltwins/latest:EventGridResponse" }, { - "$ref": "#/types/azurerm:digitaltwins/v20200301preview:EventHubResponse" + "$ref": "#/types/azurerm:digitaltwins/latest:EventHubResponse" }, { - "$ref": "#/types/azurerm:digitaltwins/v20200301preview:ServiceBusResponse" + "$ref": "#/types/azurerm:digitaltwins/latest:ServiceBusResponse" } ], "description": "DigitalTwinsInstance endpoint resource properties." @@ -362231,6 +362267,10 @@ "type": "string", "description": "Configuration of this particular workbook. Configuration data is a string containing valid JSON" }, + "sourceId": { + "type": "string", + "description": "ResourceId for a source resource." + }, "tags": { "type": "object", "additionalProperties": { @@ -363867,6 +363907,10 @@ "azurerm:kubernetes/v20200101preview:listConnectedClusterUserCredentials": { "inputs": { "properties": { + "authenticationMethod": { + "type": "string", + "description": "The mode of client authentication." + }, "clusterName": { "type": "string", "description": "The name of the Kubernetes cluster on which get is called." @@ -363874,12 +363918,17 @@ "resourceGroupName": { "type": "string", "description": "The name of the resource group. The name is case insensitive." + }, + "value": { + "$ref": "#/types/azurerm:kubernetes/v20200101preview:AuthenticationDetailsValue" } }, "type": "object", "required": [ + "authenticationMethod", "clusterName", - "resourceGroupName" + "resourceGroupName", + "value" ] }, "outputs": { @@ -373330,13 +373379,7 @@ "description": "Snapshot policy information", "properties": { "dailySchedule": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "items": { - "$ref": "#/types/azurerm:netapp/latest:dailyScheduleResponse" - }, + "$ref": "#/types/azurerm:netapp/latest:dailyScheduleResponse", "description": "Schedule for daily snapshots" }, "enabled": { @@ -373344,13 +373387,7 @@ "description": "The property to decide policy is enabled or not" }, "hourlySchedule": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "items": { - "$ref": "#/types/azurerm:netapp/latest:hourlyScheduleResponse" - }, + "$ref": "#/types/azurerm:netapp/latest:hourlyScheduleResponse", "description": "Schedule for hourly snapshots" }, "location": { @@ -373358,18 +373395,16 @@ "description": "Resource location" }, "monthlySchedule": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "items": { - "$ref": "#/types/azurerm:netapp/latest:monthlyScheduleResponse" - }, + "$ref": "#/types/azurerm:netapp/latest:monthlyScheduleResponse", "description": "Schedule for monthly snapshots" }, "name": { "type": "string", - "description": "Resource name" + "description": "Snapshot policy name" + }, + "provisioningState": { + "type": "string", + "description": "Azure lifecycle management" }, "tags": { "type": "object", @@ -373383,13 +373418,7 @@ "description": "Resource type" }, "weeklySchedule": { - "type": "object", - "additionalProperties": { - "$ref": "pulumi.json#/Any" - }, - "items": { - "$ref": "#/types/azurerm:netapp/latest:weeklyScheduleResponse" - }, + "$ref": "#/types/azurerm:netapp/latest:weeklyScheduleResponse", "description": "Schedule for weekly snapshots" } }, @@ -373397,6 +373426,7 @@ "required": [ "location", "name", + "provisioningState", "type" ] } @@ -396962,6 +396992,64 @@ ] } }, + "azurerm:sql/v20200202preview:getServerTrustGroup": { + "inputs": { + "properties": { + "locationName": { + "type": "string", + "description": "The name of the region where the resource is located." + }, + "resourceGroupName": { + "type": "string", + "description": "The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal." + }, + "serverTrustGroupName": { + "type": "string", + "description": "The name of the server trust group." + } + }, + "type": "object", + "required": [ + "locationName", + "resourceGroupName", + "serverTrustGroupName" + ] + }, + "outputs": { + "description": "A server trust group.", + "properties": { + "groupMembers": { + "type": "array", + "items": { + "$ref": "#/types/azurerm:sql/v20200202preview:ServerInfoResponse" + }, + "description": "Group members information for the server trust group." + }, + "name": { + "type": "string", + "description": "Resource name." + }, + "trustScopes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Trust scope of the server trust group." + }, + "type": { + "type": "string", + "description": "Resource type." + } + }, + "type": "object", + "required": [ + "groupMembers", + "name", + "trustScopes", + "type" + ] + } + }, "azurerm:sqlvirtualmachine/v20170301preview:getAvailabilityGroupListener": { "inputs": { "properties": { @@ -409655,7 +409743,6 @@ "devspaces/latest": "DevSpaces.Latest", "devtestlab/latest": "DevTestLab.Latest", "digitaltwins/latest": "DigitalTwins.Latest", - "digitaltwins/v20200301preview": "DigitalTwins.V20200301Preview", "documentdb/latest": "DocumentDB.Latest", "documentdb/v20190801preview": "DocumentDB.V20190801Preview", "documentdb/v20200601preview": "DocumentDB.V20200601Preview", @@ -409950,7 +410037,6 @@ "devspaces/latest": "devspaces/latest", "devtestlab/latest": "devtestlab/latest", "digitaltwins/latest": "digitaltwins/latest", - "digitaltwins/v20200301preview": "digitaltwins/v20200301preview", "documentdb/latest": "documentdb/latest", "documentdb/v20190801preview": "documentdb/v20190801preview", "documentdb/v20200601preview": "documentdb/v20200601preview", diff --git a/sdk/dotnet/DigitalTwins/Latest/DigitalTwin.cs b/sdk/dotnet/DigitalTwins/Latest/DigitalTwin.cs new file mode 100644 index 000000000000..1030f6422aa1 --- /dev/null +++ b/sdk/dotnet/DigitalTwins/Latest/DigitalTwin.cs @@ -0,0 +1,149 @@ +// *** 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.DigitalTwins.Latest +{ + /// + /// The description of the DigitalTwins service. + /// + public partial class DigitalTwin : Pulumi.CustomResource + { + /// + /// Time when DigitalTwinsInstance was created. + /// + [Output("createdTime")] + public Output CreatedTime { get; private set; } = null!; + + /// + /// Api endpoint to work with DigitalTwinsInstance. + /// + [Output("hostName")] + public Output HostName { get; private set; } = null!; + + /// + /// Time when DigitalTwinsInstance was updated. + /// + [Output("lastUpdatedTime")] + public Output LastUpdatedTime { 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!; + + /// + /// The provisioning state. + /// + [Output("provisioningState")] + public Output ProvisioningState { 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 DigitalTwin 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 DigitalTwin(string name, DigitalTwinArgs args, CustomResourceOptions? options = null) + : base("azurerm:digitaltwins/latest:DigitalTwin", name, args ?? new DigitalTwinArgs(), MakeResourceOptions(options, "")) + { + } + + private DigitalTwin(string name, Input id, CustomResourceOptions? options = null) + : base("azurerm:digitaltwins/latest:DigitalTwin", 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:digitaltwins/v20200301preview:DigitalTwin"}, + new Pulumi.Alias { Type = "azurerm:digitaltwins/v20201031:DigitalTwin"}, + }, + }; + 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 DigitalTwin 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 DigitalTwin Get(string name, Input id, CustomResourceOptions? options = null) + { + return new DigitalTwin(name, id, options); + } + } + + public sealed class DigitalTwinArgs : Pulumi.ResourceArgs + { + /// + /// The resource location. + /// + [Input("location", required: true)] + public Input Location { get; set; } = null!; + + /// + /// The name of the resource group that contains the DigitalTwinsInstance. + /// + [Input("resourceGroupName", required: true)] + public Input ResourceGroupName { get; set; } = null!; + + /// + /// The name of the DigitalTwinsInstance. + /// + [Input("resourceName", required: true)] + public Input ResourceName { get; set; } = null!; + + [Input("tags")] + private InputMap? _tags; + + /// + /// The resource tags. + /// + public InputMap Tags + { + get => _tags ?? (_tags = new InputMap()); + set => _tags = value; + } + + public DigitalTwinArgs() + { + } + } +} diff --git a/sdk/dotnet/DigitalTwins/Latest/DigitalTwinsEndpoint.cs b/sdk/dotnet/DigitalTwins/Latest/DigitalTwinsEndpoint.cs new file mode 100644 index 000000000000..ae7457967368 --- /dev/null +++ b/sdk/dotnet/DigitalTwins/Latest/DigitalTwinsEndpoint.cs @@ -0,0 +1,113 @@ +// *** 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.DigitalTwins.Latest +{ + /// + /// DigitalTwinsInstance endpoint resource. + /// + public partial class DigitalTwinsEndpoint : Pulumi.CustomResource + { + /// + /// Extension resource name. + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + /// + /// DigitalTwinsInstance endpoint resource properties. + /// + [Output("properties")] + public Output>> Properties { get; private set; } = null!; + + /// + /// The resource type. + /// + [Output("type")] + public Output Type { get; private set; } = null!; + + + /// + /// Create a DigitalTwinsEndpoint 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 DigitalTwinsEndpoint(string name, DigitalTwinsEndpointArgs args, CustomResourceOptions? options = null) + : base("azurerm:digitaltwins/latest:DigitalTwinsEndpoint", name, args ?? new DigitalTwinsEndpointArgs(), MakeResourceOptions(options, "")) + { + } + + private DigitalTwinsEndpoint(string name, Input id, CustomResourceOptions? options = null) + : base("azurerm:digitaltwins/latest:DigitalTwinsEndpoint", 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:digitaltwins/v20200301preview:DigitalTwinsEndpoint"}, + new Pulumi.Alias { Type = "azurerm:digitaltwins/v20201031:DigitalTwinsEndpoint"}, + }, + }; + 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 DigitalTwinsEndpoint 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 DigitalTwinsEndpoint Get(string name, Input id, CustomResourceOptions? options = null) + { + return new DigitalTwinsEndpoint(name, id, options); + } + } + + public sealed class DigitalTwinsEndpointArgs : Pulumi.ResourceArgs + { + /// + /// Name of Endpoint Resource. + /// + [Input("endpointName", required: true)] + public Input EndpointName { get; set; } = null!; + + /// + /// DigitalTwinsInstance endpoint resource properties. + /// + [Input("properties")] + public InputUnion>? Properties { get; set; } + + /// + /// The name of the resource group that contains the DigitalTwinsInstance. + /// + [Input("resourceGroupName", required: true)] + public Input ResourceGroupName { get; set; } = null!; + + /// + /// The name of the DigitalTwinsInstance. + /// + [Input("resourceName", required: true)] + public Input ResourceName { get; set; } = null!; + + public DigitalTwinsEndpointArgs() + { + } + } +} diff --git a/sdk/dotnet/DigitalTwins/Latest/GetDigitalTwin.cs b/sdk/dotnet/DigitalTwins/Latest/GetDigitalTwin.cs new file mode 100644 index 000000000000..99af29cb8b1c --- /dev/null +++ b/sdk/dotnet/DigitalTwins/Latest/GetDigitalTwin.cs @@ -0,0 +1,103 @@ +// *** 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.DigitalTwins.Latest +{ + public static class GetDigitalTwin + { + public static Task InvokeAsync(GetDigitalTwinArgs args, InvokeOptions? options = null) + => Pulumi.Deployment.Instance.InvokeAsync("azurerm:digitaltwins/latest:getDigitalTwin", args ?? new GetDigitalTwinArgs(), options.WithVersion()); + } + + + public sealed class GetDigitalTwinArgs : Pulumi.InvokeArgs + { + /// + /// The name of the resource group that contains the DigitalTwinsInstance. + /// + [Input("resourceGroupName", required: true)] + public string ResourceGroupName { get; set; } = null!; + + /// + /// The name of the DigitalTwinsInstance. + /// + [Input("resourceName", required: true)] + public string ResourceName { get; set; } = null!; + + public GetDigitalTwinArgs() + { + } + } + + + [OutputType] + public sealed class GetDigitalTwinResult + { + /// + /// Time when DigitalTwinsInstance was created. + /// + public readonly string CreatedTime; + /// + /// Api endpoint to work with DigitalTwinsInstance. + /// + public readonly string HostName; + /// + /// Time when DigitalTwinsInstance was updated. + /// + public readonly string LastUpdatedTime; + /// + /// The resource location. + /// + public readonly string Location; + /// + /// The resource name. + /// + public readonly string Name; + /// + /// The provisioning state. + /// + public readonly string ProvisioningState; + /// + /// The resource tags. + /// + public readonly ImmutableDictionary? Tags; + /// + /// The resource type. + /// + public readonly string Type; + + [OutputConstructor] + private GetDigitalTwinResult( + string createdTime, + + string hostName, + + string lastUpdatedTime, + + string location, + + string name, + + string provisioningState, + + ImmutableDictionary? tags, + + string type) + { + CreatedTime = createdTime; + HostName = hostName; + LastUpdatedTime = lastUpdatedTime; + Location = location; + Name = name; + ProvisioningState = provisioningState; + Tags = tags; + Type = type; + } + } +} diff --git a/sdk/dotnet/DigitalTwins/Latest/GetDigitalTwinsEndpoint.cs b/sdk/dotnet/DigitalTwins/Latest/GetDigitalTwinsEndpoint.cs new file mode 100644 index 000000000000..91e92f623aa1 --- /dev/null +++ b/sdk/dotnet/DigitalTwins/Latest/GetDigitalTwinsEndpoint.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.DigitalTwins.Latest +{ + public static class GetDigitalTwinsEndpoint + { + public static Task InvokeAsync(GetDigitalTwinsEndpointArgs args, InvokeOptions? options = null) + => Pulumi.Deployment.Instance.InvokeAsync("azurerm:digitaltwins/latest:getDigitalTwinsEndpoint", args ?? new GetDigitalTwinsEndpointArgs(), options.WithVersion()); + } + + + public sealed class GetDigitalTwinsEndpointArgs : Pulumi.InvokeArgs + { + /// + /// Name of Endpoint Resource. + /// + [Input("endpointName", required: true)] + public string EndpointName { get; set; } = null!; + + /// + /// The name of the resource group that contains the DigitalTwinsInstance. + /// + [Input("resourceGroupName", required: true)] + public string ResourceGroupName { get; set; } = null!; + + /// + /// The name of the DigitalTwinsInstance. + /// + [Input("resourceName", required: true)] + public string ResourceName { get; set; } = null!; + + public GetDigitalTwinsEndpointArgs() + { + } + } + + + [OutputType] + public sealed class GetDigitalTwinsEndpointResult + { + /// + /// Extension resource name. + /// + public readonly string Name; + /// + /// DigitalTwinsInstance endpoint resource properties. + /// + public readonly Union> Properties; + /// + /// The resource type. + /// + public readonly string Type; + + [OutputConstructor] + private GetDigitalTwinsEndpointResult( + string name, + + Union> properties, + + string type) + { + Name = name; + Properties = properties; + Type = type; + } + } +} diff --git a/sdk/dotnet/DigitalTwins/Latest/Inputs/EventGridArgs.cs b/sdk/dotnet/DigitalTwins/Latest/Inputs/EventGridArgs.cs new file mode 100644 index 000000000000..63f3ef6e64b7 --- /dev/null +++ b/sdk/dotnet/DigitalTwins/Latest/Inputs/EventGridArgs.cs @@ -0,0 +1,52 @@ +// *** 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.DigitalTwins.Latest.Inputs +{ + + /// + /// Properties related to EventGrid. + /// + public sealed class EventGridArgs : Pulumi.ResourceArgs + { + /// + /// EventGrid secondary accesskey. Will be obfuscated during read. + /// + [Input("accessKey1", required: true)] + public Input AccessKey1 { get; set; } = null!; + + /// + /// EventGrid secondary accesskey. Will be obfuscated during read. + /// + [Input("accessKey2")] + public Input? AccessKey2 { get; set; } + + /// + /// Dead letter storage secret. Will be obfuscated during read. + /// + [Input("deadLetterSecret")] + public Input? DeadLetterSecret { get; set; } + + /// + /// The type of Digital Twins endpoint + /// + [Input("endpointType", required: true)] + public Input EndpointType { get; set; } = null!; + + /// + /// EventGrid Topic Endpoint + /// + [Input("topicEndpoint", required: true)] + public Input TopicEndpoint { get; set; } = null!; + + public EventGridArgs() + { + } + } +} diff --git a/sdk/dotnet/DigitalTwins/Latest/Inputs/EventHubArgs.cs b/sdk/dotnet/DigitalTwins/Latest/Inputs/EventHubArgs.cs new file mode 100644 index 000000000000..99299ada179c --- /dev/null +++ b/sdk/dotnet/DigitalTwins/Latest/Inputs/EventHubArgs.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.DigitalTwins.Latest.Inputs +{ + + /// + /// Properties related to EventHub. + /// + public sealed class EventHubArgs : Pulumi.ResourceArgs + { + /// + /// PrimaryConnectionString of the endpoint. Will be obfuscated during read. + /// + [Input("connectionStringPrimaryKey", required: true)] + public Input ConnectionStringPrimaryKey { get; set; } = null!; + + /// + /// SecondaryConnectionString of the endpoint. Will be obfuscated during read. + /// + [Input("connectionStringSecondaryKey")] + public Input? ConnectionStringSecondaryKey { get; set; } + + /// + /// Dead letter storage secret. Will be obfuscated during read. + /// + [Input("deadLetterSecret")] + public Input? DeadLetterSecret { get; set; } + + /// + /// The type of Digital Twins endpoint + /// + [Input("endpointType", required: true)] + public Input EndpointType { get; set; } = null!; + + public EventHubArgs() + { + } + } +} diff --git a/sdk/dotnet/DigitalTwins/Latest/Inputs/ServiceBusArgs.cs b/sdk/dotnet/DigitalTwins/Latest/Inputs/ServiceBusArgs.cs new file mode 100644 index 000000000000..59681958ba8b --- /dev/null +++ b/sdk/dotnet/DigitalTwins/Latest/Inputs/ServiceBusArgs.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.DigitalTwins.Latest.Inputs +{ + + /// + /// Properties related to ServiceBus. + /// + public sealed class ServiceBusArgs : Pulumi.ResourceArgs + { + /// + /// Dead letter storage secret. Will be obfuscated during read. + /// + [Input("deadLetterSecret")] + public Input? DeadLetterSecret { get; set; } + + /// + /// The type of Digital Twins endpoint + /// + [Input("endpointType", required: true)] + public Input EndpointType { get; set; } = null!; + + /// + /// PrimaryConnectionString of the endpoint. Will be obfuscated during read. + /// + [Input("primaryConnectionString", required: true)] + public Input PrimaryConnectionString { get; set; } = null!; + + /// + /// SecondaryConnectionString of the endpoint. Will be obfuscated during read. + /// + [Input("secondaryConnectionString")] + public Input? SecondaryConnectionString { get; set; } + + public ServiceBusArgs() + { + } + } +} diff --git a/sdk/dotnet/DigitalTwins/Latest/Outputs/EventGridResponseResult.cs b/sdk/dotnet/DigitalTwins/Latest/Outputs/EventGridResponseResult.cs new file mode 100644 index 000000000000..9b0b445a6e13 --- /dev/null +++ b/sdk/dotnet/DigitalTwins/Latest/Outputs/EventGridResponseResult.cs @@ -0,0 +1,70 @@ +// *** 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.DigitalTwins.Latest.Outputs +{ + + [OutputType] + public sealed class EventGridResponseResult + { + /// + /// EventGrid secondary accesskey. Will be obfuscated during read. + /// + public readonly string AccessKey1; + /// + /// EventGrid secondary accesskey. Will be obfuscated during read. + /// + public readonly string? AccessKey2; + /// + /// Time when the Endpoint was added to DigitalTwinsInstance. + /// + public readonly string CreatedTime; + /// + /// Dead letter storage secret. Will be obfuscated during read. + /// + public readonly string? DeadLetterSecret; + /// + /// The type of Digital Twins endpoint + /// + public readonly string EndpointType; + /// + /// The provisioning state. + /// + public readonly string ProvisioningState; + /// + /// EventGrid Topic Endpoint + /// + public readonly string TopicEndpoint; + + [OutputConstructor] + private EventGridResponseResult( + string accessKey1, + + string? accessKey2, + + string createdTime, + + string? deadLetterSecret, + + string endpointType, + + string provisioningState, + + string topicEndpoint) + { + AccessKey1 = accessKey1; + AccessKey2 = accessKey2; + CreatedTime = createdTime; + DeadLetterSecret = deadLetterSecret; + EndpointType = endpointType; + ProvisioningState = provisioningState; + TopicEndpoint = topicEndpoint; + } + } +} diff --git a/sdk/dotnet/DigitalTwins/Latest/Outputs/EventHubResponseResult.cs b/sdk/dotnet/DigitalTwins/Latest/Outputs/EventHubResponseResult.cs new file mode 100644 index 000000000000..e19b59a5f413 --- /dev/null +++ b/sdk/dotnet/DigitalTwins/Latest/Outputs/EventHubResponseResult.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.DigitalTwins.Latest.Outputs +{ + + [OutputType] + public sealed class EventHubResponseResult + { + /// + /// PrimaryConnectionString of the endpoint. Will be obfuscated during read. + /// + public readonly string ConnectionStringPrimaryKey; + /// + /// SecondaryConnectionString of the endpoint. Will be obfuscated during read. + /// + public readonly string? ConnectionStringSecondaryKey; + /// + /// Time when the Endpoint was added to DigitalTwinsInstance. + /// + public readonly string CreatedTime; + /// + /// Dead letter storage secret. Will be obfuscated during read. + /// + public readonly string? DeadLetterSecret; + /// + /// The type of Digital Twins endpoint + /// + public readonly string EndpointType; + /// + /// The provisioning state. + /// + public readonly string ProvisioningState; + + [OutputConstructor] + private EventHubResponseResult( + string connectionStringPrimaryKey, + + string? connectionStringSecondaryKey, + + string createdTime, + + string? deadLetterSecret, + + string endpointType, + + string provisioningState) + { + ConnectionStringPrimaryKey = connectionStringPrimaryKey; + ConnectionStringSecondaryKey = connectionStringSecondaryKey; + CreatedTime = createdTime; + DeadLetterSecret = deadLetterSecret; + EndpointType = endpointType; + ProvisioningState = provisioningState; + } + } +} diff --git a/sdk/dotnet/DigitalTwins/Latest/Outputs/ServiceBusResponseResult.cs b/sdk/dotnet/DigitalTwins/Latest/Outputs/ServiceBusResponseResult.cs new file mode 100644 index 000000000000..0df9814bca06 --- /dev/null +++ b/sdk/dotnet/DigitalTwins/Latest/Outputs/ServiceBusResponseResult.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.DigitalTwins.Latest.Outputs +{ + + [OutputType] + public sealed class ServiceBusResponseResult + { + /// + /// Time when the Endpoint was added to DigitalTwinsInstance. + /// + public readonly string CreatedTime; + /// + /// Dead letter storage secret. Will be obfuscated during read. + /// + public readonly string? DeadLetterSecret; + /// + /// The type of Digital Twins endpoint + /// + public readonly string EndpointType; + /// + /// PrimaryConnectionString of the endpoint. Will be obfuscated during read. + /// + public readonly string PrimaryConnectionString; + /// + /// The provisioning state. + /// + public readonly string ProvisioningState; + /// + /// SecondaryConnectionString of the endpoint. Will be obfuscated during read. + /// + public readonly string? SecondaryConnectionString; + + [OutputConstructor] + private ServiceBusResponseResult( + string createdTime, + + string? deadLetterSecret, + + string endpointType, + + string primaryConnectionString, + + string provisioningState, + + string? secondaryConnectionString) + { + CreatedTime = createdTime; + DeadLetterSecret = deadLetterSecret; + EndpointType = endpointType; + PrimaryConnectionString = primaryConnectionString; + ProvisioningState = provisioningState; + SecondaryConnectionString = secondaryConnectionString; + } + } +} diff --git a/sdk/dotnet/DigitalTwins/Latest/README.md b/sdk/dotnet/DigitalTwins/Latest/README.md new file mode 100644 index 000000000000..8d4df9d51c7c --- /dev/null +++ b/sdk/dotnet/DigitalTwins/Latest/README.md @@ -0,0 +1 @@ +A Pulumi package for creating and managing Azure resources. diff --git a/sdk/dotnet/DigitalTwins/V20200301Preview/DigitalTwin.cs b/sdk/dotnet/DigitalTwins/V20200301Preview/DigitalTwin.cs index 331b5852fde2..f478a922a6c6 100644 --- a/sdk/dotnet/DigitalTwins/V20200301Preview/DigitalTwin.cs +++ b/sdk/dotnet/DigitalTwins/V20200301Preview/DigitalTwin.cs @@ -91,6 +91,11 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, + Aliases = + { + new Pulumi.Alias { Type = "azurerm:digitaltwins/latest:DigitalTwin"}, + new Pulumi.Alias { Type = "azurerm:digitaltwins/v20201031:DigitalTwin"}, + }, }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. diff --git a/sdk/dotnet/DigitalTwins/V20200301Preview/DigitalTwinsEndpoint.cs b/sdk/dotnet/DigitalTwins/V20200301Preview/DigitalTwinsEndpoint.cs index d7e1bdb1db35..6a78c0cc1b92 100644 --- a/sdk/dotnet/DigitalTwins/V20200301Preview/DigitalTwinsEndpoint.cs +++ b/sdk/dotnet/DigitalTwins/V20200301Preview/DigitalTwinsEndpoint.cs @@ -55,6 +55,11 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, + Aliases = + { + new Pulumi.Alias { Type = "azurerm:digitaltwins/latest:DigitalTwinsEndpoint"}, + new Pulumi.Alias { Type = "azurerm:digitaltwins/v20201031:DigitalTwinsEndpoint"}, + }, }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. diff --git a/sdk/dotnet/DigitalTwins/V20201031/DigitalTwin.cs b/sdk/dotnet/DigitalTwins/V20201031/DigitalTwin.cs new file mode 100644 index 000000000000..e0832572b94d --- /dev/null +++ b/sdk/dotnet/DigitalTwins/V20201031/DigitalTwin.cs @@ -0,0 +1,149 @@ +// *** 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.DigitalTwins.V20201031 +{ + /// + /// The description of the DigitalTwins service. + /// + public partial class DigitalTwin : Pulumi.CustomResource + { + /// + /// Time when DigitalTwinsInstance was created. + /// + [Output("createdTime")] + public Output CreatedTime { get; private set; } = null!; + + /// + /// Api endpoint to work with DigitalTwinsInstance. + /// + [Output("hostName")] + public Output HostName { get; private set; } = null!; + + /// + /// Time when DigitalTwinsInstance was updated. + /// + [Output("lastUpdatedTime")] + public Output LastUpdatedTime { 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!; + + /// + /// The provisioning state. + /// + [Output("provisioningState")] + public Output ProvisioningState { 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 DigitalTwin 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 DigitalTwin(string name, DigitalTwinArgs args, CustomResourceOptions? options = null) + : base("azurerm:digitaltwins/v20201031:DigitalTwin", name, args ?? new DigitalTwinArgs(), MakeResourceOptions(options, "")) + { + } + + private DigitalTwin(string name, Input id, CustomResourceOptions? options = null) + : base("azurerm:digitaltwins/v20201031:DigitalTwin", 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:digitaltwins/latest:DigitalTwin"}, + new Pulumi.Alias { Type = "azurerm:digitaltwins/v20200301preview:DigitalTwin"}, + }, + }; + 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 DigitalTwin 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 DigitalTwin Get(string name, Input id, CustomResourceOptions? options = null) + { + return new DigitalTwin(name, id, options); + } + } + + public sealed class DigitalTwinArgs : Pulumi.ResourceArgs + { + /// + /// The resource location. + /// + [Input("location", required: true)] + public Input Location { get; set; } = null!; + + /// + /// The name of the resource group that contains the DigitalTwinsInstance. + /// + [Input("resourceGroupName", required: true)] + public Input ResourceGroupName { get; set; } = null!; + + /// + /// The name of the DigitalTwinsInstance. + /// + [Input("resourceName", required: true)] + public Input ResourceName { get; set; } = null!; + + [Input("tags")] + private InputMap? _tags; + + /// + /// The resource tags. + /// + public InputMap Tags + { + get => _tags ?? (_tags = new InputMap()); + set => _tags = value; + } + + public DigitalTwinArgs() + { + } + } +} diff --git a/sdk/dotnet/DigitalTwins/V20201031/DigitalTwinsEndpoint.cs b/sdk/dotnet/DigitalTwins/V20201031/DigitalTwinsEndpoint.cs new file mode 100644 index 000000000000..83cab9dc799e --- /dev/null +++ b/sdk/dotnet/DigitalTwins/V20201031/DigitalTwinsEndpoint.cs @@ -0,0 +1,113 @@ +// *** 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.DigitalTwins.V20201031 +{ + /// + /// DigitalTwinsInstance endpoint resource. + /// + public partial class DigitalTwinsEndpoint : Pulumi.CustomResource + { + /// + /// Extension resource name. + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + /// + /// DigitalTwinsInstance endpoint resource properties. + /// + [Output("properties")] + public Output>> Properties { get; private set; } = null!; + + /// + /// The resource type. + /// + [Output("type")] + public Output Type { get; private set; } = null!; + + + /// + /// Create a DigitalTwinsEndpoint 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 DigitalTwinsEndpoint(string name, DigitalTwinsEndpointArgs args, CustomResourceOptions? options = null) + : base("azurerm:digitaltwins/v20201031:DigitalTwinsEndpoint", name, args ?? new DigitalTwinsEndpointArgs(), MakeResourceOptions(options, "")) + { + } + + private DigitalTwinsEndpoint(string name, Input id, CustomResourceOptions? options = null) + : base("azurerm:digitaltwins/v20201031:DigitalTwinsEndpoint", 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:digitaltwins/latest:DigitalTwinsEndpoint"}, + new Pulumi.Alias { Type = "azurerm:digitaltwins/v20200301preview:DigitalTwinsEndpoint"}, + }, + }; + 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 DigitalTwinsEndpoint 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 DigitalTwinsEndpoint Get(string name, Input id, CustomResourceOptions? options = null) + { + return new DigitalTwinsEndpoint(name, id, options); + } + } + + public sealed class DigitalTwinsEndpointArgs : Pulumi.ResourceArgs + { + /// + /// Name of Endpoint Resource. + /// + [Input("endpointName", required: true)] + public Input EndpointName { get; set; } = null!; + + /// + /// DigitalTwinsInstance endpoint resource properties. + /// + [Input("properties")] + public InputUnion>? Properties { get; set; } + + /// + /// The name of the resource group that contains the DigitalTwinsInstance. + /// + [Input("resourceGroupName", required: true)] + public Input ResourceGroupName { get; set; } = null!; + + /// + /// The name of the DigitalTwinsInstance. + /// + [Input("resourceName", required: true)] + public Input ResourceName { get; set; } = null!; + + public DigitalTwinsEndpointArgs() + { + } + } +} diff --git a/sdk/dotnet/DigitalTwins/V20201031/GetDigitalTwin.cs b/sdk/dotnet/DigitalTwins/V20201031/GetDigitalTwin.cs new file mode 100644 index 000000000000..fa174d9a226b --- /dev/null +++ b/sdk/dotnet/DigitalTwins/V20201031/GetDigitalTwin.cs @@ -0,0 +1,103 @@ +// *** 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.DigitalTwins.V20201031 +{ + public static class GetDigitalTwin + { + public static Task InvokeAsync(GetDigitalTwinArgs args, InvokeOptions? options = null) + => Pulumi.Deployment.Instance.InvokeAsync("azurerm:digitaltwins/v20201031:getDigitalTwin", args ?? new GetDigitalTwinArgs(), options.WithVersion()); + } + + + public sealed class GetDigitalTwinArgs : Pulumi.InvokeArgs + { + /// + /// The name of the resource group that contains the DigitalTwinsInstance. + /// + [Input("resourceGroupName", required: true)] + public string ResourceGroupName { get; set; } = null!; + + /// + /// The name of the DigitalTwinsInstance. + /// + [Input("resourceName", required: true)] + public string ResourceName { get; set; } = null!; + + public GetDigitalTwinArgs() + { + } + } + + + [OutputType] + public sealed class GetDigitalTwinResult + { + /// + /// Time when DigitalTwinsInstance was created. + /// + public readonly string CreatedTime; + /// + /// Api endpoint to work with DigitalTwinsInstance. + /// + public readonly string HostName; + /// + /// Time when DigitalTwinsInstance was updated. + /// + public readonly string LastUpdatedTime; + /// + /// The resource location. + /// + public readonly string Location; + /// + /// The resource name. + /// + public readonly string Name; + /// + /// The provisioning state. + /// + public readonly string ProvisioningState; + /// + /// The resource tags. + /// + public readonly ImmutableDictionary? Tags; + /// + /// The resource type. + /// + public readonly string Type; + + [OutputConstructor] + private GetDigitalTwinResult( + string createdTime, + + string hostName, + + string lastUpdatedTime, + + string location, + + string name, + + string provisioningState, + + ImmutableDictionary? tags, + + string type) + { + CreatedTime = createdTime; + HostName = hostName; + LastUpdatedTime = lastUpdatedTime; + Location = location; + Name = name; + ProvisioningState = provisioningState; + Tags = tags; + Type = type; + } + } +} diff --git a/sdk/dotnet/DigitalTwins/V20201031/GetDigitalTwinsEndpoint.cs b/sdk/dotnet/DigitalTwins/V20201031/GetDigitalTwinsEndpoint.cs new file mode 100644 index 000000000000..705936a7161f --- /dev/null +++ b/sdk/dotnet/DigitalTwins/V20201031/GetDigitalTwinsEndpoint.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.DigitalTwins.V20201031 +{ + public static class GetDigitalTwinsEndpoint + { + public static Task InvokeAsync(GetDigitalTwinsEndpointArgs args, InvokeOptions? options = null) + => Pulumi.Deployment.Instance.InvokeAsync("azurerm:digitaltwins/v20201031:getDigitalTwinsEndpoint", args ?? new GetDigitalTwinsEndpointArgs(), options.WithVersion()); + } + + + public sealed class GetDigitalTwinsEndpointArgs : Pulumi.InvokeArgs + { + /// + /// Name of Endpoint Resource. + /// + [Input("endpointName", required: true)] + public string EndpointName { get; set; } = null!; + + /// + /// The name of the resource group that contains the DigitalTwinsInstance. + /// + [Input("resourceGroupName", required: true)] + public string ResourceGroupName { get; set; } = null!; + + /// + /// The name of the DigitalTwinsInstance. + /// + [Input("resourceName", required: true)] + public string ResourceName { get; set; } = null!; + + public GetDigitalTwinsEndpointArgs() + { + } + } + + + [OutputType] + public sealed class GetDigitalTwinsEndpointResult + { + /// + /// Extension resource name. + /// + public readonly string Name; + /// + /// DigitalTwinsInstance endpoint resource properties. + /// + public readonly Union> Properties; + /// + /// The resource type. + /// + public readonly string Type; + + [OutputConstructor] + private GetDigitalTwinsEndpointResult( + string name, + + Union> properties, + + string type) + { + Name = name; + Properties = properties; + Type = type; + } + } +} diff --git a/sdk/dotnet/DigitalTwins/V20201031/Inputs/EventGridArgs.cs b/sdk/dotnet/DigitalTwins/V20201031/Inputs/EventGridArgs.cs new file mode 100644 index 000000000000..a9d85ca7dfe6 --- /dev/null +++ b/sdk/dotnet/DigitalTwins/V20201031/Inputs/EventGridArgs.cs @@ -0,0 +1,52 @@ +// *** 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.DigitalTwins.V20201031.Inputs +{ + + /// + /// Properties related to EventGrid. + /// + public sealed class EventGridArgs : Pulumi.ResourceArgs + { + /// + /// EventGrid secondary accesskey. Will be obfuscated during read. + /// + [Input("accessKey1", required: true)] + public Input AccessKey1 { get; set; } = null!; + + /// + /// EventGrid secondary accesskey. Will be obfuscated during read. + /// + [Input("accessKey2")] + public Input? AccessKey2 { get; set; } + + /// + /// Dead letter storage secret. Will be obfuscated during read. + /// + [Input("deadLetterSecret")] + public Input? DeadLetterSecret { get; set; } + + /// + /// The type of Digital Twins endpoint + /// + [Input("endpointType", required: true)] + public Input EndpointType { get; set; } = null!; + + /// + /// EventGrid Topic Endpoint + /// + [Input("topicEndpoint", required: true)] + public Input TopicEndpoint { get; set; } = null!; + + public EventGridArgs() + { + } + } +} diff --git a/sdk/dotnet/DigitalTwins/V20201031/Inputs/EventHubArgs.cs b/sdk/dotnet/DigitalTwins/V20201031/Inputs/EventHubArgs.cs new file mode 100644 index 000000000000..91acb91906ea --- /dev/null +++ b/sdk/dotnet/DigitalTwins/V20201031/Inputs/EventHubArgs.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.DigitalTwins.V20201031.Inputs +{ + + /// + /// Properties related to EventHub. + /// + public sealed class EventHubArgs : Pulumi.ResourceArgs + { + /// + /// PrimaryConnectionString of the endpoint. Will be obfuscated during read. + /// + [Input("connectionStringPrimaryKey", required: true)] + public Input ConnectionStringPrimaryKey { get; set; } = null!; + + /// + /// SecondaryConnectionString of the endpoint. Will be obfuscated during read. + /// + [Input("connectionStringSecondaryKey")] + public Input? ConnectionStringSecondaryKey { get; set; } + + /// + /// Dead letter storage secret. Will be obfuscated during read. + /// + [Input("deadLetterSecret")] + public Input? DeadLetterSecret { get; set; } + + /// + /// The type of Digital Twins endpoint + /// + [Input("endpointType", required: true)] + public Input EndpointType { get; set; } = null!; + + public EventHubArgs() + { + } + } +} diff --git a/sdk/dotnet/DigitalTwins/V20201031/Inputs/ServiceBusArgs.cs b/sdk/dotnet/DigitalTwins/V20201031/Inputs/ServiceBusArgs.cs new file mode 100644 index 000000000000..251cfab34e37 --- /dev/null +++ b/sdk/dotnet/DigitalTwins/V20201031/Inputs/ServiceBusArgs.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.DigitalTwins.V20201031.Inputs +{ + + /// + /// Properties related to ServiceBus. + /// + public sealed class ServiceBusArgs : Pulumi.ResourceArgs + { + /// + /// Dead letter storage secret. Will be obfuscated during read. + /// + [Input("deadLetterSecret")] + public Input? DeadLetterSecret { get; set; } + + /// + /// The type of Digital Twins endpoint + /// + [Input("endpointType", required: true)] + public Input EndpointType { get; set; } = null!; + + /// + /// PrimaryConnectionString of the endpoint. Will be obfuscated during read. + /// + [Input("primaryConnectionString", required: true)] + public Input PrimaryConnectionString { get; set; } = null!; + + /// + /// SecondaryConnectionString of the endpoint. Will be obfuscated during read. + /// + [Input("secondaryConnectionString")] + public Input? SecondaryConnectionString { get; set; } + + public ServiceBusArgs() + { + } + } +} diff --git a/sdk/dotnet/DigitalTwins/V20201031/Outputs/EventGridResponseResult.cs b/sdk/dotnet/DigitalTwins/V20201031/Outputs/EventGridResponseResult.cs new file mode 100644 index 000000000000..efa33d581a97 --- /dev/null +++ b/sdk/dotnet/DigitalTwins/V20201031/Outputs/EventGridResponseResult.cs @@ -0,0 +1,70 @@ +// *** 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.DigitalTwins.V20201031.Outputs +{ + + [OutputType] + public sealed class EventGridResponseResult + { + /// + /// EventGrid secondary accesskey. Will be obfuscated during read. + /// + public readonly string AccessKey1; + /// + /// EventGrid secondary accesskey. Will be obfuscated during read. + /// + public readonly string? AccessKey2; + /// + /// Time when the Endpoint was added to DigitalTwinsInstance. + /// + public readonly string CreatedTime; + /// + /// Dead letter storage secret. Will be obfuscated during read. + /// + public readonly string? DeadLetterSecret; + /// + /// The type of Digital Twins endpoint + /// + public readonly string EndpointType; + /// + /// The provisioning state. + /// + public readonly string ProvisioningState; + /// + /// EventGrid Topic Endpoint + /// + public readonly string TopicEndpoint; + + [OutputConstructor] + private EventGridResponseResult( + string accessKey1, + + string? accessKey2, + + string createdTime, + + string? deadLetterSecret, + + string endpointType, + + string provisioningState, + + string topicEndpoint) + { + AccessKey1 = accessKey1; + AccessKey2 = accessKey2; + CreatedTime = createdTime; + DeadLetterSecret = deadLetterSecret; + EndpointType = endpointType; + ProvisioningState = provisioningState; + TopicEndpoint = topicEndpoint; + } + } +} diff --git a/sdk/dotnet/DigitalTwins/V20201031/Outputs/EventHubResponseResult.cs b/sdk/dotnet/DigitalTwins/V20201031/Outputs/EventHubResponseResult.cs new file mode 100644 index 000000000000..a094b450250c --- /dev/null +++ b/sdk/dotnet/DigitalTwins/V20201031/Outputs/EventHubResponseResult.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.DigitalTwins.V20201031.Outputs +{ + + [OutputType] + public sealed class EventHubResponseResult + { + /// + /// PrimaryConnectionString of the endpoint. Will be obfuscated during read. + /// + public readonly string ConnectionStringPrimaryKey; + /// + /// SecondaryConnectionString of the endpoint. Will be obfuscated during read. + /// + public readonly string? ConnectionStringSecondaryKey; + /// + /// Time when the Endpoint was added to DigitalTwinsInstance. + /// + public readonly string CreatedTime; + /// + /// Dead letter storage secret. Will be obfuscated during read. + /// + public readonly string? DeadLetterSecret; + /// + /// The type of Digital Twins endpoint + /// + public readonly string EndpointType; + /// + /// The provisioning state. + /// + public readonly string ProvisioningState; + + [OutputConstructor] + private EventHubResponseResult( + string connectionStringPrimaryKey, + + string? connectionStringSecondaryKey, + + string createdTime, + + string? deadLetterSecret, + + string endpointType, + + string provisioningState) + { + ConnectionStringPrimaryKey = connectionStringPrimaryKey; + ConnectionStringSecondaryKey = connectionStringSecondaryKey; + CreatedTime = createdTime; + DeadLetterSecret = deadLetterSecret; + EndpointType = endpointType; + ProvisioningState = provisioningState; + } + } +} diff --git a/sdk/dotnet/DigitalTwins/V20201031/Outputs/ServiceBusResponseResult.cs b/sdk/dotnet/DigitalTwins/V20201031/Outputs/ServiceBusResponseResult.cs new file mode 100644 index 000000000000..292e8b11d25b --- /dev/null +++ b/sdk/dotnet/DigitalTwins/V20201031/Outputs/ServiceBusResponseResult.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.DigitalTwins.V20201031.Outputs +{ + + [OutputType] + public sealed class ServiceBusResponseResult + { + /// + /// Time when the Endpoint was added to DigitalTwinsInstance. + /// + public readonly string CreatedTime; + /// + /// Dead letter storage secret. Will be obfuscated during read. + /// + public readonly string? DeadLetterSecret; + /// + /// The type of Digital Twins endpoint + /// + public readonly string EndpointType; + /// + /// PrimaryConnectionString of the endpoint. Will be obfuscated during read. + /// + public readonly string PrimaryConnectionString; + /// + /// The provisioning state. + /// + public readonly string ProvisioningState; + /// + /// SecondaryConnectionString of the endpoint. Will be obfuscated during read. + /// + public readonly string? SecondaryConnectionString; + + [OutputConstructor] + private ServiceBusResponseResult( + string createdTime, + + string? deadLetterSecret, + + string endpointType, + + string primaryConnectionString, + + string provisioningState, + + string? secondaryConnectionString) + { + CreatedTime = createdTime; + DeadLetterSecret = deadLetterSecret; + EndpointType = endpointType; + PrimaryConnectionString = primaryConnectionString; + ProvisioningState = provisioningState; + SecondaryConnectionString = secondaryConnectionString; + } + } +} diff --git a/sdk/dotnet/DigitalTwins/V20201031/README.md b/sdk/dotnet/DigitalTwins/V20201031/README.md new file mode 100644 index 000000000000..8d4df9d51c7c --- /dev/null +++ b/sdk/dotnet/DigitalTwins/V20201031/README.md @@ -0,0 +1 @@ +A Pulumi package for creating and managing Azure resources. diff --git a/sdk/dotnet/Insights/V20180617Preview/GetWorkbook.cs b/sdk/dotnet/Insights/V20180617Preview/GetWorkbook.cs index 09383d191a9a..16159226302b 100644 --- a/sdk/dotnet/Insights/V20180617Preview/GetWorkbook.cs +++ b/sdk/dotnet/Insights/V20180617Preview/GetWorkbook.cs @@ -64,6 +64,10 @@ public sealed class GetWorkbookResult /// public readonly string SerializedData; /// + /// ResourceId for a source resource. + /// + public readonly string? SourceId; + /// /// Resource tags /// public readonly ImmutableDictionary? Tags; @@ -98,6 +102,8 @@ private GetWorkbookResult( string serializedData, + string? sourceId, + ImmutableDictionary? tags, string timeModified, @@ -114,6 +120,7 @@ private GetWorkbookResult( Location = location; Name = name; SerializedData = serializedData; + SourceId = sourceId; Tags = tags; TimeModified = timeModified; Type = type; diff --git a/sdk/dotnet/Insights/V20180617Preview/Workbook.cs b/sdk/dotnet/Insights/V20180617Preview/Workbook.cs index 7fceca46d402..312ec41c03ee 100644 --- a/sdk/dotnet/Insights/V20180617Preview/Workbook.cs +++ b/sdk/dotnet/Insights/V20180617Preview/Workbook.cs @@ -50,6 +50,12 @@ public partial class Workbook : Pulumi.CustomResource [Output("serializedData")] public Output SerializedData { get; private set; } = null!; + /// + /// ResourceId for a source resource. + /// + [Output("sourceId")] + public Output SourceId { get; private set; } = null!; + /// /// Resource tags /// @@ -173,7 +179,7 @@ public sealed class WorkbookArgs : Pulumi.ResourceArgs public Input SerializedData { get; set; } = null!; /// - /// Azure Resource Id that will fetch all related workbooks. + /// ResourceId for a source resource. /// [Input("sourceId", required: true)] public Input SourceId { get; set; } = null!; @@ -190,12 +196,6 @@ public InputMap Tags set => _tags = value; } - /// - /// Unique user id of the specific user that owns this workbook. - /// - [Input("userId", required: true)] - public Input UserId { get; set; } = null!; - /// /// Workbook version /// diff --git a/sdk/dotnet/Kubernetes/V20200101Preview/Inputs/AuthenticationCertificateDetailsArgs.cs b/sdk/dotnet/Kubernetes/V20200101Preview/Inputs/AuthenticationCertificateDetailsArgs.cs new file mode 100644 index 000000000000..64af6d760ee4 --- /dev/null +++ b/sdk/dotnet/Kubernetes/V20200101Preview/Inputs/AuthenticationCertificateDetailsArgs.cs @@ -0,0 +1,31 @@ +// *** 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.Kubernetes.V20200101Preview.Inputs +{ + + public sealed class AuthenticationCertificateDetailsArgs : Pulumi.InvokeArgs + { + /// + /// Base64 encoded client certificate data. + /// + [Input("certificateData", required: true)] + public string CertificateData { get; set; } = null!; + + /// + /// Base64 encoded key data. + /// + [Input("keyData", required: true)] + public string KeyData { get; set; } = null!; + + public AuthenticationCertificateDetailsArgs() + { + } + } +} diff --git a/sdk/dotnet/Kubernetes/V20200101Preview/Inputs/AuthenticationDetailsValueArgs.cs b/sdk/dotnet/Kubernetes/V20200101Preview/Inputs/AuthenticationDetailsValueArgs.cs new file mode 100644 index 000000000000..b83ee5090236 --- /dev/null +++ b/sdk/dotnet/Kubernetes/V20200101Preview/Inputs/AuthenticationDetailsValueArgs.cs @@ -0,0 +1,28 @@ +// *** 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.Kubernetes.V20200101Preview.Inputs +{ + + public sealed class AuthenticationDetailsValueArgs : Pulumi.InvokeArgs + { + [Input("clientCertificate")] + public Inputs.AuthenticationCertificateDetailsArgs? ClientCertificate { get; set; } + + /// + /// Authentication token. + /// + [Input("token")] + public string? Token { get; set; } + + public AuthenticationDetailsValueArgs() + { + } + } +} diff --git a/sdk/dotnet/Kubernetes/V20200101Preview/ListConnectedClusterUserCredentials.cs b/sdk/dotnet/Kubernetes/V20200101Preview/ListConnectedClusterUserCredentials.cs index 54e6780bee4b..f44d1d95d85f 100644 --- a/sdk/dotnet/Kubernetes/V20200101Preview/ListConnectedClusterUserCredentials.cs +++ b/sdk/dotnet/Kubernetes/V20200101Preview/ListConnectedClusterUserCredentials.cs @@ -18,6 +18,12 @@ public static Task InvokeAsync(ListCo public sealed class ListConnectedClusterUserCredentialsArgs : Pulumi.InvokeArgs { + /// + /// The mode of client authentication. + /// + [Input("authenticationMethod", required: true)] + public string AuthenticationMethod { get; set; } = null!; + /// /// The name of the Kubernetes cluster on which get is called. /// @@ -30,6 +36,9 @@ public sealed class ListConnectedClusterUserCredentialsArgs : Pulumi.InvokeArgs [Input("resourceGroupName", required: true)] public string ResourceGroupName { get; set; } = null!; + [Input("value", required: true)] + public Inputs.AuthenticationDetailsValueArgs Value { get; set; } = null!; + public ListConnectedClusterUserCredentialsArgs() { } diff --git a/sdk/dotnet/NetApp/Latest/GetsnapshotPolicy.cs b/sdk/dotnet/NetApp/Latest/GetsnapshotPolicy.cs index ad969a7c3929..e9706c759edf 100644 --- a/sdk/dotnet/NetApp/Latest/GetsnapshotPolicy.cs +++ b/sdk/dotnet/NetApp/Latest/GetsnapshotPolicy.cs @@ -48,7 +48,7 @@ public sealed class GetsnapshotPolicyResult /// /// Schedule for daily snapshots /// - public readonly ImmutableDictionary? DailySchedule; + public readonly Outputs.DailyScheduleResponseResult? DailySchedule; /// /// The property to decide policy is enabled or not /// @@ -56,7 +56,7 @@ public sealed class GetsnapshotPolicyResult /// /// Schedule for hourly snapshots /// - public readonly ImmutableDictionary? HourlySchedule; + public readonly Outputs.HourlyScheduleResponseResult? HourlySchedule; /// /// Resource location /// @@ -64,12 +64,16 @@ public sealed class GetsnapshotPolicyResult /// /// Schedule for monthly snapshots /// - public readonly ImmutableDictionary? MonthlySchedule; + public readonly Outputs.MonthlyScheduleResponseResult? MonthlySchedule; /// - /// Resource name + /// Snapshot policy name /// public readonly string Name; /// + /// Azure lifecycle management + /// + public readonly string ProvisioningState; + /// /// Resource tags /// public readonly ImmutableDictionary? Tags; @@ -80,27 +84,29 @@ public sealed class GetsnapshotPolicyResult /// /// Schedule for weekly snapshots /// - public readonly ImmutableDictionary? WeeklySchedule; + public readonly Outputs.WeeklyScheduleResponseResult? WeeklySchedule; [OutputConstructor] private GetsnapshotPolicyResult( - ImmutableDictionary? dailySchedule, + Outputs.DailyScheduleResponseResult? dailySchedule, bool? enabled, - ImmutableDictionary? hourlySchedule, + Outputs.HourlyScheduleResponseResult? hourlySchedule, string location, - ImmutableDictionary? monthlySchedule, + Outputs.MonthlyScheduleResponseResult? monthlySchedule, string name, + string provisioningState, + ImmutableDictionary? tags, string type, - ImmutableDictionary? weeklySchedule) + Outputs.WeeklyScheduleResponseResult? weeklySchedule) { DailySchedule = dailySchedule; Enabled = enabled; @@ -108,6 +114,7 @@ private GetsnapshotPolicyResult( Location = location; MonthlySchedule = monthlySchedule; Name = name; + ProvisioningState = provisioningState; Tags = tags; Type = type; WeeklySchedule = weeklySchedule; diff --git a/sdk/dotnet/NetApp/Latest/Inputs/DailyScheduleArgs.cs b/sdk/dotnet/NetApp/Latest/Inputs/DailyScheduleArgs.cs new file mode 100644 index 000000000000..ae5040c3d867 --- /dev/null +++ b/sdk/dotnet/NetApp/Latest/Inputs/DailyScheduleArgs.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.NetApp.Latest.Inputs +{ + + /// + /// Daily Schedule properties + /// + public sealed class DailyScheduleArgs : Pulumi.ResourceArgs + { + /// + /// Indicates which hour in UTC timezone a snapshot should be taken + /// + [Input("hour")] + public Input? Hour { get; set; } + + /// + /// Indicates which minute snapshot should be taken + /// + [Input("minute")] + public Input? Minute { get; set; } + + /// + /// Daily snapshot count to keep + /// + [Input("snapshotsToKeep")] + public Input? SnapshotsToKeep { get; set; } + + /// + /// Resource size in bytes, current storage usage for the volume in bytes + /// + [Input("usedBytes")] + public Input? UsedBytes { get; set; } + + public DailyScheduleArgs() + { + } + } +} diff --git a/sdk/dotnet/NetApp/Latest/Inputs/HourlyScheduleArgs.cs b/sdk/dotnet/NetApp/Latest/Inputs/HourlyScheduleArgs.cs new file mode 100644 index 000000000000..e473324270bb --- /dev/null +++ b/sdk/dotnet/NetApp/Latest/Inputs/HourlyScheduleArgs.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.NetApp.Latest.Inputs +{ + + /// + /// Hourly Schedule properties + /// + public sealed class HourlyScheduleArgs : Pulumi.ResourceArgs + { + /// + /// Indicates which minute snapshot should be taken + /// + [Input("minute")] + public Input? Minute { get; set; } + + /// + /// Hourly snapshot count to keep + /// + [Input("snapshotsToKeep")] + public Input? SnapshotsToKeep { get; set; } + + /// + /// Resource size in bytes, current storage usage for the volume in bytes + /// + [Input("usedBytes")] + public Input? UsedBytes { get; set; } + + public HourlyScheduleArgs() + { + } + } +} diff --git a/sdk/dotnet/NetApp/Latest/Inputs/MonthlyScheduleArgs.cs b/sdk/dotnet/NetApp/Latest/Inputs/MonthlyScheduleArgs.cs new file mode 100644 index 000000000000..6c31d92fe859 --- /dev/null +++ b/sdk/dotnet/NetApp/Latest/Inputs/MonthlyScheduleArgs.cs @@ -0,0 +1,52 @@ +// *** 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.NetApp.Latest.Inputs +{ + + /// + /// Monthly Schedule properties + /// + public sealed class MonthlyScheduleArgs : Pulumi.ResourceArgs + { + /// + /// Indicates which days of the month snapshot should be taken. A comma delimited string. + /// + [Input("daysOfMonth")] + public Input? DaysOfMonth { get; set; } + + /// + /// Indicates which hour in UTC timezone a snapshot should be taken + /// + [Input("hour")] + public Input? Hour { get; set; } + + /// + /// Indicates which minute snapshot should be taken + /// + [Input("minute")] + public Input? Minute { get; set; } + + /// + /// Monthly snapshot count to keep + /// + [Input("snapshotsToKeep")] + public Input? SnapshotsToKeep { get; set; } + + /// + /// Resource size in bytes, current storage usage for the volume in bytes + /// + [Input("usedBytes")] + public Input? UsedBytes { get; set; } + + public MonthlyScheduleArgs() + { + } + } +} diff --git a/sdk/dotnet/NetApp/Latest/Inputs/WeeklyScheduleArgs.cs b/sdk/dotnet/NetApp/Latest/Inputs/WeeklyScheduleArgs.cs new file mode 100644 index 000000000000..9f211c67e179 --- /dev/null +++ b/sdk/dotnet/NetApp/Latest/Inputs/WeeklyScheduleArgs.cs @@ -0,0 +1,52 @@ +// *** 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.NetApp.Latest.Inputs +{ + + /// + /// Weekly Schedule properties, make a snapshot every week at a specific day or days + /// + public sealed class WeeklyScheduleArgs : Pulumi.ResourceArgs + { + /// + /// Indicates which weekdays snapshot should be taken, accepts a comma separated list of week day names in english + /// + [Input("day")] + public Input? Day { get; set; } + + /// + /// Indicates which hour in UTC timezone a snapshot should be taken + /// + [Input("hour")] + public Input? Hour { get; set; } + + /// + /// Indicates which minute snapshot should be taken + /// + [Input("minute")] + public Input? Minute { get; set; } + + /// + /// Weekly snapshot count to keep + /// + [Input("snapshotsToKeep")] + public Input? SnapshotsToKeep { get; set; } + + /// + /// Resource size in bytes, current storage usage for the volume in bytes + /// + [Input("usedBytes")] + public Input? UsedBytes { get; set; } + + public WeeklyScheduleArgs() + { + } + } +} diff --git a/sdk/dotnet/NetApp/Latest/Outputs/DailyScheduleResponseResult.cs b/sdk/dotnet/NetApp/Latest/Outputs/DailyScheduleResponseResult.cs new file mode 100644 index 000000000000..4513d7d11ace --- /dev/null +++ b/sdk/dotnet/NetApp/Latest/Outputs/DailyScheduleResponseResult.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.NetApp.Latest.Outputs +{ + + [OutputType] + public sealed class DailyScheduleResponseResult + { + /// + /// Indicates which hour in UTC timezone a snapshot should be taken + /// + public readonly int? Hour; + /// + /// Indicates which minute snapshot should be taken + /// + public readonly int? Minute; + /// + /// Daily snapshot count to keep + /// + public readonly int? SnapshotsToKeep; + /// + /// Resource size in bytes, current storage usage for the volume in bytes + /// + public readonly int? UsedBytes; + + [OutputConstructor] + private DailyScheduleResponseResult( + int? hour, + + int? minute, + + int? snapshotsToKeep, + + int? usedBytes) + { + Hour = hour; + Minute = minute; + SnapshotsToKeep = snapshotsToKeep; + UsedBytes = usedBytes; + } + } +} diff --git a/sdk/dotnet/NetApp/Latest/Outputs/HourlyScheduleResponseResult.cs b/sdk/dotnet/NetApp/Latest/Outputs/HourlyScheduleResponseResult.cs new file mode 100644 index 000000000000..ef808cd2e511 --- /dev/null +++ b/sdk/dotnet/NetApp/Latest/Outputs/HourlyScheduleResponseResult.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.NetApp.Latest.Outputs +{ + + [OutputType] + public sealed class HourlyScheduleResponseResult + { + /// + /// Indicates which minute snapshot should be taken + /// + public readonly int? Minute; + /// + /// Hourly snapshot count to keep + /// + public readonly int? SnapshotsToKeep; + /// + /// Resource size in bytes, current storage usage for the volume in bytes + /// + public readonly int? UsedBytes; + + [OutputConstructor] + private HourlyScheduleResponseResult( + int? minute, + + int? snapshotsToKeep, + + int? usedBytes) + { + Minute = minute; + SnapshotsToKeep = snapshotsToKeep; + UsedBytes = usedBytes; + } + } +} diff --git a/sdk/dotnet/NetApp/Latest/Outputs/MonthlyScheduleResponseResult.cs b/sdk/dotnet/NetApp/Latest/Outputs/MonthlyScheduleResponseResult.cs new file mode 100644 index 000000000000..bfe13301bca4 --- /dev/null +++ b/sdk/dotnet/NetApp/Latest/Outputs/MonthlyScheduleResponseResult.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.NetApp.Latest.Outputs +{ + + [OutputType] + public sealed class MonthlyScheduleResponseResult + { + /// + /// Indicates which days of the month snapshot should be taken. A comma delimited string. + /// + public readonly string? DaysOfMonth; + /// + /// Indicates which hour in UTC timezone a snapshot should be taken + /// + public readonly int? Hour; + /// + /// Indicates which minute snapshot should be taken + /// + public readonly int? Minute; + /// + /// Monthly snapshot count to keep + /// + public readonly int? SnapshotsToKeep; + /// + /// Resource size in bytes, current storage usage for the volume in bytes + /// + public readonly int? UsedBytes; + + [OutputConstructor] + private MonthlyScheduleResponseResult( + string? daysOfMonth, + + int? hour, + + int? minute, + + int? snapshotsToKeep, + + int? usedBytes) + { + DaysOfMonth = daysOfMonth; + Hour = hour; + Minute = minute; + SnapshotsToKeep = snapshotsToKeep; + UsedBytes = usedBytes; + } + } +} diff --git a/sdk/dotnet/NetApp/Latest/Outputs/WeeklyScheduleResponseResult.cs b/sdk/dotnet/NetApp/Latest/Outputs/WeeklyScheduleResponseResult.cs new file mode 100644 index 000000000000..52b9412f6cfb --- /dev/null +++ b/sdk/dotnet/NetApp/Latest/Outputs/WeeklyScheduleResponseResult.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.NetApp.Latest.Outputs +{ + + [OutputType] + public sealed class WeeklyScheduleResponseResult + { + /// + /// Indicates which weekdays snapshot should be taken, accepts a comma separated list of week day names in english + /// + public readonly string? Day; + /// + /// Indicates which hour in UTC timezone a snapshot should be taken + /// + public readonly int? Hour; + /// + /// Indicates which minute snapshot should be taken + /// + public readonly int? Minute; + /// + /// Weekly snapshot count to keep + /// + public readonly int? SnapshotsToKeep; + /// + /// Resource size in bytes, current storage usage for the volume in bytes + /// + public readonly int? UsedBytes; + + [OutputConstructor] + private WeeklyScheduleResponseResult( + string? day, + + int? hour, + + int? minute, + + int? snapshotsToKeep, + + int? usedBytes) + { + Day = day; + Hour = hour; + Minute = minute; + SnapshotsToKeep = snapshotsToKeep; + UsedBytes = usedBytes; + } + } +} diff --git a/sdk/dotnet/NetApp/Latest/SnapshotPolicy.cs b/sdk/dotnet/NetApp/Latest/SnapshotPolicy.cs index 11e8efbeb713..68a6c6073f49 100644 --- a/sdk/dotnet/NetApp/Latest/SnapshotPolicy.cs +++ b/sdk/dotnet/NetApp/Latest/SnapshotPolicy.cs @@ -18,7 +18,7 @@ public partial class SnapshotPolicy : Pulumi.CustomResource /// Schedule for daily snapshots /// [Output("dailySchedule")] - public Output?> DailySchedule { get; private set; } = null!; + public Output DailySchedule { get; private set; } = null!; /// /// The property to decide policy is enabled or not @@ -30,7 +30,7 @@ public partial class SnapshotPolicy : Pulumi.CustomResource /// Schedule for hourly snapshots /// [Output("hourlySchedule")] - public Output?> HourlySchedule { get; private set; } = null!; + public Output HourlySchedule { get; private set; } = null!; /// /// Resource location @@ -42,14 +42,20 @@ public partial class SnapshotPolicy : Pulumi.CustomResource /// Schedule for monthly snapshots /// [Output("monthlySchedule")] - public Output?> MonthlySchedule { get; private set; } = null!; + public Output MonthlySchedule { get; private set; } = null!; /// - /// Resource name + /// Snapshot policy name /// [Output("name")] public Output Name { get; private set; } = null!; + /// + /// Azure lifecycle management + /// + [Output("provisioningState")] + public Output ProvisioningState { get; private set; } = null!; + /// /// Resource tags /// @@ -66,7 +72,7 @@ public partial class SnapshotPolicy : Pulumi.CustomResource /// Schedule for weekly snapshots /// [Output("weeklySchedule")] - public Output?> WeeklySchedule { get; private set; } = null!; + public Output WeeklySchedule { get; private set; } = null!; /// @@ -123,17 +129,11 @@ public sealed class SnapshotPolicyArgs : Pulumi.ResourceArgs [Input("accountName", required: true)] public Input AccountName { get; set; } = null!; - [Input("dailySchedule")] - private InputMap? _dailySchedule; - /// /// Schedule for daily snapshots /// - public InputMap DailySchedule - { - get => _dailySchedule ?? (_dailySchedule = new InputMap()); - set => _dailySchedule = value; - } + [Input("dailySchedule")] + public Input? DailySchedule { get; set; } /// /// The property to decide policy is enabled or not @@ -141,17 +141,11 @@ public InputMap DailySchedule [Input("enabled")] public Input? Enabled { get; set; } - [Input("hourlySchedule")] - private InputMap? _hourlySchedule; - /// /// Schedule for hourly snapshots /// - public InputMap HourlySchedule - { - get => _hourlySchedule ?? (_hourlySchedule = new InputMap()); - set => _hourlySchedule = value; - } + [Input("hourlySchedule")] + public Input? HourlySchedule { get; set; } /// /// Resource location @@ -159,17 +153,11 @@ public InputMap HourlySchedule [Input("location", required: true)] public Input Location { get; set; } = null!; - [Input("monthlySchedule")] - private InputMap? _monthlySchedule; - /// /// Schedule for monthly snapshots /// - public InputMap MonthlySchedule - { - get => _monthlySchedule ?? (_monthlySchedule = new InputMap()); - set => _monthlySchedule = value; - } + [Input("monthlySchedule")] + public Input? MonthlySchedule { get; set; } /// /// The name of the resource group. @@ -195,17 +183,11 @@ public InputMap Tags set => _tags = value; } - [Input("weeklySchedule")] - private InputMap? _weeklySchedule; - /// /// Schedule for weekly snapshots /// - public InputMap WeeklySchedule - { - get => _weeklySchedule ?? (_weeklySchedule = new InputMap()); - set => _weeklySchedule = value; - } + [Input("weeklySchedule")] + public Input? WeeklySchedule { get; set; } public SnapshotPolicyArgs() { diff --git a/sdk/dotnet/NetApp/V20200601/GetsnapshotPolicy.cs b/sdk/dotnet/NetApp/V20200601/GetsnapshotPolicy.cs index d51ccd3f21d8..fafb5d8e450b 100644 --- a/sdk/dotnet/NetApp/V20200601/GetsnapshotPolicy.cs +++ b/sdk/dotnet/NetApp/V20200601/GetsnapshotPolicy.cs @@ -48,7 +48,7 @@ public sealed class GetsnapshotPolicyResult /// /// Schedule for daily snapshots /// - public readonly ImmutableDictionary? DailySchedule; + public readonly Outputs.DailyScheduleResponseResult? DailySchedule; /// /// The property to decide policy is enabled or not /// @@ -56,7 +56,7 @@ public sealed class GetsnapshotPolicyResult /// /// Schedule for hourly snapshots /// - public readonly ImmutableDictionary? HourlySchedule; + public readonly Outputs.HourlyScheduleResponseResult? HourlySchedule; /// /// Resource location /// @@ -64,12 +64,16 @@ public sealed class GetsnapshotPolicyResult /// /// Schedule for monthly snapshots /// - public readonly ImmutableDictionary? MonthlySchedule; + public readonly Outputs.MonthlyScheduleResponseResult? MonthlySchedule; /// - /// Resource name + /// Snapshot policy name /// public readonly string Name; /// + /// Azure lifecycle management + /// + public readonly string ProvisioningState; + /// /// Resource tags /// public readonly ImmutableDictionary? Tags; @@ -80,27 +84,29 @@ public sealed class GetsnapshotPolicyResult /// /// Schedule for weekly snapshots /// - public readonly ImmutableDictionary? WeeklySchedule; + public readonly Outputs.WeeklyScheduleResponseResult? WeeklySchedule; [OutputConstructor] private GetsnapshotPolicyResult( - ImmutableDictionary? dailySchedule, + Outputs.DailyScheduleResponseResult? dailySchedule, bool? enabled, - ImmutableDictionary? hourlySchedule, + Outputs.HourlyScheduleResponseResult? hourlySchedule, string location, - ImmutableDictionary? monthlySchedule, + Outputs.MonthlyScheduleResponseResult? monthlySchedule, string name, + string provisioningState, + ImmutableDictionary? tags, string type, - ImmutableDictionary? weeklySchedule) + Outputs.WeeklyScheduleResponseResult? weeklySchedule) { DailySchedule = dailySchedule; Enabled = enabled; @@ -108,6 +114,7 @@ private GetsnapshotPolicyResult( Location = location; MonthlySchedule = monthlySchedule; Name = name; + ProvisioningState = provisioningState; Tags = tags; Type = type; WeeklySchedule = weeklySchedule; diff --git a/sdk/dotnet/NetApp/V20200601/Inputs/DailyScheduleArgs.cs b/sdk/dotnet/NetApp/V20200601/Inputs/DailyScheduleArgs.cs new file mode 100644 index 000000000000..4ddf889f5e8d --- /dev/null +++ b/sdk/dotnet/NetApp/V20200601/Inputs/DailyScheduleArgs.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.NetApp.V20200601.Inputs +{ + + /// + /// Daily Schedule properties + /// + public sealed class DailyScheduleArgs : Pulumi.ResourceArgs + { + /// + /// Indicates which hour in UTC timezone a snapshot should be taken + /// + [Input("hour")] + public Input? Hour { get; set; } + + /// + /// Indicates which minute snapshot should be taken + /// + [Input("minute")] + public Input? Minute { get; set; } + + /// + /// Daily snapshot count to keep + /// + [Input("snapshotsToKeep")] + public Input? SnapshotsToKeep { get; set; } + + /// + /// Resource size in bytes, current storage usage for the volume in bytes + /// + [Input("usedBytes")] + public Input? UsedBytes { get; set; } + + public DailyScheduleArgs() + { + } + } +} diff --git a/sdk/dotnet/NetApp/V20200601/Inputs/HourlyScheduleArgs.cs b/sdk/dotnet/NetApp/V20200601/Inputs/HourlyScheduleArgs.cs new file mode 100644 index 000000000000..f46bbc90f516 --- /dev/null +++ b/sdk/dotnet/NetApp/V20200601/Inputs/HourlyScheduleArgs.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.NetApp.V20200601.Inputs +{ + + /// + /// Hourly Schedule properties + /// + public sealed class HourlyScheduleArgs : Pulumi.ResourceArgs + { + /// + /// Indicates which minute snapshot should be taken + /// + [Input("minute")] + public Input? Minute { get; set; } + + /// + /// Hourly snapshot count to keep + /// + [Input("snapshotsToKeep")] + public Input? SnapshotsToKeep { get; set; } + + /// + /// Resource size in bytes, current storage usage for the volume in bytes + /// + [Input("usedBytes")] + public Input? UsedBytes { get; set; } + + public HourlyScheduleArgs() + { + } + } +} diff --git a/sdk/dotnet/NetApp/V20200601/Inputs/MonthlyScheduleArgs.cs b/sdk/dotnet/NetApp/V20200601/Inputs/MonthlyScheduleArgs.cs new file mode 100644 index 000000000000..96e14a2317ab --- /dev/null +++ b/sdk/dotnet/NetApp/V20200601/Inputs/MonthlyScheduleArgs.cs @@ -0,0 +1,52 @@ +// *** 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.NetApp.V20200601.Inputs +{ + + /// + /// Monthly Schedule properties + /// + public sealed class MonthlyScheduleArgs : Pulumi.ResourceArgs + { + /// + /// Indicates which days of the month snapshot should be taken. A comma delimited string. + /// + [Input("daysOfMonth")] + public Input? DaysOfMonth { get; set; } + + /// + /// Indicates which hour in UTC timezone a snapshot should be taken + /// + [Input("hour")] + public Input? Hour { get; set; } + + /// + /// Indicates which minute snapshot should be taken + /// + [Input("minute")] + public Input? Minute { get; set; } + + /// + /// Monthly snapshot count to keep + /// + [Input("snapshotsToKeep")] + public Input? SnapshotsToKeep { get; set; } + + /// + /// Resource size in bytes, current storage usage for the volume in bytes + /// + [Input("usedBytes")] + public Input? UsedBytes { get; set; } + + public MonthlyScheduleArgs() + { + } + } +} diff --git a/sdk/dotnet/NetApp/V20200601/Inputs/WeeklyScheduleArgs.cs b/sdk/dotnet/NetApp/V20200601/Inputs/WeeklyScheduleArgs.cs new file mode 100644 index 000000000000..fc5d436687c5 --- /dev/null +++ b/sdk/dotnet/NetApp/V20200601/Inputs/WeeklyScheduleArgs.cs @@ -0,0 +1,52 @@ +// *** 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.NetApp.V20200601.Inputs +{ + + /// + /// Weekly Schedule properties, make a snapshot every week at a specific day or days + /// + public sealed class WeeklyScheduleArgs : Pulumi.ResourceArgs + { + /// + /// Indicates which weekdays snapshot should be taken, accepts a comma separated list of week day names in english + /// + [Input("day")] + public Input? Day { get; set; } + + /// + /// Indicates which hour in UTC timezone a snapshot should be taken + /// + [Input("hour")] + public Input? Hour { get; set; } + + /// + /// Indicates which minute snapshot should be taken + /// + [Input("minute")] + public Input? Minute { get; set; } + + /// + /// Weekly snapshot count to keep + /// + [Input("snapshotsToKeep")] + public Input? SnapshotsToKeep { get; set; } + + /// + /// Resource size in bytes, current storage usage for the volume in bytes + /// + [Input("usedBytes")] + public Input? UsedBytes { get; set; } + + public WeeklyScheduleArgs() + { + } + } +} diff --git a/sdk/dotnet/NetApp/V20200601/Outputs/DailyScheduleResponseResult.cs b/sdk/dotnet/NetApp/V20200601/Outputs/DailyScheduleResponseResult.cs new file mode 100644 index 000000000000..9cfe2d01b023 --- /dev/null +++ b/sdk/dotnet/NetApp/V20200601/Outputs/DailyScheduleResponseResult.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.NetApp.V20200601.Outputs +{ + + [OutputType] + public sealed class DailyScheduleResponseResult + { + /// + /// Indicates which hour in UTC timezone a snapshot should be taken + /// + public readonly int? Hour; + /// + /// Indicates which minute snapshot should be taken + /// + public readonly int? Minute; + /// + /// Daily snapshot count to keep + /// + public readonly int? SnapshotsToKeep; + /// + /// Resource size in bytes, current storage usage for the volume in bytes + /// + public readonly int? UsedBytes; + + [OutputConstructor] + private DailyScheduleResponseResult( + int? hour, + + int? minute, + + int? snapshotsToKeep, + + int? usedBytes) + { + Hour = hour; + Minute = minute; + SnapshotsToKeep = snapshotsToKeep; + UsedBytes = usedBytes; + } + } +} diff --git a/sdk/dotnet/NetApp/V20200601/Outputs/HourlyScheduleResponseResult.cs b/sdk/dotnet/NetApp/V20200601/Outputs/HourlyScheduleResponseResult.cs new file mode 100644 index 000000000000..15127e193fec --- /dev/null +++ b/sdk/dotnet/NetApp/V20200601/Outputs/HourlyScheduleResponseResult.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.NetApp.V20200601.Outputs +{ + + [OutputType] + public sealed class HourlyScheduleResponseResult + { + /// + /// Indicates which minute snapshot should be taken + /// + public readonly int? Minute; + /// + /// Hourly snapshot count to keep + /// + public readonly int? SnapshotsToKeep; + /// + /// Resource size in bytes, current storage usage for the volume in bytes + /// + public readonly int? UsedBytes; + + [OutputConstructor] + private HourlyScheduleResponseResult( + int? minute, + + int? snapshotsToKeep, + + int? usedBytes) + { + Minute = minute; + SnapshotsToKeep = snapshotsToKeep; + UsedBytes = usedBytes; + } + } +} diff --git a/sdk/dotnet/NetApp/V20200601/Outputs/MonthlyScheduleResponseResult.cs b/sdk/dotnet/NetApp/V20200601/Outputs/MonthlyScheduleResponseResult.cs new file mode 100644 index 000000000000..0bde6aa68ce3 --- /dev/null +++ b/sdk/dotnet/NetApp/V20200601/Outputs/MonthlyScheduleResponseResult.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.NetApp.V20200601.Outputs +{ + + [OutputType] + public sealed class MonthlyScheduleResponseResult + { + /// + /// Indicates which days of the month snapshot should be taken. A comma delimited string. + /// + public readonly string? DaysOfMonth; + /// + /// Indicates which hour in UTC timezone a snapshot should be taken + /// + public readonly int? Hour; + /// + /// Indicates which minute snapshot should be taken + /// + public readonly int? Minute; + /// + /// Monthly snapshot count to keep + /// + public readonly int? SnapshotsToKeep; + /// + /// Resource size in bytes, current storage usage for the volume in bytes + /// + public readonly int? UsedBytes; + + [OutputConstructor] + private MonthlyScheduleResponseResult( + string? daysOfMonth, + + int? hour, + + int? minute, + + int? snapshotsToKeep, + + int? usedBytes) + { + DaysOfMonth = daysOfMonth; + Hour = hour; + Minute = minute; + SnapshotsToKeep = snapshotsToKeep; + UsedBytes = usedBytes; + } + } +} diff --git a/sdk/dotnet/NetApp/V20200601/Outputs/WeeklyScheduleResponseResult.cs b/sdk/dotnet/NetApp/V20200601/Outputs/WeeklyScheduleResponseResult.cs new file mode 100644 index 000000000000..fbcfdcd1fc47 --- /dev/null +++ b/sdk/dotnet/NetApp/V20200601/Outputs/WeeklyScheduleResponseResult.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.NetApp.V20200601.Outputs +{ + + [OutputType] + public sealed class WeeklyScheduleResponseResult + { + /// + /// Indicates which weekdays snapshot should be taken, accepts a comma separated list of week day names in english + /// + public readonly string? Day; + /// + /// Indicates which hour in UTC timezone a snapshot should be taken + /// + public readonly int? Hour; + /// + /// Indicates which minute snapshot should be taken + /// + public readonly int? Minute; + /// + /// Weekly snapshot count to keep + /// + public readonly int? SnapshotsToKeep; + /// + /// Resource size in bytes, current storage usage for the volume in bytes + /// + public readonly int? UsedBytes; + + [OutputConstructor] + private WeeklyScheduleResponseResult( + string? day, + + int? hour, + + int? minute, + + int? snapshotsToKeep, + + int? usedBytes) + { + Day = day; + Hour = hour; + Minute = minute; + SnapshotsToKeep = snapshotsToKeep; + UsedBytes = usedBytes; + } + } +} diff --git a/sdk/dotnet/NetApp/V20200601/SnapshotPolicy.cs b/sdk/dotnet/NetApp/V20200601/SnapshotPolicy.cs index d453e96af473..ca5a0b9049fa 100644 --- a/sdk/dotnet/NetApp/V20200601/SnapshotPolicy.cs +++ b/sdk/dotnet/NetApp/V20200601/SnapshotPolicy.cs @@ -18,7 +18,7 @@ public partial class SnapshotPolicy : Pulumi.CustomResource /// Schedule for daily snapshots /// [Output("dailySchedule")] - public Output?> DailySchedule { get; private set; } = null!; + public Output DailySchedule { get; private set; } = null!; /// /// The property to decide policy is enabled or not @@ -30,7 +30,7 @@ public partial class SnapshotPolicy : Pulumi.CustomResource /// Schedule for hourly snapshots /// [Output("hourlySchedule")] - public Output?> HourlySchedule { get; private set; } = null!; + public Output HourlySchedule { get; private set; } = null!; /// /// Resource location @@ -42,14 +42,20 @@ public partial class SnapshotPolicy : Pulumi.CustomResource /// Schedule for monthly snapshots /// [Output("monthlySchedule")] - public Output?> MonthlySchedule { get; private set; } = null!; + public Output MonthlySchedule { get; private set; } = null!; /// - /// Resource name + /// Snapshot policy name /// [Output("name")] public Output Name { get; private set; } = null!; + /// + /// Azure lifecycle management + /// + [Output("provisioningState")] + public Output ProvisioningState { get; private set; } = null!; + /// /// Resource tags /// @@ -66,7 +72,7 @@ public partial class SnapshotPolicy : Pulumi.CustomResource /// Schedule for weekly snapshots /// [Output("weeklySchedule")] - public Output?> WeeklySchedule { get; private set; } = null!; + public Output WeeklySchedule { get; private set; } = null!; /// @@ -123,17 +129,11 @@ public sealed class SnapshotPolicyArgs : Pulumi.ResourceArgs [Input("accountName", required: true)] public Input AccountName { get; set; } = null!; - [Input("dailySchedule")] - private InputMap? _dailySchedule; - /// /// Schedule for daily snapshots /// - public InputMap DailySchedule - { - get => _dailySchedule ?? (_dailySchedule = new InputMap()); - set => _dailySchedule = value; - } + [Input("dailySchedule")] + public Input? DailySchedule { get; set; } /// /// The property to decide policy is enabled or not @@ -141,17 +141,11 @@ public InputMap DailySchedule [Input("enabled")] public Input? Enabled { get; set; } - [Input("hourlySchedule")] - private InputMap? _hourlySchedule; - /// /// Schedule for hourly snapshots /// - public InputMap HourlySchedule - { - get => _hourlySchedule ?? (_hourlySchedule = new InputMap()); - set => _hourlySchedule = value; - } + [Input("hourlySchedule")] + public Input? HourlySchedule { get; set; } /// /// Resource location @@ -159,17 +153,11 @@ public InputMap HourlySchedule [Input("location", required: true)] public Input Location { get; set; } = null!; - [Input("monthlySchedule")] - private InputMap? _monthlySchedule; - /// /// Schedule for monthly snapshots /// - public InputMap MonthlySchedule - { - get => _monthlySchedule ?? (_monthlySchedule = new InputMap()); - set => _monthlySchedule = value; - } + [Input("monthlySchedule")] + public Input? MonthlySchedule { get; set; } /// /// The name of the resource group. @@ -195,17 +183,11 @@ public InputMap Tags set => _tags = value; } - [Input("weeklySchedule")] - private InputMap? _weeklySchedule; - /// /// Schedule for weekly snapshots /// - public InputMap WeeklySchedule - { - get => _weeklySchedule ?? (_weeklySchedule = new InputMap()); - set => _weeklySchedule = value; - } + [Input("weeklySchedule")] + public Input? WeeklySchedule { get; set; } public SnapshotPolicyArgs() { diff --git a/sdk/dotnet/Sql/V20200202Preview/GetServerTrustGroup.cs b/sdk/dotnet/Sql/V20200202Preview/GetServerTrustGroup.cs new file mode 100644 index 000000000000..fd28dbdb4d2b --- /dev/null +++ b/sdk/dotnet/Sql/V20200202Preview/GetServerTrustGroup.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.Sql.V20200202Preview +{ + public static class GetServerTrustGroup + { + public static Task InvokeAsync(GetServerTrustGroupArgs args, InvokeOptions? options = null) + => Pulumi.Deployment.Instance.InvokeAsync("azurerm:sql/v20200202preview:getServerTrustGroup", args ?? new GetServerTrustGroupArgs(), options.WithVersion()); + } + + + public sealed class GetServerTrustGroupArgs : Pulumi.InvokeArgs + { + /// + /// The name of the region where the resource is located. + /// + [Input("locationName", required: true)] + public string LocationName { get; set; } = null!; + + /// + /// The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. + /// + [Input("resourceGroupName", required: true)] + public string ResourceGroupName { get; set; } = null!; + + /// + /// The name of the server trust group. + /// + [Input("serverTrustGroupName", required: true)] + public string ServerTrustGroupName { get; set; } = null!; + + public GetServerTrustGroupArgs() + { + } + } + + + [OutputType] + public sealed class GetServerTrustGroupResult + { + /// + /// Group members information for the server trust group. + /// + public readonly ImmutableArray GroupMembers; + /// + /// Resource name. + /// + public readonly string Name; + /// + /// Trust scope of the server trust group. + /// + public readonly ImmutableArray TrustScopes; + /// + /// Resource type. + /// + public readonly string Type; + + [OutputConstructor] + private GetServerTrustGroupResult( + ImmutableArray groupMembers, + + string name, + + ImmutableArray trustScopes, + + string type) + { + GroupMembers = groupMembers; + Name = name; + TrustScopes = trustScopes; + Type = type; + } + } +} diff --git a/sdk/dotnet/Sql/V20200202Preview/Inputs/ServerInfoArgs.cs b/sdk/dotnet/Sql/V20200202Preview/Inputs/ServerInfoArgs.cs new file mode 100644 index 000000000000..1ee1ec696afe --- /dev/null +++ b/sdk/dotnet/Sql/V20200202Preview/Inputs/ServerInfoArgs.cs @@ -0,0 +1,28 @@ +// *** 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.Sql.V20200202Preview.Inputs +{ + + /// + /// Server info for the server trust group. + /// + public sealed class ServerInfoArgs : Pulumi.ResourceArgs + { + /// + /// Server Id. + /// + [Input("serverId", required: true)] + public Input ServerId { get; set; } = null!; + + public ServerInfoArgs() + { + } + } +} diff --git a/sdk/dotnet/Sql/V20200202Preview/Outputs/ServerInfoResponseResult.cs b/sdk/dotnet/Sql/V20200202Preview/Outputs/ServerInfoResponseResult.cs new file mode 100644 index 000000000000..50c057d3f756 --- /dev/null +++ b/sdk/dotnet/Sql/V20200202Preview/Outputs/ServerInfoResponseResult.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.Sql.V20200202Preview.Outputs +{ + + [OutputType] + public sealed class ServerInfoResponseResult + { + /// + /// Server Id. + /// + public readonly string ServerId; + + [OutputConstructor] + private ServerInfoResponseResult(string serverId) + { + ServerId = serverId; + } + } +} diff --git a/sdk/dotnet/Sql/V20200202Preview/ServerTrustGroup.cs b/sdk/dotnet/Sql/V20200202Preview/ServerTrustGroup.cs new file mode 100644 index 000000000000..93c2da8c2534 --- /dev/null +++ b/sdk/dotnet/Sql/V20200202Preview/ServerTrustGroup.cs @@ -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! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AzureRM.Sql.V20200202Preview +{ + /// + /// A server trust group. + /// + public partial class ServerTrustGroup : Pulumi.CustomResource + { + /// + /// Group members information for the server trust group. + /// + [Output("groupMembers")] + public Output> GroupMembers { get; private set; } = null!; + + /// + /// Resource name. + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + /// + /// Trust scope of the server trust group. + /// + [Output("trustScopes")] + public Output> TrustScopes { get; private set; } = null!; + + /// + /// Resource type. + /// + [Output("type")] + public Output Type { get; private set; } = null!; + + + /// + /// Create a ServerTrustGroup 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 ServerTrustGroup(string name, ServerTrustGroupArgs args, CustomResourceOptions? options = null) + : base("azurerm:sql/v20200202preview:ServerTrustGroup", name, args ?? new ServerTrustGroupArgs(), MakeResourceOptions(options, "")) + { + } + + private ServerTrustGroup(string name, Input id, CustomResourceOptions? options = null) + : base("azurerm:sql/v20200202preview:ServerTrustGroup", 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 ServerTrustGroup 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 ServerTrustGroup Get(string name, Input id, CustomResourceOptions? options = null) + { + return new ServerTrustGroup(name, id, options); + } + } + + public sealed class ServerTrustGroupArgs : Pulumi.ResourceArgs + { + [Input("groupMembers", required: true)] + private InputList? _groupMembers; + + /// + /// Group members information for the server trust group. + /// + public InputList GroupMembers + { + get => _groupMembers ?? (_groupMembers = new InputList()); + set => _groupMembers = value; + } + + /// + /// The name of the region where the resource is located. + /// + [Input("locationName", required: true)] + public Input LocationName { get; set; } = null!; + + /// + /// The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. + /// + [Input("resourceGroupName", required: true)] + public Input ResourceGroupName { get; set; } = null!; + + /// + /// The name of the server trust group. + /// + [Input("serverTrustGroupName", required: true)] + public Input ServerTrustGroupName { get; set; } = null!; + + [Input("trustScopes", required: true)] + private InputList? _trustScopes; + + /// + /// Trust scope of the server trust group. + /// + public InputList TrustScopes + { + get => _trustScopes ?? (_trustScopes = new InputList()); + set => _trustScopes = value; + } + + public ServerTrustGroupArgs() + { + } + } +} diff --git a/sdk/go/azurerm/digitaltwins/latest/digitalTwin.go b/sdk/go/azurerm/digitaltwins/latest/digitalTwin.go new file mode 100644 index 000000000000..dc9adac87511 --- /dev/null +++ b/sdk/go/azurerm/digitaltwins/latest/digitalTwin.go @@ -0,0 +1,147 @@ +// *** 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 description of the DigitalTwins service. +type DigitalTwin struct { + pulumi.CustomResourceState + + // Time when DigitalTwinsInstance was created. + CreatedTime pulumi.StringOutput `pulumi:"createdTime"` + // Api endpoint to work with DigitalTwinsInstance. + HostName pulumi.StringOutput `pulumi:"hostName"` + // Time when DigitalTwinsInstance was updated. + LastUpdatedTime pulumi.StringOutput `pulumi:"lastUpdatedTime"` + // The resource location. + Location pulumi.StringOutput `pulumi:"location"` + // The resource name. + Name pulumi.StringOutput `pulumi:"name"` + // The provisioning state. + ProvisioningState pulumi.StringOutput `pulumi:"provisioningState"` + // The resource tags. + Tags pulumi.StringMapOutput `pulumi:"tags"` + // The resource type. + Type pulumi.StringOutput `pulumi:"type"` +} + +// NewDigitalTwin registers a new resource with the given unique name, arguments, and options. +func NewDigitalTwin(ctx *pulumi.Context, + name string, args *DigitalTwinArgs, opts ...pulumi.ResourceOption) (*DigitalTwin, error) { + 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.ResourceName == nil { + return nil, errors.New("missing required argument 'ResourceName'") + } + if args == nil { + args = &DigitalTwinArgs{} + } + aliases := pulumi.Aliases([]pulumi.Alias{ + { + Type: pulumi.String("azurerm:digitaltwins/v20200301preview:DigitalTwin"), + }, + { + Type: pulumi.String("azurerm:digitaltwins/v20201031:DigitalTwin"), + }, + }) + opts = append(opts, aliases) + var resource DigitalTwin + err := ctx.RegisterResource("azurerm:digitaltwins/latest:DigitalTwin", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetDigitalTwin gets an existing DigitalTwin 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 GetDigitalTwin(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *DigitalTwinState, opts ...pulumi.ResourceOption) (*DigitalTwin, error) { + var resource DigitalTwin + err := ctx.ReadResource("azurerm:digitaltwins/latest:DigitalTwin", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering DigitalTwin resources. +type digitalTwinState struct { + // Time when DigitalTwinsInstance was created. + CreatedTime *string `pulumi:"createdTime"` + // Api endpoint to work with DigitalTwinsInstance. + HostName *string `pulumi:"hostName"` + // Time when DigitalTwinsInstance was updated. + LastUpdatedTime *string `pulumi:"lastUpdatedTime"` + // The resource location. + Location *string `pulumi:"location"` + // The resource name. + Name *string `pulumi:"name"` + // The provisioning state. + ProvisioningState *string `pulumi:"provisioningState"` + // The resource tags. + Tags map[string]string `pulumi:"tags"` + // The resource type. + Type *string `pulumi:"type"` +} + +type DigitalTwinState struct { + // Time when DigitalTwinsInstance was created. + CreatedTime pulumi.StringPtrInput + // Api endpoint to work with DigitalTwinsInstance. + HostName pulumi.StringPtrInput + // Time when DigitalTwinsInstance was updated. + LastUpdatedTime pulumi.StringPtrInput + // The resource location. + Location pulumi.StringPtrInput + // The resource name. + Name pulumi.StringPtrInput + // The provisioning state. + ProvisioningState pulumi.StringPtrInput + // The resource tags. + Tags pulumi.StringMapInput + // The resource type. + Type pulumi.StringPtrInput +} + +func (DigitalTwinState) ElementType() reflect.Type { + return reflect.TypeOf((*digitalTwinState)(nil)).Elem() +} + +type digitalTwinArgs struct { + // The resource location. + Location string `pulumi:"location"` + // The name of the resource group that contains the DigitalTwinsInstance. + ResourceGroupName string `pulumi:"resourceGroupName"` + // The name of the DigitalTwinsInstance. + ResourceName string `pulumi:"resourceName"` + // The resource tags. + Tags map[string]string `pulumi:"tags"` +} + +// The set of arguments for constructing a DigitalTwin resource. +type DigitalTwinArgs struct { + // The resource location. + Location pulumi.StringInput + // The name of the resource group that contains the DigitalTwinsInstance. + ResourceGroupName pulumi.StringInput + // The name of the DigitalTwinsInstance. + ResourceName pulumi.StringInput + // The resource tags. + Tags pulumi.StringMapInput +} + +func (DigitalTwinArgs) ElementType() reflect.Type { + return reflect.TypeOf((*digitalTwinArgs)(nil)).Elem() +} diff --git a/sdk/go/azurerm/digitaltwins/latest/digitalTwinsEndpoint.go b/sdk/go/azurerm/digitaltwins/latest/digitalTwinsEndpoint.go new file mode 100644 index 000000000000..f1b824338939 --- /dev/null +++ b/sdk/go/azurerm/digitaltwins/latest/digitalTwinsEndpoint.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" +) + +// DigitalTwinsInstance endpoint resource. +type DigitalTwinsEndpoint struct { + pulumi.CustomResourceState + + // Extension resource name. + Name pulumi.StringOutput `pulumi:"name"` + // DigitalTwinsInstance endpoint resource properties. + Properties pulumi.AnyOutput `pulumi:"properties"` + // The resource type. + Type pulumi.StringOutput `pulumi:"type"` +} + +// NewDigitalTwinsEndpoint registers a new resource with the given unique name, arguments, and options. +func NewDigitalTwinsEndpoint(ctx *pulumi.Context, + name string, args *DigitalTwinsEndpointArgs, opts ...pulumi.ResourceOption) (*DigitalTwinsEndpoint, error) { + if args == nil || args.EndpointName == nil { + return nil, errors.New("missing required argument 'EndpointName'") + } + 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 = &DigitalTwinsEndpointArgs{} + } + aliases := pulumi.Aliases([]pulumi.Alias{ + { + Type: pulumi.String("azurerm:digitaltwins/v20200301preview:DigitalTwinsEndpoint"), + }, + { + Type: pulumi.String("azurerm:digitaltwins/v20201031:DigitalTwinsEndpoint"), + }, + }) + opts = append(opts, aliases) + var resource DigitalTwinsEndpoint + err := ctx.RegisterResource("azurerm:digitaltwins/latest:DigitalTwinsEndpoint", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetDigitalTwinsEndpoint gets an existing DigitalTwinsEndpoint 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 GetDigitalTwinsEndpoint(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *DigitalTwinsEndpointState, opts ...pulumi.ResourceOption) (*DigitalTwinsEndpoint, error) { + var resource DigitalTwinsEndpoint + err := ctx.ReadResource("azurerm:digitaltwins/latest:DigitalTwinsEndpoint", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering DigitalTwinsEndpoint resources. +type digitalTwinsEndpointState struct { + // Extension resource name. + Name *string `pulumi:"name"` + // DigitalTwinsInstance endpoint resource properties. + Properties interface{} `pulumi:"properties"` + // The resource type. + Type *string `pulumi:"type"` +} + +type DigitalTwinsEndpointState struct { + // Extension resource name. + Name pulumi.StringPtrInput + // DigitalTwinsInstance endpoint resource properties. + Properties pulumi.Input + // The resource type. + Type pulumi.StringPtrInput +} + +func (DigitalTwinsEndpointState) ElementType() reflect.Type { + return reflect.TypeOf((*digitalTwinsEndpointState)(nil)).Elem() +} + +type digitalTwinsEndpointArgs struct { + // Name of Endpoint Resource. + EndpointName string `pulumi:"endpointName"` + // DigitalTwinsInstance endpoint resource properties. + Properties interface{} `pulumi:"properties"` + // The name of the resource group that contains the DigitalTwinsInstance. + ResourceGroupName string `pulumi:"resourceGroupName"` + // The name of the DigitalTwinsInstance. + ResourceName string `pulumi:"resourceName"` +} + +// The set of arguments for constructing a DigitalTwinsEndpoint resource. +type DigitalTwinsEndpointArgs struct { + // Name of Endpoint Resource. + EndpointName pulumi.StringInput + // DigitalTwinsInstance endpoint resource properties. + Properties pulumi.Input + // The name of the resource group that contains the DigitalTwinsInstance. + ResourceGroupName pulumi.StringInput + // The name of the DigitalTwinsInstance. + ResourceName pulumi.StringInput +} + +func (DigitalTwinsEndpointArgs) ElementType() reflect.Type { + return reflect.TypeOf((*digitalTwinsEndpointArgs)(nil)).Elem() +} diff --git a/sdk/go/azurerm/digitaltwins/latest/getDigitalTwin.go b/sdk/go/azurerm/digitaltwins/latest/getDigitalTwin.go new file mode 100644 index 000000000000..fcf8d26b1c1b --- /dev/null +++ b/sdk/go/azurerm/digitaltwins/latest/getDigitalTwin.go @@ -0,0 +1,44 @@ +// *** 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 LookupDigitalTwin(ctx *pulumi.Context, args *LookupDigitalTwinArgs, opts ...pulumi.InvokeOption) (*LookupDigitalTwinResult, error) { + var rv LookupDigitalTwinResult + err := ctx.Invoke("azurerm:digitaltwins/latest:getDigitalTwin", args, &rv, opts...) + if err != nil { + return nil, err + } + return &rv, nil +} + +type LookupDigitalTwinArgs struct { + // The name of the resource group that contains the DigitalTwinsInstance. + ResourceGroupName string `pulumi:"resourceGroupName"` + // The name of the DigitalTwinsInstance. + ResourceName string `pulumi:"resourceName"` +} + +// The description of the DigitalTwins service. +type LookupDigitalTwinResult struct { + // Time when DigitalTwinsInstance was created. + CreatedTime string `pulumi:"createdTime"` + // Api endpoint to work with DigitalTwinsInstance. + HostName string `pulumi:"hostName"` + // Time when DigitalTwinsInstance was updated. + LastUpdatedTime string `pulumi:"lastUpdatedTime"` + // The resource location. + Location string `pulumi:"location"` + // The resource name. + Name string `pulumi:"name"` + // The provisioning state. + ProvisioningState string `pulumi:"provisioningState"` + // The resource tags. + Tags map[string]string `pulumi:"tags"` + // The resource type. + Type string `pulumi:"type"` +} diff --git a/sdk/go/azurerm/digitaltwins/latest/getDigitalTwinsEndpoint.go b/sdk/go/azurerm/digitaltwins/latest/getDigitalTwinsEndpoint.go new file mode 100644 index 000000000000..7e1d4cabe593 --- /dev/null +++ b/sdk/go/azurerm/digitaltwins/latest/getDigitalTwinsEndpoint.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 LookupDigitalTwinsEndpoint(ctx *pulumi.Context, args *LookupDigitalTwinsEndpointArgs, opts ...pulumi.InvokeOption) (*LookupDigitalTwinsEndpointResult, error) { + var rv LookupDigitalTwinsEndpointResult + err := ctx.Invoke("azurerm:digitaltwins/latest:getDigitalTwinsEndpoint", args, &rv, opts...) + if err != nil { + return nil, err + } + return &rv, nil +} + +type LookupDigitalTwinsEndpointArgs struct { + // Name of Endpoint Resource. + EndpointName string `pulumi:"endpointName"` + // The name of the resource group that contains the DigitalTwinsInstance. + ResourceGroupName string `pulumi:"resourceGroupName"` + // The name of the DigitalTwinsInstance. + ResourceName string `pulumi:"resourceName"` +} + +// DigitalTwinsInstance endpoint resource. +type LookupDigitalTwinsEndpointResult struct { + // Extension resource name. + Name string `pulumi:"name"` + // DigitalTwinsInstance endpoint resource properties. + Properties interface{} `pulumi:"properties"` + // The resource type. + Type string `pulumi:"type"` +} diff --git a/sdk/go/azurerm/digitaltwins/latest/pulumiTypes.go b/sdk/go/azurerm/digitaltwins/latest/pulumiTypes.go new file mode 100644 index 000000000000..55956549a810 --- /dev/null +++ b/sdk/go/azurerm/digitaltwins/latest/pulumiTypes.go @@ -0,0 +1,584 @@ +// *** 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 ( + "context" + "reflect" + + "github.com/pulumi/pulumi/sdk/v2/go/pulumi" +) + +// Properties related to EventGrid. +type EventGrid struct { + // EventGrid secondary accesskey. Will be obfuscated during read. + AccessKey1 string `pulumi:"accessKey1"` + // EventGrid secondary accesskey. Will be obfuscated during read. + AccessKey2 *string `pulumi:"accessKey2"` + // Dead letter storage secret. Will be obfuscated during read. + DeadLetterSecret *string `pulumi:"deadLetterSecret"` + // The type of Digital Twins endpoint + EndpointType string `pulumi:"endpointType"` + // EventGrid Topic Endpoint + TopicEndpoint string `pulumi:"topicEndpoint"` +} + +// EventGridInput is an input type that accepts EventGridArgs and EventGridOutput values. +// You can construct a concrete instance of `EventGridInput` via: +// +// EventGridArgs{...} +type EventGridInput interface { + pulumi.Input + + ToEventGridOutput() EventGridOutput + ToEventGridOutputWithContext(context.Context) EventGridOutput +} + +// Properties related to EventGrid. +type EventGridArgs struct { + // EventGrid secondary accesskey. Will be obfuscated during read. + AccessKey1 pulumi.StringInput `pulumi:"accessKey1"` + // EventGrid secondary accesskey. Will be obfuscated during read. + AccessKey2 pulumi.StringPtrInput `pulumi:"accessKey2"` + // Dead letter storage secret. Will be obfuscated during read. + DeadLetterSecret pulumi.StringPtrInput `pulumi:"deadLetterSecret"` + // The type of Digital Twins endpoint + EndpointType pulumi.StringInput `pulumi:"endpointType"` + // EventGrid Topic Endpoint + TopicEndpoint pulumi.StringInput `pulumi:"topicEndpoint"` +} + +func (EventGridArgs) ElementType() reflect.Type { + return reflect.TypeOf((*EventGrid)(nil)).Elem() +} + +func (i EventGridArgs) ToEventGridOutput() EventGridOutput { + return i.ToEventGridOutputWithContext(context.Background()) +} + +func (i EventGridArgs) ToEventGridOutputWithContext(ctx context.Context) EventGridOutput { + return pulumi.ToOutputWithContext(ctx, i).(EventGridOutput) +} + +// Properties related to EventGrid. +type EventGridOutput struct{ *pulumi.OutputState } + +func (EventGridOutput) ElementType() reflect.Type { + return reflect.TypeOf((*EventGrid)(nil)).Elem() +} + +func (o EventGridOutput) ToEventGridOutput() EventGridOutput { + return o +} + +func (o EventGridOutput) ToEventGridOutputWithContext(ctx context.Context) EventGridOutput { + return o +} + +// EventGrid secondary accesskey. Will be obfuscated during read. +func (o EventGridOutput) AccessKey1() pulumi.StringOutput { + return o.ApplyT(func(v EventGrid) string { return v.AccessKey1 }).(pulumi.StringOutput) +} + +// EventGrid secondary accesskey. Will be obfuscated during read. +func (o EventGridOutput) AccessKey2() pulumi.StringPtrOutput { + return o.ApplyT(func(v EventGrid) *string { return v.AccessKey2 }).(pulumi.StringPtrOutput) +} + +// Dead letter storage secret. Will be obfuscated during read. +func (o EventGridOutput) DeadLetterSecret() pulumi.StringPtrOutput { + return o.ApplyT(func(v EventGrid) *string { return v.DeadLetterSecret }).(pulumi.StringPtrOutput) +} + +// The type of Digital Twins endpoint +func (o EventGridOutput) EndpointType() pulumi.StringOutput { + return o.ApplyT(func(v EventGrid) string { return v.EndpointType }).(pulumi.StringOutput) +} + +// EventGrid Topic Endpoint +func (o EventGridOutput) TopicEndpoint() pulumi.StringOutput { + return o.ApplyT(func(v EventGrid) string { return v.TopicEndpoint }).(pulumi.StringOutput) +} + +// Properties related to EventGrid. +type EventGridResponse struct { + // EventGrid secondary accesskey. Will be obfuscated during read. + AccessKey1 string `pulumi:"accessKey1"` + // EventGrid secondary accesskey. Will be obfuscated during read. + AccessKey2 *string `pulumi:"accessKey2"` + // Time when the Endpoint was added to DigitalTwinsInstance. + CreatedTime string `pulumi:"createdTime"` + // Dead letter storage secret. Will be obfuscated during read. + DeadLetterSecret *string `pulumi:"deadLetterSecret"` + // The type of Digital Twins endpoint + EndpointType string `pulumi:"endpointType"` + // The provisioning state. + ProvisioningState string `pulumi:"provisioningState"` + // EventGrid Topic Endpoint + TopicEndpoint string `pulumi:"topicEndpoint"` +} + +// EventGridResponseInput is an input type that accepts EventGridResponseArgs and EventGridResponseOutput values. +// You can construct a concrete instance of `EventGridResponseInput` via: +// +// EventGridResponseArgs{...} +type EventGridResponseInput interface { + pulumi.Input + + ToEventGridResponseOutput() EventGridResponseOutput + ToEventGridResponseOutputWithContext(context.Context) EventGridResponseOutput +} + +// Properties related to EventGrid. +type EventGridResponseArgs struct { + // EventGrid secondary accesskey. Will be obfuscated during read. + AccessKey1 pulumi.StringInput `pulumi:"accessKey1"` + // EventGrid secondary accesskey. Will be obfuscated during read. + AccessKey2 pulumi.StringPtrInput `pulumi:"accessKey2"` + // Time when the Endpoint was added to DigitalTwinsInstance. + CreatedTime pulumi.StringInput `pulumi:"createdTime"` + // Dead letter storage secret. Will be obfuscated during read. + DeadLetterSecret pulumi.StringPtrInput `pulumi:"deadLetterSecret"` + // The type of Digital Twins endpoint + EndpointType pulumi.StringInput `pulumi:"endpointType"` + // The provisioning state. + ProvisioningState pulumi.StringInput `pulumi:"provisioningState"` + // EventGrid Topic Endpoint + TopicEndpoint pulumi.StringInput `pulumi:"topicEndpoint"` +} + +func (EventGridResponseArgs) ElementType() reflect.Type { + return reflect.TypeOf((*EventGridResponse)(nil)).Elem() +} + +func (i EventGridResponseArgs) ToEventGridResponseOutput() EventGridResponseOutput { + return i.ToEventGridResponseOutputWithContext(context.Background()) +} + +func (i EventGridResponseArgs) ToEventGridResponseOutputWithContext(ctx context.Context) EventGridResponseOutput { + return pulumi.ToOutputWithContext(ctx, i).(EventGridResponseOutput) +} + +// Properties related to EventGrid. +type EventGridResponseOutput struct{ *pulumi.OutputState } + +func (EventGridResponseOutput) ElementType() reflect.Type { + return reflect.TypeOf((*EventGridResponse)(nil)).Elem() +} + +func (o EventGridResponseOutput) ToEventGridResponseOutput() EventGridResponseOutput { + return o +} + +func (o EventGridResponseOutput) ToEventGridResponseOutputWithContext(ctx context.Context) EventGridResponseOutput { + return o +} + +// EventGrid secondary accesskey. Will be obfuscated during read. +func (o EventGridResponseOutput) AccessKey1() pulumi.StringOutput { + return o.ApplyT(func(v EventGridResponse) string { return v.AccessKey1 }).(pulumi.StringOutput) +} + +// EventGrid secondary accesskey. Will be obfuscated during read. +func (o EventGridResponseOutput) AccessKey2() pulumi.StringPtrOutput { + return o.ApplyT(func(v EventGridResponse) *string { return v.AccessKey2 }).(pulumi.StringPtrOutput) +} + +// Time when the Endpoint was added to DigitalTwinsInstance. +func (o EventGridResponseOutput) CreatedTime() pulumi.StringOutput { + return o.ApplyT(func(v EventGridResponse) string { return v.CreatedTime }).(pulumi.StringOutput) +} + +// Dead letter storage secret. Will be obfuscated during read. +func (o EventGridResponseOutput) DeadLetterSecret() pulumi.StringPtrOutput { + return o.ApplyT(func(v EventGridResponse) *string { return v.DeadLetterSecret }).(pulumi.StringPtrOutput) +} + +// The type of Digital Twins endpoint +func (o EventGridResponseOutput) EndpointType() pulumi.StringOutput { + return o.ApplyT(func(v EventGridResponse) string { return v.EndpointType }).(pulumi.StringOutput) +} + +// The provisioning state. +func (o EventGridResponseOutput) ProvisioningState() pulumi.StringOutput { + return o.ApplyT(func(v EventGridResponse) string { return v.ProvisioningState }).(pulumi.StringOutput) +} + +// EventGrid Topic Endpoint +func (o EventGridResponseOutput) TopicEndpoint() pulumi.StringOutput { + return o.ApplyT(func(v EventGridResponse) string { return v.TopicEndpoint }).(pulumi.StringOutput) +} + +// Properties related to EventHub. +type EventHub struct { + // PrimaryConnectionString of the endpoint. Will be obfuscated during read. + ConnectionStringPrimaryKey string `pulumi:"connectionStringPrimaryKey"` + // SecondaryConnectionString of the endpoint. Will be obfuscated during read. + ConnectionStringSecondaryKey *string `pulumi:"connectionStringSecondaryKey"` + // Dead letter storage secret. Will be obfuscated during read. + DeadLetterSecret *string `pulumi:"deadLetterSecret"` + // The type of Digital Twins endpoint + EndpointType string `pulumi:"endpointType"` +} + +// EventHubInput is an input type that accepts EventHubArgs and EventHubOutput values. +// You can construct a concrete instance of `EventHubInput` via: +// +// EventHubArgs{...} +type EventHubInput interface { + pulumi.Input + + ToEventHubOutput() EventHubOutput + ToEventHubOutputWithContext(context.Context) EventHubOutput +} + +// Properties related to EventHub. +type EventHubArgs struct { + // PrimaryConnectionString of the endpoint. Will be obfuscated during read. + ConnectionStringPrimaryKey pulumi.StringInput `pulumi:"connectionStringPrimaryKey"` + // SecondaryConnectionString of the endpoint. Will be obfuscated during read. + ConnectionStringSecondaryKey pulumi.StringPtrInput `pulumi:"connectionStringSecondaryKey"` + // Dead letter storage secret. Will be obfuscated during read. + DeadLetterSecret pulumi.StringPtrInput `pulumi:"deadLetterSecret"` + // The type of Digital Twins endpoint + EndpointType pulumi.StringInput `pulumi:"endpointType"` +} + +func (EventHubArgs) ElementType() reflect.Type { + return reflect.TypeOf((*EventHub)(nil)).Elem() +} + +func (i EventHubArgs) ToEventHubOutput() EventHubOutput { + return i.ToEventHubOutputWithContext(context.Background()) +} + +func (i EventHubArgs) ToEventHubOutputWithContext(ctx context.Context) EventHubOutput { + return pulumi.ToOutputWithContext(ctx, i).(EventHubOutput) +} + +// Properties related to EventHub. +type EventHubOutput struct{ *pulumi.OutputState } + +func (EventHubOutput) ElementType() reflect.Type { + return reflect.TypeOf((*EventHub)(nil)).Elem() +} + +func (o EventHubOutput) ToEventHubOutput() EventHubOutput { + return o +} + +func (o EventHubOutput) ToEventHubOutputWithContext(ctx context.Context) EventHubOutput { + return o +} + +// PrimaryConnectionString of the endpoint. Will be obfuscated during read. +func (o EventHubOutput) ConnectionStringPrimaryKey() pulumi.StringOutput { + return o.ApplyT(func(v EventHub) string { return v.ConnectionStringPrimaryKey }).(pulumi.StringOutput) +} + +// SecondaryConnectionString of the endpoint. Will be obfuscated during read. +func (o EventHubOutput) ConnectionStringSecondaryKey() pulumi.StringPtrOutput { + return o.ApplyT(func(v EventHub) *string { return v.ConnectionStringSecondaryKey }).(pulumi.StringPtrOutput) +} + +// Dead letter storage secret. Will be obfuscated during read. +func (o EventHubOutput) DeadLetterSecret() pulumi.StringPtrOutput { + return o.ApplyT(func(v EventHub) *string { return v.DeadLetterSecret }).(pulumi.StringPtrOutput) +} + +// The type of Digital Twins endpoint +func (o EventHubOutput) EndpointType() pulumi.StringOutput { + return o.ApplyT(func(v EventHub) string { return v.EndpointType }).(pulumi.StringOutput) +} + +// Properties related to EventHub. +type EventHubResponse struct { + // PrimaryConnectionString of the endpoint. Will be obfuscated during read. + ConnectionStringPrimaryKey string `pulumi:"connectionStringPrimaryKey"` + // SecondaryConnectionString of the endpoint. Will be obfuscated during read. + ConnectionStringSecondaryKey *string `pulumi:"connectionStringSecondaryKey"` + // Time when the Endpoint was added to DigitalTwinsInstance. + CreatedTime string `pulumi:"createdTime"` + // Dead letter storage secret. Will be obfuscated during read. + DeadLetterSecret *string `pulumi:"deadLetterSecret"` + // The type of Digital Twins endpoint + EndpointType string `pulumi:"endpointType"` + // The provisioning state. + ProvisioningState string `pulumi:"provisioningState"` +} + +// EventHubResponseInput is an input type that accepts EventHubResponseArgs and EventHubResponseOutput values. +// You can construct a concrete instance of `EventHubResponseInput` via: +// +// EventHubResponseArgs{...} +type EventHubResponseInput interface { + pulumi.Input + + ToEventHubResponseOutput() EventHubResponseOutput + ToEventHubResponseOutputWithContext(context.Context) EventHubResponseOutput +} + +// Properties related to EventHub. +type EventHubResponseArgs struct { + // PrimaryConnectionString of the endpoint. Will be obfuscated during read. + ConnectionStringPrimaryKey pulumi.StringInput `pulumi:"connectionStringPrimaryKey"` + // SecondaryConnectionString of the endpoint. Will be obfuscated during read. + ConnectionStringSecondaryKey pulumi.StringPtrInput `pulumi:"connectionStringSecondaryKey"` + // Time when the Endpoint was added to DigitalTwinsInstance. + CreatedTime pulumi.StringInput `pulumi:"createdTime"` + // Dead letter storage secret. Will be obfuscated during read. + DeadLetterSecret pulumi.StringPtrInput `pulumi:"deadLetterSecret"` + // The type of Digital Twins endpoint + EndpointType pulumi.StringInput `pulumi:"endpointType"` + // The provisioning state. + ProvisioningState pulumi.StringInput `pulumi:"provisioningState"` +} + +func (EventHubResponseArgs) ElementType() reflect.Type { + return reflect.TypeOf((*EventHubResponse)(nil)).Elem() +} + +func (i EventHubResponseArgs) ToEventHubResponseOutput() EventHubResponseOutput { + return i.ToEventHubResponseOutputWithContext(context.Background()) +} + +func (i EventHubResponseArgs) ToEventHubResponseOutputWithContext(ctx context.Context) EventHubResponseOutput { + return pulumi.ToOutputWithContext(ctx, i).(EventHubResponseOutput) +} + +// Properties related to EventHub. +type EventHubResponseOutput struct{ *pulumi.OutputState } + +func (EventHubResponseOutput) ElementType() reflect.Type { + return reflect.TypeOf((*EventHubResponse)(nil)).Elem() +} + +func (o EventHubResponseOutput) ToEventHubResponseOutput() EventHubResponseOutput { + return o +} + +func (o EventHubResponseOutput) ToEventHubResponseOutputWithContext(ctx context.Context) EventHubResponseOutput { + return o +} + +// PrimaryConnectionString of the endpoint. Will be obfuscated during read. +func (o EventHubResponseOutput) ConnectionStringPrimaryKey() pulumi.StringOutput { + return o.ApplyT(func(v EventHubResponse) string { return v.ConnectionStringPrimaryKey }).(pulumi.StringOutput) +} + +// SecondaryConnectionString of the endpoint. Will be obfuscated during read. +func (o EventHubResponseOutput) ConnectionStringSecondaryKey() pulumi.StringPtrOutput { + return o.ApplyT(func(v EventHubResponse) *string { return v.ConnectionStringSecondaryKey }).(pulumi.StringPtrOutput) +} + +// Time when the Endpoint was added to DigitalTwinsInstance. +func (o EventHubResponseOutput) CreatedTime() pulumi.StringOutput { + return o.ApplyT(func(v EventHubResponse) string { return v.CreatedTime }).(pulumi.StringOutput) +} + +// Dead letter storage secret. Will be obfuscated during read. +func (o EventHubResponseOutput) DeadLetterSecret() pulumi.StringPtrOutput { + return o.ApplyT(func(v EventHubResponse) *string { return v.DeadLetterSecret }).(pulumi.StringPtrOutput) +} + +// The type of Digital Twins endpoint +func (o EventHubResponseOutput) EndpointType() pulumi.StringOutput { + return o.ApplyT(func(v EventHubResponse) string { return v.EndpointType }).(pulumi.StringOutput) +} + +// The provisioning state. +func (o EventHubResponseOutput) ProvisioningState() pulumi.StringOutput { + return o.ApplyT(func(v EventHubResponse) string { return v.ProvisioningState }).(pulumi.StringOutput) +} + +// Properties related to ServiceBus. +type ServiceBus struct { + // Dead letter storage secret. Will be obfuscated during read. + DeadLetterSecret *string `pulumi:"deadLetterSecret"` + // The type of Digital Twins endpoint + EndpointType string `pulumi:"endpointType"` + // PrimaryConnectionString of the endpoint. Will be obfuscated during read. + PrimaryConnectionString string `pulumi:"primaryConnectionString"` + // SecondaryConnectionString of the endpoint. Will be obfuscated during read. + SecondaryConnectionString *string `pulumi:"secondaryConnectionString"` +} + +// ServiceBusInput is an input type that accepts ServiceBusArgs and ServiceBusOutput values. +// You can construct a concrete instance of `ServiceBusInput` via: +// +// ServiceBusArgs{...} +type ServiceBusInput interface { + pulumi.Input + + ToServiceBusOutput() ServiceBusOutput + ToServiceBusOutputWithContext(context.Context) ServiceBusOutput +} + +// Properties related to ServiceBus. +type ServiceBusArgs struct { + // Dead letter storage secret. Will be obfuscated during read. + DeadLetterSecret pulumi.StringPtrInput `pulumi:"deadLetterSecret"` + // The type of Digital Twins endpoint + EndpointType pulumi.StringInput `pulumi:"endpointType"` + // PrimaryConnectionString of the endpoint. Will be obfuscated during read. + PrimaryConnectionString pulumi.StringInput `pulumi:"primaryConnectionString"` + // SecondaryConnectionString of the endpoint. Will be obfuscated during read. + SecondaryConnectionString pulumi.StringPtrInput `pulumi:"secondaryConnectionString"` +} + +func (ServiceBusArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ServiceBus)(nil)).Elem() +} + +func (i ServiceBusArgs) ToServiceBusOutput() ServiceBusOutput { + return i.ToServiceBusOutputWithContext(context.Background()) +} + +func (i ServiceBusArgs) ToServiceBusOutputWithContext(ctx context.Context) ServiceBusOutput { + return pulumi.ToOutputWithContext(ctx, i).(ServiceBusOutput) +} + +// Properties related to ServiceBus. +type ServiceBusOutput struct{ *pulumi.OutputState } + +func (ServiceBusOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ServiceBus)(nil)).Elem() +} + +func (o ServiceBusOutput) ToServiceBusOutput() ServiceBusOutput { + return o +} + +func (o ServiceBusOutput) ToServiceBusOutputWithContext(ctx context.Context) ServiceBusOutput { + return o +} + +// Dead letter storage secret. Will be obfuscated during read. +func (o ServiceBusOutput) DeadLetterSecret() pulumi.StringPtrOutput { + return o.ApplyT(func(v ServiceBus) *string { return v.DeadLetterSecret }).(pulumi.StringPtrOutput) +} + +// The type of Digital Twins endpoint +func (o ServiceBusOutput) EndpointType() pulumi.StringOutput { + return o.ApplyT(func(v ServiceBus) string { return v.EndpointType }).(pulumi.StringOutput) +} + +// PrimaryConnectionString of the endpoint. Will be obfuscated during read. +func (o ServiceBusOutput) PrimaryConnectionString() pulumi.StringOutput { + return o.ApplyT(func(v ServiceBus) string { return v.PrimaryConnectionString }).(pulumi.StringOutput) +} + +// SecondaryConnectionString of the endpoint. Will be obfuscated during read. +func (o ServiceBusOutput) SecondaryConnectionString() pulumi.StringPtrOutput { + return o.ApplyT(func(v ServiceBus) *string { return v.SecondaryConnectionString }).(pulumi.StringPtrOutput) +} + +// Properties related to ServiceBus. +type ServiceBusResponse struct { + // Time when the Endpoint was added to DigitalTwinsInstance. + CreatedTime string `pulumi:"createdTime"` + // Dead letter storage secret. Will be obfuscated during read. + DeadLetterSecret *string `pulumi:"deadLetterSecret"` + // The type of Digital Twins endpoint + EndpointType string `pulumi:"endpointType"` + // PrimaryConnectionString of the endpoint. Will be obfuscated during read. + PrimaryConnectionString string `pulumi:"primaryConnectionString"` + // The provisioning state. + ProvisioningState string `pulumi:"provisioningState"` + // SecondaryConnectionString of the endpoint. Will be obfuscated during read. + SecondaryConnectionString *string `pulumi:"secondaryConnectionString"` +} + +// ServiceBusResponseInput is an input type that accepts ServiceBusResponseArgs and ServiceBusResponseOutput values. +// You can construct a concrete instance of `ServiceBusResponseInput` via: +// +// ServiceBusResponseArgs{...} +type ServiceBusResponseInput interface { + pulumi.Input + + ToServiceBusResponseOutput() ServiceBusResponseOutput + ToServiceBusResponseOutputWithContext(context.Context) ServiceBusResponseOutput +} + +// Properties related to ServiceBus. +type ServiceBusResponseArgs struct { + // Time when the Endpoint was added to DigitalTwinsInstance. + CreatedTime pulumi.StringInput `pulumi:"createdTime"` + // Dead letter storage secret. Will be obfuscated during read. + DeadLetterSecret pulumi.StringPtrInput `pulumi:"deadLetterSecret"` + // The type of Digital Twins endpoint + EndpointType pulumi.StringInput `pulumi:"endpointType"` + // PrimaryConnectionString of the endpoint. Will be obfuscated during read. + PrimaryConnectionString pulumi.StringInput `pulumi:"primaryConnectionString"` + // The provisioning state. + ProvisioningState pulumi.StringInput `pulumi:"provisioningState"` + // SecondaryConnectionString of the endpoint. Will be obfuscated during read. + SecondaryConnectionString pulumi.StringPtrInput `pulumi:"secondaryConnectionString"` +} + +func (ServiceBusResponseArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ServiceBusResponse)(nil)).Elem() +} + +func (i ServiceBusResponseArgs) ToServiceBusResponseOutput() ServiceBusResponseOutput { + return i.ToServiceBusResponseOutputWithContext(context.Background()) +} + +func (i ServiceBusResponseArgs) ToServiceBusResponseOutputWithContext(ctx context.Context) ServiceBusResponseOutput { + return pulumi.ToOutputWithContext(ctx, i).(ServiceBusResponseOutput) +} + +// Properties related to ServiceBus. +type ServiceBusResponseOutput struct{ *pulumi.OutputState } + +func (ServiceBusResponseOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ServiceBusResponse)(nil)).Elem() +} + +func (o ServiceBusResponseOutput) ToServiceBusResponseOutput() ServiceBusResponseOutput { + return o +} + +func (o ServiceBusResponseOutput) ToServiceBusResponseOutputWithContext(ctx context.Context) ServiceBusResponseOutput { + return o +} + +// Time when the Endpoint was added to DigitalTwinsInstance. +func (o ServiceBusResponseOutput) CreatedTime() pulumi.StringOutput { + return o.ApplyT(func(v ServiceBusResponse) string { return v.CreatedTime }).(pulumi.StringOutput) +} + +// Dead letter storage secret. Will be obfuscated during read. +func (o ServiceBusResponseOutput) DeadLetterSecret() pulumi.StringPtrOutput { + return o.ApplyT(func(v ServiceBusResponse) *string { return v.DeadLetterSecret }).(pulumi.StringPtrOutput) +} + +// The type of Digital Twins endpoint +func (o ServiceBusResponseOutput) EndpointType() pulumi.StringOutput { + return o.ApplyT(func(v ServiceBusResponse) string { return v.EndpointType }).(pulumi.StringOutput) +} + +// PrimaryConnectionString of the endpoint. Will be obfuscated during read. +func (o ServiceBusResponseOutput) PrimaryConnectionString() pulumi.StringOutput { + return o.ApplyT(func(v ServiceBusResponse) string { return v.PrimaryConnectionString }).(pulumi.StringOutput) +} + +// The provisioning state. +func (o ServiceBusResponseOutput) ProvisioningState() pulumi.StringOutput { + return o.ApplyT(func(v ServiceBusResponse) string { return v.ProvisioningState }).(pulumi.StringOutput) +} + +// SecondaryConnectionString of the endpoint. Will be obfuscated during read. +func (o ServiceBusResponseOutput) SecondaryConnectionString() pulumi.StringPtrOutput { + return o.ApplyT(func(v ServiceBusResponse) *string { return v.SecondaryConnectionString }).(pulumi.StringPtrOutput) +} + +func init() { + pulumi.RegisterOutputType(EventGridOutput{}) + pulumi.RegisterOutputType(EventGridResponseOutput{}) + pulumi.RegisterOutputType(EventHubOutput{}) + pulumi.RegisterOutputType(EventHubResponseOutput{}) + pulumi.RegisterOutputType(ServiceBusOutput{}) + pulumi.RegisterOutputType(ServiceBusResponseOutput{}) +} diff --git a/sdk/go/azurerm/digitaltwins/v20200301preview/digitalTwin.go b/sdk/go/azurerm/digitaltwins/v20200301preview/digitalTwin.go index 5e945b10e2a0..af397f49aa48 100644 --- a/sdk/go/azurerm/digitaltwins/v20200301preview/digitalTwin.go +++ b/sdk/go/azurerm/digitaltwins/v20200301preview/digitalTwin.go @@ -49,6 +49,15 @@ func NewDigitalTwin(ctx *pulumi.Context, if args == nil { args = &DigitalTwinArgs{} } + aliases := pulumi.Aliases([]pulumi.Alias{ + { + Type: pulumi.String("azurerm:digitaltwins/latest:DigitalTwin"), + }, + { + Type: pulumi.String("azurerm:digitaltwins/v20201031:DigitalTwin"), + }, + }) + opts = append(opts, aliases) var resource DigitalTwin err := ctx.RegisterResource("azurerm:digitaltwins/v20200301preview:DigitalTwin", name, args, &resource, opts...) if err != nil { diff --git a/sdk/go/azurerm/digitaltwins/v20200301preview/digitalTwinsEndpoint.go b/sdk/go/azurerm/digitaltwins/v20200301preview/digitalTwinsEndpoint.go index c330f994a2f9..530e6a9b35da 100644 --- a/sdk/go/azurerm/digitaltwins/v20200301preview/digitalTwinsEndpoint.go +++ b/sdk/go/azurerm/digitaltwins/v20200301preview/digitalTwinsEndpoint.go @@ -37,6 +37,15 @@ func NewDigitalTwinsEndpoint(ctx *pulumi.Context, if args == nil { args = &DigitalTwinsEndpointArgs{} } + aliases := pulumi.Aliases([]pulumi.Alias{ + { + Type: pulumi.String("azurerm:digitaltwins/latest:DigitalTwinsEndpoint"), + }, + { + Type: pulumi.String("azurerm:digitaltwins/v20201031:DigitalTwinsEndpoint"), + }, + }) + opts = append(opts, aliases) var resource DigitalTwinsEndpoint err := ctx.RegisterResource("azurerm:digitaltwins/v20200301preview:DigitalTwinsEndpoint", name, args, &resource, opts...) if err != nil { diff --git a/sdk/go/azurerm/digitaltwins/v20201031/digitalTwin.go b/sdk/go/azurerm/digitaltwins/v20201031/digitalTwin.go new file mode 100644 index 000000000000..e711734f0c50 --- /dev/null +++ b/sdk/go/azurerm/digitaltwins/v20201031/digitalTwin.go @@ -0,0 +1,147 @@ +// *** 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 v20201031 + +import ( + "reflect" + + "github.com/pkg/errors" + "github.com/pulumi/pulumi/sdk/v2/go/pulumi" +) + +// The description of the DigitalTwins service. +type DigitalTwin struct { + pulumi.CustomResourceState + + // Time when DigitalTwinsInstance was created. + CreatedTime pulumi.StringOutput `pulumi:"createdTime"` + // Api endpoint to work with DigitalTwinsInstance. + HostName pulumi.StringOutput `pulumi:"hostName"` + // Time when DigitalTwinsInstance was updated. + LastUpdatedTime pulumi.StringOutput `pulumi:"lastUpdatedTime"` + // The resource location. + Location pulumi.StringOutput `pulumi:"location"` + // The resource name. + Name pulumi.StringOutput `pulumi:"name"` + // The provisioning state. + ProvisioningState pulumi.StringOutput `pulumi:"provisioningState"` + // The resource tags. + Tags pulumi.StringMapOutput `pulumi:"tags"` + // The resource type. + Type pulumi.StringOutput `pulumi:"type"` +} + +// NewDigitalTwin registers a new resource with the given unique name, arguments, and options. +func NewDigitalTwin(ctx *pulumi.Context, + name string, args *DigitalTwinArgs, opts ...pulumi.ResourceOption) (*DigitalTwin, error) { + 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.ResourceName == nil { + return nil, errors.New("missing required argument 'ResourceName'") + } + if args == nil { + args = &DigitalTwinArgs{} + } + aliases := pulumi.Aliases([]pulumi.Alias{ + { + Type: pulumi.String("azurerm:digitaltwins/latest:DigitalTwin"), + }, + { + Type: pulumi.String("azurerm:digitaltwins/v20200301preview:DigitalTwin"), + }, + }) + opts = append(opts, aliases) + var resource DigitalTwin + err := ctx.RegisterResource("azurerm:digitaltwins/v20201031:DigitalTwin", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetDigitalTwin gets an existing DigitalTwin 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 GetDigitalTwin(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *DigitalTwinState, opts ...pulumi.ResourceOption) (*DigitalTwin, error) { + var resource DigitalTwin + err := ctx.ReadResource("azurerm:digitaltwins/v20201031:DigitalTwin", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering DigitalTwin resources. +type digitalTwinState struct { + // Time when DigitalTwinsInstance was created. + CreatedTime *string `pulumi:"createdTime"` + // Api endpoint to work with DigitalTwinsInstance. + HostName *string `pulumi:"hostName"` + // Time when DigitalTwinsInstance was updated. + LastUpdatedTime *string `pulumi:"lastUpdatedTime"` + // The resource location. + Location *string `pulumi:"location"` + // The resource name. + Name *string `pulumi:"name"` + // The provisioning state. + ProvisioningState *string `pulumi:"provisioningState"` + // The resource tags. + Tags map[string]string `pulumi:"tags"` + // The resource type. + Type *string `pulumi:"type"` +} + +type DigitalTwinState struct { + // Time when DigitalTwinsInstance was created. + CreatedTime pulumi.StringPtrInput + // Api endpoint to work with DigitalTwinsInstance. + HostName pulumi.StringPtrInput + // Time when DigitalTwinsInstance was updated. + LastUpdatedTime pulumi.StringPtrInput + // The resource location. + Location pulumi.StringPtrInput + // The resource name. + Name pulumi.StringPtrInput + // The provisioning state. + ProvisioningState pulumi.StringPtrInput + // The resource tags. + Tags pulumi.StringMapInput + // The resource type. + Type pulumi.StringPtrInput +} + +func (DigitalTwinState) ElementType() reflect.Type { + return reflect.TypeOf((*digitalTwinState)(nil)).Elem() +} + +type digitalTwinArgs struct { + // The resource location. + Location string `pulumi:"location"` + // The name of the resource group that contains the DigitalTwinsInstance. + ResourceGroupName string `pulumi:"resourceGroupName"` + // The name of the DigitalTwinsInstance. + ResourceName string `pulumi:"resourceName"` + // The resource tags. + Tags map[string]string `pulumi:"tags"` +} + +// The set of arguments for constructing a DigitalTwin resource. +type DigitalTwinArgs struct { + // The resource location. + Location pulumi.StringInput + // The name of the resource group that contains the DigitalTwinsInstance. + ResourceGroupName pulumi.StringInput + // The name of the DigitalTwinsInstance. + ResourceName pulumi.StringInput + // The resource tags. + Tags pulumi.StringMapInput +} + +func (DigitalTwinArgs) ElementType() reflect.Type { + return reflect.TypeOf((*digitalTwinArgs)(nil)).Elem() +} diff --git a/sdk/go/azurerm/digitaltwins/v20201031/digitalTwinsEndpoint.go b/sdk/go/azurerm/digitaltwins/v20201031/digitalTwinsEndpoint.go new file mode 100644 index 000000000000..8c1f8c4c617a --- /dev/null +++ b/sdk/go/azurerm/digitaltwins/v20201031/digitalTwinsEndpoint.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 v20201031 + +import ( + "reflect" + + "github.com/pkg/errors" + "github.com/pulumi/pulumi/sdk/v2/go/pulumi" +) + +// DigitalTwinsInstance endpoint resource. +type DigitalTwinsEndpoint struct { + pulumi.CustomResourceState + + // Extension resource name. + Name pulumi.StringOutput `pulumi:"name"` + // DigitalTwinsInstance endpoint resource properties. + Properties pulumi.AnyOutput `pulumi:"properties"` + // The resource type. + Type pulumi.StringOutput `pulumi:"type"` +} + +// NewDigitalTwinsEndpoint registers a new resource with the given unique name, arguments, and options. +func NewDigitalTwinsEndpoint(ctx *pulumi.Context, + name string, args *DigitalTwinsEndpointArgs, opts ...pulumi.ResourceOption) (*DigitalTwinsEndpoint, error) { + if args == nil || args.EndpointName == nil { + return nil, errors.New("missing required argument 'EndpointName'") + } + 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 = &DigitalTwinsEndpointArgs{} + } + aliases := pulumi.Aliases([]pulumi.Alias{ + { + Type: pulumi.String("azurerm:digitaltwins/latest:DigitalTwinsEndpoint"), + }, + { + Type: pulumi.String("azurerm:digitaltwins/v20200301preview:DigitalTwinsEndpoint"), + }, + }) + opts = append(opts, aliases) + var resource DigitalTwinsEndpoint + err := ctx.RegisterResource("azurerm:digitaltwins/v20201031:DigitalTwinsEndpoint", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetDigitalTwinsEndpoint gets an existing DigitalTwinsEndpoint 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 GetDigitalTwinsEndpoint(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *DigitalTwinsEndpointState, opts ...pulumi.ResourceOption) (*DigitalTwinsEndpoint, error) { + var resource DigitalTwinsEndpoint + err := ctx.ReadResource("azurerm:digitaltwins/v20201031:DigitalTwinsEndpoint", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering DigitalTwinsEndpoint resources. +type digitalTwinsEndpointState struct { + // Extension resource name. + Name *string `pulumi:"name"` + // DigitalTwinsInstance endpoint resource properties. + Properties interface{} `pulumi:"properties"` + // The resource type. + Type *string `pulumi:"type"` +} + +type DigitalTwinsEndpointState struct { + // Extension resource name. + Name pulumi.StringPtrInput + // DigitalTwinsInstance endpoint resource properties. + Properties pulumi.Input + // The resource type. + Type pulumi.StringPtrInput +} + +func (DigitalTwinsEndpointState) ElementType() reflect.Type { + return reflect.TypeOf((*digitalTwinsEndpointState)(nil)).Elem() +} + +type digitalTwinsEndpointArgs struct { + // Name of Endpoint Resource. + EndpointName string `pulumi:"endpointName"` + // DigitalTwinsInstance endpoint resource properties. + Properties interface{} `pulumi:"properties"` + // The name of the resource group that contains the DigitalTwinsInstance. + ResourceGroupName string `pulumi:"resourceGroupName"` + // The name of the DigitalTwinsInstance. + ResourceName string `pulumi:"resourceName"` +} + +// The set of arguments for constructing a DigitalTwinsEndpoint resource. +type DigitalTwinsEndpointArgs struct { + // Name of Endpoint Resource. + EndpointName pulumi.StringInput + // DigitalTwinsInstance endpoint resource properties. + Properties pulumi.Input + // The name of the resource group that contains the DigitalTwinsInstance. + ResourceGroupName pulumi.StringInput + // The name of the DigitalTwinsInstance. + ResourceName pulumi.StringInput +} + +func (DigitalTwinsEndpointArgs) ElementType() reflect.Type { + return reflect.TypeOf((*digitalTwinsEndpointArgs)(nil)).Elem() +} diff --git a/sdk/go/azurerm/digitaltwins/v20201031/getDigitalTwin.go b/sdk/go/azurerm/digitaltwins/v20201031/getDigitalTwin.go new file mode 100644 index 000000000000..226ca78dbde9 --- /dev/null +++ b/sdk/go/azurerm/digitaltwins/v20201031/getDigitalTwin.go @@ -0,0 +1,44 @@ +// *** 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 v20201031 + +import ( + "github.com/pulumi/pulumi/sdk/v2/go/pulumi" +) + +func LookupDigitalTwin(ctx *pulumi.Context, args *LookupDigitalTwinArgs, opts ...pulumi.InvokeOption) (*LookupDigitalTwinResult, error) { + var rv LookupDigitalTwinResult + err := ctx.Invoke("azurerm:digitaltwins/v20201031:getDigitalTwin", args, &rv, opts...) + if err != nil { + return nil, err + } + return &rv, nil +} + +type LookupDigitalTwinArgs struct { + // The name of the resource group that contains the DigitalTwinsInstance. + ResourceGroupName string `pulumi:"resourceGroupName"` + // The name of the DigitalTwinsInstance. + ResourceName string `pulumi:"resourceName"` +} + +// The description of the DigitalTwins service. +type LookupDigitalTwinResult struct { + // Time when DigitalTwinsInstance was created. + CreatedTime string `pulumi:"createdTime"` + // Api endpoint to work with DigitalTwinsInstance. + HostName string `pulumi:"hostName"` + // Time when DigitalTwinsInstance was updated. + LastUpdatedTime string `pulumi:"lastUpdatedTime"` + // The resource location. + Location string `pulumi:"location"` + // The resource name. + Name string `pulumi:"name"` + // The provisioning state. + ProvisioningState string `pulumi:"provisioningState"` + // The resource tags. + Tags map[string]string `pulumi:"tags"` + // The resource type. + Type string `pulumi:"type"` +} diff --git a/sdk/go/azurerm/digitaltwins/v20201031/getDigitalTwinsEndpoint.go b/sdk/go/azurerm/digitaltwins/v20201031/getDigitalTwinsEndpoint.go new file mode 100644 index 000000000000..9454dca8ba74 --- /dev/null +++ b/sdk/go/azurerm/digitaltwins/v20201031/getDigitalTwinsEndpoint.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 v20201031 + +import ( + "github.com/pulumi/pulumi/sdk/v2/go/pulumi" +) + +func LookupDigitalTwinsEndpoint(ctx *pulumi.Context, args *LookupDigitalTwinsEndpointArgs, opts ...pulumi.InvokeOption) (*LookupDigitalTwinsEndpointResult, error) { + var rv LookupDigitalTwinsEndpointResult + err := ctx.Invoke("azurerm:digitaltwins/v20201031:getDigitalTwinsEndpoint", args, &rv, opts...) + if err != nil { + return nil, err + } + return &rv, nil +} + +type LookupDigitalTwinsEndpointArgs struct { + // Name of Endpoint Resource. + EndpointName string `pulumi:"endpointName"` + // The name of the resource group that contains the DigitalTwinsInstance. + ResourceGroupName string `pulumi:"resourceGroupName"` + // The name of the DigitalTwinsInstance. + ResourceName string `pulumi:"resourceName"` +} + +// DigitalTwinsInstance endpoint resource. +type LookupDigitalTwinsEndpointResult struct { + // Extension resource name. + Name string `pulumi:"name"` + // DigitalTwinsInstance endpoint resource properties. + Properties interface{} `pulumi:"properties"` + // The resource type. + Type string `pulumi:"type"` +} diff --git a/sdk/go/azurerm/digitaltwins/v20201031/pulumiTypes.go b/sdk/go/azurerm/digitaltwins/v20201031/pulumiTypes.go new file mode 100644 index 000000000000..14bd652d1e8b --- /dev/null +++ b/sdk/go/azurerm/digitaltwins/v20201031/pulumiTypes.go @@ -0,0 +1,584 @@ +// *** 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 v20201031 + +import ( + "context" + "reflect" + + "github.com/pulumi/pulumi/sdk/v2/go/pulumi" +) + +// Properties related to EventGrid. +type EventGrid struct { + // EventGrid secondary accesskey. Will be obfuscated during read. + AccessKey1 string `pulumi:"accessKey1"` + // EventGrid secondary accesskey. Will be obfuscated during read. + AccessKey2 *string `pulumi:"accessKey2"` + // Dead letter storage secret. Will be obfuscated during read. + DeadLetterSecret *string `pulumi:"deadLetterSecret"` + // The type of Digital Twins endpoint + EndpointType string `pulumi:"endpointType"` + // EventGrid Topic Endpoint + TopicEndpoint string `pulumi:"topicEndpoint"` +} + +// EventGridInput is an input type that accepts EventGridArgs and EventGridOutput values. +// You can construct a concrete instance of `EventGridInput` via: +// +// EventGridArgs{...} +type EventGridInput interface { + pulumi.Input + + ToEventGridOutput() EventGridOutput + ToEventGridOutputWithContext(context.Context) EventGridOutput +} + +// Properties related to EventGrid. +type EventGridArgs struct { + // EventGrid secondary accesskey. Will be obfuscated during read. + AccessKey1 pulumi.StringInput `pulumi:"accessKey1"` + // EventGrid secondary accesskey. Will be obfuscated during read. + AccessKey2 pulumi.StringPtrInput `pulumi:"accessKey2"` + // Dead letter storage secret. Will be obfuscated during read. + DeadLetterSecret pulumi.StringPtrInput `pulumi:"deadLetterSecret"` + // The type of Digital Twins endpoint + EndpointType pulumi.StringInput `pulumi:"endpointType"` + // EventGrid Topic Endpoint + TopicEndpoint pulumi.StringInput `pulumi:"topicEndpoint"` +} + +func (EventGridArgs) ElementType() reflect.Type { + return reflect.TypeOf((*EventGrid)(nil)).Elem() +} + +func (i EventGridArgs) ToEventGridOutput() EventGridOutput { + return i.ToEventGridOutputWithContext(context.Background()) +} + +func (i EventGridArgs) ToEventGridOutputWithContext(ctx context.Context) EventGridOutput { + return pulumi.ToOutputWithContext(ctx, i).(EventGridOutput) +} + +// Properties related to EventGrid. +type EventGridOutput struct{ *pulumi.OutputState } + +func (EventGridOutput) ElementType() reflect.Type { + return reflect.TypeOf((*EventGrid)(nil)).Elem() +} + +func (o EventGridOutput) ToEventGridOutput() EventGridOutput { + return o +} + +func (o EventGridOutput) ToEventGridOutputWithContext(ctx context.Context) EventGridOutput { + return o +} + +// EventGrid secondary accesskey. Will be obfuscated during read. +func (o EventGridOutput) AccessKey1() pulumi.StringOutput { + return o.ApplyT(func(v EventGrid) string { return v.AccessKey1 }).(pulumi.StringOutput) +} + +// EventGrid secondary accesskey. Will be obfuscated during read. +func (o EventGridOutput) AccessKey2() pulumi.StringPtrOutput { + return o.ApplyT(func(v EventGrid) *string { return v.AccessKey2 }).(pulumi.StringPtrOutput) +} + +// Dead letter storage secret. Will be obfuscated during read. +func (o EventGridOutput) DeadLetterSecret() pulumi.StringPtrOutput { + return o.ApplyT(func(v EventGrid) *string { return v.DeadLetterSecret }).(pulumi.StringPtrOutput) +} + +// The type of Digital Twins endpoint +func (o EventGridOutput) EndpointType() pulumi.StringOutput { + return o.ApplyT(func(v EventGrid) string { return v.EndpointType }).(pulumi.StringOutput) +} + +// EventGrid Topic Endpoint +func (o EventGridOutput) TopicEndpoint() pulumi.StringOutput { + return o.ApplyT(func(v EventGrid) string { return v.TopicEndpoint }).(pulumi.StringOutput) +} + +// Properties related to EventGrid. +type EventGridResponse struct { + // EventGrid secondary accesskey. Will be obfuscated during read. + AccessKey1 string `pulumi:"accessKey1"` + // EventGrid secondary accesskey. Will be obfuscated during read. + AccessKey2 *string `pulumi:"accessKey2"` + // Time when the Endpoint was added to DigitalTwinsInstance. + CreatedTime string `pulumi:"createdTime"` + // Dead letter storage secret. Will be obfuscated during read. + DeadLetterSecret *string `pulumi:"deadLetterSecret"` + // The type of Digital Twins endpoint + EndpointType string `pulumi:"endpointType"` + // The provisioning state. + ProvisioningState string `pulumi:"provisioningState"` + // EventGrid Topic Endpoint + TopicEndpoint string `pulumi:"topicEndpoint"` +} + +// EventGridResponseInput is an input type that accepts EventGridResponseArgs and EventGridResponseOutput values. +// You can construct a concrete instance of `EventGridResponseInput` via: +// +// EventGridResponseArgs{...} +type EventGridResponseInput interface { + pulumi.Input + + ToEventGridResponseOutput() EventGridResponseOutput + ToEventGridResponseOutputWithContext(context.Context) EventGridResponseOutput +} + +// Properties related to EventGrid. +type EventGridResponseArgs struct { + // EventGrid secondary accesskey. Will be obfuscated during read. + AccessKey1 pulumi.StringInput `pulumi:"accessKey1"` + // EventGrid secondary accesskey. Will be obfuscated during read. + AccessKey2 pulumi.StringPtrInput `pulumi:"accessKey2"` + // Time when the Endpoint was added to DigitalTwinsInstance. + CreatedTime pulumi.StringInput `pulumi:"createdTime"` + // Dead letter storage secret. Will be obfuscated during read. + DeadLetterSecret pulumi.StringPtrInput `pulumi:"deadLetterSecret"` + // The type of Digital Twins endpoint + EndpointType pulumi.StringInput `pulumi:"endpointType"` + // The provisioning state. + ProvisioningState pulumi.StringInput `pulumi:"provisioningState"` + // EventGrid Topic Endpoint + TopicEndpoint pulumi.StringInput `pulumi:"topicEndpoint"` +} + +func (EventGridResponseArgs) ElementType() reflect.Type { + return reflect.TypeOf((*EventGridResponse)(nil)).Elem() +} + +func (i EventGridResponseArgs) ToEventGridResponseOutput() EventGridResponseOutput { + return i.ToEventGridResponseOutputWithContext(context.Background()) +} + +func (i EventGridResponseArgs) ToEventGridResponseOutputWithContext(ctx context.Context) EventGridResponseOutput { + return pulumi.ToOutputWithContext(ctx, i).(EventGridResponseOutput) +} + +// Properties related to EventGrid. +type EventGridResponseOutput struct{ *pulumi.OutputState } + +func (EventGridResponseOutput) ElementType() reflect.Type { + return reflect.TypeOf((*EventGridResponse)(nil)).Elem() +} + +func (o EventGridResponseOutput) ToEventGridResponseOutput() EventGridResponseOutput { + return o +} + +func (o EventGridResponseOutput) ToEventGridResponseOutputWithContext(ctx context.Context) EventGridResponseOutput { + return o +} + +// EventGrid secondary accesskey. Will be obfuscated during read. +func (o EventGridResponseOutput) AccessKey1() pulumi.StringOutput { + return o.ApplyT(func(v EventGridResponse) string { return v.AccessKey1 }).(pulumi.StringOutput) +} + +// EventGrid secondary accesskey. Will be obfuscated during read. +func (o EventGridResponseOutput) AccessKey2() pulumi.StringPtrOutput { + return o.ApplyT(func(v EventGridResponse) *string { return v.AccessKey2 }).(pulumi.StringPtrOutput) +} + +// Time when the Endpoint was added to DigitalTwinsInstance. +func (o EventGridResponseOutput) CreatedTime() pulumi.StringOutput { + return o.ApplyT(func(v EventGridResponse) string { return v.CreatedTime }).(pulumi.StringOutput) +} + +// Dead letter storage secret. Will be obfuscated during read. +func (o EventGridResponseOutput) DeadLetterSecret() pulumi.StringPtrOutput { + return o.ApplyT(func(v EventGridResponse) *string { return v.DeadLetterSecret }).(pulumi.StringPtrOutput) +} + +// The type of Digital Twins endpoint +func (o EventGridResponseOutput) EndpointType() pulumi.StringOutput { + return o.ApplyT(func(v EventGridResponse) string { return v.EndpointType }).(pulumi.StringOutput) +} + +// The provisioning state. +func (o EventGridResponseOutput) ProvisioningState() pulumi.StringOutput { + return o.ApplyT(func(v EventGridResponse) string { return v.ProvisioningState }).(pulumi.StringOutput) +} + +// EventGrid Topic Endpoint +func (o EventGridResponseOutput) TopicEndpoint() pulumi.StringOutput { + return o.ApplyT(func(v EventGridResponse) string { return v.TopicEndpoint }).(pulumi.StringOutput) +} + +// Properties related to EventHub. +type EventHub struct { + // PrimaryConnectionString of the endpoint. Will be obfuscated during read. + ConnectionStringPrimaryKey string `pulumi:"connectionStringPrimaryKey"` + // SecondaryConnectionString of the endpoint. Will be obfuscated during read. + ConnectionStringSecondaryKey *string `pulumi:"connectionStringSecondaryKey"` + // Dead letter storage secret. Will be obfuscated during read. + DeadLetterSecret *string `pulumi:"deadLetterSecret"` + // The type of Digital Twins endpoint + EndpointType string `pulumi:"endpointType"` +} + +// EventHubInput is an input type that accepts EventHubArgs and EventHubOutput values. +// You can construct a concrete instance of `EventHubInput` via: +// +// EventHubArgs{...} +type EventHubInput interface { + pulumi.Input + + ToEventHubOutput() EventHubOutput + ToEventHubOutputWithContext(context.Context) EventHubOutput +} + +// Properties related to EventHub. +type EventHubArgs struct { + // PrimaryConnectionString of the endpoint. Will be obfuscated during read. + ConnectionStringPrimaryKey pulumi.StringInput `pulumi:"connectionStringPrimaryKey"` + // SecondaryConnectionString of the endpoint. Will be obfuscated during read. + ConnectionStringSecondaryKey pulumi.StringPtrInput `pulumi:"connectionStringSecondaryKey"` + // Dead letter storage secret. Will be obfuscated during read. + DeadLetterSecret pulumi.StringPtrInput `pulumi:"deadLetterSecret"` + // The type of Digital Twins endpoint + EndpointType pulumi.StringInput `pulumi:"endpointType"` +} + +func (EventHubArgs) ElementType() reflect.Type { + return reflect.TypeOf((*EventHub)(nil)).Elem() +} + +func (i EventHubArgs) ToEventHubOutput() EventHubOutput { + return i.ToEventHubOutputWithContext(context.Background()) +} + +func (i EventHubArgs) ToEventHubOutputWithContext(ctx context.Context) EventHubOutput { + return pulumi.ToOutputWithContext(ctx, i).(EventHubOutput) +} + +// Properties related to EventHub. +type EventHubOutput struct{ *pulumi.OutputState } + +func (EventHubOutput) ElementType() reflect.Type { + return reflect.TypeOf((*EventHub)(nil)).Elem() +} + +func (o EventHubOutput) ToEventHubOutput() EventHubOutput { + return o +} + +func (o EventHubOutput) ToEventHubOutputWithContext(ctx context.Context) EventHubOutput { + return o +} + +// PrimaryConnectionString of the endpoint. Will be obfuscated during read. +func (o EventHubOutput) ConnectionStringPrimaryKey() pulumi.StringOutput { + return o.ApplyT(func(v EventHub) string { return v.ConnectionStringPrimaryKey }).(pulumi.StringOutput) +} + +// SecondaryConnectionString of the endpoint. Will be obfuscated during read. +func (o EventHubOutput) ConnectionStringSecondaryKey() pulumi.StringPtrOutput { + return o.ApplyT(func(v EventHub) *string { return v.ConnectionStringSecondaryKey }).(pulumi.StringPtrOutput) +} + +// Dead letter storage secret. Will be obfuscated during read. +func (o EventHubOutput) DeadLetterSecret() pulumi.StringPtrOutput { + return o.ApplyT(func(v EventHub) *string { return v.DeadLetterSecret }).(pulumi.StringPtrOutput) +} + +// The type of Digital Twins endpoint +func (o EventHubOutput) EndpointType() pulumi.StringOutput { + return o.ApplyT(func(v EventHub) string { return v.EndpointType }).(pulumi.StringOutput) +} + +// Properties related to EventHub. +type EventHubResponse struct { + // PrimaryConnectionString of the endpoint. Will be obfuscated during read. + ConnectionStringPrimaryKey string `pulumi:"connectionStringPrimaryKey"` + // SecondaryConnectionString of the endpoint. Will be obfuscated during read. + ConnectionStringSecondaryKey *string `pulumi:"connectionStringSecondaryKey"` + // Time when the Endpoint was added to DigitalTwinsInstance. + CreatedTime string `pulumi:"createdTime"` + // Dead letter storage secret. Will be obfuscated during read. + DeadLetterSecret *string `pulumi:"deadLetterSecret"` + // The type of Digital Twins endpoint + EndpointType string `pulumi:"endpointType"` + // The provisioning state. + ProvisioningState string `pulumi:"provisioningState"` +} + +// EventHubResponseInput is an input type that accepts EventHubResponseArgs and EventHubResponseOutput values. +// You can construct a concrete instance of `EventHubResponseInput` via: +// +// EventHubResponseArgs{...} +type EventHubResponseInput interface { + pulumi.Input + + ToEventHubResponseOutput() EventHubResponseOutput + ToEventHubResponseOutputWithContext(context.Context) EventHubResponseOutput +} + +// Properties related to EventHub. +type EventHubResponseArgs struct { + // PrimaryConnectionString of the endpoint. Will be obfuscated during read. + ConnectionStringPrimaryKey pulumi.StringInput `pulumi:"connectionStringPrimaryKey"` + // SecondaryConnectionString of the endpoint. Will be obfuscated during read. + ConnectionStringSecondaryKey pulumi.StringPtrInput `pulumi:"connectionStringSecondaryKey"` + // Time when the Endpoint was added to DigitalTwinsInstance. + CreatedTime pulumi.StringInput `pulumi:"createdTime"` + // Dead letter storage secret. Will be obfuscated during read. + DeadLetterSecret pulumi.StringPtrInput `pulumi:"deadLetterSecret"` + // The type of Digital Twins endpoint + EndpointType pulumi.StringInput `pulumi:"endpointType"` + // The provisioning state. + ProvisioningState pulumi.StringInput `pulumi:"provisioningState"` +} + +func (EventHubResponseArgs) ElementType() reflect.Type { + return reflect.TypeOf((*EventHubResponse)(nil)).Elem() +} + +func (i EventHubResponseArgs) ToEventHubResponseOutput() EventHubResponseOutput { + return i.ToEventHubResponseOutputWithContext(context.Background()) +} + +func (i EventHubResponseArgs) ToEventHubResponseOutputWithContext(ctx context.Context) EventHubResponseOutput { + return pulumi.ToOutputWithContext(ctx, i).(EventHubResponseOutput) +} + +// Properties related to EventHub. +type EventHubResponseOutput struct{ *pulumi.OutputState } + +func (EventHubResponseOutput) ElementType() reflect.Type { + return reflect.TypeOf((*EventHubResponse)(nil)).Elem() +} + +func (o EventHubResponseOutput) ToEventHubResponseOutput() EventHubResponseOutput { + return o +} + +func (o EventHubResponseOutput) ToEventHubResponseOutputWithContext(ctx context.Context) EventHubResponseOutput { + return o +} + +// PrimaryConnectionString of the endpoint. Will be obfuscated during read. +func (o EventHubResponseOutput) ConnectionStringPrimaryKey() pulumi.StringOutput { + return o.ApplyT(func(v EventHubResponse) string { return v.ConnectionStringPrimaryKey }).(pulumi.StringOutput) +} + +// SecondaryConnectionString of the endpoint. Will be obfuscated during read. +func (o EventHubResponseOutput) ConnectionStringSecondaryKey() pulumi.StringPtrOutput { + return o.ApplyT(func(v EventHubResponse) *string { return v.ConnectionStringSecondaryKey }).(pulumi.StringPtrOutput) +} + +// Time when the Endpoint was added to DigitalTwinsInstance. +func (o EventHubResponseOutput) CreatedTime() pulumi.StringOutput { + return o.ApplyT(func(v EventHubResponse) string { return v.CreatedTime }).(pulumi.StringOutput) +} + +// Dead letter storage secret. Will be obfuscated during read. +func (o EventHubResponseOutput) DeadLetterSecret() pulumi.StringPtrOutput { + return o.ApplyT(func(v EventHubResponse) *string { return v.DeadLetterSecret }).(pulumi.StringPtrOutput) +} + +// The type of Digital Twins endpoint +func (o EventHubResponseOutput) EndpointType() pulumi.StringOutput { + return o.ApplyT(func(v EventHubResponse) string { return v.EndpointType }).(pulumi.StringOutput) +} + +// The provisioning state. +func (o EventHubResponseOutput) ProvisioningState() pulumi.StringOutput { + return o.ApplyT(func(v EventHubResponse) string { return v.ProvisioningState }).(pulumi.StringOutput) +} + +// Properties related to ServiceBus. +type ServiceBus struct { + // Dead letter storage secret. Will be obfuscated during read. + DeadLetterSecret *string `pulumi:"deadLetterSecret"` + // The type of Digital Twins endpoint + EndpointType string `pulumi:"endpointType"` + // PrimaryConnectionString of the endpoint. Will be obfuscated during read. + PrimaryConnectionString string `pulumi:"primaryConnectionString"` + // SecondaryConnectionString of the endpoint. Will be obfuscated during read. + SecondaryConnectionString *string `pulumi:"secondaryConnectionString"` +} + +// ServiceBusInput is an input type that accepts ServiceBusArgs and ServiceBusOutput values. +// You can construct a concrete instance of `ServiceBusInput` via: +// +// ServiceBusArgs{...} +type ServiceBusInput interface { + pulumi.Input + + ToServiceBusOutput() ServiceBusOutput + ToServiceBusOutputWithContext(context.Context) ServiceBusOutput +} + +// Properties related to ServiceBus. +type ServiceBusArgs struct { + // Dead letter storage secret. Will be obfuscated during read. + DeadLetterSecret pulumi.StringPtrInput `pulumi:"deadLetterSecret"` + // The type of Digital Twins endpoint + EndpointType pulumi.StringInput `pulumi:"endpointType"` + // PrimaryConnectionString of the endpoint. Will be obfuscated during read. + PrimaryConnectionString pulumi.StringInput `pulumi:"primaryConnectionString"` + // SecondaryConnectionString of the endpoint. Will be obfuscated during read. + SecondaryConnectionString pulumi.StringPtrInput `pulumi:"secondaryConnectionString"` +} + +func (ServiceBusArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ServiceBus)(nil)).Elem() +} + +func (i ServiceBusArgs) ToServiceBusOutput() ServiceBusOutput { + return i.ToServiceBusOutputWithContext(context.Background()) +} + +func (i ServiceBusArgs) ToServiceBusOutputWithContext(ctx context.Context) ServiceBusOutput { + return pulumi.ToOutputWithContext(ctx, i).(ServiceBusOutput) +} + +// Properties related to ServiceBus. +type ServiceBusOutput struct{ *pulumi.OutputState } + +func (ServiceBusOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ServiceBus)(nil)).Elem() +} + +func (o ServiceBusOutput) ToServiceBusOutput() ServiceBusOutput { + return o +} + +func (o ServiceBusOutput) ToServiceBusOutputWithContext(ctx context.Context) ServiceBusOutput { + return o +} + +// Dead letter storage secret. Will be obfuscated during read. +func (o ServiceBusOutput) DeadLetterSecret() pulumi.StringPtrOutput { + return o.ApplyT(func(v ServiceBus) *string { return v.DeadLetterSecret }).(pulumi.StringPtrOutput) +} + +// The type of Digital Twins endpoint +func (o ServiceBusOutput) EndpointType() pulumi.StringOutput { + return o.ApplyT(func(v ServiceBus) string { return v.EndpointType }).(pulumi.StringOutput) +} + +// PrimaryConnectionString of the endpoint. Will be obfuscated during read. +func (o ServiceBusOutput) PrimaryConnectionString() pulumi.StringOutput { + return o.ApplyT(func(v ServiceBus) string { return v.PrimaryConnectionString }).(pulumi.StringOutput) +} + +// SecondaryConnectionString of the endpoint. Will be obfuscated during read. +func (o ServiceBusOutput) SecondaryConnectionString() pulumi.StringPtrOutput { + return o.ApplyT(func(v ServiceBus) *string { return v.SecondaryConnectionString }).(pulumi.StringPtrOutput) +} + +// Properties related to ServiceBus. +type ServiceBusResponse struct { + // Time when the Endpoint was added to DigitalTwinsInstance. + CreatedTime string `pulumi:"createdTime"` + // Dead letter storage secret. Will be obfuscated during read. + DeadLetterSecret *string `pulumi:"deadLetterSecret"` + // The type of Digital Twins endpoint + EndpointType string `pulumi:"endpointType"` + // PrimaryConnectionString of the endpoint. Will be obfuscated during read. + PrimaryConnectionString string `pulumi:"primaryConnectionString"` + // The provisioning state. + ProvisioningState string `pulumi:"provisioningState"` + // SecondaryConnectionString of the endpoint. Will be obfuscated during read. + SecondaryConnectionString *string `pulumi:"secondaryConnectionString"` +} + +// ServiceBusResponseInput is an input type that accepts ServiceBusResponseArgs and ServiceBusResponseOutput values. +// You can construct a concrete instance of `ServiceBusResponseInput` via: +// +// ServiceBusResponseArgs{...} +type ServiceBusResponseInput interface { + pulumi.Input + + ToServiceBusResponseOutput() ServiceBusResponseOutput + ToServiceBusResponseOutputWithContext(context.Context) ServiceBusResponseOutput +} + +// Properties related to ServiceBus. +type ServiceBusResponseArgs struct { + // Time when the Endpoint was added to DigitalTwinsInstance. + CreatedTime pulumi.StringInput `pulumi:"createdTime"` + // Dead letter storage secret. Will be obfuscated during read. + DeadLetterSecret pulumi.StringPtrInput `pulumi:"deadLetterSecret"` + // The type of Digital Twins endpoint + EndpointType pulumi.StringInput `pulumi:"endpointType"` + // PrimaryConnectionString of the endpoint. Will be obfuscated during read. + PrimaryConnectionString pulumi.StringInput `pulumi:"primaryConnectionString"` + // The provisioning state. + ProvisioningState pulumi.StringInput `pulumi:"provisioningState"` + // SecondaryConnectionString of the endpoint. Will be obfuscated during read. + SecondaryConnectionString pulumi.StringPtrInput `pulumi:"secondaryConnectionString"` +} + +func (ServiceBusResponseArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ServiceBusResponse)(nil)).Elem() +} + +func (i ServiceBusResponseArgs) ToServiceBusResponseOutput() ServiceBusResponseOutput { + return i.ToServiceBusResponseOutputWithContext(context.Background()) +} + +func (i ServiceBusResponseArgs) ToServiceBusResponseOutputWithContext(ctx context.Context) ServiceBusResponseOutput { + return pulumi.ToOutputWithContext(ctx, i).(ServiceBusResponseOutput) +} + +// Properties related to ServiceBus. +type ServiceBusResponseOutput struct{ *pulumi.OutputState } + +func (ServiceBusResponseOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ServiceBusResponse)(nil)).Elem() +} + +func (o ServiceBusResponseOutput) ToServiceBusResponseOutput() ServiceBusResponseOutput { + return o +} + +func (o ServiceBusResponseOutput) ToServiceBusResponseOutputWithContext(ctx context.Context) ServiceBusResponseOutput { + return o +} + +// Time when the Endpoint was added to DigitalTwinsInstance. +func (o ServiceBusResponseOutput) CreatedTime() pulumi.StringOutput { + return o.ApplyT(func(v ServiceBusResponse) string { return v.CreatedTime }).(pulumi.StringOutput) +} + +// Dead letter storage secret. Will be obfuscated during read. +func (o ServiceBusResponseOutput) DeadLetterSecret() pulumi.StringPtrOutput { + return o.ApplyT(func(v ServiceBusResponse) *string { return v.DeadLetterSecret }).(pulumi.StringPtrOutput) +} + +// The type of Digital Twins endpoint +func (o ServiceBusResponseOutput) EndpointType() pulumi.StringOutput { + return o.ApplyT(func(v ServiceBusResponse) string { return v.EndpointType }).(pulumi.StringOutput) +} + +// PrimaryConnectionString of the endpoint. Will be obfuscated during read. +func (o ServiceBusResponseOutput) PrimaryConnectionString() pulumi.StringOutput { + return o.ApplyT(func(v ServiceBusResponse) string { return v.PrimaryConnectionString }).(pulumi.StringOutput) +} + +// The provisioning state. +func (o ServiceBusResponseOutput) ProvisioningState() pulumi.StringOutput { + return o.ApplyT(func(v ServiceBusResponse) string { return v.ProvisioningState }).(pulumi.StringOutput) +} + +// SecondaryConnectionString of the endpoint. Will be obfuscated during read. +func (o ServiceBusResponseOutput) SecondaryConnectionString() pulumi.StringPtrOutput { + return o.ApplyT(func(v ServiceBusResponse) *string { return v.SecondaryConnectionString }).(pulumi.StringPtrOutput) +} + +func init() { + pulumi.RegisterOutputType(EventGridOutput{}) + pulumi.RegisterOutputType(EventGridResponseOutput{}) + pulumi.RegisterOutputType(EventHubOutput{}) + pulumi.RegisterOutputType(EventHubResponseOutput{}) + pulumi.RegisterOutputType(ServiceBusOutput{}) + pulumi.RegisterOutputType(ServiceBusResponseOutput{}) +} diff --git a/sdk/go/azurerm/insights/v20180617preview/getWorkbook.go b/sdk/go/azurerm/insights/v20180617preview/getWorkbook.go index 5013b2396194..3aaecce135a5 100644 --- a/sdk/go/azurerm/insights/v20180617preview/getWorkbook.go +++ b/sdk/go/azurerm/insights/v20180617preview/getWorkbook.go @@ -37,6 +37,8 @@ type LookupWorkbookResult struct { Name string `pulumi:"name"` // Configuration of this particular workbook. Configuration data is a string containing valid JSON SerializedData string `pulumi:"serializedData"` + // ResourceId for a source resource. + SourceId *string `pulumi:"sourceId"` // Resource tags Tags map[string]string `pulumi:"tags"` // Date and time in UTC of the last modification that was made to this workbook definition. diff --git a/sdk/go/azurerm/insights/v20180617preview/workbook.go b/sdk/go/azurerm/insights/v20180617preview/workbook.go index 2c7850a27f61..8a73a15ecbd5 100644 --- a/sdk/go/azurerm/insights/v20180617preview/workbook.go +++ b/sdk/go/azurerm/insights/v20180617preview/workbook.go @@ -26,6 +26,8 @@ type Workbook struct { Name pulumi.StringOutput `pulumi:"name"` // Configuration of this particular workbook. Configuration data is a string containing valid JSON SerializedData pulumi.StringOutput `pulumi:"serializedData"` + // ResourceId for a source resource. + SourceId pulumi.StringPtrOutput `pulumi:"sourceId"` // Resource tags Tags pulumi.StringMapOutput `pulumi:"tags"` // Date and time in UTC of the last modification that was made to this workbook definition. @@ -62,9 +64,6 @@ func NewWorkbook(ctx *pulumi.Context, if args == nil || args.SourceId == nil { return nil, errors.New("missing required argument 'SourceId'") } - if args == nil || args.UserId == nil { - return nil, errors.New("missing required argument 'UserId'") - } if args == nil { args = &WorkbookArgs{} } @@ -111,6 +110,8 @@ type workbookState struct { Name *string `pulumi:"name"` // Configuration of this particular workbook. Configuration data is a string containing valid JSON SerializedData *string `pulumi:"serializedData"` + // ResourceId for a source resource. + SourceId *string `pulumi:"sourceId"` // Resource tags Tags map[string]string `pulumi:"tags"` // Date and time in UTC of the last modification that was made to this workbook definition. @@ -136,6 +137,8 @@ type WorkbookState struct { Name pulumi.StringPtrInput // Configuration of this particular workbook. Configuration data is a string containing valid JSON SerializedData pulumi.StringPtrInput + // ResourceId for a source resource. + SourceId pulumi.StringPtrInput // Resource tags Tags pulumi.StringMapInput // Date and time in UTC of the last modification that was made to this workbook definition. @@ -167,12 +170,10 @@ type workbookArgs struct { ResourceName string `pulumi:"resourceName"` // Configuration of this particular workbook. Configuration data is a string containing valid JSON SerializedData string `pulumi:"serializedData"` - // Azure Resource Id that will fetch all related workbooks. + // ResourceId for a source resource. SourceId string `pulumi:"sourceId"` // Resource tags Tags map[string]string `pulumi:"tags"` - // Unique user id of the specific user that owns this workbook. - UserId string `pulumi:"userId"` // Workbook version Version *string `pulumi:"version"` } @@ -193,12 +194,10 @@ type WorkbookArgs struct { ResourceName pulumi.StringInput // Configuration of this particular workbook. Configuration data is a string containing valid JSON SerializedData pulumi.StringInput - // Azure Resource Id that will fetch all related workbooks. + // ResourceId for a source resource. SourceId pulumi.StringInput // Resource tags Tags pulumi.StringMapInput - // Unique user id of the specific user that owns this workbook. - UserId pulumi.StringInput // Workbook version Version pulumi.StringPtrInput } diff --git a/sdk/go/azurerm/kubernetes/v20200101preview/listConnectedClusterUserCredentials.go b/sdk/go/azurerm/kubernetes/v20200101preview/listConnectedClusterUserCredentials.go index 3086fc814ca3..f906a8b1e16c 100644 --- a/sdk/go/azurerm/kubernetes/v20200101preview/listConnectedClusterUserCredentials.go +++ b/sdk/go/azurerm/kubernetes/v20200101preview/listConnectedClusterUserCredentials.go @@ -17,10 +17,13 @@ func ListConnectedClusterUserCredentials(ctx *pulumi.Context, args *ListConnecte } type ListConnectedClusterUserCredentialsArgs struct { + // The mode of client authentication. + AuthenticationMethod string `pulumi:"authenticationMethod"` // The name of the Kubernetes cluster on which get is called. ClusterName string `pulumi:"clusterName"` // The name of the resource group. The name is case insensitive. - ResourceGroupName string `pulumi:"resourceGroupName"` + ResourceGroupName string `pulumi:"resourceGroupName"` + Value AuthenticationDetailsValue `pulumi:"value"` } // The list of credential result response. diff --git a/sdk/go/azurerm/kubernetes/v20200101preview/pulumiTypes.go b/sdk/go/azurerm/kubernetes/v20200101preview/pulumiTypes.go index 1ede10fb4912..e84e26a09b0b 100644 --- a/sdk/go/azurerm/kubernetes/v20200101preview/pulumiTypes.go +++ b/sdk/go/azurerm/kubernetes/v20200101preview/pulumiTypes.go @@ -10,6 +10,214 @@ import ( "github.com/pulumi/pulumi/sdk/v2/go/pulumi" ) +type AuthenticationCertificateDetails struct { + // Base64 encoded client certificate data. + CertificateData string `pulumi:"certificateData"` + // Base64 encoded key data. + KeyData string `pulumi:"keyData"` +} + +// AuthenticationCertificateDetailsInput is an input type that accepts AuthenticationCertificateDetailsArgs and AuthenticationCertificateDetailsOutput values. +// You can construct a concrete instance of `AuthenticationCertificateDetailsInput` via: +// +// AuthenticationCertificateDetailsArgs{...} +type AuthenticationCertificateDetailsInput interface { + pulumi.Input + + ToAuthenticationCertificateDetailsOutput() AuthenticationCertificateDetailsOutput + ToAuthenticationCertificateDetailsOutputWithContext(context.Context) AuthenticationCertificateDetailsOutput +} + +type AuthenticationCertificateDetailsArgs struct { + // Base64 encoded client certificate data. + CertificateData pulumi.StringInput `pulumi:"certificateData"` + // Base64 encoded key data. + KeyData pulumi.StringInput `pulumi:"keyData"` +} + +func (AuthenticationCertificateDetailsArgs) ElementType() reflect.Type { + return reflect.TypeOf((*AuthenticationCertificateDetails)(nil)).Elem() +} + +func (i AuthenticationCertificateDetailsArgs) ToAuthenticationCertificateDetailsOutput() AuthenticationCertificateDetailsOutput { + return i.ToAuthenticationCertificateDetailsOutputWithContext(context.Background()) +} + +func (i AuthenticationCertificateDetailsArgs) ToAuthenticationCertificateDetailsOutputWithContext(ctx context.Context) AuthenticationCertificateDetailsOutput { + return pulumi.ToOutputWithContext(ctx, i).(AuthenticationCertificateDetailsOutput) +} + +func (i AuthenticationCertificateDetailsArgs) ToAuthenticationCertificateDetailsPtrOutput() AuthenticationCertificateDetailsPtrOutput { + return i.ToAuthenticationCertificateDetailsPtrOutputWithContext(context.Background()) +} + +func (i AuthenticationCertificateDetailsArgs) ToAuthenticationCertificateDetailsPtrOutputWithContext(ctx context.Context) AuthenticationCertificateDetailsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(AuthenticationCertificateDetailsOutput).ToAuthenticationCertificateDetailsPtrOutputWithContext(ctx) +} + +// AuthenticationCertificateDetailsPtrInput is an input type that accepts AuthenticationCertificateDetailsArgs, AuthenticationCertificateDetailsPtr and AuthenticationCertificateDetailsPtrOutput values. +// You can construct a concrete instance of `AuthenticationCertificateDetailsPtrInput` via: +// +// AuthenticationCertificateDetailsArgs{...} +// +// or: +// +// nil +type AuthenticationCertificateDetailsPtrInput interface { + pulumi.Input + + ToAuthenticationCertificateDetailsPtrOutput() AuthenticationCertificateDetailsPtrOutput + ToAuthenticationCertificateDetailsPtrOutputWithContext(context.Context) AuthenticationCertificateDetailsPtrOutput +} + +type authenticationCertificateDetailsPtrType AuthenticationCertificateDetailsArgs + +func AuthenticationCertificateDetailsPtr(v *AuthenticationCertificateDetailsArgs) AuthenticationCertificateDetailsPtrInput { + return (*authenticationCertificateDetailsPtrType)(v) +} + +func (*authenticationCertificateDetailsPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**AuthenticationCertificateDetails)(nil)).Elem() +} + +func (i *authenticationCertificateDetailsPtrType) ToAuthenticationCertificateDetailsPtrOutput() AuthenticationCertificateDetailsPtrOutput { + return i.ToAuthenticationCertificateDetailsPtrOutputWithContext(context.Background()) +} + +func (i *authenticationCertificateDetailsPtrType) ToAuthenticationCertificateDetailsPtrOutputWithContext(ctx context.Context) AuthenticationCertificateDetailsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(AuthenticationCertificateDetailsPtrOutput) +} + +type AuthenticationCertificateDetailsOutput struct{ *pulumi.OutputState } + +func (AuthenticationCertificateDetailsOutput) ElementType() reflect.Type { + return reflect.TypeOf((*AuthenticationCertificateDetails)(nil)).Elem() +} + +func (o AuthenticationCertificateDetailsOutput) ToAuthenticationCertificateDetailsOutput() AuthenticationCertificateDetailsOutput { + return o +} + +func (o AuthenticationCertificateDetailsOutput) ToAuthenticationCertificateDetailsOutputWithContext(ctx context.Context) AuthenticationCertificateDetailsOutput { + return o +} + +func (o AuthenticationCertificateDetailsOutput) ToAuthenticationCertificateDetailsPtrOutput() AuthenticationCertificateDetailsPtrOutput { + return o.ToAuthenticationCertificateDetailsPtrOutputWithContext(context.Background()) +} + +func (o AuthenticationCertificateDetailsOutput) ToAuthenticationCertificateDetailsPtrOutputWithContext(ctx context.Context) AuthenticationCertificateDetailsPtrOutput { + return o.ApplyT(func(v AuthenticationCertificateDetails) *AuthenticationCertificateDetails { + return &v + }).(AuthenticationCertificateDetailsPtrOutput) +} + +// Base64 encoded client certificate data. +func (o AuthenticationCertificateDetailsOutput) CertificateData() pulumi.StringOutput { + return o.ApplyT(func(v AuthenticationCertificateDetails) string { return v.CertificateData }).(pulumi.StringOutput) +} + +// Base64 encoded key data. +func (o AuthenticationCertificateDetailsOutput) KeyData() pulumi.StringOutput { + return o.ApplyT(func(v AuthenticationCertificateDetails) string { return v.KeyData }).(pulumi.StringOutput) +} + +type AuthenticationCertificateDetailsPtrOutput struct{ *pulumi.OutputState } + +func (AuthenticationCertificateDetailsPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**AuthenticationCertificateDetails)(nil)).Elem() +} + +func (o AuthenticationCertificateDetailsPtrOutput) ToAuthenticationCertificateDetailsPtrOutput() AuthenticationCertificateDetailsPtrOutput { + return o +} + +func (o AuthenticationCertificateDetailsPtrOutput) ToAuthenticationCertificateDetailsPtrOutputWithContext(ctx context.Context) AuthenticationCertificateDetailsPtrOutput { + return o +} + +func (o AuthenticationCertificateDetailsPtrOutput) Elem() AuthenticationCertificateDetailsOutput { + return o.ApplyT(func(v *AuthenticationCertificateDetails) AuthenticationCertificateDetails { return *v }).(AuthenticationCertificateDetailsOutput) +} + +// Base64 encoded client certificate data. +func (o AuthenticationCertificateDetailsPtrOutput) CertificateData() pulumi.StringPtrOutput { + return o.ApplyT(func(v *AuthenticationCertificateDetails) *string { + if v == nil { + return nil + } + return &v.CertificateData + }).(pulumi.StringPtrOutput) +} + +// Base64 encoded key data. +func (o AuthenticationCertificateDetailsPtrOutput) KeyData() pulumi.StringPtrOutput { + return o.ApplyT(func(v *AuthenticationCertificateDetails) *string { + if v == nil { + return nil + } + return &v.KeyData + }).(pulumi.StringPtrOutput) +} + +type AuthenticationDetailsValue struct { + ClientCertificate *AuthenticationCertificateDetails `pulumi:"clientCertificate"` + // Authentication token. + Token *string `pulumi:"token"` +} + +// AuthenticationDetailsValueInput is an input type that accepts AuthenticationDetailsValueArgs and AuthenticationDetailsValueOutput values. +// You can construct a concrete instance of `AuthenticationDetailsValueInput` via: +// +// AuthenticationDetailsValueArgs{...} +type AuthenticationDetailsValueInput interface { + pulumi.Input + + ToAuthenticationDetailsValueOutput() AuthenticationDetailsValueOutput + ToAuthenticationDetailsValueOutputWithContext(context.Context) AuthenticationDetailsValueOutput +} + +type AuthenticationDetailsValueArgs struct { + ClientCertificate AuthenticationCertificateDetailsPtrInput `pulumi:"clientCertificate"` + // Authentication token. + Token pulumi.StringPtrInput `pulumi:"token"` +} + +func (AuthenticationDetailsValueArgs) ElementType() reflect.Type { + return reflect.TypeOf((*AuthenticationDetailsValue)(nil)).Elem() +} + +func (i AuthenticationDetailsValueArgs) ToAuthenticationDetailsValueOutput() AuthenticationDetailsValueOutput { + return i.ToAuthenticationDetailsValueOutputWithContext(context.Background()) +} + +func (i AuthenticationDetailsValueArgs) ToAuthenticationDetailsValueOutputWithContext(ctx context.Context) AuthenticationDetailsValueOutput { + return pulumi.ToOutputWithContext(ctx, i).(AuthenticationDetailsValueOutput) +} + +type AuthenticationDetailsValueOutput struct{ *pulumi.OutputState } + +func (AuthenticationDetailsValueOutput) ElementType() reflect.Type { + return reflect.TypeOf((*AuthenticationDetailsValue)(nil)).Elem() +} + +func (o AuthenticationDetailsValueOutput) ToAuthenticationDetailsValueOutput() AuthenticationDetailsValueOutput { + return o +} + +func (o AuthenticationDetailsValueOutput) ToAuthenticationDetailsValueOutputWithContext(ctx context.Context) AuthenticationDetailsValueOutput { + return o +} + +func (o AuthenticationDetailsValueOutput) ClientCertificate() AuthenticationCertificateDetailsPtrOutput { + return o.ApplyT(func(v AuthenticationDetailsValue) *AuthenticationCertificateDetails { return v.ClientCertificate }).(AuthenticationCertificateDetailsPtrOutput) +} + +// Authentication token. +func (o AuthenticationDetailsValueOutput) Token() pulumi.StringPtrOutput { + return o.ApplyT(func(v AuthenticationDetailsValue) *string { return v.Token }).(pulumi.StringPtrOutput) +} + type ConnectedClusterAADProfile struct { // The client app id configured on target K8 cluster ClientAppId string `pulumi:"clientAppId"` @@ -764,6 +972,9 @@ func (o CredentialResultResponseArrayOutput) Index(i pulumi.IntInput) Credential } func init() { + pulumi.RegisterOutputType(AuthenticationCertificateDetailsOutput{}) + pulumi.RegisterOutputType(AuthenticationCertificateDetailsPtrOutput{}) + pulumi.RegisterOutputType(AuthenticationDetailsValueOutput{}) pulumi.RegisterOutputType(ConnectedClusterAADProfileOutput{}) pulumi.RegisterOutputType(ConnectedClusterAADProfilePtrOutput{}) pulumi.RegisterOutputType(ConnectedClusterAADProfileResponseOutput{}) diff --git a/sdk/go/azurerm/netapp/latest/getsnapshotPolicy.go b/sdk/go/azurerm/netapp/latest/getsnapshotPolicy.go index e4032a2b43c7..ed3d9175ef92 100644 --- a/sdk/go/azurerm/netapp/latest/getsnapshotPolicy.go +++ b/sdk/go/azurerm/netapp/latest/getsnapshotPolicy.go @@ -28,21 +28,23 @@ type GetsnapshotPolicyArgs struct { // Snapshot policy information type GetsnapshotPolicyResult struct { // Schedule for daily snapshots - DailySchedule map[string]interface{} `pulumi:"dailySchedule"` + DailySchedule *DailyScheduleResponse `pulumi:"dailySchedule"` // The property to decide policy is enabled or not Enabled *bool `pulumi:"enabled"` // Schedule for hourly snapshots - HourlySchedule map[string]interface{} `pulumi:"hourlySchedule"` + HourlySchedule *HourlyScheduleResponse `pulumi:"hourlySchedule"` // Resource location Location string `pulumi:"location"` // Schedule for monthly snapshots - MonthlySchedule map[string]interface{} `pulumi:"monthlySchedule"` - // Resource name + MonthlySchedule *MonthlyScheduleResponse `pulumi:"monthlySchedule"` + // Snapshot policy name Name string `pulumi:"name"` + // Azure lifecycle management + ProvisioningState string `pulumi:"provisioningState"` // Resource tags Tags map[string]string `pulumi:"tags"` // Resource type Type string `pulumi:"type"` // Schedule for weekly snapshots - WeeklySchedule map[string]interface{} `pulumi:"weeklySchedule"` + WeeklySchedule *WeeklyScheduleResponse `pulumi:"weeklySchedule"` } diff --git a/sdk/go/azurerm/netapp/latest/pulumiTypes.go b/sdk/go/azurerm/netapp/latest/pulumiTypes.go index 1b139eb18ea5..d55bbcc17762 100644 --- a/sdk/go/azurerm/netapp/latest/pulumiTypes.go +++ b/sdk/go/azurerm/netapp/latest/pulumiTypes.go @@ -473,6 +473,47 @@ func (i DailyScheduleArgs) ToDailyScheduleOutputWithContext(ctx context.Context) return pulumi.ToOutputWithContext(ctx, i).(DailyScheduleOutput) } +func (i DailyScheduleArgs) ToDailySchedulePtrOutput() DailySchedulePtrOutput { + return i.ToDailySchedulePtrOutputWithContext(context.Background()) +} + +func (i DailyScheduleArgs) ToDailySchedulePtrOutputWithContext(ctx context.Context) DailySchedulePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(DailyScheduleOutput).ToDailySchedulePtrOutputWithContext(ctx) +} + +// DailySchedulePtrInput is an input type that accepts DailyScheduleArgs, DailySchedulePtr and DailySchedulePtrOutput values. +// You can construct a concrete instance of `DailySchedulePtrInput` via: +// +// DailyScheduleArgs{...} +// +// or: +// +// nil +type DailySchedulePtrInput interface { + pulumi.Input + + ToDailySchedulePtrOutput() DailySchedulePtrOutput + ToDailySchedulePtrOutputWithContext(context.Context) DailySchedulePtrOutput +} + +type dailySchedulePtrType DailyScheduleArgs + +func DailySchedulePtr(v *DailyScheduleArgs) DailySchedulePtrInput { + return (*dailySchedulePtrType)(v) +} + +func (*dailySchedulePtrType) ElementType() reflect.Type { + return reflect.TypeOf((**DailySchedule)(nil)).Elem() +} + +func (i *dailySchedulePtrType) ToDailySchedulePtrOutput() DailySchedulePtrOutput { + return i.ToDailySchedulePtrOutputWithContext(context.Background()) +} + +func (i *dailySchedulePtrType) ToDailySchedulePtrOutputWithContext(ctx context.Context) DailySchedulePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(DailySchedulePtrOutput) +} + // Daily Schedule properties type DailyScheduleOutput struct{ *pulumi.OutputState } @@ -488,6 +529,16 @@ func (o DailyScheduleOutput) ToDailyScheduleOutputWithContext(ctx context.Contex return o } +func (o DailyScheduleOutput) ToDailySchedulePtrOutput() DailySchedulePtrOutput { + return o.ToDailySchedulePtrOutputWithContext(context.Background()) +} + +func (o DailyScheduleOutput) ToDailySchedulePtrOutputWithContext(ctx context.Context) DailySchedulePtrOutput { + return o.ApplyT(func(v DailySchedule) *DailySchedule { + return &v + }).(DailySchedulePtrOutput) +} + // Indicates which hour in UTC timezone a snapshot should be taken func (o DailyScheduleOutput) Hour() pulumi.IntPtrOutput { return o.ApplyT(func(v DailySchedule) *int { return v.Hour }).(pulumi.IntPtrOutput) @@ -508,6 +559,64 @@ func (o DailyScheduleOutput) UsedBytes() pulumi.IntPtrOutput { return o.ApplyT(func(v DailySchedule) *int { return v.UsedBytes }).(pulumi.IntPtrOutput) } +type DailySchedulePtrOutput struct{ *pulumi.OutputState } + +func (DailySchedulePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**DailySchedule)(nil)).Elem() +} + +func (o DailySchedulePtrOutput) ToDailySchedulePtrOutput() DailySchedulePtrOutput { + return o +} + +func (o DailySchedulePtrOutput) ToDailySchedulePtrOutputWithContext(ctx context.Context) DailySchedulePtrOutput { + return o +} + +func (o DailySchedulePtrOutput) Elem() DailyScheduleOutput { + return o.ApplyT(func(v *DailySchedule) DailySchedule { return *v }).(DailyScheduleOutput) +} + +// Indicates which hour in UTC timezone a snapshot should be taken +func (o DailySchedulePtrOutput) Hour() pulumi.IntPtrOutput { + return o.ApplyT(func(v *DailySchedule) *int { + if v == nil { + return nil + } + return v.Hour + }).(pulumi.IntPtrOutput) +} + +// Indicates which minute snapshot should be taken +func (o DailySchedulePtrOutput) Minute() pulumi.IntPtrOutput { + return o.ApplyT(func(v *DailySchedule) *int { + if v == nil { + return nil + } + return v.Minute + }).(pulumi.IntPtrOutput) +} + +// Daily snapshot count to keep +func (o DailySchedulePtrOutput) SnapshotsToKeep() pulumi.IntPtrOutput { + return o.ApplyT(func(v *DailySchedule) *int { + if v == nil { + return nil + } + return v.SnapshotsToKeep + }).(pulumi.IntPtrOutput) +} + +// Resource size in bytes, current storage usage for the volume in bytes +func (o DailySchedulePtrOutput) UsedBytes() pulumi.IntPtrOutput { + return o.ApplyT(func(v *DailySchedule) *int { + if v == nil { + return nil + } + return v.UsedBytes + }).(pulumi.IntPtrOutput) +} + // Daily Schedule properties type DailyScheduleResponse struct { // Indicates which hour in UTC timezone a snapshot should be taken @@ -555,6 +664,47 @@ func (i DailyScheduleResponseArgs) ToDailyScheduleResponseOutputWithContext(ctx return pulumi.ToOutputWithContext(ctx, i).(DailyScheduleResponseOutput) } +func (i DailyScheduleResponseArgs) ToDailyScheduleResponsePtrOutput() DailyScheduleResponsePtrOutput { + return i.ToDailyScheduleResponsePtrOutputWithContext(context.Background()) +} + +func (i DailyScheduleResponseArgs) ToDailyScheduleResponsePtrOutputWithContext(ctx context.Context) DailyScheduleResponsePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(DailyScheduleResponseOutput).ToDailyScheduleResponsePtrOutputWithContext(ctx) +} + +// DailyScheduleResponsePtrInput is an input type that accepts DailyScheduleResponseArgs, DailyScheduleResponsePtr and DailyScheduleResponsePtrOutput values. +// You can construct a concrete instance of `DailyScheduleResponsePtrInput` via: +// +// DailyScheduleResponseArgs{...} +// +// or: +// +// nil +type DailyScheduleResponsePtrInput interface { + pulumi.Input + + ToDailyScheduleResponsePtrOutput() DailyScheduleResponsePtrOutput + ToDailyScheduleResponsePtrOutputWithContext(context.Context) DailyScheduleResponsePtrOutput +} + +type dailyScheduleResponsePtrType DailyScheduleResponseArgs + +func DailyScheduleResponsePtr(v *DailyScheduleResponseArgs) DailyScheduleResponsePtrInput { + return (*dailyScheduleResponsePtrType)(v) +} + +func (*dailyScheduleResponsePtrType) ElementType() reflect.Type { + return reflect.TypeOf((**DailyScheduleResponse)(nil)).Elem() +} + +func (i *dailyScheduleResponsePtrType) ToDailyScheduleResponsePtrOutput() DailyScheduleResponsePtrOutput { + return i.ToDailyScheduleResponsePtrOutputWithContext(context.Background()) +} + +func (i *dailyScheduleResponsePtrType) ToDailyScheduleResponsePtrOutputWithContext(ctx context.Context) DailyScheduleResponsePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(DailyScheduleResponsePtrOutput) +} + // Daily Schedule properties type DailyScheduleResponseOutput struct{ *pulumi.OutputState } @@ -570,6 +720,16 @@ func (o DailyScheduleResponseOutput) ToDailyScheduleResponseOutputWithContext(ct return o } +func (o DailyScheduleResponseOutput) ToDailyScheduleResponsePtrOutput() DailyScheduleResponsePtrOutput { + return o.ToDailyScheduleResponsePtrOutputWithContext(context.Background()) +} + +func (o DailyScheduleResponseOutput) ToDailyScheduleResponsePtrOutputWithContext(ctx context.Context) DailyScheduleResponsePtrOutput { + return o.ApplyT(func(v DailyScheduleResponse) *DailyScheduleResponse { + return &v + }).(DailyScheduleResponsePtrOutput) +} + // Indicates which hour in UTC timezone a snapshot should be taken func (o DailyScheduleResponseOutput) Hour() pulumi.IntPtrOutput { return o.ApplyT(func(v DailyScheduleResponse) *int { return v.Hour }).(pulumi.IntPtrOutput) @@ -590,6 +750,64 @@ func (o DailyScheduleResponseOutput) UsedBytes() pulumi.IntPtrOutput { return o.ApplyT(func(v DailyScheduleResponse) *int { return v.UsedBytes }).(pulumi.IntPtrOutput) } +type DailyScheduleResponsePtrOutput struct{ *pulumi.OutputState } + +func (DailyScheduleResponsePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**DailyScheduleResponse)(nil)).Elem() +} + +func (o DailyScheduleResponsePtrOutput) ToDailyScheduleResponsePtrOutput() DailyScheduleResponsePtrOutput { + return o +} + +func (o DailyScheduleResponsePtrOutput) ToDailyScheduleResponsePtrOutputWithContext(ctx context.Context) DailyScheduleResponsePtrOutput { + return o +} + +func (o DailyScheduleResponsePtrOutput) Elem() DailyScheduleResponseOutput { + return o.ApplyT(func(v *DailyScheduleResponse) DailyScheduleResponse { return *v }).(DailyScheduleResponseOutput) +} + +// Indicates which hour in UTC timezone a snapshot should be taken +func (o DailyScheduleResponsePtrOutput) Hour() pulumi.IntPtrOutput { + return o.ApplyT(func(v *DailyScheduleResponse) *int { + if v == nil { + return nil + } + return v.Hour + }).(pulumi.IntPtrOutput) +} + +// Indicates which minute snapshot should be taken +func (o DailyScheduleResponsePtrOutput) Minute() pulumi.IntPtrOutput { + return o.ApplyT(func(v *DailyScheduleResponse) *int { + if v == nil { + return nil + } + return v.Minute + }).(pulumi.IntPtrOutput) +} + +// Daily snapshot count to keep +func (o DailyScheduleResponsePtrOutput) SnapshotsToKeep() pulumi.IntPtrOutput { + return o.ApplyT(func(v *DailyScheduleResponse) *int { + if v == nil { + return nil + } + return v.SnapshotsToKeep + }).(pulumi.IntPtrOutput) +} + +// Resource size in bytes, current storage usage for the volume in bytes +func (o DailyScheduleResponsePtrOutput) UsedBytes() pulumi.IntPtrOutput { + return o.ApplyT(func(v *DailyScheduleResponse) *int { + if v == nil { + return nil + } + return v.UsedBytes + }).(pulumi.IntPtrOutput) +} + // Volume Export Policy Rule type ExportPolicyRule struct { // Client ingress specification as comma separated string with IPv4 CIDRs, IPv4 host addresses and host names @@ -1067,6 +1285,47 @@ func (i HourlyScheduleArgs) ToHourlyScheduleOutputWithContext(ctx context.Contex return pulumi.ToOutputWithContext(ctx, i).(HourlyScheduleOutput) } +func (i HourlyScheduleArgs) ToHourlySchedulePtrOutput() HourlySchedulePtrOutput { + return i.ToHourlySchedulePtrOutputWithContext(context.Background()) +} + +func (i HourlyScheduleArgs) ToHourlySchedulePtrOutputWithContext(ctx context.Context) HourlySchedulePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(HourlyScheduleOutput).ToHourlySchedulePtrOutputWithContext(ctx) +} + +// HourlySchedulePtrInput is an input type that accepts HourlyScheduleArgs, HourlySchedulePtr and HourlySchedulePtrOutput values. +// You can construct a concrete instance of `HourlySchedulePtrInput` via: +// +// HourlyScheduleArgs{...} +// +// or: +// +// nil +type HourlySchedulePtrInput interface { + pulumi.Input + + ToHourlySchedulePtrOutput() HourlySchedulePtrOutput + ToHourlySchedulePtrOutputWithContext(context.Context) HourlySchedulePtrOutput +} + +type hourlySchedulePtrType HourlyScheduleArgs + +func HourlySchedulePtr(v *HourlyScheduleArgs) HourlySchedulePtrInput { + return (*hourlySchedulePtrType)(v) +} + +func (*hourlySchedulePtrType) ElementType() reflect.Type { + return reflect.TypeOf((**HourlySchedule)(nil)).Elem() +} + +func (i *hourlySchedulePtrType) ToHourlySchedulePtrOutput() HourlySchedulePtrOutput { + return i.ToHourlySchedulePtrOutputWithContext(context.Background()) +} + +func (i *hourlySchedulePtrType) ToHourlySchedulePtrOutputWithContext(ctx context.Context) HourlySchedulePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(HourlySchedulePtrOutput) +} + // Hourly Schedule properties type HourlyScheduleOutput struct{ *pulumi.OutputState } @@ -1082,6 +1341,16 @@ func (o HourlyScheduleOutput) ToHourlyScheduleOutputWithContext(ctx context.Cont return o } +func (o HourlyScheduleOutput) ToHourlySchedulePtrOutput() HourlySchedulePtrOutput { + return o.ToHourlySchedulePtrOutputWithContext(context.Background()) +} + +func (o HourlyScheduleOutput) ToHourlySchedulePtrOutputWithContext(ctx context.Context) HourlySchedulePtrOutput { + return o.ApplyT(func(v HourlySchedule) *HourlySchedule { + return &v + }).(HourlySchedulePtrOutput) +} + // Indicates which minute snapshot should be taken func (o HourlyScheduleOutput) Minute() pulumi.IntPtrOutput { return o.ApplyT(func(v HourlySchedule) *int { return v.Minute }).(pulumi.IntPtrOutput) @@ -1097,6 +1366,54 @@ func (o HourlyScheduleOutput) UsedBytes() pulumi.IntPtrOutput { return o.ApplyT(func(v HourlySchedule) *int { return v.UsedBytes }).(pulumi.IntPtrOutput) } +type HourlySchedulePtrOutput struct{ *pulumi.OutputState } + +func (HourlySchedulePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**HourlySchedule)(nil)).Elem() +} + +func (o HourlySchedulePtrOutput) ToHourlySchedulePtrOutput() HourlySchedulePtrOutput { + return o +} + +func (o HourlySchedulePtrOutput) ToHourlySchedulePtrOutputWithContext(ctx context.Context) HourlySchedulePtrOutput { + return o +} + +func (o HourlySchedulePtrOutput) Elem() HourlyScheduleOutput { + return o.ApplyT(func(v *HourlySchedule) HourlySchedule { return *v }).(HourlyScheduleOutput) +} + +// Indicates which minute snapshot should be taken +func (o HourlySchedulePtrOutput) Minute() pulumi.IntPtrOutput { + return o.ApplyT(func(v *HourlySchedule) *int { + if v == nil { + return nil + } + return v.Minute + }).(pulumi.IntPtrOutput) +} + +// Hourly snapshot count to keep +func (o HourlySchedulePtrOutput) SnapshotsToKeep() pulumi.IntPtrOutput { + return o.ApplyT(func(v *HourlySchedule) *int { + if v == nil { + return nil + } + return v.SnapshotsToKeep + }).(pulumi.IntPtrOutput) +} + +// Resource size in bytes, current storage usage for the volume in bytes +func (o HourlySchedulePtrOutput) UsedBytes() pulumi.IntPtrOutput { + return o.ApplyT(func(v *HourlySchedule) *int { + if v == nil { + return nil + } + return v.UsedBytes + }).(pulumi.IntPtrOutput) +} + // Hourly Schedule properties type HourlyScheduleResponse struct { // Indicates which minute snapshot should be taken @@ -1140,6 +1457,47 @@ func (i HourlyScheduleResponseArgs) ToHourlyScheduleResponseOutputWithContext(ct return pulumi.ToOutputWithContext(ctx, i).(HourlyScheduleResponseOutput) } +func (i HourlyScheduleResponseArgs) ToHourlyScheduleResponsePtrOutput() HourlyScheduleResponsePtrOutput { + return i.ToHourlyScheduleResponsePtrOutputWithContext(context.Background()) +} + +func (i HourlyScheduleResponseArgs) ToHourlyScheduleResponsePtrOutputWithContext(ctx context.Context) HourlyScheduleResponsePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(HourlyScheduleResponseOutput).ToHourlyScheduleResponsePtrOutputWithContext(ctx) +} + +// HourlyScheduleResponsePtrInput is an input type that accepts HourlyScheduleResponseArgs, HourlyScheduleResponsePtr and HourlyScheduleResponsePtrOutput values. +// You can construct a concrete instance of `HourlyScheduleResponsePtrInput` via: +// +// HourlyScheduleResponseArgs{...} +// +// or: +// +// nil +type HourlyScheduleResponsePtrInput interface { + pulumi.Input + + ToHourlyScheduleResponsePtrOutput() HourlyScheduleResponsePtrOutput + ToHourlyScheduleResponsePtrOutputWithContext(context.Context) HourlyScheduleResponsePtrOutput +} + +type hourlyScheduleResponsePtrType HourlyScheduleResponseArgs + +func HourlyScheduleResponsePtr(v *HourlyScheduleResponseArgs) HourlyScheduleResponsePtrInput { + return (*hourlyScheduleResponsePtrType)(v) +} + +func (*hourlyScheduleResponsePtrType) ElementType() reflect.Type { + return reflect.TypeOf((**HourlyScheduleResponse)(nil)).Elem() +} + +func (i *hourlyScheduleResponsePtrType) ToHourlyScheduleResponsePtrOutput() HourlyScheduleResponsePtrOutput { + return i.ToHourlyScheduleResponsePtrOutputWithContext(context.Background()) +} + +func (i *hourlyScheduleResponsePtrType) ToHourlyScheduleResponsePtrOutputWithContext(ctx context.Context) HourlyScheduleResponsePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(HourlyScheduleResponsePtrOutput) +} + // Hourly Schedule properties type HourlyScheduleResponseOutput struct{ *pulumi.OutputState } @@ -1155,6 +1513,16 @@ func (o HourlyScheduleResponseOutput) ToHourlyScheduleResponseOutputWithContext( return o } +func (o HourlyScheduleResponseOutput) ToHourlyScheduleResponsePtrOutput() HourlyScheduleResponsePtrOutput { + return o.ToHourlyScheduleResponsePtrOutputWithContext(context.Background()) +} + +func (o HourlyScheduleResponseOutput) ToHourlyScheduleResponsePtrOutputWithContext(ctx context.Context) HourlyScheduleResponsePtrOutput { + return o.ApplyT(func(v HourlyScheduleResponse) *HourlyScheduleResponse { + return &v + }).(HourlyScheduleResponsePtrOutput) +} + // Indicates which minute snapshot should be taken func (o HourlyScheduleResponseOutput) Minute() pulumi.IntPtrOutput { return o.ApplyT(func(v HourlyScheduleResponse) *int { return v.Minute }).(pulumi.IntPtrOutput) @@ -1170,6 +1538,54 @@ func (o HourlyScheduleResponseOutput) UsedBytes() pulumi.IntPtrOutput { return o.ApplyT(func(v HourlyScheduleResponse) *int { return v.UsedBytes }).(pulumi.IntPtrOutput) } +type HourlyScheduleResponsePtrOutput struct{ *pulumi.OutputState } + +func (HourlyScheduleResponsePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**HourlyScheduleResponse)(nil)).Elem() +} + +func (o HourlyScheduleResponsePtrOutput) ToHourlyScheduleResponsePtrOutput() HourlyScheduleResponsePtrOutput { + return o +} + +func (o HourlyScheduleResponsePtrOutput) ToHourlyScheduleResponsePtrOutputWithContext(ctx context.Context) HourlyScheduleResponsePtrOutput { + return o +} + +func (o HourlyScheduleResponsePtrOutput) Elem() HourlyScheduleResponseOutput { + return o.ApplyT(func(v *HourlyScheduleResponse) HourlyScheduleResponse { return *v }).(HourlyScheduleResponseOutput) +} + +// Indicates which minute snapshot should be taken +func (o HourlyScheduleResponsePtrOutput) Minute() pulumi.IntPtrOutput { + return o.ApplyT(func(v *HourlyScheduleResponse) *int { + if v == nil { + return nil + } + return v.Minute + }).(pulumi.IntPtrOutput) +} + +// Hourly snapshot count to keep +func (o HourlyScheduleResponsePtrOutput) SnapshotsToKeep() pulumi.IntPtrOutput { + return o.ApplyT(func(v *HourlyScheduleResponse) *int { + if v == nil { + return nil + } + return v.SnapshotsToKeep + }).(pulumi.IntPtrOutput) +} + +// Resource size in bytes, current storage usage for the volume in bytes +func (o HourlyScheduleResponsePtrOutput) UsedBytes() pulumi.IntPtrOutput { + return o.ApplyT(func(v *HourlyScheduleResponse) *int { + if v == nil { + return nil + } + return v.UsedBytes + }).(pulumi.IntPtrOutput) +} + // Monthly Schedule properties type MonthlySchedule struct { // Indicates which days of the month snapshot should be taken. A comma delimited string. @@ -1213,52 +1629,171 @@ func (MonthlyScheduleArgs) ElementType() reflect.Type { return reflect.TypeOf((*MonthlySchedule)(nil)).Elem() } -func (i MonthlyScheduleArgs) ToMonthlyScheduleOutput() MonthlyScheduleOutput { - return i.ToMonthlyScheduleOutputWithContext(context.Background()) +func (i MonthlyScheduleArgs) ToMonthlyScheduleOutput() MonthlyScheduleOutput { + return i.ToMonthlyScheduleOutputWithContext(context.Background()) +} + +func (i MonthlyScheduleArgs) ToMonthlyScheduleOutputWithContext(ctx context.Context) MonthlyScheduleOutput { + return pulumi.ToOutputWithContext(ctx, i).(MonthlyScheduleOutput) +} + +func (i MonthlyScheduleArgs) ToMonthlySchedulePtrOutput() MonthlySchedulePtrOutput { + return i.ToMonthlySchedulePtrOutputWithContext(context.Background()) +} + +func (i MonthlyScheduleArgs) ToMonthlySchedulePtrOutputWithContext(ctx context.Context) MonthlySchedulePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(MonthlyScheduleOutput).ToMonthlySchedulePtrOutputWithContext(ctx) +} + +// MonthlySchedulePtrInput is an input type that accepts MonthlyScheduleArgs, MonthlySchedulePtr and MonthlySchedulePtrOutput values. +// You can construct a concrete instance of `MonthlySchedulePtrInput` via: +// +// MonthlyScheduleArgs{...} +// +// or: +// +// nil +type MonthlySchedulePtrInput interface { + pulumi.Input + + ToMonthlySchedulePtrOutput() MonthlySchedulePtrOutput + ToMonthlySchedulePtrOutputWithContext(context.Context) MonthlySchedulePtrOutput +} + +type monthlySchedulePtrType MonthlyScheduleArgs + +func MonthlySchedulePtr(v *MonthlyScheduleArgs) MonthlySchedulePtrInput { + return (*monthlySchedulePtrType)(v) +} + +func (*monthlySchedulePtrType) ElementType() reflect.Type { + return reflect.TypeOf((**MonthlySchedule)(nil)).Elem() +} + +func (i *monthlySchedulePtrType) ToMonthlySchedulePtrOutput() MonthlySchedulePtrOutput { + return i.ToMonthlySchedulePtrOutputWithContext(context.Background()) +} + +func (i *monthlySchedulePtrType) ToMonthlySchedulePtrOutputWithContext(ctx context.Context) MonthlySchedulePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(MonthlySchedulePtrOutput) +} + +// Monthly Schedule properties +type MonthlyScheduleOutput struct{ *pulumi.OutputState } + +func (MonthlyScheduleOutput) ElementType() reflect.Type { + return reflect.TypeOf((*MonthlySchedule)(nil)).Elem() +} + +func (o MonthlyScheduleOutput) ToMonthlyScheduleOutput() MonthlyScheduleOutput { + return o +} + +func (o MonthlyScheduleOutput) ToMonthlyScheduleOutputWithContext(ctx context.Context) MonthlyScheduleOutput { + return o +} + +func (o MonthlyScheduleOutput) ToMonthlySchedulePtrOutput() MonthlySchedulePtrOutput { + return o.ToMonthlySchedulePtrOutputWithContext(context.Background()) +} + +func (o MonthlyScheduleOutput) ToMonthlySchedulePtrOutputWithContext(ctx context.Context) MonthlySchedulePtrOutput { + return o.ApplyT(func(v MonthlySchedule) *MonthlySchedule { + return &v + }).(MonthlySchedulePtrOutput) +} + +// Indicates which days of the month snapshot should be taken. A comma delimited string. +func (o MonthlyScheduleOutput) DaysOfMonth() pulumi.StringPtrOutput { + return o.ApplyT(func(v MonthlySchedule) *string { return v.DaysOfMonth }).(pulumi.StringPtrOutput) +} + +// Indicates which hour in UTC timezone a snapshot should be taken +func (o MonthlyScheduleOutput) Hour() pulumi.IntPtrOutput { + return o.ApplyT(func(v MonthlySchedule) *int { return v.Hour }).(pulumi.IntPtrOutput) +} + +// Indicates which minute snapshot should be taken +func (o MonthlyScheduleOutput) Minute() pulumi.IntPtrOutput { + return o.ApplyT(func(v MonthlySchedule) *int { return v.Minute }).(pulumi.IntPtrOutput) +} + +// Monthly snapshot count to keep +func (o MonthlyScheduleOutput) SnapshotsToKeep() pulumi.IntPtrOutput { + return o.ApplyT(func(v MonthlySchedule) *int { return v.SnapshotsToKeep }).(pulumi.IntPtrOutput) } -func (i MonthlyScheduleArgs) ToMonthlyScheduleOutputWithContext(ctx context.Context) MonthlyScheduleOutput { - return pulumi.ToOutputWithContext(ctx, i).(MonthlyScheduleOutput) +// Resource size in bytes, current storage usage for the volume in bytes +func (o MonthlyScheduleOutput) UsedBytes() pulumi.IntPtrOutput { + return o.ApplyT(func(v MonthlySchedule) *int { return v.UsedBytes }).(pulumi.IntPtrOutput) } -// Monthly Schedule properties -type MonthlyScheduleOutput struct{ *pulumi.OutputState } +type MonthlySchedulePtrOutput struct{ *pulumi.OutputState } -func (MonthlyScheduleOutput) ElementType() reflect.Type { - return reflect.TypeOf((*MonthlySchedule)(nil)).Elem() +func (MonthlySchedulePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**MonthlySchedule)(nil)).Elem() } -func (o MonthlyScheduleOutput) ToMonthlyScheduleOutput() MonthlyScheduleOutput { +func (o MonthlySchedulePtrOutput) ToMonthlySchedulePtrOutput() MonthlySchedulePtrOutput { return o } -func (o MonthlyScheduleOutput) ToMonthlyScheduleOutputWithContext(ctx context.Context) MonthlyScheduleOutput { +func (o MonthlySchedulePtrOutput) ToMonthlySchedulePtrOutputWithContext(ctx context.Context) MonthlySchedulePtrOutput { return o } +func (o MonthlySchedulePtrOutput) Elem() MonthlyScheduleOutput { + return o.ApplyT(func(v *MonthlySchedule) MonthlySchedule { return *v }).(MonthlyScheduleOutput) +} + // Indicates which days of the month snapshot should be taken. A comma delimited string. -func (o MonthlyScheduleOutput) DaysOfMonth() pulumi.StringPtrOutput { - return o.ApplyT(func(v MonthlySchedule) *string { return v.DaysOfMonth }).(pulumi.StringPtrOutput) +func (o MonthlySchedulePtrOutput) DaysOfMonth() pulumi.StringPtrOutput { + return o.ApplyT(func(v *MonthlySchedule) *string { + if v == nil { + return nil + } + return v.DaysOfMonth + }).(pulumi.StringPtrOutput) } // Indicates which hour in UTC timezone a snapshot should be taken -func (o MonthlyScheduleOutput) Hour() pulumi.IntPtrOutput { - return o.ApplyT(func(v MonthlySchedule) *int { return v.Hour }).(pulumi.IntPtrOutput) +func (o MonthlySchedulePtrOutput) Hour() pulumi.IntPtrOutput { + return o.ApplyT(func(v *MonthlySchedule) *int { + if v == nil { + return nil + } + return v.Hour + }).(pulumi.IntPtrOutput) } // Indicates which minute snapshot should be taken -func (o MonthlyScheduleOutput) Minute() pulumi.IntPtrOutput { - return o.ApplyT(func(v MonthlySchedule) *int { return v.Minute }).(pulumi.IntPtrOutput) +func (o MonthlySchedulePtrOutput) Minute() pulumi.IntPtrOutput { + return o.ApplyT(func(v *MonthlySchedule) *int { + if v == nil { + return nil + } + return v.Minute + }).(pulumi.IntPtrOutput) } // Monthly snapshot count to keep -func (o MonthlyScheduleOutput) SnapshotsToKeep() pulumi.IntPtrOutput { - return o.ApplyT(func(v MonthlySchedule) *int { return v.SnapshotsToKeep }).(pulumi.IntPtrOutput) +func (o MonthlySchedulePtrOutput) SnapshotsToKeep() pulumi.IntPtrOutput { + return o.ApplyT(func(v *MonthlySchedule) *int { + if v == nil { + return nil + } + return v.SnapshotsToKeep + }).(pulumi.IntPtrOutput) } // Resource size in bytes, current storage usage for the volume in bytes -func (o MonthlyScheduleOutput) UsedBytes() pulumi.IntPtrOutput { - return o.ApplyT(func(v MonthlySchedule) *int { return v.UsedBytes }).(pulumi.IntPtrOutput) +func (o MonthlySchedulePtrOutput) UsedBytes() pulumi.IntPtrOutput { + return o.ApplyT(func(v *MonthlySchedule) *int { + if v == nil { + return nil + } + return v.UsedBytes + }).(pulumi.IntPtrOutput) } // Monthly Schedule properties @@ -1312,6 +1847,47 @@ func (i MonthlyScheduleResponseArgs) ToMonthlyScheduleResponseOutputWithContext( return pulumi.ToOutputWithContext(ctx, i).(MonthlyScheduleResponseOutput) } +func (i MonthlyScheduleResponseArgs) ToMonthlyScheduleResponsePtrOutput() MonthlyScheduleResponsePtrOutput { + return i.ToMonthlyScheduleResponsePtrOutputWithContext(context.Background()) +} + +func (i MonthlyScheduleResponseArgs) ToMonthlyScheduleResponsePtrOutputWithContext(ctx context.Context) MonthlyScheduleResponsePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(MonthlyScheduleResponseOutput).ToMonthlyScheduleResponsePtrOutputWithContext(ctx) +} + +// MonthlyScheduleResponsePtrInput is an input type that accepts MonthlyScheduleResponseArgs, MonthlyScheduleResponsePtr and MonthlyScheduleResponsePtrOutput values. +// You can construct a concrete instance of `MonthlyScheduleResponsePtrInput` via: +// +// MonthlyScheduleResponseArgs{...} +// +// or: +// +// nil +type MonthlyScheduleResponsePtrInput interface { + pulumi.Input + + ToMonthlyScheduleResponsePtrOutput() MonthlyScheduleResponsePtrOutput + ToMonthlyScheduleResponsePtrOutputWithContext(context.Context) MonthlyScheduleResponsePtrOutput +} + +type monthlyScheduleResponsePtrType MonthlyScheduleResponseArgs + +func MonthlyScheduleResponsePtr(v *MonthlyScheduleResponseArgs) MonthlyScheduleResponsePtrInput { + return (*monthlyScheduleResponsePtrType)(v) +} + +func (*monthlyScheduleResponsePtrType) ElementType() reflect.Type { + return reflect.TypeOf((**MonthlyScheduleResponse)(nil)).Elem() +} + +func (i *monthlyScheduleResponsePtrType) ToMonthlyScheduleResponsePtrOutput() MonthlyScheduleResponsePtrOutput { + return i.ToMonthlyScheduleResponsePtrOutputWithContext(context.Background()) +} + +func (i *monthlyScheduleResponsePtrType) ToMonthlyScheduleResponsePtrOutputWithContext(ctx context.Context) MonthlyScheduleResponsePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(MonthlyScheduleResponsePtrOutput) +} + // Monthly Schedule properties type MonthlyScheduleResponseOutput struct{ *pulumi.OutputState } @@ -1327,6 +1903,16 @@ func (o MonthlyScheduleResponseOutput) ToMonthlyScheduleResponseOutputWithContex return o } +func (o MonthlyScheduleResponseOutput) ToMonthlyScheduleResponsePtrOutput() MonthlyScheduleResponsePtrOutput { + return o.ToMonthlyScheduleResponsePtrOutputWithContext(context.Background()) +} + +func (o MonthlyScheduleResponseOutput) ToMonthlyScheduleResponsePtrOutputWithContext(ctx context.Context) MonthlyScheduleResponsePtrOutput { + return o.ApplyT(func(v MonthlyScheduleResponse) *MonthlyScheduleResponse { + return &v + }).(MonthlyScheduleResponsePtrOutput) +} + // Indicates which days of the month snapshot should be taken. A comma delimited string. func (o MonthlyScheduleResponseOutput) DaysOfMonth() pulumi.StringPtrOutput { return o.ApplyT(func(v MonthlyScheduleResponse) *string { return v.DaysOfMonth }).(pulumi.StringPtrOutput) @@ -1352,6 +1938,74 @@ func (o MonthlyScheduleResponseOutput) UsedBytes() pulumi.IntPtrOutput { return o.ApplyT(func(v MonthlyScheduleResponse) *int { return v.UsedBytes }).(pulumi.IntPtrOutput) } +type MonthlyScheduleResponsePtrOutput struct{ *pulumi.OutputState } + +func (MonthlyScheduleResponsePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**MonthlyScheduleResponse)(nil)).Elem() +} + +func (o MonthlyScheduleResponsePtrOutput) ToMonthlyScheduleResponsePtrOutput() MonthlyScheduleResponsePtrOutput { + return o +} + +func (o MonthlyScheduleResponsePtrOutput) ToMonthlyScheduleResponsePtrOutputWithContext(ctx context.Context) MonthlyScheduleResponsePtrOutput { + return o +} + +func (o MonthlyScheduleResponsePtrOutput) Elem() MonthlyScheduleResponseOutput { + return o.ApplyT(func(v *MonthlyScheduleResponse) MonthlyScheduleResponse { return *v }).(MonthlyScheduleResponseOutput) +} + +// Indicates which days of the month snapshot should be taken. A comma delimited string. +func (o MonthlyScheduleResponsePtrOutput) DaysOfMonth() pulumi.StringPtrOutput { + return o.ApplyT(func(v *MonthlyScheduleResponse) *string { + if v == nil { + return nil + } + return v.DaysOfMonth + }).(pulumi.StringPtrOutput) +} + +// Indicates which hour in UTC timezone a snapshot should be taken +func (o MonthlyScheduleResponsePtrOutput) Hour() pulumi.IntPtrOutput { + return o.ApplyT(func(v *MonthlyScheduleResponse) *int { + if v == nil { + return nil + } + return v.Hour + }).(pulumi.IntPtrOutput) +} + +// Indicates which minute snapshot should be taken +func (o MonthlyScheduleResponsePtrOutput) Minute() pulumi.IntPtrOutput { + return o.ApplyT(func(v *MonthlyScheduleResponse) *int { + if v == nil { + return nil + } + return v.Minute + }).(pulumi.IntPtrOutput) +} + +// Monthly snapshot count to keep +func (o MonthlyScheduleResponsePtrOutput) SnapshotsToKeep() pulumi.IntPtrOutput { + return o.ApplyT(func(v *MonthlyScheduleResponse) *int { + if v == nil { + return nil + } + return v.SnapshotsToKeep + }).(pulumi.IntPtrOutput) +} + +// Resource size in bytes, current storage usage for the volume in bytes +func (o MonthlyScheduleResponsePtrOutput) UsedBytes() pulumi.IntPtrOutput { + return o.ApplyT(func(v *MonthlyScheduleResponse) *int { + if v == nil { + return nil + } + return v.UsedBytes + }).(pulumi.IntPtrOutput) +} + // Mount target properties type MountTargetProperties struct { // UUID v4 used to identify the MountTarget @@ -3557,6 +4211,47 @@ func (i WeeklyScheduleArgs) ToWeeklyScheduleOutputWithContext(ctx context.Contex return pulumi.ToOutputWithContext(ctx, i).(WeeklyScheduleOutput) } +func (i WeeklyScheduleArgs) ToWeeklySchedulePtrOutput() WeeklySchedulePtrOutput { + return i.ToWeeklySchedulePtrOutputWithContext(context.Background()) +} + +func (i WeeklyScheduleArgs) ToWeeklySchedulePtrOutputWithContext(ctx context.Context) WeeklySchedulePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WeeklyScheduleOutput).ToWeeklySchedulePtrOutputWithContext(ctx) +} + +// WeeklySchedulePtrInput is an input type that accepts WeeklyScheduleArgs, WeeklySchedulePtr and WeeklySchedulePtrOutput values. +// You can construct a concrete instance of `WeeklySchedulePtrInput` via: +// +// WeeklyScheduleArgs{...} +// +// or: +// +// nil +type WeeklySchedulePtrInput interface { + pulumi.Input + + ToWeeklySchedulePtrOutput() WeeklySchedulePtrOutput + ToWeeklySchedulePtrOutputWithContext(context.Context) WeeklySchedulePtrOutput +} + +type weeklySchedulePtrType WeeklyScheduleArgs + +func WeeklySchedulePtr(v *WeeklyScheduleArgs) WeeklySchedulePtrInput { + return (*weeklySchedulePtrType)(v) +} + +func (*weeklySchedulePtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WeeklySchedule)(nil)).Elem() +} + +func (i *weeklySchedulePtrType) ToWeeklySchedulePtrOutput() WeeklySchedulePtrOutput { + return i.ToWeeklySchedulePtrOutputWithContext(context.Background()) +} + +func (i *weeklySchedulePtrType) ToWeeklySchedulePtrOutputWithContext(ctx context.Context) WeeklySchedulePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WeeklySchedulePtrOutput) +} + // Weekly Schedule properties, make a snapshot every week at a specific day or days type WeeklyScheduleOutput struct{ *pulumi.OutputState } @@ -3572,6 +4267,16 @@ func (o WeeklyScheduleOutput) ToWeeklyScheduleOutputWithContext(ctx context.Cont return o } +func (o WeeklyScheduleOutput) ToWeeklySchedulePtrOutput() WeeklySchedulePtrOutput { + return o.ToWeeklySchedulePtrOutputWithContext(context.Background()) +} + +func (o WeeklyScheduleOutput) ToWeeklySchedulePtrOutputWithContext(ctx context.Context) WeeklySchedulePtrOutput { + return o.ApplyT(func(v WeeklySchedule) *WeeklySchedule { + return &v + }).(WeeklySchedulePtrOutput) +} + // Indicates which weekdays snapshot should be taken, accepts a comma separated list of week day names in english func (o WeeklyScheduleOutput) Day() pulumi.StringPtrOutput { return o.ApplyT(func(v WeeklySchedule) *string { return v.Day }).(pulumi.StringPtrOutput) @@ -3597,6 +4302,74 @@ func (o WeeklyScheduleOutput) UsedBytes() pulumi.IntPtrOutput { return o.ApplyT(func(v WeeklySchedule) *int { return v.UsedBytes }).(pulumi.IntPtrOutput) } +type WeeklySchedulePtrOutput struct{ *pulumi.OutputState } + +func (WeeklySchedulePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WeeklySchedule)(nil)).Elem() +} + +func (o WeeklySchedulePtrOutput) ToWeeklySchedulePtrOutput() WeeklySchedulePtrOutput { + return o +} + +func (o WeeklySchedulePtrOutput) ToWeeklySchedulePtrOutputWithContext(ctx context.Context) WeeklySchedulePtrOutput { + return o +} + +func (o WeeklySchedulePtrOutput) Elem() WeeklyScheduleOutput { + return o.ApplyT(func(v *WeeklySchedule) WeeklySchedule { return *v }).(WeeklyScheduleOutput) +} + +// Indicates which weekdays snapshot should be taken, accepts a comma separated list of week day names in english +func (o WeeklySchedulePtrOutput) Day() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WeeklySchedule) *string { + if v == nil { + return nil + } + return v.Day + }).(pulumi.StringPtrOutput) +} + +// Indicates which hour in UTC timezone a snapshot should be taken +func (o WeeklySchedulePtrOutput) Hour() pulumi.IntPtrOutput { + return o.ApplyT(func(v *WeeklySchedule) *int { + if v == nil { + return nil + } + return v.Hour + }).(pulumi.IntPtrOutput) +} + +// Indicates which minute snapshot should be taken +func (o WeeklySchedulePtrOutput) Minute() pulumi.IntPtrOutput { + return o.ApplyT(func(v *WeeklySchedule) *int { + if v == nil { + return nil + } + return v.Minute + }).(pulumi.IntPtrOutput) +} + +// Weekly snapshot count to keep +func (o WeeklySchedulePtrOutput) SnapshotsToKeep() pulumi.IntPtrOutput { + return o.ApplyT(func(v *WeeklySchedule) *int { + if v == nil { + return nil + } + return v.SnapshotsToKeep + }).(pulumi.IntPtrOutput) +} + +// Resource size in bytes, current storage usage for the volume in bytes +func (o WeeklySchedulePtrOutput) UsedBytes() pulumi.IntPtrOutput { + return o.ApplyT(func(v *WeeklySchedule) *int { + if v == nil { + return nil + } + return v.UsedBytes + }).(pulumi.IntPtrOutput) +} + // Weekly Schedule properties, make a snapshot every week at a specific day or days type WeeklyScheduleResponse struct { // Indicates which weekdays snapshot should be taken, accepts a comma separated list of week day names in english @@ -3648,6 +4421,47 @@ func (i WeeklyScheduleResponseArgs) ToWeeklyScheduleResponseOutputWithContext(ct return pulumi.ToOutputWithContext(ctx, i).(WeeklyScheduleResponseOutput) } +func (i WeeklyScheduleResponseArgs) ToWeeklyScheduleResponsePtrOutput() WeeklyScheduleResponsePtrOutput { + return i.ToWeeklyScheduleResponsePtrOutputWithContext(context.Background()) +} + +func (i WeeklyScheduleResponseArgs) ToWeeklyScheduleResponsePtrOutputWithContext(ctx context.Context) WeeklyScheduleResponsePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WeeklyScheduleResponseOutput).ToWeeklyScheduleResponsePtrOutputWithContext(ctx) +} + +// WeeklyScheduleResponsePtrInput is an input type that accepts WeeklyScheduleResponseArgs, WeeklyScheduleResponsePtr and WeeklyScheduleResponsePtrOutput values. +// You can construct a concrete instance of `WeeklyScheduleResponsePtrInput` via: +// +// WeeklyScheduleResponseArgs{...} +// +// or: +// +// nil +type WeeklyScheduleResponsePtrInput interface { + pulumi.Input + + ToWeeklyScheduleResponsePtrOutput() WeeklyScheduleResponsePtrOutput + ToWeeklyScheduleResponsePtrOutputWithContext(context.Context) WeeklyScheduleResponsePtrOutput +} + +type weeklyScheduleResponsePtrType WeeklyScheduleResponseArgs + +func WeeklyScheduleResponsePtr(v *WeeklyScheduleResponseArgs) WeeklyScheduleResponsePtrInput { + return (*weeklyScheduleResponsePtrType)(v) +} + +func (*weeklyScheduleResponsePtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WeeklyScheduleResponse)(nil)).Elem() +} + +func (i *weeklyScheduleResponsePtrType) ToWeeklyScheduleResponsePtrOutput() WeeklyScheduleResponsePtrOutput { + return i.ToWeeklyScheduleResponsePtrOutputWithContext(context.Background()) +} + +func (i *weeklyScheduleResponsePtrType) ToWeeklyScheduleResponsePtrOutputWithContext(ctx context.Context) WeeklyScheduleResponsePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WeeklyScheduleResponsePtrOutput) +} + // Weekly Schedule properties, make a snapshot every week at a specific day or days type WeeklyScheduleResponseOutput struct{ *pulumi.OutputState } @@ -3663,6 +4477,16 @@ func (o WeeklyScheduleResponseOutput) ToWeeklyScheduleResponseOutputWithContext( return o } +func (o WeeklyScheduleResponseOutput) ToWeeklyScheduleResponsePtrOutput() WeeklyScheduleResponsePtrOutput { + return o.ToWeeklyScheduleResponsePtrOutputWithContext(context.Background()) +} + +func (o WeeklyScheduleResponseOutput) ToWeeklyScheduleResponsePtrOutputWithContext(ctx context.Context) WeeklyScheduleResponsePtrOutput { + return o.ApplyT(func(v WeeklyScheduleResponse) *WeeklyScheduleResponse { + return &v + }).(WeeklyScheduleResponsePtrOutput) +} + // Indicates which weekdays snapshot should be taken, accepts a comma separated list of week day names in english func (o WeeklyScheduleResponseOutput) Day() pulumi.StringPtrOutput { return o.ApplyT(func(v WeeklyScheduleResponse) *string { return v.Day }).(pulumi.StringPtrOutput) @@ -3688,21 +4512,95 @@ func (o WeeklyScheduleResponseOutput) UsedBytes() pulumi.IntPtrOutput { return o.ApplyT(func(v WeeklyScheduleResponse) *int { return v.UsedBytes }).(pulumi.IntPtrOutput) } +type WeeklyScheduleResponsePtrOutput struct{ *pulumi.OutputState } + +func (WeeklyScheduleResponsePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WeeklyScheduleResponse)(nil)).Elem() +} + +func (o WeeklyScheduleResponsePtrOutput) ToWeeklyScheduleResponsePtrOutput() WeeklyScheduleResponsePtrOutput { + return o +} + +func (o WeeklyScheduleResponsePtrOutput) ToWeeklyScheduleResponsePtrOutputWithContext(ctx context.Context) WeeklyScheduleResponsePtrOutput { + return o +} + +func (o WeeklyScheduleResponsePtrOutput) Elem() WeeklyScheduleResponseOutput { + return o.ApplyT(func(v *WeeklyScheduleResponse) WeeklyScheduleResponse { return *v }).(WeeklyScheduleResponseOutput) +} + +// Indicates which weekdays snapshot should be taken, accepts a comma separated list of week day names in english +func (o WeeklyScheduleResponsePtrOutput) Day() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WeeklyScheduleResponse) *string { + if v == nil { + return nil + } + return v.Day + }).(pulumi.StringPtrOutput) +} + +// Indicates which hour in UTC timezone a snapshot should be taken +func (o WeeklyScheduleResponsePtrOutput) Hour() pulumi.IntPtrOutput { + return o.ApplyT(func(v *WeeklyScheduleResponse) *int { + if v == nil { + return nil + } + return v.Hour + }).(pulumi.IntPtrOutput) +} + +// Indicates which minute snapshot should be taken +func (o WeeklyScheduleResponsePtrOutput) Minute() pulumi.IntPtrOutput { + return o.ApplyT(func(v *WeeklyScheduleResponse) *int { + if v == nil { + return nil + } + return v.Minute + }).(pulumi.IntPtrOutput) +} + +// Weekly snapshot count to keep +func (o WeeklyScheduleResponsePtrOutput) SnapshotsToKeep() pulumi.IntPtrOutput { + return o.ApplyT(func(v *WeeklyScheduleResponse) *int { + if v == nil { + return nil + } + return v.SnapshotsToKeep + }).(pulumi.IntPtrOutput) +} + +// Resource size in bytes, current storage usage for the volume in bytes +func (o WeeklyScheduleResponsePtrOutput) UsedBytes() pulumi.IntPtrOutput { + return o.ApplyT(func(v *WeeklyScheduleResponse) *int { + if v == nil { + return nil + } + return v.UsedBytes + }).(pulumi.IntPtrOutput) +} + func init() { pulumi.RegisterOutputType(ActiveDirectoryOutput{}) pulumi.RegisterOutputType(ActiveDirectoryArrayOutput{}) pulumi.RegisterOutputType(ActiveDirectoryResponseOutput{}) pulumi.RegisterOutputType(ActiveDirectoryResponseArrayOutput{}) pulumi.RegisterOutputType(DailyScheduleOutput{}) + pulumi.RegisterOutputType(DailySchedulePtrOutput{}) pulumi.RegisterOutputType(DailyScheduleResponseOutput{}) + pulumi.RegisterOutputType(DailyScheduleResponsePtrOutput{}) pulumi.RegisterOutputType(ExportPolicyRuleOutput{}) pulumi.RegisterOutputType(ExportPolicyRuleArrayOutput{}) pulumi.RegisterOutputType(ExportPolicyRuleResponseOutput{}) pulumi.RegisterOutputType(ExportPolicyRuleResponseArrayOutput{}) pulumi.RegisterOutputType(HourlyScheduleOutput{}) + pulumi.RegisterOutputType(HourlySchedulePtrOutput{}) pulumi.RegisterOutputType(HourlyScheduleResponseOutput{}) + pulumi.RegisterOutputType(HourlyScheduleResponsePtrOutput{}) pulumi.RegisterOutputType(MonthlyScheduleOutput{}) + pulumi.RegisterOutputType(MonthlySchedulePtrOutput{}) pulumi.RegisterOutputType(MonthlyScheduleResponseOutput{}) + pulumi.RegisterOutputType(MonthlyScheduleResponsePtrOutput{}) pulumi.RegisterOutputType(MountTargetPropertiesOutput{}) pulumi.RegisterOutputType(MountTargetPropertiesArrayOutput{}) pulumi.RegisterOutputType(MountTargetPropertiesResponseOutput{}) @@ -3732,5 +4630,7 @@ func init() { pulumi.RegisterOutputType(VolumeSnapshotPropertiesResponseOutput{}) pulumi.RegisterOutputType(VolumeSnapshotPropertiesResponsePtrOutput{}) pulumi.RegisterOutputType(WeeklyScheduleOutput{}) + pulumi.RegisterOutputType(WeeklySchedulePtrOutput{}) pulumi.RegisterOutputType(WeeklyScheduleResponseOutput{}) + pulumi.RegisterOutputType(WeeklyScheduleResponsePtrOutput{}) } diff --git a/sdk/go/azurerm/netapp/latest/snapshotPolicy.go b/sdk/go/azurerm/netapp/latest/snapshotPolicy.go index 6c0c16433161..c67ca8372886 100644 --- a/sdk/go/azurerm/netapp/latest/snapshotPolicy.go +++ b/sdk/go/azurerm/netapp/latest/snapshotPolicy.go @@ -15,23 +15,25 @@ type SnapshotPolicy struct { pulumi.CustomResourceState // Schedule for daily snapshots - DailySchedule pulumi.MapOutput `pulumi:"dailySchedule"` + DailySchedule DailyScheduleResponsePtrOutput `pulumi:"dailySchedule"` // The property to decide policy is enabled or not Enabled pulumi.BoolPtrOutput `pulumi:"enabled"` // Schedule for hourly snapshots - HourlySchedule pulumi.MapOutput `pulumi:"hourlySchedule"` + HourlySchedule HourlyScheduleResponsePtrOutput `pulumi:"hourlySchedule"` // Resource location Location pulumi.StringOutput `pulumi:"location"` // Schedule for monthly snapshots - MonthlySchedule pulumi.MapOutput `pulumi:"monthlySchedule"` - // Resource name + MonthlySchedule MonthlyScheduleResponsePtrOutput `pulumi:"monthlySchedule"` + // Snapshot policy name Name pulumi.StringOutput `pulumi:"name"` + // Azure lifecycle management + ProvisioningState pulumi.StringOutput `pulumi:"provisioningState"` // Resource tags Tags pulumi.StringMapOutput `pulumi:"tags"` // Resource type Type pulumi.StringOutput `pulumi:"type"` // Schedule for weekly snapshots - WeeklySchedule pulumi.MapOutput `pulumi:"weeklySchedule"` + WeeklySchedule WeeklyScheduleResponsePtrOutput `pulumi:"weeklySchedule"` } // NewSnapshotPolicy registers a new resource with the given unique name, arguments, and options. @@ -81,44 +83,48 @@ func GetSnapshotPolicy(ctx *pulumi.Context, // Input properties used for looking up and filtering SnapshotPolicy resources. type snapshotPolicyState struct { // Schedule for daily snapshots - DailySchedule map[string]interface{} `pulumi:"dailySchedule"` + DailySchedule *DailyScheduleResponse `pulumi:"dailySchedule"` // The property to decide policy is enabled or not Enabled *bool `pulumi:"enabled"` // Schedule for hourly snapshots - HourlySchedule map[string]interface{} `pulumi:"hourlySchedule"` + HourlySchedule *HourlyScheduleResponse `pulumi:"hourlySchedule"` // Resource location Location *string `pulumi:"location"` // Schedule for monthly snapshots - MonthlySchedule map[string]interface{} `pulumi:"monthlySchedule"` - // Resource name + MonthlySchedule *MonthlyScheduleResponse `pulumi:"monthlySchedule"` + // Snapshot policy name Name *string `pulumi:"name"` + // Azure lifecycle management + ProvisioningState *string `pulumi:"provisioningState"` // Resource tags Tags map[string]string `pulumi:"tags"` // Resource type Type *string `pulumi:"type"` // Schedule for weekly snapshots - WeeklySchedule map[string]interface{} `pulumi:"weeklySchedule"` + WeeklySchedule *WeeklyScheduleResponse `pulumi:"weeklySchedule"` } type SnapshotPolicyState struct { // Schedule for daily snapshots - DailySchedule pulumi.MapInput + DailySchedule DailyScheduleResponsePtrInput // The property to decide policy is enabled or not Enabled pulumi.BoolPtrInput // Schedule for hourly snapshots - HourlySchedule pulumi.MapInput + HourlySchedule HourlyScheduleResponsePtrInput // Resource location Location pulumi.StringPtrInput // Schedule for monthly snapshots - MonthlySchedule pulumi.MapInput - // Resource name + MonthlySchedule MonthlyScheduleResponsePtrInput + // Snapshot policy name Name pulumi.StringPtrInput + // Azure lifecycle management + ProvisioningState pulumi.StringPtrInput // Resource tags Tags pulumi.StringMapInput // Resource type Type pulumi.StringPtrInput // Schedule for weekly snapshots - WeeklySchedule pulumi.MapInput + WeeklySchedule WeeklyScheduleResponsePtrInput } func (SnapshotPolicyState) ElementType() reflect.Type { @@ -129,15 +135,15 @@ type snapshotPolicyArgs struct { // The name of the NetApp account AccountName string `pulumi:"accountName"` // Schedule for daily snapshots - DailySchedule map[string]interface{} `pulumi:"dailySchedule"` + DailySchedule *DailySchedule `pulumi:"dailySchedule"` // The property to decide policy is enabled or not Enabled *bool `pulumi:"enabled"` // Schedule for hourly snapshots - HourlySchedule map[string]interface{} `pulumi:"hourlySchedule"` + HourlySchedule *HourlySchedule `pulumi:"hourlySchedule"` // Resource location Location string `pulumi:"location"` // Schedule for monthly snapshots - MonthlySchedule map[string]interface{} `pulumi:"monthlySchedule"` + MonthlySchedule *MonthlySchedule `pulumi:"monthlySchedule"` // The name of the resource group. ResourceGroupName string `pulumi:"resourceGroupName"` // The name of the snapshot policy target @@ -145,7 +151,7 @@ type snapshotPolicyArgs struct { // Resource tags Tags map[string]string `pulumi:"tags"` // Schedule for weekly snapshots - WeeklySchedule map[string]interface{} `pulumi:"weeklySchedule"` + WeeklySchedule *WeeklySchedule `pulumi:"weeklySchedule"` } // The set of arguments for constructing a SnapshotPolicy resource. @@ -153,15 +159,15 @@ type SnapshotPolicyArgs struct { // The name of the NetApp account AccountName pulumi.StringInput // Schedule for daily snapshots - DailySchedule pulumi.MapInput + DailySchedule DailySchedulePtrInput // The property to decide policy is enabled or not Enabled pulumi.BoolPtrInput // Schedule for hourly snapshots - HourlySchedule pulumi.MapInput + HourlySchedule HourlySchedulePtrInput // Resource location Location pulumi.StringInput // Schedule for monthly snapshots - MonthlySchedule pulumi.MapInput + MonthlySchedule MonthlySchedulePtrInput // The name of the resource group. ResourceGroupName pulumi.StringInput // The name of the snapshot policy target @@ -169,7 +175,7 @@ type SnapshotPolicyArgs struct { // Resource tags Tags pulumi.StringMapInput // Schedule for weekly snapshots - WeeklySchedule pulumi.MapInput + WeeklySchedule WeeklySchedulePtrInput } func (SnapshotPolicyArgs) ElementType() reflect.Type { diff --git a/sdk/go/azurerm/netapp/v20200601/getsnapshotPolicy.go b/sdk/go/azurerm/netapp/v20200601/getsnapshotPolicy.go index f306daaa0cb5..aff7280e1a0d 100644 --- a/sdk/go/azurerm/netapp/v20200601/getsnapshotPolicy.go +++ b/sdk/go/azurerm/netapp/v20200601/getsnapshotPolicy.go @@ -28,21 +28,23 @@ type GetsnapshotPolicyArgs struct { // Snapshot policy information type GetsnapshotPolicyResult struct { // Schedule for daily snapshots - DailySchedule map[string]interface{} `pulumi:"dailySchedule"` + DailySchedule *DailyScheduleResponse `pulumi:"dailySchedule"` // The property to decide policy is enabled or not Enabled *bool `pulumi:"enabled"` // Schedule for hourly snapshots - HourlySchedule map[string]interface{} `pulumi:"hourlySchedule"` + HourlySchedule *HourlyScheduleResponse `pulumi:"hourlySchedule"` // Resource location Location string `pulumi:"location"` // Schedule for monthly snapshots - MonthlySchedule map[string]interface{} `pulumi:"monthlySchedule"` - // Resource name + MonthlySchedule *MonthlyScheduleResponse `pulumi:"monthlySchedule"` + // Snapshot policy name Name string `pulumi:"name"` + // Azure lifecycle management + ProvisioningState string `pulumi:"provisioningState"` // Resource tags Tags map[string]string `pulumi:"tags"` // Resource type Type string `pulumi:"type"` // Schedule for weekly snapshots - WeeklySchedule map[string]interface{} `pulumi:"weeklySchedule"` + WeeklySchedule *WeeklyScheduleResponse `pulumi:"weeklySchedule"` } diff --git a/sdk/go/azurerm/netapp/v20200601/pulumiTypes.go b/sdk/go/azurerm/netapp/v20200601/pulumiTypes.go index adda0ca4441f..8f594171cb1b 100644 --- a/sdk/go/azurerm/netapp/v20200601/pulumiTypes.go +++ b/sdk/go/azurerm/netapp/v20200601/pulumiTypes.go @@ -473,6 +473,47 @@ func (i DailyScheduleArgs) ToDailyScheduleOutputWithContext(ctx context.Context) return pulumi.ToOutputWithContext(ctx, i).(DailyScheduleOutput) } +func (i DailyScheduleArgs) ToDailySchedulePtrOutput() DailySchedulePtrOutput { + return i.ToDailySchedulePtrOutputWithContext(context.Background()) +} + +func (i DailyScheduleArgs) ToDailySchedulePtrOutputWithContext(ctx context.Context) DailySchedulePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(DailyScheduleOutput).ToDailySchedulePtrOutputWithContext(ctx) +} + +// DailySchedulePtrInput is an input type that accepts DailyScheduleArgs, DailySchedulePtr and DailySchedulePtrOutput values. +// You can construct a concrete instance of `DailySchedulePtrInput` via: +// +// DailyScheduleArgs{...} +// +// or: +// +// nil +type DailySchedulePtrInput interface { + pulumi.Input + + ToDailySchedulePtrOutput() DailySchedulePtrOutput + ToDailySchedulePtrOutputWithContext(context.Context) DailySchedulePtrOutput +} + +type dailySchedulePtrType DailyScheduleArgs + +func DailySchedulePtr(v *DailyScheduleArgs) DailySchedulePtrInput { + return (*dailySchedulePtrType)(v) +} + +func (*dailySchedulePtrType) ElementType() reflect.Type { + return reflect.TypeOf((**DailySchedule)(nil)).Elem() +} + +func (i *dailySchedulePtrType) ToDailySchedulePtrOutput() DailySchedulePtrOutput { + return i.ToDailySchedulePtrOutputWithContext(context.Background()) +} + +func (i *dailySchedulePtrType) ToDailySchedulePtrOutputWithContext(ctx context.Context) DailySchedulePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(DailySchedulePtrOutput) +} + // Daily Schedule properties type DailyScheduleOutput struct{ *pulumi.OutputState } @@ -488,6 +529,16 @@ func (o DailyScheduleOutput) ToDailyScheduleOutputWithContext(ctx context.Contex return o } +func (o DailyScheduleOutput) ToDailySchedulePtrOutput() DailySchedulePtrOutput { + return o.ToDailySchedulePtrOutputWithContext(context.Background()) +} + +func (o DailyScheduleOutput) ToDailySchedulePtrOutputWithContext(ctx context.Context) DailySchedulePtrOutput { + return o.ApplyT(func(v DailySchedule) *DailySchedule { + return &v + }).(DailySchedulePtrOutput) +} + // Indicates which hour in UTC timezone a snapshot should be taken func (o DailyScheduleOutput) Hour() pulumi.IntPtrOutput { return o.ApplyT(func(v DailySchedule) *int { return v.Hour }).(pulumi.IntPtrOutput) @@ -508,6 +559,64 @@ func (o DailyScheduleOutput) UsedBytes() pulumi.IntPtrOutput { return o.ApplyT(func(v DailySchedule) *int { return v.UsedBytes }).(pulumi.IntPtrOutput) } +type DailySchedulePtrOutput struct{ *pulumi.OutputState } + +func (DailySchedulePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**DailySchedule)(nil)).Elem() +} + +func (o DailySchedulePtrOutput) ToDailySchedulePtrOutput() DailySchedulePtrOutput { + return o +} + +func (o DailySchedulePtrOutput) ToDailySchedulePtrOutputWithContext(ctx context.Context) DailySchedulePtrOutput { + return o +} + +func (o DailySchedulePtrOutput) Elem() DailyScheduleOutput { + return o.ApplyT(func(v *DailySchedule) DailySchedule { return *v }).(DailyScheduleOutput) +} + +// Indicates which hour in UTC timezone a snapshot should be taken +func (o DailySchedulePtrOutput) Hour() pulumi.IntPtrOutput { + return o.ApplyT(func(v *DailySchedule) *int { + if v == nil { + return nil + } + return v.Hour + }).(pulumi.IntPtrOutput) +} + +// Indicates which minute snapshot should be taken +func (o DailySchedulePtrOutput) Minute() pulumi.IntPtrOutput { + return o.ApplyT(func(v *DailySchedule) *int { + if v == nil { + return nil + } + return v.Minute + }).(pulumi.IntPtrOutput) +} + +// Daily snapshot count to keep +func (o DailySchedulePtrOutput) SnapshotsToKeep() pulumi.IntPtrOutput { + return o.ApplyT(func(v *DailySchedule) *int { + if v == nil { + return nil + } + return v.SnapshotsToKeep + }).(pulumi.IntPtrOutput) +} + +// Resource size in bytes, current storage usage for the volume in bytes +func (o DailySchedulePtrOutput) UsedBytes() pulumi.IntPtrOutput { + return o.ApplyT(func(v *DailySchedule) *int { + if v == nil { + return nil + } + return v.UsedBytes + }).(pulumi.IntPtrOutput) +} + // Daily Schedule properties type DailyScheduleResponse struct { // Indicates which hour in UTC timezone a snapshot should be taken @@ -555,6 +664,47 @@ func (i DailyScheduleResponseArgs) ToDailyScheduleResponseOutputWithContext(ctx return pulumi.ToOutputWithContext(ctx, i).(DailyScheduleResponseOutput) } +func (i DailyScheduleResponseArgs) ToDailyScheduleResponsePtrOutput() DailyScheduleResponsePtrOutput { + return i.ToDailyScheduleResponsePtrOutputWithContext(context.Background()) +} + +func (i DailyScheduleResponseArgs) ToDailyScheduleResponsePtrOutputWithContext(ctx context.Context) DailyScheduleResponsePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(DailyScheduleResponseOutput).ToDailyScheduleResponsePtrOutputWithContext(ctx) +} + +// DailyScheduleResponsePtrInput is an input type that accepts DailyScheduleResponseArgs, DailyScheduleResponsePtr and DailyScheduleResponsePtrOutput values. +// You can construct a concrete instance of `DailyScheduleResponsePtrInput` via: +// +// DailyScheduleResponseArgs{...} +// +// or: +// +// nil +type DailyScheduleResponsePtrInput interface { + pulumi.Input + + ToDailyScheduleResponsePtrOutput() DailyScheduleResponsePtrOutput + ToDailyScheduleResponsePtrOutputWithContext(context.Context) DailyScheduleResponsePtrOutput +} + +type dailyScheduleResponsePtrType DailyScheduleResponseArgs + +func DailyScheduleResponsePtr(v *DailyScheduleResponseArgs) DailyScheduleResponsePtrInput { + return (*dailyScheduleResponsePtrType)(v) +} + +func (*dailyScheduleResponsePtrType) ElementType() reflect.Type { + return reflect.TypeOf((**DailyScheduleResponse)(nil)).Elem() +} + +func (i *dailyScheduleResponsePtrType) ToDailyScheduleResponsePtrOutput() DailyScheduleResponsePtrOutput { + return i.ToDailyScheduleResponsePtrOutputWithContext(context.Background()) +} + +func (i *dailyScheduleResponsePtrType) ToDailyScheduleResponsePtrOutputWithContext(ctx context.Context) DailyScheduleResponsePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(DailyScheduleResponsePtrOutput) +} + // Daily Schedule properties type DailyScheduleResponseOutput struct{ *pulumi.OutputState } @@ -570,6 +720,16 @@ func (o DailyScheduleResponseOutput) ToDailyScheduleResponseOutputWithContext(ct return o } +func (o DailyScheduleResponseOutput) ToDailyScheduleResponsePtrOutput() DailyScheduleResponsePtrOutput { + return o.ToDailyScheduleResponsePtrOutputWithContext(context.Background()) +} + +func (o DailyScheduleResponseOutput) ToDailyScheduleResponsePtrOutputWithContext(ctx context.Context) DailyScheduleResponsePtrOutput { + return o.ApplyT(func(v DailyScheduleResponse) *DailyScheduleResponse { + return &v + }).(DailyScheduleResponsePtrOutput) +} + // Indicates which hour in UTC timezone a snapshot should be taken func (o DailyScheduleResponseOutput) Hour() pulumi.IntPtrOutput { return o.ApplyT(func(v DailyScheduleResponse) *int { return v.Hour }).(pulumi.IntPtrOutput) @@ -590,6 +750,64 @@ func (o DailyScheduleResponseOutput) UsedBytes() pulumi.IntPtrOutput { return o.ApplyT(func(v DailyScheduleResponse) *int { return v.UsedBytes }).(pulumi.IntPtrOutput) } +type DailyScheduleResponsePtrOutput struct{ *pulumi.OutputState } + +func (DailyScheduleResponsePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**DailyScheduleResponse)(nil)).Elem() +} + +func (o DailyScheduleResponsePtrOutput) ToDailyScheduleResponsePtrOutput() DailyScheduleResponsePtrOutput { + return o +} + +func (o DailyScheduleResponsePtrOutput) ToDailyScheduleResponsePtrOutputWithContext(ctx context.Context) DailyScheduleResponsePtrOutput { + return o +} + +func (o DailyScheduleResponsePtrOutput) Elem() DailyScheduleResponseOutput { + return o.ApplyT(func(v *DailyScheduleResponse) DailyScheduleResponse { return *v }).(DailyScheduleResponseOutput) +} + +// Indicates which hour in UTC timezone a snapshot should be taken +func (o DailyScheduleResponsePtrOutput) Hour() pulumi.IntPtrOutput { + return o.ApplyT(func(v *DailyScheduleResponse) *int { + if v == nil { + return nil + } + return v.Hour + }).(pulumi.IntPtrOutput) +} + +// Indicates which minute snapshot should be taken +func (o DailyScheduleResponsePtrOutput) Minute() pulumi.IntPtrOutput { + return o.ApplyT(func(v *DailyScheduleResponse) *int { + if v == nil { + return nil + } + return v.Minute + }).(pulumi.IntPtrOutput) +} + +// Daily snapshot count to keep +func (o DailyScheduleResponsePtrOutput) SnapshotsToKeep() pulumi.IntPtrOutput { + return o.ApplyT(func(v *DailyScheduleResponse) *int { + if v == nil { + return nil + } + return v.SnapshotsToKeep + }).(pulumi.IntPtrOutput) +} + +// Resource size in bytes, current storage usage for the volume in bytes +func (o DailyScheduleResponsePtrOutput) UsedBytes() pulumi.IntPtrOutput { + return o.ApplyT(func(v *DailyScheduleResponse) *int { + if v == nil { + return nil + } + return v.UsedBytes + }).(pulumi.IntPtrOutput) +} + // Volume Export Policy Rule type ExportPolicyRule struct { // Client ingress specification as comma separated string with IPv4 CIDRs, IPv4 host addresses and host names @@ -1067,6 +1285,47 @@ func (i HourlyScheduleArgs) ToHourlyScheduleOutputWithContext(ctx context.Contex return pulumi.ToOutputWithContext(ctx, i).(HourlyScheduleOutput) } +func (i HourlyScheduleArgs) ToHourlySchedulePtrOutput() HourlySchedulePtrOutput { + return i.ToHourlySchedulePtrOutputWithContext(context.Background()) +} + +func (i HourlyScheduleArgs) ToHourlySchedulePtrOutputWithContext(ctx context.Context) HourlySchedulePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(HourlyScheduleOutput).ToHourlySchedulePtrOutputWithContext(ctx) +} + +// HourlySchedulePtrInput is an input type that accepts HourlyScheduleArgs, HourlySchedulePtr and HourlySchedulePtrOutput values. +// You can construct a concrete instance of `HourlySchedulePtrInput` via: +// +// HourlyScheduleArgs{...} +// +// or: +// +// nil +type HourlySchedulePtrInput interface { + pulumi.Input + + ToHourlySchedulePtrOutput() HourlySchedulePtrOutput + ToHourlySchedulePtrOutputWithContext(context.Context) HourlySchedulePtrOutput +} + +type hourlySchedulePtrType HourlyScheduleArgs + +func HourlySchedulePtr(v *HourlyScheduleArgs) HourlySchedulePtrInput { + return (*hourlySchedulePtrType)(v) +} + +func (*hourlySchedulePtrType) ElementType() reflect.Type { + return reflect.TypeOf((**HourlySchedule)(nil)).Elem() +} + +func (i *hourlySchedulePtrType) ToHourlySchedulePtrOutput() HourlySchedulePtrOutput { + return i.ToHourlySchedulePtrOutputWithContext(context.Background()) +} + +func (i *hourlySchedulePtrType) ToHourlySchedulePtrOutputWithContext(ctx context.Context) HourlySchedulePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(HourlySchedulePtrOutput) +} + // Hourly Schedule properties type HourlyScheduleOutput struct{ *pulumi.OutputState } @@ -1082,6 +1341,16 @@ func (o HourlyScheduleOutput) ToHourlyScheduleOutputWithContext(ctx context.Cont return o } +func (o HourlyScheduleOutput) ToHourlySchedulePtrOutput() HourlySchedulePtrOutput { + return o.ToHourlySchedulePtrOutputWithContext(context.Background()) +} + +func (o HourlyScheduleOutput) ToHourlySchedulePtrOutputWithContext(ctx context.Context) HourlySchedulePtrOutput { + return o.ApplyT(func(v HourlySchedule) *HourlySchedule { + return &v + }).(HourlySchedulePtrOutput) +} + // Indicates which minute snapshot should be taken func (o HourlyScheduleOutput) Minute() pulumi.IntPtrOutput { return o.ApplyT(func(v HourlySchedule) *int { return v.Minute }).(pulumi.IntPtrOutput) @@ -1097,6 +1366,54 @@ func (o HourlyScheduleOutput) UsedBytes() pulumi.IntPtrOutput { return o.ApplyT(func(v HourlySchedule) *int { return v.UsedBytes }).(pulumi.IntPtrOutput) } +type HourlySchedulePtrOutput struct{ *pulumi.OutputState } + +func (HourlySchedulePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**HourlySchedule)(nil)).Elem() +} + +func (o HourlySchedulePtrOutput) ToHourlySchedulePtrOutput() HourlySchedulePtrOutput { + return o +} + +func (o HourlySchedulePtrOutput) ToHourlySchedulePtrOutputWithContext(ctx context.Context) HourlySchedulePtrOutput { + return o +} + +func (o HourlySchedulePtrOutput) Elem() HourlyScheduleOutput { + return o.ApplyT(func(v *HourlySchedule) HourlySchedule { return *v }).(HourlyScheduleOutput) +} + +// Indicates which minute snapshot should be taken +func (o HourlySchedulePtrOutput) Minute() pulumi.IntPtrOutput { + return o.ApplyT(func(v *HourlySchedule) *int { + if v == nil { + return nil + } + return v.Minute + }).(pulumi.IntPtrOutput) +} + +// Hourly snapshot count to keep +func (o HourlySchedulePtrOutput) SnapshotsToKeep() pulumi.IntPtrOutput { + return o.ApplyT(func(v *HourlySchedule) *int { + if v == nil { + return nil + } + return v.SnapshotsToKeep + }).(pulumi.IntPtrOutput) +} + +// Resource size in bytes, current storage usage for the volume in bytes +func (o HourlySchedulePtrOutput) UsedBytes() pulumi.IntPtrOutput { + return o.ApplyT(func(v *HourlySchedule) *int { + if v == nil { + return nil + } + return v.UsedBytes + }).(pulumi.IntPtrOutput) +} + // Hourly Schedule properties type HourlyScheduleResponse struct { // Indicates which minute snapshot should be taken @@ -1140,6 +1457,47 @@ func (i HourlyScheduleResponseArgs) ToHourlyScheduleResponseOutputWithContext(ct return pulumi.ToOutputWithContext(ctx, i).(HourlyScheduleResponseOutput) } +func (i HourlyScheduleResponseArgs) ToHourlyScheduleResponsePtrOutput() HourlyScheduleResponsePtrOutput { + return i.ToHourlyScheduleResponsePtrOutputWithContext(context.Background()) +} + +func (i HourlyScheduleResponseArgs) ToHourlyScheduleResponsePtrOutputWithContext(ctx context.Context) HourlyScheduleResponsePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(HourlyScheduleResponseOutput).ToHourlyScheduleResponsePtrOutputWithContext(ctx) +} + +// HourlyScheduleResponsePtrInput is an input type that accepts HourlyScheduleResponseArgs, HourlyScheduleResponsePtr and HourlyScheduleResponsePtrOutput values. +// You can construct a concrete instance of `HourlyScheduleResponsePtrInput` via: +// +// HourlyScheduleResponseArgs{...} +// +// or: +// +// nil +type HourlyScheduleResponsePtrInput interface { + pulumi.Input + + ToHourlyScheduleResponsePtrOutput() HourlyScheduleResponsePtrOutput + ToHourlyScheduleResponsePtrOutputWithContext(context.Context) HourlyScheduleResponsePtrOutput +} + +type hourlyScheduleResponsePtrType HourlyScheduleResponseArgs + +func HourlyScheduleResponsePtr(v *HourlyScheduleResponseArgs) HourlyScheduleResponsePtrInput { + return (*hourlyScheduleResponsePtrType)(v) +} + +func (*hourlyScheduleResponsePtrType) ElementType() reflect.Type { + return reflect.TypeOf((**HourlyScheduleResponse)(nil)).Elem() +} + +func (i *hourlyScheduleResponsePtrType) ToHourlyScheduleResponsePtrOutput() HourlyScheduleResponsePtrOutput { + return i.ToHourlyScheduleResponsePtrOutputWithContext(context.Background()) +} + +func (i *hourlyScheduleResponsePtrType) ToHourlyScheduleResponsePtrOutputWithContext(ctx context.Context) HourlyScheduleResponsePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(HourlyScheduleResponsePtrOutput) +} + // Hourly Schedule properties type HourlyScheduleResponseOutput struct{ *pulumi.OutputState } @@ -1155,6 +1513,16 @@ func (o HourlyScheduleResponseOutput) ToHourlyScheduleResponseOutputWithContext( return o } +func (o HourlyScheduleResponseOutput) ToHourlyScheduleResponsePtrOutput() HourlyScheduleResponsePtrOutput { + return o.ToHourlyScheduleResponsePtrOutputWithContext(context.Background()) +} + +func (o HourlyScheduleResponseOutput) ToHourlyScheduleResponsePtrOutputWithContext(ctx context.Context) HourlyScheduleResponsePtrOutput { + return o.ApplyT(func(v HourlyScheduleResponse) *HourlyScheduleResponse { + return &v + }).(HourlyScheduleResponsePtrOutput) +} + // Indicates which minute snapshot should be taken func (o HourlyScheduleResponseOutput) Minute() pulumi.IntPtrOutput { return o.ApplyT(func(v HourlyScheduleResponse) *int { return v.Minute }).(pulumi.IntPtrOutput) @@ -1170,6 +1538,54 @@ func (o HourlyScheduleResponseOutput) UsedBytes() pulumi.IntPtrOutput { return o.ApplyT(func(v HourlyScheduleResponse) *int { return v.UsedBytes }).(pulumi.IntPtrOutput) } +type HourlyScheduleResponsePtrOutput struct{ *pulumi.OutputState } + +func (HourlyScheduleResponsePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**HourlyScheduleResponse)(nil)).Elem() +} + +func (o HourlyScheduleResponsePtrOutput) ToHourlyScheduleResponsePtrOutput() HourlyScheduleResponsePtrOutput { + return o +} + +func (o HourlyScheduleResponsePtrOutput) ToHourlyScheduleResponsePtrOutputWithContext(ctx context.Context) HourlyScheduleResponsePtrOutput { + return o +} + +func (o HourlyScheduleResponsePtrOutput) Elem() HourlyScheduleResponseOutput { + return o.ApplyT(func(v *HourlyScheduleResponse) HourlyScheduleResponse { return *v }).(HourlyScheduleResponseOutput) +} + +// Indicates which minute snapshot should be taken +func (o HourlyScheduleResponsePtrOutput) Minute() pulumi.IntPtrOutput { + return o.ApplyT(func(v *HourlyScheduleResponse) *int { + if v == nil { + return nil + } + return v.Minute + }).(pulumi.IntPtrOutput) +} + +// Hourly snapshot count to keep +func (o HourlyScheduleResponsePtrOutput) SnapshotsToKeep() pulumi.IntPtrOutput { + return o.ApplyT(func(v *HourlyScheduleResponse) *int { + if v == nil { + return nil + } + return v.SnapshotsToKeep + }).(pulumi.IntPtrOutput) +} + +// Resource size in bytes, current storage usage for the volume in bytes +func (o HourlyScheduleResponsePtrOutput) UsedBytes() pulumi.IntPtrOutput { + return o.ApplyT(func(v *HourlyScheduleResponse) *int { + if v == nil { + return nil + } + return v.UsedBytes + }).(pulumi.IntPtrOutput) +} + // Monthly Schedule properties type MonthlySchedule struct { // Indicates which days of the month snapshot should be taken. A comma delimited string. @@ -1213,52 +1629,171 @@ func (MonthlyScheduleArgs) ElementType() reflect.Type { return reflect.TypeOf((*MonthlySchedule)(nil)).Elem() } -func (i MonthlyScheduleArgs) ToMonthlyScheduleOutput() MonthlyScheduleOutput { - return i.ToMonthlyScheduleOutputWithContext(context.Background()) +func (i MonthlyScheduleArgs) ToMonthlyScheduleOutput() MonthlyScheduleOutput { + return i.ToMonthlyScheduleOutputWithContext(context.Background()) +} + +func (i MonthlyScheduleArgs) ToMonthlyScheduleOutputWithContext(ctx context.Context) MonthlyScheduleOutput { + return pulumi.ToOutputWithContext(ctx, i).(MonthlyScheduleOutput) +} + +func (i MonthlyScheduleArgs) ToMonthlySchedulePtrOutput() MonthlySchedulePtrOutput { + return i.ToMonthlySchedulePtrOutputWithContext(context.Background()) +} + +func (i MonthlyScheduleArgs) ToMonthlySchedulePtrOutputWithContext(ctx context.Context) MonthlySchedulePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(MonthlyScheduleOutput).ToMonthlySchedulePtrOutputWithContext(ctx) +} + +// MonthlySchedulePtrInput is an input type that accepts MonthlyScheduleArgs, MonthlySchedulePtr and MonthlySchedulePtrOutput values. +// You can construct a concrete instance of `MonthlySchedulePtrInput` via: +// +// MonthlyScheduleArgs{...} +// +// or: +// +// nil +type MonthlySchedulePtrInput interface { + pulumi.Input + + ToMonthlySchedulePtrOutput() MonthlySchedulePtrOutput + ToMonthlySchedulePtrOutputWithContext(context.Context) MonthlySchedulePtrOutput +} + +type monthlySchedulePtrType MonthlyScheduleArgs + +func MonthlySchedulePtr(v *MonthlyScheduleArgs) MonthlySchedulePtrInput { + return (*monthlySchedulePtrType)(v) +} + +func (*monthlySchedulePtrType) ElementType() reflect.Type { + return reflect.TypeOf((**MonthlySchedule)(nil)).Elem() +} + +func (i *monthlySchedulePtrType) ToMonthlySchedulePtrOutput() MonthlySchedulePtrOutput { + return i.ToMonthlySchedulePtrOutputWithContext(context.Background()) +} + +func (i *monthlySchedulePtrType) ToMonthlySchedulePtrOutputWithContext(ctx context.Context) MonthlySchedulePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(MonthlySchedulePtrOutput) +} + +// Monthly Schedule properties +type MonthlyScheduleOutput struct{ *pulumi.OutputState } + +func (MonthlyScheduleOutput) ElementType() reflect.Type { + return reflect.TypeOf((*MonthlySchedule)(nil)).Elem() +} + +func (o MonthlyScheduleOutput) ToMonthlyScheduleOutput() MonthlyScheduleOutput { + return o +} + +func (o MonthlyScheduleOutput) ToMonthlyScheduleOutputWithContext(ctx context.Context) MonthlyScheduleOutput { + return o +} + +func (o MonthlyScheduleOutput) ToMonthlySchedulePtrOutput() MonthlySchedulePtrOutput { + return o.ToMonthlySchedulePtrOutputWithContext(context.Background()) +} + +func (o MonthlyScheduleOutput) ToMonthlySchedulePtrOutputWithContext(ctx context.Context) MonthlySchedulePtrOutput { + return o.ApplyT(func(v MonthlySchedule) *MonthlySchedule { + return &v + }).(MonthlySchedulePtrOutput) +} + +// Indicates which days of the month snapshot should be taken. A comma delimited string. +func (o MonthlyScheduleOutput) DaysOfMonth() pulumi.StringPtrOutput { + return o.ApplyT(func(v MonthlySchedule) *string { return v.DaysOfMonth }).(pulumi.StringPtrOutput) +} + +// Indicates which hour in UTC timezone a snapshot should be taken +func (o MonthlyScheduleOutput) Hour() pulumi.IntPtrOutput { + return o.ApplyT(func(v MonthlySchedule) *int { return v.Hour }).(pulumi.IntPtrOutput) +} + +// Indicates which minute snapshot should be taken +func (o MonthlyScheduleOutput) Minute() pulumi.IntPtrOutput { + return o.ApplyT(func(v MonthlySchedule) *int { return v.Minute }).(pulumi.IntPtrOutput) +} + +// Monthly snapshot count to keep +func (o MonthlyScheduleOutput) SnapshotsToKeep() pulumi.IntPtrOutput { + return o.ApplyT(func(v MonthlySchedule) *int { return v.SnapshotsToKeep }).(pulumi.IntPtrOutput) } -func (i MonthlyScheduleArgs) ToMonthlyScheduleOutputWithContext(ctx context.Context) MonthlyScheduleOutput { - return pulumi.ToOutputWithContext(ctx, i).(MonthlyScheduleOutput) +// Resource size in bytes, current storage usage for the volume in bytes +func (o MonthlyScheduleOutput) UsedBytes() pulumi.IntPtrOutput { + return o.ApplyT(func(v MonthlySchedule) *int { return v.UsedBytes }).(pulumi.IntPtrOutput) } -// Monthly Schedule properties -type MonthlyScheduleOutput struct{ *pulumi.OutputState } +type MonthlySchedulePtrOutput struct{ *pulumi.OutputState } -func (MonthlyScheduleOutput) ElementType() reflect.Type { - return reflect.TypeOf((*MonthlySchedule)(nil)).Elem() +func (MonthlySchedulePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**MonthlySchedule)(nil)).Elem() } -func (o MonthlyScheduleOutput) ToMonthlyScheduleOutput() MonthlyScheduleOutput { +func (o MonthlySchedulePtrOutput) ToMonthlySchedulePtrOutput() MonthlySchedulePtrOutput { return o } -func (o MonthlyScheduleOutput) ToMonthlyScheduleOutputWithContext(ctx context.Context) MonthlyScheduleOutput { +func (o MonthlySchedulePtrOutput) ToMonthlySchedulePtrOutputWithContext(ctx context.Context) MonthlySchedulePtrOutput { return o } +func (o MonthlySchedulePtrOutput) Elem() MonthlyScheduleOutput { + return o.ApplyT(func(v *MonthlySchedule) MonthlySchedule { return *v }).(MonthlyScheduleOutput) +} + // Indicates which days of the month snapshot should be taken. A comma delimited string. -func (o MonthlyScheduleOutput) DaysOfMonth() pulumi.StringPtrOutput { - return o.ApplyT(func(v MonthlySchedule) *string { return v.DaysOfMonth }).(pulumi.StringPtrOutput) +func (o MonthlySchedulePtrOutput) DaysOfMonth() pulumi.StringPtrOutput { + return o.ApplyT(func(v *MonthlySchedule) *string { + if v == nil { + return nil + } + return v.DaysOfMonth + }).(pulumi.StringPtrOutput) } // Indicates which hour in UTC timezone a snapshot should be taken -func (o MonthlyScheduleOutput) Hour() pulumi.IntPtrOutput { - return o.ApplyT(func(v MonthlySchedule) *int { return v.Hour }).(pulumi.IntPtrOutput) +func (o MonthlySchedulePtrOutput) Hour() pulumi.IntPtrOutput { + return o.ApplyT(func(v *MonthlySchedule) *int { + if v == nil { + return nil + } + return v.Hour + }).(pulumi.IntPtrOutput) } // Indicates which minute snapshot should be taken -func (o MonthlyScheduleOutput) Minute() pulumi.IntPtrOutput { - return o.ApplyT(func(v MonthlySchedule) *int { return v.Minute }).(pulumi.IntPtrOutput) +func (o MonthlySchedulePtrOutput) Minute() pulumi.IntPtrOutput { + return o.ApplyT(func(v *MonthlySchedule) *int { + if v == nil { + return nil + } + return v.Minute + }).(pulumi.IntPtrOutput) } // Monthly snapshot count to keep -func (o MonthlyScheduleOutput) SnapshotsToKeep() pulumi.IntPtrOutput { - return o.ApplyT(func(v MonthlySchedule) *int { return v.SnapshotsToKeep }).(pulumi.IntPtrOutput) +func (o MonthlySchedulePtrOutput) SnapshotsToKeep() pulumi.IntPtrOutput { + return o.ApplyT(func(v *MonthlySchedule) *int { + if v == nil { + return nil + } + return v.SnapshotsToKeep + }).(pulumi.IntPtrOutput) } // Resource size in bytes, current storage usage for the volume in bytes -func (o MonthlyScheduleOutput) UsedBytes() pulumi.IntPtrOutput { - return o.ApplyT(func(v MonthlySchedule) *int { return v.UsedBytes }).(pulumi.IntPtrOutput) +func (o MonthlySchedulePtrOutput) UsedBytes() pulumi.IntPtrOutput { + return o.ApplyT(func(v *MonthlySchedule) *int { + if v == nil { + return nil + } + return v.UsedBytes + }).(pulumi.IntPtrOutput) } // Monthly Schedule properties @@ -1312,6 +1847,47 @@ func (i MonthlyScheduleResponseArgs) ToMonthlyScheduleResponseOutputWithContext( return pulumi.ToOutputWithContext(ctx, i).(MonthlyScheduleResponseOutput) } +func (i MonthlyScheduleResponseArgs) ToMonthlyScheduleResponsePtrOutput() MonthlyScheduleResponsePtrOutput { + return i.ToMonthlyScheduleResponsePtrOutputWithContext(context.Background()) +} + +func (i MonthlyScheduleResponseArgs) ToMonthlyScheduleResponsePtrOutputWithContext(ctx context.Context) MonthlyScheduleResponsePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(MonthlyScheduleResponseOutput).ToMonthlyScheduleResponsePtrOutputWithContext(ctx) +} + +// MonthlyScheduleResponsePtrInput is an input type that accepts MonthlyScheduleResponseArgs, MonthlyScheduleResponsePtr and MonthlyScheduleResponsePtrOutput values. +// You can construct a concrete instance of `MonthlyScheduleResponsePtrInput` via: +// +// MonthlyScheduleResponseArgs{...} +// +// or: +// +// nil +type MonthlyScheduleResponsePtrInput interface { + pulumi.Input + + ToMonthlyScheduleResponsePtrOutput() MonthlyScheduleResponsePtrOutput + ToMonthlyScheduleResponsePtrOutputWithContext(context.Context) MonthlyScheduleResponsePtrOutput +} + +type monthlyScheduleResponsePtrType MonthlyScheduleResponseArgs + +func MonthlyScheduleResponsePtr(v *MonthlyScheduleResponseArgs) MonthlyScheduleResponsePtrInput { + return (*monthlyScheduleResponsePtrType)(v) +} + +func (*monthlyScheduleResponsePtrType) ElementType() reflect.Type { + return reflect.TypeOf((**MonthlyScheduleResponse)(nil)).Elem() +} + +func (i *monthlyScheduleResponsePtrType) ToMonthlyScheduleResponsePtrOutput() MonthlyScheduleResponsePtrOutput { + return i.ToMonthlyScheduleResponsePtrOutputWithContext(context.Background()) +} + +func (i *monthlyScheduleResponsePtrType) ToMonthlyScheduleResponsePtrOutputWithContext(ctx context.Context) MonthlyScheduleResponsePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(MonthlyScheduleResponsePtrOutput) +} + // Monthly Schedule properties type MonthlyScheduleResponseOutput struct{ *pulumi.OutputState } @@ -1327,6 +1903,16 @@ func (o MonthlyScheduleResponseOutput) ToMonthlyScheduleResponseOutputWithContex return o } +func (o MonthlyScheduleResponseOutput) ToMonthlyScheduleResponsePtrOutput() MonthlyScheduleResponsePtrOutput { + return o.ToMonthlyScheduleResponsePtrOutputWithContext(context.Background()) +} + +func (o MonthlyScheduleResponseOutput) ToMonthlyScheduleResponsePtrOutputWithContext(ctx context.Context) MonthlyScheduleResponsePtrOutput { + return o.ApplyT(func(v MonthlyScheduleResponse) *MonthlyScheduleResponse { + return &v + }).(MonthlyScheduleResponsePtrOutput) +} + // Indicates which days of the month snapshot should be taken. A comma delimited string. func (o MonthlyScheduleResponseOutput) DaysOfMonth() pulumi.StringPtrOutput { return o.ApplyT(func(v MonthlyScheduleResponse) *string { return v.DaysOfMonth }).(pulumi.StringPtrOutput) @@ -1352,6 +1938,74 @@ func (o MonthlyScheduleResponseOutput) UsedBytes() pulumi.IntPtrOutput { return o.ApplyT(func(v MonthlyScheduleResponse) *int { return v.UsedBytes }).(pulumi.IntPtrOutput) } +type MonthlyScheduleResponsePtrOutput struct{ *pulumi.OutputState } + +func (MonthlyScheduleResponsePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**MonthlyScheduleResponse)(nil)).Elem() +} + +func (o MonthlyScheduleResponsePtrOutput) ToMonthlyScheduleResponsePtrOutput() MonthlyScheduleResponsePtrOutput { + return o +} + +func (o MonthlyScheduleResponsePtrOutput) ToMonthlyScheduleResponsePtrOutputWithContext(ctx context.Context) MonthlyScheduleResponsePtrOutput { + return o +} + +func (o MonthlyScheduleResponsePtrOutput) Elem() MonthlyScheduleResponseOutput { + return o.ApplyT(func(v *MonthlyScheduleResponse) MonthlyScheduleResponse { return *v }).(MonthlyScheduleResponseOutput) +} + +// Indicates which days of the month snapshot should be taken. A comma delimited string. +func (o MonthlyScheduleResponsePtrOutput) DaysOfMonth() pulumi.StringPtrOutput { + return o.ApplyT(func(v *MonthlyScheduleResponse) *string { + if v == nil { + return nil + } + return v.DaysOfMonth + }).(pulumi.StringPtrOutput) +} + +// Indicates which hour in UTC timezone a snapshot should be taken +func (o MonthlyScheduleResponsePtrOutput) Hour() pulumi.IntPtrOutput { + return o.ApplyT(func(v *MonthlyScheduleResponse) *int { + if v == nil { + return nil + } + return v.Hour + }).(pulumi.IntPtrOutput) +} + +// Indicates which minute snapshot should be taken +func (o MonthlyScheduleResponsePtrOutput) Minute() pulumi.IntPtrOutput { + return o.ApplyT(func(v *MonthlyScheduleResponse) *int { + if v == nil { + return nil + } + return v.Minute + }).(pulumi.IntPtrOutput) +} + +// Monthly snapshot count to keep +func (o MonthlyScheduleResponsePtrOutput) SnapshotsToKeep() pulumi.IntPtrOutput { + return o.ApplyT(func(v *MonthlyScheduleResponse) *int { + if v == nil { + return nil + } + return v.SnapshotsToKeep + }).(pulumi.IntPtrOutput) +} + +// Resource size in bytes, current storage usage for the volume in bytes +func (o MonthlyScheduleResponsePtrOutput) UsedBytes() pulumi.IntPtrOutput { + return o.ApplyT(func(v *MonthlyScheduleResponse) *int { + if v == nil { + return nil + } + return v.UsedBytes + }).(pulumi.IntPtrOutput) +} + // Mount target properties type MountTargetProperties struct { // UUID v4 used to identify the MountTarget @@ -3557,6 +4211,47 @@ func (i WeeklyScheduleArgs) ToWeeklyScheduleOutputWithContext(ctx context.Contex return pulumi.ToOutputWithContext(ctx, i).(WeeklyScheduleOutput) } +func (i WeeklyScheduleArgs) ToWeeklySchedulePtrOutput() WeeklySchedulePtrOutput { + return i.ToWeeklySchedulePtrOutputWithContext(context.Background()) +} + +func (i WeeklyScheduleArgs) ToWeeklySchedulePtrOutputWithContext(ctx context.Context) WeeklySchedulePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WeeklyScheduleOutput).ToWeeklySchedulePtrOutputWithContext(ctx) +} + +// WeeklySchedulePtrInput is an input type that accepts WeeklyScheduleArgs, WeeklySchedulePtr and WeeklySchedulePtrOutput values. +// You can construct a concrete instance of `WeeklySchedulePtrInput` via: +// +// WeeklyScheduleArgs{...} +// +// or: +// +// nil +type WeeklySchedulePtrInput interface { + pulumi.Input + + ToWeeklySchedulePtrOutput() WeeklySchedulePtrOutput + ToWeeklySchedulePtrOutputWithContext(context.Context) WeeklySchedulePtrOutput +} + +type weeklySchedulePtrType WeeklyScheduleArgs + +func WeeklySchedulePtr(v *WeeklyScheduleArgs) WeeklySchedulePtrInput { + return (*weeklySchedulePtrType)(v) +} + +func (*weeklySchedulePtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WeeklySchedule)(nil)).Elem() +} + +func (i *weeklySchedulePtrType) ToWeeklySchedulePtrOutput() WeeklySchedulePtrOutput { + return i.ToWeeklySchedulePtrOutputWithContext(context.Background()) +} + +func (i *weeklySchedulePtrType) ToWeeklySchedulePtrOutputWithContext(ctx context.Context) WeeklySchedulePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WeeklySchedulePtrOutput) +} + // Weekly Schedule properties, make a snapshot every week at a specific day or days type WeeklyScheduleOutput struct{ *pulumi.OutputState } @@ -3572,6 +4267,16 @@ func (o WeeklyScheduleOutput) ToWeeklyScheduleOutputWithContext(ctx context.Cont return o } +func (o WeeklyScheduleOutput) ToWeeklySchedulePtrOutput() WeeklySchedulePtrOutput { + return o.ToWeeklySchedulePtrOutputWithContext(context.Background()) +} + +func (o WeeklyScheduleOutput) ToWeeklySchedulePtrOutputWithContext(ctx context.Context) WeeklySchedulePtrOutput { + return o.ApplyT(func(v WeeklySchedule) *WeeklySchedule { + return &v + }).(WeeklySchedulePtrOutput) +} + // Indicates which weekdays snapshot should be taken, accepts a comma separated list of week day names in english func (o WeeklyScheduleOutput) Day() pulumi.StringPtrOutput { return o.ApplyT(func(v WeeklySchedule) *string { return v.Day }).(pulumi.StringPtrOutput) @@ -3597,6 +4302,74 @@ func (o WeeklyScheduleOutput) UsedBytes() pulumi.IntPtrOutput { return o.ApplyT(func(v WeeklySchedule) *int { return v.UsedBytes }).(pulumi.IntPtrOutput) } +type WeeklySchedulePtrOutput struct{ *pulumi.OutputState } + +func (WeeklySchedulePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WeeklySchedule)(nil)).Elem() +} + +func (o WeeklySchedulePtrOutput) ToWeeklySchedulePtrOutput() WeeklySchedulePtrOutput { + return o +} + +func (o WeeklySchedulePtrOutput) ToWeeklySchedulePtrOutputWithContext(ctx context.Context) WeeklySchedulePtrOutput { + return o +} + +func (o WeeklySchedulePtrOutput) Elem() WeeklyScheduleOutput { + return o.ApplyT(func(v *WeeklySchedule) WeeklySchedule { return *v }).(WeeklyScheduleOutput) +} + +// Indicates which weekdays snapshot should be taken, accepts a comma separated list of week day names in english +func (o WeeklySchedulePtrOutput) Day() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WeeklySchedule) *string { + if v == nil { + return nil + } + return v.Day + }).(pulumi.StringPtrOutput) +} + +// Indicates which hour in UTC timezone a snapshot should be taken +func (o WeeklySchedulePtrOutput) Hour() pulumi.IntPtrOutput { + return o.ApplyT(func(v *WeeklySchedule) *int { + if v == nil { + return nil + } + return v.Hour + }).(pulumi.IntPtrOutput) +} + +// Indicates which minute snapshot should be taken +func (o WeeklySchedulePtrOutput) Minute() pulumi.IntPtrOutput { + return o.ApplyT(func(v *WeeklySchedule) *int { + if v == nil { + return nil + } + return v.Minute + }).(pulumi.IntPtrOutput) +} + +// Weekly snapshot count to keep +func (o WeeklySchedulePtrOutput) SnapshotsToKeep() pulumi.IntPtrOutput { + return o.ApplyT(func(v *WeeklySchedule) *int { + if v == nil { + return nil + } + return v.SnapshotsToKeep + }).(pulumi.IntPtrOutput) +} + +// Resource size in bytes, current storage usage for the volume in bytes +func (o WeeklySchedulePtrOutput) UsedBytes() pulumi.IntPtrOutput { + return o.ApplyT(func(v *WeeklySchedule) *int { + if v == nil { + return nil + } + return v.UsedBytes + }).(pulumi.IntPtrOutput) +} + // Weekly Schedule properties, make a snapshot every week at a specific day or days type WeeklyScheduleResponse struct { // Indicates which weekdays snapshot should be taken, accepts a comma separated list of week day names in english @@ -3648,6 +4421,47 @@ func (i WeeklyScheduleResponseArgs) ToWeeklyScheduleResponseOutputWithContext(ct return pulumi.ToOutputWithContext(ctx, i).(WeeklyScheduleResponseOutput) } +func (i WeeklyScheduleResponseArgs) ToWeeklyScheduleResponsePtrOutput() WeeklyScheduleResponsePtrOutput { + return i.ToWeeklyScheduleResponsePtrOutputWithContext(context.Background()) +} + +func (i WeeklyScheduleResponseArgs) ToWeeklyScheduleResponsePtrOutputWithContext(ctx context.Context) WeeklyScheduleResponsePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WeeklyScheduleResponseOutput).ToWeeklyScheduleResponsePtrOutputWithContext(ctx) +} + +// WeeklyScheduleResponsePtrInput is an input type that accepts WeeklyScheduleResponseArgs, WeeklyScheduleResponsePtr and WeeklyScheduleResponsePtrOutput values. +// You can construct a concrete instance of `WeeklyScheduleResponsePtrInput` via: +// +// WeeklyScheduleResponseArgs{...} +// +// or: +// +// nil +type WeeklyScheduleResponsePtrInput interface { + pulumi.Input + + ToWeeklyScheduleResponsePtrOutput() WeeklyScheduleResponsePtrOutput + ToWeeklyScheduleResponsePtrOutputWithContext(context.Context) WeeklyScheduleResponsePtrOutput +} + +type weeklyScheduleResponsePtrType WeeklyScheduleResponseArgs + +func WeeklyScheduleResponsePtr(v *WeeklyScheduleResponseArgs) WeeklyScheduleResponsePtrInput { + return (*weeklyScheduleResponsePtrType)(v) +} + +func (*weeklyScheduleResponsePtrType) ElementType() reflect.Type { + return reflect.TypeOf((**WeeklyScheduleResponse)(nil)).Elem() +} + +func (i *weeklyScheduleResponsePtrType) ToWeeklyScheduleResponsePtrOutput() WeeklyScheduleResponsePtrOutput { + return i.ToWeeklyScheduleResponsePtrOutputWithContext(context.Background()) +} + +func (i *weeklyScheduleResponsePtrType) ToWeeklyScheduleResponsePtrOutputWithContext(ctx context.Context) WeeklyScheduleResponsePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(WeeklyScheduleResponsePtrOutput) +} + // Weekly Schedule properties, make a snapshot every week at a specific day or days type WeeklyScheduleResponseOutput struct{ *pulumi.OutputState } @@ -3663,6 +4477,16 @@ func (o WeeklyScheduleResponseOutput) ToWeeklyScheduleResponseOutputWithContext( return o } +func (o WeeklyScheduleResponseOutput) ToWeeklyScheduleResponsePtrOutput() WeeklyScheduleResponsePtrOutput { + return o.ToWeeklyScheduleResponsePtrOutputWithContext(context.Background()) +} + +func (o WeeklyScheduleResponseOutput) ToWeeklyScheduleResponsePtrOutputWithContext(ctx context.Context) WeeklyScheduleResponsePtrOutput { + return o.ApplyT(func(v WeeklyScheduleResponse) *WeeklyScheduleResponse { + return &v + }).(WeeklyScheduleResponsePtrOutput) +} + // Indicates which weekdays snapshot should be taken, accepts a comma separated list of week day names in english func (o WeeklyScheduleResponseOutput) Day() pulumi.StringPtrOutput { return o.ApplyT(func(v WeeklyScheduleResponse) *string { return v.Day }).(pulumi.StringPtrOutput) @@ -3688,21 +4512,95 @@ func (o WeeklyScheduleResponseOutput) UsedBytes() pulumi.IntPtrOutput { return o.ApplyT(func(v WeeklyScheduleResponse) *int { return v.UsedBytes }).(pulumi.IntPtrOutput) } +type WeeklyScheduleResponsePtrOutput struct{ *pulumi.OutputState } + +func (WeeklyScheduleResponsePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**WeeklyScheduleResponse)(nil)).Elem() +} + +func (o WeeklyScheduleResponsePtrOutput) ToWeeklyScheduleResponsePtrOutput() WeeklyScheduleResponsePtrOutput { + return o +} + +func (o WeeklyScheduleResponsePtrOutput) ToWeeklyScheduleResponsePtrOutputWithContext(ctx context.Context) WeeklyScheduleResponsePtrOutput { + return o +} + +func (o WeeklyScheduleResponsePtrOutput) Elem() WeeklyScheduleResponseOutput { + return o.ApplyT(func(v *WeeklyScheduleResponse) WeeklyScheduleResponse { return *v }).(WeeklyScheduleResponseOutput) +} + +// Indicates which weekdays snapshot should be taken, accepts a comma separated list of week day names in english +func (o WeeklyScheduleResponsePtrOutput) Day() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WeeklyScheduleResponse) *string { + if v == nil { + return nil + } + return v.Day + }).(pulumi.StringPtrOutput) +} + +// Indicates which hour in UTC timezone a snapshot should be taken +func (o WeeklyScheduleResponsePtrOutput) Hour() pulumi.IntPtrOutput { + return o.ApplyT(func(v *WeeklyScheduleResponse) *int { + if v == nil { + return nil + } + return v.Hour + }).(pulumi.IntPtrOutput) +} + +// Indicates which minute snapshot should be taken +func (o WeeklyScheduleResponsePtrOutput) Minute() pulumi.IntPtrOutput { + return o.ApplyT(func(v *WeeklyScheduleResponse) *int { + if v == nil { + return nil + } + return v.Minute + }).(pulumi.IntPtrOutput) +} + +// Weekly snapshot count to keep +func (o WeeklyScheduleResponsePtrOutput) SnapshotsToKeep() pulumi.IntPtrOutput { + return o.ApplyT(func(v *WeeklyScheduleResponse) *int { + if v == nil { + return nil + } + return v.SnapshotsToKeep + }).(pulumi.IntPtrOutput) +} + +// Resource size in bytes, current storage usage for the volume in bytes +func (o WeeklyScheduleResponsePtrOutput) UsedBytes() pulumi.IntPtrOutput { + return o.ApplyT(func(v *WeeklyScheduleResponse) *int { + if v == nil { + return nil + } + return v.UsedBytes + }).(pulumi.IntPtrOutput) +} + func init() { pulumi.RegisterOutputType(ActiveDirectoryOutput{}) pulumi.RegisterOutputType(ActiveDirectoryArrayOutput{}) pulumi.RegisterOutputType(ActiveDirectoryResponseOutput{}) pulumi.RegisterOutputType(ActiveDirectoryResponseArrayOutput{}) pulumi.RegisterOutputType(DailyScheduleOutput{}) + pulumi.RegisterOutputType(DailySchedulePtrOutput{}) pulumi.RegisterOutputType(DailyScheduleResponseOutput{}) + pulumi.RegisterOutputType(DailyScheduleResponsePtrOutput{}) pulumi.RegisterOutputType(ExportPolicyRuleOutput{}) pulumi.RegisterOutputType(ExportPolicyRuleArrayOutput{}) pulumi.RegisterOutputType(ExportPolicyRuleResponseOutput{}) pulumi.RegisterOutputType(ExportPolicyRuleResponseArrayOutput{}) pulumi.RegisterOutputType(HourlyScheduleOutput{}) + pulumi.RegisterOutputType(HourlySchedulePtrOutput{}) pulumi.RegisterOutputType(HourlyScheduleResponseOutput{}) + pulumi.RegisterOutputType(HourlyScheduleResponsePtrOutput{}) pulumi.RegisterOutputType(MonthlyScheduleOutput{}) + pulumi.RegisterOutputType(MonthlySchedulePtrOutput{}) pulumi.RegisterOutputType(MonthlyScheduleResponseOutput{}) + pulumi.RegisterOutputType(MonthlyScheduleResponsePtrOutput{}) pulumi.RegisterOutputType(MountTargetPropertiesOutput{}) pulumi.RegisterOutputType(MountTargetPropertiesArrayOutput{}) pulumi.RegisterOutputType(MountTargetPropertiesResponseOutput{}) @@ -3732,5 +4630,7 @@ func init() { pulumi.RegisterOutputType(VolumeSnapshotPropertiesResponseOutput{}) pulumi.RegisterOutputType(VolumeSnapshotPropertiesResponsePtrOutput{}) pulumi.RegisterOutputType(WeeklyScheduleOutput{}) + pulumi.RegisterOutputType(WeeklySchedulePtrOutput{}) pulumi.RegisterOutputType(WeeklyScheduleResponseOutput{}) + pulumi.RegisterOutputType(WeeklyScheduleResponsePtrOutput{}) } diff --git a/sdk/go/azurerm/netapp/v20200601/snapshotPolicy.go b/sdk/go/azurerm/netapp/v20200601/snapshotPolicy.go index 18b29fcd279e..8bdb875af91b 100644 --- a/sdk/go/azurerm/netapp/v20200601/snapshotPolicy.go +++ b/sdk/go/azurerm/netapp/v20200601/snapshotPolicy.go @@ -15,23 +15,25 @@ type SnapshotPolicy struct { pulumi.CustomResourceState // Schedule for daily snapshots - DailySchedule pulumi.MapOutput `pulumi:"dailySchedule"` + DailySchedule DailyScheduleResponsePtrOutput `pulumi:"dailySchedule"` // The property to decide policy is enabled or not Enabled pulumi.BoolPtrOutput `pulumi:"enabled"` // Schedule for hourly snapshots - HourlySchedule pulumi.MapOutput `pulumi:"hourlySchedule"` + HourlySchedule HourlyScheduleResponsePtrOutput `pulumi:"hourlySchedule"` // Resource location Location pulumi.StringOutput `pulumi:"location"` // Schedule for monthly snapshots - MonthlySchedule pulumi.MapOutput `pulumi:"monthlySchedule"` - // Resource name + MonthlySchedule MonthlyScheduleResponsePtrOutput `pulumi:"monthlySchedule"` + // Snapshot policy name Name pulumi.StringOutput `pulumi:"name"` + // Azure lifecycle management + ProvisioningState pulumi.StringOutput `pulumi:"provisioningState"` // Resource tags Tags pulumi.StringMapOutput `pulumi:"tags"` // Resource type Type pulumi.StringOutput `pulumi:"type"` // Schedule for weekly snapshots - WeeklySchedule pulumi.MapOutput `pulumi:"weeklySchedule"` + WeeklySchedule WeeklyScheduleResponsePtrOutput `pulumi:"weeklySchedule"` } // NewSnapshotPolicy registers a new resource with the given unique name, arguments, and options. @@ -81,44 +83,48 @@ func GetSnapshotPolicy(ctx *pulumi.Context, // Input properties used for looking up and filtering SnapshotPolicy resources. type snapshotPolicyState struct { // Schedule for daily snapshots - DailySchedule map[string]interface{} `pulumi:"dailySchedule"` + DailySchedule *DailyScheduleResponse `pulumi:"dailySchedule"` // The property to decide policy is enabled or not Enabled *bool `pulumi:"enabled"` // Schedule for hourly snapshots - HourlySchedule map[string]interface{} `pulumi:"hourlySchedule"` + HourlySchedule *HourlyScheduleResponse `pulumi:"hourlySchedule"` // Resource location Location *string `pulumi:"location"` // Schedule for monthly snapshots - MonthlySchedule map[string]interface{} `pulumi:"monthlySchedule"` - // Resource name + MonthlySchedule *MonthlyScheduleResponse `pulumi:"monthlySchedule"` + // Snapshot policy name Name *string `pulumi:"name"` + // Azure lifecycle management + ProvisioningState *string `pulumi:"provisioningState"` // Resource tags Tags map[string]string `pulumi:"tags"` // Resource type Type *string `pulumi:"type"` // Schedule for weekly snapshots - WeeklySchedule map[string]interface{} `pulumi:"weeklySchedule"` + WeeklySchedule *WeeklyScheduleResponse `pulumi:"weeklySchedule"` } type SnapshotPolicyState struct { // Schedule for daily snapshots - DailySchedule pulumi.MapInput + DailySchedule DailyScheduleResponsePtrInput // The property to decide policy is enabled or not Enabled pulumi.BoolPtrInput // Schedule for hourly snapshots - HourlySchedule pulumi.MapInput + HourlySchedule HourlyScheduleResponsePtrInput // Resource location Location pulumi.StringPtrInput // Schedule for monthly snapshots - MonthlySchedule pulumi.MapInput - // Resource name + MonthlySchedule MonthlyScheduleResponsePtrInput + // Snapshot policy name Name pulumi.StringPtrInput + // Azure lifecycle management + ProvisioningState pulumi.StringPtrInput // Resource tags Tags pulumi.StringMapInput // Resource type Type pulumi.StringPtrInput // Schedule for weekly snapshots - WeeklySchedule pulumi.MapInput + WeeklySchedule WeeklyScheduleResponsePtrInput } func (SnapshotPolicyState) ElementType() reflect.Type { @@ -129,15 +135,15 @@ type snapshotPolicyArgs struct { // The name of the NetApp account AccountName string `pulumi:"accountName"` // Schedule for daily snapshots - DailySchedule map[string]interface{} `pulumi:"dailySchedule"` + DailySchedule *DailySchedule `pulumi:"dailySchedule"` // The property to decide policy is enabled or not Enabled *bool `pulumi:"enabled"` // Schedule for hourly snapshots - HourlySchedule map[string]interface{} `pulumi:"hourlySchedule"` + HourlySchedule *HourlySchedule `pulumi:"hourlySchedule"` // Resource location Location string `pulumi:"location"` // Schedule for monthly snapshots - MonthlySchedule map[string]interface{} `pulumi:"monthlySchedule"` + MonthlySchedule *MonthlySchedule `pulumi:"monthlySchedule"` // The name of the resource group. ResourceGroupName string `pulumi:"resourceGroupName"` // The name of the snapshot policy target @@ -145,7 +151,7 @@ type snapshotPolicyArgs struct { // Resource tags Tags map[string]string `pulumi:"tags"` // Schedule for weekly snapshots - WeeklySchedule map[string]interface{} `pulumi:"weeklySchedule"` + WeeklySchedule *WeeklySchedule `pulumi:"weeklySchedule"` } // The set of arguments for constructing a SnapshotPolicy resource. @@ -153,15 +159,15 @@ type SnapshotPolicyArgs struct { // The name of the NetApp account AccountName pulumi.StringInput // Schedule for daily snapshots - DailySchedule pulumi.MapInput + DailySchedule DailySchedulePtrInput // The property to decide policy is enabled or not Enabled pulumi.BoolPtrInput // Schedule for hourly snapshots - HourlySchedule pulumi.MapInput + HourlySchedule HourlySchedulePtrInput // Resource location Location pulumi.StringInput // Schedule for monthly snapshots - MonthlySchedule pulumi.MapInput + MonthlySchedule MonthlySchedulePtrInput // The name of the resource group. ResourceGroupName pulumi.StringInput // The name of the snapshot policy target @@ -169,7 +175,7 @@ type SnapshotPolicyArgs struct { // Resource tags Tags pulumi.StringMapInput // Schedule for weekly snapshots - WeeklySchedule pulumi.MapInput + WeeklySchedule WeeklySchedulePtrInput } func (SnapshotPolicyArgs) ElementType() reflect.Type { diff --git a/sdk/go/azurerm/sql/v20200202preview/getServerTrustGroup.go b/sdk/go/azurerm/sql/v20200202preview/getServerTrustGroup.go new file mode 100644 index 000000000000..5dc1a9b348aa --- /dev/null +++ b/sdk/go/azurerm/sql/v20200202preview/getServerTrustGroup.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 v20200202preview + +import ( + "github.com/pulumi/pulumi/sdk/v2/go/pulumi" +) + +func LookupServerTrustGroup(ctx *pulumi.Context, args *LookupServerTrustGroupArgs, opts ...pulumi.InvokeOption) (*LookupServerTrustGroupResult, error) { + var rv LookupServerTrustGroupResult + err := ctx.Invoke("azurerm:sql/v20200202preview:getServerTrustGroup", args, &rv, opts...) + if err != nil { + return nil, err + } + return &rv, nil +} + +type LookupServerTrustGroupArgs struct { + // The name of the region where the resource is located. + LocationName string `pulumi:"locationName"` + // The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. + ResourceGroupName string `pulumi:"resourceGroupName"` + // The name of the server trust group. + ServerTrustGroupName string `pulumi:"serverTrustGroupName"` +} + +// A server trust group. +type LookupServerTrustGroupResult struct { + // Group members information for the server trust group. + GroupMembers []ServerInfoResponse `pulumi:"groupMembers"` + // Resource name. + Name string `pulumi:"name"` + // Trust scope of the server trust group. + TrustScopes []string `pulumi:"trustScopes"` + // Resource type. + Type string `pulumi:"type"` +} diff --git a/sdk/go/azurerm/sql/v20200202preview/pulumiTypes.go b/sdk/go/azurerm/sql/v20200202preview/pulumiTypes.go index 264f1265f505..74860e86da6a 100644 --- a/sdk/go/azurerm/sql/v20200202preview/pulumiTypes.go +++ b/sdk/go/azurerm/sql/v20200202preview/pulumiTypes.go @@ -316,6 +316,206 @@ func (o ResourceIdentityResponsePtrOutput) Type() pulumi.StringPtrOutput { }).(pulumi.StringPtrOutput) } +// Server info for the server trust group. +type ServerInfo struct { + // Server Id. + ServerId string `pulumi:"serverId"` +} + +// ServerInfoInput is an input type that accepts ServerInfoArgs and ServerInfoOutput values. +// You can construct a concrete instance of `ServerInfoInput` via: +// +// ServerInfoArgs{...} +type ServerInfoInput interface { + pulumi.Input + + ToServerInfoOutput() ServerInfoOutput + ToServerInfoOutputWithContext(context.Context) ServerInfoOutput +} + +// Server info for the server trust group. +type ServerInfoArgs struct { + // Server Id. + ServerId pulumi.StringInput `pulumi:"serverId"` +} + +func (ServerInfoArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ServerInfo)(nil)).Elem() +} + +func (i ServerInfoArgs) ToServerInfoOutput() ServerInfoOutput { + return i.ToServerInfoOutputWithContext(context.Background()) +} + +func (i ServerInfoArgs) ToServerInfoOutputWithContext(ctx context.Context) ServerInfoOutput { + return pulumi.ToOutputWithContext(ctx, i).(ServerInfoOutput) +} + +// ServerInfoArrayInput is an input type that accepts ServerInfoArray and ServerInfoArrayOutput values. +// You can construct a concrete instance of `ServerInfoArrayInput` via: +// +// ServerInfoArray{ ServerInfoArgs{...} } +type ServerInfoArrayInput interface { + pulumi.Input + + ToServerInfoArrayOutput() ServerInfoArrayOutput + ToServerInfoArrayOutputWithContext(context.Context) ServerInfoArrayOutput +} + +type ServerInfoArray []ServerInfoInput + +func (ServerInfoArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]ServerInfo)(nil)).Elem() +} + +func (i ServerInfoArray) ToServerInfoArrayOutput() ServerInfoArrayOutput { + return i.ToServerInfoArrayOutputWithContext(context.Background()) +} + +func (i ServerInfoArray) ToServerInfoArrayOutputWithContext(ctx context.Context) ServerInfoArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ServerInfoArrayOutput) +} + +// Server info for the server trust group. +type ServerInfoOutput struct{ *pulumi.OutputState } + +func (ServerInfoOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ServerInfo)(nil)).Elem() +} + +func (o ServerInfoOutput) ToServerInfoOutput() ServerInfoOutput { + return o +} + +func (o ServerInfoOutput) ToServerInfoOutputWithContext(ctx context.Context) ServerInfoOutput { + return o +} + +// Server Id. +func (o ServerInfoOutput) ServerId() pulumi.StringOutput { + return o.ApplyT(func(v ServerInfo) string { return v.ServerId }).(pulumi.StringOutput) +} + +type ServerInfoArrayOutput struct{ *pulumi.OutputState } + +func (ServerInfoArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ServerInfo)(nil)).Elem() +} + +func (o ServerInfoArrayOutput) ToServerInfoArrayOutput() ServerInfoArrayOutput { + return o +} + +func (o ServerInfoArrayOutput) ToServerInfoArrayOutputWithContext(ctx context.Context) ServerInfoArrayOutput { + return o +} + +func (o ServerInfoArrayOutput) Index(i pulumi.IntInput) ServerInfoOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ServerInfo { + return vs[0].([]ServerInfo)[vs[1].(int)] + }).(ServerInfoOutput) +} + +// Server info for the server trust group. +type ServerInfoResponse struct { + // Server Id. + ServerId string `pulumi:"serverId"` +} + +// ServerInfoResponseInput is an input type that accepts ServerInfoResponseArgs and ServerInfoResponseOutput values. +// You can construct a concrete instance of `ServerInfoResponseInput` via: +// +// ServerInfoResponseArgs{...} +type ServerInfoResponseInput interface { + pulumi.Input + + ToServerInfoResponseOutput() ServerInfoResponseOutput + ToServerInfoResponseOutputWithContext(context.Context) ServerInfoResponseOutput +} + +// Server info for the server trust group. +type ServerInfoResponseArgs struct { + // Server Id. + ServerId pulumi.StringInput `pulumi:"serverId"` +} + +func (ServerInfoResponseArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ServerInfoResponse)(nil)).Elem() +} + +func (i ServerInfoResponseArgs) ToServerInfoResponseOutput() ServerInfoResponseOutput { + return i.ToServerInfoResponseOutputWithContext(context.Background()) +} + +func (i ServerInfoResponseArgs) ToServerInfoResponseOutputWithContext(ctx context.Context) ServerInfoResponseOutput { + return pulumi.ToOutputWithContext(ctx, i).(ServerInfoResponseOutput) +} + +// ServerInfoResponseArrayInput is an input type that accepts ServerInfoResponseArray and ServerInfoResponseArrayOutput values. +// You can construct a concrete instance of `ServerInfoResponseArrayInput` via: +// +// ServerInfoResponseArray{ ServerInfoResponseArgs{...} } +type ServerInfoResponseArrayInput interface { + pulumi.Input + + ToServerInfoResponseArrayOutput() ServerInfoResponseArrayOutput + ToServerInfoResponseArrayOutputWithContext(context.Context) ServerInfoResponseArrayOutput +} + +type ServerInfoResponseArray []ServerInfoResponseInput + +func (ServerInfoResponseArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]ServerInfoResponse)(nil)).Elem() +} + +func (i ServerInfoResponseArray) ToServerInfoResponseArrayOutput() ServerInfoResponseArrayOutput { + return i.ToServerInfoResponseArrayOutputWithContext(context.Background()) +} + +func (i ServerInfoResponseArray) ToServerInfoResponseArrayOutputWithContext(ctx context.Context) ServerInfoResponseArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ServerInfoResponseArrayOutput) +} + +// Server info for the server trust group. +type ServerInfoResponseOutput struct{ *pulumi.OutputState } + +func (ServerInfoResponseOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ServerInfoResponse)(nil)).Elem() +} + +func (o ServerInfoResponseOutput) ToServerInfoResponseOutput() ServerInfoResponseOutput { + return o +} + +func (o ServerInfoResponseOutput) ToServerInfoResponseOutputWithContext(ctx context.Context) ServerInfoResponseOutput { + return o +} + +// Server Id. +func (o ServerInfoResponseOutput) ServerId() pulumi.StringOutput { + return o.ApplyT(func(v ServerInfoResponse) string { return v.ServerId }).(pulumi.StringOutput) +} + +type ServerInfoResponseArrayOutput struct{ *pulumi.OutputState } + +func (ServerInfoResponseArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ServerInfoResponse)(nil)).Elem() +} + +func (o ServerInfoResponseArrayOutput) ToServerInfoResponseArrayOutput() ServerInfoResponseArrayOutput { + return o +} + +func (o ServerInfoResponseArrayOutput) ToServerInfoResponseArrayOutputWithContext(ctx context.Context) ServerInfoResponseArrayOutput { + return o +} + +func (o ServerInfoResponseArrayOutput) Index(i pulumi.IntInput) ServerInfoResponseOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ServerInfoResponse { + return vs[0].([]ServerInfoResponse)[vs[1].(int)] + }).(ServerInfoResponseOutput) +} + // An ARM Resource SKU. type Sku struct { // Capacity of the particular SKU. @@ -741,6 +941,10 @@ func init() { pulumi.RegisterOutputType(ResourceIdentityPtrOutput{}) pulumi.RegisterOutputType(ResourceIdentityResponseOutput{}) pulumi.RegisterOutputType(ResourceIdentityResponsePtrOutput{}) + pulumi.RegisterOutputType(ServerInfoOutput{}) + pulumi.RegisterOutputType(ServerInfoArrayOutput{}) + pulumi.RegisterOutputType(ServerInfoResponseOutput{}) + pulumi.RegisterOutputType(ServerInfoResponseArrayOutput{}) pulumi.RegisterOutputType(SkuOutput{}) pulumi.RegisterOutputType(SkuPtrOutput{}) pulumi.RegisterOutputType(SkuResponseOutput{}) diff --git a/sdk/go/azurerm/sql/v20200202preview/serverTrustGroup.go b/sdk/go/azurerm/sql/v20200202preview/serverTrustGroup.go new file mode 100644 index 000000000000..99e986d4ad50 --- /dev/null +++ b/sdk/go/azurerm/sql/v20200202preview/serverTrustGroup.go @@ -0,0 +1,124 @@ +// *** 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 v20200202preview + +import ( + "reflect" + + "github.com/pkg/errors" + "github.com/pulumi/pulumi/sdk/v2/go/pulumi" +) + +// A server trust group. +type ServerTrustGroup struct { + pulumi.CustomResourceState + + // Group members information for the server trust group. + GroupMembers ServerInfoResponseArrayOutput `pulumi:"groupMembers"` + // Resource name. + Name pulumi.StringOutput `pulumi:"name"` + // Trust scope of the server trust group. + TrustScopes pulumi.StringArrayOutput `pulumi:"trustScopes"` + // Resource type. + Type pulumi.StringOutput `pulumi:"type"` +} + +// NewServerTrustGroup registers a new resource with the given unique name, arguments, and options. +func NewServerTrustGroup(ctx *pulumi.Context, + name string, args *ServerTrustGroupArgs, opts ...pulumi.ResourceOption) (*ServerTrustGroup, error) { + if args == nil || args.GroupMembers == nil { + return nil, errors.New("missing required argument 'GroupMembers'") + } + if args == nil || args.LocationName == nil { + return nil, errors.New("missing required argument 'LocationName'") + } + if args == nil || args.ResourceGroupName == nil { + return nil, errors.New("missing required argument 'ResourceGroupName'") + } + if args == nil || args.ServerTrustGroupName == nil { + return nil, errors.New("missing required argument 'ServerTrustGroupName'") + } + if args == nil || args.TrustScopes == nil { + return nil, errors.New("missing required argument 'TrustScopes'") + } + if args == nil { + args = &ServerTrustGroupArgs{} + } + var resource ServerTrustGroup + err := ctx.RegisterResource("azurerm:sql/v20200202preview:ServerTrustGroup", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetServerTrustGroup gets an existing ServerTrustGroup 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 GetServerTrustGroup(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *ServerTrustGroupState, opts ...pulumi.ResourceOption) (*ServerTrustGroup, error) { + var resource ServerTrustGroup + err := ctx.ReadResource("azurerm:sql/v20200202preview:ServerTrustGroup", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering ServerTrustGroup resources. +type serverTrustGroupState struct { + // Group members information for the server trust group. + GroupMembers []ServerInfoResponse `pulumi:"groupMembers"` + // Resource name. + Name *string `pulumi:"name"` + // Trust scope of the server trust group. + TrustScopes []string `pulumi:"trustScopes"` + // Resource type. + Type *string `pulumi:"type"` +} + +type ServerTrustGroupState struct { + // Group members information for the server trust group. + GroupMembers ServerInfoResponseArrayInput + // Resource name. + Name pulumi.StringPtrInput + // Trust scope of the server trust group. + TrustScopes pulumi.StringArrayInput + // Resource type. + Type pulumi.StringPtrInput +} + +func (ServerTrustGroupState) ElementType() reflect.Type { + return reflect.TypeOf((*serverTrustGroupState)(nil)).Elem() +} + +type serverTrustGroupArgs struct { + // Group members information for the server trust group. + GroupMembers []ServerInfo `pulumi:"groupMembers"` + // The name of the region where the resource is located. + LocationName string `pulumi:"locationName"` + // The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. + ResourceGroupName string `pulumi:"resourceGroupName"` + // The name of the server trust group. + ServerTrustGroupName string `pulumi:"serverTrustGroupName"` + // Trust scope of the server trust group. + TrustScopes []string `pulumi:"trustScopes"` +} + +// The set of arguments for constructing a ServerTrustGroup resource. +type ServerTrustGroupArgs struct { + // Group members information for the server trust group. + GroupMembers ServerInfoArrayInput + // The name of the region where the resource is located. + LocationName pulumi.StringInput + // The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. + ResourceGroupName pulumi.StringInput + // The name of the server trust group. + ServerTrustGroupName pulumi.StringInput + // Trust scope of the server trust group. + TrustScopes pulumi.StringArrayInput +} + +func (ServerTrustGroupArgs) ElementType() reflect.Type { + return reflect.TypeOf((*serverTrustGroupArgs)(nil)).Elem() +} diff --git a/sdk/nodejs/digitaltwins/index.ts b/sdk/nodejs/digitaltwins/index.ts index 82b75ae04bad..0866820c3c29 100644 --- a/sdk/nodejs/digitaltwins/index.ts +++ b/sdk/nodejs/digitaltwins/index.ts @@ -2,5 +2,7 @@ // *** Do not edit by hand unless you're certain you know what you are doing! *** // Export sub-modules: +import * as latest from "./latest"; import * as v20200301preview from "./v20200301preview"; -export {v20200301preview}; +import * as v20201031 from "./v20201031"; +export {latest, v20200301preview, v20201031}; diff --git a/sdk/nodejs/digitaltwins/latest/digitalTwin.ts b/sdk/nodejs/digitaltwins/latest/digitalTwin.ts new file mode 100644 index 000000000000..ca2d32c12101 --- /dev/null +++ b/sdk/nodejs/digitaltwins/latest/digitalTwin.ts @@ -0,0 +1,142 @@ +// *** 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 utilities from "../../utilities"; + +/** + * The description of the DigitalTwins service. + */ +export class DigitalTwin extends pulumi.CustomResource { + /** + * Get an existing DigitalTwin 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): DigitalTwin { + return new DigitalTwin(name, undefined as any, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'azurerm:digitaltwins/latest:DigitalTwin'; + + /** + * Returns true if the given object is an instance of DigitalTwin. 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 DigitalTwin { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === DigitalTwin.__pulumiType; + } + + /** + * Time when DigitalTwinsInstance was created. + */ + public /*out*/ readonly createdTime!: pulumi.Output; + /** + * Api endpoint to work with DigitalTwinsInstance. + */ + public /*out*/ readonly hostName!: pulumi.Output; + /** + * Time when DigitalTwinsInstance was updated. + */ + public /*out*/ readonly lastUpdatedTime!: pulumi.Output; + /** + * The resource location. + */ + public readonly location!: pulumi.Output; + /** + * The resource name. + */ + public /*out*/ readonly name!: pulumi.Output; + /** + * The provisioning state. + */ + public /*out*/ readonly provisioningState!: 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 DigitalTwin 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: DigitalTwinArgs, 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.resourceGroupName === undefined) { + throw new Error("Missing required property 'resourceGroupName'"); + } + if (!args || args.resourceName === undefined) { + throw new Error("Missing required property 'resourceName'"); + } + inputs["location"] = args ? args.location : undefined; + inputs["resourceGroupName"] = args ? args.resourceGroupName : undefined; + inputs["resourceName"] = args ? args.resourceName : undefined; + inputs["tags"] = args ? args.tags : undefined; + inputs["createdTime"] = undefined /*out*/; + inputs["hostName"] = undefined /*out*/; + inputs["lastUpdatedTime"] = undefined /*out*/; + inputs["name"] = undefined /*out*/; + inputs["provisioningState"] = undefined /*out*/; + inputs["type"] = undefined /*out*/; + } else { + inputs["createdTime"] = undefined /*out*/; + inputs["hostName"] = undefined /*out*/; + inputs["lastUpdatedTime"] = undefined /*out*/; + inputs["location"] = undefined /*out*/; + inputs["name"] = undefined /*out*/; + inputs["provisioningState"] = 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:digitaltwins/v20200301preview:DigitalTwin" }, { type: "azurerm:digitaltwins/v20201031:DigitalTwin" }] }; + opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + super(DigitalTwin.__pulumiType, name, inputs, opts); + } +} + +/** + * The set of arguments for constructing a DigitalTwin resource. + */ +export interface DigitalTwinArgs { + /** + * The resource location. + */ + readonly location: pulumi.Input; + /** + * The name of the resource group that contains the DigitalTwinsInstance. + */ + readonly resourceGroupName: pulumi.Input; + /** + * The name of the DigitalTwinsInstance. + */ + readonly resourceName: pulumi.Input; + /** + * The resource tags. + */ + readonly tags?: pulumi.Input<{[key: string]: pulumi.Input}>; +} diff --git a/sdk/nodejs/digitaltwins/latest/digitalTwinsEndpoint.ts b/sdk/nodejs/digitaltwins/latest/digitalTwinsEndpoint.ts new file mode 100644 index 000000000000..2bd35ebef645 --- /dev/null +++ b/sdk/nodejs/digitaltwins/latest/digitalTwinsEndpoint.ts @@ -0,0 +1,115 @@ +// *** 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"; + +/** + * DigitalTwinsInstance endpoint resource. + */ +export class DigitalTwinsEndpoint extends pulumi.CustomResource { + /** + * Get an existing DigitalTwinsEndpoint 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): DigitalTwinsEndpoint { + return new DigitalTwinsEndpoint(name, undefined as any, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'azurerm:digitaltwins/latest:DigitalTwinsEndpoint'; + + /** + * Returns true if the given object is an instance of DigitalTwinsEndpoint. 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 DigitalTwinsEndpoint { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === DigitalTwinsEndpoint.__pulumiType; + } + + /** + * Extension resource name. + */ + public /*out*/ readonly name!: pulumi.Output; + /** + * DigitalTwinsInstance endpoint resource properties. + */ + public readonly properties!: pulumi.Output; + /** + * The resource type. + */ + public /*out*/ readonly type!: pulumi.Output; + + /** + * Create a DigitalTwinsEndpoint 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: DigitalTwinsEndpointArgs, opts?: pulumi.CustomResourceOptions) { + let inputs: pulumi.Inputs = {}; + if (!(opts && opts.id)) { + if (!args || args.endpointName === undefined) { + throw new Error("Missing required property 'endpointName'"); + } + 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["endpointName"] = args ? args.endpointName : 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:digitaltwins/v20200301preview:DigitalTwinsEndpoint" }, { type: "azurerm:digitaltwins/v20201031:DigitalTwinsEndpoint" }] }; + opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + super(DigitalTwinsEndpoint.__pulumiType, name, inputs, opts); + } +} + +/** + * The set of arguments for constructing a DigitalTwinsEndpoint resource. + */ +export interface DigitalTwinsEndpointArgs { + /** + * Name of Endpoint Resource. + */ + readonly endpointName: pulumi.Input; + /** + * DigitalTwinsInstance endpoint resource properties. + */ + readonly properties?: pulumi.Input; + /** + * The name of the resource group that contains the DigitalTwinsInstance. + */ + readonly resourceGroupName: pulumi.Input; + /** + * The name of the DigitalTwinsInstance. + */ + readonly resourceName: pulumi.Input; +} diff --git a/sdk/nodejs/digitaltwins/latest/getDigitalTwin.ts b/sdk/nodejs/digitaltwins/latest/getDigitalTwin.ts new file mode 100644 index 000000000000..5af26ddb26e1 --- /dev/null +++ b/sdk/nodejs/digitaltwins/latest/getDigitalTwin.ts @@ -0,0 +1,70 @@ +// *** 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 getDigitalTwin(args: GetDigitalTwinArgs, opts?: pulumi.InvokeOptions): Promise { + if (!opts) { + opts = {} + } + + if (!opts.version) { + opts.version = utilities.getVersion(); + } + return pulumi.runtime.invoke("azurerm:digitaltwins/latest:getDigitalTwin", { + "resourceGroupName": args.resourceGroupName, + "resourceName": args.resourceName, + }, opts); +} + +export interface GetDigitalTwinArgs { + /** + * The name of the resource group that contains the DigitalTwinsInstance. + */ + readonly resourceGroupName: string; + /** + * The name of the DigitalTwinsInstance. + */ + readonly resourceName: string; +} + +/** + * The description of the DigitalTwins service. + */ +export interface GetDigitalTwinResult { + /** + * Time when DigitalTwinsInstance was created. + */ + readonly createdTime: string; + /** + * Api endpoint to work with DigitalTwinsInstance. + */ + readonly hostName: string; + /** + * Time when DigitalTwinsInstance was updated. + */ + readonly lastUpdatedTime: string; + /** + * The resource location. + */ + readonly location: string; + /** + * The resource name. + */ + readonly name: string; + /** + * The provisioning state. + */ + readonly provisioningState: string; + /** + * The resource tags. + */ + readonly tags?: {[key: string]: string}; + /** + * The resource type. + */ + readonly type: string; +} diff --git a/sdk/nodejs/digitaltwins/latest/getDigitalTwinsEndpoint.ts b/sdk/nodejs/digitaltwins/latest/getDigitalTwinsEndpoint.ts new file mode 100644 index 000000000000..00cf04ae497f --- /dev/null +++ b/sdk/nodejs/digitaltwins/latest/getDigitalTwinsEndpoint.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 getDigitalTwinsEndpoint(args: GetDigitalTwinsEndpointArgs, opts?: pulumi.InvokeOptions): Promise { + if (!opts) { + opts = {} + } + + if (!opts.version) { + opts.version = utilities.getVersion(); + } + return pulumi.runtime.invoke("azurerm:digitaltwins/latest:getDigitalTwinsEndpoint", { + "endpointName": args.endpointName, + "resourceGroupName": args.resourceGroupName, + "resourceName": args.resourceName, + }, opts); +} + +export interface GetDigitalTwinsEndpointArgs { + /** + * Name of Endpoint Resource. + */ + readonly endpointName: string; + /** + * The name of the resource group that contains the DigitalTwinsInstance. + */ + readonly resourceGroupName: string; + /** + * The name of the DigitalTwinsInstance. + */ + readonly resourceName: string; +} + +/** + * DigitalTwinsInstance endpoint resource. + */ +export interface GetDigitalTwinsEndpointResult { + /** + * Extension resource name. + */ + readonly name: string; + /** + * DigitalTwinsInstance endpoint resource properties. + */ + readonly properties: outputs.digitaltwins.latest.EventGridResponse | outputs.digitaltwins.latest.EventHubResponse | outputs.digitaltwins.latest.ServiceBusResponse; + /** + * The resource type. + */ + readonly type: string; +} diff --git a/sdk/nodejs/digitaltwins/latest/index.ts b/sdk/nodejs/digitaltwins/latest/index.ts new file mode 100644 index 000000000000..05d8191b6dbb --- /dev/null +++ b/sdk/nodejs/digitaltwins/latest/index.ts @@ -0,0 +1,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 members: +export * from "./digitalTwin"; +export * from "./digitalTwinsEndpoint"; +export * from "./getDigitalTwin"; +export * from "./getDigitalTwinsEndpoint"; diff --git a/sdk/nodejs/digitaltwins/v20200301preview/digitalTwin.ts b/sdk/nodejs/digitaltwins/v20200301preview/digitalTwin.ts index 060f85e7fcf9..aee01e77c03c 100644 --- a/sdk/nodejs/digitaltwins/v20200301preview/digitalTwin.ts +++ b/sdk/nodejs/digitaltwins/v20200301preview/digitalTwin.ts @@ -121,6 +121,8 @@ export class DigitalTwin extends pulumi.CustomResource { if (!opts.version) { opts.version = utilities.getVersion(); } + const aliasOpts = { aliases: [{ type: "azurerm:digitaltwins/latest:DigitalTwin" }, { type: "azurerm:digitaltwins/v20201031:DigitalTwin" }] }; + opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; super(DigitalTwin.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/digitaltwins/v20200301preview/digitalTwinsEndpoint.ts b/sdk/nodejs/digitaltwins/v20200301preview/digitalTwinsEndpoint.ts index 0523bc979f8c..4edceeb78089 100644 --- a/sdk/nodejs/digitaltwins/v20200301preview/digitalTwinsEndpoint.ts +++ b/sdk/nodejs/digitaltwins/v20200301preview/digitalTwinsEndpoint.ts @@ -86,6 +86,8 @@ export class DigitalTwinsEndpoint extends pulumi.CustomResource { if (!opts.version) { opts.version = utilities.getVersion(); } + const aliasOpts = { aliases: [{ type: "azurerm:digitaltwins/latest:DigitalTwinsEndpoint" }, { type: "azurerm:digitaltwins/v20201031:DigitalTwinsEndpoint" }] }; + opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; super(DigitalTwinsEndpoint.__pulumiType, name, inputs, opts); } } diff --git a/sdk/nodejs/digitaltwins/v20201031/digitalTwin.ts b/sdk/nodejs/digitaltwins/v20201031/digitalTwin.ts new file mode 100644 index 000000000000..59d518b35b83 --- /dev/null +++ b/sdk/nodejs/digitaltwins/v20201031/digitalTwin.ts @@ -0,0 +1,142 @@ +// *** 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 utilities from "../../utilities"; + +/** + * The description of the DigitalTwins service. + */ +export class DigitalTwin extends pulumi.CustomResource { + /** + * Get an existing DigitalTwin 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): DigitalTwin { + return new DigitalTwin(name, undefined as any, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'azurerm:digitaltwins/v20201031:DigitalTwin'; + + /** + * Returns true if the given object is an instance of DigitalTwin. 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 DigitalTwin { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === DigitalTwin.__pulumiType; + } + + /** + * Time when DigitalTwinsInstance was created. + */ + public /*out*/ readonly createdTime!: pulumi.Output; + /** + * Api endpoint to work with DigitalTwinsInstance. + */ + public /*out*/ readonly hostName!: pulumi.Output; + /** + * Time when DigitalTwinsInstance was updated. + */ + public /*out*/ readonly lastUpdatedTime!: pulumi.Output; + /** + * The resource location. + */ + public readonly location!: pulumi.Output; + /** + * The resource name. + */ + public /*out*/ readonly name!: pulumi.Output; + /** + * The provisioning state. + */ + public /*out*/ readonly provisioningState!: 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 DigitalTwin 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: DigitalTwinArgs, 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.resourceGroupName === undefined) { + throw new Error("Missing required property 'resourceGroupName'"); + } + if (!args || args.resourceName === undefined) { + throw new Error("Missing required property 'resourceName'"); + } + inputs["location"] = args ? args.location : undefined; + inputs["resourceGroupName"] = args ? args.resourceGroupName : undefined; + inputs["resourceName"] = args ? args.resourceName : undefined; + inputs["tags"] = args ? args.tags : undefined; + inputs["createdTime"] = undefined /*out*/; + inputs["hostName"] = undefined /*out*/; + inputs["lastUpdatedTime"] = undefined /*out*/; + inputs["name"] = undefined /*out*/; + inputs["provisioningState"] = undefined /*out*/; + inputs["type"] = undefined /*out*/; + } else { + inputs["createdTime"] = undefined /*out*/; + inputs["hostName"] = undefined /*out*/; + inputs["lastUpdatedTime"] = undefined /*out*/; + inputs["location"] = undefined /*out*/; + inputs["name"] = undefined /*out*/; + inputs["provisioningState"] = 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:digitaltwins/latest:DigitalTwin" }, { type: "azurerm:digitaltwins/v20200301preview:DigitalTwin" }] }; + opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + super(DigitalTwin.__pulumiType, name, inputs, opts); + } +} + +/** + * The set of arguments for constructing a DigitalTwin resource. + */ +export interface DigitalTwinArgs { + /** + * The resource location. + */ + readonly location: pulumi.Input; + /** + * The name of the resource group that contains the DigitalTwinsInstance. + */ + readonly resourceGroupName: pulumi.Input; + /** + * The name of the DigitalTwinsInstance. + */ + readonly resourceName: pulumi.Input; + /** + * The resource tags. + */ + readonly tags?: pulumi.Input<{[key: string]: pulumi.Input}>; +} diff --git a/sdk/nodejs/digitaltwins/v20201031/digitalTwinsEndpoint.ts b/sdk/nodejs/digitaltwins/v20201031/digitalTwinsEndpoint.ts new file mode 100644 index 000000000000..2e21b39a9c09 --- /dev/null +++ b/sdk/nodejs/digitaltwins/v20201031/digitalTwinsEndpoint.ts @@ -0,0 +1,115 @@ +// *** 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"; + +/** + * DigitalTwinsInstance endpoint resource. + */ +export class DigitalTwinsEndpoint extends pulumi.CustomResource { + /** + * Get an existing DigitalTwinsEndpoint 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): DigitalTwinsEndpoint { + return new DigitalTwinsEndpoint(name, undefined as any, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'azurerm:digitaltwins/v20201031:DigitalTwinsEndpoint'; + + /** + * Returns true if the given object is an instance of DigitalTwinsEndpoint. 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 DigitalTwinsEndpoint { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === DigitalTwinsEndpoint.__pulumiType; + } + + /** + * Extension resource name. + */ + public /*out*/ readonly name!: pulumi.Output; + /** + * DigitalTwinsInstance endpoint resource properties. + */ + public readonly properties!: pulumi.Output; + /** + * The resource type. + */ + public /*out*/ readonly type!: pulumi.Output; + + /** + * Create a DigitalTwinsEndpoint 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: DigitalTwinsEndpointArgs, opts?: pulumi.CustomResourceOptions) { + let inputs: pulumi.Inputs = {}; + if (!(opts && opts.id)) { + if (!args || args.endpointName === undefined) { + throw new Error("Missing required property 'endpointName'"); + } + 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["endpointName"] = args ? args.endpointName : 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:digitaltwins/latest:DigitalTwinsEndpoint" }, { type: "azurerm:digitaltwins/v20200301preview:DigitalTwinsEndpoint" }] }; + opts = opts ? pulumi.mergeOptions(opts, aliasOpts) : aliasOpts; + super(DigitalTwinsEndpoint.__pulumiType, name, inputs, opts); + } +} + +/** + * The set of arguments for constructing a DigitalTwinsEndpoint resource. + */ +export interface DigitalTwinsEndpointArgs { + /** + * Name of Endpoint Resource. + */ + readonly endpointName: pulumi.Input; + /** + * DigitalTwinsInstance endpoint resource properties. + */ + readonly properties?: pulumi.Input; + /** + * The name of the resource group that contains the DigitalTwinsInstance. + */ + readonly resourceGroupName: pulumi.Input; + /** + * The name of the DigitalTwinsInstance. + */ + readonly resourceName: pulumi.Input; +} diff --git a/sdk/nodejs/digitaltwins/v20201031/getDigitalTwin.ts b/sdk/nodejs/digitaltwins/v20201031/getDigitalTwin.ts new file mode 100644 index 000000000000..2e0159dd2173 --- /dev/null +++ b/sdk/nodejs/digitaltwins/v20201031/getDigitalTwin.ts @@ -0,0 +1,70 @@ +// *** 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 getDigitalTwin(args: GetDigitalTwinArgs, opts?: pulumi.InvokeOptions): Promise { + if (!opts) { + opts = {} + } + + if (!opts.version) { + opts.version = utilities.getVersion(); + } + return pulumi.runtime.invoke("azurerm:digitaltwins/v20201031:getDigitalTwin", { + "resourceGroupName": args.resourceGroupName, + "resourceName": args.resourceName, + }, opts); +} + +export interface GetDigitalTwinArgs { + /** + * The name of the resource group that contains the DigitalTwinsInstance. + */ + readonly resourceGroupName: string; + /** + * The name of the DigitalTwinsInstance. + */ + readonly resourceName: string; +} + +/** + * The description of the DigitalTwins service. + */ +export interface GetDigitalTwinResult { + /** + * Time when DigitalTwinsInstance was created. + */ + readonly createdTime: string; + /** + * Api endpoint to work with DigitalTwinsInstance. + */ + readonly hostName: string; + /** + * Time when DigitalTwinsInstance was updated. + */ + readonly lastUpdatedTime: string; + /** + * The resource location. + */ + readonly location: string; + /** + * The resource name. + */ + readonly name: string; + /** + * The provisioning state. + */ + readonly provisioningState: string; + /** + * The resource tags. + */ + readonly tags?: {[key: string]: string}; + /** + * The resource type. + */ + readonly type: string; +} diff --git a/sdk/nodejs/digitaltwins/v20201031/getDigitalTwinsEndpoint.ts b/sdk/nodejs/digitaltwins/v20201031/getDigitalTwinsEndpoint.ts new file mode 100644 index 000000000000..30ea5da79e60 --- /dev/null +++ b/sdk/nodejs/digitaltwins/v20201031/getDigitalTwinsEndpoint.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 getDigitalTwinsEndpoint(args: GetDigitalTwinsEndpointArgs, opts?: pulumi.InvokeOptions): Promise { + if (!opts) { + opts = {} + } + + if (!opts.version) { + opts.version = utilities.getVersion(); + } + return pulumi.runtime.invoke("azurerm:digitaltwins/v20201031:getDigitalTwinsEndpoint", { + "endpointName": args.endpointName, + "resourceGroupName": args.resourceGroupName, + "resourceName": args.resourceName, + }, opts); +} + +export interface GetDigitalTwinsEndpointArgs { + /** + * Name of Endpoint Resource. + */ + readonly endpointName: string; + /** + * The name of the resource group that contains the DigitalTwinsInstance. + */ + readonly resourceGroupName: string; + /** + * The name of the DigitalTwinsInstance. + */ + readonly resourceName: string; +} + +/** + * DigitalTwinsInstance endpoint resource. + */ +export interface GetDigitalTwinsEndpointResult { + /** + * Extension resource name. + */ + readonly name: string; + /** + * DigitalTwinsInstance endpoint resource properties. + */ + readonly properties: outputs.digitaltwins.v20201031.EventGridResponse | outputs.digitaltwins.v20201031.EventHubResponse | outputs.digitaltwins.v20201031.ServiceBusResponse; + /** + * The resource type. + */ + readonly type: string; +} diff --git a/sdk/nodejs/digitaltwins/v20201031/index.ts b/sdk/nodejs/digitaltwins/v20201031/index.ts new file mode 100644 index 000000000000..05d8191b6dbb --- /dev/null +++ b/sdk/nodejs/digitaltwins/v20201031/index.ts @@ -0,0 +1,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 members: +export * from "./digitalTwin"; +export * from "./digitalTwinsEndpoint"; +export * from "./getDigitalTwin"; +export * from "./getDigitalTwinsEndpoint"; diff --git a/sdk/nodejs/insights/v20180617preview/getWorkbook.ts b/sdk/nodejs/insights/v20180617preview/getWorkbook.ts index bbf56eedbf40..590d413abfbc 100644 --- a/sdk/nodejs/insights/v20180617preview/getWorkbook.ts +++ b/sdk/nodejs/insights/v20180617preview/getWorkbook.ts @@ -59,6 +59,10 @@ export interface GetWorkbookResult { * Configuration of this particular workbook. Configuration data is a string containing valid JSON */ readonly serializedData: string; + /** + * ResourceId for a source resource. + */ + readonly sourceId?: string; /** * Resource tags */ diff --git a/sdk/nodejs/insights/v20180617preview/workbook.ts b/sdk/nodejs/insights/v20180617preview/workbook.ts index 9dc3d738cb3c..599890ddc26b 100644 --- a/sdk/nodejs/insights/v20180617preview/workbook.ts +++ b/sdk/nodejs/insights/v20180617preview/workbook.ts @@ -58,6 +58,10 @@ export class Workbook extends pulumi.CustomResource { * Configuration of this particular workbook. Configuration data is a string containing valid JSON */ public readonly serializedData!: pulumi.Output; + /** + * ResourceId for a source resource. + */ + public readonly sourceId!: pulumi.Output; /** * Resource tags */ @@ -73,7 +77,7 @@ export class Workbook extends pulumi.CustomResource { /** * Unique user id of the specific user that owns this workbook. */ - public readonly userId!: pulumi.Output; + public /*out*/ readonly userId!: pulumi.Output; /** * Workbook version */ @@ -110,9 +114,6 @@ export class Workbook extends pulumi.CustomResource { if (!args || args.sourceId === undefined) { throw new Error("Missing required property 'sourceId'"); } - if (!args || args.userId === undefined) { - throw new Error("Missing required property 'userId'"); - } inputs["category"] = args ? args.category : undefined; inputs["displayName"] = args ? args.displayName : undefined; inputs["kind"] = args ? args.kind : undefined; @@ -122,11 +123,11 @@ export class Workbook extends pulumi.CustomResource { inputs["serializedData"] = args ? args.serializedData : undefined; inputs["sourceId"] = args ? args.sourceId : undefined; inputs["tags"] = args ? args.tags : undefined; - inputs["userId"] = args ? args.userId : undefined; inputs["version"] = args ? args.version : undefined; inputs["name"] = undefined /*out*/; inputs["timeModified"] = undefined /*out*/; inputs["type"] = undefined /*out*/; + inputs["userId"] = undefined /*out*/; } else { inputs["category"] = undefined /*out*/; inputs["displayName"] = undefined /*out*/; @@ -134,6 +135,7 @@ export class Workbook extends pulumi.CustomResource { inputs["location"] = undefined /*out*/; inputs["name"] = undefined /*out*/; inputs["serializedData"] = undefined /*out*/; + inputs["sourceId"] = undefined /*out*/; inputs["tags"] = undefined /*out*/; inputs["timeModified"] = undefined /*out*/; inputs["type"] = undefined /*out*/; @@ -186,17 +188,13 @@ export interface WorkbookArgs { */ readonly serializedData: pulumi.Input; /** - * Azure Resource Id that will fetch all related workbooks. + * ResourceId for a source resource. */ readonly sourceId: pulumi.Input; /** * Resource tags */ readonly tags?: pulumi.Input<{[key: string]: pulumi.Input}>; - /** - * Unique user id of the specific user that owns this workbook. - */ - readonly userId: pulumi.Input; /** * Workbook version */ diff --git a/sdk/nodejs/kubernetes/v20200101preview/listConnectedClusterUserCredentials.ts b/sdk/nodejs/kubernetes/v20200101preview/listConnectedClusterUserCredentials.ts index 11cc8713c525..cb4427699414 100644 --- a/sdk/nodejs/kubernetes/v20200101preview/listConnectedClusterUserCredentials.ts +++ b/sdk/nodejs/kubernetes/v20200101preview/listConnectedClusterUserCredentials.ts @@ -15,12 +15,18 @@ export function listConnectedClusterUserCredentials(args: ListConnectedClusterUs opts.version = utilities.getVersion(); } return pulumi.runtime.invoke("azurerm:kubernetes/v20200101preview:listConnectedClusterUserCredentials", { + "authenticationMethod": args.authenticationMethod, "clusterName": args.clusterName, "resourceGroupName": args.resourceGroupName, + "value": args.value, }, opts); } export interface ListConnectedClusterUserCredentialsArgs { + /** + * The mode of client authentication. + */ + readonly authenticationMethod: string; /** * The name of the Kubernetes cluster on which get is called. */ @@ -29,6 +35,7 @@ export interface ListConnectedClusterUserCredentialsArgs { * The name of the resource group. The name is case insensitive. */ readonly resourceGroupName: string; + readonly value: inputs.kubernetes.v20200101preview.AuthenticationDetailsValue; } /** diff --git a/sdk/nodejs/netapp/latest/getsnapshotPolicy.ts b/sdk/nodejs/netapp/latest/getsnapshotPolicy.ts index 11a83ed2d89e..da69952e86f7 100644 --- a/sdk/nodejs/netapp/latest/getsnapshotPolicy.ts +++ b/sdk/nodejs/netapp/latest/getsnapshotPolicy.ts @@ -43,7 +43,7 @@ export interface GetsnapshotPolicyResult { /** * Schedule for daily snapshots */ - readonly dailySchedule?: {[key: string]: any}; + readonly dailySchedule?: outputs.netapp.latest.DailyScheduleResponse; /** * The property to decide policy is enabled or not */ @@ -51,7 +51,7 @@ export interface GetsnapshotPolicyResult { /** * Schedule for hourly snapshots */ - readonly hourlySchedule?: {[key: string]: any}; + readonly hourlySchedule?: outputs.netapp.latest.HourlyScheduleResponse; /** * Resource location */ @@ -59,11 +59,15 @@ export interface GetsnapshotPolicyResult { /** * Schedule for monthly snapshots */ - readonly monthlySchedule?: {[key: string]: any}; + readonly monthlySchedule?: outputs.netapp.latest.MonthlyScheduleResponse; /** - * Resource name + * Snapshot policy name */ readonly name: string; + /** + * Azure lifecycle management + */ + readonly provisioningState: string; /** * Resource tags */ @@ -75,5 +79,5 @@ export interface GetsnapshotPolicyResult { /** * Schedule for weekly snapshots */ - readonly weeklySchedule?: {[key: string]: any}; + readonly weeklySchedule?: outputs.netapp.latest.WeeklyScheduleResponse; } diff --git a/sdk/nodejs/netapp/latest/snapshotPolicy.ts b/sdk/nodejs/netapp/latest/snapshotPolicy.ts index 0e8bb17dc8b5..2a1587db70c0 100644 --- a/sdk/nodejs/netapp/latest/snapshotPolicy.ts +++ b/sdk/nodejs/netapp/latest/snapshotPolicy.ts @@ -2,6 +2,8 @@ // *** 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"; /** @@ -37,7 +39,7 @@ export class SnapshotPolicy extends pulumi.CustomResource { /** * Schedule for daily snapshots */ - public readonly dailySchedule!: pulumi.Output<{[key: string]: any} | undefined>; + public readonly dailySchedule!: pulumi.Output; /** * The property to decide policy is enabled or not */ @@ -45,7 +47,7 @@ export class SnapshotPolicy extends pulumi.CustomResource { /** * Schedule for hourly snapshots */ - public readonly hourlySchedule!: pulumi.Output<{[key: string]: any} | undefined>; + public readonly hourlySchedule!: pulumi.Output; /** * Resource location */ @@ -53,11 +55,15 @@ export class SnapshotPolicy extends pulumi.CustomResource { /** * Schedule for monthly snapshots */ - public readonly monthlySchedule!: pulumi.Output<{[key: string]: any} | undefined>; + public readonly monthlySchedule!: pulumi.Output; /** - * Resource name + * Snapshot policy name */ public /*out*/ readonly name!: pulumi.Output; + /** + * Azure lifecycle management + */ + public /*out*/ readonly provisioningState!: pulumi.Output; /** * Resource tags */ @@ -69,7 +75,7 @@ export class SnapshotPolicy extends pulumi.CustomResource { /** * Schedule for weekly snapshots */ - public readonly weeklySchedule!: pulumi.Output<{[key: string]: any} | undefined>; + public readonly weeklySchedule!: pulumi.Output; /** * Create a SnapshotPolicy resource with the given unique name, arguments, and options. @@ -104,6 +110,7 @@ export class SnapshotPolicy extends pulumi.CustomResource { inputs["tags"] = args ? args.tags : undefined; inputs["weeklySchedule"] = args ? args.weeklySchedule : undefined; inputs["name"] = undefined /*out*/; + inputs["provisioningState"] = undefined /*out*/; inputs["type"] = undefined /*out*/; } else { inputs["dailySchedule"] = undefined /*out*/; @@ -112,6 +119,7 @@ export class SnapshotPolicy extends pulumi.CustomResource { inputs["location"] = undefined /*out*/; inputs["monthlySchedule"] = undefined /*out*/; inputs["name"] = undefined /*out*/; + inputs["provisioningState"] = undefined /*out*/; inputs["tags"] = undefined /*out*/; inputs["type"] = undefined /*out*/; inputs["weeklySchedule"] = undefined /*out*/; @@ -140,7 +148,7 @@ export interface SnapshotPolicyArgs { /** * Schedule for daily snapshots */ - readonly dailySchedule?: pulumi.Input<{[key: string]: any}>; + readonly dailySchedule?: pulumi.Input; /** * The property to decide policy is enabled or not */ @@ -148,7 +156,7 @@ export interface SnapshotPolicyArgs { /** * Schedule for hourly snapshots */ - readonly hourlySchedule?: pulumi.Input<{[key: string]: any}>; + readonly hourlySchedule?: pulumi.Input; /** * Resource location */ @@ -156,7 +164,7 @@ export interface SnapshotPolicyArgs { /** * Schedule for monthly snapshots */ - readonly monthlySchedule?: pulumi.Input<{[key: string]: any}>; + readonly monthlySchedule?: pulumi.Input; /** * The name of the resource group. */ @@ -172,5 +180,5 @@ export interface SnapshotPolicyArgs { /** * Schedule for weekly snapshots */ - readonly weeklySchedule?: pulumi.Input<{[key: string]: any}>; + readonly weeklySchedule?: pulumi.Input; } diff --git a/sdk/nodejs/netapp/v20200601/getsnapshotPolicy.ts b/sdk/nodejs/netapp/v20200601/getsnapshotPolicy.ts index 574a2fdd075a..0b386137fcab 100644 --- a/sdk/nodejs/netapp/v20200601/getsnapshotPolicy.ts +++ b/sdk/nodejs/netapp/v20200601/getsnapshotPolicy.ts @@ -43,7 +43,7 @@ export interface GetsnapshotPolicyResult { /** * Schedule for daily snapshots */ - readonly dailySchedule?: {[key: string]: any}; + readonly dailySchedule?: outputs.netapp.v20200601.DailyScheduleResponse; /** * The property to decide policy is enabled or not */ @@ -51,7 +51,7 @@ export interface GetsnapshotPolicyResult { /** * Schedule for hourly snapshots */ - readonly hourlySchedule?: {[key: string]: any}; + readonly hourlySchedule?: outputs.netapp.v20200601.HourlyScheduleResponse; /** * Resource location */ @@ -59,11 +59,15 @@ export interface GetsnapshotPolicyResult { /** * Schedule for monthly snapshots */ - readonly monthlySchedule?: {[key: string]: any}; + readonly monthlySchedule?: outputs.netapp.v20200601.MonthlyScheduleResponse; /** - * Resource name + * Snapshot policy name */ readonly name: string; + /** + * Azure lifecycle management + */ + readonly provisioningState: string; /** * Resource tags */ @@ -75,5 +79,5 @@ export interface GetsnapshotPolicyResult { /** * Schedule for weekly snapshots */ - readonly weeklySchedule?: {[key: string]: any}; + readonly weeklySchedule?: outputs.netapp.v20200601.WeeklyScheduleResponse; } diff --git a/sdk/nodejs/netapp/v20200601/snapshotPolicy.ts b/sdk/nodejs/netapp/v20200601/snapshotPolicy.ts index d33be18e30ed..4be806d33e4b 100644 --- a/sdk/nodejs/netapp/v20200601/snapshotPolicy.ts +++ b/sdk/nodejs/netapp/v20200601/snapshotPolicy.ts @@ -2,6 +2,8 @@ // *** 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"; /** @@ -37,7 +39,7 @@ export class SnapshotPolicy extends pulumi.CustomResource { /** * Schedule for daily snapshots */ - public readonly dailySchedule!: pulumi.Output<{[key: string]: any} | undefined>; + public readonly dailySchedule!: pulumi.Output; /** * The property to decide policy is enabled or not */ @@ -45,7 +47,7 @@ export class SnapshotPolicy extends pulumi.CustomResource { /** * Schedule for hourly snapshots */ - public readonly hourlySchedule!: pulumi.Output<{[key: string]: any} | undefined>; + public readonly hourlySchedule!: pulumi.Output; /** * Resource location */ @@ -53,11 +55,15 @@ export class SnapshotPolicy extends pulumi.CustomResource { /** * Schedule for monthly snapshots */ - public readonly monthlySchedule!: pulumi.Output<{[key: string]: any} | undefined>; + public readonly monthlySchedule!: pulumi.Output; /** - * Resource name + * Snapshot policy name */ public /*out*/ readonly name!: pulumi.Output; + /** + * Azure lifecycle management + */ + public /*out*/ readonly provisioningState!: pulumi.Output; /** * Resource tags */ @@ -69,7 +75,7 @@ export class SnapshotPolicy extends pulumi.CustomResource { /** * Schedule for weekly snapshots */ - public readonly weeklySchedule!: pulumi.Output<{[key: string]: any} | undefined>; + public readonly weeklySchedule!: pulumi.Output; /** * Create a SnapshotPolicy resource with the given unique name, arguments, and options. @@ -104,6 +110,7 @@ export class SnapshotPolicy extends pulumi.CustomResource { inputs["tags"] = args ? args.tags : undefined; inputs["weeklySchedule"] = args ? args.weeklySchedule : undefined; inputs["name"] = undefined /*out*/; + inputs["provisioningState"] = undefined /*out*/; inputs["type"] = undefined /*out*/; } else { inputs["dailySchedule"] = undefined /*out*/; @@ -112,6 +119,7 @@ export class SnapshotPolicy extends pulumi.CustomResource { inputs["location"] = undefined /*out*/; inputs["monthlySchedule"] = undefined /*out*/; inputs["name"] = undefined /*out*/; + inputs["provisioningState"] = undefined /*out*/; inputs["tags"] = undefined /*out*/; inputs["type"] = undefined /*out*/; inputs["weeklySchedule"] = undefined /*out*/; @@ -140,7 +148,7 @@ export interface SnapshotPolicyArgs { /** * Schedule for daily snapshots */ - readonly dailySchedule?: pulumi.Input<{[key: string]: any}>; + readonly dailySchedule?: pulumi.Input; /** * The property to decide policy is enabled or not */ @@ -148,7 +156,7 @@ export interface SnapshotPolicyArgs { /** * Schedule for hourly snapshots */ - readonly hourlySchedule?: pulumi.Input<{[key: string]: any}>; + readonly hourlySchedule?: pulumi.Input; /** * Resource location */ @@ -156,7 +164,7 @@ export interface SnapshotPolicyArgs { /** * Schedule for monthly snapshots */ - readonly monthlySchedule?: pulumi.Input<{[key: string]: any}>; + readonly monthlySchedule?: pulumi.Input; /** * The name of the resource group. */ @@ -172,5 +180,5 @@ export interface SnapshotPolicyArgs { /** * Schedule for weekly snapshots */ - readonly weeklySchedule?: pulumi.Input<{[key: string]: any}>; + readonly weeklySchedule?: pulumi.Input; } diff --git a/sdk/nodejs/sql/v20200202preview/getServerTrustGroup.ts b/sdk/nodejs/sql/v20200202preview/getServerTrustGroup.ts new file mode 100644 index 000000000000..8b065de67eca --- /dev/null +++ b/sdk/nodejs/sql/v20200202preview/getServerTrustGroup.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 getServerTrustGroup(args: GetServerTrustGroupArgs, opts?: pulumi.InvokeOptions): Promise { + if (!opts) { + opts = {} + } + + if (!opts.version) { + opts.version = utilities.getVersion(); + } + return pulumi.runtime.invoke("azurerm:sql/v20200202preview:getServerTrustGroup", { + "locationName": args.locationName, + "resourceGroupName": args.resourceGroupName, + "serverTrustGroupName": args.serverTrustGroupName, + }, opts); +} + +export interface GetServerTrustGroupArgs { + /** + * The name of the region where the resource is located. + */ + readonly locationName: string; + /** + * The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. + */ + readonly resourceGroupName: string; + /** + * The name of the server trust group. + */ + readonly serverTrustGroupName: string; +} + +/** + * A server trust group. + */ +export interface GetServerTrustGroupResult { + /** + * Group members information for the server trust group. + */ + readonly groupMembers: outputs.sql.v20200202preview.ServerInfoResponse[]; + /** + * Resource name. + */ + readonly name: string; + /** + * Trust scope of the server trust group. + */ + readonly trustScopes: string[]; + /** + * Resource type. + */ + readonly type: string; +} diff --git a/sdk/nodejs/sql/v20200202preview/index.ts b/sdk/nodejs/sql/v20200202preview/index.ts index e809efef5df9..239a89313817 100644 --- a/sdk/nodejs/sql/v20200202preview/index.ts +++ b/sdk/nodejs/sql/v20200202preview/index.ts @@ -6,7 +6,9 @@ export * from "./getManagedDatabase"; export * from "./getManagedInstance"; export * from "./getManagedInstanceAzureADOnlyAuthentication"; export * from "./getServerAzureADOnlyAuthentication"; +export * from "./getServerTrustGroup"; export * from "./managedDatabase"; export * from "./managedInstance"; export * from "./managedInstanceAzureADOnlyAuthentication"; export * from "./serverAzureADOnlyAuthentication"; +export * from "./serverTrustGroup"; diff --git a/sdk/nodejs/sql/v20200202preview/serverTrustGroup.ts b/sdk/nodejs/sql/v20200202preview/serverTrustGroup.ts new file mode 100644 index 000000000000..7eb9c0bc160a --- /dev/null +++ b/sdk/nodejs/sql/v20200202preview/serverTrustGroup.ts @@ -0,0 +1,129 @@ +// *** 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"; + +/** + * A server trust group. + */ +export class ServerTrustGroup extends pulumi.CustomResource { + /** + * Get an existing ServerTrustGroup 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): ServerTrustGroup { + return new ServerTrustGroup(name, undefined as any, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'azurerm:sql/v20200202preview:ServerTrustGroup'; + + /** + * Returns true if the given object is an instance of ServerTrustGroup. 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 ServerTrustGroup { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === ServerTrustGroup.__pulumiType; + } + + /** + * Group members information for the server trust group. + */ + public readonly groupMembers!: pulumi.Output; + /** + * Resource name. + */ + public /*out*/ readonly name!: pulumi.Output; + /** + * Trust scope of the server trust group. + */ + public readonly trustScopes!: pulumi.Output; + /** + * Resource type. + */ + public /*out*/ readonly type!: pulumi.Output; + + /** + * Create a ServerTrustGroup 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: ServerTrustGroupArgs, opts?: pulumi.CustomResourceOptions) { + let inputs: pulumi.Inputs = {}; + if (!(opts && opts.id)) { + if (!args || args.groupMembers === undefined) { + throw new Error("Missing required property 'groupMembers'"); + } + if (!args || args.locationName === undefined) { + throw new Error("Missing required property 'locationName'"); + } + if (!args || args.resourceGroupName === undefined) { + throw new Error("Missing required property 'resourceGroupName'"); + } + if (!args || args.serverTrustGroupName === undefined) { + throw new Error("Missing required property 'serverTrustGroupName'"); + } + if (!args || args.trustScopes === undefined) { + throw new Error("Missing required property 'trustScopes'"); + } + inputs["groupMembers"] = args ? args.groupMembers : undefined; + inputs["locationName"] = args ? args.locationName : undefined; + inputs["resourceGroupName"] = args ? args.resourceGroupName : undefined; + inputs["serverTrustGroupName"] = args ? args.serverTrustGroupName : undefined; + inputs["trustScopes"] = args ? args.trustScopes : undefined; + inputs["name"] = undefined /*out*/; + inputs["type"] = undefined /*out*/; + } else { + inputs["groupMembers"] = undefined /*out*/; + inputs["name"] = undefined /*out*/; + inputs["trustScopes"] = undefined /*out*/; + inputs["type"] = undefined /*out*/; + } + if (!opts) { + opts = {} + } + + if (!opts.version) { + opts.version = utilities.getVersion(); + } + super(ServerTrustGroup.__pulumiType, name, inputs, opts); + } +} + +/** + * The set of arguments for constructing a ServerTrustGroup resource. + */ +export interface ServerTrustGroupArgs { + /** + * Group members information for the server trust group. + */ + readonly groupMembers: pulumi.Input[]>; + /** + * The name of the region where the resource is located. + */ + readonly locationName: pulumi.Input; + /** + * The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. + */ + readonly resourceGroupName: pulumi.Input; + /** + * The name of the server trust group. + */ + readonly serverTrustGroupName: pulumi.Input; + /** + * Trust scope of the server trust group. + */ + readonly trustScopes: pulumi.Input[]>; +} diff --git a/sdk/nodejs/tsconfig.json b/sdk/nodejs/tsconfig.json index 7dddf120ac3b..49af7d883cab 100644 --- a/sdk/nodejs/tsconfig.json +++ b/sdk/nodejs/tsconfig.json @@ -3219,11 +3219,21 @@ "devtestlab/v20180915/virtualMachineSchedule.ts", "devtestlab/v20180915/virtualNetwork.ts", "digitaltwins/index.ts", + "digitaltwins/latest/digitalTwin.ts", + "digitaltwins/latest/digitalTwinsEndpoint.ts", + "digitaltwins/latest/getDigitalTwin.ts", + "digitaltwins/latest/getDigitalTwinsEndpoint.ts", + "digitaltwins/latest/index.ts", "digitaltwins/v20200301preview/digitalTwin.ts", "digitaltwins/v20200301preview/digitalTwinsEndpoint.ts", "digitaltwins/v20200301preview/getDigitalTwin.ts", "digitaltwins/v20200301preview/getDigitalTwinsEndpoint.ts", "digitaltwins/v20200301preview/index.ts", + "digitaltwins/v20201031/digitalTwin.ts", + "digitaltwins/v20201031/digitalTwinsEndpoint.ts", + "digitaltwins/v20201031/getDigitalTwin.ts", + "digitaltwins/v20201031/getDigitalTwinsEndpoint.ts", + "digitaltwins/v20201031/index.ts", "documentdb/index.ts", "documentdb/latest/cassandraResourceCassandraKeyspace.ts", "documentdb/latest/cassandraResourceCassandraTable.ts", @@ -9224,11 +9234,13 @@ "sql/v20200202preview/getManagedInstance.ts", "sql/v20200202preview/getManagedInstanceAzureADOnlyAuthentication.ts", "sql/v20200202preview/getServerAzureADOnlyAuthentication.ts", + "sql/v20200202preview/getServerTrustGroup.ts", "sql/v20200202preview/index.ts", "sql/v20200202preview/managedDatabase.ts", "sql/v20200202preview/managedInstance.ts", "sql/v20200202preview/managedInstanceAzureADOnlyAuthentication.ts", "sql/v20200202preview/serverAzureADOnlyAuthentication.ts", + "sql/v20200202preview/serverTrustGroup.ts", "sqlvirtualmachine/index.ts", "sqlvirtualmachine/v20170301preview/availabilityGroupListener.ts", "sqlvirtualmachine/v20170301preview/getAvailabilityGroupListener.ts", diff --git a/sdk/nodejs/types/input.ts b/sdk/nodejs/types/input.ts index 6d3981fb2526..0c78ba5ebbde 100644 --- a/sdk/nodejs/types/input.ts +++ b/sdk/nodejs/types/input.ts @@ -109763,6 +109763,79 @@ export namespace devtestlab { } export namespace digitaltwins { + export namespace latest { + /** + * Properties related to EventGrid. + */ + export interface EventGrid { + /** + * EventGrid secondary accesskey. Will be obfuscated during read. + */ + accessKey1: pulumi.Input; + /** + * EventGrid secondary accesskey. Will be obfuscated during read. + */ + accessKey2?: pulumi.Input; + /** + * Dead letter storage secret. Will be obfuscated during read. + */ + deadLetterSecret?: pulumi.Input; + /** + * The type of Digital Twins endpoint + */ + endpointType: pulumi.Input<"EventGrid">; + /** + * EventGrid Topic Endpoint + */ + topicEndpoint: pulumi.Input; + } + + /** + * Properties related to EventHub. + */ + export interface EventHub { + /** + * PrimaryConnectionString of the endpoint. Will be obfuscated during read. + */ + connectionStringPrimaryKey: pulumi.Input; + /** + * SecondaryConnectionString of the endpoint. Will be obfuscated during read. + */ + connectionStringSecondaryKey?: pulumi.Input; + /** + * Dead letter storage secret. Will be obfuscated during read. + */ + deadLetterSecret?: pulumi.Input; + /** + * The type of Digital Twins endpoint + */ + endpointType: pulumi.Input<"EventHub">; + } + + /** + * Properties related to ServiceBus. + */ + export interface ServiceBus { + /** + * Dead letter storage secret. Will be obfuscated during read. + */ + deadLetterSecret?: pulumi.Input; + /** + * The type of Digital Twins endpoint + */ + endpointType: pulumi.Input<"ServiceBus">; + /** + * PrimaryConnectionString of the endpoint. Will be obfuscated during read. + */ + primaryConnectionString: pulumi.Input; + /** + * SecondaryConnectionString of the endpoint. Will be obfuscated during read. + */ + secondaryConnectionString?: pulumi.Input; + } + + } + export namespace v20200301preview { /** * Information about the SKU of the DigitalTwinsInstance. @@ -109845,6 +109918,79 @@ export namespace digitaltwins { } } + + export namespace v20201031 { + /** + * Properties related to EventGrid. + */ + export interface EventGrid { + /** + * EventGrid secondary accesskey. Will be obfuscated during read. + */ + accessKey1: pulumi.Input; + /** + * EventGrid secondary accesskey. Will be obfuscated during read. + */ + accessKey2?: pulumi.Input; + /** + * Dead letter storage secret. Will be obfuscated during read. + */ + deadLetterSecret?: pulumi.Input; + /** + * The type of Digital Twins endpoint + */ + endpointType: pulumi.Input<"EventGrid">; + /** + * EventGrid Topic Endpoint + */ + topicEndpoint: pulumi.Input; + } + + /** + * Properties related to EventHub. + */ + export interface EventHub { + /** + * PrimaryConnectionString of the endpoint. Will be obfuscated during read. + */ + connectionStringPrimaryKey: pulumi.Input; + /** + * SecondaryConnectionString of the endpoint. Will be obfuscated during read. + */ + connectionStringSecondaryKey?: pulumi.Input; + /** + * Dead letter storage secret. Will be obfuscated during read. + */ + deadLetterSecret?: pulumi.Input; + /** + * The type of Digital Twins endpoint + */ + endpointType: pulumi.Input<"EventHub">; + } + + /** + * Properties related to ServiceBus. + */ + export interface ServiceBus { + /** + * Dead letter storage secret. Will be obfuscated during read. + */ + deadLetterSecret?: pulumi.Input; + /** + * The type of Digital Twins endpoint + */ + endpointType: pulumi.Input<"ServiceBus">; + /** + * PrimaryConnectionString of the endpoint. Will be obfuscated during read. + */ + primaryConnectionString: pulumi.Input; + /** + * SecondaryConnectionString of the endpoint. Will be obfuscated during read. + */ + secondaryConnectionString?: pulumi.Input; + } + + } } export namespace documentdb { @@ -128509,6 +128655,25 @@ export namespace keyvault { export namespace kubernetes { export namespace v20200101preview { + export interface AuthenticationCertificateDetails { + /** + * Base64 encoded client certificate data. + */ + certificateData: string; + /** + * Base64 encoded key data. + */ + keyData: string; + } + + export interface AuthenticationDetailsValue { + clientCertificate?: inputs.kubernetes.v20200101preview.AuthenticationCertificateDetails; + /** + * Authentication token. + */ + token?: string; + } + export interface ConnectedClusterAADProfile { /** * The client app id configured on target K8 cluster @@ -157861,6 +158026,28 @@ export namespace netapp { username?: pulumi.Input; } + /** + * Daily Schedule properties + */ + export interface DailySchedule { + /** + * Indicates which hour in UTC timezone a snapshot should be taken + */ + hour?: pulumi.Input; + /** + * Indicates which minute snapshot should be taken + */ + minute?: pulumi.Input; + /** + * Daily snapshot count to keep + */ + snapshotsToKeep?: pulumi.Input; + /** + * Resource size in bytes, current storage usage for the volume in bytes + */ + usedBytes?: pulumi.Input; + } + /** * Volume Export Policy Rule */ @@ -157923,6 +158110,50 @@ export namespace netapp { unixReadWrite?: pulumi.Input; } + /** + * Hourly Schedule properties + */ + export interface HourlySchedule { + /** + * Indicates which minute snapshot should be taken + */ + minute?: pulumi.Input; + /** + * Hourly snapshot count to keep + */ + snapshotsToKeep?: pulumi.Input; + /** + * Resource size in bytes, current storage usage for the volume in bytes + */ + usedBytes?: pulumi.Input; + } + + /** + * Monthly Schedule properties + */ + export interface MonthlySchedule { + /** + * Indicates which days of the month snapshot should be taken. A comma delimited string. + */ + daysOfMonth?: pulumi.Input; + /** + * Indicates which hour in UTC timezone a snapshot should be taken + */ + hour?: pulumi.Input; + /** + * Indicates which minute snapshot should be taken + */ + minute?: pulumi.Input; + /** + * Monthly snapshot count to keep + */ + snapshotsToKeep?: pulumi.Input; + /** + * Resource size in bytes, current storage usage for the volume in bytes + */ + usedBytes?: pulumi.Input; + } + /** * Mount target properties */ @@ -158041,6 +158272,32 @@ export namespace netapp { snapshotPolicyId?: pulumi.Input; } + /** + * Weekly Schedule properties, make a snapshot every week at a specific day or days + */ + export interface WeeklySchedule { + /** + * Indicates which weekdays snapshot should be taken, accepts a comma separated list of week day names in english + */ + day?: pulumi.Input; + /** + * Indicates which hour in UTC timezone a snapshot should be taken + */ + hour?: pulumi.Input; + /** + * Indicates which minute snapshot should be taken + */ + minute?: pulumi.Input; + /** + * Weekly snapshot count to keep + */ + snapshotsToKeep?: pulumi.Input; + /** + * Resource size in bytes, current storage usage for the volume in bytes + */ + usedBytes?: pulumi.Input; + } + } export namespace v20170815 { @@ -159179,6 +159436,28 @@ export namespace netapp { username?: pulumi.Input; } + /** + * Daily Schedule properties + */ + export interface DailySchedule { + /** + * Indicates which hour in UTC timezone a snapshot should be taken + */ + hour?: pulumi.Input; + /** + * Indicates which minute snapshot should be taken + */ + minute?: pulumi.Input; + /** + * Daily snapshot count to keep + */ + snapshotsToKeep?: pulumi.Input; + /** + * Resource size in bytes, current storage usage for the volume in bytes + */ + usedBytes?: pulumi.Input; + } + /** * Volume Export Policy Rule */ @@ -159241,6 +159520,50 @@ export namespace netapp { unixReadWrite?: pulumi.Input; } + /** + * Hourly Schedule properties + */ + export interface HourlySchedule { + /** + * Indicates which minute snapshot should be taken + */ + minute?: pulumi.Input; + /** + * Hourly snapshot count to keep + */ + snapshotsToKeep?: pulumi.Input; + /** + * Resource size in bytes, current storage usage for the volume in bytes + */ + usedBytes?: pulumi.Input; + } + + /** + * Monthly Schedule properties + */ + export interface MonthlySchedule { + /** + * Indicates which days of the month snapshot should be taken. A comma delimited string. + */ + daysOfMonth?: pulumi.Input; + /** + * Indicates which hour in UTC timezone a snapshot should be taken + */ + hour?: pulumi.Input; + /** + * Indicates which minute snapshot should be taken + */ + minute?: pulumi.Input; + /** + * Monthly snapshot count to keep + */ + snapshotsToKeep?: pulumi.Input; + /** + * Resource size in bytes, current storage usage for the volume in bytes + */ + usedBytes?: pulumi.Input; + } + /** * Mount target properties */ @@ -159359,6 +159682,32 @@ export namespace netapp { snapshotPolicyId?: pulumi.Input; } + /** + * Weekly Schedule properties, make a snapshot every week at a specific day or days + */ + export interface WeeklySchedule { + /** + * Indicates which weekdays snapshot should be taken, accepts a comma separated list of week day names in english + */ + day?: pulumi.Input; + /** + * Indicates which hour in UTC timezone a snapshot should be taken + */ + hour?: pulumi.Input; + /** + * Indicates which minute snapshot should be taken + */ + minute?: pulumi.Input; + /** + * Weekly snapshot count to keep + */ + snapshotsToKeep?: pulumi.Input; + /** + * Resource size in bytes, current storage usage for the volume in bytes + */ + usedBytes?: pulumi.Input; + } + } } @@ -292075,6 +292424,16 @@ export namespace sql { type?: pulumi.Input; } + /** + * Server info for the server trust group. + */ + export interface ServerInfo { + /** + * Server Id. + */ + serverId: pulumi.Input; + } + /** * An ARM Resource SKU. */ diff --git a/sdk/nodejs/types/output.ts b/sdk/nodejs/types/output.ts index 2d0ecb01c085..10f1e944cfd1 100644 --- a/sdk/nodejs/types/output.ts +++ b/sdk/nodejs/types/output.ts @@ -140182,6 +140182,102 @@ export namespace devtestlab { } export namespace digitaltwins { + export namespace latest { + /** + * Properties related to EventGrid. + */ + export interface EventGridResponse { + /** + * EventGrid secondary accesskey. Will be obfuscated during read. + */ + accessKey1: string; + /** + * EventGrid secondary accesskey. Will be obfuscated during read. + */ + accessKey2?: string; + /** + * Time when the Endpoint was added to DigitalTwinsInstance. + */ + createdTime: string; + /** + * Dead letter storage secret. Will be obfuscated during read. + */ + deadLetterSecret?: string; + /** + * The type of Digital Twins endpoint + */ + endpointType: "EventGrid"; + /** + * The provisioning state. + */ + provisioningState: string; + /** + * EventGrid Topic Endpoint + */ + topicEndpoint: string; + } + + /** + * Properties related to EventHub. + */ + export interface EventHubResponse { + /** + * PrimaryConnectionString of the endpoint. Will be obfuscated during read. + */ + connectionStringPrimaryKey: string; + /** + * SecondaryConnectionString of the endpoint. Will be obfuscated during read. + */ + connectionStringSecondaryKey?: string; + /** + * Time when the Endpoint was added to DigitalTwinsInstance. + */ + createdTime: string; + /** + * Dead letter storage secret. Will be obfuscated during read. + */ + deadLetterSecret?: string; + /** + * The type of Digital Twins endpoint + */ + endpointType: "EventHub"; + /** + * The provisioning state. + */ + provisioningState: string; + } + + /** + * Properties related to ServiceBus. + */ + export interface ServiceBusResponse { + /** + * Time when the Endpoint was added to DigitalTwinsInstance. + */ + createdTime: string; + /** + * Dead letter storage secret. Will be obfuscated during read. + */ + deadLetterSecret?: string; + /** + * The type of Digital Twins endpoint + */ + endpointType: "ServiceBus"; + /** + * PrimaryConnectionString of the endpoint. Will be obfuscated during read. + */ + primaryConnectionString: string; + /** + * The provisioning state. + */ + provisioningState: string; + /** + * SecondaryConnectionString of the endpoint. Will be obfuscated during read. + */ + secondaryConnectionString?: string; + } + } + export namespace v20200301preview { /** * Information about the SKU of the DigitalTwinsInstance. @@ -140287,6 +140383,102 @@ export namespace digitaltwins { tags?: {[key: string]: string}; } } + + export namespace v20201031 { + /** + * Properties related to EventGrid. + */ + export interface EventGridResponse { + /** + * EventGrid secondary accesskey. Will be obfuscated during read. + */ + accessKey1: string; + /** + * EventGrid secondary accesskey. Will be obfuscated during read. + */ + accessKey2?: string; + /** + * Time when the Endpoint was added to DigitalTwinsInstance. + */ + createdTime: string; + /** + * Dead letter storage secret. Will be obfuscated during read. + */ + deadLetterSecret?: string; + /** + * The type of Digital Twins endpoint + */ + endpointType: "EventGrid"; + /** + * The provisioning state. + */ + provisioningState: string; + /** + * EventGrid Topic Endpoint + */ + topicEndpoint: string; + } + + /** + * Properties related to EventHub. + */ + export interface EventHubResponse { + /** + * PrimaryConnectionString of the endpoint. Will be obfuscated during read. + */ + connectionStringPrimaryKey: string; + /** + * SecondaryConnectionString of the endpoint. Will be obfuscated during read. + */ + connectionStringSecondaryKey?: string; + /** + * Time when the Endpoint was added to DigitalTwinsInstance. + */ + createdTime: string; + /** + * Dead letter storage secret. Will be obfuscated during read. + */ + deadLetterSecret?: string; + /** + * The type of Digital Twins endpoint + */ + endpointType: "EventHub"; + /** + * The provisioning state. + */ + provisioningState: string; + } + + /** + * Properties related to ServiceBus. + */ + export interface ServiceBusResponse { + /** + * Time when the Endpoint was added to DigitalTwinsInstance. + */ + createdTime: string; + /** + * Dead letter storage secret. Will be obfuscated during read. + */ + deadLetterSecret?: string; + /** + * The type of Digital Twins endpoint + */ + endpointType: "ServiceBus"; + /** + * PrimaryConnectionString of the endpoint. Will be obfuscated during read. + */ + primaryConnectionString: string; + /** + * The provisioning state. + */ + provisioningState: string; + /** + * SecondaryConnectionString of the endpoint. Will be obfuscated during read. + */ + secondaryConnectionString?: string; + } + } } export namespace documentdb { @@ -202752,6 +202944,28 @@ export namespace netapp { username?: string; } + /** + * Daily Schedule properties + */ + export interface DailyScheduleResponse { + /** + * Indicates which hour in UTC timezone a snapshot should be taken + */ + hour?: number; + /** + * Indicates which minute snapshot should be taken + */ + minute?: number; + /** + * Daily snapshot count to keep + */ + snapshotsToKeep?: number; + /** + * Resource size in bytes, current storage usage for the volume in bytes + */ + usedBytes?: number; + } + /** * Volume Export Policy Rule */ @@ -202814,6 +203028,50 @@ export namespace netapp { unixReadWrite?: boolean; } + /** + * Hourly Schedule properties + */ + export interface HourlyScheduleResponse { + /** + * Indicates which minute snapshot should be taken + */ + minute?: number; + /** + * Hourly snapshot count to keep + */ + snapshotsToKeep?: number; + /** + * Resource size in bytes, current storage usage for the volume in bytes + */ + usedBytes?: number; + } + + /** + * Monthly Schedule properties + */ + export interface MonthlyScheduleResponse { + /** + * Indicates which days of the month snapshot should be taken. A comma delimited string. + */ + daysOfMonth?: string; + /** + * Indicates which hour in UTC timezone a snapshot should be taken + */ + hour?: number; + /** + * Indicates which minute snapshot should be taken + */ + minute?: number; + /** + * Monthly snapshot count to keep + */ + snapshotsToKeep?: number; + /** + * Resource size in bytes, current storage usage for the volume in bytes + */ + usedBytes?: number; + } + /** * Mount target properties */ @@ -202940,6 +203198,31 @@ export namespace netapp { snapshotPolicyId?: string; } + /** + * Weekly Schedule properties, make a snapshot every week at a specific day or days + */ + export interface WeeklyScheduleResponse { + /** + * Indicates which weekdays snapshot should be taken, accepts a comma separated list of week day names in english + */ + day?: string; + /** + * Indicates which hour in UTC timezone a snapshot should be taken + */ + hour?: number; + /** + * Indicates which minute snapshot should be taken + */ + minute?: number; + /** + * Weekly snapshot count to keep + */ + snapshotsToKeep?: number; + /** + * Resource size in bytes, current storage usage for the volume in bytes + */ + usedBytes?: number; + } } export namespace v20170815 { @@ -204154,6 +204437,28 @@ export namespace netapp { username?: string; } + /** + * Daily Schedule properties + */ + export interface DailyScheduleResponse { + /** + * Indicates which hour in UTC timezone a snapshot should be taken + */ + hour?: number; + /** + * Indicates which minute snapshot should be taken + */ + minute?: number; + /** + * Daily snapshot count to keep + */ + snapshotsToKeep?: number; + /** + * Resource size in bytes, current storage usage for the volume in bytes + */ + usedBytes?: number; + } + /** * Volume Export Policy Rule */ @@ -204216,6 +204521,50 @@ export namespace netapp { unixReadWrite?: boolean; } + /** + * Hourly Schedule properties + */ + export interface HourlyScheduleResponse { + /** + * Indicates which minute snapshot should be taken + */ + minute?: number; + /** + * Hourly snapshot count to keep + */ + snapshotsToKeep?: number; + /** + * Resource size in bytes, current storage usage for the volume in bytes + */ + usedBytes?: number; + } + + /** + * Monthly Schedule properties + */ + export interface MonthlyScheduleResponse { + /** + * Indicates which days of the month snapshot should be taken. A comma delimited string. + */ + daysOfMonth?: string; + /** + * Indicates which hour in UTC timezone a snapshot should be taken + */ + hour?: number; + /** + * Indicates which minute snapshot should be taken + */ + minute?: number; + /** + * Monthly snapshot count to keep + */ + snapshotsToKeep?: number; + /** + * Resource size in bytes, current storage usage for the volume in bytes + */ + usedBytes?: number; + } + /** * Mount target properties */ @@ -204342,6 +204691,31 @@ export namespace netapp { snapshotPolicyId?: string; } + /** + * Weekly Schedule properties, make a snapshot every week at a specific day or days + */ + export interface WeeklyScheduleResponse { + /** + * Indicates which weekdays snapshot should be taken, accepts a comma separated list of week day names in english + */ + day?: string; + /** + * Indicates which hour in UTC timezone a snapshot should be taken + */ + hour?: number; + /** + * Indicates which minute snapshot should be taken + */ + minute?: number; + /** + * Weekly snapshot count to keep + */ + snapshotsToKeep?: number; + /** + * Resource size in bytes, current storage usage for the volume in bytes + */ + usedBytes?: number; + } } } @@ -379741,6 +380115,16 @@ export namespace sql { type?: string; } + /** + * Server info for the server trust group. + */ + export interface ServerInfoResponse { + /** + * Server Id. + */ + serverId: string; + } + /** * An ARM Resource SKU. */ diff --git a/sdk/python/pulumi_azurerm/_tables.py b/sdk/python/pulumi_azurerm/_tables.py index c4277dad01ba..cf43debafa15 100644 --- a/sdk/python/pulumi_azurerm/_tables.py +++ b/sdk/python/pulumi_azurerm/_tables.py @@ -904,6 +904,7 @@ "client_cert_enabled": "clientCertEnabled", "client_cert_exclusion_paths": "clientCertExclusionPaths", "client_cert_mode": "clientCertMode", + "client_certificate": "clientCertificate", "client_certificate_common_names": "clientCertificateCommonNames", "client_certificate_password": "clientCertificatePassword", "client_certificate_path": "clientCertificatePath", @@ -1490,6 +1491,7 @@ "ddos_settings": "ddosSettings", "dead_letter_destination": "deadLetterDestination", "dead_letter_message_count": "deadLetterMessageCount", + "dead_letter_secret": "deadLetterSecret", "dead_letter_with_resource_identity": "deadLetterWithResourceIdentity", "dead_lettering_on_filter_evaluation_exceptions": "deadLetteringOnFilterEvaluationExceptions", "dead_lettering_on_message_expiration": "deadLetteringOnMessageExpiration", @@ -2462,6 +2464,7 @@ "group_header_version": "groupHeaderVersion", "group_id": "groupId", "group_ids": "groupIds", + "group_members": "groupMembers", "group_message_release": "groupMessageRelease", "group_message_version": "groupMessageVersion", "group_name": "groupName", @@ -5376,6 +5379,7 @@ "server_role_results": "serverRoleResults", "server_root_ca_certificate": "serverRootCACertificate", "server_tenant_id": "serverTenantID", + "server_trust_group_name": "serverTrustGroupName", "server_type": "serverType", "server_url": "serverUrl", "server_version": "serverVersion", @@ -6274,6 +6278,7 @@ "trim_leading_and_trailing_spaces_and_zeroes": "trimLeadingAndTrailingSpacesAndZeroes", "trust_model": "trustModel", "trust_policy": "trustPolicy", + "trust_scopes": "trustScopes", "trust_server_certificate": "trustServerCertificate", "trusted_cert_path": "trustedCertPath", "trusted_certificates": "trustedCertificates", @@ -7687,6 +7692,7 @@ "clientCertEnabled": "client_cert_enabled", "clientCertExclusionPaths": "client_cert_exclusion_paths", "clientCertMode": "client_cert_mode", + "clientCertificate": "client_certificate", "clientCertificateCommonNames": "client_certificate_common_names", "clientCertificatePassword": "client_certificate_password", "clientCertificatePath": "client_certificate_path", @@ -8273,6 +8279,7 @@ "ddosSettings": "ddos_settings", "deadLetterDestination": "dead_letter_destination", "deadLetterMessageCount": "dead_letter_message_count", + "deadLetterSecret": "dead_letter_secret", "deadLetterWithResourceIdentity": "dead_letter_with_resource_identity", "deadLetteringOnFilterEvaluationExceptions": "dead_lettering_on_filter_evaluation_exceptions", "deadLetteringOnMessageExpiration": "dead_lettering_on_message_expiration", @@ -9245,6 +9252,7 @@ "groupHeaderVersion": "group_header_version", "groupId": "group_id", "groupIds": "group_ids", + "groupMembers": "group_members", "groupMessageRelease": "group_message_release", "groupMessageVersion": "group_message_version", "groupName": "group_name", @@ -12159,6 +12167,7 @@ "serverRoleResults": "server_role_results", "serverRootCACertificate": "server_root_ca_certificate", "serverTenantID": "server_tenant_id", + "serverTrustGroupName": "server_trust_group_name", "serverType": "server_type", "serverUrl": "server_url", "serverVersion": "server_version", @@ -13057,6 +13066,7 @@ "trimLeadingAndTrailingSpacesAndZeroes": "trim_leading_and_trailing_spaces_and_zeroes", "trustModel": "trust_model", "trustPolicy": "trust_policy", + "trustScopes": "trust_scopes", "trustServerCertificate": "trust_server_certificate", "trustedCertPath": "trusted_cert_path", "trustedCertificates": "trusted_certificates", diff --git a/sdk/python/pulumi_azurerm/digitaltwins/__init__.py b/sdk/python/pulumi_azurerm/digitaltwins/__init__.py index 2f28cb2315e8..f959a4aeef83 100644 --- a/sdk/python/pulumi_azurerm/digitaltwins/__init__.py +++ b/sdk/python/pulumi_azurerm/digitaltwins/__init__.py @@ -5,5 +5,7 @@ # Make subpackages available: from . import ( + latest, v20200301preview, + v20201031, ) diff --git a/sdk/python/pulumi_azurerm/digitaltwins/latest/__init__.py b/sdk/python/pulumi_azurerm/digitaltwins/latest/__init__.py new file mode 100644 index 000000000000..e65ac2fda2c6 --- /dev/null +++ b/sdk/python/pulumi_azurerm/digitaltwins/latest/__init__.py @@ -0,0 +1,11 @@ +# 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 .digital_twin import * +from .digital_twins_endpoint import * +from .get_digital_twin import * +from .get_digital_twins_endpoint import * +from ._inputs import * +from . import outputs diff --git a/sdk/python/pulumi_azurerm/digitaltwins/latest/_inputs.py b/sdk/python/pulumi_azurerm/digitaltwins/latest/_inputs.py new file mode 100644 index 000000000000..8aeca1d564b5 --- /dev/null +++ b/sdk/python/pulumi_azurerm/digitaltwins/latest/_inputs.py @@ -0,0 +1,241 @@ +# 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__ = [ + 'EventGridArgs', + 'EventHubArgs', + 'ServiceBusArgs', +] + +@pulumi.input_type +class EventGridArgs: + def __init__(__self__, *, + access_key1: pulumi.Input[str], + endpoint_type: pulumi.Input[str], + topic_endpoint: pulumi.Input[str], + access_key2: Optional[pulumi.Input[str]] = None, + dead_letter_secret: Optional[pulumi.Input[str]] = None): + """ + Properties related to EventGrid. + :param pulumi.Input[str] access_key1: EventGrid secondary accesskey. Will be obfuscated during read. + :param pulumi.Input[str] endpoint_type: The type of Digital Twins endpoint + :param pulumi.Input[str] topic_endpoint: EventGrid Topic Endpoint + :param pulumi.Input[str] access_key2: EventGrid secondary accesskey. Will be obfuscated during read. + :param pulumi.Input[str] dead_letter_secret: Dead letter storage secret. Will be obfuscated during read. + """ + pulumi.set(__self__, "access_key1", access_key1) + pulumi.set(__self__, "endpoint_type", 'EventGrid') + pulumi.set(__self__, "topic_endpoint", topic_endpoint) + if access_key2 is not None: + pulumi.set(__self__, "access_key2", access_key2) + if dead_letter_secret is not None: + pulumi.set(__self__, "dead_letter_secret", dead_letter_secret) + + @property + @pulumi.getter(name="accessKey1") + def access_key1(self) -> pulumi.Input[str]: + """ + EventGrid secondary accesskey. Will be obfuscated during read. + """ + return pulumi.get(self, "access_key1") + + @access_key1.setter + def access_key1(self, value: pulumi.Input[str]): + pulumi.set(self, "access_key1", value) + + @property + @pulumi.getter(name="endpointType") + def endpoint_type(self) -> pulumi.Input[str]: + """ + The type of Digital Twins endpoint + """ + return pulumi.get(self, "endpoint_type") + + @endpoint_type.setter + def endpoint_type(self, value: pulumi.Input[str]): + pulumi.set(self, "endpoint_type", value) + + @property + @pulumi.getter(name="topicEndpoint") + def topic_endpoint(self) -> pulumi.Input[str]: + """ + EventGrid Topic Endpoint + """ + return pulumi.get(self, "topic_endpoint") + + @topic_endpoint.setter + def topic_endpoint(self, value: pulumi.Input[str]): + pulumi.set(self, "topic_endpoint", value) + + @property + @pulumi.getter(name="accessKey2") + def access_key2(self) -> Optional[pulumi.Input[str]]: + """ + EventGrid secondary accesskey. Will be obfuscated during read. + """ + return pulumi.get(self, "access_key2") + + @access_key2.setter + def access_key2(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "access_key2", value) + + @property + @pulumi.getter(name="deadLetterSecret") + def dead_letter_secret(self) -> Optional[pulumi.Input[str]]: + """ + Dead letter storage secret. Will be obfuscated during read. + """ + return pulumi.get(self, "dead_letter_secret") + + @dead_letter_secret.setter + def dead_letter_secret(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "dead_letter_secret", value) + + +@pulumi.input_type +class EventHubArgs: + def __init__(__self__, *, + connection_string_primary_key: pulumi.Input[str], + endpoint_type: pulumi.Input[str], + connection_string_secondary_key: Optional[pulumi.Input[str]] = None, + dead_letter_secret: Optional[pulumi.Input[str]] = None): + """ + Properties related to EventHub. + :param pulumi.Input[str] connection_string_primary_key: PrimaryConnectionString of the endpoint. Will be obfuscated during read. + :param pulumi.Input[str] endpoint_type: The type of Digital Twins endpoint + :param pulumi.Input[str] connection_string_secondary_key: SecondaryConnectionString of the endpoint. Will be obfuscated during read. + :param pulumi.Input[str] dead_letter_secret: Dead letter storage secret. Will be obfuscated during read. + """ + pulumi.set(__self__, "connection_string_primary_key", connection_string_primary_key) + pulumi.set(__self__, "endpoint_type", 'EventHub') + if connection_string_secondary_key is not None: + pulumi.set(__self__, "connection_string_secondary_key", connection_string_secondary_key) + if dead_letter_secret is not None: + pulumi.set(__self__, "dead_letter_secret", dead_letter_secret) + + @property + @pulumi.getter(name="connectionStringPrimaryKey") + def connection_string_primary_key(self) -> pulumi.Input[str]: + """ + PrimaryConnectionString of the endpoint. Will be obfuscated during read. + """ + return pulumi.get(self, "connection_string_primary_key") + + @connection_string_primary_key.setter + def connection_string_primary_key(self, value: pulumi.Input[str]): + pulumi.set(self, "connection_string_primary_key", value) + + @property + @pulumi.getter(name="endpointType") + def endpoint_type(self) -> pulumi.Input[str]: + """ + The type of Digital Twins endpoint + """ + return pulumi.get(self, "endpoint_type") + + @endpoint_type.setter + def endpoint_type(self, value: pulumi.Input[str]): + pulumi.set(self, "endpoint_type", value) + + @property + @pulumi.getter(name="connectionStringSecondaryKey") + def connection_string_secondary_key(self) -> Optional[pulumi.Input[str]]: + """ + SecondaryConnectionString of the endpoint. Will be obfuscated during read. + """ + return pulumi.get(self, "connection_string_secondary_key") + + @connection_string_secondary_key.setter + def connection_string_secondary_key(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "connection_string_secondary_key", value) + + @property + @pulumi.getter(name="deadLetterSecret") + def dead_letter_secret(self) -> Optional[pulumi.Input[str]]: + """ + Dead letter storage secret. Will be obfuscated during read. + """ + return pulumi.get(self, "dead_letter_secret") + + @dead_letter_secret.setter + def dead_letter_secret(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "dead_letter_secret", value) + + +@pulumi.input_type +class ServiceBusArgs: + def __init__(__self__, *, + endpoint_type: pulumi.Input[str], + primary_connection_string: pulumi.Input[str], + dead_letter_secret: Optional[pulumi.Input[str]] = None, + secondary_connection_string: Optional[pulumi.Input[str]] = None): + """ + Properties related to ServiceBus. + :param pulumi.Input[str] endpoint_type: The type of Digital Twins endpoint + :param pulumi.Input[str] primary_connection_string: PrimaryConnectionString of the endpoint. Will be obfuscated during read. + :param pulumi.Input[str] dead_letter_secret: Dead letter storage secret. Will be obfuscated during read. + :param pulumi.Input[str] secondary_connection_string: SecondaryConnectionString of the endpoint. Will be obfuscated during read. + """ + pulumi.set(__self__, "endpoint_type", 'ServiceBus') + pulumi.set(__self__, "primary_connection_string", primary_connection_string) + if dead_letter_secret is not None: + pulumi.set(__self__, "dead_letter_secret", dead_letter_secret) + if secondary_connection_string is not None: + pulumi.set(__self__, "secondary_connection_string", secondary_connection_string) + + @property + @pulumi.getter(name="endpointType") + def endpoint_type(self) -> pulumi.Input[str]: + """ + The type of Digital Twins endpoint + """ + return pulumi.get(self, "endpoint_type") + + @endpoint_type.setter + def endpoint_type(self, value: pulumi.Input[str]): + pulumi.set(self, "endpoint_type", value) + + @property + @pulumi.getter(name="primaryConnectionString") + def primary_connection_string(self) -> pulumi.Input[str]: + """ + PrimaryConnectionString of the endpoint. Will be obfuscated during read. + """ + return pulumi.get(self, "primary_connection_string") + + @primary_connection_string.setter + def primary_connection_string(self, value: pulumi.Input[str]): + pulumi.set(self, "primary_connection_string", value) + + @property + @pulumi.getter(name="deadLetterSecret") + def dead_letter_secret(self) -> Optional[pulumi.Input[str]]: + """ + Dead letter storage secret. Will be obfuscated during read. + """ + return pulumi.get(self, "dead_letter_secret") + + @dead_letter_secret.setter + def dead_letter_secret(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "dead_letter_secret", value) + + @property + @pulumi.getter(name="secondaryConnectionString") + def secondary_connection_string(self) -> Optional[pulumi.Input[str]]: + """ + SecondaryConnectionString of the endpoint. Will be obfuscated during read. + """ + return pulumi.get(self, "secondary_connection_string") + + @secondary_connection_string.setter + def secondary_connection_string(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "secondary_connection_string", value) + + diff --git a/sdk/python/pulumi_azurerm/digitaltwins/latest/digital_twin.py b/sdk/python/pulumi_azurerm/digitaltwins/latest/digital_twin.py new file mode 100644 index 000000000000..fabde79d19d9 --- /dev/null +++ b/sdk/python/pulumi_azurerm/digitaltwins/latest/digital_twin.py @@ -0,0 +1,163 @@ +# 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__ = ['DigitalTwin'] + + +class DigitalTwin(pulumi.CustomResource): + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + location: Optional[pulumi.Input[str]] = None, + resource_group_name: Optional[pulumi.Input[str]] = None, + resource_name_: Optional[pulumi.Input[str]] = None, + tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + __props__=None, + __name__=None, + __opts__=None): + """ + The description of the DigitalTwins service. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[str] location: The resource location. + :param pulumi.Input[str] resource_group_name: The name of the resource group that contains the DigitalTwinsInstance. + :param pulumi.Input[str] resource_name_: The name of the DigitalTwinsInstance. + :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() + + 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 resource_name_ is None: + raise TypeError("Missing required property 'resource_name_'") + __props__['resource_name'] = resource_name_ + __props__['tags'] = tags + __props__['created_time'] = None + __props__['host_name'] = None + __props__['last_updated_time'] = None + __props__['name'] = None + __props__['provisioning_state'] = None + __props__['type'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azurerm:digitaltwins/v20200301preview:DigitalTwin"), pulumi.Alias(type_="azurerm:digitaltwins/v20201031:DigitalTwin")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(DigitalTwin, __self__).__init__( + 'azurerm:digitaltwins/latest:DigitalTwin', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None) -> 'DigitalTwin': + """ + Get an existing DigitalTwin 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 DigitalTwin(resource_name, opts=opts, __props__=__props__) + + @property + @pulumi.getter(name="createdTime") + def created_time(self) -> pulumi.Output[str]: + """ + Time when DigitalTwinsInstance was created. + """ + return pulumi.get(self, "created_time") + + @property + @pulumi.getter(name="hostName") + def host_name(self) -> pulumi.Output[str]: + """ + Api endpoint to work with DigitalTwinsInstance. + """ + return pulumi.get(self, "host_name") + + @property + @pulumi.getter(name="lastUpdatedTime") + def last_updated_time(self) -> pulumi.Output[str]: + """ + Time when DigitalTwinsInstance was updated. + """ + return pulumi.get(self, "last_updated_time") + + @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(name="provisioningState") + def provisioning_state(self) -> pulumi.Output[str]: + """ + The provisioning state. + """ + return pulumi.get(self, "provisioning_state") + + @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/digitaltwins/latest/digital_twins_endpoint.py b/sdk/python/pulumi_azurerm/digitaltwins/latest/digital_twins_endpoint.py new file mode 100644 index 000000000000..96bc6a1b6fab --- /dev/null +++ b/sdk/python/pulumi_azurerm/digitaltwins/latest/digital_twins_endpoint.py @@ -0,0 +1,121 @@ +# 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__ = ['DigitalTwinsEndpoint'] + + +class DigitalTwinsEndpoint(pulumi.CustomResource): + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + endpoint_name: Optional[pulumi.Input[str]] = None, + properties: Optional[pulumi.Input[Union[pulumi.InputType['EventGridArgs'], pulumi.InputType['EventHubArgs'], pulumi.InputType['ServiceBusArgs']]]] = None, + resource_group_name: Optional[pulumi.Input[str]] = None, + resource_name_: Optional[pulumi.Input[str]] = None, + __props__=None, + __name__=None, + __opts__=None): + """ + DigitalTwinsInstance endpoint resource. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[str] endpoint_name: Name of Endpoint Resource. + :param pulumi.Input[Union[pulumi.InputType['EventGridArgs'], pulumi.InputType['EventHubArgs'], pulumi.InputType['ServiceBusArgs']]] properties: DigitalTwinsInstance endpoint resource properties. + :param pulumi.Input[str] resource_group_name: The name of the resource group that contains the DigitalTwinsInstance. + :param pulumi.Input[str] resource_name_: The name of the DigitalTwinsInstance. + """ + 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 endpoint_name is None: + raise TypeError("Missing required property 'endpoint_name'") + __props__['endpoint_name'] = endpoint_name + __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:digitaltwins/v20200301preview:DigitalTwinsEndpoint"), pulumi.Alias(type_="azurerm:digitaltwins/v20201031:DigitalTwinsEndpoint")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(DigitalTwinsEndpoint, __self__).__init__( + 'azurerm:digitaltwins/latest:DigitalTwinsEndpoint', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None) -> 'DigitalTwinsEndpoint': + """ + Get an existing DigitalTwinsEndpoint 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 DigitalTwinsEndpoint(resource_name, opts=opts, __props__=__props__) + + @property + @pulumi.getter + def name(self) -> pulumi.Output[str]: + """ + Extension resource name. + """ + return pulumi.get(self, "name") + + @property + @pulumi.getter + def properties(self) -> pulumi.Output[Any]: + """ + DigitalTwinsInstance endpoint resource properties. + """ + 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/digitaltwins/latest/get_digital_twin.py b/sdk/python/pulumi_azurerm/digitaltwins/latest/get_digital_twin.py new file mode 100644 index 000000000000..fa7aaa098481 --- /dev/null +++ b/sdk/python/pulumi_azurerm/digitaltwins/latest/get_digital_twin.py @@ -0,0 +1,155 @@ +# 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__ = [ + 'GetDigitalTwinResult', + 'AwaitableGetDigitalTwinResult', + 'get_digital_twin', +] + +@pulumi.output_type +class GetDigitalTwinResult: + """ + The description of the DigitalTwins service. + """ + def __init__(__self__, created_time=None, host_name=None, last_updated_time=None, location=None, name=None, provisioning_state=None, tags=None, type=None): + if created_time and not isinstance(created_time, str): + raise TypeError("Expected argument 'created_time' to be a str") + pulumi.set(__self__, "created_time", created_time) + if host_name and not isinstance(host_name, str): + raise TypeError("Expected argument 'host_name' to be a str") + pulumi.set(__self__, "host_name", host_name) + 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 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 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(name="createdTime") + def created_time(self) -> str: + """ + Time when DigitalTwinsInstance was created. + """ + return pulumi.get(self, "created_time") + + @property + @pulumi.getter(name="hostName") + def host_name(self) -> str: + """ + Api endpoint to work with DigitalTwinsInstance. + """ + return pulumi.get(self, "host_name") + + @property + @pulumi.getter(name="lastUpdatedTime") + def last_updated_time(self) -> str: + """ + Time when DigitalTwinsInstance was updated. + """ + return pulumi.get(self, "last_updated_time") + + @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(name="provisioningState") + def provisioning_state(self) -> str: + """ + The provisioning state. + """ + return pulumi.get(self, "provisioning_state") + + @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 AwaitableGetDigitalTwinResult(GetDigitalTwinResult): + # pylint: disable=using-constant-test + def __await__(self): + if False: + yield self + return GetDigitalTwinResult( + created_time=self.created_time, + host_name=self.host_name, + last_updated_time=self.last_updated_time, + location=self.location, + name=self.name, + provisioning_state=self.provisioning_state, + tags=self.tags, + type=self.type) + + +def get_digital_twin(resource_group_name: Optional[str] = None, + resource_name: Optional[str] = None, + opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDigitalTwinResult: + """ + Use this data source to access information about an existing resource. + + :param str resource_group_name: The name of the resource group that contains the DigitalTwinsInstance. + :param str resource_name: The name of the DigitalTwinsInstance. + """ + __args__ = dict() + __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:digitaltwins/latest:getDigitalTwin', __args__, opts=opts, typ=GetDigitalTwinResult).value + + return AwaitableGetDigitalTwinResult( + created_time=__ret__.created_time, + host_name=__ret__.host_name, + last_updated_time=__ret__.last_updated_time, + location=__ret__.location, + name=__ret__.name, + provisioning_state=__ret__.provisioning_state, + tags=__ret__.tags, + type=__ret__.type) diff --git a/sdk/python/pulumi_azurerm/digitaltwins/latest/get_digital_twins_endpoint.py b/sdk/python/pulumi_azurerm/digitaltwins/latest/get_digital_twins_endpoint.py new file mode 100644 index 000000000000..e0db07440883 --- /dev/null +++ b/sdk/python/pulumi_azurerm/digitaltwins/latest/get_digital_twins_endpoint.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__ = [ + 'GetDigitalTwinsEndpointResult', + 'AwaitableGetDigitalTwinsEndpointResult', + 'get_digital_twins_endpoint', +] + +@pulumi.output_type +class GetDigitalTwinsEndpointResult: + """ + DigitalTwinsInstance endpoint resource. + """ + 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: + """ + Extension resource name. + """ + return pulumi.get(self, "name") + + @property + @pulumi.getter + def properties(self) -> Any: + """ + DigitalTwinsInstance endpoint resource properties. + """ + return pulumi.get(self, "properties") + + @property + @pulumi.getter + def type(self) -> str: + """ + The resource type. + """ + return pulumi.get(self, "type") + + +class AwaitableGetDigitalTwinsEndpointResult(GetDigitalTwinsEndpointResult): + # pylint: disable=using-constant-test + def __await__(self): + if False: + yield self + return GetDigitalTwinsEndpointResult( + name=self.name, + properties=self.properties, + type=self.type) + + +def get_digital_twins_endpoint(endpoint_name: Optional[str] = None, + resource_group_name: Optional[str] = None, + resource_name: Optional[str] = None, + opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDigitalTwinsEndpointResult: + """ + Use this data source to access information about an existing resource. + + :param str endpoint_name: Name of Endpoint Resource. + :param str resource_group_name: The name of the resource group that contains the DigitalTwinsInstance. + :param str resource_name: The name of the DigitalTwinsInstance. + """ + __args__ = dict() + __args__['endpointName'] = endpoint_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:digitaltwins/latest:getDigitalTwinsEndpoint', __args__, opts=opts, typ=GetDigitalTwinsEndpointResult).value + + return AwaitableGetDigitalTwinsEndpointResult( + name=__ret__.name, + properties=__ret__.properties, + type=__ret__.type) diff --git a/sdk/python/pulumi_azurerm/digitaltwins/latest/outputs.py b/sdk/python/pulumi_azurerm/digitaltwins/latest/outputs.py new file mode 100644 index 000000000000..dedbb6ab9ca5 --- /dev/null +++ b/sdk/python/pulumi_azurerm/digitaltwins/latest/outputs.py @@ -0,0 +1,273 @@ +# 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__ = [ + 'EventGridResponse', + 'EventHubResponse', + 'ServiceBusResponse', +] + +@pulumi.output_type +class EventGridResponse(dict): + """ + Properties related to EventGrid. + """ + def __init__(__self__, *, + access_key1: str, + created_time: str, + endpoint_type: str, + provisioning_state: str, + topic_endpoint: str, + access_key2: Optional[str] = None, + dead_letter_secret: Optional[str] = None): + """ + Properties related to EventGrid. + :param str access_key1: EventGrid secondary accesskey. Will be obfuscated during read. + :param str created_time: Time when the Endpoint was added to DigitalTwinsInstance. + :param str endpoint_type: The type of Digital Twins endpoint + :param str provisioning_state: The provisioning state. + :param str topic_endpoint: EventGrid Topic Endpoint + :param str access_key2: EventGrid secondary accesskey. Will be obfuscated during read. + :param str dead_letter_secret: Dead letter storage secret. Will be obfuscated during read. + """ + pulumi.set(__self__, "access_key1", access_key1) + pulumi.set(__self__, "created_time", created_time) + pulumi.set(__self__, "endpoint_type", 'EventGrid') + pulumi.set(__self__, "provisioning_state", provisioning_state) + pulumi.set(__self__, "topic_endpoint", topic_endpoint) + if access_key2 is not None: + pulumi.set(__self__, "access_key2", access_key2) + if dead_letter_secret is not None: + pulumi.set(__self__, "dead_letter_secret", dead_letter_secret) + + @property + @pulumi.getter(name="accessKey1") + def access_key1(self) -> str: + """ + EventGrid secondary accesskey. Will be obfuscated during read. + """ + return pulumi.get(self, "access_key1") + + @property + @pulumi.getter(name="createdTime") + def created_time(self) -> str: + """ + Time when the Endpoint was added to DigitalTwinsInstance. + """ + return pulumi.get(self, "created_time") + + @property + @pulumi.getter(name="endpointType") + def endpoint_type(self) -> str: + """ + The type of Digital Twins endpoint + """ + return pulumi.get(self, "endpoint_type") + + @property + @pulumi.getter(name="provisioningState") + def provisioning_state(self) -> str: + """ + The provisioning state. + """ + return pulumi.get(self, "provisioning_state") + + @property + @pulumi.getter(name="topicEndpoint") + def topic_endpoint(self) -> str: + """ + EventGrid Topic Endpoint + """ + return pulumi.get(self, "topic_endpoint") + + @property + @pulumi.getter(name="accessKey2") + def access_key2(self) -> Optional[str]: + """ + EventGrid secondary accesskey. Will be obfuscated during read. + """ + return pulumi.get(self, "access_key2") + + @property + @pulumi.getter(name="deadLetterSecret") + def dead_letter_secret(self) -> Optional[str]: + """ + Dead letter storage secret. Will be obfuscated during read. + """ + return pulumi.get(self, "dead_letter_secret") + + def _translate_property(self, prop): + return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + +@pulumi.output_type +class EventHubResponse(dict): + """ + Properties related to EventHub. + """ + def __init__(__self__, *, + connection_string_primary_key: str, + created_time: str, + endpoint_type: str, + provisioning_state: str, + connection_string_secondary_key: Optional[str] = None, + dead_letter_secret: Optional[str] = None): + """ + Properties related to EventHub. + :param str connection_string_primary_key: PrimaryConnectionString of the endpoint. Will be obfuscated during read. + :param str created_time: Time when the Endpoint was added to DigitalTwinsInstance. + :param str endpoint_type: The type of Digital Twins endpoint + :param str provisioning_state: The provisioning state. + :param str connection_string_secondary_key: SecondaryConnectionString of the endpoint. Will be obfuscated during read. + :param str dead_letter_secret: Dead letter storage secret. Will be obfuscated during read. + """ + pulumi.set(__self__, "connection_string_primary_key", connection_string_primary_key) + pulumi.set(__self__, "created_time", created_time) + pulumi.set(__self__, "endpoint_type", 'EventHub') + pulumi.set(__self__, "provisioning_state", provisioning_state) + if connection_string_secondary_key is not None: + pulumi.set(__self__, "connection_string_secondary_key", connection_string_secondary_key) + if dead_letter_secret is not None: + pulumi.set(__self__, "dead_letter_secret", dead_letter_secret) + + @property + @pulumi.getter(name="connectionStringPrimaryKey") + def connection_string_primary_key(self) -> str: + """ + PrimaryConnectionString of the endpoint. Will be obfuscated during read. + """ + return pulumi.get(self, "connection_string_primary_key") + + @property + @pulumi.getter(name="createdTime") + def created_time(self) -> str: + """ + Time when the Endpoint was added to DigitalTwinsInstance. + """ + return pulumi.get(self, "created_time") + + @property + @pulumi.getter(name="endpointType") + def endpoint_type(self) -> str: + """ + The type of Digital Twins endpoint + """ + return pulumi.get(self, "endpoint_type") + + @property + @pulumi.getter(name="provisioningState") + def provisioning_state(self) -> str: + """ + The provisioning state. + """ + return pulumi.get(self, "provisioning_state") + + @property + @pulumi.getter(name="connectionStringSecondaryKey") + def connection_string_secondary_key(self) -> Optional[str]: + """ + SecondaryConnectionString of the endpoint. Will be obfuscated during read. + """ + return pulumi.get(self, "connection_string_secondary_key") + + @property + @pulumi.getter(name="deadLetterSecret") + def dead_letter_secret(self) -> Optional[str]: + """ + Dead letter storage secret. Will be obfuscated during read. + """ + return pulumi.get(self, "dead_letter_secret") + + def _translate_property(self, prop): + return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + +@pulumi.output_type +class ServiceBusResponse(dict): + """ + Properties related to ServiceBus. + """ + def __init__(__self__, *, + created_time: str, + endpoint_type: str, + primary_connection_string: str, + provisioning_state: str, + dead_letter_secret: Optional[str] = None, + secondary_connection_string: Optional[str] = None): + """ + Properties related to ServiceBus. + :param str created_time: Time when the Endpoint was added to DigitalTwinsInstance. + :param str endpoint_type: The type of Digital Twins endpoint + :param str primary_connection_string: PrimaryConnectionString of the endpoint. Will be obfuscated during read. + :param str provisioning_state: The provisioning state. + :param str dead_letter_secret: Dead letter storage secret. Will be obfuscated during read. + :param str secondary_connection_string: SecondaryConnectionString of the endpoint. Will be obfuscated during read. + """ + pulumi.set(__self__, "created_time", created_time) + pulumi.set(__self__, "endpoint_type", 'ServiceBus') + pulumi.set(__self__, "primary_connection_string", primary_connection_string) + pulumi.set(__self__, "provisioning_state", provisioning_state) + if dead_letter_secret is not None: + pulumi.set(__self__, "dead_letter_secret", dead_letter_secret) + if secondary_connection_string is not None: + pulumi.set(__self__, "secondary_connection_string", secondary_connection_string) + + @property + @pulumi.getter(name="createdTime") + def created_time(self) -> str: + """ + Time when the Endpoint was added to DigitalTwinsInstance. + """ + return pulumi.get(self, "created_time") + + @property + @pulumi.getter(name="endpointType") + def endpoint_type(self) -> str: + """ + The type of Digital Twins endpoint + """ + return pulumi.get(self, "endpoint_type") + + @property + @pulumi.getter(name="primaryConnectionString") + def primary_connection_string(self) -> str: + """ + PrimaryConnectionString of the endpoint. Will be obfuscated during read. + """ + return pulumi.get(self, "primary_connection_string") + + @property + @pulumi.getter(name="provisioningState") + def provisioning_state(self) -> str: + """ + The provisioning state. + """ + return pulumi.get(self, "provisioning_state") + + @property + @pulumi.getter(name="deadLetterSecret") + def dead_letter_secret(self) -> Optional[str]: + """ + Dead letter storage secret. Will be obfuscated during read. + """ + return pulumi.get(self, "dead_letter_secret") + + @property + @pulumi.getter(name="secondaryConnectionString") + def secondary_connection_string(self) -> Optional[str]: + """ + SecondaryConnectionString of the endpoint. Will be obfuscated during read. + """ + return pulumi.get(self, "secondary_connection_string") + + def _translate_property(self, prop): + return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + diff --git a/sdk/python/pulumi_azurerm/digitaltwins/v20200301preview/digital_twin.py b/sdk/python/pulumi_azurerm/digitaltwins/v20200301preview/digital_twin.py index 44195162636a..fe8c0e69cb81 100644 --- a/sdk/python/pulumi_azurerm/digitaltwins/v20200301preview/digital_twin.py +++ b/sdk/python/pulumi_azurerm/digitaltwins/v20200301preview/digital_twin.py @@ -70,6 +70,8 @@ def __init__(__self__, __props__['name'] = None __props__['provisioning_state'] = None __props__['type'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azurerm:digitaltwins/latest:DigitalTwin"), pulumi.Alias(type_="azurerm:digitaltwins/v20201031:DigitalTwin")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) super(DigitalTwin, __self__).__init__( 'azurerm:digitaltwins/v20200301preview:DigitalTwin', resource_name, diff --git a/sdk/python/pulumi_azurerm/digitaltwins/v20200301preview/digital_twins_endpoint.py b/sdk/python/pulumi_azurerm/digitaltwins/v20200301preview/digital_twins_endpoint.py index fd55384ef6b4..1467bca1a856 100644 --- a/sdk/python/pulumi_azurerm/digitaltwins/v20200301preview/digital_twins_endpoint.py +++ b/sdk/python/pulumi_azurerm/digitaltwins/v20200301preview/digital_twins_endpoint.py @@ -63,6 +63,8 @@ def __init__(__self__, __props__['resource_name'] = resource_name_ __props__['name'] = None __props__['type'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azurerm:digitaltwins/latest:DigitalTwinsEndpoint"), pulumi.Alias(type_="azurerm:digitaltwins/v20201031:DigitalTwinsEndpoint")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) super(DigitalTwinsEndpoint, __self__).__init__( 'azurerm:digitaltwins/v20200301preview:DigitalTwinsEndpoint', resource_name, diff --git a/sdk/python/pulumi_azurerm/digitaltwins/v20201031/__init__.py b/sdk/python/pulumi_azurerm/digitaltwins/v20201031/__init__.py new file mode 100644 index 000000000000..e65ac2fda2c6 --- /dev/null +++ b/sdk/python/pulumi_azurerm/digitaltwins/v20201031/__init__.py @@ -0,0 +1,11 @@ +# 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 .digital_twin import * +from .digital_twins_endpoint import * +from .get_digital_twin import * +from .get_digital_twins_endpoint import * +from ._inputs import * +from . import outputs diff --git a/sdk/python/pulumi_azurerm/digitaltwins/v20201031/_inputs.py b/sdk/python/pulumi_azurerm/digitaltwins/v20201031/_inputs.py new file mode 100644 index 000000000000..8aeca1d564b5 --- /dev/null +++ b/sdk/python/pulumi_azurerm/digitaltwins/v20201031/_inputs.py @@ -0,0 +1,241 @@ +# 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__ = [ + 'EventGridArgs', + 'EventHubArgs', + 'ServiceBusArgs', +] + +@pulumi.input_type +class EventGridArgs: + def __init__(__self__, *, + access_key1: pulumi.Input[str], + endpoint_type: pulumi.Input[str], + topic_endpoint: pulumi.Input[str], + access_key2: Optional[pulumi.Input[str]] = None, + dead_letter_secret: Optional[pulumi.Input[str]] = None): + """ + Properties related to EventGrid. + :param pulumi.Input[str] access_key1: EventGrid secondary accesskey. Will be obfuscated during read. + :param pulumi.Input[str] endpoint_type: The type of Digital Twins endpoint + :param pulumi.Input[str] topic_endpoint: EventGrid Topic Endpoint + :param pulumi.Input[str] access_key2: EventGrid secondary accesskey. Will be obfuscated during read. + :param pulumi.Input[str] dead_letter_secret: Dead letter storage secret. Will be obfuscated during read. + """ + pulumi.set(__self__, "access_key1", access_key1) + pulumi.set(__self__, "endpoint_type", 'EventGrid') + pulumi.set(__self__, "topic_endpoint", topic_endpoint) + if access_key2 is not None: + pulumi.set(__self__, "access_key2", access_key2) + if dead_letter_secret is not None: + pulumi.set(__self__, "dead_letter_secret", dead_letter_secret) + + @property + @pulumi.getter(name="accessKey1") + def access_key1(self) -> pulumi.Input[str]: + """ + EventGrid secondary accesskey. Will be obfuscated during read. + """ + return pulumi.get(self, "access_key1") + + @access_key1.setter + def access_key1(self, value: pulumi.Input[str]): + pulumi.set(self, "access_key1", value) + + @property + @pulumi.getter(name="endpointType") + def endpoint_type(self) -> pulumi.Input[str]: + """ + The type of Digital Twins endpoint + """ + return pulumi.get(self, "endpoint_type") + + @endpoint_type.setter + def endpoint_type(self, value: pulumi.Input[str]): + pulumi.set(self, "endpoint_type", value) + + @property + @pulumi.getter(name="topicEndpoint") + def topic_endpoint(self) -> pulumi.Input[str]: + """ + EventGrid Topic Endpoint + """ + return pulumi.get(self, "topic_endpoint") + + @topic_endpoint.setter + def topic_endpoint(self, value: pulumi.Input[str]): + pulumi.set(self, "topic_endpoint", value) + + @property + @pulumi.getter(name="accessKey2") + def access_key2(self) -> Optional[pulumi.Input[str]]: + """ + EventGrid secondary accesskey. Will be obfuscated during read. + """ + return pulumi.get(self, "access_key2") + + @access_key2.setter + def access_key2(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "access_key2", value) + + @property + @pulumi.getter(name="deadLetterSecret") + def dead_letter_secret(self) -> Optional[pulumi.Input[str]]: + """ + Dead letter storage secret. Will be obfuscated during read. + """ + return pulumi.get(self, "dead_letter_secret") + + @dead_letter_secret.setter + def dead_letter_secret(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "dead_letter_secret", value) + + +@pulumi.input_type +class EventHubArgs: + def __init__(__self__, *, + connection_string_primary_key: pulumi.Input[str], + endpoint_type: pulumi.Input[str], + connection_string_secondary_key: Optional[pulumi.Input[str]] = None, + dead_letter_secret: Optional[pulumi.Input[str]] = None): + """ + Properties related to EventHub. + :param pulumi.Input[str] connection_string_primary_key: PrimaryConnectionString of the endpoint. Will be obfuscated during read. + :param pulumi.Input[str] endpoint_type: The type of Digital Twins endpoint + :param pulumi.Input[str] connection_string_secondary_key: SecondaryConnectionString of the endpoint. Will be obfuscated during read. + :param pulumi.Input[str] dead_letter_secret: Dead letter storage secret. Will be obfuscated during read. + """ + pulumi.set(__self__, "connection_string_primary_key", connection_string_primary_key) + pulumi.set(__self__, "endpoint_type", 'EventHub') + if connection_string_secondary_key is not None: + pulumi.set(__self__, "connection_string_secondary_key", connection_string_secondary_key) + if dead_letter_secret is not None: + pulumi.set(__self__, "dead_letter_secret", dead_letter_secret) + + @property + @pulumi.getter(name="connectionStringPrimaryKey") + def connection_string_primary_key(self) -> pulumi.Input[str]: + """ + PrimaryConnectionString of the endpoint. Will be obfuscated during read. + """ + return pulumi.get(self, "connection_string_primary_key") + + @connection_string_primary_key.setter + def connection_string_primary_key(self, value: pulumi.Input[str]): + pulumi.set(self, "connection_string_primary_key", value) + + @property + @pulumi.getter(name="endpointType") + def endpoint_type(self) -> pulumi.Input[str]: + """ + The type of Digital Twins endpoint + """ + return pulumi.get(self, "endpoint_type") + + @endpoint_type.setter + def endpoint_type(self, value: pulumi.Input[str]): + pulumi.set(self, "endpoint_type", value) + + @property + @pulumi.getter(name="connectionStringSecondaryKey") + def connection_string_secondary_key(self) -> Optional[pulumi.Input[str]]: + """ + SecondaryConnectionString of the endpoint. Will be obfuscated during read. + """ + return pulumi.get(self, "connection_string_secondary_key") + + @connection_string_secondary_key.setter + def connection_string_secondary_key(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "connection_string_secondary_key", value) + + @property + @pulumi.getter(name="deadLetterSecret") + def dead_letter_secret(self) -> Optional[pulumi.Input[str]]: + """ + Dead letter storage secret. Will be obfuscated during read. + """ + return pulumi.get(self, "dead_letter_secret") + + @dead_letter_secret.setter + def dead_letter_secret(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "dead_letter_secret", value) + + +@pulumi.input_type +class ServiceBusArgs: + def __init__(__self__, *, + endpoint_type: pulumi.Input[str], + primary_connection_string: pulumi.Input[str], + dead_letter_secret: Optional[pulumi.Input[str]] = None, + secondary_connection_string: Optional[pulumi.Input[str]] = None): + """ + Properties related to ServiceBus. + :param pulumi.Input[str] endpoint_type: The type of Digital Twins endpoint + :param pulumi.Input[str] primary_connection_string: PrimaryConnectionString of the endpoint. Will be obfuscated during read. + :param pulumi.Input[str] dead_letter_secret: Dead letter storage secret. Will be obfuscated during read. + :param pulumi.Input[str] secondary_connection_string: SecondaryConnectionString of the endpoint. Will be obfuscated during read. + """ + pulumi.set(__self__, "endpoint_type", 'ServiceBus') + pulumi.set(__self__, "primary_connection_string", primary_connection_string) + if dead_letter_secret is not None: + pulumi.set(__self__, "dead_letter_secret", dead_letter_secret) + if secondary_connection_string is not None: + pulumi.set(__self__, "secondary_connection_string", secondary_connection_string) + + @property + @pulumi.getter(name="endpointType") + def endpoint_type(self) -> pulumi.Input[str]: + """ + The type of Digital Twins endpoint + """ + return pulumi.get(self, "endpoint_type") + + @endpoint_type.setter + def endpoint_type(self, value: pulumi.Input[str]): + pulumi.set(self, "endpoint_type", value) + + @property + @pulumi.getter(name="primaryConnectionString") + def primary_connection_string(self) -> pulumi.Input[str]: + """ + PrimaryConnectionString of the endpoint. Will be obfuscated during read. + """ + return pulumi.get(self, "primary_connection_string") + + @primary_connection_string.setter + def primary_connection_string(self, value: pulumi.Input[str]): + pulumi.set(self, "primary_connection_string", value) + + @property + @pulumi.getter(name="deadLetterSecret") + def dead_letter_secret(self) -> Optional[pulumi.Input[str]]: + """ + Dead letter storage secret. Will be obfuscated during read. + """ + return pulumi.get(self, "dead_letter_secret") + + @dead_letter_secret.setter + def dead_letter_secret(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "dead_letter_secret", value) + + @property + @pulumi.getter(name="secondaryConnectionString") + def secondary_connection_string(self) -> Optional[pulumi.Input[str]]: + """ + SecondaryConnectionString of the endpoint. Will be obfuscated during read. + """ + return pulumi.get(self, "secondary_connection_string") + + @secondary_connection_string.setter + def secondary_connection_string(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "secondary_connection_string", value) + + diff --git a/sdk/python/pulumi_azurerm/digitaltwins/v20201031/digital_twin.py b/sdk/python/pulumi_azurerm/digitaltwins/v20201031/digital_twin.py new file mode 100644 index 000000000000..dd33ae19cddd --- /dev/null +++ b/sdk/python/pulumi_azurerm/digitaltwins/v20201031/digital_twin.py @@ -0,0 +1,163 @@ +# 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__ = ['DigitalTwin'] + + +class DigitalTwin(pulumi.CustomResource): + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + location: Optional[pulumi.Input[str]] = None, + resource_group_name: Optional[pulumi.Input[str]] = None, + resource_name_: Optional[pulumi.Input[str]] = None, + tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + __props__=None, + __name__=None, + __opts__=None): + """ + The description of the DigitalTwins service. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[str] location: The resource location. + :param pulumi.Input[str] resource_group_name: The name of the resource group that contains the DigitalTwinsInstance. + :param pulumi.Input[str] resource_name_: The name of the DigitalTwinsInstance. + :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() + + 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 resource_name_ is None: + raise TypeError("Missing required property 'resource_name_'") + __props__['resource_name'] = resource_name_ + __props__['tags'] = tags + __props__['created_time'] = None + __props__['host_name'] = None + __props__['last_updated_time'] = None + __props__['name'] = None + __props__['provisioning_state'] = None + __props__['type'] = None + alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azurerm:digitaltwins/latest:DigitalTwin"), pulumi.Alias(type_="azurerm:digitaltwins/v20200301preview:DigitalTwin")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(DigitalTwin, __self__).__init__( + 'azurerm:digitaltwins/v20201031:DigitalTwin', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None) -> 'DigitalTwin': + """ + Get an existing DigitalTwin 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 DigitalTwin(resource_name, opts=opts, __props__=__props__) + + @property + @pulumi.getter(name="createdTime") + def created_time(self) -> pulumi.Output[str]: + """ + Time when DigitalTwinsInstance was created. + """ + return pulumi.get(self, "created_time") + + @property + @pulumi.getter(name="hostName") + def host_name(self) -> pulumi.Output[str]: + """ + Api endpoint to work with DigitalTwinsInstance. + """ + return pulumi.get(self, "host_name") + + @property + @pulumi.getter(name="lastUpdatedTime") + def last_updated_time(self) -> pulumi.Output[str]: + """ + Time when DigitalTwinsInstance was updated. + """ + return pulumi.get(self, "last_updated_time") + + @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(name="provisioningState") + def provisioning_state(self) -> pulumi.Output[str]: + """ + The provisioning state. + """ + return pulumi.get(self, "provisioning_state") + + @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/digitaltwins/v20201031/digital_twins_endpoint.py b/sdk/python/pulumi_azurerm/digitaltwins/v20201031/digital_twins_endpoint.py new file mode 100644 index 000000000000..17e22197b098 --- /dev/null +++ b/sdk/python/pulumi_azurerm/digitaltwins/v20201031/digital_twins_endpoint.py @@ -0,0 +1,121 @@ +# 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__ = ['DigitalTwinsEndpoint'] + + +class DigitalTwinsEndpoint(pulumi.CustomResource): + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + endpoint_name: Optional[pulumi.Input[str]] = None, + properties: Optional[pulumi.Input[Union[pulumi.InputType['EventGridArgs'], pulumi.InputType['EventHubArgs'], pulumi.InputType['ServiceBusArgs']]]] = None, + resource_group_name: Optional[pulumi.Input[str]] = None, + resource_name_: Optional[pulumi.Input[str]] = None, + __props__=None, + __name__=None, + __opts__=None): + """ + DigitalTwinsInstance endpoint resource. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[str] endpoint_name: Name of Endpoint Resource. + :param pulumi.Input[Union[pulumi.InputType['EventGridArgs'], pulumi.InputType['EventHubArgs'], pulumi.InputType['ServiceBusArgs']]] properties: DigitalTwinsInstance endpoint resource properties. + :param pulumi.Input[str] resource_group_name: The name of the resource group that contains the DigitalTwinsInstance. + :param pulumi.Input[str] resource_name_: The name of the DigitalTwinsInstance. + """ + 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 endpoint_name is None: + raise TypeError("Missing required property 'endpoint_name'") + __props__['endpoint_name'] = endpoint_name + __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:digitaltwins/latest:DigitalTwinsEndpoint"), pulumi.Alias(type_="azurerm:digitaltwins/v20200301preview:DigitalTwinsEndpoint")]) + opts = pulumi.ResourceOptions.merge(opts, alias_opts) + super(DigitalTwinsEndpoint, __self__).__init__( + 'azurerm:digitaltwins/v20201031:DigitalTwinsEndpoint', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None) -> 'DigitalTwinsEndpoint': + """ + Get an existing DigitalTwinsEndpoint 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 DigitalTwinsEndpoint(resource_name, opts=opts, __props__=__props__) + + @property + @pulumi.getter + def name(self) -> pulumi.Output[str]: + """ + Extension resource name. + """ + return pulumi.get(self, "name") + + @property + @pulumi.getter + def properties(self) -> pulumi.Output[Any]: + """ + DigitalTwinsInstance endpoint resource properties. + """ + 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/digitaltwins/v20201031/get_digital_twin.py b/sdk/python/pulumi_azurerm/digitaltwins/v20201031/get_digital_twin.py new file mode 100644 index 000000000000..f2564d661836 --- /dev/null +++ b/sdk/python/pulumi_azurerm/digitaltwins/v20201031/get_digital_twin.py @@ -0,0 +1,155 @@ +# 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__ = [ + 'GetDigitalTwinResult', + 'AwaitableGetDigitalTwinResult', + 'get_digital_twin', +] + +@pulumi.output_type +class GetDigitalTwinResult: + """ + The description of the DigitalTwins service. + """ + def __init__(__self__, created_time=None, host_name=None, last_updated_time=None, location=None, name=None, provisioning_state=None, tags=None, type=None): + if created_time and not isinstance(created_time, str): + raise TypeError("Expected argument 'created_time' to be a str") + pulumi.set(__self__, "created_time", created_time) + if host_name and not isinstance(host_name, str): + raise TypeError("Expected argument 'host_name' to be a str") + pulumi.set(__self__, "host_name", host_name) + 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 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 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(name="createdTime") + def created_time(self) -> str: + """ + Time when DigitalTwinsInstance was created. + """ + return pulumi.get(self, "created_time") + + @property + @pulumi.getter(name="hostName") + def host_name(self) -> str: + """ + Api endpoint to work with DigitalTwinsInstance. + """ + return pulumi.get(self, "host_name") + + @property + @pulumi.getter(name="lastUpdatedTime") + def last_updated_time(self) -> str: + """ + Time when DigitalTwinsInstance was updated. + """ + return pulumi.get(self, "last_updated_time") + + @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(name="provisioningState") + def provisioning_state(self) -> str: + """ + The provisioning state. + """ + return pulumi.get(self, "provisioning_state") + + @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 AwaitableGetDigitalTwinResult(GetDigitalTwinResult): + # pylint: disable=using-constant-test + def __await__(self): + if False: + yield self + return GetDigitalTwinResult( + created_time=self.created_time, + host_name=self.host_name, + last_updated_time=self.last_updated_time, + location=self.location, + name=self.name, + provisioning_state=self.provisioning_state, + tags=self.tags, + type=self.type) + + +def get_digital_twin(resource_group_name: Optional[str] = None, + resource_name: Optional[str] = None, + opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDigitalTwinResult: + """ + Use this data source to access information about an existing resource. + + :param str resource_group_name: The name of the resource group that contains the DigitalTwinsInstance. + :param str resource_name: The name of the DigitalTwinsInstance. + """ + __args__ = dict() + __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:digitaltwins/v20201031:getDigitalTwin', __args__, opts=opts, typ=GetDigitalTwinResult).value + + return AwaitableGetDigitalTwinResult( + created_time=__ret__.created_time, + host_name=__ret__.host_name, + last_updated_time=__ret__.last_updated_time, + location=__ret__.location, + name=__ret__.name, + provisioning_state=__ret__.provisioning_state, + tags=__ret__.tags, + type=__ret__.type) diff --git a/sdk/python/pulumi_azurerm/digitaltwins/v20201031/get_digital_twins_endpoint.py b/sdk/python/pulumi_azurerm/digitaltwins/v20201031/get_digital_twins_endpoint.py new file mode 100644 index 000000000000..3cdf4d0b592f --- /dev/null +++ b/sdk/python/pulumi_azurerm/digitaltwins/v20201031/get_digital_twins_endpoint.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__ = [ + 'GetDigitalTwinsEndpointResult', + 'AwaitableGetDigitalTwinsEndpointResult', + 'get_digital_twins_endpoint', +] + +@pulumi.output_type +class GetDigitalTwinsEndpointResult: + """ + DigitalTwinsInstance endpoint resource. + """ + 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: + """ + Extension resource name. + """ + return pulumi.get(self, "name") + + @property + @pulumi.getter + def properties(self) -> Any: + """ + DigitalTwinsInstance endpoint resource properties. + """ + return pulumi.get(self, "properties") + + @property + @pulumi.getter + def type(self) -> str: + """ + The resource type. + """ + return pulumi.get(self, "type") + + +class AwaitableGetDigitalTwinsEndpointResult(GetDigitalTwinsEndpointResult): + # pylint: disable=using-constant-test + def __await__(self): + if False: + yield self + return GetDigitalTwinsEndpointResult( + name=self.name, + properties=self.properties, + type=self.type) + + +def get_digital_twins_endpoint(endpoint_name: Optional[str] = None, + resource_group_name: Optional[str] = None, + resource_name: Optional[str] = None, + opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDigitalTwinsEndpointResult: + """ + Use this data source to access information about an existing resource. + + :param str endpoint_name: Name of Endpoint Resource. + :param str resource_group_name: The name of the resource group that contains the DigitalTwinsInstance. + :param str resource_name: The name of the DigitalTwinsInstance. + """ + __args__ = dict() + __args__['endpointName'] = endpoint_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:digitaltwins/v20201031:getDigitalTwinsEndpoint', __args__, opts=opts, typ=GetDigitalTwinsEndpointResult).value + + return AwaitableGetDigitalTwinsEndpointResult( + name=__ret__.name, + properties=__ret__.properties, + type=__ret__.type) diff --git a/sdk/python/pulumi_azurerm/digitaltwins/v20201031/outputs.py b/sdk/python/pulumi_azurerm/digitaltwins/v20201031/outputs.py new file mode 100644 index 000000000000..dedbb6ab9ca5 --- /dev/null +++ b/sdk/python/pulumi_azurerm/digitaltwins/v20201031/outputs.py @@ -0,0 +1,273 @@ +# 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__ = [ + 'EventGridResponse', + 'EventHubResponse', + 'ServiceBusResponse', +] + +@pulumi.output_type +class EventGridResponse(dict): + """ + Properties related to EventGrid. + """ + def __init__(__self__, *, + access_key1: str, + created_time: str, + endpoint_type: str, + provisioning_state: str, + topic_endpoint: str, + access_key2: Optional[str] = None, + dead_letter_secret: Optional[str] = None): + """ + Properties related to EventGrid. + :param str access_key1: EventGrid secondary accesskey. Will be obfuscated during read. + :param str created_time: Time when the Endpoint was added to DigitalTwinsInstance. + :param str endpoint_type: The type of Digital Twins endpoint + :param str provisioning_state: The provisioning state. + :param str topic_endpoint: EventGrid Topic Endpoint + :param str access_key2: EventGrid secondary accesskey. Will be obfuscated during read. + :param str dead_letter_secret: Dead letter storage secret. Will be obfuscated during read. + """ + pulumi.set(__self__, "access_key1", access_key1) + pulumi.set(__self__, "created_time", created_time) + pulumi.set(__self__, "endpoint_type", 'EventGrid') + pulumi.set(__self__, "provisioning_state", provisioning_state) + pulumi.set(__self__, "topic_endpoint", topic_endpoint) + if access_key2 is not None: + pulumi.set(__self__, "access_key2", access_key2) + if dead_letter_secret is not None: + pulumi.set(__self__, "dead_letter_secret", dead_letter_secret) + + @property + @pulumi.getter(name="accessKey1") + def access_key1(self) -> str: + """ + EventGrid secondary accesskey. Will be obfuscated during read. + """ + return pulumi.get(self, "access_key1") + + @property + @pulumi.getter(name="createdTime") + def created_time(self) -> str: + """ + Time when the Endpoint was added to DigitalTwinsInstance. + """ + return pulumi.get(self, "created_time") + + @property + @pulumi.getter(name="endpointType") + def endpoint_type(self) -> str: + """ + The type of Digital Twins endpoint + """ + return pulumi.get(self, "endpoint_type") + + @property + @pulumi.getter(name="provisioningState") + def provisioning_state(self) -> str: + """ + The provisioning state. + """ + return pulumi.get(self, "provisioning_state") + + @property + @pulumi.getter(name="topicEndpoint") + def topic_endpoint(self) -> str: + """ + EventGrid Topic Endpoint + """ + return pulumi.get(self, "topic_endpoint") + + @property + @pulumi.getter(name="accessKey2") + def access_key2(self) -> Optional[str]: + """ + EventGrid secondary accesskey. Will be obfuscated during read. + """ + return pulumi.get(self, "access_key2") + + @property + @pulumi.getter(name="deadLetterSecret") + def dead_letter_secret(self) -> Optional[str]: + """ + Dead letter storage secret. Will be obfuscated during read. + """ + return pulumi.get(self, "dead_letter_secret") + + def _translate_property(self, prop): + return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + +@pulumi.output_type +class EventHubResponse(dict): + """ + Properties related to EventHub. + """ + def __init__(__self__, *, + connection_string_primary_key: str, + created_time: str, + endpoint_type: str, + provisioning_state: str, + connection_string_secondary_key: Optional[str] = None, + dead_letter_secret: Optional[str] = None): + """ + Properties related to EventHub. + :param str connection_string_primary_key: PrimaryConnectionString of the endpoint. Will be obfuscated during read. + :param str created_time: Time when the Endpoint was added to DigitalTwinsInstance. + :param str endpoint_type: The type of Digital Twins endpoint + :param str provisioning_state: The provisioning state. + :param str connection_string_secondary_key: SecondaryConnectionString of the endpoint. Will be obfuscated during read. + :param str dead_letter_secret: Dead letter storage secret. Will be obfuscated during read. + """ + pulumi.set(__self__, "connection_string_primary_key", connection_string_primary_key) + pulumi.set(__self__, "created_time", created_time) + pulumi.set(__self__, "endpoint_type", 'EventHub') + pulumi.set(__self__, "provisioning_state", provisioning_state) + if connection_string_secondary_key is not None: + pulumi.set(__self__, "connection_string_secondary_key", connection_string_secondary_key) + if dead_letter_secret is not None: + pulumi.set(__self__, "dead_letter_secret", dead_letter_secret) + + @property + @pulumi.getter(name="connectionStringPrimaryKey") + def connection_string_primary_key(self) -> str: + """ + PrimaryConnectionString of the endpoint. Will be obfuscated during read. + """ + return pulumi.get(self, "connection_string_primary_key") + + @property + @pulumi.getter(name="createdTime") + def created_time(self) -> str: + """ + Time when the Endpoint was added to DigitalTwinsInstance. + """ + return pulumi.get(self, "created_time") + + @property + @pulumi.getter(name="endpointType") + def endpoint_type(self) -> str: + """ + The type of Digital Twins endpoint + """ + return pulumi.get(self, "endpoint_type") + + @property + @pulumi.getter(name="provisioningState") + def provisioning_state(self) -> str: + """ + The provisioning state. + """ + return pulumi.get(self, "provisioning_state") + + @property + @pulumi.getter(name="connectionStringSecondaryKey") + def connection_string_secondary_key(self) -> Optional[str]: + """ + SecondaryConnectionString of the endpoint. Will be obfuscated during read. + """ + return pulumi.get(self, "connection_string_secondary_key") + + @property + @pulumi.getter(name="deadLetterSecret") + def dead_letter_secret(self) -> Optional[str]: + """ + Dead letter storage secret. Will be obfuscated during read. + """ + return pulumi.get(self, "dead_letter_secret") + + def _translate_property(self, prop): + return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + +@pulumi.output_type +class ServiceBusResponse(dict): + """ + Properties related to ServiceBus. + """ + def __init__(__self__, *, + created_time: str, + endpoint_type: str, + primary_connection_string: str, + provisioning_state: str, + dead_letter_secret: Optional[str] = None, + secondary_connection_string: Optional[str] = None): + """ + Properties related to ServiceBus. + :param str created_time: Time when the Endpoint was added to DigitalTwinsInstance. + :param str endpoint_type: The type of Digital Twins endpoint + :param str primary_connection_string: PrimaryConnectionString of the endpoint. Will be obfuscated during read. + :param str provisioning_state: The provisioning state. + :param str dead_letter_secret: Dead letter storage secret. Will be obfuscated during read. + :param str secondary_connection_string: SecondaryConnectionString of the endpoint. Will be obfuscated during read. + """ + pulumi.set(__self__, "created_time", created_time) + pulumi.set(__self__, "endpoint_type", 'ServiceBus') + pulumi.set(__self__, "primary_connection_string", primary_connection_string) + pulumi.set(__self__, "provisioning_state", provisioning_state) + if dead_letter_secret is not None: + pulumi.set(__self__, "dead_letter_secret", dead_letter_secret) + if secondary_connection_string is not None: + pulumi.set(__self__, "secondary_connection_string", secondary_connection_string) + + @property + @pulumi.getter(name="createdTime") + def created_time(self) -> str: + """ + Time when the Endpoint was added to DigitalTwinsInstance. + """ + return pulumi.get(self, "created_time") + + @property + @pulumi.getter(name="endpointType") + def endpoint_type(self) -> str: + """ + The type of Digital Twins endpoint + """ + return pulumi.get(self, "endpoint_type") + + @property + @pulumi.getter(name="primaryConnectionString") + def primary_connection_string(self) -> str: + """ + PrimaryConnectionString of the endpoint. Will be obfuscated during read. + """ + return pulumi.get(self, "primary_connection_string") + + @property + @pulumi.getter(name="provisioningState") + def provisioning_state(self) -> str: + """ + The provisioning state. + """ + return pulumi.get(self, "provisioning_state") + + @property + @pulumi.getter(name="deadLetterSecret") + def dead_letter_secret(self) -> Optional[str]: + """ + Dead letter storage secret. Will be obfuscated during read. + """ + return pulumi.get(self, "dead_letter_secret") + + @property + @pulumi.getter(name="secondaryConnectionString") + def secondary_connection_string(self) -> Optional[str]: + """ + SecondaryConnectionString of the endpoint. Will be obfuscated during read. + """ + return pulumi.get(self, "secondary_connection_string") + + def _translate_property(self, prop): + return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + diff --git a/sdk/python/pulumi_azurerm/insights/v20180617preview/get_workbook.py b/sdk/python/pulumi_azurerm/insights/v20180617preview/get_workbook.py index 3c1033cbbeef..dc5f4913d360 100644 --- a/sdk/python/pulumi_azurerm/insights/v20180617preview/get_workbook.py +++ b/sdk/python/pulumi_azurerm/insights/v20180617preview/get_workbook.py @@ -19,7 +19,7 @@ class GetWorkbookResult: """ An Application Insights workbook definition. """ - def __init__(__self__, category=None, display_name=None, kind=None, location=None, name=None, serialized_data=None, tags=None, time_modified=None, type=None, user_id=None, version=None): + def __init__(__self__, category=None, display_name=None, kind=None, location=None, name=None, serialized_data=None, source_id=None, tags=None, time_modified=None, type=None, user_id=None, version=None): if category and not isinstance(category, str): raise TypeError("Expected argument 'category' to be a str") pulumi.set(__self__, "category", category) @@ -38,6 +38,9 @@ def __init__(__self__, category=None, display_name=None, kind=None, location=Non if serialized_data and not isinstance(serialized_data, str): raise TypeError("Expected argument 'serialized_data' to be a str") pulumi.set(__self__, "serialized_data", serialized_data) + if source_id and not isinstance(source_id, str): + raise TypeError("Expected argument 'source_id' to be a str") + pulumi.set(__self__, "source_id", source_id) if tags and not isinstance(tags, dict): raise TypeError("Expected argument 'tags' to be a dict") pulumi.set(__self__, "tags", tags) @@ -102,6 +105,14 @@ def serialized_data(self) -> str: """ return pulumi.get(self, "serialized_data") + @property + @pulumi.getter(name="sourceId") + def source_id(self) -> Optional[str]: + """ + ResourceId for a source resource. + """ + return pulumi.get(self, "source_id") + @property @pulumi.getter def tags(self) -> Optional[Mapping[str, str]]: @@ -155,6 +166,7 @@ def __await__(self): location=self.location, name=self.name, serialized_data=self.serialized_data, + source_id=self.source_id, tags=self.tags, time_modified=self.time_modified, type=self.type, @@ -187,6 +199,7 @@ def get_workbook(resource_group_name: Optional[str] = None, location=__ret__.location, name=__ret__.name, serialized_data=__ret__.serialized_data, + source_id=__ret__.source_id, tags=__ret__.tags, time_modified=__ret__.time_modified, type=__ret__.type, diff --git a/sdk/python/pulumi_azurerm/insights/v20180617preview/workbook.py b/sdk/python/pulumi_azurerm/insights/v20180617preview/workbook.py index 59e6fef98b68..11f0d5241473 100644 --- a/sdk/python/pulumi_azurerm/insights/v20180617preview/workbook.py +++ b/sdk/python/pulumi_azurerm/insights/v20180617preview/workbook.py @@ -24,7 +24,6 @@ def __init__(__self__, serialized_data: Optional[pulumi.Input[str]] = None, source_id: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, - user_id: Optional[pulumi.Input[str]] = None, version: Optional[pulumi.Input[str]] = None, __props__=None, __name__=None, @@ -41,9 +40,8 @@ def __init__(__self__, :param pulumi.Input[str] resource_group_name: The name of the resource group. The name is case insensitive. :param pulumi.Input[str] resource_name_: The name of the Application Insights component resource. :param pulumi.Input[str] serialized_data: Configuration of this particular workbook. Configuration data is a string containing valid JSON - :param pulumi.Input[str] source_id: Azure Resource Id that will fetch all related workbooks. + :param pulumi.Input[str] source_id: ResourceId for a source resource. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: Resource tags - :param pulumi.Input[str] user_id: Unique user id of the specific user that owns this workbook. :param pulumi.Input[str] version: Workbook version """ if __name__ is not None: @@ -86,13 +84,11 @@ def __init__(__self__, raise TypeError("Missing required property 'source_id'") __props__['source_id'] = source_id __props__['tags'] = tags - if user_id is None: - raise TypeError("Missing required property 'user_id'") - __props__['user_id'] = user_id __props__['version'] = version __props__['name'] = None __props__['time_modified'] = None __props__['type'] = None + __props__['user_id'] = None alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azurerm:insights/latest:Workbook"), pulumi.Alias(type_="azurerm:insights/v20150501:Workbook")]) opts = pulumi.ResourceOptions.merge(opts, alias_opts) super(Workbook, __self__).__init__( @@ -167,6 +163,14 @@ def serialized_data(self) -> pulumi.Output[str]: """ return pulumi.get(self, "serialized_data") + @property + @pulumi.getter(name="sourceId") + def source_id(self) -> pulumi.Output[Optional[str]]: + """ + ResourceId for a source resource. + """ + return pulumi.get(self, "source_id") + @property @pulumi.getter def tags(self) -> pulumi.Output[Optional[Mapping[str, str]]]: diff --git a/sdk/python/pulumi_azurerm/kubernetes/v20200101preview/_inputs.py b/sdk/python/pulumi_azurerm/kubernetes/v20200101preview/_inputs.py index d65f72808144..8870e8267baf 100644 --- a/sdk/python/pulumi_azurerm/kubernetes/v20200101preview/_inputs.py +++ b/sdk/python/pulumi_azurerm/kubernetes/v20200101preview/_inputs.py @@ -9,10 +9,84 @@ from ... import _utilities, _tables __all__ = [ + 'AuthenticationCertificateDetailsArgs', + 'AuthenticationDetailsValueArgs', 'ConnectedClusterAADProfileArgs', 'ConnectedClusterIdentityArgs', ] +@pulumi.input_type +class AuthenticationCertificateDetailsArgs: + def __init__(__self__, *, + certificate_data: str, + key_data: str): + """ + :param str certificate_data: Base64 encoded client certificate data. + :param str key_data: Base64 encoded key data. + """ + pulumi.set(__self__, "certificate_data", certificate_data) + pulumi.set(__self__, "key_data", key_data) + + @property + @pulumi.getter(name="certificateData") + def certificate_data(self) -> str: + """ + Base64 encoded client certificate data. + """ + return pulumi.get(self, "certificate_data") + + @certificate_data.setter + def certificate_data(self, value: str): + pulumi.set(self, "certificate_data", value) + + @property + @pulumi.getter(name="keyData") + def key_data(self) -> str: + """ + Base64 encoded key data. + """ + return pulumi.get(self, "key_data") + + @key_data.setter + def key_data(self, value: str): + pulumi.set(self, "key_data", value) + + +@pulumi.input_type +class AuthenticationDetailsValueArgs: + def __init__(__self__, *, + client_certificate: Optional['AuthenticationCertificateDetailsArgs'] = None, + token: Optional[str] = None): + """ + :param str token: Authentication token. + """ + if client_certificate is not None: + pulumi.set(__self__, "client_certificate", client_certificate) + if token is not None: + pulumi.set(__self__, "token", token) + + @property + @pulumi.getter(name="clientCertificate") + def client_certificate(self) -> Optional['AuthenticationCertificateDetailsArgs']: + return pulumi.get(self, "client_certificate") + + @client_certificate.setter + def client_certificate(self, value: Optional['AuthenticationCertificateDetailsArgs']): + pulumi.set(self, "client_certificate", value) + + @property + @pulumi.getter + def token(self) -> Optional[str]: + """ + Authentication token. + """ + return pulumi.get(self, "token") + + @token.setter + def token(self, value: Optional[str]): + pulumi.set(self, "token", value) + + @pulumi.input_type class ConnectedClusterAADProfileArgs: def __init__(__self__, *, diff --git a/sdk/python/pulumi_azurerm/kubernetes/v20200101preview/list_connected_cluster_user_credentials.py b/sdk/python/pulumi_azurerm/kubernetes/v20200101preview/list_connected_cluster_user_credentials.py index 1097d1eec498..e5ff6075cfd8 100644 --- a/sdk/python/pulumi_azurerm/kubernetes/v20200101preview/list_connected_cluster_user_credentials.py +++ b/sdk/python/pulumi_azurerm/kubernetes/v20200101preview/list_connected_cluster_user_credentials.py @@ -8,6 +8,7 @@ from typing import Any, Dict, List, Mapping, Optional, Tuple, Union from ... import _utilities, _tables from . import outputs +from ._inputs import * __all__ = [ 'ListConnectedClusterUserCredentialsResult', @@ -43,18 +44,23 @@ def __await__(self): kubeconfigs=self.kubeconfigs) -def list_connected_cluster_user_credentials(cluster_name: Optional[str] = None, +def list_connected_cluster_user_credentials(authentication_method: Optional[str] = None, + cluster_name: Optional[str] = None, resource_group_name: Optional[str] = None, + value: Optional[pulumi.InputType['AuthenticationDetailsValueArgs']] = None, opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableListConnectedClusterUserCredentialsResult: """ Use this data source to access information about an existing resource. + :param str authentication_method: The mode of client authentication. :param str cluster_name: The name of the Kubernetes cluster on which get is called. :param str resource_group_name: The name of the resource group. The name is case insensitive. """ __args__ = dict() + __args__['authenticationMethod'] = authentication_method __args__['clusterName'] = cluster_name __args__['resourceGroupName'] = resource_group_name + __args__['value'] = value if opts is None: opts = pulumi.InvokeOptions() if opts.version is None: diff --git a/sdk/python/pulumi_azurerm/netapp/latest/_inputs.py b/sdk/python/pulumi_azurerm/netapp/latest/_inputs.py index ddfd44ebf9dd..8bcdb99a92c7 100644 --- a/sdk/python/pulumi_azurerm/netapp/latest/_inputs.py +++ b/sdk/python/pulumi_azurerm/netapp/latest/_inputs.py @@ -10,7 +10,10 @@ __all__ = [ 'ActiveDirectoryArgs', + 'DailyScheduleArgs', 'ExportPolicyRuleArgs', + 'HourlyScheduleArgs', + 'MonthlyScheduleArgs', 'MountTargetPropertiesArgs', 'ReplicationObjectArgs', 'VolumeBackupPropertiesArgs', @@ -18,6 +21,7 @@ 'VolumePropertiesDataProtectionArgs', 'VolumePropertiesExportPolicyArgs', 'VolumeSnapshotPropertiesArgs', + 'WeeklyScheduleArgs', ] @pulumi.input_type @@ -220,6 +224,78 @@ def username(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "username", value) +@pulumi.input_type +class DailyScheduleArgs: + def __init__(__self__, *, + hour: Optional[pulumi.Input[float]] = None, + minute: Optional[pulumi.Input[float]] = None, + snapshots_to_keep: Optional[pulumi.Input[float]] = None, + used_bytes: Optional[pulumi.Input[float]] = None): + """ + Daily Schedule properties + :param pulumi.Input[float] hour: Indicates which hour in UTC timezone a snapshot should be taken + :param pulumi.Input[float] minute: Indicates which minute snapshot should be taken + :param pulumi.Input[float] snapshots_to_keep: Daily snapshot count to keep + :param pulumi.Input[float] used_bytes: Resource size in bytes, current storage usage for the volume in bytes + """ + if hour is not None: + pulumi.set(__self__, "hour", hour) + if minute is not None: + pulumi.set(__self__, "minute", minute) + if snapshots_to_keep is not None: + pulumi.set(__self__, "snapshots_to_keep", snapshots_to_keep) + if used_bytes is not None: + pulumi.set(__self__, "used_bytes", used_bytes) + + @property + @pulumi.getter + def hour(self) -> Optional[pulumi.Input[float]]: + """ + Indicates which hour in UTC timezone a snapshot should be taken + """ + return pulumi.get(self, "hour") + + @hour.setter + def hour(self, value: Optional[pulumi.Input[float]]): + pulumi.set(self, "hour", value) + + @property + @pulumi.getter + def minute(self) -> Optional[pulumi.Input[float]]: + """ + Indicates which minute snapshot should be taken + """ + return pulumi.get(self, "minute") + + @minute.setter + def minute(self, value: Optional[pulumi.Input[float]]): + pulumi.set(self, "minute", value) + + @property + @pulumi.getter(name="snapshotsToKeep") + def snapshots_to_keep(self) -> Optional[pulumi.Input[float]]: + """ + Daily snapshot count to keep + """ + return pulumi.get(self, "snapshots_to_keep") + + @snapshots_to_keep.setter + def snapshots_to_keep(self, value: Optional[pulumi.Input[float]]): + pulumi.set(self, "snapshots_to_keep", value) + + @property + @pulumi.getter(name="usedBytes") + def used_bytes(self) -> Optional[pulumi.Input[float]]: + """ + Resource size in bytes, current storage usage for the volume in bytes + """ + return pulumi.get(self, "used_bytes") + + @used_bytes.setter + def used_bytes(self, value: Optional[pulumi.Input[float]]): + pulumi.set(self, "used_bytes", value) + + @pulumi.input_type class ExportPolicyRuleArgs: def __init__(__self__, *, @@ -452,6 +528,150 @@ def unix_read_write(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "unix_read_write", value) +@pulumi.input_type +class HourlyScheduleArgs: + def __init__(__self__, *, + minute: Optional[pulumi.Input[float]] = None, + snapshots_to_keep: Optional[pulumi.Input[float]] = None, + used_bytes: Optional[pulumi.Input[float]] = None): + """ + Hourly Schedule properties + :param pulumi.Input[float] minute: Indicates which minute snapshot should be taken + :param pulumi.Input[float] snapshots_to_keep: Hourly snapshot count to keep + :param pulumi.Input[float] used_bytes: Resource size in bytes, current storage usage for the volume in bytes + """ + if minute is not None: + pulumi.set(__self__, "minute", minute) + if snapshots_to_keep is not None: + pulumi.set(__self__, "snapshots_to_keep", snapshots_to_keep) + if used_bytes is not None: + pulumi.set(__self__, "used_bytes", used_bytes) + + @property + @pulumi.getter + def minute(self) -> Optional[pulumi.Input[float]]: + """ + Indicates which minute snapshot should be taken + """ + return pulumi.get(self, "minute") + + @minute.setter + def minute(self, value: Optional[pulumi.Input[float]]): + pulumi.set(self, "minute", value) + + @property + @pulumi.getter(name="snapshotsToKeep") + def snapshots_to_keep(self) -> Optional[pulumi.Input[float]]: + """ + Hourly snapshot count to keep + """ + return pulumi.get(self, "snapshots_to_keep") + + @snapshots_to_keep.setter + def snapshots_to_keep(self, value: Optional[pulumi.Input[float]]): + pulumi.set(self, "snapshots_to_keep", value) + + @property + @pulumi.getter(name="usedBytes") + def used_bytes(self) -> Optional[pulumi.Input[float]]: + """ + Resource size in bytes, current storage usage for the volume in bytes + """ + return pulumi.get(self, "used_bytes") + + @used_bytes.setter + def used_bytes(self, value: Optional[pulumi.Input[float]]): + pulumi.set(self, "used_bytes", value) + + +@pulumi.input_type +class MonthlyScheduleArgs: + def __init__(__self__, *, + days_of_month: Optional[pulumi.Input[str]] = None, + hour: Optional[pulumi.Input[float]] = None, + minute: Optional[pulumi.Input[float]] = None, + snapshots_to_keep: Optional[pulumi.Input[float]] = None, + used_bytes: Optional[pulumi.Input[float]] = None): + """ + Monthly Schedule properties + :param pulumi.Input[str] days_of_month: Indicates which days of the month snapshot should be taken. A comma delimited string. + :param pulumi.Input[float] hour: Indicates which hour in UTC timezone a snapshot should be taken + :param pulumi.Input[float] minute: Indicates which minute snapshot should be taken + :param pulumi.Input[float] snapshots_to_keep: Monthly snapshot count to keep + :param pulumi.Input[float] used_bytes: Resource size in bytes, current storage usage for the volume in bytes + """ + if days_of_month is not None: + pulumi.set(__self__, "days_of_month", days_of_month) + if hour is not None: + pulumi.set(__self__, "hour", hour) + if minute is not None: + pulumi.set(__self__, "minute", minute) + if snapshots_to_keep is not None: + pulumi.set(__self__, "snapshots_to_keep", snapshots_to_keep) + if used_bytes is not None: + pulumi.set(__self__, "used_bytes", used_bytes) + + @property + @pulumi.getter(name="daysOfMonth") + def days_of_month(self) -> Optional[pulumi.Input[str]]: + """ + Indicates which days of the month snapshot should be taken. A comma delimited string. + """ + return pulumi.get(self, "days_of_month") + + @days_of_month.setter + def days_of_month(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "days_of_month", value) + + @property + @pulumi.getter + def hour(self) -> Optional[pulumi.Input[float]]: + """ + Indicates which hour in UTC timezone a snapshot should be taken + """ + return pulumi.get(self, "hour") + + @hour.setter + def hour(self, value: Optional[pulumi.Input[float]]): + pulumi.set(self, "hour", value) + + @property + @pulumi.getter + def minute(self) -> Optional[pulumi.Input[float]]: + """ + Indicates which minute snapshot should be taken + """ + return pulumi.get(self, "minute") + + @minute.setter + def minute(self, value: Optional[pulumi.Input[float]]): + pulumi.set(self, "minute", value) + + @property + @pulumi.getter(name="snapshotsToKeep") + def snapshots_to_keep(self) -> Optional[pulumi.Input[float]]: + """ + Monthly snapshot count to keep + """ + return pulumi.get(self, "snapshots_to_keep") + + @snapshots_to_keep.setter + def snapshots_to_keep(self, value: Optional[pulumi.Input[float]]): + pulumi.set(self, "snapshots_to_keep", value) + + @property + @pulumi.getter(name="usedBytes") + def used_bytes(self) -> Optional[pulumi.Input[float]]: + """ + Resource size in bytes, current storage usage for the volume in bytes + """ + return pulumi.get(self, "used_bytes") + + @used_bytes.setter + def used_bytes(self, value: Optional[pulumi.Input[float]]): + pulumi.set(self, "used_bytes", value) + + @pulumi.input_type class MountTargetPropertiesArgs: def __init__(__self__, *, @@ -809,3 +1029,91 @@ def snapshot_policy_id(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "snapshot_policy_id", value) +@pulumi.input_type +class WeeklyScheduleArgs: + def __init__(__self__, *, + day: Optional[pulumi.Input[str]] = None, + hour: Optional[pulumi.Input[float]] = None, + minute: Optional[pulumi.Input[float]] = None, + snapshots_to_keep: Optional[pulumi.Input[float]] = None, + used_bytes: Optional[pulumi.Input[float]] = None): + """ + Weekly Schedule properties, make a snapshot every week at a specific day or days + :param pulumi.Input[str] day: Indicates which weekdays snapshot should be taken, accepts a comma separated list of week day names in english + :param pulumi.Input[float] hour: Indicates which hour in UTC timezone a snapshot should be taken + :param pulumi.Input[float] minute: Indicates which minute snapshot should be taken + :param pulumi.Input[float] snapshots_to_keep: Weekly snapshot count to keep + :param pulumi.Input[float] used_bytes: Resource size in bytes, current storage usage for the volume in bytes + """ + if day is not None: + pulumi.set(__self__, "day", day) + if hour is not None: + pulumi.set(__self__, "hour", hour) + if minute is not None: + pulumi.set(__self__, "minute", minute) + if snapshots_to_keep is not None: + pulumi.set(__self__, "snapshots_to_keep", snapshots_to_keep) + if used_bytes is not None: + pulumi.set(__self__, "used_bytes", used_bytes) + + @property + @pulumi.getter + def day(self) -> Optional[pulumi.Input[str]]: + """ + Indicates which weekdays snapshot should be taken, accepts a comma separated list of week day names in english + """ + return pulumi.get(self, "day") + + @day.setter + def day(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "day", value) + + @property + @pulumi.getter + def hour(self) -> Optional[pulumi.Input[float]]: + """ + Indicates which hour in UTC timezone a snapshot should be taken + """ + return pulumi.get(self, "hour") + + @hour.setter + def hour(self, value: Optional[pulumi.Input[float]]): + pulumi.set(self, "hour", value) + + @property + @pulumi.getter + def minute(self) -> Optional[pulumi.Input[float]]: + """ + Indicates which minute snapshot should be taken + """ + return pulumi.get(self, "minute") + + @minute.setter + def minute(self, value: Optional[pulumi.Input[float]]): + pulumi.set(self, "minute", value) + + @property + @pulumi.getter(name="snapshotsToKeep") + def snapshots_to_keep(self) -> Optional[pulumi.Input[float]]: + """ + Weekly snapshot count to keep + """ + return pulumi.get(self, "snapshots_to_keep") + + @snapshots_to_keep.setter + def snapshots_to_keep(self, value: Optional[pulumi.Input[float]]): + pulumi.set(self, "snapshots_to_keep", value) + + @property + @pulumi.getter(name="usedBytes") + def used_bytes(self) -> Optional[pulumi.Input[float]]: + """ + Resource size in bytes, current storage usage for the volume in bytes + """ + return pulumi.get(self, "used_bytes") + + @used_bytes.setter + def used_bytes(self, value: Optional[pulumi.Input[float]]): + pulumi.set(self, "used_bytes", value) + + diff --git a/sdk/python/pulumi_azurerm/netapp/latest/getsnapshot_policy.py b/sdk/python/pulumi_azurerm/netapp/latest/getsnapshot_policy.py index 442339c89c47..5c8133d2f931 100644 --- a/sdk/python/pulumi_azurerm/netapp/latest/getsnapshot_policy.py +++ b/sdk/python/pulumi_azurerm/netapp/latest/getsnapshot_policy.py @@ -7,6 +7,7 @@ import pulumi.runtime from typing import Any, Dict, List, Mapping, Optional, Tuple, Union from ... import _utilities, _tables +from . import outputs __all__ = [ 'GetsnapshotPolicyResult', @@ -19,7 +20,7 @@ class GetsnapshotPolicyResult: """ Snapshot policy information """ - def __init__(__self__, daily_schedule=None, enabled=None, hourly_schedule=None, location=None, monthly_schedule=None, name=None, tags=None, type=None, weekly_schedule=None): + def __init__(__self__, daily_schedule=None, enabled=None, hourly_schedule=None, location=None, monthly_schedule=None, name=None, provisioning_state=None, tags=None, type=None, weekly_schedule=None): if daily_schedule and not isinstance(daily_schedule, dict): raise TypeError("Expected argument 'daily_schedule' to be a dict") pulumi.set(__self__, "daily_schedule", daily_schedule) @@ -38,6 +39,9 @@ def __init__(__self__, daily_schedule=None, enabled=None, hourly_schedule=None, if name and not isinstance(name, str): raise TypeError("Expected argument 'name' to be a str") pulumi.set(__self__, "name", name) + 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 tags and not isinstance(tags, dict): raise TypeError("Expected argument 'tags' to be a dict") pulumi.set(__self__, "tags", tags) @@ -50,7 +54,7 @@ def __init__(__self__, daily_schedule=None, enabled=None, hourly_schedule=None, @property @pulumi.getter(name="dailySchedule") - def daily_schedule(self) -> Optional[Mapping[str, Any]]: + def daily_schedule(self) -> Optional['outputs.DailyScheduleResponse']: """ Schedule for daily snapshots """ @@ -66,7 +70,7 @@ def enabled(self) -> Optional[bool]: @property @pulumi.getter(name="hourlySchedule") - def hourly_schedule(self) -> Optional[Mapping[str, Any]]: + def hourly_schedule(self) -> Optional['outputs.HourlyScheduleResponse']: """ Schedule for hourly snapshots """ @@ -82,7 +86,7 @@ def location(self) -> str: @property @pulumi.getter(name="monthlySchedule") - def monthly_schedule(self) -> Optional[Mapping[str, Any]]: + def monthly_schedule(self) -> Optional['outputs.MonthlyScheduleResponse']: """ Schedule for monthly snapshots """ @@ -92,10 +96,18 @@ def monthly_schedule(self) -> Optional[Mapping[str, Any]]: @pulumi.getter def name(self) -> str: """ - Resource name + Snapshot policy name """ return pulumi.get(self, "name") + @property + @pulumi.getter(name="provisioningState") + def provisioning_state(self) -> str: + """ + Azure lifecycle management + """ + return pulumi.get(self, "provisioning_state") + @property @pulumi.getter def tags(self) -> Optional[Mapping[str, str]]: @@ -114,7 +126,7 @@ def type(self) -> str: @property @pulumi.getter(name="weeklySchedule") - def weekly_schedule(self) -> Optional[Mapping[str, Any]]: + def weekly_schedule(self) -> Optional['outputs.WeeklyScheduleResponse']: """ Schedule for weekly snapshots """ @@ -133,6 +145,7 @@ def __await__(self): location=self.location, monthly_schedule=self.monthly_schedule, name=self.name, + provisioning_state=self.provisioning_state, tags=self.tags, type=self.type, weekly_schedule=self.weekly_schedule) @@ -166,6 +179,7 @@ def getsnapshot_policy(account_name: Optional[str] = None, location=__ret__.location, monthly_schedule=__ret__.monthly_schedule, name=__ret__.name, + provisioning_state=__ret__.provisioning_state, tags=__ret__.tags, type=__ret__.type, weekly_schedule=__ret__.weekly_schedule) diff --git a/sdk/python/pulumi_azurerm/netapp/latest/outputs.py b/sdk/python/pulumi_azurerm/netapp/latest/outputs.py index 1bd596627869..6693113bb5b9 100644 --- a/sdk/python/pulumi_azurerm/netapp/latest/outputs.py +++ b/sdk/python/pulumi_azurerm/netapp/latest/outputs.py @@ -11,7 +11,10 @@ __all__ = [ 'ActiveDirectoryResponse', + 'DailyScheduleResponse', 'ExportPolicyRuleResponse', + 'HourlyScheduleResponse', + 'MonthlyScheduleResponse', 'MountTargetPropertiesResponse', 'ReplicationObjectResponse', 'VolumeBackupPropertiesResponse', @@ -19,6 +22,7 @@ 'VolumePropertiesResponseDataProtection', 'VolumePropertiesResponseExportPolicy', 'VolumeSnapshotPropertiesResponse', + 'WeeklyScheduleResponse', ] @pulumi.output_type @@ -201,6 +205,68 @@ def _translate_property(self, prop): return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop +@pulumi.output_type +class DailyScheduleResponse(dict): + """ + Daily Schedule properties + """ + def __init__(__self__, *, + hour: Optional[float] = None, + minute: Optional[float] = None, + snapshots_to_keep: Optional[float] = None, + used_bytes: Optional[float] = None): + """ + Daily Schedule properties + :param float hour: Indicates which hour in UTC timezone a snapshot should be taken + :param float minute: Indicates which minute snapshot should be taken + :param float snapshots_to_keep: Daily snapshot count to keep + :param float used_bytes: Resource size in bytes, current storage usage for the volume in bytes + """ + if hour is not None: + pulumi.set(__self__, "hour", hour) + if minute is not None: + pulumi.set(__self__, "minute", minute) + if snapshots_to_keep is not None: + pulumi.set(__self__, "snapshots_to_keep", snapshots_to_keep) + if used_bytes is not None: + pulumi.set(__self__, "used_bytes", used_bytes) + + @property + @pulumi.getter + def hour(self) -> Optional[float]: + """ + Indicates which hour in UTC timezone a snapshot should be taken + """ + return pulumi.get(self, "hour") + + @property + @pulumi.getter + def minute(self) -> Optional[float]: + """ + Indicates which minute snapshot should be taken + """ + return pulumi.get(self, "minute") + + @property + @pulumi.getter(name="snapshotsToKeep") + def snapshots_to_keep(self) -> Optional[float]: + """ + Daily snapshot count to keep + """ + return pulumi.get(self, "snapshots_to_keep") + + @property + @pulumi.getter(name="usedBytes") + def used_bytes(self) -> Optional[float]: + """ + Resource size in bytes, current storage usage for the volume in bytes + """ + return pulumi.get(self, "used_bytes") + + def _translate_property(self, prop): + return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + @pulumi.output_type class ExportPolicyRuleResponse(dict): """ @@ -383,6 +449,130 @@ def _translate_property(self, prop): return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop +@pulumi.output_type +class HourlyScheduleResponse(dict): + """ + Hourly Schedule properties + """ + def __init__(__self__, *, + minute: Optional[float] = None, + snapshots_to_keep: Optional[float] = None, + used_bytes: Optional[float] = None): + """ + Hourly Schedule properties + :param float minute: Indicates which minute snapshot should be taken + :param float snapshots_to_keep: Hourly snapshot count to keep + :param float used_bytes: Resource size in bytes, current storage usage for the volume in bytes + """ + if minute is not None: + pulumi.set(__self__, "minute", minute) + if snapshots_to_keep is not None: + pulumi.set(__self__, "snapshots_to_keep", snapshots_to_keep) + if used_bytes is not None: + pulumi.set(__self__, "used_bytes", used_bytes) + + @property + @pulumi.getter + def minute(self) -> Optional[float]: + """ + Indicates which minute snapshot should be taken + """ + return pulumi.get(self, "minute") + + @property + @pulumi.getter(name="snapshotsToKeep") + def snapshots_to_keep(self) -> Optional[float]: + """ + Hourly snapshot count to keep + """ + return pulumi.get(self, "snapshots_to_keep") + + @property + @pulumi.getter(name="usedBytes") + def used_bytes(self) -> Optional[float]: + """ + Resource size in bytes, current storage usage for the volume in bytes + """ + return pulumi.get(self, "used_bytes") + + def _translate_property(self, prop): + return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + +@pulumi.output_type +class MonthlyScheduleResponse(dict): + """ + Monthly Schedule properties + """ + def __init__(__self__, *, + days_of_month: Optional[str] = None, + hour: Optional[float] = None, + minute: Optional[float] = None, + snapshots_to_keep: Optional[float] = None, + used_bytes: Optional[float] = None): + """ + Monthly Schedule properties + :param str days_of_month: Indicates which days of the month snapshot should be taken. A comma delimited string. + :param float hour: Indicates which hour in UTC timezone a snapshot should be taken + :param float minute: Indicates which minute snapshot should be taken + :param float snapshots_to_keep: Monthly snapshot count to keep + :param float used_bytes: Resource size in bytes, current storage usage for the volume in bytes + """ + if days_of_month is not None: + pulumi.set(__self__, "days_of_month", days_of_month) + if hour is not None: + pulumi.set(__self__, "hour", hour) + if minute is not None: + pulumi.set(__self__, "minute", minute) + if snapshots_to_keep is not None: + pulumi.set(__self__, "snapshots_to_keep", snapshots_to_keep) + if used_bytes is not None: + pulumi.set(__self__, "used_bytes", used_bytes) + + @property + @pulumi.getter(name="daysOfMonth") + def days_of_month(self) -> Optional[str]: + """ + Indicates which days of the month snapshot should be taken. A comma delimited string. + """ + return pulumi.get(self, "days_of_month") + + @property + @pulumi.getter + def hour(self) -> Optional[float]: + """ + Indicates which hour in UTC timezone a snapshot should be taken + """ + return pulumi.get(self, "hour") + + @property + @pulumi.getter + def minute(self) -> Optional[float]: + """ + Indicates which minute snapshot should be taken + """ + return pulumi.get(self, "minute") + + @property + @pulumi.getter(name="snapshotsToKeep") + def snapshots_to_keep(self) -> Optional[float]: + """ + Monthly snapshot count to keep + """ + return pulumi.get(self, "snapshots_to_keep") + + @property + @pulumi.getter(name="usedBytes") + def used_bytes(self) -> Optional[float]: + """ + Resource size in bytes, current storage usage for the volume in bytes + """ + return pulumi.get(self, "used_bytes") + + def _translate_property(self, prop): + return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + @pulumi.output_type class MountTargetPropertiesResponse(dict): """ @@ -728,3 +918,77 @@ def _translate_property(self, prop): return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop +@pulumi.output_type +class WeeklyScheduleResponse(dict): + """ + Weekly Schedule properties, make a snapshot every week at a specific day or days + """ + def __init__(__self__, *, + day: Optional[str] = None, + hour: Optional[float] = None, + minute: Optional[float] = None, + snapshots_to_keep: Optional[float] = None, + used_bytes: Optional[float] = None): + """ + Weekly Schedule properties, make a snapshot every week at a specific day or days + :param str day: Indicates which weekdays snapshot should be taken, accepts a comma separated list of week day names in english + :param float hour: Indicates which hour in UTC timezone a snapshot should be taken + :param float minute: Indicates which minute snapshot should be taken + :param float snapshots_to_keep: Weekly snapshot count to keep + :param float used_bytes: Resource size in bytes, current storage usage for the volume in bytes + """ + if day is not None: + pulumi.set(__self__, "day", day) + if hour is not None: + pulumi.set(__self__, "hour", hour) + if minute is not None: + pulumi.set(__self__, "minute", minute) + if snapshots_to_keep is not None: + pulumi.set(__self__, "snapshots_to_keep", snapshots_to_keep) + if used_bytes is not None: + pulumi.set(__self__, "used_bytes", used_bytes) + + @property + @pulumi.getter + def day(self) -> Optional[str]: + """ + Indicates which weekdays snapshot should be taken, accepts a comma separated list of week day names in english + """ + return pulumi.get(self, "day") + + @property + @pulumi.getter + def hour(self) -> Optional[float]: + """ + Indicates which hour in UTC timezone a snapshot should be taken + """ + return pulumi.get(self, "hour") + + @property + @pulumi.getter + def minute(self) -> Optional[float]: + """ + Indicates which minute snapshot should be taken + """ + return pulumi.get(self, "minute") + + @property + @pulumi.getter(name="snapshotsToKeep") + def snapshots_to_keep(self) -> Optional[float]: + """ + Weekly snapshot count to keep + """ + return pulumi.get(self, "snapshots_to_keep") + + @property + @pulumi.getter(name="usedBytes") + def used_bytes(self) -> Optional[float]: + """ + Resource size in bytes, current storage usage for the volume in bytes + """ + return pulumi.get(self, "used_bytes") + + def _translate_property(self, prop): + return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + diff --git a/sdk/python/pulumi_azurerm/netapp/latest/snapshot_policy.py b/sdk/python/pulumi_azurerm/netapp/latest/snapshot_policy.py index 83b07f25bdd4..46edbd2bef9c 100644 --- a/sdk/python/pulumi_azurerm/netapp/latest/snapshot_policy.py +++ b/sdk/python/pulumi_azurerm/netapp/latest/snapshot_policy.py @@ -7,6 +7,8 @@ import pulumi.runtime from typing import Any, Dict, List, Mapping, Optional, Tuple, Union from ... import _utilities, _tables +from . import outputs +from ._inputs import * __all__ = ['SnapshotPolicy'] @@ -16,15 +18,15 @@ def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, account_name: Optional[pulumi.Input[str]] = None, - daily_schedule: Optional[pulumi.Input[Mapping[str, Any]]] = None, + daily_schedule: Optional[pulumi.Input[pulumi.InputType['DailyScheduleArgs']]] = None, enabled: Optional[pulumi.Input[bool]] = None, - hourly_schedule: Optional[pulumi.Input[Mapping[str, Any]]] = None, + hourly_schedule: Optional[pulumi.Input[pulumi.InputType['HourlyScheduleArgs']]] = None, location: Optional[pulumi.Input[str]] = None, - monthly_schedule: Optional[pulumi.Input[Mapping[str, Any]]] = None, + monthly_schedule: Optional[pulumi.Input[pulumi.InputType['MonthlyScheduleArgs']]] = None, resource_group_name: Optional[pulumi.Input[str]] = None, snapshot_policy_name: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, - weekly_schedule: Optional[pulumi.Input[Mapping[str, Any]]] = None, + weekly_schedule: Optional[pulumi.Input[pulumi.InputType['WeeklyScheduleArgs']]] = None, __props__=None, __name__=None, __opts__=None): @@ -34,15 +36,15 @@ def __init__(__self__, :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] account_name: The name of the NetApp account - :param pulumi.Input[Mapping[str, Any]] daily_schedule: Schedule for daily snapshots + :param pulumi.Input[pulumi.InputType['DailyScheduleArgs']] daily_schedule: Schedule for daily snapshots :param pulumi.Input[bool] enabled: The property to decide policy is enabled or not - :param pulumi.Input[Mapping[str, Any]] hourly_schedule: Schedule for hourly snapshots + :param pulumi.Input[pulumi.InputType['HourlyScheduleArgs']] hourly_schedule: Schedule for hourly snapshots :param pulumi.Input[str] location: Resource location - :param pulumi.Input[Mapping[str, Any]] monthly_schedule: Schedule for monthly snapshots + :param pulumi.Input[pulumi.InputType['MonthlyScheduleArgs']] monthly_schedule: Schedule for monthly snapshots :param pulumi.Input[str] resource_group_name: The name of the resource group. :param pulumi.Input[str] snapshot_policy_name: The name of the snapshot policy target :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: Resource tags - :param pulumi.Input[Mapping[str, Any]] weekly_schedule: Schedule for weekly snapshots + :param pulumi.Input[pulumi.InputType['WeeklyScheduleArgs']] weekly_schedule: Schedule for weekly snapshots """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) @@ -80,6 +82,7 @@ def __init__(__self__, __props__['tags'] = tags __props__['weekly_schedule'] = weekly_schedule __props__['name'] = None + __props__['provisioning_state'] = None __props__['type'] = None alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azurerm:netapp/v20200601:snapshotPolicy")]) opts = pulumi.ResourceOptions.merge(opts, alias_opts) @@ -109,7 +112,7 @@ def get(resource_name: str, @property @pulumi.getter(name="dailySchedule") - def daily_schedule(self) -> pulumi.Output[Optional[Mapping[str, Any]]]: + def daily_schedule(self) -> pulumi.Output[Optional['outputs.DailyScheduleResponse']]: """ Schedule for daily snapshots """ @@ -125,7 +128,7 @@ def enabled(self) -> pulumi.Output[Optional[bool]]: @property @pulumi.getter(name="hourlySchedule") - def hourly_schedule(self) -> pulumi.Output[Optional[Mapping[str, Any]]]: + def hourly_schedule(self) -> pulumi.Output[Optional['outputs.HourlyScheduleResponse']]: """ Schedule for hourly snapshots """ @@ -141,7 +144,7 @@ def location(self) -> pulumi.Output[str]: @property @pulumi.getter(name="monthlySchedule") - def monthly_schedule(self) -> pulumi.Output[Optional[Mapping[str, Any]]]: + def monthly_schedule(self) -> pulumi.Output[Optional['outputs.MonthlyScheduleResponse']]: """ Schedule for monthly snapshots """ @@ -151,10 +154,18 @@ def monthly_schedule(self) -> pulumi.Output[Optional[Mapping[str, Any]]]: @pulumi.getter def name(self) -> pulumi.Output[str]: """ - Resource name + Snapshot policy name """ return pulumi.get(self, "name") + @property + @pulumi.getter(name="provisioningState") + def provisioning_state(self) -> pulumi.Output[str]: + """ + Azure lifecycle management + """ + return pulumi.get(self, "provisioning_state") + @property @pulumi.getter def tags(self) -> pulumi.Output[Optional[Mapping[str, str]]]: @@ -173,7 +184,7 @@ def type(self) -> pulumi.Output[str]: @property @pulumi.getter(name="weeklySchedule") - def weekly_schedule(self) -> pulumi.Output[Optional[Mapping[str, Any]]]: + def weekly_schedule(self) -> pulumi.Output[Optional['outputs.WeeklyScheduleResponse']]: """ Schedule for weekly snapshots """ diff --git a/sdk/python/pulumi_azurerm/netapp/v20200601/_inputs.py b/sdk/python/pulumi_azurerm/netapp/v20200601/_inputs.py index ddfd44ebf9dd..8bcdb99a92c7 100644 --- a/sdk/python/pulumi_azurerm/netapp/v20200601/_inputs.py +++ b/sdk/python/pulumi_azurerm/netapp/v20200601/_inputs.py @@ -10,7 +10,10 @@ __all__ = [ 'ActiveDirectoryArgs', + 'DailyScheduleArgs', 'ExportPolicyRuleArgs', + 'HourlyScheduleArgs', + 'MonthlyScheduleArgs', 'MountTargetPropertiesArgs', 'ReplicationObjectArgs', 'VolumeBackupPropertiesArgs', @@ -18,6 +21,7 @@ 'VolumePropertiesDataProtectionArgs', 'VolumePropertiesExportPolicyArgs', 'VolumeSnapshotPropertiesArgs', + 'WeeklyScheduleArgs', ] @pulumi.input_type @@ -220,6 +224,78 @@ def username(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "username", value) +@pulumi.input_type +class DailyScheduleArgs: + def __init__(__self__, *, + hour: Optional[pulumi.Input[float]] = None, + minute: Optional[pulumi.Input[float]] = None, + snapshots_to_keep: Optional[pulumi.Input[float]] = None, + used_bytes: Optional[pulumi.Input[float]] = None): + """ + Daily Schedule properties + :param pulumi.Input[float] hour: Indicates which hour in UTC timezone a snapshot should be taken + :param pulumi.Input[float] minute: Indicates which minute snapshot should be taken + :param pulumi.Input[float] snapshots_to_keep: Daily snapshot count to keep + :param pulumi.Input[float] used_bytes: Resource size in bytes, current storage usage for the volume in bytes + """ + if hour is not None: + pulumi.set(__self__, "hour", hour) + if minute is not None: + pulumi.set(__self__, "minute", minute) + if snapshots_to_keep is not None: + pulumi.set(__self__, "snapshots_to_keep", snapshots_to_keep) + if used_bytes is not None: + pulumi.set(__self__, "used_bytes", used_bytes) + + @property + @pulumi.getter + def hour(self) -> Optional[pulumi.Input[float]]: + """ + Indicates which hour in UTC timezone a snapshot should be taken + """ + return pulumi.get(self, "hour") + + @hour.setter + def hour(self, value: Optional[pulumi.Input[float]]): + pulumi.set(self, "hour", value) + + @property + @pulumi.getter + def minute(self) -> Optional[pulumi.Input[float]]: + """ + Indicates which minute snapshot should be taken + """ + return pulumi.get(self, "minute") + + @minute.setter + def minute(self, value: Optional[pulumi.Input[float]]): + pulumi.set(self, "minute", value) + + @property + @pulumi.getter(name="snapshotsToKeep") + def snapshots_to_keep(self) -> Optional[pulumi.Input[float]]: + """ + Daily snapshot count to keep + """ + return pulumi.get(self, "snapshots_to_keep") + + @snapshots_to_keep.setter + def snapshots_to_keep(self, value: Optional[pulumi.Input[float]]): + pulumi.set(self, "snapshots_to_keep", value) + + @property + @pulumi.getter(name="usedBytes") + def used_bytes(self) -> Optional[pulumi.Input[float]]: + """ + Resource size in bytes, current storage usage for the volume in bytes + """ + return pulumi.get(self, "used_bytes") + + @used_bytes.setter + def used_bytes(self, value: Optional[pulumi.Input[float]]): + pulumi.set(self, "used_bytes", value) + + @pulumi.input_type class ExportPolicyRuleArgs: def __init__(__self__, *, @@ -452,6 +528,150 @@ def unix_read_write(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "unix_read_write", value) +@pulumi.input_type +class HourlyScheduleArgs: + def __init__(__self__, *, + minute: Optional[pulumi.Input[float]] = None, + snapshots_to_keep: Optional[pulumi.Input[float]] = None, + used_bytes: Optional[pulumi.Input[float]] = None): + """ + Hourly Schedule properties + :param pulumi.Input[float] minute: Indicates which minute snapshot should be taken + :param pulumi.Input[float] snapshots_to_keep: Hourly snapshot count to keep + :param pulumi.Input[float] used_bytes: Resource size in bytes, current storage usage for the volume in bytes + """ + if minute is not None: + pulumi.set(__self__, "minute", minute) + if snapshots_to_keep is not None: + pulumi.set(__self__, "snapshots_to_keep", snapshots_to_keep) + if used_bytes is not None: + pulumi.set(__self__, "used_bytes", used_bytes) + + @property + @pulumi.getter + def minute(self) -> Optional[pulumi.Input[float]]: + """ + Indicates which minute snapshot should be taken + """ + return pulumi.get(self, "minute") + + @minute.setter + def minute(self, value: Optional[pulumi.Input[float]]): + pulumi.set(self, "minute", value) + + @property + @pulumi.getter(name="snapshotsToKeep") + def snapshots_to_keep(self) -> Optional[pulumi.Input[float]]: + """ + Hourly snapshot count to keep + """ + return pulumi.get(self, "snapshots_to_keep") + + @snapshots_to_keep.setter + def snapshots_to_keep(self, value: Optional[pulumi.Input[float]]): + pulumi.set(self, "snapshots_to_keep", value) + + @property + @pulumi.getter(name="usedBytes") + def used_bytes(self) -> Optional[pulumi.Input[float]]: + """ + Resource size in bytes, current storage usage for the volume in bytes + """ + return pulumi.get(self, "used_bytes") + + @used_bytes.setter + def used_bytes(self, value: Optional[pulumi.Input[float]]): + pulumi.set(self, "used_bytes", value) + + +@pulumi.input_type +class MonthlyScheduleArgs: + def __init__(__self__, *, + days_of_month: Optional[pulumi.Input[str]] = None, + hour: Optional[pulumi.Input[float]] = None, + minute: Optional[pulumi.Input[float]] = None, + snapshots_to_keep: Optional[pulumi.Input[float]] = None, + used_bytes: Optional[pulumi.Input[float]] = None): + """ + Monthly Schedule properties + :param pulumi.Input[str] days_of_month: Indicates which days of the month snapshot should be taken. A comma delimited string. + :param pulumi.Input[float] hour: Indicates which hour in UTC timezone a snapshot should be taken + :param pulumi.Input[float] minute: Indicates which minute snapshot should be taken + :param pulumi.Input[float] snapshots_to_keep: Monthly snapshot count to keep + :param pulumi.Input[float] used_bytes: Resource size in bytes, current storage usage for the volume in bytes + """ + if days_of_month is not None: + pulumi.set(__self__, "days_of_month", days_of_month) + if hour is not None: + pulumi.set(__self__, "hour", hour) + if minute is not None: + pulumi.set(__self__, "minute", minute) + if snapshots_to_keep is not None: + pulumi.set(__self__, "snapshots_to_keep", snapshots_to_keep) + if used_bytes is not None: + pulumi.set(__self__, "used_bytes", used_bytes) + + @property + @pulumi.getter(name="daysOfMonth") + def days_of_month(self) -> Optional[pulumi.Input[str]]: + """ + Indicates which days of the month snapshot should be taken. A comma delimited string. + """ + return pulumi.get(self, "days_of_month") + + @days_of_month.setter + def days_of_month(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "days_of_month", value) + + @property + @pulumi.getter + def hour(self) -> Optional[pulumi.Input[float]]: + """ + Indicates which hour in UTC timezone a snapshot should be taken + """ + return pulumi.get(self, "hour") + + @hour.setter + def hour(self, value: Optional[pulumi.Input[float]]): + pulumi.set(self, "hour", value) + + @property + @pulumi.getter + def minute(self) -> Optional[pulumi.Input[float]]: + """ + Indicates which minute snapshot should be taken + """ + return pulumi.get(self, "minute") + + @minute.setter + def minute(self, value: Optional[pulumi.Input[float]]): + pulumi.set(self, "minute", value) + + @property + @pulumi.getter(name="snapshotsToKeep") + def snapshots_to_keep(self) -> Optional[pulumi.Input[float]]: + """ + Monthly snapshot count to keep + """ + return pulumi.get(self, "snapshots_to_keep") + + @snapshots_to_keep.setter + def snapshots_to_keep(self, value: Optional[pulumi.Input[float]]): + pulumi.set(self, "snapshots_to_keep", value) + + @property + @pulumi.getter(name="usedBytes") + def used_bytes(self) -> Optional[pulumi.Input[float]]: + """ + Resource size in bytes, current storage usage for the volume in bytes + """ + return pulumi.get(self, "used_bytes") + + @used_bytes.setter + def used_bytes(self, value: Optional[pulumi.Input[float]]): + pulumi.set(self, "used_bytes", value) + + @pulumi.input_type class MountTargetPropertiesArgs: def __init__(__self__, *, @@ -809,3 +1029,91 @@ def snapshot_policy_id(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "snapshot_policy_id", value) +@pulumi.input_type +class WeeklyScheduleArgs: + def __init__(__self__, *, + day: Optional[pulumi.Input[str]] = None, + hour: Optional[pulumi.Input[float]] = None, + minute: Optional[pulumi.Input[float]] = None, + snapshots_to_keep: Optional[pulumi.Input[float]] = None, + used_bytes: Optional[pulumi.Input[float]] = None): + """ + Weekly Schedule properties, make a snapshot every week at a specific day or days + :param pulumi.Input[str] day: Indicates which weekdays snapshot should be taken, accepts a comma separated list of week day names in english + :param pulumi.Input[float] hour: Indicates which hour in UTC timezone a snapshot should be taken + :param pulumi.Input[float] minute: Indicates which minute snapshot should be taken + :param pulumi.Input[float] snapshots_to_keep: Weekly snapshot count to keep + :param pulumi.Input[float] used_bytes: Resource size in bytes, current storage usage for the volume in bytes + """ + if day is not None: + pulumi.set(__self__, "day", day) + if hour is not None: + pulumi.set(__self__, "hour", hour) + if minute is not None: + pulumi.set(__self__, "minute", minute) + if snapshots_to_keep is not None: + pulumi.set(__self__, "snapshots_to_keep", snapshots_to_keep) + if used_bytes is not None: + pulumi.set(__self__, "used_bytes", used_bytes) + + @property + @pulumi.getter + def day(self) -> Optional[pulumi.Input[str]]: + """ + Indicates which weekdays snapshot should be taken, accepts a comma separated list of week day names in english + """ + return pulumi.get(self, "day") + + @day.setter + def day(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "day", value) + + @property + @pulumi.getter + def hour(self) -> Optional[pulumi.Input[float]]: + """ + Indicates which hour in UTC timezone a snapshot should be taken + """ + return pulumi.get(self, "hour") + + @hour.setter + def hour(self, value: Optional[pulumi.Input[float]]): + pulumi.set(self, "hour", value) + + @property + @pulumi.getter + def minute(self) -> Optional[pulumi.Input[float]]: + """ + Indicates which minute snapshot should be taken + """ + return pulumi.get(self, "minute") + + @minute.setter + def minute(self, value: Optional[pulumi.Input[float]]): + pulumi.set(self, "minute", value) + + @property + @pulumi.getter(name="snapshotsToKeep") + def snapshots_to_keep(self) -> Optional[pulumi.Input[float]]: + """ + Weekly snapshot count to keep + """ + return pulumi.get(self, "snapshots_to_keep") + + @snapshots_to_keep.setter + def snapshots_to_keep(self, value: Optional[pulumi.Input[float]]): + pulumi.set(self, "snapshots_to_keep", value) + + @property + @pulumi.getter(name="usedBytes") + def used_bytes(self) -> Optional[pulumi.Input[float]]: + """ + Resource size in bytes, current storage usage for the volume in bytes + """ + return pulumi.get(self, "used_bytes") + + @used_bytes.setter + def used_bytes(self, value: Optional[pulumi.Input[float]]): + pulumi.set(self, "used_bytes", value) + + diff --git a/sdk/python/pulumi_azurerm/netapp/v20200601/getsnapshot_policy.py b/sdk/python/pulumi_azurerm/netapp/v20200601/getsnapshot_policy.py index 33be3553f1bd..ea7989a88a37 100644 --- a/sdk/python/pulumi_azurerm/netapp/v20200601/getsnapshot_policy.py +++ b/sdk/python/pulumi_azurerm/netapp/v20200601/getsnapshot_policy.py @@ -7,6 +7,7 @@ import pulumi.runtime from typing import Any, Dict, List, Mapping, Optional, Tuple, Union from ... import _utilities, _tables +from . import outputs __all__ = [ 'GetsnapshotPolicyResult', @@ -19,7 +20,7 @@ class GetsnapshotPolicyResult: """ Snapshot policy information """ - def __init__(__self__, daily_schedule=None, enabled=None, hourly_schedule=None, location=None, monthly_schedule=None, name=None, tags=None, type=None, weekly_schedule=None): + def __init__(__self__, daily_schedule=None, enabled=None, hourly_schedule=None, location=None, monthly_schedule=None, name=None, provisioning_state=None, tags=None, type=None, weekly_schedule=None): if daily_schedule and not isinstance(daily_schedule, dict): raise TypeError("Expected argument 'daily_schedule' to be a dict") pulumi.set(__self__, "daily_schedule", daily_schedule) @@ -38,6 +39,9 @@ def __init__(__self__, daily_schedule=None, enabled=None, hourly_schedule=None, if name and not isinstance(name, str): raise TypeError("Expected argument 'name' to be a str") pulumi.set(__self__, "name", name) + 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 tags and not isinstance(tags, dict): raise TypeError("Expected argument 'tags' to be a dict") pulumi.set(__self__, "tags", tags) @@ -50,7 +54,7 @@ def __init__(__self__, daily_schedule=None, enabled=None, hourly_schedule=None, @property @pulumi.getter(name="dailySchedule") - def daily_schedule(self) -> Optional[Mapping[str, Any]]: + def daily_schedule(self) -> Optional['outputs.DailyScheduleResponse']: """ Schedule for daily snapshots """ @@ -66,7 +70,7 @@ def enabled(self) -> Optional[bool]: @property @pulumi.getter(name="hourlySchedule") - def hourly_schedule(self) -> Optional[Mapping[str, Any]]: + def hourly_schedule(self) -> Optional['outputs.HourlyScheduleResponse']: """ Schedule for hourly snapshots """ @@ -82,7 +86,7 @@ def location(self) -> str: @property @pulumi.getter(name="monthlySchedule") - def monthly_schedule(self) -> Optional[Mapping[str, Any]]: + def monthly_schedule(self) -> Optional['outputs.MonthlyScheduleResponse']: """ Schedule for monthly snapshots """ @@ -92,10 +96,18 @@ def monthly_schedule(self) -> Optional[Mapping[str, Any]]: @pulumi.getter def name(self) -> str: """ - Resource name + Snapshot policy name """ return pulumi.get(self, "name") + @property + @pulumi.getter(name="provisioningState") + def provisioning_state(self) -> str: + """ + Azure lifecycle management + """ + return pulumi.get(self, "provisioning_state") + @property @pulumi.getter def tags(self) -> Optional[Mapping[str, str]]: @@ -114,7 +126,7 @@ def type(self) -> str: @property @pulumi.getter(name="weeklySchedule") - def weekly_schedule(self) -> Optional[Mapping[str, Any]]: + def weekly_schedule(self) -> Optional['outputs.WeeklyScheduleResponse']: """ Schedule for weekly snapshots """ @@ -133,6 +145,7 @@ def __await__(self): location=self.location, monthly_schedule=self.monthly_schedule, name=self.name, + provisioning_state=self.provisioning_state, tags=self.tags, type=self.type, weekly_schedule=self.weekly_schedule) @@ -166,6 +179,7 @@ def getsnapshot_policy(account_name: Optional[str] = None, location=__ret__.location, monthly_schedule=__ret__.monthly_schedule, name=__ret__.name, + provisioning_state=__ret__.provisioning_state, tags=__ret__.tags, type=__ret__.type, weekly_schedule=__ret__.weekly_schedule) diff --git a/sdk/python/pulumi_azurerm/netapp/v20200601/outputs.py b/sdk/python/pulumi_azurerm/netapp/v20200601/outputs.py index 1bd596627869..6693113bb5b9 100644 --- a/sdk/python/pulumi_azurerm/netapp/v20200601/outputs.py +++ b/sdk/python/pulumi_azurerm/netapp/v20200601/outputs.py @@ -11,7 +11,10 @@ __all__ = [ 'ActiveDirectoryResponse', + 'DailyScheduleResponse', 'ExportPolicyRuleResponse', + 'HourlyScheduleResponse', + 'MonthlyScheduleResponse', 'MountTargetPropertiesResponse', 'ReplicationObjectResponse', 'VolumeBackupPropertiesResponse', @@ -19,6 +22,7 @@ 'VolumePropertiesResponseDataProtection', 'VolumePropertiesResponseExportPolicy', 'VolumeSnapshotPropertiesResponse', + 'WeeklyScheduleResponse', ] @pulumi.output_type @@ -201,6 +205,68 @@ def _translate_property(self, prop): return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop +@pulumi.output_type +class DailyScheduleResponse(dict): + """ + Daily Schedule properties + """ + def __init__(__self__, *, + hour: Optional[float] = None, + minute: Optional[float] = None, + snapshots_to_keep: Optional[float] = None, + used_bytes: Optional[float] = None): + """ + Daily Schedule properties + :param float hour: Indicates which hour in UTC timezone a snapshot should be taken + :param float minute: Indicates which minute snapshot should be taken + :param float snapshots_to_keep: Daily snapshot count to keep + :param float used_bytes: Resource size in bytes, current storage usage for the volume in bytes + """ + if hour is not None: + pulumi.set(__self__, "hour", hour) + if minute is not None: + pulumi.set(__self__, "minute", minute) + if snapshots_to_keep is not None: + pulumi.set(__self__, "snapshots_to_keep", snapshots_to_keep) + if used_bytes is not None: + pulumi.set(__self__, "used_bytes", used_bytes) + + @property + @pulumi.getter + def hour(self) -> Optional[float]: + """ + Indicates which hour in UTC timezone a snapshot should be taken + """ + return pulumi.get(self, "hour") + + @property + @pulumi.getter + def minute(self) -> Optional[float]: + """ + Indicates which minute snapshot should be taken + """ + return pulumi.get(self, "minute") + + @property + @pulumi.getter(name="snapshotsToKeep") + def snapshots_to_keep(self) -> Optional[float]: + """ + Daily snapshot count to keep + """ + return pulumi.get(self, "snapshots_to_keep") + + @property + @pulumi.getter(name="usedBytes") + def used_bytes(self) -> Optional[float]: + """ + Resource size in bytes, current storage usage for the volume in bytes + """ + return pulumi.get(self, "used_bytes") + + def _translate_property(self, prop): + return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + @pulumi.output_type class ExportPolicyRuleResponse(dict): """ @@ -383,6 +449,130 @@ def _translate_property(self, prop): return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop +@pulumi.output_type +class HourlyScheduleResponse(dict): + """ + Hourly Schedule properties + """ + def __init__(__self__, *, + minute: Optional[float] = None, + snapshots_to_keep: Optional[float] = None, + used_bytes: Optional[float] = None): + """ + Hourly Schedule properties + :param float minute: Indicates which minute snapshot should be taken + :param float snapshots_to_keep: Hourly snapshot count to keep + :param float used_bytes: Resource size in bytes, current storage usage for the volume in bytes + """ + if minute is not None: + pulumi.set(__self__, "minute", minute) + if snapshots_to_keep is not None: + pulumi.set(__self__, "snapshots_to_keep", snapshots_to_keep) + if used_bytes is not None: + pulumi.set(__self__, "used_bytes", used_bytes) + + @property + @pulumi.getter + def minute(self) -> Optional[float]: + """ + Indicates which minute snapshot should be taken + """ + return pulumi.get(self, "minute") + + @property + @pulumi.getter(name="snapshotsToKeep") + def snapshots_to_keep(self) -> Optional[float]: + """ + Hourly snapshot count to keep + """ + return pulumi.get(self, "snapshots_to_keep") + + @property + @pulumi.getter(name="usedBytes") + def used_bytes(self) -> Optional[float]: + """ + Resource size in bytes, current storage usage for the volume in bytes + """ + return pulumi.get(self, "used_bytes") + + def _translate_property(self, prop): + return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + +@pulumi.output_type +class MonthlyScheduleResponse(dict): + """ + Monthly Schedule properties + """ + def __init__(__self__, *, + days_of_month: Optional[str] = None, + hour: Optional[float] = None, + minute: Optional[float] = None, + snapshots_to_keep: Optional[float] = None, + used_bytes: Optional[float] = None): + """ + Monthly Schedule properties + :param str days_of_month: Indicates which days of the month snapshot should be taken. A comma delimited string. + :param float hour: Indicates which hour in UTC timezone a snapshot should be taken + :param float minute: Indicates which minute snapshot should be taken + :param float snapshots_to_keep: Monthly snapshot count to keep + :param float used_bytes: Resource size in bytes, current storage usage for the volume in bytes + """ + if days_of_month is not None: + pulumi.set(__self__, "days_of_month", days_of_month) + if hour is not None: + pulumi.set(__self__, "hour", hour) + if minute is not None: + pulumi.set(__self__, "minute", minute) + if snapshots_to_keep is not None: + pulumi.set(__self__, "snapshots_to_keep", snapshots_to_keep) + if used_bytes is not None: + pulumi.set(__self__, "used_bytes", used_bytes) + + @property + @pulumi.getter(name="daysOfMonth") + def days_of_month(self) -> Optional[str]: + """ + Indicates which days of the month snapshot should be taken. A comma delimited string. + """ + return pulumi.get(self, "days_of_month") + + @property + @pulumi.getter + def hour(self) -> Optional[float]: + """ + Indicates which hour in UTC timezone a snapshot should be taken + """ + return pulumi.get(self, "hour") + + @property + @pulumi.getter + def minute(self) -> Optional[float]: + """ + Indicates which minute snapshot should be taken + """ + return pulumi.get(self, "minute") + + @property + @pulumi.getter(name="snapshotsToKeep") + def snapshots_to_keep(self) -> Optional[float]: + """ + Monthly snapshot count to keep + """ + return pulumi.get(self, "snapshots_to_keep") + + @property + @pulumi.getter(name="usedBytes") + def used_bytes(self) -> Optional[float]: + """ + Resource size in bytes, current storage usage for the volume in bytes + """ + return pulumi.get(self, "used_bytes") + + def _translate_property(self, prop): + return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + @pulumi.output_type class MountTargetPropertiesResponse(dict): """ @@ -728,3 +918,77 @@ def _translate_property(self, prop): return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop +@pulumi.output_type +class WeeklyScheduleResponse(dict): + """ + Weekly Schedule properties, make a snapshot every week at a specific day or days + """ + def __init__(__self__, *, + day: Optional[str] = None, + hour: Optional[float] = None, + minute: Optional[float] = None, + snapshots_to_keep: Optional[float] = None, + used_bytes: Optional[float] = None): + """ + Weekly Schedule properties, make a snapshot every week at a specific day or days + :param str day: Indicates which weekdays snapshot should be taken, accepts a comma separated list of week day names in english + :param float hour: Indicates which hour in UTC timezone a snapshot should be taken + :param float minute: Indicates which minute snapshot should be taken + :param float snapshots_to_keep: Weekly snapshot count to keep + :param float used_bytes: Resource size in bytes, current storage usage for the volume in bytes + """ + if day is not None: + pulumi.set(__self__, "day", day) + if hour is not None: + pulumi.set(__self__, "hour", hour) + if minute is not None: + pulumi.set(__self__, "minute", minute) + if snapshots_to_keep is not None: + pulumi.set(__self__, "snapshots_to_keep", snapshots_to_keep) + if used_bytes is not None: + pulumi.set(__self__, "used_bytes", used_bytes) + + @property + @pulumi.getter + def day(self) -> Optional[str]: + """ + Indicates which weekdays snapshot should be taken, accepts a comma separated list of week day names in english + """ + return pulumi.get(self, "day") + + @property + @pulumi.getter + def hour(self) -> Optional[float]: + """ + Indicates which hour in UTC timezone a snapshot should be taken + """ + return pulumi.get(self, "hour") + + @property + @pulumi.getter + def minute(self) -> Optional[float]: + """ + Indicates which minute snapshot should be taken + """ + return pulumi.get(self, "minute") + + @property + @pulumi.getter(name="snapshotsToKeep") + def snapshots_to_keep(self) -> Optional[float]: + """ + Weekly snapshot count to keep + """ + return pulumi.get(self, "snapshots_to_keep") + + @property + @pulumi.getter(name="usedBytes") + def used_bytes(self) -> Optional[float]: + """ + Resource size in bytes, current storage usage for the volume in bytes + """ + return pulumi.get(self, "used_bytes") + + def _translate_property(self, prop): + return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + diff --git a/sdk/python/pulumi_azurerm/netapp/v20200601/snapshot_policy.py b/sdk/python/pulumi_azurerm/netapp/v20200601/snapshot_policy.py index 38874982123f..4df8f8c92875 100644 --- a/sdk/python/pulumi_azurerm/netapp/v20200601/snapshot_policy.py +++ b/sdk/python/pulumi_azurerm/netapp/v20200601/snapshot_policy.py @@ -7,6 +7,8 @@ import pulumi.runtime from typing import Any, Dict, List, Mapping, Optional, Tuple, Union from ... import _utilities, _tables +from . import outputs +from ._inputs import * __all__ = ['SnapshotPolicy'] @@ -16,15 +18,15 @@ def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, account_name: Optional[pulumi.Input[str]] = None, - daily_schedule: Optional[pulumi.Input[Mapping[str, Any]]] = None, + daily_schedule: Optional[pulumi.Input[pulumi.InputType['DailyScheduleArgs']]] = None, enabled: Optional[pulumi.Input[bool]] = None, - hourly_schedule: Optional[pulumi.Input[Mapping[str, Any]]] = None, + hourly_schedule: Optional[pulumi.Input[pulumi.InputType['HourlyScheduleArgs']]] = None, location: Optional[pulumi.Input[str]] = None, - monthly_schedule: Optional[pulumi.Input[Mapping[str, Any]]] = None, + monthly_schedule: Optional[pulumi.Input[pulumi.InputType['MonthlyScheduleArgs']]] = None, resource_group_name: Optional[pulumi.Input[str]] = None, snapshot_policy_name: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, - weekly_schedule: Optional[pulumi.Input[Mapping[str, Any]]] = None, + weekly_schedule: Optional[pulumi.Input[pulumi.InputType['WeeklyScheduleArgs']]] = None, __props__=None, __name__=None, __opts__=None): @@ -34,15 +36,15 @@ def __init__(__self__, :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] account_name: The name of the NetApp account - :param pulumi.Input[Mapping[str, Any]] daily_schedule: Schedule for daily snapshots + :param pulumi.Input[pulumi.InputType['DailyScheduleArgs']] daily_schedule: Schedule for daily snapshots :param pulumi.Input[bool] enabled: The property to decide policy is enabled or not - :param pulumi.Input[Mapping[str, Any]] hourly_schedule: Schedule for hourly snapshots + :param pulumi.Input[pulumi.InputType['HourlyScheduleArgs']] hourly_schedule: Schedule for hourly snapshots :param pulumi.Input[str] location: Resource location - :param pulumi.Input[Mapping[str, Any]] monthly_schedule: Schedule for monthly snapshots + :param pulumi.Input[pulumi.InputType['MonthlyScheduleArgs']] monthly_schedule: Schedule for monthly snapshots :param pulumi.Input[str] resource_group_name: The name of the resource group. :param pulumi.Input[str] snapshot_policy_name: The name of the snapshot policy target :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: Resource tags - :param pulumi.Input[Mapping[str, Any]] weekly_schedule: Schedule for weekly snapshots + :param pulumi.Input[pulumi.InputType['WeeklyScheduleArgs']] weekly_schedule: Schedule for weekly snapshots """ if __name__ is not None: warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) @@ -80,6 +82,7 @@ def __init__(__self__, __props__['tags'] = tags __props__['weekly_schedule'] = weekly_schedule __props__['name'] = None + __props__['provisioning_state'] = None __props__['type'] = None alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azurerm:netapp/latest:snapshotPolicy")]) opts = pulumi.ResourceOptions.merge(opts, alias_opts) @@ -109,7 +112,7 @@ def get(resource_name: str, @property @pulumi.getter(name="dailySchedule") - def daily_schedule(self) -> pulumi.Output[Optional[Mapping[str, Any]]]: + def daily_schedule(self) -> pulumi.Output[Optional['outputs.DailyScheduleResponse']]: """ Schedule for daily snapshots """ @@ -125,7 +128,7 @@ def enabled(self) -> pulumi.Output[Optional[bool]]: @property @pulumi.getter(name="hourlySchedule") - def hourly_schedule(self) -> pulumi.Output[Optional[Mapping[str, Any]]]: + def hourly_schedule(self) -> pulumi.Output[Optional['outputs.HourlyScheduleResponse']]: """ Schedule for hourly snapshots """ @@ -141,7 +144,7 @@ def location(self) -> pulumi.Output[str]: @property @pulumi.getter(name="monthlySchedule") - def monthly_schedule(self) -> pulumi.Output[Optional[Mapping[str, Any]]]: + def monthly_schedule(self) -> pulumi.Output[Optional['outputs.MonthlyScheduleResponse']]: """ Schedule for monthly snapshots """ @@ -151,10 +154,18 @@ def monthly_schedule(self) -> pulumi.Output[Optional[Mapping[str, Any]]]: @pulumi.getter def name(self) -> pulumi.Output[str]: """ - Resource name + Snapshot policy name """ return pulumi.get(self, "name") + @property + @pulumi.getter(name="provisioningState") + def provisioning_state(self) -> pulumi.Output[str]: + """ + Azure lifecycle management + """ + return pulumi.get(self, "provisioning_state") + @property @pulumi.getter def tags(self) -> pulumi.Output[Optional[Mapping[str, str]]]: @@ -173,7 +184,7 @@ def type(self) -> pulumi.Output[str]: @property @pulumi.getter(name="weeklySchedule") - def weekly_schedule(self) -> pulumi.Output[Optional[Mapping[str, Any]]]: + def weekly_schedule(self) -> pulumi.Output[Optional['outputs.WeeklyScheduleResponse']]: """ Schedule for weekly snapshots """ diff --git a/sdk/python/pulumi_azurerm/sql/v20200202preview/__init__.py b/sdk/python/pulumi_azurerm/sql/v20200202preview/__init__.py index fdbd07966a38..a10ea79813b0 100644 --- a/sdk/python/pulumi_azurerm/sql/v20200202preview/__init__.py +++ b/sdk/python/pulumi_azurerm/sql/v20200202preview/__init__.py @@ -7,9 +7,11 @@ from .get_managed_instance import * from .get_managed_instance_azure_ad_only_authentication import * from .get_server_azure_ad_only_authentication import * +from .get_server_trust_group import * from .managed_database import * from .managed_instance import * from .managed_instance_azure_ad_only_authentication import * from .server_azure_ad_only_authentication import * +from .server_trust_group import * from ._inputs import * from . import outputs diff --git a/sdk/python/pulumi_azurerm/sql/v20200202preview/_inputs.py b/sdk/python/pulumi_azurerm/sql/v20200202preview/_inputs.py index fcc37e69679a..a11a932d3577 100644 --- a/sdk/python/pulumi_azurerm/sql/v20200202preview/_inputs.py +++ b/sdk/python/pulumi_azurerm/sql/v20200202preview/_inputs.py @@ -10,6 +10,7 @@ __all__ = [ 'ResourceIdentityArgs', + 'ServerInfoArgs', 'SkuArgs', ] @@ -37,6 +38,29 @@ def type(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "type", value) +@pulumi.input_type +class ServerInfoArgs: + def __init__(__self__, *, + server_id: pulumi.Input[str]): + """ + Server info for the server trust group. + :param pulumi.Input[str] server_id: Server Id. + """ + pulumi.set(__self__, "server_id", server_id) + + @property + @pulumi.getter(name="serverId") + def server_id(self) -> pulumi.Input[str]: + """ + Server Id. + """ + return pulumi.get(self, "server_id") + + @server_id.setter + def server_id(self, value: pulumi.Input[str]): + pulumi.set(self, "server_id", value) + + @pulumi.input_type class SkuArgs: def __init__(__self__, *, diff --git a/sdk/python/pulumi_azurerm/sql/v20200202preview/get_server_trust_group.py b/sdk/python/pulumi_azurerm/sql/v20200202preview/get_server_trust_group.py new file mode 100644 index 000000000000..23ab8a549adc --- /dev/null +++ b/sdk/python/pulumi_azurerm/sql/v20200202preview/get_server_trust_group.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__ = [ + 'GetServerTrustGroupResult', + 'AwaitableGetServerTrustGroupResult', + 'get_server_trust_group', +] + +@pulumi.output_type +class GetServerTrustGroupResult: + """ + A server trust group. + """ + def __init__(__self__, group_members=None, name=None, trust_scopes=None, type=None): + if group_members and not isinstance(group_members, list): + raise TypeError("Expected argument 'group_members' to be a list") + pulumi.set(__self__, "group_members", group_members) + if name and not isinstance(name, str): + raise TypeError("Expected argument 'name' to be a str") + pulumi.set(__self__, "name", name) + if trust_scopes and not isinstance(trust_scopes, list): + raise TypeError("Expected argument 'trust_scopes' to be a list") + pulumi.set(__self__, "trust_scopes", trust_scopes) + if type and not isinstance(type, str): + raise TypeError("Expected argument 'type' to be a str") + pulumi.set(__self__, "type", type) + + @property + @pulumi.getter(name="groupMembers") + def group_members(self) -> List['outputs.ServerInfoResponse']: + """ + Group members information for the server trust group. + """ + return pulumi.get(self, "group_members") + + @property + @pulumi.getter + def name(self) -> str: + """ + Resource name. + """ + return pulumi.get(self, "name") + + @property + @pulumi.getter(name="trustScopes") + def trust_scopes(self) -> List[str]: + """ + Trust scope of the server trust group. + """ + return pulumi.get(self, "trust_scopes") + + @property + @pulumi.getter + def type(self) -> str: + """ + Resource type. + """ + return pulumi.get(self, "type") + + +class AwaitableGetServerTrustGroupResult(GetServerTrustGroupResult): + # pylint: disable=using-constant-test + def __await__(self): + if False: + yield self + return GetServerTrustGroupResult( + group_members=self.group_members, + name=self.name, + trust_scopes=self.trust_scopes, + type=self.type) + + +def get_server_trust_group(location_name: Optional[str] = None, + resource_group_name: Optional[str] = None, + server_trust_group_name: Optional[str] = None, + opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetServerTrustGroupResult: + """ + Use this data source to access information about an existing resource. + + :param str location_name: The name of the region where the resource is located. + :param str resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. + :param str server_trust_group_name: The name of the server trust group. + """ + __args__ = dict() + __args__['locationName'] = location_name + __args__['resourceGroupName'] = resource_group_name + __args__['serverTrustGroupName'] = server_trust_group_name + if opts is None: + opts = pulumi.InvokeOptions() + if opts.version is None: + opts.version = _utilities.get_version() + __ret__ = pulumi.runtime.invoke('azurerm:sql/v20200202preview:getServerTrustGroup', __args__, opts=opts, typ=GetServerTrustGroupResult).value + + return AwaitableGetServerTrustGroupResult( + group_members=__ret__.group_members, + name=__ret__.name, + trust_scopes=__ret__.trust_scopes, + type=__ret__.type) diff --git a/sdk/python/pulumi_azurerm/sql/v20200202preview/outputs.py b/sdk/python/pulumi_azurerm/sql/v20200202preview/outputs.py index e031ac997940..615b918da350 100644 --- a/sdk/python/pulumi_azurerm/sql/v20200202preview/outputs.py +++ b/sdk/python/pulumi_azurerm/sql/v20200202preview/outputs.py @@ -10,6 +10,7 @@ __all__ = [ 'ResourceIdentityResponse', + 'ServerInfoResponse', 'SkuResponse', ] @@ -61,6 +62,31 @@ def _translate_property(self, prop): return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop +@pulumi.output_type +class ServerInfoResponse(dict): + """ + Server info for the server trust group. + """ + def __init__(__self__, *, + server_id: str): + """ + Server info for the server trust group. + :param str server_id: Server Id. + """ + pulumi.set(__self__, "server_id", server_id) + + @property + @pulumi.getter(name="serverId") + def server_id(self) -> str: + """ + Server Id. + """ + return pulumi.get(self, "server_id") + + def _translate_property(self, prop): + return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop + + @pulumi.output_type class SkuResponse(dict): """ diff --git a/sdk/python/pulumi_azurerm/sql/v20200202preview/server_trust_group.py b/sdk/python/pulumi_azurerm/sql/v20200202preview/server_trust_group.py new file mode 100644 index 000000000000..03ebe58ad330 --- /dev/null +++ b/sdk/python/pulumi_azurerm/sql/v20200202preview/server_trust_group.py @@ -0,0 +1,134 @@ +# 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__ = ['ServerTrustGroup'] + + +class ServerTrustGroup(pulumi.CustomResource): + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + group_members: Optional[pulumi.Input[List[pulumi.Input[pulumi.InputType['ServerInfoArgs']]]]] = None, + location_name: Optional[pulumi.Input[str]] = None, + resource_group_name: Optional[pulumi.Input[str]] = None, + server_trust_group_name: Optional[pulumi.Input[str]] = None, + trust_scopes: Optional[pulumi.Input[List[pulumi.Input[str]]]] = None, + __props__=None, + __name__=None, + __opts__=None): + """ + A server trust group. + + :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['ServerInfoArgs']]]] group_members: Group members information for the server trust group. + :param pulumi.Input[str] location_name: The name of the region where the resource is located. + :param pulumi.Input[str] resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. + :param pulumi.Input[str] server_trust_group_name: The name of the server trust group. + :param pulumi.Input[List[pulumi.Input[str]]] trust_scopes: Trust scope of the server trust group. + """ + 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 group_members is None: + raise TypeError("Missing required property 'group_members'") + __props__['group_members'] = group_members + if location_name is None: + raise TypeError("Missing required property 'location_name'") + __props__['location_name'] = location_name + if resource_group_name is None: + raise TypeError("Missing required property 'resource_group_name'") + __props__['resource_group_name'] = resource_group_name + if server_trust_group_name is None: + raise TypeError("Missing required property 'server_trust_group_name'") + __props__['server_trust_group_name'] = server_trust_group_name + if trust_scopes is None: + raise TypeError("Missing required property 'trust_scopes'") + __props__['trust_scopes'] = trust_scopes + __props__['name'] = None + __props__['type'] = None + super(ServerTrustGroup, __self__).__init__( + 'azurerm:sql/v20200202preview:ServerTrustGroup', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None) -> 'ServerTrustGroup': + """ + Get an existing ServerTrustGroup 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 ServerTrustGroup(resource_name, opts=opts, __props__=__props__) + + @property + @pulumi.getter(name="groupMembers") + def group_members(self) -> pulumi.Output[List['outputs.ServerInfoResponse']]: + """ + Group members information for the server trust group. + """ + return pulumi.get(self, "group_members") + + @property + @pulumi.getter + def name(self) -> pulumi.Output[str]: + """ + Resource name. + """ + return pulumi.get(self, "name") + + @property + @pulumi.getter(name="trustScopes") + def trust_scopes(self) -> pulumi.Output[List[str]]: + """ + Trust scope of the server trust group. + """ + return pulumi.get(self, "trust_scopes") + + @property + @pulumi.getter + def type(self) -> pulumi.Output[str]: + """ + 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 +