From 4bea8910cd58122e78b8d597234617dbea34bcaa Mon Sep 17 00:00:00 2001 From: pulumi-bot Date: Sat, 6 Apr 2024 10:23:39 +0000 Subject: [PATCH 1/2] make tfgen --- provider/cmd/pulumi-resource-openstack/schema.json | 12 ++++++------ provider/go.mod | 4 ++-- provider/go.sum | 7 ++++--- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/provider/cmd/pulumi-resource-openstack/schema.json b/provider/cmd/pulumi-resource-openstack/schema.json index ae3c2e3d..78a8a057 100644 --- a/provider/cmd/pulumi-resource-openstack/schema.json +++ b/provider/cmd/pulumi-resource-openstack/schema.json @@ -294,7 +294,7 @@ }, "query": { "type": "string", - "description": "A conditional query that a back-end must pass in\norder to host a volume. The query must use the `JsonFilter` syntax\nwhich is described\n[here](https://docs.openstack.org/cinder/latest/configuration/block-storage/scheduler-filters.html#jsonfilter).\nAt this time, only simple queries are supported. Compound queries using\n`and`, `or`, or `not` are not supported. An example of a simple query is:\n\n", + "description": "A conditional query that a back-end must pass in\norder to host a volume. The query must use the `JsonFilter` syntax\nwhich is described\n[here](https://docs.openstack.org/cinder/latest/configuration/block-storage/scheduler-filters.html#jsonfilter).\nAt this time, only simple queries are supported. Compound queries using\n`and`, `or`, or `not` are not supported. An example of a simple query is:\n\n```\n[“=”, “$backend_id”, “rbd:vol@ceph#cloud”]\n```\n", "willReplaceOnChanges": true }, "sameHosts": { @@ -379,7 +379,7 @@ }, "query": { "type": "string", - "description": "A conditional query that a back-end must pass in\norder to host a volume. The query must use the `JsonFilter` syntax\nwhich is described\n[here](https://docs.openstack.org/cinder/latest/configuration/block-storage/scheduler-filters.html#jsonfilter).\nAt this time, only simple queries are supported. Compound queries using\n`and`, `or`, or `not` are not supported. An example of a simple query is:\n\n", + "description": "A conditional query that a back-end must pass in\norder to host a volume. The query must use the `JsonFilter` syntax\nwhich is described\n[here](https://docs.openstack.org/cinder/latest/configuration/block-storage/scheduler-filters.html#jsonfilter).\nAt this time, only simple queries are supported. Compound queries using\n`and`, `or`, or `not` are not supported. An example of a simple query is:\n\n```\n[“=”, “$backend_id”, “rbd:vol@ceph#cloud”]\n```\n", "willReplaceOnChanges": true }, "sameHosts": { @@ -591,7 +591,7 @@ "items": { "type": "string" }, - "description": "A conditional query that a compute node must pass in\norder to host an instance. The query must use the `JsonFilter` syntax\nwhich is described\n[here](https://docs.openstack.org/nova/latest/admin/configuration/schedulers.html#jsonfilter).\nAt this time, only simple queries are supported. Compound queries using\n`and`, `or`, or `not` are not supported. An example of a simple query is:\n\n", + "description": "A conditional query that a compute node must pass in\norder to host an instance. The query must use the `JsonFilter` syntax\nwhich is described\n[here](https://docs.openstack.org/nova/latest/admin/configuration/schedulers.html#jsonfilter).\nAt this time, only simple queries are supported. Compound queries using\n`and`, `or`, or `not` are not supported. An example of a simple query is:\n\n```\n[\"\u003e=\", \"$free_ram_mb\", \"1024\"]\n```\n", "willReplaceOnChanges": true }, "sameHosts": { @@ -878,7 +878,7 @@ }, "host": { "type": "string", - "description": "An ip address or %!s(MISSING)ign indicating what ip addresses can connect with\nthis user credentials. Changing this creates a new instance.\n", + "description": "An ip address or % sign indicating what ip addresses can connect with\nthis user credentials. Changing this creates a new instance.\n", "willReplaceOnChanges": true }, "name": { @@ -3021,7 +3021,7 @@ } }, "openstack:blockstorage/volumeAttach:VolumeAttach": { - "description": "\u003e **Note:** This resource usually requires admin privileges.\n\n\u003e **Note:** This resource does not actually attach a volume to an instance.\nPlease use the `openstack.compute.VolumeAttach` resource for that.\n\n\u003e **Note:** All arguments including the `data` computed attribute will be\nstored in the raw state as plain-text. Read more about sensitive data in\nstate.\n\nCreates a general purpose attachment connection to a Block\nStorage volume using the OpenStack Block Storage (Cinder) v3 API.\n\nDepending on your Block Storage service configuration, this\nresource can assist in attaching a volume to a non-OpenStack resource\nsuch as a bare-metal server or a remote virtual machine in a\ndifferent cloud provider.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as openstack from \"@pulumi/openstack\";\n\nconst volume1 = new openstack.blockstorage.Volume(\"volume1\", {size: 1});\nconst va1 = new openstack.blockstorage.VolumeAttach(\"va1\", {\n volumeId: volume1.id,\n device: \"auto\",\n hostName: \"devstack\",\n ipAddress: \"192.168.255.10\",\n initiator: \"iqn.1993-08.org.debian:01:e9861fb1859\",\n osType: \"linux2\",\n platform: \"x86_64\",\n});\n```\n```python\nimport pulumi\nimport pulumi_openstack as openstack\n\nvolume1 = openstack.blockstorage.Volume(\"volume1\", size=1)\nva1 = openstack.blockstorage.VolumeAttach(\"va1\",\n volume_id=volume1.id,\n device=\"auto\",\n host_name=\"devstack\",\n ip_address=\"192.168.255.10\",\n initiator=\"iqn.1993-08.org.debian:01:e9861fb1859\",\n os_type=\"linux2\",\n platform=\"x86_64\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing OpenStack = Pulumi.OpenStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var volume1 = new OpenStack.BlockStorage.Volume(\"volume1\", new()\n {\n Size = 1,\n });\n\n var va1 = new OpenStack.BlockStorage.VolumeAttach(\"va1\", new()\n {\n VolumeId = volume1.Id,\n Device = \"auto\",\n HostName = \"devstack\",\n IpAddress = \"192.168.255.10\",\n Initiator = \"iqn.1993-08.org.debian:01:e9861fb1859\",\n OsType = \"linux2\",\n Platform = \"x86_64\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-openstack/sdk/v3/go/openstack/blockstorage\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tvolume1, err := blockstorage.NewVolume(ctx, \"volume1\", \u0026blockstorage.VolumeArgs{\n\t\t\tSize: pulumi.Int(1),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = blockstorage.NewVolumeAttach(ctx, \"va1\", \u0026blockstorage.VolumeAttachArgs{\n\t\t\tVolumeId: volume1.ID(),\n\t\t\tDevice: pulumi.String(\"auto\"),\n\t\t\tHostName: pulumi.String(\"devstack\"),\n\t\t\tIpAddress: pulumi.String(\"192.168.255.10\"),\n\t\t\tInitiator: pulumi.String(\"iqn.1993-08.org.debian:01:e9861fb1859\"),\n\t\t\tOsType: pulumi.String(\"linux2\"),\n\t\t\tPlatform: pulumi.String(\"x86_64\"),\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.openstack.blockstorage.Volume;\nimport com.pulumi.openstack.blockstorage.VolumeArgs;\nimport com.pulumi.openstack.blockstorage.VolumeAttach;\nimport com.pulumi.openstack.blockstorage.VolumeAttachArgs;\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 volume1 = new Volume(\"volume1\", VolumeArgs.builder() \n .size(1)\n .build());\n\n var va1 = new VolumeAttach(\"va1\", VolumeAttachArgs.builder() \n .volumeId(volume1.id())\n .device(\"auto\")\n .hostName(\"devstack\")\n .ipAddress(\"192.168.255.10\")\n .initiator(\"iqn.1993-08.org.debian:01:e9861fb1859\")\n .osType(\"linux2\")\n .platform(\"x86_64\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n volume1:\n type: openstack:blockstorage:Volume\n properties:\n size: 1\n va1:\n type: openstack:blockstorage:VolumeAttach\n properties:\n volumeId: ${volume1.id}\n device: auto\n hostName: devstack\n ipAddress: 192.168.255.10\n initiator: iqn.1993-08.org.debian:01:e9861fb1859\n osType: linux2\n platform: x86_64\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n", + "description": "\u003e **Note:** This resource usually requires admin privileges.\n\n\u003e **Note:** This resource does not actually attach a volume to an instance.\nPlease use the `openstack.compute.VolumeAttach` resource for that.\n\n\u003e **Note:** All arguments including the `data` computed attribute will be\nstored in the raw state as plain-text. Read more about sensitive data in\nstate.\n\nCreates a general purpose attachment connection to a Block\nStorage volume using the OpenStack Block Storage (Cinder) v3 API.\n\nDepending on your Block Storage service configuration, this\nresource can assist in attaching a volume to a non-OpenStack resource\nsuch as a bare-metal server or a remote virtual machine in a\ndifferent cloud provider.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as openstack from \"@pulumi/openstack\";\n\nconst volume1 = new openstack.blockstorage.Volume(\"volume1\", {size: 1});\nconst va1 = new openstack.blockstorage.VolumeAttach(\"va1\", {\n volumeId: volume1.id,\n device: \"auto\",\n hostName: \"devstack\",\n ipAddress: \"192.168.255.10\",\n initiator: \"iqn.1993-08.org.debian:01:e9861fb1859\",\n osType: \"linux2\",\n platform: \"x86_64\",\n});\n```\n```python\nimport pulumi\nimport pulumi_openstack as openstack\n\nvolume1 = openstack.blockstorage.Volume(\"volume1\", size=1)\nva1 = openstack.blockstorage.VolumeAttach(\"va1\",\n volume_id=volume1.id,\n device=\"auto\",\n host_name=\"devstack\",\n ip_address=\"192.168.255.10\",\n initiator=\"iqn.1993-08.org.debian:01:e9861fb1859\",\n os_type=\"linux2\",\n platform=\"x86_64\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing OpenStack = Pulumi.OpenStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var volume1 = new OpenStack.BlockStorage.Volume(\"volume1\", new()\n {\n Size = 1,\n });\n\n var va1 = new OpenStack.BlockStorage.VolumeAttach(\"va1\", new()\n {\n VolumeId = volume1.Id,\n Device = \"auto\",\n HostName = \"devstack\",\n IpAddress = \"192.168.255.10\",\n Initiator = \"iqn.1993-08.org.debian:01:e9861fb1859\",\n OsType = \"linux2\",\n Platform = \"x86_64\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-openstack/sdk/v3/go/openstack/blockstorage\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tvolume1, err := blockstorage.NewVolume(ctx, \"volume1\", \u0026blockstorage.VolumeArgs{\n\t\t\tSize: pulumi.Int(1),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = blockstorage.NewVolumeAttach(ctx, \"va1\", \u0026blockstorage.VolumeAttachArgs{\n\t\t\tVolumeId: volume1.ID(),\n\t\t\tDevice: pulumi.String(\"auto\"),\n\t\t\tHostName: pulumi.String(\"devstack\"),\n\t\t\tIpAddress: pulumi.String(\"192.168.255.10\"),\n\t\t\tInitiator: pulumi.String(\"iqn.1993-08.org.debian:01:e9861fb1859\"),\n\t\t\tOsType: pulumi.String(\"linux2\"),\n\t\t\tPlatform: pulumi.String(\"x86_64\"),\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.openstack.blockstorage.Volume;\nimport com.pulumi.openstack.blockstorage.VolumeArgs;\nimport com.pulumi.openstack.blockstorage.VolumeAttach;\nimport com.pulumi.openstack.blockstorage.VolumeAttachArgs;\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 volume1 = new Volume(\"volume1\", VolumeArgs.builder() \n .size(1)\n .build());\n\n var va1 = new VolumeAttach(\"va1\", VolumeAttachArgs.builder() \n .volumeId(volume1.id())\n .device(\"auto\")\n .hostName(\"devstack\")\n .ipAddress(\"192.168.255.10\")\n .initiator(\"iqn.1993-08.org.debian:01:e9861fb1859\")\n .osType(\"linux2\")\n .platform(\"x86_64\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n volume1:\n type: openstack:blockstorage:Volume\n properties:\n size: 1\n va1:\n type: openstack:blockstorage:VolumeAttach\n properties:\n volumeId: ${volume1.id}\n device: auto\n hostName: devstack\n ipAddress: 192.168.255.10\n initiator: iqn.1993-08.org.debian:01:e9861fb1859\n osType: linux2\n platform: x86_64\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Volume Connection Data\n\nUpon creation of this resource, a `data` exported attribute will be available.\nThis attribute is a set of key/value pairs that contains the information\nrequired to complete the block storage connection.\n\nAs an example, creating an iSCSI-based volume will return the following:\n\n```\ndata.access_mode = rw\ndata.auth_method = CHAP\ndata.auth_password = xUhbGKQ8QCwKmHQ2\ndata.auth_username = Sphn5X4EoyFUUMYVYSA4\ndata.target_iqn = iqn.2010-10.org.openstack:volume-2d87ed25-c312-4f42-be1d-3b36b014561d\ndata.target_portal = 192.168.255.10:3260\ndata.volume_id = 2d87ed25-c312-4f42-be1d-3b36b014561d\n```\n\nThis information can then be fed into a provisioner or a template shell script,\nwhere the final result would look something like:\n\n```\niscsiadm -m node -T ${self.data.target_iqn} -p ${self.data.target_portal} --interface default --op new\niscsiadm -m node -T ${self.data.target_iqn} -p ${self.data.target_portal} --op update -n node.session.auth.authmethod -v ${self.data.auth_method}\niscsiadm -m node -T ${self.data.target_iqn} -p ${self.data.target_portal} --op update -n node.session.auth.username -v ${self.data.auth_username}\niscsiadm -m node -T ${self.data.target_iqn} -p ${self.data.target_portal} --op update -n node.session.auth.password -v ${self.data.auth_password}\niscsiadm -m node -T ${self.data.target_iqn} -p ${self.data.target_portal} --login\niscsiadm -m node -T ${self.data.target_iqn} -p ${self.data.target_portal} --op update -n node.startup -v automatic\niscsiadm -m node -T ${self.data.target_iqn} -p ${self.data.target_portal} --rescan\n```\n\nThe contents of `data` will vary from each Block Storage service. You must have\na good understanding of how the service is configured and how to make the\nappropriate final connection. However, if used correctly, this has the\nflexibility to be able to attach OpenStack Block Storage volumes to\nnon-OpenStack resources.\n\n## Import\n\nIt is not possible to import this resource.\n\n", "properties": { "attachMode": { "type": "string", @@ -3255,7 +3255,7 @@ } }, "openstack:blockstorage/volumeAttachV2:VolumeAttachV2": { - "description": "\u003e **Note:** This resource usually requires admin privileges.\n\n\u003e **Note:** This resource does not actually attach a volume to an instance.\nPlease use the `openstack.compute.VolumeAttach` resource for that.\n\n\u003e **Note:** All arguments including the `data` computed attribute will be\nstored in the raw state as plain-text. Read more about sensitive data in\nstate.\n\nCreates a general purpose attachment connection to a Block\nStorage volume using the OpenStack Block Storage (Cinder) v2 API.\n\nDepending on your Block Storage service configuration, this\nresource can assist in attaching a volume to a non-OpenStack resource\nsuch as a bare-metal server or a remote virtual machine in a\ndifferent cloud provider.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as openstack from \"@pulumi/openstack\";\n\nconst volume1 = new openstack.blockstorage.VolumeV2(\"volume1\", {size: 1});\nconst va1 = new openstack.blockstorage.VolumeAttachV2(\"va1\", {\n volumeId: volume1.id,\n device: \"auto\",\n hostName: \"devstack\",\n ipAddress: \"192.168.255.10\",\n initiator: \"iqn.1993-08.org.debian:01:e9861fb1859\",\n osType: \"linux2\",\n platform: \"x86_64\",\n});\n```\n```python\nimport pulumi\nimport pulumi_openstack as openstack\n\nvolume1 = openstack.blockstorage.VolumeV2(\"volume1\", size=1)\nva1 = openstack.blockstorage.VolumeAttachV2(\"va1\",\n volume_id=volume1.id,\n device=\"auto\",\n host_name=\"devstack\",\n ip_address=\"192.168.255.10\",\n initiator=\"iqn.1993-08.org.debian:01:e9861fb1859\",\n os_type=\"linux2\",\n platform=\"x86_64\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing OpenStack = Pulumi.OpenStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var volume1 = new OpenStack.BlockStorage.VolumeV2(\"volume1\", new()\n {\n Size = 1,\n });\n\n var va1 = new OpenStack.BlockStorage.VolumeAttachV2(\"va1\", new()\n {\n VolumeId = volume1.Id,\n Device = \"auto\",\n HostName = \"devstack\",\n IpAddress = \"192.168.255.10\",\n Initiator = \"iqn.1993-08.org.debian:01:e9861fb1859\",\n OsType = \"linux2\",\n Platform = \"x86_64\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-openstack/sdk/v3/go/openstack/blockstorage\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tvolume1, err := blockstorage.NewVolumeV2(ctx, \"volume1\", \u0026blockstorage.VolumeV2Args{\n\t\t\tSize: pulumi.Int(1),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = blockstorage.NewVolumeAttachV2(ctx, \"va1\", \u0026blockstorage.VolumeAttachV2Args{\n\t\t\tVolumeId: volume1.ID(),\n\t\t\tDevice: pulumi.String(\"auto\"),\n\t\t\tHostName: pulumi.String(\"devstack\"),\n\t\t\tIpAddress: pulumi.String(\"192.168.255.10\"),\n\t\t\tInitiator: pulumi.String(\"iqn.1993-08.org.debian:01:e9861fb1859\"),\n\t\t\tOsType: pulumi.String(\"linux2\"),\n\t\t\tPlatform: pulumi.String(\"x86_64\"),\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.openstack.blockstorage.VolumeV2;\nimport com.pulumi.openstack.blockstorage.VolumeV2Args;\nimport com.pulumi.openstack.blockstorage.VolumeAttachV2;\nimport com.pulumi.openstack.blockstorage.VolumeAttachV2Args;\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 volume1 = new VolumeV2(\"volume1\", VolumeV2Args.builder() \n .size(1)\n .build());\n\n var va1 = new VolumeAttachV2(\"va1\", VolumeAttachV2Args.builder() \n .volumeId(volume1.id())\n .device(\"auto\")\n .hostName(\"devstack\")\n .ipAddress(\"192.168.255.10\")\n .initiator(\"iqn.1993-08.org.debian:01:e9861fb1859\")\n .osType(\"linux2\")\n .platform(\"x86_64\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n volume1:\n type: openstack:blockstorage:VolumeV2\n properties:\n size: 1\n va1:\n type: openstack:blockstorage:VolumeAttachV2\n properties:\n volumeId: ${volume1.id}\n device: auto\n hostName: devstack\n ipAddress: 192.168.255.10\n initiator: iqn.1993-08.org.debian:01:e9861fb1859\n osType: linux2\n platform: x86_64\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n", + "description": "\u003e **Note:** This resource usually requires admin privileges.\n\n\u003e **Note:** This resource does not actually attach a volume to an instance.\nPlease use the `openstack.compute.VolumeAttach` resource for that.\n\n\u003e **Note:** All arguments including the `data` computed attribute will be\nstored in the raw state as plain-text. Read more about sensitive data in\nstate.\n\nCreates a general purpose attachment connection to a Block\nStorage volume using the OpenStack Block Storage (Cinder) v2 API.\n\nDepending on your Block Storage service configuration, this\nresource can assist in attaching a volume to a non-OpenStack resource\nsuch as a bare-metal server or a remote virtual machine in a\ndifferent cloud provider.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as openstack from \"@pulumi/openstack\";\n\nconst volume1 = new openstack.blockstorage.VolumeV2(\"volume1\", {size: 1});\nconst va1 = new openstack.blockstorage.VolumeAttachV2(\"va1\", {\n volumeId: volume1.id,\n device: \"auto\",\n hostName: \"devstack\",\n ipAddress: \"192.168.255.10\",\n initiator: \"iqn.1993-08.org.debian:01:e9861fb1859\",\n osType: \"linux2\",\n platform: \"x86_64\",\n});\n```\n```python\nimport pulumi\nimport pulumi_openstack as openstack\n\nvolume1 = openstack.blockstorage.VolumeV2(\"volume1\", size=1)\nva1 = openstack.blockstorage.VolumeAttachV2(\"va1\",\n volume_id=volume1.id,\n device=\"auto\",\n host_name=\"devstack\",\n ip_address=\"192.168.255.10\",\n initiator=\"iqn.1993-08.org.debian:01:e9861fb1859\",\n os_type=\"linux2\",\n platform=\"x86_64\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing OpenStack = Pulumi.OpenStack;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var volume1 = new OpenStack.BlockStorage.VolumeV2(\"volume1\", new()\n {\n Size = 1,\n });\n\n var va1 = new OpenStack.BlockStorage.VolumeAttachV2(\"va1\", new()\n {\n VolumeId = volume1.Id,\n Device = \"auto\",\n HostName = \"devstack\",\n IpAddress = \"192.168.255.10\",\n Initiator = \"iqn.1993-08.org.debian:01:e9861fb1859\",\n OsType = \"linux2\",\n Platform = \"x86_64\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-openstack/sdk/v3/go/openstack/blockstorage\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tvolume1, err := blockstorage.NewVolumeV2(ctx, \"volume1\", \u0026blockstorage.VolumeV2Args{\n\t\t\tSize: pulumi.Int(1),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = blockstorage.NewVolumeAttachV2(ctx, \"va1\", \u0026blockstorage.VolumeAttachV2Args{\n\t\t\tVolumeId: volume1.ID(),\n\t\t\tDevice: pulumi.String(\"auto\"),\n\t\t\tHostName: pulumi.String(\"devstack\"),\n\t\t\tIpAddress: pulumi.String(\"192.168.255.10\"),\n\t\t\tInitiator: pulumi.String(\"iqn.1993-08.org.debian:01:e9861fb1859\"),\n\t\t\tOsType: pulumi.String(\"linux2\"),\n\t\t\tPlatform: pulumi.String(\"x86_64\"),\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.openstack.blockstorage.VolumeV2;\nimport com.pulumi.openstack.blockstorage.VolumeV2Args;\nimport com.pulumi.openstack.blockstorage.VolumeAttachV2;\nimport com.pulumi.openstack.blockstorage.VolumeAttachV2Args;\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 volume1 = new VolumeV2(\"volume1\", VolumeV2Args.builder() \n .size(1)\n .build());\n\n var va1 = new VolumeAttachV2(\"va1\", VolumeAttachV2Args.builder() \n .volumeId(volume1.id())\n .device(\"auto\")\n .hostName(\"devstack\")\n .ipAddress(\"192.168.255.10\")\n .initiator(\"iqn.1993-08.org.debian:01:e9861fb1859\")\n .osType(\"linux2\")\n .platform(\"x86_64\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n volume1:\n type: openstack:blockstorage:VolumeV2\n properties:\n size: 1\n va1:\n type: openstack:blockstorage:VolumeAttachV2\n properties:\n volumeId: ${volume1.id}\n device: auto\n hostName: devstack\n ipAddress: 192.168.255.10\n initiator: iqn.1993-08.org.debian:01:e9861fb1859\n osType: linux2\n platform: x86_64\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Volume Connection Data\n\nUpon creation of this resource, a `data` exported attribute will be available.\nThis attribute is a set of key/value pairs that contains the information\nrequired to complete the block storage connection.\n\nAs an example, creating an iSCSI-based volume will return the following:\n\n```\ndata.access_mode = rw\ndata.auth_method = CHAP\ndata.auth_password = xUhbGKQ8QCwKmHQ2\ndata.auth_username = Sphn5X4EoyFUUMYVYSA4\ndata.target_iqn = iqn.2010-10.org.openstack:volume-2d87ed25-c312-4f42-be1d-3b36b014561d\ndata.target_portal = 192.168.255.10:3260\ndata.volume_id = 2d87ed25-c312-4f42-be1d-3b36b014561d\n```\n\nThis information can then be fed into a provisioner or a template shell script,\nwhere the final result would look something like:\n\n```\niscsiadm -m node -T ${self.data.target_iqn} -p ${self.data.target_portal} --interface default --op new\niscsiadm -m node -T ${self.data.target_iqn} -p ${self.data.target_portal} --op update -n node.session.auth.authmethod -v ${self.data.auth_method}\niscsiadm -m node -T ${self.data.target_iqn} -p ${self.data.target_portal} --op update -n node.session.auth.username -v ${self.data.auth_username}\niscsiadm -m node -T ${self.data.target_iqn} -p ${self.data.target_portal} --op update -n node.session.auth.password -v ${self.data.auth_password}\niscsiadm -m node -T ${self.data.target_iqn} -p ${self.data.target_portal} --login\niscsiadm -m node -T ${self.data.target_iqn} -p ${self.data.target_portal} --op update -n node.startup -v automatic\niscsiadm -m node -T ${self.data.target_iqn} -p ${self.data.target_portal} --rescan\n```\n\nThe contents of `data` will vary from each Block Storage service. You must have\na good understanding of how the service is configured and how to make the\nappropriate final connection. However, if used correctly, this has the\nflexibility to be able to attach OpenStack Block Storage volumes to\nnon-OpenStack resources.\n\n## Import\n\nIt is not possible to import this resource.\n\n", "properties": { "attachMode": { "type": "string", diff --git a/provider/go.mod b/provider/go.mod index 6d26ba3f..75109d73 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -3,7 +3,7 @@ module github.com/pulumi/pulumi-openstack/provider/v3 go 1.21 require ( - github.com/pulumi/pulumi-terraform-bridge/v3 v3.79.0 + github.com/pulumi/pulumi-terraform-bridge/v3 v3.80.0 github.com/pulumi/pulumi/sdk/v3 v3.112.0 github.com/terraform-provider-openstack/terraform-provider-openstack v1.54.1 ) @@ -90,7 +90,7 @@ require ( github.com/golang-jwt/jwt/v5 v5.1.0 // indirect github.com/golang/glog v1.2.0 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect - github.com/golang/protobuf v1.5.3 // indirect + github.com/golang/protobuf v1.5.4 // indirect github.com/golang/snappy v0.0.4 // indirect github.com/google/go-cmp v0.6.0 // indirect github.com/google/go-querystring v1.1.0 // indirect diff --git a/provider/go.sum b/provider/go.sum index bc876f0b..0f8b45a8 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -1974,8 +1974,9 @@ github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.1/go.mod h1:DopwsBzvsk0Fs44TXzsVbJyPhcCPeIwnvohx4u74HPM= github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= -github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= +github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= +github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= @@ -2803,8 +2804,8 @@ github.com/pulumi/providertest v0.0.11 h1:mg8MQ7Cq7+9XlHIkBD+aCqQO4mwAJEISngZgVd github.com/pulumi/providertest v0.0.11/go.mod h1:HsxjVsytcMIuNj19w1lT2W0QXY0oReXl1+h6eD2JXP8= github.com/pulumi/pulumi-java/pkg v0.10.0 h1:D1i5MiiNrxYr2uJ1szcj1aQwF9DYv7TTsPmajB9dKSw= github.com/pulumi/pulumi-java/pkg v0.10.0/go.mod h1:xu6UgYtQm+xXOo1/DZNa2CWVPytu+RMkZVTtI7w7ffY= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.79.0 h1:h0HlgUsqaQAe57/+AP9kbhHo5SLI0uwl8lstjVG+I9U= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.79.0/go.mod h1:U5CqG4BJmdzCd4ALO2cx/dEP0yTHfIS2sk2ah1ngZq4= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.80.0 h1:A+LvNkIIPYokCyGJG6eO+rlZge1my/Bj7ouZbiwC7AM= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.80.0/go.mod h1:VzIl/lDqPfHpYq2UQQvY6YHeSXwt0+riqc8eNpK+ElA= github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.8 h1:mav2tSitA9BPJPLLahKgepHyYsMzwaTm4cvp0dcTMYw= github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.8/go.mod h1:qUYk2c9i/yqMGNj9/bQyXpS39BxNDSXYjVN1njnq0zY= github.com/pulumi/pulumi-yaml v1.6.0 h1:mb/QkebWXTa1fR+P3ZkCCHGXOYC6iTN8X8By9eNz8xM= From ae5f9bf2f56e53e2ea4a0db9efded82c958b7a28 Mon Sep 17 00:00:00 2001 From: pulumi-bot Date: Sat, 6 Apr 2024 10:25:06 +0000 Subject: [PATCH 2/2] make build_sdks --- .../Inputs/VolumeSchedulerHintArgs.cs | 4 ++ .../Inputs/VolumeSchedulerHintGetArgs.cs | 4 ++ .../Inputs/VolumeV2SchedulerHintArgs.cs | 4 ++ .../Inputs/VolumeV2SchedulerHintGetArgs.cs | 4 ++ .../Outputs/VolumeSchedulerHint.cs | 4 ++ .../Outputs/VolumeV2SchedulerHint.cs | 4 ++ sdk/dotnet/BlockStorage/VolumeAttach.cs | 21 ++++++++++ sdk/dotnet/BlockStorage/VolumeAttachV2.cs | 21 ++++++++++ .../Inputs/InstanceSchedulerHintArgs.cs | 4 ++ .../Inputs/InstanceSchedulerHintGetArgs.cs | 4 ++ .../Compute/Outputs/InstanceSchedulerHint.cs | 4 ++ .../Database/Inputs/InstanceUserArgs.cs | 2 +- .../Database/Inputs/InstanceUserGetArgs.cs | 2 +- sdk/dotnet/Database/Outputs/InstanceUser.cs | 2 +- sdk/go/openstack/blockstorage/volumeAttach.go | 21 ++++++++++ .../openstack/blockstorage/volumeAttachV2.go | 21 ++++++++++ sdk/go/openstack/database/pulumiTypes.go | 6 +-- .../openstack/blockstorage/VolumeAttach.java | 21 ++++++++++ .../blockstorage/VolumeAttachV2.java | 21 ++++++++++ .../database/inputs/InstanceUserArgs.java | 8 ++-- .../database/outputs/InstanceUser.java | 4 +- sdk/nodejs/blockstorage/volumeAttach.ts | 21 ++++++++++ sdk/nodejs/blockstorage/volumeAttachV2.ts | 21 ++++++++++ sdk/nodejs/types/input.ts | 14 ++++++- sdk/nodejs/types/output.ts | 14 ++++++- .../pulumi_openstack/blockstorage/_inputs.py | 16 +++++++ .../pulumi_openstack/blockstorage/outputs.py | 16 +++++++ .../blockstorage/volume_attach.py | 42 +++++++++++++++++++ .../blockstorage/volume_attach_v2.py | 42 +++++++++++++++++++ .../pulumi_openstack/compute/_inputs.py | 8 ++++ .../pulumi_openstack/compute/outputs.py | 8 ++++ .../pulumi_openstack/database/_inputs.py | 4 +- .../pulumi_openstack/database/outputs.py | 4 +- 33 files changed, 378 insertions(+), 18 deletions(-) diff --git a/sdk/dotnet/BlockStorage/Inputs/VolumeSchedulerHintArgs.cs b/sdk/dotnet/BlockStorage/Inputs/VolumeSchedulerHintArgs.cs index 32f894da..8795a91c 100644 --- a/sdk/dotnet/BlockStorage/Inputs/VolumeSchedulerHintArgs.cs +++ b/sdk/dotnet/BlockStorage/Inputs/VolumeSchedulerHintArgs.cs @@ -52,6 +52,10 @@ public InputList DifferentHosts /// [here](https://docs.openstack.org/cinder/latest/configuration/block-storage/scheduler-filters.html#jsonfilter). /// At this time, only simple queries are supported. Compound queries using /// `and`, `or`, or `not` are not supported. An example of a simple query is: + /// + /// ``` + /// [“=”, “$backend_id”, “rbd:vol@ceph#cloud”] + /// ``` /// [Input("query")] public Input? Query { get; set; } diff --git a/sdk/dotnet/BlockStorage/Inputs/VolumeSchedulerHintGetArgs.cs b/sdk/dotnet/BlockStorage/Inputs/VolumeSchedulerHintGetArgs.cs index 64cf9e46..32ad6ea6 100644 --- a/sdk/dotnet/BlockStorage/Inputs/VolumeSchedulerHintGetArgs.cs +++ b/sdk/dotnet/BlockStorage/Inputs/VolumeSchedulerHintGetArgs.cs @@ -52,6 +52,10 @@ public InputList DifferentHosts /// [here](https://docs.openstack.org/cinder/latest/configuration/block-storage/scheduler-filters.html#jsonfilter). /// At this time, only simple queries are supported. Compound queries using /// `and`, `or`, or `not` are not supported. An example of a simple query is: + /// + /// ``` + /// [“=”, “$backend_id”, “rbd:vol@ceph#cloud”] + /// ``` /// [Input("query")] public Input? Query { get; set; } diff --git a/sdk/dotnet/BlockStorage/Inputs/VolumeV2SchedulerHintArgs.cs b/sdk/dotnet/BlockStorage/Inputs/VolumeV2SchedulerHintArgs.cs index adcedb14..253a3573 100644 --- a/sdk/dotnet/BlockStorage/Inputs/VolumeV2SchedulerHintArgs.cs +++ b/sdk/dotnet/BlockStorage/Inputs/VolumeV2SchedulerHintArgs.cs @@ -52,6 +52,10 @@ public InputList DifferentHosts /// [here](https://docs.openstack.org/cinder/latest/configuration/block-storage/scheduler-filters.html#jsonfilter). /// At this time, only simple queries are supported. Compound queries using /// `and`, `or`, or `not` are not supported. An example of a simple query is: + /// + /// ``` + /// [“=”, “$backend_id”, “rbd:vol@ceph#cloud”] + /// ``` /// [Input("query")] public Input? Query { get; set; } diff --git a/sdk/dotnet/BlockStorage/Inputs/VolumeV2SchedulerHintGetArgs.cs b/sdk/dotnet/BlockStorage/Inputs/VolumeV2SchedulerHintGetArgs.cs index 6ff29f2b..e1e18020 100644 --- a/sdk/dotnet/BlockStorage/Inputs/VolumeV2SchedulerHintGetArgs.cs +++ b/sdk/dotnet/BlockStorage/Inputs/VolumeV2SchedulerHintGetArgs.cs @@ -52,6 +52,10 @@ public InputList DifferentHosts /// [here](https://docs.openstack.org/cinder/latest/configuration/block-storage/scheduler-filters.html#jsonfilter). /// At this time, only simple queries are supported. Compound queries using /// `and`, `or`, or `not` are not supported. An example of a simple query is: + /// + /// ``` + /// [“=”, “$backend_id”, “rbd:vol@ceph#cloud”] + /// ``` /// [Input("query")] public Input? Query { get; set; } diff --git a/sdk/dotnet/BlockStorage/Outputs/VolumeSchedulerHint.cs b/sdk/dotnet/BlockStorage/Outputs/VolumeSchedulerHint.cs index e126ef0e..c6767bb4 100644 --- a/sdk/dotnet/BlockStorage/Outputs/VolumeSchedulerHint.cs +++ b/sdk/dotnet/BlockStorage/Outputs/VolumeSchedulerHint.cs @@ -35,6 +35,10 @@ public sealed class VolumeSchedulerHint /// [here](https://docs.openstack.org/cinder/latest/configuration/block-storage/scheduler-filters.html#jsonfilter). /// At this time, only simple queries are supported. Compound queries using /// `and`, `or`, or `not` are not supported. An example of a simple query is: + /// + /// ``` + /// [“=”, “$backend_id”, “rbd:vol@ceph#cloud”] + /// ``` /// public readonly string? Query; /// diff --git a/sdk/dotnet/BlockStorage/Outputs/VolumeV2SchedulerHint.cs b/sdk/dotnet/BlockStorage/Outputs/VolumeV2SchedulerHint.cs index 79d5610b..1cec32c3 100644 --- a/sdk/dotnet/BlockStorage/Outputs/VolumeV2SchedulerHint.cs +++ b/sdk/dotnet/BlockStorage/Outputs/VolumeV2SchedulerHint.cs @@ -35,6 +35,10 @@ public sealed class VolumeV2SchedulerHint /// [here](https://docs.openstack.org/cinder/latest/configuration/block-storage/scheduler-filters.html#jsonfilter). /// At this time, only simple queries are supported. Compound queries using /// `and`, `or`, or `not` are not supported. An example of a simple query is: + /// + /// ``` + /// [“=”, “$backend_id”, “rbd:vol@ceph#cloud”] + /// ``` /// public readonly string? Query; /// diff --git a/sdk/dotnet/BlockStorage/VolumeAttach.cs b/sdk/dotnet/BlockStorage/VolumeAttach.cs index 330390c0..3fd172c9 100644 --- a/sdk/dotnet/BlockStorage/VolumeAttach.cs +++ b/sdk/dotnet/BlockStorage/VolumeAttach.cs @@ -57,6 +57,27 @@ namespace Pulumi.OpenStack.BlockStorage /// }); /// ``` /// <!--End PulumiCodeChooser --> + /// + /// ## Volume Connection Data + /// + /// Upon creation of this resource, a `data` exported attribute will be available. + /// This attribute is a set of key/value pairs that contains the information + /// required to complete the block storage connection. + /// + /// As an example, creating an iSCSI-based volume will return the following: + /// + /// This information can then be fed into a provisioner or a template shell script, + /// where the final result would look something like: + /// + /// The contents of `data` will vary from each Block Storage service. You must have + /// a good understanding of how the service is configured and how to make the + /// appropriate final connection. However, if used correctly, this has the + /// flexibility to be able to attach OpenStack Block Storage volumes to + /// non-OpenStack resources. + /// + /// ## Import + /// + /// It is not possible to import this resource. /// [OpenStackResourceType("openstack:blockstorage/volumeAttach:VolumeAttach")] public partial class VolumeAttach : global::Pulumi.CustomResource diff --git a/sdk/dotnet/BlockStorage/VolumeAttachV2.cs b/sdk/dotnet/BlockStorage/VolumeAttachV2.cs index 5c4beeef..f148b459 100644 --- a/sdk/dotnet/BlockStorage/VolumeAttachV2.cs +++ b/sdk/dotnet/BlockStorage/VolumeAttachV2.cs @@ -57,6 +57,27 @@ namespace Pulumi.OpenStack.BlockStorage /// }); /// ``` /// <!--End PulumiCodeChooser --> + /// + /// ## Volume Connection Data + /// + /// Upon creation of this resource, a `data` exported attribute will be available. + /// This attribute is a set of key/value pairs that contains the information + /// required to complete the block storage connection. + /// + /// As an example, creating an iSCSI-based volume will return the following: + /// + /// This information can then be fed into a provisioner or a template shell script, + /// where the final result would look something like: + /// + /// The contents of `data` will vary from each Block Storage service. You must have + /// a good understanding of how the service is configured and how to make the + /// appropriate final connection. However, if used correctly, this has the + /// flexibility to be able to attach OpenStack Block Storage volumes to + /// non-OpenStack resources. + /// + /// ## Import + /// + /// It is not possible to import this resource. /// [OpenStackResourceType("openstack:blockstorage/volumeAttachV2:VolumeAttachV2")] public partial class VolumeAttachV2 : global::Pulumi.CustomResource diff --git a/sdk/dotnet/Compute/Inputs/InstanceSchedulerHintArgs.cs b/sdk/dotnet/Compute/Inputs/InstanceSchedulerHintArgs.cs index 75dc78f7..f66c4557 100644 --- a/sdk/dotnet/Compute/Inputs/InstanceSchedulerHintArgs.cs +++ b/sdk/dotnet/Compute/Inputs/InstanceSchedulerHintArgs.cs @@ -74,6 +74,10 @@ public InputList DifferentHosts /// [here](https://docs.openstack.org/nova/latest/admin/configuration/schedulers.html#jsonfilter). /// At this time, only simple queries are supported. Compound queries using /// `and`, `or`, or `not` are not supported. An example of a simple query is: + /// + /// ``` + /// [">=", "$free_ram_mb", "1024"] + /// ``` /// public InputList Queries { diff --git a/sdk/dotnet/Compute/Inputs/InstanceSchedulerHintGetArgs.cs b/sdk/dotnet/Compute/Inputs/InstanceSchedulerHintGetArgs.cs index 95d45787..0842c90e 100644 --- a/sdk/dotnet/Compute/Inputs/InstanceSchedulerHintGetArgs.cs +++ b/sdk/dotnet/Compute/Inputs/InstanceSchedulerHintGetArgs.cs @@ -74,6 +74,10 @@ public InputList DifferentHosts /// [here](https://docs.openstack.org/nova/latest/admin/configuration/schedulers.html#jsonfilter). /// At this time, only simple queries are supported. Compound queries using /// `and`, `or`, or `not` are not supported. An example of a simple query is: + /// + /// ``` + /// [">=", "$free_ram_mb", "1024"] + /// ``` /// public InputList Queries { diff --git a/sdk/dotnet/Compute/Outputs/InstanceSchedulerHint.cs b/sdk/dotnet/Compute/Outputs/InstanceSchedulerHint.cs index d89e68a3..ae1178ee 100644 --- a/sdk/dotnet/Compute/Outputs/InstanceSchedulerHint.cs +++ b/sdk/dotnet/Compute/Outputs/InstanceSchedulerHint.cs @@ -44,6 +44,10 @@ public sealed class InstanceSchedulerHint /// [here](https://docs.openstack.org/nova/latest/admin/configuration/schedulers.html#jsonfilter). /// At this time, only simple queries are supported. Compound queries using /// `and`, `or`, or `not` are not supported. An example of a simple query is: + /// + /// ``` + /// [">=", "$free_ram_mb", "1024"] + /// ``` /// public readonly ImmutableArray Queries; /// diff --git a/sdk/dotnet/Database/Inputs/InstanceUserArgs.cs b/sdk/dotnet/Database/Inputs/InstanceUserArgs.cs index ddcd28ae..8e8fdf10 100644 --- a/sdk/dotnet/Database/Inputs/InstanceUserArgs.cs +++ b/sdk/dotnet/Database/Inputs/InstanceUserArgs.cs @@ -26,7 +26,7 @@ public InputList Databases } /// - /// An ip address or %!s(MISSING)ign indicating what ip addresses can connect with + /// An ip address or % sign indicating what ip addresses can connect with /// this user credentials. Changing this creates a new instance. /// [Input("host")] diff --git a/sdk/dotnet/Database/Inputs/InstanceUserGetArgs.cs b/sdk/dotnet/Database/Inputs/InstanceUserGetArgs.cs index 420cfb43..8341149f 100644 --- a/sdk/dotnet/Database/Inputs/InstanceUserGetArgs.cs +++ b/sdk/dotnet/Database/Inputs/InstanceUserGetArgs.cs @@ -26,7 +26,7 @@ public InputList Databases } /// - /// An ip address or %!s(MISSING)ign indicating what ip addresses can connect with + /// An ip address or % sign indicating what ip addresses can connect with /// this user credentials. Changing this creates a new instance. /// [Input("host")] diff --git a/sdk/dotnet/Database/Outputs/InstanceUser.cs b/sdk/dotnet/Database/Outputs/InstanceUser.cs index 1d622a8e..050ef49d 100644 --- a/sdk/dotnet/Database/Outputs/InstanceUser.cs +++ b/sdk/dotnet/Database/Outputs/InstanceUser.cs @@ -19,7 +19,7 @@ public sealed class InstanceUser /// public readonly ImmutableArray Databases; /// - /// An ip address or %!s(MISSING)ign indicating what ip addresses can connect with + /// An ip address or % sign indicating what ip addresses can connect with /// this user credentials. Changing this creates a new instance. /// public readonly string? Host; diff --git a/sdk/go/openstack/blockstorage/volumeAttach.go b/sdk/go/openstack/blockstorage/volumeAttach.go index 09c2fa9a..09a1ecfd 100644 --- a/sdk/go/openstack/blockstorage/volumeAttach.go +++ b/sdk/go/openstack/blockstorage/volumeAttach.go @@ -68,6 +68,27 @@ import ( // // ``` // +// +// ## Volume Connection Data +// +// Upon creation of this resource, a `data` exported attribute will be available. +// This attribute is a set of key/value pairs that contains the information +// required to complete the block storage connection. +// +// As an example, creating an iSCSI-based volume will return the following: +// +// This information can then be fed into a provisioner or a template shell script, +// where the final result would look something like: +// +// The contents of `data` will vary from each Block Storage service. You must have +// a good understanding of how the service is configured and how to make the +// appropriate final connection. However, if used correctly, this has the +// flexibility to be able to attach OpenStack Block Storage volumes to +// non-OpenStack resources. +// +// ## Import +// +// It is not possible to import this resource. type VolumeAttach struct { pulumi.CustomResourceState diff --git a/sdk/go/openstack/blockstorage/volumeAttachV2.go b/sdk/go/openstack/blockstorage/volumeAttachV2.go index 53e9603e..7fd4391d 100644 --- a/sdk/go/openstack/blockstorage/volumeAttachV2.go +++ b/sdk/go/openstack/blockstorage/volumeAttachV2.go @@ -68,6 +68,27 @@ import ( // // ``` // +// +// ## Volume Connection Data +// +// Upon creation of this resource, a `data` exported attribute will be available. +// This attribute is a set of key/value pairs that contains the information +// required to complete the block storage connection. +// +// As an example, creating an iSCSI-based volume will return the following: +// +// This information can then be fed into a provisioner or a template shell script, +// where the final result would look something like: +// +// The contents of `data` will vary from each Block Storage service. You must have +// a good understanding of how the service is configured and how to make the +// appropriate final connection. However, if used correctly, this has the +// flexibility to be able to attach OpenStack Block Storage volumes to +// non-OpenStack resources. +// +// ## Import +// +// It is not possible to import this resource. type VolumeAttachV2 struct { pulumi.CustomResourceState diff --git a/sdk/go/openstack/database/pulumiTypes.go b/sdk/go/openstack/database/pulumiTypes.go index 02b329c2..13dc7475 100644 --- a/sdk/go/openstack/database/pulumiTypes.go +++ b/sdk/go/openstack/database/pulumiTypes.go @@ -709,7 +709,7 @@ type InstanceUser struct { // A list of databases that user will have access to. If not specified, // user has access to all databases on th einstance. Changing this creates a new instance. Databases []string `pulumi:"databases"` - // An ip address or %!s(MISSING)ign indicating what ip addresses can connect with + // An ip address or % sign indicating what ip addresses can connect with // this user credentials. Changing this creates a new instance. Host *string `pulumi:"host"` // Username to be created on new instance. Changing this creates a @@ -735,7 +735,7 @@ type InstanceUserArgs struct { // A list of databases that user will have access to. If not specified, // user has access to all databases on th einstance. Changing this creates a new instance. Databases pulumi.StringArrayInput `pulumi:"databases"` - // An ip address or %!s(MISSING)ign indicating what ip addresses can connect with + // An ip address or % sign indicating what ip addresses can connect with // this user credentials. Changing this creates a new instance. Host pulumi.StringPtrInput `pulumi:"host"` // Username to be created on new instance. Changing this creates a @@ -803,7 +803,7 @@ func (o InstanceUserOutput) Databases() pulumi.StringArrayOutput { return o.ApplyT(func(v InstanceUser) []string { return v.Databases }).(pulumi.StringArrayOutput) } -// An ip address or %!s(MISSING)ign indicating what ip addresses can connect with +// An ip address or % sign indicating what ip addresses can connect with // this user credentials. Changing this creates a new instance. func (o InstanceUserOutput) Host() pulumi.StringPtrOutput { return o.ApplyT(func(v InstanceUser) *string { return v.Host }).(pulumi.StringPtrOutput) diff --git a/sdk/java/src/main/java/com/pulumi/openstack/blockstorage/VolumeAttach.java b/sdk/java/src/main/java/com/pulumi/openstack/blockstorage/VolumeAttach.java index 7c07119f..38dd9688 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/blockstorage/VolumeAttach.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/blockstorage/VolumeAttach.java @@ -81,6 +81,27 @@ * ``` * <!--End PulumiCodeChooser --> * + * ## Volume Connection Data + * + * Upon creation of this resource, a `data` exported attribute will be available. + * This attribute is a set of key/value pairs that contains the information + * required to complete the block storage connection. + * + * As an example, creating an iSCSI-based volume will return the following: + * + * This information can then be fed into a provisioner or a template shell script, + * where the final result would look something like: + * + * The contents of `data` will vary from each Block Storage service. You must have + * a good understanding of how the service is configured and how to make the + * appropriate final connection. However, if used correctly, this has the + * flexibility to be able to attach OpenStack Block Storage volumes to + * non-OpenStack resources. + * + * ## Import + * + * It is not possible to import this resource. + * */ @ResourceType(type="openstack:blockstorage/volumeAttach:VolumeAttach") public class VolumeAttach extends com.pulumi.resources.CustomResource { diff --git a/sdk/java/src/main/java/com/pulumi/openstack/blockstorage/VolumeAttachV2.java b/sdk/java/src/main/java/com/pulumi/openstack/blockstorage/VolumeAttachV2.java index a8ac80c8..3908b8c9 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/blockstorage/VolumeAttachV2.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/blockstorage/VolumeAttachV2.java @@ -81,6 +81,27 @@ * ``` * <!--End PulumiCodeChooser --> * + * ## Volume Connection Data + * + * Upon creation of this resource, a `data` exported attribute will be available. + * This attribute is a set of key/value pairs that contains the information + * required to complete the block storage connection. + * + * As an example, creating an iSCSI-based volume will return the following: + * + * This information can then be fed into a provisioner or a template shell script, + * where the final result would look something like: + * + * The contents of `data` will vary from each Block Storage service. You must have + * a good understanding of how the service is configured and how to make the + * appropriate final connection. However, if used correctly, this has the + * flexibility to be able to attach OpenStack Block Storage volumes to + * non-OpenStack resources. + * + * ## Import + * + * It is not possible to import this resource. + * */ @ResourceType(type="openstack:blockstorage/volumeAttachV2:VolumeAttachV2") public class VolumeAttachV2 extends com.pulumi.resources.CustomResource { diff --git a/sdk/java/src/main/java/com/pulumi/openstack/database/inputs/InstanceUserArgs.java b/sdk/java/src/main/java/com/pulumi/openstack/database/inputs/InstanceUserArgs.java index 3591292b..7680befe 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/database/inputs/InstanceUserArgs.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/database/inputs/InstanceUserArgs.java @@ -35,7 +35,7 @@ public Optional>> databases() { } /** - * An ip address or %!s(MISSING)ign indicating what ip addresses can connect with + * An ip address or % sign indicating what ip addresses can connect with * this user credentials. Changing this creates a new instance. * */ @@ -43,7 +43,7 @@ public Optional>> databases() { private @Nullable Output host; /** - * @return An ip address or %!s(MISSING)ign indicating what ip addresses can connect with + * @return An ip address or % sign indicating what ip addresses can connect with * this user credentials. Changing this creates a new instance. * */ @@ -147,7 +147,7 @@ public Builder databases(String... databases) { } /** - * @param host An ip address or %!s(MISSING)ign indicating what ip addresses can connect with + * @param host An ip address or % sign indicating what ip addresses can connect with * this user credentials. Changing this creates a new instance. * * @return builder @@ -159,7 +159,7 @@ public Builder host(@Nullable Output host) { } /** - * @param host An ip address or %!s(MISSING)ign indicating what ip addresses can connect with + * @param host An ip address or % sign indicating what ip addresses can connect with * this user credentials. Changing this creates a new instance. * * @return builder diff --git a/sdk/java/src/main/java/com/pulumi/openstack/database/outputs/InstanceUser.java b/sdk/java/src/main/java/com/pulumi/openstack/database/outputs/InstanceUser.java index 3e1c69d0..98cac239 100644 --- a/sdk/java/src/main/java/com/pulumi/openstack/database/outputs/InstanceUser.java +++ b/sdk/java/src/main/java/com/pulumi/openstack/database/outputs/InstanceUser.java @@ -20,7 +20,7 @@ public final class InstanceUser { */ private @Nullable List databases; /** - * @return An ip address or %!s(MISSING)ign indicating what ip addresses can connect with + * @return An ip address or % sign indicating what ip addresses can connect with * this user credentials. Changing this creates a new instance. * */ @@ -48,7 +48,7 @@ public List databases() { return this.databases == null ? List.of() : this.databases; } /** - * @return An ip address or %!s(MISSING)ign indicating what ip addresses can connect with + * @return An ip address or % sign indicating what ip addresses can connect with * this user credentials. Changing this creates a new instance. * */ diff --git a/sdk/nodejs/blockstorage/volumeAttach.ts b/sdk/nodejs/blockstorage/volumeAttach.ts index 2f5ed1c2..19fdf730 100644 --- a/sdk/nodejs/blockstorage/volumeAttach.ts +++ b/sdk/nodejs/blockstorage/volumeAttach.ts @@ -41,6 +41,27 @@ import * as utilities from "../utilities"; * }); * ``` * + * + * ## Volume Connection Data + * + * Upon creation of this resource, a `data` exported attribute will be available. + * This attribute is a set of key/value pairs that contains the information + * required to complete the block storage connection. + * + * As an example, creating an iSCSI-based volume will return the following: + * + * This information can then be fed into a provisioner or a template shell script, + * where the final result would look something like: + * + * The contents of `data` will vary from each Block Storage service. You must have + * a good understanding of how the service is configured and how to make the + * appropriate final connection. However, if used correctly, this has the + * flexibility to be able to attach OpenStack Block Storage volumes to + * non-OpenStack resources. + * + * ## Import + * + * It is not possible to import this resource. */ export class VolumeAttach extends pulumi.CustomResource { /** diff --git a/sdk/nodejs/blockstorage/volumeAttachV2.ts b/sdk/nodejs/blockstorage/volumeAttachV2.ts index 2311ae37..c3b4bc27 100644 --- a/sdk/nodejs/blockstorage/volumeAttachV2.ts +++ b/sdk/nodejs/blockstorage/volumeAttachV2.ts @@ -41,6 +41,27 @@ import * as utilities from "../utilities"; * }); * ``` * + * + * ## Volume Connection Data + * + * Upon creation of this resource, a `data` exported attribute will be available. + * This attribute is a set of key/value pairs that contains the information + * required to complete the block storage connection. + * + * As an example, creating an iSCSI-based volume will return the following: + * + * This information can then be fed into a provisioner or a template shell script, + * where the final result would look something like: + * + * The contents of `data` will vary from each Block Storage service. You must have + * a good understanding of how the service is configured and how to make the + * appropriate final connection. However, if used correctly, this has the + * flexibility to be able to attach OpenStack Block Storage volumes to + * non-OpenStack resources. + * + * ## Import + * + * It is not possible to import this resource. */ export class VolumeAttachV2 extends pulumi.CustomResource { /** diff --git a/sdk/nodejs/types/input.ts b/sdk/nodejs/types/input.ts index cbcefeeb..06cd072a 100644 --- a/sdk/nodejs/types/input.ts +++ b/sdk/nodejs/types/input.ts @@ -35,6 +35,10 @@ export namespace blockstorage { * [here](https://docs.openstack.org/cinder/latest/configuration/block-storage/scheduler-filters.html#jsonfilter). * At this time, only simple queries are supported. Compound queries using * `and`, `or`, or `not` are not supported. An example of a simple query is: + * + * ``` + * [“=”, “$backend_id”, “rbd:vol@ceph#cloud”] + * ``` */ query?: pulumi.Input; /** @@ -79,6 +83,10 @@ export namespace blockstorage { * [here](https://docs.openstack.org/cinder/latest/configuration/block-storage/scheduler-filters.html#jsonfilter). * At this time, only simple queries are supported. Compound queries using * `and`, `or`, or `not` are not supported. An example of a simple query is: + * + * ``` + * [“=”, “$backend_id”, “rbd:vol@ceph#cloud”] + * ``` */ query?: pulumi.Input; /** @@ -289,6 +297,10 @@ export namespace compute { * [here](https://docs.openstack.org/nova/latest/admin/configuration/schedulers.html#jsonfilter). * At this time, only simple queries are supported. Compound queries using * `and`, `or`, or `not` are not supported. An example of a simple query is: + * + * ``` + * [">=", "$free_ram_mb", "1024"] + * ``` */ queries?: pulumi.Input[]>; /** @@ -463,7 +475,7 @@ export namespace database { */ databases?: pulumi.Input[]>; /** - * An ip address or %!s(MISSING)ign indicating what ip addresses can connect with + * An ip address or % sign indicating what ip addresses can connect with * this user credentials. Changing this creates a new instance. */ host?: pulumi.Input; diff --git a/sdk/nodejs/types/output.ts b/sdk/nodejs/types/output.ts index 6094a3a6..cf68e1e7 100644 --- a/sdk/nodejs/types/output.ts +++ b/sdk/nodejs/types/output.ts @@ -41,6 +41,10 @@ export namespace blockstorage { * [here](https://docs.openstack.org/cinder/latest/configuration/block-storage/scheduler-filters.html#jsonfilter). * At this time, only simple queries are supported. Compound queries using * `and`, `or`, or `not` are not supported. An example of a simple query is: + * + * ``` + * [“=”, “$backend_id”, “rbd:vol@ceph#cloud”] + * ``` */ query?: string; /** @@ -85,6 +89,10 @@ export namespace blockstorage { * [here](https://docs.openstack.org/cinder/latest/configuration/block-storage/scheduler-filters.html#jsonfilter). * At this time, only simple queries are supported. Compound queries using * `and`, `or`, or `not` are not supported. An example of a simple query is: + * + * ``` + * [“=”, “$backend_id”, “rbd:vol@ceph#cloud”] + * ``` */ query?: string; /** @@ -269,6 +277,10 @@ export namespace compute { * [here](https://docs.openstack.org/nova/latest/admin/configuration/schedulers.html#jsonfilter). * At this time, only simple queries are supported. Compound queries using * `and`, `or`, or `not` are not supported. An example of a simple query is: + * + * ``` + * [">=", "$free_ram_mb", "1024"] + * ``` */ queries?: string[]; /** @@ -444,7 +456,7 @@ export namespace database { */ databases?: string[]; /** - * An ip address or %!s(MISSING)ign indicating what ip addresses can connect with + * An ip address or % sign indicating what ip addresses can connect with * this user credentials. Changing this creates a new instance. */ host?: string; diff --git a/sdk/python/pulumi_openstack/blockstorage/_inputs.py b/sdk/python/pulumi_openstack/blockstorage/_inputs.py index d8d93c0b..85a44451 100644 --- a/sdk/python/pulumi_openstack/blockstorage/_inputs.py +++ b/sdk/python/pulumi_openstack/blockstorage/_inputs.py @@ -79,6 +79,10 @@ def __init__(__self__, *, [here](https://docs.openstack.org/cinder/latest/configuration/block-storage/scheduler-filters.html#jsonfilter). At this time, only simple queries are supported. Compound queries using `and`, `or`, or `not` are not supported. An example of a simple query is: + + ``` + [“=”, “$backend_id”, “rbd:vol@ceph#cloud”] + ``` :param pulumi.Input[Sequence[pulumi.Input[str]]] same_hosts: A list of volume UUIDs. The volume should be scheduled on the same host as another volume specified in the list provided. """ @@ -142,6 +146,10 @@ def query(self) -> Optional[pulumi.Input[str]]: [here](https://docs.openstack.org/cinder/latest/configuration/block-storage/scheduler-filters.html#jsonfilter). At this time, only simple queries are supported. Compound queries using `and`, `or`, or `not` are not supported. An example of a simple query is: + + ``` + [“=”, “$backend_id”, “rbd:vol@ceph#cloud”] + ``` """ return pulumi.get(self, "query") @@ -266,6 +274,10 @@ def __init__(__self__, *, [here](https://docs.openstack.org/cinder/latest/configuration/block-storage/scheduler-filters.html#jsonfilter). At this time, only simple queries are supported. Compound queries using `and`, `or`, or `not` are not supported. An example of a simple query is: + + ``` + [“=”, “$backend_id”, “rbd:vol@ceph#cloud”] + ``` :param pulumi.Input[Sequence[pulumi.Input[str]]] same_hosts: A list of volume UUIDs. The volume should be scheduled on the same host as another volume specified in the list provided. """ @@ -329,6 +341,10 @@ def query(self) -> Optional[pulumi.Input[str]]: [here](https://docs.openstack.org/cinder/latest/configuration/block-storage/scheduler-filters.html#jsonfilter). At this time, only simple queries are supported. Compound queries using `and`, `or`, or `not` are not supported. An example of a simple query is: + + ``` + [“=”, “$backend_id”, “rbd:vol@ceph#cloud”] + ``` """ return pulumi.get(self, "query") diff --git a/sdk/python/pulumi_openstack/blockstorage/outputs.py b/sdk/python/pulumi_openstack/blockstorage/outputs.py index 5ebd3f9b..9f24634d 100644 --- a/sdk/python/pulumi_openstack/blockstorage/outputs.py +++ b/sdk/python/pulumi_openstack/blockstorage/outputs.py @@ -108,6 +108,10 @@ def __init__(__self__, *, [here](https://docs.openstack.org/cinder/latest/configuration/block-storage/scheduler-filters.html#jsonfilter). At this time, only simple queries are supported. Compound queries using `and`, `or`, or `not` are not supported. An example of a simple query is: + + ``` + [“=”, “$backend_id”, “rbd:vol@ceph#cloud”] + ``` :param Sequence[str] same_hosts: A list of volume UUIDs. The volume should be scheduled on the same host as another volume specified in the list provided. """ @@ -159,6 +163,10 @@ def query(self) -> Optional[str]: [here](https://docs.openstack.org/cinder/latest/configuration/block-storage/scheduler-filters.html#jsonfilter). At this time, only simple queries are supported. Compound queries using `and`, `or`, or `not` are not supported. An example of a simple query is: + + ``` + [“=”, “$backend_id”, “rbd:vol@ceph#cloud”] + ``` """ return pulumi.get(self, "query") @@ -308,6 +316,10 @@ def __init__(__self__, *, [here](https://docs.openstack.org/cinder/latest/configuration/block-storage/scheduler-filters.html#jsonfilter). At this time, only simple queries are supported. Compound queries using `and`, `or`, or `not` are not supported. An example of a simple query is: + + ``` + [“=”, “$backend_id”, “rbd:vol@ceph#cloud”] + ``` :param Sequence[str] same_hosts: A list of volume UUIDs. The volume should be scheduled on the same host as another volume specified in the list provided. """ @@ -359,6 +371,10 @@ def query(self) -> Optional[str]: [here](https://docs.openstack.org/cinder/latest/configuration/block-storage/scheduler-filters.html#jsonfilter). At this time, only simple queries are supported. Compound queries using `and`, `or`, or `not` are not supported. An example of a simple query is: + + ``` + [“=”, “$backend_id”, “rbd:vol@ceph#cloud”] + ``` """ return pulumi.get(self, "query") diff --git a/sdk/python/pulumi_openstack/blockstorage/volume_attach.py b/sdk/python/pulumi_openstack/blockstorage/volume_attach.py index ac289b0c..4016dc8d 100644 --- a/sdk/python/pulumi_openstack/blockstorage/volume_attach.py +++ b/sdk/python/pulumi_openstack/blockstorage/volume_attach.py @@ -548,6 +548,27 @@ def __init__(__self__, ``` + ## Volume Connection Data + + Upon creation of this resource, a `data` exported attribute will be available. + This attribute is a set of key/value pairs that contains the information + required to complete the block storage connection. + + As an example, creating an iSCSI-based volume will return the following: + + This information can then be fed into a provisioner or a template shell script, + where the final result would look something like: + + The contents of `data` will vary from each Block Storage service. You must have + a good understanding of how the service is configured and how to make the + appropriate final connection. However, if used correctly, this has the + flexibility to be able to attach OpenStack Block Storage volumes to + non-OpenStack resources. + + ## Import + + It is not possible to import this resource. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] attach_mode: Specify whether to attach the volume as Read-Only @@ -614,6 +635,27 @@ def __init__(__self__, ``` + ## Volume Connection Data + + Upon creation of this resource, a `data` exported attribute will be available. + This attribute is a set of key/value pairs that contains the information + required to complete the block storage connection. + + As an example, creating an iSCSI-based volume will return the following: + + This information can then be fed into a provisioner or a template shell script, + where the final result would look something like: + + The contents of `data` will vary from each Block Storage service. You must have + a good understanding of how the service is configured and how to make the + appropriate final connection. However, if used correctly, this has the + flexibility to be able to attach OpenStack Block Storage volumes to + non-OpenStack resources. + + ## Import + + It is not possible to import this resource. + :param str resource_name: The name of the resource. :param VolumeAttachArgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource. diff --git a/sdk/python/pulumi_openstack/blockstorage/volume_attach_v2.py b/sdk/python/pulumi_openstack/blockstorage/volume_attach_v2.py index 8f42ea57..4f3c7cf3 100644 --- a/sdk/python/pulumi_openstack/blockstorage/volume_attach_v2.py +++ b/sdk/python/pulumi_openstack/blockstorage/volume_attach_v2.py @@ -585,6 +585,27 @@ def __init__(__self__, ``` + ## Volume Connection Data + + Upon creation of this resource, a `data` exported attribute will be available. + This attribute is a set of key/value pairs that contains the information + required to complete the block storage connection. + + As an example, creating an iSCSI-based volume will return the following: + + This information can then be fed into a provisioner or a template shell script, + where the final result would look something like: + + The contents of `data` will vary from each Block Storage service. You must have + a good understanding of how the service is configured and how to make the + appropriate final connection. However, if used correctly, this has the + flexibility to be able to attach OpenStack Block Storage volumes to + non-OpenStack resources. + + ## Import + + It is not possible to import this resource. + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] attach_mode: Specify whether to attach the volume as Read-Only @@ -651,6 +672,27 @@ def __init__(__self__, ``` + ## Volume Connection Data + + Upon creation of this resource, a `data` exported attribute will be available. + This attribute is a set of key/value pairs that contains the information + required to complete the block storage connection. + + As an example, creating an iSCSI-based volume will return the following: + + This information can then be fed into a provisioner or a template shell script, + where the final result would look something like: + + The contents of `data` will vary from each Block Storage service. You must have + a good understanding of how the service is configured and how to make the + appropriate final connection. However, if used correctly, this has the + flexibility to be able to attach OpenStack Block Storage volumes to + non-OpenStack resources. + + ## Import + + It is not possible to import this resource. + :param str resource_name: The name of the resource. :param VolumeAttachV2Args args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource. diff --git a/sdk/python/pulumi_openstack/compute/_inputs.py b/sdk/python/pulumi_openstack/compute/_inputs.py index 3495009f..10eb07aa 100644 --- a/sdk/python/pulumi_openstack/compute/_inputs.py +++ b/sdk/python/pulumi_openstack/compute/_inputs.py @@ -449,6 +449,10 @@ def __init__(__self__, *, [here](https://docs.openstack.org/nova/latest/admin/configuration/schedulers.html#jsonfilter). At this time, only simple queries are supported. Compound queries using `and`, `or`, or `not` are not supported. An example of a simple query is: + + ``` + [">=", "$free_ram_mb", "1024"] + ``` :param pulumi.Input[Sequence[pulumi.Input[str]]] same_hosts: A list of instance UUIDs. The instance will be scheduled on the same host of those specified. :param pulumi.Input[str] target_cell: The name of a cell to host the instance. @@ -544,6 +548,10 @@ def queries(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: [here](https://docs.openstack.org/nova/latest/admin/configuration/schedulers.html#jsonfilter). At this time, only simple queries are supported. Compound queries using `and`, `or`, or `not` are not supported. An example of a simple query is: + + ``` + [">=", "$free_ram_mb", "1024"] + ``` """ return pulumi.get(self, "queries") diff --git a/sdk/python/pulumi_openstack/compute/outputs.py b/sdk/python/pulumi_openstack/compute/outputs.py index 38a9d793..a8149eb6 100644 --- a/sdk/python/pulumi_openstack/compute/outputs.py +++ b/sdk/python/pulumi_openstack/compute/outputs.py @@ -445,6 +445,10 @@ def __init__(__self__, *, [here](https://docs.openstack.org/nova/latest/admin/configuration/schedulers.html#jsonfilter). At this time, only simple queries are supported. Compound queries using `and`, `or`, or `not` are not supported. An example of a simple query is: + + ``` + [">=", "$free_ram_mb", "1024"] + ``` :param Sequence[str] same_hosts: A list of instance UUIDs. The instance will be scheduled on the same host of those specified. :param str target_cell: The name of a cell to host the instance. @@ -520,6 +524,10 @@ def queries(self) -> Optional[Sequence[str]]: [here](https://docs.openstack.org/nova/latest/admin/configuration/schedulers.html#jsonfilter). At this time, only simple queries are supported. Compound queries using `and`, `or`, or `not` are not supported. An example of a simple query is: + + ``` + [">=", "$free_ram_mb", "1024"] + ``` """ return pulumi.get(self, "queries") diff --git a/sdk/python/pulumi_openstack/database/_inputs.py b/sdk/python/pulumi_openstack/database/_inputs.py index a7bf0839..0cf3d244 100644 --- a/sdk/python/pulumi_openstack/database/_inputs.py +++ b/sdk/python/pulumi_openstack/database/_inputs.py @@ -298,7 +298,7 @@ def __init__(__self__, *, new instance. :param pulumi.Input[Sequence[pulumi.Input[str]]] databases: A list of databases that user will have access to. If not specified, user has access to all databases on th einstance. Changing this creates a new instance. - :param pulumi.Input[str] host: An ip address or %!s(MISSING)ign indicating what ip addresses can connect with + :param pulumi.Input[str] host: An ip address or % sign indicating what ip addresses can connect with this user credentials. Changing this creates a new instance. :param pulumi.Input[str] password: User's password. Changing this creates a new instance. @@ -341,7 +341,7 @@ def databases(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): @pulumi.getter def host(self) -> Optional[pulumi.Input[str]]: """ - An ip address or %!s(MISSING)ign indicating what ip addresses can connect with + An ip address or % sign indicating what ip addresses can connect with this user credentials. Changing this creates a new instance. """ return pulumi.get(self, "host") diff --git a/sdk/python/pulumi_openstack/database/outputs.py b/sdk/python/pulumi_openstack/database/outputs.py index b9b4fc36..a258785c 100644 --- a/sdk/python/pulumi_openstack/database/outputs.py +++ b/sdk/python/pulumi_openstack/database/outputs.py @@ -278,7 +278,7 @@ def __init__(__self__, *, new instance. :param Sequence[str] databases: A list of databases that user will have access to. If not specified, user has access to all databases on th einstance. Changing this creates a new instance. - :param str host: An ip address or %!s(MISSING)ign indicating what ip addresses can connect with + :param str host: An ip address or % sign indicating what ip addresses can connect with this user credentials. Changing this creates a new instance. :param str password: User's password. Changing this creates a new instance. @@ -313,7 +313,7 @@ def databases(self) -> Optional[Sequence[str]]: @pulumi.getter def host(self) -> Optional[str]: """ - An ip address or %!s(MISSING)ign indicating what ip addresses can connect with + An ip address or % sign indicating what ip addresses can connect with this user credentials. Changing this creates a new instance. """ return pulumi.get(self, "host")