From 0bf72d630fab7eecb192bf53aeaf22a556923507 Mon Sep 17 00:00:00 2001 From: Pulumi Bot <30351955+pulumi-bot@users.noreply.github.com> Date: Fri, 6 Sep 2024 19:24:51 +0100 Subject: [PATCH] Upgrade pulumi-terraform-bridge to v3.90.0 (#2368) This PR was generated via `$ upgrade-provider pulumi/pulumi-gcp --kind=bridge --pr-reviewers=VenelinMartinov`. --- - Upgrading pulumi-terraform-bridge from v3.89.1 to v3.90.0. - Upgrading pulumi-terraform-bridge/pf from v0.42.1 to v0.43.0. --- examples/go.mod | 4 +- examples/go.sum | 8 +- provider/cmd/pulumi-resource-gcp/schema.json | 78 +- provider/go.mod | 12 +- provider/go.sum | 16 +- .../CertificateAuthority/GetAuthority.cs | 54 +- .../CertificateManager/GetCertificateMap.cs | 36 +- sdk/dotnet/CloudIdentity/GetGroupLookup.cs | 46 +- .../CloudIdentity/GetGroupMemberships.cs | 36 +- sdk/dotnet/CloudIdentity/GetGroups.cs | 36 +- sdk/dotnet/Compute/DiskAsyncReplication.cs | 40 + sdk/dotnet/Compute/GetBackendBucket.cs | 36 +- sdk/dotnet/Compute/GetBackendService.cs | 54 +- sdk/dotnet/Compute/GetCertificate.cs | 64 +- sdk/dotnet/Compute/GetForwardingRule.cs | 36 +- sdk/dotnet/Compute/GetForwardingRules.cs | 40 +- sdk/dotnet/Compute/GetGlobalForwardingRule.cs | 36 +- sdk/dotnet/Compute/GetHcVpnGateway.cs | 36 +- sdk/dotnet/Compute/GetHealthCheck.cs | 36 +- sdk/dotnet/Compute/GetLBIPRanges.cs | 90 +- sdk/dotnet/Compute/GetNetblockIPRanges.cs | 178 +- sdk/dotnet/Compute/GetNetwork.cs | 36 +- sdk/dotnet/Compute/GetNetworks.cs | 36 +- sdk/dotnet/Compute/GetRegionSslCertificate.cs | 64 +- sdk/dotnet/Compute/GetSSLPolicy.cs | 36 +- sdk/dotnet/Compute/GetVPNGateway.cs | 36 +- sdk/dotnet/Compute/InstanceTemplate.cs | 56 + sdk/dotnet/Container/GetCluster.cs | 78 +- sdk/dotnet/Dataproc/GetMetastoreService.cs | 40 +- sdk/dotnet/Dns/GetRecordSet.cs | 58 +- sdk/dotnet/Filestore/GetInstance.cs | 64 +- sdk/dotnet/Iam/GetWorkloadIdentityPool.cs | 36 +- .../Iam/GetWorkloadIdentityPoolProvider.cs | 40 +- sdk/dotnet/Iap/GetClient.cs | 52 +- sdk/dotnet/Monitoring/GetSecretVersion.cs | 4 +- sdk/dotnet/Organizations/GetActiveFolder.cs | 40 +- sdk/dotnet/Organizations/GetClientConfig.cs | 78 +- sdk/dotnet/Redis/GetInstance.cs | 64 +- sdk/dotnet/SecretManager/GetSecretVersion.cs | 4 +- sdk/dotnet/Spanner/GetInstance.cs | 36 +- sdk/dotnet/Tags/GetTagKey.cs | 80 +- sdk/dotnet/Tags/GetTagKeys.cs | 72 +- sdk/dotnet/Tags/GetTagValue.cs | 40 +- sdk/dotnet/Tags/GetTagValues.cs | 36 +- sdk/go.mod | 2 +- sdk/go.sum | 4 +- .../gcp/certificateauthority/getAuthority.go | 27 + .../certificatemanager/getCertificateMap.go | 24 + sdk/go/gcp/cloudidentity/getGroupLookup.go | 26 + .../gcp/cloudidentity/getGroupMemberships.go | 24 + sdk/go/gcp/cloudidentity/getGroups.go | 24 + sdk/go/gcp/compute/diskAsyncReplication.go | 48 + sdk/go/gcp/compute/getBackendBucket.go | 24 + sdk/go/gcp/compute/getBackendService.go | 31 + sdk/go/gcp/compute/getCertificate.go | 27 + sdk/go/gcp/compute/getForwardingRule.go | 24 + sdk/go/gcp/compute/getForwardingRules.go | 25 + sdk/go/gcp/compute/getGlobalForwardingRule.go | 24 + sdk/go/gcp/compute/getHcVpnGateway.go | 24 + sdk/go/gcp/compute/getHealthCheck.go | 24 + sdk/go/gcp/compute/getLBIPRanges.go | 41 + sdk/go/gcp/compute/getNetblockIPRanges.go | 71 + sdk/go/gcp/compute/getNetwork.go | 24 + sdk/go/gcp/compute/getNetworks.go | 24 + sdk/go/gcp/compute/getRegionSslCertificate.go | 27 + sdk/go/gcp/compute/getSSLPolicy.go | 24 + sdk/go/gcp/compute/getVPNGateway.go | 24 + sdk/go/gcp/compute/instanceTemplate.go | 69 + sdk/go/gcp/container/getCluster.go | 29 + sdk/go/gcp/dataproc/getMetastoreService.go | 25 + sdk/go/gcp/dns/getRecordSet.go | 34 + sdk/go/gcp/filestore/getInstance.go | 27 + sdk/go/gcp/iam/getWorkloadIdentityPool.go | 24 + .../iam/getWorkloadIdentityPoolProvider.go | 25 + sdk/go/gcp/iap/getClient.go | 34 + sdk/go/gcp/monitoring/getSecretVersion.go | 2 +- sdk/go/gcp/organizations/getActiveFolder.go | 25 + sdk/go/gcp/organizations/getClientConfig.go | 23 +- sdk/go/gcp/redis/getInstance.go | 27 + sdk/go/gcp/secretmanager/getSecretVersion.go | 2 +- sdk/go/gcp/spanner/getInstance.go | 24 + sdk/go/gcp/tags/getTagKey.go | 49 + sdk/go/gcp/tags/getTagKeys.go | 47 + sdk/go/gcp/tags/getTagValue.go | 25 + sdk/go/gcp/tags/getTagValues.go | 24 + .../CertificateauthorityFunctions.java | 216 + .../CertificatemanagerFunctions.java | 132 + .../cloudidentity/CloudidentityFunctions.java | 408 ++ .../pulumi/gcp/compute/ComputeFunctions.java | 5780 ++++++++++++----- .../gcp/compute/DiskAsyncReplication.java | 57 + .../pulumi/gcp/compute/InstanceTemplate.java | 85 + .../gcp/container/ContainerFunctions.java | 152 + .../gcp/dataproc/DataprocFunctions.java | 136 + .../java/com/pulumi/gcp/dns/DnsFunctions.java | 160 + .../gcp/filestore/FilestoreFunctions.java | 144 + .../java/com/pulumi/gcp/iam/IamFunctions.java | 268 + .../java/com/pulumi/gcp/iap/IapFunctions.java | 160 + .../gcp/monitoring/MonitoringFunctions.java | 8 +- .../organizations/OrganizationsFunctions.java | 544 ++ .../com/pulumi/gcp/redis/RedisFunctions.java | 144 + .../secretmanager/SecretmanagerFunctions.java | 8 +- .../pulumi/gcp/spanner/SpannerFunctions.java | 132 + .../com/pulumi/gcp/tags/TagsFunctions.java | 966 ++- .../certificateauthority/getAuthority.ts | 24 + .../certificatemanager/getCertificateMap.ts | 18 + sdk/nodejs/cloudidentity/getGroupLookup.ts | 22 + .../cloudidentity/getGroupMemberships.ts | 18 + sdk/nodejs/cloudidentity/getGroups.ts | 18 + sdk/nodejs/compute/diskAsyncReplication.ts | 27 + sdk/nodejs/compute/getBackendBucket.ts | 18 + sdk/nodejs/compute/getBackendService.ts | 26 + sdk/nodejs/compute/getCertificate.ts | 24 + sdk/nodejs/compute/getForwardingRule.ts | 18 + sdk/nodejs/compute/getForwardingRules.ts | 20 + sdk/nodejs/compute/getGlobalForwardingRule.ts | 18 + sdk/nodejs/compute/getHcVpnGateway.ts | 18 + sdk/nodejs/compute/getHealthCheck.ts | 18 + sdk/nodejs/compute/getLBIPRanges.ts | 34 + sdk/nodejs/compute/getNetblockIPRanges.ts | 58 + sdk/nodejs/compute/getNetwork.ts | 18 + sdk/nodejs/compute/getNetworks.ts | 18 + sdk/nodejs/compute/getRegionSslCertificate.ts | 24 + sdk/nodejs/compute/getSSLPolicy.ts | 18 + sdk/nodejs/compute/getVPNGateway.ts | 18 + sdk/nodejs/compute/instanceTemplate.ts | 32 + sdk/nodejs/container/getCluster.ts | 28 + sdk/nodejs/dataproc/getMetastoreService.ts | 20 + sdk/nodejs/dns/getRecordSet.ts | 28 + sdk/nodejs/filestore/getInstance.ts | 24 + sdk/nodejs/iam/getWorkloadIdentityPool.ts | 18 + .../iam/getWorkloadIdentityPoolProvider.ts | 20 + sdk/nodejs/iap/getClient.ts | 26 + sdk/nodejs/monitoring/getSecretVersion.ts | 4 +- sdk/nodejs/organizations/getActiveFolder.ts | 20 + sdk/nodejs/organizations/getClientConfig.ts | 16 +- sdk/nodejs/redis/getInstance.ts | 24 + sdk/nodejs/secretmanager/getSecretVersion.ts | 4 +- sdk/nodejs/spanner/getInstance.ts | 18 + sdk/nodejs/tags/getTagKey.ts | 38 + sdk/nodejs/tags/getTagKeys.ts | 34 + sdk/nodejs/tags/getTagValue.ts | 20 + sdk/nodejs/tags/getTagValues.ts | 18 + .../certificateauthority/get_authority.py | 20 + .../certificatemanager/get_certificate_map.py | 14 + .../cloudidentity/get_group_lookup.py | 18 + .../cloudidentity/get_group_memberships.py | 14 + .../pulumi_gcp/cloudidentity/get_groups.py | 14 + .../compute/disk_async_replication.py | 48 + .../pulumi_gcp/compute/get_backend_bucket.py | 14 + .../pulumi_gcp/compute/get_backend_service.py | 20 + .../pulumi_gcp/compute/get_certificate.py | 20 + .../pulumi_gcp/compute/get_forwarding_rule.py | 14 + .../compute/get_forwarding_rules.py | 16 + .../compute/get_global_forwarding_rule.py | 14 + .../pulumi_gcp/compute/get_hc_vpn_gateway.py | 14 + .../pulumi_gcp/compute/get_health_check.py | 14 + .../pulumi_gcp/compute/get_lbip_ranges.py | 32 + .../compute/get_netblock_ip_ranges.py | 52 + sdk/python/pulumi_gcp/compute/get_network.py | 14 + sdk/python/pulumi_gcp/compute/get_networks.py | 14 + .../compute/get_region_ssl_certificate.py | 20 + .../pulumi_gcp/compute/get_ssl_policy.py | 14 + .../pulumi_gcp/compute/get_vpn_gateway.py | 14 + .../pulumi_gcp/compute/instance_template.py | 56 + .../pulumi_gcp/container/get_cluster.py | 24 + .../dataproc/get_metastore_service.py | 16 + sdk/python/pulumi_gcp/dns/get_record_set.py | 20 + .../pulumi_gcp/filestore/get_instance.py | 20 + .../iam/get_workload_identity_pool.py | 14 + .../get_workload_identity_pool_provider.py | 16 + sdk/python/pulumi_gcp/iap/get_client.py | 18 + .../monitoring/get_secret_version.py | 4 +- .../organizations/get_active_folder.py | 16 + .../organizations/get_client_config.py | 16 +- sdk/python/pulumi_gcp/redis/get_instance.py | 20 + .../secretmanager/get_secret_version.py | 4 +- sdk/python/pulumi_gcp/spanner/get_instance.py | 14 + sdk/python/pulumi_gcp/tags/get_tag_key.py | 30 + sdk/python/pulumi_gcp/tags/get_tag_keys.py | 26 + sdk/python/pulumi_gcp/tags/get_tag_value.py | 16 + sdk/python/pulumi_gcp/tags/get_tag_values.py | 14 + 181 files changed, 12007 insertions(+), 2308 deletions(-) diff --git a/examples/go.mod b/examples/go.mod index fe75c5d8aa..8a19c353c6 100644 --- a/examples/go.mod +++ b/examples/go.mod @@ -5,8 +5,8 @@ go 1.21 require ( github.com/pulumi/pulumi-gcp/sdk/v6 v6.67.0 github.com/pulumi/pulumi-gcp/sdk/v7 v7.0.0-alpha.0 - github.com/pulumi/pulumi/pkg/v3 v3.129.0 - github.com/pulumi/pulumi/sdk/v3 v3.129.0 + github.com/pulumi/pulumi/pkg/v3 v3.130.0 + github.com/pulumi/pulumi/sdk/v3 v3.130.0 github.com/stretchr/testify v1.9.0 ) diff --git a/examples/go.sum b/examples/go.sum index 72c06677ef..be39bc8d07 100644 --- a/examples/go.sum +++ b/examples/go.sum @@ -349,10 +349,10 @@ github.com/pulumi/esc v0.9.1 h1:HH5eEv8sgyxSpY5a8yePyqFXzA8cvBvapfH8457+mIs= github.com/pulumi/esc v0.9.1/go.mod h1:oEJ6bOsjYlQUpjf70GiX+CXn3VBmpwFDxUTlmtUN84c= github.com/pulumi/pulumi-gcp/sdk/v6 v6.67.0 h1:toKDTQrGp11iU3FQsxqFN+1fgxx4GQFvsmLbUe9++B8= github.com/pulumi/pulumi-gcp/sdk/v6 v6.67.0/go.mod h1:0H6CtMuOB754n2Yzu6XqHqeU99fmH/fsBUKLsMic2OY= -github.com/pulumi/pulumi/pkg/v3 v3.129.0 h1:n4Jd4ctlvw3eqyHglb/yJKDtRqjOvdkCBfG5T+orU30= -github.com/pulumi/pulumi/pkg/v3 v3.129.0/go.mod h1:W3c7JgO064kUH5IfyQMCgmsAr5iwr3PO6KEeIQiO0dY= -github.com/pulumi/pulumi/sdk/v3 v3.129.0 h1:uZpTTwWTx7Mk8UT9FgatzxzArim47vZ6hzNCKvgvX6A= -github.com/pulumi/pulumi/sdk/v3 v3.129.0/go.mod h1:p1U24en3zt51agx+WlNboSOV8eLlPWYAkxMzVEXKbnY= +github.com/pulumi/pulumi/pkg/v3 v3.130.0 h1:lS51XeCnhg72LXkMiw2FP1cGP+Y85wYD3quWhCPD5+M= +github.com/pulumi/pulumi/pkg/v3 v3.130.0/go.mod h1:jhZ1Ug5Rl1qivexgEWvmwSWYIT/jRnKSFhLwwv6PrZ0= +github.com/pulumi/pulumi/sdk/v3 v3.130.0 h1:gGJNd+akPqhZ+vrsZmAjSNJn6kGJkitjjkwrmIQMmn8= +github.com/pulumi/pulumi/sdk/v3 v3.130.0/go.mod h1:p1U24en3zt51agx+WlNboSOV8eLlPWYAkxMzVEXKbnY= github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis= diff --git a/provider/cmd/pulumi-resource-gcp/schema.json b/provider/cmd/pulumi-resource-gcp/schema.json index 37b0352aed..b6bda9211e 100644 --- a/provider/cmd/pulumi-resource-gcp/schema.json +++ b/provider/cmd/pulumi-resource-gcp/schema.json @@ -145443,7 +145443,7 @@ } }, "gcp:compute/diskAsyncReplication:DiskAsyncReplication": { - "description": "Starts and stops asynchronous persistent disk replication. For more information\nsee [the official documentation](https://cloud.google.com/compute/docs/disks/async-pd/about)\nand the [API](https://cloud.google.com/compute/docs/reference/rest/v1/disks).\n\n## Example Usage\n\n```tf\nresource \"google_compute_disk\" \"primary-disk\" {\n name = \"primary-disk\"\n type = \"pd-ssd\"\n zone = \"europe-west4-a\"\n\n physical_block_size_bytes = 4096\n}\n\nresource \"google_compute_disk\" \"secondary-disk\" {\n name = \"secondary-disk\"\n type = \"pd-ssd\"\n zone = \"europe-west3-a\"\n\n async_primary_disk {\n disk = google_compute_disk.primary-disk.id\n }\n\n physical_block_size_bytes = 4096\n}\n\nresource \"google_compute_disk_async_replication\" \"replication\" {\n primary_disk = google_compute_disk.primary-disk.id\n secondary_disk {\n disk = google_compute_disk.secondary-disk.id\n }\n}\n```\n", + "description": "Starts and stops asynchronous persistent disk replication. For more information\nsee [the official documentation](https://cloud.google.com/compute/docs/disks/async-pd/about)\nand the [API](https://cloud.google.com/compute/docs/reference/rest/v1/disks).\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gcp from \"@pulumi/gcp\";\n\nconst primary_disk = new gcp.compute.Disk(\"primary-disk\", {\n name: \"primary-disk\",\n type: \"pd-ssd\",\n zone: \"europe-west4-a\",\n physicalBlockSizeBytes: 4096,\n});\nconst secondary_disk = new gcp.compute.Disk(\"secondary-disk\", {\n name: \"secondary-disk\",\n type: \"pd-ssd\",\n zone: \"europe-west3-a\",\n asyncPrimaryDisk: {\n disk: primary_disk.id,\n },\n physicalBlockSizeBytes: 4096,\n});\nconst replication = new gcp.compute.DiskAsyncReplication(\"replication\", {\n primaryDisk: primary_disk.id,\n secondaryDisk: {\n disk: secondary_disk.id,\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_gcp as gcp\n\nprimary_disk = gcp.compute.Disk(\"primary-disk\",\n name=\"primary-disk\",\n type=\"pd-ssd\",\n zone=\"europe-west4-a\",\n physical_block_size_bytes=4096)\nsecondary_disk = gcp.compute.Disk(\"secondary-disk\",\n name=\"secondary-disk\",\n type=\"pd-ssd\",\n zone=\"europe-west3-a\",\n async_primary_disk={\n \"disk\": primary_disk.id,\n },\n physical_block_size_bytes=4096)\nreplication = gcp.compute.DiskAsyncReplication(\"replication\",\n primary_disk=primary_disk.id,\n secondary_disk={\n \"disk\": secondary_disk.id,\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Gcp = Pulumi.Gcp;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var primary_disk = new Gcp.Compute.Disk(\"primary-disk\", new()\n {\n Name = \"primary-disk\",\n Type = \"pd-ssd\",\n Zone = \"europe-west4-a\",\n PhysicalBlockSizeBytes = 4096,\n });\n\n var secondary_disk = new Gcp.Compute.Disk(\"secondary-disk\", new()\n {\n Name = \"secondary-disk\",\n Type = \"pd-ssd\",\n Zone = \"europe-west3-a\",\n AsyncPrimaryDisk = new Gcp.Compute.Inputs.DiskAsyncPrimaryDiskArgs\n {\n Disk = primary_disk.Id,\n },\n PhysicalBlockSizeBytes = 4096,\n });\n\n var replication = new Gcp.Compute.DiskAsyncReplication(\"replication\", new()\n {\n PrimaryDisk = primary_disk.Id,\n SecondaryDisk = new Gcp.Compute.Inputs.DiskAsyncReplicationSecondaryDiskArgs\n {\n Disk = secondary_disk.Id,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := compute.NewDisk(ctx, \"primary-disk\", \u0026compute.DiskArgs{\n\t\t\tName: pulumi.String(\"primary-disk\"),\n\t\t\tType: pulumi.String(\"pd-ssd\"),\n\t\t\tZone: pulumi.String(\"europe-west4-a\"),\n\t\t\tPhysicalBlockSizeBytes: pulumi.Int(4096),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = compute.NewDisk(ctx, \"secondary-disk\", \u0026compute.DiskArgs{\n\t\t\tName: pulumi.String(\"secondary-disk\"),\n\t\t\tType: pulumi.String(\"pd-ssd\"),\n\t\t\tZone: pulumi.String(\"europe-west3-a\"),\n\t\t\tAsyncPrimaryDisk: \u0026compute.DiskAsyncPrimaryDiskArgs{\n\t\t\t\tDisk: primary_disk.ID(),\n\t\t\t},\n\t\t\tPhysicalBlockSizeBytes: pulumi.Int(4096),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = compute.NewDiskAsyncReplication(ctx, \"replication\", \u0026compute.DiskAsyncReplicationArgs{\n\t\t\tPrimaryDisk: primary_disk.ID(),\n\t\t\tSecondaryDisk: \u0026compute.DiskAsyncReplicationSecondaryDiskArgs{\n\t\t\t\tDisk: secondary_disk.ID(),\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.gcp.compute.Disk;\nimport com.pulumi.gcp.compute.DiskArgs;\nimport com.pulumi.gcp.compute.inputs.DiskAsyncPrimaryDiskArgs;\nimport com.pulumi.gcp.compute.DiskAsyncReplication;\nimport com.pulumi.gcp.compute.DiskAsyncReplicationArgs;\nimport com.pulumi.gcp.compute.inputs.DiskAsyncReplicationSecondaryDiskArgs;\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 primary_disk = new Disk(\"primary-disk\", DiskArgs.builder()\n .name(\"primary-disk\")\n .type(\"pd-ssd\")\n .zone(\"europe-west4-a\")\n .physicalBlockSizeBytes(4096)\n .build());\n\n var secondary_disk = new Disk(\"secondary-disk\", DiskArgs.builder()\n .name(\"secondary-disk\")\n .type(\"pd-ssd\")\n .zone(\"europe-west3-a\")\n .asyncPrimaryDisk(DiskAsyncPrimaryDiskArgs.builder()\n .disk(primary_disk.id())\n .build())\n .physicalBlockSizeBytes(4096)\n .build());\n\n var replication = new DiskAsyncReplication(\"replication\", DiskAsyncReplicationArgs.builder()\n .primaryDisk(primary_disk.id())\n .secondaryDisk(DiskAsyncReplicationSecondaryDiskArgs.builder()\n .disk(secondary_disk.id())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n primary-disk:\n type: gcp:compute:Disk\n properties:\n name: primary-disk\n type: pd-ssd\n zone: europe-west4-a\n physicalBlockSizeBytes: 4096\n secondary-disk:\n type: gcp:compute:Disk\n properties:\n name: secondary-disk\n type: pd-ssd\n zone: europe-west3-a\n asyncPrimaryDisk:\n disk: ${[\"primary-disk\"].id}\n physicalBlockSizeBytes: 4096\n replication:\n type: gcp:compute:DiskAsyncReplication\n properties:\n primaryDisk: ${[\"primary-disk\"].id}\n secondaryDisk:\n disk: ${[\"secondary-disk\"].id}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "properties": { "primaryDisk": { "type": "string", @@ -152363,7 +152363,7 @@ } }, "gcp:compute/instanceTemplate:InstanceTemplate": { - "description": "\u003e **Note**: Global instance templates can be used in any region. To lower the impact of outages outside your region and gain data residency within your region, use google_compute_region_instance_template.\n\nManages a VM instance template resource within GCE. For more information see\n[the official documentation](https://cloud.google.com/compute/docs/instance-templates)\nand\n[API](https://cloud.google.com/compute/docs/reference/latest/instanceTemplates).\n\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gcp from \"@pulumi/gcp\";\n\nconst _default = new gcp.serviceaccount.Account(\"default\", {\n accountId: \"service-account-id\",\n displayName: \"Service Account\",\n});\nconst myImage = gcp.compute.getImage({\n family: \"debian-11\",\n project: \"debian-cloud\",\n});\nconst foobar = new gcp.compute.Disk(\"foobar\", {\n name: \"existing-disk\",\n image: myImage.then(myImage =\u003e myImage.selfLink),\n size: 10,\n type: \"pd-ssd\",\n zone: \"us-central1-a\",\n});\nconst dailyBackup = new gcp.compute.ResourcePolicy(\"daily_backup\", {\n name: \"every-day-4am\",\n region: \"us-central1\",\n snapshotSchedulePolicy: {\n schedule: {\n dailySchedule: {\n daysInCycle: 1,\n startTime: \"04:00\",\n },\n },\n },\n});\nconst defaultInstanceTemplate = new gcp.compute.InstanceTemplate(\"default\", {\n name: \"appserver-template\",\n description: \"This template is used to create app server instances.\",\n tags: [\n \"foo\",\n \"bar\",\n ],\n labels: {\n environment: \"dev\",\n },\n instanceDescription: \"description assigned to instances\",\n machineType: \"e2-medium\",\n canIpForward: false,\n scheduling: {\n automaticRestart: true,\n onHostMaintenance: \"MIGRATE\",\n },\n disks: [\n {\n sourceImage: \"debian-cloud/debian-11\",\n autoDelete: true,\n boot: true,\n resourcePolicies: dailyBackup.id,\n },\n {\n source: foobar.name,\n autoDelete: false,\n boot: false,\n },\n ],\n networkInterfaces: [{\n network: \"default\",\n }],\n metadata: {\n foo: \"bar\",\n },\n serviceAccount: {\n email: _default.email,\n scopes: [\"cloud-platform\"],\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_gcp as gcp\n\ndefault = gcp.serviceaccount.Account(\"default\",\n account_id=\"service-account-id\",\n display_name=\"Service Account\")\nmy_image = gcp.compute.get_image(family=\"debian-11\",\n project=\"debian-cloud\")\nfoobar = gcp.compute.Disk(\"foobar\",\n name=\"existing-disk\",\n image=my_image.self_link,\n size=10,\n type=\"pd-ssd\",\n zone=\"us-central1-a\")\ndaily_backup = gcp.compute.ResourcePolicy(\"daily_backup\",\n name=\"every-day-4am\",\n region=\"us-central1\",\n snapshot_schedule_policy={\n \"schedule\": {\n \"daily_schedule\": {\n \"days_in_cycle\": 1,\n \"start_time\": \"04:00\",\n },\n },\n })\ndefault_instance_template = gcp.compute.InstanceTemplate(\"default\",\n name=\"appserver-template\",\n description=\"This template is used to create app server instances.\",\n tags=[\n \"foo\",\n \"bar\",\n ],\n labels={\n \"environment\": \"dev\",\n },\n instance_description=\"description assigned to instances\",\n machine_type=\"e2-medium\",\n can_ip_forward=False,\n scheduling={\n \"automatic_restart\": True,\n \"on_host_maintenance\": \"MIGRATE\",\n },\n disks=[\n {\n \"source_image\": \"debian-cloud/debian-11\",\n \"auto_delete\": True,\n \"boot\": True,\n \"resource_policies\": daily_backup.id,\n },\n {\n \"source\": foobar.name,\n \"auto_delete\": False,\n \"boot\": False,\n },\n ],\n network_interfaces=[{\n \"network\": \"default\",\n }],\n metadata={\n \"foo\": \"bar\",\n },\n service_account={\n \"email\": default.email,\n \"scopes\": [\"cloud-platform\"],\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Gcp = Pulumi.Gcp;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var @default = new Gcp.ServiceAccount.Account(\"default\", new()\n {\n AccountId = \"service-account-id\",\n DisplayName = \"Service Account\",\n });\n\n var myImage = Gcp.Compute.GetImage.Invoke(new()\n {\n Family = \"debian-11\",\n Project = \"debian-cloud\",\n });\n\n var foobar = new Gcp.Compute.Disk(\"foobar\", new()\n {\n Name = \"existing-disk\",\n Image = myImage.Apply(getImageResult =\u003e getImageResult.SelfLink),\n Size = 10,\n Type = \"pd-ssd\",\n Zone = \"us-central1-a\",\n });\n\n var dailyBackup = new Gcp.Compute.ResourcePolicy(\"daily_backup\", new()\n {\n Name = \"every-day-4am\",\n Region = \"us-central1\",\n SnapshotSchedulePolicy = new Gcp.Compute.Inputs.ResourcePolicySnapshotSchedulePolicyArgs\n {\n Schedule = new Gcp.Compute.Inputs.ResourcePolicySnapshotSchedulePolicyScheduleArgs\n {\n DailySchedule = new Gcp.Compute.Inputs.ResourcePolicySnapshotSchedulePolicyScheduleDailyScheduleArgs\n {\n DaysInCycle = 1,\n StartTime = \"04:00\",\n },\n },\n },\n });\n\n var defaultInstanceTemplate = new Gcp.Compute.InstanceTemplate(\"default\", new()\n {\n Name = \"appserver-template\",\n Description = \"This template is used to create app server instances.\",\n Tags = new[]\n {\n \"foo\",\n \"bar\",\n },\n Labels = \n {\n { \"environment\", \"dev\" },\n },\n InstanceDescription = \"description assigned to instances\",\n MachineType = \"e2-medium\",\n CanIpForward = false,\n Scheduling = new Gcp.Compute.Inputs.InstanceTemplateSchedulingArgs\n {\n AutomaticRestart = true,\n OnHostMaintenance = \"MIGRATE\",\n },\n Disks = new[]\n {\n new Gcp.Compute.Inputs.InstanceTemplateDiskArgs\n {\n SourceImage = \"debian-cloud/debian-11\",\n AutoDelete = true,\n Boot = true,\n ResourcePolicies = dailyBackup.Id,\n },\n new Gcp.Compute.Inputs.InstanceTemplateDiskArgs\n {\n Source = foobar.Name,\n AutoDelete = false,\n Boot = false,\n },\n },\n NetworkInterfaces = new[]\n {\n new Gcp.Compute.Inputs.InstanceTemplateNetworkInterfaceArgs\n {\n Network = \"default\",\n },\n },\n Metadata = \n {\n { \"foo\", \"bar\" },\n },\n ServiceAccount = new Gcp.Compute.Inputs.InstanceTemplateServiceAccountArgs\n {\n Email = @default.Email,\n Scopes = new[]\n {\n \"cloud-platform\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute\"\n\t\"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/serviceaccount\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := serviceaccount.NewAccount(ctx, \"default\", \u0026serviceaccount.AccountArgs{\n\t\t\tAccountId: pulumi.String(\"service-account-id\"),\n\t\t\tDisplayName: pulumi.String(\"Service Account\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tmyImage, err := compute.LookupImage(ctx, \u0026compute.LookupImageArgs{\n\t\t\tFamily: pulumi.StringRef(\"debian-11\"),\n\t\t\tProject: pulumi.StringRef(\"debian-cloud\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tfoobar, err := compute.NewDisk(ctx, \"foobar\", \u0026compute.DiskArgs{\n\t\t\tName: pulumi.String(\"existing-disk\"),\n\t\t\tImage: pulumi.String(myImage.SelfLink),\n\t\t\tSize: pulumi.Int(10),\n\t\t\tType: pulumi.String(\"pd-ssd\"),\n\t\t\tZone: pulumi.String(\"us-central1-a\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tdailyBackup, err := compute.NewResourcePolicy(ctx, \"daily_backup\", \u0026compute.ResourcePolicyArgs{\n\t\t\tName: pulumi.String(\"every-day-4am\"),\n\t\t\tRegion: pulumi.String(\"us-central1\"),\n\t\t\tSnapshotSchedulePolicy: \u0026compute.ResourcePolicySnapshotSchedulePolicyArgs{\n\t\t\t\tSchedule: \u0026compute.ResourcePolicySnapshotSchedulePolicyScheduleArgs{\n\t\t\t\t\tDailySchedule: \u0026compute.ResourcePolicySnapshotSchedulePolicyScheduleDailyScheduleArgs{\n\t\t\t\t\t\tDaysInCycle: pulumi.Int(1),\n\t\t\t\t\t\tStartTime: pulumi.String(\"04:00\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = compute.NewInstanceTemplate(ctx, \"default\", \u0026compute.InstanceTemplateArgs{\n\t\t\tName: pulumi.String(\"appserver-template\"),\n\t\t\tDescription: pulumi.String(\"This template is used to create app server instances.\"),\n\t\t\tTags: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"foo\"),\n\t\t\t\tpulumi.String(\"bar\"),\n\t\t\t},\n\t\t\tLabels: pulumi.StringMap{\n\t\t\t\t\"environment\": pulumi.String(\"dev\"),\n\t\t\t},\n\t\t\tInstanceDescription: pulumi.String(\"description assigned to instances\"),\n\t\t\tMachineType: pulumi.String(\"e2-medium\"),\n\t\t\tCanIpForward: pulumi.Bool(false),\n\t\t\tScheduling: \u0026compute.InstanceTemplateSchedulingArgs{\n\t\t\t\tAutomaticRestart: pulumi.Bool(true),\n\t\t\t\tOnHostMaintenance: pulumi.String(\"MIGRATE\"),\n\t\t\t},\n\t\t\tDisks: compute.InstanceTemplateDiskArray{\n\t\t\t\t\u0026compute.InstanceTemplateDiskArgs{\n\t\t\t\t\tSourceImage: pulumi.String(\"debian-cloud/debian-11\"),\n\t\t\t\t\tAutoDelete: pulumi.Bool(true),\n\t\t\t\t\tBoot: pulumi.Bool(true),\n\t\t\t\t\tResourcePolicies: dailyBackup.ID(),\n\t\t\t\t},\n\t\t\t\t\u0026compute.InstanceTemplateDiskArgs{\n\t\t\t\t\tSource: foobar.Name,\n\t\t\t\t\tAutoDelete: pulumi.Bool(false),\n\t\t\t\t\tBoot: pulumi.Bool(false),\n\t\t\t\t},\n\t\t\t},\n\t\t\tNetworkInterfaces: compute.InstanceTemplateNetworkInterfaceArray{\n\t\t\t\t\u0026compute.InstanceTemplateNetworkInterfaceArgs{\n\t\t\t\t\tNetwork: pulumi.String(\"default\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tMetadata: pulumi.StringMap{\n\t\t\t\t\"foo\": pulumi.String(\"bar\"),\n\t\t\t},\n\t\t\tServiceAccount: \u0026compute.InstanceTemplateServiceAccountArgs{\n\t\t\t\tEmail: _default.Email,\n\t\t\t\tScopes: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"cloud-platform\"),\n\t\t\t\t},\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.gcp.serviceaccount.Account;\nimport com.pulumi.gcp.serviceaccount.AccountArgs;\nimport com.pulumi.gcp.compute.ComputeFunctions;\nimport com.pulumi.gcp.compute.inputs.GetImageArgs;\nimport com.pulumi.gcp.compute.Disk;\nimport com.pulumi.gcp.compute.DiskArgs;\nimport com.pulumi.gcp.compute.ResourcePolicy;\nimport com.pulumi.gcp.compute.ResourcePolicyArgs;\nimport com.pulumi.gcp.compute.inputs.ResourcePolicySnapshotSchedulePolicyArgs;\nimport com.pulumi.gcp.compute.inputs.ResourcePolicySnapshotSchedulePolicyScheduleArgs;\nimport com.pulumi.gcp.compute.inputs.ResourcePolicySnapshotSchedulePolicyScheduleDailyScheduleArgs;\nimport com.pulumi.gcp.compute.InstanceTemplate;\nimport com.pulumi.gcp.compute.InstanceTemplateArgs;\nimport com.pulumi.gcp.compute.inputs.InstanceTemplateSchedulingArgs;\nimport com.pulumi.gcp.compute.inputs.InstanceTemplateDiskArgs;\nimport com.pulumi.gcp.compute.inputs.InstanceTemplateNetworkInterfaceArgs;\nimport com.pulumi.gcp.compute.inputs.InstanceTemplateServiceAccountArgs;\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 default_ = new Account(\"default\", AccountArgs.builder()\n .accountId(\"service-account-id\")\n .displayName(\"Service Account\")\n .build());\n\n final var myImage = ComputeFunctions.getImage(GetImageArgs.builder()\n .family(\"debian-11\")\n .project(\"debian-cloud\")\n .build());\n\n var foobar = new Disk(\"foobar\", DiskArgs.builder()\n .name(\"existing-disk\")\n .image(myImage.applyValue(getImageResult -\u003e getImageResult.selfLink()))\n .size(10)\n .type(\"pd-ssd\")\n .zone(\"us-central1-a\")\n .build());\n\n var dailyBackup = new ResourcePolicy(\"dailyBackup\", ResourcePolicyArgs.builder()\n .name(\"every-day-4am\")\n .region(\"us-central1\")\n .snapshotSchedulePolicy(ResourcePolicySnapshotSchedulePolicyArgs.builder()\n .schedule(ResourcePolicySnapshotSchedulePolicyScheduleArgs.builder()\n .dailySchedule(ResourcePolicySnapshotSchedulePolicyScheduleDailyScheduleArgs.builder()\n .daysInCycle(1)\n .startTime(\"04:00\")\n .build())\n .build())\n .build())\n .build());\n\n var defaultInstanceTemplate = new InstanceTemplate(\"defaultInstanceTemplate\", InstanceTemplateArgs.builder()\n .name(\"appserver-template\")\n .description(\"This template is used to create app server instances.\")\n .tags( \n \"foo\",\n \"bar\")\n .labels(Map.of(\"environment\", \"dev\"))\n .instanceDescription(\"description assigned to instances\")\n .machineType(\"e2-medium\")\n .canIpForward(false)\n .scheduling(InstanceTemplateSchedulingArgs.builder()\n .automaticRestart(true)\n .onHostMaintenance(\"MIGRATE\")\n .build())\n .disks( \n InstanceTemplateDiskArgs.builder()\n .sourceImage(\"debian-cloud/debian-11\")\n .autoDelete(true)\n .boot(true)\n .resourcePolicies(dailyBackup.id())\n .build(),\n InstanceTemplateDiskArgs.builder()\n .source(foobar.name())\n .autoDelete(false)\n .boot(false)\n .build())\n .networkInterfaces(InstanceTemplateNetworkInterfaceArgs.builder()\n .network(\"default\")\n .build())\n .metadata(Map.of(\"foo\", \"bar\"))\n .serviceAccount(InstanceTemplateServiceAccountArgs.builder()\n .email(default_.email())\n .scopes(\"cloud-platform\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n default:\n type: gcp:serviceaccount:Account\n properties:\n accountId: service-account-id\n displayName: Service Account\n defaultInstanceTemplate:\n type: gcp:compute:InstanceTemplate\n name: default\n properties:\n name: appserver-template\n description: This template is used to create app server instances.\n tags:\n - foo\n - bar\n labels:\n environment: dev\n instanceDescription: description assigned to instances\n machineType: e2-medium\n canIpForward: false\n scheduling:\n automaticRestart: true\n onHostMaintenance: MIGRATE\n disks:\n - sourceImage: debian-cloud/debian-11\n autoDelete: true\n boot: true\n resourcePolicies: ${dailyBackup.id}\n - source: ${foobar.name}\n autoDelete: false\n boot: false\n networkInterfaces:\n - network: default\n metadata:\n foo: bar\n serviceAccount:\n email: ${default.email}\n scopes:\n - cloud-platform\n foobar:\n type: gcp:compute:Disk\n properties:\n name: existing-disk\n image: ${myImage.selfLink}\n size: 10\n type: pd-ssd\n zone: us-central1-a\n dailyBackup:\n type: gcp:compute:ResourcePolicy\n name: daily_backup\n properties:\n name: every-day-4am\n region: us-central1\n snapshotSchedulePolicy:\n schedule:\n dailySchedule:\n daysInCycle: 1\n startTime: 04:00\nvariables:\n myImage:\n fn::invoke:\n Function: gcp:compute:getImage\n Arguments:\n family: debian-11\n project: debian-cloud\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Automatic Envoy Deployment\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gcp from \"@pulumi/gcp\";\n\nconst default = gcp.compute.getDefaultServiceAccount({});\nconst myImage = gcp.compute.getImage({\n family: \"debian-11\",\n project: \"debian-cloud\",\n});\nconst foobar = new gcp.compute.InstanceTemplate(\"foobar\", {\n name: \"appserver-template\",\n machineType: \"e2-medium\",\n canIpForward: false,\n tags: [\n \"foo\",\n \"bar\",\n ],\n disks: [{\n sourceImage: myImage.then(myImage =\u003e myImage.selfLink),\n autoDelete: true,\n boot: true,\n }],\n networkInterfaces: [{\n network: \"default\",\n }],\n scheduling: {\n preemptible: false,\n automaticRestart: true,\n },\n metadata: {\n \"gce-software-declaration\": `{\n \"softwareRecipes\": [{\n \"name\": \"install-gce-service-proxy-agent\",\n \"desired_state\": \"INSTALLED\",\n \"installSteps\": [{\n \"scriptRun\": {\n \"script\": \"#! /bin/bash\\\\nZONE=(curl --silent http://metadata.google.internal/computeMetadata/v1/instance/zone -H Metadata-Flavor:Google | cut -d/ -f4 )\\\\nexport SERVICE_PROXY_AGENT_DIRECTORY=(mktemp -d)\\\\nsudo gsutil cp gs://gce-service-proxy-\"ZONE\"/service-proxy-agent/releases/service-proxy-agent-0.2.tgz \"SERVICE_PROXY_AGENT_DIRECTORY\" || sudo gsutil cp gs://gce-service-proxy/service-proxy-agent/releases/service-proxy-agent-0.2.tgz \"SERVICE_PROXY_AGENT_DIRECTORY\"\\\\nsudo tar -xzf \"SERVICE_PROXY_AGENT_DIRECTORY\"/service-proxy-agent-0.2.tgz -C \"SERVICE_PROXY_AGENT_DIRECTORY\"\\\\n\"SERVICE_PROXY_AGENT_DIRECTORY\"/service-proxy-agent/service-proxy-agent-bootstrap.sh\"\n }\n }]\n }]\n}\n`,\n \"gce-service-proxy\": `{\n \"api-version\": \"0.2\",\n \"proxy-spec\": {\n \"proxy-port\": 15001,\n \"network\": \"my-network\",\n \"tracing\": \"ON\",\n \"access-log\": \"/var/log/envoy/access.log\"\n }\n \"service\": {\n \"serving-ports\": [80, 81]\n },\n \"labels\": {\n \"app_name\": \"bookserver_app\",\n \"app_version\": \"STABLE\"\n }\n}\n`,\n \"enable-guest-attributes\": \"true\",\n \"enable-osconfig\": \"true\",\n },\n serviceAccount: {\n email: _default.then(_default =\u003e _default.email),\n scopes: [\"cloud-platform\"],\n },\n labels: {\n \"gce-service-proxy\": \"on\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_gcp as gcp\n\ndefault = gcp.compute.get_default_service_account()\nmy_image = gcp.compute.get_image(family=\"debian-11\",\n project=\"debian-cloud\")\nfoobar = gcp.compute.InstanceTemplate(\"foobar\",\n name=\"appserver-template\",\n machine_type=\"e2-medium\",\n can_ip_forward=False,\n tags=[\n \"foo\",\n \"bar\",\n ],\n disks=[{\n \"source_image\": my_image.self_link,\n \"auto_delete\": True,\n \"boot\": True,\n }],\n network_interfaces=[{\n \"network\": \"default\",\n }],\n scheduling={\n \"preemptible\": False,\n \"automatic_restart\": True,\n },\n metadata={\n \"gce-software-declaration\": \"\"\"{\n \"softwareRecipes\": [{\n \"name\": \"install-gce-service-proxy-agent\",\n \"desired_state\": \"INSTALLED\",\n \"installSteps\": [{\n \"scriptRun\": {\n \"script\": \"#! /bin/bash\\nZONE=$(curl --silent http://metadata.google.internal/computeMetadata/v1/instance/zone -H Metadata-Flavor:Google | cut -d/ -f4 )\\nexport SERVICE_PROXY_AGENT_DIRECTORY=$(mktemp -d)\\nsudo gsutil cp gs://gce-service-proxy-\"$ZONE\"/service-proxy-agent/releases/service-proxy-agent-0.2.tgz \"$SERVICE_PROXY_AGENT_DIRECTORY\" || sudo gsutil cp gs://gce-service-proxy/service-proxy-agent/releases/service-proxy-agent-0.2.tgz \"$SERVICE_PROXY_AGENT_DIRECTORY\"\\nsudo tar -xzf \"$SERVICE_PROXY_AGENT_DIRECTORY\"/service-proxy-agent-0.2.tgz -C \"$SERVICE_PROXY_AGENT_DIRECTORY\"\\n\"$SERVICE_PROXY_AGENT_DIRECTORY\"/service-proxy-agent/service-proxy-agent-bootstrap.sh\"\n }\n }]\n }]\n}\n\"\"\",\n \"gce-service-proxy\": \"\"\"{\n \"api-version\": \"0.2\",\n \"proxy-spec\": {\n \"proxy-port\": 15001,\n \"network\": \"my-network\",\n \"tracing\": \"ON\",\n \"access-log\": \"/var/log/envoy/access.log\"\n }\n \"service\": {\n \"serving-ports\": [80, 81]\n },\n \"labels\": {\n \"app_name\": \"bookserver_app\",\n \"app_version\": \"STABLE\"\n }\n}\n\"\"\",\n \"enable-guest-attributes\": \"true\",\n \"enable-osconfig\": \"true\",\n },\n service_account={\n \"email\": default.email,\n \"scopes\": [\"cloud-platform\"],\n },\n labels={\n \"gce-service-proxy\": \"on\",\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Gcp = Pulumi.Gcp;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var @default = Gcp.Compute.GetDefaultServiceAccount.Invoke();\n\n var myImage = Gcp.Compute.GetImage.Invoke(new()\n {\n Family = \"debian-11\",\n Project = \"debian-cloud\",\n });\n\n var foobar = new Gcp.Compute.InstanceTemplate(\"foobar\", new()\n {\n Name = \"appserver-template\",\n MachineType = \"e2-medium\",\n CanIpForward = false,\n Tags = new[]\n {\n \"foo\",\n \"bar\",\n },\n Disks = new[]\n {\n new Gcp.Compute.Inputs.InstanceTemplateDiskArgs\n {\n SourceImage = myImage.Apply(getImageResult =\u003e getImageResult.SelfLink),\n AutoDelete = true,\n Boot = true,\n },\n },\n NetworkInterfaces = new[]\n {\n new Gcp.Compute.Inputs.InstanceTemplateNetworkInterfaceArgs\n {\n Network = \"default\",\n },\n },\n Scheduling = new Gcp.Compute.Inputs.InstanceTemplateSchedulingArgs\n {\n Preemptible = false,\n AutomaticRestart = true,\n },\n Metadata = \n {\n { \"gce-software-declaration\", @\"{\n \"\"softwareRecipes\"\": [{\n \"\"name\"\": \"\"install-gce-service-proxy-agent\"\",\n \"\"desired_state\"\": \"\"INSTALLED\"\",\n \"\"installSteps\"\": [{\n \"\"scriptRun\"\": {\n \"\"script\"\": \"\"#! /bin/bash\\nZONE=$(curl --silent http://metadata.google.internal/computeMetadata/v1/instance/zone -H Metadata-Flavor:Google | cut -d/ -f4 )\\nexport SERVICE_PROXY_AGENT_DIRECTORY=$(mktemp -d)\\nsudo gsutil cp gs://gce-service-proxy-\"\"$ZONE\"\"/service-proxy-agent/releases/service-proxy-agent-0.2.tgz \"\"$SERVICE_PROXY_AGENT_DIRECTORY\"\" || sudo gsutil cp gs://gce-service-proxy/service-proxy-agent/releases/service-proxy-agent-0.2.tgz \"\"$SERVICE_PROXY_AGENT_DIRECTORY\"\"\\nsudo tar -xzf \"\"$SERVICE_PROXY_AGENT_DIRECTORY\"\"/service-proxy-agent-0.2.tgz -C \"\"$SERVICE_PROXY_AGENT_DIRECTORY\"\"\\n\"\"$SERVICE_PROXY_AGENT_DIRECTORY\"\"/service-proxy-agent/service-proxy-agent-bootstrap.sh\"\"\n }\n }]\n }]\n}\n\" },\n { \"gce-service-proxy\", @\"{\n \"\"api-version\"\": \"\"0.2\"\",\n \"\"proxy-spec\"\": {\n \"\"proxy-port\"\": 15001,\n \"\"network\"\": \"\"my-network\"\",\n \"\"tracing\"\": \"\"ON\"\",\n \"\"access-log\"\": \"\"/var/log/envoy/access.log\"\"\n }\n \"\"service\"\": {\n \"\"serving-ports\"\": [80, 81]\n },\n \"\"labels\"\": {\n \"\"app_name\"\": \"\"bookserver_app\"\",\n \"\"app_version\"\": \"\"STABLE\"\"\n }\n}\n\" },\n { \"enable-guest-attributes\", \"true\" },\n { \"enable-osconfig\", \"true\" },\n },\n ServiceAccount = new Gcp.Compute.Inputs.InstanceTemplateServiceAccountArgs\n {\n Email = @default.Apply(@default =\u003e @default.Apply(getDefaultServiceAccountResult =\u003e getDefaultServiceAccountResult.Email)),\n Scopes = new[]\n {\n \"cloud-platform\",\n },\n },\n Labels = \n {\n { \"gce-service-proxy\", \"on\" },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_default, err := compute.GetDefaultServiceAccount(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tmyImage, err := compute.LookupImage(ctx, \u0026compute.LookupImageArgs{\n\t\t\tFamily: pulumi.StringRef(\"debian-11\"),\n\t\t\tProject: pulumi.StringRef(\"debian-cloud\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = compute.NewInstanceTemplate(ctx, \"foobar\", \u0026compute.InstanceTemplateArgs{\n\t\t\tName: pulumi.String(\"appserver-template\"),\n\t\t\tMachineType: pulumi.String(\"e2-medium\"),\n\t\t\tCanIpForward: pulumi.Bool(false),\n\t\t\tTags: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"foo\"),\n\t\t\t\tpulumi.String(\"bar\"),\n\t\t\t},\n\t\t\tDisks: compute.InstanceTemplateDiskArray{\n\t\t\t\t\u0026compute.InstanceTemplateDiskArgs{\n\t\t\t\t\tSourceImage: pulumi.String(myImage.SelfLink),\n\t\t\t\t\tAutoDelete: pulumi.Bool(true),\n\t\t\t\t\tBoot: pulumi.Bool(true),\n\t\t\t\t},\n\t\t\t},\n\t\t\tNetworkInterfaces: compute.InstanceTemplateNetworkInterfaceArray{\n\t\t\t\t\u0026compute.InstanceTemplateNetworkInterfaceArgs{\n\t\t\t\t\tNetwork: pulumi.String(\"default\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tScheduling: \u0026compute.InstanceTemplateSchedulingArgs{\n\t\t\t\tPreemptible: pulumi.Bool(false),\n\t\t\t\tAutomaticRestart: pulumi.Bool(true),\n\t\t\t},\n\t\t\tMetadata: pulumi.StringMap{\n\t\t\t\t\"gce-software-declaration\": pulumi.String(`{\n \"softwareRecipes\": [{\n \"name\": \"install-gce-service-proxy-agent\",\n \"desired_state\": \"INSTALLED\",\n \"installSteps\": [{\n \"scriptRun\": {\n \"script\": \"#! /bin/bash\\nZONE=$(curl --silent http://metadata.google.internal/computeMetadata/v1/instance/zone -H Metadata-Flavor:Google | cut -d/ -f4 )\\nexport SERVICE_PROXY_AGENT_DIRECTORY=$(mktemp -d)\\nsudo gsutil cp gs://gce-service-proxy-\"$ZONE\"/service-proxy-agent/releases/service-proxy-agent-0.2.tgz \"$SERVICE_PROXY_AGENT_DIRECTORY\" || sudo gsutil cp gs://gce-service-proxy/service-proxy-agent/releases/service-proxy-agent-0.2.tgz \"$SERVICE_PROXY_AGENT_DIRECTORY\"\\nsudo tar -xzf \"$SERVICE_PROXY_AGENT_DIRECTORY\"/service-proxy-agent-0.2.tgz -C \"$SERVICE_PROXY_AGENT_DIRECTORY\"\\n\"$SERVICE_PROXY_AGENT_DIRECTORY\"/service-proxy-agent/service-proxy-agent-bootstrap.sh\"\n }\n }]\n }]\n}\n`),\n\t\t\t\t\"gce-service-proxy\": pulumi.String(`{\n \"api-version\": \"0.2\",\n \"proxy-spec\": {\n \"proxy-port\": 15001,\n \"network\": \"my-network\",\n \"tracing\": \"ON\",\n \"access-log\": \"/var/log/envoy/access.log\"\n }\n \"service\": {\n \"serving-ports\": [80, 81]\n },\n \"labels\": {\n \"app_name\": \"bookserver_app\",\n \"app_version\": \"STABLE\"\n }\n}\n`),\n\t\t\t\t\"enable-guest-attributes\": pulumi.String(\"true\"),\n\t\t\t\t\"enable-osconfig\": pulumi.String(\"true\"),\n\t\t\t},\n\t\t\tServiceAccount: \u0026compute.InstanceTemplateServiceAccountArgs{\n\t\t\t\tEmail: pulumi.String(_default.Email),\n\t\t\t\tScopes: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"cloud-platform\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tLabels: pulumi.StringMap{\n\t\t\t\t\"gce-service-proxy\": pulumi.String(\"on\"),\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.gcp.compute.ComputeFunctions;\nimport com.pulumi.gcp.compute.inputs.GetDefaultServiceAccountArgs;\nimport com.pulumi.gcp.compute.inputs.GetImageArgs;\nimport com.pulumi.gcp.compute.InstanceTemplate;\nimport com.pulumi.gcp.compute.InstanceTemplateArgs;\nimport com.pulumi.gcp.compute.inputs.InstanceTemplateDiskArgs;\nimport com.pulumi.gcp.compute.inputs.InstanceTemplateNetworkInterfaceArgs;\nimport com.pulumi.gcp.compute.inputs.InstanceTemplateSchedulingArgs;\nimport com.pulumi.gcp.compute.inputs.InstanceTemplateServiceAccountArgs;\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 default = ComputeFunctions.getDefaultServiceAccount();\n\n final var myImage = ComputeFunctions.getImage(GetImageArgs.builder()\n .family(\"debian-11\")\n .project(\"debian-cloud\")\n .build());\n\n var foobar = new InstanceTemplate(\"foobar\", InstanceTemplateArgs.builder()\n .name(\"appserver-template\")\n .machineType(\"e2-medium\")\n .canIpForward(false)\n .tags( \n \"foo\",\n \"bar\")\n .disks(InstanceTemplateDiskArgs.builder()\n .sourceImage(myImage.applyValue(getImageResult -\u003e getImageResult.selfLink()))\n .autoDelete(true)\n .boot(true)\n .build())\n .networkInterfaces(InstanceTemplateNetworkInterfaceArgs.builder()\n .network(\"default\")\n .build())\n .scheduling(InstanceTemplateSchedulingArgs.builder()\n .preemptible(false)\n .automaticRestart(true)\n .build())\n .metadata(Map.ofEntries(\n Map.entry(\"gce-software-declaration\", \"\"\"\n{\n \"softwareRecipes\": [{\n \"name\": \"install-gce-service-proxy-agent\",\n \"desired_state\": \"INSTALLED\",\n \"installSteps\": [{\n \"scriptRun\": {\n \"script\": \"#! /bin/bash\\nZONE=$(curl --silent http://metadata.google.internal/computeMetadata/v1/instance/zone -H Metadata-Flavor:Google | cut -d/ -f4 )\\nexport SERVICE_PROXY_AGENT_DIRECTORY=$(mktemp -d)\\nsudo gsutil cp gs://gce-service-proxy-\"$ZONE\"/service-proxy-agent/releases/service-proxy-agent-0.2.tgz \"$SERVICE_PROXY_AGENT_DIRECTORY\" || sudo gsutil cp gs://gce-service-proxy/service-proxy-agent/releases/service-proxy-agent-0.2.tgz \"$SERVICE_PROXY_AGENT_DIRECTORY\"\\nsudo tar -xzf \"$SERVICE_PROXY_AGENT_DIRECTORY\"/service-proxy-agent-0.2.tgz -C \"$SERVICE_PROXY_AGENT_DIRECTORY\"\\n\"$SERVICE_PROXY_AGENT_DIRECTORY\"/service-proxy-agent/service-proxy-agent-bootstrap.sh\"\n }\n }]\n }]\n}\n \"\"\"),\n Map.entry(\"gce-service-proxy\", \"\"\"\n{\n \"api-version\": \"0.2\",\n \"proxy-spec\": {\n \"proxy-port\": 15001,\n \"network\": \"my-network\",\n \"tracing\": \"ON\",\n \"access-log\": \"/var/log/envoy/access.log\"\n }\n \"service\": {\n \"serving-ports\": [80, 81]\n },\n \"labels\": {\n \"app_name\": \"bookserver_app\",\n \"app_version\": \"STABLE\"\n }\n}\n \"\"\"),\n Map.entry(\"enable-guest-attributes\", \"true\"),\n Map.entry(\"enable-osconfig\", \"true\")\n ))\n .serviceAccount(InstanceTemplateServiceAccountArgs.builder()\n .email(default_.email())\n .scopes(\"cloud-platform\")\n .build())\n .labels(Map.of(\"gce-service-proxy\", \"on\"))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n foobar:\n type: gcp:compute:InstanceTemplate\n properties:\n name: appserver-template\n machineType: e2-medium\n canIpForward: false\n tags:\n - foo\n - bar\n disks:\n - sourceImage: ${myImage.selfLink}\n autoDelete: true\n boot: true\n networkInterfaces:\n - network: default\n scheduling:\n preemptible: false\n automaticRestart: true\n metadata:\n gce-software-declaration: |\n {\n \"softwareRecipes\": [{\n \"name\": \"install-gce-service-proxy-agent\",\n \"desired_state\": \"INSTALLED\",\n \"installSteps\": [{\n \"scriptRun\": {\n \"script\": \"#! /bin/bash\\nZONE=$(curl --silent http://metadata.google.internal/computeMetadata/v1/instance/zone -H Metadata-Flavor:Google | cut -d/ -f4 )\\nexport SERVICE_PROXY_AGENT_DIRECTORY=$(mktemp -d)\\nsudo gsutil cp gs://gce-service-proxy-\"$ZONE\"/service-proxy-agent/releases/service-proxy-agent-0.2.tgz \"$SERVICE_PROXY_AGENT_DIRECTORY\" || sudo gsutil cp gs://gce-service-proxy/service-proxy-agent/releases/service-proxy-agent-0.2.tgz \"$SERVICE_PROXY_AGENT_DIRECTORY\"\\nsudo tar -xzf \"$SERVICE_PROXY_AGENT_DIRECTORY\"/service-proxy-agent-0.2.tgz -C \"$SERVICE_PROXY_AGENT_DIRECTORY\"\\n\"$SERVICE_PROXY_AGENT_DIRECTORY\"/service-proxy-agent/service-proxy-agent-bootstrap.sh\"\n }\n }]\n }]\n }\n gce-service-proxy: |\n {\n \"api-version\": \"0.2\",\n \"proxy-spec\": {\n \"proxy-port\": 15001,\n \"network\": \"my-network\",\n \"tracing\": \"ON\",\n \"access-log\": \"/var/log/envoy/access.log\"\n }\n \"service\": {\n \"serving-ports\": [80, 81]\n },\n \"labels\": {\n \"app_name\": \"bookserver_app\",\n \"app_version\": \"STABLE\"\n }\n }\n enable-guest-attributes: 'true'\n enable-osconfig: 'true'\n serviceAccount:\n email: ${default.email}\n scopes:\n - cloud-platform\n labels:\n gce-service-proxy: on\nvariables:\n default:\n fn::invoke:\n Function: gcp:compute:getDefaultServiceAccount\n Arguments: {}\n myImage:\n fn::invoke:\n Function: gcp:compute:getImage\n Arguments:\n family: debian-11\n project: debian-cloud\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Deploying the Latest Image\n\nA common way to use instance templates and managed instance groups is to deploy the\nlatest image in a family, usually the latest build of your application. There are two\nways to do this in the provider, and they have their pros and cons. The difference ends\nup being in how \"latest\" is interpreted. You can either deploy the latest image available\nwhen the provider runs, or you can have each instance check what the latest image is when\nit's being created, either as part of a scaling event or being rebuilt by the instance\ngroup manager.\n\nIf you're not sure, we recommend deploying the latest image available when the provider runs,\nbecause this means all the instances in your group will be based on the same image, always,\nand means that no upgrades or changes to your instances happen outside of a `pulumi up`.\nYou can achieve this by using the `gcp.compute.Image`\ndata source, which will retrieve the latest image on every `pulumi apply`, and will update\nthe template to use that specific image:\n\n```tf\ndata \"google_compute_image\" \"my_image\" {\n family = \"debian-11\"\n project = \"debian-cloud\"\n}\n\nresource \"google_compute_instance_template\" \"instance_template\" {\n name_prefix = \"instance-template-\"\n machine_type = \"e2-medium\"\n region = \"us-central1\"\n\n // boot disk\n disk {\n source_image = data.google_compute_image.my_image.self_link\n }\n}\n```\n\nTo have instances update to the latest on every scaling event or instance re-creation,\nuse the family as the image for the disk, and it will use GCP's default behavior, setting\nthe image for the template to the family:\n\n```tf\nresource \"google_compute_instance_template\" \"instance_template\" {\n name_prefix = \"instance-template-\"\n machine_type = \"e2-medium\"\n region = \"us-central1\"\n\n // boot disk\n disk {\n source_image = \"debian-cloud/debian-11\"\n }\n}\n```\n\n## Import\n\nInstance templates can be imported using any of these accepted formats:\n\n* `projects/{{project}}/global/instanceTemplates/{{name}}`\n\n* `{{project}}/{{name}}`\n\n* `{{name}}`\n\nWhen using the `pulumi import` command, instance templates can be imported using one of the formats above. For example:\n\n```sh\n$ pulumi import gcp:compute/instanceTemplate:InstanceTemplate default projects/{{project}}/global/instanceTemplates/{{name}}\n```\n\n```sh\n$ pulumi import gcp:compute/instanceTemplate:InstanceTemplate default {{project}}/{{name}}\n```\n\n```sh\n$ pulumi import gcp:compute/instanceTemplate:InstanceTemplate default {{name}}\n```\n\n", + "description": "\u003e **Note**: Global instance templates can be used in any region. To lower the impact of outages outside your region and gain data residency within your region, use google_compute_region_instance_template.\n\nManages a VM instance template resource within GCE. For more information see\n[the official documentation](https://cloud.google.com/compute/docs/instance-templates)\nand\n[API](https://cloud.google.com/compute/docs/reference/latest/instanceTemplates).\n\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gcp from \"@pulumi/gcp\";\n\nconst _default = new gcp.serviceaccount.Account(\"default\", {\n accountId: \"service-account-id\",\n displayName: \"Service Account\",\n});\nconst myImage = gcp.compute.getImage({\n family: \"debian-11\",\n project: \"debian-cloud\",\n});\nconst foobar = new gcp.compute.Disk(\"foobar\", {\n name: \"existing-disk\",\n image: myImage.then(myImage =\u003e myImage.selfLink),\n size: 10,\n type: \"pd-ssd\",\n zone: \"us-central1-a\",\n});\nconst dailyBackup = new gcp.compute.ResourcePolicy(\"daily_backup\", {\n name: \"every-day-4am\",\n region: \"us-central1\",\n snapshotSchedulePolicy: {\n schedule: {\n dailySchedule: {\n daysInCycle: 1,\n startTime: \"04:00\",\n },\n },\n },\n});\nconst defaultInstanceTemplate = new gcp.compute.InstanceTemplate(\"default\", {\n name: \"appserver-template\",\n description: \"This template is used to create app server instances.\",\n tags: [\n \"foo\",\n \"bar\",\n ],\n labels: {\n environment: \"dev\",\n },\n instanceDescription: \"description assigned to instances\",\n machineType: \"e2-medium\",\n canIpForward: false,\n scheduling: {\n automaticRestart: true,\n onHostMaintenance: \"MIGRATE\",\n },\n disks: [\n {\n sourceImage: \"debian-cloud/debian-11\",\n autoDelete: true,\n boot: true,\n resourcePolicies: dailyBackup.id,\n },\n {\n source: foobar.name,\n autoDelete: false,\n boot: false,\n },\n ],\n networkInterfaces: [{\n network: \"default\",\n }],\n metadata: {\n foo: \"bar\",\n },\n serviceAccount: {\n email: _default.email,\n scopes: [\"cloud-platform\"],\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_gcp as gcp\n\ndefault = gcp.serviceaccount.Account(\"default\",\n account_id=\"service-account-id\",\n display_name=\"Service Account\")\nmy_image = gcp.compute.get_image(family=\"debian-11\",\n project=\"debian-cloud\")\nfoobar = gcp.compute.Disk(\"foobar\",\n name=\"existing-disk\",\n image=my_image.self_link,\n size=10,\n type=\"pd-ssd\",\n zone=\"us-central1-a\")\ndaily_backup = gcp.compute.ResourcePolicy(\"daily_backup\",\n name=\"every-day-4am\",\n region=\"us-central1\",\n snapshot_schedule_policy={\n \"schedule\": {\n \"daily_schedule\": {\n \"days_in_cycle\": 1,\n \"start_time\": \"04:00\",\n },\n },\n })\ndefault_instance_template = gcp.compute.InstanceTemplate(\"default\",\n name=\"appserver-template\",\n description=\"This template is used to create app server instances.\",\n tags=[\n \"foo\",\n \"bar\",\n ],\n labels={\n \"environment\": \"dev\",\n },\n instance_description=\"description assigned to instances\",\n machine_type=\"e2-medium\",\n can_ip_forward=False,\n scheduling={\n \"automatic_restart\": True,\n \"on_host_maintenance\": \"MIGRATE\",\n },\n disks=[\n {\n \"source_image\": \"debian-cloud/debian-11\",\n \"auto_delete\": True,\n \"boot\": True,\n \"resource_policies\": daily_backup.id,\n },\n {\n \"source\": foobar.name,\n \"auto_delete\": False,\n \"boot\": False,\n },\n ],\n network_interfaces=[{\n \"network\": \"default\",\n }],\n metadata={\n \"foo\": \"bar\",\n },\n service_account={\n \"email\": default.email,\n \"scopes\": [\"cloud-platform\"],\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Gcp = Pulumi.Gcp;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var @default = new Gcp.ServiceAccount.Account(\"default\", new()\n {\n AccountId = \"service-account-id\",\n DisplayName = \"Service Account\",\n });\n\n var myImage = Gcp.Compute.GetImage.Invoke(new()\n {\n Family = \"debian-11\",\n Project = \"debian-cloud\",\n });\n\n var foobar = new Gcp.Compute.Disk(\"foobar\", new()\n {\n Name = \"existing-disk\",\n Image = myImage.Apply(getImageResult =\u003e getImageResult.SelfLink),\n Size = 10,\n Type = \"pd-ssd\",\n Zone = \"us-central1-a\",\n });\n\n var dailyBackup = new Gcp.Compute.ResourcePolicy(\"daily_backup\", new()\n {\n Name = \"every-day-4am\",\n Region = \"us-central1\",\n SnapshotSchedulePolicy = new Gcp.Compute.Inputs.ResourcePolicySnapshotSchedulePolicyArgs\n {\n Schedule = new Gcp.Compute.Inputs.ResourcePolicySnapshotSchedulePolicyScheduleArgs\n {\n DailySchedule = new Gcp.Compute.Inputs.ResourcePolicySnapshotSchedulePolicyScheduleDailyScheduleArgs\n {\n DaysInCycle = 1,\n StartTime = \"04:00\",\n },\n },\n },\n });\n\n var defaultInstanceTemplate = new Gcp.Compute.InstanceTemplate(\"default\", new()\n {\n Name = \"appserver-template\",\n Description = \"This template is used to create app server instances.\",\n Tags = new[]\n {\n \"foo\",\n \"bar\",\n },\n Labels = \n {\n { \"environment\", \"dev\" },\n },\n InstanceDescription = \"description assigned to instances\",\n MachineType = \"e2-medium\",\n CanIpForward = false,\n Scheduling = new Gcp.Compute.Inputs.InstanceTemplateSchedulingArgs\n {\n AutomaticRestart = true,\n OnHostMaintenance = \"MIGRATE\",\n },\n Disks = new[]\n {\n new Gcp.Compute.Inputs.InstanceTemplateDiskArgs\n {\n SourceImage = \"debian-cloud/debian-11\",\n AutoDelete = true,\n Boot = true,\n ResourcePolicies = dailyBackup.Id,\n },\n new Gcp.Compute.Inputs.InstanceTemplateDiskArgs\n {\n Source = foobar.Name,\n AutoDelete = false,\n Boot = false,\n },\n },\n NetworkInterfaces = new[]\n {\n new Gcp.Compute.Inputs.InstanceTemplateNetworkInterfaceArgs\n {\n Network = \"default\",\n },\n },\n Metadata = \n {\n { \"foo\", \"bar\" },\n },\n ServiceAccount = new Gcp.Compute.Inputs.InstanceTemplateServiceAccountArgs\n {\n Email = @default.Email,\n Scopes = new[]\n {\n \"cloud-platform\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute\"\n\t\"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/serviceaccount\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := serviceaccount.NewAccount(ctx, \"default\", \u0026serviceaccount.AccountArgs{\n\t\t\tAccountId: pulumi.String(\"service-account-id\"),\n\t\t\tDisplayName: pulumi.String(\"Service Account\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tmyImage, err := compute.LookupImage(ctx, \u0026compute.LookupImageArgs{\n\t\t\tFamily: pulumi.StringRef(\"debian-11\"),\n\t\t\tProject: pulumi.StringRef(\"debian-cloud\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tfoobar, err := compute.NewDisk(ctx, \"foobar\", \u0026compute.DiskArgs{\n\t\t\tName: pulumi.String(\"existing-disk\"),\n\t\t\tImage: pulumi.String(myImage.SelfLink),\n\t\t\tSize: pulumi.Int(10),\n\t\t\tType: pulumi.String(\"pd-ssd\"),\n\t\t\tZone: pulumi.String(\"us-central1-a\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tdailyBackup, err := compute.NewResourcePolicy(ctx, \"daily_backup\", \u0026compute.ResourcePolicyArgs{\n\t\t\tName: pulumi.String(\"every-day-4am\"),\n\t\t\tRegion: pulumi.String(\"us-central1\"),\n\t\t\tSnapshotSchedulePolicy: \u0026compute.ResourcePolicySnapshotSchedulePolicyArgs{\n\t\t\t\tSchedule: \u0026compute.ResourcePolicySnapshotSchedulePolicyScheduleArgs{\n\t\t\t\t\tDailySchedule: \u0026compute.ResourcePolicySnapshotSchedulePolicyScheduleDailyScheduleArgs{\n\t\t\t\t\t\tDaysInCycle: pulumi.Int(1),\n\t\t\t\t\t\tStartTime: pulumi.String(\"04:00\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = compute.NewInstanceTemplate(ctx, \"default\", \u0026compute.InstanceTemplateArgs{\n\t\t\tName: pulumi.String(\"appserver-template\"),\n\t\t\tDescription: pulumi.String(\"This template is used to create app server instances.\"),\n\t\t\tTags: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"foo\"),\n\t\t\t\tpulumi.String(\"bar\"),\n\t\t\t},\n\t\t\tLabels: pulumi.StringMap{\n\t\t\t\t\"environment\": pulumi.String(\"dev\"),\n\t\t\t},\n\t\t\tInstanceDescription: pulumi.String(\"description assigned to instances\"),\n\t\t\tMachineType: pulumi.String(\"e2-medium\"),\n\t\t\tCanIpForward: pulumi.Bool(false),\n\t\t\tScheduling: \u0026compute.InstanceTemplateSchedulingArgs{\n\t\t\t\tAutomaticRestart: pulumi.Bool(true),\n\t\t\t\tOnHostMaintenance: pulumi.String(\"MIGRATE\"),\n\t\t\t},\n\t\t\tDisks: compute.InstanceTemplateDiskArray{\n\t\t\t\t\u0026compute.InstanceTemplateDiskArgs{\n\t\t\t\t\tSourceImage: pulumi.String(\"debian-cloud/debian-11\"),\n\t\t\t\t\tAutoDelete: pulumi.Bool(true),\n\t\t\t\t\tBoot: pulumi.Bool(true),\n\t\t\t\t\tResourcePolicies: dailyBackup.ID(),\n\t\t\t\t},\n\t\t\t\t\u0026compute.InstanceTemplateDiskArgs{\n\t\t\t\t\tSource: foobar.Name,\n\t\t\t\t\tAutoDelete: pulumi.Bool(false),\n\t\t\t\t\tBoot: pulumi.Bool(false),\n\t\t\t\t},\n\t\t\t},\n\t\t\tNetworkInterfaces: compute.InstanceTemplateNetworkInterfaceArray{\n\t\t\t\t\u0026compute.InstanceTemplateNetworkInterfaceArgs{\n\t\t\t\t\tNetwork: pulumi.String(\"default\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tMetadata: pulumi.StringMap{\n\t\t\t\t\"foo\": pulumi.String(\"bar\"),\n\t\t\t},\n\t\t\tServiceAccount: \u0026compute.InstanceTemplateServiceAccountArgs{\n\t\t\t\tEmail: _default.Email,\n\t\t\t\tScopes: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"cloud-platform\"),\n\t\t\t\t},\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.gcp.serviceaccount.Account;\nimport com.pulumi.gcp.serviceaccount.AccountArgs;\nimport com.pulumi.gcp.compute.ComputeFunctions;\nimport com.pulumi.gcp.compute.inputs.GetImageArgs;\nimport com.pulumi.gcp.compute.Disk;\nimport com.pulumi.gcp.compute.DiskArgs;\nimport com.pulumi.gcp.compute.ResourcePolicy;\nimport com.pulumi.gcp.compute.ResourcePolicyArgs;\nimport com.pulumi.gcp.compute.inputs.ResourcePolicySnapshotSchedulePolicyArgs;\nimport com.pulumi.gcp.compute.inputs.ResourcePolicySnapshotSchedulePolicyScheduleArgs;\nimport com.pulumi.gcp.compute.inputs.ResourcePolicySnapshotSchedulePolicyScheduleDailyScheduleArgs;\nimport com.pulumi.gcp.compute.InstanceTemplate;\nimport com.pulumi.gcp.compute.InstanceTemplateArgs;\nimport com.pulumi.gcp.compute.inputs.InstanceTemplateSchedulingArgs;\nimport com.pulumi.gcp.compute.inputs.InstanceTemplateDiskArgs;\nimport com.pulumi.gcp.compute.inputs.InstanceTemplateNetworkInterfaceArgs;\nimport com.pulumi.gcp.compute.inputs.InstanceTemplateServiceAccountArgs;\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 default_ = new Account(\"default\", AccountArgs.builder()\n .accountId(\"service-account-id\")\n .displayName(\"Service Account\")\n .build());\n\n final var myImage = ComputeFunctions.getImage(GetImageArgs.builder()\n .family(\"debian-11\")\n .project(\"debian-cloud\")\n .build());\n\n var foobar = new Disk(\"foobar\", DiskArgs.builder()\n .name(\"existing-disk\")\n .image(myImage.applyValue(getImageResult -\u003e getImageResult.selfLink()))\n .size(10)\n .type(\"pd-ssd\")\n .zone(\"us-central1-a\")\n .build());\n\n var dailyBackup = new ResourcePolicy(\"dailyBackup\", ResourcePolicyArgs.builder()\n .name(\"every-day-4am\")\n .region(\"us-central1\")\n .snapshotSchedulePolicy(ResourcePolicySnapshotSchedulePolicyArgs.builder()\n .schedule(ResourcePolicySnapshotSchedulePolicyScheduleArgs.builder()\n .dailySchedule(ResourcePolicySnapshotSchedulePolicyScheduleDailyScheduleArgs.builder()\n .daysInCycle(1)\n .startTime(\"04:00\")\n .build())\n .build())\n .build())\n .build());\n\n var defaultInstanceTemplate = new InstanceTemplate(\"defaultInstanceTemplate\", InstanceTemplateArgs.builder()\n .name(\"appserver-template\")\n .description(\"This template is used to create app server instances.\")\n .tags( \n \"foo\",\n \"bar\")\n .labels(Map.of(\"environment\", \"dev\"))\n .instanceDescription(\"description assigned to instances\")\n .machineType(\"e2-medium\")\n .canIpForward(false)\n .scheduling(InstanceTemplateSchedulingArgs.builder()\n .automaticRestart(true)\n .onHostMaintenance(\"MIGRATE\")\n .build())\n .disks( \n InstanceTemplateDiskArgs.builder()\n .sourceImage(\"debian-cloud/debian-11\")\n .autoDelete(true)\n .boot(true)\n .resourcePolicies(dailyBackup.id())\n .build(),\n InstanceTemplateDiskArgs.builder()\n .source(foobar.name())\n .autoDelete(false)\n .boot(false)\n .build())\n .networkInterfaces(InstanceTemplateNetworkInterfaceArgs.builder()\n .network(\"default\")\n .build())\n .metadata(Map.of(\"foo\", \"bar\"))\n .serviceAccount(InstanceTemplateServiceAccountArgs.builder()\n .email(default_.email())\n .scopes(\"cloud-platform\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n default:\n type: gcp:serviceaccount:Account\n properties:\n accountId: service-account-id\n displayName: Service Account\n defaultInstanceTemplate:\n type: gcp:compute:InstanceTemplate\n name: default\n properties:\n name: appserver-template\n description: This template is used to create app server instances.\n tags:\n - foo\n - bar\n labels:\n environment: dev\n instanceDescription: description assigned to instances\n machineType: e2-medium\n canIpForward: false\n scheduling:\n automaticRestart: true\n onHostMaintenance: MIGRATE\n disks:\n - sourceImage: debian-cloud/debian-11\n autoDelete: true\n boot: true\n resourcePolicies: ${dailyBackup.id}\n - source: ${foobar.name}\n autoDelete: false\n boot: false\n networkInterfaces:\n - network: default\n metadata:\n foo: bar\n serviceAccount:\n email: ${default.email}\n scopes:\n - cloud-platform\n foobar:\n type: gcp:compute:Disk\n properties:\n name: existing-disk\n image: ${myImage.selfLink}\n size: 10\n type: pd-ssd\n zone: us-central1-a\n dailyBackup:\n type: gcp:compute:ResourcePolicy\n name: daily_backup\n properties:\n name: every-day-4am\n region: us-central1\n snapshotSchedulePolicy:\n schedule:\n dailySchedule:\n daysInCycle: 1\n startTime: 04:00\nvariables:\n myImage:\n fn::invoke:\n Function: gcp:compute:getImage\n Arguments:\n family: debian-11\n project: debian-cloud\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Automatic Envoy Deployment\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gcp from \"@pulumi/gcp\";\n\nconst default = gcp.compute.getDefaultServiceAccount({});\nconst myImage = gcp.compute.getImage({\n family: \"debian-11\",\n project: \"debian-cloud\",\n});\nconst foobar = new gcp.compute.InstanceTemplate(\"foobar\", {\n name: \"appserver-template\",\n machineType: \"e2-medium\",\n canIpForward: false,\n tags: [\n \"foo\",\n \"bar\",\n ],\n disks: [{\n sourceImage: myImage.then(myImage =\u003e myImage.selfLink),\n autoDelete: true,\n boot: true,\n }],\n networkInterfaces: [{\n network: \"default\",\n }],\n scheduling: {\n preemptible: false,\n automaticRestart: true,\n },\n metadata: {\n \"gce-software-declaration\": `{\n \"softwareRecipes\": [{\n \"name\": \"install-gce-service-proxy-agent\",\n \"desired_state\": \"INSTALLED\",\n \"installSteps\": [{\n \"scriptRun\": {\n \"script\": \"#! /bin/bash\\\\nZONE=(curl --silent http://metadata.google.internal/computeMetadata/v1/instance/zone -H Metadata-Flavor:Google | cut -d/ -f4 )\\\\nexport SERVICE_PROXY_AGENT_DIRECTORY=(mktemp -d)\\\\nsudo gsutil cp gs://gce-service-proxy-\"ZONE\"/service-proxy-agent/releases/service-proxy-agent-0.2.tgz \"SERVICE_PROXY_AGENT_DIRECTORY\" || sudo gsutil cp gs://gce-service-proxy/service-proxy-agent/releases/service-proxy-agent-0.2.tgz \"SERVICE_PROXY_AGENT_DIRECTORY\"\\\\nsudo tar -xzf \"SERVICE_PROXY_AGENT_DIRECTORY\"/service-proxy-agent-0.2.tgz -C \"SERVICE_PROXY_AGENT_DIRECTORY\"\\\\n\"SERVICE_PROXY_AGENT_DIRECTORY\"/service-proxy-agent/service-proxy-agent-bootstrap.sh\"\n }\n }]\n }]\n}\n`,\n \"gce-service-proxy\": `{\n \"api-version\": \"0.2\",\n \"proxy-spec\": {\n \"proxy-port\": 15001,\n \"network\": \"my-network\",\n \"tracing\": \"ON\",\n \"access-log\": \"/var/log/envoy/access.log\"\n }\n \"service\": {\n \"serving-ports\": [80, 81]\n },\n \"labels\": {\n \"app_name\": \"bookserver_app\",\n \"app_version\": \"STABLE\"\n }\n}\n`,\n \"enable-guest-attributes\": \"true\",\n \"enable-osconfig\": \"true\",\n },\n serviceAccount: {\n email: _default.then(_default =\u003e _default.email),\n scopes: [\"cloud-platform\"],\n },\n labels: {\n \"gce-service-proxy\": \"on\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_gcp as gcp\n\ndefault = gcp.compute.get_default_service_account()\nmy_image = gcp.compute.get_image(family=\"debian-11\",\n project=\"debian-cloud\")\nfoobar = gcp.compute.InstanceTemplate(\"foobar\",\n name=\"appserver-template\",\n machine_type=\"e2-medium\",\n can_ip_forward=False,\n tags=[\n \"foo\",\n \"bar\",\n ],\n disks=[{\n \"source_image\": my_image.self_link,\n \"auto_delete\": True,\n \"boot\": True,\n }],\n network_interfaces=[{\n \"network\": \"default\",\n }],\n scheduling={\n \"preemptible\": False,\n \"automatic_restart\": True,\n },\n metadata={\n \"gce-software-declaration\": \"\"\"{\n \"softwareRecipes\": [{\n \"name\": \"install-gce-service-proxy-agent\",\n \"desired_state\": \"INSTALLED\",\n \"installSteps\": [{\n \"scriptRun\": {\n \"script\": \"#! /bin/bash\\nZONE=$(curl --silent http://metadata.google.internal/computeMetadata/v1/instance/zone -H Metadata-Flavor:Google | cut -d/ -f4 )\\nexport SERVICE_PROXY_AGENT_DIRECTORY=$(mktemp -d)\\nsudo gsutil cp gs://gce-service-proxy-\"$ZONE\"/service-proxy-agent/releases/service-proxy-agent-0.2.tgz \"$SERVICE_PROXY_AGENT_DIRECTORY\" || sudo gsutil cp gs://gce-service-proxy/service-proxy-agent/releases/service-proxy-agent-0.2.tgz \"$SERVICE_PROXY_AGENT_DIRECTORY\"\\nsudo tar -xzf \"$SERVICE_PROXY_AGENT_DIRECTORY\"/service-proxy-agent-0.2.tgz -C \"$SERVICE_PROXY_AGENT_DIRECTORY\"\\n\"$SERVICE_PROXY_AGENT_DIRECTORY\"/service-proxy-agent/service-proxy-agent-bootstrap.sh\"\n }\n }]\n }]\n}\n\"\"\",\n \"gce-service-proxy\": \"\"\"{\n \"api-version\": \"0.2\",\n \"proxy-spec\": {\n \"proxy-port\": 15001,\n \"network\": \"my-network\",\n \"tracing\": \"ON\",\n \"access-log\": \"/var/log/envoy/access.log\"\n }\n \"service\": {\n \"serving-ports\": [80, 81]\n },\n \"labels\": {\n \"app_name\": \"bookserver_app\",\n \"app_version\": \"STABLE\"\n }\n}\n\"\"\",\n \"enable-guest-attributes\": \"true\",\n \"enable-osconfig\": \"true\",\n },\n service_account={\n \"email\": default.email,\n \"scopes\": [\"cloud-platform\"],\n },\n labels={\n \"gce-service-proxy\": \"on\",\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Gcp = Pulumi.Gcp;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var @default = Gcp.Compute.GetDefaultServiceAccount.Invoke();\n\n var myImage = Gcp.Compute.GetImage.Invoke(new()\n {\n Family = \"debian-11\",\n Project = \"debian-cloud\",\n });\n\n var foobar = new Gcp.Compute.InstanceTemplate(\"foobar\", new()\n {\n Name = \"appserver-template\",\n MachineType = \"e2-medium\",\n CanIpForward = false,\n Tags = new[]\n {\n \"foo\",\n \"bar\",\n },\n Disks = new[]\n {\n new Gcp.Compute.Inputs.InstanceTemplateDiskArgs\n {\n SourceImage = myImage.Apply(getImageResult =\u003e getImageResult.SelfLink),\n AutoDelete = true,\n Boot = true,\n },\n },\n NetworkInterfaces = new[]\n {\n new Gcp.Compute.Inputs.InstanceTemplateNetworkInterfaceArgs\n {\n Network = \"default\",\n },\n },\n Scheduling = new Gcp.Compute.Inputs.InstanceTemplateSchedulingArgs\n {\n Preemptible = false,\n AutomaticRestart = true,\n },\n Metadata = \n {\n { \"gce-software-declaration\", @\"{\n \"\"softwareRecipes\"\": [{\n \"\"name\"\": \"\"install-gce-service-proxy-agent\"\",\n \"\"desired_state\"\": \"\"INSTALLED\"\",\n \"\"installSteps\"\": [{\n \"\"scriptRun\"\": {\n \"\"script\"\": \"\"#! /bin/bash\\nZONE=$(curl --silent http://metadata.google.internal/computeMetadata/v1/instance/zone -H Metadata-Flavor:Google | cut -d/ -f4 )\\nexport SERVICE_PROXY_AGENT_DIRECTORY=$(mktemp -d)\\nsudo gsutil cp gs://gce-service-proxy-\"\"$ZONE\"\"/service-proxy-agent/releases/service-proxy-agent-0.2.tgz \"\"$SERVICE_PROXY_AGENT_DIRECTORY\"\" || sudo gsutil cp gs://gce-service-proxy/service-proxy-agent/releases/service-proxy-agent-0.2.tgz \"\"$SERVICE_PROXY_AGENT_DIRECTORY\"\"\\nsudo tar -xzf \"\"$SERVICE_PROXY_AGENT_DIRECTORY\"\"/service-proxy-agent-0.2.tgz -C \"\"$SERVICE_PROXY_AGENT_DIRECTORY\"\"\\n\"\"$SERVICE_PROXY_AGENT_DIRECTORY\"\"/service-proxy-agent/service-proxy-agent-bootstrap.sh\"\"\n }\n }]\n }]\n}\n\" },\n { \"gce-service-proxy\", @\"{\n \"\"api-version\"\": \"\"0.2\"\",\n \"\"proxy-spec\"\": {\n \"\"proxy-port\"\": 15001,\n \"\"network\"\": \"\"my-network\"\",\n \"\"tracing\"\": \"\"ON\"\",\n \"\"access-log\"\": \"\"/var/log/envoy/access.log\"\"\n }\n \"\"service\"\": {\n \"\"serving-ports\"\": [80, 81]\n },\n \"\"labels\"\": {\n \"\"app_name\"\": \"\"bookserver_app\"\",\n \"\"app_version\"\": \"\"STABLE\"\"\n }\n}\n\" },\n { \"enable-guest-attributes\", \"true\" },\n { \"enable-osconfig\", \"true\" },\n },\n ServiceAccount = new Gcp.Compute.Inputs.InstanceTemplateServiceAccountArgs\n {\n Email = @default.Apply(@default =\u003e @default.Apply(getDefaultServiceAccountResult =\u003e getDefaultServiceAccountResult.Email)),\n Scopes = new[]\n {\n \"cloud-platform\",\n },\n },\n Labels = \n {\n { \"gce-service-proxy\", \"on\" },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_default, err := compute.GetDefaultServiceAccount(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tmyImage, err := compute.LookupImage(ctx, \u0026compute.LookupImageArgs{\n\t\t\tFamily: pulumi.StringRef(\"debian-11\"),\n\t\t\tProject: pulumi.StringRef(\"debian-cloud\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = compute.NewInstanceTemplate(ctx, \"foobar\", \u0026compute.InstanceTemplateArgs{\n\t\t\tName: pulumi.String(\"appserver-template\"),\n\t\t\tMachineType: pulumi.String(\"e2-medium\"),\n\t\t\tCanIpForward: pulumi.Bool(false),\n\t\t\tTags: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"foo\"),\n\t\t\t\tpulumi.String(\"bar\"),\n\t\t\t},\n\t\t\tDisks: compute.InstanceTemplateDiskArray{\n\t\t\t\t\u0026compute.InstanceTemplateDiskArgs{\n\t\t\t\t\tSourceImage: pulumi.String(myImage.SelfLink),\n\t\t\t\t\tAutoDelete: pulumi.Bool(true),\n\t\t\t\t\tBoot: pulumi.Bool(true),\n\t\t\t\t},\n\t\t\t},\n\t\t\tNetworkInterfaces: compute.InstanceTemplateNetworkInterfaceArray{\n\t\t\t\t\u0026compute.InstanceTemplateNetworkInterfaceArgs{\n\t\t\t\t\tNetwork: pulumi.String(\"default\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tScheduling: \u0026compute.InstanceTemplateSchedulingArgs{\n\t\t\t\tPreemptible: pulumi.Bool(false),\n\t\t\t\tAutomaticRestart: pulumi.Bool(true),\n\t\t\t},\n\t\t\tMetadata: pulumi.StringMap{\n\t\t\t\t\"gce-software-declaration\": pulumi.String(`{\n \"softwareRecipes\": [{\n \"name\": \"install-gce-service-proxy-agent\",\n \"desired_state\": \"INSTALLED\",\n \"installSteps\": [{\n \"scriptRun\": {\n \"script\": \"#! /bin/bash\\nZONE=$(curl --silent http://metadata.google.internal/computeMetadata/v1/instance/zone -H Metadata-Flavor:Google | cut -d/ -f4 )\\nexport SERVICE_PROXY_AGENT_DIRECTORY=$(mktemp -d)\\nsudo gsutil cp gs://gce-service-proxy-\"$ZONE\"/service-proxy-agent/releases/service-proxy-agent-0.2.tgz \"$SERVICE_PROXY_AGENT_DIRECTORY\" || sudo gsutil cp gs://gce-service-proxy/service-proxy-agent/releases/service-proxy-agent-0.2.tgz \"$SERVICE_PROXY_AGENT_DIRECTORY\"\\nsudo tar -xzf \"$SERVICE_PROXY_AGENT_DIRECTORY\"/service-proxy-agent-0.2.tgz -C \"$SERVICE_PROXY_AGENT_DIRECTORY\"\\n\"$SERVICE_PROXY_AGENT_DIRECTORY\"/service-proxy-agent/service-proxy-agent-bootstrap.sh\"\n }\n }]\n }]\n}\n`),\n\t\t\t\t\"gce-service-proxy\": pulumi.String(`{\n \"api-version\": \"0.2\",\n \"proxy-spec\": {\n \"proxy-port\": 15001,\n \"network\": \"my-network\",\n \"tracing\": \"ON\",\n \"access-log\": \"/var/log/envoy/access.log\"\n }\n \"service\": {\n \"serving-ports\": [80, 81]\n },\n \"labels\": {\n \"app_name\": \"bookserver_app\",\n \"app_version\": \"STABLE\"\n }\n}\n`),\n\t\t\t\t\"enable-guest-attributes\": pulumi.String(\"true\"),\n\t\t\t\t\"enable-osconfig\": pulumi.String(\"true\"),\n\t\t\t},\n\t\t\tServiceAccount: \u0026compute.InstanceTemplateServiceAccountArgs{\n\t\t\t\tEmail: pulumi.String(_default.Email),\n\t\t\t\tScopes: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"cloud-platform\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tLabels: pulumi.StringMap{\n\t\t\t\t\"gce-service-proxy\": pulumi.String(\"on\"),\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.gcp.compute.ComputeFunctions;\nimport com.pulumi.gcp.compute.inputs.GetDefaultServiceAccountArgs;\nimport com.pulumi.gcp.compute.inputs.GetImageArgs;\nimport com.pulumi.gcp.compute.InstanceTemplate;\nimport com.pulumi.gcp.compute.InstanceTemplateArgs;\nimport com.pulumi.gcp.compute.inputs.InstanceTemplateDiskArgs;\nimport com.pulumi.gcp.compute.inputs.InstanceTemplateNetworkInterfaceArgs;\nimport com.pulumi.gcp.compute.inputs.InstanceTemplateSchedulingArgs;\nimport com.pulumi.gcp.compute.inputs.InstanceTemplateServiceAccountArgs;\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 default = ComputeFunctions.getDefaultServiceAccount();\n\n final var myImage = ComputeFunctions.getImage(GetImageArgs.builder()\n .family(\"debian-11\")\n .project(\"debian-cloud\")\n .build());\n\n var foobar = new InstanceTemplate(\"foobar\", InstanceTemplateArgs.builder()\n .name(\"appserver-template\")\n .machineType(\"e2-medium\")\n .canIpForward(false)\n .tags( \n \"foo\",\n \"bar\")\n .disks(InstanceTemplateDiskArgs.builder()\n .sourceImage(myImage.applyValue(getImageResult -\u003e getImageResult.selfLink()))\n .autoDelete(true)\n .boot(true)\n .build())\n .networkInterfaces(InstanceTemplateNetworkInterfaceArgs.builder()\n .network(\"default\")\n .build())\n .scheduling(InstanceTemplateSchedulingArgs.builder()\n .preemptible(false)\n .automaticRestart(true)\n .build())\n .metadata(Map.ofEntries(\n Map.entry(\"gce-software-declaration\", \"\"\"\n{\n \"softwareRecipes\": [{\n \"name\": \"install-gce-service-proxy-agent\",\n \"desired_state\": \"INSTALLED\",\n \"installSteps\": [{\n \"scriptRun\": {\n \"script\": \"#! /bin/bash\\nZONE=$(curl --silent http://metadata.google.internal/computeMetadata/v1/instance/zone -H Metadata-Flavor:Google | cut -d/ -f4 )\\nexport SERVICE_PROXY_AGENT_DIRECTORY=$(mktemp -d)\\nsudo gsutil cp gs://gce-service-proxy-\"$ZONE\"/service-proxy-agent/releases/service-proxy-agent-0.2.tgz \"$SERVICE_PROXY_AGENT_DIRECTORY\" || sudo gsutil cp gs://gce-service-proxy/service-proxy-agent/releases/service-proxy-agent-0.2.tgz \"$SERVICE_PROXY_AGENT_DIRECTORY\"\\nsudo tar -xzf \"$SERVICE_PROXY_AGENT_DIRECTORY\"/service-proxy-agent-0.2.tgz -C \"$SERVICE_PROXY_AGENT_DIRECTORY\"\\n\"$SERVICE_PROXY_AGENT_DIRECTORY\"/service-proxy-agent/service-proxy-agent-bootstrap.sh\"\n }\n }]\n }]\n}\n \"\"\"),\n Map.entry(\"gce-service-proxy\", \"\"\"\n{\n \"api-version\": \"0.2\",\n \"proxy-spec\": {\n \"proxy-port\": 15001,\n \"network\": \"my-network\",\n \"tracing\": \"ON\",\n \"access-log\": \"/var/log/envoy/access.log\"\n }\n \"service\": {\n \"serving-ports\": [80, 81]\n },\n \"labels\": {\n \"app_name\": \"bookserver_app\",\n \"app_version\": \"STABLE\"\n }\n}\n \"\"\"),\n Map.entry(\"enable-guest-attributes\", \"true\"),\n Map.entry(\"enable-osconfig\", \"true\")\n ))\n .serviceAccount(InstanceTemplateServiceAccountArgs.builder()\n .email(default_.email())\n .scopes(\"cloud-platform\")\n .build())\n .labels(Map.of(\"gce-service-proxy\", \"on\"))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n foobar:\n type: gcp:compute:InstanceTemplate\n properties:\n name: appserver-template\n machineType: e2-medium\n canIpForward: false\n tags:\n - foo\n - bar\n disks:\n - sourceImage: ${myImage.selfLink}\n autoDelete: true\n boot: true\n networkInterfaces:\n - network: default\n scheduling:\n preemptible: false\n automaticRestart: true\n metadata:\n gce-software-declaration: |\n {\n \"softwareRecipes\": [{\n \"name\": \"install-gce-service-proxy-agent\",\n \"desired_state\": \"INSTALLED\",\n \"installSteps\": [{\n \"scriptRun\": {\n \"script\": \"#! /bin/bash\\nZONE=$(curl --silent http://metadata.google.internal/computeMetadata/v1/instance/zone -H Metadata-Flavor:Google | cut -d/ -f4 )\\nexport SERVICE_PROXY_AGENT_DIRECTORY=$(mktemp -d)\\nsudo gsutil cp gs://gce-service-proxy-\"$ZONE\"/service-proxy-agent/releases/service-proxy-agent-0.2.tgz \"$SERVICE_PROXY_AGENT_DIRECTORY\" || sudo gsutil cp gs://gce-service-proxy/service-proxy-agent/releases/service-proxy-agent-0.2.tgz \"$SERVICE_PROXY_AGENT_DIRECTORY\"\\nsudo tar -xzf \"$SERVICE_PROXY_AGENT_DIRECTORY\"/service-proxy-agent-0.2.tgz -C \"$SERVICE_PROXY_AGENT_DIRECTORY\"\\n\"$SERVICE_PROXY_AGENT_DIRECTORY\"/service-proxy-agent/service-proxy-agent-bootstrap.sh\"\n }\n }]\n }]\n }\n gce-service-proxy: |\n {\n \"api-version\": \"0.2\",\n \"proxy-spec\": {\n \"proxy-port\": 15001,\n \"network\": \"my-network\",\n \"tracing\": \"ON\",\n \"access-log\": \"/var/log/envoy/access.log\"\n }\n \"service\": {\n \"serving-ports\": [80, 81]\n },\n \"labels\": {\n \"app_name\": \"bookserver_app\",\n \"app_version\": \"STABLE\"\n }\n }\n enable-guest-attributes: 'true'\n enable-osconfig: 'true'\n serviceAccount:\n email: ${default.email}\n scopes:\n - cloud-platform\n labels:\n gce-service-proxy: on\nvariables:\n default:\n fn::invoke:\n Function: gcp:compute:getDefaultServiceAccount\n Arguments: {}\n myImage:\n fn::invoke:\n Function: gcp:compute:getImage\n Arguments:\n family: debian-11\n project: debian-cloud\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Deploying the Latest Image\n\nA common way to use instance templates and managed instance groups is to deploy the\nlatest image in a family, usually the latest build of your application. There are two\nways to do this in the provider, and they have their pros and cons. The difference ends\nup being in how \"latest\" is interpreted. You can either deploy the latest image available\nwhen the provider runs, or you can have each instance check what the latest image is when\nit's being created, either as part of a scaling event or being rebuilt by the instance\ngroup manager.\n\nIf you're not sure, we recommend deploying the latest image available when the provider runs,\nbecause this means all the instances in your group will be based on the same image, always,\nand means that no upgrades or changes to your instances happen outside of a `pulumi up`.\nYou can achieve this by using the `gcp.compute.Image`\ndata source, which will retrieve the latest image on every `pulumi apply`, and will update\nthe template to use that specific image:\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gcp from \"@pulumi/gcp\";\n\nconst myImage = gcp.compute.getImage({\n family: \"debian-11\",\n project: \"debian-cloud\",\n});\nconst instanceTemplate = new gcp.compute.InstanceTemplate(\"instance_template\", {\n namePrefix: \"instance-template-\",\n machineType: \"e2-medium\",\n region: \"us-central1\",\n disks: [{\n sourceImage: myImage.then(myImage =\u003e myImage.selfLink),\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_gcp as gcp\n\nmy_image = gcp.compute.get_image(family=\"debian-11\",\n project=\"debian-cloud\")\ninstance_template = gcp.compute.InstanceTemplate(\"instance_template\",\n name_prefix=\"instance-template-\",\n machine_type=\"e2-medium\",\n region=\"us-central1\",\n disks=[{\n \"source_image\": my_image.self_link,\n }])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Gcp = Pulumi.Gcp;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var myImage = Gcp.Compute.GetImage.Invoke(new()\n {\n Family = \"debian-11\",\n Project = \"debian-cloud\",\n });\n\n var instanceTemplate = new Gcp.Compute.InstanceTemplate(\"instance_template\", new()\n {\n NamePrefix = \"instance-template-\",\n MachineType = \"e2-medium\",\n Region = \"us-central1\",\n Disks = new[]\n {\n new Gcp.Compute.Inputs.InstanceTemplateDiskArgs\n {\n SourceImage = myImage.Apply(getImageResult =\u003e getImageResult.SelfLink),\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tmyImage, err := compute.LookupImage(ctx, \u0026compute.LookupImageArgs{\n\t\t\tFamily: pulumi.StringRef(\"debian-11\"),\n\t\t\tProject: pulumi.StringRef(\"debian-cloud\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = compute.NewInstanceTemplate(ctx, \"instance_template\", \u0026compute.InstanceTemplateArgs{\n\t\t\tNamePrefix: pulumi.String(\"instance-template-\"),\n\t\t\tMachineType: pulumi.String(\"e2-medium\"),\n\t\t\tRegion: pulumi.String(\"us-central1\"),\n\t\t\tDisks: compute.InstanceTemplateDiskArray{\n\t\t\t\t\u0026compute.InstanceTemplateDiskArgs{\n\t\t\t\t\tSourceImage: pulumi.String(myImage.SelfLink),\n\t\t\t\t},\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.gcp.compute.ComputeFunctions;\nimport com.pulumi.gcp.compute.inputs.GetImageArgs;\nimport com.pulumi.gcp.compute.InstanceTemplate;\nimport com.pulumi.gcp.compute.InstanceTemplateArgs;\nimport com.pulumi.gcp.compute.inputs.InstanceTemplateDiskArgs;\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 myImage = ComputeFunctions.getImage(GetImageArgs.builder()\n .family(\"debian-11\")\n .project(\"debian-cloud\")\n .build());\n\n var instanceTemplate = new InstanceTemplate(\"instanceTemplate\", InstanceTemplateArgs.builder()\n .namePrefix(\"instance-template-\")\n .machineType(\"e2-medium\")\n .region(\"us-central1\")\n .disks(InstanceTemplateDiskArgs.builder()\n .sourceImage(myImage.applyValue(getImageResult -\u003e getImageResult.selfLink()))\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n instanceTemplate:\n type: gcp:compute:InstanceTemplate\n name: instance_template\n properties:\n namePrefix: instance-template-\n machineType: e2-medium\n region: us-central1\n disks:\n - sourceImage: ${myImage.selfLink}\nvariables:\n myImage:\n fn::invoke:\n Function: gcp:compute:getImage\n Arguments:\n family: debian-11\n project: debian-cloud\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nTo have instances update to the latest on every scaling event or instance re-creation,\nuse the family as the image for the disk, and it will use GCP's default behavior, setting\nthe image for the template to the family:\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gcp from \"@pulumi/gcp\";\n\nconst instanceTemplate = new gcp.compute.InstanceTemplate(\"instance_template\", {\n namePrefix: \"instance-template-\",\n machineType: \"e2-medium\",\n region: \"us-central1\",\n disks: [{\n sourceImage: \"debian-cloud/debian-11\",\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_gcp as gcp\n\ninstance_template = gcp.compute.InstanceTemplate(\"instance_template\",\n name_prefix=\"instance-template-\",\n machine_type=\"e2-medium\",\n region=\"us-central1\",\n disks=[{\n \"source_image\": \"debian-cloud/debian-11\",\n }])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Gcp = Pulumi.Gcp;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var instanceTemplate = new Gcp.Compute.InstanceTemplate(\"instance_template\", new()\n {\n NamePrefix = \"instance-template-\",\n MachineType = \"e2-medium\",\n Region = \"us-central1\",\n Disks = new[]\n {\n new Gcp.Compute.Inputs.InstanceTemplateDiskArgs\n {\n SourceImage = \"debian-cloud/debian-11\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := compute.NewInstanceTemplate(ctx, \"instance_template\", \u0026compute.InstanceTemplateArgs{\n\t\t\tNamePrefix: pulumi.String(\"instance-template-\"),\n\t\t\tMachineType: pulumi.String(\"e2-medium\"),\n\t\t\tRegion: pulumi.String(\"us-central1\"),\n\t\t\tDisks: compute.InstanceTemplateDiskArray{\n\t\t\t\t\u0026compute.InstanceTemplateDiskArgs{\n\t\t\t\t\tSourceImage: pulumi.String(\"debian-cloud/debian-11\"),\n\t\t\t\t},\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.gcp.compute.InstanceTemplate;\nimport com.pulumi.gcp.compute.InstanceTemplateArgs;\nimport com.pulumi.gcp.compute.inputs.InstanceTemplateDiskArgs;\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 instanceTemplate = new InstanceTemplate(\"instanceTemplate\", InstanceTemplateArgs.builder()\n .namePrefix(\"instance-template-\")\n .machineType(\"e2-medium\")\n .region(\"us-central1\")\n .disks(InstanceTemplateDiskArgs.builder()\n .sourceImage(\"debian-cloud/debian-11\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n instanceTemplate:\n type: gcp:compute:InstanceTemplate\n name: instance_template\n properties:\n namePrefix: instance-template-\n machineType: e2-medium\n region: us-central1\n disks:\n - sourceImage: debian-cloud/debian-11\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nInstance templates can be imported using any of these accepted formats:\n\n* `projects/{{project}}/global/instanceTemplates/{{name}}`\n\n* `{{project}}/{{name}}`\n\n* `{{name}}`\n\nWhen using the `pulumi import` command, instance templates can be imported using one of the formats above. For example:\n\n```sh\n$ pulumi import gcp:compute/instanceTemplate:InstanceTemplate default projects/{{project}}/global/instanceTemplates/{{name}}\n```\n\n```sh\n$ pulumi import gcp:compute/instanceTemplate:InstanceTemplate default {{project}}/{{name}}\n```\n\n```sh\n$ pulumi import gcp:compute/instanceTemplate:InstanceTemplate default {{name}}\n```\n\n", "properties": { "advancedMachineFeatures": { "$ref": "#/types/gcp:compute/InstanceTemplateAdvancedMachineFeatures:InstanceTemplateAdvancedMachineFeatures", @@ -256634,7 +256634,7 @@ } }, "gcp:certificateauthority/getAuthority:getAuthority": { - "description": "Get info about a Google CAS Certificate Authority.\n\n## Example Usage\n\n```tf\ndata \"google_privateca_certificate_authority\" \"default\" {\n location = \"us-west1\"\n pool = \"pool-name\"\n certificate_authority_id = \"ca-id\"\n}\n\noutput \"csr\" {\n value = data.google_privateca_certificate_authority.default.pem_csr\n}\n\n```\n", + "description": "Get info about a Google CAS Certificate Authority.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gcp from \"@pulumi/gcp\";\n\nconst default = gcp.certificateauthority.getAuthority({\n location: \"us-west1\",\n pool: \"pool-name\",\n certificateAuthorityId: \"ca-id\",\n});\nexport const csr = _default.then(_default =\u003e _default.pemCsr);\n```\n```python\nimport pulumi\nimport pulumi_gcp as gcp\n\ndefault = gcp.certificateauthority.get_authority(location=\"us-west1\",\n pool=\"pool-name\",\n certificate_authority_id=\"ca-id\")\npulumi.export(\"csr\", default.pem_csr)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Gcp = Pulumi.Gcp;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var @default = Gcp.CertificateAuthority.GetAuthority.Invoke(new()\n {\n Location = \"us-west1\",\n Pool = \"pool-name\",\n CertificateAuthorityId = \"ca-id\",\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"csr\"] = @default.Apply(@default =\u003e @default.Apply(getAuthorityResult =\u003e getAuthorityResult.PemCsr)),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/certificateauthority\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_default, err := certificateauthority.LookupAuthority(ctx, \u0026certificateauthority.LookupAuthorityArgs{\n\t\t\tLocation: pulumi.StringRef(\"us-west1\"),\n\t\t\tPool: pulumi.StringRef(\"pool-name\"),\n\t\t\tCertificateAuthorityId: pulumi.StringRef(\"ca-id\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"csr\", _default.PemCsr)\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.gcp.certificateauthority.CertificateauthorityFunctions;\nimport com.pulumi.gcp.certificateauthority.inputs.GetAuthorityArgs;\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 default = CertificateauthorityFunctions.getAuthority(GetAuthorityArgs.builder()\n .location(\"us-west1\")\n .pool(\"pool-name\")\n .certificateAuthorityId(\"ca-id\")\n .build());\n\n ctx.export(\"csr\", default_.pemCsr());\n }\n}\n```\n```yaml\nvariables:\n default:\n fn::invoke:\n Function: gcp:certificateauthority:getAuthority\n Arguments:\n location: us-west1\n pool: pool-name\n certificateAuthorityId: ca-id\noutputs:\n csr: ${default.pemCsr}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getAuthority.\n", "properties": { @@ -256919,7 +256919,7 @@ } }, "gcp:certificatemanager/getCertificateMap:getCertificateMap": { - "description": "Get info about a Google Certificate Manager Certificate Map resource.\n\n## Example Usage\n\n```tf\ndata \"google_certificate_manager_certificate_map\" \"default\" {\n name = \"cert-map\"\n}\n```\n", + "description": "Get info about a Google Certificate Manager Certificate Map resource.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gcp from \"@pulumi/gcp\";\n\nconst default = gcp.certificatemanager.getCertificateMap({\n name: \"cert-map\",\n});\n```\n```python\nimport pulumi\nimport pulumi_gcp as gcp\n\ndefault = gcp.certificatemanager.get_certificate_map(name=\"cert-map\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Gcp = Pulumi.Gcp;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var @default = Gcp.CertificateManager.GetCertificateMap.Invoke(new()\n {\n Name = \"cert-map\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/certificatemanager\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := certificatemanager.GetCertificateMap(ctx, \u0026certificatemanager.GetCertificateMapArgs{\n\t\t\tName: \"cert-map\",\n\t\t}, nil)\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.gcp.certificatemanager.CertificatemanagerFunctions;\nimport com.pulumi.gcp.certificatemanager.inputs.GetCertificateMapArgs;\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 default = CertificatemanagerFunctions.getCertificateMap(GetCertificateMapArgs.builder()\n .name(\"cert-map\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n default:\n fn::invoke:\n Function: gcp:certificatemanager:getCertificateMap\n Arguments:\n name: cert-map\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getCertificateMap.\n", "properties": { @@ -258011,7 +258011,7 @@ } }, "gcp:cloudidentity/getGroupLookup:getGroupLookup": { - "description": "Use this data source to look up the resource name of a Cloud Identity Group by its [EntityKey](https://cloud.google.com/identity/docs/reference/rest/v1/EntityKey), i.e. the group's email.\n\nhttps://cloud.google.com/identity/docs/concepts/overview#groups\n\n## Example Usage\n\n```tf\ndata \"google_cloud_identity_group_lookup\" \"group\" {\n group_key {\n id = \"my-group@example.com\"\n }\n}\n```\n", + "description": "Use this data source to look up the resource name of a Cloud Identity Group by its [EntityKey](https://cloud.google.com/identity/docs/reference/rest/v1/EntityKey), i.e. the group's email.\n\nhttps://cloud.google.com/identity/docs/concepts/overview#groups\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gcp from \"@pulumi/gcp\";\n\nconst group = gcp.cloudidentity.getGroupLookup({\n groupKey: {\n id: \"my-group@example.com\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_gcp as gcp\n\ngroup = gcp.cloudidentity.get_group_lookup(group_key={\n \"id\": \"my-group@example.com\",\n})\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Gcp = Pulumi.Gcp;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var @group = Gcp.CloudIdentity.GetGroupLookup.Invoke(new()\n {\n GroupKey = new Gcp.CloudIdentity.Inputs.GetGroupLookupGroupKeyInputArgs\n {\n Id = \"my-group@example.com\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/cloudidentity\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := cloudidentity.GetGroupLookup(ctx, \u0026cloudidentity.GetGroupLookupArgs{\n\t\t\tGroupKey: cloudidentity.GetGroupLookupGroupKey{\n\t\t\t\tId: \"my-group@example.com\",\n\t\t\t},\n\t\t}, nil)\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.gcp.cloudidentity.CloudidentityFunctions;\nimport com.pulumi.gcp.cloudidentity.inputs.GetGroupLookupArgs;\nimport com.pulumi.gcp.cloudidentity.inputs.GetGroupLookupGroupKeyArgs;\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 group = CloudidentityFunctions.getGroupLookup(GetGroupLookupArgs.builder()\n .groupKey(GetGroupLookupGroupKeyArgs.builder()\n .id(\"my-group@example.com\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n group:\n fn::invoke:\n Function: gcp:cloudidentity:getGroupLookup\n Arguments:\n groupKey:\n id: my-group@example.com\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getGroupLookup.\n", "properties": { @@ -258049,7 +258049,7 @@ } }, "gcp:cloudidentity/getGroupMemberships:getGroupMemberships": { - "description": "Use this data source to get list of the Cloud Identity Group Memberships within a given Group.\n\nhttps://cloud.google.com/identity/docs/concepts/overview#memberships\n\nTo get more information about GroupMembership, see:\n\n* [API documentation](https://cloud.google.com/identity/docs/reference/rest/v1/groups.memberships)\n* How-to Guides\n * [Official Documentation](https://cloud.google.com/identity/docs/how-to/memberships-google-groups)\n\n\n## Example Usage\n\n```tf\ndata \"google_cloud_identity_group_memberships\" \"members\" {\n group = \"groups/123eab45c6defghi\"\n}\n```\n", + "description": "Use this data source to get list of the Cloud Identity Group Memberships within a given Group.\n\nhttps://cloud.google.com/identity/docs/concepts/overview#memberships\n\nTo get more information about GroupMembership, see:\n\n* [API documentation](https://cloud.google.com/identity/docs/reference/rest/v1/groups.memberships)\n* How-to Guides\n * [Official Documentation](https://cloud.google.com/identity/docs/how-to/memberships-google-groups)\n\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gcp from \"@pulumi/gcp\";\n\nconst members = gcp.cloudidentity.getGroupMemberships({\n group: \"groups/123eab45c6defghi\",\n});\n```\n```python\nimport pulumi\nimport pulumi_gcp as gcp\n\nmembers = gcp.cloudidentity.get_group_memberships(group=\"groups/123eab45c6defghi\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Gcp = Pulumi.Gcp;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var members = Gcp.CloudIdentity.GetGroupMemberships.Invoke(new()\n {\n Group = \"groups/123eab45c6defghi\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/cloudidentity\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := cloudidentity.GetGroupMemberships(ctx, \u0026cloudidentity.GetGroupMembershipsArgs{\n\t\t\tGroup: \"groups/123eab45c6defghi\",\n\t\t}, nil)\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.gcp.cloudidentity.CloudidentityFunctions;\nimport com.pulumi.gcp.cloudidentity.inputs.GetGroupMembershipsArgs;\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 members = CloudidentityFunctions.getGroupMemberships(GetGroupMembershipsArgs.builder()\n .group(\"groups/123eab45c6defghi\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n members:\n fn::invoke:\n Function: gcp:cloudidentity:getGroupMemberships\n Arguments:\n group: groups/123eab45c6defghi\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getGroupMemberships.\n", "properties": { @@ -258130,7 +258130,7 @@ } }, "gcp:cloudidentity/getGroups:getGroups": { - "description": "Use this data source to get list of the Cloud Identity Groups under a customer or namespace.\n\nhttps://cloud.google.com/identity/docs/concepts/overview#groups\n\n## Example Usage\n\n```tf\ndata \"google_cloud_identity_groups\" \"groups\" {\n parent = \"customers/A01b123xz\"\n}\n```\n", + "description": "Use this data source to get list of the Cloud Identity Groups under a customer or namespace.\n\nhttps://cloud.google.com/identity/docs/concepts/overview#groups\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gcp from \"@pulumi/gcp\";\n\nconst groups = gcp.cloudidentity.getGroups({\n parent: \"customers/A01b123xz\",\n});\n```\n```python\nimport pulumi\nimport pulumi_gcp as gcp\n\ngroups = gcp.cloudidentity.get_groups(parent=\"customers/A01b123xz\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Gcp = Pulumi.Gcp;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var groups = Gcp.CloudIdentity.GetGroups.Invoke(new()\n {\n Parent = \"customers/A01b123xz\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/cloudidentity\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := cloudidentity.GetGroups(ctx, \u0026cloudidentity.GetGroupsArgs{\n\t\t\tParent: \"customers/A01b123xz\",\n\t\t}, nil)\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.gcp.cloudidentity.CloudidentityFunctions;\nimport com.pulumi.gcp.cloudidentity.inputs.GetGroupsArgs;\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 groups = CloudidentityFunctions.getGroups(GetGroupsArgs.builder()\n .parent(\"customers/A01b123xz\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n groups:\n fn::invoke:\n Function: gcp:cloudidentity:getGroups\n Arguments:\n parent: customers/A01b123xz\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getGroups.\n", "properties": { @@ -259529,7 +259529,7 @@ } }, "gcp:compute/getBackendBucket:getBackendBucket": { - "description": "Get information about a BackendBucket.\n\n## Example Usage\n\n```tf\ndata \"google_compute_backend_bucket\" \"my-backend-bucket\" {\n name = \"my-backend\"\n}\n```\n", + "description": "Get information about a BackendBucket.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gcp from \"@pulumi/gcp\";\n\nconst my-backend-bucket = gcp.compute.getBackendBucket({\n name: \"my-backend\",\n});\n```\n```python\nimport pulumi\nimport pulumi_gcp as gcp\n\nmy_backend_bucket = gcp.compute.get_backend_bucket(name=\"my-backend\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Gcp = Pulumi.Gcp;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var my_backend_bucket = Gcp.Compute.GetBackendBucket.Invoke(new()\n {\n Name = \"my-backend\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := compute.LookupBackendBucket(ctx, \u0026compute.LookupBackendBucketArgs{\n\t\t\tName: \"my-backend\",\n\t\t}, nil)\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.gcp.compute.ComputeFunctions;\nimport com.pulumi.gcp.compute.inputs.GetBackendBucketArgs;\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 my-backend-bucket = ComputeFunctions.getBackendBucket(GetBackendBucketArgs.builder()\n .name(\"my-backend\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n my-backend-bucket:\n fn::invoke:\n Function: gcp:compute:getBackendBucket\n Arguments:\n name: my-backend\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getBackendBucket.\n", "properties": { @@ -259663,7 +259663,7 @@ } }, "gcp:compute/getBackendService:getBackendService": { - "description": "Provide access to a Backend Service's attribute. For more information\nsee [the official documentation](https://cloud.google.com/compute/docs/load-balancing/http/backend-service)\nand the [API](https://cloud.google.com/compute/docs/reference/latest/backendServices).\n\n## Example Usage\n\n```tf\ndata \"google_compute_backend_service\" \"baz\" {\n name = \"foobar\"\n}\n\nresource \"google_compute_backend_service\" \"default\" {\n name = \"backend-service\"\n health_checks = [tolist(data.google_compute_backend_service.baz.health_checks)[0]]\n}\n```\n", + "description": "Provide access to a Backend Service's attribute. For more information\nsee [the official documentation](https://cloud.google.com/compute/docs/load-balancing/http/backend-service)\nand the [API](https://cloud.google.com/compute/docs/reference/latest/backendServices).\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gcp from \"@pulumi/gcp\";\n\nconst baz = gcp.compute.getBackendService({\n name: \"foobar\",\n});\nconst _default = new gcp.compute.BackendService(\"default\", {\n name: \"backend-service\",\n healthChecks: baz.then(baz =\u003e baz.healthChecks?.[0]),\n});\n```\n```python\nimport pulumi\nimport pulumi_gcp as gcp\n\nbaz = gcp.compute.get_backend_service(name=\"foobar\")\ndefault = gcp.compute.BackendService(\"default\",\n name=\"backend-service\",\n health_checks=baz.health_checks[0])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Gcp = Pulumi.Gcp;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var baz = Gcp.Compute.GetBackendService.Invoke(new()\n {\n Name = \"foobar\",\n });\n\n var @default = new Gcp.Compute.BackendService(\"default\", new()\n {\n Name = \"backend-service\",\n HealthChecks = baz.Apply(getBackendServiceResult =\u003e getBackendServiceResult.HealthChecks[0]),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tbaz, err := compute.LookupBackendService(ctx, \u0026compute.LookupBackendServiceArgs{\n\t\t\tName: \"foobar\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = compute.NewBackendService(ctx, \"default\", \u0026compute.BackendServiceArgs{\n\t\t\tName: pulumi.String(\"backend-service\"),\n\t\t\tHealthChecks: pulumi.String(baz.HealthChecks[0]),\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.gcp.compute.ComputeFunctions;\nimport com.pulumi.gcp.compute.inputs.GetBackendServiceArgs;\nimport com.pulumi.gcp.compute.BackendService;\nimport com.pulumi.gcp.compute.BackendServiceArgs;\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 baz = ComputeFunctions.getBackendService(GetBackendServiceArgs.builder()\n .name(\"foobar\")\n .build());\n\n var default_ = new BackendService(\"default\", BackendServiceArgs.builder()\n .name(\"backend-service\")\n .healthChecks(baz.applyValue(getBackendServiceResult -\u003e getBackendServiceResult.healthChecks()[0]))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n default:\n type: gcp:compute:BackendService\n properties:\n name: backend-service\n healthChecks: ${baz.healthChecks[0]}\nvariables:\n baz:\n fn::invoke:\n Function: gcp:compute:getBackendService\n Arguments:\n name: foobar\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getBackendService.\n", "properties": { @@ -259923,7 +259923,7 @@ } }, "gcp:compute/getCertificate:getCertificate": { - "description": "Get info about a Google Compute SSL Certificate from its name.\n\n## Example Usage\n\n```tf\ndata \"google_compute_ssl_certificate\" \"my_cert\" {\n name = \"my-cert\"\n}\n\noutput \"certificate\" {\n value = data.google_compute_ssl_certificate.my_cert.certificate\n}\n\noutput \"certificate_id\" {\n value = data.google_compute_ssl_certificate.my_cert.certificate_id\n}\n\noutput \"self_link\" {\n value = data.google_compute_ssl_certificate.my_cert.self_link\n}\n```\n", + "description": "Get info about a Google Compute SSL Certificate from its name.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gcp from \"@pulumi/gcp\";\n\nconst myCert = gcp.compute.getCertificate({\n name: \"my-cert\",\n});\nexport const certificate = myCert.then(myCert =\u003e myCert.certificate);\nexport const certificateId = myCert.then(myCert =\u003e myCert.certificateId);\nexport const selfLink = myCert.then(myCert =\u003e myCert.selfLink);\n```\n```python\nimport pulumi\nimport pulumi_gcp as gcp\n\nmy_cert = gcp.compute.get_certificate(name=\"my-cert\")\npulumi.export(\"certificate\", my_cert.certificate)\npulumi.export(\"certificateId\", my_cert.certificate_id)\npulumi.export(\"selfLink\", my_cert.self_link)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Gcp = Pulumi.Gcp;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var myCert = Gcp.Compute.GetCertificate.Invoke(new()\n {\n Name = \"my-cert\",\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"certificate\"] = myCert.Apply(getCertificateResult =\u003e getCertificateResult.Certificate),\n [\"certificateId\"] = myCert.Apply(getCertificateResult =\u003e getCertificateResult.CertificateId),\n [\"selfLink\"] = myCert.Apply(getCertificateResult =\u003e getCertificateResult.SelfLink),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tmyCert, err := compute.GetCertificate(ctx, \u0026compute.GetCertificateArgs{\n\t\t\tName: \"my-cert\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"certificate\", myCert.Certificate)\n\t\tctx.Export(\"certificateId\", myCert.CertificateId)\n\t\tctx.Export(\"selfLink\", myCert.SelfLink)\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.gcp.compute.ComputeFunctions;\nimport com.pulumi.gcp.compute.inputs.GetCertificateArgs;\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 myCert = ComputeFunctions.getCertificate(GetCertificateArgs.builder()\n .name(\"my-cert\")\n .build());\n\n ctx.export(\"certificate\", myCert.applyValue(getCertificateResult -\u003e getCertificateResult.certificate()));\n ctx.export(\"certificateId\", myCert.applyValue(getCertificateResult -\u003e getCertificateResult.certificateId()));\n ctx.export(\"selfLink\", myCert.applyValue(getCertificateResult -\u003e getCertificateResult.selfLink()));\n }\n}\n```\n```yaml\nvariables:\n myCert:\n fn::invoke:\n Function: gcp:compute:getCertificate\n Arguments:\n name: my-cert\noutputs:\n certificate: ${myCert.certificate}\n certificateId: ${myCert.certificateId}\n selfLink: ${myCert.selfLink}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getCertificate.\n", "properties": { @@ -260348,7 +260348,7 @@ } }, "gcp:compute/getForwardingRule:getForwardingRule": { - "description": "Get a forwarding rule within GCE from its name.\n\n## Example Usage\n\n```tf\ndata \"google_compute_forwarding_rule\" \"my-forwarding-rule\" {\n name = \"forwarding-rule-us-east1\"\n}\n```\n", + "description": "Get a forwarding rule within GCE from its name.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gcp from \"@pulumi/gcp\";\n\nconst my-forwarding-rule = gcp.compute.getForwardingRule({\n name: \"forwarding-rule-us-east1\",\n});\n```\n```python\nimport pulumi\nimport pulumi_gcp as gcp\n\nmy_forwarding_rule = gcp.compute.get_forwarding_rule(name=\"forwarding-rule-us-east1\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Gcp = Pulumi.Gcp;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var my_forwarding_rule = Gcp.Compute.GetForwardingRule.Invoke(new()\n {\n Name = \"forwarding-rule-us-east1\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := compute.LookupForwardingRule(ctx, \u0026compute.LookupForwardingRuleArgs{\n\t\t\tName: \"forwarding-rule-us-east1\",\n\t\t}, nil)\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.gcp.compute.ComputeFunctions;\nimport com.pulumi.gcp.compute.inputs.GetForwardingRuleArgs;\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 my-forwarding-rule = ComputeFunctions.getForwardingRule(GetForwardingRuleArgs.builder()\n .name(\"forwarding-rule-us-east1\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n my-forwarding-rule:\n fn::invoke:\n Function: gcp:compute:getForwardingRule\n Arguments:\n name: forwarding-rule-us-east1\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getForwardingRule.\n", "properties": { @@ -260539,7 +260539,7 @@ } }, "gcp:compute/getForwardingRules:getForwardingRules": { - "description": "List all networks in a specified Google Cloud project.\n\n## Example Usage\n\n```tf\ndata \"google_compute_forwarding_rules\" \"my-forwarding-rules\" {\n project = \"my-cloud-project\"\n region = \"us-central1\"\n}\n```\n", + "description": "List all networks in a specified Google Cloud project.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gcp from \"@pulumi/gcp\";\n\nconst my-forwarding-rules = gcp.compute.getForwardingRules({\n project: \"my-cloud-project\",\n region: \"us-central1\",\n});\n```\n```python\nimport pulumi\nimport pulumi_gcp as gcp\n\nmy_forwarding_rules = gcp.compute.get_forwarding_rules(project=\"my-cloud-project\",\n region=\"us-central1\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Gcp = Pulumi.Gcp;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var my_forwarding_rules = Gcp.Compute.GetForwardingRules.Invoke(new()\n {\n Project = \"my-cloud-project\",\n Region = \"us-central1\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := compute.GetForwardingRules(ctx, \u0026compute.GetForwardingRulesArgs{\n\t\t\tProject: pulumi.StringRef(\"my-cloud-project\"),\n\t\t\tRegion: pulumi.StringRef(\"us-central1\"),\n\t\t}, nil)\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.gcp.compute.ComputeFunctions;\nimport com.pulumi.gcp.compute.inputs.GetForwardingRulesArgs;\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 my-forwarding-rules = ComputeFunctions.getForwardingRules(GetForwardingRulesArgs.builder()\n .project(\"my-cloud-project\")\n .region(\"us-central1\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n my-forwarding-rules:\n fn::invoke:\n Function: gcp:compute:getForwardingRules\n Arguments:\n project: my-cloud-project\n region: us-central1\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getForwardingRules.\n", "properties": { @@ -260669,7 +260669,7 @@ } }, "gcp:compute/getGlobalForwardingRule:getGlobalForwardingRule": { - "description": "Get a global forwarding rule within GCE from its name.\n\n## Example Usage\n\n```tf\ndata \"google_compute_global_forwarding_rule\" \"my-forwarding-rule\" {\n name = \"forwarding-rule-global\"\n}\n```\n", + "description": "Get a global forwarding rule within GCE from its name.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gcp from \"@pulumi/gcp\";\n\nconst my-forwarding-rule = gcp.compute.getGlobalForwardingRule({\n name: \"forwarding-rule-global\",\n});\n```\n```python\nimport pulumi\nimport pulumi_gcp as gcp\n\nmy_forwarding_rule = gcp.compute.get_global_forwarding_rule(name=\"forwarding-rule-global\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Gcp = Pulumi.Gcp;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var my_forwarding_rule = Gcp.Compute.GetGlobalForwardingRule.Invoke(new()\n {\n Name = \"forwarding-rule-global\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := compute.LookupGlobalForwardingRule(ctx, \u0026compute.LookupGlobalForwardingRuleArgs{\n\t\t\tName: \"forwarding-rule-global\",\n\t\t}, nil)\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.gcp.compute.ComputeFunctions;\nimport com.pulumi.gcp.compute.inputs.GetGlobalForwardingRuleArgs;\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 my-forwarding-rule = ComputeFunctions.getGlobalForwardingRule(GetGlobalForwardingRuleArgs.builder()\n .name(\"forwarding-rule-global\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n my-forwarding-rule:\n fn::invoke:\n Function: gcp:compute:getGlobalForwardingRule\n Arguments:\n name: forwarding-rule-global\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getGlobalForwardingRule.\n", "properties": { @@ -260817,7 +260817,7 @@ } }, "gcp:compute/getHcVpnGateway:getHcVpnGateway": { - "description": "Get a HA VPN Gateway within GCE from its name.\n\n## Example Usage\n\n```tf\ndata \"google_compute_ha_vpn_gateway\" \"gateway\" {\n name = \"foobar\"\n}\n```\n", + "description": "Get a HA VPN Gateway within GCE from its name.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gcp from \"@pulumi/gcp\";\n\nconst gateway = gcp.compute.getHcVpnGateway({\n name: \"foobar\",\n});\n```\n```python\nimport pulumi\nimport pulumi_gcp as gcp\n\ngateway = gcp.compute.get_hc_vpn_gateway(name=\"foobar\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Gcp = Pulumi.Gcp;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var gateway = Gcp.Compute.GetHcVpnGateway.Invoke(new()\n {\n Name = \"foobar\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := compute.GetHcVpnGateway(ctx, \u0026compute.GetHcVpnGatewayArgs{\n\t\t\tName: \"foobar\",\n\t\t}, nil)\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.gcp.compute.ComputeFunctions;\nimport com.pulumi.gcp.compute.inputs.GetHcVpnGatewayArgs;\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 gateway = ComputeFunctions.getHcVpnGateway(GetHcVpnGatewayArgs.builder()\n .name(\"foobar\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n gateway:\n fn::invoke:\n Function: gcp:compute:getHcVpnGateway\n Arguments:\n name: foobar\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getHcVpnGateway.\n", "properties": { @@ -260891,7 +260891,7 @@ } }, "gcp:compute/getHealthCheck:getHealthCheck": { - "description": "Get information about a HealthCheck.\n\n## Example Usage\n\n```tf\ndata \"google_compute_health_check\" \"health_check\" {\n name = \"my-hc\"\n}\n```\n", + "description": "Get information about a HealthCheck.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gcp from \"@pulumi/gcp\";\n\nconst healthCheck = gcp.compute.getHealthCheck({\n name: \"my-hc\",\n});\n```\n```python\nimport pulumi\nimport pulumi_gcp as gcp\n\nhealth_check = gcp.compute.get_health_check(name=\"my-hc\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Gcp = Pulumi.Gcp;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var healthCheck = Gcp.Compute.GetHealthCheck.Invoke(new()\n {\n Name = \"my-hc\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := compute.LookupHealthCheck(ctx, \u0026compute.LookupHealthCheckArgs{\n\t\t\tName: \"my-hc\",\n\t\t}, nil)\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.gcp.compute.ComputeFunctions;\nimport com.pulumi.gcp.compute.inputs.GetHealthCheckArgs;\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 healthCheck = ComputeFunctions.getHealthCheck(GetHealthCheckArgs.builder()\n .name(\"my-hc\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n healthCheck:\n fn::invoke:\n Function: gcp:compute:getHealthCheck\n Arguments:\n name: my-hc\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getHealthCheck.\n", "properties": { @@ -262158,7 +262158,7 @@ } }, "gcp:compute/getLBIPRanges:getLBIPRanges": { - "description": "Use this data source to access IP ranges in your firewall rules.\n\nhttps://cloud.google.com/compute/docs/load-balancing/health-checks#health_check_source_ips_and_firewall_rules\n\n## Example Usage\n\n```tf\ndata \"google_compute_lb_ip_ranges\" \"ranges\" {\n}\n\nresource \"google_compute_firewall\" \"lb\" {\n name = \"lb-firewall\"\n network = google_compute_network.main.name\n\n allow {\n protocol = \"tcp\"\n ports = [\"80\"]\n }\n\n source_ranges = data.google_compute_lb_ip_ranges.ranges.network\n target_tags = [\n \"InstanceBehindLoadBalancer\",\n ]\n}\n```\n", + "description": "Use this data source to access IP ranges in your firewall rules.\n\nhttps://cloud.google.com/compute/docs/load-balancing/health-checks#health_check_source_ips_and_firewall_rules\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gcp from \"@pulumi/gcp\";\n\nconst ranges = gcp.compute.getLBIPRanges({});\nconst lb = new gcp.compute.Firewall(\"lb\", {\n name: \"lb-firewall\",\n network: main.name,\n allows: [{\n protocol: \"tcp\",\n ports: [\"80\"],\n }],\n sourceRanges: ranges.then(ranges =\u003e ranges.networks),\n targetTags: [\"InstanceBehindLoadBalancer\"],\n});\n```\n```python\nimport pulumi\nimport pulumi_gcp as gcp\n\nranges = gcp.compute.get_lbip_ranges()\nlb = gcp.compute.Firewall(\"lb\",\n name=\"lb-firewall\",\n network=main[\"name\"],\n allows=[{\n \"protocol\": \"tcp\",\n \"ports\": [\"80\"],\n }],\n source_ranges=ranges.networks,\n target_tags=[\"InstanceBehindLoadBalancer\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Gcp = Pulumi.Gcp;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var ranges = Gcp.Compute.GetLBIPRanges.Invoke();\n\n var lb = new Gcp.Compute.Firewall(\"lb\", new()\n {\n Name = \"lb-firewall\",\n Network = main.Name,\n Allows = new[]\n {\n new Gcp.Compute.Inputs.FirewallAllowArgs\n {\n Protocol = \"tcp\",\n Ports = new[]\n {\n \"80\",\n },\n },\n },\n SourceRanges = ranges.Apply(getLBIPRangesResult =\u003e getLBIPRangesResult.Networks),\n TargetTags = new[]\n {\n \"InstanceBehindLoadBalancer\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tranges, err := compute.GetLBIPRanges(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = compute.NewFirewall(ctx, \"lb\", \u0026compute.FirewallArgs{\n\t\t\tName: pulumi.String(\"lb-firewall\"),\n\t\t\tNetwork: pulumi.Any(main.Name),\n\t\t\tAllows: compute.FirewallAllowArray{\n\t\t\t\t\u0026compute.FirewallAllowArgs{\n\t\t\t\t\tProtocol: pulumi.String(\"tcp\"),\n\t\t\t\t\tPorts: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"80\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tSourceRanges: interface{}(ranges.Networks),\n\t\t\tTargetTags: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"InstanceBehindLoadBalancer\"),\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.gcp.compute.ComputeFunctions;\nimport com.pulumi.gcp.compute.Firewall;\nimport com.pulumi.gcp.compute.FirewallArgs;\nimport com.pulumi.gcp.compute.inputs.FirewallAllowArgs;\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 ranges = ComputeFunctions.getLBIPRanges();\n\n var lb = new Firewall(\"lb\", FirewallArgs.builder()\n .name(\"lb-firewall\")\n .network(main.name())\n .allows(FirewallAllowArgs.builder()\n .protocol(\"tcp\")\n .ports(\"80\")\n .build())\n .sourceRanges(ranges.applyValue(getLBIPRangesResult -\u003e getLBIPRangesResult.networks()))\n .targetTags(\"InstanceBehindLoadBalancer\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n lb:\n type: gcp:compute:Firewall\n properties:\n name: lb-firewall\n network: ${main.name}\n allows:\n - protocol: tcp\n ports:\n - '80'\n sourceRanges: ${ranges.networks}\n targetTags:\n - InstanceBehindLoadBalancer\nvariables:\n ranges:\n fn::invoke:\n Function: gcp:compute:getLBIPRanges\n Arguments: {}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "outputs": { "description": "A collection of values returned by getLBIPRanges.\n", "properties": { @@ -262295,7 +262295,7 @@ } }, "gcp:compute/getNetblockIPRanges:getNetblockIPRanges": { - "description": "Use this data source to get the IP addresses from different special IP ranges on Google Cloud Platform.\n\n## Example Usage\n\n### Cloud Ranges\n\n```tf\ndata \"google_netblock_ip_ranges\" \"netblock\" {\n}\n\noutput \"cidr_blocks\" {\n value = data.google_netblock_ip_ranges.netblock.cidr_blocks\n}\n\noutput \"cidr_blocks_ipv4\" {\n value = data.google_netblock_ip_ranges.netblock.cidr_blocks_ipv4\n}\n\noutput \"cidr_blocks_ipv6\" {\n value = data.google_netblock_ip_ranges.netblock.cidr_blocks_ipv6\n}\n```\n\n### Allow Health Checks\n\n```tf\ndata \"google_netblock_ip_ranges\" \"legacy-hcs\" {\n range_type = \"legacy-health-checkers\"\n}\n\nresource \"google_compute_firewall\" \"allow-hcs\" {\n name = \"allow-hcs\"\n network = google_compute_network.default.name\n\n allow {\n protocol = \"tcp\"\n ports = [\"80\"]\n }\n\n source_ranges = data.google_netblock_ip_ranges.legacy-hcs.cidr_blocks_ipv4\n}\n\nresource \"google_compute_network\" \"default\" {\n name = \"test-network\"\n}\n```\n", + "description": "Use this data source to get the IP addresses from different special IP ranges on Google Cloud Platform.\n\n## Example Usage\n\n### Cloud Ranges\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gcp from \"@pulumi/gcp\";\n\nconst netblock = gcp.compute.getNetblockIPRanges({});\nexport const cidrBlocks = netblock.then(netblock =\u003e netblock.cidrBlocks);\nexport const cidrBlocksIpv4 = netblock.then(netblock =\u003e netblock.cidrBlocksIpv4s);\nexport const cidrBlocksIpv6 = netblock.then(netblock =\u003e netblock.cidrBlocksIpv6s);\n```\n```python\nimport pulumi\nimport pulumi_gcp as gcp\n\nnetblock = gcp.compute.get_netblock_ip_ranges()\npulumi.export(\"cidrBlocks\", netblock.cidr_blocks)\npulumi.export(\"cidrBlocksIpv4\", netblock.cidr_blocks_ipv4s)\npulumi.export(\"cidrBlocksIpv6\", netblock.cidr_blocks_ipv6s)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Gcp = Pulumi.Gcp;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var netblock = Gcp.Compute.GetNetblockIPRanges.Invoke();\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"cidrBlocks\"] = netblock.Apply(getNetblockIPRangesResult =\u003e getNetblockIPRangesResult.CidrBlocks),\n [\"cidrBlocksIpv4\"] = netblock.Apply(getNetblockIPRangesResult =\u003e getNetblockIPRangesResult.CidrBlocksIpv4s),\n [\"cidrBlocksIpv6\"] = netblock.Apply(getNetblockIPRangesResult =\u003e getNetblockIPRangesResult.CidrBlocksIpv6s),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tnetblock, err := compute.GetNetblockIPRanges(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"cidrBlocks\", netblock.CidrBlocks)\n\t\tctx.Export(\"cidrBlocksIpv4\", netblock.CidrBlocksIpv4s)\n\t\tctx.Export(\"cidrBlocksIpv6\", netblock.CidrBlocksIpv6s)\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.gcp.compute.ComputeFunctions;\nimport com.pulumi.gcp.compute.inputs.GetNetblockIPRangesArgs;\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 netblock = ComputeFunctions.getNetblockIPRanges();\n\n ctx.export(\"cidrBlocks\", netblock.applyValue(getNetblockIPRangesResult -\u003e getNetblockIPRangesResult.cidrBlocks()));\n ctx.export(\"cidrBlocksIpv4\", netblock.applyValue(getNetblockIPRangesResult -\u003e getNetblockIPRangesResult.cidrBlocksIpv4s()));\n ctx.export(\"cidrBlocksIpv6\", netblock.applyValue(getNetblockIPRangesResult -\u003e getNetblockIPRangesResult.cidrBlocksIpv6s()));\n }\n}\n```\n```yaml\nvariables:\n netblock:\n fn::invoke:\n Function: gcp:compute:getNetblockIPRanges\n Arguments: {}\noutputs:\n cidrBlocks: ${netblock.cidrBlocks}\n cidrBlocksIpv4: ${netblock.cidrBlocksIpv4s}\n cidrBlocksIpv6: ${netblock.cidrBlocksIpv6s}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Allow Health Checks\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gcp from \"@pulumi/gcp\";\n\nconst legacy-hcs = gcp.compute.getNetblockIPRanges({\n rangeType: \"legacy-health-checkers\",\n});\nconst _default = new gcp.compute.Network(\"default\", {name: \"test-network\"});\nconst allow_hcs = new gcp.compute.Firewall(\"allow-hcs\", {\n name: \"allow-hcs\",\n network: _default.name,\n allows: [{\n protocol: \"tcp\",\n ports: [\"80\"],\n }],\n sourceRanges: legacy_hcs.then(legacy_hcs =\u003e legacy_hcs.cidrBlocksIpv4s),\n});\n```\n```python\nimport pulumi\nimport pulumi_gcp as gcp\n\nlegacy_hcs = gcp.compute.get_netblock_ip_ranges(range_type=\"legacy-health-checkers\")\ndefault = gcp.compute.Network(\"default\", name=\"test-network\")\nallow_hcs = gcp.compute.Firewall(\"allow-hcs\",\n name=\"allow-hcs\",\n network=default.name,\n allows=[{\n \"protocol\": \"tcp\",\n \"ports\": [\"80\"],\n }],\n source_ranges=legacy_hcs.cidr_blocks_ipv4s)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Gcp = Pulumi.Gcp;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var legacy_hcs = Gcp.Compute.GetNetblockIPRanges.Invoke(new()\n {\n RangeType = \"legacy-health-checkers\",\n });\n\n var @default = new Gcp.Compute.Network(\"default\", new()\n {\n Name = \"test-network\",\n });\n\n var allow_hcs = new Gcp.Compute.Firewall(\"allow-hcs\", new()\n {\n Name = \"allow-hcs\",\n Network = @default.Name,\n Allows = new[]\n {\n new Gcp.Compute.Inputs.FirewallAllowArgs\n {\n Protocol = \"tcp\",\n Ports = new[]\n {\n \"80\",\n },\n },\n },\n SourceRanges = legacy_hcs.Apply(legacy_hcs =\u003e legacy_hcs.Apply(getNetblockIPRangesResult =\u003e getNetblockIPRangesResult.CidrBlocksIpv4s)),\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tlegacy_hcs, err := compute.GetNetblockIPRanges(ctx, \u0026compute.GetNetblockIPRangesArgs{\n\t\t\tRangeType: pulumi.StringRef(\"legacy-health-checkers\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = compute.NewNetwork(ctx, \"default\", \u0026compute.NetworkArgs{\n\t\t\tName: pulumi.String(\"test-network\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = compute.NewFirewall(ctx, \"allow-hcs\", \u0026compute.FirewallArgs{\n\t\t\tName: pulumi.String(\"allow-hcs\"),\n\t\t\tNetwork: _default.Name,\n\t\t\tAllows: compute.FirewallAllowArray{\n\t\t\t\t\u0026compute.FirewallAllowArgs{\n\t\t\t\t\tProtocol: pulumi.String(\"tcp\"),\n\t\t\t\t\tPorts: pulumi.StringArray{\n\t\t\t\t\t\tpulumi.String(\"80\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tSourceRanges: interface{}(legacy_hcs.CidrBlocksIpv4s),\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.gcp.compute.ComputeFunctions;\nimport com.pulumi.gcp.compute.inputs.GetNetblockIPRangesArgs;\nimport com.pulumi.gcp.compute.Network;\nimport com.pulumi.gcp.compute.NetworkArgs;\nimport com.pulumi.gcp.compute.Firewall;\nimport com.pulumi.gcp.compute.FirewallArgs;\nimport com.pulumi.gcp.compute.inputs.FirewallAllowArgs;\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 legacy-hcs = ComputeFunctions.getNetblockIPRanges(GetNetblockIPRangesArgs.builder()\n .rangeType(\"legacy-health-checkers\")\n .build());\n\n var default_ = new Network(\"default\", NetworkArgs.builder()\n .name(\"test-network\")\n .build());\n\n var allow_hcs = new Firewall(\"allow-hcs\", FirewallArgs.builder()\n .name(\"allow-hcs\")\n .network(default_.name())\n .allows(FirewallAllowArgs.builder()\n .protocol(\"tcp\")\n .ports(\"80\")\n .build())\n .sourceRanges(legacy_hcs.cidrBlocksIpv4s())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n allow-hcs:\n type: gcp:compute:Firewall\n properties:\n name: allow-hcs\n network: ${default.name}\n allows:\n - protocol: tcp\n ports:\n - '80'\n sourceRanges: ${[\"legacy-hcs\"].cidrBlocksIpv4s}\n default:\n type: gcp:compute:Network\n properties:\n name: test-network\nvariables:\n legacy-hcs:\n fn::invoke:\n Function: gcp:compute:getNetblockIPRanges\n Arguments:\n rangeType: legacy-health-checkers\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getNetblockIPRanges.\n", "properties": { @@ -262348,7 +262348,7 @@ } }, "gcp:compute/getNetwork:getNetwork": { - "description": "Get a network within GCE from its name.\n\n## Example Usage\n\n```tf\ndata \"google_compute_network\" \"my-network\" {\n name = \"default-us-east1\"\n}\n```\n", + "description": "Get a network within GCE from its name.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gcp from \"@pulumi/gcp\";\n\nconst my-network = gcp.compute.getNetwork({\n name: \"default-us-east1\",\n});\n```\n```python\nimport pulumi\nimport pulumi_gcp as gcp\n\nmy_network = gcp.compute.get_network(name=\"default-us-east1\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Gcp = Pulumi.Gcp;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var my_network = Gcp.Compute.GetNetwork.Invoke(new()\n {\n Name = \"default-us-east1\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := compute.LookupNetwork(ctx, \u0026compute.LookupNetworkArgs{\n\t\t\tName: \"default-us-east1\",\n\t\t}, nil)\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.gcp.compute.ComputeFunctions;\nimport com.pulumi.gcp.compute.inputs.GetNetworkArgs;\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 my-network = ComputeFunctions.getNetwork(GetNetworkArgs.builder()\n .name(\"default-us-east1\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n my-network:\n fn::invoke:\n Function: gcp:compute:getNetwork\n Arguments:\n name: default-us-east1\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getNetwork.\n", "properties": { @@ -262570,7 +262570,7 @@ } }, "gcp:compute/getNetworks:getNetworks": { - "description": "List all networks in a specified Google Cloud project.\n\n## Example Usage\n\n```tf\ndata \"google_compute_networks\" \"my-networks\" {\n project = \"my-cloud-project\"\n}\n```\n", + "description": "List all networks in a specified Google Cloud project.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gcp from \"@pulumi/gcp\";\n\nconst my-networks = gcp.compute.getNetworks({\n project: \"my-cloud-project\",\n});\n```\n```python\nimport pulumi\nimport pulumi_gcp as gcp\n\nmy_networks = gcp.compute.get_networks(project=\"my-cloud-project\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Gcp = Pulumi.Gcp;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var my_networks = Gcp.Compute.GetNetworks.Invoke(new()\n {\n Project = \"my-cloud-project\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := compute.GetNetworks(ctx, \u0026compute.GetNetworksArgs{\n\t\t\tProject: pulumi.StringRef(\"my-cloud-project\"),\n\t\t}, nil)\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.gcp.compute.ComputeFunctions;\nimport com.pulumi.gcp.compute.inputs.GetNetworksArgs;\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 my-networks = ComputeFunctions.getNetworks(GetNetworksArgs.builder()\n .project(\"my-cloud-project\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n my-networks:\n fn::invoke:\n Function: gcp:compute:getNetworks\n Arguments:\n project: my-cloud-project\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getNetworks.\n", "properties": { @@ -263385,7 +263385,7 @@ } }, "gcp:compute/getRegionSslCertificate:getRegionSslCertificate": { - "description": "Get info about a Region Google Compute SSL Certificate from its name.\n\n## Example Usage\n\n```tf\ndata \"google_compute_region_ssl_certificate\" \"my_cert\" {\n name = \"my-cert\"\n}\n\noutput \"certificate\" {\n value = data.google_compute_region_ssl_certificate.my_cert.certificate\n}\n\noutput \"certificate_id\" {\n value = data.google_compute_region_ssl_certificate.my_cert.certificate_id\n}\n\noutput \"self_link\" {\n value = data.google_compute_region_ssl_certificate.my_cert.self_link\n}\n```\n", + "description": "Get info about a Region Google Compute SSL Certificate from its name.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gcp from \"@pulumi/gcp\";\n\nconst myCert = gcp.compute.getRegionSslCertificate({\n name: \"my-cert\",\n});\nexport const certificate = myCert.then(myCert =\u003e myCert.certificate);\nexport const certificateId = myCert.then(myCert =\u003e myCert.certificateId);\nexport const selfLink = myCert.then(myCert =\u003e myCert.selfLink);\n```\n```python\nimport pulumi\nimport pulumi_gcp as gcp\n\nmy_cert = gcp.compute.get_region_ssl_certificate(name=\"my-cert\")\npulumi.export(\"certificate\", my_cert.certificate)\npulumi.export(\"certificateId\", my_cert.certificate_id)\npulumi.export(\"selfLink\", my_cert.self_link)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Gcp = Pulumi.Gcp;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var myCert = Gcp.Compute.GetRegionSslCertificate.Invoke(new()\n {\n Name = \"my-cert\",\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"certificate\"] = myCert.Apply(getRegionSslCertificateResult =\u003e getRegionSslCertificateResult.Certificate),\n [\"certificateId\"] = myCert.Apply(getRegionSslCertificateResult =\u003e getRegionSslCertificateResult.CertificateId),\n [\"selfLink\"] = myCert.Apply(getRegionSslCertificateResult =\u003e getRegionSslCertificateResult.SelfLink),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tmyCert, err := compute.LookupRegionSslCertificate(ctx, \u0026compute.LookupRegionSslCertificateArgs{\n\t\t\tName: \"my-cert\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"certificate\", myCert.Certificate)\n\t\tctx.Export(\"certificateId\", myCert.CertificateId)\n\t\tctx.Export(\"selfLink\", myCert.SelfLink)\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.gcp.compute.ComputeFunctions;\nimport com.pulumi.gcp.compute.inputs.GetRegionSslCertificateArgs;\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 myCert = ComputeFunctions.getRegionSslCertificate(GetRegionSslCertificateArgs.builder()\n .name(\"my-cert\")\n .build());\n\n ctx.export(\"certificate\", myCert.applyValue(getRegionSslCertificateResult -\u003e getRegionSslCertificateResult.certificate()));\n ctx.export(\"certificateId\", myCert.applyValue(getRegionSslCertificateResult -\u003e getRegionSslCertificateResult.certificateId()));\n ctx.export(\"selfLink\", myCert.applyValue(getRegionSslCertificateResult -\u003e getRegionSslCertificateResult.selfLink()));\n }\n}\n```\n```yaml\nvariables:\n myCert:\n fn::invoke:\n Function: gcp:compute:getRegionSslCertificate\n Arguments:\n name: my-cert\noutputs:\n certificate: ${myCert.certificate}\n certificateId: ${myCert.certificateId}\n selfLink: ${myCert.selfLink}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getRegionSslCertificate.\n", "properties": { @@ -263979,7 +263979,7 @@ } }, "gcp:compute/getSSLPolicy:getSSLPolicy": { - "description": "Gets an SSL Policy within GCE from its name, for use with Target HTTPS and Target SSL Proxies.\n For more information see [the official documentation](https://cloud.google.com/compute/docs/load-balancing/ssl-policies).\n\n## Example Usage\n\n```tf\ndata \"google_compute_ssl_policy\" \"my-ssl-policy\" {\n name = \"production-ssl-policy\"\n}\n```\n", + "description": "Gets an SSL Policy within GCE from its name, for use with Target HTTPS and Target SSL Proxies.\n For more information see [the official documentation](https://cloud.google.com/compute/docs/load-balancing/ssl-policies).\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gcp from \"@pulumi/gcp\";\n\nconst my-ssl-policy = gcp.compute.getSSLPolicy({\n name: \"production-ssl-policy\",\n});\n```\n```python\nimport pulumi\nimport pulumi_gcp as gcp\n\nmy_ssl_policy = gcp.compute.get_ssl_policy(name=\"production-ssl-policy\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Gcp = Pulumi.Gcp;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var my_ssl_policy = Gcp.Compute.GetSSLPolicy.Invoke(new()\n {\n Name = \"production-ssl-policy\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := compute.LookupSSLPolicy(ctx, \u0026compute.LookupSSLPolicyArgs{\n\t\t\tName: \"production-ssl-policy\",\n\t\t}, nil)\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.gcp.compute.ComputeFunctions;\nimport com.pulumi.gcp.compute.inputs.GetSSLPolicyArgs;\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 my-ssl-policy = ComputeFunctions.getSSLPolicy(GetSSLPolicyArgs.builder()\n .name(\"production-ssl-policy\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n my-ssl-policy:\n fn::invoke:\n Function: gcp:compute:getSSLPolicy\n Arguments:\n name: production-ssl-policy\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getSSLPolicy.\n", "properties": { @@ -264545,7 +264545,7 @@ } }, "gcp:compute/getVPNGateway:getVPNGateway": { - "description": "Get a VPN gateway within GCE from its name.\n\n## Example Usage\n\n```tf\ndata \"google_compute_vpn_gateway\" \"my-vpn-gateway\" {\n name = \"vpn-gateway-us-east1\"\n}\n```\n", + "description": "Get a VPN gateway within GCE from its name.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gcp from \"@pulumi/gcp\";\n\nconst my-vpn-gateway = gcp.compute.getVPNGateway({\n name: \"vpn-gateway-us-east1\",\n});\n```\n```python\nimport pulumi\nimport pulumi_gcp as gcp\n\nmy_vpn_gateway = gcp.compute.get_vpn_gateway(name=\"vpn-gateway-us-east1\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Gcp = Pulumi.Gcp;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var my_vpn_gateway = Gcp.Compute.GetVPNGateway.Invoke(new()\n {\n Name = \"vpn-gateway-us-east1\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := compute.LookupVPNGateway(ctx, \u0026compute.LookupVPNGatewayArgs{\n\t\t\tName: \"vpn-gateway-us-east1\",\n\t\t}, nil)\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.gcp.compute.ComputeFunctions;\nimport com.pulumi.gcp.compute.inputs.GetVPNGatewayArgs;\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 my-vpn-gateway = ComputeFunctions.getVPNGateway(GetVPNGatewayArgs.builder()\n .name(\"vpn-gateway-us-east1\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n my-vpn-gateway:\n fn::invoke:\n Function: gcp:compute:getVPNGateway\n Arguments:\n name: vpn-gateway-us-east1\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getVPNGateway.\n", "properties": { @@ -264951,7 +264951,7 @@ } }, "gcp:container/getCluster:getCluster": { - "description": "Get info about a GKE cluster from its name and location.\n\n## Example Usage\n\n```tf\ndata \"google_container_cluster\" \"my_cluster\" {\n name = \"my-cluster\"\n location = \"us-east1-a\"\n}\n\noutput \"endpoint\" {\n value = data.google_container_cluster.my_cluster.endpoint\n}\n\noutput \"instance_group_urls\" {\n value = data.google_container_cluster.my_cluster.node_pool[0].instance_group_urls\n}\n\noutput \"node_config\" {\n value = data.google_container_cluster.my_cluster.node_config\n}\n\noutput \"node_pools\" {\n value = data.google_container_cluster.my_cluster.node_pool\n}\n```\n", + "description": "Get info about a GKE cluster from its name and location.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gcp from \"@pulumi/gcp\";\n\nconst myCluster = gcp.container.getCluster({\n name: \"my-cluster\",\n location: \"us-east1-a\",\n});\nexport const endpoint = myCluster.then(myCluster =\u003e myCluster.endpoint);\nexport const instanceGroupUrls = myCluster.then(myCluster =\u003e myCluster.nodePools?.[0]?.instanceGroupUrls);\nexport const nodeConfig = myCluster.then(myCluster =\u003e myCluster.nodeConfigs);\nexport const nodePools = myCluster.then(myCluster =\u003e myCluster.nodePools);\n```\n```python\nimport pulumi\nimport pulumi_gcp as gcp\n\nmy_cluster = gcp.container.get_cluster(name=\"my-cluster\",\n location=\"us-east1-a\")\npulumi.export(\"endpoint\", my_cluster.endpoint)\npulumi.export(\"instanceGroupUrls\", my_cluster.node_pools[0].instance_group_urls)\npulumi.export(\"nodeConfig\", my_cluster.node_configs)\npulumi.export(\"nodePools\", my_cluster.node_pools)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Gcp = Pulumi.Gcp;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var myCluster = Gcp.Container.GetCluster.Invoke(new()\n {\n Name = \"my-cluster\",\n Location = \"us-east1-a\",\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"endpoint\"] = myCluster.Apply(getClusterResult =\u003e getClusterResult.Endpoint),\n [\"instanceGroupUrls\"] = myCluster.Apply(getClusterResult =\u003e getClusterResult.NodePools[0]?.InstanceGroupUrls),\n [\"nodeConfig\"] = myCluster.Apply(getClusterResult =\u003e getClusterResult.NodeConfigs),\n [\"nodePools\"] = myCluster.Apply(getClusterResult =\u003e getClusterResult.NodePools),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/container\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tmyCluster, err := container.LookupCluster(ctx, \u0026container.LookupClusterArgs{\n\t\t\tName: \"my-cluster\",\n\t\t\tLocation: pulumi.StringRef(\"us-east1-a\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"endpoint\", myCluster.Endpoint)\n\t\tctx.Export(\"instanceGroupUrls\", myCluster.NodePools[0].InstanceGroupUrls)\n\t\tctx.Export(\"nodeConfig\", myCluster.NodeConfigs)\n\t\tctx.Export(\"nodePools\", myCluster.NodePools)\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.gcp.container.ContainerFunctions;\nimport com.pulumi.gcp.container.inputs.GetClusterArgs;\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 myCluster = ContainerFunctions.getCluster(GetClusterArgs.builder()\n .name(\"my-cluster\")\n .location(\"us-east1-a\")\n .build());\n\n ctx.export(\"endpoint\", myCluster.applyValue(getClusterResult -\u003e getClusterResult.endpoint()));\n ctx.export(\"instanceGroupUrls\", myCluster.applyValue(getClusterResult -\u003e getClusterResult.nodePools()[0].instanceGroupUrls()));\n ctx.export(\"nodeConfig\", myCluster.applyValue(getClusterResult -\u003e getClusterResult.nodeConfigs()));\n ctx.export(\"nodePools\", myCluster.applyValue(getClusterResult -\u003e getClusterResult.nodePools()));\n }\n}\n```\n```yaml\nvariables:\n myCluster:\n fn::invoke:\n Function: gcp:container:getCluster\n Arguments:\n name: my-cluster\n location: us-east1-a\noutputs:\n endpoint: ${myCluster.endpoint}\n instanceGroupUrls: ${myCluster.nodePools[0].instanceGroupUrls}\n nodeConfig: ${myCluster.nodeConfigs}\n nodePools: ${myCluster.nodePools}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getCluster.\n", "properties": { @@ -266787,7 +266787,7 @@ } }, "gcp:dataproc/getMetastoreService:getMetastoreService": { - "description": "Get a Dataproc Metastore service from Google Cloud by its id and location.\n\n## Example Usage\n\n```tf\ndata \"google_dataproc_metastore_service\" \"foo\" {\n service_id = \"foo-bar\"\n location = \"global\" \n}\n```\n", + "description": "Get a Dataproc Metastore service from Google Cloud by its id and location.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gcp from \"@pulumi/gcp\";\n\nconst foo = gcp.dataproc.getMetastoreService({\n serviceId: \"foo-bar\",\n location: \"global\",\n});\n```\n```python\nimport pulumi\nimport pulumi_gcp as gcp\n\nfoo = gcp.dataproc.get_metastore_service(service_id=\"foo-bar\",\n location=\"global\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Gcp = Pulumi.Gcp;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Gcp.Dataproc.GetMetastoreService.Invoke(new()\n {\n ServiceId = \"foo-bar\",\n Location = \"global\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/dataproc\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := dataproc.LookupMetastoreService(ctx, \u0026dataproc.LookupMetastoreServiceArgs{\n\t\t\tServiceId: \"foo-bar\",\n\t\t\tLocation: \"global\",\n\t\t}, nil)\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.gcp.dataproc.DataprocFunctions;\nimport com.pulumi.gcp.dataproc.inputs.GetMetastoreServiceArgs;\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 foo = DataprocFunctions.getMetastoreService(GetMetastoreServiceArgs.builder()\n .serviceId(\"foo-bar\")\n .location(\"global\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: gcp:dataproc:getMetastoreService\n Arguments:\n serviceId: foo-bar\n location: global\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getMetastoreService.\n", "properties": { @@ -267281,7 +267281,7 @@ } }, "gcp:dns/getRecordSet:getRecordSet": { - "description": "Get a DNS record set within Google Cloud DNS\nFor more information see\n[the official documentation](https://cloud.google.com/dns/docs/records)\nand\n[API](https://cloud.google.com/dns/docs/reference/v1/resourceRecordSets)\n\n## Example Usage\n\n```tf\ndata \"google_dns_managed_zone\" \"sample\" {\n name = \"sample-zone\"\n}\n\ndata \"google_dns_record_set\" \"rs\" {\n managed_zone = data.google_dns_managed_zone.sample.name\n name = \"my-record.${data.google_dns_managed_zone.sample.dns_name}\"\n type = \"A\"\n}\n```\n", + "description": "Get a DNS record set within Google Cloud DNS\nFor more information see\n[the official documentation](https://cloud.google.com/dns/docs/records)\nand\n[API](https://cloud.google.com/dns/docs/reference/v1/resourceRecordSets)\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gcp from \"@pulumi/gcp\";\n\nconst sample = gcp.dns.getManagedZone({\n name: \"sample-zone\",\n});\nconst rs = Promise.all([sample, sample]).then(([sample, sample1]) =\u003e gcp.dns.getRecordSet({\n managedZone: sample.name,\n name: `my-record.${sample1.dnsName}`,\n type: \"A\",\n}));\n```\n```python\nimport pulumi\nimport pulumi_gcp as gcp\n\nsample = gcp.dns.get_managed_zone(name=\"sample-zone\")\nrs = gcp.dns.get_record_set(managed_zone=sample.name,\n name=f\"my-record.{sample.dns_name}\",\n type=\"A\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Gcp = Pulumi.Gcp;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var sample = Gcp.Dns.GetManagedZone.Invoke(new()\n {\n Name = \"sample-zone\",\n });\n\n var rs = Gcp.Dns.GetRecordSet.Invoke(new()\n {\n ManagedZone = sample.Apply(getManagedZoneResult =\u003e getManagedZoneResult.Name),\n Name = $\"my-record.{sample.Apply(getManagedZoneResult =\u003e getManagedZoneResult.DnsName)}\",\n Type = \"A\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/dns\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tsample, err := dns.LookupManagedZone(ctx, \u0026dns.LookupManagedZoneArgs{\n\t\t\tName: \"sample-zone\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = dns.LookupRecordSet(ctx, \u0026dns.LookupRecordSetArgs{\n\t\t\tManagedZone: sample.Name,\n\t\t\tName: fmt.Sprintf(\"my-record.%v\", sample.DnsName),\n\t\t\tType: \"A\",\n\t\t}, nil)\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.gcp.dns.DnsFunctions;\nimport com.pulumi.gcp.dns.inputs.GetManagedZoneArgs;\nimport com.pulumi.gcp.dns.inputs.GetRecordSetArgs;\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 sample = DnsFunctions.getManagedZone(GetManagedZoneArgs.builder()\n .name(\"sample-zone\")\n .build());\n\n final var rs = DnsFunctions.getRecordSet(GetRecordSetArgs.builder()\n .managedZone(sample.applyValue(getManagedZoneResult -\u003e getManagedZoneResult.name()))\n .name(String.format(\"my-record.%s\", sample.applyValue(getManagedZoneResult -\u003e getManagedZoneResult.dnsName())))\n .type(\"A\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n sample:\n fn::invoke:\n Function: gcp:dns:getManagedZone\n Arguments:\n name: sample-zone\n rs:\n fn::invoke:\n Function: gcp:dns:getRecordSet\n Arguments:\n managedZone: ${sample.name}\n name: my-record.${sample.dnsName}\n type: A\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getRecordSet.\n", "properties": { @@ -267447,7 +267447,7 @@ } }, "gcp:filestore/getInstance:getInstance": { - "description": "Get info about a Google Cloud Filestore instance.\n\n## Example Usage\n\n```tf\ndata \"google_filestore_instance\" \"my_instance\" {\n name = \"my-filestore-instance\"\n}\n\noutput \"instance_ip_addresses\" {\n value = data.google_filestore_instance.my_instance.networks.ip_addresses\n}\n\noutput \"instance_connect_mode\" {\n value = data.google_filestore_instance.my_instance.networks.connect_mode\n}\n\noutput \"instance_file_share_name\" {\n value = data.google_filestore_instance.my_instance.file_shares.name\n}\n```\n", + "description": "Get info about a Google Cloud Filestore instance.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gcp from \"@pulumi/gcp\";\n\nconst myInstance = gcp.filestore.getInstance({\n name: \"my-filestore-instance\",\n});\nexport const instanceIpAddresses = myInstance.then(myInstance =\u003e myInstance.networks?.ipAddresses);\nexport const instanceConnectMode = myInstance.then(myInstance =\u003e myInstance.networks?.connectMode);\nexport const instanceFileShareName = myInstance.then(myInstance =\u003e myInstance.fileShares?.name);\n```\n```python\nimport pulumi\nimport pulumi_gcp as gcp\n\nmy_instance = gcp.filestore.get_instance(name=\"my-filestore-instance\")\npulumi.export(\"instanceIpAddresses\", my_instance.networks.ip_addresses)\npulumi.export(\"instanceConnectMode\", my_instance.networks.connect_mode)\npulumi.export(\"instanceFileShareName\", my_instance.file_shares.name)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Gcp = Pulumi.Gcp;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var myInstance = Gcp.Filestore.GetInstance.Invoke(new()\n {\n Name = \"my-filestore-instance\",\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"instanceIpAddresses\"] = myInstance.Apply(getInstanceResult =\u003e getInstanceResult.Networks?.IpAddresses),\n [\"instanceConnectMode\"] = myInstance.Apply(getInstanceResult =\u003e getInstanceResult.Networks?.ConnectMode),\n [\"instanceFileShareName\"] = myInstance.Apply(getInstanceResult =\u003e getInstanceResult.FileShares?.Name),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/filestore\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tmyInstance, err := filestore.LookupInstance(ctx, \u0026filestore.LookupInstanceArgs{\n\t\t\tName: \"my-filestore-instance\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"instanceIpAddresses\", myInstance.Networks.IpAddresses)\n\t\tctx.Export(\"instanceConnectMode\", myInstance.Networks.ConnectMode)\n\t\tctx.Export(\"instanceFileShareName\", myInstance.FileShares.Name)\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.gcp.filestore.FilestoreFunctions;\nimport com.pulumi.gcp.filestore.inputs.GetInstanceArgs;\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 myInstance = FilestoreFunctions.getInstance(GetInstanceArgs.builder()\n .name(\"my-filestore-instance\")\n .build());\n\n ctx.export(\"instanceIpAddresses\", myInstance.applyValue(getInstanceResult -\u003e getInstanceResult.networks().ipAddresses()));\n ctx.export(\"instanceConnectMode\", myInstance.applyValue(getInstanceResult -\u003e getInstanceResult.networks().connectMode()));\n ctx.export(\"instanceFileShareName\", myInstance.applyValue(getInstanceResult -\u003e getInstanceResult.fileShares().name()));\n }\n}\n```\n```yaml\nvariables:\n myInstance:\n fn::invoke:\n Function: gcp:filestore:getInstance\n Arguments:\n name: my-filestore-instance\noutputs:\n instanceIpAddresses: ${myInstance.networks.ipAddresses}\n instanceConnectMode: ${myInstance.networks.connectMode}\n instanceFileShareName: ${myInstance.fileShares.name}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getInstance.\n", "properties": { @@ -268896,7 +268896,7 @@ } }, "gcp:iam/getWorkloadIdentityPool:getWorkloadIdentityPool": { - "description": "Get a IAM workload identity pool from Google Cloud by its id.\n\u003e **Note:** The following resource requires the Beta IAM role `roles/iam.workloadIdentityPoolAdmin` in order to succeed. `OWNER` and `EDITOR` roles do not include the necessary permissions.\n## Example Usage\n\n```tf\ndata \"google_iam_workload_identity_pool\" \"foo\" {\n workload_identity_pool_id = \"foo-pool\"\n}\n```\n", + "description": "Get a IAM workload identity pool from Google Cloud by its id.\n\u003e **Note:** The following resource requires the Beta IAM role `roles/iam.workloadIdentityPoolAdmin` in order to succeed. `OWNER` and `EDITOR` roles do not include the necessary permissions.\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gcp from \"@pulumi/gcp\";\n\nconst foo = gcp.iam.getWorkloadIdentityPool({\n workloadIdentityPoolId: \"foo-pool\",\n});\n```\n```python\nimport pulumi\nimport pulumi_gcp as gcp\n\nfoo = gcp.iam.get_workload_identity_pool(workload_identity_pool_id=\"foo-pool\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Gcp = Pulumi.Gcp;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Gcp.Iam.GetWorkloadIdentityPool.Invoke(new()\n {\n WorkloadIdentityPoolId = \"foo-pool\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/iam\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := iam.LookupWorkloadIdentityPool(ctx, \u0026iam.LookupWorkloadIdentityPoolArgs{\n\t\t\tWorkloadIdentityPoolId: \"foo-pool\",\n\t\t}, nil)\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.gcp.iam.IamFunctions;\nimport com.pulumi.gcp.iam.inputs.GetWorkloadIdentityPoolArgs;\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 foo = IamFunctions.getWorkloadIdentityPool(GetWorkloadIdentityPoolArgs.builder()\n .workloadIdentityPoolId(\"foo-pool\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: gcp:iam:getWorkloadIdentityPool\n Arguments:\n workloadIdentityPoolId: foo-pool\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getWorkloadIdentityPool.\n", "properties": { @@ -268956,7 +268956,7 @@ } }, "gcp:iam/getWorkloadIdentityPoolProvider:getWorkloadIdentityPoolProvider": { - "description": "Get a IAM workload identity provider from Google Cloud by its id.\n\n## Example Usage\n\n```tf\ndata \"google_iam_workload_identity_pool_provider\" \"foo\" {\n workload_identity_pool_id = \"foo-pool\"\n workload_identity_pool_provider_id = \"bar-provider\"\n}\n```\n", + "description": "Get a IAM workload identity provider from Google Cloud by its id.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gcp from \"@pulumi/gcp\";\n\nconst foo = gcp.iam.getWorkloadIdentityPoolProvider({\n workloadIdentityPoolId: \"foo-pool\",\n workloadIdentityPoolProviderId: \"bar-provider\",\n});\n```\n```python\nimport pulumi\nimport pulumi_gcp as gcp\n\nfoo = gcp.iam.get_workload_identity_pool_provider(workload_identity_pool_id=\"foo-pool\",\n workload_identity_pool_provider_id=\"bar-provider\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Gcp = Pulumi.Gcp;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Gcp.Iam.GetWorkloadIdentityPoolProvider.Invoke(new()\n {\n WorkloadIdentityPoolId = \"foo-pool\",\n WorkloadIdentityPoolProviderId = \"bar-provider\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/iam\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := iam.LookupWorkloadIdentityPoolProvider(ctx, \u0026iam.LookupWorkloadIdentityPoolProviderArgs{\n\t\t\tWorkloadIdentityPoolId: \"foo-pool\",\n\t\t\tWorkloadIdentityPoolProviderId: \"bar-provider\",\n\t\t}, nil)\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.gcp.iam.IamFunctions;\nimport com.pulumi.gcp.iam.inputs.GetWorkloadIdentityPoolProviderArgs;\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 foo = IamFunctions.getWorkloadIdentityPoolProvider(GetWorkloadIdentityPoolProviderArgs.builder()\n .workloadIdentityPoolId(\"foo-pool\")\n .workloadIdentityPoolProviderId(\"bar-provider\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: gcp:iam:getWorkloadIdentityPoolProvider\n Arguments:\n workloadIdentityPoolId: foo-pool\n workloadIdentityPoolProviderId: bar-provider\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getWorkloadIdentityPoolProvider.\n", "properties": { @@ -269193,7 +269193,7 @@ } }, "gcp:iap/getClient:getClient": { - "description": "Get info about a Google Cloud IAP Client.\n\n## Example Usage\n\n```tf\ndata \"google_project\" \"project\" {\n project_id = \"foobar\"\n}\n\ndata \"google_iap_client\" \"project_client\" {\n brand = \"projects/${data.google_project.project.number}/brands/[BRAND_NUMBER]\"\n client_id = FOO.apps.googleusercontent.com\n}\n\n```\n", + "description": "Get info about a Google Cloud IAP Client.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gcp from \"@pulumi/gcp\";\n\nconst project = gcp.organizations.getProject({\n projectId: \"foobar\",\n});\nconst projectClient = project.then(project =\u003e gcp.iap.getClient({\n brand: `projects/${project.number}/brands/[BRAND_NUMBER]`,\n clientId: apps.googleusercontent.com,\n}));\n```\n```python\nimport pulumi\nimport pulumi_gcp as gcp\n\nproject = gcp.organizations.get_project(project_id=\"foobar\")\nproject_client = gcp.iap.get_client(brand=f\"projects/{project.number}/brands/[BRAND_NUMBER]\",\n client_id=apps[\"googleusercontent\"][\"com\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Gcp = Pulumi.Gcp;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var project = Gcp.Organizations.GetProject.Invoke(new()\n {\n ProjectId = \"foobar\",\n });\n\n var projectClient = Gcp.Iap.GetClient.Invoke(new()\n {\n Brand = $\"projects/{project.Apply(getProjectResult =\u003e getProjectResult.Number)}/brands/[BRAND_NUMBER]\",\n ClientId = apps.Googleusercontent.Com,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/iap\"\n\t\"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/organizations\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tproject, err := organizations.LookupProject(ctx, \u0026organizations.LookupProjectArgs{\n\t\t\tProjectId: pulumi.StringRef(\"foobar\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = iap.LookupClient(ctx, \u0026iap.LookupClientArgs{\n\t\t\tBrand: fmt.Sprintf(\"projects/%v/brands/[BRAND_NUMBER]\", project.Number),\n\t\t\tClientId: apps.Googleusercontent.Com,\n\t\t}, nil)\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.gcp.organizations.OrganizationsFunctions;\nimport com.pulumi.gcp.organizations.inputs.GetProjectArgs;\nimport com.pulumi.gcp.iap.IapFunctions;\nimport com.pulumi.gcp.iap.inputs.GetClientArgs;\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 project = OrganizationsFunctions.getProject(GetProjectArgs.builder()\n .projectId(\"foobar\")\n .build());\n\n final var projectClient = IapFunctions.getClient(GetClientArgs.builder()\n .brand(String.format(\"projects/%s/brands/[BRAND_NUMBER]\", project.applyValue(getProjectResult -\u003e getProjectResult.number())))\n .clientId(apps.googleusercontent().com())\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n project:\n fn::invoke:\n Function: gcp:organizations:getProject\n Arguments:\n projectId: foobar\n projectClient:\n fn::invoke:\n Function: gcp:iap:getClient\n Arguments:\n brand: projects/${project.number}/brands/[BRAND_NUMBER]\n clientId: ${apps.googleusercontent.com}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getClient.\n", "properties": { @@ -271065,7 +271065,7 @@ }, "gcp:monitoring/getSecretVersion:getSecretVersion": { "deprecationMessage": "gcp.monitoring.getSecretVersion has been deprecated in favor of gcp.secretmanager.getSecretVersion", - "description": "Get the value and metadata from a Secret Manager secret version. For more information see the official documentation datasource.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gcp from \"@pulumi/gcp\";\n\nconst basic = gcp.secretmanager.getSecretVersion({\n secret: \"my-secret\",\n});\n```\n```python\nimport pulumi\nimport pulumi_gcp as gcp\n\nbasic = gcp.secretmanager.get_secret_version(secret=\"my-secret\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Gcp = Pulumi.Gcp;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var basic = Gcp.SecretManager.GetSecretVersion.Invoke(new()\n {\n Secret = \"my-secret\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/secretmanager\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := secretmanager.LookupSecretVersion(ctx, \u0026secretmanager.LookupSecretVersionArgs{\n\t\t\tSecret: \"my-secret\",\n\t\t}, nil)\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.gcp.secretmanager.SecretmanagerFunctions;\nimport com.pulumi.gcp.secretmanager.inputs.GetSecretVersionArgs;\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 basic = SecretmanagerFunctions.getSecretVersion(GetSecretVersionArgs.builder()\n .secret(\"my-secret\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n basic:\n fn::invoke:\n Function: gcp:secretmanager:getSecretVersion\n Arguments:\n secret: my-secret\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Get the value and metadata from a Secret Manager secret version. For more information see the [official documentation](https://cloud.google.com/secret-manager/docs/) and [API](https://cloud.google.com/secret-manager/docs/reference/rest/v1/projects.secrets.versions). If you don't need the metadata (i.e., if you want to use a more limited role to access the secret version only), see also the gcp.secretmanager.getSecretVersionAccess datasource.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gcp from \"@pulumi/gcp\";\n\nconst basic = gcp.secretmanager.getSecretVersion({\n secret: \"my-secret\",\n});\n```\n```python\nimport pulumi\nimport pulumi_gcp as gcp\n\nbasic = gcp.secretmanager.get_secret_version(secret=\"my-secret\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Gcp = Pulumi.Gcp;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var basic = Gcp.SecretManager.GetSecretVersion.Invoke(new()\n {\n Secret = \"my-secret\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/secretmanager\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := secretmanager.LookupSecretVersion(ctx, \u0026secretmanager.LookupSecretVersionArgs{\n\t\t\tSecret: \"my-secret\",\n\t\t}, nil)\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.gcp.secretmanager.SecretmanagerFunctions;\nimport com.pulumi.gcp.secretmanager.inputs.GetSecretVersionArgs;\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 basic = SecretmanagerFunctions.getSecretVersion(GetSecretVersionArgs.builder()\n .secret(\"my-secret\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n basic:\n fn::invoke:\n Function: gcp:secretmanager:getSecretVersion\n Arguments:\n secret: my-secret\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getSecretVersion.\n", "properties": { @@ -271350,7 +271350,7 @@ } }, "gcp:organizations/getActiveFolder:getActiveFolder": { - "description": "Get an active folder within GCP by `display_name` and `parent`.\n\n## Example Usage\n\n```tf\ndata \"google_active_folder\" \"department1\" {\n display_name = \"Department 1\"\n parent = \"organizations/1234567\"\n}\n```\n", + "description": "Get an active folder within GCP by `display_name` and `parent`.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gcp from \"@pulumi/gcp\";\n\nconst department1 = gcp.organizations.getActiveFolder({\n displayName: \"Department 1\",\n parent: \"organizations/1234567\",\n});\n```\n```python\nimport pulumi\nimport pulumi_gcp as gcp\n\ndepartment1 = gcp.organizations.get_active_folder(display_name=\"Department 1\",\n parent=\"organizations/1234567\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Gcp = Pulumi.Gcp;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var department1 = Gcp.Organizations.GetActiveFolder.Invoke(new()\n {\n DisplayName = \"Department 1\",\n Parent = \"organizations/1234567\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/organizations\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := organizations.GetActiveFolder(ctx, \u0026organizations.GetActiveFolderArgs{\n\t\t\tDisplayName: \"Department 1\",\n\t\t\tParent: \"organizations/1234567\",\n\t\t}, nil)\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.gcp.organizations.OrganizationsFunctions;\nimport com.pulumi.gcp.organizations.inputs.GetActiveFolderArgs;\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 department1 = OrganizationsFunctions.getActiveFolder(GetActiveFolderArgs.builder()\n .displayName(\"Department 1\")\n .parent(\"organizations/1234567\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n department1:\n fn::invoke:\n Function: gcp:organizations:getActiveFolder\n Arguments:\n displayName: Department 1\n parent: organizations/1234567\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getActiveFolder.\n", "properties": { @@ -271469,7 +271469,7 @@ } }, "gcp:organizations/getClientConfig:getClientConfig": { - "description": "## Example Usage\n\n```tf\ndata \"google_client_config\" \"current\" {\n}\n\noutput \"project\" {\n value = data.google_client_config.current.project\n}\n```\n\n\n### Configure Kubernetes Provider With OAuth2 Access Token\n\n```tf\ndata \"google_client_config\" \"default\" {\n}\n\ndata \"google_container_cluster\" \"my_cluster\" {\n name = \"my-cluster\"\n zone = \"us-east1-a\"\n}\n\nprovider \"kubernetes\" {\n host = \"https://${data.google_container_cluster.my_cluster.endpoint}\"\n token = data.google_client_config.default.access_token\n cluster_ca_certificate = base64decode(\n data.google_container_cluster.my_cluster.master_auth[0].cluster_ca_certificate,\n )\n}\n```\n", + "description": "## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gcp from \"@pulumi/gcp\";\n\nconst current = gcp.organizations.getClientConfig({});\nexport const project = current.then(current =\u003e current.project);\n```\n```python\nimport pulumi\nimport pulumi_gcp as gcp\n\ncurrent = gcp.organizations.get_client_config()\npulumi.export(\"project\", current.project)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Gcp = Pulumi.Gcp;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var current = Gcp.Organizations.GetClientConfig.Invoke();\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"project\"] = current.Apply(getClientConfigResult =\u003e getClientConfigResult.Project),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/organizations\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tcurrent, err := organizations.GetClientConfig(ctx, nil, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"project\", current.Project)\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.gcp.organizations.OrganizationsFunctions;\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 current = OrganizationsFunctions.getClientConfig();\n\n ctx.export(\"project\", current.applyValue(getClientConfigResult -\u003e getClientConfigResult.project()));\n }\n}\n```\n```yaml\nvariables:\n current:\n fn::invoke:\n Function: gcp:organizations:getClientConfig\n Arguments: {}\noutputs:\n project: ${current.project}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\n### Configure Kubernetes Provider With OAuth2 Access Token\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.gcp.organizations.OrganizationsFunctions;\nimport com.pulumi.gcp.container.ContainerFunctions;\nimport com.pulumi.gcp.container.inputs.GetClusterArgs;\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 default = OrganizationsFunctions.getClientConfig();\n\n final var myCluster = ContainerFunctions.getCluster(GetClusterArgs.builder()\n .name(\"my-cluster\")\n .zone(\"us-east1-a\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n default:\n fn::invoke:\n Function: gcp:organizations:getClientConfig\n Arguments: {}\n myCluster:\n fn::invoke:\n Function: gcp:container:getCluster\n Arguments:\n name: my-cluster\n zone: us-east1-a\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "outputs": { "description": "A collection of values returned by getClientConfig.\n", "properties": { @@ -272436,7 +272436,7 @@ } }, "gcp:redis/getInstance:getInstance": { - "description": "Get info about a Google Cloud Redis instance.\n\n## Example Usage\n\n```tf\ndata \"google_redis_instance\" \"my_instance\" {\n name = \"my-redis-instance\"\n}\n\noutput \"instance_memory_size_gb\" {\n value = data.google_redis_instance.my_instance.memory_size_gb\n}\n\noutput \"instance_connect_mode\" {\n value = data.google_redis_instance.my_instance.connect_mode\n}\n\noutput \"instance_authorized_network\" {\n value = data.google_redis_instance.my_instance.authorized_network\n}\n```\n", + "description": "Get info about a Google Cloud Redis instance.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gcp from \"@pulumi/gcp\";\n\nconst myInstance = gcp.redis.getInstance({\n name: \"my-redis-instance\",\n});\nexport const instanceMemorySizeGb = myInstance.then(myInstance =\u003e myInstance.memorySizeGb);\nexport const instanceConnectMode = myInstance.then(myInstance =\u003e myInstance.connectMode);\nexport const instanceAuthorizedNetwork = myInstance.then(myInstance =\u003e myInstance.authorizedNetwork);\n```\n```python\nimport pulumi\nimport pulumi_gcp as gcp\n\nmy_instance = gcp.redis.get_instance(name=\"my-redis-instance\")\npulumi.export(\"instanceMemorySizeGb\", my_instance.memory_size_gb)\npulumi.export(\"instanceConnectMode\", my_instance.connect_mode)\npulumi.export(\"instanceAuthorizedNetwork\", my_instance.authorized_network)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Gcp = Pulumi.Gcp;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var myInstance = Gcp.Redis.GetInstance.Invoke(new()\n {\n Name = \"my-redis-instance\",\n });\n\n return new Dictionary\u003cstring, object?\u003e\n {\n [\"instanceMemorySizeGb\"] = myInstance.Apply(getInstanceResult =\u003e getInstanceResult.MemorySizeGb),\n [\"instanceConnectMode\"] = myInstance.Apply(getInstanceResult =\u003e getInstanceResult.ConnectMode),\n [\"instanceAuthorizedNetwork\"] = myInstance.Apply(getInstanceResult =\u003e getInstanceResult.AuthorizedNetwork),\n };\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/redis\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tmyInstance, err := redis.LookupInstance(ctx, \u0026redis.LookupInstanceArgs{\n\t\t\tName: \"my-redis-instance\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tctx.Export(\"instanceMemorySizeGb\", myInstance.MemorySizeGb)\n\t\tctx.Export(\"instanceConnectMode\", myInstance.ConnectMode)\n\t\tctx.Export(\"instanceAuthorizedNetwork\", myInstance.AuthorizedNetwork)\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.gcp.redis.RedisFunctions;\nimport com.pulumi.gcp.redis.inputs.GetInstanceArgs;\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 myInstance = RedisFunctions.getInstance(GetInstanceArgs.builder()\n .name(\"my-redis-instance\")\n .build());\n\n ctx.export(\"instanceMemorySizeGb\", myInstance.applyValue(getInstanceResult -\u003e getInstanceResult.memorySizeGb()));\n ctx.export(\"instanceConnectMode\", myInstance.applyValue(getInstanceResult -\u003e getInstanceResult.connectMode()));\n ctx.export(\"instanceAuthorizedNetwork\", myInstance.applyValue(getInstanceResult -\u003e getInstanceResult.authorizedNetwork()));\n }\n}\n```\n```yaml\nvariables:\n myInstance:\n fn::invoke:\n Function: gcp:redis:getInstance\n Arguments:\n name: my-redis-instance\noutputs:\n instanceMemorySizeGb: ${myInstance.memorySizeGb}\n instanceConnectMode: ${myInstance.connectMode}\n instanceAuthorizedNetwork: ${myInstance.authorizedNetwork}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getInstance.\n", "properties": { @@ -272978,7 +272978,7 @@ } }, "gcp:secretmanager/getSecretVersion:getSecretVersion": { - "description": "Get the value and metadata from a Secret Manager secret version. For more information see the official documentation datasource.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gcp from \"@pulumi/gcp\";\n\nconst basic = gcp.secretmanager.getSecretVersion({\n secret: \"my-secret\",\n});\n```\n```python\nimport pulumi\nimport pulumi_gcp as gcp\n\nbasic = gcp.secretmanager.get_secret_version(secret=\"my-secret\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Gcp = Pulumi.Gcp;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var basic = Gcp.SecretManager.GetSecretVersion.Invoke(new()\n {\n Secret = \"my-secret\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/secretmanager\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := secretmanager.LookupSecretVersion(ctx, \u0026secretmanager.LookupSecretVersionArgs{\n\t\t\tSecret: \"my-secret\",\n\t\t}, nil)\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.gcp.secretmanager.SecretmanagerFunctions;\nimport com.pulumi.gcp.secretmanager.inputs.GetSecretVersionArgs;\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 basic = SecretmanagerFunctions.getSecretVersion(GetSecretVersionArgs.builder()\n .secret(\"my-secret\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n basic:\n fn::invoke:\n Function: gcp:secretmanager:getSecretVersion\n Arguments:\n secret: my-secret\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Get the value and metadata from a Secret Manager secret version. For more information see the [official documentation](https://cloud.google.com/secret-manager/docs/) and [API](https://cloud.google.com/secret-manager/docs/reference/rest/v1/projects.secrets.versions). If you don't need the metadata (i.e., if you want to use a more limited role to access the secret version only), see also the gcp.secretmanager.getSecretVersionAccess datasource.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gcp from \"@pulumi/gcp\";\n\nconst basic = gcp.secretmanager.getSecretVersion({\n secret: \"my-secret\",\n});\n```\n```python\nimport pulumi\nimport pulumi_gcp as gcp\n\nbasic = gcp.secretmanager.get_secret_version(secret=\"my-secret\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Gcp = Pulumi.Gcp;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var basic = Gcp.SecretManager.GetSecretVersion.Invoke(new()\n {\n Secret = \"my-secret\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/secretmanager\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := secretmanager.LookupSecretVersion(ctx, \u0026secretmanager.LookupSecretVersionArgs{\n\t\t\tSecret: \"my-secret\",\n\t\t}, nil)\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.gcp.secretmanager.SecretmanagerFunctions;\nimport com.pulumi.gcp.secretmanager.inputs.GetSecretVersionArgs;\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 basic = SecretmanagerFunctions.getSecretVersion(GetSecretVersionArgs.builder()\n .secret(\"my-secret\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n basic:\n fn::invoke:\n Function: gcp:secretmanager:getSecretVersion\n Arguments:\n secret: my-secret\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getSecretVersion.\n", "properties": { @@ -274141,7 +274141,7 @@ } }, "gcp:spanner/getInstance:getInstance": { - "description": "Get a spanner instance from Google Cloud by its name.\n\n## Example Usage\n\n```tf\ndata \"google_spanner_instance\" \"foo\" {\n name = \"bar\"\n}\n```\n", + "description": "Get a spanner instance from Google Cloud by its name.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gcp from \"@pulumi/gcp\";\n\nconst foo = gcp.spanner.getInstance({\n name: \"bar\",\n});\n```\n```python\nimport pulumi\nimport pulumi_gcp as gcp\n\nfoo = gcp.spanner.get_instance(name=\"bar\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Gcp = Pulumi.Gcp;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var foo = Gcp.Spanner.GetInstance.Invoke(new()\n {\n Name = \"bar\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/spanner\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := spanner.LookupInstance(ctx, \u0026spanner.LookupInstanceArgs{\n\t\t\tName: \"bar\",\n\t\t}, nil)\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.gcp.spanner.SpannerFunctions;\nimport com.pulumi.gcp.spanner.inputs.GetInstanceArgs;\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 foo = SpannerFunctions.getInstance(GetInstanceArgs.builder()\n .name(\"bar\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n foo:\n fn::invoke:\n Function: gcp:spanner:getInstance\n Arguments:\n name: bar\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getInstance.\n", "properties": { @@ -275733,7 +275733,7 @@ } }, "gcp:tags/getTagKey:getTagKey": { - "description": "Get a tag key by org or project `parent` and `short_name`.\n\n## Example Usage\n\n```tf\ndata \"google_tags_tag_key\" \"environment_tag_key\"{\n parent = \"organizations/12345\"\n short_name = \"environment\"\n}\n```\n```tf\ndata \"google_tags_tag_key\" \"environment_tag_key\"{\n parent = \"projects/abc\"\n short_name = \"environment\"\n}\n```\n", + "description": "Get a tag key by org or project `parent` and `short_name`.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gcp from \"@pulumi/gcp\";\n\nconst environmentTagKey = gcp.tags.getTagKey({\n parent: \"organizations/12345\",\n shortName: \"environment\",\n});\n```\n```python\nimport pulumi\nimport pulumi_gcp as gcp\n\nenvironment_tag_key = gcp.tags.get_tag_key(parent=\"organizations/12345\",\n short_name=\"environment\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Gcp = Pulumi.Gcp;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var environmentTagKey = Gcp.Tags.GetTagKey.Invoke(new()\n {\n Parent = \"organizations/12345\",\n ShortName = \"environment\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/tags\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := tags.LookupTagKey(ctx, \u0026tags.LookupTagKeyArgs{\n\t\t\tParent: \"organizations/12345\",\n\t\t\tShortName: \"environment\",\n\t\t}, nil)\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.gcp.tags.TagsFunctions;\nimport com.pulumi.gcp.tags.inputs.GetTagKeyArgs;\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 environmentTagKey = TagsFunctions.getTagKey(GetTagKeyArgs.builder()\n .parent(\"organizations/12345\")\n .shortName(\"environment\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n environmentTagKey:\n fn::invoke:\n Function: gcp:tags:getTagKey\n Arguments:\n parent: organizations/12345\n shortName: environment\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gcp from \"@pulumi/gcp\";\n\nconst environmentTagKey = gcp.tags.getTagKey({\n parent: \"projects/abc\",\n shortName: \"environment\",\n});\n```\n```python\nimport pulumi\nimport pulumi_gcp as gcp\n\nenvironment_tag_key = gcp.tags.get_tag_key(parent=\"projects/abc\",\n short_name=\"environment\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Gcp = Pulumi.Gcp;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var environmentTagKey = Gcp.Tags.GetTagKey.Invoke(new()\n {\n Parent = \"projects/abc\",\n ShortName = \"environment\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/tags\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := tags.LookupTagKey(ctx, \u0026tags.LookupTagKeyArgs{\n\t\t\tParent: \"projects/abc\",\n\t\t\tShortName: \"environment\",\n\t\t}, nil)\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.gcp.tags.TagsFunctions;\nimport com.pulumi.gcp.tags.inputs.GetTagKeyArgs;\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 environmentTagKey = TagsFunctions.getTagKey(GetTagKeyArgs.builder()\n .parent(\"projects/abc\")\n .shortName(\"environment\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n environmentTagKey:\n fn::invoke:\n Function: gcp:tags:getTagKey\n Arguments:\n parent: projects/abc\n shortName: environment\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getTagKey.\n", "properties": { @@ -275843,7 +275843,7 @@ } }, "gcp:tags/getTagKeys:getTagKeys": { - "description": "Get tag keys by org or project `parent`.\n\n## Example Usage\n\n```tf\ndata \"google_tags_tag_keys\" \"environment_tag_key\"{\n parent = \"organizations/12345\"\n}\n```\n```tf\ndata \"google_tags_tag_keys\" \"environment_tag_key\"{\n parent = \"projects/abc\"\n}\n```\n", + "description": "Get tag keys by org or project `parent`.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gcp from \"@pulumi/gcp\";\n\nconst environmentTagKey = gcp.tags.getTagKeys({\n parent: \"organizations/12345\",\n});\n```\n```python\nimport pulumi\nimport pulumi_gcp as gcp\n\nenvironment_tag_key = gcp.tags.get_tag_keys(parent=\"organizations/12345\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Gcp = Pulumi.Gcp;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var environmentTagKey = Gcp.Tags.GetTagKeys.Invoke(new()\n {\n Parent = \"organizations/12345\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/tags\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := tags.GetTagKeys(ctx, \u0026tags.GetTagKeysArgs{\n\t\t\tParent: \"organizations/12345\",\n\t\t}, nil)\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.gcp.tags.TagsFunctions;\nimport com.pulumi.gcp.tags.inputs.GetTagKeysArgs;\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 environmentTagKey = TagsFunctions.getTagKeys(GetTagKeysArgs.builder()\n .parent(\"organizations/12345\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n environmentTagKey:\n fn::invoke:\n Function: gcp:tags:getTagKeys\n Arguments:\n parent: organizations/12345\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gcp from \"@pulumi/gcp\";\n\nconst environmentTagKey = gcp.tags.getTagKeys({\n parent: \"projects/abc\",\n});\n```\n```python\nimport pulumi\nimport pulumi_gcp as gcp\n\nenvironment_tag_key = gcp.tags.get_tag_keys(parent=\"projects/abc\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Gcp = Pulumi.Gcp;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var environmentTagKey = Gcp.Tags.GetTagKeys.Invoke(new()\n {\n Parent = \"projects/abc\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/tags\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := tags.GetTagKeys(ctx, \u0026tags.GetTagKeysArgs{\n\t\t\tParent: \"projects/abc\",\n\t\t}, nil)\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.gcp.tags.TagsFunctions;\nimport com.pulumi.gcp.tags.inputs.GetTagKeysArgs;\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 environmentTagKey = TagsFunctions.getTagKeys(GetTagKeysArgs.builder()\n .parent(\"projects/abc\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n environmentTagKey:\n fn::invoke:\n Function: gcp:tags:getTagKeys\n Arguments:\n parent: projects/abc\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getTagKeys.\n", "properties": { @@ -275884,7 +275884,7 @@ } }, "gcp:tags/getTagValue:getTagValue": { - "description": "Get a tag value by `parent` key and `short_name`.\n\n## Example Usage\n\n```tf\ndata \"google_tags_tag_value\" \"environment_prod_tag_value\"{\n parent = \"tagKeys/56789\"\n short_name = \"production\"\n}\n```\n", + "description": "Get a tag value by `parent` key and `short_name`.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gcp from \"@pulumi/gcp\";\n\nconst environmentProdTagValue = gcp.tags.getTagValue({\n parent: \"tagKeys/56789\",\n shortName: \"production\",\n});\n```\n```python\nimport pulumi\nimport pulumi_gcp as gcp\n\nenvironment_prod_tag_value = gcp.tags.get_tag_value(parent=\"tagKeys/56789\",\n short_name=\"production\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Gcp = Pulumi.Gcp;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var environmentProdTagValue = Gcp.Tags.GetTagValue.Invoke(new()\n {\n Parent = \"tagKeys/56789\",\n ShortName = \"production\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/tags\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := tags.LookupTagValue(ctx, \u0026tags.LookupTagValueArgs{\n\t\t\tParent: \"tagKeys/56789\",\n\t\t\tShortName: \"production\",\n\t\t}, nil)\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.gcp.tags.TagsFunctions;\nimport com.pulumi.gcp.tags.inputs.GetTagValueArgs;\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 environmentProdTagValue = TagsFunctions.getTagValue(GetTagValueArgs.builder()\n .parent(\"tagKeys/56789\")\n .shortName(\"production\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n environmentProdTagValue:\n fn::invoke:\n Function: gcp:tags:getTagValue\n Arguments:\n parent: tagKeys/56789\n shortName: production\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getTagValue.\n", "properties": { @@ -275994,7 +275994,7 @@ } }, "gcp:tags/getTagValues:getTagValues": { - "description": "Get tag values from a `parent` key.\n\n## Example Usage\n\n```tf\ndata \"google_tags_tag_values\" \"environment_tag_values\"{\n parent = \"tagKeys/56789\"\n}\n```\n", + "description": "Get tag values from a `parent` key.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as gcp from \"@pulumi/gcp\";\n\nconst environmentTagValues = gcp.tags.getTagValues({\n parent: \"tagKeys/56789\",\n});\n```\n```python\nimport pulumi\nimport pulumi_gcp as gcp\n\nenvironment_tag_values = gcp.tags.get_tag_values(parent=\"tagKeys/56789\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Gcp = Pulumi.Gcp;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var environmentTagValues = Gcp.Tags.GetTagValues.Invoke(new()\n {\n Parent = \"tagKeys/56789\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/tags\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := tags.GetTagValues(ctx, \u0026tags.GetTagValuesArgs{\n\t\t\tParent: \"tagKeys/56789\",\n\t\t}, nil)\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.gcp.tags.TagsFunctions;\nimport com.pulumi.gcp.tags.inputs.GetTagValuesArgs;\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 environmentTagValues = TagsFunctions.getTagValues(GetTagValuesArgs.builder()\n .parent(\"tagKeys/56789\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n environmentTagValues:\n fn::invoke:\n Function: gcp:tags:getTagValues\n Arguments:\n parent: tagKeys/56789\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getTagValues.\n", "properties": { diff --git a/provider/go.mod b/provider/go.mod index 152f33b983..c750ebe806 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -1,15 +1,17 @@ module github.com/pulumi/pulumi-gcp/provider/v7 -go 1.21.12 +go 1.22 + +toolchain go1.22.7 require ( github.com/hashicorp/terraform-plugin-sdk/v2 v2.33.0 github.com/hashicorp/terraform-provider-google-beta v0.0.0 github.com/pulumi/providertest v0.0.14 - github.com/pulumi/pulumi-terraform-bridge/pf v0.42.1 - github.com/pulumi/pulumi-terraform-bridge/v3 v3.89.1 - github.com/pulumi/pulumi/pkg/v3 v3.129.0 - github.com/pulumi/pulumi/sdk/v3 v3.129.0 + github.com/pulumi/pulumi-terraform-bridge/pf v0.43.0 + github.com/pulumi/pulumi-terraform-bridge/v3 v3.90.0 + github.com/pulumi/pulumi/pkg/v3 v3.130.0 + github.com/pulumi/pulumi/sdk/v3 v3.130.0 github.com/stretchr/testify v1.9.0 google.golang.org/api v0.191.0 sourcegraph.com/sourcegraph/appdash v0.0.0-20211028080628-e2786a622600 diff --git a/provider/go.sum b/provider/go.sum index 96052adedf..dcf6c7e777 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -1976,18 +1976,18 @@ github.com/pulumi/providertest v0.0.14 h1:5QlAPAAs82jkQraHsJvq1xgVfC7xtW8sFJwv2p github.com/pulumi/providertest v0.0.14/go.mod h1:GcsqEGgSngwaNOD+kICJPIUQlnA911fGBU8HDlJvVL0= github.com/pulumi/pulumi-java/pkg v0.14.0 h1:CKL7lLF81Fq6VRhA5TNFsSMnHraTNCUzIhqCzYX8Wzk= github.com/pulumi/pulumi-java/pkg v0.14.0/go.mod h1:VybuJMWJtJc9ZNbt1kcYH4TbpocMx9mEi7YWL2Co99c= -github.com/pulumi/pulumi-terraform-bridge/pf v0.42.1 h1:IMn3MmvoO66iptcU5kBdun60PqwNJBJ20A4hD3AqkDE= -github.com/pulumi/pulumi-terraform-bridge/pf v0.42.1/go.mod h1:SXxx1PJNNdGoD4/CxELgy0F46uzcTbDkz63DJsjIRXE= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.89.1 h1:FLQknb6r3r/uaj1XLbouFF88eF1Fk0h4JOVS9kHKDRY= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.89.1/go.mod h1:JAxygKR/XGW6zIv6iOP6sHAYjZ7OCtqU7j6Od1lUk38= +github.com/pulumi/pulumi-terraform-bridge/pf v0.43.0 h1:g15WgVKJBhFtzhLqOky6R77QIU3x4KkunrLHDSkK6CM= +github.com/pulumi/pulumi-terraform-bridge/pf v0.43.0/go.mod h1:xdU2rcUBjPX/alXMiywUK1GvN4goUHZxos8ZfT6sVXM= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.90.0 h1:e7xfYAiXCE8LCwfKvbGeNAjdPmKwPM3kavEXECt3wvs= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.90.0/go.mod h1:dIVp4qG+GsUwmpz40L7Z+PZnzHf3cQq1CAFwhz++ris= github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.9-0.20240227144008-2da15b3d6f6e h1:yON1jwN6gg4cjnOQF607I3fTiFyIDr9WSsQNXHD6wbM= github.com/pulumi/pulumi-terraform-bridge/x/muxer v0.0.9-0.20240227144008-2da15b3d6f6e/go.mod h1:AvlZujvfRiEu+60frCGEhaLeGttjHwM/g+47+IdPZXw= github.com/pulumi/pulumi-yaml v1.9.2 h1:BCUuRPA1USmFXrExiHRU8yJ+OiphLYnroPxKRgGCJrs= github.com/pulumi/pulumi-yaml v1.9.2/go.mod h1:sIh/Oa/NLRGTojevh8D2/cPDPvo2j9iXegVDQIKKfw4= -github.com/pulumi/pulumi/pkg/v3 v3.129.0 h1:n4Jd4ctlvw3eqyHglb/yJKDtRqjOvdkCBfG5T+orU30= -github.com/pulumi/pulumi/pkg/v3 v3.129.0/go.mod h1:W3c7JgO064kUH5IfyQMCgmsAr5iwr3PO6KEeIQiO0dY= -github.com/pulumi/pulumi/sdk/v3 v3.129.0 h1:uZpTTwWTx7Mk8UT9FgatzxzArim47vZ6hzNCKvgvX6A= -github.com/pulumi/pulumi/sdk/v3 v3.129.0/go.mod h1:p1U24en3zt51agx+WlNboSOV8eLlPWYAkxMzVEXKbnY= +github.com/pulumi/pulumi/pkg/v3 v3.130.0 h1:lS51XeCnhg72LXkMiw2FP1cGP+Y85wYD3quWhCPD5+M= +github.com/pulumi/pulumi/pkg/v3 v3.130.0/go.mod h1:jhZ1Ug5Rl1qivexgEWvmwSWYIT/jRnKSFhLwwv6PrZ0= +github.com/pulumi/pulumi/sdk/v3 v3.130.0 h1:gGJNd+akPqhZ+vrsZmAjSNJn6kGJkitjjkwrmIQMmn8= +github.com/pulumi/pulumi/sdk/v3 v3.130.0/go.mod h1:p1U24en3zt51agx+WlNboSOV8eLlPWYAkxMzVEXKbnY= github.com/pulumi/schema-tools v0.1.2 h1:Fd9xvUjgck4NA+7/jSk7InqCUT4Kj940+EcnbQKpfZo= github.com/pulumi/schema-tools v0.1.2/go.mod h1:62lgj52Tzq11eqWTIaKd+EVyYAu5dEcDJxMhTjvMO/k= github.com/pulumi/terraform-diff-reader v0.0.2 h1:kTE4nEXU3/SYXESvAIem+wyHMI3abqkI3OhJ0G04LLI= diff --git a/sdk/dotnet/CertificateAuthority/GetAuthority.cs b/sdk/dotnet/CertificateAuthority/GetAuthority.cs index 8804687a48..c54dbb15c7 100644 --- a/sdk/dotnet/CertificateAuthority/GetAuthority.cs +++ b/sdk/dotnet/CertificateAuthority/GetAuthority.cs @@ -16,17 +16,26 @@ public static class GetAuthority /// /// ## Example Usage /// - /// ```tf - /// data "google_privateca_certificate_authority" "default" { - /// location = "us-west1" - /// pool = "pool-name" - /// certificate_authority_id = "ca-id" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; /// - /// output "csr" { - /// value = data.google_privateca_certificate_authority.default.pem_csr - /// } + /// return await Deployment.RunAsync(() => + /// { + /// var @default = Gcp.CertificateAuthority.GetAuthority.Invoke(new() + /// { + /// Location = "us-west1", + /// Pool = "pool-name", + /// CertificateAuthorityId = "ca-id", + /// }); /// + /// return new Dictionary<string, object?> + /// { + /// ["csr"] = @default.Apply(@default => @default.Apply(getAuthorityResult => getAuthorityResult.PemCsr)), + /// }; + /// }); /// ``` /// public static Task InvokeAsync(GetAuthorityArgs? args = null, InvokeOptions? options = null) @@ -37,17 +46,26 @@ public static Task InvokeAsync(GetAuthorityArgs? args = null /// /// ## Example Usage /// - /// ```tf - /// data "google_privateca_certificate_authority" "default" { - /// location = "us-west1" - /// pool = "pool-name" - /// certificate_authority_id = "ca-id" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; /// - /// output "csr" { - /// value = data.google_privateca_certificate_authority.default.pem_csr - /// } + /// return await Deployment.RunAsync(() => + /// { + /// var @default = Gcp.CertificateAuthority.GetAuthority.Invoke(new() + /// { + /// Location = "us-west1", + /// Pool = "pool-name", + /// CertificateAuthorityId = "ca-id", + /// }); /// + /// return new Dictionary<string, object?> + /// { + /// ["csr"] = @default.Apply(@default => @default.Apply(getAuthorityResult => getAuthorityResult.PemCsr)), + /// }; + /// }); /// ``` /// public static Output Invoke(GetAuthorityInvokeArgs? args = null, InvokeOptions? options = null) diff --git a/sdk/dotnet/CertificateManager/GetCertificateMap.cs b/sdk/dotnet/CertificateManager/GetCertificateMap.cs index 9facbd88dc..75c1b0612a 100644 --- a/sdk/dotnet/CertificateManager/GetCertificateMap.cs +++ b/sdk/dotnet/CertificateManager/GetCertificateMap.cs @@ -16,10 +16,20 @@ public static class GetCertificateMap /// /// ## Example Usage /// - /// ```tf - /// data "google_certificate_manager_certificate_map" "default" { - /// name = "cert-map" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = Gcp.CertificateManager.GetCertificateMap.Invoke(new() + /// { + /// Name = "cert-map", + /// }); + /// + /// }); /// ``` /// public static Task InvokeAsync(GetCertificateMapArgs args, InvokeOptions? options = null) @@ -30,10 +40,20 @@ public static Task InvokeAsync(GetCertificateMapArgs ar /// /// ## Example Usage /// - /// ```tf - /// data "google_certificate_manager_certificate_map" "default" { - /// name = "cert-map" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @default = Gcp.CertificateManager.GetCertificateMap.Invoke(new() + /// { + /// Name = "cert-map", + /// }); + /// + /// }); /// ``` /// public static Output Invoke(GetCertificateMapInvokeArgs args, InvokeOptions? options = null) diff --git a/sdk/dotnet/CloudIdentity/GetGroupLookup.cs b/sdk/dotnet/CloudIdentity/GetGroupLookup.cs index efd8801317..bacdaca554 100644 --- a/sdk/dotnet/CloudIdentity/GetGroupLookup.cs +++ b/sdk/dotnet/CloudIdentity/GetGroupLookup.cs @@ -18,12 +18,23 @@ public static class GetGroupLookup /// /// ## Example Usage /// - /// ```tf - /// data "google_cloud_identity_group_lookup" "group" { - /// group_key { - /// id = "my-group@example.com" - /// } - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @group = Gcp.CloudIdentity.GetGroupLookup.Invoke(new() + /// { + /// GroupKey = new Gcp.CloudIdentity.Inputs.GetGroupLookupGroupKeyInputArgs + /// { + /// Id = "my-group@example.com", + /// }, + /// }); + /// + /// }); /// ``` /// public static Task InvokeAsync(GetGroupLookupArgs args, InvokeOptions? options = null) @@ -36,12 +47,23 @@ public static Task InvokeAsync(GetGroupLookupArgs args, In /// /// ## Example Usage /// - /// ```tf - /// data "google_cloud_identity_group_lookup" "group" { - /// group_key { - /// id = "my-group@example.com" - /// } - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var @group = Gcp.CloudIdentity.GetGroupLookup.Invoke(new() + /// { + /// GroupKey = new Gcp.CloudIdentity.Inputs.GetGroupLookupGroupKeyInputArgs + /// { + /// Id = "my-group@example.com", + /// }, + /// }); + /// + /// }); /// ``` /// public static Output Invoke(GetGroupLookupInvokeArgs args, InvokeOptions? options = null) diff --git a/sdk/dotnet/CloudIdentity/GetGroupMemberships.cs b/sdk/dotnet/CloudIdentity/GetGroupMemberships.cs index 97fd75f3ab..03810d564d 100644 --- a/sdk/dotnet/CloudIdentity/GetGroupMemberships.cs +++ b/sdk/dotnet/CloudIdentity/GetGroupMemberships.cs @@ -25,10 +25,20 @@ public static class GetGroupMemberships /// /// ## Example Usage /// - /// ```tf - /// data "google_cloud_identity_group_memberships" "members" { - /// group = "groups/123eab45c6defghi" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var members = Gcp.CloudIdentity.GetGroupMemberships.Invoke(new() + /// { + /// Group = "groups/123eab45c6defghi", + /// }); + /// + /// }); /// ``` /// public static Task InvokeAsync(GetGroupMembershipsArgs args, InvokeOptions? options = null) @@ -48,10 +58,20 @@ public static Task InvokeAsync(GetGroupMembershipsArg /// /// ## Example Usage /// - /// ```tf - /// data "google_cloud_identity_group_memberships" "members" { - /// group = "groups/123eab45c6defghi" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var members = Gcp.CloudIdentity.GetGroupMemberships.Invoke(new() + /// { + /// Group = "groups/123eab45c6defghi", + /// }); + /// + /// }); /// ``` /// public static Output Invoke(GetGroupMembershipsInvokeArgs args, InvokeOptions? options = null) diff --git a/sdk/dotnet/CloudIdentity/GetGroups.cs b/sdk/dotnet/CloudIdentity/GetGroups.cs index 1f1454f561..02d3dc6558 100644 --- a/sdk/dotnet/CloudIdentity/GetGroups.cs +++ b/sdk/dotnet/CloudIdentity/GetGroups.cs @@ -18,10 +18,20 @@ public static class GetGroups /// /// ## Example Usage /// - /// ```tf - /// data "google_cloud_identity_groups" "groups" { - /// parent = "customers/A01b123xz" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var groups = Gcp.CloudIdentity.GetGroups.Invoke(new() + /// { + /// Parent = "customers/A01b123xz", + /// }); + /// + /// }); /// ``` /// public static Task InvokeAsync(GetGroupsArgs args, InvokeOptions? options = null) @@ -34,10 +44,20 @@ public static Task InvokeAsync(GetGroupsArgs args, InvokeOption /// /// ## Example Usage /// - /// ```tf - /// data "google_cloud_identity_groups" "groups" { - /// parent = "customers/A01b123xz" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var groups = Gcp.CloudIdentity.GetGroups.Invoke(new() + /// { + /// Parent = "customers/A01b123xz", + /// }); + /// + /// }); /// ``` /// public static Output Invoke(GetGroupsInvokeArgs args, InvokeOptions? options = null) diff --git a/sdk/dotnet/Compute/DiskAsyncReplication.cs b/sdk/dotnet/Compute/DiskAsyncReplication.cs index e65ae5c586..a19ebe3788 100644 --- a/sdk/dotnet/Compute/DiskAsyncReplication.cs +++ b/sdk/dotnet/Compute/DiskAsyncReplication.cs @@ -15,6 +15,46 @@ namespace Pulumi.Gcp.Compute /// and the [API](https://cloud.google.com/compute/docs/reference/rest/v1/disks). /// /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var primary_disk = new Gcp.Compute.Disk("primary-disk", new() + /// { + /// Name = "primary-disk", + /// Type = "pd-ssd", + /// Zone = "europe-west4-a", + /// PhysicalBlockSizeBytes = 4096, + /// }); + /// + /// var secondary_disk = new Gcp.Compute.Disk("secondary-disk", new() + /// { + /// Name = "secondary-disk", + /// Type = "pd-ssd", + /// Zone = "europe-west3-a", + /// AsyncPrimaryDisk = new Gcp.Compute.Inputs.DiskAsyncPrimaryDiskArgs + /// { + /// Disk = primary_disk.Id, + /// }, + /// PhysicalBlockSizeBytes = 4096, + /// }); + /// + /// var replication = new Gcp.Compute.DiskAsyncReplication("replication", new() + /// { + /// PrimaryDisk = primary_disk.Id, + /// SecondaryDisk = new Gcp.Compute.Inputs.DiskAsyncReplicationSecondaryDiskArgs + /// { + /// Disk = secondary_disk.Id, + /// }, + /// }); + /// + /// }); + /// ``` /// [GcpResourceType("gcp:compute/diskAsyncReplication:DiskAsyncReplication")] public partial class DiskAsyncReplication : global::Pulumi.CustomResource diff --git a/sdk/dotnet/Compute/GetBackendBucket.cs b/sdk/dotnet/Compute/GetBackendBucket.cs index 4e38a03906..fa3e4e5a04 100644 --- a/sdk/dotnet/Compute/GetBackendBucket.cs +++ b/sdk/dotnet/Compute/GetBackendBucket.cs @@ -16,10 +16,20 @@ public static class GetBackendBucket /// /// ## Example Usage /// - /// ```tf - /// data "google_compute_backend_bucket" "my-backend-bucket" { - /// name = "my-backend" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_backend_bucket = Gcp.Compute.GetBackendBucket.Invoke(new() + /// { + /// Name = "my-backend", + /// }); + /// + /// }); /// ``` /// public static Task InvokeAsync(GetBackendBucketArgs args, InvokeOptions? options = null) @@ -30,10 +40,20 @@ public static Task InvokeAsync(GetBackendBucketArgs args /// /// ## Example Usage /// - /// ```tf - /// data "google_compute_backend_bucket" "my-backend-bucket" { - /// name = "my-backend" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_backend_bucket = Gcp.Compute.GetBackendBucket.Invoke(new() + /// { + /// Name = "my-backend", + /// }); + /// + /// }); /// ``` /// public static Output Invoke(GetBackendBucketInvokeArgs args, InvokeOptions? options = null) diff --git a/sdk/dotnet/Compute/GetBackendService.cs b/sdk/dotnet/Compute/GetBackendService.cs index 12b6c58d1f..d63392237c 100644 --- a/sdk/dotnet/Compute/GetBackendService.cs +++ b/sdk/dotnet/Compute/GetBackendService.cs @@ -18,15 +18,26 @@ public static class GetBackendService /// /// ## Example Usage /// - /// ```tf - /// data "google_compute_backend_service" "baz" { - /// name = "foobar" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; /// - /// resource "google_compute_backend_service" "default" { - /// name = "backend-service" - /// health_checks = [tolist(data.google_compute_backend_service.baz.health_checks)[0]] - /// } + /// return await Deployment.RunAsync(() => + /// { + /// var baz = Gcp.Compute.GetBackendService.Invoke(new() + /// { + /// Name = "foobar", + /// }); + /// + /// var @default = new Gcp.Compute.BackendService("default", new() + /// { + /// Name = "backend-service", + /// HealthChecks = baz.Apply(getBackendServiceResult => getBackendServiceResult.HealthChecks[0]), + /// }); + /// + /// }); /// ``` /// public static Task InvokeAsync(GetBackendServiceArgs args, InvokeOptions? options = null) @@ -39,15 +50,26 @@ public static Task InvokeAsync(GetBackendServiceArgs ar /// /// ## Example Usage /// - /// ```tf - /// data "google_compute_backend_service" "baz" { - /// name = "foobar" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var baz = Gcp.Compute.GetBackendService.Invoke(new() + /// { + /// Name = "foobar", + /// }); + /// + /// var @default = new Gcp.Compute.BackendService("default", new() + /// { + /// Name = "backend-service", + /// HealthChecks = baz.Apply(getBackendServiceResult => getBackendServiceResult.HealthChecks[0]), + /// }); /// - /// resource "google_compute_backend_service" "default" { - /// name = "backend-service" - /// health_checks = [tolist(data.google_compute_backend_service.baz.health_checks)[0]] - /// } + /// }); /// ``` /// public static Output Invoke(GetBackendServiceInvokeArgs args, InvokeOptions? options = null) diff --git a/sdk/dotnet/Compute/GetCertificate.cs b/sdk/dotnet/Compute/GetCertificate.cs index b03a945978..b14d72f947 100644 --- a/sdk/dotnet/Compute/GetCertificate.cs +++ b/sdk/dotnet/Compute/GetCertificate.cs @@ -16,22 +16,26 @@ public static class GetCertificate /// /// ## Example Usage /// - /// ```tf - /// data "google_compute_ssl_certificate" "my_cert" { - /// name = "my-cert" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; /// - /// output "certificate" { - /// value = data.google_compute_ssl_certificate.my_cert.certificate - /// } + /// return await Deployment.RunAsync(() => + /// { + /// var myCert = Gcp.Compute.GetCertificate.Invoke(new() + /// { + /// Name = "my-cert", + /// }); /// - /// output "certificate_id" { - /// value = data.google_compute_ssl_certificate.my_cert.certificate_id - /// } - /// - /// output "self_link" { - /// value = data.google_compute_ssl_certificate.my_cert.self_link - /// } + /// return new Dictionary<string, object?> + /// { + /// ["certificate"] = myCert.Apply(getCertificateResult => getCertificateResult.Certificate), + /// ["certificateId"] = myCert.Apply(getCertificateResult => getCertificateResult.CertificateId), + /// ["selfLink"] = myCert.Apply(getCertificateResult => getCertificateResult.SelfLink), + /// }; + /// }); /// ``` /// public static Task InvokeAsync(GetCertificateArgs args, InvokeOptions? options = null) @@ -42,22 +46,26 @@ public static Task InvokeAsync(GetCertificateArgs args, In /// /// ## Example Usage /// - /// ```tf - /// data "google_compute_ssl_certificate" "my_cert" { - /// name = "my-cert" - /// } - /// - /// output "certificate" { - /// value = data.google_compute_ssl_certificate.my_cert.certificate - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; /// - /// output "certificate_id" { - /// value = data.google_compute_ssl_certificate.my_cert.certificate_id - /// } + /// return await Deployment.RunAsync(() => + /// { + /// var myCert = Gcp.Compute.GetCertificate.Invoke(new() + /// { + /// Name = "my-cert", + /// }); /// - /// output "self_link" { - /// value = data.google_compute_ssl_certificate.my_cert.self_link - /// } + /// return new Dictionary<string, object?> + /// { + /// ["certificate"] = myCert.Apply(getCertificateResult => getCertificateResult.Certificate), + /// ["certificateId"] = myCert.Apply(getCertificateResult => getCertificateResult.CertificateId), + /// ["selfLink"] = myCert.Apply(getCertificateResult => getCertificateResult.SelfLink), + /// }; + /// }); /// ``` /// public static Output Invoke(GetCertificateInvokeArgs args, InvokeOptions? options = null) diff --git a/sdk/dotnet/Compute/GetForwardingRule.cs b/sdk/dotnet/Compute/GetForwardingRule.cs index f5315f4d91..872200e95e 100644 --- a/sdk/dotnet/Compute/GetForwardingRule.cs +++ b/sdk/dotnet/Compute/GetForwardingRule.cs @@ -16,10 +16,20 @@ public static class GetForwardingRule /// /// ## Example Usage /// - /// ```tf - /// data "google_compute_forwarding_rule" "my-forwarding-rule" { - /// name = "forwarding-rule-us-east1" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_forwarding_rule = Gcp.Compute.GetForwardingRule.Invoke(new() + /// { + /// Name = "forwarding-rule-us-east1", + /// }); + /// + /// }); /// ``` /// public static Task InvokeAsync(GetForwardingRuleArgs args, InvokeOptions? options = null) @@ -30,10 +40,20 @@ public static Task InvokeAsync(GetForwardingRuleArgs ar /// /// ## Example Usage /// - /// ```tf - /// data "google_compute_forwarding_rule" "my-forwarding-rule" { - /// name = "forwarding-rule-us-east1" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_forwarding_rule = Gcp.Compute.GetForwardingRule.Invoke(new() + /// { + /// Name = "forwarding-rule-us-east1", + /// }); + /// + /// }); /// ``` /// public static Output Invoke(GetForwardingRuleInvokeArgs args, InvokeOptions? options = null) diff --git a/sdk/dotnet/Compute/GetForwardingRules.cs b/sdk/dotnet/Compute/GetForwardingRules.cs index 2ef2a9b159..b5a62ddb0b 100644 --- a/sdk/dotnet/Compute/GetForwardingRules.cs +++ b/sdk/dotnet/Compute/GetForwardingRules.cs @@ -16,11 +16,21 @@ public static class GetForwardingRules /// /// ## Example Usage /// - /// ```tf - /// data "google_compute_forwarding_rules" "my-forwarding-rules" { - /// project = "my-cloud-project" - /// region = "us-central1" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_forwarding_rules = Gcp.Compute.GetForwardingRules.Invoke(new() + /// { + /// Project = "my-cloud-project", + /// Region = "us-central1", + /// }); + /// + /// }); /// ``` /// public static Task InvokeAsync(GetForwardingRulesArgs? args = null, InvokeOptions? options = null) @@ -31,11 +41,21 @@ public static Task InvokeAsync(GetForwardingRulesArgs? /// /// ## Example Usage /// - /// ```tf - /// data "google_compute_forwarding_rules" "my-forwarding-rules" { - /// project = "my-cloud-project" - /// region = "us-central1" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_forwarding_rules = Gcp.Compute.GetForwardingRules.Invoke(new() + /// { + /// Project = "my-cloud-project", + /// Region = "us-central1", + /// }); + /// + /// }); /// ``` /// public static Output Invoke(GetForwardingRulesInvokeArgs? args = null, InvokeOptions? options = null) diff --git a/sdk/dotnet/Compute/GetGlobalForwardingRule.cs b/sdk/dotnet/Compute/GetGlobalForwardingRule.cs index 69e7b2a167..89818ea677 100644 --- a/sdk/dotnet/Compute/GetGlobalForwardingRule.cs +++ b/sdk/dotnet/Compute/GetGlobalForwardingRule.cs @@ -16,10 +16,20 @@ public static class GetGlobalForwardingRule /// /// ## Example Usage /// - /// ```tf - /// data "google_compute_global_forwarding_rule" "my-forwarding-rule" { - /// name = "forwarding-rule-global" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_forwarding_rule = Gcp.Compute.GetGlobalForwardingRule.Invoke(new() + /// { + /// Name = "forwarding-rule-global", + /// }); + /// + /// }); /// ``` /// public static Task InvokeAsync(GetGlobalForwardingRuleArgs args, InvokeOptions? options = null) @@ -30,10 +40,20 @@ public static Task InvokeAsync(GetGlobalForwardin /// /// ## Example Usage /// - /// ```tf - /// data "google_compute_global_forwarding_rule" "my-forwarding-rule" { - /// name = "forwarding-rule-global" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_forwarding_rule = Gcp.Compute.GetGlobalForwardingRule.Invoke(new() + /// { + /// Name = "forwarding-rule-global", + /// }); + /// + /// }); /// ``` /// public static Output Invoke(GetGlobalForwardingRuleInvokeArgs args, InvokeOptions? options = null) diff --git a/sdk/dotnet/Compute/GetHcVpnGateway.cs b/sdk/dotnet/Compute/GetHcVpnGateway.cs index 41a4f7d142..464443080f 100644 --- a/sdk/dotnet/Compute/GetHcVpnGateway.cs +++ b/sdk/dotnet/Compute/GetHcVpnGateway.cs @@ -16,10 +16,20 @@ public static class GetHcVpnGateway /// /// ## Example Usage /// - /// ```tf - /// data "google_compute_ha_vpn_gateway" "gateway" { - /// name = "foobar" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var gateway = Gcp.Compute.GetHcVpnGateway.Invoke(new() + /// { + /// Name = "foobar", + /// }); + /// + /// }); /// ``` /// public static Task InvokeAsync(GetHcVpnGatewayArgs args, InvokeOptions? options = null) @@ -30,10 +40,20 @@ public static Task InvokeAsync(GetHcVpnGatewayArgs args, /// /// ## Example Usage /// - /// ```tf - /// data "google_compute_ha_vpn_gateway" "gateway" { - /// name = "foobar" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var gateway = Gcp.Compute.GetHcVpnGateway.Invoke(new() + /// { + /// Name = "foobar", + /// }); + /// + /// }); /// ``` /// public static Output Invoke(GetHcVpnGatewayInvokeArgs args, InvokeOptions? options = null) diff --git a/sdk/dotnet/Compute/GetHealthCheck.cs b/sdk/dotnet/Compute/GetHealthCheck.cs index a16a3dbfc5..63531e43a3 100644 --- a/sdk/dotnet/Compute/GetHealthCheck.cs +++ b/sdk/dotnet/Compute/GetHealthCheck.cs @@ -16,10 +16,20 @@ public static class GetHealthCheck /// /// ## Example Usage /// - /// ```tf - /// data "google_compute_health_check" "health_check" { - /// name = "my-hc" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var healthCheck = Gcp.Compute.GetHealthCheck.Invoke(new() + /// { + /// Name = "my-hc", + /// }); + /// + /// }); /// ``` /// public static Task InvokeAsync(GetHealthCheckArgs args, InvokeOptions? options = null) @@ -30,10 +40,20 @@ public static Task InvokeAsync(GetHealthCheckArgs args, In /// /// ## Example Usage /// - /// ```tf - /// data "google_compute_health_check" "health_check" { - /// name = "my-hc" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var healthCheck = Gcp.Compute.GetHealthCheck.Invoke(new() + /// { + /// Name = "my-hc", + /// }); + /// + /// }); /// ``` /// public static Output Invoke(GetHealthCheckInvokeArgs args, InvokeOptions? options = null) diff --git a/sdk/dotnet/Compute/GetLBIPRanges.cs b/sdk/dotnet/Compute/GetLBIPRanges.cs index debdc47ff3..12cf62fae2 100644 --- a/sdk/dotnet/Compute/GetLBIPRanges.cs +++ b/sdk/dotnet/Compute/GetLBIPRanges.cs @@ -18,24 +18,39 @@ public static class GetLBIPRanges /// /// ## Example Usage /// - /// ```tf - /// data "google_compute_lb_ip_ranges" "ranges" { - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; /// - /// resource "google_compute_firewall" "lb" { - /// name = "lb-firewall" - /// network = google_compute_network.main.name + /// return await Deployment.RunAsync(() => + /// { + /// var ranges = Gcp.Compute.GetLBIPRanges.Invoke(); /// - /// allow { - /// protocol = "tcp" - /// ports = ["80"] - /// } + /// var lb = new Gcp.Compute.Firewall("lb", new() + /// { + /// Name = "lb-firewall", + /// Network = main.Name, + /// Allows = new[] + /// { + /// new Gcp.Compute.Inputs.FirewallAllowArgs + /// { + /// Protocol = "tcp", + /// Ports = new[] + /// { + /// "80", + /// }, + /// }, + /// }, + /// SourceRanges = ranges.Apply(getLBIPRangesResult => getLBIPRangesResult.Networks), + /// TargetTags = new[] + /// { + /// "InstanceBehindLoadBalancer", + /// }, + /// }); /// - /// source_ranges = data.google_compute_lb_ip_ranges.ranges.network - /// target_tags = [ - /// "InstanceBehindLoadBalancer", - /// ] - /// } + /// }); /// ``` /// public static Task InvokeAsync(InvokeOptions? options = null) @@ -48,24 +63,39 @@ public static Task InvokeAsync(InvokeOptions? options = nul /// /// ## Example Usage /// - /// ```tf - /// data "google_compute_lb_ip_ranges" "ranges" { - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; /// - /// resource "google_compute_firewall" "lb" { - /// name = "lb-firewall" - /// network = google_compute_network.main.name + /// return await Deployment.RunAsync(() => + /// { + /// var ranges = Gcp.Compute.GetLBIPRanges.Invoke(); /// - /// allow { - /// protocol = "tcp" - /// ports = ["80"] - /// } + /// var lb = new Gcp.Compute.Firewall("lb", new() + /// { + /// Name = "lb-firewall", + /// Network = main.Name, + /// Allows = new[] + /// { + /// new Gcp.Compute.Inputs.FirewallAllowArgs + /// { + /// Protocol = "tcp", + /// Ports = new[] + /// { + /// "80", + /// }, + /// }, + /// }, + /// SourceRanges = ranges.Apply(getLBIPRangesResult => getLBIPRangesResult.Networks), + /// TargetTags = new[] + /// { + /// "InstanceBehindLoadBalancer", + /// }, + /// }); /// - /// source_ranges = data.google_compute_lb_ip_ranges.ranges.network - /// target_tags = [ - /// "InstanceBehindLoadBalancer", - /// ] - /// } + /// }); /// ``` /// public static Output Invoke(InvokeOptions? options = null) diff --git a/sdk/dotnet/Compute/GetNetblockIPRanges.cs b/sdk/dotnet/Compute/GetNetblockIPRanges.cs index e765521053..d8896d07fe 100644 --- a/sdk/dotnet/Compute/GetNetblockIPRanges.cs +++ b/sdk/dotnet/Compute/GetNetblockIPRanges.cs @@ -18,45 +18,64 @@ public static class GetNetblockIPRanges /// /// ### Cloud Ranges /// - /// ```tf - /// data "google_netblock_ip_ranges" "netblock" { - /// } - /// - /// output "cidr_blocks" { - /// value = data.google_netblock_ip_ranges.netblock.cidr_blocks - /// } - /// - /// output "cidr_blocks_ipv4" { - /// value = data.google_netblock_ip_ranges.netblock.cidr_blocks_ipv4 - /// } - /// - /// output "cidr_blocks_ipv6" { - /// value = data.google_netblock_ip_ranges.netblock.cidr_blocks_ipv6 - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var netblock = Gcp.Compute.GetNetblockIPRanges.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["cidrBlocks"] = netblock.Apply(getNetblockIPRangesResult => getNetblockIPRangesResult.CidrBlocks), + /// ["cidrBlocksIpv4"] = netblock.Apply(getNetblockIPRangesResult => getNetblockIPRangesResult.CidrBlocksIpv4s), + /// ["cidrBlocksIpv6"] = netblock.Apply(getNetblockIPRangesResult => getNetblockIPRangesResult.CidrBlocksIpv6s), + /// }; + /// }); /// ``` /// /// ### Allow Health Checks /// - /// ```tf - /// data "google_netblock_ip_ranges" "legacy-hcs" { - /// range_type = "legacy-health-checkers" - /// } - /// - /// resource "google_compute_firewall" "allow-hcs" { - /// name = "allow-hcs" - /// network = google_compute_network.default.name - /// - /// allow { - /// protocol = "tcp" - /// ports = ["80"] - /// } - /// - /// source_ranges = data.google_netblock_ip_ranges.legacy-hcs.cidr_blocks_ipv4 - /// } - /// - /// resource "google_compute_network" "default" { - /// name = "test-network" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var legacy_hcs = Gcp.Compute.GetNetblockIPRanges.Invoke(new() + /// { + /// RangeType = "legacy-health-checkers", + /// }); + /// + /// var @default = new Gcp.Compute.Network("default", new() + /// { + /// Name = "test-network", + /// }); + /// + /// var allow_hcs = new Gcp.Compute.Firewall("allow-hcs", new() + /// { + /// Name = "allow-hcs", + /// Network = @default.Name, + /// Allows = new[] + /// { + /// new Gcp.Compute.Inputs.FirewallAllowArgs + /// { + /// Protocol = "tcp", + /// Ports = new[] + /// { + /// "80", + /// }, + /// }, + /// }, + /// SourceRanges = legacy_hcs.Apply(legacy_hcs => legacy_hcs.Apply(getNetblockIPRangesResult => getNetblockIPRangesResult.CidrBlocksIpv4s)), + /// }); + /// + /// }); /// ``` /// public static Task InvokeAsync(GetNetblockIPRangesArgs? args = null, InvokeOptions? options = null) @@ -69,45 +88,64 @@ public static Task InvokeAsync(GetNetblockIPRangesArg /// /// ### Cloud Ranges /// - /// ```tf - /// data "google_netblock_ip_ranges" "netblock" { - /// } - /// - /// output "cidr_blocks" { - /// value = data.google_netblock_ip_ranges.netblock.cidr_blocks - /// } - /// - /// output "cidr_blocks_ipv4" { - /// value = data.google_netblock_ip_ranges.netblock.cidr_blocks_ipv4 - /// } - /// - /// output "cidr_blocks_ipv6" { - /// value = data.google_netblock_ip_ranges.netblock.cidr_blocks_ipv6 - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var netblock = Gcp.Compute.GetNetblockIPRanges.Invoke(); + /// + /// return new Dictionary<string, object?> + /// { + /// ["cidrBlocks"] = netblock.Apply(getNetblockIPRangesResult => getNetblockIPRangesResult.CidrBlocks), + /// ["cidrBlocksIpv4"] = netblock.Apply(getNetblockIPRangesResult => getNetblockIPRangesResult.CidrBlocksIpv4s), + /// ["cidrBlocksIpv6"] = netblock.Apply(getNetblockIPRangesResult => getNetblockIPRangesResult.CidrBlocksIpv6s), + /// }; + /// }); /// ``` /// /// ### Allow Health Checks /// - /// ```tf - /// data "google_netblock_ip_ranges" "legacy-hcs" { - /// range_type = "legacy-health-checkers" - /// } - /// - /// resource "google_compute_firewall" "allow-hcs" { - /// name = "allow-hcs" - /// network = google_compute_network.default.name - /// - /// allow { - /// protocol = "tcp" - /// ports = ["80"] - /// } - /// - /// source_ranges = data.google_netblock_ip_ranges.legacy-hcs.cidr_blocks_ipv4 - /// } - /// - /// resource "google_compute_network" "default" { - /// name = "test-network" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var legacy_hcs = Gcp.Compute.GetNetblockIPRanges.Invoke(new() + /// { + /// RangeType = "legacy-health-checkers", + /// }); + /// + /// var @default = new Gcp.Compute.Network("default", new() + /// { + /// Name = "test-network", + /// }); + /// + /// var allow_hcs = new Gcp.Compute.Firewall("allow-hcs", new() + /// { + /// Name = "allow-hcs", + /// Network = @default.Name, + /// Allows = new[] + /// { + /// new Gcp.Compute.Inputs.FirewallAllowArgs + /// { + /// Protocol = "tcp", + /// Ports = new[] + /// { + /// "80", + /// }, + /// }, + /// }, + /// SourceRanges = legacy_hcs.Apply(legacy_hcs => legacy_hcs.Apply(getNetblockIPRangesResult => getNetblockIPRangesResult.CidrBlocksIpv4s)), + /// }); + /// + /// }); /// ``` /// public static Output Invoke(GetNetblockIPRangesInvokeArgs? args = null, InvokeOptions? options = null) diff --git a/sdk/dotnet/Compute/GetNetwork.cs b/sdk/dotnet/Compute/GetNetwork.cs index 22d6e05612..88007cbc69 100644 --- a/sdk/dotnet/Compute/GetNetwork.cs +++ b/sdk/dotnet/Compute/GetNetwork.cs @@ -16,10 +16,20 @@ public static class GetNetwork /// /// ## Example Usage /// - /// ```tf - /// data "google_compute_network" "my-network" { - /// name = "default-us-east1" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_network = Gcp.Compute.GetNetwork.Invoke(new() + /// { + /// Name = "default-us-east1", + /// }); + /// + /// }); /// ``` /// public static Task InvokeAsync(GetNetworkArgs args, InvokeOptions? options = null) @@ -30,10 +40,20 @@ public static Task InvokeAsync(GetNetworkArgs args, InvokeOpti /// /// ## Example Usage /// - /// ```tf - /// data "google_compute_network" "my-network" { - /// name = "default-us-east1" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_network = Gcp.Compute.GetNetwork.Invoke(new() + /// { + /// Name = "default-us-east1", + /// }); + /// + /// }); /// ``` /// public static Output Invoke(GetNetworkInvokeArgs args, InvokeOptions? options = null) diff --git a/sdk/dotnet/Compute/GetNetworks.cs b/sdk/dotnet/Compute/GetNetworks.cs index 3efc9823af..36989403ea 100644 --- a/sdk/dotnet/Compute/GetNetworks.cs +++ b/sdk/dotnet/Compute/GetNetworks.cs @@ -16,10 +16,20 @@ public static class GetNetworks /// /// ## Example Usage /// - /// ```tf - /// data "google_compute_networks" "my-networks" { - /// project = "my-cloud-project" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_networks = Gcp.Compute.GetNetworks.Invoke(new() + /// { + /// Project = "my-cloud-project", + /// }); + /// + /// }); /// ``` /// public static Task InvokeAsync(GetNetworksArgs? args = null, InvokeOptions? options = null) @@ -30,10 +40,20 @@ public static Task InvokeAsync(GetNetworksArgs? args = null, /// /// ## Example Usage /// - /// ```tf - /// data "google_compute_networks" "my-networks" { - /// project = "my-cloud-project" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_networks = Gcp.Compute.GetNetworks.Invoke(new() + /// { + /// Project = "my-cloud-project", + /// }); + /// + /// }); /// ``` /// public static Output Invoke(GetNetworksInvokeArgs? args = null, InvokeOptions? options = null) diff --git a/sdk/dotnet/Compute/GetRegionSslCertificate.cs b/sdk/dotnet/Compute/GetRegionSslCertificate.cs index b4edc904b3..2a224466bc 100644 --- a/sdk/dotnet/Compute/GetRegionSslCertificate.cs +++ b/sdk/dotnet/Compute/GetRegionSslCertificate.cs @@ -16,22 +16,26 @@ public static class GetRegionSslCertificate /// /// ## Example Usage /// - /// ```tf - /// data "google_compute_region_ssl_certificate" "my_cert" { - /// name = "my-cert" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; /// - /// output "certificate" { - /// value = data.google_compute_region_ssl_certificate.my_cert.certificate - /// } + /// return await Deployment.RunAsync(() => + /// { + /// var myCert = Gcp.Compute.GetRegionSslCertificate.Invoke(new() + /// { + /// Name = "my-cert", + /// }); /// - /// output "certificate_id" { - /// value = data.google_compute_region_ssl_certificate.my_cert.certificate_id - /// } - /// - /// output "self_link" { - /// value = data.google_compute_region_ssl_certificate.my_cert.self_link - /// } + /// return new Dictionary<string, object?> + /// { + /// ["certificate"] = myCert.Apply(getRegionSslCertificateResult => getRegionSslCertificateResult.Certificate), + /// ["certificateId"] = myCert.Apply(getRegionSslCertificateResult => getRegionSslCertificateResult.CertificateId), + /// ["selfLink"] = myCert.Apply(getRegionSslCertificateResult => getRegionSslCertificateResult.SelfLink), + /// }; + /// }); /// ``` /// public static Task InvokeAsync(GetRegionSslCertificateArgs args, InvokeOptions? options = null) @@ -42,22 +46,26 @@ public static Task InvokeAsync(GetRegionSslCertif /// /// ## Example Usage /// - /// ```tf - /// data "google_compute_region_ssl_certificate" "my_cert" { - /// name = "my-cert" - /// } - /// - /// output "certificate" { - /// value = data.google_compute_region_ssl_certificate.my_cert.certificate - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; /// - /// output "certificate_id" { - /// value = data.google_compute_region_ssl_certificate.my_cert.certificate_id - /// } + /// return await Deployment.RunAsync(() => + /// { + /// var myCert = Gcp.Compute.GetRegionSslCertificate.Invoke(new() + /// { + /// Name = "my-cert", + /// }); /// - /// output "self_link" { - /// value = data.google_compute_region_ssl_certificate.my_cert.self_link - /// } + /// return new Dictionary<string, object?> + /// { + /// ["certificate"] = myCert.Apply(getRegionSslCertificateResult => getRegionSslCertificateResult.Certificate), + /// ["certificateId"] = myCert.Apply(getRegionSslCertificateResult => getRegionSslCertificateResult.CertificateId), + /// ["selfLink"] = myCert.Apply(getRegionSslCertificateResult => getRegionSslCertificateResult.SelfLink), + /// }; + /// }); /// ``` /// public static Output Invoke(GetRegionSslCertificateInvokeArgs args, InvokeOptions? options = null) diff --git a/sdk/dotnet/Compute/GetSSLPolicy.cs b/sdk/dotnet/Compute/GetSSLPolicy.cs index a287a02e67..8e366ebe95 100644 --- a/sdk/dotnet/Compute/GetSSLPolicy.cs +++ b/sdk/dotnet/Compute/GetSSLPolicy.cs @@ -17,10 +17,20 @@ public static class GetSSLPolicy /// /// ## Example Usage /// - /// ```tf - /// data "google_compute_ssl_policy" "my-ssl-policy" { - /// name = "production-ssl-policy" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_ssl_policy = Gcp.Compute.GetSSLPolicy.Invoke(new() + /// { + /// Name = "production-ssl-policy", + /// }); + /// + /// }); /// ``` /// public static Task InvokeAsync(GetSSLPolicyArgs args, InvokeOptions? options = null) @@ -32,10 +42,20 @@ public static Task InvokeAsync(GetSSLPolicyArgs args, Invoke /// /// ## Example Usage /// - /// ```tf - /// data "google_compute_ssl_policy" "my-ssl-policy" { - /// name = "production-ssl-policy" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_ssl_policy = Gcp.Compute.GetSSLPolicy.Invoke(new() + /// { + /// Name = "production-ssl-policy", + /// }); + /// + /// }); /// ``` /// public static Output Invoke(GetSSLPolicyInvokeArgs args, InvokeOptions? options = null) diff --git a/sdk/dotnet/Compute/GetVPNGateway.cs b/sdk/dotnet/Compute/GetVPNGateway.cs index eb4086041a..7d490df219 100644 --- a/sdk/dotnet/Compute/GetVPNGateway.cs +++ b/sdk/dotnet/Compute/GetVPNGateway.cs @@ -16,10 +16,20 @@ public static class GetVPNGateway /// /// ## Example Usage /// - /// ```tf - /// data "google_compute_vpn_gateway" "my-vpn-gateway" { - /// name = "vpn-gateway-us-east1" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_vpn_gateway = Gcp.Compute.GetVPNGateway.Invoke(new() + /// { + /// Name = "vpn-gateway-us-east1", + /// }); + /// + /// }); /// ``` /// public static Task InvokeAsync(GetVPNGatewayArgs args, InvokeOptions? options = null) @@ -30,10 +40,20 @@ public static Task InvokeAsync(GetVPNGatewayArgs args, Invo /// /// ## Example Usage /// - /// ```tf - /// data "google_compute_vpn_gateway" "my-vpn-gateway" { - /// name = "vpn-gateway-us-east1" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var my_vpn_gateway = Gcp.Compute.GetVPNGateway.Invoke(new() + /// { + /// Name = "vpn-gateway-us-east1", + /// }); + /// + /// }); /// ``` /// public static Output Invoke(GetVPNGatewayInvokeArgs args, InvokeOptions? options = null) diff --git a/sdk/dotnet/Compute/InstanceTemplate.cs b/sdk/dotnet/Compute/InstanceTemplate.cs index 3b7a573050..aee4d2f772 100644 --- a/sdk/dotnet/Compute/InstanceTemplate.cs +++ b/sdk/dotnet/Compute/InstanceTemplate.cs @@ -243,10 +243,66 @@ namespace Pulumi.Gcp.Compute /// data source, which will retrieve the latest image on every `pulumi apply`, and will update /// the template to use that specific image: /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var myImage = Gcp.Compute.GetImage.Invoke(new() + /// { + /// Family = "debian-11", + /// Project = "debian-cloud", + /// }); + /// + /// var instanceTemplate = new Gcp.Compute.InstanceTemplate("instance_template", new() + /// { + /// NamePrefix = "instance-template-", + /// MachineType = "e2-medium", + /// Region = "us-central1", + /// Disks = new[] + /// { + /// new Gcp.Compute.Inputs.InstanceTemplateDiskArgs + /// { + /// SourceImage = myImage.Apply(getImageResult => getImageResult.SelfLink), + /// }, + /// }, + /// }); + /// + /// }); + /// ``` + /// /// To have instances update to the latest on every scaling event or instance re-creation, /// use the family as the image for the disk, and it will use GCP's default behavior, setting /// the image for the template to the family: /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var instanceTemplate = new Gcp.Compute.InstanceTemplate("instance_template", new() + /// { + /// NamePrefix = "instance-template-", + /// MachineType = "e2-medium", + /// Region = "us-central1", + /// Disks = new[] + /// { + /// new Gcp.Compute.Inputs.InstanceTemplateDiskArgs + /// { + /// SourceImage = "debian-cloud/debian-11", + /// }, + /// }, + /// }); + /// + /// }); + /// ``` + /// /// ## Import /// /// Instance templates can be imported using any of these accepted formats: diff --git a/sdk/dotnet/Container/GetCluster.cs b/sdk/dotnet/Container/GetCluster.cs index fdedad4d39..645227f6fd 100644 --- a/sdk/dotnet/Container/GetCluster.cs +++ b/sdk/dotnet/Container/GetCluster.cs @@ -16,27 +16,28 @@ public static class GetCluster /// /// ## Example Usage /// - /// ```tf - /// data "google_container_cluster" "my_cluster" { - /// name = "my-cluster" - /// location = "us-east1-a" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; /// - /// output "endpoint" { - /// value = data.google_container_cluster.my_cluster.endpoint - /// } + /// return await Deployment.RunAsync(() => + /// { + /// var myCluster = Gcp.Container.GetCluster.Invoke(new() + /// { + /// Name = "my-cluster", + /// Location = "us-east1-a", + /// }); /// - /// output "instance_group_urls" { - /// value = data.google_container_cluster.my_cluster.node_pool[0].instance_group_urls - /// } - /// - /// output "node_config" { - /// value = data.google_container_cluster.my_cluster.node_config - /// } - /// - /// output "node_pools" { - /// value = data.google_container_cluster.my_cluster.node_pool - /// } + /// return new Dictionary<string, object?> + /// { + /// ["endpoint"] = myCluster.Apply(getClusterResult => getClusterResult.Endpoint), + /// ["instanceGroupUrls"] = myCluster.Apply(getClusterResult => getClusterResult.NodePools[0]?.InstanceGroupUrls), + /// ["nodeConfig"] = myCluster.Apply(getClusterResult => getClusterResult.NodeConfigs), + /// ["nodePools"] = myCluster.Apply(getClusterResult => getClusterResult.NodePools), + /// }; + /// }); /// ``` /// public static Task InvokeAsync(GetClusterArgs args, InvokeOptions? options = null) @@ -47,27 +48,28 @@ public static Task InvokeAsync(GetClusterArgs args, InvokeOpti /// /// ## Example Usage /// - /// ```tf - /// data "google_container_cluster" "my_cluster" { - /// name = "my-cluster" - /// location = "us-east1-a" - /// } - /// - /// output "endpoint" { - /// value = data.google_container_cluster.my_cluster.endpoint - /// } - /// - /// output "instance_group_urls" { - /// value = data.google_container_cluster.my_cluster.node_pool[0].instance_group_urls - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; /// - /// output "node_config" { - /// value = data.google_container_cluster.my_cluster.node_config - /// } + /// return await Deployment.RunAsync(() => + /// { + /// var myCluster = Gcp.Container.GetCluster.Invoke(new() + /// { + /// Name = "my-cluster", + /// Location = "us-east1-a", + /// }); /// - /// output "node_pools" { - /// value = data.google_container_cluster.my_cluster.node_pool - /// } + /// return new Dictionary<string, object?> + /// { + /// ["endpoint"] = myCluster.Apply(getClusterResult => getClusterResult.Endpoint), + /// ["instanceGroupUrls"] = myCluster.Apply(getClusterResult => getClusterResult.NodePools[0]?.InstanceGroupUrls), + /// ["nodeConfig"] = myCluster.Apply(getClusterResult => getClusterResult.NodeConfigs), + /// ["nodePools"] = myCluster.Apply(getClusterResult => getClusterResult.NodePools), + /// }; + /// }); /// ``` /// public static Output Invoke(GetClusterInvokeArgs args, InvokeOptions? options = null) diff --git a/sdk/dotnet/Dataproc/GetMetastoreService.cs b/sdk/dotnet/Dataproc/GetMetastoreService.cs index f502743c64..fce947125c 100644 --- a/sdk/dotnet/Dataproc/GetMetastoreService.cs +++ b/sdk/dotnet/Dataproc/GetMetastoreService.cs @@ -16,11 +16,21 @@ public static class GetMetastoreService /// /// ## Example Usage /// - /// ```tf - /// data "google_dataproc_metastore_service" "foo" { - /// service_id = "foo-bar" - /// location = "global" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var foo = Gcp.Dataproc.GetMetastoreService.Invoke(new() + /// { + /// ServiceId = "foo-bar", + /// Location = "global", + /// }); + /// + /// }); /// ``` /// public static Task InvokeAsync(GetMetastoreServiceArgs args, InvokeOptions? options = null) @@ -31,11 +41,21 @@ public static Task InvokeAsync(GetMetastoreServiceArg /// /// ## Example Usage /// - /// ```tf - /// data "google_dataproc_metastore_service" "foo" { - /// service_id = "foo-bar" - /// location = "global" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var foo = Gcp.Dataproc.GetMetastoreService.Invoke(new() + /// { + /// ServiceId = "foo-bar", + /// Location = "global", + /// }); + /// + /// }); /// ``` /// public static Output Invoke(GetMetastoreServiceInvokeArgs args, InvokeOptions? options = null) diff --git a/sdk/dotnet/Dns/GetRecordSet.cs b/sdk/dotnet/Dns/GetRecordSet.cs index 6718795d44..f9794d86b0 100644 --- a/sdk/dotnet/Dns/GetRecordSet.cs +++ b/sdk/dotnet/Dns/GetRecordSet.cs @@ -20,16 +20,27 @@ public static class GetRecordSet /// /// ## Example Usage /// - /// ```tf - /// data "google_dns_managed_zone" "sample" { - /// name = "sample-zone" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; /// - /// data "google_dns_record_set" "rs" { - /// managed_zone = data.google_dns_managed_zone.sample.name - /// name = "my-record.${data.google_dns_managed_zone.sample.dns_name}" - /// type = "A" - /// } + /// return await Deployment.RunAsync(() => + /// { + /// var sample = Gcp.Dns.GetManagedZone.Invoke(new() + /// { + /// Name = "sample-zone", + /// }); + /// + /// var rs = Gcp.Dns.GetRecordSet.Invoke(new() + /// { + /// ManagedZone = sample.Apply(getManagedZoneResult => getManagedZoneResult.Name), + /// Name = $"my-record.{sample.Apply(getManagedZoneResult => getManagedZoneResult.DnsName)}", + /// Type = "A", + /// }); + /// + /// }); /// ``` /// public static Task InvokeAsync(GetRecordSetArgs args, InvokeOptions? options = null) @@ -44,16 +55,27 @@ public static Task InvokeAsync(GetRecordSetArgs args, Invoke /// /// ## Example Usage /// - /// ```tf - /// data "google_dns_managed_zone" "sample" { - /// name = "sample-zone" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var sample = Gcp.Dns.GetManagedZone.Invoke(new() + /// { + /// Name = "sample-zone", + /// }); + /// + /// var rs = Gcp.Dns.GetRecordSet.Invoke(new() + /// { + /// ManagedZone = sample.Apply(getManagedZoneResult => getManagedZoneResult.Name), + /// Name = $"my-record.{sample.Apply(getManagedZoneResult => getManagedZoneResult.DnsName)}", + /// Type = "A", + /// }); /// - /// data "google_dns_record_set" "rs" { - /// managed_zone = data.google_dns_managed_zone.sample.name - /// name = "my-record.${data.google_dns_managed_zone.sample.dns_name}" - /// type = "A" - /// } + /// }); /// ``` /// public static Output Invoke(GetRecordSetInvokeArgs args, InvokeOptions? options = null) diff --git a/sdk/dotnet/Filestore/GetInstance.cs b/sdk/dotnet/Filestore/GetInstance.cs index 97e5b38f22..97af518a10 100644 --- a/sdk/dotnet/Filestore/GetInstance.cs +++ b/sdk/dotnet/Filestore/GetInstance.cs @@ -16,22 +16,26 @@ public static class GetInstance /// /// ## Example Usage /// - /// ```tf - /// data "google_filestore_instance" "my_instance" { - /// name = "my-filestore-instance" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; /// - /// output "instance_ip_addresses" { - /// value = data.google_filestore_instance.my_instance.networks.ip_addresses - /// } + /// return await Deployment.RunAsync(() => + /// { + /// var myInstance = Gcp.Filestore.GetInstance.Invoke(new() + /// { + /// Name = "my-filestore-instance", + /// }); /// - /// output "instance_connect_mode" { - /// value = data.google_filestore_instance.my_instance.networks.connect_mode - /// } - /// - /// output "instance_file_share_name" { - /// value = data.google_filestore_instance.my_instance.file_shares.name - /// } + /// return new Dictionary<string, object?> + /// { + /// ["instanceIpAddresses"] = myInstance.Apply(getInstanceResult => getInstanceResult.Networks?.IpAddresses), + /// ["instanceConnectMode"] = myInstance.Apply(getInstanceResult => getInstanceResult.Networks?.ConnectMode), + /// ["instanceFileShareName"] = myInstance.Apply(getInstanceResult => getInstanceResult.FileShares?.Name), + /// }; + /// }); /// ``` /// public static Task InvokeAsync(GetInstanceArgs args, InvokeOptions? options = null) @@ -42,22 +46,26 @@ public static Task InvokeAsync(GetInstanceArgs args, InvokeOp /// /// ## Example Usage /// - /// ```tf - /// data "google_filestore_instance" "my_instance" { - /// name = "my-filestore-instance" - /// } - /// - /// output "instance_ip_addresses" { - /// value = data.google_filestore_instance.my_instance.networks.ip_addresses - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; /// - /// output "instance_connect_mode" { - /// value = data.google_filestore_instance.my_instance.networks.connect_mode - /// } + /// return await Deployment.RunAsync(() => + /// { + /// var myInstance = Gcp.Filestore.GetInstance.Invoke(new() + /// { + /// Name = "my-filestore-instance", + /// }); /// - /// output "instance_file_share_name" { - /// value = data.google_filestore_instance.my_instance.file_shares.name - /// } + /// return new Dictionary<string, object?> + /// { + /// ["instanceIpAddresses"] = myInstance.Apply(getInstanceResult => getInstanceResult.Networks?.IpAddresses), + /// ["instanceConnectMode"] = myInstance.Apply(getInstanceResult => getInstanceResult.Networks?.ConnectMode), + /// ["instanceFileShareName"] = myInstance.Apply(getInstanceResult => getInstanceResult.FileShares?.Name), + /// }; + /// }); /// ``` /// public static Output Invoke(GetInstanceInvokeArgs args, InvokeOptions? options = null) diff --git a/sdk/dotnet/Iam/GetWorkloadIdentityPool.cs b/sdk/dotnet/Iam/GetWorkloadIdentityPool.cs index ec1a63601d..9d2631dd1e 100644 --- a/sdk/dotnet/Iam/GetWorkloadIdentityPool.cs +++ b/sdk/dotnet/Iam/GetWorkloadIdentityPool.cs @@ -16,10 +16,20 @@ public static class GetWorkloadIdentityPool /// > **Note:** The following resource requires the Beta IAM role `roles/iam.workloadIdentityPoolAdmin` in order to succeed. `OWNER` and `EDITOR` roles do not include the necessary permissions. /// ## Example Usage /// - /// ```tf - /// data "google_iam_workload_identity_pool" "foo" { - /// workload_identity_pool_id = "foo-pool" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var foo = Gcp.Iam.GetWorkloadIdentityPool.Invoke(new() + /// { + /// WorkloadIdentityPoolId = "foo-pool", + /// }); + /// + /// }); /// ``` /// public static Task InvokeAsync(GetWorkloadIdentityPoolArgs args, InvokeOptions? options = null) @@ -30,10 +40,20 @@ public static Task InvokeAsync(GetWorkloadIdentit /// > **Note:** The following resource requires the Beta IAM role `roles/iam.workloadIdentityPoolAdmin` in order to succeed. `OWNER` and `EDITOR` roles do not include the necessary permissions. /// ## Example Usage /// - /// ```tf - /// data "google_iam_workload_identity_pool" "foo" { - /// workload_identity_pool_id = "foo-pool" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var foo = Gcp.Iam.GetWorkloadIdentityPool.Invoke(new() + /// { + /// WorkloadIdentityPoolId = "foo-pool", + /// }); + /// + /// }); /// ``` /// public static Output Invoke(GetWorkloadIdentityPoolInvokeArgs args, InvokeOptions? options = null) diff --git a/sdk/dotnet/Iam/GetWorkloadIdentityPoolProvider.cs b/sdk/dotnet/Iam/GetWorkloadIdentityPoolProvider.cs index b3d87ad7a6..80a1afb497 100644 --- a/sdk/dotnet/Iam/GetWorkloadIdentityPoolProvider.cs +++ b/sdk/dotnet/Iam/GetWorkloadIdentityPoolProvider.cs @@ -16,11 +16,21 @@ public static class GetWorkloadIdentityPoolProvider /// /// ## Example Usage /// - /// ```tf - /// data "google_iam_workload_identity_pool_provider" "foo" { - /// workload_identity_pool_id = "foo-pool" - /// workload_identity_pool_provider_id = "bar-provider" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var foo = Gcp.Iam.GetWorkloadIdentityPoolProvider.Invoke(new() + /// { + /// WorkloadIdentityPoolId = "foo-pool", + /// WorkloadIdentityPoolProviderId = "bar-provider", + /// }); + /// + /// }); /// ``` /// public static Task InvokeAsync(GetWorkloadIdentityPoolProviderArgs args, InvokeOptions? options = null) @@ -31,11 +41,21 @@ public static Task InvokeAsync(GetWorkloa /// /// ## Example Usage /// - /// ```tf - /// data "google_iam_workload_identity_pool_provider" "foo" { - /// workload_identity_pool_id = "foo-pool" - /// workload_identity_pool_provider_id = "bar-provider" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var foo = Gcp.Iam.GetWorkloadIdentityPoolProvider.Invoke(new() + /// { + /// WorkloadIdentityPoolId = "foo-pool", + /// WorkloadIdentityPoolProviderId = "bar-provider", + /// }); + /// + /// }); /// ``` /// public static Output Invoke(GetWorkloadIdentityPoolProviderInvokeArgs args, InvokeOptions? options = null) diff --git a/sdk/dotnet/Iap/GetClient.cs b/sdk/dotnet/Iap/GetClient.cs index bf65424593..f5edb83571 100644 --- a/sdk/dotnet/Iap/GetClient.cs +++ b/sdk/dotnet/Iap/GetClient.cs @@ -16,16 +16,26 @@ public static class GetClient /// /// ## Example Usage /// - /// ```tf - /// data "google_project" "project" { - /// project_id = "foobar" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; /// - /// data "google_iap_client" "project_client" { - /// brand = "projects/${data.google_project.project.number}/brands/[BRAND_NUMBER]" - /// client_id = FOO.apps.googleusercontent.com - /// } + /// return await Deployment.RunAsync(() => + /// { + /// var project = Gcp.Organizations.GetProject.Invoke(new() + /// { + /// ProjectId = "foobar", + /// }); /// + /// var projectClient = Gcp.Iap.GetClient.Invoke(new() + /// { + /// Brand = $"projects/{project.Apply(getProjectResult => getProjectResult.Number)}/brands/[BRAND_NUMBER]", + /// ClientId = apps.Googleusercontent.Com, + /// }); + /// + /// }); /// ``` /// public static Task InvokeAsync(GetClientArgs args, InvokeOptions? options = null) @@ -36,16 +46,26 @@ public static Task InvokeAsync(GetClientArgs args, InvokeOption /// /// ## Example Usage /// - /// ```tf - /// data "google_project" "project" { - /// project_id = "foobar" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var project = Gcp.Organizations.GetProject.Invoke(new() + /// { + /// ProjectId = "foobar", + /// }); /// - /// data "google_iap_client" "project_client" { - /// brand = "projects/${data.google_project.project.number}/brands/[BRAND_NUMBER]" - /// client_id = FOO.apps.googleusercontent.com - /// } + /// var projectClient = Gcp.Iap.GetClient.Invoke(new() + /// { + /// Brand = $"projects/{project.Apply(getProjectResult => getProjectResult.Number)}/brands/[BRAND_NUMBER]", + /// ClientId = apps.Googleusercontent.Com, + /// }); /// + /// }); /// ``` /// public static Output Invoke(GetClientInvokeArgs args, InvokeOptions? options = null) diff --git a/sdk/dotnet/Monitoring/GetSecretVersion.cs b/sdk/dotnet/Monitoring/GetSecretVersion.cs index 691c88440b..cc6f50383d 100644 --- a/sdk/dotnet/Monitoring/GetSecretVersion.cs +++ b/sdk/dotnet/Monitoring/GetSecretVersion.cs @@ -13,7 +13,7 @@ namespace Pulumi.Gcp.Monitoring public static class GetSecretVersion { /// - /// Get the value and metadata from a Secret Manager secret version. For more information see the official documentation datasource. + /// Get the value and metadata from a Secret Manager secret version. For more information see the [official documentation](https://cloud.google.com/secret-manager/docs/) and [API](https://cloud.google.com/secret-manager/docs/reference/rest/v1/projects.secrets.versions). If you don't need the metadata (i.e., if you want to use a more limited role to access the secret version only), see also the gcp.secretmanager.getSecretVersionAccess datasource. /// /// ## Example Usage /// @@ -37,7 +37,7 @@ public static Task InvokeAsync(GetSecretVersionArgs args => global::Pulumi.Deployment.Instance.InvokeAsync("gcp:monitoring/getSecretVersion:getSecretVersion", args ?? new GetSecretVersionArgs(), options.WithDefaults()); /// - /// Get the value and metadata from a Secret Manager secret version. For more information see the official documentation datasource. + /// Get the value and metadata from a Secret Manager secret version. For more information see the [official documentation](https://cloud.google.com/secret-manager/docs/) and [API](https://cloud.google.com/secret-manager/docs/reference/rest/v1/projects.secrets.versions). If you don't need the metadata (i.e., if you want to use a more limited role to access the secret version only), see also the gcp.secretmanager.getSecretVersionAccess datasource. /// /// ## Example Usage /// diff --git a/sdk/dotnet/Organizations/GetActiveFolder.cs b/sdk/dotnet/Organizations/GetActiveFolder.cs index 77ceb14ecc..fd669f418b 100644 --- a/sdk/dotnet/Organizations/GetActiveFolder.cs +++ b/sdk/dotnet/Organizations/GetActiveFolder.cs @@ -16,11 +16,21 @@ public static class GetActiveFolder /// /// ## Example Usage /// - /// ```tf - /// data "google_active_folder" "department1" { - /// display_name = "Department 1" - /// parent = "organizations/1234567" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var department1 = Gcp.Organizations.GetActiveFolder.Invoke(new() + /// { + /// DisplayName = "Department 1", + /// Parent = "organizations/1234567", + /// }); + /// + /// }); /// ``` /// public static Task InvokeAsync(GetActiveFolderArgs args, InvokeOptions? options = null) @@ -31,11 +41,21 @@ public static Task InvokeAsync(GetActiveFolderArgs args, /// /// ## Example Usage /// - /// ```tf - /// data "google_active_folder" "department1" { - /// display_name = "Department 1" - /// parent = "organizations/1234567" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var department1 = Gcp.Organizations.GetActiveFolder.Invoke(new() + /// { + /// DisplayName = "Department 1", + /// Parent = "organizations/1234567", + /// }); + /// + /// }); /// ``` /// public static Output Invoke(GetActiveFolderInvokeArgs args, InvokeOptions? options = null) diff --git a/sdk/dotnet/Organizations/GetClientConfig.cs b/sdk/dotnet/Organizations/GetClientConfig.cs index 02682a7241..ed60c3df4b 100644 --- a/sdk/dotnet/Organizations/GetClientConfig.cs +++ b/sdk/dotnet/Organizations/GetClientConfig.cs @@ -14,34 +14,21 @@ public static class GetClientConfig /// /// ## Example Usage /// - /// ```tf - /// data "google_client_config" "current" { - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; /// - /// output "project" { - /// value = data.google_client_config.current.project - /// } - /// ``` - /// - /// - /// ### Configure Kubernetes Provider With OAuth2 Access Token - /// - /// ```tf - /// data "google_client_config" "default" { - /// } - /// - /// data "google_container_cluster" "my_cluster" { - /// name = "my-cluster" - /// zone = "us-east1-a" - /// } + /// return await Deployment.RunAsync(() => + /// { + /// var current = Gcp.Organizations.GetClientConfig.Invoke(); /// - /// provider "kubernetes" { - /// host = "https://${data.google_container_cluster.my_cluster.endpoint}" - /// token = data.google_client_config.default.access_token - /// cluster_ca_certificate = base64decode( - /// data.google_container_cluster.my_cluster.master_auth[0].cluster_ca_certificate, - /// ) - /// } + /// return new Dictionary<string, object?> + /// { + /// ["project"] = current.Apply(getClientConfigResult => getClientConfigResult.Project), + /// }; + /// }); /// ``` /// public static Task InvokeAsync(InvokeOptions? options = null) @@ -50,34 +37,21 @@ public static Task InvokeAsync(InvokeOptions? options = n /// /// ## Example Usage /// - /// ```tf - /// data "google_client_config" "current" { - /// } - /// - /// output "project" { - /// value = data.google_client_config.current.project - /// } - /// ``` - /// - /// - /// ### Configure Kubernetes Provider With OAuth2 Access Token - /// - /// ```tf - /// data "google_client_config" "default" { - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; /// - /// data "google_container_cluster" "my_cluster" { - /// name = "my-cluster" - /// zone = "us-east1-a" - /// } + /// return await Deployment.RunAsync(() => + /// { + /// var current = Gcp.Organizations.GetClientConfig.Invoke(); /// - /// provider "kubernetes" { - /// host = "https://${data.google_container_cluster.my_cluster.endpoint}" - /// token = data.google_client_config.default.access_token - /// cluster_ca_certificate = base64decode( - /// data.google_container_cluster.my_cluster.master_auth[0].cluster_ca_certificate, - /// ) - /// } + /// return new Dictionary<string, object?> + /// { + /// ["project"] = current.Apply(getClientConfigResult => getClientConfigResult.Project), + /// }; + /// }); /// ``` /// public static Output Invoke(InvokeOptions? options = null) diff --git a/sdk/dotnet/Redis/GetInstance.cs b/sdk/dotnet/Redis/GetInstance.cs index 9891ad3e7e..a141987215 100644 --- a/sdk/dotnet/Redis/GetInstance.cs +++ b/sdk/dotnet/Redis/GetInstance.cs @@ -16,22 +16,26 @@ public static class GetInstance /// /// ## Example Usage /// - /// ```tf - /// data "google_redis_instance" "my_instance" { - /// name = "my-redis-instance" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; /// - /// output "instance_memory_size_gb" { - /// value = data.google_redis_instance.my_instance.memory_size_gb - /// } + /// return await Deployment.RunAsync(() => + /// { + /// var myInstance = Gcp.Redis.GetInstance.Invoke(new() + /// { + /// Name = "my-redis-instance", + /// }); /// - /// output "instance_connect_mode" { - /// value = data.google_redis_instance.my_instance.connect_mode - /// } - /// - /// output "instance_authorized_network" { - /// value = data.google_redis_instance.my_instance.authorized_network - /// } + /// return new Dictionary<string, object?> + /// { + /// ["instanceMemorySizeGb"] = myInstance.Apply(getInstanceResult => getInstanceResult.MemorySizeGb), + /// ["instanceConnectMode"] = myInstance.Apply(getInstanceResult => getInstanceResult.ConnectMode), + /// ["instanceAuthorizedNetwork"] = myInstance.Apply(getInstanceResult => getInstanceResult.AuthorizedNetwork), + /// }; + /// }); /// ``` /// public static Task InvokeAsync(GetInstanceArgs args, InvokeOptions? options = null) @@ -42,22 +46,26 @@ public static Task InvokeAsync(GetInstanceArgs args, InvokeOp /// /// ## Example Usage /// - /// ```tf - /// data "google_redis_instance" "my_instance" { - /// name = "my-redis-instance" - /// } - /// - /// output "instance_memory_size_gb" { - /// value = data.google_redis_instance.my_instance.memory_size_gb - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; /// - /// output "instance_connect_mode" { - /// value = data.google_redis_instance.my_instance.connect_mode - /// } + /// return await Deployment.RunAsync(() => + /// { + /// var myInstance = Gcp.Redis.GetInstance.Invoke(new() + /// { + /// Name = "my-redis-instance", + /// }); /// - /// output "instance_authorized_network" { - /// value = data.google_redis_instance.my_instance.authorized_network - /// } + /// return new Dictionary<string, object?> + /// { + /// ["instanceMemorySizeGb"] = myInstance.Apply(getInstanceResult => getInstanceResult.MemorySizeGb), + /// ["instanceConnectMode"] = myInstance.Apply(getInstanceResult => getInstanceResult.ConnectMode), + /// ["instanceAuthorizedNetwork"] = myInstance.Apply(getInstanceResult => getInstanceResult.AuthorizedNetwork), + /// }; + /// }); /// ``` /// public static Output Invoke(GetInstanceInvokeArgs args, InvokeOptions? options = null) diff --git a/sdk/dotnet/SecretManager/GetSecretVersion.cs b/sdk/dotnet/SecretManager/GetSecretVersion.cs index c978e55992..8a9bc008c4 100644 --- a/sdk/dotnet/SecretManager/GetSecretVersion.cs +++ b/sdk/dotnet/SecretManager/GetSecretVersion.cs @@ -12,7 +12,7 @@ namespace Pulumi.Gcp.SecretManager public static class GetSecretVersion { /// - /// Get the value and metadata from a Secret Manager secret version. For more information see the official documentation datasource. + /// Get the value and metadata from a Secret Manager secret version. For more information see the [official documentation](https://cloud.google.com/secret-manager/docs/) and [API](https://cloud.google.com/secret-manager/docs/reference/rest/v1/projects.secrets.versions). If you don't need the metadata (i.e., if you want to use a more limited role to access the secret version only), see also the gcp.secretmanager.getSecretVersionAccess datasource. /// /// ## Example Usage /// @@ -36,7 +36,7 @@ public static Task InvokeAsync(GetSecretVersionArgs args => global::Pulumi.Deployment.Instance.InvokeAsync("gcp:secretmanager/getSecretVersion:getSecretVersion", args ?? new GetSecretVersionArgs(), options.WithDefaults()); /// - /// Get the value and metadata from a Secret Manager secret version. For more information see the official documentation datasource. + /// Get the value and metadata from a Secret Manager secret version. For more information see the [official documentation](https://cloud.google.com/secret-manager/docs/) and [API](https://cloud.google.com/secret-manager/docs/reference/rest/v1/projects.secrets.versions). If you don't need the metadata (i.e., if you want to use a more limited role to access the secret version only), see also the gcp.secretmanager.getSecretVersionAccess datasource. /// /// ## Example Usage /// diff --git a/sdk/dotnet/Spanner/GetInstance.cs b/sdk/dotnet/Spanner/GetInstance.cs index de7e791050..002fc4f016 100644 --- a/sdk/dotnet/Spanner/GetInstance.cs +++ b/sdk/dotnet/Spanner/GetInstance.cs @@ -16,10 +16,20 @@ public static class GetInstance /// /// ## Example Usage /// - /// ```tf - /// data "google_spanner_instance" "foo" { - /// name = "bar" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var foo = Gcp.Spanner.GetInstance.Invoke(new() + /// { + /// Name = "bar", + /// }); + /// + /// }); /// ``` /// public static Task InvokeAsync(GetInstanceArgs args, InvokeOptions? options = null) @@ -30,10 +40,20 @@ public static Task InvokeAsync(GetInstanceArgs args, InvokeOp /// /// ## Example Usage /// - /// ```tf - /// data "google_spanner_instance" "foo" { - /// name = "bar" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var foo = Gcp.Spanner.GetInstance.Invoke(new() + /// { + /// Name = "bar", + /// }); + /// + /// }); /// ``` /// public static Output Invoke(GetInstanceInvokeArgs args, InvokeOptions? options = null) diff --git a/sdk/dotnet/Tags/GetTagKey.cs b/sdk/dotnet/Tags/GetTagKey.cs index 5170266566..312758fe33 100644 --- a/sdk/dotnet/Tags/GetTagKey.cs +++ b/sdk/dotnet/Tags/GetTagKey.cs @@ -16,17 +16,37 @@ public static class GetTagKey /// /// ## Example Usage /// - /// ```tf - /// data "google_tags_tag_key" "environment_tag_key"{ - /// parent = "organizations/12345" - /// short_name = "environment" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var environmentTagKey = Gcp.Tags.GetTagKey.Invoke(new() + /// { + /// Parent = "organizations/12345", + /// ShortName = "environment", + /// }); + /// + /// }); /// ``` - /// ```tf - /// data "google_tags_tag_key" "environment_tag_key"{ - /// parent = "projects/abc" - /// short_name = "environment" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var environmentTagKey = Gcp.Tags.GetTagKey.Invoke(new() + /// { + /// Parent = "projects/abc", + /// ShortName = "environment", + /// }); + /// + /// }); /// ``` /// public static Task InvokeAsync(GetTagKeyArgs args, InvokeOptions? options = null) @@ -37,17 +57,37 @@ public static Task InvokeAsync(GetTagKeyArgs args, InvokeOption /// /// ## Example Usage /// - /// ```tf - /// data "google_tags_tag_key" "environment_tag_key"{ - /// parent = "organizations/12345" - /// short_name = "environment" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var environmentTagKey = Gcp.Tags.GetTagKey.Invoke(new() + /// { + /// Parent = "organizations/12345", + /// ShortName = "environment", + /// }); + /// + /// }); /// ``` - /// ```tf - /// data "google_tags_tag_key" "environment_tag_key"{ - /// parent = "projects/abc" - /// short_name = "environment" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var environmentTagKey = Gcp.Tags.GetTagKey.Invoke(new() + /// { + /// Parent = "projects/abc", + /// ShortName = "environment", + /// }); + /// + /// }); /// ``` /// public static Output Invoke(GetTagKeyInvokeArgs args, InvokeOptions? options = null) diff --git a/sdk/dotnet/Tags/GetTagKeys.cs b/sdk/dotnet/Tags/GetTagKeys.cs index a48f15ce67..fe4338747a 100644 --- a/sdk/dotnet/Tags/GetTagKeys.cs +++ b/sdk/dotnet/Tags/GetTagKeys.cs @@ -16,15 +16,35 @@ public static class GetTagKeys /// /// ## Example Usage /// - /// ```tf - /// data "google_tags_tag_keys" "environment_tag_key"{ - /// parent = "organizations/12345" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var environmentTagKey = Gcp.Tags.GetTagKeys.Invoke(new() + /// { + /// Parent = "organizations/12345", + /// }); + /// + /// }); /// ``` - /// ```tf - /// data "google_tags_tag_keys" "environment_tag_key"{ - /// parent = "projects/abc" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var environmentTagKey = Gcp.Tags.GetTagKeys.Invoke(new() + /// { + /// Parent = "projects/abc", + /// }); + /// + /// }); /// ``` /// public static Task InvokeAsync(GetTagKeysArgs args, InvokeOptions? options = null) @@ -35,15 +55,35 @@ public static Task InvokeAsync(GetTagKeysArgs args, InvokeOpti /// /// ## Example Usage /// - /// ```tf - /// data "google_tags_tag_keys" "environment_tag_key"{ - /// parent = "organizations/12345" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var environmentTagKey = Gcp.Tags.GetTagKeys.Invoke(new() + /// { + /// Parent = "organizations/12345", + /// }); + /// + /// }); /// ``` - /// ```tf - /// data "google_tags_tag_keys" "environment_tag_key"{ - /// parent = "projects/abc" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var environmentTagKey = Gcp.Tags.GetTagKeys.Invoke(new() + /// { + /// Parent = "projects/abc", + /// }); + /// + /// }); /// ``` /// public static Output Invoke(GetTagKeysInvokeArgs args, InvokeOptions? options = null) diff --git a/sdk/dotnet/Tags/GetTagValue.cs b/sdk/dotnet/Tags/GetTagValue.cs index 3951be42a4..7a2909dfff 100644 --- a/sdk/dotnet/Tags/GetTagValue.cs +++ b/sdk/dotnet/Tags/GetTagValue.cs @@ -16,11 +16,21 @@ public static class GetTagValue /// /// ## Example Usage /// - /// ```tf - /// data "google_tags_tag_value" "environment_prod_tag_value"{ - /// parent = "tagKeys/56789" - /// short_name = "production" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var environmentProdTagValue = Gcp.Tags.GetTagValue.Invoke(new() + /// { + /// Parent = "tagKeys/56789", + /// ShortName = "production", + /// }); + /// + /// }); /// ``` /// public static Task InvokeAsync(GetTagValueArgs args, InvokeOptions? options = null) @@ -31,11 +41,21 @@ public static Task InvokeAsync(GetTagValueArgs args, InvokeOp /// /// ## Example Usage /// - /// ```tf - /// data "google_tags_tag_value" "environment_prod_tag_value"{ - /// parent = "tagKeys/56789" - /// short_name = "production" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var environmentProdTagValue = Gcp.Tags.GetTagValue.Invoke(new() + /// { + /// Parent = "tagKeys/56789", + /// ShortName = "production", + /// }); + /// + /// }); /// ``` /// public static Output Invoke(GetTagValueInvokeArgs args, InvokeOptions? options = null) diff --git a/sdk/dotnet/Tags/GetTagValues.cs b/sdk/dotnet/Tags/GetTagValues.cs index 879971c706..f8daf3d271 100644 --- a/sdk/dotnet/Tags/GetTagValues.cs +++ b/sdk/dotnet/Tags/GetTagValues.cs @@ -16,10 +16,20 @@ public static class GetTagValues /// /// ## Example Usage /// - /// ```tf - /// data "google_tags_tag_values" "environment_tag_values"{ - /// parent = "tagKeys/56789" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var environmentTagValues = Gcp.Tags.GetTagValues.Invoke(new() + /// { + /// Parent = "tagKeys/56789", + /// }); + /// + /// }); /// ``` /// public static Task InvokeAsync(GetTagValuesArgs args, InvokeOptions? options = null) @@ -30,10 +40,20 @@ public static Task InvokeAsync(GetTagValuesArgs args, Invoke /// /// ## Example Usage /// - /// ```tf - /// data "google_tags_tag_values" "environment_tag_values"{ - /// parent = "tagKeys/56789" - /// } + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Gcp = Pulumi.Gcp; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var environmentTagValues = Gcp.Tags.GetTagValues.Invoke(new() + /// { + /// Parent = "tagKeys/56789", + /// }); + /// + /// }); /// ``` /// public static Output Invoke(GetTagValuesInvokeArgs args, InvokeOptions? options = null) diff --git a/sdk/go.mod b/sdk/go.mod index d878b6d339..d4f87b9ed9 100644 --- a/sdk/go.mod +++ b/sdk/go.mod @@ -4,7 +4,7 @@ go 1.21 require ( github.com/blang/semver v3.5.1+incompatible - github.com/pulumi/pulumi/sdk/v3 v3.129.0 + github.com/pulumi/pulumi/sdk/v3 v3.130.0 ) require ( diff --git a/sdk/go.sum b/sdk/go.sum index fdd7dcfdb3..06ce7f4097 100644 --- a/sdk/go.sum +++ b/sdk/go.sum @@ -150,8 +150,8 @@ github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435 github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE= github.com/pulumi/esc v0.9.1 h1:HH5eEv8sgyxSpY5a8yePyqFXzA8cvBvapfH8457+mIs= github.com/pulumi/esc v0.9.1/go.mod h1:oEJ6bOsjYlQUpjf70GiX+CXn3VBmpwFDxUTlmtUN84c= -github.com/pulumi/pulumi/sdk/v3 v3.129.0 h1:uZpTTwWTx7Mk8UT9FgatzxzArim47vZ6hzNCKvgvX6A= -github.com/pulumi/pulumi/sdk/v3 v3.129.0/go.mod h1:p1U24en3zt51agx+WlNboSOV8eLlPWYAkxMzVEXKbnY= +github.com/pulumi/pulumi/sdk/v3 v3.130.0 h1:gGJNd+akPqhZ+vrsZmAjSNJn6kGJkitjjkwrmIQMmn8= +github.com/pulumi/pulumi/sdk/v3 v3.130.0/go.mod h1:p1U24en3zt51agx+WlNboSOV8eLlPWYAkxMzVEXKbnY= github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis= diff --git a/sdk/go/gcp/certificateauthority/getAuthority.go b/sdk/go/gcp/certificateauthority/getAuthority.go index 1fc1e8e608..1bfaca3ccc 100644 --- a/sdk/go/gcp/certificateauthority/getAuthority.go +++ b/sdk/go/gcp/certificateauthority/getAuthority.go @@ -14,6 +14,33 @@ import ( // Get info about a Google CAS Certificate Authority. // // ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/certificateauthority" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _default, err := certificateauthority.LookupAuthority(ctx, &certificateauthority.LookupAuthorityArgs{ +// Location: pulumi.StringRef("us-west1"), +// Pool: pulumi.StringRef("pool-name"), +// CertificateAuthorityId: pulumi.StringRef("ca-id"), +// }, nil) +// if err != nil { +// return err +// } +// ctx.Export("csr", _default.PemCsr) +// return nil +// }) +// } +// +// ``` func LookupAuthority(ctx *pulumi.Context, args *LookupAuthorityArgs, opts ...pulumi.InvokeOption) (*LookupAuthorityResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupAuthorityResult diff --git a/sdk/go/gcp/certificatemanager/getCertificateMap.go b/sdk/go/gcp/certificatemanager/getCertificateMap.go index 05618e49f6..00c4b5a729 100644 --- a/sdk/go/gcp/certificatemanager/getCertificateMap.go +++ b/sdk/go/gcp/certificatemanager/getCertificateMap.go @@ -14,6 +14,30 @@ import ( // Get info about a Google Certificate Manager Certificate Map resource. // // ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/certificatemanager" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := certificatemanager.GetCertificateMap(ctx, &certificatemanager.GetCertificateMapArgs{ +// Name: "cert-map", +// }, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` func GetCertificateMap(ctx *pulumi.Context, args *GetCertificateMapArgs, opts ...pulumi.InvokeOption) (*GetCertificateMapResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetCertificateMapResult diff --git a/sdk/go/gcp/cloudidentity/getGroupLookup.go b/sdk/go/gcp/cloudidentity/getGroupLookup.go index a2afbe6dfa..4499247c0f 100644 --- a/sdk/go/gcp/cloudidentity/getGroupLookup.go +++ b/sdk/go/gcp/cloudidentity/getGroupLookup.go @@ -16,6 +16,32 @@ import ( // https://cloud.google.com/identity/docs/concepts/overview#groups // // ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/cloudidentity" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := cloudidentity.GetGroupLookup(ctx, &cloudidentity.GetGroupLookupArgs{ +// GroupKey: cloudidentity.GetGroupLookupGroupKey{ +// Id: "my-group@example.com", +// }, +// }, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` func GetGroupLookup(ctx *pulumi.Context, args *GetGroupLookupArgs, opts ...pulumi.InvokeOption) (*GetGroupLookupResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetGroupLookupResult diff --git a/sdk/go/gcp/cloudidentity/getGroupMemberships.go b/sdk/go/gcp/cloudidentity/getGroupMemberships.go index 8affea6612..9785bac57f 100644 --- a/sdk/go/gcp/cloudidentity/getGroupMemberships.go +++ b/sdk/go/gcp/cloudidentity/getGroupMemberships.go @@ -22,6 +22,30 @@ import ( // - [Official Documentation](https://cloud.google.com/identity/docs/how-to/memberships-google-groups) // // ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/cloudidentity" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := cloudidentity.GetGroupMemberships(ctx, &cloudidentity.GetGroupMembershipsArgs{ +// Group: "groups/123eab45c6defghi", +// }, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` func GetGroupMemberships(ctx *pulumi.Context, args *GetGroupMembershipsArgs, opts ...pulumi.InvokeOption) (*GetGroupMembershipsResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetGroupMembershipsResult diff --git a/sdk/go/gcp/cloudidentity/getGroups.go b/sdk/go/gcp/cloudidentity/getGroups.go index 70e3ce957f..3854dcb8b9 100644 --- a/sdk/go/gcp/cloudidentity/getGroups.go +++ b/sdk/go/gcp/cloudidentity/getGroups.go @@ -16,6 +16,30 @@ import ( // https://cloud.google.com/identity/docs/concepts/overview#groups // // ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/cloudidentity" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := cloudidentity.GetGroups(ctx, &cloudidentity.GetGroupsArgs{ +// Parent: "customers/A01b123xz", +// }, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` func GetGroups(ctx *pulumi.Context, args *GetGroupsArgs, opts ...pulumi.InvokeOption) (*GetGroupsResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetGroupsResult diff --git a/sdk/go/gcp/compute/diskAsyncReplication.go b/sdk/go/gcp/compute/diskAsyncReplication.go index f7676ae7f1..89940400a4 100644 --- a/sdk/go/gcp/compute/diskAsyncReplication.go +++ b/sdk/go/gcp/compute/diskAsyncReplication.go @@ -17,6 +17,54 @@ import ( // and the [API](https://cloud.google.com/compute/docs/reference/rest/v1/disks). // // ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := compute.NewDisk(ctx, "primary-disk", &compute.DiskArgs{ +// Name: pulumi.String("primary-disk"), +// Type: pulumi.String("pd-ssd"), +// Zone: pulumi.String("europe-west4-a"), +// PhysicalBlockSizeBytes: pulumi.Int(4096), +// }) +// if err != nil { +// return err +// } +// _, err = compute.NewDisk(ctx, "secondary-disk", &compute.DiskArgs{ +// Name: pulumi.String("secondary-disk"), +// Type: pulumi.String("pd-ssd"), +// Zone: pulumi.String("europe-west3-a"), +// AsyncPrimaryDisk: &compute.DiskAsyncPrimaryDiskArgs{ +// Disk: primary_disk.ID(), +// }, +// PhysicalBlockSizeBytes: pulumi.Int(4096), +// }) +// if err != nil { +// return err +// } +// _, err = compute.NewDiskAsyncReplication(ctx, "replication", &compute.DiskAsyncReplicationArgs{ +// PrimaryDisk: primary_disk.ID(), +// SecondaryDisk: &compute.DiskAsyncReplicationSecondaryDiskArgs{ +// Disk: secondary_disk.ID(), +// }, +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` type DiskAsyncReplication struct { pulumi.CustomResourceState diff --git a/sdk/go/gcp/compute/getBackendBucket.go b/sdk/go/gcp/compute/getBackendBucket.go index b4f5d5ef13..b8629e8cc1 100644 --- a/sdk/go/gcp/compute/getBackendBucket.go +++ b/sdk/go/gcp/compute/getBackendBucket.go @@ -14,6 +14,30 @@ import ( // Get information about a BackendBucket. // // ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := compute.LookupBackendBucket(ctx, &compute.LookupBackendBucketArgs{ +// Name: "my-backend", +// }, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` func LookupBackendBucket(ctx *pulumi.Context, args *LookupBackendBucketArgs, opts ...pulumi.InvokeOption) (*LookupBackendBucketResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupBackendBucketResult diff --git a/sdk/go/gcp/compute/getBackendService.go b/sdk/go/gcp/compute/getBackendService.go index fde5cbb0fd..1f69f16913 100644 --- a/sdk/go/gcp/compute/getBackendService.go +++ b/sdk/go/gcp/compute/getBackendService.go @@ -16,6 +16,37 @@ import ( // and the [API](https://cloud.google.com/compute/docs/reference/latest/backendServices). // // ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// baz, err := compute.LookupBackendService(ctx, &compute.LookupBackendServiceArgs{ +// Name: "foobar", +// }, nil) +// if err != nil { +// return err +// } +// _, err = compute.NewBackendService(ctx, "default", &compute.BackendServiceArgs{ +// Name: pulumi.String("backend-service"), +// HealthChecks: pulumi.String(baz.HealthChecks[0]), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` func LookupBackendService(ctx *pulumi.Context, args *LookupBackendServiceArgs, opts ...pulumi.InvokeOption) (*LookupBackendServiceResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupBackendServiceResult diff --git a/sdk/go/gcp/compute/getCertificate.go b/sdk/go/gcp/compute/getCertificate.go index d91f5ddd70..101b850313 100644 --- a/sdk/go/gcp/compute/getCertificate.go +++ b/sdk/go/gcp/compute/getCertificate.go @@ -14,6 +14,33 @@ import ( // Get info about a Google Compute SSL Certificate from its name. // // ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// myCert, err := compute.GetCertificate(ctx, &compute.GetCertificateArgs{ +// Name: "my-cert", +// }, nil) +// if err != nil { +// return err +// } +// ctx.Export("certificate", myCert.Certificate) +// ctx.Export("certificateId", myCert.CertificateId) +// ctx.Export("selfLink", myCert.SelfLink) +// return nil +// }) +// } +// +// ``` func GetCertificate(ctx *pulumi.Context, args *GetCertificateArgs, opts ...pulumi.InvokeOption) (*GetCertificateResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetCertificateResult diff --git a/sdk/go/gcp/compute/getForwardingRule.go b/sdk/go/gcp/compute/getForwardingRule.go index 218e71b2c9..dd362a1471 100644 --- a/sdk/go/gcp/compute/getForwardingRule.go +++ b/sdk/go/gcp/compute/getForwardingRule.go @@ -14,6 +14,30 @@ import ( // Get a forwarding rule within GCE from its name. // // ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := compute.LookupForwardingRule(ctx, &compute.LookupForwardingRuleArgs{ +// Name: "forwarding-rule-us-east1", +// }, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` func LookupForwardingRule(ctx *pulumi.Context, args *LookupForwardingRuleArgs, opts ...pulumi.InvokeOption) (*LookupForwardingRuleResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupForwardingRuleResult diff --git a/sdk/go/gcp/compute/getForwardingRules.go b/sdk/go/gcp/compute/getForwardingRules.go index d73b48efd9..6e2371f12e 100644 --- a/sdk/go/gcp/compute/getForwardingRules.go +++ b/sdk/go/gcp/compute/getForwardingRules.go @@ -14,6 +14,31 @@ import ( // List all networks in a specified Google Cloud project. // // ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := compute.GetForwardingRules(ctx, &compute.GetForwardingRulesArgs{ +// Project: pulumi.StringRef("my-cloud-project"), +// Region: pulumi.StringRef("us-central1"), +// }, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` func GetForwardingRules(ctx *pulumi.Context, args *GetForwardingRulesArgs, opts ...pulumi.InvokeOption) (*GetForwardingRulesResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetForwardingRulesResult diff --git a/sdk/go/gcp/compute/getGlobalForwardingRule.go b/sdk/go/gcp/compute/getGlobalForwardingRule.go index cb61df0a10..4aa88a7c3c 100644 --- a/sdk/go/gcp/compute/getGlobalForwardingRule.go +++ b/sdk/go/gcp/compute/getGlobalForwardingRule.go @@ -14,6 +14,30 @@ import ( // Get a global forwarding rule within GCE from its name. // // ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := compute.LookupGlobalForwardingRule(ctx, &compute.LookupGlobalForwardingRuleArgs{ +// Name: "forwarding-rule-global", +// }, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` func LookupGlobalForwardingRule(ctx *pulumi.Context, args *LookupGlobalForwardingRuleArgs, opts ...pulumi.InvokeOption) (*LookupGlobalForwardingRuleResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupGlobalForwardingRuleResult diff --git a/sdk/go/gcp/compute/getHcVpnGateway.go b/sdk/go/gcp/compute/getHcVpnGateway.go index b3c6f3a04f..4dd960eb30 100644 --- a/sdk/go/gcp/compute/getHcVpnGateway.go +++ b/sdk/go/gcp/compute/getHcVpnGateway.go @@ -14,6 +14,30 @@ import ( // Get a HA VPN Gateway within GCE from its name. // // ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := compute.GetHcVpnGateway(ctx, &compute.GetHcVpnGatewayArgs{ +// Name: "foobar", +// }, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` func GetHcVpnGateway(ctx *pulumi.Context, args *GetHcVpnGatewayArgs, opts ...pulumi.InvokeOption) (*GetHcVpnGatewayResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetHcVpnGatewayResult diff --git a/sdk/go/gcp/compute/getHealthCheck.go b/sdk/go/gcp/compute/getHealthCheck.go index a5d0594dd6..b46d44158a 100644 --- a/sdk/go/gcp/compute/getHealthCheck.go +++ b/sdk/go/gcp/compute/getHealthCheck.go @@ -14,6 +14,30 @@ import ( // Get information about a HealthCheck. // // ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := compute.LookupHealthCheck(ctx, &compute.LookupHealthCheckArgs{ +// Name: "my-hc", +// }, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` func LookupHealthCheck(ctx *pulumi.Context, args *LookupHealthCheckArgs, opts ...pulumi.InvokeOption) (*LookupHealthCheckResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupHealthCheckResult diff --git a/sdk/go/gcp/compute/getLBIPRanges.go b/sdk/go/gcp/compute/getLBIPRanges.go index 219d882e61..50119c579a 100644 --- a/sdk/go/gcp/compute/getLBIPRanges.go +++ b/sdk/go/gcp/compute/getLBIPRanges.go @@ -16,6 +16,47 @@ import ( // https://cloud.google.com/compute/docs/load-balancing/health-checks#health_check_source_ips_and_firewall_rules // // ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// ranges, err := compute.GetLBIPRanges(ctx, nil, nil) +// if err != nil { +// return err +// } +// _, err = compute.NewFirewall(ctx, "lb", &compute.FirewallArgs{ +// Name: pulumi.String("lb-firewall"), +// Network: pulumi.Any(main.Name), +// Allows: compute.FirewallAllowArray{ +// &compute.FirewallAllowArgs{ +// Protocol: pulumi.String("tcp"), +// Ports: pulumi.StringArray{ +// pulumi.String("80"), +// }, +// }, +// }, +// SourceRanges: interface{}(ranges.Networks), +// TargetTags: pulumi.StringArray{ +// pulumi.String("InstanceBehindLoadBalancer"), +// }, +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` func GetLBIPRanges(ctx *pulumi.Context, opts ...pulumi.InvokeOption) (*GetLBIPRangesResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetLBIPRangesResult diff --git a/sdk/go/gcp/compute/getNetblockIPRanges.go b/sdk/go/gcp/compute/getNetblockIPRanges.go index ac84550e44..57ce7573b3 100644 --- a/sdk/go/gcp/compute/getNetblockIPRanges.go +++ b/sdk/go/gcp/compute/getNetblockIPRanges.go @@ -17,7 +17,78 @@ import ( // // ### Cloud Ranges // +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// netblock, err := compute.GetNetblockIPRanges(ctx, nil, nil) +// if err != nil { +// return err +// } +// ctx.Export("cidrBlocks", netblock.CidrBlocks) +// ctx.Export("cidrBlocksIpv4", netblock.CidrBlocksIpv4s) +// ctx.Export("cidrBlocksIpv6", netblock.CidrBlocksIpv6s) +// return nil +// }) +// } +// +// ``` +// // ### Allow Health Checks +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// legacy_hcs, err := compute.GetNetblockIPRanges(ctx, &compute.GetNetblockIPRangesArgs{ +// RangeType: pulumi.StringRef("legacy-health-checkers"), +// }, nil) +// if err != nil { +// return err +// } +// _, err = compute.NewNetwork(ctx, "default", &compute.NetworkArgs{ +// Name: pulumi.String("test-network"), +// }) +// if err != nil { +// return err +// } +// _, err = compute.NewFirewall(ctx, "allow-hcs", &compute.FirewallArgs{ +// Name: pulumi.String("allow-hcs"), +// Network: _default.Name, +// Allows: compute.FirewallAllowArray{ +// &compute.FirewallAllowArgs{ +// Protocol: pulumi.String("tcp"), +// Ports: pulumi.StringArray{ +// pulumi.String("80"), +// }, +// }, +// }, +// SourceRanges: interface{}(legacy_hcs.CidrBlocksIpv4s), +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` func GetNetblockIPRanges(ctx *pulumi.Context, args *GetNetblockIPRangesArgs, opts ...pulumi.InvokeOption) (*GetNetblockIPRangesResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetNetblockIPRangesResult diff --git a/sdk/go/gcp/compute/getNetwork.go b/sdk/go/gcp/compute/getNetwork.go index 16cb3a876a..c5b1311326 100644 --- a/sdk/go/gcp/compute/getNetwork.go +++ b/sdk/go/gcp/compute/getNetwork.go @@ -14,6 +14,30 @@ import ( // Get a network within GCE from its name. // // ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := compute.LookupNetwork(ctx, &compute.LookupNetworkArgs{ +// Name: "default-us-east1", +// }, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` func LookupNetwork(ctx *pulumi.Context, args *LookupNetworkArgs, opts ...pulumi.InvokeOption) (*LookupNetworkResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupNetworkResult diff --git a/sdk/go/gcp/compute/getNetworks.go b/sdk/go/gcp/compute/getNetworks.go index 18265fb45f..932becf71a 100644 --- a/sdk/go/gcp/compute/getNetworks.go +++ b/sdk/go/gcp/compute/getNetworks.go @@ -14,6 +14,30 @@ import ( // List all networks in a specified Google Cloud project. // // ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := compute.GetNetworks(ctx, &compute.GetNetworksArgs{ +// Project: pulumi.StringRef("my-cloud-project"), +// }, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` func GetNetworks(ctx *pulumi.Context, args *GetNetworksArgs, opts ...pulumi.InvokeOption) (*GetNetworksResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetNetworksResult diff --git a/sdk/go/gcp/compute/getRegionSslCertificate.go b/sdk/go/gcp/compute/getRegionSslCertificate.go index f7fe1cb50b..a4812aa037 100644 --- a/sdk/go/gcp/compute/getRegionSslCertificate.go +++ b/sdk/go/gcp/compute/getRegionSslCertificate.go @@ -14,6 +14,33 @@ import ( // Get info about a Region Google Compute SSL Certificate from its name. // // ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// myCert, err := compute.LookupRegionSslCertificate(ctx, &compute.LookupRegionSslCertificateArgs{ +// Name: "my-cert", +// }, nil) +// if err != nil { +// return err +// } +// ctx.Export("certificate", myCert.Certificate) +// ctx.Export("certificateId", myCert.CertificateId) +// ctx.Export("selfLink", myCert.SelfLink) +// return nil +// }) +// } +// +// ``` func LookupRegionSslCertificate(ctx *pulumi.Context, args *LookupRegionSslCertificateArgs, opts ...pulumi.InvokeOption) (*LookupRegionSslCertificateResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupRegionSslCertificateResult diff --git a/sdk/go/gcp/compute/getSSLPolicy.go b/sdk/go/gcp/compute/getSSLPolicy.go index d2fed51047..ad17062c1c 100644 --- a/sdk/go/gcp/compute/getSSLPolicy.go +++ b/sdk/go/gcp/compute/getSSLPolicy.go @@ -16,6 +16,30 @@ import ( // For more information see [the official documentation](https://cloud.google.com/compute/docs/load-balancing/ssl-policies). // // ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := compute.LookupSSLPolicy(ctx, &compute.LookupSSLPolicyArgs{ +// Name: "production-ssl-policy", +// }, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` func LookupSSLPolicy(ctx *pulumi.Context, args *LookupSSLPolicyArgs, opts ...pulumi.InvokeOption) (*LookupSSLPolicyResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupSSLPolicyResult diff --git a/sdk/go/gcp/compute/getVPNGateway.go b/sdk/go/gcp/compute/getVPNGateway.go index 1f80d80196..6eeda51e14 100644 --- a/sdk/go/gcp/compute/getVPNGateway.go +++ b/sdk/go/gcp/compute/getVPNGateway.go @@ -14,6 +14,30 @@ import ( // Get a VPN gateway within GCE from its name. // // ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := compute.LookupVPNGateway(ctx, &compute.LookupVPNGatewayArgs{ +// Name: "vpn-gateway-us-east1", +// }, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` func LookupVPNGateway(ctx *pulumi.Context, args *LookupVPNGatewayArgs, opts ...pulumi.InvokeOption) (*LookupVPNGatewayResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupVPNGatewayResult diff --git a/sdk/go/gcp/compute/instanceTemplate.go b/sdk/go/gcp/compute/instanceTemplate.go index 3da572831a..c8e105c8ff 100644 --- a/sdk/go/gcp/compute/instanceTemplate.go +++ b/sdk/go/gcp/compute/instanceTemplate.go @@ -249,10 +249,79 @@ import ( // data source, which will retrieve the latest image on every `pulumi apply`, and will update // the template to use that specific image: // +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// myImage, err := compute.LookupImage(ctx, &compute.LookupImageArgs{ +// Family: pulumi.StringRef("debian-11"), +// Project: pulumi.StringRef("debian-cloud"), +// }, nil) +// if err != nil { +// return err +// } +// _, err = compute.NewInstanceTemplate(ctx, "instance_template", &compute.InstanceTemplateArgs{ +// NamePrefix: pulumi.String("instance-template-"), +// MachineType: pulumi.String("e2-medium"), +// Region: pulumi.String("us-central1"), +// Disks: compute.InstanceTemplateDiskArray{ +// &compute.InstanceTemplateDiskArgs{ +// SourceImage: pulumi.String(myImage.SelfLink), +// }, +// }, +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// // To have instances update to the latest on every scaling event or instance re-creation, // use the family as the image for the disk, and it will use GCP's default behavior, setting // the image for the template to the family: // +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := compute.NewInstanceTemplate(ctx, "instance_template", &compute.InstanceTemplateArgs{ +// NamePrefix: pulumi.String("instance-template-"), +// MachineType: pulumi.String("e2-medium"), +// Region: pulumi.String("us-central1"), +// Disks: compute.InstanceTemplateDiskArray{ +// &compute.InstanceTemplateDiskArgs{ +// SourceImage: pulumi.String("debian-cloud/debian-11"), +// }, +// }, +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// // ## Import // // Instance templates can be imported using any of these accepted formats: diff --git a/sdk/go/gcp/container/getCluster.go b/sdk/go/gcp/container/getCluster.go index d541affdb5..850ab495b0 100644 --- a/sdk/go/gcp/container/getCluster.go +++ b/sdk/go/gcp/container/getCluster.go @@ -14,6 +14,35 @@ import ( // Get info about a GKE cluster from its name and location. // // ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/container" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// myCluster, err := container.LookupCluster(ctx, &container.LookupClusterArgs{ +// Name: "my-cluster", +// Location: pulumi.StringRef("us-east1-a"), +// }, nil) +// if err != nil { +// return err +// } +// ctx.Export("endpoint", myCluster.Endpoint) +// ctx.Export("instanceGroupUrls", myCluster.NodePools[0].InstanceGroupUrls) +// ctx.Export("nodeConfig", myCluster.NodeConfigs) +// ctx.Export("nodePools", myCluster.NodePools) +// return nil +// }) +// } +// +// ``` func LookupCluster(ctx *pulumi.Context, args *LookupClusterArgs, opts ...pulumi.InvokeOption) (*LookupClusterResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupClusterResult diff --git a/sdk/go/gcp/dataproc/getMetastoreService.go b/sdk/go/gcp/dataproc/getMetastoreService.go index 61afea1763..7cc3d4b001 100644 --- a/sdk/go/gcp/dataproc/getMetastoreService.go +++ b/sdk/go/gcp/dataproc/getMetastoreService.go @@ -14,6 +14,31 @@ import ( // Get a Dataproc Metastore service from Google Cloud by its id and location. // // ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/dataproc" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := dataproc.LookupMetastoreService(ctx, &dataproc.LookupMetastoreServiceArgs{ +// ServiceId: "foo-bar", +// Location: "global", +// }, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` func LookupMetastoreService(ctx *pulumi.Context, args *LookupMetastoreServiceArgs, opts ...pulumi.InvokeOption) (*LookupMetastoreServiceResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupMetastoreServiceResult diff --git a/sdk/go/gcp/dns/getRecordSet.go b/sdk/go/gcp/dns/getRecordSet.go index 1741c7ae8e..41660600c5 100644 --- a/sdk/go/gcp/dns/getRecordSet.go +++ b/sdk/go/gcp/dns/getRecordSet.go @@ -18,6 +18,40 @@ import ( // [API](https://cloud.google.com/dns/docs/reference/v1/resourceRecordSets) // // ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "fmt" +// +// "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/dns" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// sample, err := dns.LookupManagedZone(ctx, &dns.LookupManagedZoneArgs{ +// Name: "sample-zone", +// }, nil) +// if err != nil { +// return err +// } +// _, err = dns.LookupRecordSet(ctx, &dns.LookupRecordSetArgs{ +// ManagedZone: sample.Name, +// Name: fmt.Sprintf("my-record.%v", sample.DnsName), +// Type: "A", +// }, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` func LookupRecordSet(ctx *pulumi.Context, args *LookupRecordSetArgs, opts ...pulumi.InvokeOption) (*LookupRecordSetResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupRecordSetResult diff --git a/sdk/go/gcp/filestore/getInstance.go b/sdk/go/gcp/filestore/getInstance.go index 017e4a6d55..4b7ce3450a 100644 --- a/sdk/go/gcp/filestore/getInstance.go +++ b/sdk/go/gcp/filestore/getInstance.go @@ -14,6 +14,33 @@ import ( // Get info about a Google Cloud Filestore instance. // // ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/filestore" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// myInstance, err := filestore.LookupInstance(ctx, &filestore.LookupInstanceArgs{ +// Name: "my-filestore-instance", +// }, nil) +// if err != nil { +// return err +// } +// ctx.Export("instanceIpAddresses", myInstance.Networks.IpAddresses) +// ctx.Export("instanceConnectMode", myInstance.Networks.ConnectMode) +// ctx.Export("instanceFileShareName", myInstance.FileShares.Name) +// return nil +// }) +// } +// +// ``` func LookupInstance(ctx *pulumi.Context, args *LookupInstanceArgs, opts ...pulumi.InvokeOption) (*LookupInstanceResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupInstanceResult diff --git a/sdk/go/gcp/iam/getWorkloadIdentityPool.go b/sdk/go/gcp/iam/getWorkloadIdentityPool.go index 42e283dc92..7189562e2b 100644 --- a/sdk/go/gcp/iam/getWorkloadIdentityPool.go +++ b/sdk/go/gcp/iam/getWorkloadIdentityPool.go @@ -14,6 +14,30 @@ import ( // Get a IAM workload identity pool from Google Cloud by its id. // > **Note:** The following resource requires the Beta IAM role `roles/iam.workloadIdentityPoolAdmin` in order to succeed. `OWNER` and `EDITOR` roles do not include the necessary permissions. // ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/iam" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := iam.LookupWorkloadIdentityPool(ctx, &iam.LookupWorkloadIdentityPoolArgs{ +// WorkloadIdentityPoolId: "foo-pool", +// }, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` func LookupWorkloadIdentityPool(ctx *pulumi.Context, args *LookupWorkloadIdentityPoolArgs, opts ...pulumi.InvokeOption) (*LookupWorkloadIdentityPoolResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupWorkloadIdentityPoolResult diff --git a/sdk/go/gcp/iam/getWorkloadIdentityPoolProvider.go b/sdk/go/gcp/iam/getWorkloadIdentityPoolProvider.go index 19f57e9085..0dac7cd163 100644 --- a/sdk/go/gcp/iam/getWorkloadIdentityPoolProvider.go +++ b/sdk/go/gcp/iam/getWorkloadIdentityPoolProvider.go @@ -14,6 +14,31 @@ import ( // Get a IAM workload identity provider from Google Cloud by its id. // // ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/iam" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := iam.LookupWorkloadIdentityPoolProvider(ctx, &iam.LookupWorkloadIdentityPoolProviderArgs{ +// WorkloadIdentityPoolId: "foo-pool", +// WorkloadIdentityPoolProviderId: "bar-provider", +// }, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` func LookupWorkloadIdentityPoolProvider(ctx *pulumi.Context, args *LookupWorkloadIdentityPoolProviderArgs, opts ...pulumi.InvokeOption) (*LookupWorkloadIdentityPoolProviderResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupWorkloadIdentityPoolProviderResult diff --git a/sdk/go/gcp/iap/getClient.go b/sdk/go/gcp/iap/getClient.go index fe7c08db57..d566ebf3c3 100644 --- a/sdk/go/gcp/iap/getClient.go +++ b/sdk/go/gcp/iap/getClient.go @@ -14,6 +14,40 @@ import ( // Get info about a Google Cloud IAP Client. // // ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "fmt" +// +// "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/iap" +// "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/organizations" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// project, err := organizations.LookupProject(ctx, &organizations.LookupProjectArgs{ +// ProjectId: pulumi.StringRef("foobar"), +// }, nil) +// if err != nil { +// return err +// } +// _, err = iap.LookupClient(ctx, &iap.LookupClientArgs{ +// Brand: fmt.Sprintf("projects/%v/brands/[BRAND_NUMBER]", project.Number), +// ClientId: apps.Googleusercontent.Com, +// }, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` func LookupClient(ctx *pulumi.Context, args *LookupClientArgs, opts ...pulumi.InvokeOption) (*LookupClientResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupClientResult diff --git a/sdk/go/gcp/monitoring/getSecretVersion.go b/sdk/go/gcp/monitoring/getSecretVersion.go index 4074d289e2..fc7a71a509 100644 --- a/sdk/go/gcp/monitoring/getSecretVersion.go +++ b/sdk/go/gcp/monitoring/getSecretVersion.go @@ -11,7 +11,7 @@ import ( "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) -// Get the value and metadata from a Secret Manager secret version. For more information see the official documentation datasource. +// Get the value and metadata from a Secret Manager secret version. For more information see the [official documentation](https://cloud.google.com/secret-manager/docs/) and [API](https://cloud.google.com/secret-manager/docs/reference/rest/v1/projects.secrets.versions). If you don't need the metadata (i.e., if you want to use a more limited role to access the secret version only), see also the secretmanager.getSecretVersionAccess datasource. // // ## Example Usage // diff --git a/sdk/go/gcp/organizations/getActiveFolder.go b/sdk/go/gcp/organizations/getActiveFolder.go index 75b434dd46..c6338a1b86 100644 --- a/sdk/go/gcp/organizations/getActiveFolder.go +++ b/sdk/go/gcp/organizations/getActiveFolder.go @@ -14,6 +14,31 @@ import ( // Get an active folder within GCP by `displayName` and `parent`. // // ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/organizations" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := organizations.GetActiveFolder(ctx, &organizations.GetActiveFolderArgs{ +// DisplayName: "Department 1", +// Parent: "organizations/1234567", +// }, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` func GetActiveFolder(ctx *pulumi.Context, args *GetActiveFolderArgs, opts ...pulumi.InvokeOption) (*GetActiveFolderResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetActiveFolderResult diff --git a/sdk/go/gcp/organizations/getClientConfig.go b/sdk/go/gcp/organizations/getClientConfig.go index bd05e77e3d..a7b3c559a2 100644 --- a/sdk/go/gcp/organizations/getClientConfig.go +++ b/sdk/go/gcp/organizations/getClientConfig.go @@ -13,7 +13,28 @@ import ( // ## Example Usage // -// ### Configure Kubernetes Provider With OAuth2 Access Token +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/organizations" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// current, err := organizations.GetClientConfig(ctx, nil, nil) +// if err != nil { +// return err +// } +// ctx.Export("project", current.Project) +// return nil +// }) +// } +// +// ``` func GetClientConfig(ctx *pulumi.Context, opts ...pulumi.InvokeOption) (*GetClientConfigResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetClientConfigResult diff --git a/sdk/go/gcp/redis/getInstance.go b/sdk/go/gcp/redis/getInstance.go index 23cf4a3434..c067694755 100644 --- a/sdk/go/gcp/redis/getInstance.go +++ b/sdk/go/gcp/redis/getInstance.go @@ -14,6 +14,33 @@ import ( // Get info about a Google Cloud Redis instance. // // ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/redis" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// myInstance, err := redis.LookupInstance(ctx, &redis.LookupInstanceArgs{ +// Name: "my-redis-instance", +// }, nil) +// if err != nil { +// return err +// } +// ctx.Export("instanceMemorySizeGb", myInstance.MemorySizeGb) +// ctx.Export("instanceConnectMode", myInstance.ConnectMode) +// ctx.Export("instanceAuthorizedNetwork", myInstance.AuthorizedNetwork) +// return nil +// }) +// } +// +// ``` func LookupInstance(ctx *pulumi.Context, args *LookupInstanceArgs, opts ...pulumi.InvokeOption) (*LookupInstanceResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupInstanceResult diff --git a/sdk/go/gcp/secretmanager/getSecretVersion.go b/sdk/go/gcp/secretmanager/getSecretVersion.go index 3d8269cecf..962c1746cd 100644 --- a/sdk/go/gcp/secretmanager/getSecretVersion.go +++ b/sdk/go/gcp/secretmanager/getSecretVersion.go @@ -11,7 +11,7 @@ import ( "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) -// Get the value and metadata from a Secret Manager secret version. For more information see the official documentation datasource. +// Get the value and metadata from a Secret Manager secret version. For more information see the [official documentation](https://cloud.google.com/secret-manager/docs/) and [API](https://cloud.google.com/secret-manager/docs/reference/rest/v1/projects.secrets.versions). If you don't need the metadata (i.e., if you want to use a more limited role to access the secret version only), see also the secretmanager.getSecretVersionAccess datasource. // // ## Example Usage // diff --git a/sdk/go/gcp/spanner/getInstance.go b/sdk/go/gcp/spanner/getInstance.go index e65d8c9ab9..525541cb4b 100644 --- a/sdk/go/gcp/spanner/getInstance.go +++ b/sdk/go/gcp/spanner/getInstance.go @@ -14,6 +14,30 @@ import ( // Get a spanner instance from Google Cloud by its name. // // ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/spanner" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := spanner.LookupInstance(ctx, &spanner.LookupInstanceArgs{ +// Name: "bar", +// }, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` func LookupInstance(ctx *pulumi.Context, args *LookupInstanceArgs, opts ...pulumi.InvokeOption) (*LookupInstanceResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupInstanceResult diff --git a/sdk/go/gcp/tags/getTagKey.go b/sdk/go/gcp/tags/getTagKey.go index eedd26581b..50184af537 100644 --- a/sdk/go/gcp/tags/getTagKey.go +++ b/sdk/go/gcp/tags/getTagKey.go @@ -14,6 +14,55 @@ import ( // Get a tag key by org or project `parent` and `shortName`. // // ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/tags" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := tags.LookupTagKey(ctx, &tags.LookupTagKeyArgs{ +// Parent: "organizations/12345", +// ShortName: "environment", +// }, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/tags" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := tags.LookupTagKey(ctx, &tags.LookupTagKeyArgs{ +// Parent: "projects/abc", +// ShortName: "environment", +// }, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` func LookupTagKey(ctx *pulumi.Context, args *LookupTagKeyArgs, opts ...pulumi.InvokeOption) (*LookupTagKeyResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupTagKeyResult diff --git a/sdk/go/gcp/tags/getTagKeys.go b/sdk/go/gcp/tags/getTagKeys.go index 9845594be4..983bbab426 100644 --- a/sdk/go/gcp/tags/getTagKeys.go +++ b/sdk/go/gcp/tags/getTagKeys.go @@ -14,6 +14,53 @@ import ( // Get tag keys by org or project `parent`. // // ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/tags" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := tags.GetTagKeys(ctx, &tags.GetTagKeysArgs{ +// Parent: "organizations/12345", +// }, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/tags" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := tags.GetTagKeys(ctx, &tags.GetTagKeysArgs{ +// Parent: "projects/abc", +// }, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` func GetTagKeys(ctx *pulumi.Context, args *GetTagKeysArgs, opts ...pulumi.InvokeOption) (*GetTagKeysResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetTagKeysResult diff --git a/sdk/go/gcp/tags/getTagValue.go b/sdk/go/gcp/tags/getTagValue.go index 95c2d7638d..9ee3977cb1 100644 --- a/sdk/go/gcp/tags/getTagValue.go +++ b/sdk/go/gcp/tags/getTagValue.go @@ -14,6 +14,31 @@ import ( // Get a tag value by `parent` key and `shortName`. // // ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/tags" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := tags.LookupTagValue(ctx, &tags.LookupTagValueArgs{ +// Parent: "tagKeys/56789", +// ShortName: "production", +// }, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` func LookupTagValue(ctx *pulumi.Context, args *LookupTagValueArgs, opts ...pulumi.InvokeOption) (*LookupTagValueResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupTagValueResult diff --git a/sdk/go/gcp/tags/getTagValues.go b/sdk/go/gcp/tags/getTagValues.go index b989eeeb13..40b47d673e 100644 --- a/sdk/go/gcp/tags/getTagValues.go +++ b/sdk/go/gcp/tags/getTagValues.go @@ -14,6 +14,30 @@ import ( // Get tag values from a `parent` key. // // ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/tags" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := tags.GetTagValues(ctx, &tags.GetTagValuesArgs{ +// Parent: "tagKeys/56789", +// }, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` func GetTagValues(ctx *pulumi.Context, args *GetTagValuesArgs, opts ...pulumi.InvokeOption) (*GetTagValuesResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetTagValuesResult diff --git a/sdk/java/src/main/java/com/pulumi/gcp/certificateauthority/CertificateauthorityFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/certificateauthority/CertificateauthorityFunctions.java index df7bfda317..7b21a118bc 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/certificateauthority/CertificateauthorityFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/certificateauthority/CertificateauthorityFunctions.java @@ -25,6 +25,42 @@ public final class CertificateauthorityFunctions { * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.certificateauthority.CertificateauthorityFunctions;
+     * import com.pulumi.gcp.certificateauthority.inputs.GetAuthorityArgs;
+     * 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) {
+     *         final var default = CertificateauthorityFunctions.getAuthority(GetAuthorityArgs.builder()
+     *             .location("us-west1")
+     *             .pool("pool-name")
+     *             .certificateAuthorityId("ca-id")
+     *             .build());
+     * 
+     *         ctx.export("csr", default_.pemCsr());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static Output getAuthority() { return getAuthority(GetAuthorityArgs.Empty, InvokeOptions.Empty); @@ -34,6 +70,42 @@ public static Output getAuthority() { * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.certificateauthority.CertificateauthorityFunctions;
+     * import com.pulumi.gcp.certificateauthority.inputs.GetAuthorityArgs;
+     * 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) {
+     *         final var default = CertificateauthorityFunctions.getAuthority(GetAuthorityArgs.builder()
+     *             .location("us-west1")
+     *             .pool("pool-name")
+     *             .certificateAuthorityId("ca-id")
+     *             .build());
+     * 
+     *         ctx.export("csr", default_.pemCsr());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static CompletableFuture getAuthorityPlain() { return getAuthorityPlain(GetAuthorityPlainArgs.Empty, InvokeOptions.Empty); @@ -43,6 +115,42 @@ public static CompletableFuture getAuthorityPlain() { * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.certificateauthority.CertificateauthorityFunctions;
+     * import com.pulumi.gcp.certificateauthority.inputs.GetAuthorityArgs;
+     * 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) {
+     *         final var default = CertificateauthorityFunctions.getAuthority(GetAuthorityArgs.builder()
+     *             .location("us-west1")
+     *             .pool("pool-name")
+     *             .certificateAuthorityId("ca-id")
+     *             .build());
+     * 
+     *         ctx.export("csr", default_.pemCsr());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static Output getAuthority(GetAuthorityArgs args) { return getAuthority(args, InvokeOptions.Empty); @@ -52,6 +160,42 @@ public static Output getAuthority(GetAuthorityArgs args) { * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.certificateauthority.CertificateauthorityFunctions;
+     * import com.pulumi.gcp.certificateauthority.inputs.GetAuthorityArgs;
+     * 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) {
+     *         final var default = CertificateauthorityFunctions.getAuthority(GetAuthorityArgs.builder()
+     *             .location("us-west1")
+     *             .pool("pool-name")
+     *             .certificateAuthorityId("ca-id")
+     *             .build());
+     * 
+     *         ctx.export("csr", default_.pemCsr());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static CompletableFuture getAuthorityPlain(GetAuthorityPlainArgs args) { return getAuthorityPlain(args, InvokeOptions.Empty); @@ -61,6 +205,42 @@ public static CompletableFuture getAuthorityPlain(GetAuthori * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.certificateauthority.CertificateauthorityFunctions;
+     * import com.pulumi.gcp.certificateauthority.inputs.GetAuthorityArgs;
+     * 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) {
+     *         final var default = CertificateauthorityFunctions.getAuthority(GetAuthorityArgs.builder()
+     *             .location("us-west1")
+     *             .pool("pool-name")
+     *             .certificateAuthorityId("ca-id")
+     *             .build());
+     * 
+     *         ctx.export("csr", default_.pemCsr());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static Output getAuthority(GetAuthorityArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:certificateauthority/getAuthority:getAuthority", TypeShape.of(GetAuthorityResult.class), args, Utilities.withVersion(options)); @@ -70,6 +250,42 @@ public static Output getAuthority(GetAuthorityArgs args, Inv * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.certificateauthority.CertificateauthorityFunctions;
+     * import com.pulumi.gcp.certificateauthority.inputs.GetAuthorityArgs;
+     * 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) {
+     *         final var default = CertificateauthorityFunctions.getAuthority(GetAuthorityArgs.builder()
+     *             .location("us-west1")
+     *             .pool("pool-name")
+     *             .certificateAuthorityId("ca-id")
+     *             .build());
+     * 
+     *         ctx.export("csr", default_.pemCsr());
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static CompletableFuture getAuthorityPlain(GetAuthorityPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("gcp:certificateauthority/getAuthority:getAuthority", TypeShape.of(GetAuthorityResult.class), args, Utilities.withVersion(options)); diff --git a/sdk/java/src/main/java/com/pulumi/gcp/certificatemanager/CertificatemanagerFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/certificatemanager/CertificatemanagerFunctions.java index 52dbcd8159..a838957dae 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/certificatemanager/CertificatemanagerFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/certificatemanager/CertificatemanagerFunctions.java @@ -19,6 +19,39 @@ public final class CertificatemanagerFunctions { * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.certificatemanager.CertificatemanagerFunctions;
+     * import com.pulumi.gcp.certificatemanager.inputs.GetCertificateMapArgs;
+     * 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) {
+     *         final var default = CertificatemanagerFunctions.getCertificateMap(GetCertificateMapArgs.builder()
+     *             .name("cert-map")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static Output getCertificateMap(GetCertificateMapArgs args) { return getCertificateMap(args, InvokeOptions.Empty); @@ -28,6 +61,39 @@ public static Output getCertificateMap(GetCertificateMa * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.certificatemanager.CertificatemanagerFunctions;
+     * import com.pulumi.gcp.certificatemanager.inputs.GetCertificateMapArgs;
+     * 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) {
+     *         final var default = CertificatemanagerFunctions.getCertificateMap(GetCertificateMapArgs.builder()
+     *             .name("cert-map")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static CompletableFuture getCertificateMapPlain(GetCertificateMapPlainArgs args) { return getCertificateMapPlain(args, InvokeOptions.Empty); @@ -37,6 +103,39 @@ public static CompletableFuture getCertificateMapPlain( * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.certificatemanager.CertificatemanagerFunctions;
+     * import com.pulumi.gcp.certificatemanager.inputs.GetCertificateMapArgs;
+     * 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) {
+     *         final var default = CertificatemanagerFunctions.getCertificateMap(GetCertificateMapArgs.builder()
+     *             .name("cert-map")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static Output getCertificateMap(GetCertificateMapArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:certificatemanager/getCertificateMap:getCertificateMap", TypeShape.of(GetCertificateMapResult.class), args, Utilities.withVersion(options)); @@ -46,6 +145,39 @@ public static Output getCertificateMap(GetCertificateMa * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.certificatemanager.CertificatemanagerFunctions;
+     * import com.pulumi.gcp.certificatemanager.inputs.GetCertificateMapArgs;
+     * 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) {
+     *         final var default = CertificatemanagerFunctions.getCertificateMap(GetCertificateMapArgs.builder()
+     *             .name("cert-map")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static CompletableFuture getCertificateMapPlain(GetCertificateMapPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("gcp:certificatemanager/getCertificateMap:getCertificateMap", TypeShape.of(GetCertificateMapResult.class), args, Utilities.withVersion(options)); diff --git a/sdk/java/src/main/java/com/pulumi/gcp/cloudidentity/CloudidentityFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/cloudidentity/CloudidentityFunctions.java index 7e28e622a7..b1e7908a38 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/cloudidentity/CloudidentityFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/cloudidentity/CloudidentityFunctions.java @@ -30,6 +30,42 @@ public final class CloudidentityFunctions { * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.cloudidentity.CloudidentityFunctions;
+     * import com.pulumi.gcp.cloudidentity.inputs.GetGroupLookupArgs;
+     * import com.pulumi.gcp.cloudidentity.inputs.GetGroupLookupGroupKeyArgs;
+     * 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 }{{@code
+     *     public static void main(String[] args) }{{@code
+     *         Pulumi.run(App::stack);
+     *     }}{@code
+     * 
+     *     public static void stack(Context ctx) }{{@code
+     *         final var group = CloudidentityFunctions.getGroupLookup(GetGroupLookupArgs.builder()
+     *             .groupKey(GetGroupLookupGroupKeyArgs.builder()
+     *                 .id("my-group}{@literal @}{@code example.com")
+     *                 .build())
+     *             .build());
+     * 
+     *     }}{@code
+     * }}{@code
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static Output getGroupLookup(GetGroupLookupArgs args) { return getGroupLookup(args, InvokeOptions.Empty); @@ -41,6 +77,42 @@ public static Output getGroupLookup(GetGroupLookupArgs arg * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.cloudidentity.CloudidentityFunctions;
+     * import com.pulumi.gcp.cloudidentity.inputs.GetGroupLookupArgs;
+     * import com.pulumi.gcp.cloudidentity.inputs.GetGroupLookupGroupKeyArgs;
+     * 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 }{{@code
+     *     public static void main(String[] args) }{{@code
+     *         Pulumi.run(App::stack);
+     *     }}{@code
+     * 
+     *     public static void stack(Context ctx) }{{@code
+     *         final var group = CloudidentityFunctions.getGroupLookup(GetGroupLookupArgs.builder()
+     *             .groupKey(GetGroupLookupGroupKeyArgs.builder()
+     *                 .id("my-group}{@literal @}{@code example.com")
+     *                 .build())
+     *             .build());
+     * 
+     *     }}{@code
+     * }}{@code
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static CompletableFuture getGroupLookupPlain(GetGroupLookupPlainArgs args) { return getGroupLookupPlain(args, InvokeOptions.Empty); @@ -52,6 +124,42 @@ public static CompletableFuture getGroupLookupPlain(GetGro * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.cloudidentity.CloudidentityFunctions;
+     * import com.pulumi.gcp.cloudidentity.inputs.GetGroupLookupArgs;
+     * import com.pulumi.gcp.cloudidentity.inputs.GetGroupLookupGroupKeyArgs;
+     * 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 }{{@code
+     *     public static void main(String[] args) }{{@code
+     *         Pulumi.run(App::stack);
+     *     }}{@code
+     * 
+     *     public static void stack(Context ctx) }{{@code
+     *         final var group = CloudidentityFunctions.getGroupLookup(GetGroupLookupArgs.builder()
+     *             .groupKey(GetGroupLookupGroupKeyArgs.builder()
+     *                 .id("my-group}{@literal @}{@code example.com")
+     *                 .build())
+     *             .build());
+     * 
+     *     }}{@code
+     * }}{@code
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static Output getGroupLookup(GetGroupLookupArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:cloudidentity/getGroupLookup:getGroupLookup", TypeShape.of(GetGroupLookupResult.class), args, Utilities.withVersion(options)); @@ -63,6 +171,42 @@ public static Output getGroupLookup(GetGroupLookupArgs arg * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.cloudidentity.CloudidentityFunctions;
+     * import com.pulumi.gcp.cloudidentity.inputs.GetGroupLookupArgs;
+     * import com.pulumi.gcp.cloudidentity.inputs.GetGroupLookupGroupKeyArgs;
+     * 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 }{{@code
+     *     public static void main(String[] args) }{{@code
+     *         Pulumi.run(App::stack);
+     *     }}{@code
+     * 
+     *     public static void stack(Context ctx) }{{@code
+     *         final var group = CloudidentityFunctions.getGroupLookup(GetGroupLookupArgs.builder()
+     *             .groupKey(GetGroupLookupGroupKeyArgs.builder()
+     *                 .id("my-group}{@literal @}{@code example.com")
+     *                 .build())
+     *             .build());
+     * 
+     *     }}{@code
+     * }}{@code
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static CompletableFuture getGroupLookupPlain(GetGroupLookupPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("gcp:cloudidentity/getGroupLookup:getGroupLookup", TypeShape.of(GetGroupLookupResult.class), args, Utilities.withVersion(options)); @@ -80,6 +224,39 @@ public static CompletableFuture getGroupLookupPlain(GetGro * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.cloudidentity.CloudidentityFunctions;
+     * import com.pulumi.gcp.cloudidentity.inputs.GetGroupMembershipsArgs;
+     * 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) {
+     *         final var members = CloudidentityFunctions.getGroupMemberships(GetGroupMembershipsArgs.builder()
+     *             .group("groups/123eab45c6defghi")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static Output getGroupMemberships(GetGroupMembershipsArgs args) { return getGroupMemberships(args, InvokeOptions.Empty); @@ -97,6 +274,39 @@ public static Output getGroupMemberships(GetGroupMemb * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.cloudidentity.CloudidentityFunctions;
+     * import com.pulumi.gcp.cloudidentity.inputs.GetGroupMembershipsArgs;
+     * 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) {
+     *         final var members = CloudidentityFunctions.getGroupMemberships(GetGroupMembershipsArgs.builder()
+     *             .group("groups/123eab45c6defghi")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static CompletableFuture getGroupMembershipsPlain(GetGroupMembershipsPlainArgs args) { return getGroupMembershipsPlain(args, InvokeOptions.Empty); @@ -114,6 +324,39 @@ public static CompletableFuture getGroupMembershipsPl * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.cloudidentity.CloudidentityFunctions;
+     * import com.pulumi.gcp.cloudidentity.inputs.GetGroupMembershipsArgs;
+     * 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) {
+     *         final var members = CloudidentityFunctions.getGroupMemberships(GetGroupMembershipsArgs.builder()
+     *             .group("groups/123eab45c6defghi")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static Output getGroupMemberships(GetGroupMembershipsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:cloudidentity/getGroupMemberships:getGroupMemberships", TypeShape.of(GetGroupMembershipsResult.class), args, Utilities.withVersion(options)); @@ -131,6 +374,39 @@ public static Output getGroupMemberships(GetGroupMemb * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.cloudidentity.CloudidentityFunctions;
+     * import com.pulumi.gcp.cloudidentity.inputs.GetGroupMembershipsArgs;
+     * 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) {
+     *         final var members = CloudidentityFunctions.getGroupMemberships(GetGroupMembershipsArgs.builder()
+     *             .group("groups/123eab45c6defghi")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static CompletableFuture getGroupMembershipsPlain(GetGroupMembershipsPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("gcp:cloudidentity/getGroupMemberships:getGroupMemberships", TypeShape.of(GetGroupMembershipsResult.class), args, Utilities.withVersion(options)); @@ -154,6 +430,39 @@ public static CompletableFuture getGroupTra * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.cloudidentity.CloudidentityFunctions;
+     * import com.pulumi.gcp.cloudidentity.inputs.GetGroupsArgs;
+     * 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) {
+     *         final var groups = CloudidentityFunctions.getGroups(GetGroupsArgs.builder()
+     *             .parent("customers/A01b123xz")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static Output getGroups(GetGroupsArgs args) { return getGroups(args, InvokeOptions.Empty); @@ -165,6 +474,39 @@ public static Output getGroups(GetGroupsArgs args) { * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.cloudidentity.CloudidentityFunctions;
+     * import com.pulumi.gcp.cloudidentity.inputs.GetGroupsArgs;
+     * 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) {
+     *         final var groups = CloudidentityFunctions.getGroups(GetGroupsArgs.builder()
+     *             .parent("customers/A01b123xz")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static CompletableFuture getGroupsPlain(GetGroupsPlainArgs args) { return getGroupsPlain(args, InvokeOptions.Empty); @@ -176,6 +518,39 @@ public static CompletableFuture getGroupsPlain(GetGroupsPlainAr * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.cloudidentity.CloudidentityFunctions;
+     * import com.pulumi.gcp.cloudidentity.inputs.GetGroupsArgs;
+     * 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) {
+     *         final var groups = CloudidentityFunctions.getGroups(GetGroupsArgs.builder()
+     *             .parent("customers/A01b123xz")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static Output getGroups(GetGroupsArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:cloudidentity/getGroups:getGroups", TypeShape.of(GetGroupsResult.class), args, Utilities.withVersion(options)); @@ -187,6 +562,39 @@ public static Output getGroups(GetGroupsArgs args, InvokeOption * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.cloudidentity.CloudidentityFunctions;
+     * import com.pulumi.gcp.cloudidentity.inputs.GetGroupsArgs;
+     * 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) {
+     *         final var groups = CloudidentityFunctions.getGroups(GetGroupsArgs.builder()
+     *             .parent("customers/A01b123xz")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static CompletableFuture getGroupsPlain(GetGroupsPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("gcp:cloudidentity/getGroups:getGroups", TypeShape.of(GetGroupsResult.class), args, Utilities.withVersion(options)); diff --git a/sdk/java/src/main/java/com/pulumi/gcp/compute/ComputeFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/compute/ComputeFunctions.java index c7d1a5d45d..08e779261b 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/compute/ComputeFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/compute/ComputeFunctions.java @@ -789,146 +789,6 @@ public static CompletableFuture getAddressesPlain(GetAddress * * ## Example Usage * - */ - public static Output getBackendBucket(GetBackendBucketArgs args) { - return getBackendBucket(args, InvokeOptions.Empty); - } - /** - * Get information about a BackendBucket. - * - * ## Example Usage - * - */ - public static CompletableFuture getBackendBucketPlain(GetBackendBucketPlainArgs args) { - return getBackendBucketPlain(args, InvokeOptions.Empty); - } - /** - * Get information about a BackendBucket. - * - * ## Example Usage - * - */ - public static Output getBackendBucket(GetBackendBucketArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("gcp:compute/getBackendBucket:getBackendBucket", TypeShape.of(GetBackendBucketResult.class), args, Utilities.withVersion(options)); - } - /** - * Get information about a BackendBucket. - * - * ## Example Usage - * - */ - public static CompletableFuture getBackendBucketPlain(GetBackendBucketPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("gcp:compute/getBackendBucket:getBackendBucket", TypeShape.of(GetBackendBucketResult.class), args, Utilities.withVersion(options)); - } - public static Output getBackendBucketIamPolicy(GetBackendBucketIamPolicyArgs args) { - return getBackendBucketIamPolicy(args, InvokeOptions.Empty); - } - public static CompletableFuture getBackendBucketIamPolicyPlain(GetBackendBucketIamPolicyPlainArgs args) { - return getBackendBucketIamPolicyPlain(args, InvokeOptions.Empty); - } - public static Output getBackendBucketIamPolicy(GetBackendBucketIamPolicyArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("gcp:compute/getBackendBucketIamPolicy:getBackendBucketIamPolicy", TypeShape.of(GetBackendBucketIamPolicyResult.class), args, Utilities.withVersion(options)); - } - public static CompletableFuture getBackendBucketIamPolicyPlain(GetBackendBucketIamPolicyPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("gcp:compute/getBackendBucketIamPolicy:getBackendBucketIamPolicy", TypeShape.of(GetBackendBucketIamPolicyResult.class), args, Utilities.withVersion(options)); - } - /** - * Provide access to a Backend Service's attribute. For more information - * see [the official documentation](https://cloud.google.com/compute/docs/load-balancing/http/backend-service) - * and the [API](https://cloud.google.com/compute/docs/reference/latest/backendServices). - * - * ## Example Usage - * - */ - public static Output getBackendService(GetBackendServiceArgs args) { - return getBackendService(args, InvokeOptions.Empty); - } - /** - * Provide access to a Backend Service's attribute. For more information - * see [the official documentation](https://cloud.google.com/compute/docs/load-balancing/http/backend-service) - * and the [API](https://cloud.google.com/compute/docs/reference/latest/backendServices). - * - * ## Example Usage - * - */ - public static CompletableFuture getBackendServicePlain(GetBackendServicePlainArgs args) { - return getBackendServicePlain(args, InvokeOptions.Empty); - } - /** - * Provide access to a Backend Service's attribute. For more information - * see [the official documentation](https://cloud.google.com/compute/docs/load-balancing/http/backend-service) - * and the [API](https://cloud.google.com/compute/docs/reference/latest/backendServices). - * - * ## Example Usage - * - */ - public static Output getBackendService(GetBackendServiceArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("gcp:compute/getBackendService:getBackendService", TypeShape.of(GetBackendServiceResult.class), args, Utilities.withVersion(options)); - } - /** - * Provide access to a Backend Service's attribute. For more information - * see [the official documentation](https://cloud.google.com/compute/docs/load-balancing/http/backend-service) - * and the [API](https://cloud.google.com/compute/docs/reference/latest/backendServices). - * - * ## Example Usage - * - */ - public static CompletableFuture getBackendServicePlain(GetBackendServicePlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("gcp:compute/getBackendService:getBackendService", TypeShape.of(GetBackendServiceResult.class), args, Utilities.withVersion(options)); - } - public static Output getBackendServiceIamPolicy(GetBackendServiceIamPolicyArgs args) { - return getBackendServiceIamPolicy(args, InvokeOptions.Empty); - } - public static CompletableFuture getBackendServiceIamPolicyPlain(GetBackendServiceIamPolicyPlainArgs args) { - return getBackendServiceIamPolicyPlain(args, InvokeOptions.Empty); - } - public static Output getBackendServiceIamPolicy(GetBackendServiceIamPolicyArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("gcp:compute/getBackendServiceIamPolicy:getBackendServiceIamPolicy", TypeShape.of(GetBackendServiceIamPolicyResult.class), args, Utilities.withVersion(options)); - } - public static CompletableFuture getBackendServiceIamPolicyPlain(GetBackendServiceIamPolicyPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("gcp:compute/getBackendServiceIamPolicy:getBackendServiceIamPolicy", TypeShape.of(GetBackendServiceIamPolicyResult.class), args, Utilities.withVersion(options)); - } - /** - * Get info about a Google Compute SSL Certificate from its name. - * - * ## Example Usage - * - */ - public static Output getCertificate(GetCertificateArgs args) { - return getCertificate(args, InvokeOptions.Empty); - } - /** - * Get info about a Google Compute SSL Certificate from its name. - * - * ## Example Usage - * - */ - public static CompletableFuture getCertificatePlain(GetCertificatePlainArgs args) { - return getCertificatePlain(args, InvokeOptions.Empty); - } - /** - * Get info about a Google Compute SSL Certificate from its name. - * - * ## Example Usage - * - */ - public static Output getCertificate(GetCertificateArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("gcp:compute/getCertificate:getCertificate", TypeShape.of(GetCertificateResult.class), args, Utilities.withVersion(options)); - } - /** - * Get info about a Google Compute SSL Certificate from its name. - * - * ## Example Usage - * - */ - public static CompletableFuture getCertificatePlain(GetCertificatePlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("gcp:compute/getCertificate:getCertificate", TypeShape.of(GetCertificateResult.class), args, Utilities.withVersion(options)); - } - /** - * Use this data source to retrieve default service account for this project - * - * ## Example Usage - * * <!--Start PulumiCodeChooser --> *
      * {@code
@@ -938,7 +798,7 @@ public static CompletableFuture getCertificatePlain(GetCer
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetDefaultServiceAccountArgs;
+     * import com.pulumi.gcp.compute.inputs.GetBackendBucketArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -952,9 +812,10 @@ public static CompletableFuture getCertificatePlain(GetCer
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var default = ComputeFunctions.getDefaultServiceAccount();
+     *         final var my-backend-bucket = ComputeFunctions.getBackendBucket(GetBackendBucketArgs.builder()
+     *             .name("my-backend")
+     *             .build());
      * 
-     *         ctx.export("defaultAccount", default_.email());
      *     }
      * }
      * }
@@ -962,11 +823,11 @@ public static CompletableFuture getCertificatePlain(GetCer
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getDefaultServiceAccount() {
-        return getDefaultServiceAccount(GetDefaultServiceAccountArgs.Empty, InvokeOptions.Empty);
+    public static Output getBackendBucket(GetBackendBucketArgs args) {
+        return getBackendBucket(args, InvokeOptions.Empty);
     }
     /**
-     * Use this data source to retrieve default service account for this project
+     * Get information about a BackendBucket.
      * 
      * ## Example Usage
      * 
@@ -979,7 +840,7 @@ public static Output getDefaultServiceAccount()
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetDefaultServiceAccountArgs;
+     * import com.pulumi.gcp.compute.inputs.GetBackendBucketArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -993,9 +854,10 @@ public static Output getDefaultServiceAccount()
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var default = ComputeFunctions.getDefaultServiceAccount();
+     *         final var my-backend-bucket = ComputeFunctions.getBackendBucket(GetBackendBucketArgs.builder()
+     *             .name("my-backend")
+     *             .build());
      * 
-     *         ctx.export("defaultAccount", default_.email());
      *     }
      * }
      * }
@@ -1003,11 +865,11 @@ public static Output getDefaultServiceAccount()
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getDefaultServiceAccountPlain() {
-        return getDefaultServiceAccountPlain(GetDefaultServiceAccountPlainArgs.Empty, InvokeOptions.Empty);
+    public static CompletableFuture getBackendBucketPlain(GetBackendBucketPlainArgs args) {
+        return getBackendBucketPlain(args, InvokeOptions.Empty);
     }
     /**
-     * Use this data source to retrieve default service account for this project
+     * Get information about a BackendBucket.
      * 
      * ## Example Usage
      * 
@@ -1020,7 +882,7 @@ public static CompletableFuture getDefaultServic
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetDefaultServiceAccountArgs;
+     * import com.pulumi.gcp.compute.inputs.GetBackendBucketArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -1034,9 +896,10 @@ public static CompletableFuture getDefaultServic
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var default = ComputeFunctions.getDefaultServiceAccount();
+     *         final var my-backend-bucket = ComputeFunctions.getBackendBucket(GetBackendBucketArgs.builder()
+     *             .name("my-backend")
+     *             .build());
      * 
-     *         ctx.export("defaultAccount", default_.email());
      *     }
      * }
      * }
@@ -1044,11 +907,11 @@ public static CompletableFuture getDefaultServic
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getDefaultServiceAccount(GetDefaultServiceAccountArgs args) {
-        return getDefaultServiceAccount(args, InvokeOptions.Empty);
+    public static Output getBackendBucket(GetBackendBucketArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invoke("gcp:compute/getBackendBucket:getBackendBucket", TypeShape.of(GetBackendBucketResult.class), args, Utilities.withVersion(options));
     }
     /**
-     * Use this data source to retrieve default service account for this project
+     * Get information about a BackendBucket.
      * 
      * ## Example Usage
      * 
@@ -1061,7 +924,7 @@ public static Output getDefaultServiceAccount(Ge
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetDefaultServiceAccountArgs;
+     * import com.pulumi.gcp.compute.inputs.GetBackendBucketArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -1075,9 +938,10 @@ public static Output getDefaultServiceAccount(Ge
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var default = ComputeFunctions.getDefaultServiceAccount();
+     *         final var my-backend-bucket = ComputeFunctions.getBackendBucket(GetBackendBucketArgs.builder()
+     *             .name("my-backend")
+     *             .build());
      * 
-     *         ctx.export("defaultAccount", default_.email());
      *     }
      * }
      * }
@@ -1085,11 +949,25 @@ public static Output getDefaultServiceAccount(Ge
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getDefaultServiceAccountPlain(GetDefaultServiceAccountPlainArgs args) {
-        return getDefaultServiceAccountPlain(args, InvokeOptions.Empty);
+    public static CompletableFuture getBackendBucketPlain(GetBackendBucketPlainArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invokeAsync("gcp:compute/getBackendBucket:getBackendBucket", TypeShape.of(GetBackendBucketResult.class), args, Utilities.withVersion(options));
+    }
+    public static Output getBackendBucketIamPolicy(GetBackendBucketIamPolicyArgs args) {
+        return getBackendBucketIamPolicy(args, InvokeOptions.Empty);
+    }
+    public static CompletableFuture getBackendBucketIamPolicyPlain(GetBackendBucketIamPolicyPlainArgs args) {
+        return getBackendBucketIamPolicyPlain(args, InvokeOptions.Empty);
+    }
+    public static Output getBackendBucketIamPolicy(GetBackendBucketIamPolicyArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invoke("gcp:compute/getBackendBucketIamPolicy:getBackendBucketIamPolicy", TypeShape.of(GetBackendBucketIamPolicyResult.class), args, Utilities.withVersion(options));
+    }
+    public static CompletableFuture getBackendBucketIamPolicyPlain(GetBackendBucketIamPolicyPlainArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invokeAsync("gcp:compute/getBackendBucketIamPolicy:getBackendBucketIamPolicy", TypeShape.of(GetBackendBucketIamPolicyResult.class), args, Utilities.withVersion(options));
     }
     /**
-     * Use this data source to retrieve default service account for this project
+     * Provide access to a Backend Service's attribute. For more information
+     * see [the official documentation](https://cloud.google.com/compute/docs/load-balancing/http/backend-service)
+     * and the [API](https://cloud.google.com/compute/docs/reference/latest/backendServices).
      * 
      * ## Example Usage
      * 
@@ -1102,7 +980,9 @@ public static CompletableFuture getDefaultServic
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetDefaultServiceAccountArgs;
+     * import com.pulumi.gcp.compute.inputs.GetBackendServiceArgs;
+     * import com.pulumi.gcp.compute.BackendService;
+     * import com.pulumi.gcp.compute.BackendServiceArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -1116,9 +996,15 @@ public static CompletableFuture getDefaultServic
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var default = ComputeFunctions.getDefaultServiceAccount();
+     *         final var baz = ComputeFunctions.getBackendService(GetBackendServiceArgs.builder()
+     *             .name("foobar")
+     *             .build());
+     * 
+     *         var default_ = new BackendService("default", BackendServiceArgs.builder()
+     *             .name("backend-service")
+     *             .healthChecks(baz.applyValue(getBackendServiceResult -> getBackendServiceResult.healthChecks()[0]))
+     *             .build());
      * 
-     *         ctx.export("defaultAccount", default_.email());
      *     }
      * }
      * }
@@ -1126,11 +1012,13 @@ public static CompletableFuture getDefaultServic
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getDefaultServiceAccount(GetDefaultServiceAccountArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invoke("gcp:compute/getDefaultServiceAccount:getDefaultServiceAccount", TypeShape.of(GetDefaultServiceAccountResult.class), args, Utilities.withVersion(options));
+    public static Output getBackendService(GetBackendServiceArgs args) {
+        return getBackendService(args, InvokeOptions.Empty);
     }
     /**
-     * Use this data source to retrieve default service account for this project
+     * Provide access to a Backend Service's attribute. For more information
+     * see [the official documentation](https://cloud.google.com/compute/docs/load-balancing/http/backend-service)
+     * and the [API](https://cloud.google.com/compute/docs/reference/latest/backendServices).
      * 
      * ## Example Usage
      * 
@@ -1143,7 +1031,9 @@ public static Output getDefaultServiceAccount(Ge
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetDefaultServiceAccountArgs;
+     * import com.pulumi.gcp.compute.inputs.GetBackendServiceArgs;
+     * import com.pulumi.gcp.compute.BackendService;
+     * import com.pulumi.gcp.compute.BackendServiceArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -1157,9 +1047,15 @@ public static Output getDefaultServiceAccount(Ge
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var default = ComputeFunctions.getDefaultServiceAccount();
+     *         final var baz = ComputeFunctions.getBackendService(GetBackendServiceArgs.builder()
+     *             .name("foobar")
+     *             .build());
+     * 
+     *         var default_ = new BackendService("default", BackendServiceArgs.builder()
+     *             .name("backend-service")
+     *             .healthChecks(baz.applyValue(getBackendServiceResult -> getBackendServiceResult.healthChecks()[0]))
+     *             .build());
      * 
-     *         ctx.export("defaultAccount", default_.email());
      *     }
      * }
      * }
@@ -1167,13 +1063,13 @@ public static Output getDefaultServiceAccount(Ge
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getDefaultServiceAccountPlain(GetDefaultServiceAccountPlainArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invokeAsync("gcp:compute/getDefaultServiceAccount:getDefaultServiceAccount", TypeShape.of(GetDefaultServiceAccountResult.class), args, Utilities.withVersion(options));
+    public static CompletableFuture getBackendServicePlain(GetBackendServicePlainArgs args) {
+        return getBackendServicePlain(args, InvokeOptions.Empty);
     }
     /**
-     * Get information about a Google Compute Persistent disks.
-     * 
-     * [the official documentation](https://cloud.google.com/compute/docs/disks) and its [API](https://cloud.google.com/compute/docs/reference/latest/disks).
+     * Provide access to a Backend Service's attribute. For more information
+     * see [the official documentation](https://cloud.google.com/compute/docs/load-balancing/http/backend-service)
+     * and the [API](https://cloud.google.com/compute/docs/reference/latest/backendServices).
      * 
      * ## Example Usage
      * 
@@ -1186,10 +1082,9 @@ public static CompletableFuture getDefaultServic
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetDiskArgs;
-     * import com.pulumi.gcp.compute.Instance;
-     * import com.pulumi.gcp.compute.InstanceArgs;
-     * import com.pulumi.gcp.compute.inputs.InstanceBootDiskArgs;
+     * import com.pulumi.gcp.compute.inputs.GetBackendServiceArgs;
+     * import com.pulumi.gcp.compute.BackendService;
+     * import com.pulumi.gcp.compute.BackendServiceArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -1203,16 +1098,13 @@ public static CompletableFuture getDefaultServic
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var persistent-boot-disk = ComputeFunctions.getDisk(GetDiskArgs.builder()
-     *             .name("persistent-boot-disk")
-     *             .project("example")
+     *         final var baz = ComputeFunctions.getBackendService(GetBackendServiceArgs.builder()
+     *             .name("foobar")
      *             .build());
      * 
-     *         var default_ = new Instance("default", InstanceArgs.builder()
-     *             .bootDisk(InstanceBootDiskArgs.builder()
-     *                 .source(persistent_boot_disk.selfLink())
-     *                 .autoDelete(false)
-     *                 .build())
+     *         var default_ = new BackendService("default", BackendServiceArgs.builder()
+     *             .name("backend-service")
+     *             .healthChecks(baz.applyValue(getBackendServiceResult -> getBackendServiceResult.healthChecks()[0]))
      *             .build());
      * 
      *     }
@@ -1222,13 +1114,13 @@ public static CompletableFuture getDefaultServic
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getDisk(GetDiskArgs args) {
-        return getDisk(args, InvokeOptions.Empty);
+    public static Output getBackendService(GetBackendServiceArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invoke("gcp:compute/getBackendService:getBackendService", TypeShape.of(GetBackendServiceResult.class), args, Utilities.withVersion(options));
     }
     /**
-     * Get information about a Google Compute Persistent disks.
-     * 
-     * [the official documentation](https://cloud.google.com/compute/docs/disks) and its [API](https://cloud.google.com/compute/docs/reference/latest/disks).
+     * Provide access to a Backend Service's attribute. For more information
+     * see [the official documentation](https://cloud.google.com/compute/docs/load-balancing/http/backend-service)
+     * and the [API](https://cloud.google.com/compute/docs/reference/latest/backendServices).
      * 
      * ## Example Usage
      * 
@@ -1241,10 +1133,9 @@ public static Output getDisk(GetDiskArgs args) {
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetDiskArgs;
-     * import com.pulumi.gcp.compute.Instance;
-     * import com.pulumi.gcp.compute.InstanceArgs;
-     * import com.pulumi.gcp.compute.inputs.InstanceBootDiskArgs;
+     * import com.pulumi.gcp.compute.inputs.GetBackendServiceArgs;
+     * import com.pulumi.gcp.compute.BackendService;
+     * import com.pulumi.gcp.compute.BackendServiceArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -1258,16 +1149,13 @@ public static Output getDisk(GetDiskArgs args) {
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var persistent-boot-disk = ComputeFunctions.getDisk(GetDiskArgs.builder()
-     *             .name("persistent-boot-disk")
-     *             .project("example")
+     *         final var baz = ComputeFunctions.getBackendService(GetBackendServiceArgs.builder()
+     *             .name("foobar")
      *             .build());
      * 
-     *         var default_ = new Instance("default", InstanceArgs.builder()
-     *             .bootDisk(InstanceBootDiskArgs.builder()
-     *                 .source(persistent_boot_disk.selfLink())
-     *                 .autoDelete(false)
-     *                 .build())
+     *         var default_ = new BackendService("default", BackendServiceArgs.builder()
+     *             .name("backend-service")
+     *             .healthChecks(baz.applyValue(getBackendServiceResult -> getBackendServiceResult.healthChecks()[0]))
      *             .build());
      * 
      *     }
@@ -1277,13 +1165,23 @@ public static Output getDisk(GetDiskArgs args) {
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getDiskPlain(GetDiskPlainArgs args) {
-        return getDiskPlain(args, InvokeOptions.Empty);
+    public static CompletableFuture getBackendServicePlain(GetBackendServicePlainArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invokeAsync("gcp:compute/getBackendService:getBackendService", TypeShape.of(GetBackendServiceResult.class), args, Utilities.withVersion(options));
+    }
+    public static Output getBackendServiceIamPolicy(GetBackendServiceIamPolicyArgs args) {
+        return getBackendServiceIamPolicy(args, InvokeOptions.Empty);
+    }
+    public static CompletableFuture getBackendServiceIamPolicyPlain(GetBackendServiceIamPolicyPlainArgs args) {
+        return getBackendServiceIamPolicyPlain(args, InvokeOptions.Empty);
+    }
+    public static Output getBackendServiceIamPolicy(GetBackendServiceIamPolicyArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invoke("gcp:compute/getBackendServiceIamPolicy:getBackendServiceIamPolicy", TypeShape.of(GetBackendServiceIamPolicyResult.class), args, Utilities.withVersion(options));
+    }
+    public static CompletableFuture getBackendServiceIamPolicyPlain(GetBackendServiceIamPolicyPlainArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invokeAsync("gcp:compute/getBackendServiceIamPolicy:getBackendServiceIamPolicy", TypeShape.of(GetBackendServiceIamPolicyResult.class), args, Utilities.withVersion(options));
     }
     /**
-     * Get information about a Google Compute Persistent disks.
-     * 
-     * [the official documentation](https://cloud.google.com/compute/docs/disks) and its [API](https://cloud.google.com/compute/docs/reference/latest/disks).
+     * Get info about a Google Compute SSL Certificate from its name.
      * 
      * ## Example Usage
      * 
@@ -1296,10 +1194,7 @@ public static CompletableFuture getDiskPlain(GetDiskPlainArgs arg
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetDiskArgs;
-     * import com.pulumi.gcp.compute.Instance;
-     * import com.pulumi.gcp.compute.InstanceArgs;
-     * import com.pulumi.gcp.compute.inputs.InstanceBootDiskArgs;
+     * import com.pulumi.gcp.compute.inputs.GetCertificateArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -1313,18 +1208,13 @@ public static CompletableFuture getDiskPlain(GetDiskPlainArgs arg
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var persistent-boot-disk = ComputeFunctions.getDisk(GetDiskArgs.builder()
-     *             .name("persistent-boot-disk")
-     *             .project("example")
-     *             .build());
-     * 
-     *         var default_ = new Instance("default", InstanceArgs.builder()
-     *             .bootDisk(InstanceBootDiskArgs.builder()
-     *                 .source(persistent_boot_disk.selfLink())
-     *                 .autoDelete(false)
-     *                 .build())
+     *         final var myCert = ComputeFunctions.getCertificate(GetCertificateArgs.builder()
+     *             .name("my-cert")
      *             .build());
      * 
+     *         ctx.export("certificate", myCert.applyValue(getCertificateResult -> getCertificateResult.certificate()));
+     *         ctx.export("certificateId", myCert.applyValue(getCertificateResult -> getCertificateResult.certificateId()));
+     *         ctx.export("selfLink", myCert.applyValue(getCertificateResult -> getCertificateResult.selfLink()));
      *     }
      * }
      * }
@@ -1332,13 +1222,11 @@ public static CompletableFuture getDiskPlain(GetDiskPlainArgs arg
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getDisk(GetDiskArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invoke("gcp:compute/getDisk:getDisk", TypeShape.of(GetDiskResult.class), args, Utilities.withVersion(options));
+    public static Output getCertificate(GetCertificateArgs args) {
+        return getCertificate(args, InvokeOptions.Empty);
     }
     /**
-     * Get information about a Google Compute Persistent disks.
-     * 
-     * [the official documentation](https://cloud.google.com/compute/docs/disks) and its [API](https://cloud.google.com/compute/docs/reference/latest/disks).
+     * Get info about a Google Compute SSL Certificate from its name.
      * 
      * ## Example Usage
      * 
@@ -1351,10 +1239,7 @@ public static Output getDisk(GetDiskArgs args, InvokeOptions opti
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetDiskArgs;
-     * import com.pulumi.gcp.compute.Instance;
-     * import com.pulumi.gcp.compute.InstanceArgs;
-     * import com.pulumi.gcp.compute.inputs.InstanceBootDiskArgs;
+     * import com.pulumi.gcp.compute.inputs.GetCertificateArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -1368,18 +1253,13 @@ public static Output getDisk(GetDiskArgs args, InvokeOptions opti
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var persistent-boot-disk = ComputeFunctions.getDisk(GetDiskArgs.builder()
-     *             .name("persistent-boot-disk")
-     *             .project("example")
-     *             .build());
-     * 
-     *         var default_ = new Instance("default", InstanceArgs.builder()
-     *             .bootDisk(InstanceBootDiskArgs.builder()
-     *                 .source(persistent_boot_disk.selfLink())
-     *                 .autoDelete(false)
-     *                 .build())
+     *         final var myCert = ComputeFunctions.getCertificate(GetCertificateArgs.builder()
+     *             .name("my-cert")
      *             .build());
      * 
+     *         ctx.export("certificate", myCert.applyValue(getCertificateResult -> getCertificateResult.certificate()));
+     *         ctx.export("certificateId", myCert.applyValue(getCertificateResult -> getCertificateResult.certificateId()));
+     *         ctx.export("selfLink", myCert.applyValue(getCertificateResult -> getCertificateResult.selfLink()));
      *     }
      * }
      * }
@@ -1387,13 +1267,13 @@ public static Output getDisk(GetDiskArgs args, InvokeOptions opti
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getDiskPlain(GetDiskPlainArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invokeAsync("gcp:compute/getDisk:getDisk", TypeShape.of(GetDiskResult.class), args, Utilities.withVersion(options));
+    public static CompletableFuture getCertificatePlain(GetCertificatePlainArgs args) {
+        return getCertificatePlain(args, InvokeOptions.Empty);
     }
     /**
-     * Retrieves the current IAM policy data for disk
+     * Get info about a Google Compute SSL Certificate from its name.
      * 
-     * ## example
+     * ## Example Usage
      * 
      * <!--Start PulumiCodeChooser -->
      * 
@@ -1404,7 +1284,7 @@ public static CompletableFuture getDiskPlain(GetDiskPlainArgs arg
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetDiskIamPolicyArgs;
+     * import com.pulumi.gcp.compute.inputs.GetCertificateArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -1418,12 +1298,13 @@ public static CompletableFuture getDiskPlain(GetDiskPlainArgs arg
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var policy = ComputeFunctions.getDiskIamPolicy(GetDiskIamPolicyArgs.builder()
-     *             .project(default_.project())
-     *             .zone(default_.zone())
-     *             .name(default_.name())
+     *         final var myCert = ComputeFunctions.getCertificate(GetCertificateArgs.builder()
+     *             .name("my-cert")
      *             .build());
      * 
+     *         ctx.export("certificate", myCert.applyValue(getCertificateResult -> getCertificateResult.certificate()));
+     *         ctx.export("certificateId", myCert.applyValue(getCertificateResult -> getCertificateResult.certificateId()));
+     *         ctx.export("selfLink", myCert.applyValue(getCertificateResult -> getCertificateResult.selfLink()));
      *     }
      * }
      * }
@@ -1431,13 +1312,13 @@ public static CompletableFuture getDiskPlain(GetDiskPlainArgs arg
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getDiskIamPolicy(GetDiskIamPolicyArgs args) {
-        return getDiskIamPolicy(args, InvokeOptions.Empty);
+    public static Output getCertificate(GetCertificateArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invoke("gcp:compute/getCertificate:getCertificate", TypeShape.of(GetCertificateResult.class), args, Utilities.withVersion(options));
     }
     /**
-     * Retrieves the current IAM policy data for disk
+     * Get info about a Google Compute SSL Certificate from its name.
      * 
-     * ## example
+     * ## Example Usage
      * 
      * <!--Start PulumiCodeChooser -->
      * 
@@ -1448,7 +1329,7 @@ public static Output getDiskIamPolicy(GetDiskIamPolicyAr
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetDiskIamPolicyArgs;
+     * import com.pulumi.gcp.compute.inputs.GetCertificateArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -1462,12 +1343,13 @@ public static Output getDiskIamPolicy(GetDiskIamPolicyAr
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var policy = ComputeFunctions.getDiskIamPolicy(GetDiskIamPolicyArgs.builder()
-     *             .project(default_.project())
-     *             .zone(default_.zone())
-     *             .name(default_.name())
+     *         final var myCert = ComputeFunctions.getCertificate(GetCertificateArgs.builder()
+     *             .name("my-cert")
      *             .build());
      * 
+     *         ctx.export("certificate", myCert.applyValue(getCertificateResult -> getCertificateResult.certificate()));
+     *         ctx.export("certificateId", myCert.applyValue(getCertificateResult -> getCertificateResult.certificateId()));
+     *         ctx.export("selfLink", myCert.applyValue(getCertificateResult -> getCertificateResult.selfLink()));
      *     }
      * }
      * }
@@ -1475,13 +1357,13 @@ public static Output getDiskIamPolicy(GetDiskIamPolicyAr
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getDiskIamPolicyPlain(GetDiskIamPolicyPlainArgs args) {
-        return getDiskIamPolicyPlain(args, InvokeOptions.Empty);
+    public static CompletableFuture getCertificatePlain(GetCertificatePlainArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invokeAsync("gcp:compute/getCertificate:getCertificate", TypeShape.of(GetCertificateResult.class), args, Utilities.withVersion(options));
     }
     /**
-     * Retrieves the current IAM policy data for disk
+     * Use this data source to retrieve default service account for this project
      * 
-     * ## example
+     * ## Example Usage
      * 
      * <!--Start PulumiCodeChooser -->
      * 
@@ -1492,7 +1374,7 @@ public static CompletableFuture getDiskIamPolicyPlain(Ge
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetDiskIamPolicyArgs;
+     * import com.pulumi.gcp.compute.inputs.GetDefaultServiceAccountArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -1506,12 +1388,9 @@ public static CompletableFuture getDiskIamPolicyPlain(Ge
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var policy = ComputeFunctions.getDiskIamPolicy(GetDiskIamPolicyArgs.builder()
-     *             .project(default_.project())
-     *             .zone(default_.zone())
-     *             .name(default_.name())
-     *             .build());
+     *         final var default = ComputeFunctions.getDefaultServiceAccount();
      * 
+     *         ctx.export("defaultAccount", default_.email());
      *     }
      * }
      * }
@@ -1519,13 +1398,13 @@ public static CompletableFuture getDiskIamPolicyPlain(Ge
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getDiskIamPolicy(GetDiskIamPolicyArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invoke("gcp:compute/getDiskIamPolicy:getDiskIamPolicy", TypeShape.of(GetDiskIamPolicyResult.class), args, Utilities.withVersion(options));
+    public static Output getDefaultServiceAccount() {
+        return getDefaultServiceAccount(GetDefaultServiceAccountArgs.Empty, InvokeOptions.Empty);
     }
     /**
-     * Retrieves the current IAM policy data for disk
+     * Use this data source to retrieve default service account for this project
      * 
-     * ## example
+     * ## Example Usage
      * 
      * <!--Start PulumiCodeChooser -->
      * 
@@ -1536,7 +1415,7 @@ public static Output getDiskIamPolicy(GetDiskIamPolicyAr
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetDiskIamPolicyArgs;
+     * import com.pulumi.gcp.compute.inputs.GetDefaultServiceAccountArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -1550,12 +1429,9 @@ public static Output getDiskIamPolicy(GetDiskIamPolicyAr
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var policy = ComputeFunctions.getDiskIamPolicy(GetDiskIamPolicyArgs.builder()
-     *             .project(default_.project())
-     *             .zone(default_.zone())
-     *             .name(default_.name())
-     *             .build());
+     *         final var default = ComputeFunctions.getDefaultServiceAccount();
      * 
+     *         ctx.export("defaultAccount", default_.email());
      *     }
      * }
      * }
@@ -1563,102 +1439,11 @@ public static Output getDiskIamPolicy(GetDiskIamPolicyAr
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getDiskIamPolicyPlain(GetDiskIamPolicyPlainArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invokeAsync("gcp:compute/getDiskIamPolicy:getDiskIamPolicy", TypeShape.of(GetDiskIamPolicyResult.class), args, Utilities.withVersion(options));
-    }
-    /**
-     * Get a forwarding rule within GCE from its name.
-     * 
-     * ## Example Usage
-     * 
-     */
-    public static Output getForwardingRule(GetForwardingRuleArgs args) {
-        return getForwardingRule(args, InvokeOptions.Empty);
-    }
-    /**
-     * Get a forwarding rule within GCE from its name.
-     * 
-     * ## Example Usage
-     * 
-     */
-    public static CompletableFuture getForwardingRulePlain(GetForwardingRulePlainArgs args) {
-        return getForwardingRulePlain(args, InvokeOptions.Empty);
-    }
-    /**
-     * Get a forwarding rule within GCE from its name.
-     * 
-     * ## Example Usage
-     * 
-     */
-    public static Output getForwardingRule(GetForwardingRuleArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invoke("gcp:compute/getForwardingRule:getForwardingRule", TypeShape.of(GetForwardingRuleResult.class), args, Utilities.withVersion(options));
-    }
-    /**
-     * Get a forwarding rule within GCE from its name.
-     * 
-     * ## Example Usage
-     * 
-     */
-    public static CompletableFuture getForwardingRulePlain(GetForwardingRulePlainArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invokeAsync("gcp:compute/getForwardingRule:getForwardingRule", TypeShape.of(GetForwardingRuleResult.class), args, Utilities.withVersion(options));
-    }
-    /**
-     * List all networks in a specified Google Cloud project.
-     * 
-     * ## Example Usage
-     * 
-     */
-    public static Output getForwardingRules() {
-        return getForwardingRules(GetForwardingRulesArgs.Empty, InvokeOptions.Empty);
-    }
-    /**
-     * List all networks in a specified Google Cloud project.
-     * 
-     * ## Example Usage
-     * 
-     */
-    public static CompletableFuture getForwardingRulesPlain() {
-        return getForwardingRulesPlain(GetForwardingRulesPlainArgs.Empty, InvokeOptions.Empty);
-    }
-    /**
-     * List all networks in a specified Google Cloud project.
-     * 
-     * ## Example Usage
-     * 
-     */
-    public static Output getForwardingRules(GetForwardingRulesArgs args) {
-        return getForwardingRules(args, InvokeOptions.Empty);
-    }
-    /**
-     * List all networks in a specified Google Cloud project.
-     * 
-     * ## Example Usage
-     * 
-     */
-    public static CompletableFuture getForwardingRulesPlain(GetForwardingRulesPlainArgs args) {
-        return getForwardingRulesPlain(args, InvokeOptions.Empty);
-    }
-    /**
-     * List all networks in a specified Google Cloud project.
-     * 
-     * ## Example Usage
-     * 
-     */
-    public static Output getForwardingRules(GetForwardingRulesArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invoke("gcp:compute/getForwardingRules:getForwardingRules", TypeShape.of(GetForwardingRulesResult.class), args, Utilities.withVersion(options));
-    }
-    /**
-     * List all networks in a specified Google Cloud project.
-     * 
-     * ## Example Usage
-     * 
-     */
-    public static CompletableFuture getForwardingRulesPlain(GetForwardingRulesPlainArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invokeAsync("gcp:compute/getForwardingRules:getForwardingRules", TypeShape.of(GetForwardingRulesResult.class), args, Utilities.withVersion(options));
+    public static CompletableFuture getDefaultServiceAccountPlain() {
+        return getDefaultServiceAccountPlain(GetDefaultServiceAccountPlainArgs.Empty, InvokeOptions.Empty);
     }
     /**
-     * Get the IP address from a static address reserved for a Global Forwarding Rule which are only used for HTTP load balancing. For more information see
-     * the official [API](https://cloud.google.com/compute/docs/reference/latest/globalAddresses) documentation.
+     * Use this data source to retrieve default service account for this project
      * 
      * ## Example Usage
      * 
@@ -1671,11 +1456,7 @@ public static CompletableFuture getForwardingRulesPlai
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetGlobalAddressArgs;
-     * import com.pulumi.gcp.dns.ManagedZone;
-     * import com.pulumi.gcp.dns.ManagedZoneArgs;
-     * import com.pulumi.gcp.dns.RecordSet;
-     * import com.pulumi.gcp.dns.RecordSetArgs;
+     * import com.pulumi.gcp.compute.inputs.GetDefaultServiceAccountArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -1689,23 +1470,9 @@ public static CompletableFuture getForwardingRulesPlai
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var myAddress = ComputeFunctions.getGlobalAddress(GetGlobalAddressArgs.builder()
-     *             .name("foobar")
-     *             .build());
-     * 
-     *         var prod = new ManagedZone("prod", ManagedZoneArgs.builder()
-     *             .name("prod-zone")
-     *             .dnsName("prod.mydomain.com.")
-     *             .build());
-     * 
-     *         var frontend = new RecordSet("frontend", RecordSetArgs.builder()
-     *             .name(prod.dnsName().applyValue(dnsName -> String.format("lb.%s", dnsName)))
-     *             .type("A")
-     *             .ttl(300)
-     *             .managedZone(prod.name())
-     *             .rrdatas(myAddress.applyValue(getGlobalAddressResult -> getGlobalAddressResult.address()))
-     *             .build());
+     *         final var default = ComputeFunctions.getDefaultServiceAccount();
      * 
+     *         ctx.export("defaultAccount", default_.email());
      *     }
      * }
      * }
@@ -1713,12 +1480,11 @@ public static CompletableFuture getForwardingRulesPlai
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getGlobalAddress(GetGlobalAddressArgs args) {
-        return getGlobalAddress(args, InvokeOptions.Empty);
+    public static Output getDefaultServiceAccount(GetDefaultServiceAccountArgs args) {
+        return getDefaultServiceAccount(args, InvokeOptions.Empty);
     }
     /**
-     * Get the IP address from a static address reserved for a Global Forwarding Rule which are only used for HTTP load balancing. For more information see
-     * the official [API](https://cloud.google.com/compute/docs/reference/latest/globalAddresses) documentation.
+     * Use this data source to retrieve default service account for this project
      * 
      * ## Example Usage
      * 
@@ -1731,11 +1497,7 @@ public static Output getGlobalAddress(GetGlobalAddressAr
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetGlobalAddressArgs;
-     * import com.pulumi.gcp.dns.ManagedZone;
-     * import com.pulumi.gcp.dns.ManagedZoneArgs;
-     * import com.pulumi.gcp.dns.RecordSet;
-     * import com.pulumi.gcp.dns.RecordSetArgs;
+     * import com.pulumi.gcp.compute.inputs.GetDefaultServiceAccountArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -1749,23 +1511,9 @@ public static Output getGlobalAddress(GetGlobalAddressAr
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var myAddress = ComputeFunctions.getGlobalAddress(GetGlobalAddressArgs.builder()
-     *             .name("foobar")
-     *             .build());
-     * 
-     *         var prod = new ManagedZone("prod", ManagedZoneArgs.builder()
-     *             .name("prod-zone")
-     *             .dnsName("prod.mydomain.com.")
-     *             .build());
-     * 
-     *         var frontend = new RecordSet("frontend", RecordSetArgs.builder()
-     *             .name(prod.dnsName().applyValue(dnsName -> String.format("lb.%s", dnsName)))
-     *             .type("A")
-     *             .ttl(300)
-     *             .managedZone(prod.name())
-     *             .rrdatas(myAddress.applyValue(getGlobalAddressResult -> getGlobalAddressResult.address()))
-     *             .build());
+     *         final var default = ComputeFunctions.getDefaultServiceAccount();
      * 
+     *         ctx.export("defaultAccount", default_.email());
      *     }
      * }
      * }
@@ -1773,12 +1521,11 @@ public static Output getGlobalAddress(GetGlobalAddressAr
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getGlobalAddressPlain(GetGlobalAddressPlainArgs args) {
-        return getGlobalAddressPlain(args, InvokeOptions.Empty);
+    public static CompletableFuture getDefaultServiceAccountPlain(GetDefaultServiceAccountPlainArgs args) {
+        return getDefaultServiceAccountPlain(args, InvokeOptions.Empty);
     }
     /**
-     * Get the IP address from a static address reserved for a Global Forwarding Rule which are only used for HTTP load balancing. For more information see
-     * the official [API](https://cloud.google.com/compute/docs/reference/latest/globalAddresses) documentation.
+     * Use this data source to retrieve default service account for this project
      * 
      * ## Example Usage
      * 
@@ -1791,11 +1538,7 @@ public static CompletableFuture getGlobalAddressPlain(Ge
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetGlobalAddressArgs;
-     * import com.pulumi.gcp.dns.ManagedZone;
-     * import com.pulumi.gcp.dns.ManagedZoneArgs;
-     * import com.pulumi.gcp.dns.RecordSet;
-     * import com.pulumi.gcp.dns.RecordSetArgs;
+     * import com.pulumi.gcp.compute.inputs.GetDefaultServiceAccountArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -1809,23 +1552,9 @@ public static CompletableFuture getGlobalAddressPlain(Ge
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var myAddress = ComputeFunctions.getGlobalAddress(GetGlobalAddressArgs.builder()
-     *             .name("foobar")
-     *             .build());
-     * 
-     *         var prod = new ManagedZone("prod", ManagedZoneArgs.builder()
-     *             .name("prod-zone")
-     *             .dnsName("prod.mydomain.com.")
-     *             .build());
-     * 
-     *         var frontend = new RecordSet("frontend", RecordSetArgs.builder()
-     *             .name(prod.dnsName().applyValue(dnsName -> String.format("lb.%s", dnsName)))
-     *             .type("A")
-     *             .ttl(300)
-     *             .managedZone(prod.name())
-     *             .rrdatas(myAddress.applyValue(getGlobalAddressResult -> getGlobalAddressResult.address()))
-     *             .build());
+     *         final var default = ComputeFunctions.getDefaultServiceAccount();
      * 
+     *         ctx.export("defaultAccount", default_.email());
      *     }
      * }
      * }
@@ -1833,12 +1562,11 @@ public static CompletableFuture getGlobalAddressPlain(Ge
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getGlobalAddress(GetGlobalAddressArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invoke("gcp:compute/getGlobalAddress:getGlobalAddress", TypeShape.of(GetGlobalAddressResult.class), args, Utilities.withVersion(options));
+    public static Output getDefaultServiceAccount(GetDefaultServiceAccountArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invoke("gcp:compute/getDefaultServiceAccount:getDefaultServiceAccount", TypeShape.of(GetDefaultServiceAccountResult.class), args, Utilities.withVersion(options));
     }
     /**
-     * Get the IP address from a static address reserved for a Global Forwarding Rule which are only used for HTTP load balancing. For more information see
-     * the official [API](https://cloud.google.com/compute/docs/reference/latest/globalAddresses) documentation.
+     * Use this data source to retrieve default service account for this project
      * 
      * ## Example Usage
      * 
@@ -1851,11 +1579,7 @@ public static Output getGlobalAddress(GetGlobalAddressAr
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetGlobalAddressArgs;
-     * import com.pulumi.gcp.dns.ManagedZone;
-     * import com.pulumi.gcp.dns.ManagedZoneArgs;
-     * import com.pulumi.gcp.dns.RecordSet;
-     * import com.pulumi.gcp.dns.RecordSetArgs;
+     * import com.pulumi.gcp.compute.inputs.GetDefaultServiceAccountArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -1869,23 +1593,9 @@ public static Output getGlobalAddress(GetGlobalAddressAr
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var myAddress = ComputeFunctions.getGlobalAddress(GetGlobalAddressArgs.builder()
-     *             .name("foobar")
-     *             .build());
-     * 
-     *         var prod = new ManagedZone("prod", ManagedZoneArgs.builder()
-     *             .name("prod-zone")
-     *             .dnsName("prod.mydomain.com.")
-     *             .build());
-     * 
-     *         var frontend = new RecordSet("frontend", RecordSetArgs.builder()
-     *             .name(prod.dnsName().applyValue(dnsName -> String.format("lb.%s", dnsName)))
-     *             .type("A")
-     *             .ttl(300)
-     *             .managedZone(prod.name())
-     *             .rrdatas(myAddress.applyValue(getGlobalAddressResult -> getGlobalAddressResult.address()))
-     *             .build());
+     *         final var default = ComputeFunctions.getDefaultServiceAccount();
      * 
+     *         ctx.export("defaultAccount", default_.email());
      *     }
      * }
      * }
@@ -1893,120 +1603,13 @@ public static Output getGlobalAddress(GetGlobalAddressAr
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getGlobalAddressPlain(GetGlobalAddressPlainArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invokeAsync("gcp:compute/getGlobalAddress:getGlobalAddress", TypeShape.of(GetGlobalAddressResult.class), args, Utilities.withVersion(options));
-    }
-    /**
-     * Get a global forwarding rule within GCE from its name.
-     * 
-     * ## Example Usage
-     * 
-     */
-    public static Output getGlobalForwardingRule(GetGlobalForwardingRuleArgs args) {
-        return getGlobalForwardingRule(args, InvokeOptions.Empty);
-    }
-    /**
-     * Get a global forwarding rule within GCE from its name.
-     * 
-     * ## Example Usage
-     * 
-     */
-    public static CompletableFuture getGlobalForwardingRulePlain(GetGlobalForwardingRulePlainArgs args) {
-        return getGlobalForwardingRulePlain(args, InvokeOptions.Empty);
-    }
-    /**
-     * Get a global forwarding rule within GCE from its name.
-     * 
-     * ## Example Usage
-     * 
-     */
-    public static Output getGlobalForwardingRule(GetGlobalForwardingRuleArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invoke("gcp:compute/getGlobalForwardingRule:getGlobalForwardingRule", TypeShape.of(GetGlobalForwardingRuleResult.class), args, Utilities.withVersion(options));
-    }
-    /**
-     * Get a global forwarding rule within GCE from its name.
-     * 
-     * ## Example Usage
-     * 
-     */
-    public static CompletableFuture getGlobalForwardingRulePlain(GetGlobalForwardingRulePlainArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invokeAsync("gcp:compute/getGlobalForwardingRule:getGlobalForwardingRule", TypeShape.of(GetGlobalForwardingRuleResult.class), args, Utilities.withVersion(options));
-    }
-    /**
-     * Get a HA VPN Gateway within GCE from its name.
-     * 
-     * ## Example Usage
-     * 
-     */
-    public static Output getHcVpnGateway(GetHcVpnGatewayArgs args) {
-        return getHcVpnGateway(args, InvokeOptions.Empty);
-    }
-    /**
-     * Get a HA VPN Gateway within GCE from its name.
-     * 
-     * ## Example Usage
-     * 
-     */
-    public static CompletableFuture getHcVpnGatewayPlain(GetHcVpnGatewayPlainArgs args) {
-        return getHcVpnGatewayPlain(args, InvokeOptions.Empty);
-    }
-    /**
-     * Get a HA VPN Gateway within GCE from its name.
-     * 
-     * ## Example Usage
-     * 
-     */
-    public static Output getHcVpnGateway(GetHcVpnGatewayArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invoke("gcp:compute/getHcVpnGateway:getHcVpnGateway", TypeShape.of(GetHcVpnGatewayResult.class), args, Utilities.withVersion(options));
-    }
-    /**
-     * Get a HA VPN Gateway within GCE from its name.
-     * 
-     * ## Example Usage
-     * 
-     */
-    public static CompletableFuture getHcVpnGatewayPlain(GetHcVpnGatewayPlainArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invokeAsync("gcp:compute/getHcVpnGateway:getHcVpnGateway", TypeShape.of(GetHcVpnGatewayResult.class), args, Utilities.withVersion(options));
-    }
-    /**
-     * Get information about a HealthCheck.
-     * 
-     * ## Example Usage
-     * 
-     */
-    public static Output getHealthCheck(GetHealthCheckArgs args) {
-        return getHealthCheck(args, InvokeOptions.Empty);
-    }
-    /**
-     * Get information about a HealthCheck.
-     * 
-     * ## Example Usage
-     * 
-     */
-    public static CompletableFuture getHealthCheckPlain(GetHealthCheckPlainArgs args) {
-        return getHealthCheckPlain(args, InvokeOptions.Empty);
-    }
-    /**
-     * Get information about a HealthCheck.
-     * 
-     * ## Example Usage
-     * 
-     */
-    public static Output getHealthCheck(GetHealthCheckArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invoke("gcp:compute/getHealthCheck:getHealthCheck", TypeShape.of(GetHealthCheckResult.class), args, Utilities.withVersion(options));
+    public static CompletableFuture getDefaultServiceAccountPlain(GetDefaultServiceAccountPlainArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invokeAsync("gcp:compute/getDefaultServiceAccount:getDefaultServiceAccount", TypeShape.of(GetDefaultServiceAccountResult.class), args, Utilities.withVersion(options));
     }
     /**
-     * Get information about a HealthCheck.
-     * 
-     * ## Example Usage
+     * Get information about a Google Compute Persistent disks.
      * 
-     */
-    public static CompletableFuture getHealthCheckPlain(GetHealthCheckPlainArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invokeAsync("gcp:compute/getHealthCheck:getHealthCheck", TypeShape.of(GetHealthCheckResult.class), args, Utilities.withVersion(options));
-    }
-    /**
-     * Get information about a Google Compute Image. Check that your service account has the `compute.imageUser` role if you want to share [custom images](https://cloud.google.com/compute/docs/images/sharing-images-across-projects) from another project. If you want to use [public images][pubimg], do not forget to specify the dedicated project. For more information see
-     * [the official documentation](https://cloud.google.com/compute/docs/images) and its [API](https://cloud.google.com/compute/docs/reference/latest/images).
+     * [the official documentation](https://cloud.google.com/compute/docs/disks) and its [API](https://cloud.google.com/compute/docs/reference/latest/disks).
      * 
      * ## Example Usage
      * 
@@ -2019,11 +1622,10 @@ public static CompletableFuture getHealthCheckPlain(GetHea
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetImageArgs;
+     * import com.pulumi.gcp.compute.inputs.GetDiskArgs;
      * import com.pulumi.gcp.compute.Instance;
      * import com.pulumi.gcp.compute.InstanceArgs;
      * import com.pulumi.gcp.compute.inputs.InstanceBootDiskArgs;
-     * import com.pulumi.gcp.compute.inputs.InstanceBootDiskInitializeParamsArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -2037,16 +1639,15 @@ public static CompletableFuture getHealthCheckPlain(GetHea
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var myImage = ComputeFunctions.getImage(GetImageArgs.builder()
-     *             .family("debian-11")
-     *             .project("debian-cloud")
+     *         final var persistent-boot-disk = ComputeFunctions.getDisk(GetDiskArgs.builder()
+     *             .name("persistent-boot-disk")
+     *             .project("example")
      *             .build());
      * 
      *         var default_ = new Instance("default", InstanceArgs.builder()
      *             .bootDisk(InstanceBootDiskArgs.builder()
-     *                 .initializeParams(InstanceBootDiskInitializeParamsArgs.builder()
-     *                     .image(myImage.applyValue(getImageResult -> getImageResult.selfLink()))
-     *                     .build())
+     *                 .source(persistent_boot_disk.selfLink())
+     *                 .autoDelete(false)
      *                 .build())
      *             .build());
      * 
@@ -2057,12 +1658,13 @@ public static CompletableFuture getHealthCheckPlain(GetHea
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getImage() {
-        return getImage(GetImageArgs.Empty, InvokeOptions.Empty);
+    public static Output getDisk(GetDiskArgs args) {
+        return getDisk(args, InvokeOptions.Empty);
     }
     /**
-     * Get information about a Google Compute Image. Check that your service account has the `compute.imageUser` role if you want to share [custom images](https://cloud.google.com/compute/docs/images/sharing-images-across-projects) from another project. If you want to use [public images][pubimg], do not forget to specify the dedicated project. For more information see
-     * [the official documentation](https://cloud.google.com/compute/docs/images) and its [API](https://cloud.google.com/compute/docs/reference/latest/images).
+     * Get information about a Google Compute Persistent disks.
+     * 
+     * [the official documentation](https://cloud.google.com/compute/docs/disks) and its [API](https://cloud.google.com/compute/docs/reference/latest/disks).
      * 
      * ## Example Usage
      * 
@@ -2075,11 +1677,10 @@ public static Output getImage() {
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetImageArgs;
+     * import com.pulumi.gcp.compute.inputs.GetDiskArgs;
      * import com.pulumi.gcp.compute.Instance;
      * import com.pulumi.gcp.compute.InstanceArgs;
      * import com.pulumi.gcp.compute.inputs.InstanceBootDiskArgs;
-     * import com.pulumi.gcp.compute.inputs.InstanceBootDiskInitializeParamsArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -2093,16 +1694,15 @@ public static Output getImage() {
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var myImage = ComputeFunctions.getImage(GetImageArgs.builder()
-     *             .family("debian-11")
-     *             .project("debian-cloud")
+     *         final var persistent-boot-disk = ComputeFunctions.getDisk(GetDiskArgs.builder()
+     *             .name("persistent-boot-disk")
+     *             .project("example")
      *             .build());
      * 
      *         var default_ = new Instance("default", InstanceArgs.builder()
      *             .bootDisk(InstanceBootDiskArgs.builder()
-     *                 .initializeParams(InstanceBootDiskInitializeParamsArgs.builder()
-     *                     .image(myImage.applyValue(getImageResult -> getImageResult.selfLink()))
-     *                     .build())
+     *                 .source(persistent_boot_disk.selfLink())
+     *                 .autoDelete(false)
      *                 .build())
      *             .build());
      * 
@@ -2113,12 +1713,13 @@ public static Output getImage() {
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getImagePlain() {
-        return getImagePlain(GetImagePlainArgs.Empty, InvokeOptions.Empty);
+    public static CompletableFuture getDiskPlain(GetDiskPlainArgs args) {
+        return getDiskPlain(args, InvokeOptions.Empty);
     }
     /**
-     * Get information about a Google Compute Image. Check that your service account has the `compute.imageUser` role if you want to share [custom images](https://cloud.google.com/compute/docs/images/sharing-images-across-projects) from another project. If you want to use [public images][pubimg], do not forget to specify the dedicated project. For more information see
-     * [the official documentation](https://cloud.google.com/compute/docs/images) and its [API](https://cloud.google.com/compute/docs/reference/latest/images).
+     * Get information about a Google Compute Persistent disks.
+     * 
+     * [the official documentation](https://cloud.google.com/compute/docs/disks) and its [API](https://cloud.google.com/compute/docs/reference/latest/disks).
      * 
      * ## Example Usage
      * 
@@ -2131,11 +1732,10 @@ public static CompletableFuture getImagePlain() {
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetImageArgs;
+     * import com.pulumi.gcp.compute.inputs.GetDiskArgs;
      * import com.pulumi.gcp.compute.Instance;
      * import com.pulumi.gcp.compute.InstanceArgs;
      * import com.pulumi.gcp.compute.inputs.InstanceBootDiskArgs;
-     * import com.pulumi.gcp.compute.inputs.InstanceBootDiskInitializeParamsArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -2149,16 +1749,15 @@ public static CompletableFuture getImagePlain() {
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var myImage = ComputeFunctions.getImage(GetImageArgs.builder()
-     *             .family("debian-11")
-     *             .project("debian-cloud")
+     *         final var persistent-boot-disk = ComputeFunctions.getDisk(GetDiskArgs.builder()
+     *             .name("persistent-boot-disk")
+     *             .project("example")
      *             .build());
      * 
      *         var default_ = new Instance("default", InstanceArgs.builder()
      *             .bootDisk(InstanceBootDiskArgs.builder()
-     *                 .initializeParams(InstanceBootDiskInitializeParamsArgs.builder()
-     *                     .image(myImage.applyValue(getImageResult -> getImageResult.selfLink()))
-     *                     .build())
+     *                 .source(persistent_boot_disk.selfLink())
+     *                 .autoDelete(false)
      *                 .build())
      *             .build());
      * 
@@ -2169,12 +1768,13 @@ public static CompletableFuture getImagePlain() {
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getImage(GetImageArgs args) {
-        return getImage(args, InvokeOptions.Empty);
+    public static Output getDisk(GetDiskArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invoke("gcp:compute/getDisk:getDisk", TypeShape.of(GetDiskResult.class), args, Utilities.withVersion(options));
     }
     /**
-     * Get information about a Google Compute Image. Check that your service account has the `compute.imageUser` role if you want to share [custom images](https://cloud.google.com/compute/docs/images/sharing-images-across-projects) from another project. If you want to use [public images][pubimg], do not forget to specify the dedicated project. For more information see
-     * [the official documentation](https://cloud.google.com/compute/docs/images) and its [API](https://cloud.google.com/compute/docs/reference/latest/images).
+     * Get information about a Google Compute Persistent disks.
+     * 
+     * [the official documentation](https://cloud.google.com/compute/docs/disks) and its [API](https://cloud.google.com/compute/docs/reference/latest/disks).
      * 
      * ## Example Usage
      * 
@@ -2187,11 +1787,10 @@ public static Output getImage(GetImageArgs args) {
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetImageArgs;
+     * import com.pulumi.gcp.compute.inputs.GetDiskArgs;
      * import com.pulumi.gcp.compute.Instance;
      * import com.pulumi.gcp.compute.InstanceArgs;
      * import com.pulumi.gcp.compute.inputs.InstanceBootDiskArgs;
-     * import com.pulumi.gcp.compute.inputs.InstanceBootDiskInitializeParamsArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -2205,16 +1804,15 @@ public static Output getImage(GetImageArgs args) {
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var myImage = ComputeFunctions.getImage(GetImageArgs.builder()
-     *             .family("debian-11")
-     *             .project("debian-cloud")
+     *         final var persistent-boot-disk = ComputeFunctions.getDisk(GetDiskArgs.builder()
+     *             .name("persistent-boot-disk")
+     *             .project("example")
      *             .build());
      * 
      *         var default_ = new Instance("default", InstanceArgs.builder()
      *             .bootDisk(InstanceBootDiskArgs.builder()
-     *                 .initializeParams(InstanceBootDiskInitializeParamsArgs.builder()
-     *                     .image(myImage.applyValue(getImageResult -> getImageResult.selfLink()))
-     *                     .build())
+     *                 .source(persistent_boot_disk.selfLink())
+     *                 .autoDelete(false)
      *                 .build())
      *             .build());
      * 
@@ -2225,14 +1823,13 @@ public static Output getImage(GetImageArgs args) {
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getImagePlain(GetImagePlainArgs args) {
-        return getImagePlain(args, InvokeOptions.Empty);
+    public static CompletableFuture getDiskPlain(GetDiskPlainArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invokeAsync("gcp:compute/getDisk:getDisk", TypeShape.of(GetDiskResult.class), args, Utilities.withVersion(options));
     }
     /**
-     * Get information about a Google Compute Image. Check that your service account has the `compute.imageUser` role if you want to share [custom images](https://cloud.google.com/compute/docs/images/sharing-images-across-projects) from another project. If you want to use [public images][pubimg], do not forget to specify the dedicated project. For more information see
-     * [the official documentation](https://cloud.google.com/compute/docs/images) and its [API](https://cloud.google.com/compute/docs/reference/latest/images).
+     * Retrieves the current IAM policy data for disk
      * 
-     * ## Example Usage
+     * ## example
      * 
      * <!--Start PulumiCodeChooser -->
      * 
@@ -2243,11 +1840,7 @@ public static CompletableFuture getImagePlain(GetImagePlainArgs
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetImageArgs;
-     * import com.pulumi.gcp.compute.Instance;
-     * import com.pulumi.gcp.compute.InstanceArgs;
-     * import com.pulumi.gcp.compute.inputs.InstanceBootDiskArgs;
-     * import com.pulumi.gcp.compute.inputs.InstanceBootDiskInitializeParamsArgs;
+     * import com.pulumi.gcp.compute.inputs.GetDiskIamPolicyArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -2261,17 +1854,10 @@ public static CompletableFuture getImagePlain(GetImagePlainArgs
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var myImage = ComputeFunctions.getImage(GetImageArgs.builder()
-     *             .family("debian-11")
-     *             .project("debian-cloud")
-     *             .build());
-     * 
-     *         var default_ = new Instance("default", InstanceArgs.builder()
-     *             .bootDisk(InstanceBootDiskArgs.builder()
-     *                 .initializeParams(InstanceBootDiskInitializeParamsArgs.builder()
-     *                     .image(myImage.applyValue(getImageResult -> getImageResult.selfLink()))
-     *                     .build())
-     *                 .build())
+     *         final var policy = ComputeFunctions.getDiskIamPolicy(GetDiskIamPolicyArgs.builder()
+     *             .project(default_.project())
+     *             .zone(default_.zone())
+     *             .name(default_.name())
      *             .build());
      * 
      *     }
@@ -2281,14 +1867,13 @@ public static CompletableFuture getImagePlain(GetImagePlainArgs
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getImage(GetImageArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invoke("gcp:compute/getImage:getImage", TypeShape.of(GetImageResult.class), args, Utilities.withVersion(options));
+    public static Output getDiskIamPolicy(GetDiskIamPolicyArgs args) {
+        return getDiskIamPolicy(args, InvokeOptions.Empty);
     }
     /**
-     * Get information about a Google Compute Image. Check that your service account has the `compute.imageUser` role if you want to share [custom images](https://cloud.google.com/compute/docs/images/sharing-images-across-projects) from another project. If you want to use [public images][pubimg], do not forget to specify the dedicated project. For more information see
-     * [the official documentation](https://cloud.google.com/compute/docs/images) and its [API](https://cloud.google.com/compute/docs/reference/latest/images).
+     * Retrieves the current IAM policy data for disk
      * 
-     * ## Example Usage
+     * ## example
      * 
      * <!--Start PulumiCodeChooser -->
      * 
@@ -2299,11 +1884,7 @@ public static Output getImage(GetImageArgs args, InvokeOptions o
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetImageArgs;
-     * import com.pulumi.gcp.compute.Instance;
-     * import com.pulumi.gcp.compute.InstanceArgs;
-     * import com.pulumi.gcp.compute.inputs.InstanceBootDiskArgs;
-     * import com.pulumi.gcp.compute.inputs.InstanceBootDiskInitializeParamsArgs;
+     * import com.pulumi.gcp.compute.inputs.GetDiskIamPolicyArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -2317,17 +1898,10 @@ public static Output getImage(GetImageArgs args, InvokeOptions o
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var myImage = ComputeFunctions.getImage(GetImageArgs.builder()
-     *             .family("debian-11")
-     *             .project("debian-cloud")
-     *             .build());
-     * 
-     *         var default_ = new Instance("default", InstanceArgs.builder()
-     *             .bootDisk(InstanceBootDiskArgs.builder()
-     *                 .initializeParams(InstanceBootDiskInitializeParamsArgs.builder()
-     *                     .image(myImage.applyValue(getImageResult -> getImageResult.selfLink()))
-     *                     .build())
-     *                 .build())
+     *         final var policy = ComputeFunctions.getDiskIamPolicy(GetDiskIamPolicyArgs.builder()
+     *             .project(default_.project())
+     *             .zone(default_.zone())
+     *             .name(default_.name())
      *             .build());
      * 
      *     }
@@ -2337,11 +1911,11 @@ public static Output getImage(GetImageArgs args, InvokeOptions o
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getImagePlain(GetImagePlainArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invokeAsync("gcp:compute/getImage:getImage", TypeShape.of(GetImageResult.class), args, Utilities.withVersion(options));
+    public static CompletableFuture getDiskIamPolicyPlain(GetDiskIamPolicyPlainArgs args) {
+        return getDiskIamPolicyPlain(args, InvokeOptions.Empty);
     }
     /**
-     * Retrieves the current IAM policy data for image
+     * Retrieves the current IAM policy data for disk
      * 
      * ## example
      * 
@@ -2354,7 +1928,7 @@ public static CompletableFuture getImagePlain(GetImagePlainArgs
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetImageIamPolicyArgs;
+     * import com.pulumi.gcp.compute.inputs.GetDiskIamPolicyArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -2368,9 +1942,10 @@ public static CompletableFuture getImagePlain(GetImagePlainArgs
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var policy = ComputeFunctions.getImageIamPolicy(GetImageIamPolicyArgs.builder()
-     *             .project(example.project())
-     *             .image(example.name())
+     *         final var policy = ComputeFunctions.getDiskIamPolicy(GetDiskIamPolicyArgs.builder()
+     *             .project(default_.project())
+     *             .zone(default_.zone())
+     *             .name(default_.name())
      *             .build());
      * 
      *     }
@@ -2380,11 +1955,11 @@ public static CompletableFuture getImagePlain(GetImagePlainArgs
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getImageIamPolicy(GetImageIamPolicyArgs args) {
-        return getImageIamPolicy(args, InvokeOptions.Empty);
+    public static Output getDiskIamPolicy(GetDiskIamPolicyArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invoke("gcp:compute/getDiskIamPolicy:getDiskIamPolicy", TypeShape.of(GetDiskIamPolicyResult.class), args, Utilities.withVersion(options));
     }
     /**
-     * Retrieves the current IAM policy data for image
+     * Retrieves the current IAM policy data for disk
      * 
      * ## example
      * 
@@ -2397,7 +1972,7 @@ public static Output getImageIamPolicy(GetImageIamPolic
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetImageIamPolicyArgs;
+     * import com.pulumi.gcp.compute.inputs.GetDiskIamPolicyArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -2411,9 +1986,10 @@ public static Output getImageIamPolicy(GetImageIamPolic
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var policy = ComputeFunctions.getImageIamPolicy(GetImageIamPolicyArgs.builder()
-     *             .project(example.project())
-     *             .image(example.name())
+     *         final var policy = ComputeFunctions.getDiskIamPolicy(GetDiskIamPolicyArgs.builder()
+     *             .project(default_.project())
+     *             .zone(default_.zone())
+     *             .name(default_.name())
      *             .build());
      * 
      *     }
@@ -2423,13 +1999,13 @@ public static Output getImageIamPolicy(GetImageIamPolic
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getImageIamPolicyPlain(GetImageIamPolicyPlainArgs args) {
-        return getImageIamPolicyPlain(args, InvokeOptions.Empty);
+    public static CompletableFuture getDiskIamPolicyPlain(GetDiskIamPolicyPlainArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invokeAsync("gcp:compute/getDiskIamPolicy:getDiskIamPolicy", TypeShape.of(GetDiskIamPolicyResult.class), args, Utilities.withVersion(options));
     }
     /**
-     * Retrieves the current IAM policy data for image
+     * Get a forwarding rule within GCE from its name.
      * 
-     * ## example
+     * ## Example Usage
      * 
      * <!--Start PulumiCodeChooser -->
      * 
@@ -2440,7 +2016,7 @@ public static CompletableFuture getImageIamPolicyPlain(
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetImageIamPolicyArgs;
+     * import com.pulumi.gcp.compute.inputs.GetForwardingRuleArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -2454,9 +2030,8 @@ public static CompletableFuture getImageIamPolicyPlain(
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var policy = ComputeFunctions.getImageIamPolicy(GetImageIamPolicyArgs.builder()
-     *             .project(example.project())
-     *             .image(example.name())
+     *         final var my-forwarding-rule = ComputeFunctions.getForwardingRule(GetForwardingRuleArgs.builder()
+     *             .name("forwarding-rule-us-east1")
      *             .build());
      * 
      *     }
@@ -2466,13 +2041,13 @@ public static CompletableFuture getImageIamPolicyPlain(
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getImageIamPolicy(GetImageIamPolicyArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invoke("gcp:compute/getImageIamPolicy:getImageIamPolicy", TypeShape.of(GetImageIamPolicyResult.class), args, Utilities.withVersion(options));
+    public static Output getForwardingRule(GetForwardingRuleArgs args) {
+        return getForwardingRule(args, InvokeOptions.Empty);
     }
     /**
-     * Retrieves the current IAM policy data for image
+     * Get a forwarding rule within GCE from its name.
      * 
-     * ## example
+     * ## Example Usage
      * 
      * <!--Start PulumiCodeChooser -->
      * 
@@ -2483,7 +2058,7 @@ public static Output getImageIamPolicy(GetImageIamPolic
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetImageIamPolicyArgs;
+     * import com.pulumi.gcp.compute.inputs.GetForwardingRuleArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -2497,9 +2072,8 @@ public static Output getImageIamPolicy(GetImageIamPolic
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var policy = ComputeFunctions.getImageIamPolicy(GetImageIamPolicyArgs.builder()
-     *             .project(example.project())
-     *             .image(example.name())
+     *         final var my-forwarding-rule = ComputeFunctions.getForwardingRule(GetForwardingRuleArgs.builder()
+     *             .name("forwarding-rule-us-east1")
      *             .build());
      * 
      *     }
@@ -2509,14 +2083,11 @@ public static Output getImageIamPolicy(GetImageIamPolic
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getImageIamPolicyPlain(GetImageIamPolicyPlainArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invokeAsync("gcp:compute/getImageIamPolicy:getImageIamPolicy", TypeShape.of(GetImageIamPolicyResult.class), args, Utilities.withVersion(options));
+    public static CompletableFuture getForwardingRulePlain(GetForwardingRulePlainArgs args) {
+        return getForwardingRulePlain(args, InvokeOptions.Empty);
     }
     /**
-     * Get information about a VM instance resource within GCE. For more information see
-     * [the official documentation](https://cloud.google.com/compute/docs/instances)
-     * and
-     * [API](https://cloud.google.com/compute/docs/reference/latest/instances).
+     * Get a forwarding rule within GCE from its name.
      * 
      * ## Example Usage
      * 
@@ -2529,7 +2100,7 @@ public static CompletableFuture getImageIamPolicyPlain(
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetInstanceArgs;
+     * import com.pulumi.gcp.compute.inputs.GetForwardingRuleArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -2543,9 +2114,8 @@ public static CompletableFuture getImageIamPolicyPlain(
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var appserver = ComputeFunctions.getInstance(GetInstanceArgs.builder()
-     *             .name("primary-application-server")
-     *             .zone("us-central1-a")
+     *         final var my-forwarding-rule = ComputeFunctions.getForwardingRule(GetForwardingRuleArgs.builder()
+     *             .name("forwarding-rule-us-east1")
      *             .build());
      * 
      *     }
@@ -2555,14 +2125,11 @@ public static CompletableFuture getImageIamPolicyPlain(
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getInstance() {
-        return getInstance(GetInstanceArgs.Empty, InvokeOptions.Empty);
+    public static Output getForwardingRule(GetForwardingRuleArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invoke("gcp:compute/getForwardingRule:getForwardingRule", TypeShape.of(GetForwardingRuleResult.class), args, Utilities.withVersion(options));
     }
     /**
-     * Get information about a VM instance resource within GCE. For more information see
-     * [the official documentation](https://cloud.google.com/compute/docs/instances)
-     * and
-     * [API](https://cloud.google.com/compute/docs/reference/latest/instances).
+     * Get a forwarding rule within GCE from its name.
      * 
      * ## Example Usage
      * 
@@ -2575,7 +2142,7 @@ public static Output getInstance() {
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetInstanceArgs;
+     * import com.pulumi.gcp.compute.inputs.GetForwardingRuleArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -2589,9 +2156,8 @@ public static Output getInstance() {
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var appserver = ComputeFunctions.getInstance(GetInstanceArgs.builder()
-     *             .name("primary-application-server")
-     *             .zone("us-central1-a")
+     *         final var my-forwarding-rule = ComputeFunctions.getForwardingRule(GetForwardingRuleArgs.builder()
+     *             .name("forwarding-rule-us-east1")
      *             .build());
      * 
      *     }
@@ -2601,14 +2167,11 @@ public static Output getInstance() {
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getInstancePlain() {
-        return getInstancePlain(GetInstancePlainArgs.Empty, InvokeOptions.Empty);
+    public static CompletableFuture getForwardingRulePlain(GetForwardingRulePlainArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invokeAsync("gcp:compute/getForwardingRule:getForwardingRule", TypeShape.of(GetForwardingRuleResult.class), args, Utilities.withVersion(options));
     }
     /**
-     * Get information about a VM instance resource within GCE. For more information see
-     * [the official documentation](https://cloud.google.com/compute/docs/instances)
-     * and
-     * [API](https://cloud.google.com/compute/docs/reference/latest/instances).
+     * List all networks in a specified Google Cloud project.
      * 
      * ## Example Usage
      * 
@@ -2621,7 +2184,7 @@ public static CompletableFuture getInstancePlain() {
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetInstanceArgs;
+     * import com.pulumi.gcp.compute.inputs.GetForwardingRulesArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -2635,9 +2198,9 @@ public static CompletableFuture getInstancePlain() {
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var appserver = ComputeFunctions.getInstance(GetInstanceArgs.builder()
-     *             .name("primary-application-server")
-     *             .zone("us-central1-a")
+     *         final var my-forwarding-rules = ComputeFunctions.getForwardingRules(GetForwardingRulesArgs.builder()
+     *             .project("my-cloud-project")
+     *             .region("us-central1")
      *             .build());
      * 
      *     }
@@ -2647,14 +2210,11 @@ public static CompletableFuture getInstancePlain() {
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getInstance(GetInstanceArgs args) {
-        return getInstance(args, InvokeOptions.Empty);
+    public static Output getForwardingRules() {
+        return getForwardingRules(GetForwardingRulesArgs.Empty, InvokeOptions.Empty);
     }
     /**
-     * Get information about a VM instance resource within GCE. For more information see
-     * [the official documentation](https://cloud.google.com/compute/docs/instances)
-     * and
-     * [API](https://cloud.google.com/compute/docs/reference/latest/instances).
+     * List all networks in a specified Google Cloud project.
      * 
      * ## Example Usage
      * 
@@ -2667,7 +2227,7 @@ public static Output getInstance(GetInstanceArgs args) {
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetInstanceArgs;
+     * import com.pulumi.gcp.compute.inputs.GetForwardingRulesArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -2681,9 +2241,9 @@ public static Output getInstance(GetInstanceArgs args) {
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var appserver = ComputeFunctions.getInstance(GetInstanceArgs.builder()
-     *             .name("primary-application-server")
-     *             .zone("us-central1-a")
+     *         final var my-forwarding-rules = ComputeFunctions.getForwardingRules(GetForwardingRulesArgs.builder()
+     *             .project("my-cloud-project")
+     *             .region("us-central1")
      *             .build());
      * 
      *     }
@@ -2693,14 +2253,11 @@ public static Output getInstance(GetInstanceArgs args) {
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getInstancePlain(GetInstancePlainArgs args) {
-        return getInstancePlain(args, InvokeOptions.Empty);
+    public static CompletableFuture getForwardingRulesPlain() {
+        return getForwardingRulesPlain(GetForwardingRulesPlainArgs.Empty, InvokeOptions.Empty);
     }
     /**
-     * Get information about a VM instance resource within GCE. For more information see
-     * [the official documentation](https://cloud.google.com/compute/docs/instances)
-     * and
-     * [API](https://cloud.google.com/compute/docs/reference/latest/instances).
+     * List all networks in a specified Google Cloud project.
      * 
      * ## Example Usage
      * 
@@ -2713,7 +2270,7 @@ public static CompletableFuture getInstancePlain(GetInstanceP
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetInstanceArgs;
+     * import com.pulumi.gcp.compute.inputs.GetForwardingRulesArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -2727,9 +2284,9 @@ public static CompletableFuture getInstancePlain(GetInstanceP
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var appserver = ComputeFunctions.getInstance(GetInstanceArgs.builder()
-     *             .name("primary-application-server")
-     *             .zone("us-central1-a")
+     *         final var my-forwarding-rules = ComputeFunctions.getForwardingRules(GetForwardingRulesArgs.builder()
+     *             .project("my-cloud-project")
+     *             .region("us-central1")
      *             .build());
      * 
      *     }
@@ -2739,14 +2296,11 @@ public static CompletableFuture getInstancePlain(GetInstanceP
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getInstance(GetInstanceArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invoke("gcp:compute/getInstance:getInstance", TypeShape.of(GetInstanceResult.class), args, Utilities.withVersion(options));
+    public static Output getForwardingRules(GetForwardingRulesArgs args) {
+        return getForwardingRules(args, InvokeOptions.Empty);
     }
     /**
-     * Get information about a VM instance resource within GCE. For more information see
-     * [the official documentation](https://cloud.google.com/compute/docs/instances)
-     * and
-     * [API](https://cloud.google.com/compute/docs/reference/latest/instances).
+     * List all networks in a specified Google Cloud project.
      * 
      * ## Example Usage
      * 
@@ -2759,7 +2313,7 @@ public static Output getInstance(GetInstanceArgs args, Invoke
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetInstanceArgs;
+     * import com.pulumi.gcp.compute.inputs.GetForwardingRulesArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -2773,9 +2327,9 @@ public static Output getInstance(GetInstanceArgs args, Invoke
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var appserver = ComputeFunctions.getInstance(GetInstanceArgs.builder()
-     *             .name("primary-application-server")
-     *             .zone("us-central1-a")
+     *         final var my-forwarding-rules = ComputeFunctions.getForwardingRules(GetForwardingRulesArgs.builder()
+     *             .project("my-cloud-project")
+     *             .region("us-central1")
      *             .build());
      * 
      *     }
@@ -2785,13 +2339,13 @@ public static Output getInstance(GetInstanceArgs args, Invoke
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getInstancePlain(GetInstancePlainArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invokeAsync("gcp:compute/getInstance:getInstance", TypeShape.of(GetInstanceResult.class), args, Utilities.withVersion(options));
+    public static CompletableFuture getForwardingRulesPlain(GetForwardingRulesPlainArgs args) {
+        return getForwardingRulesPlain(args, InvokeOptions.Empty);
     }
     /**
-     * Get a Compute Instance Group within GCE.
-     * For more information, see [the official documentation](https://cloud.google.com/compute/docs/instance-groups/#unmanaged_instance_groups)
-     * and [API](https://cloud.google.com/compute/docs/reference/latest/instanceGroups)
+     * List all networks in a specified Google Cloud project.
+     * 
+     * ## Example Usage
      * 
      * <!--Start PulumiCodeChooser -->
      * 
@@ -2802,7 +2356,7 @@ public static CompletableFuture getInstancePlain(GetInstanceP
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetInstanceGroupArgs;
+     * import com.pulumi.gcp.compute.inputs.GetForwardingRulesArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -2816,9 +2370,9 @@ public static CompletableFuture getInstancePlain(GetInstanceP
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var all = ComputeFunctions.getInstanceGroup(GetInstanceGroupArgs.builder()
-     *             .name("instance-group-name")
-     *             .zone("us-central1-a")
+     *         final var my-forwarding-rules = ComputeFunctions.getForwardingRules(GetForwardingRulesArgs.builder()
+     *             .project("my-cloud-project")
+     *             .region("us-central1")
      *             .build());
      * 
      *     }
@@ -2828,13 +2382,13 @@ public static CompletableFuture getInstancePlain(GetInstanceP
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getInstanceGroup() {
-        return getInstanceGroup(GetInstanceGroupArgs.Empty, InvokeOptions.Empty);
+    public static Output getForwardingRules(GetForwardingRulesArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invoke("gcp:compute/getForwardingRules:getForwardingRules", TypeShape.of(GetForwardingRulesResult.class), args, Utilities.withVersion(options));
     }
     /**
-     * Get a Compute Instance Group within GCE.
-     * For more information, see [the official documentation](https://cloud.google.com/compute/docs/instance-groups/#unmanaged_instance_groups)
-     * and [API](https://cloud.google.com/compute/docs/reference/latest/instanceGroups)
+     * List all networks in a specified Google Cloud project.
+     * 
+     * ## Example Usage
      * 
      * <!--Start PulumiCodeChooser -->
      * 
@@ -2845,7 +2399,7 @@ public static Output getInstanceGroup() {
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetInstanceGroupArgs;
+     * import com.pulumi.gcp.compute.inputs.GetForwardingRulesArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -2859,9 +2413,9 @@ public static Output getInstanceGroup() {
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var all = ComputeFunctions.getInstanceGroup(GetInstanceGroupArgs.builder()
-     *             .name("instance-group-name")
-     *             .zone("us-central1-a")
+     *         final var my-forwarding-rules = ComputeFunctions.getForwardingRules(GetForwardingRulesArgs.builder()
+     *             .project("my-cloud-project")
+     *             .region("us-central1")
      *             .build());
      * 
      *     }
@@ -2871,14 +2425,15 @@ public static Output getInstanceGroup() {
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getInstanceGroupPlain() {
-        return getInstanceGroupPlain(GetInstanceGroupPlainArgs.Empty, InvokeOptions.Empty);
+    public static CompletableFuture getForwardingRulesPlain(GetForwardingRulesPlainArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invokeAsync("gcp:compute/getForwardingRules:getForwardingRules", TypeShape.of(GetForwardingRulesResult.class), args, Utilities.withVersion(options));
     }
     /**
-     * Get a Compute Instance Group within GCE.
-     * For more information, see [the official documentation](https://cloud.google.com/compute/docs/instance-groups/#unmanaged_instance_groups)
-     * and [API](https://cloud.google.com/compute/docs/reference/latest/instanceGroups)
-     * 
+     * Get the IP address from a static address reserved for a Global Forwarding Rule which are only used for HTTP load balancing. For more information see
+     * the official [API](https://cloud.google.com/compute/docs/reference/latest/globalAddresses) documentation.
+     * 
+     * ## Example Usage
+     * 
      * <!--Start PulumiCodeChooser -->
      * 
      * {@code
@@ -2888,7 +2443,11 @@ public static CompletableFuture getInstanceGroupPlain()
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetInstanceGroupArgs;
+     * import com.pulumi.gcp.compute.inputs.GetGlobalAddressArgs;
+     * import com.pulumi.gcp.dns.ManagedZone;
+     * import com.pulumi.gcp.dns.ManagedZoneArgs;
+     * import com.pulumi.gcp.dns.RecordSet;
+     * import com.pulumi.gcp.dns.RecordSetArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -2902,9 +2461,21 @@ public static CompletableFuture getInstanceGroupPlain()
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var all = ComputeFunctions.getInstanceGroup(GetInstanceGroupArgs.builder()
-     *             .name("instance-group-name")
-     *             .zone("us-central1-a")
+     *         final var myAddress = ComputeFunctions.getGlobalAddress(GetGlobalAddressArgs.builder()
+     *             .name("foobar")
+     *             .build());
+     * 
+     *         var prod = new ManagedZone("prod", ManagedZoneArgs.builder()
+     *             .name("prod-zone")
+     *             .dnsName("prod.mydomain.com.")
+     *             .build());
+     * 
+     *         var frontend = new RecordSet("frontend", RecordSetArgs.builder()
+     *             .name(prod.dnsName().applyValue(dnsName -> String.format("lb.%s", dnsName)))
+     *             .type("A")
+     *             .ttl(300)
+     *             .managedZone(prod.name())
+     *             .rrdatas(myAddress.applyValue(getGlobalAddressResult -> getGlobalAddressResult.address()))
      *             .build());
      * 
      *     }
@@ -2914,13 +2485,14 @@ public static CompletableFuture getInstanceGroupPlain()
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getInstanceGroup(GetInstanceGroupArgs args) {
-        return getInstanceGroup(args, InvokeOptions.Empty);
+    public static Output getGlobalAddress(GetGlobalAddressArgs args) {
+        return getGlobalAddress(args, InvokeOptions.Empty);
     }
     /**
-     * Get a Compute Instance Group within GCE.
-     * For more information, see [the official documentation](https://cloud.google.com/compute/docs/instance-groups/#unmanaged_instance_groups)
-     * and [API](https://cloud.google.com/compute/docs/reference/latest/instanceGroups)
+     * Get the IP address from a static address reserved for a Global Forwarding Rule which are only used for HTTP load balancing. For more information see
+     * the official [API](https://cloud.google.com/compute/docs/reference/latest/globalAddresses) documentation.
+     * 
+     * ## Example Usage
      * 
      * <!--Start PulumiCodeChooser -->
      * 
@@ -2931,7 +2503,11 @@ public static Output getInstanceGroup(GetInstanceGroupAr
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetInstanceGroupArgs;
+     * import com.pulumi.gcp.compute.inputs.GetGlobalAddressArgs;
+     * import com.pulumi.gcp.dns.ManagedZone;
+     * import com.pulumi.gcp.dns.ManagedZoneArgs;
+     * import com.pulumi.gcp.dns.RecordSet;
+     * import com.pulumi.gcp.dns.RecordSetArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -2945,9 +2521,21 @@ public static Output getInstanceGroup(GetInstanceGroupAr
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var all = ComputeFunctions.getInstanceGroup(GetInstanceGroupArgs.builder()
-     *             .name("instance-group-name")
-     *             .zone("us-central1-a")
+     *         final var myAddress = ComputeFunctions.getGlobalAddress(GetGlobalAddressArgs.builder()
+     *             .name("foobar")
+     *             .build());
+     * 
+     *         var prod = new ManagedZone("prod", ManagedZoneArgs.builder()
+     *             .name("prod-zone")
+     *             .dnsName("prod.mydomain.com.")
+     *             .build());
+     * 
+     *         var frontend = new RecordSet("frontend", RecordSetArgs.builder()
+     *             .name(prod.dnsName().applyValue(dnsName -> String.format("lb.%s", dnsName)))
+     *             .type("A")
+     *             .ttl(300)
+     *             .managedZone(prod.name())
+     *             .rrdatas(myAddress.applyValue(getGlobalAddressResult -> getGlobalAddressResult.address()))
      *             .build());
      * 
      *     }
@@ -2957,13 +2545,14 @@ public static Output getInstanceGroup(GetInstanceGroupAr
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getInstanceGroupPlain(GetInstanceGroupPlainArgs args) {
-        return getInstanceGroupPlain(args, InvokeOptions.Empty);
+    public static CompletableFuture getGlobalAddressPlain(GetGlobalAddressPlainArgs args) {
+        return getGlobalAddressPlain(args, InvokeOptions.Empty);
     }
     /**
-     * Get a Compute Instance Group within GCE.
-     * For more information, see [the official documentation](https://cloud.google.com/compute/docs/instance-groups/#unmanaged_instance_groups)
-     * and [API](https://cloud.google.com/compute/docs/reference/latest/instanceGroups)
+     * Get the IP address from a static address reserved for a Global Forwarding Rule which are only used for HTTP load balancing. For more information see
+     * the official [API](https://cloud.google.com/compute/docs/reference/latest/globalAddresses) documentation.
+     * 
+     * ## Example Usage
      * 
      * <!--Start PulumiCodeChooser -->
      * 
@@ -2974,7 +2563,11 @@ public static CompletableFuture getInstanceGroupPlain(Ge
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetInstanceGroupArgs;
+     * import com.pulumi.gcp.compute.inputs.GetGlobalAddressArgs;
+     * import com.pulumi.gcp.dns.ManagedZone;
+     * import com.pulumi.gcp.dns.ManagedZoneArgs;
+     * import com.pulumi.gcp.dns.RecordSet;
+     * import com.pulumi.gcp.dns.RecordSetArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -2988,9 +2581,21 @@ public static CompletableFuture getInstanceGroupPlain(Ge
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var all = ComputeFunctions.getInstanceGroup(GetInstanceGroupArgs.builder()
-     *             .name("instance-group-name")
-     *             .zone("us-central1-a")
+     *         final var myAddress = ComputeFunctions.getGlobalAddress(GetGlobalAddressArgs.builder()
+     *             .name("foobar")
+     *             .build());
+     * 
+     *         var prod = new ManagedZone("prod", ManagedZoneArgs.builder()
+     *             .name("prod-zone")
+     *             .dnsName("prod.mydomain.com.")
+     *             .build());
+     * 
+     *         var frontend = new RecordSet("frontend", RecordSetArgs.builder()
+     *             .name(prod.dnsName().applyValue(dnsName -> String.format("lb.%s", dnsName)))
+     *             .type("A")
+     *             .ttl(300)
+     *             .managedZone(prod.name())
+     *             .rrdatas(myAddress.applyValue(getGlobalAddressResult -> getGlobalAddressResult.address()))
      *             .build());
      * 
      *     }
@@ -3000,13 +2605,14 @@ public static CompletableFuture getInstanceGroupPlain(Ge
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getInstanceGroup(GetInstanceGroupArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invoke("gcp:compute/getInstanceGroup:getInstanceGroup", TypeShape.of(GetInstanceGroupResult.class), args, Utilities.withVersion(options));
+    public static Output getGlobalAddress(GetGlobalAddressArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invoke("gcp:compute/getGlobalAddress:getGlobalAddress", TypeShape.of(GetGlobalAddressResult.class), args, Utilities.withVersion(options));
     }
     /**
-     * Get a Compute Instance Group within GCE.
-     * For more information, see [the official documentation](https://cloud.google.com/compute/docs/instance-groups/#unmanaged_instance_groups)
-     * and [API](https://cloud.google.com/compute/docs/reference/latest/instanceGroups)
+     * Get the IP address from a static address reserved for a Global Forwarding Rule which are only used for HTTP load balancing. For more information see
+     * the official [API](https://cloud.google.com/compute/docs/reference/latest/globalAddresses) documentation.
+     * 
+     * ## Example Usage
      * 
      * <!--Start PulumiCodeChooser -->
      * 
@@ -3017,7 +2623,11 @@ public static Output getInstanceGroup(GetInstanceGroupAr
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetInstanceGroupArgs;
+     * import com.pulumi.gcp.compute.inputs.GetGlobalAddressArgs;
+     * import com.pulumi.gcp.dns.ManagedZone;
+     * import com.pulumi.gcp.dns.ManagedZoneArgs;
+     * import com.pulumi.gcp.dns.RecordSet;
+     * import com.pulumi.gcp.dns.RecordSetArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -3031,9 +2641,21 @@ public static Output getInstanceGroup(GetInstanceGroupAr
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var all = ComputeFunctions.getInstanceGroup(GetInstanceGroupArgs.builder()
-     *             .name("instance-group-name")
-     *             .zone("us-central1-a")
+     *         final var myAddress = ComputeFunctions.getGlobalAddress(GetGlobalAddressArgs.builder()
+     *             .name("foobar")
+     *             .build());
+     * 
+     *         var prod = new ManagedZone("prod", ManagedZoneArgs.builder()
+     *             .name("prod-zone")
+     *             .dnsName("prod.mydomain.com.")
+     *             .build());
+     * 
+     *         var frontend = new RecordSet("frontend", RecordSetArgs.builder()
+     *             .name(prod.dnsName().applyValue(dnsName -> String.format("lb.%s", dnsName)))
+     *             .type("A")
+     *             .ttl(300)
+     *             .managedZone(prod.name())
+     *             .rrdatas(myAddress.applyValue(getGlobalAddressResult -> getGlobalAddressResult.address()))
      *             .build());
      * 
      *     }
@@ -3043,13 +2665,11 @@ public static Output getInstanceGroup(GetInstanceGroupAr
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getInstanceGroupPlain(GetInstanceGroupPlainArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invokeAsync("gcp:compute/getInstanceGroup:getInstanceGroup", TypeShape.of(GetInstanceGroupResult.class), args, Utilities.withVersion(options));
+    public static CompletableFuture getGlobalAddressPlain(GetGlobalAddressPlainArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invokeAsync("gcp:compute/getGlobalAddress:getGlobalAddress", TypeShape.of(GetGlobalAddressResult.class), args, Utilities.withVersion(options));
     }
     /**
-     * Get a Compute Instance Group Manager within GCE.
-     * For more information, see [the official documentation](https://cloud.google.com/compute/docs/instance-groups#managed_instance_groups)
-     * and [API](https://cloud.google.com/compute/docs/reference/latest/instanceGroupManagers)
+     * Get a global forwarding rule within GCE from its name.
      * 
      * ## Example Usage
      * 
@@ -3062,7 +2682,7 @@ public static CompletableFuture getInstanceGroupPlain(Ge
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetInstanceGroupManagerArgs;
+     * import com.pulumi.gcp.compute.inputs.GetGlobalForwardingRuleArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -3076,13 +2696,8 @@ public static CompletableFuture getInstanceGroupPlain(Ge
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var igm1 = ComputeFunctions.getInstanceGroupManager(GetInstanceGroupManagerArgs.builder()
-     *             .name("my-igm")
-     *             .zone("us-central1-a")
-     *             .build());
-     * 
-     *         final var igm2 = ComputeFunctions.getInstanceGroupManager(GetInstanceGroupManagerArgs.builder()
-     *             .selfLink("https://www.googleapis.com/compute/v1/projects/myproject/zones/us-central1-a/instanceGroupManagers/my-igm")
+     *         final var my-forwarding-rule = ComputeFunctions.getGlobalForwardingRule(GetGlobalForwardingRuleArgs.builder()
+     *             .name("forwarding-rule-global")
      *             .build());
      * 
      *     }
@@ -3092,13 +2707,11 @@ public static CompletableFuture getInstanceGroupPlain(Ge
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getInstanceGroupManager() {
-        return getInstanceGroupManager(GetInstanceGroupManagerArgs.Empty, InvokeOptions.Empty);
+    public static Output getGlobalForwardingRule(GetGlobalForwardingRuleArgs args) {
+        return getGlobalForwardingRule(args, InvokeOptions.Empty);
     }
     /**
-     * Get a Compute Instance Group Manager within GCE.
-     * For more information, see [the official documentation](https://cloud.google.com/compute/docs/instance-groups#managed_instance_groups)
-     * and [API](https://cloud.google.com/compute/docs/reference/latest/instanceGroupManagers)
+     * Get a global forwarding rule within GCE from its name.
      * 
      * ## Example Usage
      * 
@@ -3111,7 +2724,7 @@ public static Output getInstanceGroupManager() {
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetInstanceGroupManagerArgs;
+     * import com.pulumi.gcp.compute.inputs.GetGlobalForwardingRuleArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -3125,13 +2738,8 @@ public static Output getInstanceGroupManager() {
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var igm1 = ComputeFunctions.getInstanceGroupManager(GetInstanceGroupManagerArgs.builder()
-     *             .name("my-igm")
-     *             .zone("us-central1-a")
-     *             .build());
-     * 
-     *         final var igm2 = ComputeFunctions.getInstanceGroupManager(GetInstanceGroupManagerArgs.builder()
-     *             .selfLink("https://www.googleapis.com/compute/v1/projects/myproject/zones/us-central1-a/instanceGroupManagers/my-igm")
+     *         final var my-forwarding-rule = ComputeFunctions.getGlobalForwardingRule(GetGlobalForwardingRuleArgs.builder()
+     *             .name("forwarding-rule-global")
      *             .build());
      * 
      *     }
@@ -3141,13 +2749,11 @@ public static Output getInstanceGroupManager() {
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getInstanceGroupManagerPlain() {
-        return getInstanceGroupManagerPlain(GetInstanceGroupManagerPlainArgs.Empty, InvokeOptions.Empty);
+    public static CompletableFuture getGlobalForwardingRulePlain(GetGlobalForwardingRulePlainArgs args) {
+        return getGlobalForwardingRulePlain(args, InvokeOptions.Empty);
     }
     /**
-     * Get a Compute Instance Group Manager within GCE.
-     * For more information, see [the official documentation](https://cloud.google.com/compute/docs/instance-groups#managed_instance_groups)
-     * and [API](https://cloud.google.com/compute/docs/reference/latest/instanceGroupManagers)
+     * Get a global forwarding rule within GCE from its name.
      * 
      * ## Example Usage
      * 
@@ -3160,7 +2766,7 @@ public static CompletableFuture getInstanceGroupM
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetInstanceGroupManagerArgs;
+     * import com.pulumi.gcp.compute.inputs.GetGlobalForwardingRuleArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -3174,13 +2780,8 @@ public static CompletableFuture getInstanceGroupM
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var igm1 = ComputeFunctions.getInstanceGroupManager(GetInstanceGroupManagerArgs.builder()
-     *             .name("my-igm")
-     *             .zone("us-central1-a")
-     *             .build());
-     * 
-     *         final var igm2 = ComputeFunctions.getInstanceGroupManager(GetInstanceGroupManagerArgs.builder()
-     *             .selfLink("https://www.googleapis.com/compute/v1/projects/myproject/zones/us-central1-a/instanceGroupManagers/my-igm")
+     *         final var my-forwarding-rule = ComputeFunctions.getGlobalForwardingRule(GetGlobalForwardingRuleArgs.builder()
+     *             .name("forwarding-rule-global")
      *             .build());
      * 
      *     }
@@ -3190,13 +2791,11 @@ public static CompletableFuture getInstanceGroupM
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getInstanceGroupManager(GetInstanceGroupManagerArgs args) {
-        return getInstanceGroupManager(args, InvokeOptions.Empty);
+    public static Output getGlobalForwardingRule(GetGlobalForwardingRuleArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invoke("gcp:compute/getGlobalForwardingRule:getGlobalForwardingRule", TypeShape.of(GetGlobalForwardingRuleResult.class), args, Utilities.withVersion(options));
     }
     /**
-     * Get a Compute Instance Group Manager within GCE.
-     * For more information, see [the official documentation](https://cloud.google.com/compute/docs/instance-groups#managed_instance_groups)
-     * and [API](https://cloud.google.com/compute/docs/reference/latest/instanceGroupManagers)
+     * Get a global forwarding rule within GCE from its name.
      * 
      * ## Example Usage
      * 
@@ -3209,7 +2808,7 @@ public static Output getInstanceGroupManager(GetI
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetInstanceGroupManagerArgs;
+     * import com.pulumi.gcp.compute.inputs.GetGlobalForwardingRuleArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -3223,13 +2822,8 @@ public static Output getInstanceGroupManager(GetI
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var igm1 = ComputeFunctions.getInstanceGroupManager(GetInstanceGroupManagerArgs.builder()
-     *             .name("my-igm")
-     *             .zone("us-central1-a")
-     *             .build());
-     * 
-     *         final var igm2 = ComputeFunctions.getInstanceGroupManager(GetInstanceGroupManagerArgs.builder()
-     *             .selfLink("https://www.googleapis.com/compute/v1/projects/myproject/zones/us-central1-a/instanceGroupManagers/my-igm")
+     *         final var my-forwarding-rule = ComputeFunctions.getGlobalForwardingRule(GetGlobalForwardingRuleArgs.builder()
+     *             .name("forwarding-rule-global")
      *             .build());
      * 
      *     }
@@ -3239,13 +2833,11 @@ public static Output getInstanceGroupManager(GetI
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getInstanceGroupManagerPlain(GetInstanceGroupManagerPlainArgs args) {
-        return getInstanceGroupManagerPlain(args, InvokeOptions.Empty);
+    public static CompletableFuture getGlobalForwardingRulePlain(GetGlobalForwardingRulePlainArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invokeAsync("gcp:compute/getGlobalForwardingRule:getGlobalForwardingRule", TypeShape.of(GetGlobalForwardingRuleResult.class), args, Utilities.withVersion(options));
     }
     /**
-     * Get a Compute Instance Group Manager within GCE.
-     * For more information, see [the official documentation](https://cloud.google.com/compute/docs/instance-groups#managed_instance_groups)
-     * and [API](https://cloud.google.com/compute/docs/reference/latest/instanceGroupManagers)
+     * Get a HA VPN Gateway within GCE from its name.
      * 
      * ## Example Usage
      * 
@@ -3258,7 +2850,7 @@ public static CompletableFuture getInstanceGroupM
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetInstanceGroupManagerArgs;
+     * import com.pulumi.gcp.compute.inputs.GetHcVpnGatewayArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -3272,13 +2864,8 @@ public static CompletableFuture getInstanceGroupM
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var igm1 = ComputeFunctions.getInstanceGroupManager(GetInstanceGroupManagerArgs.builder()
-     *             .name("my-igm")
-     *             .zone("us-central1-a")
-     *             .build());
-     * 
-     *         final var igm2 = ComputeFunctions.getInstanceGroupManager(GetInstanceGroupManagerArgs.builder()
-     *             .selfLink("https://www.googleapis.com/compute/v1/projects/myproject/zones/us-central1-a/instanceGroupManagers/my-igm")
+     *         final var gateway = ComputeFunctions.getHcVpnGateway(GetHcVpnGatewayArgs.builder()
+     *             .name("foobar")
      *             .build());
      * 
      *     }
@@ -3288,13 +2875,11 @@ public static CompletableFuture getInstanceGroupM
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getInstanceGroupManager(GetInstanceGroupManagerArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invoke("gcp:compute/getInstanceGroupManager:getInstanceGroupManager", TypeShape.of(GetInstanceGroupManagerResult.class), args, Utilities.withVersion(options));
+    public static Output getHcVpnGateway(GetHcVpnGatewayArgs args) {
+        return getHcVpnGateway(args, InvokeOptions.Empty);
     }
     /**
-     * Get a Compute Instance Group Manager within GCE.
-     * For more information, see [the official documentation](https://cloud.google.com/compute/docs/instance-groups#managed_instance_groups)
-     * and [API](https://cloud.google.com/compute/docs/reference/latest/instanceGroupManagers)
+     * Get a HA VPN Gateway within GCE from its name.
      * 
      * ## Example Usage
      * 
@@ -3307,7 +2892,7 @@ public static Output getInstanceGroupManager(GetI
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetInstanceGroupManagerArgs;
+     * import com.pulumi.gcp.compute.inputs.GetHcVpnGatewayArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -3321,13 +2906,8 @@ public static Output getInstanceGroupManager(GetI
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var igm1 = ComputeFunctions.getInstanceGroupManager(GetInstanceGroupManagerArgs.builder()
-     *             .name("my-igm")
-     *             .zone("us-central1-a")
-     *             .build());
-     * 
-     *         final var igm2 = ComputeFunctions.getInstanceGroupManager(GetInstanceGroupManagerArgs.builder()
-     *             .selfLink("https://www.googleapis.com/compute/v1/projects/myproject/zones/us-central1-a/instanceGroupManagers/my-igm")
+     *         final var gateway = ComputeFunctions.getHcVpnGateway(GetHcVpnGatewayArgs.builder()
+     *             .name("foobar")
      *             .build());
      * 
      *     }
@@ -3337,13 +2917,13 @@ public static Output getInstanceGroupManager(GetI
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getInstanceGroupManagerPlain(GetInstanceGroupManagerPlainArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invokeAsync("gcp:compute/getInstanceGroupManager:getInstanceGroupManager", TypeShape.of(GetInstanceGroupManagerResult.class), args, Utilities.withVersion(options));
+    public static CompletableFuture getHcVpnGatewayPlain(GetHcVpnGatewayPlainArgs args) {
+        return getHcVpnGatewayPlain(args, InvokeOptions.Empty);
     }
     /**
-     * Retrieves the current IAM policy data for instance
+     * Get a HA VPN Gateway within GCE from its name.
      * 
-     * ## example
+     * ## Example Usage
      * 
      * <!--Start PulumiCodeChooser -->
      * 
@@ -3354,7 +2934,7 @@ public static CompletableFuture getInstanceGroupM
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetInstanceIamPolicyArgs;
+     * import com.pulumi.gcp.compute.inputs.GetHcVpnGatewayArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -3368,10 +2948,8 @@ public static CompletableFuture getInstanceGroupM
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var policy = ComputeFunctions.getInstanceIamPolicy(GetInstanceIamPolicyArgs.builder()
-     *             .project(default_.project())
-     *             .zone(default_.zone())
-     *             .instanceName(default_.name())
+     *         final var gateway = ComputeFunctions.getHcVpnGateway(GetHcVpnGatewayArgs.builder()
+     *             .name("foobar")
      *             .build());
      * 
      *     }
@@ -3381,13 +2959,13 @@ public static CompletableFuture getInstanceGroupM
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getInstanceIamPolicy(GetInstanceIamPolicyArgs args) {
-        return getInstanceIamPolicy(args, InvokeOptions.Empty);
+    public static Output getHcVpnGateway(GetHcVpnGatewayArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invoke("gcp:compute/getHcVpnGateway:getHcVpnGateway", TypeShape.of(GetHcVpnGatewayResult.class), args, Utilities.withVersion(options));
     }
     /**
-     * Retrieves the current IAM policy data for instance
+     * Get a HA VPN Gateway within GCE from its name.
      * 
-     * ## example
+     * ## Example Usage
      * 
      * <!--Start PulumiCodeChooser -->
      * 
@@ -3398,7 +2976,7 @@ public static Output getInstanceIamPolicy(GetInstanc
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetInstanceIamPolicyArgs;
+     * import com.pulumi.gcp.compute.inputs.GetHcVpnGatewayArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -3412,10 +2990,8 @@ public static Output getInstanceIamPolicy(GetInstanc
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var policy = ComputeFunctions.getInstanceIamPolicy(GetInstanceIamPolicyArgs.builder()
-     *             .project(default_.project())
-     *             .zone(default_.zone())
-     *             .instanceName(default_.name())
+     *         final var gateway = ComputeFunctions.getHcVpnGateway(GetHcVpnGatewayArgs.builder()
+     *             .name("foobar")
      *             .build());
      * 
      *     }
@@ -3425,13 +3001,13 @@ public static Output getInstanceIamPolicy(GetInstanc
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getInstanceIamPolicyPlain(GetInstanceIamPolicyPlainArgs args) {
-        return getInstanceIamPolicyPlain(args, InvokeOptions.Empty);
+    public static CompletableFuture getHcVpnGatewayPlain(GetHcVpnGatewayPlainArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invokeAsync("gcp:compute/getHcVpnGateway:getHcVpnGateway", TypeShape.of(GetHcVpnGatewayResult.class), args, Utilities.withVersion(options));
     }
     /**
-     * Retrieves the current IAM policy data for instance
+     * Get information about a HealthCheck.
      * 
-     * ## example
+     * ## Example Usage
      * 
      * <!--Start PulumiCodeChooser -->
      * 
@@ -3442,7 +3018,7 @@ public static CompletableFuture getInstanceIamPolicy
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetInstanceIamPolicyArgs;
+     * import com.pulumi.gcp.compute.inputs.GetHealthCheckArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -3456,10 +3032,8 @@ public static CompletableFuture getInstanceIamPolicy
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var policy = ComputeFunctions.getInstanceIamPolicy(GetInstanceIamPolicyArgs.builder()
-     *             .project(default_.project())
-     *             .zone(default_.zone())
-     *             .instanceName(default_.name())
+     *         final var healthCheck = ComputeFunctions.getHealthCheck(GetHealthCheckArgs.builder()
+     *             .name("my-hc")
      *             .build());
      * 
      *     }
@@ -3469,13 +3043,13 @@ public static CompletableFuture getInstanceIamPolicy
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getInstanceIamPolicy(GetInstanceIamPolicyArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invoke("gcp:compute/getInstanceIamPolicy:getInstanceIamPolicy", TypeShape.of(GetInstanceIamPolicyResult.class), args, Utilities.withVersion(options));
+    public static Output getHealthCheck(GetHealthCheckArgs args) {
+        return getHealthCheck(args, InvokeOptions.Empty);
     }
     /**
-     * Retrieves the current IAM policy data for instance
+     * Get information about a HealthCheck.
      * 
-     * ## example
+     * ## Example Usage
      * 
      * <!--Start PulumiCodeChooser -->
      * 
@@ -3486,7 +3060,7 @@ public static Output getInstanceIamPolicy(GetInstanc
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetInstanceIamPolicyArgs;
+     * import com.pulumi.gcp.compute.inputs.GetHealthCheckArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -3500,10 +3074,8 @@ public static Output getInstanceIamPolicy(GetInstanc
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var policy = ComputeFunctions.getInstanceIamPolicy(GetInstanceIamPolicyArgs.builder()
-     *             .project(default_.project())
-     *             .zone(default_.zone())
-     *             .instanceName(default_.name())
+     *         final var healthCheck = ComputeFunctions.getHealthCheck(GetHealthCheckArgs.builder()
+     *             .name("my-hc")
      *             .build());
      * 
      *     }
@@ -3513,12 +3085,11 @@ public static Output getInstanceIamPolicy(GetInstanc
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getInstanceIamPolicyPlain(GetInstanceIamPolicyPlainArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invokeAsync("gcp:compute/getInstanceIamPolicy:getInstanceIamPolicy", TypeShape.of(GetInstanceIamPolicyResult.class), args, Utilities.withVersion(options));
+    public static CompletableFuture getHealthCheckPlain(GetHealthCheckPlainArgs args) {
+        return getHealthCheckPlain(args, InvokeOptions.Empty);
     }
     /**
-     * Get the serial port output from a Compute Instance. For more information see
-     * the official [API](https://cloud.google.com/compute/docs/instances/viewing-serial-port-output) documentation.
+     * Get information about a HealthCheck.
      * 
      * ## Example Usage
      * 
@@ -3531,7 +3102,7 @@ public static CompletableFuture getInstanceIamPolicy
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetInstanceSerialPortArgs;
+     * import com.pulumi.gcp.compute.inputs.GetHealthCheckArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -3545,20 +3116,24 @@ public static CompletableFuture getInstanceIamPolicy
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var serial = ComputeFunctions.getInstanceSerialPort(GetInstanceSerialPortArgs.builder()
-     *             .instance("my-instance")
-     *             .zone("us-central1-a")
-     *             .port(1)
+     *         final var healthCheck = ComputeFunctions.getHealthCheck(GetHealthCheckArgs.builder()
+     *             .name("my-hc")
      *             .build());
      * 
-     *         ctx.export("serialOut", serial.applyValue(getInstanceSerialPortResult -> getInstanceSerialPortResult.contents()));
      *     }
      * }
      * }
      * 
* <!--End PulumiCodeChooser --> * - * Using the serial port output to generate a windows password, derived from the [official guide](https://cloud.google.com/compute/docs/instances/windows/automate-pw-generation): + */ + public static Output getHealthCheck(GetHealthCheckArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getHealthCheck:getHealthCheck", TypeShape.of(GetHealthCheckResult.class), args, Utilities.withVersion(options)); + } + /** + * Get information about a HealthCheck. + * + * ## Example Usage * * <!--Start PulumiCodeChooser --> *
@@ -3568,15 +3143,8 @@ public static CompletableFuture getInstanceIamPolicy
      * import com.pulumi.Context;
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
-     * import com.pulumi.gcp.compute.Instance;
-     * import com.pulumi.gcp.compute.InstanceArgs;
-     * import com.pulumi.gcp.compute.inputs.InstanceNetworkInterfaceArgs;
-     * import com.pulumi.gcp.compute.inputs.InstanceBootDiskArgs;
-     * import com.pulumi.gcp.compute.inputs.InstanceBootDiskInitializeParamsArgs;
-     * import com.pulumi.gcp.compute.inputs.InstanceServiceAccountArgs;
      * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetInstanceSerialPortArgs;
-     * import static com.pulumi.codegen.internal.Serialization.*;
+     * import com.pulumi.gcp.compute.inputs.GetHealthCheckArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -3584,64 +3152,29 @@ public static CompletableFuture getInstanceIamPolicy
      * import java.nio.file.Files;
      * import java.nio.file.Paths;
      * 
-     * public class App }{{@code
-     *     public static void main(String[] args) }{{@code
+     * public class App {
+     *     public static void main(String[] args) {
      *         Pulumi.run(App::stack);
-     *     }}{@code
-     * 
-     *     public static void stack(Context ctx) }{{@code
-     *         var windows = new Instance("windows", InstanceArgs.builder()
-     *             .networkInterfaces(InstanceNetworkInterfaceArgs.builder()
-     *                 .accessConfigs()
-     *                 .network("default")
-     *                 .build())
-     *             .name("windows-instance")
-     *             .machineType("e2-medium")
-     *             .zone("us-central1-a")
-     *             .bootDisk(InstanceBootDiskArgs.builder()
-     *                 .initializeParams(InstanceBootDiskInitializeParamsArgs.builder()
-     *                     .image("windows-cloud/windows-2019")
-     *                     .build())
-     *                 .build())
-     *             .metadata(Map.ofEntries(
-     *                 Map.entry("serial-port-logging-enable", "TRUE"),
-     *                 Map.entry("windows-keys", serializeJson(
-     *                     jsonObject(
-     *                         jsonProperty("email", "example.user}{@literal @}{@code example.com"),
-     *                         jsonProperty("expireOn", "2020-04-14T01:37:19Z"),
-     *                         jsonProperty("exponent", "AQAB"),
-     *                         jsonProperty("modulus", "wgsquN4IBNPqIUnu+h/5Za1kujb2YRhX1vCQVQAkBwnWigcCqOBVfRa5JoZfx6KIvEXjWqa77jPvlsxM4WPqnDIM2qiK36up3SKkYwFjff6F2ni/ry8vrwXCX3sGZ1hbIHlK0O012HpA3ISeEswVZmX2X67naOvJXfY5v0hGPWqCADao+xVxrmxsZD4IWnKl1UaZzI5lhAzr8fw6utHwx1EZ/MSgsEki6tujcZfN+GUDRnmJGQSnPTXmsf7Q4DKreTZk49cuyB3prV91S0x3DYjCUpSXrkVy1Ha5XicGD/q+ystuFsJnrrhbNXJbpSjM6sjo/aduAkZJl4FmOt0R7Q=="),
-     *                         jsonProperty("userName", "example-user")
-     *                     )))
-     *             ))
-     *             .serviceAccount(InstanceServiceAccountArgs.builder()
-     *                 .scopes(                
-     *                     "userinfo-email",
-     *                     "compute-ro",
-     *                     "storage-ro")
-     *                 .build())
-     *             .build());
+     *     }
      * 
-     *         final var serial = ComputeFunctions.getInstanceSerialPort(GetInstanceSerialPortArgs.builder()
-     *             .instance(windows.name())
-     *             .zone(windows.zone())
-     *             .port(4)
+     *     public static void stack(Context ctx) {
+     *         final var healthCheck = ComputeFunctions.getHealthCheck(GetHealthCheckArgs.builder()
+     *             .name("my-hc")
      *             .build());
      * 
-     *         ctx.export("serialOut", serial.applyValue(getInstanceSerialPortResult -> getInstanceSerialPortResult).applyValue(serial -> serial.applyValue(getInstanceSerialPortResult -> getInstanceSerialPortResult.contents())));
-     *     }}{@code
-     * }}{@code
+     *     }
+     * }
      * }
      * 
* <!--End PulumiCodeChooser --> * */ - public static Output getInstanceSerialPort(GetInstanceSerialPortArgs args) { - return getInstanceSerialPort(args, InvokeOptions.Empty); + public static CompletableFuture getHealthCheckPlain(GetHealthCheckPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("gcp:compute/getHealthCheck:getHealthCheck", TypeShape.of(GetHealthCheckResult.class), args, Utilities.withVersion(options)); } /** - * Get the serial port output from a Compute Instance. For more information see - * the official [API](https://cloud.google.com/compute/docs/instances/viewing-serial-port-output) documentation. + * Get information about a Google Compute Image. Check that your service account has the `compute.imageUser` role if you want to share [custom images](https://cloud.google.com/compute/docs/images/sharing-images-across-projects) from another project. If you want to use [public images][pubimg], do not forget to specify the dedicated project. For more information see + * [the official documentation](https://cloud.google.com/compute/docs/images) and its [API](https://cloud.google.com/compute/docs/reference/latest/images). * * ## Example Usage * @@ -3654,7 +3187,11 @@ public static Output getInstanceSerialPort(GetInsta * import com.pulumi.Pulumi; * import com.pulumi.core.Output; * import com.pulumi.gcp.compute.ComputeFunctions; - * import com.pulumi.gcp.compute.inputs.GetInstanceSerialPortArgs; + * import com.pulumi.gcp.compute.inputs.GetImageArgs; + * import com.pulumi.gcp.compute.Instance; + * import com.pulumi.gcp.compute.InstanceArgs; + * import com.pulumi.gcp.compute.inputs.InstanceBootDiskArgs; + * import com.pulumi.gcp.compute.inputs.InstanceBootDiskInitializeParamsArgs; * import java.util.List; * import java.util.ArrayList; * import java.util.Map; @@ -3668,20 +3205,34 @@ public static Output getInstanceSerialPort(GetInsta * } * * public static void stack(Context ctx) { - * final var serial = ComputeFunctions.getInstanceSerialPort(GetInstanceSerialPortArgs.builder() - * .instance("my-instance") - * .zone("us-central1-a") - * .port(1) + * final var myImage = ComputeFunctions.getImage(GetImageArgs.builder() + * .family("debian-11") + * .project("debian-cloud") + * .build()); + * + * var default_ = new Instance("default", InstanceArgs.builder() + * .bootDisk(InstanceBootDiskArgs.builder() + * .initializeParams(InstanceBootDiskInitializeParamsArgs.builder() + * .image(myImage.applyValue(getImageResult -> getImageResult.selfLink())) + * .build()) + * .build()) * .build()); * - * ctx.export("serialOut", serial.applyValue(getInstanceSerialPortResult -> getInstanceSerialPortResult.contents())); * } * } * } *
* <!--End PulumiCodeChooser --> * - * Using the serial port output to generate a windows password, derived from the [official guide](https://cloud.google.com/compute/docs/instances/windows/automate-pw-generation): + */ + public static Output getImage() { + return getImage(GetImageArgs.Empty, InvokeOptions.Empty); + } + /** + * Get information about a Google Compute Image. Check that your service account has the `compute.imageUser` role if you want to share [custom images](https://cloud.google.com/compute/docs/images/sharing-images-across-projects) from another project. If you want to use [public images][pubimg], do not forget to specify the dedicated project. For more information see + * [the official documentation](https://cloud.google.com/compute/docs/images) and its [API](https://cloud.google.com/compute/docs/reference/latest/images). + * + * ## Example Usage * * <!--Start PulumiCodeChooser --> *
@@ -3691,15 +3242,12 @@ public static Output getInstanceSerialPort(GetInsta
      * import com.pulumi.Context;
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetImageArgs;
      * import com.pulumi.gcp.compute.Instance;
      * import com.pulumi.gcp.compute.InstanceArgs;
-     * import com.pulumi.gcp.compute.inputs.InstanceNetworkInterfaceArgs;
      * import com.pulumi.gcp.compute.inputs.InstanceBootDiskArgs;
      * import com.pulumi.gcp.compute.inputs.InstanceBootDiskInitializeParamsArgs;
-     * import com.pulumi.gcp.compute.inputs.InstanceServiceAccountArgs;
-     * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetInstanceSerialPortArgs;
-     * import static com.pulumi.codegen.internal.Serialization.*;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -3707,64 +3255,38 @@ public static Output getInstanceSerialPort(GetInsta
      * import java.nio.file.Files;
      * import java.nio.file.Paths;
      * 
-     * public class App }{{@code
-     *     public static void main(String[] args) }{{@code
+     * public class App {
+     *     public static void main(String[] args) {
      *         Pulumi.run(App::stack);
-     *     }}{@code
+     *     }
      * 
-     *     public static void stack(Context ctx) }{{@code
-     *         var windows = new Instance("windows", InstanceArgs.builder()
-     *             .networkInterfaces(InstanceNetworkInterfaceArgs.builder()
-     *                 .accessConfigs()
-     *                 .network("default")
-     *                 .build())
-     *             .name("windows-instance")
-     *             .machineType("e2-medium")
-     *             .zone("us-central1-a")
+     *     public static void stack(Context ctx) {
+     *         final var myImage = ComputeFunctions.getImage(GetImageArgs.builder()
+     *             .family("debian-11")
+     *             .project("debian-cloud")
+     *             .build());
+     * 
+     *         var default_ = new Instance("default", InstanceArgs.builder()
      *             .bootDisk(InstanceBootDiskArgs.builder()
      *                 .initializeParams(InstanceBootDiskInitializeParamsArgs.builder()
-     *                     .image("windows-cloud/windows-2019")
+     *                     .image(myImage.applyValue(getImageResult -> getImageResult.selfLink()))
      *                     .build())
      *                 .build())
-     *             .metadata(Map.ofEntries(
-     *                 Map.entry("serial-port-logging-enable", "TRUE"),
-     *                 Map.entry("windows-keys", serializeJson(
-     *                     jsonObject(
-     *                         jsonProperty("email", "example.user}{@literal @}{@code example.com"),
-     *                         jsonProperty("expireOn", "2020-04-14T01:37:19Z"),
-     *                         jsonProperty("exponent", "AQAB"),
-     *                         jsonProperty("modulus", "wgsquN4IBNPqIUnu+h/5Za1kujb2YRhX1vCQVQAkBwnWigcCqOBVfRa5JoZfx6KIvEXjWqa77jPvlsxM4WPqnDIM2qiK36up3SKkYwFjff6F2ni/ry8vrwXCX3sGZ1hbIHlK0O012HpA3ISeEswVZmX2X67naOvJXfY5v0hGPWqCADao+xVxrmxsZD4IWnKl1UaZzI5lhAzr8fw6utHwx1EZ/MSgsEki6tujcZfN+GUDRnmJGQSnPTXmsf7Q4DKreTZk49cuyB3prV91S0x3DYjCUpSXrkVy1Ha5XicGD/q+ystuFsJnrrhbNXJbpSjM6sjo/aduAkZJl4FmOt0R7Q=="),
-     *                         jsonProperty("userName", "example-user")
-     *                     )))
-     *             ))
-     *             .serviceAccount(InstanceServiceAccountArgs.builder()
-     *                 .scopes(                
-     *                     "userinfo-email",
-     *                     "compute-ro",
-     *                     "storage-ro")
-     *                 .build())
-     *             .build());
-     * 
-     *         final var serial = ComputeFunctions.getInstanceSerialPort(GetInstanceSerialPortArgs.builder()
-     *             .instance(windows.name())
-     *             .zone(windows.zone())
-     *             .port(4)
      *             .build());
      * 
-     *         ctx.export("serialOut", serial.applyValue(getInstanceSerialPortResult -> getInstanceSerialPortResult).applyValue(serial -> serial.applyValue(getInstanceSerialPortResult -> getInstanceSerialPortResult.contents())));
-     *     }}{@code
-     * }}{@code
+     *     }
+     * }
      * }
      * 
* <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getInstanceSerialPortPlain(GetInstanceSerialPortPlainArgs args) { - return getInstanceSerialPortPlain(args, InvokeOptions.Empty); + public static CompletableFuture getImagePlain() { + return getImagePlain(GetImagePlainArgs.Empty, InvokeOptions.Empty); } /** - * Get the serial port output from a Compute Instance. For more information see - * the official [API](https://cloud.google.com/compute/docs/instances/viewing-serial-port-output) documentation. + * Get information about a Google Compute Image. Check that your service account has the `compute.imageUser` role if you want to share [custom images](https://cloud.google.com/compute/docs/images/sharing-images-across-projects) from another project. If you want to use [public images][pubimg], do not forget to specify the dedicated project. For more information see + * [the official documentation](https://cloud.google.com/compute/docs/images) and its [API](https://cloud.google.com/compute/docs/reference/latest/images). * * ## Example Usage * @@ -3777,7 +3299,11 @@ public static CompletableFuture getInstanceSerialPo * import com.pulumi.Pulumi; * import com.pulumi.core.Output; * import com.pulumi.gcp.compute.ComputeFunctions; - * import com.pulumi.gcp.compute.inputs.GetInstanceSerialPortArgs; + * import com.pulumi.gcp.compute.inputs.GetImageArgs; + * import com.pulumi.gcp.compute.Instance; + * import com.pulumi.gcp.compute.InstanceArgs; + * import com.pulumi.gcp.compute.inputs.InstanceBootDiskArgs; + * import com.pulumi.gcp.compute.inputs.InstanceBootDiskInitializeParamsArgs; * import java.util.List; * import java.util.ArrayList; * import java.util.Map; @@ -3791,20 +3317,34 @@ public static CompletableFuture getInstanceSerialPo * } * * public static void stack(Context ctx) { - * final var serial = ComputeFunctions.getInstanceSerialPort(GetInstanceSerialPortArgs.builder() - * .instance("my-instance") - * .zone("us-central1-a") - * .port(1) + * final var myImage = ComputeFunctions.getImage(GetImageArgs.builder() + * .family("debian-11") + * .project("debian-cloud") + * .build()); + * + * var default_ = new Instance("default", InstanceArgs.builder() + * .bootDisk(InstanceBootDiskArgs.builder() + * .initializeParams(InstanceBootDiskInitializeParamsArgs.builder() + * .image(myImage.applyValue(getImageResult -> getImageResult.selfLink())) + * .build()) + * .build()) * .build()); * - * ctx.export("serialOut", serial.applyValue(getInstanceSerialPortResult -> getInstanceSerialPortResult.contents())); * } * } * } *
* <!--End PulumiCodeChooser --> * - * Using the serial port output to generate a windows password, derived from the [official guide](https://cloud.google.com/compute/docs/instances/windows/automate-pw-generation): + */ + public static Output getImage(GetImageArgs args) { + return getImage(args, InvokeOptions.Empty); + } + /** + * Get information about a Google Compute Image. Check that your service account has the `compute.imageUser` role if you want to share [custom images](https://cloud.google.com/compute/docs/images/sharing-images-across-projects) from another project. If you want to use [public images][pubimg], do not forget to specify the dedicated project. For more information see + * [the official documentation](https://cloud.google.com/compute/docs/images) and its [API](https://cloud.google.com/compute/docs/reference/latest/images). + * + * ## Example Usage * * <!--Start PulumiCodeChooser --> *
@@ -3814,15 +3354,12 @@ public static CompletableFuture getInstanceSerialPo
      * import com.pulumi.Context;
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetImageArgs;
      * import com.pulumi.gcp.compute.Instance;
      * import com.pulumi.gcp.compute.InstanceArgs;
-     * import com.pulumi.gcp.compute.inputs.InstanceNetworkInterfaceArgs;
      * import com.pulumi.gcp.compute.inputs.InstanceBootDiskArgs;
      * import com.pulumi.gcp.compute.inputs.InstanceBootDiskInitializeParamsArgs;
-     * import com.pulumi.gcp.compute.inputs.InstanceServiceAccountArgs;
-     * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetInstanceSerialPortArgs;
-     * import static com.pulumi.codegen.internal.Serialization.*;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -3830,64 +3367,38 @@ public static CompletableFuture getInstanceSerialPo
      * import java.nio.file.Files;
      * import java.nio.file.Paths;
      * 
-     * public class App }{{@code
-     *     public static void main(String[] args) }{{@code
+     * public class App {
+     *     public static void main(String[] args) {
      *         Pulumi.run(App::stack);
-     *     }}{@code
+     *     }
      * 
-     *     public static void stack(Context ctx) }{{@code
-     *         var windows = new Instance("windows", InstanceArgs.builder()
-     *             .networkInterfaces(InstanceNetworkInterfaceArgs.builder()
-     *                 .accessConfigs()
-     *                 .network("default")
-     *                 .build())
-     *             .name("windows-instance")
-     *             .machineType("e2-medium")
-     *             .zone("us-central1-a")
+     *     public static void stack(Context ctx) {
+     *         final var myImage = ComputeFunctions.getImage(GetImageArgs.builder()
+     *             .family("debian-11")
+     *             .project("debian-cloud")
+     *             .build());
+     * 
+     *         var default_ = new Instance("default", InstanceArgs.builder()
      *             .bootDisk(InstanceBootDiskArgs.builder()
      *                 .initializeParams(InstanceBootDiskInitializeParamsArgs.builder()
-     *                     .image("windows-cloud/windows-2019")
+     *                     .image(myImage.applyValue(getImageResult -> getImageResult.selfLink()))
      *                     .build())
      *                 .build())
-     *             .metadata(Map.ofEntries(
-     *                 Map.entry("serial-port-logging-enable", "TRUE"),
-     *                 Map.entry("windows-keys", serializeJson(
-     *                     jsonObject(
-     *                         jsonProperty("email", "example.user}{@literal @}{@code example.com"),
-     *                         jsonProperty("expireOn", "2020-04-14T01:37:19Z"),
-     *                         jsonProperty("exponent", "AQAB"),
-     *                         jsonProperty("modulus", "wgsquN4IBNPqIUnu+h/5Za1kujb2YRhX1vCQVQAkBwnWigcCqOBVfRa5JoZfx6KIvEXjWqa77jPvlsxM4WPqnDIM2qiK36up3SKkYwFjff6F2ni/ry8vrwXCX3sGZ1hbIHlK0O012HpA3ISeEswVZmX2X67naOvJXfY5v0hGPWqCADao+xVxrmxsZD4IWnKl1UaZzI5lhAzr8fw6utHwx1EZ/MSgsEki6tujcZfN+GUDRnmJGQSnPTXmsf7Q4DKreTZk49cuyB3prV91S0x3DYjCUpSXrkVy1Ha5XicGD/q+ystuFsJnrrhbNXJbpSjM6sjo/aduAkZJl4FmOt0R7Q=="),
-     *                         jsonProperty("userName", "example-user")
-     *                     )))
-     *             ))
-     *             .serviceAccount(InstanceServiceAccountArgs.builder()
-     *                 .scopes(                
-     *                     "userinfo-email",
-     *                     "compute-ro",
-     *                     "storage-ro")
-     *                 .build())
      *             .build());
      * 
-     *         final var serial = ComputeFunctions.getInstanceSerialPort(GetInstanceSerialPortArgs.builder()
-     *             .instance(windows.name())
-     *             .zone(windows.zone())
-     *             .port(4)
-     *             .build());
-     * 
-     *         ctx.export("serialOut", serial.applyValue(getInstanceSerialPortResult -> getInstanceSerialPortResult).applyValue(serial -> serial.applyValue(getInstanceSerialPortResult -> getInstanceSerialPortResult.contents())));
-     *     }}{@code
-     * }}{@code
+     *     }
+     * }
      * }
      * 
* <!--End PulumiCodeChooser --> * */ - public static Output getInstanceSerialPort(GetInstanceSerialPortArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("gcp:compute/getInstanceSerialPort:getInstanceSerialPort", TypeShape.of(GetInstanceSerialPortResult.class), args, Utilities.withVersion(options)); + public static CompletableFuture getImagePlain(GetImagePlainArgs args) { + return getImagePlain(args, InvokeOptions.Empty); } /** - * Get the serial port output from a Compute Instance. For more information see - * the official [API](https://cloud.google.com/compute/docs/instances/viewing-serial-port-output) documentation. + * Get information about a Google Compute Image. Check that your service account has the `compute.imageUser` role if you want to share [custom images](https://cloud.google.com/compute/docs/images/sharing-images-across-projects) from another project. If you want to use [public images][pubimg], do not forget to specify the dedicated project. For more information see + * [the official documentation](https://cloud.google.com/compute/docs/images) and its [API](https://cloud.google.com/compute/docs/reference/latest/images). * * ## Example Usage * @@ -3900,7 +3411,11 @@ public static Output getInstanceSerialPort(GetInsta * import com.pulumi.Pulumi; * import com.pulumi.core.Output; * import com.pulumi.gcp.compute.ComputeFunctions; - * import com.pulumi.gcp.compute.inputs.GetInstanceSerialPortArgs; + * import com.pulumi.gcp.compute.inputs.GetImageArgs; + * import com.pulumi.gcp.compute.Instance; + * import com.pulumi.gcp.compute.InstanceArgs; + * import com.pulumi.gcp.compute.inputs.InstanceBootDiskArgs; + * import com.pulumi.gcp.compute.inputs.InstanceBootDiskInitializeParamsArgs; * import java.util.List; * import java.util.ArrayList; * import java.util.Map; @@ -3914,20 +3429,34 @@ public static Output getInstanceSerialPort(GetInsta * } * * public static void stack(Context ctx) { - * final var serial = ComputeFunctions.getInstanceSerialPort(GetInstanceSerialPortArgs.builder() - * .instance("my-instance") - * .zone("us-central1-a") - * .port(1) + * final var myImage = ComputeFunctions.getImage(GetImageArgs.builder() + * .family("debian-11") + * .project("debian-cloud") + * .build()); + * + * var default_ = new Instance("default", InstanceArgs.builder() + * .bootDisk(InstanceBootDiskArgs.builder() + * .initializeParams(InstanceBootDiskInitializeParamsArgs.builder() + * .image(myImage.applyValue(getImageResult -> getImageResult.selfLink())) + * .build()) + * .build()) * .build()); * - * ctx.export("serialOut", serial.applyValue(getInstanceSerialPortResult -> getInstanceSerialPortResult.contents())); * } * } * } *
* <!--End PulumiCodeChooser --> * - * Using the serial port output to generate a windows password, derived from the [official guide](https://cloud.google.com/compute/docs/instances/windows/automate-pw-generation): + */ + public static Output getImage(GetImageArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getImage:getImage", TypeShape.of(GetImageResult.class), args, Utilities.withVersion(options)); + } + /** + * Get information about a Google Compute Image. Check that your service account has the `compute.imageUser` role if you want to share [custom images](https://cloud.google.com/compute/docs/images/sharing-images-across-projects) from another project. If you want to use [public images][pubimg], do not forget to specify the dedicated project. For more information see + * [the official documentation](https://cloud.google.com/compute/docs/images) and its [API](https://cloud.google.com/compute/docs/reference/latest/images). + * + * ## Example Usage * * <!--Start PulumiCodeChooser --> *
@@ -3937,15 +3466,12 @@ public static Output getInstanceSerialPort(GetInsta
      * import com.pulumi.Context;
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetImageArgs;
      * import com.pulumi.gcp.compute.Instance;
      * import com.pulumi.gcp.compute.InstanceArgs;
-     * import com.pulumi.gcp.compute.inputs.InstanceNetworkInterfaceArgs;
      * import com.pulumi.gcp.compute.inputs.InstanceBootDiskArgs;
      * import com.pulumi.gcp.compute.inputs.InstanceBootDiskInitializeParamsArgs;
-     * import com.pulumi.gcp.compute.inputs.InstanceServiceAccountArgs;
-     * import com.pulumi.gcp.compute.ComputeFunctions;
-     * import com.pulumi.gcp.compute.inputs.GetInstanceSerialPortArgs;
-     * import static com.pulumi.codegen.internal.Serialization.*;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -3953,414 +3479,3066 @@ public static Output getInstanceSerialPort(GetInsta
      * import java.nio.file.Files;
      * import java.nio.file.Paths;
      * 
-     * public class App }{{@code
-     *     public static void main(String[] args) }{{@code
+     * public class App {
+     *     public static void main(String[] args) {
      *         Pulumi.run(App::stack);
-     *     }}{@code
+     *     }
      * 
-     *     public static void stack(Context ctx) }{{@code
-     *         var windows = new Instance("windows", InstanceArgs.builder()
-     *             .networkInterfaces(InstanceNetworkInterfaceArgs.builder()
-     *                 .accessConfigs()
-     *                 .network("default")
-     *                 .build())
-     *             .name("windows-instance")
-     *             .machineType("e2-medium")
-     *             .zone("us-central1-a")
+     *     public static void stack(Context ctx) {
+     *         final var myImage = ComputeFunctions.getImage(GetImageArgs.builder()
+     *             .family("debian-11")
+     *             .project("debian-cloud")
+     *             .build());
+     * 
+     *         var default_ = new Instance("default", InstanceArgs.builder()
      *             .bootDisk(InstanceBootDiskArgs.builder()
      *                 .initializeParams(InstanceBootDiskInitializeParamsArgs.builder()
-     *                     .image("windows-cloud/windows-2019")
+     *                     .image(myImage.applyValue(getImageResult -> getImageResult.selfLink()))
      *                     .build())
      *                 .build())
-     *             .metadata(Map.ofEntries(
-     *                 Map.entry("serial-port-logging-enable", "TRUE"),
-     *                 Map.entry("windows-keys", serializeJson(
-     *                     jsonObject(
-     *                         jsonProperty("email", "example.user}{@literal @}{@code example.com"),
-     *                         jsonProperty("expireOn", "2020-04-14T01:37:19Z"),
-     *                         jsonProperty("exponent", "AQAB"),
-     *                         jsonProperty("modulus", "wgsquN4IBNPqIUnu+h/5Za1kujb2YRhX1vCQVQAkBwnWigcCqOBVfRa5JoZfx6KIvEXjWqa77jPvlsxM4WPqnDIM2qiK36up3SKkYwFjff6F2ni/ry8vrwXCX3sGZ1hbIHlK0O012HpA3ISeEswVZmX2X67naOvJXfY5v0hGPWqCADao+xVxrmxsZD4IWnKl1UaZzI5lhAzr8fw6utHwx1EZ/MSgsEki6tujcZfN+GUDRnmJGQSnPTXmsf7Q4DKreTZk49cuyB3prV91S0x3DYjCUpSXrkVy1Ha5XicGD/q+ystuFsJnrrhbNXJbpSjM6sjo/aduAkZJl4FmOt0R7Q=="),
-     *                         jsonProperty("userName", "example-user")
-     *                     )))
-     *             ))
-     *             .serviceAccount(InstanceServiceAccountArgs.builder()
-     *                 .scopes(                
-     *                     "userinfo-email",
-     *                     "compute-ro",
-     *                     "storage-ro")
-     *                 .build())
-     *             .build());
-     * 
-     *         final var serial = ComputeFunctions.getInstanceSerialPort(GetInstanceSerialPortArgs.builder()
-     *             .instance(windows.name())
-     *             .zone(windows.zone())
-     *             .port(4)
      *             .build());
      * 
-     *         ctx.export("serialOut", serial.applyValue(getInstanceSerialPortResult -> getInstanceSerialPortResult).applyValue(serial -> serial.applyValue(getInstanceSerialPortResult -> getInstanceSerialPortResult.contents())));
-     *     }}{@code
-     * }}{@code
+     *     }
+     * }
      * }
      * 
* <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getInstanceSerialPortPlain(GetInstanceSerialPortPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("gcp:compute/getInstanceSerialPort:getInstanceSerialPort", TypeShape.of(GetInstanceSerialPortResult.class), args, Utilities.withVersion(options)); - } - /** - * > **Note**: Global instance templates can be used in any region. To lower the impact of outages outside your region and gain data residency within your region, use google_compute_region_instance_template. - * - * Get information about a VM instance template resource within GCE. For more information see - * [the official documentation](https://cloud.google.com/compute/docs/instance-templates) - * and - * [API](https://cloud.google.com/compute/docs/reference/rest/v1/instanceTemplates). - * - */ - public static Output getInstanceTemplate() { - return getInstanceTemplate(GetInstanceTemplateArgs.Empty, InvokeOptions.Empty); + public static CompletableFuture getImagePlain(GetImagePlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("gcp:compute/getImage:getImage", TypeShape.of(GetImageResult.class), args, Utilities.withVersion(options)); } /** - * > **Note**: Global instance templates can be used in any region. To lower the impact of outages outside your region and gain data residency within your region, use google_compute_region_instance_template. - * - * Get information about a VM instance template resource within GCE. For more information see - * [the official documentation](https://cloud.google.com/compute/docs/instance-templates) - * and - * [API](https://cloud.google.com/compute/docs/reference/rest/v1/instanceTemplates). + * Retrieves the current IAM policy data for image * - */ - public static CompletableFuture getInstanceTemplatePlain() { - return getInstanceTemplatePlain(GetInstanceTemplatePlainArgs.Empty, InvokeOptions.Empty); - } - /** - * > **Note**: Global instance templates can be used in any region. To lower the impact of outages outside your region and gain data residency within your region, use google_compute_region_instance_template. + * ## example * - * Get information about a VM instance template resource within GCE. For more information see - * [the official documentation](https://cloud.google.com/compute/docs/instance-templates) - * and - * [API](https://cloud.google.com/compute/docs/reference/rest/v1/instanceTemplates). + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
      * 
-     */
-    public static Output getInstanceTemplate(GetInstanceTemplateArgs args) {
-        return getInstanceTemplate(args, InvokeOptions.Empty);
-    }
-    /**
-     * > **Note**: Global instance templates can be used in any region. To lower the impact of outages outside your region and gain data residency within your region, use google_compute_region_instance_template.
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetImageIamPolicyArgs;
+     * 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;
      * 
-     * Get information about a VM instance template resource within GCE. For more information see
-     * [the official documentation](https://cloud.google.com/compute/docs/instance-templates)
-     * and
-     * [API](https://cloud.google.com/compute/docs/reference/rest/v1/instanceTemplates).
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
      * 
-     */
-    public static CompletableFuture getInstanceTemplatePlain(GetInstanceTemplatePlainArgs args) {
-        return getInstanceTemplatePlain(args, InvokeOptions.Empty);
-    }
-    /**
-     * > **Note**: Global instance templates can be used in any region. To lower the impact of outages outside your region and gain data residency within your region, use google_compute_region_instance_template.
+     *     public static void stack(Context ctx) {
+     *         final var policy = ComputeFunctions.getImageIamPolicy(GetImageIamPolicyArgs.builder()
+     *             .project(example.project())
+     *             .image(example.name())
+     *             .build());
      * 
-     * Get information about a VM instance template resource within GCE. For more information see
-     * [the official documentation](https://cloud.google.com/compute/docs/instance-templates)
-     * and
-     * [API](https://cloud.google.com/compute/docs/reference/rest/v1/instanceTemplates).
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> * */ - public static Output getInstanceTemplate(GetInstanceTemplateArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("gcp:compute/getInstanceTemplate:getInstanceTemplate", TypeShape.of(GetInstanceTemplateResult.class), args, Utilities.withVersion(options)); + public static Output getImageIamPolicy(GetImageIamPolicyArgs args) { + return getImageIamPolicy(args, InvokeOptions.Empty); } /** - * > **Note**: Global instance templates can be used in any region. To lower the impact of outages outside your region and gain data residency within your region, use google_compute_region_instance_template. - * - * Get information about a VM instance template resource within GCE. For more information see - * [the official documentation](https://cloud.google.com/compute/docs/instance-templates) - * and - * [API](https://cloud.google.com/compute/docs/reference/rest/v1/instanceTemplates). + * Retrieves the current IAM policy data for image * - */ - public static CompletableFuture getInstanceTemplatePlain(GetInstanceTemplatePlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("gcp:compute/getInstanceTemplate:getInstanceTemplate", TypeShape.of(GetInstanceTemplateResult.class), args, Utilities.withVersion(options)); - } - /** - * Use this data source to access IP ranges in your firewall rules. + * ## example * - * https://cloud.google.com/compute/docs/load-balancing/health-checks#health_check_source_ips_and_firewall_rules + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
      * 
-     * ## Example Usage
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetImageIamPolicyArgs;
+     * 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 static Output getLBIPRanges() {
-        return getLBIPRanges(InvokeArgs.Empty, InvokeOptions.Empty);
-    }
-    /**
-     * Use this data source to access IP ranges in your firewall rules.
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
      * 
-     * https://cloud.google.com/compute/docs/load-balancing/health-checks#health_check_source_ips_and_firewall_rules
+     *     public static void stack(Context ctx) {
+     *         final var policy = ComputeFunctions.getImageIamPolicy(GetImageIamPolicyArgs.builder()
+     *             .project(example.project())
+     *             .image(example.name())
+     *             .build());
      * 
-     * ## Example Usage
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getLBIPRangesPlain() { - return getLBIPRangesPlain(InvokeArgs.Empty, InvokeOptions.Empty); + public static CompletableFuture getImageIamPolicyPlain(GetImageIamPolicyPlainArgs args) { + return getImageIamPolicyPlain(args, InvokeOptions.Empty); } /** - * Use this data source to access IP ranges in your firewall rules. + * Retrieves the current IAM policy data for image * - * https://cloud.google.com/compute/docs/load-balancing/health-checks#health_check_source_ips_and_firewall_rules + * ## example * - * ## Example Usage + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
      * 
-     */
-    public static Output getLBIPRanges(InvokeArgs args) {
-        return getLBIPRanges(args, InvokeOptions.Empty);
-    }
-    /**
-     * Use this data source to access IP ranges in your firewall rules.
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetImageIamPolicyArgs;
+     * 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;
      * 
-     * https://cloud.google.com/compute/docs/load-balancing/health-checks#health_check_source_ips_and_firewall_rules
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
      * 
-     * ## Example Usage
+     *     public static void stack(Context ctx) {
+     *         final var policy = ComputeFunctions.getImageIamPolicy(GetImageIamPolicyArgs.builder()
+     *             .project(example.project())
+     *             .image(example.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getLBIPRangesPlain(InvokeArgs args) { - return getLBIPRangesPlain(args, InvokeOptions.Empty); + public static Output getImageIamPolicy(GetImageIamPolicyArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getImageIamPolicy:getImageIamPolicy", TypeShape.of(GetImageIamPolicyResult.class), args, Utilities.withVersion(options)); } /** - * Use this data source to access IP ranges in your firewall rules. + * Retrieves the current IAM policy data for image * - * https://cloud.google.com/compute/docs/load-balancing/health-checks#health_check_source_ips_and_firewall_rules + * ## example * - * ## Example Usage + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
      * 
-     */
-    public static Output getLBIPRanges(InvokeArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invoke("gcp:compute/getLBIPRanges:getLBIPRanges", TypeShape.of(GetLBIPRangesResult.class), args, Utilities.withVersion(options));
-    }
-    /**
-     * Use this data source to access IP ranges in your firewall rules.
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetImageIamPolicyArgs;
+     * 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;
      * 
-     * https://cloud.google.com/compute/docs/load-balancing/health-checks#health_check_source_ips_and_firewall_rules
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
      * 
-     * ## Example Usage
+     *     public static void stack(Context ctx) {
+     *         final var policy = ComputeFunctions.getImageIamPolicy(GetImageIamPolicyArgs.builder()
+     *             .project(example.project())
+     *             .image(example.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getLBIPRangesPlain(InvokeArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("gcp:compute/getLBIPRanges:getLBIPRanges", TypeShape.of(GetLBIPRangesResult.class), args, Utilities.withVersion(options)); - } - public static Output getMachineImageIamPolicy(GetMachineImageIamPolicyArgs args) { - return getMachineImageIamPolicy(args, InvokeOptions.Empty); - } - public static CompletableFuture getMachineImageIamPolicyPlain(GetMachineImageIamPolicyPlainArgs args) { - return getMachineImageIamPolicyPlain(args, InvokeOptions.Empty); - } - public static Output getMachineImageIamPolicy(GetMachineImageIamPolicyArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("gcp:compute/getMachineImageIamPolicy:getMachineImageIamPolicy", TypeShape.of(GetMachineImageIamPolicyResult.class), args, Utilities.withVersion(options)); - } - public static CompletableFuture getMachineImageIamPolicyPlain(GetMachineImageIamPolicyPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("gcp:compute/getMachineImageIamPolicy:getMachineImageIamPolicy", TypeShape.of(GetMachineImageIamPolicyResult.class), args, Utilities.withVersion(options)); + public static CompletableFuture getImageIamPolicyPlain(GetImageIamPolicyPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("gcp:compute/getImageIamPolicy:getImageIamPolicy", TypeShape.of(GetImageIamPolicyResult.class), args, Utilities.withVersion(options)); } /** - * Provides access to available Google Compute machine types in a zone for a given project. - * See more about [machine type availability](https://cloud.google.com/compute/docs/regions-zones#available) in the upstream docs. - * - * To get more information about machine types, see: - * - * * [API Documentation](https://cloud.google.com/compute/docs/reference/rest/v1/machineTypes/list) - * * [Comparison Guide](https://cloud.google.com/compute/docs/machine-resource) + * Get information about a VM instance resource within GCE. For more information see + * [the official documentation](https://cloud.google.com/compute/docs/instances) + * and + * [API](https://cloud.google.com/compute/docs/reference/latest/instances). * * ## Example Usage * - */ - public static Output getMachineTypes() { - return getMachineTypes(GetMachineTypesArgs.Empty, InvokeOptions.Empty); - } - /** - * Provides access to available Google Compute machine types in a zone for a given project. - * See more about [machine type availability](https://cloud.google.com/compute/docs/regions-zones#available) in the upstream docs. + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
      * 
-     * To get more information about machine types, see:
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetInstanceArgs;
+     * 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;
      * 
-     * * [API Documentation](https://cloud.google.com/compute/docs/reference/rest/v1/machineTypes/list)
-     * * [Comparison Guide](https://cloud.google.com/compute/docs/machine-resource)
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
      * 
-     * ## Example Usage
+     *     public static void stack(Context ctx) {
+     *         final var appserver = ComputeFunctions.getInstance(GetInstanceArgs.builder()
+     *             .name("primary-application-server")
+     *             .zone("us-central1-a")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getMachineTypesPlain() { - return getMachineTypesPlain(GetMachineTypesPlainArgs.Empty, InvokeOptions.Empty); + public static Output getInstance() { + return getInstance(GetInstanceArgs.Empty, InvokeOptions.Empty); } /** - * Provides access to available Google Compute machine types in a zone for a given project. - * See more about [machine type availability](https://cloud.google.com/compute/docs/regions-zones#available) in the upstream docs. + * Get information about a VM instance resource within GCE. For more information see + * [the official documentation](https://cloud.google.com/compute/docs/instances) + * and + * [API](https://cloud.google.com/compute/docs/reference/latest/instances). * - * To get more information about machine types, see: + * ## Example Usage * - * * [API Documentation](https://cloud.google.com/compute/docs/reference/rest/v1/machineTypes/list) - * * [Comparison Guide](https://cloud.google.com/compute/docs/machine-resource) + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
      * 
-     * ## Example Usage
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetInstanceArgs;
+     * 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) {
+     *         final var appserver = ComputeFunctions.getInstance(GetInstanceArgs.builder()
+     *             .name("primary-application-server")
+     *             .zone("us-central1-a")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> * */ - public static Output getMachineTypes(GetMachineTypesArgs args) { - return getMachineTypes(args, InvokeOptions.Empty); + public static CompletableFuture getInstancePlain() { + return getInstancePlain(GetInstancePlainArgs.Empty, InvokeOptions.Empty); } /** - * Provides access to available Google Compute machine types in a zone for a given project. - * See more about [machine type availability](https://cloud.google.com/compute/docs/regions-zones#available) in the upstream docs. + * Get information about a VM instance resource within GCE. For more information see + * [the official documentation](https://cloud.google.com/compute/docs/instances) + * and + * [API](https://cloud.google.com/compute/docs/reference/latest/instances). + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetInstanceArgs;
+     * 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) {
+     *         final var appserver = ComputeFunctions.getInstance(GetInstanceArgs.builder()
+     *             .name("primary-application-server")
+     *             .zone("us-central1-a")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstance(GetInstanceArgs args) { + return getInstance(args, InvokeOptions.Empty); + } + /** + * Get information about a VM instance resource within GCE. For more information see + * [the official documentation](https://cloud.google.com/compute/docs/instances) + * and + * [API](https://cloud.google.com/compute/docs/reference/latest/instances). + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetInstanceArgs;
+     * 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) {
+     *         final var appserver = ComputeFunctions.getInstance(GetInstanceArgs.builder()
+     *             .name("primary-application-server")
+     *             .zone("us-central1-a")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getInstancePlain(GetInstancePlainArgs args) { + return getInstancePlain(args, InvokeOptions.Empty); + } + /** + * Get information about a VM instance resource within GCE. For more information see + * [the official documentation](https://cloud.google.com/compute/docs/instances) + * and + * [API](https://cloud.google.com/compute/docs/reference/latest/instances). + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetInstanceArgs;
+     * 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) {
+     *         final var appserver = ComputeFunctions.getInstance(GetInstanceArgs.builder()
+     *             .name("primary-application-server")
+     *             .zone("us-central1-a")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstance(GetInstanceArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getInstance:getInstance", TypeShape.of(GetInstanceResult.class), args, Utilities.withVersion(options)); + } + /** + * Get information about a VM instance resource within GCE. For more information see + * [the official documentation](https://cloud.google.com/compute/docs/instances) + * and + * [API](https://cloud.google.com/compute/docs/reference/latest/instances). + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetInstanceArgs;
+     * 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) {
+     *         final var appserver = ComputeFunctions.getInstance(GetInstanceArgs.builder()
+     *             .name("primary-application-server")
+     *             .zone("us-central1-a")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getInstancePlain(GetInstancePlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("gcp:compute/getInstance:getInstance", TypeShape.of(GetInstanceResult.class), args, Utilities.withVersion(options)); + } + /** + * Get a Compute Instance Group within GCE. + * For more information, see [the official documentation](https://cloud.google.com/compute/docs/instance-groups/#unmanaged_instance_groups) + * and [API](https://cloud.google.com/compute/docs/reference/latest/instanceGroups) + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetInstanceGroupArgs;
+     * 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) {
+     *         final var all = ComputeFunctions.getInstanceGroup(GetInstanceGroupArgs.builder()
+     *             .name("instance-group-name")
+     *             .zone("us-central1-a")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstanceGroup() { + return getInstanceGroup(GetInstanceGroupArgs.Empty, InvokeOptions.Empty); + } + /** + * Get a Compute Instance Group within GCE. + * For more information, see [the official documentation](https://cloud.google.com/compute/docs/instance-groups/#unmanaged_instance_groups) + * and [API](https://cloud.google.com/compute/docs/reference/latest/instanceGroups) + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetInstanceGroupArgs;
+     * 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) {
+     *         final var all = ComputeFunctions.getInstanceGroup(GetInstanceGroupArgs.builder()
+     *             .name("instance-group-name")
+     *             .zone("us-central1-a")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getInstanceGroupPlain() { + return getInstanceGroupPlain(GetInstanceGroupPlainArgs.Empty, InvokeOptions.Empty); + } + /** + * Get a Compute Instance Group within GCE. + * For more information, see [the official documentation](https://cloud.google.com/compute/docs/instance-groups/#unmanaged_instance_groups) + * and [API](https://cloud.google.com/compute/docs/reference/latest/instanceGroups) + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetInstanceGroupArgs;
+     * 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) {
+     *         final var all = ComputeFunctions.getInstanceGroup(GetInstanceGroupArgs.builder()
+     *             .name("instance-group-name")
+     *             .zone("us-central1-a")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstanceGroup(GetInstanceGroupArgs args) { + return getInstanceGroup(args, InvokeOptions.Empty); + } + /** + * Get a Compute Instance Group within GCE. + * For more information, see [the official documentation](https://cloud.google.com/compute/docs/instance-groups/#unmanaged_instance_groups) + * and [API](https://cloud.google.com/compute/docs/reference/latest/instanceGroups) + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetInstanceGroupArgs;
+     * 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) {
+     *         final var all = ComputeFunctions.getInstanceGroup(GetInstanceGroupArgs.builder()
+     *             .name("instance-group-name")
+     *             .zone("us-central1-a")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getInstanceGroupPlain(GetInstanceGroupPlainArgs args) { + return getInstanceGroupPlain(args, InvokeOptions.Empty); + } + /** + * Get a Compute Instance Group within GCE. + * For more information, see [the official documentation](https://cloud.google.com/compute/docs/instance-groups/#unmanaged_instance_groups) + * and [API](https://cloud.google.com/compute/docs/reference/latest/instanceGroups) + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetInstanceGroupArgs;
+     * 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) {
+     *         final var all = ComputeFunctions.getInstanceGroup(GetInstanceGroupArgs.builder()
+     *             .name("instance-group-name")
+     *             .zone("us-central1-a")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstanceGroup(GetInstanceGroupArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getInstanceGroup:getInstanceGroup", TypeShape.of(GetInstanceGroupResult.class), args, Utilities.withVersion(options)); + } + /** + * Get a Compute Instance Group within GCE. + * For more information, see [the official documentation](https://cloud.google.com/compute/docs/instance-groups/#unmanaged_instance_groups) + * and [API](https://cloud.google.com/compute/docs/reference/latest/instanceGroups) + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetInstanceGroupArgs;
+     * 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) {
+     *         final var all = ComputeFunctions.getInstanceGroup(GetInstanceGroupArgs.builder()
+     *             .name("instance-group-name")
+     *             .zone("us-central1-a")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getInstanceGroupPlain(GetInstanceGroupPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("gcp:compute/getInstanceGroup:getInstanceGroup", TypeShape.of(GetInstanceGroupResult.class), args, Utilities.withVersion(options)); + } + /** + * Get a Compute Instance Group Manager within GCE. + * For more information, see [the official documentation](https://cloud.google.com/compute/docs/instance-groups#managed_instance_groups) + * and [API](https://cloud.google.com/compute/docs/reference/latest/instanceGroupManagers) + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetInstanceGroupManagerArgs;
+     * 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) {
+     *         final var igm1 = ComputeFunctions.getInstanceGroupManager(GetInstanceGroupManagerArgs.builder()
+     *             .name("my-igm")
+     *             .zone("us-central1-a")
+     *             .build());
+     * 
+     *         final var igm2 = ComputeFunctions.getInstanceGroupManager(GetInstanceGroupManagerArgs.builder()
+     *             .selfLink("https://www.googleapis.com/compute/v1/projects/myproject/zones/us-central1-a/instanceGroupManagers/my-igm")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstanceGroupManager() { + return getInstanceGroupManager(GetInstanceGroupManagerArgs.Empty, InvokeOptions.Empty); + } + /** + * Get a Compute Instance Group Manager within GCE. + * For more information, see [the official documentation](https://cloud.google.com/compute/docs/instance-groups#managed_instance_groups) + * and [API](https://cloud.google.com/compute/docs/reference/latest/instanceGroupManagers) + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetInstanceGroupManagerArgs;
+     * 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) {
+     *         final var igm1 = ComputeFunctions.getInstanceGroupManager(GetInstanceGroupManagerArgs.builder()
+     *             .name("my-igm")
+     *             .zone("us-central1-a")
+     *             .build());
+     * 
+     *         final var igm2 = ComputeFunctions.getInstanceGroupManager(GetInstanceGroupManagerArgs.builder()
+     *             .selfLink("https://www.googleapis.com/compute/v1/projects/myproject/zones/us-central1-a/instanceGroupManagers/my-igm")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getInstanceGroupManagerPlain() { + return getInstanceGroupManagerPlain(GetInstanceGroupManagerPlainArgs.Empty, InvokeOptions.Empty); + } + /** + * Get a Compute Instance Group Manager within GCE. + * For more information, see [the official documentation](https://cloud.google.com/compute/docs/instance-groups#managed_instance_groups) + * and [API](https://cloud.google.com/compute/docs/reference/latest/instanceGroupManagers) + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetInstanceGroupManagerArgs;
+     * 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) {
+     *         final var igm1 = ComputeFunctions.getInstanceGroupManager(GetInstanceGroupManagerArgs.builder()
+     *             .name("my-igm")
+     *             .zone("us-central1-a")
+     *             .build());
+     * 
+     *         final var igm2 = ComputeFunctions.getInstanceGroupManager(GetInstanceGroupManagerArgs.builder()
+     *             .selfLink("https://www.googleapis.com/compute/v1/projects/myproject/zones/us-central1-a/instanceGroupManagers/my-igm")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstanceGroupManager(GetInstanceGroupManagerArgs args) { + return getInstanceGroupManager(args, InvokeOptions.Empty); + } + /** + * Get a Compute Instance Group Manager within GCE. + * For more information, see [the official documentation](https://cloud.google.com/compute/docs/instance-groups#managed_instance_groups) + * and [API](https://cloud.google.com/compute/docs/reference/latest/instanceGroupManagers) + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetInstanceGroupManagerArgs;
+     * 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) {
+     *         final var igm1 = ComputeFunctions.getInstanceGroupManager(GetInstanceGroupManagerArgs.builder()
+     *             .name("my-igm")
+     *             .zone("us-central1-a")
+     *             .build());
+     * 
+     *         final var igm2 = ComputeFunctions.getInstanceGroupManager(GetInstanceGroupManagerArgs.builder()
+     *             .selfLink("https://www.googleapis.com/compute/v1/projects/myproject/zones/us-central1-a/instanceGroupManagers/my-igm")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getInstanceGroupManagerPlain(GetInstanceGroupManagerPlainArgs args) { + return getInstanceGroupManagerPlain(args, InvokeOptions.Empty); + } + /** + * Get a Compute Instance Group Manager within GCE. + * For more information, see [the official documentation](https://cloud.google.com/compute/docs/instance-groups#managed_instance_groups) + * and [API](https://cloud.google.com/compute/docs/reference/latest/instanceGroupManagers) + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetInstanceGroupManagerArgs;
+     * 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) {
+     *         final var igm1 = ComputeFunctions.getInstanceGroupManager(GetInstanceGroupManagerArgs.builder()
+     *             .name("my-igm")
+     *             .zone("us-central1-a")
+     *             .build());
+     * 
+     *         final var igm2 = ComputeFunctions.getInstanceGroupManager(GetInstanceGroupManagerArgs.builder()
+     *             .selfLink("https://www.googleapis.com/compute/v1/projects/myproject/zones/us-central1-a/instanceGroupManagers/my-igm")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstanceGroupManager(GetInstanceGroupManagerArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getInstanceGroupManager:getInstanceGroupManager", TypeShape.of(GetInstanceGroupManagerResult.class), args, Utilities.withVersion(options)); + } + /** + * Get a Compute Instance Group Manager within GCE. + * For more information, see [the official documentation](https://cloud.google.com/compute/docs/instance-groups#managed_instance_groups) + * and [API](https://cloud.google.com/compute/docs/reference/latest/instanceGroupManagers) + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetInstanceGroupManagerArgs;
+     * 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) {
+     *         final var igm1 = ComputeFunctions.getInstanceGroupManager(GetInstanceGroupManagerArgs.builder()
+     *             .name("my-igm")
+     *             .zone("us-central1-a")
+     *             .build());
+     * 
+     *         final var igm2 = ComputeFunctions.getInstanceGroupManager(GetInstanceGroupManagerArgs.builder()
+     *             .selfLink("https://www.googleapis.com/compute/v1/projects/myproject/zones/us-central1-a/instanceGroupManagers/my-igm")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getInstanceGroupManagerPlain(GetInstanceGroupManagerPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("gcp:compute/getInstanceGroupManager:getInstanceGroupManager", TypeShape.of(GetInstanceGroupManagerResult.class), args, Utilities.withVersion(options)); + } + /** + * Retrieves the current IAM policy data for instance + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetInstanceIamPolicyArgs;
+     * 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) {
+     *         final var policy = ComputeFunctions.getInstanceIamPolicy(GetInstanceIamPolicyArgs.builder()
+     *             .project(default_.project())
+     *             .zone(default_.zone())
+     *             .instanceName(default_.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstanceIamPolicy(GetInstanceIamPolicyArgs args) { + return getInstanceIamPolicy(args, InvokeOptions.Empty); + } + /** + * Retrieves the current IAM policy data for instance + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetInstanceIamPolicyArgs;
+     * 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) {
+     *         final var policy = ComputeFunctions.getInstanceIamPolicy(GetInstanceIamPolicyArgs.builder()
+     *             .project(default_.project())
+     *             .zone(default_.zone())
+     *             .instanceName(default_.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getInstanceIamPolicyPlain(GetInstanceIamPolicyPlainArgs args) { + return getInstanceIamPolicyPlain(args, InvokeOptions.Empty); + } + /** + * Retrieves the current IAM policy data for instance + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetInstanceIamPolicyArgs;
+     * 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) {
+     *         final var policy = ComputeFunctions.getInstanceIamPolicy(GetInstanceIamPolicyArgs.builder()
+     *             .project(default_.project())
+     *             .zone(default_.zone())
+     *             .instanceName(default_.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstanceIamPolicy(GetInstanceIamPolicyArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getInstanceIamPolicy:getInstanceIamPolicy", TypeShape.of(GetInstanceIamPolicyResult.class), args, Utilities.withVersion(options)); + } + /** + * Retrieves the current IAM policy data for instance + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetInstanceIamPolicyArgs;
+     * 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) {
+     *         final var policy = ComputeFunctions.getInstanceIamPolicy(GetInstanceIamPolicyArgs.builder()
+     *             .project(default_.project())
+     *             .zone(default_.zone())
+     *             .instanceName(default_.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getInstanceIamPolicyPlain(GetInstanceIamPolicyPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("gcp:compute/getInstanceIamPolicy:getInstanceIamPolicy", TypeShape.of(GetInstanceIamPolicyResult.class), args, Utilities.withVersion(options)); + } + /** + * Get the serial port output from a Compute Instance. For more information see + * the official [API](https://cloud.google.com/compute/docs/instances/viewing-serial-port-output) documentation. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetInstanceSerialPortArgs;
+     * 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) {
+     *         final var serial = ComputeFunctions.getInstanceSerialPort(GetInstanceSerialPortArgs.builder()
+     *             .instance("my-instance")
+     *             .zone("us-central1-a")
+     *             .port(1)
+     *             .build());
+     * 
+     *         ctx.export("serialOut", serial.applyValue(getInstanceSerialPortResult -> getInstanceSerialPortResult.contents()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * Using the serial port output to generate a windows password, derived from the [official guide](https://cloud.google.com/compute/docs/instances/windows/automate-pw-generation): + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.Instance;
+     * import com.pulumi.gcp.compute.InstanceArgs;
+     * import com.pulumi.gcp.compute.inputs.InstanceNetworkInterfaceArgs;
+     * import com.pulumi.gcp.compute.inputs.InstanceBootDiskArgs;
+     * import com.pulumi.gcp.compute.inputs.InstanceBootDiskInitializeParamsArgs;
+     * import com.pulumi.gcp.compute.inputs.InstanceServiceAccountArgs;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetInstanceSerialPortArgs;
+     * import static com.pulumi.codegen.internal.Serialization.*;
+     * 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 }{{@code
+     *     public static void main(String[] args) }{{@code
+     *         Pulumi.run(App::stack);
+     *     }}{@code
+     * 
+     *     public static void stack(Context ctx) }{{@code
+     *         var windows = new Instance("windows", InstanceArgs.builder()
+     *             .networkInterfaces(InstanceNetworkInterfaceArgs.builder()
+     *                 .accessConfigs()
+     *                 .network("default")
+     *                 .build())
+     *             .name("windows-instance")
+     *             .machineType("e2-medium")
+     *             .zone("us-central1-a")
+     *             .bootDisk(InstanceBootDiskArgs.builder()
+     *                 .initializeParams(InstanceBootDiskInitializeParamsArgs.builder()
+     *                     .image("windows-cloud/windows-2019")
+     *                     .build())
+     *                 .build())
+     *             .metadata(Map.ofEntries(
+     *                 Map.entry("serial-port-logging-enable", "TRUE"),
+     *                 Map.entry("windows-keys", serializeJson(
+     *                     jsonObject(
+     *                         jsonProperty("email", "example.user}{@literal @}{@code example.com"),
+     *                         jsonProperty("expireOn", "2020-04-14T01:37:19Z"),
+     *                         jsonProperty("exponent", "AQAB"),
+     *                         jsonProperty("modulus", "wgsquN4IBNPqIUnu+h/5Za1kujb2YRhX1vCQVQAkBwnWigcCqOBVfRa5JoZfx6KIvEXjWqa77jPvlsxM4WPqnDIM2qiK36up3SKkYwFjff6F2ni/ry8vrwXCX3sGZ1hbIHlK0O012HpA3ISeEswVZmX2X67naOvJXfY5v0hGPWqCADao+xVxrmxsZD4IWnKl1UaZzI5lhAzr8fw6utHwx1EZ/MSgsEki6tujcZfN+GUDRnmJGQSnPTXmsf7Q4DKreTZk49cuyB3prV91S0x3DYjCUpSXrkVy1Ha5XicGD/q+ystuFsJnrrhbNXJbpSjM6sjo/aduAkZJl4FmOt0R7Q=="),
+     *                         jsonProperty("userName", "example-user")
+     *                     )))
+     *             ))
+     *             .serviceAccount(InstanceServiceAccountArgs.builder()
+     *                 .scopes(                
+     *                     "userinfo-email",
+     *                     "compute-ro",
+     *                     "storage-ro")
+     *                 .build())
+     *             .build());
+     * 
+     *         final var serial = ComputeFunctions.getInstanceSerialPort(GetInstanceSerialPortArgs.builder()
+     *             .instance(windows.name())
+     *             .zone(windows.zone())
+     *             .port(4)
+     *             .build());
+     * 
+     *         ctx.export("serialOut", serial.applyValue(getInstanceSerialPortResult -> getInstanceSerialPortResult).applyValue(serial -> serial.applyValue(getInstanceSerialPortResult -> getInstanceSerialPortResult.contents())));
+     *     }}{@code
+     * }}{@code
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstanceSerialPort(GetInstanceSerialPortArgs args) { + return getInstanceSerialPort(args, InvokeOptions.Empty); + } + /** + * Get the serial port output from a Compute Instance. For more information see + * the official [API](https://cloud.google.com/compute/docs/instances/viewing-serial-port-output) documentation. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetInstanceSerialPortArgs;
+     * 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) {
+     *         final var serial = ComputeFunctions.getInstanceSerialPort(GetInstanceSerialPortArgs.builder()
+     *             .instance("my-instance")
+     *             .zone("us-central1-a")
+     *             .port(1)
+     *             .build());
+     * 
+     *         ctx.export("serialOut", serial.applyValue(getInstanceSerialPortResult -> getInstanceSerialPortResult.contents()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * Using the serial port output to generate a windows password, derived from the [official guide](https://cloud.google.com/compute/docs/instances/windows/automate-pw-generation): + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.Instance;
+     * import com.pulumi.gcp.compute.InstanceArgs;
+     * import com.pulumi.gcp.compute.inputs.InstanceNetworkInterfaceArgs;
+     * import com.pulumi.gcp.compute.inputs.InstanceBootDiskArgs;
+     * import com.pulumi.gcp.compute.inputs.InstanceBootDiskInitializeParamsArgs;
+     * import com.pulumi.gcp.compute.inputs.InstanceServiceAccountArgs;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetInstanceSerialPortArgs;
+     * import static com.pulumi.codegen.internal.Serialization.*;
+     * 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 }{{@code
+     *     public static void main(String[] args) }{{@code
+     *         Pulumi.run(App::stack);
+     *     }}{@code
+     * 
+     *     public static void stack(Context ctx) }{{@code
+     *         var windows = new Instance("windows", InstanceArgs.builder()
+     *             .networkInterfaces(InstanceNetworkInterfaceArgs.builder()
+     *                 .accessConfigs()
+     *                 .network("default")
+     *                 .build())
+     *             .name("windows-instance")
+     *             .machineType("e2-medium")
+     *             .zone("us-central1-a")
+     *             .bootDisk(InstanceBootDiskArgs.builder()
+     *                 .initializeParams(InstanceBootDiskInitializeParamsArgs.builder()
+     *                     .image("windows-cloud/windows-2019")
+     *                     .build())
+     *                 .build())
+     *             .metadata(Map.ofEntries(
+     *                 Map.entry("serial-port-logging-enable", "TRUE"),
+     *                 Map.entry("windows-keys", serializeJson(
+     *                     jsonObject(
+     *                         jsonProperty("email", "example.user}{@literal @}{@code example.com"),
+     *                         jsonProperty("expireOn", "2020-04-14T01:37:19Z"),
+     *                         jsonProperty("exponent", "AQAB"),
+     *                         jsonProperty("modulus", "wgsquN4IBNPqIUnu+h/5Za1kujb2YRhX1vCQVQAkBwnWigcCqOBVfRa5JoZfx6KIvEXjWqa77jPvlsxM4WPqnDIM2qiK36up3SKkYwFjff6F2ni/ry8vrwXCX3sGZ1hbIHlK0O012HpA3ISeEswVZmX2X67naOvJXfY5v0hGPWqCADao+xVxrmxsZD4IWnKl1UaZzI5lhAzr8fw6utHwx1EZ/MSgsEki6tujcZfN+GUDRnmJGQSnPTXmsf7Q4DKreTZk49cuyB3prV91S0x3DYjCUpSXrkVy1Ha5XicGD/q+ystuFsJnrrhbNXJbpSjM6sjo/aduAkZJl4FmOt0R7Q=="),
+     *                         jsonProperty("userName", "example-user")
+     *                     )))
+     *             ))
+     *             .serviceAccount(InstanceServiceAccountArgs.builder()
+     *                 .scopes(                
+     *                     "userinfo-email",
+     *                     "compute-ro",
+     *                     "storage-ro")
+     *                 .build())
+     *             .build());
+     * 
+     *         final var serial = ComputeFunctions.getInstanceSerialPort(GetInstanceSerialPortArgs.builder()
+     *             .instance(windows.name())
+     *             .zone(windows.zone())
+     *             .port(4)
+     *             .build());
+     * 
+     *         ctx.export("serialOut", serial.applyValue(getInstanceSerialPortResult -> getInstanceSerialPortResult).applyValue(serial -> serial.applyValue(getInstanceSerialPortResult -> getInstanceSerialPortResult.contents())));
+     *     }}{@code
+     * }}{@code
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getInstanceSerialPortPlain(GetInstanceSerialPortPlainArgs args) { + return getInstanceSerialPortPlain(args, InvokeOptions.Empty); + } + /** + * Get the serial port output from a Compute Instance. For more information see + * the official [API](https://cloud.google.com/compute/docs/instances/viewing-serial-port-output) documentation. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetInstanceSerialPortArgs;
+     * 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) {
+     *         final var serial = ComputeFunctions.getInstanceSerialPort(GetInstanceSerialPortArgs.builder()
+     *             .instance("my-instance")
+     *             .zone("us-central1-a")
+     *             .port(1)
+     *             .build());
+     * 
+     *         ctx.export("serialOut", serial.applyValue(getInstanceSerialPortResult -> getInstanceSerialPortResult.contents()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * Using the serial port output to generate a windows password, derived from the [official guide](https://cloud.google.com/compute/docs/instances/windows/automate-pw-generation): + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.Instance;
+     * import com.pulumi.gcp.compute.InstanceArgs;
+     * import com.pulumi.gcp.compute.inputs.InstanceNetworkInterfaceArgs;
+     * import com.pulumi.gcp.compute.inputs.InstanceBootDiskArgs;
+     * import com.pulumi.gcp.compute.inputs.InstanceBootDiskInitializeParamsArgs;
+     * import com.pulumi.gcp.compute.inputs.InstanceServiceAccountArgs;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetInstanceSerialPortArgs;
+     * import static com.pulumi.codegen.internal.Serialization.*;
+     * 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 }{{@code
+     *     public static void main(String[] args) }{{@code
+     *         Pulumi.run(App::stack);
+     *     }}{@code
+     * 
+     *     public static void stack(Context ctx) }{{@code
+     *         var windows = new Instance("windows", InstanceArgs.builder()
+     *             .networkInterfaces(InstanceNetworkInterfaceArgs.builder()
+     *                 .accessConfigs()
+     *                 .network("default")
+     *                 .build())
+     *             .name("windows-instance")
+     *             .machineType("e2-medium")
+     *             .zone("us-central1-a")
+     *             .bootDisk(InstanceBootDiskArgs.builder()
+     *                 .initializeParams(InstanceBootDiskInitializeParamsArgs.builder()
+     *                     .image("windows-cloud/windows-2019")
+     *                     .build())
+     *                 .build())
+     *             .metadata(Map.ofEntries(
+     *                 Map.entry("serial-port-logging-enable", "TRUE"),
+     *                 Map.entry("windows-keys", serializeJson(
+     *                     jsonObject(
+     *                         jsonProperty("email", "example.user}{@literal @}{@code example.com"),
+     *                         jsonProperty("expireOn", "2020-04-14T01:37:19Z"),
+     *                         jsonProperty("exponent", "AQAB"),
+     *                         jsonProperty("modulus", "wgsquN4IBNPqIUnu+h/5Za1kujb2YRhX1vCQVQAkBwnWigcCqOBVfRa5JoZfx6KIvEXjWqa77jPvlsxM4WPqnDIM2qiK36up3SKkYwFjff6F2ni/ry8vrwXCX3sGZ1hbIHlK0O012HpA3ISeEswVZmX2X67naOvJXfY5v0hGPWqCADao+xVxrmxsZD4IWnKl1UaZzI5lhAzr8fw6utHwx1EZ/MSgsEki6tujcZfN+GUDRnmJGQSnPTXmsf7Q4DKreTZk49cuyB3prV91S0x3DYjCUpSXrkVy1Ha5XicGD/q+ystuFsJnrrhbNXJbpSjM6sjo/aduAkZJl4FmOt0R7Q=="),
+     *                         jsonProperty("userName", "example-user")
+     *                     )))
+     *             ))
+     *             .serviceAccount(InstanceServiceAccountArgs.builder()
+     *                 .scopes(                
+     *                     "userinfo-email",
+     *                     "compute-ro",
+     *                     "storage-ro")
+     *                 .build())
+     *             .build());
+     * 
+     *         final var serial = ComputeFunctions.getInstanceSerialPort(GetInstanceSerialPortArgs.builder()
+     *             .instance(windows.name())
+     *             .zone(windows.zone())
+     *             .port(4)
+     *             .build());
+     * 
+     *         ctx.export("serialOut", serial.applyValue(getInstanceSerialPortResult -> getInstanceSerialPortResult).applyValue(serial -> serial.applyValue(getInstanceSerialPortResult -> getInstanceSerialPortResult.contents())));
+     *     }}{@code
+     * }}{@code
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getInstanceSerialPort(GetInstanceSerialPortArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getInstanceSerialPort:getInstanceSerialPort", TypeShape.of(GetInstanceSerialPortResult.class), args, Utilities.withVersion(options)); + } + /** + * Get the serial port output from a Compute Instance. For more information see + * the official [API](https://cloud.google.com/compute/docs/instances/viewing-serial-port-output) documentation. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetInstanceSerialPortArgs;
+     * 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) {
+     *         final var serial = ComputeFunctions.getInstanceSerialPort(GetInstanceSerialPortArgs.builder()
+     *             .instance("my-instance")
+     *             .zone("us-central1-a")
+     *             .port(1)
+     *             .build());
+     * 
+     *         ctx.export("serialOut", serial.applyValue(getInstanceSerialPortResult -> getInstanceSerialPortResult.contents()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * Using the serial port output to generate a windows password, derived from the [official guide](https://cloud.google.com/compute/docs/instances/windows/automate-pw-generation): + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.Instance;
+     * import com.pulumi.gcp.compute.InstanceArgs;
+     * import com.pulumi.gcp.compute.inputs.InstanceNetworkInterfaceArgs;
+     * import com.pulumi.gcp.compute.inputs.InstanceBootDiskArgs;
+     * import com.pulumi.gcp.compute.inputs.InstanceBootDiskInitializeParamsArgs;
+     * import com.pulumi.gcp.compute.inputs.InstanceServiceAccountArgs;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetInstanceSerialPortArgs;
+     * import static com.pulumi.codegen.internal.Serialization.*;
+     * 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 }{{@code
+     *     public static void main(String[] args) }{{@code
+     *         Pulumi.run(App::stack);
+     *     }}{@code
+     * 
+     *     public static void stack(Context ctx) }{{@code
+     *         var windows = new Instance("windows", InstanceArgs.builder()
+     *             .networkInterfaces(InstanceNetworkInterfaceArgs.builder()
+     *                 .accessConfigs()
+     *                 .network("default")
+     *                 .build())
+     *             .name("windows-instance")
+     *             .machineType("e2-medium")
+     *             .zone("us-central1-a")
+     *             .bootDisk(InstanceBootDiskArgs.builder()
+     *                 .initializeParams(InstanceBootDiskInitializeParamsArgs.builder()
+     *                     .image("windows-cloud/windows-2019")
+     *                     .build())
+     *                 .build())
+     *             .metadata(Map.ofEntries(
+     *                 Map.entry("serial-port-logging-enable", "TRUE"),
+     *                 Map.entry("windows-keys", serializeJson(
+     *                     jsonObject(
+     *                         jsonProperty("email", "example.user}{@literal @}{@code example.com"),
+     *                         jsonProperty("expireOn", "2020-04-14T01:37:19Z"),
+     *                         jsonProperty("exponent", "AQAB"),
+     *                         jsonProperty("modulus", "wgsquN4IBNPqIUnu+h/5Za1kujb2YRhX1vCQVQAkBwnWigcCqOBVfRa5JoZfx6KIvEXjWqa77jPvlsxM4WPqnDIM2qiK36up3SKkYwFjff6F2ni/ry8vrwXCX3sGZ1hbIHlK0O012HpA3ISeEswVZmX2X67naOvJXfY5v0hGPWqCADao+xVxrmxsZD4IWnKl1UaZzI5lhAzr8fw6utHwx1EZ/MSgsEki6tujcZfN+GUDRnmJGQSnPTXmsf7Q4DKreTZk49cuyB3prV91S0x3DYjCUpSXrkVy1Ha5XicGD/q+ystuFsJnrrhbNXJbpSjM6sjo/aduAkZJl4FmOt0R7Q=="),
+     *                         jsonProperty("userName", "example-user")
+     *                     )))
+     *             ))
+     *             .serviceAccount(InstanceServiceAccountArgs.builder()
+     *                 .scopes(                
+     *                     "userinfo-email",
+     *                     "compute-ro",
+     *                     "storage-ro")
+     *                 .build())
+     *             .build());
+     * 
+     *         final var serial = ComputeFunctions.getInstanceSerialPort(GetInstanceSerialPortArgs.builder()
+     *             .instance(windows.name())
+     *             .zone(windows.zone())
+     *             .port(4)
+     *             .build());
+     * 
+     *         ctx.export("serialOut", serial.applyValue(getInstanceSerialPortResult -> getInstanceSerialPortResult).applyValue(serial -> serial.applyValue(getInstanceSerialPortResult -> getInstanceSerialPortResult.contents())));
+     *     }}{@code
+     * }}{@code
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getInstanceSerialPortPlain(GetInstanceSerialPortPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("gcp:compute/getInstanceSerialPort:getInstanceSerialPort", TypeShape.of(GetInstanceSerialPortResult.class), args, Utilities.withVersion(options)); + } + /** + * > **Note**: Global instance templates can be used in any region. To lower the impact of outages outside your region and gain data residency within your region, use google_compute_region_instance_template. + * + * Get information about a VM instance template resource within GCE. For more information see + * [the official documentation](https://cloud.google.com/compute/docs/instance-templates) + * and + * [API](https://cloud.google.com/compute/docs/reference/rest/v1/instanceTemplates). + * + */ + public static Output getInstanceTemplate() { + return getInstanceTemplate(GetInstanceTemplateArgs.Empty, InvokeOptions.Empty); + } + /** + * > **Note**: Global instance templates can be used in any region. To lower the impact of outages outside your region and gain data residency within your region, use google_compute_region_instance_template. + * + * Get information about a VM instance template resource within GCE. For more information see + * [the official documentation](https://cloud.google.com/compute/docs/instance-templates) + * and + * [API](https://cloud.google.com/compute/docs/reference/rest/v1/instanceTemplates). + * + */ + public static CompletableFuture getInstanceTemplatePlain() { + return getInstanceTemplatePlain(GetInstanceTemplatePlainArgs.Empty, InvokeOptions.Empty); + } + /** + * > **Note**: Global instance templates can be used in any region. To lower the impact of outages outside your region and gain data residency within your region, use google_compute_region_instance_template. + * + * Get information about a VM instance template resource within GCE. For more information see + * [the official documentation](https://cloud.google.com/compute/docs/instance-templates) + * and + * [API](https://cloud.google.com/compute/docs/reference/rest/v1/instanceTemplates). + * + */ + public static Output getInstanceTemplate(GetInstanceTemplateArgs args) { + return getInstanceTemplate(args, InvokeOptions.Empty); + } + /** + * > **Note**: Global instance templates can be used in any region. To lower the impact of outages outside your region and gain data residency within your region, use google_compute_region_instance_template. + * + * Get information about a VM instance template resource within GCE. For more information see + * [the official documentation](https://cloud.google.com/compute/docs/instance-templates) + * and + * [API](https://cloud.google.com/compute/docs/reference/rest/v1/instanceTemplates). + * + */ + public static CompletableFuture getInstanceTemplatePlain(GetInstanceTemplatePlainArgs args) { + return getInstanceTemplatePlain(args, InvokeOptions.Empty); + } + /** + * > **Note**: Global instance templates can be used in any region. To lower the impact of outages outside your region and gain data residency within your region, use google_compute_region_instance_template. + * + * Get information about a VM instance template resource within GCE. For more information see + * [the official documentation](https://cloud.google.com/compute/docs/instance-templates) + * and + * [API](https://cloud.google.com/compute/docs/reference/rest/v1/instanceTemplates). + * + */ + public static Output getInstanceTemplate(GetInstanceTemplateArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getInstanceTemplate:getInstanceTemplate", TypeShape.of(GetInstanceTemplateResult.class), args, Utilities.withVersion(options)); + } + /** + * > **Note**: Global instance templates can be used in any region. To lower the impact of outages outside your region and gain data residency within your region, use google_compute_region_instance_template. + * + * Get information about a VM instance template resource within GCE. For more information see + * [the official documentation](https://cloud.google.com/compute/docs/instance-templates) + * and + * [API](https://cloud.google.com/compute/docs/reference/rest/v1/instanceTemplates). + * + */ + public static CompletableFuture getInstanceTemplatePlain(GetInstanceTemplatePlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("gcp:compute/getInstanceTemplate:getInstanceTemplate", TypeShape.of(GetInstanceTemplateResult.class), args, Utilities.withVersion(options)); + } + /** + * Use this data source to access IP ranges in your firewall rules. + * + * https://cloud.google.com/compute/docs/load-balancing/health-checks#health_check_source_ips_and_firewall_rules + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.Firewall;
+     * import com.pulumi.gcp.compute.FirewallArgs;
+     * import com.pulumi.gcp.compute.inputs.FirewallAllowArgs;
+     * 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) {
+     *         final var ranges = ComputeFunctions.getLBIPRanges();
+     * 
+     *         var lb = new Firewall("lb", FirewallArgs.builder()
+     *             .name("lb-firewall")
+     *             .network(main.name())
+     *             .allows(FirewallAllowArgs.builder()
+     *                 .protocol("tcp")
+     *                 .ports("80")
+     *                 .build())
+     *             .sourceRanges(ranges.applyValue(getLBIPRangesResult -> getLBIPRangesResult.networks()))
+     *             .targetTags("InstanceBehindLoadBalancer")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getLBIPRanges() { + return getLBIPRanges(InvokeArgs.Empty, InvokeOptions.Empty); + } + /** + * Use this data source to access IP ranges in your firewall rules. + * + * https://cloud.google.com/compute/docs/load-balancing/health-checks#health_check_source_ips_and_firewall_rules + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.Firewall;
+     * import com.pulumi.gcp.compute.FirewallArgs;
+     * import com.pulumi.gcp.compute.inputs.FirewallAllowArgs;
+     * 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) {
+     *         final var ranges = ComputeFunctions.getLBIPRanges();
+     * 
+     *         var lb = new Firewall("lb", FirewallArgs.builder()
+     *             .name("lb-firewall")
+     *             .network(main.name())
+     *             .allows(FirewallAllowArgs.builder()
+     *                 .protocol("tcp")
+     *                 .ports("80")
+     *                 .build())
+     *             .sourceRanges(ranges.applyValue(getLBIPRangesResult -> getLBIPRangesResult.networks()))
+     *             .targetTags("InstanceBehindLoadBalancer")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getLBIPRangesPlain() { + return getLBIPRangesPlain(InvokeArgs.Empty, InvokeOptions.Empty); + } + /** + * Use this data source to access IP ranges in your firewall rules. + * + * https://cloud.google.com/compute/docs/load-balancing/health-checks#health_check_source_ips_and_firewall_rules + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.Firewall;
+     * import com.pulumi.gcp.compute.FirewallArgs;
+     * import com.pulumi.gcp.compute.inputs.FirewallAllowArgs;
+     * 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) {
+     *         final var ranges = ComputeFunctions.getLBIPRanges();
+     * 
+     *         var lb = new Firewall("lb", FirewallArgs.builder()
+     *             .name("lb-firewall")
+     *             .network(main.name())
+     *             .allows(FirewallAllowArgs.builder()
+     *                 .protocol("tcp")
+     *                 .ports("80")
+     *                 .build())
+     *             .sourceRanges(ranges.applyValue(getLBIPRangesResult -> getLBIPRangesResult.networks()))
+     *             .targetTags("InstanceBehindLoadBalancer")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getLBIPRanges(InvokeArgs args) { + return getLBIPRanges(args, InvokeOptions.Empty); + } + /** + * Use this data source to access IP ranges in your firewall rules. + * + * https://cloud.google.com/compute/docs/load-balancing/health-checks#health_check_source_ips_and_firewall_rules + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.Firewall;
+     * import com.pulumi.gcp.compute.FirewallArgs;
+     * import com.pulumi.gcp.compute.inputs.FirewallAllowArgs;
+     * 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) {
+     *         final var ranges = ComputeFunctions.getLBIPRanges();
+     * 
+     *         var lb = new Firewall("lb", FirewallArgs.builder()
+     *             .name("lb-firewall")
+     *             .network(main.name())
+     *             .allows(FirewallAllowArgs.builder()
+     *                 .protocol("tcp")
+     *                 .ports("80")
+     *                 .build())
+     *             .sourceRanges(ranges.applyValue(getLBIPRangesResult -> getLBIPRangesResult.networks()))
+     *             .targetTags("InstanceBehindLoadBalancer")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getLBIPRangesPlain(InvokeArgs args) { + return getLBIPRangesPlain(args, InvokeOptions.Empty); + } + /** + * Use this data source to access IP ranges in your firewall rules. + * + * https://cloud.google.com/compute/docs/load-balancing/health-checks#health_check_source_ips_and_firewall_rules + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.Firewall;
+     * import com.pulumi.gcp.compute.FirewallArgs;
+     * import com.pulumi.gcp.compute.inputs.FirewallAllowArgs;
+     * 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) {
+     *         final var ranges = ComputeFunctions.getLBIPRanges();
+     * 
+     *         var lb = new Firewall("lb", FirewallArgs.builder()
+     *             .name("lb-firewall")
+     *             .network(main.name())
+     *             .allows(FirewallAllowArgs.builder()
+     *                 .protocol("tcp")
+     *                 .ports("80")
+     *                 .build())
+     *             .sourceRanges(ranges.applyValue(getLBIPRangesResult -> getLBIPRangesResult.networks()))
+     *             .targetTags("InstanceBehindLoadBalancer")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getLBIPRanges(InvokeArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getLBIPRanges:getLBIPRanges", TypeShape.of(GetLBIPRangesResult.class), args, Utilities.withVersion(options)); + } + /** + * Use this data source to access IP ranges in your firewall rules. + * + * https://cloud.google.com/compute/docs/load-balancing/health-checks#health_check_source_ips_and_firewall_rules + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.Firewall;
+     * import com.pulumi.gcp.compute.FirewallArgs;
+     * import com.pulumi.gcp.compute.inputs.FirewallAllowArgs;
+     * 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) {
+     *         final var ranges = ComputeFunctions.getLBIPRanges();
+     * 
+     *         var lb = new Firewall("lb", FirewallArgs.builder()
+     *             .name("lb-firewall")
+     *             .network(main.name())
+     *             .allows(FirewallAllowArgs.builder()
+     *                 .protocol("tcp")
+     *                 .ports("80")
+     *                 .build())
+     *             .sourceRanges(ranges.applyValue(getLBIPRangesResult -> getLBIPRangesResult.networks()))
+     *             .targetTags("InstanceBehindLoadBalancer")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getLBIPRangesPlain(InvokeArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("gcp:compute/getLBIPRanges:getLBIPRanges", TypeShape.of(GetLBIPRangesResult.class), args, Utilities.withVersion(options)); + } + public static Output getMachineImageIamPolicy(GetMachineImageIamPolicyArgs args) { + return getMachineImageIamPolicy(args, InvokeOptions.Empty); + } + public static CompletableFuture getMachineImageIamPolicyPlain(GetMachineImageIamPolicyPlainArgs args) { + return getMachineImageIamPolicyPlain(args, InvokeOptions.Empty); + } + public static Output getMachineImageIamPolicy(GetMachineImageIamPolicyArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getMachineImageIamPolicy:getMachineImageIamPolicy", TypeShape.of(GetMachineImageIamPolicyResult.class), args, Utilities.withVersion(options)); + } + public static CompletableFuture getMachineImageIamPolicyPlain(GetMachineImageIamPolicyPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("gcp:compute/getMachineImageIamPolicy:getMachineImageIamPolicy", TypeShape.of(GetMachineImageIamPolicyResult.class), args, Utilities.withVersion(options)); + } + /** + * Provides access to available Google Compute machine types in a zone for a given project. + * See more about [machine type availability](https://cloud.google.com/compute/docs/regions-zones#available) in the upstream docs. + * + * To get more information about machine types, see: + * + * * [API Documentation](https://cloud.google.com/compute/docs/reference/rest/v1/machineTypes/list) + * * [Comparison Guide](https://cloud.google.com/compute/docs/machine-resource) + * + * ## Example Usage + * + */ + public static Output getMachineTypes() { + return getMachineTypes(GetMachineTypesArgs.Empty, InvokeOptions.Empty); + } + /** + * Provides access to available Google Compute machine types in a zone for a given project. + * See more about [machine type availability](https://cloud.google.com/compute/docs/regions-zones#available) in the upstream docs. + * + * To get more information about machine types, see: + * + * * [API Documentation](https://cloud.google.com/compute/docs/reference/rest/v1/machineTypes/list) + * * [Comparison Guide](https://cloud.google.com/compute/docs/machine-resource) + * + * ## Example Usage + * + */ + public static CompletableFuture getMachineTypesPlain() { + return getMachineTypesPlain(GetMachineTypesPlainArgs.Empty, InvokeOptions.Empty); + } + /** + * Provides access to available Google Compute machine types in a zone for a given project. + * See more about [machine type availability](https://cloud.google.com/compute/docs/regions-zones#available) in the upstream docs. + * + * To get more information about machine types, see: + * + * * [API Documentation](https://cloud.google.com/compute/docs/reference/rest/v1/machineTypes/list) + * * [Comparison Guide](https://cloud.google.com/compute/docs/machine-resource) + * + * ## Example Usage + * + */ + public static Output getMachineTypes(GetMachineTypesArgs args) { + return getMachineTypes(args, InvokeOptions.Empty); + } + /** + * Provides access to available Google Compute machine types in a zone for a given project. + * See more about [machine type availability](https://cloud.google.com/compute/docs/regions-zones#available) in the upstream docs. + * + * To get more information about machine types, see: + * + * * [API Documentation](https://cloud.google.com/compute/docs/reference/rest/v1/machineTypes/list) + * * [Comparison Guide](https://cloud.google.com/compute/docs/machine-resource) + * + * ## Example Usage + * + */ + public static CompletableFuture getMachineTypesPlain(GetMachineTypesPlainArgs args) { + return getMachineTypesPlain(args, InvokeOptions.Empty); + } + /** + * Provides access to available Google Compute machine types in a zone for a given project. + * See more about [machine type availability](https://cloud.google.com/compute/docs/regions-zones#available) in the upstream docs. + * + * To get more information about machine types, see: + * + * * [API Documentation](https://cloud.google.com/compute/docs/reference/rest/v1/machineTypes/list) + * * [Comparison Guide](https://cloud.google.com/compute/docs/machine-resource) + * + * ## Example Usage + * + */ + public static Output getMachineTypes(GetMachineTypesArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getMachineTypes:getMachineTypes", TypeShape.of(GetMachineTypesResult.class), args, Utilities.withVersion(options)); + } + /** + * Provides access to available Google Compute machine types in a zone for a given project. + * See more about [machine type availability](https://cloud.google.com/compute/docs/regions-zones#available) in the upstream docs. + * + * To get more information about machine types, see: + * + * * [API Documentation](https://cloud.google.com/compute/docs/reference/rest/v1/machineTypes/list) + * * [Comparison Guide](https://cloud.google.com/compute/docs/machine-resource) + * + * ## Example Usage + * + */ + public static CompletableFuture getMachineTypesPlain(GetMachineTypesPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("gcp:compute/getMachineTypes:getMachineTypes", TypeShape.of(GetMachineTypesResult.class), args, Utilities.withVersion(options)); + } + /** + * Use this data source to get the IP addresses from different special IP ranges on Google Cloud Platform. + * + * ## Example Usage + * + * ### Cloud Ranges + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetNetblockIPRangesArgs;
+     * 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) {
+     *         final var netblock = ComputeFunctions.getNetblockIPRanges();
+     * 
+     *         ctx.export("cidrBlocks", netblock.applyValue(getNetblockIPRangesResult -> getNetblockIPRangesResult.cidrBlocks()));
+     *         ctx.export("cidrBlocksIpv4", netblock.applyValue(getNetblockIPRangesResult -> getNetblockIPRangesResult.cidrBlocksIpv4s()));
+     *         ctx.export("cidrBlocksIpv6", netblock.applyValue(getNetblockIPRangesResult -> getNetblockIPRangesResult.cidrBlocksIpv6s()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * ### Allow Health Checks + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetNetblockIPRangesArgs;
+     * import com.pulumi.gcp.compute.Network;
+     * import com.pulumi.gcp.compute.NetworkArgs;
+     * import com.pulumi.gcp.compute.Firewall;
+     * import com.pulumi.gcp.compute.FirewallArgs;
+     * import com.pulumi.gcp.compute.inputs.FirewallAllowArgs;
+     * 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) {
+     *         final var legacy-hcs = ComputeFunctions.getNetblockIPRanges(GetNetblockIPRangesArgs.builder()
+     *             .rangeType("legacy-health-checkers")
+     *             .build());
+     * 
+     *         var default_ = new Network("default", NetworkArgs.builder()
+     *             .name("test-network")
+     *             .build());
+     * 
+     *         var allow_hcs = new Firewall("allow-hcs", FirewallArgs.builder()
+     *             .name("allow-hcs")
+     *             .network(default_.name())
+     *             .allows(FirewallAllowArgs.builder()
+     *                 .protocol("tcp")
+     *                 .ports("80")
+     *                 .build())
+     *             .sourceRanges(legacy_hcs.cidrBlocksIpv4s())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getNetblockIPRanges() { + return getNetblockIPRanges(GetNetblockIPRangesArgs.Empty, InvokeOptions.Empty); + } + /** + * Use this data source to get the IP addresses from different special IP ranges on Google Cloud Platform. + * + * ## Example Usage + * + * ### Cloud Ranges + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetNetblockIPRangesArgs;
+     * 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) {
+     *         final var netblock = ComputeFunctions.getNetblockIPRanges();
+     * 
+     *         ctx.export("cidrBlocks", netblock.applyValue(getNetblockIPRangesResult -> getNetblockIPRangesResult.cidrBlocks()));
+     *         ctx.export("cidrBlocksIpv4", netblock.applyValue(getNetblockIPRangesResult -> getNetblockIPRangesResult.cidrBlocksIpv4s()));
+     *         ctx.export("cidrBlocksIpv6", netblock.applyValue(getNetblockIPRangesResult -> getNetblockIPRangesResult.cidrBlocksIpv6s()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * ### Allow Health Checks + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetNetblockIPRangesArgs;
+     * import com.pulumi.gcp.compute.Network;
+     * import com.pulumi.gcp.compute.NetworkArgs;
+     * import com.pulumi.gcp.compute.Firewall;
+     * import com.pulumi.gcp.compute.FirewallArgs;
+     * import com.pulumi.gcp.compute.inputs.FirewallAllowArgs;
+     * 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) {
+     *         final var legacy-hcs = ComputeFunctions.getNetblockIPRanges(GetNetblockIPRangesArgs.builder()
+     *             .rangeType("legacy-health-checkers")
+     *             .build());
+     * 
+     *         var default_ = new Network("default", NetworkArgs.builder()
+     *             .name("test-network")
+     *             .build());
+     * 
+     *         var allow_hcs = new Firewall("allow-hcs", FirewallArgs.builder()
+     *             .name("allow-hcs")
+     *             .network(default_.name())
+     *             .allows(FirewallAllowArgs.builder()
+     *                 .protocol("tcp")
+     *                 .ports("80")
+     *                 .build())
+     *             .sourceRanges(legacy_hcs.cidrBlocksIpv4s())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getNetblockIPRangesPlain() { + return getNetblockIPRangesPlain(GetNetblockIPRangesPlainArgs.Empty, InvokeOptions.Empty); + } + /** + * Use this data source to get the IP addresses from different special IP ranges on Google Cloud Platform. + * + * ## Example Usage + * + * ### Cloud Ranges + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetNetblockIPRangesArgs;
+     * 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) {
+     *         final var netblock = ComputeFunctions.getNetblockIPRanges();
+     * 
+     *         ctx.export("cidrBlocks", netblock.applyValue(getNetblockIPRangesResult -> getNetblockIPRangesResult.cidrBlocks()));
+     *         ctx.export("cidrBlocksIpv4", netblock.applyValue(getNetblockIPRangesResult -> getNetblockIPRangesResult.cidrBlocksIpv4s()));
+     *         ctx.export("cidrBlocksIpv6", netblock.applyValue(getNetblockIPRangesResult -> getNetblockIPRangesResult.cidrBlocksIpv6s()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * ### Allow Health Checks + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetNetblockIPRangesArgs;
+     * import com.pulumi.gcp.compute.Network;
+     * import com.pulumi.gcp.compute.NetworkArgs;
+     * import com.pulumi.gcp.compute.Firewall;
+     * import com.pulumi.gcp.compute.FirewallArgs;
+     * import com.pulumi.gcp.compute.inputs.FirewallAllowArgs;
+     * 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) {
+     *         final var legacy-hcs = ComputeFunctions.getNetblockIPRanges(GetNetblockIPRangesArgs.builder()
+     *             .rangeType("legacy-health-checkers")
+     *             .build());
+     * 
+     *         var default_ = new Network("default", NetworkArgs.builder()
+     *             .name("test-network")
+     *             .build());
+     * 
+     *         var allow_hcs = new Firewall("allow-hcs", FirewallArgs.builder()
+     *             .name("allow-hcs")
+     *             .network(default_.name())
+     *             .allows(FirewallAllowArgs.builder()
+     *                 .protocol("tcp")
+     *                 .ports("80")
+     *                 .build())
+     *             .sourceRanges(legacy_hcs.cidrBlocksIpv4s())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getNetblockIPRanges(GetNetblockIPRangesArgs args) { + return getNetblockIPRanges(args, InvokeOptions.Empty); + } + /** + * Use this data source to get the IP addresses from different special IP ranges on Google Cloud Platform. + * + * ## Example Usage + * + * ### Cloud Ranges + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetNetblockIPRangesArgs;
+     * 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) {
+     *         final var netblock = ComputeFunctions.getNetblockIPRanges();
+     * 
+     *         ctx.export("cidrBlocks", netblock.applyValue(getNetblockIPRangesResult -> getNetblockIPRangesResult.cidrBlocks()));
+     *         ctx.export("cidrBlocksIpv4", netblock.applyValue(getNetblockIPRangesResult -> getNetblockIPRangesResult.cidrBlocksIpv4s()));
+     *         ctx.export("cidrBlocksIpv6", netblock.applyValue(getNetblockIPRangesResult -> getNetblockIPRangesResult.cidrBlocksIpv6s()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * ### Allow Health Checks + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetNetblockIPRangesArgs;
+     * import com.pulumi.gcp.compute.Network;
+     * import com.pulumi.gcp.compute.NetworkArgs;
+     * import com.pulumi.gcp.compute.Firewall;
+     * import com.pulumi.gcp.compute.FirewallArgs;
+     * import com.pulumi.gcp.compute.inputs.FirewallAllowArgs;
+     * 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) {
+     *         final var legacy-hcs = ComputeFunctions.getNetblockIPRanges(GetNetblockIPRangesArgs.builder()
+     *             .rangeType("legacy-health-checkers")
+     *             .build());
+     * 
+     *         var default_ = new Network("default", NetworkArgs.builder()
+     *             .name("test-network")
+     *             .build());
+     * 
+     *         var allow_hcs = new Firewall("allow-hcs", FirewallArgs.builder()
+     *             .name("allow-hcs")
+     *             .network(default_.name())
+     *             .allows(FirewallAllowArgs.builder()
+     *                 .protocol("tcp")
+     *                 .ports("80")
+     *                 .build())
+     *             .sourceRanges(legacy_hcs.cidrBlocksIpv4s())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getNetblockIPRangesPlain(GetNetblockIPRangesPlainArgs args) { + return getNetblockIPRangesPlain(args, InvokeOptions.Empty); + } + /** + * Use this data source to get the IP addresses from different special IP ranges on Google Cloud Platform. + * + * ## Example Usage + * + * ### Cloud Ranges + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetNetblockIPRangesArgs;
+     * 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) {
+     *         final var netblock = ComputeFunctions.getNetblockIPRanges();
+     * 
+     *         ctx.export("cidrBlocks", netblock.applyValue(getNetblockIPRangesResult -> getNetblockIPRangesResult.cidrBlocks()));
+     *         ctx.export("cidrBlocksIpv4", netblock.applyValue(getNetblockIPRangesResult -> getNetblockIPRangesResult.cidrBlocksIpv4s()));
+     *         ctx.export("cidrBlocksIpv6", netblock.applyValue(getNetblockIPRangesResult -> getNetblockIPRangesResult.cidrBlocksIpv6s()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * ### Allow Health Checks + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetNetblockIPRangesArgs;
+     * import com.pulumi.gcp.compute.Network;
+     * import com.pulumi.gcp.compute.NetworkArgs;
+     * import com.pulumi.gcp.compute.Firewall;
+     * import com.pulumi.gcp.compute.FirewallArgs;
+     * import com.pulumi.gcp.compute.inputs.FirewallAllowArgs;
+     * 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) {
+     *         final var legacy-hcs = ComputeFunctions.getNetblockIPRanges(GetNetblockIPRangesArgs.builder()
+     *             .rangeType("legacy-health-checkers")
+     *             .build());
+     * 
+     *         var default_ = new Network("default", NetworkArgs.builder()
+     *             .name("test-network")
+     *             .build());
+     * 
+     *         var allow_hcs = new Firewall("allow-hcs", FirewallArgs.builder()
+     *             .name("allow-hcs")
+     *             .network(default_.name())
+     *             .allows(FirewallAllowArgs.builder()
+     *                 .protocol("tcp")
+     *                 .ports("80")
+     *                 .build())
+     *             .sourceRanges(legacy_hcs.cidrBlocksIpv4s())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getNetblockIPRanges(GetNetblockIPRangesArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getNetblockIPRanges:getNetblockIPRanges", TypeShape.of(GetNetblockIPRangesResult.class), args, Utilities.withVersion(options)); + } + /** + * Use this data source to get the IP addresses from different special IP ranges on Google Cloud Platform. + * + * ## Example Usage + * + * ### Cloud Ranges + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetNetblockIPRangesArgs;
+     * 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) {
+     *         final var netblock = ComputeFunctions.getNetblockIPRanges();
+     * 
+     *         ctx.export("cidrBlocks", netblock.applyValue(getNetblockIPRangesResult -> getNetblockIPRangesResult.cidrBlocks()));
+     *         ctx.export("cidrBlocksIpv4", netblock.applyValue(getNetblockIPRangesResult -> getNetblockIPRangesResult.cidrBlocksIpv4s()));
+     *         ctx.export("cidrBlocksIpv6", netblock.applyValue(getNetblockIPRangesResult -> getNetblockIPRangesResult.cidrBlocksIpv6s()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + * ### Allow Health Checks + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetNetblockIPRangesArgs;
+     * import com.pulumi.gcp.compute.Network;
+     * import com.pulumi.gcp.compute.NetworkArgs;
+     * import com.pulumi.gcp.compute.Firewall;
+     * import com.pulumi.gcp.compute.FirewallArgs;
+     * import com.pulumi.gcp.compute.inputs.FirewallAllowArgs;
+     * 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) {
+     *         final var legacy-hcs = ComputeFunctions.getNetblockIPRanges(GetNetblockIPRangesArgs.builder()
+     *             .rangeType("legacy-health-checkers")
+     *             .build());
+     * 
+     *         var default_ = new Network("default", NetworkArgs.builder()
+     *             .name("test-network")
+     *             .build());
+     * 
+     *         var allow_hcs = new Firewall("allow-hcs", FirewallArgs.builder()
+     *             .name("allow-hcs")
+     *             .network(default_.name())
+     *             .allows(FirewallAllowArgs.builder()
+     *                 .protocol("tcp")
+     *                 .ports("80")
+     *                 .build())
+     *             .sourceRanges(legacy_hcs.cidrBlocksIpv4s())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getNetblockIPRangesPlain(GetNetblockIPRangesPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("gcp:compute/getNetblockIPRanges:getNetblockIPRanges", TypeShape.of(GetNetblockIPRangesResult.class), args, Utilities.withVersion(options)); + } + /** + * Get a network within GCE from its name. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetNetworkArgs;
+     * 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;
      * 
-     * To get more information about machine types, see:
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
      * 
-     * * [API Documentation](https://cloud.google.com/compute/docs/reference/rest/v1/machineTypes/list)
-     * * [Comparison Guide](https://cloud.google.com/compute/docs/machine-resource)
+     *     public static void stack(Context ctx) {
+     *         final var my-network = ComputeFunctions.getNetwork(GetNetworkArgs.builder()
+     *             .name("default-us-east1")
+     *             .build());
      * 
-     * ## Example Usage
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getMachineTypesPlain(GetMachineTypesPlainArgs args) { - return getMachineTypesPlain(args, InvokeOptions.Empty); + public static Output getNetwork(GetNetworkArgs args) { + return getNetwork(args, InvokeOptions.Empty); } /** - * Provides access to available Google Compute machine types in a zone for a given project. - * See more about [machine type availability](https://cloud.google.com/compute/docs/regions-zones#available) in the upstream docs. - * - * To get more information about machine types, see: - * - * * [API Documentation](https://cloud.google.com/compute/docs/reference/rest/v1/machineTypes/list) - * * [Comparison Guide](https://cloud.google.com/compute/docs/machine-resource) + * Get a network within GCE from its name. * * ## Example Usage * - */ - public static Output getMachineTypes(GetMachineTypesArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("gcp:compute/getMachineTypes:getMachineTypes", TypeShape.of(GetMachineTypesResult.class), args, Utilities.withVersion(options)); - } - /** - * Provides access to available Google Compute machine types in a zone for a given project. - * See more about [machine type availability](https://cloud.google.com/compute/docs/regions-zones#available) in the upstream docs. + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
      * 
-     * To get more information about machine types, see:
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetNetworkArgs;
+     * 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;
      * 
-     * * [API Documentation](https://cloud.google.com/compute/docs/reference/rest/v1/machineTypes/list)
-     * * [Comparison Guide](https://cloud.google.com/compute/docs/machine-resource)
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
      * 
-     * ## Example Usage
+     *     public static void stack(Context ctx) {
+     *         final var my-network = ComputeFunctions.getNetwork(GetNetworkArgs.builder()
+     *             .name("default-us-east1")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getMachineTypesPlain(GetMachineTypesPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("gcp:compute/getMachineTypes:getMachineTypes", TypeShape.of(GetMachineTypesResult.class), args, Utilities.withVersion(options)); + public static CompletableFuture getNetworkPlain(GetNetworkPlainArgs args) { + return getNetworkPlain(args, InvokeOptions.Empty); } /** - * Use this data source to get the IP addresses from different special IP ranges on Google Cloud Platform. + * Get a network within GCE from its name. * * ## Example Usage * - * ### Cloud Ranges - * - * ### Allow Health Checks + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
      * 
-     */
-    public static Output getNetblockIPRanges() {
-        return getNetblockIPRanges(GetNetblockIPRangesArgs.Empty, InvokeOptions.Empty);
-    }
-    /**
-     * Use this data source to get the IP addresses from different special IP ranges on Google Cloud Platform.
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetNetworkArgs;
+     * 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;
      * 
-     * ## Example Usage
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
      * 
-     * ### Cloud Ranges
+     *     public static void stack(Context ctx) {
+     *         final var my-network = ComputeFunctions.getNetwork(GetNetworkArgs.builder()
+     *             .name("default-us-east1")
+     *             .build());
      * 
-     * ### Allow Health Checks
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getNetblockIPRangesPlain() { - return getNetblockIPRangesPlain(GetNetblockIPRangesPlainArgs.Empty, InvokeOptions.Empty); + public static Output getNetwork(GetNetworkArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getNetwork:getNetwork", TypeShape.of(GetNetworkResult.class), args, Utilities.withVersion(options)); } /** - * Use this data source to get the IP addresses from different special IP ranges on Google Cloud Platform. + * Get a network within GCE from its name. * * ## Example Usage * - * ### Cloud Ranges - * - * ### Allow Health Checks + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
      * 
-     */
-    public static Output getNetblockIPRanges(GetNetblockIPRangesArgs args) {
-        return getNetblockIPRanges(args, InvokeOptions.Empty);
-    }
-    /**
-     * Use this data source to get the IP addresses from different special IP ranges on Google Cloud Platform.
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetNetworkArgs;
+     * 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;
      * 
-     * ## Example Usage
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
      * 
-     * ### Cloud Ranges
+     *     public static void stack(Context ctx) {
+     *         final var my-network = ComputeFunctions.getNetwork(GetNetworkArgs.builder()
+     *             .name("default-us-east1")
+     *             .build());
      * 
-     * ### Allow Health Checks
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getNetblockIPRangesPlain(GetNetblockIPRangesPlainArgs args) { - return getNetblockIPRangesPlain(args, InvokeOptions.Empty); + public static CompletableFuture getNetworkPlain(GetNetworkPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("gcp:compute/getNetwork:getNetwork", TypeShape.of(GetNetworkResult.class), args, Utilities.withVersion(options)); } /** - * Use this data source to get the IP addresses from different special IP ranges on Google Cloud Platform. + * Use this data source to access a Network Endpoint Group's attributes. + * + * The NEG may be found by providing either a `self_link`, or a `name` and a `zone`. * * ## Example Usage * - * ### Cloud Ranges + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
      * 
-     * ### Allow Health Checks
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetNetworkEndpointGroupArgs;
+     * 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 static Output getNetblockIPRanges(GetNetblockIPRangesArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invoke("gcp:compute/getNetblockIPRanges:getNetblockIPRanges", TypeShape.of(GetNetblockIPRangesResult.class), args, Utilities.withVersion(options));
-    }
-    /**
-     * Use this data source to get the IP addresses from different special IP ranges on Google Cloud Platform.
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
      * 
-     * ## Example Usage
+     *     public static void stack(Context ctx) {
+     *         final var neg1 = ComputeFunctions.getNetworkEndpointGroup(GetNetworkEndpointGroupArgs.builder()
+     *             .name("k8s1-abcdef01-myns-mysvc-8080-4b6bac43")
+     *             .zone("us-central1-a")
+     *             .build());
      * 
-     * ### Cloud Ranges
+     *         final var neg2 = ComputeFunctions.getNetworkEndpointGroup(GetNetworkEndpointGroupArgs.builder()
+     *             .selfLink("https://www.googleapis.com/compute/v1/projects/myproject/zones/us-central1-a/networkEndpointGroups/k8s1-abcdef01-myns-mysvc-8080-4b6bac43")
+     *             .build());
      * 
-     * ### Allow Health Checks
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getNetblockIPRangesPlain(GetNetblockIPRangesPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("gcp:compute/getNetblockIPRanges:getNetblockIPRanges", TypeShape.of(GetNetblockIPRangesResult.class), args, Utilities.withVersion(options)); + public static Output getNetworkEndpointGroup() { + return getNetworkEndpointGroup(GetNetworkEndpointGroupArgs.Empty, InvokeOptions.Empty); } /** - * Get a network within GCE from its name. + * Use this data source to access a Network Endpoint Group's attributes. + * + * The NEG may be found by providing either a `self_link`, or a `name` and a `zone`. * * ## Example Usage * - */ - public static Output getNetwork(GetNetworkArgs args) { - return getNetwork(args, InvokeOptions.Empty); - } - /** - * Get a network within GCE from its name. + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
      * 
-     * ## Example Usage
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetNetworkEndpointGroupArgs;
+     * 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 static CompletableFuture getNetworkPlain(GetNetworkPlainArgs args) {
-        return getNetworkPlain(args, InvokeOptions.Empty);
-    }
-    /**
-     * Get a network within GCE from its name.
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
      * 
-     * ## Example Usage
+     *     public static void stack(Context ctx) {
+     *         final var neg1 = ComputeFunctions.getNetworkEndpointGroup(GetNetworkEndpointGroupArgs.builder()
+     *             .name("k8s1-abcdef01-myns-mysvc-8080-4b6bac43")
+     *             .zone("us-central1-a")
+     *             .build());
      * 
-     */
-    public static Output getNetwork(GetNetworkArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invoke("gcp:compute/getNetwork:getNetwork", TypeShape.of(GetNetworkResult.class), args, Utilities.withVersion(options));
-    }
-    /**
-     * Get a network within GCE from its name.
+     *         final var neg2 = ComputeFunctions.getNetworkEndpointGroup(GetNetworkEndpointGroupArgs.builder()
+     *             .selfLink("https://www.googleapis.com/compute/v1/projects/myproject/zones/us-central1-a/networkEndpointGroups/k8s1-abcdef01-myns-mysvc-8080-4b6bac43")
+     *             .build());
      * 
-     * ## Example Usage
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getNetworkPlain(GetNetworkPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("gcp:compute/getNetwork:getNetwork", TypeShape.of(GetNetworkResult.class), args, Utilities.withVersion(options)); + public static CompletableFuture getNetworkEndpointGroupPlain() { + return getNetworkEndpointGroupPlain(GetNetworkEndpointGroupPlainArgs.Empty, InvokeOptions.Empty); } /** * Use this data source to access a Network Endpoint Group's attributes. @@ -4408,8 +6586,8 @@ public static CompletableFuture getNetworkPlain(GetNetworkPlai * <!--End PulumiCodeChooser --> * */ - public static Output getNetworkEndpointGroup() { - return getNetworkEndpointGroup(GetNetworkEndpointGroupArgs.Empty, InvokeOptions.Empty); + public static Output getNetworkEndpointGroup(GetNetworkEndpointGroupArgs args) { + return getNetworkEndpointGroup(args, InvokeOptions.Empty); } /** * Use this data source to access a Network Endpoint Group's attributes. @@ -4457,8 +6635,8 @@ public static Output getNetworkEndpointGroup() { * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getNetworkEndpointGroupPlain() { - return getNetworkEndpointGroupPlain(GetNetworkEndpointGroupPlainArgs.Empty, InvokeOptions.Empty); + public static CompletableFuture getNetworkEndpointGroupPlain(GetNetworkEndpointGroupPlainArgs args) { + return getNetworkEndpointGroupPlain(args, InvokeOptions.Empty); } /** * Use this data source to access a Network Endpoint Group's attributes. @@ -4506,8 +6684,8 @@ public static CompletableFuture getNetworkEndpoin * <!--End PulumiCodeChooser --> * */ - public static Output getNetworkEndpointGroup(GetNetworkEndpointGroupArgs args) { - return getNetworkEndpointGroup(args, InvokeOptions.Empty); + public static Output getNetworkEndpointGroup(GetNetworkEndpointGroupArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getNetworkEndpointGroup:getNetworkEndpointGroup", TypeShape.of(GetNetworkEndpointGroupResult.class), args, Utilities.withVersion(options)); } /** * Use this data source to access a Network Endpoint Group's attributes. @@ -4555,13 +6733,14 @@ public static Output getNetworkEndpointGroup(GetN * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getNetworkEndpointGroupPlain(GetNetworkEndpointGroupPlainArgs args) { - return getNetworkEndpointGroupPlain(args, InvokeOptions.Empty); + public static CompletableFuture getNetworkEndpointGroupPlain(GetNetworkEndpointGroupPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("gcp:compute/getNetworkEndpointGroup:getNetworkEndpointGroup", TypeShape.of(GetNetworkEndpointGroupResult.class), args, Utilities.withVersion(options)); } /** - * Use this data source to access a Network Endpoint Group's attributes. - * - * The NEG may be found by providing either a `self_link`, or a `name` and a `zone`. + * Get information of a specified compute network peering. For more information see + * [the official documentation](https://cloud.google.com/compute/docs/vpc/vpc-peering) + * and + * [API](https://cloud.google.com/compute/docs/reference/latest/networks). * * ## Example Usage * @@ -4573,8 +6752,12 @@ public static CompletableFuture getNetworkEndpoin * import com.pulumi.Context; * import com.pulumi.Pulumi; * import com.pulumi.core.Output; + * import com.pulumi.gcp.compute.Network; + * import com.pulumi.gcp.compute.NetworkArgs; + * import com.pulumi.gcp.compute.NetworkPeering; + * import com.pulumi.gcp.compute.NetworkPeeringArgs; * import com.pulumi.gcp.compute.ComputeFunctions; - * import com.pulumi.gcp.compute.inputs.GetNetworkEndpointGroupArgs; + * import com.pulumi.gcp.compute.inputs.GetNetworkPeeringArgs; * import java.util.List; * import java.util.ArrayList; * import java.util.Map; @@ -4588,13 +6771,31 @@ public static CompletableFuture getNetworkEndpoin * } * * public static void stack(Context ctx) { - * final var neg1 = ComputeFunctions.getNetworkEndpointGroup(GetNetworkEndpointGroupArgs.builder() - * .name("k8s1-abcdef01-myns-mysvc-8080-4b6bac43") - * .zone("us-central1-a") + * var default_ = new Network("default", NetworkArgs.builder() + * .name("foobar") + * .autoCreateSubnetworks("false") * .build()); * - * final var neg2 = ComputeFunctions.getNetworkEndpointGroup(GetNetworkEndpointGroupArgs.builder() - * .selfLink("https://www.googleapis.com/compute/v1/projects/myproject/zones/us-central1-a/networkEndpointGroups/k8s1-abcdef01-myns-mysvc-8080-4b6bac43") + * var other = new Network("other", NetworkArgs.builder() + * .name("other") + * .autoCreateSubnetworks("false") + * .build()); + * + * var peering1 = new NetworkPeering("peering1", NetworkPeeringArgs.builder() + * .name("peering1") + * .network(default_.selfLink()) + * .peerNetwork(other.selfLink()) + * .build()); + * + * var peering2 = new NetworkPeering("peering2", NetworkPeeringArgs.builder() + * .name("peering2") + * .network(other.selfLink()) + * .peerNetwork(default_.selfLink()) + * .build()); + * + * final var peering1Ds = ComputeFunctions.getNetworkPeering(GetNetworkPeeringArgs.builder() + * .name(peering1.name()) + * .network(peering1.network()) * .build()); * * } @@ -4604,13 +6805,14 @@ public static CompletableFuture getNetworkEndpoin * <!--End PulumiCodeChooser --> * */ - public static Output getNetworkEndpointGroup(GetNetworkEndpointGroupArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("gcp:compute/getNetworkEndpointGroup:getNetworkEndpointGroup", TypeShape.of(GetNetworkEndpointGroupResult.class), args, Utilities.withVersion(options)); + public static Output getNetworkPeering(GetNetworkPeeringArgs args) { + return getNetworkPeering(args, InvokeOptions.Empty); } /** - * Use this data source to access a Network Endpoint Group's attributes. - * - * The NEG may be found by providing either a `self_link`, or a `name` and a `zone`. + * Get information of a specified compute network peering. For more information see + * [the official documentation](https://cloud.google.com/compute/docs/vpc/vpc-peering) + * and + * [API](https://cloud.google.com/compute/docs/reference/latest/networks). * * ## Example Usage * @@ -4622,8 +6824,12 @@ public static Output getNetworkEndpointGroup(GetN * import com.pulumi.Context; * import com.pulumi.Pulumi; * import com.pulumi.core.Output; + * import com.pulumi.gcp.compute.Network; + * import com.pulumi.gcp.compute.NetworkArgs; + * import com.pulumi.gcp.compute.NetworkPeering; + * import com.pulumi.gcp.compute.NetworkPeeringArgs; * import com.pulumi.gcp.compute.ComputeFunctions; - * import com.pulumi.gcp.compute.inputs.GetNetworkEndpointGroupArgs; + * import com.pulumi.gcp.compute.inputs.GetNetworkPeeringArgs; * import java.util.List; * import java.util.ArrayList; * import java.util.Map; @@ -4637,13 +6843,31 @@ public static Output getNetworkEndpointGroup(GetN * } * * public static void stack(Context ctx) { - * final var neg1 = ComputeFunctions.getNetworkEndpointGroup(GetNetworkEndpointGroupArgs.builder() - * .name("k8s1-abcdef01-myns-mysvc-8080-4b6bac43") - * .zone("us-central1-a") + * var default_ = new Network("default", NetworkArgs.builder() + * .name("foobar") + * .autoCreateSubnetworks("false") * .build()); * - * final var neg2 = ComputeFunctions.getNetworkEndpointGroup(GetNetworkEndpointGroupArgs.builder() - * .selfLink("https://www.googleapis.com/compute/v1/projects/myproject/zones/us-central1-a/networkEndpointGroups/k8s1-abcdef01-myns-mysvc-8080-4b6bac43") + * var other = new Network("other", NetworkArgs.builder() + * .name("other") + * .autoCreateSubnetworks("false") + * .build()); + * + * var peering1 = new NetworkPeering("peering1", NetworkPeeringArgs.builder() + * .name("peering1") + * .network(default_.selfLink()) + * .peerNetwork(other.selfLink()) + * .build()); + * + * var peering2 = new NetworkPeering("peering2", NetworkPeeringArgs.builder() + * .name("peering2") + * .network(other.selfLink()) + * .peerNetwork(default_.selfLink()) + * .build()); + * + * final var peering1Ds = ComputeFunctions.getNetworkPeering(GetNetworkPeeringArgs.builder() + * .name(peering1.name()) + * .network(peering1.network()) * .build()); * * } @@ -4653,8 +6877,8 @@ public static Output getNetworkEndpointGroup(GetN * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getNetworkEndpointGroupPlain(GetNetworkEndpointGroupPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("gcp:compute/getNetworkEndpointGroup:getNetworkEndpointGroup", TypeShape.of(GetNetworkEndpointGroupResult.class), args, Utilities.withVersion(options)); + public static CompletableFuture getNetworkPeeringPlain(GetNetworkPeeringPlainArgs args) { + return getNetworkPeeringPlain(args, InvokeOptions.Empty); } /** * Get information of a specified compute network peering. For more information see @@ -4725,8 +6949,8 @@ public static CompletableFuture getNetworkEndpoin * <!--End PulumiCodeChooser --> * */ - public static Output getNetworkPeering(GetNetworkPeeringArgs args) { - return getNetworkPeering(args, InvokeOptions.Empty); + public static Output getNetworkPeering(GetNetworkPeeringArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getNetworkPeering:getNetworkPeering", TypeShape.of(GetNetworkPeeringResult.class), args, Utilities.withVersion(options)); } /** * Get information of a specified compute network peering. For more information see @@ -4797,14 +7021,137 @@ public static Output getNetworkPeering(GetNetworkPeerin * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getNetworkPeeringPlain(GetNetworkPeeringPlainArgs args) { - return getNetworkPeeringPlain(args, InvokeOptions.Empty); + public static CompletableFuture getNetworkPeeringPlain(GetNetworkPeeringPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("gcp:compute/getNetworkPeering:getNetworkPeering", TypeShape.of(GetNetworkPeeringResult.class), args, Utilities.withVersion(options)); } /** - * Get information of a specified compute network peering. For more information see - * [the official documentation](https://cloud.google.com/compute/docs/vpc/vpc-peering) - * and - * [API](https://cloud.google.com/compute/docs/reference/latest/networks). + * List all networks in a specified Google Cloud project. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetNetworksArgs;
+     * 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) {
+     *         final var my-networks = ComputeFunctions.getNetworks(GetNetworksArgs.builder()
+     *             .project("my-cloud-project")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getNetworks() { + return getNetworks(GetNetworksArgs.Empty, InvokeOptions.Empty); + } + /** + * List all networks in a specified Google Cloud project. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetNetworksArgs;
+     * 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) {
+     *         final var my-networks = ComputeFunctions.getNetworks(GetNetworksArgs.builder()
+     *             .project("my-cloud-project")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getNetworksPlain() { + return getNetworksPlain(GetNetworksPlainArgs.Empty, InvokeOptions.Empty); + } + /** + * List all networks in a specified Google Cloud project. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetNetworksArgs;
+     * 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) {
+     *         final var my-networks = ComputeFunctions.getNetworks(GetNetworksArgs.builder()
+     *             .project("my-cloud-project")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getNetworks(GetNetworksArgs args) { + return getNetworks(args, InvokeOptions.Empty); + } + /** + * List all networks in a specified Google Cloud project. * * ## Example Usage * @@ -4816,12 +7163,8 @@ public static CompletableFuture getNetworkPeeringPlain( * import com.pulumi.Context; * import com.pulumi.Pulumi; * import com.pulumi.core.Output; - * import com.pulumi.gcp.compute.Network; - * import com.pulumi.gcp.compute.NetworkArgs; - * import com.pulumi.gcp.compute.NetworkPeering; - * import com.pulumi.gcp.compute.NetworkPeeringArgs; * import com.pulumi.gcp.compute.ComputeFunctions; - * import com.pulumi.gcp.compute.inputs.GetNetworkPeeringArgs; + * import com.pulumi.gcp.compute.inputs.GetNetworksArgs; * import java.util.List; * import java.util.ArrayList; * import java.util.Map; @@ -4835,31 +7178,8 @@ public static CompletableFuture getNetworkPeeringPlain( * } * * public static void stack(Context ctx) { - * var default_ = new Network("default", NetworkArgs.builder() - * .name("foobar") - * .autoCreateSubnetworks("false") - * .build()); - * - * var other = new Network("other", NetworkArgs.builder() - * .name("other") - * .autoCreateSubnetworks("false") - * .build()); - * - * var peering1 = new NetworkPeering("peering1", NetworkPeeringArgs.builder() - * .name("peering1") - * .network(default_.selfLink()) - * .peerNetwork(other.selfLink()) - * .build()); - * - * var peering2 = new NetworkPeering("peering2", NetworkPeeringArgs.builder() - * .name("peering2") - * .network(other.selfLink()) - * .peerNetwork(default_.selfLink()) - * .build()); - * - * final var peering1Ds = ComputeFunctions.getNetworkPeering(GetNetworkPeeringArgs.builder() - * .name(peering1.name()) - * .network(peering1.network()) + * final var my-networks = ComputeFunctions.getNetworks(GetNetworksArgs.builder() + * .project("my-cloud-project") * .build()); * * } @@ -4869,14 +7189,11 @@ public static CompletableFuture getNetworkPeeringPlain( * <!--End PulumiCodeChooser --> * */ - public static Output getNetworkPeering(GetNetworkPeeringArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("gcp:compute/getNetworkPeering:getNetworkPeering", TypeShape.of(GetNetworkPeeringResult.class), args, Utilities.withVersion(options)); + public static CompletableFuture getNetworksPlain(GetNetworksPlainArgs args) { + return getNetworksPlain(args, InvokeOptions.Empty); } /** - * Get information of a specified compute network peering. For more information see - * [the official documentation](https://cloud.google.com/compute/docs/vpc/vpc-peering) - * and - * [API](https://cloud.google.com/compute/docs/reference/latest/networks). + * List all networks in a specified Google Cloud project. * * ## Example Usage * @@ -4888,12 +7205,8 @@ public static Output getNetworkPeering(GetNetworkPeerin * import com.pulumi.Context; * import com.pulumi.Pulumi; * import com.pulumi.core.Output; - * import com.pulumi.gcp.compute.Network; - * import com.pulumi.gcp.compute.NetworkArgs; - * import com.pulumi.gcp.compute.NetworkPeering; - * import com.pulumi.gcp.compute.NetworkPeeringArgs; * import com.pulumi.gcp.compute.ComputeFunctions; - * import com.pulumi.gcp.compute.inputs.GetNetworkPeeringArgs; + * import com.pulumi.gcp.compute.inputs.GetNetworksArgs; * import java.util.List; * import java.util.ArrayList; * import java.util.Map; @@ -4907,31 +7220,8 @@ public static Output getNetworkPeering(GetNetworkPeerin * } * * public static void stack(Context ctx) { - * var default_ = new Network("default", NetworkArgs.builder() - * .name("foobar") - * .autoCreateSubnetworks("false") - * .build()); - * - * var other = new Network("other", NetworkArgs.builder() - * .name("other") - * .autoCreateSubnetworks("false") - * .build()); - * - * var peering1 = new NetworkPeering("peering1", NetworkPeeringArgs.builder() - * .name("peering1") - * .network(default_.selfLink()) - * .peerNetwork(other.selfLink()) - * .build()); - * - * var peering2 = new NetworkPeering("peering2", NetworkPeeringArgs.builder() - * .name("peering2") - * .network(other.selfLink()) - * .peerNetwork(default_.selfLink()) - * .build()); - * - * final var peering1Ds = ComputeFunctions.getNetworkPeering(GetNetworkPeeringArgs.builder() - * .name(peering1.name()) - * .network(peering1.network()) + * final var my-networks = ComputeFunctions.getNetworks(GetNetworksArgs.builder() + * .project("my-cloud-project") * .build()); * * } @@ -4941,58 +7231,46 @@ public static Output getNetworkPeering(GetNetworkPeerin * <!--End PulumiCodeChooser --> * */ - public static CompletableFuture getNetworkPeeringPlain(GetNetworkPeeringPlainArgs args, InvokeOptions options) { - return Deployment.getInstance().invokeAsync("gcp:compute/getNetworkPeering:getNetworkPeering", TypeShape.of(GetNetworkPeeringResult.class), args, Utilities.withVersion(options)); - } - /** - * List all networks in a specified Google Cloud project. - * - * ## Example Usage - * - */ - public static Output getNetworks() { - return getNetworks(GetNetworksArgs.Empty, InvokeOptions.Empty); - } - /** - * List all networks in a specified Google Cloud project. - * - * ## Example Usage - * - */ - public static CompletableFuture getNetworksPlain() { - return getNetworksPlain(GetNetworksPlainArgs.Empty, InvokeOptions.Empty); + public static Output getNetworks(GetNetworksArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getNetworks:getNetworks", TypeShape.of(GetNetworksResult.class), args, Utilities.withVersion(options)); } /** * List all networks in a specified Google Cloud project. * * ## Example Usage * - */ - public static Output getNetworks(GetNetworksArgs args) { - return getNetworks(args, InvokeOptions.Empty); - } - /** - * List all networks in a specified Google Cloud project. - * - * ## Example Usage + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
      * 
-     */
-    public static CompletableFuture getNetworksPlain(GetNetworksPlainArgs args) {
-        return getNetworksPlain(args, InvokeOptions.Empty);
-    }
-    /**
-     * List all networks in a specified Google Cloud project.
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetNetworksArgs;
+     * 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;
      * 
-     * ## Example Usage
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
      * 
-     */
-    public static Output getNetworks(GetNetworksArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invoke("gcp:compute/getNetworks:getNetworks", TypeShape.of(GetNetworksResult.class), args, Utilities.withVersion(options));
-    }
-    /**
-     * List all networks in a specified Google Cloud project.
+     *     public static void stack(Context ctx) {
+     *         final var my-networks = ComputeFunctions.getNetworks(GetNetworksArgs.builder()
+     *             .project("my-cloud-project")
+     *             .build());
      * 
-     * ## Example Usage
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> * */ public static CompletableFuture getNetworksPlain(GetNetworksPlainArgs args, InvokeOptions options) { @@ -6601,6 +8879,42 @@ public static CompletableFuture getRegionNe * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetRegionSslCertificateArgs;
+     * 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) {
+     *         final var myCert = ComputeFunctions.getRegionSslCertificate(GetRegionSslCertificateArgs.builder()
+     *             .name("my-cert")
+     *             .build());
+     * 
+     *         ctx.export("certificate", myCert.applyValue(getRegionSslCertificateResult -> getRegionSslCertificateResult.certificate()));
+     *         ctx.export("certificateId", myCert.applyValue(getRegionSslCertificateResult -> getRegionSslCertificateResult.certificateId()));
+     *         ctx.export("selfLink", myCert.applyValue(getRegionSslCertificateResult -> getRegionSslCertificateResult.selfLink()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static Output getRegionSslCertificate(GetRegionSslCertificateArgs args) { return getRegionSslCertificate(args, InvokeOptions.Empty); @@ -6610,6 +8924,42 @@ public static Output getRegionSslCertificate(GetR * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetRegionSslCertificateArgs;
+     * 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) {
+     *         final var myCert = ComputeFunctions.getRegionSslCertificate(GetRegionSslCertificateArgs.builder()
+     *             .name("my-cert")
+     *             .build());
+     * 
+     *         ctx.export("certificate", myCert.applyValue(getRegionSslCertificateResult -> getRegionSslCertificateResult.certificate()));
+     *         ctx.export("certificateId", myCert.applyValue(getRegionSslCertificateResult -> getRegionSslCertificateResult.certificateId()));
+     *         ctx.export("selfLink", myCert.applyValue(getRegionSslCertificateResult -> getRegionSslCertificateResult.selfLink()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static CompletableFuture getRegionSslCertificatePlain(GetRegionSslCertificatePlainArgs args) { return getRegionSslCertificatePlain(args, InvokeOptions.Empty); @@ -6619,14 +8969,86 @@ public static CompletableFuture getRegionSslCerti * * ## Example Usage * - */ - public static Output getRegionSslCertificate(GetRegionSslCertificateArgs args, InvokeOptions options) { - return Deployment.getInstance().invoke("gcp:compute/getRegionSslCertificate:getRegionSslCertificate", TypeShape.of(GetRegionSslCertificateResult.class), args, Utilities.withVersion(options)); - } - /** - * Get info about a Region Google Compute SSL Certificate from its name. + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetRegionSslCertificateArgs;
+     * 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) {
+     *         final var myCert = ComputeFunctions.getRegionSslCertificate(GetRegionSslCertificateArgs.builder()
+     *             .name("my-cert")
+     *             .build());
+     * 
+     *         ctx.export("certificate", myCert.applyValue(getRegionSslCertificateResult -> getRegionSslCertificateResult.certificate()));
+     *         ctx.export("certificateId", myCert.applyValue(getRegionSslCertificateResult -> getRegionSslCertificateResult.certificateId()));
+     *         ctx.export("selfLink", myCert.applyValue(getRegionSslCertificateResult -> getRegionSslCertificateResult.selfLink()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getRegionSslCertificate(GetRegionSslCertificateArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("gcp:compute/getRegionSslCertificate:getRegionSslCertificate", TypeShape.of(GetRegionSslCertificateResult.class), args, Utilities.withVersion(options)); + } + /** + * Get info about a Region Google Compute SSL Certificate from its name. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetRegionSslCertificateArgs;
+     * 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) {
+     *         final var myCert = ComputeFunctions.getRegionSslCertificate(GetRegionSslCertificateArgs.builder()
+     *             .name("my-cert")
+     *             .build());
      * 
-     * ## Example Usage
+     *         ctx.export("certificate", myCert.applyValue(getRegionSslCertificateResult -> getRegionSslCertificateResult.certificate()));
+     *         ctx.export("certificateId", myCert.applyValue(getRegionSslCertificateResult -> getRegionSslCertificateResult.certificateId()));
+     *         ctx.export("selfLink", myCert.applyValue(getRegionSslCertificateResult -> getRegionSslCertificateResult.selfLink()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> * */ public static CompletableFuture getRegionSslCertificatePlain(GetRegionSslCertificatePlainArgs args, InvokeOptions options) { @@ -7830,6 +10252,39 @@ public static CompletableFuture getRouterStatusPlain(GetR * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetSSLPolicyArgs;
+     * 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) {
+     *         final var my-ssl-policy = ComputeFunctions.getSSLPolicy(GetSSLPolicyArgs.builder()
+     *             .name("production-ssl-policy")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static Output getSSLPolicy(GetSSLPolicyArgs args) { return getSSLPolicy(args, InvokeOptions.Empty); @@ -7840,6 +10295,39 @@ public static Output getSSLPolicy(GetSSLPolicyArgs args) { * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetSSLPolicyArgs;
+     * 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) {
+     *         final var my-ssl-policy = ComputeFunctions.getSSLPolicy(GetSSLPolicyArgs.builder()
+     *             .name("production-ssl-policy")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static CompletableFuture getSSLPolicyPlain(GetSSLPolicyPlainArgs args) { return getSSLPolicyPlain(args, InvokeOptions.Empty); @@ -7850,6 +10338,39 @@ public static CompletableFuture getSSLPolicyPlain(GetSSLPoli * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetSSLPolicyArgs;
+     * 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) {
+     *         final var my-ssl-policy = ComputeFunctions.getSSLPolicy(GetSSLPolicyArgs.builder()
+     *             .name("production-ssl-policy")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static Output getSSLPolicy(GetSSLPolicyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:compute/getSSLPolicy:getSSLPolicy", TypeShape.of(GetSSLPolicyResult.class), args, Utilities.withVersion(options)); @@ -7860,6 +10381,39 @@ public static Output getSSLPolicy(GetSSLPolicyArgs args, Inv * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetSSLPolicyArgs;
+     * 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) {
+     *         final var my-ssl-policy = ComputeFunctions.getSSLPolicy(GetSSLPolicyArgs.builder()
+     *             .name("production-ssl-policy")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static CompletableFuture getSSLPolicyPlain(GetSSLPolicyPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("gcp:compute/getSSLPolicy:getSSLPolicy", TypeShape.of(GetSSLPolicyResult.class), args, Utilities.withVersion(options)); @@ -9375,6 +11929,39 @@ public static CompletableFuture getSubnetworksPlain(GetSub * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetVPNGatewayArgs;
+     * 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) {
+     *         final var my-vpn-gateway = ComputeFunctions.getVPNGateway(GetVPNGatewayArgs.builder()
+     *             .name("vpn-gateway-us-east1")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static Output getVPNGateway(GetVPNGatewayArgs args) { return getVPNGateway(args, InvokeOptions.Empty); @@ -9384,6 +11971,39 @@ public static Output getVPNGateway(GetVPNGatewayArgs args) * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetVPNGatewayArgs;
+     * 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) {
+     *         final var my-vpn-gateway = ComputeFunctions.getVPNGateway(GetVPNGatewayArgs.builder()
+     *             .name("vpn-gateway-us-east1")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static CompletableFuture getVPNGatewayPlain(GetVPNGatewayPlainArgs args) { return getVPNGatewayPlain(args, InvokeOptions.Empty); @@ -9393,6 +12013,39 @@ public static CompletableFuture getVPNGatewayPlain(GetVPNGa * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetVPNGatewayArgs;
+     * 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) {
+     *         final var my-vpn-gateway = ComputeFunctions.getVPNGateway(GetVPNGatewayArgs.builder()
+     *             .name("vpn-gateway-us-east1")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static Output getVPNGateway(GetVPNGatewayArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:compute/getVPNGateway:getVPNGateway", TypeShape.of(GetVPNGatewayResult.class), args, Utilities.withVersion(options)); @@ -9402,6 +12055,39 @@ public static Output getVPNGateway(GetVPNGatewayArgs args, * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.compute.ComputeFunctions;
+     * import com.pulumi.gcp.compute.inputs.GetVPNGatewayArgs;
+     * 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) {
+     *         final var my-vpn-gateway = ComputeFunctions.getVPNGateway(GetVPNGatewayArgs.builder()
+     *             .name("vpn-gateway-us-east1")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static CompletableFuture getVPNGatewayPlain(GetVPNGatewayPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("gcp:compute/getVPNGateway:getVPNGateway", TypeShape.of(GetVPNGatewayResult.class), args, Utilities.withVersion(options)); diff --git a/sdk/java/src/main/java/com/pulumi/gcp/compute/DiskAsyncReplication.java b/sdk/java/src/main/java/com/pulumi/gcp/compute/DiskAsyncReplication.java index c595c66e27..e47e0d6d03 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/compute/DiskAsyncReplication.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/compute/DiskAsyncReplication.java @@ -21,6 +21,63 @@ * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+ * {@code
+ * package generated_program;
+ * 
+ * import com.pulumi.Context;
+ * import com.pulumi.Pulumi;
+ * import com.pulumi.core.Output;
+ * import com.pulumi.gcp.compute.Disk;
+ * import com.pulumi.gcp.compute.DiskArgs;
+ * import com.pulumi.gcp.compute.inputs.DiskAsyncPrimaryDiskArgs;
+ * import com.pulumi.gcp.compute.DiskAsyncReplication;
+ * import com.pulumi.gcp.compute.DiskAsyncReplicationArgs;
+ * import com.pulumi.gcp.compute.inputs.DiskAsyncReplicationSecondaryDiskArgs;
+ * 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 primary_disk = new Disk("primary-disk", DiskArgs.builder()
+ *             .name("primary-disk")
+ *             .type("pd-ssd")
+ *             .zone("europe-west4-a")
+ *             .physicalBlockSizeBytes(4096)
+ *             .build());
+ * 
+ *         var secondary_disk = new Disk("secondary-disk", DiskArgs.builder()
+ *             .name("secondary-disk")
+ *             .type("pd-ssd")
+ *             .zone("europe-west3-a")
+ *             .asyncPrimaryDisk(DiskAsyncPrimaryDiskArgs.builder()
+ *                 .disk(primary_disk.id())
+ *                 .build())
+ *             .physicalBlockSizeBytes(4096)
+ *             .build());
+ * 
+ *         var replication = new DiskAsyncReplication("replication", DiskAsyncReplicationArgs.builder()
+ *             .primaryDisk(primary_disk.id())
+ *             .secondaryDisk(DiskAsyncReplicationSecondaryDiskArgs.builder()
+ *                 .disk(secondary_disk.id())
+ *                 .build())
+ *             .build());
+ * 
+ *     }
+ * }
+ * }
+ * 
+ * <!--End PulumiCodeChooser --> + * */ @ResourceType(type="gcp:compute/diskAsyncReplication:DiskAsyncReplication") public class DiskAsyncReplication extends com.pulumi.resources.CustomResource { diff --git a/sdk/java/src/main/java/com/pulumi/gcp/compute/InstanceTemplate.java b/sdk/java/src/main/java/com/pulumi/gcp/compute/InstanceTemplate.java index 3d2de32e79..ff95988a94 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/compute/InstanceTemplate.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/compute/InstanceTemplate.java @@ -271,10 +271,95 @@ * data source, which will retrieve the latest image on every `pulumi apply`, and will update * the template to use that specific image: * + * <!--Start PulumiCodeChooser --> + *
+ * {@code
+ * package generated_program;
+ * 
+ * import com.pulumi.Context;
+ * import com.pulumi.Pulumi;
+ * import com.pulumi.core.Output;
+ * import com.pulumi.gcp.compute.ComputeFunctions;
+ * import com.pulumi.gcp.compute.inputs.GetImageArgs;
+ * import com.pulumi.gcp.compute.InstanceTemplate;
+ * import com.pulumi.gcp.compute.InstanceTemplateArgs;
+ * import com.pulumi.gcp.compute.inputs.InstanceTemplateDiskArgs;
+ * 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) {
+ *         final var myImage = ComputeFunctions.getImage(GetImageArgs.builder()
+ *             .family("debian-11")
+ *             .project("debian-cloud")
+ *             .build());
+ * 
+ *         var instanceTemplate = new InstanceTemplate("instanceTemplate", InstanceTemplateArgs.builder()
+ *             .namePrefix("instance-template-")
+ *             .machineType("e2-medium")
+ *             .region("us-central1")
+ *             .disks(InstanceTemplateDiskArgs.builder()
+ *                 .sourceImage(myImage.applyValue(getImageResult -> getImageResult.selfLink()))
+ *                 .build())
+ *             .build());
+ * 
+ *     }
+ * }
+ * }
+ * 
+ * <!--End PulumiCodeChooser --> + * * To have instances update to the latest on every scaling event or instance re-creation, * use the family as the image for the disk, and it will use GCP's default behavior, setting * the image for the template to the family: * + * <!--Start PulumiCodeChooser --> + *
+ * {@code
+ * package generated_program;
+ * 
+ * import com.pulumi.Context;
+ * import com.pulumi.Pulumi;
+ * import com.pulumi.core.Output;
+ * import com.pulumi.gcp.compute.InstanceTemplate;
+ * import com.pulumi.gcp.compute.InstanceTemplateArgs;
+ * import com.pulumi.gcp.compute.inputs.InstanceTemplateDiskArgs;
+ * 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 instanceTemplate = new InstanceTemplate("instanceTemplate", InstanceTemplateArgs.builder()
+ *             .namePrefix("instance-template-")
+ *             .machineType("e2-medium")
+ *             .region("us-central1")
+ *             .disks(InstanceTemplateDiskArgs.builder()
+ *                 .sourceImage("debian-cloud/debian-11")
+ *                 .build())
+ *             .build());
+ * 
+ *     }
+ * }
+ * }
+ * 
+ * <!--End PulumiCodeChooser --> + * * ## Import * * Instance templates can be imported using any of these accepted formats: diff --git a/sdk/java/src/main/java/com/pulumi/gcp/container/ContainerFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/container/ContainerFunctions.java index b6fda2c2bf..443dc29496 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/container/ContainerFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/container/ContainerFunctions.java @@ -928,6 +928,44 @@ public static CompletableFuture getAzureVersionsPlain(Ge * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.container.ContainerFunctions;
+     * import com.pulumi.gcp.container.inputs.GetClusterArgs;
+     * 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) {
+     *         final var myCluster = ContainerFunctions.getCluster(GetClusterArgs.builder()
+     *             .name("my-cluster")
+     *             .location("us-east1-a")
+     *             .build());
+     * 
+     *         ctx.export("endpoint", myCluster.applyValue(getClusterResult -> getClusterResult.endpoint()));
+     *         ctx.export("instanceGroupUrls", myCluster.applyValue(getClusterResult -> getClusterResult.nodePools()[0].instanceGroupUrls()));
+     *         ctx.export("nodeConfig", myCluster.applyValue(getClusterResult -> getClusterResult.nodeConfigs()));
+     *         ctx.export("nodePools", myCluster.applyValue(getClusterResult -> getClusterResult.nodePools()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static Output getCluster(GetClusterArgs args) { return getCluster(args, InvokeOptions.Empty); @@ -937,6 +975,44 @@ public static Output getCluster(GetClusterArgs args) { * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.container.ContainerFunctions;
+     * import com.pulumi.gcp.container.inputs.GetClusterArgs;
+     * 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) {
+     *         final var myCluster = ContainerFunctions.getCluster(GetClusterArgs.builder()
+     *             .name("my-cluster")
+     *             .location("us-east1-a")
+     *             .build());
+     * 
+     *         ctx.export("endpoint", myCluster.applyValue(getClusterResult -> getClusterResult.endpoint()));
+     *         ctx.export("instanceGroupUrls", myCluster.applyValue(getClusterResult -> getClusterResult.nodePools()[0].instanceGroupUrls()));
+     *         ctx.export("nodeConfig", myCluster.applyValue(getClusterResult -> getClusterResult.nodeConfigs()));
+     *         ctx.export("nodePools", myCluster.applyValue(getClusterResult -> getClusterResult.nodePools()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static CompletableFuture getClusterPlain(GetClusterPlainArgs args) { return getClusterPlain(args, InvokeOptions.Empty); @@ -946,6 +1022,44 @@ public static CompletableFuture getClusterPlain(GetClusterPlai * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.container.ContainerFunctions;
+     * import com.pulumi.gcp.container.inputs.GetClusterArgs;
+     * 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) {
+     *         final var myCluster = ContainerFunctions.getCluster(GetClusterArgs.builder()
+     *             .name("my-cluster")
+     *             .location("us-east1-a")
+     *             .build());
+     * 
+     *         ctx.export("endpoint", myCluster.applyValue(getClusterResult -> getClusterResult.endpoint()));
+     *         ctx.export("instanceGroupUrls", myCluster.applyValue(getClusterResult -> getClusterResult.nodePools()[0].instanceGroupUrls()));
+     *         ctx.export("nodeConfig", myCluster.applyValue(getClusterResult -> getClusterResult.nodeConfigs()));
+     *         ctx.export("nodePools", myCluster.applyValue(getClusterResult -> getClusterResult.nodePools()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static Output getCluster(GetClusterArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:container/getCluster:getCluster", TypeShape.of(GetClusterResult.class), args, Utilities.withVersion(options)); @@ -955,6 +1069,44 @@ public static Output getCluster(GetClusterArgs args, InvokeOpt * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.container.ContainerFunctions;
+     * import com.pulumi.gcp.container.inputs.GetClusterArgs;
+     * 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) {
+     *         final var myCluster = ContainerFunctions.getCluster(GetClusterArgs.builder()
+     *             .name("my-cluster")
+     *             .location("us-east1-a")
+     *             .build());
+     * 
+     *         ctx.export("endpoint", myCluster.applyValue(getClusterResult -> getClusterResult.endpoint()));
+     *         ctx.export("instanceGroupUrls", myCluster.applyValue(getClusterResult -> getClusterResult.nodePools()[0].instanceGroupUrls()));
+     *         ctx.export("nodeConfig", myCluster.applyValue(getClusterResult -> getClusterResult.nodeConfigs()));
+     *         ctx.export("nodePools", myCluster.applyValue(getClusterResult -> getClusterResult.nodePools()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static CompletableFuture getClusterPlain(GetClusterPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("gcp:container/getCluster:getCluster", TypeShape.of(GetClusterResult.class), args, Utilities.withVersion(options)); diff --git a/sdk/java/src/main/java/com/pulumi/gcp/dataproc/DataprocFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/dataproc/DataprocFunctions.java index 9e512b7a72..da6bc3473e 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/dataproc/DataprocFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/dataproc/DataprocFunctions.java @@ -730,6 +730,40 @@ public static CompletableFuture getMetast * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.dataproc.DataprocFunctions;
+     * import com.pulumi.gcp.dataproc.inputs.GetMetastoreServiceArgs;
+     * 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) {
+     *         final var foo = DataprocFunctions.getMetastoreService(GetMetastoreServiceArgs.builder()
+     *             .serviceId("foo-bar")
+     *             .location("global")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static Output getMetastoreService(GetMetastoreServiceArgs args) { return getMetastoreService(args, InvokeOptions.Empty); @@ -739,6 +773,40 @@ public static Output getMetastoreService(GetMetastore * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.dataproc.DataprocFunctions;
+     * import com.pulumi.gcp.dataproc.inputs.GetMetastoreServiceArgs;
+     * 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) {
+     *         final var foo = DataprocFunctions.getMetastoreService(GetMetastoreServiceArgs.builder()
+     *             .serviceId("foo-bar")
+     *             .location("global")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static CompletableFuture getMetastoreServicePlain(GetMetastoreServicePlainArgs args) { return getMetastoreServicePlain(args, InvokeOptions.Empty); @@ -748,6 +816,40 @@ public static CompletableFuture getMetastoreServicePl * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.dataproc.DataprocFunctions;
+     * import com.pulumi.gcp.dataproc.inputs.GetMetastoreServiceArgs;
+     * 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) {
+     *         final var foo = DataprocFunctions.getMetastoreService(GetMetastoreServiceArgs.builder()
+     *             .serviceId("foo-bar")
+     *             .location("global")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static Output getMetastoreService(GetMetastoreServiceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:dataproc/getMetastoreService:getMetastoreService", TypeShape.of(GetMetastoreServiceResult.class), args, Utilities.withVersion(options)); @@ -757,6 +859,40 @@ public static Output getMetastoreService(GetMetastore * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.dataproc.DataprocFunctions;
+     * import com.pulumi.gcp.dataproc.inputs.GetMetastoreServiceArgs;
+     * 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) {
+     *         final var foo = DataprocFunctions.getMetastoreService(GetMetastoreServiceArgs.builder()
+     *             .serviceId("foo-bar")
+     *             .location("global")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static CompletableFuture getMetastoreServicePlain(GetMetastoreServicePlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("gcp:dataproc/getMetastoreService:getMetastoreService", TypeShape.of(GetMetastoreServiceResult.class), args, Utilities.withVersion(options)); diff --git a/sdk/java/src/main/java/com/pulumi/gcp/dns/DnsFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/dns/DnsFunctions.java index 00681643d0..859c425036 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/dns/DnsFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/dns/DnsFunctions.java @@ -943,6 +943,46 @@ public static CompletableFuture getManagedZonesPlain(GetM * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.dns.DnsFunctions;
+     * import com.pulumi.gcp.dns.inputs.GetManagedZoneArgs;
+     * import com.pulumi.gcp.dns.inputs.GetRecordSetArgs;
+     * 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) {
+     *         final var sample = DnsFunctions.getManagedZone(GetManagedZoneArgs.builder()
+     *             .name("sample-zone")
+     *             .build());
+     * 
+     *         final var rs = DnsFunctions.getRecordSet(GetRecordSetArgs.builder()
+     *             .managedZone(sample.applyValue(getManagedZoneResult -> getManagedZoneResult.name()))
+     *             .name(String.format("my-record.%s", sample.applyValue(getManagedZoneResult -> getManagedZoneResult.dnsName())))
+     *             .type("A")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static Output getRecordSet(GetRecordSetArgs args) { return getRecordSet(args, InvokeOptions.Empty); @@ -956,6 +996,46 @@ public static Output getRecordSet(GetRecordSetArgs args) { * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.dns.DnsFunctions;
+     * import com.pulumi.gcp.dns.inputs.GetManagedZoneArgs;
+     * import com.pulumi.gcp.dns.inputs.GetRecordSetArgs;
+     * 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) {
+     *         final var sample = DnsFunctions.getManagedZone(GetManagedZoneArgs.builder()
+     *             .name("sample-zone")
+     *             .build());
+     * 
+     *         final var rs = DnsFunctions.getRecordSet(GetRecordSetArgs.builder()
+     *             .managedZone(sample.applyValue(getManagedZoneResult -> getManagedZoneResult.name()))
+     *             .name(String.format("my-record.%s", sample.applyValue(getManagedZoneResult -> getManagedZoneResult.dnsName())))
+     *             .type("A")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static CompletableFuture getRecordSetPlain(GetRecordSetPlainArgs args) { return getRecordSetPlain(args, InvokeOptions.Empty); @@ -969,6 +1049,46 @@ public static CompletableFuture getRecordSetPlain(GetRecordS * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.dns.DnsFunctions;
+     * import com.pulumi.gcp.dns.inputs.GetManagedZoneArgs;
+     * import com.pulumi.gcp.dns.inputs.GetRecordSetArgs;
+     * 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) {
+     *         final var sample = DnsFunctions.getManagedZone(GetManagedZoneArgs.builder()
+     *             .name("sample-zone")
+     *             .build());
+     * 
+     *         final var rs = DnsFunctions.getRecordSet(GetRecordSetArgs.builder()
+     *             .managedZone(sample.applyValue(getManagedZoneResult -> getManagedZoneResult.name()))
+     *             .name(String.format("my-record.%s", sample.applyValue(getManagedZoneResult -> getManagedZoneResult.dnsName())))
+     *             .type("A")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static Output getRecordSet(GetRecordSetArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:dns/getRecordSet:getRecordSet", TypeShape.of(GetRecordSetResult.class), args, Utilities.withVersion(options)); @@ -982,6 +1102,46 @@ public static Output getRecordSet(GetRecordSetArgs args, Inv * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.dns.DnsFunctions;
+     * import com.pulumi.gcp.dns.inputs.GetManagedZoneArgs;
+     * import com.pulumi.gcp.dns.inputs.GetRecordSetArgs;
+     * 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) {
+     *         final var sample = DnsFunctions.getManagedZone(GetManagedZoneArgs.builder()
+     *             .name("sample-zone")
+     *             .build());
+     * 
+     *         final var rs = DnsFunctions.getRecordSet(GetRecordSetArgs.builder()
+     *             .managedZone(sample.applyValue(getManagedZoneResult -> getManagedZoneResult.name()))
+     *             .name(String.format("my-record.%s", sample.applyValue(getManagedZoneResult -> getManagedZoneResult.dnsName())))
+     *             .type("A")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static CompletableFuture getRecordSetPlain(GetRecordSetPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("gcp:dns/getRecordSet:getRecordSet", TypeShape.of(GetRecordSetResult.class), args, Utilities.withVersion(options)); diff --git a/sdk/java/src/main/java/com/pulumi/gcp/filestore/FilestoreFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/filestore/FilestoreFunctions.java index 163349691e..aae3169593 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/filestore/FilestoreFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/filestore/FilestoreFunctions.java @@ -19,6 +19,42 @@ public final class FilestoreFunctions { * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.filestore.FilestoreFunctions;
+     * import com.pulumi.gcp.filestore.inputs.GetInstanceArgs;
+     * 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) {
+     *         final var myInstance = FilestoreFunctions.getInstance(GetInstanceArgs.builder()
+     *             .name("my-filestore-instance")
+     *             .build());
+     * 
+     *         ctx.export("instanceIpAddresses", myInstance.applyValue(getInstanceResult -> getInstanceResult.networks().ipAddresses()));
+     *         ctx.export("instanceConnectMode", myInstance.applyValue(getInstanceResult -> getInstanceResult.networks().connectMode()));
+     *         ctx.export("instanceFileShareName", myInstance.applyValue(getInstanceResult -> getInstanceResult.fileShares().name()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static Output getInstance(GetInstanceArgs args) { return getInstance(args, InvokeOptions.Empty); @@ -28,6 +64,42 @@ public static Output getInstance(GetInstanceArgs args) { * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.filestore.FilestoreFunctions;
+     * import com.pulumi.gcp.filestore.inputs.GetInstanceArgs;
+     * 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) {
+     *         final var myInstance = FilestoreFunctions.getInstance(GetInstanceArgs.builder()
+     *             .name("my-filestore-instance")
+     *             .build());
+     * 
+     *         ctx.export("instanceIpAddresses", myInstance.applyValue(getInstanceResult -> getInstanceResult.networks().ipAddresses()));
+     *         ctx.export("instanceConnectMode", myInstance.applyValue(getInstanceResult -> getInstanceResult.networks().connectMode()));
+     *         ctx.export("instanceFileShareName", myInstance.applyValue(getInstanceResult -> getInstanceResult.fileShares().name()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static CompletableFuture getInstancePlain(GetInstancePlainArgs args) { return getInstancePlain(args, InvokeOptions.Empty); @@ -37,6 +109,42 @@ public static CompletableFuture getInstancePlain(GetInstanceP * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.filestore.FilestoreFunctions;
+     * import com.pulumi.gcp.filestore.inputs.GetInstanceArgs;
+     * 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) {
+     *         final var myInstance = FilestoreFunctions.getInstance(GetInstanceArgs.builder()
+     *             .name("my-filestore-instance")
+     *             .build());
+     * 
+     *         ctx.export("instanceIpAddresses", myInstance.applyValue(getInstanceResult -> getInstanceResult.networks().ipAddresses()));
+     *         ctx.export("instanceConnectMode", myInstance.applyValue(getInstanceResult -> getInstanceResult.networks().connectMode()));
+     *         ctx.export("instanceFileShareName", myInstance.applyValue(getInstanceResult -> getInstanceResult.fileShares().name()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static Output getInstance(GetInstanceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:filestore/getInstance:getInstance", TypeShape.of(GetInstanceResult.class), args, Utilities.withVersion(options)); @@ -46,6 +154,42 @@ public static Output getInstance(GetInstanceArgs args, Invoke * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.filestore.FilestoreFunctions;
+     * import com.pulumi.gcp.filestore.inputs.GetInstanceArgs;
+     * 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) {
+     *         final var myInstance = FilestoreFunctions.getInstance(GetInstanceArgs.builder()
+     *             .name("my-filestore-instance")
+     *             .build());
+     * 
+     *         ctx.export("instanceIpAddresses", myInstance.applyValue(getInstanceResult -> getInstanceResult.networks().ipAddresses()));
+     *         ctx.export("instanceConnectMode", myInstance.applyValue(getInstanceResult -> getInstanceResult.networks().connectMode()));
+     *         ctx.export("instanceFileShareName", myInstance.applyValue(getInstanceResult -> getInstanceResult.fileShares().name()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static CompletableFuture getInstancePlain(GetInstancePlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("gcp:filestore/getInstance:getInstance", TypeShape.of(GetInstanceResult.class), args, Utilities.withVersion(options)); diff --git a/sdk/java/src/main/java/com/pulumi/gcp/iam/IamFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/iam/IamFunctions.java index 0f058cd845..fd300fc46a 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/iam/IamFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/iam/IamFunctions.java @@ -380,6 +380,39 @@ public static CompletableFuture getTestablePermiss * > **Note:** The following resource requires the Beta IAM role `roles/iam.workloadIdentityPoolAdmin` in order to succeed. `OWNER` and `EDITOR` roles do not include the necessary permissions. * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.iam.IamFunctions;
+     * import com.pulumi.gcp.iam.inputs.GetWorkloadIdentityPoolArgs;
+     * 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) {
+     *         final var foo = IamFunctions.getWorkloadIdentityPool(GetWorkloadIdentityPoolArgs.builder()
+     *             .workloadIdentityPoolId("foo-pool")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static Output getWorkloadIdentityPool(GetWorkloadIdentityPoolArgs args) { return getWorkloadIdentityPool(args, InvokeOptions.Empty); @@ -389,6 +422,39 @@ public static Output getWorkloadIdentityPool(GetW * > **Note:** The following resource requires the Beta IAM role `roles/iam.workloadIdentityPoolAdmin` in order to succeed. `OWNER` and `EDITOR` roles do not include the necessary permissions. * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.iam.IamFunctions;
+     * import com.pulumi.gcp.iam.inputs.GetWorkloadIdentityPoolArgs;
+     * 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) {
+     *         final var foo = IamFunctions.getWorkloadIdentityPool(GetWorkloadIdentityPoolArgs.builder()
+     *             .workloadIdentityPoolId("foo-pool")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static CompletableFuture getWorkloadIdentityPoolPlain(GetWorkloadIdentityPoolPlainArgs args) { return getWorkloadIdentityPoolPlain(args, InvokeOptions.Empty); @@ -398,6 +464,39 @@ public static CompletableFuture getWorkloadIdenti * > **Note:** The following resource requires the Beta IAM role `roles/iam.workloadIdentityPoolAdmin` in order to succeed. `OWNER` and `EDITOR` roles do not include the necessary permissions. * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.iam.IamFunctions;
+     * import com.pulumi.gcp.iam.inputs.GetWorkloadIdentityPoolArgs;
+     * 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) {
+     *         final var foo = IamFunctions.getWorkloadIdentityPool(GetWorkloadIdentityPoolArgs.builder()
+     *             .workloadIdentityPoolId("foo-pool")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static Output getWorkloadIdentityPool(GetWorkloadIdentityPoolArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:iam/getWorkloadIdentityPool:getWorkloadIdentityPool", TypeShape.of(GetWorkloadIdentityPoolResult.class), args, Utilities.withVersion(options)); @@ -407,6 +506,39 @@ public static Output getWorkloadIdentityPool(GetW * > **Note:** The following resource requires the Beta IAM role `roles/iam.workloadIdentityPoolAdmin` in order to succeed. `OWNER` and `EDITOR` roles do not include the necessary permissions. * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.iam.IamFunctions;
+     * import com.pulumi.gcp.iam.inputs.GetWorkloadIdentityPoolArgs;
+     * 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) {
+     *         final var foo = IamFunctions.getWorkloadIdentityPool(GetWorkloadIdentityPoolArgs.builder()
+     *             .workloadIdentityPoolId("foo-pool")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static CompletableFuture getWorkloadIdentityPoolPlain(GetWorkloadIdentityPoolPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("gcp:iam/getWorkloadIdentityPool:getWorkloadIdentityPool", TypeShape.of(GetWorkloadIdentityPoolResult.class), args, Utilities.withVersion(options)); @@ -416,6 +548,40 @@ public static CompletableFuture getWorkloadIdenti * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.iam.IamFunctions;
+     * import com.pulumi.gcp.iam.inputs.GetWorkloadIdentityPoolProviderArgs;
+     * 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) {
+     *         final var foo = IamFunctions.getWorkloadIdentityPoolProvider(GetWorkloadIdentityPoolProviderArgs.builder()
+     *             .workloadIdentityPoolId("foo-pool")
+     *             .workloadIdentityPoolProviderId("bar-provider")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static Output getWorkloadIdentityPoolProvider(GetWorkloadIdentityPoolProviderArgs args) { return getWorkloadIdentityPoolProvider(args, InvokeOptions.Empty); @@ -425,6 +591,40 @@ public static Output getWorkloadIdentityP * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.iam.IamFunctions;
+     * import com.pulumi.gcp.iam.inputs.GetWorkloadIdentityPoolProviderArgs;
+     * 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) {
+     *         final var foo = IamFunctions.getWorkloadIdentityPoolProvider(GetWorkloadIdentityPoolProviderArgs.builder()
+     *             .workloadIdentityPoolId("foo-pool")
+     *             .workloadIdentityPoolProviderId("bar-provider")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static CompletableFuture getWorkloadIdentityPoolProviderPlain(GetWorkloadIdentityPoolProviderPlainArgs args) { return getWorkloadIdentityPoolProviderPlain(args, InvokeOptions.Empty); @@ -434,6 +634,40 @@ public static CompletableFuture getWorklo * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.iam.IamFunctions;
+     * import com.pulumi.gcp.iam.inputs.GetWorkloadIdentityPoolProviderArgs;
+     * 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) {
+     *         final var foo = IamFunctions.getWorkloadIdentityPoolProvider(GetWorkloadIdentityPoolProviderArgs.builder()
+     *             .workloadIdentityPoolId("foo-pool")
+     *             .workloadIdentityPoolProviderId("bar-provider")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static Output getWorkloadIdentityPoolProvider(GetWorkloadIdentityPoolProviderArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:iam/getWorkloadIdentityPoolProvider:getWorkloadIdentityPoolProvider", TypeShape.of(GetWorkloadIdentityPoolProviderResult.class), args, Utilities.withVersion(options)); @@ -443,6 +677,40 @@ public static Output getWorkloadIdentityP * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.iam.IamFunctions;
+     * import com.pulumi.gcp.iam.inputs.GetWorkloadIdentityPoolProviderArgs;
+     * 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) {
+     *         final var foo = IamFunctions.getWorkloadIdentityPoolProvider(GetWorkloadIdentityPoolProviderArgs.builder()
+     *             .workloadIdentityPoolId("foo-pool")
+     *             .workloadIdentityPoolProviderId("bar-provider")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static CompletableFuture getWorkloadIdentityPoolProviderPlain(GetWorkloadIdentityPoolProviderPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("gcp:iam/getWorkloadIdentityPoolProvider:getWorkloadIdentityPoolProvider", TypeShape.of(GetWorkloadIdentityPoolProviderResult.class), args, Utilities.withVersion(options)); diff --git a/sdk/java/src/main/java/com/pulumi/gcp/iap/IapFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/iap/IapFunctions.java index aa25d49ebe..5146119031 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/iap/IapFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/iap/IapFunctions.java @@ -405,6 +405,46 @@ public static CompletableFuture getAppEngine * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.organizations.OrganizationsFunctions;
+     * import com.pulumi.gcp.organizations.inputs.GetProjectArgs;
+     * import com.pulumi.gcp.iap.IapFunctions;
+     * import com.pulumi.gcp.iap.inputs.GetClientArgs;
+     * 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) {
+     *         final var project = OrganizationsFunctions.getProject(GetProjectArgs.builder()
+     *             .projectId("foobar")
+     *             .build());
+     * 
+     *         final var projectClient = IapFunctions.getClient(GetClientArgs.builder()
+     *             .brand(String.format("projects/%s/brands/[BRAND_NUMBER]", project.applyValue(getProjectResult -> getProjectResult.number())))
+     *             .clientId(apps.googleusercontent().com())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static Output getClient(GetClientArgs args) { return getClient(args, InvokeOptions.Empty); @@ -414,6 +454,46 @@ public static Output getClient(GetClientArgs args) { * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.organizations.OrganizationsFunctions;
+     * import com.pulumi.gcp.organizations.inputs.GetProjectArgs;
+     * import com.pulumi.gcp.iap.IapFunctions;
+     * import com.pulumi.gcp.iap.inputs.GetClientArgs;
+     * 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) {
+     *         final var project = OrganizationsFunctions.getProject(GetProjectArgs.builder()
+     *             .projectId("foobar")
+     *             .build());
+     * 
+     *         final var projectClient = IapFunctions.getClient(GetClientArgs.builder()
+     *             .brand(String.format("projects/%s/brands/[BRAND_NUMBER]", project.applyValue(getProjectResult -> getProjectResult.number())))
+     *             .clientId(apps.googleusercontent().com())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static CompletableFuture getClientPlain(GetClientPlainArgs args) { return getClientPlain(args, InvokeOptions.Empty); @@ -423,6 +503,46 @@ public static CompletableFuture getClientPlain(GetClientPlainAr * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.organizations.OrganizationsFunctions;
+     * import com.pulumi.gcp.organizations.inputs.GetProjectArgs;
+     * import com.pulumi.gcp.iap.IapFunctions;
+     * import com.pulumi.gcp.iap.inputs.GetClientArgs;
+     * 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) {
+     *         final var project = OrganizationsFunctions.getProject(GetProjectArgs.builder()
+     *             .projectId("foobar")
+     *             .build());
+     * 
+     *         final var projectClient = IapFunctions.getClient(GetClientArgs.builder()
+     *             .brand(String.format("projects/%s/brands/[BRAND_NUMBER]", project.applyValue(getProjectResult -> getProjectResult.number())))
+     *             .clientId(apps.googleusercontent().com())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static Output getClient(GetClientArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:iap/getClient:getClient", TypeShape.of(GetClientResult.class), args, Utilities.withVersion(options)); @@ -432,6 +552,46 @@ public static Output getClient(GetClientArgs args, InvokeOption * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.organizations.OrganizationsFunctions;
+     * import com.pulumi.gcp.organizations.inputs.GetProjectArgs;
+     * import com.pulumi.gcp.iap.IapFunctions;
+     * import com.pulumi.gcp.iap.inputs.GetClientArgs;
+     * 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) {
+     *         final var project = OrganizationsFunctions.getProject(GetProjectArgs.builder()
+     *             .projectId("foobar")
+     *             .build());
+     * 
+     *         final var projectClient = IapFunctions.getClient(GetClientArgs.builder()
+     *             .brand(String.format("projects/%s/brands/[BRAND_NUMBER]", project.applyValue(getProjectResult -> getProjectResult.number())))
+     *             .clientId(apps.googleusercontent().com())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static CompletableFuture getClientPlain(GetClientPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("gcp:iap/getClient:getClient", TypeShape.of(GetClientResult.class), args, Utilities.withVersion(options)); diff --git a/sdk/java/src/main/java/com/pulumi/gcp/monitoring/MonitoringFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/monitoring/MonitoringFunctions.java index 5b7ecbefc7..ccf58753b2 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/monitoring/MonitoringFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/monitoring/MonitoringFunctions.java @@ -1592,7 +1592,7 @@ public static CompletableFuture getNotificationCha return Deployment.getInstance().invokeAsync("gcp:monitoring/getNotificationChannel:getNotificationChannel", TypeShape.of(GetNotificationChannelResult.class), args, Utilities.withVersion(options)); } /** - * Get the value and metadata from a Secret Manager secret version. For more information see the official documentation datasource. + * Get the value and metadata from a Secret Manager secret version. For more information see the [official documentation](https://cloud.google.com/secret-manager/docs/) and [API](https://cloud.google.com/secret-manager/docs/reference/rest/v1/projects.secrets.versions). If you don't need the metadata (i.e., if you want to use a more limited role to access the secret version only), see also the gcp.secretmanager.getSecretVersionAccess datasource. * * ## Example Usage * @@ -1638,7 +1638,7 @@ public static Output getSecretVersion(GetSecretVersionAr return getSecretVersion(args, InvokeOptions.Empty); } /** - * Get the value and metadata from a Secret Manager secret version. For more information see the official documentation datasource. + * Get the value and metadata from a Secret Manager secret version. For more information see the [official documentation](https://cloud.google.com/secret-manager/docs/) and [API](https://cloud.google.com/secret-manager/docs/reference/rest/v1/projects.secrets.versions). If you don't need the metadata (i.e., if you want to use a more limited role to access the secret version only), see also the gcp.secretmanager.getSecretVersionAccess datasource. * * ## Example Usage * @@ -1684,7 +1684,7 @@ public static CompletableFuture getSecretVersionPlain(Ge return getSecretVersionPlain(args, InvokeOptions.Empty); } /** - * Get the value and metadata from a Secret Manager secret version. For more information see the official documentation datasource. + * Get the value and metadata from a Secret Manager secret version. For more information see the [official documentation](https://cloud.google.com/secret-manager/docs/) and [API](https://cloud.google.com/secret-manager/docs/reference/rest/v1/projects.secrets.versions). If you don't need the metadata (i.e., if you want to use a more limited role to access the secret version only), see also the gcp.secretmanager.getSecretVersionAccess datasource. * * ## Example Usage * @@ -1730,7 +1730,7 @@ public static Output getSecretVersion(GetSecretVersionAr return Deployment.getInstance().invoke("gcp:monitoring/getSecretVersion:getSecretVersion", TypeShape.of(GetSecretVersionResult.class), args, Utilities.withVersion(options)); } /** - * Get the value and metadata from a Secret Manager secret version. For more information see the official documentation datasource. + * Get the value and metadata from a Secret Manager secret version. For more information see the [official documentation](https://cloud.google.com/secret-manager/docs/) and [API](https://cloud.google.com/secret-manager/docs/reference/rest/v1/projects.secrets.versions). If you don't need the metadata (i.e., if you want to use a more limited role to access the secret version only), see also the gcp.secretmanager.getSecretVersionAccess datasource. * * ## Example Usage * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/organizations/OrganizationsFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/organizations/OrganizationsFunctions.java index 3f997dfd36..5784fab6b0 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/organizations/OrganizationsFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/organizations/OrganizationsFunctions.java @@ -40,6 +40,40 @@ public final class OrganizationsFunctions { * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.organizations.OrganizationsFunctions;
+     * import com.pulumi.gcp.organizations.inputs.GetActiveFolderArgs;
+     * 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) {
+     *         final var department1 = OrganizationsFunctions.getActiveFolder(GetActiveFolderArgs.builder()
+     *             .displayName("Department 1")
+     *             .parent("organizations/1234567")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static Output getActiveFolder(GetActiveFolderArgs args) { return getActiveFolder(args, InvokeOptions.Empty); @@ -49,6 +83,40 @@ public static Output getActiveFolder(GetActiveFolderArgs * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.organizations.OrganizationsFunctions;
+     * import com.pulumi.gcp.organizations.inputs.GetActiveFolderArgs;
+     * 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) {
+     *         final var department1 = OrganizationsFunctions.getActiveFolder(GetActiveFolderArgs.builder()
+     *             .displayName("Department 1")
+     *             .parent("organizations/1234567")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static CompletableFuture getActiveFolderPlain(GetActiveFolderPlainArgs args) { return getActiveFolderPlain(args, InvokeOptions.Empty); @@ -58,6 +126,40 @@ public static CompletableFuture getActiveFolderPlain(GetA * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.organizations.OrganizationsFunctions;
+     * import com.pulumi.gcp.organizations.inputs.GetActiveFolderArgs;
+     * 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) {
+     *         final var department1 = OrganizationsFunctions.getActiveFolder(GetActiveFolderArgs.builder()
+     *             .displayName("Department 1")
+     *             .parent("organizations/1234567")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static Output getActiveFolder(GetActiveFolderArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:organizations/getActiveFolder:getActiveFolder", TypeShape.of(GetActiveFolderResult.class), args, Utilities.withVersion(options)); @@ -67,6 +169,40 @@ public static Output getActiveFolder(GetActiveFolderArgs * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.organizations.OrganizationsFunctions;
+     * import com.pulumi.gcp.organizations.inputs.GetActiveFolderArgs;
+     * 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) {
+     *         final var department1 = OrganizationsFunctions.getActiveFolder(GetActiveFolderArgs.builder()
+     *             .displayName("Department 1")
+     *             .parent("organizations/1234567")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static CompletableFuture getActiveFolderPlain(GetActiveFolderPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("gcp:organizations/getActiveFolder:getActiveFolder", TypeShape.of(GetActiveFolderResult.class), args, Utilities.withVersion(options)); @@ -374,8 +510,76 @@ public static CompletableFuture getBillingAccountPlain( /** * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.organizations.OrganizationsFunctions;
+     * 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) {
+     *         final var current = OrganizationsFunctions.getClientConfig();
+     * 
+     *         ctx.export("project", current.applyValue(getClientConfigResult -> getClientConfigResult.project()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * * ### Configure Kubernetes Provider With OAuth2 Access Token * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.organizations.OrganizationsFunctions;
+     * import com.pulumi.gcp.container.ContainerFunctions;
+     * import com.pulumi.gcp.container.inputs.GetClusterArgs;
+     * 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) {
+     *         final var default = OrganizationsFunctions.getClientConfig();
+     * 
+     *         final var myCluster = ContainerFunctions.getCluster(GetClusterArgs.builder()
+     *             .name("my-cluster")
+     *             .zone("us-east1-a")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static Output getClientConfig() { return getClientConfig(InvokeArgs.Empty, InvokeOptions.Empty); @@ -383,8 +587,76 @@ public static Output getClientConfig() { /** * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.organizations.OrganizationsFunctions;
+     * 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) {
+     *         final var current = OrganizationsFunctions.getClientConfig();
+     * 
+     *         ctx.export("project", current.applyValue(getClientConfigResult -> getClientConfigResult.project()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * * ### Configure Kubernetes Provider With OAuth2 Access Token * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.organizations.OrganizationsFunctions;
+     * import com.pulumi.gcp.container.ContainerFunctions;
+     * import com.pulumi.gcp.container.inputs.GetClusterArgs;
+     * 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) {
+     *         final var default = OrganizationsFunctions.getClientConfig();
+     * 
+     *         final var myCluster = ContainerFunctions.getCluster(GetClusterArgs.builder()
+     *             .name("my-cluster")
+     *             .zone("us-east1-a")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static CompletableFuture getClientConfigPlain() { return getClientConfigPlain(InvokeArgs.Empty, InvokeOptions.Empty); @@ -392,8 +664,76 @@ public static CompletableFuture getClientConfigPlain() { /** * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.organizations.OrganizationsFunctions;
+     * 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) {
+     *         final var current = OrganizationsFunctions.getClientConfig();
+     * 
+     *         ctx.export("project", current.applyValue(getClientConfigResult -> getClientConfigResult.project()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * * ### Configure Kubernetes Provider With OAuth2 Access Token * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.organizations.OrganizationsFunctions;
+     * import com.pulumi.gcp.container.ContainerFunctions;
+     * import com.pulumi.gcp.container.inputs.GetClusterArgs;
+     * 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) {
+     *         final var default = OrganizationsFunctions.getClientConfig();
+     * 
+     *         final var myCluster = ContainerFunctions.getCluster(GetClusterArgs.builder()
+     *             .name("my-cluster")
+     *             .zone("us-east1-a")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static Output getClientConfig(InvokeArgs args) { return getClientConfig(args, InvokeOptions.Empty); @@ -401,8 +741,76 @@ public static Output getClientConfig(InvokeArgs args) { /** * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.organizations.OrganizationsFunctions;
+     * 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) {
+     *         final var current = OrganizationsFunctions.getClientConfig();
+     * 
+     *         ctx.export("project", current.applyValue(getClientConfigResult -> getClientConfigResult.project()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * * ### Configure Kubernetes Provider With OAuth2 Access Token * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.organizations.OrganizationsFunctions;
+     * import com.pulumi.gcp.container.ContainerFunctions;
+     * import com.pulumi.gcp.container.inputs.GetClusterArgs;
+     * 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) {
+     *         final var default = OrganizationsFunctions.getClientConfig();
+     * 
+     *         final var myCluster = ContainerFunctions.getCluster(GetClusterArgs.builder()
+     *             .name("my-cluster")
+     *             .zone("us-east1-a")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static CompletableFuture getClientConfigPlain(InvokeArgs args) { return getClientConfigPlain(args, InvokeOptions.Empty); @@ -410,8 +818,76 @@ public static CompletableFuture getClientConfigPlain(Invo /** * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.organizations.OrganizationsFunctions;
+     * 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) {
+     *         final var current = OrganizationsFunctions.getClientConfig();
+     * 
+     *         ctx.export("project", current.applyValue(getClientConfigResult -> getClientConfigResult.project()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * * ### Configure Kubernetes Provider With OAuth2 Access Token * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.organizations.OrganizationsFunctions;
+     * import com.pulumi.gcp.container.ContainerFunctions;
+     * import com.pulumi.gcp.container.inputs.GetClusterArgs;
+     * 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) {
+     *         final var default = OrganizationsFunctions.getClientConfig();
+     * 
+     *         final var myCluster = ContainerFunctions.getCluster(GetClusterArgs.builder()
+     *             .name("my-cluster")
+     *             .zone("us-east1-a")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static Output getClientConfig(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:organizations/getClientConfig:getClientConfig", TypeShape.of(GetClientConfigResult.class), args, Utilities.withVersion(options)); @@ -419,8 +895,76 @@ public static Output getClientConfig(InvokeArgs args, Inv /** * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.organizations.OrganizationsFunctions;
+     * 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) {
+     *         final var current = OrganizationsFunctions.getClientConfig();
+     * 
+     *         ctx.export("project", current.applyValue(getClientConfigResult -> getClientConfigResult.project()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * * ### Configure Kubernetes Provider With OAuth2 Access Token * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.organizations.OrganizationsFunctions;
+     * import com.pulumi.gcp.container.ContainerFunctions;
+     * import com.pulumi.gcp.container.inputs.GetClusterArgs;
+     * 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) {
+     *         final var default = OrganizationsFunctions.getClientConfig();
+     * 
+     *         final var myCluster = ContainerFunctions.getCluster(GetClusterArgs.builder()
+     *             .name("my-cluster")
+     *             .zone("us-east1-a")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static CompletableFuture getClientConfigPlain(InvokeArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("gcp:organizations/getClientConfig:getClientConfig", TypeShape.of(GetClientConfigResult.class), args, Utilities.withVersion(options)); diff --git a/sdk/java/src/main/java/com/pulumi/gcp/redis/RedisFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/redis/RedisFunctions.java index d41a62e27d..7ceaf7b98b 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/redis/RedisFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/redis/RedisFunctions.java @@ -19,6 +19,42 @@ public final class RedisFunctions { * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.redis.RedisFunctions;
+     * import com.pulumi.gcp.redis.inputs.GetInstanceArgs;
+     * 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) {
+     *         final var myInstance = RedisFunctions.getInstance(GetInstanceArgs.builder()
+     *             .name("my-redis-instance")
+     *             .build());
+     * 
+     *         ctx.export("instanceMemorySizeGb", myInstance.applyValue(getInstanceResult -> getInstanceResult.memorySizeGb()));
+     *         ctx.export("instanceConnectMode", myInstance.applyValue(getInstanceResult -> getInstanceResult.connectMode()));
+     *         ctx.export("instanceAuthorizedNetwork", myInstance.applyValue(getInstanceResult -> getInstanceResult.authorizedNetwork()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static Output getInstance(GetInstanceArgs args) { return getInstance(args, InvokeOptions.Empty); @@ -28,6 +64,42 @@ public static Output getInstance(GetInstanceArgs args) { * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.redis.RedisFunctions;
+     * import com.pulumi.gcp.redis.inputs.GetInstanceArgs;
+     * 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) {
+     *         final var myInstance = RedisFunctions.getInstance(GetInstanceArgs.builder()
+     *             .name("my-redis-instance")
+     *             .build());
+     * 
+     *         ctx.export("instanceMemorySizeGb", myInstance.applyValue(getInstanceResult -> getInstanceResult.memorySizeGb()));
+     *         ctx.export("instanceConnectMode", myInstance.applyValue(getInstanceResult -> getInstanceResult.connectMode()));
+     *         ctx.export("instanceAuthorizedNetwork", myInstance.applyValue(getInstanceResult -> getInstanceResult.authorizedNetwork()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static CompletableFuture getInstancePlain(GetInstancePlainArgs args) { return getInstancePlain(args, InvokeOptions.Empty); @@ -37,6 +109,42 @@ public static CompletableFuture getInstancePlain(GetInstanceP * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.redis.RedisFunctions;
+     * import com.pulumi.gcp.redis.inputs.GetInstanceArgs;
+     * 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) {
+     *         final var myInstance = RedisFunctions.getInstance(GetInstanceArgs.builder()
+     *             .name("my-redis-instance")
+     *             .build());
+     * 
+     *         ctx.export("instanceMemorySizeGb", myInstance.applyValue(getInstanceResult -> getInstanceResult.memorySizeGb()));
+     *         ctx.export("instanceConnectMode", myInstance.applyValue(getInstanceResult -> getInstanceResult.connectMode()));
+     *         ctx.export("instanceAuthorizedNetwork", myInstance.applyValue(getInstanceResult -> getInstanceResult.authorizedNetwork()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static Output getInstance(GetInstanceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:redis/getInstance:getInstance", TypeShape.of(GetInstanceResult.class), args, Utilities.withVersion(options)); @@ -46,6 +154,42 @@ public static Output getInstance(GetInstanceArgs args, Invoke * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.redis.RedisFunctions;
+     * import com.pulumi.gcp.redis.inputs.GetInstanceArgs;
+     * 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) {
+     *         final var myInstance = RedisFunctions.getInstance(GetInstanceArgs.builder()
+     *             .name("my-redis-instance")
+     *             .build());
+     * 
+     *         ctx.export("instanceMemorySizeGb", myInstance.applyValue(getInstanceResult -> getInstanceResult.memorySizeGb()));
+     *         ctx.export("instanceConnectMode", myInstance.applyValue(getInstanceResult -> getInstanceResult.connectMode()));
+     *         ctx.export("instanceAuthorizedNetwork", myInstance.applyValue(getInstanceResult -> getInstanceResult.authorizedNetwork()));
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static CompletableFuture getInstancePlain(GetInstancePlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("gcp:redis/getInstance:getInstance", TypeShape.of(GetInstanceResult.class), args, Utilities.withVersion(options)); diff --git a/sdk/java/src/main/java/com/pulumi/gcp/secretmanager/SecretmanagerFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/secretmanager/SecretmanagerFunctions.java index edb0cffcf0..9bcbc31f99 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/secretmanager/SecretmanagerFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/secretmanager/SecretmanagerFunctions.java @@ -367,7 +367,7 @@ public static CompletableFuture getSecretIamPolicyPlai return Deployment.getInstance().invokeAsync("gcp:secretmanager/getSecretIamPolicy:getSecretIamPolicy", TypeShape.of(GetSecretIamPolicyResult.class), args, Utilities.withVersion(options)); } /** - * Get the value and metadata from a Secret Manager secret version. For more information see the official documentation datasource. + * Get the value and metadata from a Secret Manager secret version. For more information see the [official documentation](https://cloud.google.com/secret-manager/docs/) and [API](https://cloud.google.com/secret-manager/docs/reference/rest/v1/projects.secrets.versions). If you don't need the metadata (i.e., if you want to use a more limited role to access the secret version only), see also the gcp.secretmanager.getSecretVersionAccess datasource. * * ## Example Usage * @@ -409,7 +409,7 @@ public static Output getSecretVersion(GetSecretVersionAr return getSecretVersion(args, InvokeOptions.Empty); } /** - * Get the value and metadata from a Secret Manager secret version. For more information see the official documentation datasource. + * Get the value and metadata from a Secret Manager secret version. For more information see the [official documentation](https://cloud.google.com/secret-manager/docs/) and [API](https://cloud.google.com/secret-manager/docs/reference/rest/v1/projects.secrets.versions). If you don't need the metadata (i.e., if you want to use a more limited role to access the secret version only), see also the gcp.secretmanager.getSecretVersionAccess datasource. * * ## Example Usage * @@ -451,7 +451,7 @@ public static CompletableFuture getSecretVersionPlain(Ge return getSecretVersionPlain(args, InvokeOptions.Empty); } /** - * Get the value and metadata from a Secret Manager secret version. For more information see the official documentation datasource. + * Get the value and metadata from a Secret Manager secret version. For more information see the [official documentation](https://cloud.google.com/secret-manager/docs/) and [API](https://cloud.google.com/secret-manager/docs/reference/rest/v1/projects.secrets.versions). If you don't need the metadata (i.e., if you want to use a more limited role to access the secret version only), see also the gcp.secretmanager.getSecretVersionAccess datasource. * * ## Example Usage * @@ -493,7 +493,7 @@ public static Output getSecretVersion(GetSecretVersionAr return Deployment.getInstance().invoke("gcp:secretmanager/getSecretVersion:getSecretVersion", TypeShape.of(GetSecretVersionResult.class), args, Utilities.withVersion(options)); } /** - * Get the value and metadata from a Secret Manager secret version. For more information see the official documentation datasource. + * Get the value and metadata from a Secret Manager secret version. For more information see the [official documentation](https://cloud.google.com/secret-manager/docs/) and [API](https://cloud.google.com/secret-manager/docs/reference/rest/v1/projects.secrets.versions). If you don't need the metadata (i.e., if you want to use a more limited role to access the secret version only), see also the gcp.secretmanager.getSecretVersionAccess datasource. * * ## Example Usage * diff --git a/sdk/java/src/main/java/com/pulumi/gcp/spanner/SpannerFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/spanner/SpannerFunctions.java index 3e848f31f4..74d858a973 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/spanner/SpannerFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/spanner/SpannerFunctions.java @@ -201,6 +201,39 @@ public static CompletableFuture getDatabaseIamPolicy * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.spanner.SpannerFunctions;
+     * import com.pulumi.gcp.spanner.inputs.GetInstanceArgs;
+     * 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) {
+     *         final var foo = SpannerFunctions.getInstance(GetInstanceArgs.builder()
+     *             .name("bar")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static Output getInstance(GetInstanceArgs args) { return getInstance(args, InvokeOptions.Empty); @@ -210,6 +243,39 @@ public static Output getInstance(GetInstanceArgs args) { * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.spanner.SpannerFunctions;
+     * import com.pulumi.gcp.spanner.inputs.GetInstanceArgs;
+     * 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) {
+     *         final var foo = SpannerFunctions.getInstance(GetInstanceArgs.builder()
+     *             .name("bar")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static CompletableFuture getInstancePlain(GetInstancePlainArgs args) { return getInstancePlain(args, InvokeOptions.Empty); @@ -219,6 +285,39 @@ public static CompletableFuture getInstancePlain(GetInstanceP * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.spanner.SpannerFunctions;
+     * import com.pulumi.gcp.spanner.inputs.GetInstanceArgs;
+     * 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) {
+     *         final var foo = SpannerFunctions.getInstance(GetInstanceArgs.builder()
+     *             .name("bar")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static Output getInstance(GetInstanceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:spanner/getInstance:getInstance", TypeShape.of(GetInstanceResult.class), args, Utilities.withVersion(options)); @@ -228,6 +327,39 @@ public static Output getInstance(GetInstanceArgs args, Invoke * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.spanner.SpannerFunctions;
+     * import com.pulumi.gcp.spanner.inputs.GetInstanceArgs;
+     * 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) {
+     *         final var foo = SpannerFunctions.getInstance(GetInstanceArgs.builder()
+     *             .name("bar")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static CompletableFuture getInstancePlain(GetInstancePlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("gcp:spanner/getInstance:getInstance", TypeShape.of(GetInstanceResult.class), args, Utilities.withVersion(options)); diff --git a/sdk/java/src/main/java/com/pulumi/gcp/tags/TagsFunctions.java b/sdk/java/src/main/java/com/pulumi/gcp/tags/TagsFunctions.java index e358ee101c..6fa38ff824 100644 --- a/sdk/java/src/main/java/com/pulumi/gcp/tags/TagsFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/gcp/tags/TagsFunctions.java @@ -34,6 +34,73 @@ public final class TagsFunctions { * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.tags.TagsFunctions;
+     * import com.pulumi.gcp.tags.inputs.GetTagKeyArgs;
+     * 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) {
+     *         final var environmentTagKey = TagsFunctions.getTagKey(GetTagKeyArgs.builder()
+     *             .parent("organizations/12345")
+     *             .shortName("environment")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.tags.TagsFunctions;
+     * import com.pulumi.gcp.tags.inputs.GetTagKeyArgs;
+     * 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) {
+     *         final var environmentTagKey = TagsFunctions.getTagKey(GetTagKeyArgs.builder()
+     *             .parent("projects/abc")
+     *             .shortName("environment")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static Output getTagKey(GetTagKeyArgs args) { return getTagKey(args, InvokeOptions.Empty); @@ -43,6 +110,73 @@ public static Output getTagKey(GetTagKeyArgs args) { * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.tags.TagsFunctions;
+     * import com.pulumi.gcp.tags.inputs.GetTagKeyArgs;
+     * 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) {
+     *         final var environmentTagKey = TagsFunctions.getTagKey(GetTagKeyArgs.builder()
+     *             .parent("organizations/12345")
+     *             .shortName("environment")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.tags.TagsFunctions;
+     * import com.pulumi.gcp.tags.inputs.GetTagKeyArgs;
+     * 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) {
+     *         final var environmentTagKey = TagsFunctions.getTagKey(GetTagKeyArgs.builder()
+     *             .parent("projects/abc")
+     *             .shortName("environment")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static CompletableFuture getTagKeyPlain(GetTagKeyPlainArgs args) { return getTagKeyPlain(args, InvokeOptions.Empty); @@ -52,6 +186,73 @@ public static CompletableFuture getTagKeyPlain(GetTagKeyPlainAr * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.tags.TagsFunctions;
+     * import com.pulumi.gcp.tags.inputs.GetTagKeyArgs;
+     * 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) {
+     *         final var environmentTagKey = TagsFunctions.getTagKey(GetTagKeyArgs.builder()
+     *             .parent("organizations/12345")
+     *             .shortName("environment")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.tags.TagsFunctions;
+     * import com.pulumi.gcp.tags.inputs.GetTagKeyArgs;
+     * 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) {
+     *         final var environmentTagKey = TagsFunctions.getTagKey(GetTagKeyArgs.builder()
+     *             .parent("projects/abc")
+     *             .shortName("environment")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static Output getTagKey(GetTagKeyArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:tags/getTagKey:getTagKey", TypeShape.of(GetTagKeyResult.class), args, Utilities.withVersion(options)); @@ -61,6 +262,73 @@ public static Output getTagKey(GetTagKeyArgs args, InvokeOption * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.tags.TagsFunctions;
+     * import com.pulumi.gcp.tags.inputs.GetTagKeyArgs;
+     * 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) {
+     *         final var environmentTagKey = TagsFunctions.getTagKey(GetTagKeyArgs.builder()
+     *             .parent("organizations/12345")
+     *             .shortName("environment")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.tags.TagsFunctions;
+     * import com.pulumi.gcp.tags.inputs.GetTagKeyArgs;
+     * 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) {
+     *         final var environmentTagKey = TagsFunctions.getTagKey(GetTagKeyArgs.builder()
+     *             .parent("projects/abc")
+     *             .shortName("environment")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static CompletableFuture getTagKeyPlain(GetTagKeyPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("gcp:tags/getTagKey:getTagKey", TypeShape.of(GetTagKeyResult.class), args, Utilities.withVersion(options)); @@ -68,8 +336,430 @@ public static CompletableFuture getTagKeyPlain(GetTagKeyPlainAr /** * Retrieves the current IAM policy data for tagkey * - * ## example + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.tags.TagsFunctions;
+     * import com.pulumi.gcp.tags.inputs.GetTagKeyIamPolicyArgs;
+     * 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) {
+     *         final var policy = TagsFunctions.getTagKeyIamPolicy(GetTagKeyIamPolicyArgs.builder()
+     *             .tagKey(key.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTagKeyIamPolicy(GetTagKeyIamPolicyArgs args) { + return getTagKeyIamPolicy(args, InvokeOptions.Empty); + } + /** + * Retrieves the current IAM policy data for tagkey + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.tags.TagsFunctions;
+     * import com.pulumi.gcp.tags.inputs.GetTagKeyIamPolicyArgs;
+     * 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) {
+     *         final var policy = TagsFunctions.getTagKeyIamPolicy(GetTagKeyIamPolicyArgs.builder()
+     *             .tagKey(key.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getTagKeyIamPolicyPlain(GetTagKeyIamPolicyPlainArgs args) { + return getTagKeyIamPolicyPlain(args, InvokeOptions.Empty); + } + /** + * Retrieves the current IAM policy data for tagkey + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.tags.TagsFunctions;
+     * import com.pulumi.gcp.tags.inputs.GetTagKeyIamPolicyArgs;
+     * 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) {
+     *         final var policy = TagsFunctions.getTagKeyIamPolicy(GetTagKeyIamPolicyArgs.builder()
+     *             .tagKey(key.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTagKeyIamPolicy(GetTagKeyIamPolicyArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("gcp:tags/getTagKeyIamPolicy:getTagKeyIamPolicy", TypeShape.of(GetTagKeyIamPolicyResult.class), args, Utilities.withVersion(options)); + } + /** + * Retrieves the current IAM policy data for tagkey + * + * ## example + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.tags.TagsFunctions;
+     * import com.pulumi.gcp.tags.inputs.GetTagKeyIamPolicyArgs;
+     * 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) {
+     *         final var policy = TagsFunctions.getTagKeyIamPolicy(GetTagKeyIamPolicyArgs.builder()
+     *             .tagKey(key.name())
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getTagKeyIamPolicyPlain(GetTagKeyIamPolicyPlainArgs args, InvokeOptions options) { + return Deployment.getInstance().invokeAsync("gcp:tags/getTagKeyIamPolicy:getTagKeyIamPolicy", TypeShape.of(GetTagKeyIamPolicyResult.class), args, Utilities.withVersion(options)); + } + /** + * Get tag keys by org or project `parent`. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.tags.TagsFunctions;
+     * import com.pulumi.gcp.tags.inputs.GetTagKeysArgs;
+     * 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) {
+     *         final var environmentTagKey = TagsFunctions.getTagKeys(GetTagKeysArgs.builder()
+     *             .parent("organizations/12345")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.tags.TagsFunctions;
+     * import com.pulumi.gcp.tags.inputs.GetTagKeysArgs;
+     * 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) {
+     *         final var environmentTagKey = TagsFunctions.getTagKeys(GetTagKeysArgs.builder()
+     *             .parent("projects/abc")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTagKeys(GetTagKeysArgs args) { + return getTagKeys(args, InvokeOptions.Empty); + } + /** + * Get tag keys by org or project `parent`. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.tags.TagsFunctions;
+     * import com.pulumi.gcp.tags.inputs.GetTagKeysArgs;
+     * 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) {
+     *         final var environmentTagKey = TagsFunctions.getTagKeys(GetTagKeysArgs.builder()
+     *             .parent("organizations/12345")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.tags.TagsFunctions;
+     * import com.pulumi.gcp.tags.inputs.GetTagKeysArgs;
+     * 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) {
+     *         final var environmentTagKey = TagsFunctions.getTagKeys(GetTagKeysArgs.builder()
+     *             .parent("projects/abc")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static CompletableFuture getTagKeysPlain(GetTagKeysPlainArgs args) { + return getTagKeysPlain(args, InvokeOptions.Empty); + } + /** + * Get tag keys by org or project `parent`. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.tags.TagsFunctions;
+     * import com.pulumi.gcp.tags.inputs.GetTagKeysArgs;
+     * 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) {
+     *         final var environmentTagKey = TagsFunctions.getTagKeys(GetTagKeysArgs.builder()
+     *             .parent("organizations/12345")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.tags.TagsFunctions;
+     * import com.pulumi.gcp.tags.inputs.GetTagKeysArgs;
+     * 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) {
+     *         final var environmentTagKey = TagsFunctions.getTagKeys(GetTagKeysArgs.builder()
+     *             .parent("projects/abc")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * + */ + public static Output getTagKeys(GetTagKeysArgs args, InvokeOptions options) { + return Deployment.getInstance().invoke("gcp:tags/getTagKeys:getTagKeys", TypeShape.of(GetTagKeysResult.class), args, Utilities.withVersion(options)); + } + /** + * Get tag keys by org or project `parent`. + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.tags.TagsFunctions;
+     * import com.pulumi.gcp.tags.inputs.GetTagKeysArgs;
+     * 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) {
+     *         final var environmentTagKey = TagsFunctions.getTagKeys(GetTagKeysArgs.builder()
+     *             .parent("organizations/12345")
+     *             .build());
      * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> * <!--Start PulumiCodeChooser --> *
      * {@code
@@ -79,7 +769,7 @@ public static CompletableFuture getTagKeyPlain(GetTagKeyPlainAr
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.tags.TagsFunctions;
-     * import com.pulumi.gcp.tags.inputs.GetTagKeyIamPolicyArgs;
+     * import com.pulumi.gcp.tags.inputs.GetTagKeysArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -93,8 +783,8 @@ public static CompletableFuture getTagKeyPlain(GetTagKeyPlainAr
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var policy = TagsFunctions.getTagKeyIamPolicy(GetTagKeyIamPolicyArgs.builder()
-     *             .tagKey(key.name())
+     *         final var environmentTagKey = TagsFunctions.getTagKeys(GetTagKeysArgs.builder()
+     *             .parent("projects/abc")
      *             .build());
      * 
      *     }
@@ -104,13 +794,13 @@ public static CompletableFuture getTagKeyPlain(GetTagKeyPlainAr
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getTagKeyIamPolicy(GetTagKeyIamPolicyArgs args) {
-        return getTagKeyIamPolicy(args, InvokeOptions.Empty);
+    public static CompletableFuture getTagKeysPlain(GetTagKeysPlainArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invokeAsync("gcp:tags/getTagKeys:getTagKeys", TypeShape.of(GetTagKeysResult.class), args, Utilities.withVersion(options));
     }
     /**
-     * Retrieves the current IAM policy data for tagkey
+     * Get a tag value by `parent` key and `short_name`.
      * 
-     * ## example
+     * ## Example Usage
      * 
      * <!--Start PulumiCodeChooser -->
      * 
@@ -121,7 +811,7 @@ public static Output getTagKeyIamPolicy(GetTagKeyIamPo
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.tags.TagsFunctions;
-     * import com.pulumi.gcp.tags.inputs.GetTagKeyIamPolicyArgs;
+     * import com.pulumi.gcp.tags.inputs.GetTagValueArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -135,8 +825,9 @@ public static Output getTagKeyIamPolicy(GetTagKeyIamPo
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var policy = TagsFunctions.getTagKeyIamPolicy(GetTagKeyIamPolicyArgs.builder()
-     *             .tagKey(key.name())
+     *         final var environmentProdTagValue = TagsFunctions.getTagValue(GetTagValueArgs.builder()
+     *             .parent("tagKeys/56789")
+     *             .shortName("production")
      *             .build());
      * 
      *     }
@@ -146,13 +837,13 @@ public static Output getTagKeyIamPolicy(GetTagKeyIamPo
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getTagKeyIamPolicyPlain(GetTagKeyIamPolicyPlainArgs args) {
-        return getTagKeyIamPolicyPlain(args, InvokeOptions.Empty);
+    public static Output getTagValue(GetTagValueArgs args) {
+        return getTagValue(args, InvokeOptions.Empty);
     }
     /**
-     * Retrieves the current IAM policy data for tagkey
+     * Get a tag value by `parent` key and `short_name`.
      * 
-     * ## example
+     * ## Example Usage
      * 
      * <!--Start PulumiCodeChooser -->
      * 
@@ -163,7 +854,7 @@ public static CompletableFuture getTagKeyIamPolicyPlai
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.tags.TagsFunctions;
-     * import com.pulumi.gcp.tags.inputs.GetTagKeyIamPolicyArgs;
+     * import com.pulumi.gcp.tags.inputs.GetTagValueArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -177,8 +868,9 @@ public static CompletableFuture getTagKeyIamPolicyPlai
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var policy = TagsFunctions.getTagKeyIamPolicy(GetTagKeyIamPolicyArgs.builder()
-     *             .tagKey(key.name())
+     *         final var environmentProdTagValue = TagsFunctions.getTagValue(GetTagValueArgs.builder()
+     *             .parent("tagKeys/56789")
+     *             .shortName("production")
      *             .build());
      * 
      *     }
@@ -188,13 +880,13 @@ public static CompletableFuture getTagKeyIamPolicyPlai
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static Output getTagKeyIamPolicy(GetTagKeyIamPolicyArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invoke("gcp:tags/getTagKeyIamPolicy:getTagKeyIamPolicy", TypeShape.of(GetTagKeyIamPolicyResult.class), args, Utilities.withVersion(options));
+    public static CompletableFuture getTagValuePlain(GetTagValuePlainArgs args) {
+        return getTagValuePlain(args, InvokeOptions.Empty);
     }
     /**
-     * Retrieves the current IAM policy data for tagkey
+     * Get a tag value by `parent` key and `short_name`.
      * 
-     * ## example
+     * ## Example Usage
      * 
      * <!--Start PulumiCodeChooser -->
      * 
@@ -205,7 +897,7 @@ public static Output getTagKeyIamPolicy(GetTagKeyIamPo
      * import com.pulumi.Pulumi;
      * import com.pulumi.core.Output;
      * import com.pulumi.gcp.tags.TagsFunctions;
-     * import com.pulumi.gcp.tags.inputs.GetTagKeyIamPolicyArgs;
+     * import com.pulumi.gcp.tags.inputs.GetTagValueArgs;
      * import java.util.List;
      * import java.util.ArrayList;
      * import java.util.Map;
@@ -219,8 +911,9 @@ public static Output getTagKeyIamPolicy(GetTagKeyIamPo
      *     }
      * 
      *     public static void stack(Context ctx) {
-     *         final var policy = TagsFunctions.getTagKeyIamPolicy(GetTagKeyIamPolicyArgs.builder()
-     *             .tagKey(key.name())
+     *         final var environmentProdTagValue = TagsFunctions.getTagValue(GetTagValueArgs.builder()
+     *             .parent("tagKeys/56789")
+     *             .shortName("production")
      *             .build());
      * 
      *     }
@@ -230,76 +923,47 @@ public static Output getTagKeyIamPolicy(GetTagKeyIamPo
      * <!--End PulumiCodeChooser -->
      * 
      */
-    public static CompletableFuture getTagKeyIamPolicyPlain(GetTagKeyIamPolicyPlainArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invokeAsync("gcp:tags/getTagKeyIamPolicy:getTagKeyIamPolicy", TypeShape.of(GetTagKeyIamPolicyResult.class), args, Utilities.withVersion(options));
-    }
-    /**
-     * Get tag keys by org or project `parent`.
-     * 
-     * ## Example Usage
-     * 
-     */
-    public static Output getTagKeys(GetTagKeysArgs args) {
-        return getTagKeys(args, InvokeOptions.Empty);
-    }
-    /**
-     * Get tag keys by org or project `parent`.
-     * 
-     * ## Example Usage
-     * 
-     */
-    public static CompletableFuture getTagKeysPlain(GetTagKeysPlainArgs args) {
-        return getTagKeysPlain(args, InvokeOptions.Empty);
-    }
-    /**
-     * Get tag keys by org or project `parent`.
-     * 
-     * ## Example Usage
-     * 
-     */
-    public static Output getTagKeys(GetTagKeysArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invoke("gcp:tags/getTagKeys:getTagKeys", TypeShape.of(GetTagKeysResult.class), args, Utilities.withVersion(options));
-    }
-    /**
-     * Get tag keys by org or project `parent`.
-     * 
-     * ## Example Usage
-     * 
-     */
-    public static CompletableFuture getTagKeysPlain(GetTagKeysPlainArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invokeAsync("gcp:tags/getTagKeys:getTagKeys", TypeShape.of(GetTagKeysResult.class), args, Utilities.withVersion(options));
+    public static Output getTagValue(GetTagValueArgs args, InvokeOptions options) {
+        return Deployment.getInstance().invoke("gcp:tags/getTagValue:getTagValue", TypeShape.of(GetTagValueResult.class), args, Utilities.withVersion(options));
     }
     /**
      * Get a tag value by `parent` key and `short_name`.
      * 
      * ## Example Usage
      * 
-     */
-    public static Output getTagValue(GetTagValueArgs args) {
-        return getTagValue(args, InvokeOptions.Empty);
-    }
-    /**
-     * Get a tag value by `parent` key and `short_name`.
-     * 
-     * ## Example Usage
+     * <!--Start PulumiCodeChooser -->
+     * 
+     * {@code
+     * package generated_program;
      * 
-     */
-    public static CompletableFuture getTagValuePlain(GetTagValuePlainArgs args) {
-        return getTagValuePlain(args, InvokeOptions.Empty);
-    }
-    /**
-     * Get a tag value by `parent` key and `short_name`.
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.tags.TagsFunctions;
+     * import com.pulumi.gcp.tags.inputs.GetTagValueArgs;
+     * 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;
      * 
-     * ## Example Usage
+     * public class App {
+     *     public static void main(String[] args) {
+     *         Pulumi.run(App::stack);
+     *     }
      * 
-     */
-    public static Output getTagValue(GetTagValueArgs args, InvokeOptions options) {
-        return Deployment.getInstance().invoke("gcp:tags/getTagValue:getTagValue", TypeShape.of(GetTagValueResult.class), args, Utilities.withVersion(options));
-    }
-    /**
-     * Get a tag value by `parent` key and `short_name`.
+     *     public static void stack(Context ctx) {
+     *         final var environmentProdTagValue = TagsFunctions.getTagValue(GetTagValueArgs.builder()
+     *             .parent("tagKeys/56789")
+     *             .shortName("production")
+     *             .build());
      * 
-     * ## Example Usage
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> * */ public static CompletableFuture getTagValuePlain(GetTagValuePlainArgs args, InvokeOptions options) { @@ -478,6 +1142,39 @@ public static CompletableFuture getTagValueIamPolicy * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.tags.TagsFunctions;
+     * import com.pulumi.gcp.tags.inputs.GetTagValuesArgs;
+     * 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) {
+     *         final var environmentTagValues = TagsFunctions.getTagValues(GetTagValuesArgs.builder()
+     *             .parent("tagKeys/56789")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static Output getTagValues(GetTagValuesArgs args) { return getTagValues(args, InvokeOptions.Empty); @@ -487,6 +1184,39 @@ public static Output getTagValues(GetTagValuesArgs args) { * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.tags.TagsFunctions;
+     * import com.pulumi.gcp.tags.inputs.GetTagValuesArgs;
+     * 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) {
+     *         final var environmentTagValues = TagsFunctions.getTagValues(GetTagValuesArgs.builder()
+     *             .parent("tagKeys/56789")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static CompletableFuture getTagValuesPlain(GetTagValuesPlainArgs args) { return getTagValuesPlain(args, InvokeOptions.Empty); @@ -496,6 +1226,39 @@ public static CompletableFuture getTagValuesPlain(GetTagValu * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.tags.TagsFunctions;
+     * import com.pulumi.gcp.tags.inputs.GetTagValuesArgs;
+     * 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) {
+     *         final var environmentTagValues = TagsFunctions.getTagValues(GetTagValuesArgs.builder()
+     *             .parent("tagKeys/56789")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static Output getTagValues(GetTagValuesArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("gcp:tags/getTagValues:getTagValues", TypeShape.of(GetTagValuesResult.class), args, Utilities.withVersion(options)); @@ -505,6 +1268,39 @@ public static Output getTagValues(GetTagValuesArgs args, Inv * * ## Example Usage * + * <!--Start PulumiCodeChooser --> + *
+     * {@code
+     * package generated_program;
+     * 
+     * import com.pulumi.Context;
+     * import com.pulumi.Pulumi;
+     * import com.pulumi.core.Output;
+     * import com.pulumi.gcp.tags.TagsFunctions;
+     * import com.pulumi.gcp.tags.inputs.GetTagValuesArgs;
+     * 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) {
+     *         final var environmentTagValues = TagsFunctions.getTagValues(GetTagValuesArgs.builder()
+     *             .parent("tagKeys/56789")
+     *             .build());
+     * 
+     *     }
+     * }
+     * }
+     * 
+ * <!--End PulumiCodeChooser --> + * */ public static CompletableFuture getTagValuesPlain(GetTagValuesPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("gcp:tags/getTagValues:getTagValues", TypeShape.of(GetTagValuesResult.class), args, Utilities.withVersion(options)); diff --git a/sdk/nodejs/certificateauthority/getAuthority.ts b/sdk/nodejs/certificateauthority/getAuthority.ts index 08e0d4e1d4..1fbe1df374 100644 --- a/sdk/nodejs/certificateauthority/getAuthority.ts +++ b/sdk/nodejs/certificateauthority/getAuthority.ts @@ -10,6 +10,18 @@ import * as utilities from "../utilities"; * Get info about a Google CAS Certificate Authority. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const default = gcp.certificateauthority.getAuthority({ + * location: "us-west1", + * pool: "pool-name", + * certificateAuthorityId: "ca-id", + * }); + * export const csr = _default.then(_default => _default.pemCsr); + * ``` */ export function getAuthority(args?: GetAuthorityArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; @@ -89,6 +101,18 @@ export interface GetAuthorityResult { * Get info about a Google CAS Certificate Authority. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const default = gcp.certificateauthority.getAuthority({ + * location: "us-west1", + * pool: "pool-name", + * certificateAuthorityId: "ca-id", + * }); + * export const csr = _default.then(_default => _default.pemCsr); + * ``` */ export function getAuthorityOutput(args?: GetAuthorityOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getAuthority(a, opts)) diff --git a/sdk/nodejs/certificatemanager/getCertificateMap.ts b/sdk/nodejs/certificatemanager/getCertificateMap.ts index be3f447cb9..e6b0fc5d84 100644 --- a/sdk/nodejs/certificatemanager/getCertificateMap.ts +++ b/sdk/nodejs/certificatemanager/getCertificateMap.ts @@ -10,6 +10,15 @@ import * as utilities from "../utilities"; * Get info about a Google Certificate Manager Certificate Map resource. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const default = gcp.certificatemanager.getCertificateMap({ + * name: "cert-map", + * }); + * ``` */ export function getCertificateMap(args: GetCertificateMapArgs, opts?: pulumi.InvokeOptions): Promise { @@ -59,6 +68,15 @@ export interface GetCertificateMapResult { * Get info about a Google Certificate Manager Certificate Map resource. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const default = gcp.certificatemanager.getCertificateMap({ + * name: "cert-map", + * }); + * ``` */ export function getCertificateMapOutput(args: GetCertificateMapOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getCertificateMap(a, opts)) diff --git a/sdk/nodejs/cloudidentity/getGroupLookup.ts b/sdk/nodejs/cloudidentity/getGroupLookup.ts index 588315ffaa..58b7153c91 100644 --- a/sdk/nodejs/cloudidentity/getGroupLookup.ts +++ b/sdk/nodejs/cloudidentity/getGroupLookup.ts @@ -12,6 +12,17 @@ import * as utilities from "../utilities"; * https://cloud.google.com/identity/docs/concepts/overview#groups * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const group = gcp.cloudidentity.getGroupLookup({ + * groupKey: { + * id: "my-group@example.com", + * }, + * }); + * ``` */ export function getGroupLookup(args: GetGroupLookupArgs, opts?: pulumi.InvokeOptions): Promise { @@ -53,6 +64,17 @@ export interface GetGroupLookupResult { * https://cloud.google.com/identity/docs/concepts/overview#groups * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const group = gcp.cloudidentity.getGroupLookup({ + * groupKey: { + * id: "my-group@example.com", + * }, + * }); + * ``` */ export function getGroupLookupOutput(args: GetGroupLookupOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getGroupLookup(a, opts)) diff --git a/sdk/nodejs/cloudidentity/getGroupMemberships.ts b/sdk/nodejs/cloudidentity/getGroupMemberships.ts index 04eb545015..0334401f33 100644 --- a/sdk/nodejs/cloudidentity/getGroupMemberships.ts +++ b/sdk/nodejs/cloudidentity/getGroupMemberships.ts @@ -18,6 +18,15 @@ import * as utilities from "../utilities"; * * [Official Documentation](https://cloud.google.com/identity/docs/how-to/memberships-google-groups) * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const members = gcp.cloudidentity.getGroupMemberships({ + * group: "groups/123eab45c6defghi", + * }); + * ``` */ export function getGroupMemberships(args: GetGroupMembershipsArgs, opts?: pulumi.InvokeOptions): Promise { @@ -63,6 +72,15 @@ export interface GetGroupMembershipsResult { * * [Official Documentation](https://cloud.google.com/identity/docs/how-to/memberships-google-groups) * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const members = gcp.cloudidentity.getGroupMemberships({ + * group: "groups/123eab45c6defghi", + * }); + * ``` */ export function getGroupMembershipsOutput(args: GetGroupMembershipsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getGroupMemberships(a, opts)) diff --git a/sdk/nodejs/cloudidentity/getGroups.ts b/sdk/nodejs/cloudidentity/getGroups.ts index fd5a3caf8c..3398b11fc7 100644 --- a/sdk/nodejs/cloudidentity/getGroups.ts +++ b/sdk/nodejs/cloudidentity/getGroups.ts @@ -12,6 +12,15 @@ import * as utilities from "../utilities"; * https://cloud.google.com/identity/docs/concepts/overview#groups * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const groups = gcp.cloudidentity.getGroups({ + * parent: "customers/A01b123xz", + * }); + * ``` */ export function getGroups(args: GetGroupsArgs, opts?: pulumi.InvokeOptions): Promise { @@ -51,6 +60,15 @@ export interface GetGroupsResult { * https://cloud.google.com/identity/docs/concepts/overview#groups * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const groups = gcp.cloudidentity.getGroups({ + * parent: "customers/A01b123xz", + * }); + * ``` */ export function getGroupsOutput(args: GetGroupsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getGroups(a, opts)) diff --git a/sdk/nodejs/compute/diskAsyncReplication.ts b/sdk/nodejs/compute/diskAsyncReplication.ts index 4f61a77c79..bdfcd20652 100644 --- a/sdk/nodejs/compute/diskAsyncReplication.ts +++ b/sdk/nodejs/compute/diskAsyncReplication.ts @@ -12,6 +12,33 @@ import * as utilities from "../utilities"; * and the [API](https://cloud.google.com/compute/docs/reference/rest/v1/disks). * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const primary_disk = new gcp.compute.Disk("primary-disk", { + * name: "primary-disk", + * type: "pd-ssd", + * zone: "europe-west4-a", + * physicalBlockSizeBytes: 4096, + * }); + * const secondary_disk = new gcp.compute.Disk("secondary-disk", { + * name: "secondary-disk", + * type: "pd-ssd", + * zone: "europe-west3-a", + * asyncPrimaryDisk: { + * disk: primary_disk.id, + * }, + * physicalBlockSizeBytes: 4096, + * }); + * const replication = new gcp.compute.DiskAsyncReplication("replication", { + * primaryDisk: primary_disk.id, + * secondaryDisk: { + * disk: secondary_disk.id, + * }, + * }); + * ``` */ export class DiskAsyncReplication extends pulumi.CustomResource { /** diff --git a/sdk/nodejs/compute/getBackendBucket.ts b/sdk/nodejs/compute/getBackendBucket.ts index f4bc0d9378..6ba78d28ab 100644 --- a/sdk/nodejs/compute/getBackendBucket.ts +++ b/sdk/nodejs/compute/getBackendBucket.ts @@ -10,6 +10,15 @@ import * as utilities from "../utilities"; * Get information about a BackendBucket. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const my-backend-bucket = gcp.compute.getBackendBucket({ + * name: "my-backend", + * }); + * ``` */ export function getBackendBucket(args: GetBackendBucketArgs, opts?: pulumi.InvokeOptions): Promise { @@ -61,6 +70,15 @@ export interface GetBackendBucketResult { * Get information about a BackendBucket. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const my-backend-bucket = gcp.compute.getBackendBucket({ + * name: "my-backend", + * }); + * ``` */ export function getBackendBucketOutput(args: GetBackendBucketOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getBackendBucket(a, opts)) diff --git a/sdk/nodejs/compute/getBackendService.ts b/sdk/nodejs/compute/getBackendService.ts index 9164acbf85..e377baa3f3 100644 --- a/sdk/nodejs/compute/getBackendService.ts +++ b/sdk/nodejs/compute/getBackendService.ts @@ -12,6 +12,19 @@ import * as utilities from "../utilities"; * and the [API](https://cloud.google.com/compute/docs/reference/latest/backendServices). * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const baz = gcp.compute.getBackendService({ + * name: "foobar", + * }); + * const _default = new gcp.compute.BackendService("default", { + * name: "backend-service", + * healthChecks: baz.then(baz => baz.healthChecks?.[0]), + * }); + * ``` */ export function getBackendService(args: GetBackendServiceArgs, opts?: pulumi.InvokeOptions): Promise { @@ -121,6 +134,19 @@ export interface GetBackendServiceResult { * and the [API](https://cloud.google.com/compute/docs/reference/latest/backendServices). * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const baz = gcp.compute.getBackendService({ + * name: "foobar", + * }); + * const _default = new gcp.compute.BackendService("default", { + * name: "backend-service", + * healthChecks: baz.then(baz => baz.healthChecks?.[0]), + * }); + * ``` */ export function getBackendServiceOutput(args: GetBackendServiceOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getBackendService(a, opts)) diff --git a/sdk/nodejs/compute/getCertificate.ts b/sdk/nodejs/compute/getCertificate.ts index 4869fab5dc..4d8c1ae758 100644 --- a/sdk/nodejs/compute/getCertificate.ts +++ b/sdk/nodejs/compute/getCertificate.ts @@ -8,6 +8,18 @@ import * as utilities from "../utilities"; * Get info about a Google Compute SSL Certificate from its name. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const myCert = gcp.compute.getCertificate({ + * name: "my-cert", + * }); + * export const certificate = myCert.then(myCert => myCert.certificate); + * export const certificateId = myCert.then(myCert => myCert.certificateId); + * export const selfLink = myCert.then(myCert => myCert.selfLink); + * ``` */ export function getCertificate(args: GetCertificateArgs, opts?: pulumi.InvokeOptions): Promise { @@ -58,6 +70,18 @@ export interface GetCertificateResult { * Get info about a Google Compute SSL Certificate from its name. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const myCert = gcp.compute.getCertificate({ + * name: "my-cert", + * }); + * export const certificate = myCert.then(myCert => myCert.certificate); + * export const certificateId = myCert.then(myCert => myCert.certificateId); + * export const selfLink = myCert.then(myCert => myCert.selfLink); + * ``` */ export function getCertificateOutput(args: GetCertificateOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getCertificate(a, opts)) diff --git a/sdk/nodejs/compute/getForwardingRule.ts b/sdk/nodejs/compute/getForwardingRule.ts index 23f8b054c1..30d245b357 100644 --- a/sdk/nodejs/compute/getForwardingRule.ts +++ b/sdk/nodejs/compute/getForwardingRule.ts @@ -10,6 +10,15 @@ import * as utilities from "../utilities"; * Get a forwarding rule within GCE from its name. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const my-forwarding-rule = gcp.compute.getForwardingRule({ + * name: "forwarding-rule-us-east1", + * }); + * ``` */ export function getForwardingRule(args: GetForwardingRuleArgs, opts?: pulumi.InvokeOptions): Promise { @@ -91,6 +100,15 @@ export interface GetForwardingRuleResult { * Get a forwarding rule within GCE from its name. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const my-forwarding-rule = gcp.compute.getForwardingRule({ + * name: "forwarding-rule-us-east1", + * }); + * ``` */ export function getForwardingRuleOutput(args: GetForwardingRuleOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getForwardingRule(a, opts)) diff --git a/sdk/nodejs/compute/getForwardingRules.ts b/sdk/nodejs/compute/getForwardingRules.ts index c71170c08f..99efed8df1 100644 --- a/sdk/nodejs/compute/getForwardingRules.ts +++ b/sdk/nodejs/compute/getForwardingRules.ts @@ -10,6 +10,16 @@ import * as utilities from "../utilities"; * List all networks in a specified Google Cloud project. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const my-forwarding-rules = gcp.compute.getForwardingRules({ + * project: "my-cloud-project", + * region: "us-central1", + * }); + * ``` */ export function getForwardingRules(args?: GetForwardingRulesArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; @@ -62,6 +72,16 @@ export interface GetForwardingRulesResult { * List all networks in a specified Google Cloud project. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const my-forwarding-rules = gcp.compute.getForwardingRules({ + * project: "my-cloud-project", + * region: "us-central1", + * }); + * ``` */ export function getForwardingRulesOutput(args?: GetForwardingRulesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getForwardingRules(a, opts)) diff --git a/sdk/nodejs/compute/getGlobalForwardingRule.ts b/sdk/nodejs/compute/getGlobalForwardingRule.ts index 7427835da7..704dfb9db2 100644 --- a/sdk/nodejs/compute/getGlobalForwardingRule.ts +++ b/sdk/nodejs/compute/getGlobalForwardingRule.ts @@ -10,6 +10,15 @@ import * as utilities from "../utilities"; * Get a global forwarding rule within GCE from its name. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const my-forwarding-rule = gcp.compute.getGlobalForwardingRule({ + * name: "forwarding-rule-global", + * }); + * ``` */ export function getGlobalForwardingRule(args: GetGlobalForwardingRuleArgs, opts?: pulumi.InvokeOptions): Promise { @@ -74,6 +83,15 @@ export interface GetGlobalForwardingRuleResult { * Get a global forwarding rule within GCE from its name. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const my-forwarding-rule = gcp.compute.getGlobalForwardingRule({ + * name: "forwarding-rule-global", + * }); + * ``` */ export function getGlobalForwardingRuleOutput(args: GetGlobalForwardingRuleOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getGlobalForwardingRule(a, opts)) diff --git a/sdk/nodejs/compute/getHcVpnGateway.ts b/sdk/nodejs/compute/getHcVpnGateway.ts index 148d22c9ed..8a5e920c66 100644 --- a/sdk/nodejs/compute/getHcVpnGateway.ts +++ b/sdk/nodejs/compute/getHcVpnGateway.ts @@ -10,6 +10,15 @@ import * as utilities from "../utilities"; * Get a HA VPN Gateway within GCE from its name. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const gateway = gcp.compute.getHcVpnGateway({ + * name: "foobar", + * }); + * ``` */ export function getHcVpnGateway(args: GetHcVpnGatewayArgs, opts?: pulumi.InvokeOptions): Promise { @@ -66,6 +75,15 @@ export interface GetHcVpnGatewayResult { * Get a HA VPN Gateway within GCE from its name. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const gateway = gcp.compute.getHcVpnGateway({ + * name: "foobar", + * }); + * ``` */ export function getHcVpnGatewayOutput(args: GetHcVpnGatewayOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getHcVpnGateway(a, opts)) diff --git a/sdk/nodejs/compute/getHealthCheck.ts b/sdk/nodejs/compute/getHealthCheck.ts index 93d4b09a9e..0e3aad9705 100644 --- a/sdk/nodejs/compute/getHealthCheck.ts +++ b/sdk/nodejs/compute/getHealthCheck.ts @@ -10,6 +10,15 @@ import * as utilities from "../utilities"; * Get information about a HealthCheck. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const healthCheck = gcp.compute.getHealthCheck({ + * name: "my-hc", + * }); + * ``` */ export function getHealthCheck(args: GetHealthCheckArgs, opts?: pulumi.InvokeOptions): Promise { @@ -68,6 +77,15 @@ export interface GetHealthCheckResult { * Get information about a HealthCheck. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const healthCheck = gcp.compute.getHealthCheck({ + * name: "my-hc", + * }); + * ``` */ export function getHealthCheckOutput(args: GetHealthCheckOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getHealthCheck(a, opts)) diff --git a/sdk/nodejs/compute/getLBIPRanges.ts b/sdk/nodejs/compute/getLBIPRanges.ts index f31ac7002e..13155a2eb5 100644 --- a/sdk/nodejs/compute/getLBIPRanges.ts +++ b/sdk/nodejs/compute/getLBIPRanges.ts @@ -10,6 +10,23 @@ import * as utilities from "../utilities"; * https://cloud.google.com/compute/docs/load-balancing/health-checks#health_check_source_ips_and_firewall_rules * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const ranges = gcp.compute.getLBIPRanges({}); + * const lb = new gcp.compute.Firewall("lb", { + * name: "lb-firewall", + * network: main.name, + * allows: [{ + * protocol: "tcp", + * ports: ["80"], + * }], + * sourceRanges: ranges.then(ranges => ranges.networks), + * targetTags: ["InstanceBehindLoadBalancer"], + * }); + * ``` */ export function getLBIPRanges(opts?: pulumi.InvokeOptions): Promise { @@ -41,6 +58,23 @@ export interface GetLBIPRangesResult { * https://cloud.google.com/compute/docs/load-balancing/health-checks#health_check_source_ips_and_firewall_rules * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const ranges = gcp.compute.getLBIPRanges({}); + * const lb = new gcp.compute.Firewall("lb", { + * name: "lb-firewall", + * network: main.name, + * allows: [{ + * protocol: "tcp", + * ports: ["80"], + * }], + * sourceRanges: ranges.then(ranges => ranges.networks), + * targetTags: ["InstanceBehindLoadBalancer"], + * }); + * ``` */ export function getLBIPRangesOutput(opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(getLBIPRanges(opts)) diff --git a/sdk/nodejs/compute/getNetblockIPRanges.ts b/sdk/nodejs/compute/getNetblockIPRanges.ts index 1273a32795..ea1934f239 100644 --- a/sdk/nodejs/compute/getNetblockIPRanges.ts +++ b/sdk/nodejs/compute/getNetblockIPRanges.ts @@ -11,7 +11,36 @@ import * as utilities from "../utilities"; * * ### Cloud Ranges * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const netblock = gcp.compute.getNetblockIPRanges({}); + * export const cidrBlocks = netblock.then(netblock => netblock.cidrBlocks); + * export const cidrBlocksIpv4 = netblock.then(netblock => netblock.cidrBlocksIpv4s); + * export const cidrBlocksIpv6 = netblock.then(netblock => netblock.cidrBlocksIpv6s); + * ``` + * * ### Allow Health Checks + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const legacy-hcs = gcp.compute.getNetblockIPRanges({ + * rangeType: "legacy-health-checkers", + * }); + * const _default = new gcp.compute.Network("default", {name: "test-network"}); + * const allow_hcs = new gcp.compute.Firewall("allow-hcs", { + * name: "allow-hcs", + * network: _default.name, + * allows: [{ + * protocol: "tcp", + * ports: ["80"], + * }], + * sourceRanges: legacy_hcs.then(legacy_hcs => legacy_hcs.cidrBlocksIpv4s), + * }); + * ``` */ export function getNetblockIPRanges(args?: GetNetblockIPRangesArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; @@ -79,7 +108,36 @@ export interface GetNetblockIPRangesResult { * * ### Cloud Ranges * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const netblock = gcp.compute.getNetblockIPRanges({}); + * export const cidrBlocks = netblock.then(netblock => netblock.cidrBlocks); + * export const cidrBlocksIpv4 = netblock.then(netblock => netblock.cidrBlocksIpv4s); + * export const cidrBlocksIpv6 = netblock.then(netblock => netblock.cidrBlocksIpv6s); + * ``` + * * ### Allow Health Checks + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const legacy-hcs = gcp.compute.getNetblockIPRanges({ + * rangeType: "legacy-health-checkers", + * }); + * const _default = new gcp.compute.Network("default", {name: "test-network"}); + * const allow_hcs = new gcp.compute.Firewall("allow-hcs", { + * name: "allow-hcs", + * network: _default.name, + * allows: [{ + * protocol: "tcp", + * ports: ["80"], + * }], + * sourceRanges: legacy_hcs.then(legacy_hcs => legacy_hcs.cidrBlocksIpv4s), + * }); + * ``` */ export function getNetblockIPRangesOutput(args?: GetNetblockIPRangesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getNetblockIPRanges(a, opts)) diff --git a/sdk/nodejs/compute/getNetwork.ts b/sdk/nodejs/compute/getNetwork.ts index d36a41fb8d..ec0e65a27c 100644 --- a/sdk/nodejs/compute/getNetwork.ts +++ b/sdk/nodejs/compute/getNetwork.ts @@ -8,6 +8,15 @@ import * as utilities from "../utilities"; * Get a network within GCE from its name. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const my-network = gcp.compute.getNetwork({ + * name: "default-us-east1", + * }); + * ``` */ export function getNetwork(args: GetNetworkArgs, opts?: pulumi.InvokeOptions): Promise { @@ -71,6 +80,15 @@ export interface GetNetworkResult { * Get a network within GCE from its name. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const my-network = gcp.compute.getNetwork({ + * name: "default-us-east1", + * }); + * ``` */ export function getNetworkOutput(args: GetNetworkOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getNetwork(a, opts)) diff --git a/sdk/nodejs/compute/getNetworks.ts b/sdk/nodejs/compute/getNetworks.ts index f684c229fe..0c8a5ccb18 100644 --- a/sdk/nodejs/compute/getNetworks.ts +++ b/sdk/nodejs/compute/getNetworks.ts @@ -8,6 +8,15 @@ import * as utilities from "../utilities"; * List all networks in a specified Google Cloud project. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const my-networks = gcp.compute.getNetworks({ + * project: "my-cloud-project", + * }); + * ``` */ export function getNetworks(args?: GetNetworksArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; @@ -53,6 +62,15 @@ export interface GetNetworksResult { * List all networks in a specified Google Cloud project. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const my-networks = gcp.compute.getNetworks({ + * project: "my-cloud-project", + * }); + * ``` */ export function getNetworksOutput(args?: GetNetworksOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getNetworks(a, opts)) diff --git a/sdk/nodejs/compute/getRegionSslCertificate.ts b/sdk/nodejs/compute/getRegionSslCertificate.ts index 02fadd782b..60ff40f12b 100644 --- a/sdk/nodejs/compute/getRegionSslCertificate.ts +++ b/sdk/nodejs/compute/getRegionSslCertificate.ts @@ -8,6 +8,18 @@ import * as utilities from "../utilities"; * Get info about a Region Google Compute SSL Certificate from its name. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const myCert = gcp.compute.getRegionSslCertificate({ + * name: "my-cert", + * }); + * export const certificate = myCert.then(myCert => myCert.certificate); + * export const certificateId = myCert.then(myCert => myCert.certificateId); + * export const selfLink = myCert.then(myCert => myCert.selfLink); + * ``` */ export function getRegionSslCertificate(args: GetRegionSslCertificateArgs, opts?: pulumi.InvokeOptions): Promise { @@ -65,6 +77,18 @@ export interface GetRegionSslCertificateResult { * Get info about a Region Google Compute SSL Certificate from its name. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const myCert = gcp.compute.getRegionSslCertificate({ + * name: "my-cert", + * }); + * export const certificate = myCert.then(myCert => myCert.certificate); + * export const certificateId = myCert.then(myCert => myCert.certificateId); + * export const selfLink = myCert.then(myCert => myCert.selfLink); + * ``` */ export function getRegionSslCertificateOutput(args: GetRegionSslCertificateOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getRegionSslCertificate(a, opts)) diff --git a/sdk/nodejs/compute/getSSLPolicy.ts b/sdk/nodejs/compute/getSSLPolicy.ts index 3d8450e0cf..7dbe7d626b 100644 --- a/sdk/nodejs/compute/getSSLPolicy.ts +++ b/sdk/nodejs/compute/getSSLPolicy.ts @@ -9,6 +9,15 @@ import * as utilities from "../utilities"; * For more information see [the official documentation](https://cloud.google.com/compute/docs/load-balancing/ssl-policies). * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const my-ssl-policy = gcp.compute.getSSLPolicy({ + * name: "production-ssl-policy", + * }); + * ``` */ export function getSSLPolicy(args: GetSSLPolicyArgs, opts?: pulumi.InvokeOptions): Promise { @@ -83,6 +92,15 @@ export interface GetSSLPolicyResult { * For more information see [the official documentation](https://cloud.google.com/compute/docs/load-balancing/ssl-policies). * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const my-ssl-policy = gcp.compute.getSSLPolicy({ + * name: "production-ssl-policy", + * }); + * ``` */ export function getSSLPolicyOutput(args: GetSSLPolicyOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getSSLPolicy(a, opts)) diff --git a/sdk/nodejs/compute/getVPNGateway.ts b/sdk/nodejs/compute/getVPNGateway.ts index 31f2a29d9b..f1c4a296ef 100644 --- a/sdk/nodejs/compute/getVPNGateway.ts +++ b/sdk/nodejs/compute/getVPNGateway.ts @@ -8,6 +8,15 @@ import * as utilities from "../utilities"; * Get a VPN gateway within GCE from its name. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const my-vpn-gateway = gcp.compute.getVPNGateway({ + * name: "vpn-gateway-us-east1", + * }); + * ``` */ export function getVPNGateway(args: GetVPNGatewayArgs, opts?: pulumi.InvokeOptions): Promise { @@ -73,6 +82,15 @@ export interface GetVPNGatewayResult { * Get a VPN gateway within GCE from its name. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const my-vpn-gateway = gcp.compute.getVPNGateway({ + * name: "vpn-gateway-us-east1", + * }); + * ``` */ export function getVPNGatewayOutput(args: GetVPNGatewayOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getVPNGateway(a, opts)) diff --git a/sdk/nodejs/compute/instanceTemplate.ts b/sdk/nodejs/compute/instanceTemplate.ts index a090c00400..84bff09121 100644 --- a/sdk/nodejs/compute/instanceTemplate.ts +++ b/sdk/nodejs/compute/instanceTemplate.ts @@ -181,10 +181,42 @@ import * as utilities from "../utilities"; * data source, which will retrieve the latest image on every `pulumi apply`, and will update * the template to use that specific image: * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const myImage = gcp.compute.getImage({ + * family: "debian-11", + * project: "debian-cloud", + * }); + * const instanceTemplate = new gcp.compute.InstanceTemplate("instance_template", { + * namePrefix: "instance-template-", + * machineType: "e2-medium", + * region: "us-central1", + * disks: [{ + * sourceImage: myImage.then(myImage => myImage.selfLink), + * }], + * }); + * ``` + * * To have instances update to the latest on every scaling event or instance re-creation, * use the family as the image for the disk, and it will use GCP's default behavior, setting * the image for the template to the family: * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const instanceTemplate = new gcp.compute.InstanceTemplate("instance_template", { + * namePrefix: "instance-template-", + * machineType: "e2-medium", + * region: "us-central1", + * disks: [{ + * sourceImage: "debian-cloud/debian-11", + * }], + * }); + * ``` + * * ## Import * * Instance templates can be imported using any of these accepted formats: diff --git a/sdk/nodejs/container/getCluster.ts b/sdk/nodejs/container/getCluster.ts index 74e9757c1c..a3608daa18 100644 --- a/sdk/nodejs/container/getCluster.ts +++ b/sdk/nodejs/container/getCluster.ts @@ -10,6 +10,20 @@ import * as utilities from "../utilities"; * Get info about a GKE cluster from its name and location. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const myCluster = gcp.container.getCluster({ + * name: "my-cluster", + * location: "us-east1-a", + * }); + * export const endpoint = myCluster.then(myCluster => myCluster.endpoint); + * export const instanceGroupUrls = myCluster.then(myCluster => myCluster.nodePools?.[0]?.instanceGroupUrls); + * export const nodeConfig = myCluster.then(myCluster => myCluster.nodeConfigs); + * export const nodePools = myCluster.then(myCluster => myCluster.nodePools); + * ``` */ export function getCluster(args: GetClusterArgs, opts?: pulumi.InvokeOptions): Promise { @@ -132,6 +146,20 @@ export interface GetClusterResult { * Get info about a GKE cluster from its name and location. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const myCluster = gcp.container.getCluster({ + * name: "my-cluster", + * location: "us-east1-a", + * }); + * export const endpoint = myCluster.then(myCluster => myCluster.endpoint); + * export const instanceGroupUrls = myCluster.then(myCluster => myCluster.nodePools?.[0]?.instanceGroupUrls); + * export const nodeConfig = myCluster.then(myCluster => myCluster.nodeConfigs); + * export const nodePools = myCluster.then(myCluster => myCluster.nodePools); + * ``` */ export function getClusterOutput(args: GetClusterOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getCluster(a, opts)) diff --git a/sdk/nodejs/dataproc/getMetastoreService.ts b/sdk/nodejs/dataproc/getMetastoreService.ts index c9ff2550cc..e6276ef6a2 100644 --- a/sdk/nodejs/dataproc/getMetastoreService.ts +++ b/sdk/nodejs/dataproc/getMetastoreService.ts @@ -10,6 +10,16 @@ import * as utilities from "../utilities"; * Get a Dataproc Metastore service from Google Cloud by its id and location. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const foo = gcp.dataproc.getMetastoreService({ + * serviceId: "foo-bar", + * location: "global", + * }); + * ``` */ export function getMetastoreService(args: GetMetastoreServiceArgs, opts?: pulumi.InvokeOptions): Promise { @@ -80,6 +90,16 @@ export interface GetMetastoreServiceResult { * Get a Dataproc Metastore service from Google Cloud by its id and location. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const foo = gcp.dataproc.getMetastoreService({ + * serviceId: "foo-bar", + * location: "global", + * }); + * ``` */ export function getMetastoreServiceOutput(args: GetMetastoreServiceOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getMetastoreService(a, opts)) diff --git a/sdk/nodejs/dns/getRecordSet.ts b/sdk/nodejs/dns/getRecordSet.ts index 0e6821bd35..5ea526a6a4 100644 --- a/sdk/nodejs/dns/getRecordSet.ts +++ b/sdk/nodejs/dns/getRecordSet.ts @@ -12,6 +12,20 @@ import * as utilities from "../utilities"; * [API](https://cloud.google.com/dns/docs/reference/v1/resourceRecordSets) * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const sample = gcp.dns.getManagedZone({ + * name: "sample-zone", + * }); + * const rs = Promise.all([sample, sample]).then(([sample, sample1]) => gcp.dns.getRecordSet({ + * managedZone: sample.name, + * name: `my-record.${sample1.dnsName}`, + * type: "A", + * })); + * ``` */ export function getRecordSet(args: GetRecordSetArgs, opts?: pulumi.InvokeOptions): Promise { @@ -75,6 +89,20 @@ export interface GetRecordSetResult { * [API](https://cloud.google.com/dns/docs/reference/v1/resourceRecordSets) * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const sample = gcp.dns.getManagedZone({ + * name: "sample-zone", + * }); + * const rs = Promise.all([sample, sample]).then(([sample, sample1]) => gcp.dns.getRecordSet({ + * managedZone: sample.name, + * name: `my-record.${sample1.dnsName}`, + * type: "A", + * })); + * ``` */ export function getRecordSetOutput(args: GetRecordSetOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getRecordSet(a, opts)) diff --git a/sdk/nodejs/filestore/getInstance.ts b/sdk/nodejs/filestore/getInstance.ts index 359269e109..f20a5ff7d3 100644 --- a/sdk/nodejs/filestore/getInstance.ts +++ b/sdk/nodejs/filestore/getInstance.ts @@ -10,6 +10,18 @@ import * as utilities from "../utilities"; * Get info about a Google Cloud Filestore instance. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const myInstance = gcp.filestore.getInstance({ + * name: "my-filestore-instance", + * }); + * export const instanceIpAddresses = myInstance.then(myInstance => myInstance.networks?.ipAddresses); + * export const instanceConnectMode = myInstance.then(myInstance => myInstance.networks?.connectMode); + * export const instanceFileShareName = myInstance.then(myInstance => myInstance.fileShares?.name); + * ``` */ export function getInstance(args: GetInstanceArgs, opts?: pulumi.InvokeOptions): Promise { @@ -72,6 +84,18 @@ export interface GetInstanceResult { * Get info about a Google Cloud Filestore instance. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const myInstance = gcp.filestore.getInstance({ + * name: "my-filestore-instance", + * }); + * export const instanceIpAddresses = myInstance.then(myInstance => myInstance.networks?.ipAddresses); + * export const instanceConnectMode = myInstance.then(myInstance => myInstance.networks?.connectMode); + * export const instanceFileShareName = myInstance.then(myInstance => myInstance.fileShares?.name); + * ``` */ export function getInstanceOutput(args: GetInstanceOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getInstance(a, opts)) diff --git a/sdk/nodejs/iam/getWorkloadIdentityPool.ts b/sdk/nodejs/iam/getWorkloadIdentityPool.ts index c83c957ce7..da1b68db2c 100644 --- a/sdk/nodejs/iam/getWorkloadIdentityPool.ts +++ b/sdk/nodejs/iam/getWorkloadIdentityPool.ts @@ -8,6 +8,15 @@ import * as utilities from "../utilities"; * Get a IAM workload identity pool from Google Cloud by its id. * > **Note:** The following resource requires the Beta IAM role `roles/iam.workloadIdentityPoolAdmin` in order to succeed. `OWNER` and `EDITOR` roles do not include the necessary permissions. * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const foo = gcp.iam.getWorkloadIdentityPool({ + * workloadIdentityPoolId: "foo-pool", + * }); + * ``` */ export function getWorkloadIdentityPool(args: GetWorkloadIdentityPoolArgs, opts?: pulumi.InvokeOptions): Promise { @@ -56,6 +65,15 @@ export interface GetWorkloadIdentityPoolResult { * Get a IAM workload identity pool from Google Cloud by its id. * > **Note:** The following resource requires the Beta IAM role `roles/iam.workloadIdentityPoolAdmin` in order to succeed. `OWNER` and `EDITOR` roles do not include the necessary permissions. * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const foo = gcp.iam.getWorkloadIdentityPool({ + * workloadIdentityPoolId: "foo-pool", + * }); + * ``` */ export function getWorkloadIdentityPoolOutput(args: GetWorkloadIdentityPoolOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getWorkloadIdentityPool(a, opts)) diff --git a/sdk/nodejs/iam/getWorkloadIdentityPoolProvider.ts b/sdk/nodejs/iam/getWorkloadIdentityPoolProvider.ts index 783a1f727d..b2c23a5c3a 100644 --- a/sdk/nodejs/iam/getWorkloadIdentityPoolProvider.ts +++ b/sdk/nodejs/iam/getWorkloadIdentityPoolProvider.ts @@ -10,6 +10,16 @@ import * as utilities from "../utilities"; * Get a IAM workload identity provider from Google Cloud by its id. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const foo = gcp.iam.getWorkloadIdentityPoolProvider({ + * workloadIdentityPoolId: "foo-pool", + * workloadIdentityPoolProviderId: "bar-provider", + * }); + * ``` */ export function getWorkloadIdentityPoolProvider(args: GetWorkloadIdentityPoolProviderArgs, opts?: pulumi.InvokeOptions): Promise { @@ -70,6 +80,16 @@ export interface GetWorkloadIdentityPoolProviderResult { * Get a IAM workload identity provider from Google Cloud by its id. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const foo = gcp.iam.getWorkloadIdentityPoolProvider({ + * workloadIdentityPoolId: "foo-pool", + * workloadIdentityPoolProviderId: "bar-provider", + * }); + * ``` */ export function getWorkloadIdentityPoolProviderOutput(args: GetWorkloadIdentityPoolProviderOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getWorkloadIdentityPoolProvider(a, opts)) diff --git a/sdk/nodejs/iap/getClient.ts b/sdk/nodejs/iap/getClient.ts index dae766f1f2..f9faa480f7 100644 --- a/sdk/nodejs/iap/getClient.ts +++ b/sdk/nodejs/iap/getClient.ts @@ -8,6 +8,19 @@ import * as utilities from "../utilities"; * Get info about a Google Cloud IAP Client. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const project = gcp.organizations.getProject({ + * projectId: "foobar", + * }); + * const projectClient = project.then(project => gcp.iap.getClient({ + * brand: `projects/${project.number}/brands/[BRAND_NUMBER]`, + * clientId: apps.googleusercontent.com, + * })); + * ``` */ export function getClient(args: GetClientArgs, opts?: pulumi.InvokeOptions): Promise { @@ -49,6 +62,19 @@ export interface GetClientResult { * Get info about a Google Cloud IAP Client. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const project = gcp.organizations.getProject({ + * projectId: "foobar", + * }); + * const projectClient = project.then(project => gcp.iap.getClient({ + * brand: `projects/${project.number}/brands/[BRAND_NUMBER]`, + * clientId: apps.googleusercontent.com, + * })); + * ``` */ export function getClientOutput(args: GetClientOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getClient(a, opts)) diff --git a/sdk/nodejs/monitoring/getSecretVersion.ts b/sdk/nodejs/monitoring/getSecretVersion.ts index 0890020174..ed41cf4e97 100644 --- a/sdk/nodejs/monitoring/getSecretVersion.ts +++ b/sdk/nodejs/monitoring/getSecretVersion.ts @@ -5,7 +5,7 @@ import * as pulumi from "@pulumi/pulumi"; import * as utilities from "../utilities"; /** - * Get the value and metadata from a Secret Manager secret version. For more information see the official documentation datasource. + * Get the value and metadata from a Secret Manager secret version. For more information see the [official documentation](https://cloud.google.com/secret-manager/docs/) and [API](https://cloud.google.com/secret-manager/docs/reference/rest/v1/projects.secrets.versions). If you don't need the metadata (i.e., if you want to use a more limited role to access the secret version only), see also the gcp.secretmanager.getSecretVersionAccess datasource. * * ## Example Usage * @@ -84,7 +84,7 @@ export interface GetSecretVersionResult { readonly version: string; } /** - * Get the value and metadata from a Secret Manager secret version. For more information see the official documentation datasource. + * Get the value and metadata from a Secret Manager secret version. For more information see the [official documentation](https://cloud.google.com/secret-manager/docs/) and [API](https://cloud.google.com/secret-manager/docs/reference/rest/v1/projects.secrets.versions). If you don't need the metadata (i.e., if you want to use a more limited role to access the secret version only), see also the gcp.secretmanager.getSecretVersionAccess datasource. * * ## Example Usage * diff --git a/sdk/nodejs/organizations/getActiveFolder.ts b/sdk/nodejs/organizations/getActiveFolder.ts index 670c410b3a..edd71c4416 100644 --- a/sdk/nodejs/organizations/getActiveFolder.ts +++ b/sdk/nodejs/organizations/getActiveFolder.ts @@ -8,6 +8,16 @@ import * as utilities from "../utilities"; * Get an active folder within GCP by `displayName` and `parent`. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const department1 = gcp.organizations.getActiveFolder({ + * displayName: "Department 1", + * parent: "organizations/1234567", + * }); + * ``` */ export function getActiveFolder(args: GetActiveFolderArgs, opts?: pulumi.InvokeOptions): Promise { @@ -57,6 +67,16 @@ export interface GetActiveFolderResult { * Get an active folder within GCP by `displayName` and `parent`. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const department1 = gcp.organizations.getActiveFolder({ + * displayName: "Department 1", + * parent: "organizations/1234567", + * }); + * ``` */ export function getActiveFolderOutput(args: GetActiveFolderOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getActiveFolder(a, opts)) diff --git a/sdk/nodejs/organizations/getClientConfig.ts b/sdk/nodejs/organizations/getClientConfig.ts index fea95d723a..320e340b18 100644 --- a/sdk/nodejs/organizations/getClientConfig.ts +++ b/sdk/nodejs/organizations/getClientConfig.ts @@ -7,7 +7,13 @@ import * as utilities from "../utilities"; /** * ## Example Usage * - * ### Configure Kubernetes Provider With OAuth2 Access Token + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const current = gcp.organizations.getClientConfig({}); + * export const project = current.then(current => current.project); + * ``` */ export function getClientConfig(opts?: pulumi.InvokeOptions): Promise { @@ -41,7 +47,13 @@ export interface GetClientConfigResult { /** * ## Example Usage * - * ### Configure Kubernetes Provider With OAuth2 Access Token + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const current = gcp.organizations.getClientConfig({}); + * export const project = current.then(current => current.project); + * ``` */ export function getClientConfigOutput(opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(getClientConfig(opts)) diff --git a/sdk/nodejs/redis/getInstance.ts b/sdk/nodejs/redis/getInstance.ts index e192558d5f..4e48a4a0cc 100644 --- a/sdk/nodejs/redis/getInstance.ts +++ b/sdk/nodejs/redis/getInstance.ts @@ -10,6 +10,18 @@ import * as utilities from "../utilities"; * Get info about a Google Cloud Redis instance. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const myInstance = gcp.redis.getInstance({ + * name: "my-redis-instance", + * }); + * export const instanceMemorySizeGb = myInstance.then(myInstance => myInstance.memorySizeGb); + * export const instanceConnectMode = myInstance.then(myInstance => myInstance.connectMode); + * export const instanceAuthorizedNetwork = myInstance.then(myInstance => myInstance.authorizedNetwork); + * ``` */ export function getInstance(args: GetInstanceArgs, opts?: pulumi.InvokeOptions): Promise { @@ -92,6 +104,18 @@ export interface GetInstanceResult { * Get info about a Google Cloud Redis instance. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const myInstance = gcp.redis.getInstance({ + * name: "my-redis-instance", + * }); + * export const instanceMemorySizeGb = myInstance.then(myInstance => myInstance.memorySizeGb); + * export const instanceConnectMode = myInstance.then(myInstance => myInstance.connectMode); + * export const instanceAuthorizedNetwork = myInstance.then(myInstance => myInstance.authorizedNetwork); + * ``` */ export function getInstanceOutput(args: GetInstanceOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getInstance(a, opts)) diff --git a/sdk/nodejs/secretmanager/getSecretVersion.ts b/sdk/nodejs/secretmanager/getSecretVersion.ts index 9b20e3d4f6..d7f16cc833 100644 --- a/sdk/nodejs/secretmanager/getSecretVersion.ts +++ b/sdk/nodejs/secretmanager/getSecretVersion.ts @@ -5,7 +5,7 @@ import * as pulumi from "@pulumi/pulumi"; import * as utilities from "../utilities"; /** - * Get the value and metadata from a Secret Manager secret version. For more information see the official documentation datasource. + * Get the value and metadata from a Secret Manager secret version. For more information see the [official documentation](https://cloud.google.com/secret-manager/docs/) and [API](https://cloud.google.com/secret-manager/docs/reference/rest/v1/projects.secrets.versions). If you don't need the metadata (i.e., if you want to use a more limited role to access the secret version only), see also the gcp.secretmanager.getSecretVersionAccess datasource. * * ## Example Usage * @@ -82,7 +82,7 @@ export interface GetSecretVersionResult { readonly version: string; } /** - * Get the value and metadata from a Secret Manager secret version. For more information see the official documentation datasource. + * Get the value and metadata from a Secret Manager secret version. For more information see the [official documentation](https://cloud.google.com/secret-manager/docs/) and [API](https://cloud.google.com/secret-manager/docs/reference/rest/v1/projects.secrets.versions). If you don't need the metadata (i.e., if you want to use a more limited role to access the secret version only), see also the gcp.secretmanager.getSecretVersionAccess datasource. * * ## Example Usage * diff --git a/sdk/nodejs/spanner/getInstance.ts b/sdk/nodejs/spanner/getInstance.ts index 00f70a37cf..d62d868aac 100644 --- a/sdk/nodejs/spanner/getInstance.ts +++ b/sdk/nodejs/spanner/getInstance.ts @@ -10,6 +10,15 @@ import * as utilities from "../utilities"; * Get a spanner instance from Google Cloud by its name. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const foo = gcp.spanner.getInstance({ + * name: "bar", + * }); + * ``` */ export function getInstance(args: GetInstanceArgs, opts?: pulumi.InvokeOptions): Promise { @@ -66,6 +75,15 @@ export interface GetInstanceResult { * Get a spanner instance from Google Cloud by its name. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const foo = gcp.spanner.getInstance({ + * name: "bar", + * }); + * ``` */ export function getInstanceOutput(args: GetInstanceOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getInstance(a, opts)) diff --git a/sdk/nodejs/tags/getTagKey.ts b/sdk/nodejs/tags/getTagKey.ts index 2868eba7d4..2b11eddc57 100644 --- a/sdk/nodejs/tags/getTagKey.ts +++ b/sdk/nodejs/tags/getTagKey.ts @@ -8,6 +8,25 @@ import * as utilities from "../utilities"; * Get a tag key by org or project `parent` and `shortName`. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const environmentTagKey = gcp.tags.getTagKey({ + * parent: "organizations/12345", + * shortName: "environment", + * }); + * ``` + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const environmentTagKey = gcp.tags.getTagKey({ + * parent: "projects/abc", + * shortName: "environment", + * }); + * ``` */ export function getTagKey(args: GetTagKeyArgs, opts?: pulumi.InvokeOptions): Promise { @@ -66,6 +85,25 @@ export interface GetTagKeyResult { * Get a tag key by org or project `parent` and `shortName`. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const environmentTagKey = gcp.tags.getTagKey({ + * parent: "organizations/12345", + * shortName: "environment", + * }); + * ``` + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const environmentTagKey = gcp.tags.getTagKey({ + * parent: "projects/abc", + * shortName: "environment", + * }); + * ``` */ export function getTagKeyOutput(args: GetTagKeyOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getTagKey(a, opts)) diff --git a/sdk/nodejs/tags/getTagKeys.ts b/sdk/nodejs/tags/getTagKeys.ts index 16c5254633..e1a39ab40d 100644 --- a/sdk/nodejs/tags/getTagKeys.ts +++ b/sdk/nodejs/tags/getTagKeys.ts @@ -10,6 +10,23 @@ import * as utilities from "../utilities"; * Get tag keys by org or project `parent`. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const environmentTagKey = gcp.tags.getTagKeys({ + * parent: "organizations/12345", + * }); + * ``` + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const environmentTagKey = gcp.tags.getTagKeys({ + * parent: "projects/abc", + * }); + * ``` */ export function getTagKeys(args: GetTagKeysArgs, opts?: pulumi.InvokeOptions): Promise { @@ -47,6 +64,23 @@ export interface GetTagKeysResult { * Get tag keys by org or project `parent`. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const environmentTagKey = gcp.tags.getTagKeys({ + * parent: "organizations/12345", + * }); + * ``` + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const environmentTagKey = gcp.tags.getTagKeys({ + * parent: "projects/abc", + * }); + * ``` */ export function getTagKeysOutput(args: GetTagKeysOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getTagKeys(a, opts)) diff --git a/sdk/nodejs/tags/getTagValue.ts b/sdk/nodejs/tags/getTagValue.ts index a4c5e6aff1..1b1acf5ac9 100644 --- a/sdk/nodejs/tags/getTagValue.ts +++ b/sdk/nodejs/tags/getTagValue.ts @@ -8,6 +8,16 @@ import * as utilities from "../utilities"; * Get a tag value by `parent` key and `shortName`. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const environmentProdTagValue = gcp.tags.getTagValue({ + * parent: "tagKeys/56789", + * shortName: "production", + * }); + * ``` */ export function getTagValue(args: GetTagValueArgs, opts?: pulumi.InvokeOptions): Promise { @@ -66,6 +76,16 @@ export interface GetTagValueResult { * Get a tag value by `parent` key and `shortName`. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const environmentProdTagValue = gcp.tags.getTagValue({ + * parent: "tagKeys/56789", + * shortName: "production", + * }); + * ``` */ export function getTagValueOutput(args: GetTagValueOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getTagValue(a, opts)) diff --git a/sdk/nodejs/tags/getTagValues.ts b/sdk/nodejs/tags/getTagValues.ts index 82f0381a71..c0bef95786 100644 --- a/sdk/nodejs/tags/getTagValues.ts +++ b/sdk/nodejs/tags/getTagValues.ts @@ -10,6 +10,15 @@ import * as utilities from "../utilities"; * Get tag values from a `parent` key. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const environmentTagValues = gcp.tags.getTagValues({ + * parent: "tagKeys/56789", + * }); + * ``` */ export function getTagValues(args: GetTagValuesArgs, opts?: pulumi.InvokeOptions): Promise { @@ -47,6 +56,15 @@ export interface GetTagValuesResult { * Get tag values from a `parent` key. * * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as gcp from "@pulumi/gcp"; + * + * const environmentTagValues = gcp.tags.getTagValues({ + * parent: "tagKeys/56789", + * }); + * ``` */ export function getTagValuesOutput(args: GetTagValuesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getTagValues(a, opts)) diff --git a/sdk/python/pulumi_gcp/certificateauthority/get_authority.py b/sdk/python/pulumi_gcp/certificateauthority/get_authority.py index cf3e8a8587..01dd0ae184 100644 --- a/sdk/python/pulumi_gcp/certificateauthority/get_authority.py +++ b/sdk/python/pulumi_gcp/certificateauthority/get_authority.py @@ -288,6 +288,16 @@ def get_authority(certificate_authority_id: Optional[str] = None, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + default = gcp.certificateauthority.get_authority(location="us-west1", + pool="pool-name", + certificate_authority_id="ca-id") + pulumi.export("csr", default.pem_csr) + ``` + :param str certificate_authority_id: ID of the certificate authority. @@ -345,6 +355,16 @@ def get_authority_output(certificate_authority_id: Optional[pulumi.Input[Optiona ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + default = gcp.certificateauthority.get_authority(location="us-west1", + pool="pool-name", + certificate_authority_id="ca-id") + pulumi.export("csr", default.pem_csr) + ``` + :param str certificate_authority_id: ID of the certificate authority. diff --git a/sdk/python/pulumi_gcp/certificatemanager/get_certificate_map.py b/sdk/python/pulumi_gcp/certificatemanager/get_certificate_map.py index 601b382495..1109e4cfda 100644 --- a/sdk/python/pulumi_gcp/certificatemanager/get_certificate_map.py +++ b/sdk/python/pulumi_gcp/certificatemanager/get_certificate_map.py @@ -139,6 +139,13 @@ def get_certificate_map(name: Optional[str] = None, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + default = gcp.certificatemanager.get_certificate_map(name="cert-map") + ``` + :param str name: The name of the certificate map. @@ -174,6 +181,13 @@ def get_certificate_map_output(name: Optional[pulumi.Input[str]] = None, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + default = gcp.certificatemanager.get_certificate_map(name="cert-map") + ``` + :param str name: The name of the certificate map. diff --git a/sdk/python/pulumi_gcp/cloudidentity/get_group_lookup.py b/sdk/python/pulumi_gcp/cloudidentity/get_group_lookup.py index 88c5d594eb..006d4bcef9 100644 --- a/sdk/python/pulumi_gcp/cloudidentity/get_group_lookup.py +++ b/sdk/python/pulumi_gcp/cloudidentity/get_group_lookup.py @@ -81,6 +81,15 @@ def get_group_lookup(group_key: Optional[Union['GetGroupLookupGroupKeyArgs', 'Ge ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + group = gcp.cloudidentity.get_group_lookup(group_key={ + "id": "my-group@example.com", + }) + ``` + :param Union['GetGroupLookupGroupKeyArgs', 'GetGroupLookupGroupKeyArgsDict'] group_key: The EntityKey of the Group to lookup. A unique identifier for an entity in the Cloud Identity Groups API. An entity can represent either a group with an optional namespace or a user without a namespace. @@ -107,6 +116,15 @@ def get_group_lookup_output(group_key: Optional[pulumi.Input[Union['GetGroupLook ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + group = gcp.cloudidentity.get_group_lookup(group_key={ + "id": "my-group@example.com", + }) + ``` + :param Union['GetGroupLookupGroupKeyArgs', 'GetGroupLookupGroupKeyArgsDict'] group_key: The EntityKey of the Group to lookup. A unique identifier for an entity in the Cloud Identity Groups API. An entity can represent either a group with an optional namespace or a user without a namespace. diff --git a/sdk/python/pulumi_gcp/cloudidentity/get_group_memberships.py b/sdk/python/pulumi_gcp/cloudidentity/get_group_memberships.py index 4af72dd48f..5d3a1dad36 100644 --- a/sdk/python/pulumi_gcp/cloudidentity/get_group_memberships.py +++ b/sdk/python/pulumi_gcp/cloudidentity/get_group_memberships.py @@ -86,6 +86,13 @@ def get_group_memberships(group: Optional[str] = None, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + members = gcp.cloudidentity.get_group_memberships(group="groups/123eab45c6defghi") + ``` + :param str group: The parent Group resource under which to lookup the Membership names. Must be of the form groups/{group_id}. """ @@ -116,6 +123,13 @@ def get_group_memberships_output(group: Optional[pulumi.Input[str]] = None, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + members = gcp.cloudidentity.get_group_memberships(group="groups/123eab45c6defghi") + ``` + :param str group: The parent Group resource under which to lookup the Membership names. Must be of the form groups/{group_id}. """ diff --git a/sdk/python/pulumi_gcp/cloudidentity/get_groups.py b/sdk/python/pulumi_gcp/cloudidentity/get_groups.py index bd76bbe78c..8267b36510 100644 --- a/sdk/python/pulumi_gcp/cloudidentity/get_groups.py +++ b/sdk/python/pulumi_gcp/cloudidentity/get_groups.py @@ -80,6 +80,13 @@ def get_groups(parent: Optional[str] = None, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + groups = gcp.cloudidentity.get_groups(parent="customers/A01b123xz") + ``` + :param str parent: The parent resource under which to list all Groups. Must be of the form identitysources/{identity_source_id} for external- identity-mapped groups or customers/{customer_id} for Google Groups. """ @@ -104,6 +111,13 @@ def get_groups_output(parent: Optional[pulumi.Input[str]] = None, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + groups = gcp.cloudidentity.get_groups(parent="customers/A01b123xz") + ``` + :param str parent: The parent resource under which to list all Groups. Must be of the form identitysources/{identity_source_id} for external- identity-mapped groups or customers/{customer_id} for Google Groups. """ diff --git a/sdk/python/pulumi_gcp/compute/disk_async_replication.py b/sdk/python/pulumi_gcp/compute/disk_async_replication.py index d985d8f311..7190ce5d12 100644 --- a/sdk/python/pulumi_gcp/compute/disk_async_replication.py +++ b/sdk/python/pulumi_gcp/compute/disk_async_replication.py @@ -119,6 +119,30 @@ def __init__(__self__, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + primary_disk = gcp.compute.Disk("primary-disk", + name="primary-disk", + type="pd-ssd", + zone="europe-west4-a", + physical_block_size_bytes=4096) + secondary_disk = gcp.compute.Disk("secondary-disk", + name="secondary-disk", + type="pd-ssd", + zone="europe-west3-a", + async_primary_disk={ + "disk": primary_disk.id, + }, + physical_block_size_bytes=4096) + replication = gcp.compute.DiskAsyncReplication("replication", + primary_disk=primary_disk.id, + secondary_disk={ + "disk": secondary_disk.id, + }) + ``` + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] primary_disk: The primary disk (source of replication). @@ -139,6 +163,30 @@ def __init__(__self__, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + primary_disk = gcp.compute.Disk("primary-disk", + name="primary-disk", + type="pd-ssd", + zone="europe-west4-a", + physical_block_size_bytes=4096) + secondary_disk = gcp.compute.Disk("secondary-disk", + name="secondary-disk", + type="pd-ssd", + zone="europe-west3-a", + async_primary_disk={ + "disk": primary_disk.id, + }, + physical_block_size_bytes=4096) + replication = gcp.compute.DiskAsyncReplication("replication", + primary_disk=primary_disk.id, + secondary_disk={ + "disk": secondary_disk.id, + }) + ``` + :param str resource_name: The name of the resource. :param DiskAsyncReplicationArgs 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_gcp/compute/get_backend_bucket.py b/sdk/python/pulumi_gcp/compute/get_backend_bucket.py index 1634d5c23d..47dd7a7220 100644 --- a/sdk/python/pulumi_gcp/compute/get_backend_bucket.py +++ b/sdk/python/pulumi_gcp/compute/get_backend_bucket.py @@ -157,6 +157,13 @@ def get_backend_bucket(name: Optional[str] = None, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + my_backend_bucket = gcp.compute.get_backend_bucket(name="my-backend") + ``` + :param str name: Name of the resource. @@ -194,6 +201,13 @@ def get_backend_bucket_output(name: Optional[pulumi.Input[str]] = None, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + my_backend_bucket = gcp.compute.get_backend_bucket(name="my-backend") + ``` + :param str name: Name of the resource. diff --git a/sdk/python/pulumi_gcp/compute/get_backend_service.py b/sdk/python/pulumi_gcp/compute/get_backend_service.py index b1ddff95aa..d0387eebad 100644 --- a/sdk/python/pulumi_gcp/compute/get_backend_service.py +++ b/sdk/python/pulumi_gcp/compute/get_backend_service.py @@ -384,6 +384,16 @@ def get_backend_service(name: Optional[str] = None, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + baz = gcp.compute.get_backend_service(name="foobar") + default = gcp.compute.BackendService("default", + name="backend-service", + health_checks=baz.health_checks[0]) + ``` + :param str name: The name of the Backend Service. @@ -443,6 +453,16 @@ def get_backend_service_output(name: Optional[pulumi.Input[str]] = None, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + baz = gcp.compute.get_backend_service(name="foobar") + default = gcp.compute.BackendService("default", + name="backend-service", + health_checks=baz.health_checks[0]) + ``` + :param str name: The name of the Backend Service. diff --git a/sdk/python/pulumi_gcp/compute/get_certificate.py b/sdk/python/pulumi_gcp/compute/get_certificate.py index ea9950b6f2..2a19593fad 100644 --- a/sdk/python/pulumi_gcp/compute/get_certificate.py +++ b/sdk/python/pulumi_gcp/compute/get_certificate.py @@ -147,6 +147,16 @@ def get_certificate(name: Optional[str] = None, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + my_cert = gcp.compute.get_certificate(name="my-cert") + pulumi.export("certificate", my_cert.certificate) + pulumi.export("certificateId", my_cert.certificate_id) + pulumi.export("selfLink", my_cert.self_link) + ``` + :param str name: The name of the certificate. @@ -183,6 +193,16 @@ def get_certificate_output(name: Optional[pulumi.Input[str]] = None, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + my_cert = gcp.compute.get_certificate(name="my-cert") + pulumi.export("certificate", my_cert.certificate) + pulumi.export("certificateId", my_cert.certificate_id) + pulumi.export("selfLink", my_cert.self_link) + ``` + :param str name: The name of the certificate. diff --git a/sdk/python/pulumi_gcp/compute/get_forwarding_rule.py b/sdk/python/pulumi_gcp/compute/get_forwarding_rule.py index 03a5551ba9..89029c9f5f 100644 --- a/sdk/python/pulumi_gcp/compute/get_forwarding_rule.py +++ b/sdk/python/pulumi_gcp/compute/get_forwarding_rule.py @@ -365,6 +365,13 @@ def get_forwarding_rule(name: Optional[str] = None, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + my_forwarding_rule = gcp.compute.get_forwarding_rule(name="forwarding-rule-us-east1") + ``` + :param str name: The name of the forwarding rule. @@ -430,6 +437,13 @@ def get_forwarding_rule_output(name: Optional[pulumi.Input[str]] = None, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + my_forwarding_rule = gcp.compute.get_forwarding_rule(name="forwarding-rule-us-east1") + ``` + :param str name: The name of the forwarding rule. diff --git a/sdk/python/pulumi_gcp/compute/get_forwarding_rules.py b/sdk/python/pulumi_gcp/compute/get_forwarding_rules.py index 3dfd734349..3d9ef22835 100644 --- a/sdk/python/pulumi_gcp/compute/get_forwarding_rules.py +++ b/sdk/python/pulumi_gcp/compute/get_forwarding_rules.py @@ -94,6 +94,14 @@ def get_forwarding_rules(project: Optional[str] = None, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + my_forwarding_rules = gcp.compute.get_forwarding_rules(project="my-cloud-project", + region="us-central1") + ``` + :param str project: The name of the project. :param str region: The region you want to get the forwarding rules from. @@ -122,6 +130,14 @@ def get_forwarding_rules_output(project: Optional[pulumi.Input[Optional[str]]] = ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + my_forwarding_rules = gcp.compute.get_forwarding_rules(project="my-cloud-project", + region="us-central1") + ``` + :param str project: The name of the project. :param str region: The region you want to get the forwarding rules from. diff --git a/sdk/python/pulumi_gcp/compute/get_global_forwarding_rule.py b/sdk/python/pulumi_gcp/compute/get_global_forwarding_rule.py index 6c60d6133e..be96ce6ed7 100644 --- a/sdk/python/pulumi_gcp/compute/get_global_forwarding_rule.py +++ b/sdk/python/pulumi_gcp/compute/get_global_forwarding_rule.py @@ -274,6 +274,13 @@ def get_global_forwarding_rule(name: Optional[str] = None, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + my_forwarding_rule = gcp.compute.get_global_forwarding_rule(name="forwarding-rule-global") + ``` + :param str name: The name of the global forwarding rule. @@ -324,6 +331,13 @@ def get_global_forwarding_rule_output(name: Optional[pulumi.Input[str]] = None, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + my_forwarding_rule = gcp.compute.get_global_forwarding_rule(name="forwarding-rule-global") + ``` + :param str name: The name of the global forwarding rule. diff --git a/sdk/python/pulumi_gcp/compute/get_hc_vpn_gateway.py b/sdk/python/pulumi_gcp/compute/get_hc_vpn_gateway.py index ba724f2af6..97b9b745aa 100644 --- a/sdk/python/pulumi_gcp/compute/get_hc_vpn_gateway.py +++ b/sdk/python/pulumi_gcp/compute/get_hc_vpn_gateway.py @@ -140,6 +140,13 @@ def get_hc_vpn_gateway(name: Optional[str] = None, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + gateway = gcp.compute.get_hc_vpn_gateway(name="foobar") + ``` + :param str name: The name of the forwarding rule. @@ -180,6 +187,13 @@ def get_hc_vpn_gateway_output(name: Optional[pulumi.Input[str]] = None, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + gateway = gcp.compute.get_hc_vpn_gateway(name="foobar") + ``` + :param str name: The name of the forwarding rule. diff --git a/sdk/python/pulumi_gcp/compute/get_health_check.py b/sdk/python/pulumi_gcp/compute/get_health_check.py index 482267ef28..bad2ca77ae 100644 --- a/sdk/python/pulumi_gcp/compute/get_health_check.py +++ b/sdk/python/pulumi_gcp/compute/get_health_check.py @@ -220,6 +220,13 @@ def get_health_check(name: Optional[str] = None, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + health_check = gcp.compute.get_health_check(name="my-hc") + ``` + :param str name: Name of the resource. @@ -264,6 +271,13 @@ def get_health_check_output(name: Optional[pulumi.Input[str]] = None, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + health_check = gcp.compute.get_health_check(name="my-hc") + ``` + :param str name: Name of the resource. diff --git a/sdk/python/pulumi_gcp/compute/get_lbip_ranges.py b/sdk/python/pulumi_gcp/compute/get_lbip_ranges.py index dff4a057df..660e736336 100644 --- a/sdk/python/pulumi_gcp/compute/get_lbip_ranges.py +++ b/sdk/python/pulumi_gcp/compute/get_lbip_ranges.py @@ -80,6 +80,22 @@ def get_lbip_ranges(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGet https://cloud.google.com/compute/docs/load-balancing/health-checks#health_check_source_ips_and_firewall_rules ## Example Usage + + ```python + import pulumi + import pulumi_gcp as gcp + + ranges = gcp.compute.get_lbip_ranges() + lb = gcp.compute.Firewall("lb", + name="lb-firewall", + network=main["name"], + allows=[{ + "protocol": "tcp", + "ports": ["80"], + }], + source_ranges=ranges.networks, + target_tags=["InstanceBehindLoadBalancer"]) + ``` """ __args__ = dict() opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) @@ -99,5 +115,21 @@ def get_lbip_ranges_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulum https://cloud.google.com/compute/docs/load-balancing/health-checks#health_check_source_ips_and_firewall_rules ## Example Usage + + ```python + import pulumi + import pulumi_gcp as gcp + + ranges = gcp.compute.get_lbip_ranges() + lb = gcp.compute.Firewall("lb", + name="lb-firewall", + network=main["name"], + allows=[{ + "protocol": "tcp", + "ports": ["80"], + }], + source_ranges=ranges.networks, + target_tags=["InstanceBehindLoadBalancer"]) + ``` """ ... diff --git a/sdk/python/pulumi_gcp/compute/get_netblock_ip_ranges.py b/sdk/python/pulumi_gcp/compute/get_netblock_ip_ranges.py index 97ddadcbc6..103d12aaed 100644 --- a/sdk/python/pulumi_gcp/compute/get_netblock_ip_ranges.py +++ b/sdk/python/pulumi_gcp/compute/get_netblock_ip_ranges.py @@ -103,8 +103,34 @@ def get_netblock_ip_ranges(range_type: Optional[str] = None, ### Cloud Ranges + ```python + import pulumi + import pulumi_gcp as gcp + + netblock = gcp.compute.get_netblock_ip_ranges() + pulumi.export("cidrBlocks", netblock.cidr_blocks) + pulumi.export("cidrBlocksIpv4", netblock.cidr_blocks_ipv4s) + pulumi.export("cidrBlocksIpv6", netblock.cidr_blocks_ipv6s) + ``` + ### Allow Health Checks + ```python + import pulumi + import pulumi_gcp as gcp + + legacy_hcs = gcp.compute.get_netblock_ip_ranges(range_type="legacy-health-checkers") + default = gcp.compute.Network("default", name="test-network") + allow_hcs = gcp.compute.Firewall("allow-hcs", + name="allow-hcs", + network=default.name, + allows=[{ + "protocol": "tcp", + "ports": ["80"], + }], + source_ranges=legacy_hcs.cidr_blocks_ipv4s) + ``` + :param str range_type: The type of range for which to provide results. @@ -149,8 +175,34 @@ def get_netblock_ip_ranges_output(range_type: Optional[pulumi.Input[Optional[str ### Cloud Ranges + ```python + import pulumi + import pulumi_gcp as gcp + + netblock = gcp.compute.get_netblock_ip_ranges() + pulumi.export("cidrBlocks", netblock.cidr_blocks) + pulumi.export("cidrBlocksIpv4", netblock.cidr_blocks_ipv4s) + pulumi.export("cidrBlocksIpv6", netblock.cidr_blocks_ipv6s) + ``` + ### Allow Health Checks + ```python + import pulumi + import pulumi_gcp as gcp + + legacy_hcs = gcp.compute.get_netblock_ip_ranges(range_type="legacy-health-checkers") + default = gcp.compute.Network("default", name="test-network") + allow_hcs = gcp.compute.Firewall("allow-hcs", + name="allow-hcs", + network=default.name, + allows=[{ + "protocol": "tcp", + "ports": ["80"], + }], + source_ranges=legacy_hcs.cidr_blocks_ipv4s) + ``` + :param str range_type: The type of range for which to provide results. diff --git a/sdk/python/pulumi_gcp/compute/get_network.py b/sdk/python/pulumi_gcp/compute/get_network.py index 75791c40bb..74e0cffc62 100644 --- a/sdk/python/pulumi_gcp/compute/get_network.py +++ b/sdk/python/pulumi_gcp/compute/get_network.py @@ -135,6 +135,13 @@ def get_network(name: Optional[str] = None, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + my_network = gcp.compute.get_network(name="default-us-east1") + ``` + :param str name: The name of the network. @@ -169,6 +176,13 @@ def get_network_output(name: Optional[pulumi.Input[str]] = None, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + my_network = gcp.compute.get_network(name="default-us-east1") + ``` + :param str name: The name of the network. diff --git a/sdk/python/pulumi_gcp/compute/get_networks.py b/sdk/python/pulumi_gcp/compute/get_networks.py index d85d592f90..cf0486a538 100644 --- a/sdk/python/pulumi_gcp/compute/get_networks.py +++ b/sdk/python/pulumi_gcp/compute/get_networks.py @@ -92,6 +92,13 @@ def get_networks(project: Optional[str] = None, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + my_networks = gcp.compute.get_networks(project="my-cloud-project") + ``` + :param str project: The name of the project. """ @@ -115,6 +122,13 @@ def get_networks_output(project: Optional[pulumi.Input[Optional[str]]] = None, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + my_networks = gcp.compute.get_networks(project="my-cloud-project") + ``` + :param str project: The name of the project. """ diff --git a/sdk/python/pulumi_gcp/compute/get_region_ssl_certificate.py b/sdk/python/pulumi_gcp/compute/get_region_ssl_certificate.py index c21f50e5f9..26a30b3f9f 100644 --- a/sdk/python/pulumi_gcp/compute/get_region_ssl_certificate.py +++ b/sdk/python/pulumi_gcp/compute/get_region_ssl_certificate.py @@ -157,6 +157,16 @@ def get_region_ssl_certificate(name: Optional[str] = None, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + my_cert = gcp.compute.get_region_ssl_certificate(name="my-cert") + pulumi.export("certificate", my_cert.certificate) + pulumi.export("certificateId", my_cert.certificate_id) + pulumi.export("selfLink", my_cert.self_link) + ``` + :param str name: The name of the certificate. @@ -198,6 +208,16 @@ def get_region_ssl_certificate_output(name: Optional[pulumi.Input[str]] = None, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + my_cert = gcp.compute.get_region_ssl_certificate(name="my-cert") + pulumi.export("certificate", my_cert.certificate) + pulumi.export("certificateId", my_cert.certificate_id) + pulumi.export("selfLink", my_cert.self_link) + ``` + :param str name: The name of the certificate. diff --git a/sdk/python/pulumi_gcp/compute/get_ssl_policy.py b/sdk/python/pulumi_gcp/compute/get_ssl_policy.py index 3ef371c796..33c4f48459 100644 --- a/sdk/python/pulumi_gcp/compute/get_ssl_policy.py +++ b/sdk/python/pulumi_gcp/compute/get_ssl_policy.py @@ -171,6 +171,13 @@ def get_ssl_policy(name: Optional[str] = None, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + my_ssl_policy = gcp.compute.get_ssl_policy(name="production-ssl-policy") + ``` + :param str name: The name of the SSL Policy. @@ -208,6 +215,13 @@ def get_ssl_policy_output(name: Optional[pulumi.Input[str]] = None, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + my_ssl_policy = gcp.compute.get_ssl_policy(name="production-ssl-policy") + ``` + :param str name: The name of the SSL Policy. diff --git a/sdk/python/pulumi_gcp/compute/get_vpn_gateway.py b/sdk/python/pulumi_gcp/compute/get_vpn_gateway.py index a1c3d9d04b..4277d5df0a 100644 --- a/sdk/python/pulumi_gcp/compute/get_vpn_gateway.py +++ b/sdk/python/pulumi_gcp/compute/get_vpn_gateway.py @@ -124,6 +124,13 @@ def get_vpn_gateway(name: Optional[str] = None, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + my_vpn_gateway = gcp.compute.get_vpn_gateway(name="vpn-gateway-us-east1") + ``` + :param str name: The name of the VPN gateway. @@ -161,6 +168,13 @@ def get_vpn_gateway_output(name: Optional[pulumi.Input[str]] = None, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + my_vpn_gateway = gcp.compute.get_vpn_gateway(name="vpn-gateway-us-east1") + ``` + :param str name: The name of the VPN gateway. diff --git a/sdk/python/pulumi_gcp/compute/instance_template.py b/sdk/python/pulumi_gcp/compute/instance_template.py index 93a60b112f..643508cfec 100644 --- a/sdk/python/pulumi_gcp/compute/instance_template.py +++ b/sdk/python/pulumi_gcp/compute/instance_template.py @@ -1337,10 +1337,38 @@ def __init__(__self__, data source, which will retrieve the latest image on every `pulumi apply`, and will update the template to use that specific image: + ```python + import pulumi + import pulumi_gcp as gcp + + my_image = gcp.compute.get_image(family="debian-11", + project="debian-cloud") + instance_template = gcp.compute.InstanceTemplate("instance_template", + name_prefix="instance-template-", + machine_type="e2-medium", + region="us-central1", + disks=[{ + "source_image": my_image.self_link, + }]) + ``` + To have instances update to the latest on every scaling event or instance re-creation, use the family as the image for the disk, and it will use GCP's default behavior, setting the image for the template to the family: + ```python + import pulumi + import pulumi_gcp as gcp + + instance_template = gcp.compute.InstanceTemplate("instance_template", + name_prefix="instance-template-", + machine_type="e2-medium", + region="us-central1", + disks=[{ + "source_image": "debian-cloud/debian-11", + }]) + ``` + ## Import Instance templates can be imported using any of these accepted formats: @@ -1603,10 +1631,38 @@ def __init__(__self__, data source, which will retrieve the latest image on every `pulumi apply`, and will update the template to use that specific image: + ```python + import pulumi + import pulumi_gcp as gcp + + my_image = gcp.compute.get_image(family="debian-11", + project="debian-cloud") + instance_template = gcp.compute.InstanceTemplate("instance_template", + name_prefix="instance-template-", + machine_type="e2-medium", + region="us-central1", + disks=[{ + "source_image": my_image.self_link, + }]) + ``` + To have instances update to the latest on every scaling event or instance re-creation, use the family as the image for the disk, and it will use GCP's default behavior, setting the image for the template to the family: + ```python + import pulumi + import pulumi_gcp as gcp + + instance_template = gcp.compute.InstanceTemplate("instance_template", + name_prefix="instance-template-", + machine_type="e2-medium", + region="us-central1", + disks=[{ + "source_image": "debian-cloud/debian-11", + }]) + ``` + ## Import Instance templates can be imported using any of these accepted formats: diff --git a/sdk/python/pulumi_gcp/container/get_cluster.py b/sdk/python/pulumi_gcp/container/get_cluster.py index 9626de6ab5..0dbdc2d46f 100644 --- a/sdk/python/pulumi_gcp/container/get_cluster.py +++ b/sdk/python/pulumi_gcp/container/get_cluster.py @@ -752,6 +752,18 @@ def get_cluster(location: Optional[str] = None, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + my_cluster = gcp.container.get_cluster(name="my-cluster", + location="us-east1-a") + pulumi.export("endpoint", my_cluster.endpoint) + pulumi.export("instanceGroupUrls", my_cluster.node_pools[0].instance_group_urls) + pulumi.export("nodeConfig", my_cluster.node_configs) + pulumi.export("nodePools", my_cluster.node_pools) + ``` + :param str location: The location (zone or region) this cluster has been created in. One of `location`, `region`, `zone`, or a provider-level `zone` must @@ -858,6 +870,18 @@ def get_cluster_output(location: Optional[pulumi.Input[Optional[str]]] = None, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + my_cluster = gcp.container.get_cluster(name="my-cluster", + location="us-east1-a") + pulumi.export("endpoint", my_cluster.endpoint) + pulumi.export("instanceGroupUrls", my_cluster.node_pools[0].instance_group_urls) + pulumi.export("nodeConfig", my_cluster.node_configs) + pulumi.export("nodePools", my_cluster.node_pools) + ``` + :param str location: The location (zone or region) this cluster has been created in. One of `location`, `region`, `zone`, or a provider-level `zone` must diff --git a/sdk/python/pulumi_gcp/dataproc/get_metastore_service.py b/sdk/python/pulumi_gcp/dataproc/get_metastore_service.py index c41dfac5d1..720a535278 100644 --- a/sdk/python/pulumi_gcp/dataproc/get_metastore_service.py +++ b/sdk/python/pulumi_gcp/dataproc/get_metastore_service.py @@ -284,6 +284,14 @@ def get_metastore_service(location: Optional[str] = None, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + foo = gcp.dataproc.get_metastore_service(service_id="foo-bar", + location="global") + ``` + :param str location: The location where the metastore service resides. @@ -338,6 +346,14 @@ def get_metastore_service_output(location: Optional[pulumi.Input[str]] = None, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + foo = gcp.dataproc.get_metastore_service(service_id="foo-bar", + location="global") + ``` + :param str location: The location where the metastore service resides. diff --git a/sdk/python/pulumi_gcp/dns/get_record_set.py b/sdk/python/pulumi_gcp/dns/get_record_set.py index bd71a0c759..d2123b3a02 100644 --- a/sdk/python/pulumi_gcp/dns/get_record_set.py +++ b/sdk/python/pulumi_gcp/dns/get_record_set.py @@ -123,6 +123,16 @@ def get_record_set(managed_zone: Optional[str] = None, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + sample = gcp.dns.get_managed_zone(name="sample-zone") + rs = gcp.dns.get_record_set(managed_zone=sample.name, + name=f"my-record.{sample.dns_name}", + type="A") + ``` + :param str managed_zone: The Name of the zone. :param str name: The DNS name for the resource. @@ -162,6 +172,16 @@ def get_record_set_output(managed_zone: Optional[pulumi.Input[str]] = None, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + sample = gcp.dns.get_managed_zone(name="sample-zone") + rs = gcp.dns.get_record_set(managed_zone=sample.name, + name=f"my-record.{sample.dns_name}", + type="A") + ``` + :param str managed_zone: The Name of the zone. :param str name: The DNS name for the resource. diff --git a/sdk/python/pulumi_gcp/filestore/get_instance.py b/sdk/python/pulumi_gcp/filestore/get_instance.py index 0233b53a58..d87713ec54 100644 --- a/sdk/python/pulumi_gcp/filestore/get_instance.py +++ b/sdk/python/pulumi_gcp/filestore/get_instance.py @@ -194,6 +194,16 @@ def get_instance(location: Optional[str] = None, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + my_instance = gcp.filestore.get_instance(name="my-filestore-instance") + pulumi.export("instanceIpAddresses", my_instance.networks.ip_addresses) + pulumi.export("instanceConnectMode", my_instance.networks.connect_mode) + pulumi.export("instanceFileShareName", my_instance.file_shares.name) + ``` + :param str location: The name of the location of the instance. This can be a region for ENTERPRISE tier instances. If it is not provided, @@ -240,6 +250,16 @@ def get_instance_output(location: Optional[pulumi.Input[Optional[str]]] = None, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + my_instance = gcp.filestore.get_instance(name="my-filestore-instance") + pulumi.export("instanceIpAddresses", my_instance.networks.ip_addresses) + pulumi.export("instanceConnectMode", my_instance.networks.connect_mode) + pulumi.export("instanceFileShareName", my_instance.file_shares.name) + ``` + :param str location: The name of the location of the instance. This can be a region for ENTERPRISE tier instances. If it is not provided, diff --git a/sdk/python/pulumi_gcp/iam/get_workload_identity_pool.py b/sdk/python/pulumi_gcp/iam/get_workload_identity_pool.py index c6ee7ecefa..b112bfea32 100644 --- a/sdk/python/pulumi_gcp/iam/get_workload_identity_pool.py +++ b/sdk/python/pulumi_gcp/iam/get_workload_identity_pool.py @@ -120,6 +120,13 @@ def get_workload_identity_pool(project: Optional[str] = None, > **Note:** The following resource requires the Beta IAM role `roles/iam.workloadIdentityPoolAdmin` in order to succeed. `OWNER` and `EDITOR` roles do not include the necessary permissions. ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + foo = gcp.iam.get_workload_identity_pool(workload_identity_pool_id="foo-pool") + ``` + :param str project: The project in which the resource belongs. If it is not provided, the provider project is used. @@ -154,6 +161,13 @@ def get_workload_identity_pool_output(project: Optional[pulumi.Input[Optional[st > **Note:** The following resource requires the Beta IAM role `roles/iam.workloadIdentityPoolAdmin` in order to succeed. `OWNER` and `EDITOR` roles do not include the necessary permissions. ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + foo = gcp.iam.get_workload_identity_pool(workload_identity_pool_id="foo-pool") + ``` + :param str project: The project in which the resource belongs. If it is not provided, the provider project is used. diff --git a/sdk/python/pulumi_gcp/iam/get_workload_identity_pool_provider.py b/sdk/python/pulumi_gcp/iam/get_workload_identity_pool_provider.py index 9a21d50f0e..047329fea0 100644 --- a/sdk/python/pulumi_gcp/iam/get_workload_identity_pool_provider.py +++ b/sdk/python/pulumi_gcp/iam/get_workload_identity_pool_provider.py @@ -176,6 +176,14 @@ def get_workload_identity_pool_provider(project: Optional[str] = None, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + foo = gcp.iam.get_workload_identity_pool_provider(workload_identity_pool_id="foo-pool", + workload_identity_pool_provider_id="bar-provider") + ``` + :param str project: The project in which the resource belongs. If it is not provided, the provider project is used. @@ -220,6 +228,14 @@ def get_workload_identity_pool_provider_output(project: Optional[pulumi.Input[Op ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + foo = gcp.iam.get_workload_identity_pool_provider(workload_identity_pool_id="foo-pool", + workload_identity_pool_provider_id="bar-provider") + ``` + :param str project: The project in which the resource belongs. If it is not provided, the provider project is used. diff --git a/sdk/python/pulumi_gcp/iap/get_client.py b/sdk/python/pulumi_gcp/iap/get_client.py index fd575c101d..7d6b1b7685 100644 --- a/sdk/python/pulumi_gcp/iap/get_client.py +++ b/sdk/python/pulumi_gcp/iap/get_client.py @@ -93,6 +93,15 @@ def get_client(brand: Optional[str] = None, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + project = gcp.organizations.get_project(project_id="foobar") + project_client = gcp.iap.get_client(brand=f"projects/{project.number}/brands/[BRAND_NUMBER]", + client_id=apps["googleusercontent"]["com"]) + ``` + :param str brand: The name of the brand. :param str client_id: The client_id of the brand. @@ -120,6 +129,15 @@ def get_client_output(brand: Optional[pulumi.Input[str]] = None, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + project = gcp.organizations.get_project(project_id="foobar") + project_client = gcp.iap.get_client(brand=f"projects/{project.number}/brands/[BRAND_NUMBER]", + client_id=apps["googleusercontent"]["com"]) + ``` + :param str brand: The name of the brand. :param str client_id: The client_id of the brand. diff --git a/sdk/python/pulumi_gcp/monitoring/get_secret_version.py b/sdk/python/pulumi_gcp/monitoring/get_secret_version.py index a7136dfd91..3f875df3f6 100644 --- a/sdk/python/pulumi_gcp/monitoring/get_secret_version.py +++ b/sdk/python/pulumi_gcp/monitoring/get_secret_version.py @@ -144,7 +144,7 @@ def get_secret_version(project: Optional[str] = None, version: Optional[str] = None, opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetSecretVersionResult: """ - Get the value and metadata from a Secret Manager secret version. For more information see the official documentation datasource. + Get the value and metadata from a Secret Manager secret version. For more information see the [official documentation](https://cloud.google.com/secret-manager/docs/) and [API](https://cloud.google.com/secret-manager/docs/reference/rest/v1/projects.secrets.versions). If you don't need the metadata (i.e., if you want to use a more limited role to access the secret version only), see also the secretmanager_get_secret_version_access datasource. ## Example Usage @@ -188,7 +188,7 @@ def get_secret_version_output(project: Optional[pulumi.Input[Optional[str]]] = N version: Optional[pulumi.Input[Optional[str]]] = None, opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetSecretVersionResult]: """ - Get the value and metadata from a Secret Manager secret version. For more information see the official documentation datasource. + Get the value and metadata from a Secret Manager secret version. For more information see the [official documentation](https://cloud.google.com/secret-manager/docs/) and [API](https://cloud.google.com/secret-manager/docs/reference/rest/v1/projects.secrets.versions). If you don't need the metadata (i.e., if you want to use a more limited role to access the secret version only), see also the secretmanager_get_secret_version_access datasource. ## Example Usage diff --git a/sdk/python/pulumi_gcp/organizations/get_active_folder.py b/sdk/python/pulumi_gcp/organizations/get_active_folder.py index 64ee6cb481..703891909e 100644 --- a/sdk/python/pulumi_gcp/organizations/get_active_folder.py +++ b/sdk/python/pulumi_gcp/organizations/get_active_folder.py @@ -97,6 +97,14 @@ def get_active_folder(api_method: Optional[str] = None, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + department1 = gcp.organizations.get_active_folder(display_name="Department 1", + parent="organizations/1234567") + ``` + :param str api_method: The API method to use to search for the folder. Valid values are `LIST` and `SEARCH`. Default Value is `LIST`. `LIST` is [strongly consistent](https://cloud.google.com/resource-manager/reference/rest/v3/folders/list#:~:text=list()%20provides%20a-,strongly%20consistent,-view%20of%20the) and requires `resourcemanager.folders.list` on the parent folder, while `SEARCH` is [eventually consistent](https://cloud.google.com/resource-manager/reference/rest/v3/folders/search#:~:text=eventually%20consistent) and only returns folders that the user has `resourcemanager.folders.get` permission on. :param str display_name: The folder's display name. @@ -127,6 +135,14 @@ def get_active_folder_output(api_method: Optional[pulumi.Input[Optional[str]]] = ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + department1 = gcp.organizations.get_active_folder(display_name="Department 1", + parent="organizations/1234567") + ``` + :param str api_method: The API method to use to search for the folder. Valid values are `LIST` and `SEARCH`. Default Value is `LIST`. `LIST` is [strongly consistent](https://cloud.google.com/resource-manager/reference/rest/v3/folders/list#:~:text=list()%20provides%20a-,strongly%20consistent,-view%20of%20the) and requires `resourcemanager.folders.list` on the parent folder, while `SEARCH` is [eventually consistent](https://cloud.google.com/resource-manager/reference/rest/v3/folders/search#:~:text=eventually%20consistent) and only returns folders that the user has `resourcemanager.folders.get` permission on. :param str display_name: The folder's display name. diff --git a/sdk/python/pulumi_gcp/organizations/get_client_config.py b/sdk/python/pulumi_gcp/organizations/get_client_config.py index 7c42441c0e..6fcfd832dd 100644 --- a/sdk/python/pulumi_gcp/organizations/get_client_config.py +++ b/sdk/python/pulumi_gcp/organizations/get_client_config.py @@ -98,7 +98,13 @@ def get_client_config(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableG """ ## Example Usage - ### Configure Kubernetes Provider With OAuth2 Access Token + ```python + import pulumi + import pulumi_gcp as gcp + + current = gcp.organizations.get_client_config() + pulumi.export("project", current.project) + ``` """ __args__ = dict() opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) @@ -117,6 +123,12 @@ def get_client_config_output(opts: Optional[pulumi.InvokeOptions] = None) -> pul """ ## Example Usage - ### Configure Kubernetes Provider With OAuth2 Access Token + ```python + import pulumi + import pulumi_gcp as gcp + + current = gcp.organizations.get_client_config() + pulumi.export("project", current.project) + ``` """ ... diff --git a/sdk/python/pulumi_gcp/redis/get_instance.py b/sdk/python/pulumi_gcp/redis/get_instance.py index 3c2718d07c..9de50370a4 100644 --- a/sdk/python/pulumi_gcp/redis/get_instance.py +++ b/sdk/python/pulumi_gcp/redis/get_instance.py @@ -383,6 +383,16 @@ def get_instance(name: Optional[str] = None, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + my_instance = gcp.redis.get_instance(name="my-redis-instance") + pulumi.export("instanceMemorySizeGb", my_instance.memory_size_gb) + pulumi.export("instanceConnectMode", my_instance.connect_mode) + pulumi.export("instanceAuthorizedNetwork", my_instance.authorized_network) + ``` + :param str name: The name of a Redis instance. @@ -449,6 +459,16 @@ def get_instance_output(name: Optional[pulumi.Input[str]] = None, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + my_instance = gcp.redis.get_instance(name="my-redis-instance") + pulumi.export("instanceMemorySizeGb", my_instance.memory_size_gb) + pulumi.export("instanceConnectMode", my_instance.connect_mode) + pulumi.export("instanceAuthorizedNetwork", my_instance.authorized_network) + ``` + :param str name: The name of a Redis instance. diff --git a/sdk/python/pulumi_gcp/secretmanager/get_secret_version.py b/sdk/python/pulumi_gcp/secretmanager/get_secret_version.py index 7496f57a98..3cda52e7e2 100644 --- a/sdk/python/pulumi_gcp/secretmanager/get_secret_version.py +++ b/sdk/python/pulumi_gcp/secretmanager/get_secret_version.py @@ -142,7 +142,7 @@ def get_secret_version(project: Optional[str] = None, version: Optional[str] = None, opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetSecretVersionResult: """ - Get the value and metadata from a Secret Manager secret version. For more information see the official documentation datasource. + Get the value and metadata from a Secret Manager secret version. For more information see the [official documentation](https://cloud.google.com/secret-manager/docs/) and [API](https://cloud.google.com/secret-manager/docs/reference/rest/v1/projects.secrets.versions). If you don't need the metadata (i.e., if you want to use a more limited role to access the secret version only), see also the secretmanager_get_secret_version_access datasource. ## Example Usage @@ -185,7 +185,7 @@ def get_secret_version_output(project: Optional[pulumi.Input[Optional[str]]] = N version: Optional[pulumi.Input[Optional[str]]] = None, opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetSecretVersionResult]: """ - Get the value and metadata from a Secret Manager secret version. For more information see the official documentation datasource. + Get the value and metadata from a Secret Manager secret version. For more information see the [official documentation](https://cloud.google.com/secret-manager/docs/) and [API](https://cloud.google.com/secret-manager/docs/reference/rest/v1/projects.secrets.versions). If you don't need the metadata (i.e., if you want to use a more limited role to access the secret version only), see also the secretmanager_get_secret_version_access datasource. ## Example Usage diff --git a/sdk/python/pulumi_gcp/spanner/get_instance.py b/sdk/python/pulumi_gcp/spanner/get_instance.py index 88a4135044..f42035dce8 100644 --- a/sdk/python/pulumi_gcp/spanner/get_instance.py +++ b/sdk/python/pulumi_gcp/spanner/get_instance.py @@ -168,6 +168,13 @@ def get_instance(config: Optional[str] = None, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + foo = gcp.spanner.get_instance(name="bar") + ``` + :param str name: The name of the spanner instance. @@ -210,6 +217,13 @@ def get_instance_output(config: Optional[pulumi.Input[Optional[str]]] = None, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + foo = gcp.spanner.get_instance(name="bar") + ``` + :param str name: The name of the spanner instance. diff --git a/sdk/python/pulumi_gcp/tags/get_tag_key.py b/sdk/python/pulumi_gcp/tags/get_tag_key.py index 8f6586271c..01cda62bcd 100644 --- a/sdk/python/pulumi_gcp/tags/get_tag_key.py +++ b/sdk/python/pulumi_gcp/tags/get_tag_key.py @@ -134,6 +134,21 @@ def get_tag_key(parent: Optional[str] = None, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + environment_tag_key = gcp.tags.get_tag_key(parent="organizations/12345", + short_name="environment") + ``` + ```python + import pulumi + import pulumi_gcp as gcp + + environment_tag_key = gcp.tags.get_tag_key(parent="projects/abc", + short_name="environment") + ``` + :param str parent: The resource name of the parent organization or project. It can be in format `organizations/{org_id}` or `projects/{project_id_or_number}`. :param str short_name: The tag key's short_name. @@ -164,6 +179,21 @@ def get_tag_key_output(parent: Optional[pulumi.Input[str]] = None, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + environment_tag_key = gcp.tags.get_tag_key(parent="organizations/12345", + short_name="environment") + ``` + ```python + import pulumi + import pulumi_gcp as gcp + + environment_tag_key = gcp.tags.get_tag_key(parent="projects/abc", + short_name="environment") + ``` + :param str parent: The resource name of the parent organization or project. It can be in format `organizations/{org_id}` or `projects/{project_id_or_number}`. :param str short_name: The tag key's short_name. diff --git a/sdk/python/pulumi_gcp/tags/get_tag_keys.py b/sdk/python/pulumi_gcp/tags/get_tag_keys.py index 9e72b25882..65d7fe8e1b 100644 --- a/sdk/python/pulumi_gcp/tags/get_tag_keys.py +++ b/sdk/python/pulumi_gcp/tags/get_tag_keys.py @@ -78,6 +78,19 @@ def get_tag_keys(parent: Optional[str] = None, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + environment_tag_key = gcp.tags.get_tag_keys(parent="organizations/12345") + ``` + ```python + import pulumi + import pulumi_gcp as gcp + + environment_tag_key = gcp.tags.get_tag_keys(parent="projects/abc") + ``` + :param str parent: The resource name of the parent organization or project. It can be in format `organizations/{org_id}` or `projects/{project_id_or_number}`. """ @@ -100,6 +113,19 @@ def get_tag_keys_output(parent: Optional[pulumi.Input[str]] = None, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + environment_tag_key = gcp.tags.get_tag_keys(parent="organizations/12345") + ``` + ```python + import pulumi + import pulumi_gcp as gcp + + environment_tag_key = gcp.tags.get_tag_keys(parent="projects/abc") + ``` + :param str parent: The resource name of the parent organization or project. It can be in format `organizations/{org_id}` or `projects/{project_id_or_number}`. """ diff --git a/sdk/python/pulumi_gcp/tags/get_tag_value.py b/sdk/python/pulumi_gcp/tags/get_tag_value.py index c101f387f8..401f421140 100644 --- a/sdk/python/pulumi_gcp/tags/get_tag_value.py +++ b/sdk/python/pulumi_gcp/tags/get_tag_value.py @@ -134,6 +134,14 @@ def get_tag_value(parent: Optional[str] = None, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + environment_prod_tag_value = gcp.tags.get_tag_value(parent="tagKeys/56789", + short_name="production") + ``` + :param str parent: The resource name of the parent tagKey in format `tagKey/{name}`. :param str short_name: The tag value's short_name. @@ -164,6 +172,14 @@ def get_tag_value_output(parent: Optional[pulumi.Input[str]] = None, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + environment_prod_tag_value = gcp.tags.get_tag_value(parent="tagKeys/56789", + short_name="production") + ``` + :param str parent: The resource name of the parent tagKey in format `tagKey/{name}`. :param str short_name: The tag value's short_name. diff --git a/sdk/python/pulumi_gcp/tags/get_tag_values.py b/sdk/python/pulumi_gcp/tags/get_tag_values.py index 19797424cf..639cdbc85d 100644 --- a/sdk/python/pulumi_gcp/tags/get_tag_values.py +++ b/sdk/python/pulumi_gcp/tags/get_tag_values.py @@ -78,6 +78,13 @@ def get_tag_values(parent: Optional[str] = None, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + environment_tag_values = gcp.tags.get_tag_values(parent="tagKeys/56789") + ``` + :param str parent: The resource name of the parent tagKey in format `tagKey/{name}`. """ @@ -100,6 +107,13 @@ def get_tag_values_output(parent: Optional[pulumi.Input[str]] = None, ## Example Usage + ```python + import pulumi + import pulumi_gcp as gcp + + environment_tag_values = gcp.tags.get_tag_values(parent="tagKeys/56789") + ``` + :param str parent: The resource name of the parent tagKey in format `tagKey/{name}`. """