From 230aa79a64fdd2c87a215e663f17750737fb9a0e Mon Sep 17 00:00:00 2001 From: Pulumi Bot <30351955+pulumi-bot@users.noreply.github.com> Date: Mon, 14 Oct 2024 03:01:54 -0700 Subject: [PATCH] Upgrade terraform-provider-azurerm to v4.5.0 (#2548) This PR was generated via `$ upgrade-provider pulumi/pulumi-azure --kind=all`. --- - Upgrading terraform-provider-azurerm from 4.4.0 to 4.5.0. Fixes #2547 --- .../bridge-metadata.json | 4 + .../cmd/pulumi-resource-azure/schema.json | 252 +++++- .../Inputs/ApiOperationResponseArgs.cs | 2 +- .../Inputs/ApiOperationResponseGetArgs.cs | 2 +- .../Outputs/ApiOperationResponse.cs | 2 +- sdk/dotnet/Compute/BastionHost.cs | 30 +- sdk/dotnet/Compute/GetBastionHost.cs | 4 + .../ContainerApp/Inputs/AppIngressArgs.cs | 2 + .../ContainerApp/Inputs/AppIngressGetArgs.cs | 2 + .../Inputs/AppTemplateContainerArgs.cs | 2 +- .../Inputs/AppTemplateContainerGetArgs.cs | 2 +- sdk/dotnet/ContainerApp/Outputs/AppIngress.cs | 2 + .../Outputs/AppTemplateContainer.cs | 2 +- sdk/dotnet/LogAnalytics/Cluster.cs | 6 +- sdk/dotnet/MSSql/Inputs/ElasticPoolSkuArgs.cs | 2 +- .../MSSql/Inputs/ElasticPoolSkuGetArgs.cs | 2 +- sdk/dotnet/MSSql/Outputs/ElasticPoolSku.cs | 2 +- .../GroupSubscriptionAssociation.cs | 2 +- sdk/dotnet/Stack/HciVirtualHardDisk.cs | 383 +++++++++ sdk/go/azure/apimanagement/pulumiTypes.go | 6 +- sdk/go/azure/compute/bastionHost.go | 39 +- sdk/go/azure/compute/getBastionHost.go | 7 +- sdk/go/azure/containerapp/pulumiTypes.go | 8 + sdk/go/azure/loganalytics/cluster.go | 12 +- .../groupSubscriptionAssociation.go | 2 +- sdk/go/azure/mssql/pulumiTypes.go | 8 +- sdk/go/azure/stack/hciVirtualHardDisk.go | 480 +++++++++++ sdk/go/azure/stack/init.go | 7 + .../inputs/ApiOperationResponseArgs.java | 10 +- .../outputs/ApiOperationResponse.java | 4 +- .../com/pulumi/azure/compute/BastionHost.java | 22 +- .../pulumi/azure/compute/BastionHostArgs.java | 53 +- .../compute/inputs/BastionHostState.java | 53 +- .../compute/outputs/GetBastionHostResult.java | 15 + .../containerapp/inputs/AppIngressArgs.java | 8 + .../containerapp/outputs/AppIngress.java | 4 + .../pulumi/azure/loganalytics/Cluster.java | 4 +- .../azure/loganalytics/ClusterArgs.java | 8 +- .../loganalytics/inputs/ClusterState.java | 8 +- .../GroupSubscriptionAssociation.java | 2 +- .../mssql/inputs/ElasticPoolSkuArgs.java | 8 +- .../azure/mssql/outputs/ElasticPoolSku.java | 4 +- .../azure/stack/HciVirtualHardDisk.java | 335 ++++++++ .../azure/stack/HciVirtualHardDiskArgs.java | 548 ++++++++++++ .../stack/inputs/HciVirtualHardDiskState.java | 538 ++++++++++++ sdk/nodejs/compute/bastionHost.ts | 26 +- sdk/nodejs/compute/getBastionHost.ts | 1 + sdk/nodejs/loganalytics/cluster.ts | 6 +- .../groupSubscriptionAssociation.ts | 2 +- sdk/nodejs/stack/hciVirtualHardDisk.ts | 308 +++++++ sdk/nodejs/stack/index.ts | 8 + sdk/nodejs/tsconfig.json | 1 + sdk/nodejs/types/input.ts | 8 +- sdk/nodejs/types/output.ts | 8 +- sdk/python/pulumi_azure/__init__.py | 8 + .../pulumi_azure/apimanagement/_inputs.py | 6 +- .../pulumi_azure/apimanagement/outputs.py | 4 +- .../pulumi_azure/compute/bastion_host.py | 75 +- .../pulumi_azure/compute/get_bastion_host.py | 13 +- .../pulumi_azure/containerapp/_inputs.py | 12 +- .../pulumi_azure/containerapp/outputs.py | 8 +- .../pulumi_azure/loganalytics/cluster.py | 14 +- .../group_subscription_association.py | 4 +- sdk/python/pulumi_azure/mssql/_inputs.py | 6 +- sdk/python/pulumi_azure/mssql/outputs.py | 4 +- sdk/python/pulumi_azure/stack/__init__.py | 1 + .../stack/hci_virtual_hard_disk.py | 807 ++++++++++++++++++ upstream | 2 +- 68 files changed, 4102 insertions(+), 128 deletions(-) create mode 100644 sdk/dotnet/Stack/HciVirtualHardDisk.cs create mode 100644 sdk/go/azure/stack/hciVirtualHardDisk.go create mode 100644 sdk/java/src/main/java/com/pulumi/azure/stack/HciVirtualHardDisk.java create mode 100644 sdk/java/src/main/java/com/pulumi/azure/stack/HciVirtualHardDiskArgs.java create mode 100644 sdk/java/src/main/java/com/pulumi/azure/stack/inputs/HciVirtualHardDiskState.java create mode 100644 sdk/nodejs/stack/hciVirtualHardDisk.ts create mode 100644 sdk/python/pulumi_azure/stack/hci_virtual_hard_disk.py diff --git a/provider/cmd/pulumi-resource-azure/bridge-metadata.json b/provider/cmd/pulumi-resource-azure/bridge-metadata.json index acef08ed14..80415d8085 100644 --- a/provider/cmd/pulumi-resource-azure/bridge-metadata.json +++ b/provider/cmd/pulumi-resource-azure/bridge-metadata.json @@ -18932,6 +18932,10 @@ "current": "azure:stack/hciStoragePath:HciStoragePath", "majorVersion": 6 }, + "azurerm_stack_hci_virtual_hard_disk": { + "current": "azure:stack/hciVirtualHardDisk:HciVirtualHardDisk", + "majorVersion": 6 + }, "azurerm_static_site": { "current": "azure:appservice/staticSite:StaticSite", "majorVersion": 6, diff --git a/provider/cmd/pulumi-resource-azure/schema.json b/provider/cmd/pulumi-resource-azure/schema.json index d99cc9a1fd..159bbe6483 100644 --- a/provider/cmd/pulumi-resource-azure/schema.json +++ b/provider/cmd/pulumi-resource-azure/schema.json @@ -1190,7 +1190,7 @@ "items": { "$ref": "#/types/azure:apimanagement/ApiOperationResponseRepresentation:ApiOperationResponseRepresentation" }, - "description": "One or more `representation` blocks as defined below.\n" + "description": "One or more `representation` blocks as defined above.\n" }, "statusCode": { "type": "integer", @@ -44085,7 +44085,7 @@ }, "transport": { "type": "string", - "description": "The transport method for the Ingress. Possible values are `auto`, `http`, `http2` and `tcp`. Defaults to `auto`.\n" + "description": "The transport method for the Ingress. Possible values are `auto`, `http`, `http2` and `tcp`. Defaults to `auto`.\n\n\u003e **Note:** if `transport` is set to `tcp`, `exposed_port` and `target_port` should be set at the same time.\n" } }, "type": "object", @@ -44382,7 +44382,7 @@ }, "ephemeralStorage": { "type": "string", - "description": "The amount of ephemeral storage available to the Container App. \n\n\u003e **NOTE:** `ephemeral_storage` is currently in preview and not configurable at this time.\n" + "description": "The amount of ephemeral storage available to the Container App.\n\n\u003e **NOTE:** `ephemeral_storage` is currently in preview and not configurable at this time.\n" }, "image": { "type": "string", @@ -78835,7 +78835,7 @@ }, "family": { "type": "string", - "description": "The `family` of hardware `Gen4`, `Gen5`, `Fsv2`, `MOPRMS`, or `DC`.\n" + "description": "The `family` of hardware `Gen4`, `Gen5`, `Fsv2`, `MOPRMS`, `PRMS`, or `DC`.\n" }, "name": { "type": "string", @@ -138213,13 +138213,17 @@ "type": "integer", "description": "The number of scale units with which to provision the Bastion Host. Possible values are between `2` and `50`. Defaults to `2`.\n\n\u003e **Note:** `scale_units` only can be changed when `sku` is `Standard`. `scale_units` is always `2` when `sku` is `Basic`.\n" }, + "sessionRecordingEnabled": { + "type": "boolean", + "description": "Is Session Recording feature enabled for the Bastion Host. Defaults to `false`.\n\n\u003e **Note:** `session_recording_enabled` is only supported when `sku` is `Premium`.\n" + }, "shareableLinkEnabled": { "type": "boolean", "description": "Is Shareable Link feature enabled for the Bastion Host. Defaults to `false`.\n\n\u003e **Note:** `shareable_link_enabled` is only supported when `sku` is `Standard`.\n" }, "sku": { "type": "string", - "description": "The SKU of the Bastion Host. Accepted values are `Developer`, `Basic` and `Standard`. Defaults to `Basic`.\n\n\u003e **Note** Downgrading the SKU will force a new resource to be created.\n" + "description": "The SKU of the Bastion Host. Accepted values are `Developer`, `Basic`, `Standard` and `Premium`. Defaults to `Basic`.\n\n\u003e **Note** Downgrading the SKU will force a new resource to be created.\n" }, "tags": { "type": "object", @@ -138284,13 +138288,17 @@ "type": "integer", "description": "The number of scale units with which to provision the Bastion Host. Possible values are between `2` and `50`. Defaults to `2`.\n\n\u003e **Note:** `scale_units` only can be changed when `sku` is `Standard`. `scale_units` is always `2` when `sku` is `Basic`.\n" }, + "sessionRecordingEnabled": { + "type": "boolean", + "description": "Is Session Recording feature enabled for the Bastion Host. Defaults to `false`.\n\n\u003e **Note:** `session_recording_enabled` is only supported when `sku` is `Premium`.\n" + }, "shareableLinkEnabled": { "type": "boolean", "description": "Is Shareable Link feature enabled for the Bastion Host. Defaults to `false`.\n\n\u003e **Note:** `shareable_link_enabled` is only supported when `sku` is `Standard`.\n" }, "sku": { "type": "string", - "description": "The SKU of the Bastion Host. Accepted values are `Developer`, `Basic` and `Standard`. Defaults to `Basic`.\n\n\u003e **Note** Downgrading the SKU will force a new resource to be created.\n" + "description": "The SKU of the Bastion Host. Accepted values are `Developer`, `Basic`, `Standard` and `Premium`. Defaults to `Basic`.\n\n\u003e **Note** Downgrading the SKU will force a new resource to be created.\n" }, "tags": { "type": "object", @@ -138359,13 +138367,17 @@ "type": "integer", "description": "The number of scale units with which to provision the Bastion Host. Possible values are between `2` and `50`. Defaults to `2`.\n\n\u003e **Note:** `scale_units` only can be changed when `sku` is `Standard`. `scale_units` is always `2` when `sku` is `Basic`.\n" }, + "sessionRecordingEnabled": { + "type": "boolean", + "description": "Is Session Recording feature enabled for the Bastion Host. Defaults to `false`.\n\n\u003e **Note:** `session_recording_enabled` is only supported when `sku` is `Premium`.\n" + }, "shareableLinkEnabled": { "type": "boolean", "description": "Is Shareable Link feature enabled for the Bastion Host. Defaults to `false`.\n\n\u003e **Note:** `shareable_link_enabled` is only supported when `sku` is `Standard`.\n" }, "sku": { "type": "string", - "description": "The SKU of the Bastion Host. Accepted values are `Developer`, `Basic` and `Standard`. Defaults to `Basic`.\n\n\u003e **Note** Downgrading the SKU will force a new resource to be created.\n" + "description": "The SKU of the Bastion Host. Accepted values are `Developer`, `Basic`, `Standard` and `Premium`. Defaults to `Basic`.\n\n\u003e **Note** Downgrading the SKU will force a new resource to be created.\n" }, "tags": { "type": "object", @@ -199653,7 +199665,7 @@ }, "sizeGb": { "type": "integer", - "description": "The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `500`, `1000`, `2000` or `5000`. Defaults to `100`.\n\n\u003e **NOTE:** The cluster capacity must start at 100 GB and can be set to 500, 1000, 2000 or 5000 GB/day. For more information on cluster costs, see [Dedicated clusters](https://docs.microsoft.com/en-us/azure/azure-monitor/logs/cost-logs#dedicated-clusters). In v3.x the default value is `1000` GB, in v4.0 of the provider this will default to `100` GB.\n" + "description": "The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `200`, `300`, `400`, `500`, `1000`, `2000`, `5000`, `10000`, `25000`, or `50000`. Defaults to `100`.\n\n\u003e **NOTE:** The cluster capacity must start at 100 GB and can be set to 500, 1000, 2000 or 5000 GB/day. For more information on cluster costs, see [Dedicated clusters](https://docs.microsoft.com/en-us/azure/azure-monitor/logs/cost-logs#dedicated-clusters). In v3.x the default value is `1000` GB, in v4.0 of the provider this will default to `100` GB.\n" }, "tags": { "type": "object", @@ -199693,7 +199705,7 @@ }, "sizeGb": { "type": "integer", - "description": "The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `500`, `1000`, `2000` or `5000`. Defaults to `100`.\n\n\u003e **NOTE:** The cluster capacity must start at 100 GB and can be set to 500, 1000, 2000 or 5000 GB/day. For more information on cluster costs, see [Dedicated clusters](https://docs.microsoft.com/en-us/azure/azure-monitor/logs/cost-logs#dedicated-clusters). In v3.x the default value is `1000` GB, in v4.0 of the provider this will default to `100` GB.\n" + "description": "The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `200`, `300`, `400`, `500`, `1000`, `2000`, `5000`, `10000`, `25000`, or `50000`. Defaults to `100`.\n\n\u003e **NOTE:** The cluster capacity must start at 100 GB and can be set to 500, 1000, 2000 or 5000 GB/day. For more information on cluster costs, see [Dedicated clusters](https://docs.microsoft.com/en-us/azure/azure-monitor/logs/cost-logs#dedicated-clusters). In v3.x the default value is `1000` GB, in v4.0 of the provider this will default to `100` GB.\n" }, "tags": { "type": "object", @@ -199736,7 +199748,7 @@ }, "sizeGb": { "type": "integer", - "description": "The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `500`, `1000`, `2000` or `5000`. Defaults to `100`.\n\n\u003e **NOTE:** The cluster capacity must start at 100 GB and can be set to 500, 1000, 2000 or 5000 GB/day. For more information on cluster costs, see [Dedicated clusters](https://docs.microsoft.com/en-us/azure/azure-monitor/logs/cost-logs#dedicated-clusters). In v3.x the default value is `1000` GB, in v4.0 of the provider this will default to `100` GB.\n" + "description": "The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `200`, `300`, `400`, `500`, `1000`, `2000`, `5000`, `10000`, `25000`, or `50000`. Defaults to `100`.\n\n\u003e **NOTE:** The cluster capacity must start at 100 GB and can be set to 500, 1000, 2000 or 5000 GB/day. For more information on cluster costs, see [Dedicated clusters](https://docs.microsoft.com/en-us/azure/azure-monitor/logs/cost-logs#dedicated-clusters). In v3.x the default value is `1000` GB, in v4.0 of the provider this will default to `100` GB.\n" }, "tags": { "type": "object", @@ -206091,7 +206103,7 @@ } }, "azure:management/groupSubscriptionAssociation:GroupSubscriptionAssociation": { - "description": "Manages a Management Group Subscription Association.\n\n!\u003e **Note:** When using this resource, configuring `subscription_ids` on the `azure.management.Group` resource is not supported.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure from \"@pulumi/azure\";\n\nconst example = azure.management.getGroup({\n name: \"exampleManagementGroup\",\n});\nconst exampleGetSubscription = azure.core.getSubscription({\n subscriptionId: \"12345678-1234-1234-1234-123456789012\",\n});\nconst exampleGroupSubscriptionAssociation = new azure.management.GroupSubscriptionAssociation(\"example\", {\n managementGroupId: example.then(example =\u003e example.id),\n subscriptionId: exampleGetSubscription.then(exampleGetSubscription =\u003e exampleGetSubscription.id),\n});\n```\n```python\nimport pulumi\nimport pulumi_azure as azure\n\nexample = azure.management.get_group(name=\"exampleManagementGroup\")\nexample_get_subscription = azure.core.get_subscription(subscription_id=\"12345678-1234-1234-1234-123456789012\")\nexample_group_subscription_association = azure.management.GroupSubscriptionAssociation(\"example\",\n management_group_id=example.id,\n subscription_id=example_get_subscription.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Azure = Pulumi.Azure;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Azure.Management.GetGroup.Invoke(new()\n {\n Name = \"exampleManagementGroup\",\n });\n\n var exampleGetSubscription = Azure.Core.GetSubscription.Invoke(new()\n {\n SubscriptionId = \"12345678-1234-1234-1234-123456789012\",\n });\n\n var exampleGroupSubscriptionAssociation = new Azure.Management.GroupSubscriptionAssociation(\"example\", new()\n {\n ManagementGroupId = example.Apply(getGroupResult =\u003e getGroupResult.Id),\n SubscriptionId = exampleGetSubscription.Apply(getSubscriptionResult =\u003e getSubscriptionResult.Id),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/management\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := management.LookupGroup(ctx, \u0026management.LookupGroupArgs{\n\t\t\tName: pulumi.StringRef(\"exampleManagementGroup\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleGetSubscription, err := core.LookupSubscription(ctx, \u0026core.LookupSubscriptionArgs{\n\t\t\tSubscriptionId: pulumi.StringRef(\"12345678-1234-1234-1234-123456789012\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = management.NewGroupSubscriptionAssociation(ctx, \"example\", \u0026management.GroupSubscriptionAssociationArgs{\n\t\t\tManagementGroupId: pulumi.String(example.Id),\n\t\t\tSubscriptionId: pulumi.String(exampleGetSubscription.Id),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azure.management.ManagementFunctions;\nimport com.pulumi.azure.management.inputs.GetGroupArgs;\nimport com.pulumi.azure.core.CoreFunctions;\nimport com.pulumi.azure.core.inputs.GetSubscriptionArgs;\nimport com.pulumi.azure.management.GroupSubscriptionAssociation;\nimport com.pulumi.azure.management.GroupSubscriptionAssociationArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = ManagementFunctions.getGroup(GetGroupArgs.builder()\n .name(\"exampleManagementGroup\")\n .build());\n\n final var exampleGetSubscription = CoreFunctions.getSubscription(GetSubscriptionArgs.builder()\n .subscriptionId(\"12345678-1234-1234-1234-123456789012\")\n .build());\n\n var exampleGroupSubscriptionAssociation = new GroupSubscriptionAssociation(\"exampleGroupSubscriptionAssociation\", GroupSubscriptionAssociationArgs.builder()\n .managementGroupId(example.applyValue(getGroupResult -\u003e getGroupResult.id()))\n .subscriptionId(exampleGetSubscription.applyValue(getSubscriptionResult -\u003e getSubscriptionResult.id()))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleGroupSubscriptionAssociation:\n type: azure:management:GroupSubscriptionAssociation\n name: example\n properties:\n managementGroupId: ${example.id}\n subscriptionId: ${exampleGetSubscription.id}\nvariables:\n example:\n fn::invoke:\n Function: azure:management:getGroup\n Arguments:\n name: exampleManagementGroup\n exampleGetSubscription:\n fn::invoke:\n Function: azure:core:getSubscription\n Arguments:\n subscriptionId: 12345678-1234-1234-1234-123456789012\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nManagements can be imported using the `resource id`, e.g.\n\n```sh\n$ pulumi import azure:management/groupSubscriptionAssociation:GroupSubscriptionAssociation example /managementGroup/MyManagementGroup/subscription/12345678-1234-1234-1234-123456789012\n```\n\n", + "description": "Manages a Management Group Subscription Association.\n\n!\u003e **Note:** When using this resource, configuring `subscription_ids` on the `azure.management.Group` resource is not supported.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure from \"@pulumi/azure\";\n\nconst example = azure.management.getGroup({\n name: \"exampleManagementGroup\",\n});\nconst exampleGetSubscription = azure.core.getSubscription({\n subscriptionId: \"12345678-1234-1234-1234-123456789012\",\n});\nconst exampleGroupSubscriptionAssociation = new azure.management.GroupSubscriptionAssociation(\"example\", {\n managementGroupId: example.then(example =\u003e example.id),\n subscriptionId: exampleGetSubscription.then(exampleGetSubscription =\u003e exampleGetSubscription.id),\n});\n```\n```python\nimport pulumi\nimport pulumi_azure as azure\n\nexample = azure.management.get_group(name=\"exampleManagementGroup\")\nexample_get_subscription = azure.core.get_subscription(subscription_id=\"12345678-1234-1234-1234-123456789012\")\nexample_group_subscription_association = azure.management.GroupSubscriptionAssociation(\"example\",\n management_group_id=example.id,\n subscription_id=example_get_subscription.id)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Azure = Pulumi.Azure;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = Azure.Management.GetGroup.Invoke(new()\n {\n Name = \"exampleManagementGroup\",\n });\n\n var exampleGetSubscription = Azure.Core.GetSubscription.Invoke(new()\n {\n SubscriptionId = \"12345678-1234-1234-1234-123456789012\",\n });\n\n var exampleGroupSubscriptionAssociation = new Azure.Management.GroupSubscriptionAssociation(\"example\", new()\n {\n ManagementGroupId = example.Apply(getGroupResult =\u003e getGroupResult.Id),\n SubscriptionId = exampleGetSubscription.Apply(getSubscriptionResult =\u003e getSubscriptionResult.Id),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/management\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := management.LookupGroup(ctx, \u0026management.LookupGroupArgs{\n\t\t\tName: pulumi.StringRef(\"exampleManagementGroup\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleGetSubscription, err := core.LookupSubscription(ctx, \u0026core.LookupSubscriptionArgs{\n\t\t\tSubscriptionId: pulumi.StringRef(\"12345678-1234-1234-1234-123456789012\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = management.NewGroupSubscriptionAssociation(ctx, \"example\", \u0026management.GroupSubscriptionAssociationArgs{\n\t\t\tManagementGroupId: pulumi.String(example.Id),\n\t\t\tSubscriptionId: pulumi.String(exampleGetSubscription.Id),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azure.management.ManagementFunctions;\nimport com.pulumi.azure.management.inputs.GetGroupArgs;\nimport com.pulumi.azure.core.CoreFunctions;\nimport com.pulumi.azure.core.inputs.GetSubscriptionArgs;\nimport com.pulumi.azure.management.GroupSubscriptionAssociation;\nimport com.pulumi.azure.management.GroupSubscriptionAssociationArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = ManagementFunctions.getGroup(GetGroupArgs.builder()\n .name(\"exampleManagementGroup\")\n .build());\n\n final var exampleGetSubscription = CoreFunctions.getSubscription(GetSubscriptionArgs.builder()\n .subscriptionId(\"12345678-1234-1234-1234-123456789012\")\n .build());\n\n var exampleGroupSubscriptionAssociation = new GroupSubscriptionAssociation(\"exampleGroupSubscriptionAssociation\", GroupSubscriptionAssociationArgs.builder()\n .managementGroupId(example.applyValue(getGroupResult -\u003e getGroupResult.id()))\n .subscriptionId(exampleGetSubscription.applyValue(getSubscriptionResult -\u003e getSubscriptionResult.id()))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleGroupSubscriptionAssociation:\n type: azure:management:GroupSubscriptionAssociation\n name: example\n properties:\n managementGroupId: ${example.id}\n subscriptionId: ${exampleGetSubscription.id}\nvariables:\n example:\n fn::invoke:\n Function: azure:management:getGroup\n Arguments:\n name: exampleManagementGroup\n exampleGetSubscription:\n fn::invoke:\n Function: azure:core:getSubscription\n Arguments:\n subscriptionId: 12345678-1234-1234-1234-123456789012\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nManagements can be imported using the `resource id`, e.g.\n\n```sh\n$ pulumi import azure:management/groupSubscriptionAssociation:GroupSubscriptionAssociation example /providers/Microsoft.Management/managementGroups/MyManagementGroup/subscriptions/12345678-1234-1234-1234-123456789012\n```\n\n", "properties": { "managementGroupId": { "type": "string", @@ -252438,6 +252450,220 @@ "type": "object" } }, + "azure:stack/hciVirtualHardDisk:HciVirtualHardDisk": { + "description": "Manages an Azure Stack HCI Virtual Hard Disk.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure from \"@pulumi/azure\";\n\nconst example = new azure.core.ResourceGroup(\"example\", {\n name: \"example-rg\",\n location: \"West Europe\",\n});\nconst exampleHciStoragePath = new azure.stack.HciStoragePath(\"example\", {\n name: \"example-sp\",\n resourceGroupName: example.name,\n location: example.location,\n customLocationId: \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/cl1\",\n path: \"C:\\\\ClusterStorage\\\\UserStorage_2\\\\sp-example\",\n tags: {\n foo: \"bar\",\n },\n});\nconst exampleHciVirtualHardDisk = new azure.stack.HciVirtualHardDisk(\"example\", {\n name: \"example-vhd\",\n resourceGroupName: example.name,\n location: example.location,\n customLocationId: \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/cl1\",\n diskSizeInGb: 2,\n storagePathId: exampleHciStoragePath.id,\n tags: {\n foo: \"bar\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_azure as azure\n\nexample = azure.core.ResourceGroup(\"example\",\n name=\"example-rg\",\n location=\"West Europe\")\nexample_hci_storage_path = azure.stack.HciStoragePath(\"example\",\n name=\"example-sp\",\n resource_group_name=example.name,\n location=example.location,\n custom_location_id=\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/cl1\",\n path=\"C:\\\\ClusterStorage\\\\UserStorage_2\\\\sp-example\",\n tags={\n \"foo\": \"bar\",\n })\nexample_hci_virtual_hard_disk = azure.stack.HciVirtualHardDisk(\"example\",\n name=\"example-vhd\",\n resource_group_name=example.name,\n location=example.location,\n custom_location_id=\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/cl1\",\n disk_size_in_gb=2,\n storage_path_id=example_hci_storage_path.id,\n tags={\n \"foo\": \"bar\",\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Azure = Pulumi.Azure;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Azure.Core.ResourceGroup(\"example\", new()\n {\n Name = \"example-rg\",\n Location = \"West Europe\",\n });\n\n var exampleHciStoragePath = new Azure.Stack.HciStoragePath(\"example\", new()\n {\n Name = \"example-sp\",\n ResourceGroupName = example.Name,\n Location = example.Location,\n CustomLocationId = \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/cl1\",\n Path = \"C:\\\\ClusterStorage\\\\UserStorage_2\\\\sp-example\",\n Tags = \n {\n { \"foo\", \"bar\" },\n },\n });\n\n var exampleHciVirtualHardDisk = new Azure.Stack.HciVirtualHardDisk(\"example\", new()\n {\n Name = \"example-vhd\",\n ResourceGroupName = example.Name,\n Location = example.Location,\n CustomLocationId = \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/cl1\",\n DiskSizeInGb = 2,\n StoragePathId = exampleHciStoragePath.Id,\n Tags = \n {\n { \"foo\", \"bar\" },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/stack\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := core.NewResourceGroup(ctx, \"example\", \u0026core.ResourceGroupArgs{\n\t\t\tName: pulumi.String(\"example-rg\"),\n\t\t\tLocation: pulumi.String(\"West Europe\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleHciStoragePath, err := stack.NewHciStoragePath(ctx, \"example\", \u0026stack.HciStoragePathArgs{\n\t\t\tName: pulumi.String(\"example-sp\"),\n\t\t\tResourceGroupName: example.Name,\n\t\t\tLocation: example.Location,\n\t\t\tCustomLocationId: pulumi.String(\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/cl1\"),\n\t\t\tPath: pulumi.String(\"C:\\\\ClusterStorage\\\\UserStorage_2\\\\sp-example\"),\n\t\t\tTags: pulumi.StringMap{\n\t\t\t\t\"foo\": pulumi.String(\"bar\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = stack.NewHciVirtualHardDisk(ctx, \"example\", \u0026stack.HciVirtualHardDiskArgs{\n\t\t\tName: pulumi.String(\"example-vhd\"),\n\t\t\tResourceGroupName: example.Name,\n\t\t\tLocation: example.Location,\n\t\t\tCustomLocationId: pulumi.String(\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/cl1\"),\n\t\t\tDiskSizeInGb: pulumi.Int(2),\n\t\t\tStoragePathId: exampleHciStoragePath.ID(),\n\t\t\tTags: pulumi.StringMap{\n\t\t\t\t\"foo\": pulumi.String(\"bar\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azure.core.ResourceGroup;\nimport com.pulumi.azure.core.ResourceGroupArgs;\nimport com.pulumi.azure.stack.HciStoragePath;\nimport com.pulumi.azure.stack.HciStoragePathArgs;\nimport com.pulumi.azure.stack.HciVirtualHardDisk;\nimport com.pulumi.azure.stack.HciVirtualHardDiskArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ResourceGroup(\"example\", ResourceGroupArgs.builder()\n .name(\"example-rg\")\n .location(\"West Europe\")\n .build());\n\n var exampleHciStoragePath = new HciStoragePath(\"exampleHciStoragePath\", HciStoragePathArgs.builder()\n .name(\"example-sp\")\n .resourceGroupName(example.name())\n .location(example.location())\n .customLocationId(\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/cl1\")\n .path(\"C:\\\\ClusterStorage\\\\UserStorage_2\\\\sp-example\")\n .tags(Map.of(\"foo\", \"bar\"))\n .build());\n\n var exampleHciVirtualHardDisk = new HciVirtualHardDisk(\"exampleHciVirtualHardDisk\", HciVirtualHardDiskArgs.builder()\n .name(\"example-vhd\")\n .resourceGroupName(example.name())\n .location(example.location())\n .customLocationId(\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/cl1\")\n .diskSizeInGb(2)\n .storagePathId(exampleHciStoragePath.id())\n .tags(Map.of(\"foo\", \"bar\"))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: azure:core:ResourceGroup\n properties:\n name: example-rg\n location: West Europe\n exampleHciStoragePath:\n type: azure:stack:HciStoragePath\n name: example\n properties:\n name: example-sp\n resourceGroupName: ${example.name}\n location: ${example.location}\n customLocationId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/cl1\n path: C:\\ClusterStorage\\UserStorage_2\\sp-example\n tags:\n foo: bar\n exampleHciVirtualHardDisk:\n type: azure:stack:HciVirtualHardDisk\n name: example\n properties:\n name: example-vhd\n resourceGroupName: ${example.name}\n location: ${example.location}\n customLocationId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/cl1\n diskSizeInGb: 2\n storagePathId: ${exampleHciStoragePath.id}\n tags:\n foo: bar\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nAzure Stack HCI Virtual Hard Disks can be imported using the `resource id`, e.g.\n\n```sh\n$ pulumi import azure:stack/hciVirtualHardDisk:HciVirtualHardDisk example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.AzureStackHCI/virtualHardDisks/disk1\n```\n\n", + "properties": { + "blockSizeInBytes": { + "type": "integer", + "description": "The block size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created.\n" + }, + "customLocationId": { + "type": "string", + "description": "The ID of the Custom Location where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created.\n" + }, + "diskFileFormat": { + "type": "string", + "description": "The format of the disk file. Possible values are `vhdx` and `vhd`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created.\n" + }, + "diskSizeInGb": { + "type": "integer", + "description": "The size of the disk in GB. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created.\n" + }, + "dynamicEnabled": { + "type": "boolean", + "description": "Whether to enable dynamic sizing for the Azure Stack HCI Virtual Hard Disk. Defaults to `false`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created.\n" + }, + "hypervGeneration": { + "type": "string", + "description": "The hypervisor generation of the Azure Stack HCI Virtual Hard Disk. Possible values are `V1` and `V2`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created.\n" + }, + "location": { + "type": "string", + "description": "The Azure Region where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created.\n" + }, + "logicalSectorInBytes": { + "type": "integer", + "description": "The logical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created.\n" + }, + "name": { + "type": "string", + "description": "The name which should be used for this Azure Stack HCI Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created.\n" + }, + "physicalSectorInBytes": { + "type": "integer", + "description": "The physical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created.\n" + }, + "resourceGroupName": { + "type": "string", + "description": "The name of the Resource Group where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created.\n" + }, + "storagePathId": { + "type": "string", + "description": "The ID of the Azure Stack HCI Storage Path used for this Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created.\n\n\u003e **Note:** If `storage_path_id` is not specified, the Virtual Hard Disk will be placed in a high availability Storage Path. If you experience a diff you may need to add this to `ignore_changes`.\n" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "A mapping of tags which should be assigned to the Azure Stack HCI Virtual Hard Disk.\n" + } + }, + "required": [ + "customLocationId", + "diskSizeInGb", + "location", + "name", + "resourceGroupName" + ], + "inputProperties": { + "blockSizeInBytes": { + "type": "integer", + "description": "The block size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created.\n", + "willReplaceOnChanges": true + }, + "customLocationId": { + "type": "string", + "description": "The ID of the Custom Location where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created.\n", + "willReplaceOnChanges": true + }, + "diskFileFormat": { + "type": "string", + "description": "The format of the disk file. Possible values are `vhdx` and `vhd`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created.\n", + "willReplaceOnChanges": true + }, + "diskSizeInGb": { + "type": "integer", + "description": "The size of the disk in GB. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created.\n", + "willReplaceOnChanges": true + }, + "dynamicEnabled": { + "type": "boolean", + "description": "Whether to enable dynamic sizing for the Azure Stack HCI Virtual Hard Disk. Defaults to `false`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created.\n", + "willReplaceOnChanges": true + }, + "hypervGeneration": { + "type": "string", + "description": "The hypervisor generation of the Azure Stack HCI Virtual Hard Disk. Possible values are `V1` and `V2`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created.\n", + "willReplaceOnChanges": true + }, + "location": { + "type": "string", + "description": "The Azure Region where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created.\n", + "willReplaceOnChanges": true + }, + "logicalSectorInBytes": { + "type": "integer", + "description": "The logical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created.\n", + "willReplaceOnChanges": true + }, + "name": { + "type": "string", + "description": "The name which should be used for this Azure Stack HCI Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created.\n", + "willReplaceOnChanges": true + }, + "physicalSectorInBytes": { + "type": "integer", + "description": "The physical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created.\n", + "willReplaceOnChanges": true + }, + "resourceGroupName": { + "type": "string", + "description": "The name of the Resource Group where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created.\n", + "willReplaceOnChanges": true + }, + "storagePathId": { + "type": "string", + "description": "The ID of the Azure Stack HCI Storage Path used for this Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created.\n\n\u003e **Note:** If `storage_path_id` is not specified, the Virtual Hard Disk will be placed in a high availability Storage Path. If you experience a diff you may need to add this to `ignore_changes`.\n", + "willReplaceOnChanges": true + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "A mapping of tags which should be assigned to the Azure Stack HCI Virtual Hard Disk.\n" + } + }, + "requiredInputs": [ + "customLocationId", + "diskSizeInGb", + "resourceGroupName" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering HciVirtualHardDisk resources.\n", + "properties": { + "blockSizeInBytes": { + "type": "integer", + "description": "The block size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created.\n", + "willReplaceOnChanges": true + }, + "customLocationId": { + "type": "string", + "description": "The ID of the Custom Location where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created.\n", + "willReplaceOnChanges": true + }, + "diskFileFormat": { + "type": "string", + "description": "The format of the disk file. Possible values are `vhdx` and `vhd`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created.\n", + "willReplaceOnChanges": true + }, + "diskSizeInGb": { + "type": "integer", + "description": "The size of the disk in GB. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created.\n", + "willReplaceOnChanges": true + }, + "dynamicEnabled": { + "type": "boolean", + "description": "Whether to enable dynamic sizing for the Azure Stack HCI Virtual Hard Disk. Defaults to `false`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created.\n", + "willReplaceOnChanges": true + }, + "hypervGeneration": { + "type": "string", + "description": "The hypervisor generation of the Azure Stack HCI Virtual Hard Disk. Possible values are `V1` and `V2`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created.\n", + "willReplaceOnChanges": true + }, + "location": { + "type": "string", + "description": "The Azure Region where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created.\n", + "willReplaceOnChanges": true + }, + "logicalSectorInBytes": { + "type": "integer", + "description": "The logical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created.\n", + "willReplaceOnChanges": true + }, + "name": { + "type": "string", + "description": "The name which should be used for this Azure Stack HCI Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created.\n", + "willReplaceOnChanges": true + }, + "physicalSectorInBytes": { + "type": "integer", + "description": "The physical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created.\n", + "willReplaceOnChanges": true + }, + "resourceGroupName": { + "type": "string", + "description": "The name of the Resource Group where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created.\n", + "willReplaceOnChanges": true + }, + "storagePathId": { + "type": "string", + "description": "The ID of the Azure Stack HCI Storage Path used for this Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created.\n\n\u003e **Note:** If `storage_path_id` is not specified, the Virtual Hard Disk will be placed in a high availability Storage Path. If you experience a diff you may need to add this to `ignore_changes`.\n", + "willReplaceOnChanges": true + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "A mapping of tags which should be assigned to the Azure Stack HCI Virtual Hard Disk.\n" + } + }, + "type": "object" + } + }, "azure:storage/account:Account": { "description": "Manages an Azure Storage Account.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure from \"@pulumi/azure\";\n\nconst example = new azure.core.ResourceGroup(\"example\", {\n name: \"example-resources\",\n location: \"West Europe\",\n});\nconst exampleAccount = new azure.storage.Account(\"example\", {\n name: \"storageaccountname\",\n resourceGroupName: example.name,\n location: example.location,\n accountTier: \"Standard\",\n accountReplicationType: \"GRS\",\n tags: {\n environment: \"staging\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_azure as azure\n\nexample = azure.core.ResourceGroup(\"example\",\n name=\"example-resources\",\n location=\"West Europe\")\nexample_account = azure.storage.Account(\"example\",\n name=\"storageaccountname\",\n resource_group_name=example.name,\n location=example.location,\n account_tier=\"Standard\",\n account_replication_type=\"GRS\",\n tags={\n \"environment\": \"staging\",\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Azure = Pulumi.Azure;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Azure.Core.ResourceGroup(\"example\", new()\n {\n Name = \"example-resources\",\n Location = \"West Europe\",\n });\n\n var exampleAccount = new Azure.Storage.Account(\"example\", new()\n {\n Name = \"storageaccountname\",\n ResourceGroupName = example.Name,\n Location = example.Location,\n AccountTier = \"Standard\",\n AccountReplicationType = \"GRS\",\n Tags = \n {\n { \"environment\", \"staging\" },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/storage\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := core.NewResourceGroup(ctx, \"example\", \u0026core.ResourceGroupArgs{\n\t\t\tName: pulumi.String(\"example-resources\"),\n\t\t\tLocation: pulumi.String(\"West Europe\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = storage.NewAccount(ctx, \"example\", \u0026storage.AccountArgs{\n\t\t\tName: pulumi.String(\"storageaccountname\"),\n\t\t\tResourceGroupName: example.Name,\n\t\t\tLocation: example.Location,\n\t\t\tAccountTier: pulumi.String(\"Standard\"),\n\t\t\tAccountReplicationType: pulumi.String(\"GRS\"),\n\t\t\tTags: pulumi.StringMap{\n\t\t\t\t\"environment\": pulumi.String(\"staging\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azure.core.ResourceGroup;\nimport com.pulumi.azure.core.ResourceGroupArgs;\nimport com.pulumi.azure.storage.Account;\nimport com.pulumi.azure.storage.AccountArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ResourceGroup(\"example\", ResourceGroupArgs.builder()\n .name(\"example-resources\")\n .location(\"West Europe\")\n .build());\n\n var exampleAccount = new Account(\"exampleAccount\", AccountArgs.builder()\n .name(\"storageaccountname\")\n .resourceGroupName(example.name())\n .location(example.location())\n .accountTier(\"Standard\")\n .accountReplicationType(\"GRS\")\n .tags(Map.of(\"environment\", \"staging\"))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: azure:core:ResourceGroup\n properties:\n name: example-resources\n location: West Europe\n exampleAccount:\n type: azure:storage:Account\n name: example\n properties:\n name: storageaccountname\n resourceGroupName: ${example.name}\n location: ${example.location}\n accountTier: Standard\n accountReplicationType: GRS\n tags:\n environment: staging\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\n### With Network Rules\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure from \"@pulumi/azure\";\n\nconst example = new azure.core.ResourceGroup(\"example\", {\n name: \"example-resources\",\n location: \"West Europe\",\n});\nconst exampleVirtualNetwork = new azure.network.VirtualNetwork(\"example\", {\n name: \"virtnetname\",\n addressSpaces: [\"10.0.0.0/16\"],\n location: example.location,\n resourceGroupName: example.name,\n});\nconst exampleSubnet = new azure.network.Subnet(\"example\", {\n name: \"subnetname\",\n resourceGroupName: example.name,\n virtualNetworkName: exampleVirtualNetwork.name,\n addressPrefixes: [\"10.0.2.0/24\"],\n serviceEndpoints: [\n \"Microsoft.Sql\",\n \"Microsoft.Storage\",\n ],\n});\nconst exampleAccount = new azure.storage.Account(\"example\", {\n name: \"storageaccountname\",\n resourceGroupName: example.name,\n location: example.location,\n accountTier: \"Standard\",\n accountReplicationType: \"LRS\",\n networkRules: {\n defaultAction: \"Deny\",\n ipRules: [\"100.0.0.1\"],\n virtualNetworkSubnetIds: [exampleSubnet.id],\n },\n tags: {\n environment: \"staging\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_azure as azure\n\nexample = azure.core.ResourceGroup(\"example\",\n name=\"example-resources\",\n location=\"West Europe\")\nexample_virtual_network = azure.network.VirtualNetwork(\"example\",\n name=\"virtnetname\",\n address_spaces=[\"10.0.0.0/16\"],\n location=example.location,\n resource_group_name=example.name)\nexample_subnet = azure.network.Subnet(\"example\",\n name=\"subnetname\",\n resource_group_name=example.name,\n virtual_network_name=example_virtual_network.name,\n address_prefixes=[\"10.0.2.0/24\"],\n service_endpoints=[\n \"Microsoft.Sql\",\n \"Microsoft.Storage\",\n ])\nexample_account = azure.storage.Account(\"example\",\n name=\"storageaccountname\",\n resource_group_name=example.name,\n location=example.location,\n account_tier=\"Standard\",\n account_replication_type=\"LRS\",\n network_rules={\n \"default_action\": \"Deny\",\n \"ip_rules\": [\"100.0.0.1\"],\n \"virtual_network_subnet_ids\": [example_subnet.id],\n },\n tags={\n \"environment\": \"staging\",\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Azure = Pulumi.Azure;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Azure.Core.ResourceGroup(\"example\", new()\n {\n Name = \"example-resources\",\n Location = \"West Europe\",\n });\n\n var exampleVirtualNetwork = new Azure.Network.VirtualNetwork(\"example\", new()\n {\n Name = \"virtnetname\",\n AddressSpaces = new[]\n {\n \"10.0.0.0/16\",\n },\n Location = example.Location,\n ResourceGroupName = example.Name,\n });\n\n var exampleSubnet = new Azure.Network.Subnet(\"example\", new()\n {\n Name = \"subnetname\",\n ResourceGroupName = example.Name,\n VirtualNetworkName = exampleVirtualNetwork.Name,\n AddressPrefixes = new[]\n {\n \"10.0.2.0/24\",\n },\n ServiceEndpoints = new[]\n {\n \"Microsoft.Sql\",\n \"Microsoft.Storage\",\n },\n });\n\n var exampleAccount = new Azure.Storage.Account(\"example\", new()\n {\n Name = \"storageaccountname\",\n ResourceGroupName = example.Name,\n Location = example.Location,\n AccountTier = \"Standard\",\n AccountReplicationType = \"LRS\",\n NetworkRules = new Azure.Storage.Inputs.AccountNetworkRulesArgs\n {\n DefaultAction = \"Deny\",\n IpRules = new[]\n {\n \"100.0.0.1\",\n },\n VirtualNetworkSubnetIds = new[]\n {\n exampleSubnet.Id,\n },\n },\n Tags = \n {\n { \"environment\", \"staging\" },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/network\"\n\t\"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/storage\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\texample, err := core.NewResourceGroup(ctx, \"example\", \u0026core.ResourceGroupArgs{\n\t\t\tName: pulumi.String(\"example-resources\"),\n\t\t\tLocation: pulumi.String(\"West Europe\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleVirtualNetwork, err := network.NewVirtualNetwork(ctx, \"example\", \u0026network.VirtualNetworkArgs{\n\t\t\tName: pulumi.String(\"virtnetname\"),\n\t\t\tAddressSpaces: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"10.0.0.0/16\"),\n\t\t\t},\n\t\t\tLocation: example.Location,\n\t\t\tResourceGroupName: example.Name,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleSubnet, err := network.NewSubnet(ctx, \"example\", \u0026network.SubnetArgs{\n\t\t\tName: pulumi.String(\"subnetname\"),\n\t\t\tResourceGroupName: example.Name,\n\t\t\tVirtualNetworkName: exampleVirtualNetwork.Name,\n\t\t\tAddressPrefixes: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"10.0.2.0/24\"),\n\t\t\t},\n\t\t\tServiceEndpoints: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"Microsoft.Sql\"),\n\t\t\t\tpulumi.String(\"Microsoft.Storage\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = storage.NewAccount(ctx, \"example\", \u0026storage.AccountArgs{\n\t\t\tName: pulumi.String(\"storageaccountname\"),\n\t\t\tResourceGroupName: example.Name,\n\t\t\tLocation: example.Location,\n\t\t\tAccountTier: pulumi.String(\"Standard\"),\n\t\t\tAccountReplicationType: pulumi.String(\"LRS\"),\n\t\t\tNetworkRules: \u0026storage.AccountNetworkRulesTypeArgs{\n\t\t\t\tDefaultAction: pulumi.String(\"Deny\"),\n\t\t\t\tIpRules: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"100.0.0.1\"),\n\t\t\t\t},\n\t\t\t\tVirtualNetworkSubnetIds: pulumi.StringArray{\n\t\t\t\t\texampleSubnet.ID(),\n\t\t\t\t},\n\t\t\t},\n\t\t\tTags: pulumi.StringMap{\n\t\t\t\t\"environment\": pulumi.String(\"staging\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azure.core.ResourceGroup;\nimport com.pulumi.azure.core.ResourceGroupArgs;\nimport com.pulumi.azure.network.VirtualNetwork;\nimport com.pulumi.azure.network.VirtualNetworkArgs;\nimport com.pulumi.azure.network.Subnet;\nimport com.pulumi.azure.network.SubnetArgs;\nimport com.pulumi.azure.storage.Account;\nimport com.pulumi.azure.storage.AccountArgs;\nimport com.pulumi.azure.storage.inputs.AccountNetworkRulesArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ResourceGroup(\"example\", ResourceGroupArgs.builder()\n .name(\"example-resources\")\n .location(\"West Europe\")\n .build());\n\n var exampleVirtualNetwork = new VirtualNetwork(\"exampleVirtualNetwork\", VirtualNetworkArgs.builder()\n .name(\"virtnetname\")\n .addressSpaces(\"10.0.0.0/16\")\n .location(example.location())\n .resourceGroupName(example.name())\n .build());\n\n var exampleSubnet = new Subnet(\"exampleSubnet\", SubnetArgs.builder()\n .name(\"subnetname\")\n .resourceGroupName(example.name())\n .virtualNetworkName(exampleVirtualNetwork.name())\n .addressPrefixes(\"10.0.2.0/24\")\n .serviceEndpoints( \n \"Microsoft.Sql\",\n \"Microsoft.Storage\")\n .build());\n\n var exampleAccount = new Account(\"exampleAccount\", AccountArgs.builder()\n .name(\"storageaccountname\")\n .resourceGroupName(example.name())\n .location(example.location())\n .accountTier(\"Standard\")\n .accountReplicationType(\"LRS\")\n .networkRules(AccountNetworkRulesArgs.builder()\n .defaultAction(\"Deny\")\n .ipRules(\"100.0.0.1\")\n .virtualNetworkSubnetIds(exampleSubnet.id())\n .build())\n .tags(Map.of(\"environment\", \"staging\"))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: azure:core:ResourceGroup\n properties:\n name: example-resources\n location: West Europe\n exampleVirtualNetwork:\n type: azure:network:VirtualNetwork\n name: example\n properties:\n name: virtnetname\n addressSpaces:\n - 10.0.0.0/16\n location: ${example.location}\n resourceGroupName: ${example.name}\n exampleSubnet:\n type: azure:network:Subnet\n name: example\n properties:\n name: subnetname\n resourceGroupName: ${example.name}\n virtualNetworkName: ${exampleVirtualNetwork.name}\n addressPrefixes:\n - 10.0.2.0/24\n serviceEndpoints:\n - Microsoft.Sql\n - Microsoft.Storage\n exampleAccount:\n type: azure:storage:Account\n name: example\n properties:\n name: storageaccountname\n resourceGroupName: ${example.name}\n location: ${example.location}\n accountTier: Standard\n accountReplicationType: LRS\n networkRules:\n defaultAction: Deny\n ipRules:\n - 100.0.0.1\n virtualNetworkSubnetIds:\n - ${exampleSubnet.id}\n tags:\n environment: staging\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nStorage Accounts can be imported using the `resource id`, e.g.\n\n```sh\n$ pulumi import azure:storage/account:Account storageAcc1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Storage/storageAccounts/myaccount\n```\n\n", "properties": { @@ -271883,6 +272109,9 @@ "description": "The number of scale units provisioned for the Bastion Host.\n", "type": "integer" }, + "sessionRecordingEnabled": { + "type": "boolean" + }, "shareableLinkEnabled": { "description": "Is Shareable Link feature enabled for the Bastion Host.\n", "type": "boolean" @@ -271913,6 +272142,7 @@ "name", "resourceGroupName", "scaleUnits", + "sessionRecordingEnabled", "shareableLinkEnabled", "sku", "tags", diff --git a/sdk/dotnet/ApiManagement/Inputs/ApiOperationResponseArgs.cs b/sdk/dotnet/ApiManagement/Inputs/ApiOperationResponseArgs.cs index 70f431f203..78747823f2 100644 --- a/sdk/dotnet/ApiManagement/Inputs/ApiOperationResponseArgs.cs +++ b/sdk/dotnet/ApiManagement/Inputs/ApiOperationResponseArgs.cs @@ -34,7 +34,7 @@ public InputList Headers private InputList? _representations; /// - /// One or more `representation` blocks as defined below. + /// One or more `representation` blocks as defined above. /// public InputList Representations { diff --git a/sdk/dotnet/ApiManagement/Inputs/ApiOperationResponseGetArgs.cs b/sdk/dotnet/ApiManagement/Inputs/ApiOperationResponseGetArgs.cs index 69558de9f8..d06ff3c21f 100644 --- a/sdk/dotnet/ApiManagement/Inputs/ApiOperationResponseGetArgs.cs +++ b/sdk/dotnet/ApiManagement/Inputs/ApiOperationResponseGetArgs.cs @@ -34,7 +34,7 @@ public InputList Headers private InputList? _representations; /// - /// One or more `representation` blocks as defined below. + /// One or more `representation` blocks as defined above. /// public InputList Representations { diff --git a/sdk/dotnet/ApiManagement/Outputs/ApiOperationResponse.cs b/sdk/dotnet/ApiManagement/Outputs/ApiOperationResponse.cs index dfe01a4699..dbde403178 100644 --- a/sdk/dotnet/ApiManagement/Outputs/ApiOperationResponse.cs +++ b/sdk/dotnet/ApiManagement/Outputs/ApiOperationResponse.cs @@ -22,7 +22,7 @@ public sealed class ApiOperationResponse /// public readonly ImmutableArray Headers; /// - /// One or more `representation` blocks as defined below. + /// One or more `representation` blocks as defined above. /// public readonly ImmutableArray Representations; /// diff --git a/sdk/dotnet/Compute/BastionHost.cs b/sdk/dotnet/Compute/BastionHost.cs index 4f3093eb4d..853d33e9ae 100644 --- a/sdk/dotnet/Compute/BastionHost.cs +++ b/sdk/dotnet/Compute/BastionHost.cs @@ -156,6 +156,14 @@ public partial class BastionHost : global::Pulumi.CustomResource [Output("scaleUnits")] public Output ScaleUnits { get; private set; } = null!; + /// + /// Is Session Recording feature enabled for the Bastion Host. Defaults to `false`. + /// + /// > **Note:** `session_recording_enabled` is only supported when `sku` is `Premium`. + /// + [Output("sessionRecordingEnabled")] + public Output SessionRecordingEnabled { get; private set; } = null!; + /// /// Is Shareable Link feature enabled for the Bastion Host. Defaults to `false`. /// @@ -165,7 +173,7 @@ public partial class BastionHost : global::Pulumi.CustomResource public Output ShareableLinkEnabled { get; private set; } = null!; /// - /// The SKU of the Bastion Host. Accepted values are `Developer`, `Basic` and `Standard`. Defaults to `Basic`. + /// The SKU of the Bastion Host. Accepted values are `Developer`, `Basic`, `Standard` and `Premium`. Defaults to `Basic`. /// /// > **Note** Downgrading the SKU will force a new resource to be created. /// @@ -300,6 +308,14 @@ public sealed class BastionHostArgs : global::Pulumi.ResourceArgs [Input("scaleUnits")] public Input? ScaleUnits { get; set; } + /// + /// Is Session Recording feature enabled for the Bastion Host. Defaults to `false`. + /// + /// > **Note:** `session_recording_enabled` is only supported when `sku` is `Premium`. + /// + [Input("sessionRecordingEnabled")] + public Input? SessionRecordingEnabled { get; set; } + /// /// Is Shareable Link feature enabled for the Bastion Host. Defaults to `false`. /// @@ -309,7 +325,7 @@ public sealed class BastionHostArgs : global::Pulumi.ResourceArgs public Input? ShareableLinkEnabled { get; set; } /// - /// The SKU of the Bastion Host. Accepted values are `Developer`, `Basic` and `Standard`. Defaults to `Basic`. + /// The SKU of the Bastion Host. Accepted values are `Developer`, `Basic`, `Standard` and `Premium`. Defaults to `Basic`. /// /// > **Note** Downgrading the SKU will force a new resource to be created. /// @@ -418,6 +434,14 @@ public sealed class BastionHostState : global::Pulumi.ResourceArgs [Input("scaleUnits")] public Input? ScaleUnits { get; set; } + /// + /// Is Session Recording feature enabled for the Bastion Host. Defaults to `false`. + /// + /// > **Note:** `session_recording_enabled` is only supported when `sku` is `Premium`. + /// + [Input("sessionRecordingEnabled")] + public Input? SessionRecordingEnabled { get; set; } + /// /// Is Shareable Link feature enabled for the Bastion Host. Defaults to `false`. /// @@ -427,7 +451,7 @@ public sealed class BastionHostState : global::Pulumi.ResourceArgs public Input? ShareableLinkEnabled { get; set; } /// - /// The SKU of the Bastion Host. Accepted values are `Developer`, `Basic` and `Standard`. Defaults to `Basic`. + /// The SKU of the Bastion Host. Accepted values are `Developer`, `Basic`, `Standard` and `Premium`. Defaults to `Basic`. /// /// > **Note** Downgrading the SKU will force a new resource to be created. /// diff --git a/sdk/dotnet/Compute/GetBastionHost.cs b/sdk/dotnet/Compute/GetBastionHost.cs index bb673b01b1..dcfd6fcc40 100644 --- a/sdk/dotnet/Compute/GetBastionHost.cs +++ b/sdk/dotnet/Compute/GetBastionHost.cs @@ -152,6 +152,7 @@ public sealed class GetBastionHostResult /// The number of scale units provisioned for the Bastion Host. /// public readonly int ScaleUnits; + public readonly bool SessionRecordingEnabled; /// /// Is Shareable Link feature enabled for the Bastion Host. /// @@ -191,6 +192,8 @@ private GetBastionHostResult( int scaleUnits, + bool sessionRecordingEnabled, + bool shareableLinkEnabled, string sku, @@ -209,6 +212,7 @@ private GetBastionHostResult( Name = name; ResourceGroupName = resourceGroupName; ScaleUnits = scaleUnits; + SessionRecordingEnabled = sessionRecordingEnabled; ShareableLinkEnabled = shareableLinkEnabled; Sku = sku; Tags = tags; diff --git a/sdk/dotnet/ContainerApp/Inputs/AppIngressArgs.cs b/sdk/dotnet/ContainerApp/Inputs/AppIngressArgs.cs index c03378a0b4..d5f90298a2 100644 --- a/sdk/dotnet/ContainerApp/Inputs/AppIngressArgs.cs +++ b/sdk/dotnet/ContainerApp/Inputs/AppIngressArgs.cs @@ -82,6 +82,8 @@ public InputList TrafficWeights /// /// The transport method for the Ingress. Possible values are `auto`, `http`, `http2` and `tcp`. Defaults to `auto`. + /// + /// > **Note:** if `transport` is set to `tcp`, `exposed_port` and `target_port` should be set at the same time. /// [Input("transport")] public Input? Transport { get; set; } diff --git a/sdk/dotnet/ContainerApp/Inputs/AppIngressGetArgs.cs b/sdk/dotnet/ContainerApp/Inputs/AppIngressGetArgs.cs index ef2f14f335..5523e6c305 100644 --- a/sdk/dotnet/ContainerApp/Inputs/AppIngressGetArgs.cs +++ b/sdk/dotnet/ContainerApp/Inputs/AppIngressGetArgs.cs @@ -82,6 +82,8 @@ public InputList TrafficWeights /// /// The transport method for the Ingress. Possible values are `auto`, `http`, `http2` and `tcp`. Defaults to `auto`. + /// + /// > **Note:** if `transport` is set to `tcp`, `exposed_port` and `target_port` should be set at the same time. /// [Input("transport")] public Input? Transport { get; set; } diff --git a/sdk/dotnet/ContainerApp/Inputs/AppTemplateContainerArgs.cs b/sdk/dotnet/ContainerApp/Inputs/AppTemplateContainerArgs.cs index e58b17b5eb..f2b942d383 100644 --- a/sdk/dotnet/ContainerApp/Inputs/AppTemplateContainerArgs.cs +++ b/sdk/dotnet/ContainerApp/Inputs/AppTemplateContainerArgs.cs @@ -57,7 +57,7 @@ public InputList Envs } /// - /// The amount of ephemeral storage available to the Container App. + /// The amount of ephemeral storage available to the Container App. /// /// > **NOTE:** `ephemeral_storage` is currently in preview and not configurable at this time. /// diff --git a/sdk/dotnet/ContainerApp/Inputs/AppTemplateContainerGetArgs.cs b/sdk/dotnet/ContainerApp/Inputs/AppTemplateContainerGetArgs.cs index 8c75c44323..5782469553 100644 --- a/sdk/dotnet/ContainerApp/Inputs/AppTemplateContainerGetArgs.cs +++ b/sdk/dotnet/ContainerApp/Inputs/AppTemplateContainerGetArgs.cs @@ -57,7 +57,7 @@ public InputList Envs } /// - /// The amount of ephemeral storage available to the Container App. + /// The amount of ephemeral storage available to the Container App. /// /// > **NOTE:** `ephemeral_storage` is currently in preview and not configurable at this time. /// diff --git a/sdk/dotnet/ContainerApp/Outputs/AppIngress.cs b/sdk/dotnet/ContainerApp/Outputs/AppIngress.cs index 065e0488a9..885151ad37 100644 --- a/sdk/dotnet/ContainerApp/Outputs/AppIngress.cs +++ b/sdk/dotnet/ContainerApp/Outputs/AppIngress.cs @@ -49,6 +49,8 @@ public sealed class AppIngress public readonly ImmutableArray TrafficWeights; /// /// The transport method for the Ingress. Possible values are `auto`, `http`, `http2` and `tcp`. Defaults to `auto`. + /// + /// > **Note:** if `transport` is set to `tcp`, `exposed_port` and `target_port` should be set at the same time. /// public readonly string? Transport; diff --git a/sdk/dotnet/ContainerApp/Outputs/AppTemplateContainer.cs b/sdk/dotnet/ContainerApp/Outputs/AppTemplateContainer.cs index 168241bcc6..2d396981ef 100644 --- a/sdk/dotnet/ContainerApp/Outputs/AppTemplateContainer.cs +++ b/sdk/dotnet/ContainerApp/Outputs/AppTemplateContainer.cs @@ -32,7 +32,7 @@ public sealed class AppTemplateContainer /// public readonly ImmutableArray Envs; /// - /// The amount of ephemeral storage available to the Container App. + /// The amount of ephemeral storage available to the Container App. /// /// > **NOTE:** `ephemeral_storage` is currently in preview and not configurable at this time. /// diff --git a/sdk/dotnet/LogAnalytics/Cluster.cs b/sdk/dotnet/LogAnalytics/Cluster.cs index 13e5e946af..5526084cb3 100644 --- a/sdk/dotnet/LogAnalytics/Cluster.cs +++ b/sdk/dotnet/LogAnalytics/Cluster.cs @@ -86,7 +86,7 @@ public partial class Cluster : global::Pulumi.CustomResource public Output ResourceGroupName { get; private set; } = null!; /// - /// The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `500`, `1000`, `2000` or `5000`. Defaults to `100`. + /// The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `200`, `300`, `400`, `500`, `1000`, `2000`, `5000`, `10000`, `25000`, or `50000`. Defaults to `100`. /// /// > **NOTE:** The cluster capacity must start at 100 GB and can be set to 500, 1000, 2000 or 5000 GB/day. For more information on cluster costs, see [Dedicated clusters](https://docs.microsoft.com/en-us/azure/azure-monitor/logs/cost-logs#dedicated-clusters). In v3.x the default value is `1000` GB, in v4.0 of the provider this will default to `100` GB. /// @@ -170,7 +170,7 @@ public sealed class ClusterArgs : global::Pulumi.ResourceArgs public Input ResourceGroupName { get; set; } = null!; /// - /// The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `500`, `1000`, `2000` or `5000`. Defaults to `100`. + /// The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `200`, `300`, `400`, `500`, `1000`, `2000`, `5000`, `10000`, `25000`, or `50000`. Defaults to `100`. /// /// > **NOTE:** The cluster capacity must start at 100 GB and can be set to 500, 1000, 2000 or 5000 GB/day. For more information on cluster costs, see [Dedicated clusters](https://docs.microsoft.com/en-us/azure/azure-monitor/logs/cost-logs#dedicated-clusters). In v3.x the default value is `1000` GB, in v4.0 of the provider this will default to `100` GB. /// @@ -228,7 +228,7 @@ public sealed class ClusterState : global::Pulumi.ResourceArgs public Input? ResourceGroupName { get; set; } /// - /// The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `500`, `1000`, `2000` or `5000`. Defaults to `100`. + /// The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `200`, `300`, `400`, `500`, `1000`, `2000`, `5000`, `10000`, `25000`, or `50000`. Defaults to `100`. /// /// > **NOTE:** The cluster capacity must start at 100 GB and can be set to 500, 1000, 2000 or 5000 GB/day. For more information on cluster costs, see [Dedicated clusters](https://docs.microsoft.com/en-us/azure/azure-monitor/logs/cost-logs#dedicated-clusters). In v3.x the default value is `1000` GB, in v4.0 of the provider this will default to `100` GB. /// diff --git a/sdk/dotnet/MSSql/Inputs/ElasticPoolSkuArgs.cs b/sdk/dotnet/MSSql/Inputs/ElasticPoolSkuArgs.cs index b48b91f2e6..9e2cf46a83 100644 --- a/sdk/dotnet/MSSql/Inputs/ElasticPoolSkuArgs.cs +++ b/sdk/dotnet/MSSql/Inputs/ElasticPoolSkuArgs.cs @@ -19,7 +19,7 @@ public sealed class ElasticPoolSkuArgs : global::Pulumi.ResourceArgs public Input Capacity { get; set; } = null!; /// - /// The `family` of hardware `Gen4`, `Gen5`, `Fsv2`, `MOPRMS`, or `DC`. + /// The `family` of hardware `Gen4`, `Gen5`, `Fsv2`, `MOPRMS`, `PRMS`, or `DC`. /// [Input("family")] public Input? Family { get; set; } diff --git a/sdk/dotnet/MSSql/Inputs/ElasticPoolSkuGetArgs.cs b/sdk/dotnet/MSSql/Inputs/ElasticPoolSkuGetArgs.cs index f54d2849bc..658ec1f8b5 100644 --- a/sdk/dotnet/MSSql/Inputs/ElasticPoolSkuGetArgs.cs +++ b/sdk/dotnet/MSSql/Inputs/ElasticPoolSkuGetArgs.cs @@ -19,7 +19,7 @@ public sealed class ElasticPoolSkuGetArgs : global::Pulumi.ResourceArgs public Input Capacity { get; set; } = null!; /// - /// The `family` of hardware `Gen4`, `Gen5`, `Fsv2`, `MOPRMS`, or `DC`. + /// The `family` of hardware `Gen4`, `Gen5`, `Fsv2`, `MOPRMS`, `PRMS`, or `DC`. /// [Input("family")] public Input? Family { get; set; } diff --git a/sdk/dotnet/MSSql/Outputs/ElasticPoolSku.cs b/sdk/dotnet/MSSql/Outputs/ElasticPoolSku.cs index 779b264981..9ee6dc7637 100644 --- a/sdk/dotnet/MSSql/Outputs/ElasticPoolSku.cs +++ b/sdk/dotnet/MSSql/Outputs/ElasticPoolSku.cs @@ -18,7 +18,7 @@ public sealed class ElasticPoolSku /// public readonly int Capacity; /// - /// The `family` of hardware `Gen4`, `Gen5`, `Fsv2`, `MOPRMS`, or `DC`. + /// The `family` of hardware `Gen4`, `Gen5`, `Fsv2`, `MOPRMS`, `PRMS`, or `DC`. /// public readonly string? Family; /// diff --git a/sdk/dotnet/Management/GroupSubscriptionAssociation.cs b/sdk/dotnet/Management/GroupSubscriptionAssociation.cs index e3f272c3ad..6f2da37c96 100644 --- a/sdk/dotnet/Management/GroupSubscriptionAssociation.cs +++ b/sdk/dotnet/Management/GroupSubscriptionAssociation.cs @@ -48,7 +48,7 @@ namespace Pulumi.Azure.Management /// Managements can be imported using the `resource id`, e.g. /// /// ```sh - /// $ pulumi import azure:management/groupSubscriptionAssociation:GroupSubscriptionAssociation example /managementGroup/MyManagementGroup/subscription/12345678-1234-1234-1234-123456789012 + /// $ pulumi import azure:management/groupSubscriptionAssociation:GroupSubscriptionAssociation example /providers/Microsoft.Management/managementGroups/MyManagementGroup/subscriptions/12345678-1234-1234-1234-123456789012 /// ``` /// [AzureResourceType("azure:management/groupSubscriptionAssociation:GroupSubscriptionAssociation")] diff --git a/sdk/dotnet/Stack/HciVirtualHardDisk.cs b/sdk/dotnet/Stack/HciVirtualHardDisk.cs new file mode 100644 index 0000000000..b3689a591e --- /dev/null +++ b/sdk/dotnet/Stack/HciVirtualHardDisk.cs @@ -0,0 +1,383 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** 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.Azure.Stack +{ + /// + /// Manages an Azure Stack HCI Virtual Hard Disk. + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Azure = Pulumi.Azure; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = new Azure.Core.ResourceGroup("example", new() + /// { + /// Name = "example-rg", + /// Location = "West Europe", + /// }); + /// + /// var exampleHciStoragePath = new Azure.Stack.HciStoragePath("example", new() + /// { + /// Name = "example-sp", + /// ResourceGroupName = example.Name, + /// Location = example.Location, + /// CustomLocationId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/cl1", + /// Path = "C:\\ClusterStorage\\UserStorage_2\\sp-example", + /// Tags = + /// { + /// { "foo", "bar" }, + /// }, + /// }); + /// + /// var exampleHciVirtualHardDisk = new Azure.Stack.HciVirtualHardDisk("example", new() + /// { + /// Name = "example-vhd", + /// ResourceGroupName = example.Name, + /// Location = example.Location, + /// CustomLocationId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/cl1", + /// DiskSizeInGb = 2, + /// StoragePathId = exampleHciStoragePath.Id, + /// Tags = + /// { + /// { "foo", "bar" }, + /// }, + /// }); + /// + /// }); + /// ``` + /// + /// ## Import + /// + /// Azure Stack HCI Virtual Hard Disks can be imported using the `resource id`, e.g. + /// + /// ```sh + /// $ pulumi import azure:stack/hciVirtualHardDisk:HciVirtualHardDisk example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.AzureStackHCI/virtualHardDisks/disk1 + /// ``` + /// + [AzureResourceType("azure:stack/hciVirtualHardDisk:HciVirtualHardDisk")] + public partial class HciVirtualHardDisk : global::Pulumi.CustomResource + { + /// + /// The block size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + /// + [Output("blockSizeInBytes")] + public Output BlockSizeInBytes { get; private set; } = null!; + + /// + /// The ID of the Custom Location where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + /// + [Output("customLocationId")] + public Output CustomLocationId { get; private set; } = null!; + + /// + /// The format of the disk file. Possible values are `vhdx` and `vhd`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + /// + [Output("diskFileFormat")] + public Output DiskFileFormat { get; private set; } = null!; + + /// + /// The size of the disk in GB. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + /// + [Output("diskSizeInGb")] + public Output DiskSizeInGb { get; private set; } = null!; + + /// + /// Whether to enable dynamic sizing for the Azure Stack HCI Virtual Hard Disk. Defaults to `false`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + /// + [Output("dynamicEnabled")] + public Output DynamicEnabled { get; private set; } = null!; + + /// + /// The hypervisor generation of the Azure Stack HCI Virtual Hard Disk. Possible values are `V1` and `V2`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + /// + [Output("hypervGeneration")] + public Output HypervGeneration { get; private set; } = null!; + + /// + /// The Azure Region where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + /// + [Output("location")] + public Output Location { get; private set; } = null!; + + /// + /// The logical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + /// + [Output("logicalSectorInBytes")] + public Output LogicalSectorInBytes { get; private set; } = null!; + + /// + /// The name which should be used for this Azure Stack HCI Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + /// + /// The physical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + /// + [Output("physicalSectorInBytes")] + public Output PhysicalSectorInBytes { get; private set; } = null!; + + /// + /// The name of the Resource Group where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + /// + [Output("resourceGroupName")] + public Output ResourceGroupName { get; private set; } = null!; + + /// + /// The ID of the Azure Stack HCI Storage Path used for this Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + /// + /// > **Note:** If `storage_path_id` is not specified, the Virtual Hard Disk will be placed in a high availability Storage Path. If you experience a diff you may need to add this to `ignore_changes`. + /// + [Output("storagePathId")] + public Output StoragePathId { get; private set; } = null!; + + /// + /// A mapping of tags which should be assigned to the Azure Stack HCI Virtual Hard Disk. + /// + [Output("tags")] + public Output?> Tags { get; private set; } = null!; + + + /// + /// Create a HciVirtualHardDisk 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 HciVirtualHardDisk(string name, HciVirtualHardDiskArgs args, CustomResourceOptions? options = null) + : base("azure:stack/hciVirtualHardDisk:HciVirtualHardDisk", name, args ?? new HciVirtualHardDiskArgs(), MakeResourceOptions(options, "")) + { + } + + private HciVirtualHardDisk(string name, Input id, HciVirtualHardDiskState? state = null, CustomResourceOptions? options = null) + : base("azure:stack/hciVirtualHardDisk:HciVirtualHardDisk", name, state, 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 HciVirtualHardDisk 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. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static HciVirtualHardDisk Get(string name, Input id, HciVirtualHardDiskState? state = null, CustomResourceOptions? options = null) + { + return new HciVirtualHardDisk(name, id, state, options); + } + } + + public sealed class HciVirtualHardDiskArgs : global::Pulumi.ResourceArgs + { + /// + /// The block size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + /// + [Input("blockSizeInBytes")] + public Input? BlockSizeInBytes { get; set; } + + /// + /// The ID of the Custom Location where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + /// + [Input("customLocationId", required: true)] + public Input CustomLocationId { get; set; } = null!; + + /// + /// The format of the disk file. Possible values are `vhdx` and `vhd`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + /// + [Input("diskFileFormat")] + public Input? DiskFileFormat { get; set; } + + /// + /// The size of the disk in GB. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + /// + [Input("diskSizeInGb", required: true)] + public Input DiskSizeInGb { get; set; } = null!; + + /// + /// Whether to enable dynamic sizing for the Azure Stack HCI Virtual Hard Disk. Defaults to `false`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + /// + [Input("dynamicEnabled")] + public Input? DynamicEnabled { get; set; } + + /// + /// The hypervisor generation of the Azure Stack HCI Virtual Hard Disk. Possible values are `V1` and `V2`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + /// + [Input("hypervGeneration")] + public Input? HypervGeneration { get; set; } + + /// + /// The Azure Region where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + /// + [Input("location")] + public Input? Location { get; set; } + + /// + /// The logical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + /// + [Input("logicalSectorInBytes")] + public Input? LogicalSectorInBytes { get; set; } + + /// + /// The name which should be used for this Azure Stack HCI Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + /// + [Input("name")] + public Input? Name { get; set; } + + /// + /// The physical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + /// + [Input("physicalSectorInBytes")] + public Input? PhysicalSectorInBytes { get; set; } + + /// + /// The name of the Resource Group where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + /// + [Input("resourceGroupName", required: true)] + public Input ResourceGroupName { get; set; } = null!; + + /// + /// The ID of the Azure Stack HCI Storage Path used for this Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + /// + /// > **Note:** If `storage_path_id` is not specified, the Virtual Hard Disk will be placed in a high availability Storage Path. If you experience a diff you may need to add this to `ignore_changes`. + /// + [Input("storagePathId")] + public Input? StoragePathId { get; set; } + + [Input("tags")] + private InputMap? _tags; + + /// + /// A mapping of tags which should be assigned to the Azure Stack HCI Virtual Hard Disk. + /// + public InputMap Tags + { + get => _tags ?? (_tags = new InputMap()); + set => _tags = value; + } + + public HciVirtualHardDiskArgs() + { + } + public static new HciVirtualHardDiskArgs Empty => new HciVirtualHardDiskArgs(); + } + + public sealed class HciVirtualHardDiskState : global::Pulumi.ResourceArgs + { + /// + /// The block size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + /// + [Input("blockSizeInBytes")] + public Input? BlockSizeInBytes { get; set; } + + /// + /// The ID of the Custom Location where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + /// + [Input("customLocationId")] + public Input? CustomLocationId { get; set; } + + /// + /// The format of the disk file. Possible values are `vhdx` and `vhd`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + /// + [Input("diskFileFormat")] + public Input? DiskFileFormat { get; set; } + + /// + /// The size of the disk in GB. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + /// + [Input("diskSizeInGb")] + public Input? DiskSizeInGb { get; set; } + + /// + /// Whether to enable dynamic sizing for the Azure Stack HCI Virtual Hard Disk. Defaults to `false`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + /// + [Input("dynamicEnabled")] + public Input? DynamicEnabled { get; set; } + + /// + /// The hypervisor generation of the Azure Stack HCI Virtual Hard Disk. Possible values are `V1` and `V2`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + /// + [Input("hypervGeneration")] + public Input? HypervGeneration { get; set; } + + /// + /// The Azure Region where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + /// + [Input("location")] + public Input? Location { get; set; } + + /// + /// The logical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + /// + [Input("logicalSectorInBytes")] + public Input? LogicalSectorInBytes { get; set; } + + /// + /// The name which should be used for this Azure Stack HCI Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + /// + [Input("name")] + public Input? Name { get; set; } + + /// + /// The physical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + /// + [Input("physicalSectorInBytes")] + public Input? PhysicalSectorInBytes { get; set; } + + /// + /// The name of the Resource Group where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + /// + [Input("resourceGroupName")] + public Input? ResourceGroupName { get; set; } + + /// + /// The ID of the Azure Stack HCI Storage Path used for this Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + /// + /// > **Note:** If `storage_path_id` is not specified, the Virtual Hard Disk will be placed in a high availability Storage Path. If you experience a diff you may need to add this to `ignore_changes`. + /// + [Input("storagePathId")] + public Input? StoragePathId { get; set; } + + [Input("tags")] + private InputMap? _tags; + + /// + /// A mapping of tags which should be assigned to the Azure Stack HCI Virtual Hard Disk. + /// + public InputMap Tags + { + get => _tags ?? (_tags = new InputMap()); + set => _tags = value; + } + + public HciVirtualHardDiskState() + { + } + public static new HciVirtualHardDiskState Empty => new HciVirtualHardDiskState(); + } +} diff --git a/sdk/go/azure/apimanagement/pulumiTypes.go b/sdk/go/azure/apimanagement/pulumiTypes.go index dc91ef181a..3c3fe56185 100644 --- a/sdk/go/azure/apimanagement/pulumiTypes.go +++ b/sdk/go/azure/apimanagement/pulumiTypes.go @@ -4572,7 +4572,7 @@ type ApiOperationResponse struct { Description *string `pulumi:"description"` // One or more `header` blocks as defined above. Headers []ApiOperationResponseHeader `pulumi:"headers"` - // One or more `representation` blocks as defined below. + // One or more `representation` blocks as defined above. Representations []ApiOperationResponseRepresentation `pulumi:"representations"` // The HTTP Status Code. StatusCode int `pulumi:"statusCode"` @@ -4594,7 +4594,7 @@ type ApiOperationResponseArgs struct { Description pulumi.StringPtrInput `pulumi:"description"` // One or more `header` blocks as defined above. Headers ApiOperationResponseHeaderArrayInput `pulumi:"headers"` - // One or more `representation` blocks as defined below. + // One or more `representation` blocks as defined above. Representations ApiOperationResponseRepresentationArrayInput `pulumi:"representations"` // The HTTP Status Code. StatusCode pulumi.IntInput `pulumi:"statusCode"` @@ -4661,7 +4661,7 @@ func (o ApiOperationResponseOutput) Headers() ApiOperationResponseHeaderArrayOut return o.ApplyT(func(v ApiOperationResponse) []ApiOperationResponseHeader { return v.Headers }).(ApiOperationResponseHeaderArrayOutput) } -// One or more `representation` blocks as defined below. +// One or more `representation` blocks as defined above. func (o ApiOperationResponseOutput) Representations() ApiOperationResponseRepresentationArrayOutput { return o.ApplyT(func(v ApiOperationResponse) []ApiOperationResponseRepresentation { return v.Representations }).(ApiOperationResponseRepresentationArrayOutput) } diff --git a/sdk/go/azure/compute/bastionHost.go b/sdk/go/azure/compute/bastionHost.go index ba90a4bd34..ba87caed85 100644 --- a/sdk/go/azure/compute/bastionHost.go +++ b/sdk/go/azure/compute/bastionHost.go @@ -128,11 +128,15 @@ type BastionHost struct { // // > **Note:** `scaleUnits` only can be changed when `sku` is `Standard`. `scaleUnits` is always `2` when `sku` is `Basic`. ScaleUnits pulumi.IntPtrOutput `pulumi:"scaleUnits"` + // Is Session Recording feature enabled for the Bastion Host. Defaults to `false`. + // + // > **Note:** `sessionRecordingEnabled` is only supported when `sku` is `Premium`. + SessionRecordingEnabled pulumi.BoolPtrOutput `pulumi:"sessionRecordingEnabled"` // Is Shareable Link feature enabled for the Bastion Host. Defaults to `false`. // // > **Note:** `shareableLinkEnabled` is only supported when `sku` is `Standard`. ShareableLinkEnabled pulumi.BoolPtrOutput `pulumi:"shareableLinkEnabled"` - // The SKU of the Bastion Host. Accepted values are `Developer`, `Basic` and `Standard`. Defaults to `Basic`. + // The SKU of the Bastion Host. Accepted values are `Developer`, `Basic`, `Standard` and `Premium`. Defaults to `Basic`. // // > **Note** Downgrading the SKU will force a new resource to be created. Sku pulumi.StringPtrOutput `pulumi:"sku"` @@ -207,11 +211,15 @@ type bastionHostState struct { // // > **Note:** `scaleUnits` only can be changed when `sku` is `Standard`. `scaleUnits` is always `2` when `sku` is `Basic`. ScaleUnits *int `pulumi:"scaleUnits"` + // Is Session Recording feature enabled for the Bastion Host. Defaults to `false`. + // + // > **Note:** `sessionRecordingEnabled` is only supported when `sku` is `Premium`. + SessionRecordingEnabled *bool `pulumi:"sessionRecordingEnabled"` // Is Shareable Link feature enabled for the Bastion Host. Defaults to `false`. // // > **Note:** `shareableLinkEnabled` is only supported when `sku` is `Standard`. ShareableLinkEnabled *bool `pulumi:"shareableLinkEnabled"` - // The SKU of the Bastion Host. Accepted values are `Developer`, `Basic` and `Standard`. Defaults to `Basic`. + // The SKU of the Bastion Host. Accepted values are `Developer`, `Basic`, `Standard` and `Premium`. Defaults to `Basic`. // // > **Note** Downgrading the SKU will force a new resource to be created. Sku *string `pulumi:"sku"` @@ -254,11 +262,15 @@ type BastionHostState struct { // // > **Note:** `scaleUnits` only can be changed when `sku` is `Standard`. `scaleUnits` is always `2` when `sku` is `Basic`. ScaleUnits pulumi.IntPtrInput + // Is Session Recording feature enabled for the Bastion Host. Defaults to `false`. + // + // > **Note:** `sessionRecordingEnabled` is only supported when `sku` is `Premium`. + SessionRecordingEnabled pulumi.BoolPtrInput // Is Shareable Link feature enabled for the Bastion Host. Defaults to `false`. // // > **Note:** `shareableLinkEnabled` is only supported when `sku` is `Standard`. ShareableLinkEnabled pulumi.BoolPtrInput - // The SKU of the Bastion Host. Accepted values are `Developer`, `Basic` and `Standard`. Defaults to `Basic`. + // The SKU of the Bastion Host. Accepted values are `Developer`, `Basic`, `Standard` and `Premium`. Defaults to `Basic`. // // > **Note** Downgrading the SKU will force a new resource to be created. Sku pulumi.StringPtrInput @@ -303,11 +315,15 @@ type bastionHostArgs struct { // // > **Note:** `scaleUnits` only can be changed when `sku` is `Standard`. `scaleUnits` is always `2` when `sku` is `Basic`. ScaleUnits *int `pulumi:"scaleUnits"` + // Is Session Recording feature enabled for the Bastion Host. Defaults to `false`. + // + // > **Note:** `sessionRecordingEnabled` is only supported when `sku` is `Premium`. + SessionRecordingEnabled *bool `pulumi:"sessionRecordingEnabled"` // Is Shareable Link feature enabled for the Bastion Host. Defaults to `false`. // // > **Note:** `shareableLinkEnabled` is only supported when `sku` is `Standard`. ShareableLinkEnabled *bool `pulumi:"shareableLinkEnabled"` - // The SKU of the Bastion Host. Accepted values are `Developer`, `Basic` and `Standard`. Defaults to `Basic`. + // The SKU of the Bastion Host. Accepted values are `Developer`, `Basic`, `Standard` and `Premium`. Defaults to `Basic`. // // > **Note** Downgrading the SKU will force a new resource to be created. Sku *string `pulumi:"sku"` @@ -349,11 +365,15 @@ type BastionHostArgs struct { // // > **Note:** `scaleUnits` only can be changed when `sku` is `Standard`. `scaleUnits` is always `2` when `sku` is `Basic`. ScaleUnits pulumi.IntPtrInput + // Is Session Recording feature enabled for the Bastion Host. Defaults to `false`. + // + // > **Note:** `sessionRecordingEnabled` is only supported when `sku` is `Premium`. + SessionRecordingEnabled pulumi.BoolPtrInput // Is Shareable Link feature enabled for the Bastion Host. Defaults to `false`. // // > **Note:** `shareableLinkEnabled` is only supported when `sku` is `Standard`. ShareableLinkEnabled pulumi.BoolPtrInput - // The SKU of the Bastion Host. Accepted values are `Developer`, `Basic` and `Standard`. Defaults to `Basic`. + // The SKU of the Bastion Host. Accepted values are `Developer`, `Basic`, `Standard` and `Premium`. Defaults to `Basic`. // // > **Note** Downgrading the SKU will force a new resource to be created. Sku pulumi.StringPtrInput @@ -512,6 +532,13 @@ func (o BastionHostOutput) ScaleUnits() pulumi.IntPtrOutput { return o.ApplyT(func(v *BastionHost) pulumi.IntPtrOutput { return v.ScaleUnits }).(pulumi.IntPtrOutput) } +// Is Session Recording feature enabled for the Bastion Host. Defaults to `false`. +// +// > **Note:** `sessionRecordingEnabled` is only supported when `sku` is `Premium`. +func (o BastionHostOutput) SessionRecordingEnabled() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *BastionHost) pulumi.BoolPtrOutput { return v.SessionRecordingEnabled }).(pulumi.BoolPtrOutput) +} + // Is Shareable Link feature enabled for the Bastion Host. Defaults to `false`. // // > **Note:** `shareableLinkEnabled` is only supported when `sku` is `Standard`. @@ -519,7 +546,7 @@ func (o BastionHostOutput) ShareableLinkEnabled() pulumi.BoolPtrOutput { return o.ApplyT(func(v *BastionHost) pulumi.BoolPtrOutput { return v.ShareableLinkEnabled }).(pulumi.BoolPtrOutput) } -// The SKU of the Bastion Host. Accepted values are `Developer`, `Basic` and `Standard`. Defaults to `Basic`. +// The SKU of the Bastion Host. Accepted values are `Developer`, `Basic`, `Standard` and `Premium`. Defaults to `Basic`. // // > **Note** Downgrading the SKU will force a new resource to be created. func (o BastionHostOutput) Sku() pulumi.StringPtrOutput { diff --git a/sdk/go/azure/compute/getBastionHost.go b/sdk/go/azure/compute/getBastionHost.go index 53b829b845..8147d7e5ef 100644 --- a/sdk/go/azure/compute/getBastionHost.go +++ b/sdk/go/azure/compute/getBastionHost.go @@ -78,7 +78,8 @@ type LookupBastionHostResult struct { Name string `pulumi:"name"` ResourceGroupName string `pulumi:"resourceGroupName"` // The number of scale units provisioned for the Bastion Host. - ScaleUnits int `pulumi:"scaleUnits"` + ScaleUnits int `pulumi:"scaleUnits"` + SessionRecordingEnabled bool `pulumi:"sessionRecordingEnabled"` // Is Shareable Link feature enabled for the Bastion Host. ShareableLinkEnabled bool `pulumi:"shareableLinkEnabled"` // The SKU of the Bastion Host. @@ -184,6 +185,10 @@ func (o LookupBastionHostResultOutput) ScaleUnits() pulumi.IntOutput { return o.ApplyT(func(v LookupBastionHostResult) int { return v.ScaleUnits }).(pulumi.IntOutput) } +func (o LookupBastionHostResultOutput) SessionRecordingEnabled() pulumi.BoolOutput { + return o.ApplyT(func(v LookupBastionHostResult) bool { return v.SessionRecordingEnabled }).(pulumi.BoolOutput) +} + // Is Shareable Link feature enabled for the Bastion Host. func (o LookupBastionHostResultOutput) ShareableLinkEnabled() pulumi.BoolOutput { return o.ApplyT(func(v LookupBastionHostResult) bool { return v.ShareableLinkEnabled }).(pulumi.BoolOutput) diff --git a/sdk/go/azure/containerapp/pulumiTypes.go b/sdk/go/azure/containerapp/pulumiTypes.go index 3debde76f9..decb0ad8a2 100644 --- a/sdk/go/azure/containerapp/pulumiTypes.go +++ b/sdk/go/azure/containerapp/pulumiTypes.go @@ -394,6 +394,8 @@ type AppIngress struct { // One or more `trafficWeight` blocks as detailed below. TrafficWeights []AppIngressTrafficWeight `pulumi:"trafficWeights"` // The transport method for the Ingress. Possible values are `auto`, `http`, `http2` and `tcp`. Defaults to `auto`. + // + // > **Note:** if `transport` is set to `tcp`, `exposedPort` and `targetPort` should be set at the same time. Transport *string `pulumi:"transport"` } @@ -428,6 +430,8 @@ type AppIngressArgs struct { // One or more `trafficWeight` blocks as detailed below. TrafficWeights AppIngressTrafficWeightArrayInput `pulumi:"trafficWeights"` // The transport method for the Ingress. Possible values are `auto`, `http`, `http2` and `tcp`. Defaults to `auto`. + // + // > **Note:** if `transport` is set to `tcp`, `exposedPort` and `targetPort` should be set at the same time. Transport pulumi.StringPtrInput `pulumi:"transport"` } @@ -551,6 +555,8 @@ func (o AppIngressOutput) TrafficWeights() AppIngressTrafficWeightArrayOutput { } // The transport method for the Ingress. Possible values are `auto`, `http`, `http2` and `tcp`. Defaults to `auto`. +// +// > **Note:** if `transport` is set to `tcp`, `exposedPort` and `targetPort` should be set at the same time. func (o AppIngressOutput) Transport() pulumi.StringPtrOutput { return o.ApplyT(func(v AppIngress) *string { return v.Transport }).(pulumi.StringPtrOutput) } @@ -662,6 +668,8 @@ func (o AppIngressPtrOutput) TrafficWeights() AppIngressTrafficWeightArrayOutput } // The transport method for the Ingress. Possible values are `auto`, `http`, `http2` and `tcp`. Defaults to `auto`. +// +// > **Note:** if `transport` is set to `tcp`, `exposedPort` and `targetPort` should be set at the same time. func (o AppIngressPtrOutput) Transport() pulumi.StringPtrOutput { return o.ApplyT(func(v *AppIngress) *string { if v == nil { diff --git a/sdk/go/azure/loganalytics/cluster.go b/sdk/go/azure/loganalytics/cluster.go index cf753127c4..4131e43a46 100644 --- a/sdk/go/azure/loganalytics/cluster.go +++ b/sdk/go/azure/loganalytics/cluster.go @@ -75,7 +75,7 @@ type Cluster struct { Name pulumi.StringOutput `pulumi:"name"` // The name of the Resource Group where the Log Analytics Cluster should exist. Changing this forces a new Log Analytics Cluster to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` - // The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `500`, `1000`, `2000` or `5000`. Defaults to `100`. + // The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `200`, `300`, `400`, `500`, `1000`, `2000`, `5000`, `10000`, `25000`, or `50000`. Defaults to `100`. // // > **NOTE:** The cluster capacity must start at 100 GB and can be set to 500, 1000, 2000 or 5000 GB/day. For more information on cluster costs, see [Dedicated clusters](https://docs.microsoft.com/en-us/azure/azure-monitor/logs/cost-logs#dedicated-clusters). In v3.x the default value is `1000` GB, in v4.0 of the provider this will default to `100` GB. SizeGb pulumi.IntPtrOutput `pulumi:"sizeGb"` @@ -129,7 +129,7 @@ type clusterState struct { Name *string `pulumi:"name"` // The name of the Resource Group where the Log Analytics Cluster should exist. Changing this forces a new Log Analytics Cluster to be created. ResourceGroupName *string `pulumi:"resourceGroupName"` - // The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `500`, `1000`, `2000` or `5000`. Defaults to `100`. + // The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `200`, `300`, `400`, `500`, `1000`, `2000`, `5000`, `10000`, `25000`, or `50000`. Defaults to `100`. // // > **NOTE:** The cluster capacity must start at 100 GB and can be set to 500, 1000, 2000 or 5000 GB/day. For more information on cluster costs, see [Dedicated clusters](https://docs.microsoft.com/en-us/azure/azure-monitor/logs/cost-logs#dedicated-clusters). In v3.x the default value is `1000` GB, in v4.0 of the provider this will default to `100` GB. SizeGb *int `pulumi:"sizeGb"` @@ -148,7 +148,7 @@ type ClusterState struct { Name pulumi.StringPtrInput // The name of the Resource Group where the Log Analytics Cluster should exist. Changing this forces a new Log Analytics Cluster to be created. ResourceGroupName pulumi.StringPtrInput - // The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `500`, `1000`, `2000` or `5000`. Defaults to `100`. + // The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `200`, `300`, `400`, `500`, `1000`, `2000`, `5000`, `10000`, `25000`, or `50000`. Defaults to `100`. // // > **NOTE:** The cluster capacity must start at 100 GB and can be set to 500, 1000, 2000 or 5000 GB/day. For more information on cluster costs, see [Dedicated clusters](https://docs.microsoft.com/en-us/azure/azure-monitor/logs/cost-logs#dedicated-clusters). In v3.x the default value is `1000` GB, in v4.0 of the provider this will default to `100` GB. SizeGb pulumi.IntPtrInput @@ -169,7 +169,7 @@ type clusterArgs struct { Name *string `pulumi:"name"` // The name of the Resource Group where the Log Analytics Cluster should exist. Changing this forces a new Log Analytics Cluster to be created. ResourceGroupName string `pulumi:"resourceGroupName"` - // The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `500`, `1000`, `2000` or `5000`. Defaults to `100`. + // The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `200`, `300`, `400`, `500`, `1000`, `2000`, `5000`, `10000`, `25000`, or `50000`. Defaults to `100`. // // > **NOTE:** The cluster capacity must start at 100 GB and can be set to 500, 1000, 2000 or 5000 GB/day. For more information on cluster costs, see [Dedicated clusters](https://docs.microsoft.com/en-us/azure/azure-monitor/logs/cost-logs#dedicated-clusters). In v3.x the default value is `1000` GB, in v4.0 of the provider this will default to `100` GB. SizeGb *int `pulumi:"sizeGb"` @@ -187,7 +187,7 @@ type ClusterArgs struct { Name pulumi.StringPtrInput // The name of the Resource Group where the Log Analytics Cluster should exist. Changing this forces a new Log Analytics Cluster to be created. ResourceGroupName pulumi.StringInput - // The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `500`, `1000`, `2000` or `5000`. Defaults to `100`. + // The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `200`, `300`, `400`, `500`, `1000`, `2000`, `5000`, `10000`, `25000`, or `50000`. Defaults to `100`. // // > **NOTE:** The cluster capacity must start at 100 GB and can be set to 500, 1000, 2000 or 5000 GB/day. For more information on cluster costs, see [Dedicated clusters](https://docs.microsoft.com/en-us/azure/azure-monitor/logs/cost-logs#dedicated-clusters). In v3.x the default value is `1000` GB, in v4.0 of the provider this will default to `100` GB. SizeGb pulumi.IntPtrInput @@ -307,7 +307,7 @@ func (o ClusterOutput) ResourceGroupName() pulumi.StringOutput { return o.ApplyT(func(v *Cluster) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) } -// The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `500`, `1000`, `2000` or `5000`. Defaults to `100`. +// The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `200`, `300`, `400`, `500`, `1000`, `2000`, `5000`, `10000`, `25000`, or `50000`. Defaults to `100`. // // > **NOTE:** The cluster capacity must start at 100 GB and can be set to 500, 1000, 2000 or 5000 GB/day. For more information on cluster costs, see [Dedicated clusters](https://docs.microsoft.com/en-us/azure/azure-monitor/logs/cost-logs#dedicated-clusters). In v3.x the default value is `1000` GB, in v4.0 of the provider this will default to `100` GB. func (o ClusterOutput) SizeGb() pulumi.IntPtrOutput { diff --git a/sdk/go/azure/management/groupSubscriptionAssociation.go b/sdk/go/azure/management/groupSubscriptionAssociation.go index 399355542e..d9ea4f1bcd 100644 --- a/sdk/go/azure/management/groupSubscriptionAssociation.go +++ b/sdk/go/azure/management/groupSubscriptionAssociation.go @@ -61,7 +61,7 @@ import ( // Managements can be imported using the `resource id`, e.g. // // ```sh -// $ pulumi import azure:management/groupSubscriptionAssociation:GroupSubscriptionAssociation example /managementGroup/MyManagementGroup/subscription/12345678-1234-1234-1234-123456789012 +// $ pulumi import azure:management/groupSubscriptionAssociation:GroupSubscriptionAssociation example /providers/Microsoft.Management/managementGroups/MyManagementGroup/subscriptions/12345678-1234-1234-1234-123456789012 // ``` type GroupSubscriptionAssociation struct { pulumi.CustomResourceState diff --git a/sdk/go/azure/mssql/pulumiTypes.go b/sdk/go/azure/mssql/pulumiTypes.go index 4ee1e2af6b..aedd5e4ffc 100644 --- a/sdk/go/azure/mssql/pulumiTypes.go +++ b/sdk/go/azure/mssql/pulumiTypes.go @@ -1277,7 +1277,7 @@ func (o ElasticPoolPerDatabaseSettingsPtrOutput) MinCapacity() pulumi.Float64Ptr type ElasticPoolSku struct { // The scale up/out capacity, representing server's compute units. For more information see the documentation for your Elasticpool configuration: [vCore-based](https://docs.microsoft.com/azure/sql-database/sql-database-vcore-resource-limits-elastic-pools) or [DTU-based](https://docs.microsoft.com/azure/sql-database/sql-database-dtu-resource-limits-elastic-pools). Capacity int `pulumi:"capacity"` - // The `family` of hardware `Gen4`, `Gen5`, `Fsv2`, `MOPRMS`, or `DC`. + // The `family` of hardware `Gen4`, `Gen5`, `Fsv2`, `MOPRMS`, `PRMS`, or `DC`. Family *string `pulumi:"family"` // Specifies the SKU Name for this Elasticpool. The name of the SKU, will be either `vCore` based or `DTU` based. Possible `DTU` based values are `BasicPool`, `StandardPool`, `PremiumPool` while possible `vCore` based values are `GP_Gen4`, `GP_Gen5`, `GP_Fsv2`, `GP_DC`, `BC_Gen4`, `BC_Gen5`, `BC_DC`, `HS_PRMS`, `HS_MOPRMS`, or `HS_Gen5`. Name string `pulumi:"name"` @@ -1299,7 +1299,7 @@ type ElasticPoolSkuInput interface { type ElasticPoolSkuArgs struct { // The scale up/out capacity, representing server's compute units. For more information see the documentation for your Elasticpool configuration: [vCore-based](https://docs.microsoft.com/azure/sql-database/sql-database-vcore-resource-limits-elastic-pools) or [DTU-based](https://docs.microsoft.com/azure/sql-database/sql-database-dtu-resource-limits-elastic-pools). Capacity pulumi.IntInput `pulumi:"capacity"` - // The `family` of hardware `Gen4`, `Gen5`, `Fsv2`, `MOPRMS`, or `DC`. + // The `family` of hardware `Gen4`, `Gen5`, `Fsv2`, `MOPRMS`, `PRMS`, or `DC`. Family pulumi.StringPtrInput `pulumi:"family"` // Specifies the SKU Name for this Elasticpool. The name of the SKU, will be either `vCore` based or `DTU` based. Possible `DTU` based values are `BasicPool`, `StandardPool`, `PremiumPool` while possible `vCore` based values are `GP_Gen4`, `GP_Gen5`, `GP_Fsv2`, `GP_DC`, `BC_Gen4`, `BC_Gen5`, `BC_DC`, `HS_PRMS`, `HS_MOPRMS`, or `HS_Gen5`. Name pulumi.StringInput `pulumi:"name"` @@ -1389,7 +1389,7 @@ func (o ElasticPoolSkuOutput) Capacity() pulumi.IntOutput { return o.ApplyT(func(v ElasticPoolSku) int { return v.Capacity }).(pulumi.IntOutput) } -// The `family` of hardware `Gen4`, `Gen5`, `Fsv2`, `MOPRMS`, or `DC`. +// The `family` of hardware `Gen4`, `Gen5`, `Fsv2`, `MOPRMS`, `PRMS`, or `DC`. func (o ElasticPoolSkuOutput) Family() pulumi.StringPtrOutput { return o.ApplyT(func(v ElasticPoolSku) *string { return v.Family }).(pulumi.StringPtrOutput) } @@ -1438,7 +1438,7 @@ func (o ElasticPoolSkuPtrOutput) Capacity() pulumi.IntPtrOutput { }).(pulumi.IntPtrOutput) } -// The `family` of hardware `Gen4`, `Gen5`, `Fsv2`, `MOPRMS`, or `DC`. +// The `family` of hardware `Gen4`, `Gen5`, `Fsv2`, `MOPRMS`, `PRMS`, or `DC`. func (o ElasticPoolSkuPtrOutput) Family() pulumi.StringPtrOutput { return o.ApplyT(func(v *ElasticPoolSku) *string { if v == nil { diff --git a/sdk/go/azure/stack/hciVirtualHardDisk.go b/sdk/go/azure/stack/hciVirtualHardDisk.go new file mode 100644 index 0000000000..0bf06c772b --- /dev/null +++ b/sdk/go/azure/stack/hciVirtualHardDisk.go @@ -0,0 +1,480 @@ +// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package stack + +import ( + "context" + "reflect" + + "errors" + "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// Manages an Azure Stack HCI Virtual Hard Disk. +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core" +// "github.com/pulumi/pulumi-azure/sdk/v6/go/azure/stack" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{ +// Name: pulumi.String("example-rg"), +// Location: pulumi.String("West Europe"), +// }) +// if err != nil { +// return err +// } +// exampleHciStoragePath, err := stack.NewHciStoragePath(ctx, "example", &stack.HciStoragePathArgs{ +// Name: pulumi.String("example-sp"), +// ResourceGroupName: example.Name, +// Location: example.Location, +// CustomLocationId: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/cl1"), +// Path: pulumi.String("C:\\ClusterStorage\\UserStorage_2\\sp-example"), +// Tags: pulumi.StringMap{ +// "foo": pulumi.String("bar"), +// }, +// }) +// if err != nil { +// return err +// } +// _, err = stack.NewHciVirtualHardDisk(ctx, "example", &stack.HciVirtualHardDiskArgs{ +// Name: pulumi.String("example-vhd"), +// ResourceGroupName: example.Name, +// Location: example.Location, +// CustomLocationId: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/cl1"), +// DiskSizeInGb: pulumi.Int(2), +// StoragePathId: exampleHciStoragePath.ID(), +// Tags: pulumi.StringMap{ +// "foo": pulumi.String("bar"), +// }, +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// +// ## Import +// +// Azure Stack HCI Virtual Hard Disks can be imported using the `resource id`, e.g. +// +// ```sh +// $ pulumi import azure:stack/hciVirtualHardDisk:HciVirtualHardDisk example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.AzureStackHCI/virtualHardDisks/disk1 +// ``` +type HciVirtualHardDisk struct { + pulumi.CustomResourceState + + // The block size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + BlockSizeInBytes pulumi.IntPtrOutput `pulumi:"blockSizeInBytes"` + // The ID of the Custom Location where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + CustomLocationId pulumi.StringOutput `pulumi:"customLocationId"` + // The format of the disk file. Possible values are `vhdx` and `vhd`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + DiskFileFormat pulumi.StringPtrOutput `pulumi:"diskFileFormat"` + // The size of the disk in GB. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + DiskSizeInGb pulumi.IntOutput `pulumi:"diskSizeInGb"` + // Whether to enable dynamic sizing for the Azure Stack HCI Virtual Hard Disk. Defaults to `false`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + DynamicEnabled pulumi.BoolPtrOutput `pulumi:"dynamicEnabled"` + // The hypervisor generation of the Azure Stack HCI Virtual Hard Disk. Possible values are `V1` and `V2`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + HypervGeneration pulumi.StringPtrOutput `pulumi:"hypervGeneration"` + // The Azure Region where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + Location pulumi.StringOutput `pulumi:"location"` + // The logical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + LogicalSectorInBytes pulumi.IntPtrOutput `pulumi:"logicalSectorInBytes"` + // The name which should be used for this Azure Stack HCI Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + Name pulumi.StringOutput `pulumi:"name"` + // The physical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + PhysicalSectorInBytes pulumi.IntPtrOutput `pulumi:"physicalSectorInBytes"` + // The name of the Resource Group where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` + // The ID of the Azure Stack HCI Storage Path used for this Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + // + // > **Note:** If `storagePathId` is not specified, the Virtual Hard Disk will be placed in a high availability Storage Path. If you experience a diff you may need to add this to `ignoreChanges`. + StoragePathId pulumi.StringPtrOutput `pulumi:"storagePathId"` + // A mapping of tags which should be assigned to the Azure Stack HCI Virtual Hard Disk. + Tags pulumi.StringMapOutput `pulumi:"tags"` +} + +// NewHciVirtualHardDisk registers a new resource with the given unique name, arguments, and options. +func NewHciVirtualHardDisk(ctx *pulumi.Context, + name string, args *HciVirtualHardDiskArgs, opts ...pulumi.ResourceOption) (*HciVirtualHardDisk, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.CustomLocationId == nil { + return nil, errors.New("invalid value for required argument 'CustomLocationId'") + } + if args.DiskSizeInGb == nil { + return nil, errors.New("invalid value for required argument 'DiskSizeInGb'") + } + if args.ResourceGroupName == nil { + return nil, errors.New("invalid value for required argument 'ResourceGroupName'") + } + opts = internal.PkgResourceDefaultOpts(opts) + var resource HciVirtualHardDisk + err := ctx.RegisterResource("azure:stack/hciVirtualHardDisk:HciVirtualHardDisk", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetHciVirtualHardDisk gets an existing HciVirtualHardDisk 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 GetHciVirtualHardDisk(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *HciVirtualHardDiskState, opts ...pulumi.ResourceOption) (*HciVirtualHardDisk, error) { + var resource HciVirtualHardDisk + err := ctx.ReadResource("azure:stack/hciVirtualHardDisk:HciVirtualHardDisk", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering HciVirtualHardDisk resources. +type hciVirtualHardDiskState struct { + // The block size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + BlockSizeInBytes *int `pulumi:"blockSizeInBytes"` + // The ID of the Custom Location where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + CustomLocationId *string `pulumi:"customLocationId"` + // The format of the disk file. Possible values are `vhdx` and `vhd`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + DiskFileFormat *string `pulumi:"diskFileFormat"` + // The size of the disk in GB. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + DiskSizeInGb *int `pulumi:"diskSizeInGb"` + // Whether to enable dynamic sizing for the Azure Stack HCI Virtual Hard Disk. Defaults to `false`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + DynamicEnabled *bool `pulumi:"dynamicEnabled"` + // The hypervisor generation of the Azure Stack HCI Virtual Hard Disk. Possible values are `V1` and `V2`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + HypervGeneration *string `pulumi:"hypervGeneration"` + // The Azure Region where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + Location *string `pulumi:"location"` + // The logical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + LogicalSectorInBytes *int `pulumi:"logicalSectorInBytes"` + // The name which should be used for this Azure Stack HCI Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + Name *string `pulumi:"name"` + // The physical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + PhysicalSectorInBytes *int `pulumi:"physicalSectorInBytes"` + // The name of the Resource Group where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + ResourceGroupName *string `pulumi:"resourceGroupName"` + // The ID of the Azure Stack HCI Storage Path used for this Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + // + // > **Note:** If `storagePathId` is not specified, the Virtual Hard Disk will be placed in a high availability Storage Path. If you experience a diff you may need to add this to `ignoreChanges`. + StoragePathId *string `pulumi:"storagePathId"` + // A mapping of tags which should be assigned to the Azure Stack HCI Virtual Hard Disk. + Tags map[string]string `pulumi:"tags"` +} + +type HciVirtualHardDiskState struct { + // The block size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + BlockSizeInBytes pulumi.IntPtrInput + // The ID of the Custom Location where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + CustomLocationId pulumi.StringPtrInput + // The format of the disk file. Possible values are `vhdx` and `vhd`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + DiskFileFormat pulumi.StringPtrInput + // The size of the disk in GB. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + DiskSizeInGb pulumi.IntPtrInput + // Whether to enable dynamic sizing for the Azure Stack HCI Virtual Hard Disk. Defaults to `false`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + DynamicEnabled pulumi.BoolPtrInput + // The hypervisor generation of the Azure Stack HCI Virtual Hard Disk. Possible values are `V1` and `V2`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + HypervGeneration pulumi.StringPtrInput + // The Azure Region where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + Location pulumi.StringPtrInput + // The logical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + LogicalSectorInBytes pulumi.IntPtrInput + // The name which should be used for this Azure Stack HCI Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + Name pulumi.StringPtrInput + // The physical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + PhysicalSectorInBytes pulumi.IntPtrInput + // The name of the Resource Group where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + ResourceGroupName pulumi.StringPtrInput + // The ID of the Azure Stack HCI Storage Path used for this Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + // + // > **Note:** If `storagePathId` is not specified, the Virtual Hard Disk will be placed in a high availability Storage Path. If you experience a diff you may need to add this to `ignoreChanges`. + StoragePathId pulumi.StringPtrInput + // A mapping of tags which should be assigned to the Azure Stack HCI Virtual Hard Disk. + Tags pulumi.StringMapInput +} + +func (HciVirtualHardDiskState) ElementType() reflect.Type { + return reflect.TypeOf((*hciVirtualHardDiskState)(nil)).Elem() +} + +type hciVirtualHardDiskArgs struct { + // The block size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + BlockSizeInBytes *int `pulumi:"blockSizeInBytes"` + // The ID of the Custom Location where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + CustomLocationId string `pulumi:"customLocationId"` + // The format of the disk file. Possible values are `vhdx` and `vhd`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + DiskFileFormat *string `pulumi:"diskFileFormat"` + // The size of the disk in GB. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + DiskSizeInGb int `pulumi:"diskSizeInGb"` + // Whether to enable dynamic sizing for the Azure Stack HCI Virtual Hard Disk. Defaults to `false`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + DynamicEnabled *bool `pulumi:"dynamicEnabled"` + // The hypervisor generation of the Azure Stack HCI Virtual Hard Disk. Possible values are `V1` and `V2`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + HypervGeneration *string `pulumi:"hypervGeneration"` + // The Azure Region where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + Location *string `pulumi:"location"` + // The logical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + LogicalSectorInBytes *int `pulumi:"logicalSectorInBytes"` + // The name which should be used for this Azure Stack HCI Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + Name *string `pulumi:"name"` + // The physical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + PhysicalSectorInBytes *int `pulumi:"physicalSectorInBytes"` + // The name of the Resource Group where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + ResourceGroupName string `pulumi:"resourceGroupName"` + // The ID of the Azure Stack HCI Storage Path used for this Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + // + // > **Note:** If `storagePathId` is not specified, the Virtual Hard Disk will be placed in a high availability Storage Path. If you experience a diff you may need to add this to `ignoreChanges`. + StoragePathId *string `pulumi:"storagePathId"` + // A mapping of tags which should be assigned to the Azure Stack HCI Virtual Hard Disk. + Tags map[string]string `pulumi:"tags"` +} + +// The set of arguments for constructing a HciVirtualHardDisk resource. +type HciVirtualHardDiskArgs struct { + // The block size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + BlockSizeInBytes pulumi.IntPtrInput + // The ID of the Custom Location where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + CustomLocationId pulumi.StringInput + // The format of the disk file. Possible values are `vhdx` and `vhd`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + DiskFileFormat pulumi.StringPtrInput + // The size of the disk in GB. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + DiskSizeInGb pulumi.IntInput + // Whether to enable dynamic sizing for the Azure Stack HCI Virtual Hard Disk. Defaults to `false`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + DynamicEnabled pulumi.BoolPtrInput + // The hypervisor generation of the Azure Stack HCI Virtual Hard Disk. Possible values are `V1` and `V2`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + HypervGeneration pulumi.StringPtrInput + // The Azure Region where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + Location pulumi.StringPtrInput + // The logical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + LogicalSectorInBytes pulumi.IntPtrInput + // The name which should be used for this Azure Stack HCI Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + Name pulumi.StringPtrInput + // The physical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + PhysicalSectorInBytes pulumi.IntPtrInput + // The name of the Resource Group where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + ResourceGroupName pulumi.StringInput + // The ID of the Azure Stack HCI Storage Path used for this Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + // + // > **Note:** If `storagePathId` is not specified, the Virtual Hard Disk will be placed in a high availability Storage Path. If you experience a diff you may need to add this to `ignoreChanges`. + StoragePathId pulumi.StringPtrInput + // A mapping of tags which should be assigned to the Azure Stack HCI Virtual Hard Disk. + Tags pulumi.StringMapInput +} + +func (HciVirtualHardDiskArgs) ElementType() reflect.Type { + return reflect.TypeOf((*hciVirtualHardDiskArgs)(nil)).Elem() +} + +type HciVirtualHardDiskInput interface { + pulumi.Input + + ToHciVirtualHardDiskOutput() HciVirtualHardDiskOutput + ToHciVirtualHardDiskOutputWithContext(ctx context.Context) HciVirtualHardDiskOutput +} + +func (*HciVirtualHardDisk) ElementType() reflect.Type { + return reflect.TypeOf((**HciVirtualHardDisk)(nil)).Elem() +} + +func (i *HciVirtualHardDisk) ToHciVirtualHardDiskOutput() HciVirtualHardDiskOutput { + return i.ToHciVirtualHardDiskOutputWithContext(context.Background()) +} + +func (i *HciVirtualHardDisk) ToHciVirtualHardDiskOutputWithContext(ctx context.Context) HciVirtualHardDiskOutput { + return pulumi.ToOutputWithContext(ctx, i).(HciVirtualHardDiskOutput) +} + +// HciVirtualHardDiskArrayInput is an input type that accepts HciVirtualHardDiskArray and HciVirtualHardDiskArrayOutput values. +// You can construct a concrete instance of `HciVirtualHardDiskArrayInput` via: +// +// HciVirtualHardDiskArray{ HciVirtualHardDiskArgs{...} } +type HciVirtualHardDiskArrayInput interface { + pulumi.Input + + ToHciVirtualHardDiskArrayOutput() HciVirtualHardDiskArrayOutput + ToHciVirtualHardDiskArrayOutputWithContext(context.Context) HciVirtualHardDiskArrayOutput +} + +type HciVirtualHardDiskArray []HciVirtualHardDiskInput + +func (HciVirtualHardDiskArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*HciVirtualHardDisk)(nil)).Elem() +} + +func (i HciVirtualHardDiskArray) ToHciVirtualHardDiskArrayOutput() HciVirtualHardDiskArrayOutput { + return i.ToHciVirtualHardDiskArrayOutputWithContext(context.Background()) +} + +func (i HciVirtualHardDiskArray) ToHciVirtualHardDiskArrayOutputWithContext(ctx context.Context) HciVirtualHardDiskArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(HciVirtualHardDiskArrayOutput) +} + +// HciVirtualHardDiskMapInput is an input type that accepts HciVirtualHardDiskMap and HciVirtualHardDiskMapOutput values. +// You can construct a concrete instance of `HciVirtualHardDiskMapInput` via: +// +// HciVirtualHardDiskMap{ "key": HciVirtualHardDiskArgs{...} } +type HciVirtualHardDiskMapInput interface { + pulumi.Input + + ToHciVirtualHardDiskMapOutput() HciVirtualHardDiskMapOutput + ToHciVirtualHardDiskMapOutputWithContext(context.Context) HciVirtualHardDiskMapOutput +} + +type HciVirtualHardDiskMap map[string]HciVirtualHardDiskInput + +func (HciVirtualHardDiskMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*HciVirtualHardDisk)(nil)).Elem() +} + +func (i HciVirtualHardDiskMap) ToHciVirtualHardDiskMapOutput() HciVirtualHardDiskMapOutput { + return i.ToHciVirtualHardDiskMapOutputWithContext(context.Background()) +} + +func (i HciVirtualHardDiskMap) ToHciVirtualHardDiskMapOutputWithContext(ctx context.Context) HciVirtualHardDiskMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(HciVirtualHardDiskMapOutput) +} + +type HciVirtualHardDiskOutput struct{ *pulumi.OutputState } + +func (HciVirtualHardDiskOutput) ElementType() reflect.Type { + return reflect.TypeOf((**HciVirtualHardDisk)(nil)).Elem() +} + +func (o HciVirtualHardDiskOutput) ToHciVirtualHardDiskOutput() HciVirtualHardDiskOutput { + return o +} + +func (o HciVirtualHardDiskOutput) ToHciVirtualHardDiskOutputWithContext(ctx context.Context) HciVirtualHardDiskOutput { + return o +} + +// The block size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. +func (o HciVirtualHardDiskOutput) BlockSizeInBytes() pulumi.IntPtrOutput { + return o.ApplyT(func(v *HciVirtualHardDisk) pulumi.IntPtrOutput { return v.BlockSizeInBytes }).(pulumi.IntPtrOutput) +} + +// The ID of the Custom Location where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. +func (o HciVirtualHardDiskOutput) CustomLocationId() pulumi.StringOutput { + return o.ApplyT(func(v *HciVirtualHardDisk) pulumi.StringOutput { return v.CustomLocationId }).(pulumi.StringOutput) +} + +// The format of the disk file. Possible values are `vhdx` and `vhd`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. +func (o HciVirtualHardDiskOutput) DiskFileFormat() pulumi.StringPtrOutput { + return o.ApplyT(func(v *HciVirtualHardDisk) pulumi.StringPtrOutput { return v.DiskFileFormat }).(pulumi.StringPtrOutput) +} + +// The size of the disk in GB. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. +func (o HciVirtualHardDiskOutput) DiskSizeInGb() pulumi.IntOutput { + return o.ApplyT(func(v *HciVirtualHardDisk) pulumi.IntOutput { return v.DiskSizeInGb }).(pulumi.IntOutput) +} + +// Whether to enable dynamic sizing for the Azure Stack HCI Virtual Hard Disk. Defaults to `false`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. +func (o HciVirtualHardDiskOutput) DynamicEnabled() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *HciVirtualHardDisk) pulumi.BoolPtrOutput { return v.DynamicEnabled }).(pulumi.BoolPtrOutput) +} + +// The hypervisor generation of the Azure Stack HCI Virtual Hard Disk. Possible values are `V1` and `V2`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. +func (o HciVirtualHardDiskOutput) HypervGeneration() pulumi.StringPtrOutput { + return o.ApplyT(func(v *HciVirtualHardDisk) pulumi.StringPtrOutput { return v.HypervGeneration }).(pulumi.StringPtrOutput) +} + +// The Azure Region where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. +func (o HciVirtualHardDiskOutput) Location() pulumi.StringOutput { + return o.ApplyT(func(v *HciVirtualHardDisk) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput) +} + +// The logical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. +func (o HciVirtualHardDiskOutput) LogicalSectorInBytes() pulumi.IntPtrOutput { + return o.ApplyT(func(v *HciVirtualHardDisk) pulumi.IntPtrOutput { return v.LogicalSectorInBytes }).(pulumi.IntPtrOutput) +} + +// The name which should be used for this Azure Stack HCI Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. +func (o HciVirtualHardDiskOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *HciVirtualHardDisk) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +} + +// The physical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. +func (o HciVirtualHardDiskOutput) PhysicalSectorInBytes() pulumi.IntPtrOutput { + return o.ApplyT(func(v *HciVirtualHardDisk) pulumi.IntPtrOutput { return v.PhysicalSectorInBytes }).(pulumi.IntPtrOutput) +} + +// The name of the Resource Group where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. +func (o HciVirtualHardDiskOutput) ResourceGroupName() pulumi.StringOutput { + return o.ApplyT(func(v *HciVirtualHardDisk) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput) +} + +// The ID of the Azure Stack HCI Storage Path used for this Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. +// +// > **Note:** If `storagePathId` is not specified, the Virtual Hard Disk will be placed in a high availability Storage Path. If you experience a diff you may need to add this to `ignoreChanges`. +func (o HciVirtualHardDiskOutput) StoragePathId() pulumi.StringPtrOutput { + return o.ApplyT(func(v *HciVirtualHardDisk) pulumi.StringPtrOutput { return v.StoragePathId }).(pulumi.StringPtrOutput) +} + +// A mapping of tags which should be assigned to the Azure Stack HCI Virtual Hard Disk. +func (o HciVirtualHardDiskOutput) Tags() pulumi.StringMapOutput { + return o.ApplyT(func(v *HciVirtualHardDisk) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput) +} + +type HciVirtualHardDiskArrayOutput struct{ *pulumi.OutputState } + +func (HciVirtualHardDiskArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*HciVirtualHardDisk)(nil)).Elem() +} + +func (o HciVirtualHardDiskArrayOutput) ToHciVirtualHardDiskArrayOutput() HciVirtualHardDiskArrayOutput { + return o +} + +func (o HciVirtualHardDiskArrayOutput) ToHciVirtualHardDiskArrayOutputWithContext(ctx context.Context) HciVirtualHardDiskArrayOutput { + return o +} + +func (o HciVirtualHardDiskArrayOutput) Index(i pulumi.IntInput) HciVirtualHardDiskOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *HciVirtualHardDisk { + return vs[0].([]*HciVirtualHardDisk)[vs[1].(int)] + }).(HciVirtualHardDiskOutput) +} + +type HciVirtualHardDiskMapOutput struct{ *pulumi.OutputState } + +func (HciVirtualHardDiskMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*HciVirtualHardDisk)(nil)).Elem() +} + +func (o HciVirtualHardDiskMapOutput) ToHciVirtualHardDiskMapOutput() HciVirtualHardDiskMapOutput { + return o +} + +func (o HciVirtualHardDiskMapOutput) ToHciVirtualHardDiskMapOutputWithContext(ctx context.Context) HciVirtualHardDiskMapOutput { + return o +} + +func (o HciVirtualHardDiskMapOutput) MapIndex(k pulumi.StringInput) HciVirtualHardDiskOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *HciVirtualHardDisk { + return vs[0].(map[string]*HciVirtualHardDisk)[vs[1].(string)] + }).(HciVirtualHardDiskOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*HciVirtualHardDiskInput)(nil)).Elem(), &HciVirtualHardDisk{}) + pulumi.RegisterInputType(reflect.TypeOf((*HciVirtualHardDiskArrayInput)(nil)).Elem(), HciVirtualHardDiskArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*HciVirtualHardDiskMapInput)(nil)).Elem(), HciVirtualHardDiskMap{}) + pulumi.RegisterOutputType(HciVirtualHardDiskOutput{}) + pulumi.RegisterOutputType(HciVirtualHardDiskArrayOutput{}) + pulumi.RegisterOutputType(HciVirtualHardDiskMapOutput{}) +} diff --git a/sdk/go/azure/stack/init.go b/sdk/go/azure/stack/init.go index a200b4a886..76e662b3f2 100644 --- a/sdk/go/azure/stack/init.go +++ b/sdk/go/azure/stack/init.go @@ -29,6 +29,8 @@ func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi r = &HciLogicalNetwork{} case "azure:stack/hciStoragePath:HciStoragePath": r = &HciStoragePath{} + case "azure:stack/hciVirtualHardDisk:HciVirtualHardDisk": + r = &HciVirtualHardDisk{} default: return nil, fmt.Errorf("unknown resource type: %s", typ) } @@ -62,4 +64,9 @@ func init() { "stack/hciStoragePath", &module{version}, ) + pulumi.RegisterResourceModule( + "azure", + "stack/hciVirtualHardDisk", + &module{version}, + ) } diff --git a/sdk/java/src/main/java/com/pulumi/azure/apimanagement/inputs/ApiOperationResponseArgs.java b/sdk/java/src/main/java/com/pulumi/azure/apimanagement/inputs/ApiOperationResponseArgs.java index a7938715eb..c1cb40116d 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/apimanagement/inputs/ApiOperationResponseArgs.java +++ b/sdk/java/src/main/java/com/pulumi/azure/apimanagement/inputs/ApiOperationResponseArgs.java @@ -51,14 +51,14 @@ public Optional>> headers() { } /** - * One or more `representation` blocks as defined below. + * One or more `representation` blocks as defined above. * */ @Import(name="representations") private @Nullable Output> representations; /** - * @return One or more `representation` blocks as defined below. + * @return One or more `representation` blocks as defined above. * */ public Optional>> representations() { @@ -160,7 +160,7 @@ public Builder headers(ApiOperationResponseHeaderArgs... headers) { } /** - * @param representations One or more `representation` blocks as defined below. + * @param representations One or more `representation` blocks as defined above. * * @return builder * @@ -171,7 +171,7 @@ public Builder representations(@Nullable Output repr } /** - * @param representations One or more `representation` blocks as defined below. + * @param representations One or more `representation` blocks as defined above. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/azure/apimanagement/outputs/ApiOperationResponse.java b/sdk/java/src/main/java/com/pulumi/azure/apimanagement/outputs/ApiOperationResponse.java index a878822bf3..97c0308cd0 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/apimanagement/outputs/ApiOperationResponse.java +++ b/sdk/java/src/main/java/com/pulumi/azure/apimanagement/outputs/ApiOperationResponse.java @@ -27,7 +27,7 @@ public final class ApiOperationResponse { */ private @Nullable List headers; /** - * @return One or more `representation` blocks as defined below. + * @return One or more `representation` blocks as defined above. * */ private @Nullable List representations; @@ -53,7 +53,7 @@ public List headers() { return this.headers == null ? List.of() : this.headers; } /** - * @return One or more `representation` blocks as defined below. + * @return One or more `representation` blocks as defined above. * */ public List representations() { diff --git a/sdk/java/src/main/java/com/pulumi/azure/compute/BastionHost.java b/sdk/java/src/main/java/com/pulumi/azure/compute/BastionHost.java index 3a0d4b433d..98412ed543 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/compute/BastionHost.java +++ b/sdk/java/src/main/java/com/pulumi/azure/compute/BastionHost.java @@ -268,6 +268,24 @@ public Output resourceGroupName() { public Output> scaleUnits() { return Codegen.optional(this.scaleUnits); } + /** + * Is Session Recording feature enabled for the Bastion Host. Defaults to `false`. + * + * > **Note:** `session_recording_enabled` is only supported when `sku` is `Premium`. + * + */ + @Export(name="sessionRecordingEnabled", refs={Boolean.class}, tree="[0]") + private Output sessionRecordingEnabled; + + /** + * @return Is Session Recording feature enabled for the Bastion Host. Defaults to `false`. + * + * > **Note:** `session_recording_enabled` is only supported when `sku` is `Premium`. + * + */ + public Output> sessionRecordingEnabled() { + return Codegen.optional(this.sessionRecordingEnabled); + } /** * Is Shareable Link feature enabled for the Bastion Host. Defaults to `false`. * @@ -287,7 +305,7 @@ public Output> shareableLinkEnabled() { return Codegen.optional(this.shareableLinkEnabled); } /** - * The SKU of the Bastion Host. Accepted values are `Developer`, `Basic` and `Standard`. Defaults to `Basic`. + * The SKU of the Bastion Host. Accepted values are `Developer`, `Basic`, `Standard` and `Premium`. Defaults to `Basic`. * * > **Note** Downgrading the SKU will force a new resource to be created. * @@ -296,7 +314,7 @@ public Output> shareableLinkEnabled() { private Output sku; /** - * @return The SKU of the Bastion Host. Accepted values are `Developer`, `Basic` and `Standard`. Defaults to `Basic`. + * @return The SKU of the Bastion Host. Accepted values are `Developer`, `Basic`, `Standard` and `Premium`. Defaults to `Basic`. * * > **Note** Downgrading the SKU will force a new resource to be created. * diff --git a/sdk/java/src/main/java/com/pulumi/azure/compute/BastionHostArgs.java b/sdk/java/src/main/java/com/pulumi/azure/compute/BastionHostArgs.java index b69c3ee711..8b4f1ec144 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/compute/BastionHostArgs.java +++ b/sdk/java/src/main/java/com/pulumi/azure/compute/BastionHostArgs.java @@ -171,6 +171,25 @@ public Optional> scaleUnits() { return Optional.ofNullable(this.scaleUnits); } + /** + * Is Session Recording feature enabled for the Bastion Host. Defaults to `false`. + * + * > **Note:** `session_recording_enabled` is only supported when `sku` is `Premium`. + * + */ + @Import(name="sessionRecordingEnabled") + private @Nullable Output sessionRecordingEnabled; + + /** + * @return Is Session Recording feature enabled for the Bastion Host. Defaults to `false`. + * + * > **Note:** `session_recording_enabled` is only supported when `sku` is `Premium`. + * + */ + public Optional> sessionRecordingEnabled() { + return Optional.ofNullable(this.sessionRecordingEnabled); + } + /** * Is Shareable Link feature enabled for the Bastion Host. Defaults to `false`. * @@ -191,7 +210,7 @@ public Optional> shareableLinkEnabled() { } /** - * The SKU of the Bastion Host. Accepted values are `Developer`, `Basic` and `Standard`. Defaults to `Basic`. + * The SKU of the Bastion Host. Accepted values are `Developer`, `Basic`, `Standard` and `Premium`. Defaults to `Basic`. * * > **Note** Downgrading the SKU will force a new resource to be created. * @@ -200,7 +219,7 @@ public Optional> shareableLinkEnabled() { private @Nullable Output sku; /** - * @return The SKU of the Bastion Host. Accepted values are `Developer`, `Basic` and `Standard`. Defaults to `Basic`. + * @return The SKU of the Bastion Host. Accepted values are `Developer`, `Basic`, `Standard` and `Premium`. Defaults to `Basic`. * * > **Note** Downgrading the SKU will force a new resource to be created. * @@ -270,6 +289,7 @@ private BastionHostArgs(BastionHostArgs $) { this.name = $.name; this.resourceGroupName = $.resourceGroupName; this.scaleUnits = $.scaleUnits; + this.sessionRecordingEnabled = $.sessionRecordingEnabled; this.shareableLinkEnabled = $.shareableLinkEnabled; this.sku = $.sku; this.tags = $.tags; @@ -500,6 +520,31 @@ public Builder scaleUnits(Integer scaleUnits) { return scaleUnits(Output.of(scaleUnits)); } + /** + * @param sessionRecordingEnabled Is Session Recording feature enabled for the Bastion Host. Defaults to `false`. + * + * > **Note:** `session_recording_enabled` is only supported when `sku` is `Premium`. + * + * @return builder + * + */ + public Builder sessionRecordingEnabled(@Nullable Output sessionRecordingEnabled) { + $.sessionRecordingEnabled = sessionRecordingEnabled; + return this; + } + + /** + * @param sessionRecordingEnabled Is Session Recording feature enabled for the Bastion Host. Defaults to `false`. + * + * > **Note:** `session_recording_enabled` is only supported when `sku` is `Premium`. + * + * @return builder + * + */ + public Builder sessionRecordingEnabled(Boolean sessionRecordingEnabled) { + return sessionRecordingEnabled(Output.of(sessionRecordingEnabled)); + } + /** * @param shareableLinkEnabled Is Shareable Link feature enabled for the Bastion Host. Defaults to `false`. * @@ -526,7 +571,7 @@ public Builder shareableLinkEnabled(Boolean shareableLinkEnabled) { } /** - * @param sku The SKU of the Bastion Host. Accepted values are `Developer`, `Basic` and `Standard`. Defaults to `Basic`. + * @param sku The SKU of the Bastion Host. Accepted values are `Developer`, `Basic`, `Standard` and `Premium`. Defaults to `Basic`. * * > **Note** Downgrading the SKU will force a new resource to be created. * @@ -539,7 +584,7 @@ public Builder sku(@Nullable Output sku) { } /** - * @param sku The SKU of the Bastion Host. Accepted values are `Developer`, `Basic` and `Standard`. Defaults to `Basic`. + * @param sku The SKU of the Bastion Host. Accepted values are `Developer`, `Basic`, `Standard` and `Premium`. Defaults to `Basic`. * * > **Note** Downgrading the SKU will force a new resource to be created. * diff --git a/sdk/java/src/main/java/com/pulumi/azure/compute/inputs/BastionHostState.java b/sdk/java/src/main/java/com/pulumi/azure/compute/inputs/BastionHostState.java index 43e4225e03..1423db0f10 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/compute/inputs/BastionHostState.java +++ b/sdk/java/src/main/java/com/pulumi/azure/compute/inputs/BastionHostState.java @@ -185,6 +185,25 @@ public Optional> scaleUnits() { return Optional.ofNullable(this.scaleUnits); } + /** + * Is Session Recording feature enabled for the Bastion Host. Defaults to `false`. + * + * > **Note:** `session_recording_enabled` is only supported when `sku` is `Premium`. + * + */ + @Import(name="sessionRecordingEnabled") + private @Nullable Output sessionRecordingEnabled; + + /** + * @return Is Session Recording feature enabled for the Bastion Host. Defaults to `false`. + * + * > **Note:** `session_recording_enabled` is only supported when `sku` is `Premium`. + * + */ + public Optional> sessionRecordingEnabled() { + return Optional.ofNullable(this.sessionRecordingEnabled); + } + /** * Is Shareable Link feature enabled for the Bastion Host. Defaults to `false`. * @@ -205,7 +224,7 @@ public Optional> shareableLinkEnabled() { } /** - * The SKU of the Bastion Host. Accepted values are `Developer`, `Basic` and `Standard`. Defaults to `Basic`. + * The SKU of the Bastion Host. Accepted values are `Developer`, `Basic`, `Standard` and `Premium`. Defaults to `Basic`. * * > **Note** Downgrading the SKU will force a new resource to be created. * @@ -214,7 +233,7 @@ public Optional> shareableLinkEnabled() { private @Nullable Output sku; /** - * @return The SKU of the Bastion Host. Accepted values are `Developer`, `Basic` and `Standard`. Defaults to `Basic`. + * @return The SKU of the Bastion Host. Accepted values are `Developer`, `Basic`, `Standard` and `Premium`. Defaults to `Basic`. * * > **Note** Downgrading the SKU will force a new resource to be created. * @@ -285,6 +304,7 @@ private BastionHostState(BastionHostState $) { this.name = $.name; this.resourceGroupName = $.resourceGroupName; this.scaleUnits = $.scaleUnits; + this.sessionRecordingEnabled = $.sessionRecordingEnabled; this.shareableLinkEnabled = $.shareableLinkEnabled; this.sku = $.sku; this.tags = $.tags; @@ -536,6 +556,31 @@ public Builder scaleUnits(Integer scaleUnits) { return scaleUnits(Output.of(scaleUnits)); } + /** + * @param sessionRecordingEnabled Is Session Recording feature enabled for the Bastion Host. Defaults to `false`. + * + * > **Note:** `session_recording_enabled` is only supported when `sku` is `Premium`. + * + * @return builder + * + */ + public Builder sessionRecordingEnabled(@Nullable Output sessionRecordingEnabled) { + $.sessionRecordingEnabled = sessionRecordingEnabled; + return this; + } + + /** + * @param sessionRecordingEnabled Is Session Recording feature enabled for the Bastion Host. Defaults to `false`. + * + * > **Note:** `session_recording_enabled` is only supported when `sku` is `Premium`. + * + * @return builder + * + */ + public Builder sessionRecordingEnabled(Boolean sessionRecordingEnabled) { + return sessionRecordingEnabled(Output.of(sessionRecordingEnabled)); + } + /** * @param shareableLinkEnabled Is Shareable Link feature enabled for the Bastion Host. Defaults to `false`. * @@ -562,7 +607,7 @@ public Builder shareableLinkEnabled(Boolean shareableLinkEnabled) { } /** - * @param sku The SKU of the Bastion Host. Accepted values are `Developer`, `Basic` and `Standard`. Defaults to `Basic`. + * @param sku The SKU of the Bastion Host. Accepted values are `Developer`, `Basic`, `Standard` and `Premium`. Defaults to `Basic`. * * > **Note** Downgrading the SKU will force a new resource to be created. * @@ -575,7 +620,7 @@ public Builder sku(@Nullable Output sku) { } /** - * @param sku The SKU of the Bastion Host. Accepted values are `Developer`, `Basic` and `Standard`. Defaults to `Basic`. + * @param sku The SKU of the Bastion Host. Accepted values are `Developer`, `Basic`, `Standard` and `Premium`. Defaults to `Basic`. * * > **Note** Downgrading the SKU will force a new resource to be created. * diff --git a/sdk/java/src/main/java/com/pulumi/azure/compute/outputs/GetBastionHostResult.java b/sdk/java/src/main/java/com/pulumi/azure/compute/outputs/GetBastionHostResult.java index feafc4e127..a8358991cb 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/compute/outputs/GetBastionHostResult.java +++ b/sdk/java/src/main/java/com/pulumi/azure/compute/outputs/GetBastionHostResult.java @@ -61,6 +61,7 @@ public final class GetBastionHostResult { * */ private Integer scaleUnits; + private Boolean sessionRecordingEnabled; /** * @return Is Shareable Link feature enabled for the Bastion Host. * @@ -149,6 +150,9 @@ public String resourceGroupName() { public Integer scaleUnits() { return this.scaleUnits; } + public Boolean sessionRecordingEnabled() { + return this.sessionRecordingEnabled; + } /** * @return Is Shareable Link feature enabled for the Bastion Host. * @@ -197,6 +201,7 @@ public static final class Builder { private String name; private String resourceGroupName; private Integer scaleUnits; + private Boolean sessionRecordingEnabled; private Boolean shareableLinkEnabled; private String sku; private Map tags; @@ -214,6 +219,7 @@ public Builder(GetBastionHostResult defaults) { this.name = defaults.name; this.resourceGroupName = defaults.resourceGroupName; this.scaleUnits = defaults.scaleUnits; + this.sessionRecordingEnabled = defaults.sessionRecordingEnabled; this.shareableLinkEnabled = defaults.shareableLinkEnabled; this.sku = defaults.sku; this.tags = defaults.tags; @@ -304,6 +310,14 @@ public Builder scaleUnits(Integer scaleUnits) { return this; } @CustomType.Setter + public Builder sessionRecordingEnabled(Boolean sessionRecordingEnabled) { + if (sessionRecordingEnabled == null) { + throw new MissingRequiredPropertyException("GetBastionHostResult", "sessionRecordingEnabled"); + } + this.sessionRecordingEnabled = sessionRecordingEnabled; + return this; + } + @CustomType.Setter public Builder shareableLinkEnabled(Boolean shareableLinkEnabled) { if (shareableLinkEnabled == null) { throw new MissingRequiredPropertyException("GetBastionHostResult", "shareableLinkEnabled"); @@ -347,6 +361,7 @@ public GetBastionHostResult build() { _resultValue.name = name; _resultValue.resourceGroupName = resourceGroupName; _resultValue.scaleUnits = scaleUnits; + _resultValue.sessionRecordingEnabled = sessionRecordingEnabled; _resultValue.shareableLinkEnabled = shareableLinkEnabled; _resultValue.sku = sku; _resultValue.tags = tags; diff --git a/sdk/java/src/main/java/com/pulumi/azure/containerapp/inputs/AppIngressArgs.java b/sdk/java/src/main/java/com/pulumi/azure/containerapp/inputs/AppIngressArgs.java index 57ec26040f..9322d58e5b 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/containerapp/inputs/AppIngressArgs.java +++ b/sdk/java/src/main/java/com/pulumi/azure/containerapp/inputs/AppIngressArgs.java @@ -149,6 +149,8 @@ public Output> trafficWeights() { /** * The transport method for the Ingress. Possible values are `auto`, `http`, `http2` and `tcp`. Defaults to `auto`. * + * > **Note:** if `transport` is set to `tcp`, `exposed_port` and `target_port` should be set at the same time. + * */ @Import(name="transport") private @Nullable Output transport; @@ -156,6 +158,8 @@ public Output> trafficWeights() { /** * @return The transport method for the Ingress. Possible values are `auto`, `http`, `http2` and `tcp`. Defaults to `auto`. * + * > **Note:** if `transport` is set to `tcp`, `exposed_port` and `target_port` should be set at the same time. + * */ public Optional> transport() { return Optional.ofNullable(this.transport); @@ -398,6 +402,8 @@ public Builder trafficWeights(AppIngressTrafficWeightArgs... trafficWeights) { /** * @param transport The transport method for the Ingress. Possible values are `auto`, `http`, `http2` and `tcp`. Defaults to `auto`. * + * > **Note:** if `transport` is set to `tcp`, `exposed_port` and `target_port` should be set at the same time. + * * @return builder * */ @@ -409,6 +415,8 @@ public Builder transport(@Nullable Output transport) { /** * @param transport The transport method for the Ingress. Possible values are `auto`, `http`, `http2` and `tcp`. Defaults to `auto`. * + * > **Note:** if `transport` is set to `tcp`, `exposed_port` and `target_port` should be set at the same time. + * * @return builder * */ diff --git a/sdk/java/src/main/java/com/pulumi/azure/containerapp/outputs/AppIngress.java b/sdk/java/src/main/java/com/pulumi/azure/containerapp/outputs/AppIngress.java index f163d286ab..0976696e48 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/containerapp/outputs/AppIngress.java +++ b/sdk/java/src/main/java/com/pulumi/azure/containerapp/outputs/AppIngress.java @@ -63,6 +63,8 @@ public final class AppIngress { /** * @return The transport method for the Ingress. Possible values are `auto`, `http`, `http2` and `tcp`. Defaults to `auto`. * + * > **Note:** if `transport` is set to `tcp`, `exposed_port` and `target_port` should be set at the same time. + * */ private @Nullable String transport; @@ -128,6 +130,8 @@ public List trafficWeights() { /** * @return The transport method for the Ingress. Possible values are `auto`, `http`, `http2` and `tcp`. Defaults to `auto`. * + * > **Note:** if `transport` is set to `tcp`, `exposed_port` and `target_port` should be set at the same time. + * */ public Optional transport() { return Optional.ofNullable(this.transport); diff --git a/sdk/java/src/main/java/com/pulumi/azure/loganalytics/Cluster.java b/sdk/java/src/main/java/com/pulumi/azure/loganalytics/Cluster.java index 22ae3d455f..3865d7a700 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/loganalytics/Cluster.java +++ b/sdk/java/src/main/java/com/pulumi/azure/loganalytics/Cluster.java @@ -152,7 +152,7 @@ public Output resourceGroupName() { return this.resourceGroupName; } /** - * The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `500`, `1000`, `2000` or `5000`. Defaults to `100`. + * The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `200`, `300`, `400`, `500`, `1000`, `2000`, `5000`, `10000`, `25000`, or `50000`. Defaults to `100`. * * > **NOTE:** The cluster capacity must start at 100 GB and can be set to 500, 1000, 2000 or 5000 GB/day. For more information on cluster costs, see [Dedicated clusters](https://docs.microsoft.com/en-us/azure/azure-monitor/logs/cost-logs#dedicated-clusters). In v3.x the default value is `1000` GB, in v4.0 of the provider this will default to `100` GB. * @@ -161,7 +161,7 @@ public Output resourceGroupName() { private Output sizeGb; /** - * @return The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `500`, `1000`, `2000` or `5000`. Defaults to `100`. + * @return The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `200`, `300`, `400`, `500`, `1000`, `2000`, `5000`, `10000`, `25000`, or `50000`. Defaults to `100`. * * > **NOTE:** The cluster capacity must start at 100 GB and can be set to 500, 1000, 2000 or 5000 GB/day. For more information on cluster costs, see [Dedicated clusters](https://docs.microsoft.com/en-us/azure/azure-monitor/logs/cost-logs#dedicated-clusters). In v3.x the default value is `1000` GB, in v4.0 of the provider this will default to `100` GB. * diff --git a/sdk/java/src/main/java/com/pulumi/azure/loganalytics/ClusterArgs.java b/sdk/java/src/main/java/com/pulumi/azure/loganalytics/ClusterArgs.java index 6468c1aea9..88df629810 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/loganalytics/ClusterArgs.java +++ b/sdk/java/src/main/java/com/pulumi/azure/loganalytics/ClusterArgs.java @@ -80,7 +80,7 @@ public Output resourceGroupName() { } /** - * The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `500`, `1000`, `2000` or `5000`. Defaults to `100`. + * The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `200`, `300`, `400`, `500`, `1000`, `2000`, `5000`, `10000`, `25000`, or `50000`. Defaults to `100`. * * > **NOTE:** The cluster capacity must start at 100 GB and can be set to 500, 1000, 2000 or 5000 GB/day. For more information on cluster costs, see [Dedicated clusters](https://docs.microsoft.com/en-us/azure/azure-monitor/logs/cost-logs#dedicated-clusters). In v3.x the default value is `1000` GB, in v4.0 of the provider this will default to `100` GB. * @@ -89,7 +89,7 @@ public Output resourceGroupName() { private @Nullable Output sizeGb; /** - * @return The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `500`, `1000`, `2000` or `5000`. Defaults to `100`. + * @return The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `200`, `300`, `400`, `500`, `1000`, `2000`, `5000`, `10000`, `25000`, or `50000`. Defaults to `100`. * * > **NOTE:** The cluster capacity must start at 100 GB and can be set to 500, 1000, 2000 or 5000 GB/day. For more information on cluster costs, see [Dedicated clusters](https://docs.microsoft.com/en-us/azure/azure-monitor/logs/cost-logs#dedicated-clusters). In v3.x the default value is `1000` GB, in v4.0 of the provider this will default to `100` GB. * @@ -227,7 +227,7 @@ public Builder resourceGroupName(String resourceGroupName) { } /** - * @param sizeGb The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `500`, `1000`, `2000` or `5000`. Defaults to `100`. + * @param sizeGb The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `200`, `300`, `400`, `500`, `1000`, `2000`, `5000`, `10000`, `25000`, or `50000`. Defaults to `100`. * * > **NOTE:** The cluster capacity must start at 100 GB and can be set to 500, 1000, 2000 or 5000 GB/day. For more information on cluster costs, see [Dedicated clusters](https://docs.microsoft.com/en-us/azure/azure-monitor/logs/cost-logs#dedicated-clusters). In v3.x the default value is `1000` GB, in v4.0 of the provider this will default to `100` GB. * @@ -240,7 +240,7 @@ public Builder sizeGb(@Nullable Output sizeGb) { } /** - * @param sizeGb The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `500`, `1000`, `2000` or `5000`. Defaults to `100`. + * @param sizeGb The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `200`, `300`, `400`, `500`, `1000`, `2000`, `5000`, `10000`, `25000`, or `50000`. Defaults to `100`. * * > **NOTE:** The cluster capacity must start at 100 GB and can be set to 500, 1000, 2000 or 5000 GB/day. For more information on cluster costs, see [Dedicated clusters](https://docs.microsoft.com/en-us/azure/azure-monitor/logs/cost-logs#dedicated-clusters). In v3.x the default value is `1000` GB, in v4.0 of the provider this will default to `100` GB. * diff --git a/sdk/java/src/main/java/com/pulumi/azure/loganalytics/inputs/ClusterState.java b/sdk/java/src/main/java/com/pulumi/azure/loganalytics/inputs/ClusterState.java index b5645a291b..3345c12b2f 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/loganalytics/inputs/ClusterState.java +++ b/sdk/java/src/main/java/com/pulumi/azure/loganalytics/inputs/ClusterState.java @@ -94,7 +94,7 @@ public Optional> resourceGroupName() { } /** - * The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `500`, `1000`, `2000` or `5000`. Defaults to `100`. + * The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `200`, `300`, `400`, `500`, `1000`, `2000`, `5000`, `10000`, `25000`, or `50000`. Defaults to `100`. * * > **NOTE:** The cluster capacity must start at 100 GB and can be set to 500, 1000, 2000 or 5000 GB/day. For more information on cluster costs, see [Dedicated clusters](https://docs.microsoft.com/en-us/azure/azure-monitor/logs/cost-logs#dedicated-clusters). In v3.x the default value is `1000` GB, in v4.0 of the provider this will default to `100` GB. * @@ -103,7 +103,7 @@ public Optional> resourceGroupName() { private @Nullable Output sizeGb; /** - * @return The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `500`, `1000`, `2000` or `5000`. Defaults to `100`. + * @return The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `200`, `300`, `400`, `500`, `1000`, `2000`, `5000`, `10000`, `25000`, or `50000`. Defaults to `100`. * * > **NOTE:** The cluster capacity must start at 100 GB and can be set to 500, 1000, 2000 or 5000 GB/day. For more information on cluster costs, see [Dedicated clusters](https://docs.microsoft.com/en-us/azure/azure-monitor/logs/cost-logs#dedicated-clusters). In v3.x the default value is `1000` GB, in v4.0 of the provider this will default to `100` GB. * @@ -263,7 +263,7 @@ public Builder resourceGroupName(String resourceGroupName) { } /** - * @param sizeGb The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `500`, `1000`, `2000` or `5000`. Defaults to `100`. + * @param sizeGb The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `200`, `300`, `400`, `500`, `1000`, `2000`, `5000`, `10000`, `25000`, or `50000`. Defaults to `100`. * * > **NOTE:** The cluster capacity must start at 100 GB and can be set to 500, 1000, 2000 or 5000 GB/day. For more information on cluster costs, see [Dedicated clusters](https://docs.microsoft.com/en-us/azure/azure-monitor/logs/cost-logs#dedicated-clusters). In v3.x the default value is `1000` GB, in v4.0 of the provider this will default to `100` GB. * @@ -276,7 +276,7 @@ public Builder sizeGb(@Nullable Output sizeGb) { } /** - * @param sizeGb The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `500`, `1000`, `2000` or `5000`. Defaults to `100`. + * @param sizeGb The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `200`, `300`, `400`, `500`, `1000`, `2000`, `5000`, `10000`, `25000`, or `50000`. Defaults to `100`. * * > **NOTE:** The cluster capacity must start at 100 GB and can be set to 500, 1000, 2000 or 5000 GB/day. For more information on cluster costs, see [Dedicated clusters](https://docs.microsoft.com/en-us/azure/azure-monitor/logs/cost-logs#dedicated-clusters). In v3.x the default value is `1000` GB, in v4.0 of the provider this will default to `100` GB. * diff --git a/sdk/java/src/main/java/com/pulumi/azure/management/GroupSubscriptionAssociation.java b/sdk/java/src/main/java/com/pulumi/azure/management/GroupSubscriptionAssociation.java index 0f69fc1663..7b2b59d0fe 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/management/GroupSubscriptionAssociation.java +++ b/sdk/java/src/main/java/com/pulumi/azure/management/GroupSubscriptionAssociation.java @@ -71,7 +71,7 @@ * Managements can be imported using the `resource id`, e.g. * * ```sh - * $ pulumi import azure:management/groupSubscriptionAssociation:GroupSubscriptionAssociation example /managementGroup/MyManagementGroup/subscription/12345678-1234-1234-1234-123456789012 + * $ pulumi import azure:management/groupSubscriptionAssociation:GroupSubscriptionAssociation example /providers/Microsoft.Management/managementGroups/MyManagementGroup/subscriptions/12345678-1234-1234-1234-123456789012 * ``` * */ diff --git a/sdk/java/src/main/java/com/pulumi/azure/mssql/inputs/ElasticPoolSkuArgs.java b/sdk/java/src/main/java/com/pulumi/azure/mssql/inputs/ElasticPoolSkuArgs.java index 83266b5246..9ac5ab1b1c 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/mssql/inputs/ElasticPoolSkuArgs.java +++ b/sdk/java/src/main/java/com/pulumi/azure/mssql/inputs/ElasticPoolSkuArgs.java @@ -33,14 +33,14 @@ public Output capacity() { } /** - * The `family` of hardware `Gen4`, `Gen5`, `Fsv2`, `MOPRMS`, or `DC`. + * The `family` of hardware `Gen4`, `Gen5`, `Fsv2`, `MOPRMS`, `PRMS`, or `DC`. * */ @Import(name="family") private @Nullable Output family; /** - * @return The `family` of hardware `Gen4`, `Gen5`, `Fsv2`, `MOPRMS`, or `DC`. + * @return The `family` of hardware `Gen4`, `Gen5`, `Fsv2`, `MOPRMS`, `PRMS`, or `DC`. * */ public Optional> family() { @@ -126,7 +126,7 @@ public Builder capacity(Integer capacity) { } /** - * @param family The `family` of hardware `Gen4`, `Gen5`, `Fsv2`, `MOPRMS`, or `DC`. + * @param family The `family` of hardware `Gen4`, `Gen5`, `Fsv2`, `MOPRMS`, `PRMS`, or `DC`. * * @return builder * @@ -137,7 +137,7 @@ public Builder family(@Nullable Output family) { } /** - * @param family The `family` of hardware `Gen4`, `Gen5`, `Fsv2`, `MOPRMS`, or `DC`. + * @param family The `family` of hardware `Gen4`, `Gen5`, `Fsv2`, `MOPRMS`, `PRMS`, or `DC`. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/azure/mssql/outputs/ElasticPoolSku.java b/sdk/java/src/main/java/com/pulumi/azure/mssql/outputs/ElasticPoolSku.java index 66f1e40b1c..3cdfde530f 100644 --- a/sdk/java/src/main/java/com/pulumi/azure/mssql/outputs/ElasticPoolSku.java +++ b/sdk/java/src/main/java/com/pulumi/azure/mssql/outputs/ElasticPoolSku.java @@ -19,7 +19,7 @@ public final class ElasticPoolSku { */ private Integer capacity; /** - * @return The `family` of hardware `Gen4`, `Gen5`, `Fsv2`, `MOPRMS`, or `DC`. + * @return The `family` of hardware `Gen4`, `Gen5`, `Fsv2`, `MOPRMS`, `PRMS`, or `DC`. * */ private @Nullable String family; @@ -43,7 +43,7 @@ public Integer capacity() { return this.capacity; } /** - * @return The `family` of hardware `Gen4`, `Gen5`, `Fsv2`, `MOPRMS`, or `DC`. + * @return The `family` of hardware `Gen4`, `Gen5`, `Fsv2`, `MOPRMS`, `PRMS`, or `DC`. * */ public Optional family() { diff --git a/sdk/java/src/main/java/com/pulumi/azure/stack/HciVirtualHardDisk.java b/sdk/java/src/main/java/com/pulumi/azure/stack/HciVirtualHardDisk.java new file mode 100644 index 0000000000..de90c98a67 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/azure/stack/HciVirtualHardDisk.java @@ -0,0 +1,335 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.azure.stack; + +import com.pulumi.azure.Utilities; +import com.pulumi.azure.stack.HciVirtualHardDiskArgs; +import com.pulumi.azure.stack.inputs.HciVirtualHardDiskState; +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Export; +import com.pulumi.core.annotations.ResourceType; +import com.pulumi.core.internal.Codegen; +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.String; +import java.util.Map; +import java.util.Optional; +import javax.annotation.Nullable; + +/** + * Manages an Azure Stack HCI Virtual Hard Disk. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+ * {@code
+ * package generated_program;
+ * 
+ * import com.pulumi.Context;
+ * import com.pulumi.Pulumi;
+ * import com.pulumi.core.Output;
+ * import com.pulumi.azure.core.ResourceGroup;
+ * import com.pulumi.azure.core.ResourceGroupArgs;
+ * import com.pulumi.azure.stack.HciStoragePath;
+ * import com.pulumi.azure.stack.HciStoragePathArgs;
+ * import com.pulumi.azure.stack.HciVirtualHardDisk;
+ * import com.pulumi.azure.stack.HciVirtualHardDiskArgs;
+ * import java.util.List;
+ * import java.util.ArrayList;
+ * import java.util.Map;
+ * import java.io.File;
+ * import java.nio.file.Files;
+ * import java.nio.file.Paths;
+ * 
+ * public class App {
+ *     public static void main(String[] args) {
+ *         Pulumi.run(App::stack);
+ *     }
+ * 
+ *     public static void stack(Context ctx) {
+ *         var example = new ResourceGroup("example", ResourceGroupArgs.builder()
+ *             .name("example-rg")
+ *             .location("West Europe")
+ *             .build());
+ * 
+ *         var exampleHciStoragePath = new HciStoragePath("exampleHciStoragePath", HciStoragePathArgs.builder()
+ *             .name("example-sp")
+ *             .resourceGroupName(example.name())
+ *             .location(example.location())
+ *             .customLocationId("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/cl1")
+ *             .path("C:\\ClusterStorage\\UserStorage_2\\sp-example")
+ *             .tags(Map.of("foo", "bar"))
+ *             .build());
+ * 
+ *         var exampleHciVirtualHardDisk = new HciVirtualHardDisk("exampleHciVirtualHardDisk", HciVirtualHardDiskArgs.builder()
+ *             .name("example-vhd")
+ *             .resourceGroupName(example.name())
+ *             .location(example.location())
+ *             .customLocationId("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/cl1")
+ *             .diskSizeInGb(2)
+ *             .storagePathId(exampleHciStoragePath.id())
+ *             .tags(Map.of("foo", "bar"))
+ *             .build());
+ * 
+ *     }
+ * }
+ * }
+ * 
+ * <!--End PulumiCodeChooser --> + * + * ## Import + * + * Azure Stack HCI Virtual Hard Disks can be imported using the `resource id`, e.g. + * + * ```sh + * $ pulumi import azure:stack/hciVirtualHardDisk:HciVirtualHardDisk example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.AzureStackHCI/virtualHardDisks/disk1 + * ``` + * + */ +@ResourceType(type="azure:stack/hciVirtualHardDisk:HciVirtualHardDisk") +public class HciVirtualHardDisk extends com.pulumi.resources.CustomResource { + /** + * The block size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + @Export(name="blockSizeInBytes", refs={Integer.class}, tree="[0]") + private Output blockSizeInBytes; + + /** + * @return The block size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + public Output> blockSizeInBytes() { + return Codegen.optional(this.blockSizeInBytes); + } + /** + * The ID of the Custom Location where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + @Export(name="customLocationId", refs={String.class}, tree="[0]") + private Output customLocationId; + + /** + * @return The ID of the Custom Location where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + public Output customLocationId() { + return this.customLocationId; + } + /** + * The format of the disk file. Possible values are `vhdx` and `vhd`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + @Export(name="diskFileFormat", refs={String.class}, tree="[0]") + private Output diskFileFormat; + + /** + * @return The format of the disk file. Possible values are `vhdx` and `vhd`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + public Output> diskFileFormat() { + return Codegen.optional(this.diskFileFormat); + } + /** + * The size of the disk in GB. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + @Export(name="diskSizeInGb", refs={Integer.class}, tree="[0]") + private Output diskSizeInGb; + + /** + * @return The size of the disk in GB. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + public Output diskSizeInGb() { + return this.diskSizeInGb; + } + /** + * Whether to enable dynamic sizing for the Azure Stack HCI Virtual Hard Disk. Defaults to `false`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + @Export(name="dynamicEnabled", refs={Boolean.class}, tree="[0]") + private Output dynamicEnabled; + + /** + * @return Whether to enable dynamic sizing for the Azure Stack HCI Virtual Hard Disk. Defaults to `false`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + public Output> dynamicEnabled() { + return Codegen.optional(this.dynamicEnabled); + } + /** + * The hypervisor generation of the Azure Stack HCI Virtual Hard Disk. Possible values are `V1` and `V2`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + @Export(name="hypervGeneration", refs={String.class}, tree="[0]") + private Output hypervGeneration; + + /** + * @return The hypervisor generation of the Azure Stack HCI Virtual Hard Disk. Possible values are `V1` and `V2`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + public Output> hypervGeneration() { + return Codegen.optional(this.hypervGeneration); + } + /** + * The Azure Region where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + @Export(name="location", refs={String.class}, tree="[0]") + private Output location; + + /** + * @return The Azure Region where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + public Output location() { + return this.location; + } + /** + * The logical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + @Export(name="logicalSectorInBytes", refs={Integer.class}, tree="[0]") + private Output logicalSectorInBytes; + + /** + * @return The logical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + public Output> logicalSectorInBytes() { + return Codegen.optional(this.logicalSectorInBytes); + } + /** + * The name which should be used for this Azure Stack HCI Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + @Export(name="name", refs={String.class}, tree="[0]") + private Output name; + + /** + * @return The name which should be used for this Azure Stack HCI Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + public Output name() { + return this.name; + } + /** + * The physical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + @Export(name="physicalSectorInBytes", refs={Integer.class}, tree="[0]") + private Output physicalSectorInBytes; + + /** + * @return The physical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + public Output> physicalSectorInBytes() { + return Codegen.optional(this.physicalSectorInBytes); + } + /** + * The name of the Resource Group where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + @Export(name="resourceGroupName", refs={String.class}, tree="[0]") + private Output resourceGroupName; + + /** + * @return The name of the Resource Group where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + public Output resourceGroupName() { + return this.resourceGroupName; + } + /** + * The ID of the Azure Stack HCI Storage Path used for this Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + * > **Note:** If `storage_path_id` is not specified, the Virtual Hard Disk will be placed in a high availability Storage Path. If you experience a diff you may need to add this to `ignore_changes`. + * + */ + @Export(name="storagePathId", refs={String.class}, tree="[0]") + private Output storagePathId; + + /** + * @return The ID of the Azure Stack HCI Storage Path used for this Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + * > **Note:** If `storage_path_id` is not specified, the Virtual Hard Disk will be placed in a high availability Storage Path. If you experience a diff you may need to add this to `ignore_changes`. + * + */ + public Output> storagePathId() { + return Codegen.optional(this.storagePathId); + } + /** + * A mapping of tags which should be assigned to the Azure Stack HCI Virtual Hard Disk. + * + */ + @Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]") + private Output> tags; + + /** + * @return A mapping of tags which should be assigned to the Azure Stack HCI Virtual Hard Disk. + * + */ + public Output>> tags() { + return Codegen.optional(this.tags); + } + + /** + * + * @param name The _unique_ name of the resulting resource. + */ + public HciVirtualHardDisk(java.lang.String name) { + this(name, HciVirtualHardDiskArgs.Empty); + } + /** + * + * @param name The _unique_ name of the resulting resource. + * @param args The arguments to use to populate this resource's properties. + */ + public HciVirtualHardDisk(java.lang.String name, HciVirtualHardDiskArgs args) { + this(name, args, null); + } + /** + * + * @param name The _unique_ name of the resulting resource. + * @param args The arguments to use to populate this resource's properties. + * @param options A bag of options that control this resource's behavior. + */ + public HciVirtualHardDisk(java.lang.String name, HciVirtualHardDiskArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("azure:stack/hciVirtualHardDisk:HciVirtualHardDisk", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); + } + + private HciVirtualHardDisk(java.lang.String name, Output id, @Nullable HciVirtualHardDiskState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("azure:stack/hciVirtualHardDisk:HciVirtualHardDisk", name, state, makeResourceOptions(options, id), false); + } + + private static HciVirtualHardDiskArgs makeArgs(HciVirtualHardDiskArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? HciVirtualHardDiskArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() + .version(Utilities.getVersion()) + .build(); + return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id); + } + + /** + * Get an existing Host 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 state + * @param options Optional settings to control the behavior of the CustomResource. + */ + public static HciVirtualHardDisk get(java.lang.String name, Output id, @Nullable HciVirtualHardDiskState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + return new HciVirtualHardDisk(name, id, state, options); + } +} diff --git a/sdk/java/src/main/java/com/pulumi/azure/stack/HciVirtualHardDiskArgs.java b/sdk/java/src/main/java/com/pulumi/azure/stack/HciVirtualHardDiskArgs.java new file mode 100644 index 0000000000..e6d5d7c4d7 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/azure/stack/HciVirtualHardDiskArgs.java @@ -0,0 +1,548 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.azure.stack; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.String; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class HciVirtualHardDiskArgs extends com.pulumi.resources.ResourceArgs { + + public static final HciVirtualHardDiskArgs Empty = new HciVirtualHardDiskArgs(); + + /** + * The block size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + @Import(name="blockSizeInBytes") + private @Nullable Output blockSizeInBytes; + + /** + * @return The block size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + public Optional> blockSizeInBytes() { + return Optional.ofNullable(this.blockSizeInBytes); + } + + /** + * The ID of the Custom Location where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + @Import(name="customLocationId", required=true) + private Output customLocationId; + + /** + * @return The ID of the Custom Location where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + public Output customLocationId() { + return this.customLocationId; + } + + /** + * The format of the disk file. Possible values are `vhdx` and `vhd`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + @Import(name="diskFileFormat") + private @Nullable Output diskFileFormat; + + /** + * @return The format of the disk file. Possible values are `vhdx` and `vhd`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + public Optional> diskFileFormat() { + return Optional.ofNullable(this.diskFileFormat); + } + + /** + * The size of the disk in GB. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + @Import(name="diskSizeInGb", required=true) + private Output diskSizeInGb; + + /** + * @return The size of the disk in GB. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + public Output diskSizeInGb() { + return this.diskSizeInGb; + } + + /** + * Whether to enable dynamic sizing for the Azure Stack HCI Virtual Hard Disk. Defaults to `false`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + @Import(name="dynamicEnabled") + private @Nullable Output dynamicEnabled; + + /** + * @return Whether to enable dynamic sizing for the Azure Stack HCI Virtual Hard Disk. Defaults to `false`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + public Optional> dynamicEnabled() { + return Optional.ofNullable(this.dynamicEnabled); + } + + /** + * The hypervisor generation of the Azure Stack HCI Virtual Hard Disk. Possible values are `V1` and `V2`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + @Import(name="hypervGeneration") + private @Nullable Output hypervGeneration; + + /** + * @return The hypervisor generation of the Azure Stack HCI Virtual Hard Disk. Possible values are `V1` and `V2`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + public Optional> hypervGeneration() { + return Optional.ofNullable(this.hypervGeneration); + } + + /** + * The Azure Region where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + @Import(name="location") + private @Nullable Output location; + + /** + * @return The Azure Region where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + public Optional> location() { + return Optional.ofNullable(this.location); + } + + /** + * The logical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + @Import(name="logicalSectorInBytes") + private @Nullable Output logicalSectorInBytes; + + /** + * @return The logical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + public Optional> logicalSectorInBytes() { + return Optional.ofNullable(this.logicalSectorInBytes); + } + + /** + * The name which should be used for this Azure Stack HCI Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + @Import(name="name") + private @Nullable Output name; + + /** + * @return The name which should be used for this Azure Stack HCI Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + public Optional> name() { + return Optional.ofNullable(this.name); + } + + /** + * The physical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + @Import(name="physicalSectorInBytes") + private @Nullable Output physicalSectorInBytes; + + /** + * @return The physical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + public Optional> physicalSectorInBytes() { + return Optional.ofNullable(this.physicalSectorInBytes); + } + + /** + * The name of the Resource Group where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + @Import(name="resourceGroupName", required=true) + private Output resourceGroupName; + + /** + * @return The name of the Resource Group where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + public Output resourceGroupName() { + return this.resourceGroupName; + } + + /** + * The ID of the Azure Stack HCI Storage Path used for this Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + * > **Note:** If `storage_path_id` is not specified, the Virtual Hard Disk will be placed in a high availability Storage Path. If you experience a diff you may need to add this to `ignore_changes`. + * + */ + @Import(name="storagePathId") + private @Nullable Output storagePathId; + + /** + * @return The ID of the Azure Stack HCI Storage Path used for this Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + * > **Note:** If `storage_path_id` is not specified, the Virtual Hard Disk will be placed in a high availability Storage Path. If you experience a diff you may need to add this to `ignore_changes`. + * + */ + public Optional> storagePathId() { + return Optional.ofNullable(this.storagePathId); + } + + /** + * A mapping of tags which should be assigned to the Azure Stack HCI Virtual Hard Disk. + * + */ + @Import(name="tags") + private @Nullable Output> tags; + + /** + * @return A mapping of tags which should be assigned to the Azure Stack HCI Virtual Hard Disk. + * + */ + public Optional>> tags() { + return Optional.ofNullable(this.tags); + } + + private HciVirtualHardDiskArgs() {} + + private HciVirtualHardDiskArgs(HciVirtualHardDiskArgs $) { + this.blockSizeInBytes = $.blockSizeInBytes; + this.customLocationId = $.customLocationId; + this.diskFileFormat = $.diskFileFormat; + this.diskSizeInGb = $.diskSizeInGb; + this.dynamicEnabled = $.dynamicEnabled; + this.hypervGeneration = $.hypervGeneration; + this.location = $.location; + this.logicalSectorInBytes = $.logicalSectorInBytes; + this.name = $.name; + this.physicalSectorInBytes = $.physicalSectorInBytes; + this.resourceGroupName = $.resourceGroupName; + this.storagePathId = $.storagePathId; + this.tags = $.tags; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(HciVirtualHardDiskArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private HciVirtualHardDiskArgs $; + + public Builder() { + $ = new HciVirtualHardDiskArgs(); + } + + public Builder(HciVirtualHardDiskArgs defaults) { + $ = new HciVirtualHardDiskArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param blockSizeInBytes The block size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + * @return builder + * + */ + public Builder blockSizeInBytes(@Nullable Output blockSizeInBytes) { + $.blockSizeInBytes = blockSizeInBytes; + return this; + } + + /** + * @param blockSizeInBytes The block size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + * @return builder + * + */ + public Builder blockSizeInBytes(Integer blockSizeInBytes) { + return blockSizeInBytes(Output.of(blockSizeInBytes)); + } + + /** + * @param customLocationId The ID of the Custom Location where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + * @return builder + * + */ + public Builder customLocationId(Output customLocationId) { + $.customLocationId = customLocationId; + return this; + } + + /** + * @param customLocationId The ID of the Custom Location where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + * @return builder + * + */ + public Builder customLocationId(String customLocationId) { + return customLocationId(Output.of(customLocationId)); + } + + /** + * @param diskFileFormat The format of the disk file. Possible values are `vhdx` and `vhd`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + * @return builder + * + */ + public Builder diskFileFormat(@Nullable Output diskFileFormat) { + $.diskFileFormat = diskFileFormat; + return this; + } + + /** + * @param diskFileFormat The format of the disk file. Possible values are `vhdx` and `vhd`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + * @return builder + * + */ + public Builder diskFileFormat(String diskFileFormat) { + return diskFileFormat(Output.of(diskFileFormat)); + } + + /** + * @param diskSizeInGb The size of the disk in GB. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + * @return builder + * + */ + public Builder diskSizeInGb(Output diskSizeInGb) { + $.diskSizeInGb = diskSizeInGb; + return this; + } + + /** + * @param diskSizeInGb The size of the disk in GB. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + * @return builder + * + */ + public Builder diskSizeInGb(Integer diskSizeInGb) { + return diskSizeInGb(Output.of(diskSizeInGb)); + } + + /** + * @param dynamicEnabled Whether to enable dynamic sizing for the Azure Stack HCI Virtual Hard Disk. Defaults to `false`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + * @return builder + * + */ + public Builder dynamicEnabled(@Nullable Output dynamicEnabled) { + $.dynamicEnabled = dynamicEnabled; + return this; + } + + /** + * @param dynamicEnabled Whether to enable dynamic sizing for the Azure Stack HCI Virtual Hard Disk. Defaults to `false`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + * @return builder + * + */ + public Builder dynamicEnabled(Boolean dynamicEnabled) { + return dynamicEnabled(Output.of(dynamicEnabled)); + } + + /** + * @param hypervGeneration The hypervisor generation of the Azure Stack HCI Virtual Hard Disk. Possible values are `V1` and `V2`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + * @return builder + * + */ + public Builder hypervGeneration(@Nullable Output hypervGeneration) { + $.hypervGeneration = hypervGeneration; + return this; + } + + /** + * @param hypervGeneration The hypervisor generation of the Azure Stack HCI Virtual Hard Disk. Possible values are `V1` and `V2`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + * @return builder + * + */ + public Builder hypervGeneration(String hypervGeneration) { + return hypervGeneration(Output.of(hypervGeneration)); + } + + /** + * @param location The Azure Region where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + * @return builder + * + */ + public Builder location(@Nullable Output location) { + $.location = location; + return this; + } + + /** + * @param location The Azure Region where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + * @return builder + * + */ + public Builder location(String location) { + return location(Output.of(location)); + } + + /** + * @param logicalSectorInBytes The logical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + * @return builder + * + */ + public Builder logicalSectorInBytes(@Nullable Output logicalSectorInBytes) { + $.logicalSectorInBytes = logicalSectorInBytes; + return this; + } + + /** + * @param logicalSectorInBytes The logical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + * @return builder + * + */ + public Builder logicalSectorInBytes(Integer logicalSectorInBytes) { + return logicalSectorInBytes(Output.of(logicalSectorInBytes)); + } + + /** + * @param name The name which should be used for this Azure Stack HCI Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + * @return builder + * + */ + public Builder name(@Nullable Output name) { + $.name = name; + return this; + } + + /** + * @param name The name which should be used for this Azure Stack HCI Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + * @return builder + * + */ + public Builder name(String name) { + return name(Output.of(name)); + } + + /** + * @param physicalSectorInBytes The physical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + * @return builder + * + */ + public Builder physicalSectorInBytes(@Nullable Output physicalSectorInBytes) { + $.physicalSectorInBytes = physicalSectorInBytes; + return this; + } + + /** + * @param physicalSectorInBytes The physical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + * @return builder + * + */ + public Builder physicalSectorInBytes(Integer physicalSectorInBytes) { + return physicalSectorInBytes(Output.of(physicalSectorInBytes)); + } + + /** + * @param resourceGroupName The name of the Resource Group where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + * @return builder + * + */ + public Builder resourceGroupName(Output resourceGroupName) { + $.resourceGroupName = resourceGroupName; + return this; + } + + /** + * @param resourceGroupName The name of the Resource Group where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + * @return builder + * + */ + public Builder resourceGroupName(String resourceGroupName) { + return resourceGroupName(Output.of(resourceGroupName)); + } + + /** + * @param storagePathId The ID of the Azure Stack HCI Storage Path used for this Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + * > **Note:** If `storage_path_id` is not specified, the Virtual Hard Disk will be placed in a high availability Storage Path. If you experience a diff you may need to add this to `ignore_changes`. + * + * @return builder + * + */ + public Builder storagePathId(@Nullable Output storagePathId) { + $.storagePathId = storagePathId; + return this; + } + + /** + * @param storagePathId The ID of the Azure Stack HCI Storage Path used for this Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + * > **Note:** If `storage_path_id` is not specified, the Virtual Hard Disk will be placed in a high availability Storage Path. If you experience a diff you may need to add this to `ignore_changes`. + * + * @return builder + * + */ + public Builder storagePathId(String storagePathId) { + return storagePathId(Output.of(storagePathId)); + } + + /** + * @param tags A mapping of tags which should be assigned to the Azure Stack HCI Virtual Hard Disk. + * + * @return builder + * + */ + public Builder tags(@Nullable Output> tags) { + $.tags = tags; + return this; + } + + /** + * @param tags A mapping of tags which should be assigned to the Azure Stack HCI Virtual Hard Disk. + * + * @return builder + * + */ + public Builder tags(Map tags) { + return tags(Output.of(tags)); + } + + public HciVirtualHardDiskArgs build() { + if ($.customLocationId == null) { + throw new MissingRequiredPropertyException("HciVirtualHardDiskArgs", "customLocationId"); + } + if ($.diskSizeInGb == null) { + throw new MissingRequiredPropertyException("HciVirtualHardDiskArgs", "diskSizeInGb"); + } + if ($.resourceGroupName == null) { + throw new MissingRequiredPropertyException("HciVirtualHardDiskArgs", "resourceGroupName"); + } + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/azure/stack/inputs/HciVirtualHardDiskState.java b/sdk/java/src/main/java/com/pulumi/azure/stack/inputs/HciVirtualHardDiskState.java new file mode 100644 index 0000000000..e152a6b412 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/azure/stack/inputs/HciVirtualHardDiskState.java @@ -0,0 +1,538 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.azure.stack.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.Boolean; +import java.lang.Integer; +import java.lang.String; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class HciVirtualHardDiskState extends com.pulumi.resources.ResourceArgs { + + public static final HciVirtualHardDiskState Empty = new HciVirtualHardDiskState(); + + /** + * The block size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + @Import(name="blockSizeInBytes") + private @Nullable Output blockSizeInBytes; + + /** + * @return The block size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + public Optional> blockSizeInBytes() { + return Optional.ofNullable(this.blockSizeInBytes); + } + + /** + * The ID of the Custom Location where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + @Import(name="customLocationId") + private @Nullable Output customLocationId; + + /** + * @return The ID of the Custom Location where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + public Optional> customLocationId() { + return Optional.ofNullable(this.customLocationId); + } + + /** + * The format of the disk file. Possible values are `vhdx` and `vhd`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + @Import(name="diskFileFormat") + private @Nullable Output diskFileFormat; + + /** + * @return The format of the disk file. Possible values are `vhdx` and `vhd`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + public Optional> diskFileFormat() { + return Optional.ofNullable(this.diskFileFormat); + } + + /** + * The size of the disk in GB. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + @Import(name="diskSizeInGb") + private @Nullable Output diskSizeInGb; + + /** + * @return The size of the disk in GB. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + public Optional> diskSizeInGb() { + return Optional.ofNullable(this.diskSizeInGb); + } + + /** + * Whether to enable dynamic sizing for the Azure Stack HCI Virtual Hard Disk. Defaults to `false`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + @Import(name="dynamicEnabled") + private @Nullable Output dynamicEnabled; + + /** + * @return Whether to enable dynamic sizing for the Azure Stack HCI Virtual Hard Disk. Defaults to `false`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + public Optional> dynamicEnabled() { + return Optional.ofNullable(this.dynamicEnabled); + } + + /** + * The hypervisor generation of the Azure Stack HCI Virtual Hard Disk. Possible values are `V1` and `V2`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + @Import(name="hypervGeneration") + private @Nullable Output hypervGeneration; + + /** + * @return The hypervisor generation of the Azure Stack HCI Virtual Hard Disk. Possible values are `V1` and `V2`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + public Optional> hypervGeneration() { + return Optional.ofNullable(this.hypervGeneration); + } + + /** + * The Azure Region where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + @Import(name="location") + private @Nullable Output location; + + /** + * @return The Azure Region where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + public Optional> location() { + return Optional.ofNullable(this.location); + } + + /** + * The logical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + @Import(name="logicalSectorInBytes") + private @Nullable Output logicalSectorInBytes; + + /** + * @return The logical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + public Optional> logicalSectorInBytes() { + return Optional.ofNullable(this.logicalSectorInBytes); + } + + /** + * The name which should be used for this Azure Stack HCI Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + @Import(name="name") + private @Nullable Output name; + + /** + * @return The name which should be used for this Azure Stack HCI Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + public Optional> name() { + return Optional.ofNullable(this.name); + } + + /** + * The physical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + @Import(name="physicalSectorInBytes") + private @Nullable Output physicalSectorInBytes; + + /** + * @return The physical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + public Optional> physicalSectorInBytes() { + return Optional.ofNullable(this.physicalSectorInBytes); + } + + /** + * The name of the Resource Group where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + @Import(name="resourceGroupName") + private @Nullable Output resourceGroupName; + + /** + * @return The name of the Resource Group where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + */ + public Optional> resourceGroupName() { + return Optional.ofNullable(this.resourceGroupName); + } + + /** + * The ID of the Azure Stack HCI Storage Path used for this Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + * > **Note:** If `storage_path_id` is not specified, the Virtual Hard Disk will be placed in a high availability Storage Path. If you experience a diff you may need to add this to `ignore_changes`. + * + */ + @Import(name="storagePathId") + private @Nullable Output storagePathId; + + /** + * @return The ID of the Azure Stack HCI Storage Path used for this Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + * > **Note:** If `storage_path_id` is not specified, the Virtual Hard Disk will be placed in a high availability Storage Path. If you experience a diff you may need to add this to `ignore_changes`. + * + */ + public Optional> storagePathId() { + return Optional.ofNullable(this.storagePathId); + } + + /** + * A mapping of tags which should be assigned to the Azure Stack HCI Virtual Hard Disk. + * + */ + @Import(name="tags") + private @Nullable Output> tags; + + /** + * @return A mapping of tags which should be assigned to the Azure Stack HCI Virtual Hard Disk. + * + */ + public Optional>> tags() { + return Optional.ofNullable(this.tags); + } + + private HciVirtualHardDiskState() {} + + private HciVirtualHardDiskState(HciVirtualHardDiskState $) { + this.blockSizeInBytes = $.blockSizeInBytes; + this.customLocationId = $.customLocationId; + this.diskFileFormat = $.diskFileFormat; + this.diskSizeInGb = $.diskSizeInGb; + this.dynamicEnabled = $.dynamicEnabled; + this.hypervGeneration = $.hypervGeneration; + this.location = $.location; + this.logicalSectorInBytes = $.logicalSectorInBytes; + this.name = $.name; + this.physicalSectorInBytes = $.physicalSectorInBytes; + this.resourceGroupName = $.resourceGroupName; + this.storagePathId = $.storagePathId; + this.tags = $.tags; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(HciVirtualHardDiskState defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private HciVirtualHardDiskState $; + + public Builder() { + $ = new HciVirtualHardDiskState(); + } + + public Builder(HciVirtualHardDiskState defaults) { + $ = new HciVirtualHardDiskState(Objects.requireNonNull(defaults)); + } + + /** + * @param blockSizeInBytes The block size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + * @return builder + * + */ + public Builder blockSizeInBytes(@Nullable Output blockSizeInBytes) { + $.blockSizeInBytes = blockSizeInBytes; + return this; + } + + /** + * @param blockSizeInBytes The block size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + * @return builder + * + */ + public Builder blockSizeInBytes(Integer blockSizeInBytes) { + return blockSizeInBytes(Output.of(blockSizeInBytes)); + } + + /** + * @param customLocationId The ID of the Custom Location where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + * @return builder + * + */ + public Builder customLocationId(@Nullable Output customLocationId) { + $.customLocationId = customLocationId; + return this; + } + + /** + * @param customLocationId The ID of the Custom Location where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + * @return builder + * + */ + public Builder customLocationId(String customLocationId) { + return customLocationId(Output.of(customLocationId)); + } + + /** + * @param diskFileFormat The format of the disk file. Possible values are `vhdx` and `vhd`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + * @return builder + * + */ + public Builder diskFileFormat(@Nullable Output diskFileFormat) { + $.diskFileFormat = diskFileFormat; + return this; + } + + /** + * @param diskFileFormat The format of the disk file. Possible values are `vhdx` and `vhd`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + * @return builder + * + */ + public Builder diskFileFormat(String diskFileFormat) { + return diskFileFormat(Output.of(diskFileFormat)); + } + + /** + * @param diskSizeInGb The size of the disk in GB. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + * @return builder + * + */ + public Builder diskSizeInGb(@Nullable Output diskSizeInGb) { + $.diskSizeInGb = diskSizeInGb; + return this; + } + + /** + * @param diskSizeInGb The size of the disk in GB. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + * @return builder + * + */ + public Builder diskSizeInGb(Integer diskSizeInGb) { + return diskSizeInGb(Output.of(diskSizeInGb)); + } + + /** + * @param dynamicEnabled Whether to enable dynamic sizing for the Azure Stack HCI Virtual Hard Disk. Defaults to `false`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + * @return builder + * + */ + public Builder dynamicEnabled(@Nullable Output dynamicEnabled) { + $.dynamicEnabled = dynamicEnabled; + return this; + } + + /** + * @param dynamicEnabled Whether to enable dynamic sizing for the Azure Stack HCI Virtual Hard Disk. Defaults to `false`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + * @return builder + * + */ + public Builder dynamicEnabled(Boolean dynamicEnabled) { + return dynamicEnabled(Output.of(dynamicEnabled)); + } + + /** + * @param hypervGeneration The hypervisor generation of the Azure Stack HCI Virtual Hard Disk. Possible values are `V1` and `V2`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + * @return builder + * + */ + public Builder hypervGeneration(@Nullable Output hypervGeneration) { + $.hypervGeneration = hypervGeneration; + return this; + } + + /** + * @param hypervGeneration The hypervisor generation of the Azure Stack HCI Virtual Hard Disk. Possible values are `V1` and `V2`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + * @return builder + * + */ + public Builder hypervGeneration(String hypervGeneration) { + return hypervGeneration(Output.of(hypervGeneration)); + } + + /** + * @param location The Azure Region where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + * @return builder + * + */ + public Builder location(@Nullable Output location) { + $.location = location; + return this; + } + + /** + * @param location The Azure Region where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + * @return builder + * + */ + public Builder location(String location) { + return location(Output.of(location)); + } + + /** + * @param logicalSectorInBytes The logical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + * @return builder + * + */ + public Builder logicalSectorInBytes(@Nullable Output logicalSectorInBytes) { + $.logicalSectorInBytes = logicalSectorInBytes; + return this; + } + + /** + * @param logicalSectorInBytes The logical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + * @return builder + * + */ + public Builder logicalSectorInBytes(Integer logicalSectorInBytes) { + return logicalSectorInBytes(Output.of(logicalSectorInBytes)); + } + + /** + * @param name The name which should be used for this Azure Stack HCI Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + * @return builder + * + */ + public Builder name(@Nullable Output name) { + $.name = name; + return this; + } + + /** + * @param name The name which should be used for this Azure Stack HCI Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + * @return builder + * + */ + public Builder name(String name) { + return name(Output.of(name)); + } + + /** + * @param physicalSectorInBytes The physical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + * @return builder + * + */ + public Builder physicalSectorInBytes(@Nullable Output physicalSectorInBytes) { + $.physicalSectorInBytes = physicalSectorInBytes; + return this; + } + + /** + * @param physicalSectorInBytes The physical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + * @return builder + * + */ + public Builder physicalSectorInBytes(Integer physicalSectorInBytes) { + return physicalSectorInBytes(Output.of(physicalSectorInBytes)); + } + + /** + * @param resourceGroupName The name of the Resource Group where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + * @return builder + * + */ + public Builder resourceGroupName(@Nullable Output resourceGroupName) { + $.resourceGroupName = resourceGroupName; + return this; + } + + /** + * @param resourceGroupName The name of the Resource Group where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + * @return builder + * + */ + public Builder resourceGroupName(String resourceGroupName) { + return resourceGroupName(Output.of(resourceGroupName)); + } + + /** + * @param storagePathId The ID of the Azure Stack HCI Storage Path used for this Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + * > **Note:** If `storage_path_id` is not specified, the Virtual Hard Disk will be placed in a high availability Storage Path. If you experience a diff you may need to add this to `ignore_changes`. + * + * @return builder + * + */ + public Builder storagePathId(@Nullable Output storagePathId) { + $.storagePathId = storagePathId; + return this; + } + + /** + * @param storagePathId The ID of the Azure Stack HCI Storage Path used for this Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + * > **Note:** If `storage_path_id` is not specified, the Virtual Hard Disk will be placed in a high availability Storage Path. If you experience a diff you may need to add this to `ignore_changes`. + * + * @return builder + * + */ + public Builder storagePathId(String storagePathId) { + return storagePathId(Output.of(storagePathId)); + } + + /** + * @param tags A mapping of tags which should be assigned to the Azure Stack HCI Virtual Hard Disk. + * + * @return builder + * + */ + public Builder tags(@Nullable Output> tags) { + $.tags = tags; + return this; + } + + /** + * @param tags A mapping of tags which should be assigned to the Azure Stack HCI Virtual Hard Disk. + * + * @return builder + * + */ + public Builder tags(Map tags) { + return tags(Output.of(tags)); + } + + public HciVirtualHardDiskState build() { + return $; + } + } + +} diff --git a/sdk/nodejs/compute/bastionHost.ts b/sdk/nodejs/compute/bastionHost.ts index a345cb9d6a..7f9a6f2288 100644 --- a/sdk/nodejs/compute/bastionHost.ts +++ b/sdk/nodejs/compute/bastionHost.ts @@ -136,6 +136,12 @@ export class BastionHost extends pulumi.CustomResource { * > **Note:** `scaleUnits` only can be changed when `sku` is `Standard`. `scaleUnits` is always `2` when `sku` is `Basic`. */ public readonly scaleUnits!: pulumi.Output; + /** + * Is Session Recording feature enabled for the Bastion Host. Defaults to `false`. + * + * > **Note:** `sessionRecordingEnabled` is only supported when `sku` is `Premium`. + */ + public readonly sessionRecordingEnabled!: pulumi.Output; /** * Is Shareable Link feature enabled for the Bastion Host. Defaults to `false`. * @@ -143,7 +149,7 @@ export class BastionHost extends pulumi.CustomResource { */ public readonly shareableLinkEnabled!: pulumi.Output; /** - * The SKU of the Bastion Host. Accepted values are `Developer`, `Basic` and `Standard`. Defaults to `Basic`. + * The SKU of the Bastion Host. Accepted values are `Developer`, `Basic`, `Standard` and `Premium`. Defaults to `Basic`. * * > **Note** Downgrading the SKU will force a new resource to be created. */ @@ -186,6 +192,7 @@ export class BastionHost extends pulumi.CustomResource { resourceInputs["name"] = state ? state.name : undefined; resourceInputs["resourceGroupName"] = state ? state.resourceGroupName : undefined; resourceInputs["scaleUnits"] = state ? state.scaleUnits : undefined; + resourceInputs["sessionRecordingEnabled"] = state ? state.sessionRecordingEnabled : undefined; resourceInputs["shareableLinkEnabled"] = state ? state.shareableLinkEnabled : undefined; resourceInputs["sku"] = state ? state.sku : undefined; resourceInputs["tags"] = state ? state.tags : undefined; @@ -205,6 +212,7 @@ export class BastionHost extends pulumi.CustomResource { resourceInputs["name"] = args ? args.name : undefined; resourceInputs["resourceGroupName"] = args ? args.resourceGroupName : undefined; resourceInputs["scaleUnits"] = args ? args.scaleUnits : undefined; + resourceInputs["sessionRecordingEnabled"] = args ? args.sessionRecordingEnabled : undefined; resourceInputs["shareableLinkEnabled"] = args ? args.shareableLinkEnabled : undefined; resourceInputs["sku"] = args ? args.sku : undefined; resourceInputs["tags"] = args ? args.tags : undefined; @@ -269,6 +277,12 @@ export interface BastionHostState { * > **Note:** `scaleUnits` only can be changed when `sku` is `Standard`. `scaleUnits` is always `2` when `sku` is `Basic`. */ scaleUnits?: pulumi.Input; + /** + * Is Session Recording feature enabled for the Bastion Host. Defaults to `false`. + * + * > **Note:** `sessionRecordingEnabled` is only supported when `sku` is `Premium`. + */ + sessionRecordingEnabled?: pulumi.Input; /** * Is Shareable Link feature enabled for the Bastion Host. Defaults to `false`. * @@ -276,7 +290,7 @@ export interface BastionHostState { */ shareableLinkEnabled?: pulumi.Input; /** - * The SKU of the Bastion Host. Accepted values are `Developer`, `Basic` and `Standard`. Defaults to `Basic`. + * The SKU of the Bastion Host. Accepted values are `Developer`, `Basic`, `Standard` and `Premium`. Defaults to `Basic`. * * > **Note** Downgrading the SKU will force a new resource to be created. */ @@ -345,6 +359,12 @@ export interface BastionHostArgs { * > **Note:** `scaleUnits` only can be changed when `sku` is `Standard`. `scaleUnits` is always `2` when `sku` is `Basic`. */ scaleUnits?: pulumi.Input; + /** + * Is Session Recording feature enabled for the Bastion Host. Defaults to `false`. + * + * > **Note:** `sessionRecordingEnabled` is only supported when `sku` is `Premium`. + */ + sessionRecordingEnabled?: pulumi.Input; /** * Is Shareable Link feature enabled for the Bastion Host. Defaults to `false`. * @@ -352,7 +372,7 @@ export interface BastionHostArgs { */ shareableLinkEnabled?: pulumi.Input; /** - * The SKU of the Bastion Host. Accepted values are `Developer`, `Basic` and `Standard`. Defaults to `Basic`. + * The SKU of the Bastion Host. Accepted values are `Developer`, `Basic`, `Standard` and `Premium`. Defaults to `Basic`. * * > **Note** Downgrading the SKU will force a new resource to be created. */ diff --git a/sdk/nodejs/compute/getBastionHost.ts b/sdk/nodejs/compute/getBastionHost.ts index f58d86eae6..42c8f00023 100644 --- a/sdk/nodejs/compute/getBastionHost.ts +++ b/sdk/nodejs/compute/getBastionHost.ts @@ -85,6 +85,7 @@ export interface GetBastionHostResult { * The number of scale units provisioned for the Bastion Host. */ readonly scaleUnits: number; + readonly sessionRecordingEnabled: boolean; /** * Is Shareable Link feature enabled for the Bastion Host. */ diff --git a/sdk/nodejs/loganalytics/cluster.ts b/sdk/nodejs/loganalytics/cluster.ts index 1ad994b8ac..93797fcf57 100644 --- a/sdk/nodejs/loganalytics/cluster.ts +++ b/sdk/nodejs/loganalytics/cluster.ts @@ -88,7 +88,7 @@ export class Cluster extends pulumi.CustomResource { */ public readonly resourceGroupName!: pulumi.Output; /** - * The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `500`, `1000`, `2000` or `5000`. Defaults to `100`. + * The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `200`, `300`, `400`, `500`, `1000`, `2000`, `5000`, `10000`, `25000`, or `50000`. Defaults to `100`. * * > **NOTE:** The cluster capacity must start at 100 GB and can be set to 500, 1000, 2000 or 5000 GB/day. For more information on cluster costs, see [Dedicated clusters](https://docs.microsoft.com/en-us/azure/azure-monitor/logs/cost-logs#dedicated-clusters). In v3.x the default value is `1000` GB, in v4.0 of the provider this will default to `100` GB. */ @@ -164,7 +164,7 @@ export interface ClusterState { */ resourceGroupName?: pulumi.Input; /** - * The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `500`, `1000`, `2000` or `5000`. Defaults to `100`. + * The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `200`, `300`, `400`, `500`, `1000`, `2000`, `5000`, `10000`, `25000`, or `50000`. Defaults to `100`. * * > **NOTE:** The cluster capacity must start at 100 GB and can be set to 500, 1000, 2000 or 5000 GB/day. For more information on cluster costs, see [Dedicated clusters](https://docs.microsoft.com/en-us/azure/azure-monitor/logs/cost-logs#dedicated-clusters). In v3.x the default value is `1000` GB, in v4.0 of the provider this will default to `100` GB. */ @@ -196,7 +196,7 @@ export interface ClusterArgs { */ resourceGroupName: pulumi.Input; /** - * The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `500`, `1000`, `2000` or `5000`. Defaults to `100`. + * The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `200`, `300`, `400`, `500`, `1000`, `2000`, `5000`, `10000`, `25000`, or `50000`. Defaults to `100`. * * > **NOTE:** The cluster capacity must start at 100 GB and can be set to 500, 1000, 2000 or 5000 GB/day. For more information on cluster costs, see [Dedicated clusters](https://docs.microsoft.com/en-us/azure/azure-monitor/logs/cost-logs#dedicated-clusters). In v3.x the default value is `1000` GB, in v4.0 of the provider this will default to `100` GB. */ diff --git a/sdk/nodejs/management/groupSubscriptionAssociation.ts b/sdk/nodejs/management/groupSubscriptionAssociation.ts index 0ed5ec6b05..8007657d74 100644 --- a/sdk/nodejs/management/groupSubscriptionAssociation.ts +++ b/sdk/nodejs/management/groupSubscriptionAssociation.ts @@ -32,7 +32,7 @@ import * as utilities from "../utilities"; * Managements can be imported using the `resource id`, e.g. * * ```sh - * $ pulumi import azure:management/groupSubscriptionAssociation:GroupSubscriptionAssociation example /managementGroup/MyManagementGroup/subscription/12345678-1234-1234-1234-123456789012 + * $ pulumi import azure:management/groupSubscriptionAssociation:GroupSubscriptionAssociation example /providers/Microsoft.Management/managementGroups/MyManagementGroup/subscriptions/12345678-1234-1234-1234-123456789012 * ``` */ export class GroupSubscriptionAssociation extends pulumi.CustomResource { diff --git a/sdk/nodejs/stack/hciVirtualHardDisk.ts b/sdk/nodejs/stack/hciVirtualHardDisk.ts new file mode 100644 index 0000000000..fd1b14a6fe --- /dev/null +++ b/sdk/nodejs/stack/hciVirtualHardDisk.ts @@ -0,0 +1,308 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** 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"; + +/** + * Manages an Azure Stack HCI Virtual Hard Disk. + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as azure from "@pulumi/azure"; + * + * const example = new azure.core.ResourceGroup("example", { + * name: "example-rg", + * location: "West Europe", + * }); + * const exampleHciStoragePath = new azure.stack.HciStoragePath("example", { + * name: "example-sp", + * resourceGroupName: example.name, + * location: example.location, + * customLocationId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/cl1", + * path: "C:\\ClusterStorage\\UserStorage_2\\sp-example", + * tags: { + * foo: "bar", + * }, + * }); + * const exampleHciVirtualHardDisk = new azure.stack.HciVirtualHardDisk("example", { + * name: "example-vhd", + * resourceGroupName: example.name, + * location: example.location, + * customLocationId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/cl1", + * diskSizeInGb: 2, + * storagePathId: exampleHciStoragePath.id, + * tags: { + * foo: "bar", + * }, + * }); + * ``` + * + * ## Import + * + * Azure Stack HCI Virtual Hard Disks can be imported using the `resource id`, e.g. + * + * ```sh + * $ pulumi import azure:stack/hciVirtualHardDisk:HciVirtualHardDisk example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.AzureStackHCI/virtualHardDisks/disk1 + * ``` + */ +export class HciVirtualHardDisk extends pulumi.CustomResource { + /** + * Get an existing HciVirtualHardDisk 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 state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: HciVirtualHardDiskState, opts?: pulumi.CustomResourceOptions): HciVirtualHardDisk { + return new HciVirtualHardDisk(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'azure:stack/hciVirtualHardDisk:HciVirtualHardDisk'; + + /** + * Returns true if the given object is an instance of HciVirtualHardDisk. 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 HciVirtualHardDisk { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === HciVirtualHardDisk.__pulumiType; + } + + /** + * The block size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + */ + public readonly blockSizeInBytes!: pulumi.Output; + /** + * The ID of the Custom Location where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + */ + public readonly customLocationId!: pulumi.Output; + /** + * The format of the disk file. Possible values are `vhdx` and `vhd`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + */ + public readonly diskFileFormat!: pulumi.Output; + /** + * The size of the disk in GB. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + */ + public readonly diskSizeInGb!: pulumi.Output; + /** + * Whether to enable dynamic sizing for the Azure Stack HCI Virtual Hard Disk. Defaults to `false`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + */ + public readonly dynamicEnabled!: pulumi.Output; + /** + * The hypervisor generation of the Azure Stack HCI Virtual Hard Disk. Possible values are `V1` and `V2`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + */ + public readonly hypervGeneration!: pulumi.Output; + /** + * The Azure Region where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + */ + public readonly location!: pulumi.Output; + /** + * The logical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + */ + public readonly logicalSectorInBytes!: pulumi.Output; + /** + * The name which should be used for this Azure Stack HCI Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + */ + public readonly name!: pulumi.Output; + /** + * The physical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + */ + public readonly physicalSectorInBytes!: pulumi.Output; + /** + * The name of the Resource Group where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + */ + public readonly resourceGroupName!: pulumi.Output; + /** + * The ID of the Azure Stack HCI Storage Path used for this Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + * > **Note:** If `storagePathId` is not specified, the Virtual Hard Disk will be placed in a high availability Storage Path. If you experience a diff you may need to add this to `ignoreChanges`. + */ + public readonly storagePathId!: pulumi.Output; + /** + * A mapping of tags which should be assigned to the Azure Stack HCI Virtual Hard Disk. + */ + public readonly tags!: pulumi.Output<{[key: string]: string} | undefined>; + + /** + * Create a HciVirtualHardDisk 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: HciVirtualHardDiskArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: HciVirtualHardDiskArgs | HciVirtualHardDiskState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as HciVirtualHardDiskState | undefined; + resourceInputs["blockSizeInBytes"] = state ? state.blockSizeInBytes : undefined; + resourceInputs["customLocationId"] = state ? state.customLocationId : undefined; + resourceInputs["diskFileFormat"] = state ? state.diskFileFormat : undefined; + resourceInputs["diskSizeInGb"] = state ? state.diskSizeInGb : undefined; + resourceInputs["dynamicEnabled"] = state ? state.dynamicEnabled : undefined; + resourceInputs["hypervGeneration"] = state ? state.hypervGeneration : undefined; + resourceInputs["location"] = state ? state.location : undefined; + resourceInputs["logicalSectorInBytes"] = state ? state.logicalSectorInBytes : undefined; + resourceInputs["name"] = state ? state.name : undefined; + resourceInputs["physicalSectorInBytes"] = state ? state.physicalSectorInBytes : undefined; + resourceInputs["resourceGroupName"] = state ? state.resourceGroupName : undefined; + resourceInputs["storagePathId"] = state ? state.storagePathId : undefined; + resourceInputs["tags"] = state ? state.tags : undefined; + } else { + const args = argsOrState as HciVirtualHardDiskArgs | undefined; + if ((!args || args.customLocationId === undefined) && !opts.urn) { + throw new Error("Missing required property 'customLocationId'"); + } + if ((!args || args.diskSizeInGb === undefined) && !opts.urn) { + throw new Error("Missing required property 'diskSizeInGb'"); + } + if ((!args || args.resourceGroupName === undefined) && !opts.urn) { + throw new Error("Missing required property 'resourceGroupName'"); + } + resourceInputs["blockSizeInBytes"] = args ? args.blockSizeInBytes : undefined; + resourceInputs["customLocationId"] = args ? args.customLocationId : undefined; + resourceInputs["diskFileFormat"] = args ? args.diskFileFormat : undefined; + resourceInputs["diskSizeInGb"] = args ? args.diskSizeInGb : undefined; + resourceInputs["dynamicEnabled"] = args ? args.dynamicEnabled : undefined; + resourceInputs["hypervGeneration"] = args ? args.hypervGeneration : undefined; + resourceInputs["location"] = args ? args.location : undefined; + resourceInputs["logicalSectorInBytes"] = args ? args.logicalSectorInBytes : undefined; + resourceInputs["name"] = args ? args.name : undefined; + resourceInputs["physicalSectorInBytes"] = args ? args.physicalSectorInBytes : undefined; + resourceInputs["resourceGroupName"] = args ? args.resourceGroupName : undefined; + resourceInputs["storagePathId"] = args ? args.storagePathId : undefined; + resourceInputs["tags"] = args ? args.tags : undefined; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + super(HciVirtualHardDisk.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering HciVirtualHardDisk resources. + */ +export interface HciVirtualHardDiskState { + /** + * The block size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + */ + blockSizeInBytes?: pulumi.Input; + /** + * The ID of the Custom Location where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + */ + customLocationId?: pulumi.Input; + /** + * The format of the disk file. Possible values are `vhdx` and `vhd`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + */ + diskFileFormat?: pulumi.Input; + /** + * The size of the disk in GB. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + */ + diskSizeInGb?: pulumi.Input; + /** + * Whether to enable dynamic sizing for the Azure Stack HCI Virtual Hard Disk. Defaults to `false`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + */ + dynamicEnabled?: pulumi.Input; + /** + * The hypervisor generation of the Azure Stack HCI Virtual Hard Disk. Possible values are `V1` and `V2`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + */ + hypervGeneration?: pulumi.Input; + /** + * The Azure Region where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + */ + location?: pulumi.Input; + /** + * The logical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + */ + logicalSectorInBytes?: pulumi.Input; + /** + * The name which should be used for this Azure Stack HCI Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + */ + name?: pulumi.Input; + /** + * The physical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + */ + physicalSectorInBytes?: pulumi.Input; + /** + * The name of the Resource Group where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + */ + resourceGroupName?: pulumi.Input; + /** + * The ID of the Azure Stack HCI Storage Path used for this Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + * > **Note:** If `storagePathId` is not specified, the Virtual Hard Disk will be placed in a high availability Storage Path. If you experience a diff you may need to add this to `ignoreChanges`. + */ + storagePathId?: pulumi.Input; + /** + * A mapping of tags which should be assigned to the Azure Stack HCI Virtual Hard Disk. + */ + tags?: pulumi.Input<{[key: string]: pulumi.Input}>; +} + +/** + * The set of arguments for constructing a HciVirtualHardDisk resource. + */ +export interface HciVirtualHardDiskArgs { + /** + * The block size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + */ + blockSizeInBytes?: pulumi.Input; + /** + * The ID of the Custom Location where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + */ + customLocationId: pulumi.Input; + /** + * The format of the disk file. Possible values are `vhdx` and `vhd`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + */ + diskFileFormat?: pulumi.Input; + /** + * The size of the disk in GB. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + */ + diskSizeInGb: pulumi.Input; + /** + * Whether to enable dynamic sizing for the Azure Stack HCI Virtual Hard Disk. Defaults to `false`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + */ + dynamicEnabled?: pulumi.Input; + /** + * The hypervisor generation of the Azure Stack HCI Virtual Hard Disk. Possible values are `V1` and `V2`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + */ + hypervGeneration?: pulumi.Input; + /** + * The Azure Region where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + */ + location?: pulumi.Input; + /** + * The logical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + */ + logicalSectorInBytes?: pulumi.Input; + /** + * The name which should be used for this Azure Stack HCI Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + */ + name?: pulumi.Input; + /** + * The physical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + */ + physicalSectorInBytes?: pulumi.Input; + /** + * The name of the Resource Group where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + */ + resourceGroupName: pulumi.Input; + /** + * The ID of the Azure Stack HCI Storage Path used for this Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + * + * > **Note:** If `storagePathId` is not specified, the Virtual Hard Disk will be placed in a high availability Storage Path. If you experience a diff you may need to add this to `ignoreChanges`. + */ + storagePathId?: pulumi.Input; + /** + * A mapping of tags which should be assigned to the Azure Stack HCI Virtual Hard Disk. + */ + tags?: pulumi.Input<{[key: string]: pulumi.Input}>; +} diff --git a/sdk/nodejs/stack/index.ts b/sdk/nodejs/stack/index.ts index c7950d9abb..8d13bdd101 100644 --- a/sdk/nodejs/stack/index.ts +++ b/sdk/nodejs/stack/index.ts @@ -30,6 +30,11 @@ export type HciStoragePath = import("./hciStoragePath").HciStoragePath; export const HciStoragePath: typeof import("./hciStoragePath").HciStoragePath = null as any; utilities.lazyLoad(exports, ["HciStoragePath"], () => require("./hciStoragePath")); +export { HciVirtualHardDiskArgs, HciVirtualHardDiskState } from "./hciVirtualHardDisk"; +export type HciVirtualHardDisk = import("./hciVirtualHardDisk").HciVirtualHardDisk; +export const HciVirtualHardDisk: typeof import("./hciVirtualHardDisk").HciVirtualHardDisk = null as any; +utilities.lazyLoad(exports, ["HciVirtualHardDisk"], () => require("./hciVirtualHardDisk")); + const _module = { version: utilities.getVersion(), @@ -43,6 +48,8 @@ const _module = { return new HciLogicalNetwork(name, undefined, { urn }) case "azure:stack/hciStoragePath:HciStoragePath": return new HciStoragePath(name, undefined, { urn }) + case "azure:stack/hciVirtualHardDisk:HciVirtualHardDisk": + return new HciVirtualHardDisk(name, undefined, { urn }) default: throw new Error(`unknown resource type ${type}`); } @@ -52,3 +59,4 @@ pulumi.runtime.registerResourceModule("azure", "stack/hciCluster", _module) pulumi.runtime.registerResourceModule("azure", "stack/hciDeploymentSetting", _module) pulumi.runtime.registerResourceModule("azure", "stack/hciLogicalNetwork", _module) pulumi.runtime.registerResourceModule("azure", "stack/hciStoragePath", _module) +pulumi.runtime.registerResourceModule("azure", "stack/hciVirtualHardDisk", _module) diff --git a/sdk/nodejs/tsconfig.json b/sdk/nodejs/tsconfig.json index 94d404572b..7ab4117a5d 100644 --- a/sdk/nodejs/tsconfig.json +++ b/sdk/nodejs/tsconfig.json @@ -1456,6 +1456,7 @@ "stack/hciDeploymentSetting.ts", "stack/hciLogicalNetwork.ts", "stack/hciStoragePath.ts", + "stack/hciVirtualHardDisk.ts", "stack/index.ts", "storage/account.ts", "storage/accountNetworkRules.ts", diff --git a/sdk/nodejs/types/input.ts b/sdk/nodejs/types/input.ts index bd7bbdc947..d181bb5273 100644 --- a/sdk/nodejs/types/input.ts +++ b/sdk/nodejs/types/input.ts @@ -693,7 +693,7 @@ export namespace apimanagement { */ headers?: pulumi.Input[]>; /** - * One or more `representation` blocks as defined below. + * One or more `representation` blocks as defined above. */ representations?: pulumi.Input[]>; /** @@ -21888,6 +21888,8 @@ export namespace containerapp { trafficWeights: pulumi.Input[]>; /** * The transport method for the Ingress. Possible values are `auto`, `http`, `http2` and `tcp`. Defaults to `auto`. + * + * > **Note:** if `transport` is set to `tcp`, `exposedPort` and `targetPort` should be set at the same time. */ transport?: pulumi.Input; } @@ -22092,7 +22094,7 @@ export namespace containerapp { */ envs?: pulumi.Input[]>; /** - * The amount of ephemeral storage available to the Container App. + * The amount of ephemeral storage available to the Container App. * * > **NOTE:** `ephemeralStorage` is currently in preview and not configurable at this time. */ @@ -40248,7 +40250,7 @@ export namespace mssql { */ capacity: pulumi.Input; /** - * The `family` of hardware `Gen4`, `Gen5`, `Fsv2`, `MOPRMS`, or `DC`. + * The `family` of hardware `Gen4`, `Gen5`, `Fsv2`, `MOPRMS`, `PRMS`, or `DC`. */ family?: pulumi.Input; /** diff --git a/sdk/nodejs/types/output.ts b/sdk/nodejs/types/output.ts index 58b79c622d..85a7b52441 100644 --- a/sdk/nodejs/types/output.ts +++ b/sdk/nodejs/types/output.ts @@ -599,7 +599,7 @@ export namespace apimanagement { */ headers?: outputs.apimanagement.ApiOperationResponseHeader[]; /** - * One or more `representation` blocks as defined below. + * One or more `representation` blocks as defined above. */ representations?: outputs.apimanagement.ApiOperationResponseRepresentation[]; /** @@ -29150,6 +29150,8 @@ export namespace containerapp { trafficWeights: outputs.containerapp.AppIngressTrafficWeight[]; /** * The transport method for the Ingress. Possible values are `auto`, `http`, `http2` and `tcp`. Defaults to `auto`. + * + * > **Note:** if `transport` is set to `tcp`, `exposedPort` and `targetPort` should be set at the same time. */ transport?: string; } @@ -29354,7 +29356,7 @@ export namespace containerapp { */ envs?: outputs.containerapp.AppTemplateContainerEnv[]; /** - * The amount of ephemeral storage available to the Container App. + * The amount of ephemeral storage available to the Container App. * * > **NOTE:** `ephemeralStorage` is currently in preview and not configurable at this time. */ @@ -51064,7 +51066,7 @@ export namespace mssql { */ capacity: number; /** - * The `family` of hardware `Gen4`, `Gen5`, `Fsv2`, `MOPRMS`, or `DC`. + * The `family` of hardware `Gen4`, `Gen5`, `Fsv2`, `MOPRMS`, `PRMS`, or `DC`. */ family?: string; /** diff --git a/sdk/python/pulumi_azure/__init__.py b/sdk/python/pulumi_azure/__init__.py index 835ae19c1f..f4e9ab52d8 100644 --- a/sdk/python/pulumi_azure/__init__.py +++ b/sdk/python/pulumi_azure/__init__.py @@ -8191,6 +8191,14 @@ "azure:stack/hciStoragePath:HciStoragePath": "HciStoragePath" } }, + { + "pkg": "azure", + "mod": "stack/hciVirtualHardDisk", + "fqn": "pulumi_azure.stack", + "classes": { + "azure:stack/hciVirtualHardDisk:HciVirtualHardDisk": "HciVirtualHardDisk" + } + }, { "pkg": "azure", "mod": "storage/account", diff --git a/sdk/python/pulumi_azure/apimanagement/_inputs.py b/sdk/python/pulumi_azure/apimanagement/_inputs.py index e777af0b2b..b88ce9f69a 100644 --- a/sdk/python/pulumi_azure/apimanagement/_inputs.py +++ b/sdk/python/pulumi_azure/apimanagement/_inputs.py @@ -2691,7 +2691,7 @@ class ApiOperationResponseArgsDict(TypedDict): """ representations: NotRequired[pulumi.Input[Sequence[pulumi.Input['ApiOperationResponseRepresentationArgsDict']]]] """ - One or more `representation` blocks as defined below. + One or more `representation` blocks as defined above. """ elif False: ApiOperationResponseArgsDict: TypeAlias = Mapping[str, Any] @@ -2707,7 +2707,7 @@ def __init__(__self__, *, :param pulumi.Input[int] status_code: The HTTP Status Code. :param pulumi.Input[str] description: A description of the HTTP Response, which may include HTML tags. :param pulumi.Input[Sequence[pulumi.Input['ApiOperationResponseHeaderArgs']]] headers: One or more `header` blocks as defined above. - :param pulumi.Input[Sequence[pulumi.Input['ApiOperationResponseRepresentationArgs']]] representations: One or more `representation` blocks as defined below. + :param pulumi.Input[Sequence[pulumi.Input['ApiOperationResponseRepresentationArgs']]] representations: One or more `representation` blocks as defined above. """ pulumi.set(__self__, "status_code", status_code) if description is not None: @@ -2757,7 +2757,7 @@ def headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ApiOperati @pulumi.getter def representations(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ApiOperationResponseRepresentationArgs']]]]: """ - One or more `representation` blocks as defined below. + One or more `representation` blocks as defined above. """ return pulumi.get(self, "representations") diff --git a/sdk/python/pulumi_azure/apimanagement/outputs.py b/sdk/python/pulumi_azure/apimanagement/outputs.py index 2e0b5ebba7..ab07aec1c9 100644 --- a/sdk/python/pulumi_azure/apimanagement/outputs.py +++ b/sdk/python/pulumi_azure/apimanagement/outputs.py @@ -2012,7 +2012,7 @@ def __init__(__self__, *, :param int status_code: The HTTP Status Code. :param str description: A description of the HTTP Response, which may include HTML tags. :param Sequence['ApiOperationResponseHeaderArgs'] headers: One or more `header` blocks as defined above. - :param Sequence['ApiOperationResponseRepresentationArgs'] representations: One or more `representation` blocks as defined below. + :param Sequence['ApiOperationResponseRepresentationArgs'] representations: One or more `representation` blocks as defined above. """ pulumi.set(__self__, "status_code", status_code) if description is not None: @@ -2050,7 +2050,7 @@ def headers(self) -> Optional[Sequence['outputs.ApiOperationResponseHeader']]: @pulumi.getter def representations(self) -> Optional[Sequence['outputs.ApiOperationResponseRepresentation']]: """ - One or more `representation` blocks as defined below. + One or more `representation` blocks as defined above. """ return pulumi.get(self, "representations") diff --git a/sdk/python/pulumi_azure/compute/bastion_host.py b/sdk/python/pulumi_azure/compute/bastion_host.py index 0782d77c45..2a3d2cd18b 100644 --- a/sdk/python/pulumi_azure/compute/bastion_host.py +++ b/sdk/python/pulumi_azure/compute/bastion_host.py @@ -30,6 +30,7 @@ def __init__(__self__, *, location: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, scale_units: Optional[pulumi.Input[int]] = None, + session_recording_enabled: Optional[pulumi.Input[bool]] = None, shareable_link_enabled: Optional[pulumi.Input[bool]] = None, sku: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, @@ -54,10 +55,13 @@ def __init__(__self__, *, :param pulumi.Input[int] scale_units: The number of scale units with which to provision the Bastion Host. Possible values are between `2` and `50`. Defaults to `2`. > **Note:** `scale_units` only can be changed when `sku` is `Standard`. `scale_units` is always `2` when `sku` is `Basic`. + :param pulumi.Input[bool] session_recording_enabled: Is Session Recording feature enabled for the Bastion Host. Defaults to `false`. + + > **Note:** `session_recording_enabled` is only supported when `sku` is `Premium`. :param pulumi.Input[bool] shareable_link_enabled: Is Shareable Link feature enabled for the Bastion Host. Defaults to `false`. > **Note:** `shareable_link_enabled` is only supported when `sku` is `Standard`. - :param pulumi.Input[str] sku: The SKU of the Bastion Host. Accepted values are `Developer`, `Basic` and `Standard`. Defaults to `Basic`. + :param pulumi.Input[str] sku: The SKU of the Bastion Host. Accepted values are `Developer`, `Basic`, `Standard` and `Premium`. Defaults to `Basic`. > **Note** Downgrading the SKU will force a new resource to be created. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource. @@ -83,6 +87,8 @@ def __init__(__self__, *, pulumi.set(__self__, "name", name) if scale_units is not None: pulumi.set(__self__, "scale_units", scale_units) + if session_recording_enabled is not None: + pulumi.set(__self__, "session_recording_enabled", session_recording_enabled) if shareable_link_enabled is not None: pulumi.set(__self__, "shareable_link_enabled", shareable_link_enabled) if sku is not None: @@ -210,6 +216,20 @@ def scale_units(self) -> Optional[pulumi.Input[int]]: def scale_units(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "scale_units", value) + @property + @pulumi.getter(name="sessionRecordingEnabled") + def session_recording_enabled(self) -> Optional[pulumi.Input[bool]]: + """ + Is Session Recording feature enabled for the Bastion Host. Defaults to `false`. + + > **Note:** `session_recording_enabled` is only supported when `sku` is `Premium`. + """ + return pulumi.get(self, "session_recording_enabled") + + @session_recording_enabled.setter + def session_recording_enabled(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "session_recording_enabled", value) + @property @pulumi.getter(name="shareableLinkEnabled") def shareable_link_enabled(self) -> Optional[pulumi.Input[bool]]: @@ -228,7 +248,7 @@ def shareable_link_enabled(self, value: Optional[pulumi.Input[bool]]): @pulumi.getter def sku(self) -> Optional[pulumi.Input[str]]: """ - The SKU of the Bastion Host. Accepted values are `Developer`, `Basic` and `Standard`. Defaults to `Basic`. + The SKU of the Bastion Host. Accepted values are `Developer`, `Basic`, `Standard` and `Premium`. Defaults to `Basic`. > **Note** Downgrading the SKU will force a new resource to be created. """ @@ -290,6 +310,7 @@ def __init__(__self__, *, name: Optional[pulumi.Input[str]] = None, resource_group_name: Optional[pulumi.Input[str]] = None, scale_units: Optional[pulumi.Input[int]] = None, + session_recording_enabled: Optional[pulumi.Input[bool]] = None, shareable_link_enabled: Optional[pulumi.Input[bool]] = None, sku: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, @@ -315,10 +336,13 @@ def __init__(__self__, *, :param pulumi.Input[int] scale_units: The number of scale units with which to provision the Bastion Host. Possible values are between `2` and `50`. Defaults to `2`. > **Note:** `scale_units` only can be changed when `sku` is `Standard`. `scale_units` is always `2` when `sku` is `Basic`. + :param pulumi.Input[bool] session_recording_enabled: Is Session Recording feature enabled for the Bastion Host. Defaults to `false`. + + > **Note:** `session_recording_enabled` is only supported when `sku` is `Premium`. :param pulumi.Input[bool] shareable_link_enabled: Is Shareable Link feature enabled for the Bastion Host. Defaults to `false`. > **Note:** `shareable_link_enabled` is only supported when `sku` is `Standard`. - :param pulumi.Input[str] sku: The SKU of the Bastion Host. Accepted values are `Developer`, `Basic` and `Standard`. Defaults to `Basic`. + :param pulumi.Input[str] sku: The SKU of the Bastion Host. Accepted values are `Developer`, `Basic`, `Standard` and `Premium`. Defaults to `Basic`. > **Note** Downgrading the SKU will force a new resource to be created. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource. @@ -347,6 +371,8 @@ def __init__(__self__, *, pulumi.set(__self__, "resource_group_name", resource_group_name) if scale_units is not None: pulumi.set(__self__, "scale_units", scale_units) + if session_recording_enabled is not None: + pulumi.set(__self__, "session_recording_enabled", session_recording_enabled) if shareable_link_enabled is not None: pulumi.set(__self__, "shareable_link_enabled", shareable_link_enabled) if sku is not None: @@ -486,6 +512,20 @@ def scale_units(self) -> Optional[pulumi.Input[int]]: def scale_units(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "scale_units", value) + @property + @pulumi.getter(name="sessionRecordingEnabled") + def session_recording_enabled(self) -> Optional[pulumi.Input[bool]]: + """ + Is Session Recording feature enabled for the Bastion Host. Defaults to `false`. + + > **Note:** `session_recording_enabled` is only supported when `sku` is `Premium`. + """ + return pulumi.get(self, "session_recording_enabled") + + @session_recording_enabled.setter + def session_recording_enabled(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "session_recording_enabled", value) + @property @pulumi.getter(name="shareableLinkEnabled") def shareable_link_enabled(self) -> Optional[pulumi.Input[bool]]: @@ -504,7 +544,7 @@ def shareable_link_enabled(self, value: Optional[pulumi.Input[bool]]): @pulumi.getter def sku(self) -> Optional[pulumi.Input[str]]: """ - The SKU of the Bastion Host. Accepted values are `Developer`, `Basic` and `Standard`. Defaults to `Basic`. + The SKU of the Bastion Host. Accepted values are `Developer`, `Basic`, `Standard` and `Premium`. Defaults to `Basic`. > **Note** Downgrading the SKU will force a new resource to be created. """ @@ -567,6 +607,7 @@ def __init__(__self__, name: Optional[pulumi.Input[str]] = None, resource_group_name: Optional[pulumi.Input[str]] = None, scale_units: Optional[pulumi.Input[int]] = None, + session_recording_enabled: Optional[pulumi.Input[bool]] = None, shareable_link_enabled: Optional[pulumi.Input[bool]] = None, sku: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, @@ -641,10 +682,13 @@ def __init__(__self__, :param pulumi.Input[int] scale_units: The number of scale units with which to provision the Bastion Host. Possible values are between `2` and `50`. Defaults to `2`. > **Note:** `scale_units` only can be changed when `sku` is `Standard`. `scale_units` is always `2` when `sku` is `Basic`. + :param pulumi.Input[bool] session_recording_enabled: Is Session Recording feature enabled for the Bastion Host. Defaults to `false`. + + > **Note:** `session_recording_enabled` is only supported when `sku` is `Premium`. :param pulumi.Input[bool] shareable_link_enabled: Is Shareable Link feature enabled for the Bastion Host. Defaults to `false`. > **Note:** `shareable_link_enabled` is only supported when `sku` is `Standard`. - :param pulumi.Input[str] sku: The SKU of the Bastion Host. Accepted values are `Developer`, `Basic` and `Standard`. Defaults to `Basic`. + :param pulumi.Input[str] sku: The SKU of the Bastion Host. Accepted values are `Developer`, `Basic`, `Standard` and `Premium`. Defaults to `Basic`. > **Note** Downgrading the SKU will force a new resource to be created. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource. @@ -732,6 +776,7 @@ def _internal_init(__self__, name: Optional[pulumi.Input[str]] = None, resource_group_name: Optional[pulumi.Input[str]] = None, scale_units: Optional[pulumi.Input[int]] = None, + session_recording_enabled: Optional[pulumi.Input[bool]] = None, shareable_link_enabled: Optional[pulumi.Input[bool]] = None, sku: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, @@ -757,6 +802,7 @@ def _internal_init(__self__, raise TypeError("Missing required property 'resource_group_name'") __props__.__dict__["resource_group_name"] = resource_group_name __props__.__dict__["scale_units"] = scale_units + __props__.__dict__["session_recording_enabled"] = session_recording_enabled __props__.__dict__["shareable_link_enabled"] = shareable_link_enabled __props__.__dict__["sku"] = sku __props__.__dict__["tags"] = tags @@ -783,6 +829,7 @@ def get(resource_name: str, name: Optional[pulumi.Input[str]] = None, resource_group_name: Optional[pulumi.Input[str]] = None, scale_units: Optional[pulumi.Input[int]] = None, + session_recording_enabled: Optional[pulumi.Input[bool]] = None, shareable_link_enabled: Optional[pulumi.Input[bool]] = None, sku: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, @@ -813,10 +860,13 @@ def get(resource_name: str, :param pulumi.Input[int] scale_units: The number of scale units with which to provision the Bastion Host. Possible values are between `2` and `50`. Defaults to `2`. > **Note:** `scale_units` only can be changed when `sku` is `Standard`. `scale_units` is always `2` when `sku` is `Basic`. + :param pulumi.Input[bool] session_recording_enabled: Is Session Recording feature enabled for the Bastion Host. Defaults to `false`. + + > **Note:** `session_recording_enabled` is only supported when `sku` is `Premium`. :param pulumi.Input[bool] shareable_link_enabled: Is Shareable Link feature enabled for the Bastion Host. Defaults to `false`. > **Note:** `shareable_link_enabled` is only supported when `sku` is `Standard`. - :param pulumi.Input[str] sku: The SKU of the Bastion Host. Accepted values are `Developer`, `Basic` and `Standard`. Defaults to `Basic`. + :param pulumi.Input[str] sku: The SKU of the Bastion Host. Accepted values are `Developer`, `Basic`, `Standard` and `Premium`. Defaults to `Basic`. > **Note** Downgrading the SKU will force a new resource to be created. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags to assign to the resource. @@ -839,6 +889,7 @@ def get(resource_name: str, __props__.__dict__["name"] = name __props__.__dict__["resource_group_name"] = resource_group_name __props__.__dict__["scale_units"] = scale_units + __props__.__dict__["session_recording_enabled"] = session_recording_enabled __props__.__dict__["shareable_link_enabled"] = shareable_link_enabled __props__.__dict__["sku"] = sku __props__.__dict__["tags"] = tags @@ -934,6 +985,16 @@ def scale_units(self) -> pulumi.Output[Optional[int]]: """ return pulumi.get(self, "scale_units") + @property + @pulumi.getter(name="sessionRecordingEnabled") + def session_recording_enabled(self) -> pulumi.Output[Optional[bool]]: + """ + Is Session Recording feature enabled for the Bastion Host. Defaults to `false`. + + > **Note:** `session_recording_enabled` is only supported when `sku` is `Premium`. + """ + return pulumi.get(self, "session_recording_enabled") + @property @pulumi.getter(name="shareableLinkEnabled") def shareable_link_enabled(self) -> pulumi.Output[Optional[bool]]: @@ -948,7 +1009,7 @@ def shareable_link_enabled(self) -> pulumi.Output[Optional[bool]]: @pulumi.getter def sku(self) -> pulumi.Output[Optional[str]]: """ - The SKU of the Bastion Host. Accepted values are `Developer`, `Basic` and `Standard`. Defaults to `Basic`. + The SKU of the Bastion Host. Accepted values are `Developer`, `Basic`, `Standard` and `Premium`. Defaults to `Basic`. > **Note** Downgrading the SKU will force a new resource to be created. """ diff --git a/sdk/python/pulumi_azure/compute/get_bastion_host.py b/sdk/python/pulumi_azure/compute/get_bastion_host.py index 194fb10144..003f7ecc9f 100644 --- a/sdk/python/pulumi_azure/compute/get_bastion_host.py +++ b/sdk/python/pulumi_azure/compute/get_bastion_host.py @@ -27,7 +27,7 @@ class GetBastionHostResult: """ A collection of values returned by getBastionHost. """ - def __init__(__self__, copy_paste_enabled=None, dns_name=None, file_copy_enabled=None, id=None, ip_configurations=None, ip_connect_enabled=None, location=None, name=None, resource_group_name=None, scale_units=None, shareable_link_enabled=None, sku=None, tags=None, tunneling_enabled=None): + def __init__(__self__, copy_paste_enabled=None, dns_name=None, file_copy_enabled=None, id=None, ip_configurations=None, ip_connect_enabled=None, location=None, name=None, resource_group_name=None, scale_units=None, session_recording_enabled=None, shareable_link_enabled=None, sku=None, tags=None, tunneling_enabled=None): if copy_paste_enabled and not isinstance(copy_paste_enabled, bool): raise TypeError("Expected argument 'copy_paste_enabled' to be a bool") pulumi.set(__self__, "copy_paste_enabled", copy_paste_enabled) @@ -58,6 +58,9 @@ def __init__(__self__, copy_paste_enabled=None, dns_name=None, file_copy_enabled if scale_units and not isinstance(scale_units, int): raise TypeError("Expected argument 'scale_units' to be a int") pulumi.set(__self__, "scale_units", scale_units) + if session_recording_enabled and not isinstance(session_recording_enabled, bool): + raise TypeError("Expected argument 'session_recording_enabled' to be a bool") + pulumi.set(__self__, "session_recording_enabled", session_recording_enabled) if shareable_link_enabled and not isinstance(shareable_link_enabled, bool): raise TypeError("Expected argument 'shareable_link_enabled' to be a bool") pulumi.set(__self__, "shareable_link_enabled", shareable_link_enabled) @@ -148,6 +151,11 @@ def scale_units(self) -> int: """ return pulumi.get(self, "scale_units") + @property + @pulumi.getter(name="sessionRecordingEnabled") + def session_recording_enabled(self) -> bool: + return pulumi.get(self, "session_recording_enabled") + @property @pulumi.getter(name="shareableLinkEnabled") def shareable_link_enabled(self) -> bool: @@ -197,6 +205,7 @@ def __await__(self): name=self.name, resource_group_name=self.resource_group_name, scale_units=self.scale_units, + session_recording_enabled=self.session_recording_enabled, shareable_link_enabled=self.shareable_link_enabled, sku=self.sku, tags=self.tags, @@ -241,6 +250,7 @@ def get_bastion_host(name: Optional[str] = None, name=pulumi.get(__ret__, 'name'), resource_group_name=pulumi.get(__ret__, 'resource_group_name'), scale_units=pulumi.get(__ret__, 'scale_units'), + session_recording_enabled=pulumi.get(__ret__, 'session_recording_enabled'), shareable_link_enabled=pulumi.get(__ret__, 'shareable_link_enabled'), sku=pulumi.get(__ret__, 'sku'), tags=pulumi.get(__ret__, 'tags'), @@ -282,6 +292,7 @@ def get_bastion_host_output(name: Optional[pulumi.Input[str]] = None, name=pulumi.get(__response__, 'name'), resource_group_name=pulumi.get(__response__, 'resource_group_name'), scale_units=pulumi.get(__response__, 'scale_units'), + session_recording_enabled=pulumi.get(__response__, 'session_recording_enabled'), shareable_link_enabled=pulumi.get(__response__, 'shareable_link_enabled'), sku=pulumi.get(__response__, 'sku'), tags=pulumi.get(__response__, 'tags'), diff --git a/sdk/python/pulumi_azure/containerapp/_inputs.py b/sdk/python/pulumi_azure/containerapp/_inputs.py index c1a83b8bde..ab6160133b 100644 --- a/sdk/python/pulumi_azure/containerapp/_inputs.py +++ b/sdk/python/pulumi_azure/containerapp/_inputs.py @@ -318,6 +318,8 @@ class AppIngressArgsDict(TypedDict): transport: NotRequired[pulumi.Input[str]] """ The transport method for the Ingress. Possible values are `auto`, `http`, `http2` and `tcp`. Defaults to `auto`. + + > **Note:** if `transport` is set to `tcp`, `exposed_port` and `target_port` should be set at the same time. """ elif False: AppIngressArgsDict: TypeAlias = Mapping[str, Any] @@ -346,6 +348,8 @@ def __init__(__self__, *, :param pulumi.Input[str] fqdn: The FQDN of the ingress. :param pulumi.Input[Sequence[pulumi.Input['AppIngressIpSecurityRestrictionArgs']]] ip_security_restrictions: One or more `ip_security_restriction` blocks for IP-filtering rules as defined below. :param pulumi.Input[str] transport: The transport method for the Ingress. Possible values are `auto`, `http`, `http2` and `tcp`. Defaults to `auto`. + + > **Note:** if `transport` is set to `tcp`, `exposed_port` and `target_port` should be set at the same time. """ pulumi.set(__self__, "target_port", target_port) pulumi.set(__self__, "traffic_weights", traffic_weights) @@ -467,6 +471,8 @@ def ip_security_restrictions(self, value: Optional[pulumi.Input[Sequence[pulumi. def transport(self) -> Optional[pulumi.Input[str]]: """ The transport method for the Ingress. Possible values are `auto`, `http`, `http2` and `tcp`. Defaults to `auto`. + + > **Note:** if `transport` is set to `tcp`, `exposed_port` and `target_port` should be set at the same time. """ return pulumi.get(self, "transport") @@ -1342,7 +1348,7 @@ class AppTemplateContainerArgsDict(TypedDict): """ ephemeral_storage: NotRequired[pulumi.Input[str]] """ - The amount of ephemeral storage available to the Container App. + The amount of ephemeral storage available to the Container App. > **NOTE:** `ephemeral_storage` is currently in preview and not configurable at this time. """ @@ -1392,7 +1398,7 @@ def __init__(__self__, *, :param pulumi.Input[Sequence[pulumi.Input[str]]] args: A list of extra arguments to pass to the container. :param pulumi.Input[Sequence[pulumi.Input[str]]] commands: A command to pass to the container to override the default. This is provided as a list of command line elements without spaces. :param pulumi.Input[Sequence[pulumi.Input['AppTemplateContainerEnvArgs']]] envs: One or more `env` blocks as detailed below. - :param pulumi.Input[str] ephemeral_storage: The amount of ephemeral storage available to the Container App. + :param pulumi.Input[str] ephemeral_storage: The amount of ephemeral storage available to the Container App. > **NOTE:** `ephemeral_storage` is currently in preview and not configurable at this time. :param pulumi.Input[Sequence[pulumi.Input['AppTemplateContainerLivenessProbeArgs']]] liveness_probes: A `liveness_probe` block as detailed below. @@ -1513,7 +1519,7 @@ def envs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['AppTemplateCo @pulumi.getter(name="ephemeralStorage") def ephemeral_storage(self) -> Optional[pulumi.Input[str]]: """ - The amount of ephemeral storage available to the Container App. + The amount of ephemeral storage available to the Container App. > **NOTE:** `ephemeral_storage` is currently in preview and not configurable at this time. """ diff --git a/sdk/python/pulumi_azure/containerapp/outputs.py b/sdk/python/pulumi_azure/containerapp/outputs.py index dba21a348a..11e6d60e31 100644 --- a/sdk/python/pulumi_azure/containerapp/outputs.py +++ b/sdk/python/pulumi_azure/containerapp/outputs.py @@ -287,6 +287,8 @@ def __init__(__self__, *, :param str fqdn: The FQDN of the ingress. :param Sequence['AppIngressIpSecurityRestrictionArgs'] ip_security_restrictions: One or more `ip_security_restriction` blocks for IP-filtering rules as defined below. :param str transport: The transport method for the Ingress. Possible values are `auto`, `http`, `http2` and `tcp`. Defaults to `auto`. + + > **Note:** if `transport` is set to `tcp`, `exposed_port` and `target_port` should be set at the same time. """ pulumi.set(__self__, "target_port", target_port) pulumi.set(__self__, "traffic_weights", traffic_weights) @@ -376,6 +378,8 @@ def ip_security_restrictions(self) -> Optional[Sequence['outputs.AppIngressIpSec def transport(self) -> Optional[str]: """ The transport method for the Ingress. Possible values are `auto`, `http`, `http2` and `tcp`. Defaults to `auto`. + + > **Note:** if `transport` is set to `tcp`, `exposed_port` and `target_port` should be set at the same time. """ return pulumi.get(self, "transport") @@ -1085,7 +1089,7 @@ def __init__(__self__, *, :param Sequence[str] args: A list of extra arguments to pass to the container. :param Sequence[str] commands: A command to pass to the container to override the default. This is provided as a list of command line elements without spaces. :param Sequence['AppTemplateContainerEnvArgs'] envs: One or more `env` blocks as detailed below. - :param str ephemeral_storage: The amount of ephemeral storage available to the Container App. + :param str ephemeral_storage: The amount of ephemeral storage available to the Container App. > **NOTE:** `ephemeral_storage` is currently in preview and not configurable at this time. :param Sequence['AppTemplateContainerLivenessProbeArgs'] liveness_probes: A `liveness_probe` block as detailed below. @@ -1178,7 +1182,7 @@ def envs(self) -> Optional[Sequence['outputs.AppTemplateContainerEnv']]: @pulumi.getter(name="ephemeralStorage") def ephemeral_storage(self) -> Optional[str]: """ - The amount of ephemeral storage available to the Container App. + The amount of ephemeral storage available to the Container App. > **NOTE:** `ephemeral_storage` is currently in preview and not configurable at this time. """ diff --git a/sdk/python/pulumi_azure/loganalytics/cluster.py b/sdk/python/pulumi_azure/loganalytics/cluster.py index 93a0ffb6e1..6a94996daa 100644 --- a/sdk/python/pulumi_azure/loganalytics/cluster.py +++ b/sdk/python/pulumi_azure/loganalytics/cluster.py @@ -33,7 +33,7 @@ def __init__(__self__, *, :param pulumi.Input[str] resource_group_name: The name of the Resource Group where the Log Analytics Cluster should exist. Changing this forces a new Log Analytics Cluster to be created. :param pulumi.Input[str] location: The Azure Region where the Log Analytics Cluster should exist. Changing this forces a new Log Analytics Cluster to be created. :param pulumi.Input[str] name: The name which should be used for this Log Analytics Cluster. Changing this forces a new Log Analytics Cluster to be created. - :param pulumi.Input[int] size_gb: The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `500`, `1000`, `2000` or `5000`. Defaults to `100`. + :param pulumi.Input[int] size_gb: The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `200`, `300`, `400`, `500`, `1000`, `2000`, `5000`, `10000`, `25000`, or `50000`. Defaults to `100`. > **NOTE:** The cluster capacity must start at 100 GB and can be set to 500, 1000, 2000 or 5000 GB/day. For more information on cluster costs, see [Dedicated clusters](https://docs.microsoft.com/en-us/azure/azure-monitor/logs/cost-logs#dedicated-clusters). In v3.x the default value is `1000` GB, in v4.0 of the provider this will default to `100` GB. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags which should be assigned to the Log Analytics Cluster. @@ -101,7 +101,7 @@ def name(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="sizeGb") def size_gb(self) -> Optional[pulumi.Input[int]]: """ - The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `500`, `1000`, `2000` or `5000`. Defaults to `100`. + The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `200`, `300`, `400`, `500`, `1000`, `2000`, `5000`, `10000`, `25000`, or `50000`. Defaults to `100`. > **NOTE:** The cluster capacity must start at 100 GB and can be set to 500, 1000, 2000 or 5000 GB/day. For more information on cluster costs, see [Dedicated clusters](https://docs.microsoft.com/en-us/azure/azure-monitor/logs/cost-logs#dedicated-clusters). In v3.x the default value is `1000` GB, in v4.0 of the provider this will default to `100` GB. """ @@ -141,7 +141,7 @@ def __init__(__self__, *, :param pulumi.Input[str] location: The Azure Region where the Log Analytics Cluster should exist. Changing this forces a new Log Analytics Cluster to be created. :param pulumi.Input[str] name: The name which should be used for this Log Analytics Cluster. Changing this forces a new Log Analytics Cluster to be created. :param pulumi.Input[str] resource_group_name: The name of the Resource Group where the Log Analytics Cluster should exist. Changing this forces a new Log Analytics Cluster to be created. - :param pulumi.Input[int] size_gb: The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `500`, `1000`, `2000` or `5000`. Defaults to `100`. + :param pulumi.Input[int] size_gb: The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `200`, `300`, `400`, `500`, `1000`, `2000`, `5000`, `10000`, `25000`, or `50000`. Defaults to `100`. > **NOTE:** The cluster capacity must start at 100 GB and can be set to 500, 1000, 2000 or 5000 GB/day. For more information on cluster costs, see [Dedicated clusters](https://docs.microsoft.com/en-us/azure/azure-monitor/logs/cost-logs#dedicated-clusters). In v3.x the default value is `1000` GB, in v4.0 of the provider this will default to `100` GB. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags which should be assigned to the Log Analytics Cluster. @@ -225,7 +225,7 @@ def resource_group_name(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="sizeGb") def size_gb(self) -> Optional[pulumi.Input[int]]: """ - The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `500`, `1000`, `2000` or `5000`. Defaults to `100`. + The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `200`, `300`, `400`, `500`, `1000`, `2000`, `5000`, `10000`, `25000`, or `50000`. Defaults to `100`. > **NOTE:** The cluster capacity must start at 100 GB and can be set to 500, 1000, 2000 or 5000 GB/day. For more information on cluster costs, see [Dedicated clusters](https://docs.microsoft.com/en-us/azure/azure-monitor/logs/cost-logs#dedicated-clusters). In v3.x the default value is `1000` GB, in v4.0 of the provider this will default to `100` GB. """ @@ -297,7 +297,7 @@ def __init__(__self__, :param pulumi.Input[str] location: The Azure Region where the Log Analytics Cluster should exist. Changing this forces a new Log Analytics Cluster to be created. :param pulumi.Input[str] name: The name which should be used for this Log Analytics Cluster. Changing this forces a new Log Analytics Cluster to be created. :param pulumi.Input[str] resource_group_name: The name of the Resource Group where the Log Analytics Cluster should exist. Changing this forces a new Log Analytics Cluster to be created. - :param pulumi.Input[int] size_gb: The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `500`, `1000`, `2000` or `5000`. Defaults to `100`. + :param pulumi.Input[int] size_gb: The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `200`, `300`, `400`, `500`, `1000`, `2000`, `5000`, `10000`, `25000`, or `50000`. Defaults to `100`. > **NOTE:** The cluster capacity must start at 100 GB and can be set to 500, 1000, 2000 or 5000 GB/day. For more information on cluster costs, see [Dedicated clusters](https://docs.microsoft.com/en-us/azure/azure-monitor/logs/cost-logs#dedicated-clusters). In v3.x the default value is `1000` GB, in v4.0 of the provider this will default to `100` GB. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags which should be assigned to the Log Analytics Cluster. @@ -409,7 +409,7 @@ def get(resource_name: str, :param pulumi.Input[str] location: The Azure Region where the Log Analytics Cluster should exist. Changing this forces a new Log Analytics Cluster to be created. :param pulumi.Input[str] name: The name which should be used for this Log Analytics Cluster. Changing this forces a new Log Analytics Cluster to be created. :param pulumi.Input[str] resource_group_name: The name of the Resource Group where the Log Analytics Cluster should exist. Changing this forces a new Log Analytics Cluster to be created. - :param pulumi.Input[int] size_gb: The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `500`, `1000`, `2000` or `5000`. Defaults to `100`. + :param pulumi.Input[int] size_gb: The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `200`, `300`, `400`, `500`, `1000`, `2000`, `5000`, `10000`, `25000`, or `50000`. Defaults to `100`. > **NOTE:** The cluster capacity must start at 100 GB and can be set to 500, 1000, 2000 or 5000 GB/day. For more information on cluster costs, see [Dedicated clusters](https://docs.microsoft.com/en-us/azure/azure-monitor/logs/cost-logs#dedicated-clusters). In v3.x the default value is `1000` GB, in v4.0 of the provider this will default to `100` GB. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags which should be assigned to the Log Analytics Cluster. @@ -471,7 +471,7 @@ def resource_group_name(self) -> pulumi.Output[str]: @pulumi.getter(name="sizeGb") def size_gb(self) -> pulumi.Output[Optional[int]]: """ - The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `500`, `1000`, `2000` or `5000`. Defaults to `100`. + The capacity of the Log Analytics Cluster is specified in GB/day. Possible values include `100`, `200`, `300`, `400`, `500`, `1000`, `2000`, `5000`, `10000`, `25000`, or `50000`. Defaults to `100`. > **NOTE:** The cluster capacity must start at 100 GB and can be set to 500, 1000, 2000 or 5000 GB/day. For more information on cluster costs, see [Dedicated clusters](https://docs.microsoft.com/en-us/azure/azure-monitor/logs/cost-logs#dedicated-clusters). In v3.x the default value is `1000` GB, in v4.0 of the provider this will default to `100` GB. """ diff --git a/sdk/python/pulumi_azure/management/group_subscription_association.py b/sdk/python/pulumi_azure/management/group_subscription_association.py index 4846d2ae46..e021651f3d 100644 --- a/sdk/python/pulumi_azure/management/group_subscription_association.py +++ b/sdk/python/pulumi_azure/management/group_subscription_association.py @@ -125,7 +125,7 @@ def __init__(__self__, Managements can be imported using the `resource id`, e.g. ```sh - $ pulumi import azure:management/groupSubscriptionAssociation:GroupSubscriptionAssociation example /managementGroup/MyManagementGroup/subscription/12345678-1234-1234-1234-123456789012 + $ pulumi import azure:management/groupSubscriptionAssociation:GroupSubscriptionAssociation example /providers/Microsoft.Management/managementGroups/MyManagementGroup/subscriptions/12345678-1234-1234-1234-123456789012 ``` :param str resource_name: The name of the resource. @@ -162,7 +162,7 @@ def __init__(__self__, Managements can be imported using the `resource id`, e.g. ```sh - $ pulumi import azure:management/groupSubscriptionAssociation:GroupSubscriptionAssociation example /managementGroup/MyManagementGroup/subscription/12345678-1234-1234-1234-123456789012 + $ pulumi import azure:management/groupSubscriptionAssociation:GroupSubscriptionAssociation example /providers/Microsoft.Management/managementGroups/MyManagementGroup/subscriptions/12345678-1234-1234-1234-123456789012 ``` :param str resource_name: The name of the resource. diff --git a/sdk/python/pulumi_azure/mssql/_inputs.py b/sdk/python/pulumi_azure/mssql/_inputs.py index 3d3ac6e385..f20a681b65 100644 --- a/sdk/python/pulumi_azure/mssql/_inputs.py +++ b/sdk/python/pulumi_azure/mssql/_inputs.py @@ -677,7 +677,7 @@ class ElasticPoolSkuArgsDict(TypedDict): """ family: NotRequired[pulumi.Input[str]] """ - The `family` of hardware `Gen4`, `Gen5`, `Fsv2`, `MOPRMS`, or `DC`. + The `family` of hardware `Gen4`, `Gen5`, `Fsv2`, `MOPRMS`, `PRMS`, or `DC`. """ elif False: ElasticPoolSkuArgsDict: TypeAlias = Mapping[str, Any] @@ -693,7 +693,7 @@ def __init__(__self__, *, :param pulumi.Input[int] capacity: The scale up/out capacity, representing server's compute units. For more information see the documentation for your Elasticpool configuration: [vCore-based](https://docs.microsoft.com/azure/sql-database/sql-database-vcore-resource-limits-elastic-pools) or [DTU-based](https://docs.microsoft.com/azure/sql-database/sql-database-dtu-resource-limits-elastic-pools). :param pulumi.Input[str] name: Specifies the SKU Name for this Elasticpool. The name of the SKU, will be either `vCore` based or `DTU` based. Possible `DTU` based values are `BasicPool`, `StandardPool`, `PremiumPool` while possible `vCore` based values are `GP_Gen4`, `GP_Gen5`, `GP_Fsv2`, `GP_DC`, `BC_Gen4`, `BC_Gen5`, `BC_DC`, `HS_PRMS`, `HS_MOPRMS`, or `HS_Gen5`. :param pulumi.Input[str] tier: The tier of the particular SKU. Possible values are `GeneralPurpose`, `BusinessCritical`, `Basic`, `Standard`, `Premium`, or `HyperScale`. For more information see the documentation for your Elasticpool configuration: [vCore-based](https://docs.microsoft.com/azure/sql-database/sql-database-vcore-resource-limits-elastic-pools) or [DTU-based](https://docs.microsoft.com/azure/sql-database/sql-database-dtu-resource-limits-elastic-pools). - :param pulumi.Input[str] family: The `family` of hardware `Gen4`, `Gen5`, `Fsv2`, `MOPRMS`, or `DC`. + :param pulumi.Input[str] family: The `family` of hardware `Gen4`, `Gen5`, `Fsv2`, `MOPRMS`, `PRMS`, or `DC`. """ pulumi.set(__self__, "capacity", capacity) pulumi.set(__self__, "name", name) @@ -741,7 +741,7 @@ def tier(self, value: pulumi.Input[str]): @pulumi.getter def family(self) -> Optional[pulumi.Input[str]]: """ - The `family` of hardware `Gen4`, `Gen5`, `Fsv2`, `MOPRMS`, or `DC`. + The `family` of hardware `Gen4`, `Gen5`, `Fsv2`, `MOPRMS`, `PRMS`, or `DC`. """ return pulumi.get(self, "family") diff --git a/sdk/python/pulumi_azure/mssql/outputs.py b/sdk/python/pulumi_azure/mssql/outputs.py index 4b9ed4ca59..2e046b9d6b 100644 --- a/sdk/python/pulumi_azure/mssql/outputs.py +++ b/sdk/python/pulumi_azure/mssql/outputs.py @@ -539,7 +539,7 @@ def __init__(__self__, *, :param int capacity: The scale up/out capacity, representing server's compute units. For more information see the documentation for your Elasticpool configuration: [vCore-based](https://docs.microsoft.com/azure/sql-database/sql-database-vcore-resource-limits-elastic-pools) or [DTU-based](https://docs.microsoft.com/azure/sql-database/sql-database-dtu-resource-limits-elastic-pools). :param str name: Specifies the SKU Name for this Elasticpool. The name of the SKU, will be either `vCore` based or `DTU` based. Possible `DTU` based values are `BasicPool`, `StandardPool`, `PremiumPool` while possible `vCore` based values are `GP_Gen4`, `GP_Gen5`, `GP_Fsv2`, `GP_DC`, `BC_Gen4`, `BC_Gen5`, `BC_DC`, `HS_PRMS`, `HS_MOPRMS`, or `HS_Gen5`. :param str tier: The tier of the particular SKU. Possible values are `GeneralPurpose`, `BusinessCritical`, `Basic`, `Standard`, `Premium`, or `HyperScale`. For more information see the documentation for your Elasticpool configuration: [vCore-based](https://docs.microsoft.com/azure/sql-database/sql-database-vcore-resource-limits-elastic-pools) or [DTU-based](https://docs.microsoft.com/azure/sql-database/sql-database-dtu-resource-limits-elastic-pools). - :param str family: The `family` of hardware `Gen4`, `Gen5`, `Fsv2`, `MOPRMS`, or `DC`. + :param str family: The `family` of hardware `Gen4`, `Gen5`, `Fsv2`, `MOPRMS`, `PRMS`, or `DC`. """ pulumi.set(__self__, "capacity", capacity) pulumi.set(__self__, "name", name) @@ -575,7 +575,7 @@ def tier(self) -> str: @pulumi.getter def family(self) -> Optional[str]: """ - The `family` of hardware `Gen4`, `Gen5`, `Fsv2`, `MOPRMS`, or `DC`. + The `family` of hardware `Gen4`, `Gen5`, `Fsv2`, `MOPRMS`, `PRMS`, or `DC`. """ return pulumi.get(self, "family") diff --git a/sdk/python/pulumi_azure/stack/__init__.py b/sdk/python/pulumi_azure/stack/__init__.py index be5f621fcd..5d6cb920b4 100644 --- a/sdk/python/pulumi_azure/stack/__init__.py +++ b/sdk/python/pulumi_azure/stack/__init__.py @@ -10,5 +10,6 @@ from .hci_deployment_setting import * from .hci_logical_network import * from .hci_storage_path import * +from .hci_virtual_hard_disk import * from ._inputs import * from . import outputs diff --git a/sdk/python/pulumi_azure/stack/hci_virtual_hard_disk.py b/sdk/python/pulumi_azure/stack/hci_virtual_hard_disk.py new file mode 100644 index 0000000000..267793709c --- /dev/null +++ b/sdk/python/pulumi_azure/stack/hci_virtual_hard_disk.py @@ -0,0 +1,807 @@ +# coding=utf-8 +# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import copy +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from .. import _utilities + +__all__ = ['HciVirtualHardDiskArgs', 'HciVirtualHardDisk'] + +@pulumi.input_type +class HciVirtualHardDiskArgs: + def __init__(__self__, *, + custom_location_id: pulumi.Input[str], + disk_size_in_gb: pulumi.Input[int], + resource_group_name: pulumi.Input[str], + block_size_in_bytes: Optional[pulumi.Input[int]] = None, + disk_file_format: Optional[pulumi.Input[str]] = None, + dynamic_enabled: Optional[pulumi.Input[bool]] = None, + hyperv_generation: Optional[pulumi.Input[str]] = None, + location: Optional[pulumi.Input[str]] = None, + logical_sector_in_bytes: Optional[pulumi.Input[int]] = None, + name: Optional[pulumi.Input[str]] = None, + physical_sector_in_bytes: Optional[pulumi.Input[int]] = None, + storage_path_id: Optional[pulumi.Input[str]] = None, + tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None): + """ + The set of arguments for constructing a HciVirtualHardDisk resource. + :param pulumi.Input[str] custom_location_id: The ID of the Custom Location where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + :param pulumi.Input[int] disk_size_in_gb: The size of the disk in GB. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + :param pulumi.Input[str] resource_group_name: The name of the Resource Group where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + :param pulumi.Input[int] block_size_in_bytes: The block size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + :param pulumi.Input[str] disk_file_format: The format of the disk file. Possible values are `vhdx` and `vhd`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + :param pulumi.Input[bool] dynamic_enabled: Whether to enable dynamic sizing for the Azure Stack HCI Virtual Hard Disk. Defaults to `false`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + :param pulumi.Input[str] hyperv_generation: The hypervisor generation of the Azure Stack HCI Virtual Hard Disk. Possible values are `V1` and `V2`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + :param pulumi.Input[str] location: The Azure Region where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + :param pulumi.Input[int] logical_sector_in_bytes: The logical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + :param pulumi.Input[str] name: The name which should be used for this Azure Stack HCI Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + :param pulumi.Input[int] physical_sector_in_bytes: The physical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + :param pulumi.Input[str] storage_path_id: The ID of the Azure Stack HCI Storage Path used for this Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + + > **Note:** If `storage_path_id` is not specified, the Virtual Hard Disk will be placed in a high availability Storage Path. If you experience a diff you may need to add this to `ignore_changes`. + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags which should be assigned to the Azure Stack HCI Virtual Hard Disk. + """ + pulumi.set(__self__, "custom_location_id", custom_location_id) + pulumi.set(__self__, "disk_size_in_gb", disk_size_in_gb) + pulumi.set(__self__, "resource_group_name", resource_group_name) + if block_size_in_bytes is not None: + pulumi.set(__self__, "block_size_in_bytes", block_size_in_bytes) + if disk_file_format is not None: + pulumi.set(__self__, "disk_file_format", disk_file_format) + if dynamic_enabled is not None: + pulumi.set(__self__, "dynamic_enabled", dynamic_enabled) + if hyperv_generation is not None: + pulumi.set(__self__, "hyperv_generation", hyperv_generation) + if location is not None: + pulumi.set(__self__, "location", location) + if logical_sector_in_bytes is not None: + pulumi.set(__self__, "logical_sector_in_bytes", logical_sector_in_bytes) + if name is not None: + pulumi.set(__self__, "name", name) + if physical_sector_in_bytes is not None: + pulumi.set(__self__, "physical_sector_in_bytes", physical_sector_in_bytes) + if storage_path_id is not None: + pulumi.set(__self__, "storage_path_id", storage_path_id) + if tags is not None: + pulumi.set(__self__, "tags", tags) + + @property + @pulumi.getter(name="customLocationId") + def custom_location_id(self) -> pulumi.Input[str]: + """ + The ID of the Custom Location where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + """ + return pulumi.get(self, "custom_location_id") + + @custom_location_id.setter + def custom_location_id(self, value: pulumi.Input[str]): + pulumi.set(self, "custom_location_id", value) + + @property + @pulumi.getter(name="diskSizeInGb") + def disk_size_in_gb(self) -> pulumi.Input[int]: + """ + The size of the disk in GB. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + """ + return pulumi.get(self, "disk_size_in_gb") + + @disk_size_in_gb.setter + def disk_size_in_gb(self, value: pulumi.Input[int]): + pulumi.set(self, "disk_size_in_gb", value) + + @property + @pulumi.getter(name="resourceGroupName") + def resource_group_name(self) -> pulumi.Input[str]: + """ + The name of the Resource Group where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + """ + return pulumi.get(self, "resource_group_name") + + @resource_group_name.setter + def resource_group_name(self, value: pulumi.Input[str]): + pulumi.set(self, "resource_group_name", value) + + @property + @pulumi.getter(name="blockSizeInBytes") + def block_size_in_bytes(self) -> Optional[pulumi.Input[int]]: + """ + The block size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + """ + return pulumi.get(self, "block_size_in_bytes") + + @block_size_in_bytes.setter + def block_size_in_bytes(self, value: Optional[pulumi.Input[int]]): + pulumi.set(self, "block_size_in_bytes", value) + + @property + @pulumi.getter(name="diskFileFormat") + def disk_file_format(self) -> Optional[pulumi.Input[str]]: + """ + The format of the disk file. Possible values are `vhdx` and `vhd`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + """ + return pulumi.get(self, "disk_file_format") + + @disk_file_format.setter + def disk_file_format(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "disk_file_format", value) + + @property + @pulumi.getter(name="dynamicEnabled") + def dynamic_enabled(self) -> Optional[pulumi.Input[bool]]: + """ + Whether to enable dynamic sizing for the Azure Stack HCI Virtual Hard Disk. Defaults to `false`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + """ + return pulumi.get(self, "dynamic_enabled") + + @dynamic_enabled.setter + def dynamic_enabled(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "dynamic_enabled", value) + + @property + @pulumi.getter(name="hypervGeneration") + def hyperv_generation(self) -> Optional[pulumi.Input[str]]: + """ + The hypervisor generation of the Azure Stack HCI Virtual Hard Disk. Possible values are `V1` and `V2`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + """ + return pulumi.get(self, "hyperv_generation") + + @hyperv_generation.setter + def hyperv_generation(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "hyperv_generation", value) + + @property + @pulumi.getter + def location(self) -> Optional[pulumi.Input[str]]: + """ + The Azure Region where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + """ + return pulumi.get(self, "location") + + @location.setter + def location(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "location", value) + + @property + @pulumi.getter(name="logicalSectorInBytes") + def logical_sector_in_bytes(self) -> Optional[pulumi.Input[int]]: + """ + The logical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + """ + return pulumi.get(self, "logical_sector_in_bytes") + + @logical_sector_in_bytes.setter + def logical_sector_in_bytes(self, value: Optional[pulumi.Input[int]]): + pulumi.set(self, "logical_sector_in_bytes", value) + + @property + @pulumi.getter + def name(self) -> Optional[pulumi.Input[str]]: + """ + The name which should be used for this Azure Stack HCI Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "name", value) + + @property + @pulumi.getter(name="physicalSectorInBytes") + def physical_sector_in_bytes(self) -> Optional[pulumi.Input[int]]: + """ + The physical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + """ + return pulumi.get(self, "physical_sector_in_bytes") + + @physical_sector_in_bytes.setter + def physical_sector_in_bytes(self, value: Optional[pulumi.Input[int]]): + pulumi.set(self, "physical_sector_in_bytes", value) + + @property + @pulumi.getter(name="storagePathId") + def storage_path_id(self) -> Optional[pulumi.Input[str]]: + """ + The ID of the Azure Stack HCI Storage Path used for this Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + + > **Note:** If `storage_path_id` is not specified, the Virtual Hard Disk will be placed in a high availability Storage Path. If you experience a diff you may need to add this to `ignore_changes`. + """ + return pulumi.get(self, "storage_path_id") + + @storage_path_id.setter + def storage_path_id(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "storage_path_id", value) + + @property + @pulumi.getter + def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: + """ + A mapping of tags which should be assigned to the Azure Stack HCI Virtual Hard Disk. + """ + return pulumi.get(self, "tags") + + @tags.setter + def tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]): + pulumi.set(self, "tags", value) + + +@pulumi.input_type +class _HciVirtualHardDiskState: + def __init__(__self__, *, + block_size_in_bytes: Optional[pulumi.Input[int]] = None, + custom_location_id: Optional[pulumi.Input[str]] = None, + disk_file_format: Optional[pulumi.Input[str]] = None, + disk_size_in_gb: Optional[pulumi.Input[int]] = None, + dynamic_enabled: Optional[pulumi.Input[bool]] = None, + hyperv_generation: Optional[pulumi.Input[str]] = None, + location: Optional[pulumi.Input[str]] = None, + logical_sector_in_bytes: Optional[pulumi.Input[int]] = None, + name: Optional[pulumi.Input[str]] = None, + physical_sector_in_bytes: Optional[pulumi.Input[int]] = None, + resource_group_name: Optional[pulumi.Input[str]] = None, + storage_path_id: Optional[pulumi.Input[str]] = None, + tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None): + """ + Input properties used for looking up and filtering HciVirtualHardDisk resources. + :param pulumi.Input[int] block_size_in_bytes: The block size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + :param pulumi.Input[str] custom_location_id: The ID of the Custom Location where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + :param pulumi.Input[str] disk_file_format: The format of the disk file. Possible values are `vhdx` and `vhd`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + :param pulumi.Input[int] disk_size_in_gb: The size of the disk in GB. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + :param pulumi.Input[bool] dynamic_enabled: Whether to enable dynamic sizing for the Azure Stack HCI Virtual Hard Disk. Defaults to `false`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + :param pulumi.Input[str] hyperv_generation: The hypervisor generation of the Azure Stack HCI Virtual Hard Disk. Possible values are `V1` and `V2`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + :param pulumi.Input[str] location: The Azure Region where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + :param pulumi.Input[int] logical_sector_in_bytes: The logical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + :param pulumi.Input[str] name: The name which should be used for this Azure Stack HCI Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + :param pulumi.Input[int] physical_sector_in_bytes: The physical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + :param pulumi.Input[str] resource_group_name: The name of the Resource Group where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + :param pulumi.Input[str] storage_path_id: The ID of the Azure Stack HCI Storage Path used for this Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + + > **Note:** If `storage_path_id` is not specified, the Virtual Hard Disk will be placed in a high availability Storage Path. If you experience a diff you may need to add this to `ignore_changes`. + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags which should be assigned to the Azure Stack HCI Virtual Hard Disk. + """ + if block_size_in_bytes is not None: + pulumi.set(__self__, "block_size_in_bytes", block_size_in_bytes) + if custom_location_id is not None: + pulumi.set(__self__, "custom_location_id", custom_location_id) + if disk_file_format is not None: + pulumi.set(__self__, "disk_file_format", disk_file_format) + if disk_size_in_gb is not None: + pulumi.set(__self__, "disk_size_in_gb", disk_size_in_gb) + if dynamic_enabled is not None: + pulumi.set(__self__, "dynamic_enabled", dynamic_enabled) + if hyperv_generation is not None: + pulumi.set(__self__, "hyperv_generation", hyperv_generation) + if location is not None: + pulumi.set(__self__, "location", location) + if logical_sector_in_bytes is not None: + pulumi.set(__self__, "logical_sector_in_bytes", logical_sector_in_bytes) + if name is not None: + pulumi.set(__self__, "name", name) + if physical_sector_in_bytes is not None: + pulumi.set(__self__, "physical_sector_in_bytes", physical_sector_in_bytes) + if resource_group_name is not None: + pulumi.set(__self__, "resource_group_name", resource_group_name) + if storage_path_id is not None: + pulumi.set(__self__, "storage_path_id", storage_path_id) + if tags is not None: + pulumi.set(__self__, "tags", tags) + + @property + @pulumi.getter(name="blockSizeInBytes") + def block_size_in_bytes(self) -> Optional[pulumi.Input[int]]: + """ + The block size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + """ + return pulumi.get(self, "block_size_in_bytes") + + @block_size_in_bytes.setter + def block_size_in_bytes(self, value: Optional[pulumi.Input[int]]): + pulumi.set(self, "block_size_in_bytes", value) + + @property + @pulumi.getter(name="customLocationId") + def custom_location_id(self) -> Optional[pulumi.Input[str]]: + """ + The ID of the Custom Location where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + """ + return pulumi.get(self, "custom_location_id") + + @custom_location_id.setter + def custom_location_id(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "custom_location_id", value) + + @property + @pulumi.getter(name="diskFileFormat") + def disk_file_format(self) -> Optional[pulumi.Input[str]]: + """ + The format of the disk file. Possible values are `vhdx` and `vhd`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + """ + return pulumi.get(self, "disk_file_format") + + @disk_file_format.setter + def disk_file_format(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "disk_file_format", value) + + @property + @pulumi.getter(name="diskSizeInGb") + def disk_size_in_gb(self) -> Optional[pulumi.Input[int]]: + """ + The size of the disk in GB. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + """ + return pulumi.get(self, "disk_size_in_gb") + + @disk_size_in_gb.setter + def disk_size_in_gb(self, value: Optional[pulumi.Input[int]]): + pulumi.set(self, "disk_size_in_gb", value) + + @property + @pulumi.getter(name="dynamicEnabled") + def dynamic_enabled(self) -> Optional[pulumi.Input[bool]]: + """ + Whether to enable dynamic sizing for the Azure Stack HCI Virtual Hard Disk. Defaults to `false`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + """ + return pulumi.get(self, "dynamic_enabled") + + @dynamic_enabled.setter + def dynamic_enabled(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "dynamic_enabled", value) + + @property + @pulumi.getter(name="hypervGeneration") + def hyperv_generation(self) -> Optional[pulumi.Input[str]]: + """ + The hypervisor generation of the Azure Stack HCI Virtual Hard Disk. Possible values are `V1` and `V2`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + """ + return pulumi.get(self, "hyperv_generation") + + @hyperv_generation.setter + def hyperv_generation(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "hyperv_generation", value) + + @property + @pulumi.getter + def location(self) -> Optional[pulumi.Input[str]]: + """ + The Azure Region where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + """ + return pulumi.get(self, "location") + + @location.setter + def location(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "location", value) + + @property + @pulumi.getter(name="logicalSectorInBytes") + def logical_sector_in_bytes(self) -> Optional[pulumi.Input[int]]: + """ + The logical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + """ + return pulumi.get(self, "logical_sector_in_bytes") + + @logical_sector_in_bytes.setter + def logical_sector_in_bytes(self, value: Optional[pulumi.Input[int]]): + pulumi.set(self, "logical_sector_in_bytes", value) + + @property + @pulumi.getter + def name(self) -> Optional[pulumi.Input[str]]: + """ + The name which should be used for this Azure Stack HCI Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "name", value) + + @property + @pulumi.getter(name="physicalSectorInBytes") + def physical_sector_in_bytes(self) -> Optional[pulumi.Input[int]]: + """ + The physical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + """ + return pulumi.get(self, "physical_sector_in_bytes") + + @physical_sector_in_bytes.setter + def physical_sector_in_bytes(self, value: Optional[pulumi.Input[int]]): + pulumi.set(self, "physical_sector_in_bytes", value) + + @property + @pulumi.getter(name="resourceGroupName") + def resource_group_name(self) -> Optional[pulumi.Input[str]]: + """ + The name of the Resource Group where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + """ + return pulumi.get(self, "resource_group_name") + + @resource_group_name.setter + def resource_group_name(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "resource_group_name", value) + + @property + @pulumi.getter(name="storagePathId") + def storage_path_id(self) -> Optional[pulumi.Input[str]]: + """ + The ID of the Azure Stack HCI Storage Path used for this Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + + > **Note:** If `storage_path_id` is not specified, the Virtual Hard Disk will be placed in a high availability Storage Path. If you experience a diff you may need to add this to `ignore_changes`. + """ + return pulumi.get(self, "storage_path_id") + + @storage_path_id.setter + def storage_path_id(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "storage_path_id", value) + + @property + @pulumi.getter + def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: + """ + A mapping of tags which should be assigned to the Azure Stack HCI Virtual Hard Disk. + """ + return pulumi.get(self, "tags") + + @tags.setter + def tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]): + pulumi.set(self, "tags", value) + + +class HciVirtualHardDisk(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + block_size_in_bytes: Optional[pulumi.Input[int]] = None, + custom_location_id: Optional[pulumi.Input[str]] = None, + disk_file_format: Optional[pulumi.Input[str]] = None, + disk_size_in_gb: Optional[pulumi.Input[int]] = None, + dynamic_enabled: Optional[pulumi.Input[bool]] = None, + hyperv_generation: Optional[pulumi.Input[str]] = None, + location: Optional[pulumi.Input[str]] = None, + logical_sector_in_bytes: Optional[pulumi.Input[int]] = None, + name: Optional[pulumi.Input[str]] = None, + physical_sector_in_bytes: Optional[pulumi.Input[int]] = None, + resource_group_name: Optional[pulumi.Input[str]] = None, + storage_path_id: Optional[pulumi.Input[str]] = None, + tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + __props__=None): + """ + Manages an Azure Stack HCI Virtual Hard Disk. + + ## Example Usage + + ```python + import pulumi + import pulumi_azure as azure + + example = azure.core.ResourceGroup("example", + name="example-rg", + location="West Europe") + example_hci_storage_path = azure.stack.HciStoragePath("example", + name="example-sp", + resource_group_name=example.name, + location=example.location, + custom_location_id="/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/cl1", + path="C:\\\\ClusterStorage\\\\UserStorage_2\\\\sp-example", + tags={ + "foo": "bar", + }) + example_hci_virtual_hard_disk = azure.stack.HciVirtualHardDisk("example", + name="example-vhd", + resource_group_name=example.name, + location=example.location, + custom_location_id="/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/cl1", + disk_size_in_gb=2, + storage_path_id=example_hci_storage_path.id, + tags={ + "foo": "bar", + }) + ``` + + ## Import + + Azure Stack HCI Virtual Hard Disks can be imported using the `resource id`, e.g. + + ```sh + $ pulumi import azure:stack/hciVirtualHardDisk:HciVirtualHardDisk example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.AzureStackHCI/virtualHardDisks/disk1 + ``` + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[int] block_size_in_bytes: The block size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + :param pulumi.Input[str] custom_location_id: The ID of the Custom Location where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + :param pulumi.Input[str] disk_file_format: The format of the disk file. Possible values are `vhdx` and `vhd`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + :param pulumi.Input[int] disk_size_in_gb: The size of the disk in GB. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + :param pulumi.Input[bool] dynamic_enabled: Whether to enable dynamic sizing for the Azure Stack HCI Virtual Hard Disk. Defaults to `false`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + :param pulumi.Input[str] hyperv_generation: The hypervisor generation of the Azure Stack HCI Virtual Hard Disk. Possible values are `V1` and `V2`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + :param pulumi.Input[str] location: The Azure Region where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + :param pulumi.Input[int] logical_sector_in_bytes: The logical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + :param pulumi.Input[str] name: The name which should be used for this Azure Stack HCI Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + :param pulumi.Input[int] physical_sector_in_bytes: The physical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + :param pulumi.Input[str] resource_group_name: The name of the Resource Group where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + :param pulumi.Input[str] storage_path_id: The ID of the Azure Stack HCI Storage Path used for this Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + + > **Note:** If `storage_path_id` is not specified, the Virtual Hard Disk will be placed in a high availability Storage Path. If you experience a diff you may need to add this to `ignore_changes`. + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags which should be assigned to the Azure Stack HCI Virtual Hard Disk. + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: HciVirtualHardDiskArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + Manages an Azure Stack HCI Virtual Hard Disk. + + ## Example Usage + + ```python + import pulumi + import pulumi_azure as azure + + example = azure.core.ResourceGroup("example", + name="example-rg", + location="West Europe") + example_hci_storage_path = azure.stack.HciStoragePath("example", + name="example-sp", + resource_group_name=example.name, + location=example.location, + custom_location_id="/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/cl1", + path="C:\\\\ClusterStorage\\\\UserStorage_2\\\\sp-example", + tags={ + "foo": "bar", + }) + example_hci_virtual_hard_disk = azure.stack.HciVirtualHardDisk("example", + name="example-vhd", + resource_group_name=example.name, + location=example.location, + custom_location_id="/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/cl1", + disk_size_in_gb=2, + storage_path_id=example_hci_storage_path.id, + tags={ + "foo": "bar", + }) + ``` + + ## Import + + Azure Stack HCI Virtual Hard Disks can be imported using the `resource id`, e.g. + + ```sh + $ pulumi import azure:stack/hciVirtualHardDisk:HciVirtualHardDisk example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.AzureStackHCI/virtualHardDisks/disk1 + ``` + + :param str resource_name: The name of the resource. + :param HciVirtualHardDiskArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(HciVirtualHardDiskArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + block_size_in_bytes: Optional[pulumi.Input[int]] = None, + custom_location_id: Optional[pulumi.Input[str]] = None, + disk_file_format: Optional[pulumi.Input[str]] = None, + disk_size_in_gb: Optional[pulumi.Input[int]] = None, + dynamic_enabled: Optional[pulumi.Input[bool]] = None, + hyperv_generation: Optional[pulumi.Input[str]] = None, + location: Optional[pulumi.Input[str]] = None, + logical_sector_in_bytes: Optional[pulumi.Input[int]] = None, + name: Optional[pulumi.Input[str]] = None, + physical_sector_in_bytes: Optional[pulumi.Input[int]] = None, + resource_group_name: Optional[pulumi.Input[str]] = None, + storage_path_id: Optional[pulumi.Input[str]] = None, + tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + 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__ = HciVirtualHardDiskArgs.__new__(HciVirtualHardDiskArgs) + + __props__.__dict__["block_size_in_bytes"] = block_size_in_bytes + if custom_location_id is None and not opts.urn: + raise TypeError("Missing required property 'custom_location_id'") + __props__.__dict__["custom_location_id"] = custom_location_id + __props__.__dict__["disk_file_format"] = disk_file_format + if disk_size_in_gb is None and not opts.urn: + raise TypeError("Missing required property 'disk_size_in_gb'") + __props__.__dict__["disk_size_in_gb"] = disk_size_in_gb + __props__.__dict__["dynamic_enabled"] = dynamic_enabled + __props__.__dict__["hyperv_generation"] = hyperv_generation + __props__.__dict__["location"] = location + __props__.__dict__["logical_sector_in_bytes"] = logical_sector_in_bytes + __props__.__dict__["name"] = name + __props__.__dict__["physical_sector_in_bytes"] = physical_sector_in_bytes + if resource_group_name is None and not opts.urn: + raise TypeError("Missing required property 'resource_group_name'") + __props__.__dict__["resource_group_name"] = resource_group_name + __props__.__dict__["storage_path_id"] = storage_path_id + __props__.__dict__["tags"] = tags + super(HciVirtualHardDisk, __self__).__init__( + 'azure:stack/hciVirtualHardDisk:HciVirtualHardDisk', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + block_size_in_bytes: Optional[pulumi.Input[int]] = None, + custom_location_id: Optional[pulumi.Input[str]] = None, + disk_file_format: Optional[pulumi.Input[str]] = None, + disk_size_in_gb: Optional[pulumi.Input[int]] = None, + dynamic_enabled: Optional[pulumi.Input[bool]] = None, + hyperv_generation: Optional[pulumi.Input[str]] = None, + location: Optional[pulumi.Input[str]] = None, + logical_sector_in_bytes: Optional[pulumi.Input[int]] = None, + name: Optional[pulumi.Input[str]] = None, + physical_sector_in_bytes: Optional[pulumi.Input[int]] = None, + resource_group_name: Optional[pulumi.Input[str]] = None, + storage_path_id: Optional[pulumi.Input[str]] = None, + tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None) -> 'HciVirtualHardDisk': + """ + Get an existing HciVirtualHardDisk 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. + :param pulumi.Input[int] block_size_in_bytes: The block size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + :param pulumi.Input[str] custom_location_id: The ID of the Custom Location where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + :param pulumi.Input[str] disk_file_format: The format of the disk file. Possible values are `vhdx` and `vhd`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + :param pulumi.Input[int] disk_size_in_gb: The size of the disk in GB. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + :param pulumi.Input[bool] dynamic_enabled: Whether to enable dynamic sizing for the Azure Stack HCI Virtual Hard Disk. Defaults to `false`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + :param pulumi.Input[str] hyperv_generation: The hypervisor generation of the Azure Stack HCI Virtual Hard Disk. Possible values are `V1` and `V2`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + :param pulumi.Input[str] location: The Azure Region where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + :param pulumi.Input[int] logical_sector_in_bytes: The logical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + :param pulumi.Input[str] name: The name which should be used for this Azure Stack HCI Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + :param pulumi.Input[int] physical_sector_in_bytes: The physical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + :param pulumi.Input[str] resource_group_name: The name of the Resource Group where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + :param pulumi.Input[str] storage_path_id: The ID of the Azure Stack HCI Storage Path used for this Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + + > **Note:** If `storage_path_id` is not specified, the Virtual Hard Disk will be placed in a high availability Storage Path. If you experience a diff you may need to add this to `ignore_changes`. + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: A mapping of tags which should be assigned to the Azure Stack HCI Virtual Hard Disk. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _HciVirtualHardDiskState.__new__(_HciVirtualHardDiskState) + + __props__.__dict__["block_size_in_bytes"] = block_size_in_bytes + __props__.__dict__["custom_location_id"] = custom_location_id + __props__.__dict__["disk_file_format"] = disk_file_format + __props__.__dict__["disk_size_in_gb"] = disk_size_in_gb + __props__.__dict__["dynamic_enabled"] = dynamic_enabled + __props__.__dict__["hyperv_generation"] = hyperv_generation + __props__.__dict__["location"] = location + __props__.__dict__["logical_sector_in_bytes"] = logical_sector_in_bytes + __props__.__dict__["name"] = name + __props__.__dict__["physical_sector_in_bytes"] = physical_sector_in_bytes + __props__.__dict__["resource_group_name"] = resource_group_name + __props__.__dict__["storage_path_id"] = storage_path_id + __props__.__dict__["tags"] = tags + return HciVirtualHardDisk(resource_name, opts=opts, __props__=__props__) + + @property + @pulumi.getter(name="blockSizeInBytes") + def block_size_in_bytes(self) -> pulumi.Output[Optional[int]]: + """ + The block size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + """ + return pulumi.get(self, "block_size_in_bytes") + + @property + @pulumi.getter(name="customLocationId") + def custom_location_id(self) -> pulumi.Output[str]: + """ + The ID of the Custom Location where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + """ + return pulumi.get(self, "custom_location_id") + + @property + @pulumi.getter(name="diskFileFormat") + def disk_file_format(self) -> pulumi.Output[Optional[str]]: + """ + The format of the disk file. Possible values are `vhdx` and `vhd`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + """ + return pulumi.get(self, "disk_file_format") + + @property + @pulumi.getter(name="diskSizeInGb") + def disk_size_in_gb(self) -> pulumi.Output[int]: + """ + The size of the disk in GB. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + """ + return pulumi.get(self, "disk_size_in_gb") + + @property + @pulumi.getter(name="dynamicEnabled") + def dynamic_enabled(self) -> pulumi.Output[Optional[bool]]: + """ + Whether to enable dynamic sizing for the Azure Stack HCI Virtual Hard Disk. Defaults to `false`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + """ + return pulumi.get(self, "dynamic_enabled") + + @property + @pulumi.getter(name="hypervGeneration") + def hyperv_generation(self) -> pulumi.Output[Optional[str]]: + """ + The hypervisor generation of the Azure Stack HCI Virtual Hard Disk. Possible values are `V1` and `V2`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + """ + return pulumi.get(self, "hyperv_generation") + + @property + @pulumi.getter + def location(self) -> pulumi.Output[str]: + """ + The Azure Region where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + """ + return pulumi.get(self, "location") + + @property + @pulumi.getter(name="logicalSectorInBytes") + def logical_sector_in_bytes(self) -> pulumi.Output[Optional[int]]: + """ + The logical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + """ + return pulumi.get(self, "logical_sector_in_bytes") + + @property + @pulumi.getter + def name(self) -> pulumi.Output[str]: + """ + The name which should be used for this Azure Stack HCI Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + """ + return pulumi.get(self, "name") + + @property + @pulumi.getter(name="physicalSectorInBytes") + def physical_sector_in_bytes(self) -> pulumi.Output[Optional[int]]: + """ + The physical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + """ + return pulumi.get(self, "physical_sector_in_bytes") + + @property + @pulumi.getter(name="resourceGroupName") + def resource_group_name(self) -> pulumi.Output[str]: + """ + The name of the Resource Group where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + """ + return pulumi.get(self, "resource_group_name") + + @property + @pulumi.getter(name="storagePathId") + def storage_path_id(self) -> pulumi.Output[Optional[str]]: + """ + The ID of the Azure Stack HCI Storage Path used for this Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. + + > **Note:** If `storage_path_id` is not specified, the Virtual Hard Disk will be placed in a high availability Storage Path. If you experience a diff you may need to add this to `ignore_changes`. + """ + return pulumi.get(self, "storage_path_id") + + @property + @pulumi.getter + def tags(self) -> pulumi.Output[Optional[Mapping[str, str]]]: + """ + A mapping of tags which should be assigned to the Azure Stack HCI Virtual Hard Disk. + """ + return pulumi.get(self, "tags") + diff --git a/upstream b/upstream index ef0d05582c..6b77615cfd 160000 --- a/upstream +++ b/upstream @@ -1 +1 @@ -Subproject commit ef0d05582c1fd5d9b74fffd44b16c8b79185daa9 +Subproject commit 6b77615cfdab5330dde36bb24e2b8a3379f53aac