pulumi-gcp 8.0.0a1__py3-none-any.whl → 8.0.0a1726253601__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. pulumi_gcp/certificateauthority/get_authority.py +20 -0
  2. pulumi_gcp/certificatemanager/get_certificate_map.py +14 -0
  3. pulumi_gcp/cloudidentity/get_group_lookup.py +18 -0
  4. pulumi_gcp/cloudidentity/get_group_memberships.py +14 -0
  5. pulumi_gcp/cloudidentity/get_groups.py +14 -0
  6. pulumi_gcp/compute/disk_async_replication.py +48 -0
  7. pulumi_gcp/compute/get_backend_bucket.py +14 -0
  8. pulumi_gcp/compute/get_backend_service.py +20 -0
  9. pulumi_gcp/compute/get_certificate.py +20 -0
  10. pulumi_gcp/compute/get_forwarding_rule.py +14 -0
  11. pulumi_gcp/compute/get_forwarding_rules.py +16 -0
  12. pulumi_gcp/compute/get_global_forwarding_rule.py +14 -0
  13. pulumi_gcp/compute/get_hc_vpn_gateway.py +14 -0
  14. pulumi_gcp/compute/get_health_check.py +14 -0
  15. pulumi_gcp/compute/get_lbip_ranges.py +32 -0
  16. pulumi_gcp/compute/get_netblock_ip_ranges.py +52 -0
  17. pulumi_gcp/compute/get_network.py +14 -0
  18. pulumi_gcp/compute/get_networks.py +14 -0
  19. pulumi_gcp/compute/get_region_ssl_certificate.py +20 -0
  20. pulumi_gcp/compute/get_ssl_policy.py +14 -0
  21. pulumi_gcp/compute/get_vpn_gateway.py +14 -0
  22. pulumi_gcp/compute/instance_template.py +56 -0
  23. pulumi_gcp/container/get_cluster.py +24 -0
  24. pulumi_gcp/dataproc/get_metastore_service.py +16 -0
  25. pulumi_gcp/dns/get_record_set.py +20 -0
  26. pulumi_gcp/filestore/get_instance.py +20 -0
  27. pulumi_gcp/iam/get_workload_identity_pool.py +14 -0
  28. pulumi_gcp/iam/get_workload_identity_pool_provider.py +16 -0
  29. pulumi_gcp/iap/get_client.py +18 -0
  30. pulumi_gcp/monitoring/get_secret_version.py +2 -2
  31. pulumi_gcp/organizations/get_active_folder.py +16 -0
  32. pulumi_gcp/organizations/get_client_config.py +14 -2
  33. pulumi_gcp/pulumi-plugin.json +1 -1
  34. pulumi_gcp/redis/get_instance.py +20 -0
  35. pulumi_gcp/secretmanager/get_secret_version.py +2 -2
  36. pulumi_gcp/spanner/get_instance.py +14 -0
  37. pulumi_gcp/tags/get_tag_key.py +30 -0
  38. pulumi_gcp/tags/get_tag_keys.py +26 -0
  39. pulumi_gcp/tags/get_tag_value.py +16 -0
  40. pulumi_gcp/tags/get_tag_values.py +14 -0
  41. {pulumi_gcp-8.0.0a1.dist-info → pulumi_gcp-8.0.0a1726253601.dist-info}/METADATA +1 -1
  42. {pulumi_gcp-8.0.0a1.dist-info → pulumi_gcp-8.0.0a1726253601.dist-info}/RECORD +44 -44
  43. {pulumi_gcp-8.0.0a1.dist-info → pulumi_gcp-8.0.0a1726253601.dist-info}/WHEEL +0 -0
  44. {pulumi_gcp-8.0.0a1.dist-info → pulumi_gcp-8.0.0a1726253601.dist-info}/top_level.txt +0 -0
@@ -288,6 +288,16 @@ def get_authority(certificate_authority_id: Optional[str] = None,
288
288
 
289
289
  ## Example Usage
290
290
 
291
+ ```python
292
+ import pulumi
293
+ import pulumi_gcp as gcp
294
+
295
+ default = gcp.certificateauthority.get_authority(location="us-west1",
296
+ pool="pool-name",
297
+ certificate_authority_id="ca-id")
298
+ pulumi.export("csr", default.pem_csr)
299
+ ```
300
+
291
301
 
292
302
  :param str certificate_authority_id: ID of the certificate authority.
293
303
 
@@ -345,6 +355,16 @@ def get_authority_output(certificate_authority_id: Optional[pulumi.Input[Optiona
345
355
 
346
356
  ## Example Usage
347
357
 
358
+ ```python
359
+ import pulumi
360
+ import pulumi_gcp as gcp
361
+
362
+ default = gcp.certificateauthority.get_authority(location="us-west1",
363
+ pool="pool-name",
364
+ certificate_authority_id="ca-id")
365
+ pulumi.export("csr", default.pem_csr)
366
+ ```
367
+
348
368
 
349
369
  :param str certificate_authority_id: ID of the certificate authority.
350
370
 
@@ -139,6 +139,13 @@ def get_certificate_map(name: Optional[str] = None,
139
139
 
140
140
  ## Example Usage
141
141
 
142
+ ```python
143
+ import pulumi
144
+ import pulumi_gcp as gcp
145
+
146
+ default = gcp.certificatemanager.get_certificate_map(name="cert-map")
147
+ ```
148
+
142
149
 
143
150
  :param str name: The name of the certificate map.
144
151
 
@@ -174,6 +181,13 @@ def get_certificate_map_output(name: Optional[pulumi.Input[str]] = None,
174
181
 
175
182
  ## Example Usage
176
183
 
184
+ ```python
185
+ import pulumi
186
+ import pulumi_gcp as gcp
187
+
188
+ default = gcp.certificatemanager.get_certificate_map(name="cert-map")
189
+ ```
190
+
177
191
 
178
192
  :param str name: The name of the certificate map.
179
193
 
@@ -81,6 +81,15 @@ def get_group_lookup(group_key: Optional[Union['GetGroupLookupGroupKeyArgs', 'Ge
81
81
 
82
82
  ## Example Usage
83
83
 
84
+ ```python
85
+ import pulumi
86
+ import pulumi_gcp as gcp
87
+
88
+ group = gcp.cloudidentity.get_group_lookup(group_key={
89
+ "id": "my-group@example.com",
90
+ })
91
+ ```
92
+
84
93
 
85
94
  :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.
86
95
  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
107
116
 
108
117
  ## Example Usage
109
118
 
119
+ ```python
120
+ import pulumi
121
+ import pulumi_gcp as gcp
122
+
123
+ group = gcp.cloudidentity.get_group_lookup(group_key={
124
+ "id": "my-group@example.com",
125
+ })
126
+ ```
127
+
110
128
 
111
129
  :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.
112
130
  An entity can represent either a group with an optional namespace or a user without a namespace.
@@ -86,6 +86,13 @@ def get_group_memberships(group: Optional[str] = None,
86
86
 
87
87
  ## Example Usage
88
88
 
89
+ ```python
90
+ import pulumi
91
+ import pulumi_gcp as gcp
92
+
93
+ members = gcp.cloudidentity.get_group_memberships(group="groups/123eab45c6defghi")
94
+ ```
95
+
89
96
 
90
97
  :param str group: The parent Group resource under which to lookup the Membership names. Must be of the form groups/{group_id}.
91
98
  """
@@ -116,6 +123,13 @@ def get_group_memberships_output(group: Optional[pulumi.Input[str]] = None,
116
123
 
117
124
  ## Example Usage
118
125
 
126
+ ```python
127
+ import pulumi
128
+ import pulumi_gcp as gcp
129
+
130
+ members = gcp.cloudidentity.get_group_memberships(group="groups/123eab45c6defghi")
131
+ ```
132
+
119
133
 
120
134
  :param str group: The parent Group resource under which to lookup the Membership names. Must be of the form groups/{group_id}.
121
135
  """
@@ -80,6 +80,13 @@ def get_groups(parent: Optional[str] = None,
80
80
 
81
81
  ## Example Usage
82
82
 
83
+ ```python
84
+ import pulumi
85
+ import pulumi_gcp as gcp
86
+
87
+ groups = gcp.cloudidentity.get_groups(parent="customers/A01b123xz")
88
+ ```
89
+
83
90
 
84
91
  :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.
85
92
  """
@@ -104,6 +111,13 @@ def get_groups_output(parent: Optional[pulumi.Input[str]] = None,
104
111
 
105
112
  ## Example Usage
106
113
 
114
+ ```python
115
+ import pulumi
116
+ import pulumi_gcp as gcp
117
+
118
+ groups = gcp.cloudidentity.get_groups(parent="customers/A01b123xz")
119
+ ```
120
+
107
121
 
108
122
  :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.
109
123
  """
@@ -119,6 +119,30 @@ class DiskAsyncReplication(pulumi.CustomResource):
119
119
 
120
120
  ## Example Usage
121
121
 
122
+ ```python
123
+ import pulumi
124
+ import pulumi_gcp as gcp
125
+
126
+ primary_disk = gcp.compute.Disk("primary-disk",
127
+ name="primary-disk",
128
+ type="pd-ssd",
129
+ zone="europe-west4-a",
130
+ physical_block_size_bytes=4096)
131
+ secondary_disk = gcp.compute.Disk("secondary-disk",
132
+ name="secondary-disk",
133
+ type="pd-ssd",
134
+ zone="europe-west3-a",
135
+ async_primary_disk={
136
+ "disk": primary_disk.id,
137
+ },
138
+ physical_block_size_bytes=4096)
139
+ replication = gcp.compute.DiskAsyncReplication("replication",
140
+ primary_disk=primary_disk.id,
141
+ secondary_disk={
142
+ "disk": secondary_disk.id,
143
+ })
144
+ ```
145
+
122
146
  :param str resource_name: The name of the resource.
123
147
  :param pulumi.ResourceOptions opts: Options for the resource.
124
148
  :param pulumi.Input[str] primary_disk: The primary disk (source of replication).
@@ -139,6 +163,30 @@ class DiskAsyncReplication(pulumi.CustomResource):
139
163
 
140
164
  ## Example Usage
141
165
 
166
+ ```python
167
+ import pulumi
168
+ import pulumi_gcp as gcp
169
+
170
+ primary_disk = gcp.compute.Disk("primary-disk",
171
+ name="primary-disk",
172
+ type="pd-ssd",
173
+ zone="europe-west4-a",
174
+ physical_block_size_bytes=4096)
175
+ secondary_disk = gcp.compute.Disk("secondary-disk",
176
+ name="secondary-disk",
177
+ type="pd-ssd",
178
+ zone="europe-west3-a",
179
+ async_primary_disk={
180
+ "disk": primary_disk.id,
181
+ },
182
+ physical_block_size_bytes=4096)
183
+ replication = gcp.compute.DiskAsyncReplication("replication",
184
+ primary_disk=primary_disk.id,
185
+ secondary_disk={
186
+ "disk": secondary_disk.id,
187
+ })
188
+ ```
189
+
142
190
  :param str resource_name: The name of the resource.
143
191
  :param DiskAsyncReplicationArgs args: The arguments to use to populate this resource's properties.
144
192
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -157,6 +157,13 @@ def get_backend_bucket(name: Optional[str] = None,
157
157
 
158
158
  ## Example Usage
159
159
 
160
+ ```python
161
+ import pulumi
162
+ import pulumi_gcp as gcp
163
+
164
+ my_backend_bucket = gcp.compute.get_backend_bucket(name="my-backend")
165
+ ```
166
+
160
167
 
161
168
  :param str name: Name of the resource.
162
169
 
@@ -194,6 +201,13 @@ def get_backend_bucket_output(name: Optional[pulumi.Input[str]] = None,
194
201
 
195
202
  ## Example Usage
196
203
 
204
+ ```python
205
+ import pulumi
206
+ import pulumi_gcp as gcp
207
+
208
+ my_backend_bucket = gcp.compute.get_backend_bucket(name="my-backend")
209
+ ```
210
+
197
211
 
198
212
  :param str name: Name of the resource.
199
213
 
@@ -384,6 +384,16 @@ def get_backend_service(name: Optional[str] = None,
384
384
 
385
385
  ## Example Usage
386
386
 
387
+ ```python
388
+ import pulumi
389
+ import pulumi_gcp as gcp
390
+
391
+ baz = gcp.compute.get_backend_service(name="foobar")
392
+ default = gcp.compute.BackendService("default",
393
+ name="backend-service",
394
+ health_checks=baz.health_checks[0])
395
+ ```
396
+
387
397
 
388
398
  :param str name: The name of the Backend Service.
389
399
 
@@ -443,6 +453,16 @@ def get_backend_service_output(name: Optional[pulumi.Input[str]] = None,
443
453
 
444
454
  ## Example Usage
445
455
 
456
+ ```python
457
+ import pulumi
458
+ import pulumi_gcp as gcp
459
+
460
+ baz = gcp.compute.get_backend_service(name="foobar")
461
+ default = gcp.compute.BackendService("default",
462
+ name="backend-service",
463
+ health_checks=baz.health_checks[0])
464
+ ```
465
+
446
466
 
447
467
  :param str name: The name of the Backend Service.
448
468
 
@@ -147,6 +147,16 @@ def get_certificate(name: Optional[str] = None,
147
147
 
148
148
  ## Example Usage
149
149
 
150
+ ```python
151
+ import pulumi
152
+ import pulumi_gcp as gcp
153
+
154
+ my_cert = gcp.compute.get_certificate(name="my-cert")
155
+ pulumi.export("certificate", my_cert.certificate)
156
+ pulumi.export("certificateId", my_cert.certificate_id)
157
+ pulumi.export("selfLink", my_cert.self_link)
158
+ ```
159
+
150
160
 
151
161
  :param str name: The name of the certificate.
152
162
 
@@ -183,6 +193,16 @@ def get_certificate_output(name: Optional[pulumi.Input[str]] = None,
183
193
 
184
194
  ## Example Usage
185
195
 
196
+ ```python
197
+ import pulumi
198
+ import pulumi_gcp as gcp
199
+
200
+ my_cert = gcp.compute.get_certificate(name="my-cert")
201
+ pulumi.export("certificate", my_cert.certificate)
202
+ pulumi.export("certificateId", my_cert.certificate_id)
203
+ pulumi.export("selfLink", my_cert.self_link)
204
+ ```
205
+
186
206
 
187
207
  :param str name: The name of the certificate.
188
208
 
@@ -374,6 +374,13 @@ def get_forwarding_rule(name: Optional[str] = None,
374
374
 
375
375
  ## Example Usage
376
376
 
377
+ ```python
378
+ import pulumi
379
+ import pulumi_gcp as gcp
380
+
381
+ my_forwarding_rule = gcp.compute.get_forwarding_rule(name="forwarding-rule-us-east1")
382
+ ```
383
+
377
384
 
378
385
  :param str name: The name of the forwarding rule.
379
386
 
@@ -440,6 +447,13 @@ def get_forwarding_rule_output(name: Optional[pulumi.Input[str]] = None,
440
447
 
441
448
  ## Example Usage
442
449
 
450
+ ```python
451
+ import pulumi
452
+ import pulumi_gcp as gcp
453
+
454
+ my_forwarding_rule = gcp.compute.get_forwarding_rule(name="forwarding-rule-us-east1")
455
+ ```
456
+
443
457
 
444
458
  :param str name: The name of the forwarding rule.
445
459
 
@@ -94,6 +94,14 @@ def get_forwarding_rules(project: Optional[str] = None,
94
94
 
95
95
  ## Example Usage
96
96
 
97
+ ```python
98
+ import pulumi
99
+ import pulumi_gcp as gcp
100
+
101
+ my_forwarding_rules = gcp.compute.get_forwarding_rules(project="my-cloud-project",
102
+ region="us-central1")
103
+ ```
104
+
97
105
 
98
106
  :param str project: The name of the project.
99
107
  :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]]] =
122
130
 
123
131
  ## Example Usage
124
132
 
133
+ ```python
134
+ import pulumi
135
+ import pulumi_gcp as gcp
136
+
137
+ my_forwarding_rules = gcp.compute.get_forwarding_rules(project="my-cloud-project",
138
+ region="us-central1")
139
+ ```
140
+
125
141
 
126
142
  :param str project: The name of the project.
127
143
  :param str region: The region you want to get the forwarding rules from.
@@ -274,6 +274,13 @@ def get_global_forwarding_rule(name: Optional[str] = None,
274
274
 
275
275
  ## Example Usage
276
276
 
277
+ ```python
278
+ import pulumi
279
+ import pulumi_gcp as gcp
280
+
281
+ my_forwarding_rule = gcp.compute.get_global_forwarding_rule(name="forwarding-rule-global")
282
+ ```
283
+
277
284
 
278
285
  :param str name: The name of the global forwarding rule.
279
286
 
@@ -324,6 +331,13 @@ def get_global_forwarding_rule_output(name: Optional[pulumi.Input[str]] = None,
324
331
 
325
332
  ## Example Usage
326
333
 
334
+ ```python
335
+ import pulumi
336
+ import pulumi_gcp as gcp
337
+
338
+ my_forwarding_rule = gcp.compute.get_global_forwarding_rule(name="forwarding-rule-global")
339
+ ```
340
+
327
341
 
328
342
  :param str name: The name of the global forwarding rule.
329
343
 
@@ -140,6 +140,13 @@ def get_hc_vpn_gateway(name: Optional[str] = None,
140
140
 
141
141
  ## Example Usage
142
142
 
143
+ ```python
144
+ import pulumi
145
+ import pulumi_gcp as gcp
146
+
147
+ gateway = gcp.compute.get_hc_vpn_gateway(name="foobar")
148
+ ```
149
+
143
150
 
144
151
  :param str name: The name of the forwarding rule.
145
152
 
@@ -180,6 +187,13 @@ def get_hc_vpn_gateway_output(name: Optional[pulumi.Input[str]] = None,
180
187
 
181
188
  ## Example Usage
182
189
 
190
+ ```python
191
+ import pulumi
192
+ import pulumi_gcp as gcp
193
+
194
+ gateway = gcp.compute.get_hc_vpn_gateway(name="foobar")
195
+ ```
196
+
183
197
 
184
198
  :param str name: The name of the forwarding rule.
185
199
 
@@ -220,6 +220,13 @@ def get_health_check(name: Optional[str] = None,
220
220
 
221
221
  ## Example Usage
222
222
 
223
+ ```python
224
+ import pulumi
225
+ import pulumi_gcp as gcp
226
+
227
+ health_check = gcp.compute.get_health_check(name="my-hc")
228
+ ```
229
+
223
230
 
224
231
  :param str name: Name of the resource.
225
232
 
@@ -264,6 +271,13 @@ def get_health_check_output(name: Optional[pulumi.Input[str]] = None,
264
271
 
265
272
  ## Example Usage
266
273
 
274
+ ```python
275
+ import pulumi
276
+ import pulumi_gcp as gcp
277
+
278
+ health_check = gcp.compute.get_health_check(name="my-hc")
279
+ ```
280
+
267
281
 
268
282
  :param str name: Name of the resource.
269
283
 
@@ -80,6 +80,22 @@ def get_lbip_ranges(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGet
80
80
  https://cloud.google.com/compute/docs/load-balancing/health-checks#health_check_source_ips_and_firewall_rules
81
81
 
82
82
  ## Example Usage
83
+
84
+ ```python
85
+ import pulumi
86
+ import pulumi_gcp as gcp
87
+
88
+ ranges = gcp.compute.get_lbip_ranges()
89
+ lb = gcp.compute.Firewall("lb",
90
+ name="lb-firewall",
91
+ network=main["name"],
92
+ allows=[{
93
+ "protocol": "tcp",
94
+ "ports": ["80"],
95
+ }],
96
+ source_ranges=ranges.networks,
97
+ target_tags=["InstanceBehindLoadBalancer"])
98
+ ```
83
99
  """
84
100
  __args__ = dict()
85
101
  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
99
115
  https://cloud.google.com/compute/docs/load-balancing/health-checks#health_check_source_ips_and_firewall_rules
100
116
 
101
117
  ## Example Usage
118
+
119
+ ```python
120
+ import pulumi
121
+ import pulumi_gcp as gcp
122
+
123
+ ranges = gcp.compute.get_lbip_ranges()
124
+ lb = gcp.compute.Firewall("lb",
125
+ name="lb-firewall",
126
+ network=main["name"],
127
+ allows=[{
128
+ "protocol": "tcp",
129
+ "ports": ["80"],
130
+ }],
131
+ source_ranges=ranges.networks,
132
+ target_tags=["InstanceBehindLoadBalancer"])
133
+ ```
102
134
  """
103
135
  ...
@@ -103,8 +103,34 @@ def get_netblock_ip_ranges(range_type: Optional[str] = None,
103
103
 
104
104
  ### Cloud Ranges
105
105
 
106
+ ```python
107
+ import pulumi
108
+ import pulumi_gcp as gcp
109
+
110
+ netblock = gcp.compute.get_netblock_ip_ranges()
111
+ pulumi.export("cidrBlocks", netblock.cidr_blocks)
112
+ pulumi.export("cidrBlocksIpv4", netblock.cidr_blocks_ipv4s)
113
+ pulumi.export("cidrBlocksIpv6", netblock.cidr_blocks_ipv6s)
114
+ ```
115
+
106
116
  ### Allow Health Checks
107
117
 
118
+ ```python
119
+ import pulumi
120
+ import pulumi_gcp as gcp
121
+
122
+ legacy_hcs = gcp.compute.get_netblock_ip_ranges(range_type="legacy-health-checkers")
123
+ default = gcp.compute.Network("default", name="test-network")
124
+ allow_hcs = gcp.compute.Firewall("allow-hcs",
125
+ name="allow-hcs",
126
+ network=default.name,
127
+ allows=[{
128
+ "protocol": "tcp",
129
+ "ports": ["80"],
130
+ }],
131
+ source_ranges=legacy_hcs.cidr_blocks_ipv4s)
132
+ ```
133
+
108
134
 
109
135
  :param str range_type: The type of range for which to provide results.
110
136
 
@@ -149,8 +175,34 @@ def get_netblock_ip_ranges_output(range_type: Optional[pulumi.Input[Optional[str
149
175
 
150
176
  ### Cloud Ranges
151
177
 
178
+ ```python
179
+ import pulumi
180
+ import pulumi_gcp as gcp
181
+
182
+ netblock = gcp.compute.get_netblock_ip_ranges()
183
+ pulumi.export("cidrBlocks", netblock.cidr_blocks)
184
+ pulumi.export("cidrBlocksIpv4", netblock.cidr_blocks_ipv4s)
185
+ pulumi.export("cidrBlocksIpv6", netblock.cidr_blocks_ipv6s)
186
+ ```
187
+
152
188
  ### Allow Health Checks
153
189
 
190
+ ```python
191
+ import pulumi
192
+ import pulumi_gcp as gcp
193
+
194
+ legacy_hcs = gcp.compute.get_netblock_ip_ranges(range_type="legacy-health-checkers")
195
+ default = gcp.compute.Network("default", name="test-network")
196
+ allow_hcs = gcp.compute.Firewall("allow-hcs",
197
+ name="allow-hcs",
198
+ network=default.name,
199
+ allows=[{
200
+ "protocol": "tcp",
201
+ "ports": ["80"],
202
+ }],
203
+ source_ranges=legacy_hcs.cidr_blocks_ipv4s)
204
+ ```
205
+
154
206
 
155
207
  :param str range_type: The type of range for which to provide results.
156
208
 
@@ -135,6 +135,13 @@ def get_network(name: Optional[str] = None,
135
135
 
136
136
  ## Example Usage
137
137
 
138
+ ```python
139
+ import pulumi
140
+ import pulumi_gcp as gcp
141
+
142
+ my_network = gcp.compute.get_network(name="default-us-east1")
143
+ ```
144
+
138
145
 
139
146
  :param str name: The name of the network.
140
147
 
@@ -169,6 +176,13 @@ def get_network_output(name: Optional[pulumi.Input[str]] = None,
169
176
 
170
177
  ## Example Usage
171
178
 
179
+ ```python
180
+ import pulumi
181
+ import pulumi_gcp as gcp
182
+
183
+ my_network = gcp.compute.get_network(name="default-us-east1")
184
+ ```
185
+
172
186
 
173
187
  :param str name: The name of the network.
174
188
 
@@ -92,6 +92,13 @@ def get_networks(project: Optional[str] = None,
92
92
 
93
93
  ## Example Usage
94
94
 
95
+ ```python
96
+ import pulumi
97
+ import pulumi_gcp as gcp
98
+
99
+ my_networks = gcp.compute.get_networks(project="my-cloud-project")
100
+ ```
101
+
95
102
 
96
103
  :param str project: The name of the project.
97
104
  """
@@ -115,6 +122,13 @@ def get_networks_output(project: Optional[pulumi.Input[Optional[str]]] = None,
115
122
 
116
123
  ## Example Usage
117
124
 
125
+ ```python
126
+ import pulumi
127
+ import pulumi_gcp as gcp
128
+
129
+ my_networks = gcp.compute.get_networks(project="my-cloud-project")
130
+ ```
131
+
118
132
 
119
133
  :param str project: The name of the project.
120
134
  """
@@ -157,6 +157,16 @@ def get_region_ssl_certificate(name: Optional[str] = None,
157
157
 
158
158
  ## Example Usage
159
159
 
160
+ ```python
161
+ import pulumi
162
+ import pulumi_gcp as gcp
163
+
164
+ my_cert = gcp.compute.get_region_ssl_certificate(name="my-cert")
165
+ pulumi.export("certificate", my_cert.certificate)
166
+ pulumi.export("certificateId", my_cert.certificate_id)
167
+ pulumi.export("selfLink", my_cert.self_link)
168
+ ```
169
+
160
170
 
161
171
  :param str name: The name of the certificate.
162
172
 
@@ -198,6 +208,16 @@ def get_region_ssl_certificate_output(name: Optional[pulumi.Input[str]] = None,
198
208
 
199
209
  ## Example Usage
200
210
 
211
+ ```python
212
+ import pulumi
213
+ import pulumi_gcp as gcp
214
+
215
+ my_cert = gcp.compute.get_region_ssl_certificate(name="my-cert")
216
+ pulumi.export("certificate", my_cert.certificate)
217
+ pulumi.export("certificateId", my_cert.certificate_id)
218
+ pulumi.export("selfLink", my_cert.self_link)
219
+ ```
220
+
201
221
 
202
222
  :param str name: The name of the certificate.
203
223
 
@@ -171,6 +171,13 @@ def get_ssl_policy(name: Optional[str] = None,
171
171
 
172
172
  ## Example Usage
173
173
 
174
+ ```python
175
+ import pulumi
176
+ import pulumi_gcp as gcp
177
+
178
+ my_ssl_policy = gcp.compute.get_ssl_policy(name="production-ssl-policy")
179
+ ```
180
+
174
181
 
175
182
  :param str name: The name of the SSL Policy.
176
183
 
@@ -208,6 +215,13 @@ def get_ssl_policy_output(name: Optional[pulumi.Input[str]] = None,
208
215
 
209
216
  ## Example Usage
210
217
 
218
+ ```python
219
+ import pulumi
220
+ import pulumi_gcp as gcp
221
+
222
+ my_ssl_policy = gcp.compute.get_ssl_policy(name="production-ssl-policy")
223
+ ```
224
+
211
225
 
212
226
  :param str name: The name of the SSL Policy.
213
227