pulumi-gcp 7.29.0a1719364094__py3-none-any.whl → 7.29.0a1719365805__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 (36) hide show
  1. pulumi_gcp/__init__.py +8 -0
  2. pulumi_gcp/activedirectory/domain.py +14 -14
  3. pulumi_gcp/activedirectory/domain_trust.py +14 -14
  4. pulumi_gcp/artifactregistry/__init__.py +1 -0
  5. pulumi_gcp/artifactregistry/_inputs.py +4 -4
  6. pulumi_gcp/artifactregistry/get_docker_image.py +244 -0
  7. pulumi_gcp/artifactregistry/outputs.py +6 -6
  8. pulumi_gcp/artifactregistry/repository.py +8 -8
  9. pulumi_gcp/bigquery/dataset.py +75 -0
  10. pulumi_gcp/bigquery/get_dataset.py +11 -1
  11. pulumi_gcp/billing/_inputs.py +22 -0
  12. pulumi_gcp/billing/budget.py +50 -0
  13. pulumi_gcp/billing/outputs.py +20 -0
  14. pulumi_gcp/cloudrunv2/get_job.py +21 -1
  15. pulumi_gcp/cloudrunv2/job.py +157 -13
  16. pulumi_gcp/compute/_inputs.py +83 -0
  17. pulumi_gcp/compute/outputs.py +166 -1
  18. pulumi_gcp/dataproc/_inputs.py +100 -0
  19. pulumi_gcp/dataproc/metastore_service.py +172 -0
  20. pulumi_gcp/dataproc/outputs.py +192 -1
  21. pulumi_gcp/gkehub/_inputs.py +2 -2
  22. pulumi_gcp/gkehub/outputs.py +2 -2
  23. pulumi_gcp/pubsub/_inputs.py +40 -0
  24. pulumi_gcp/pubsub/outputs.py +66 -0
  25. pulumi_gcp/pubsub/subscription.py +166 -0
  26. pulumi_gcp/pulumi-plugin.json +1 -1
  27. pulumi_gcp/redis/get_instance.py +11 -1
  28. pulumi_gcp/redis/instance.py +47 -0
  29. pulumi_gcp/servicenetworking/__init__.py +1 -0
  30. pulumi_gcp/servicenetworking/vpc_service_controls.py +511 -0
  31. pulumi_gcp/sql/user.py +21 -7
  32. pulumi_gcp/vpcaccess/connector.py +2 -8
  33. {pulumi_gcp-7.29.0a1719364094.dist-info → pulumi_gcp-7.29.0a1719365805.dist-info}/METADATA +1 -1
  34. {pulumi_gcp-7.29.0a1719364094.dist-info → pulumi_gcp-7.29.0a1719365805.dist-info}/RECORD +36 -34
  35. {pulumi_gcp-7.29.0a1719364094.dist-info → pulumi_gcp-7.29.0a1719365805.dist-info}/WHEEL +0 -0
  36. {pulumi_gcp-7.29.0a1719364094.dist-info → pulumi_gcp-7.29.0a1719365805.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,511 @@
1
+ # coding=utf-8
2
+ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+
5
+ import copy
6
+ import warnings
7
+ import pulumi
8
+ import pulumi.runtime
9
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
10
+ from .. import _utilities
11
+
12
+ __all__ = ['VpcServiceControlsArgs', 'VpcServiceControls']
13
+
14
+ @pulumi.input_type
15
+ class VpcServiceControlsArgs:
16
+ def __init__(__self__, *,
17
+ enabled: pulumi.Input[bool],
18
+ network: pulumi.Input[str],
19
+ service: pulumi.Input[str],
20
+ project: Optional[pulumi.Input[str]] = None):
21
+ """
22
+ The set of arguments for constructing a VpcServiceControls resource.
23
+ :param pulumi.Input[bool] enabled: Desired VPC Service Controls state service producer VPC network, as
24
+ described at the top of this page.
25
+ :param pulumi.Input[str] network: The network that the consumer is using to connect with services.
26
+ :param pulumi.Input[str] service: The service that is managing peering connectivity for a service
27
+ producer's organization. For Google services that support this
28
+ functionality, this value is `servicenetworking.googleapis.com`.
29
+
30
+
31
+ - - -
32
+ :param pulumi.Input[str] project: The id of the Google Cloud project containing the consumer network.
33
+ """
34
+ pulumi.set(__self__, "enabled", enabled)
35
+ pulumi.set(__self__, "network", network)
36
+ pulumi.set(__self__, "service", service)
37
+ if project is not None:
38
+ pulumi.set(__self__, "project", project)
39
+
40
+ @property
41
+ @pulumi.getter
42
+ def enabled(self) -> pulumi.Input[bool]:
43
+ """
44
+ Desired VPC Service Controls state service producer VPC network, as
45
+ described at the top of this page.
46
+ """
47
+ return pulumi.get(self, "enabled")
48
+
49
+ @enabled.setter
50
+ def enabled(self, value: pulumi.Input[bool]):
51
+ pulumi.set(self, "enabled", value)
52
+
53
+ @property
54
+ @pulumi.getter
55
+ def network(self) -> pulumi.Input[str]:
56
+ """
57
+ The network that the consumer is using to connect with services.
58
+ """
59
+ return pulumi.get(self, "network")
60
+
61
+ @network.setter
62
+ def network(self, value: pulumi.Input[str]):
63
+ pulumi.set(self, "network", value)
64
+
65
+ @property
66
+ @pulumi.getter
67
+ def service(self) -> pulumi.Input[str]:
68
+ """
69
+ The service that is managing peering connectivity for a service
70
+ producer's organization. For Google services that support this
71
+ functionality, this value is `servicenetworking.googleapis.com`.
72
+
73
+
74
+ - - -
75
+ """
76
+ return pulumi.get(self, "service")
77
+
78
+ @service.setter
79
+ def service(self, value: pulumi.Input[str]):
80
+ pulumi.set(self, "service", value)
81
+
82
+ @property
83
+ @pulumi.getter
84
+ def project(self) -> Optional[pulumi.Input[str]]:
85
+ """
86
+ The id of the Google Cloud project containing the consumer network.
87
+ """
88
+ return pulumi.get(self, "project")
89
+
90
+ @project.setter
91
+ def project(self, value: Optional[pulumi.Input[str]]):
92
+ pulumi.set(self, "project", value)
93
+
94
+
95
+ @pulumi.input_type
96
+ class _VpcServiceControlsState:
97
+ def __init__(__self__, *,
98
+ enabled: Optional[pulumi.Input[bool]] = None,
99
+ network: Optional[pulumi.Input[str]] = None,
100
+ project: Optional[pulumi.Input[str]] = None,
101
+ service: Optional[pulumi.Input[str]] = None):
102
+ """
103
+ Input properties used for looking up and filtering VpcServiceControls resources.
104
+ :param pulumi.Input[bool] enabled: Desired VPC Service Controls state service producer VPC network, as
105
+ described at the top of this page.
106
+ :param pulumi.Input[str] network: The network that the consumer is using to connect with services.
107
+ :param pulumi.Input[str] project: The id of the Google Cloud project containing the consumer network.
108
+ :param pulumi.Input[str] service: The service that is managing peering connectivity for a service
109
+ producer's organization. For Google services that support this
110
+ functionality, this value is `servicenetworking.googleapis.com`.
111
+
112
+
113
+ - - -
114
+ """
115
+ if enabled is not None:
116
+ pulumi.set(__self__, "enabled", enabled)
117
+ if network is not None:
118
+ pulumi.set(__self__, "network", network)
119
+ if project is not None:
120
+ pulumi.set(__self__, "project", project)
121
+ if service is not None:
122
+ pulumi.set(__self__, "service", service)
123
+
124
+ @property
125
+ @pulumi.getter
126
+ def enabled(self) -> Optional[pulumi.Input[bool]]:
127
+ """
128
+ Desired VPC Service Controls state service producer VPC network, as
129
+ described at the top of this page.
130
+ """
131
+ return pulumi.get(self, "enabled")
132
+
133
+ @enabled.setter
134
+ def enabled(self, value: Optional[pulumi.Input[bool]]):
135
+ pulumi.set(self, "enabled", value)
136
+
137
+ @property
138
+ @pulumi.getter
139
+ def network(self) -> Optional[pulumi.Input[str]]:
140
+ """
141
+ The network that the consumer is using to connect with services.
142
+ """
143
+ return pulumi.get(self, "network")
144
+
145
+ @network.setter
146
+ def network(self, value: Optional[pulumi.Input[str]]):
147
+ pulumi.set(self, "network", value)
148
+
149
+ @property
150
+ @pulumi.getter
151
+ def project(self) -> Optional[pulumi.Input[str]]:
152
+ """
153
+ The id of the Google Cloud project containing the consumer network.
154
+ """
155
+ return pulumi.get(self, "project")
156
+
157
+ @project.setter
158
+ def project(self, value: Optional[pulumi.Input[str]]):
159
+ pulumi.set(self, "project", value)
160
+
161
+ @property
162
+ @pulumi.getter
163
+ def service(self) -> Optional[pulumi.Input[str]]:
164
+ """
165
+ The service that is managing peering connectivity for a service
166
+ producer's organization. For Google services that support this
167
+ functionality, this value is `servicenetworking.googleapis.com`.
168
+
169
+
170
+ - - -
171
+ """
172
+ return pulumi.get(self, "service")
173
+
174
+ @service.setter
175
+ def service(self, value: Optional[pulumi.Input[str]]):
176
+ pulumi.set(self, "service", value)
177
+
178
+
179
+ class VpcServiceControls(pulumi.CustomResource):
180
+ @overload
181
+ def __init__(__self__,
182
+ resource_name: str,
183
+ opts: Optional[pulumi.ResourceOptions] = None,
184
+ enabled: Optional[pulumi.Input[bool]] = None,
185
+ network: Optional[pulumi.Input[str]] = None,
186
+ project: Optional[pulumi.Input[str]] = None,
187
+ service: Optional[pulumi.Input[str]] = None,
188
+ __props__=None):
189
+ """
190
+ Manages the VPC Service Controls configuration for a service
191
+ networking connection
192
+
193
+ When enabled, Google Cloud makes the following
194
+ route configuration changes in the service producer VPC network:
195
+ - Removes the IPv4 default route (destination 0.0.0.0/0,
196
+ next hop default internet gateway), Google Cloud then creates an
197
+ IPv4 route for destination 199.36.153.4/30 using the default
198
+ internet gateway next hop.
199
+ - Creates Cloud DNS managed private zones and authorizes those zones
200
+ for the service producer VPC network. The zones include
201
+ googleapis.com, gcr.io, pkg.dev, notebooks.cloud.google.com,
202
+ kernels.googleusercontent.com, backupdr.cloud.google.com, and
203
+ backupdr.googleusercontent.com as necessary domains or host names
204
+ for Google APIs and services that are compatible with VPC Service
205
+ Controls. Record data in the zones resolves all host names to
206
+ 199.36.153.4, 199.36.153.5, 199.36.153.6, and 199.36.153.7.
207
+
208
+ When disabled, Google Cloud makes the following route configuration
209
+ changes in the service producer VPC network:
210
+ - Restores a default route (destination 0.0.0.0/0, next hop default
211
+ internet gateway)
212
+ - Deletes the Cloud DNS managed private zones that provided the host
213
+ name overrides.
214
+
215
+ To get more information about VPCServiceControls, see:
216
+
217
+ * [API documentation](https://cloud.google.com/service-infrastructure/docs/service-networking/reference/rest/v1/services)
218
+ * How-to Guides
219
+ * [Private Google Access with VPC Service Controls](https://cloud.google.com/vpc-service-controls/docs/private-connectivity)
220
+ * [Set up private connectivity to Google APIs and services](https://cloud.google.com/vpc-service-controls/docs/set-up-private-connectivity)
221
+ * [Enable VPC Service Controls for service networking](https://cloud.google.com/sdk/gcloud/reference/services/vpc-peerings/enable-vpc-service-controls)
222
+
223
+ > **Note:** Destroying a `servicenetworking.VpcServiceControls`
224
+ resource will remove it from state, but will not change the
225
+ underlying VPC Service Controls configuration for the service
226
+ producer network.
227
+
228
+ ## Example Usage
229
+
230
+ ### Service Networking Vpc Service Controls Basic
231
+
232
+ ```python
233
+ import pulumi
234
+ import pulumi_gcp as gcp
235
+
236
+ # Create a VPC
237
+ default = gcp.compute.Network("default", name="example-network")
238
+ # Create an IP address
239
+ default_global_address = gcp.compute.GlobalAddress("default",
240
+ name="psa-range",
241
+ purpose="VPC_PEERING",
242
+ address_type="INTERNAL",
243
+ prefix_length=16,
244
+ network=default.id)
245
+ # Create a private connection
246
+ default_connection = gcp.servicenetworking.Connection("default",
247
+ network=default.id,
248
+ service="servicenetworking.googleapis.com",
249
+ reserved_peering_ranges=[default_global_address.name])
250
+ # Enable VPC-SC on the producer network
251
+ default_vpc_service_controls = gcp.servicenetworking.VpcServiceControls("default",
252
+ network=default.name,
253
+ service="servicenetworking.googleapis.com",
254
+ enabled=True,
255
+ opts = pulumi.ResourceOptions(depends_on=[default_connection]))
256
+ ```
257
+
258
+ ## Import
259
+
260
+ VPCServiceControls can be imported using any of these accepted formats:
261
+
262
+ * `services/{{service}}/projects/{{project}}/networks/{{network}}`
263
+
264
+ * `{{service}}/{{project}}/{{network}}`
265
+
266
+ * `{{service}}/{{network}}`
267
+
268
+ When using the `pulumi import` command, VPCServiceControls can be imported using one of the formats above. For example:
269
+
270
+ ```sh
271
+ $ pulumi import gcp:servicenetworking/vpcServiceControls:VpcServiceControls default services/{{service}}/projects/{{project}}/networks/{{network}}
272
+ ```
273
+
274
+ ```sh
275
+ $ pulumi import gcp:servicenetworking/vpcServiceControls:VpcServiceControls default {{service}}/{{project}}/{{network}}
276
+ ```
277
+
278
+ ```sh
279
+ $ pulumi import gcp:servicenetworking/vpcServiceControls:VpcServiceControls default {{service}}/{{network}}
280
+ ```
281
+
282
+ :param str resource_name: The name of the resource.
283
+ :param pulumi.ResourceOptions opts: Options for the resource.
284
+ :param pulumi.Input[bool] enabled: Desired VPC Service Controls state service producer VPC network, as
285
+ described at the top of this page.
286
+ :param pulumi.Input[str] network: The network that the consumer is using to connect with services.
287
+ :param pulumi.Input[str] project: The id of the Google Cloud project containing the consumer network.
288
+ :param pulumi.Input[str] service: The service that is managing peering connectivity for a service
289
+ producer's organization. For Google services that support this
290
+ functionality, this value is `servicenetworking.googleapis.com`.
291
+
292
+
293
+ - - -
294
+ """
295
+ ...
296
+ @overload
297
+ def __init__(__self__,
298
+ resource_name: str,
299
+ args: VpcServiceControlsArgs,
300
+ opts: Optional[pulumi.ResourceOptions] = None):
301
+ """
302
+ Manages the VPC Service Controls configuration for a service
303
+ networking connection
304
+
305
+ When enabled, Google Cloud makes the following
306
+ route configuration changes in the service producer VPC network:
307
+ - Removes the IPv4 default route (destination 0.0.0.0/0,
308
+ next hop default internet gateway), Google Cloud then creates an
309
+ IPv4 route for destination 199.36.153.4/30 using the default
310
+ internet gateway next hop.
311
+ - Creates Cloud DNS managed private zones and authorizes those zones
312
+ for the service producer VPC network. The zones include
313
+ googleapis.com, gcr.io, pkg.dev, notebooks.cloud.google.com,
314
+ kernels.googleusercontent.com, backupdr.cloud.google.com, and
315
+ backupdr.googleusercontent.com as necessary domains or host names
316
+ for Google APIs and services that are compatible with VPC Service
317
+ Controls. Record data in the zones resolves all host names to
318
+ 199.36.153.4, 199.36.153.5, 199.36.153.6, and 199.36.153.7.
319
+
320
+ When disabled, Google Cloud makes the following route configuration
321
+ changes in the service producer VPC network:
322
+ - Restores a default route (destination 0.0.0.0/0, next hop default
323
+ internet gateway)
324
+ - Deletes the Cloud DNS managed private zones that provided the host
325
+ name overrides.
326
+
327
+ To get more information about VPCServiceControls, see:
328
+
329
+ * [API documentation](https://cloud.google.com/service-infrastructure/docs/service-networking/reference/rest/v1/services)
330
+ * How-to Guides
331
+ * [Private Google Access with VPC Service Controls](https://cloud.google.com/vpc-service-controls/docs/private-connectivity)
332
+ * [Set up private connectivity to Google APIs and services](https://cloud.google.com/vpc-service-controls/docs/set-up-private-connectivity)
333
+ * [Enable VPC Service Controls for service networking](https://cloud.google.com/sdk/gcloud/reference/services/vpc-peerings/enable-vpc-service-controls)
334
+
335
+ > **Note:** Destroying a `servicenetworking.VpcServiceControls`
336
+ resource will remove it from state, but will not change the
337
+ underlying VPC Service Controls configuration for the service
338
+ producer network.
339
+
340
+ ## Example Usage
341
+
342
+ ### Service Networking Vpc Service Controls Basic
343
+
344
+ ```python
345
+ import pulumi
346
+ import pulumi_gcp as gcp
347
+
348
+ # Create a VPC
349
+ default = gcp.compute.Network("default", name="example-network")
350
+ # Create an IP address
351
+ default_global_address = gcp.compute.GlobalAddress("default",
352
+ name="psa-range",
353
+ purpose="VPC_PEERING",
354
+ address_type="INTERNAL",
355
+ prefix_length=16,
356
+ network=default.id)
357
+ # Create a private connection
358
+ default_connection = gcp.servicenetworking.Connection("default",
359
+ network=default.id,
360
+ service="servicenetworking.googleapis.com",
361
+ reserved_peering_ranges=[default_global_address.name])
362
+ # Enable VPC-SC on the producer network
363
+ default_vpc_service_controls = gcp.servicenetworking.VpcServiceControls("default",
364
+ network=default.name,
365
+ service="servicenetworking.googleapis.com",
366
+ enabled=True,
367
+ opts = pulumi.ResourceOptions(depends_on=[default_connection]))
368
+ ```
369
+
370
+ ## Import
371
+
372
+ VPCServiceControls can be imported using any of these accepted formats:
373
+
374
+ * `services/{{service}}/projects/{{project}}/networks/{{network}}`
375
+
376
+ * `{{service}}/{{project}}/{{network}}`
377
+
378
+ * `{{service}}/{{network}}`
379
+
380
+ When using the `pulumi import` command, VPCServiceControls can be imported using one of the formats above. For example:
381
+
382
+ ```sh
383
+ $ pulumi import gcp:servicenetworking/vpcServiceControls:VpcServiceControls default services/{{service}}/projects/{{project}}/networks/{{network}}
384
+ ```
385
+
386
+ ```sh
387
+ $ pulumi import gcp:servicenetworking/vpcServiceControls:VpcServiceControls default {{service}}/{{project}}/{{network}}
388
+ ```
389
+
390
+ ```sh
391
+ $ pulumi import gcp:servicenetworking/vpcServiceControls:VpcServiceControls default {{service}}/{{network}}
392
+ ```
393
+
394
+ :param str resource_name: The name of the resource.
395
+ :param VpcServiceControlsArgs args: The arguments to use to populate this resource's properties.
396
+ :param pulumi.ResourceOptions opts: Options for the resource.
397
+ """
398
+ ...
399
+ def __init__(__self__, resource_name: str, *args, **kwargs):
400
+ resource_args, opts = _utilities.get_resource_args_opts(VpcServiceControlsArgs, pulumi.ResourceOptions, *args, **kwargs)
401
+ if resource_args is not None:
402
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
403
+ else:
404
+ __self__._internal_init(resource_name, *args, **kwargs)
405
+
406
+ def _internal_init(__self__,
407
+ resource_name: str,
408
+ opts: Optional[pulumi.ResourceOptions] = None,
409
+ enabled: Optional[pulumi.Input[bool]] = None,
410
+ network: Optional[pulumi.Input[str]] = None,
411
+ project: Optional[pulumi.Input[str]] = None,
412
+ service: Optional[pulumi.Input[str]] = None,
413
+ __props__=None):
414
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
415
+ if not isinstance(opts, pulumi.ResourceOptions):
416
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
417
+ if opts.id is None:
418
+ if __props__ is not None:
419
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
420
+ __props__ = VpcServiceControlsArgs.__new__(VpcServiceControlsArgs)
421
+
422
+ if enabled is None and not opts.urn:
423
+ raise TypeError("Missing required property 'enabled'")
424
+ __props__.__dict__["enabled"] = enabled
425
+ if network is None and not opts.urn:
426
+ raise TypeError("Missing required property 'network'")
427
+ __props__.__dict__["network"] = network
428
+ __props__.__dict__["project"] = project
429
+ if service is None and not opts.urn:
430
+ raise TypeError("Missing required property 'service'")
431
+ __props__.__dict__["service"] = service
432
+ super(VpcServiceControls, __self__).__init__(
433
+ 'gcp:servicenetworking/vpcServiceControls:VpcServiceControls',
434
+ resource_name,
435
+ __props__,
436
+ opts)
437
+
438
+ @staticmethod
439
+ def get(resource_name: str,
440
+ id: pulumi.Input[str],
441
+ opts: Optional[pulumi.ResourceOptions] = None,
442
+ enabled: Optional[pulumi.Input[bool]] = None,
443
+ network: Optional[pulumi.Input[str]] = None,
444
+ project: Optional[pulumi.Input[str]] = None,
445
+ service: Optional[pulumi.Input[str]] = None) -> 'VpcServiceControls':
446
+ """
447
+ Get an existing VpcServiceControls resource's state with the given name, id, and optional extra
448
+ properties used to qualify the lookup.
449
+
450
+ :param str resource_name: The unique name of the resulting resource.
451
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
452
+ :param pulumi.ResourceOptions opts: Options for the resource.
453
+ :param pulumi.Input[bool] enabled: Desired VPC Service Controls state service producer VPC network, as
454
+ described at the top of this page.
455
+ :param pulumi.Input[str] network: The network that the consumer is using to connect with services.
456
+ :param pulumi.Input[str] project: The id of the Google Cloud project containing the consumer network.
457
+ :param pulumi.Input[str] service: The service that is managing peering connectivity for a service
458
+ producer's organization. For Google services that support this
459
+ functionality, this value is `servicenetworking.googleapis.com`.
460
+
461
+
462
+ - - -
463
+ """
464
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
465
+
466
+ __props__ = _VpcServiceControlsState.__new__(_VpcServiceControlsState)
467
+
468
+ __props__.__dict__["enabled"] = enabled
469
+ __props__.__dict__["network"] = network
470
+ __props__.__dict__["project"] = project
471
+ __props__.__dict__["service"] = service
472
+ return VpcServiceControls(resource_name, opts=opts, __props__=__props__)
473
+
474
+ @property
475
+ @pulumi.getter
476
+ def enabled(self) -> pulumi.Output[bool]:
477
+ """
478
+ Desired VPC Service Controls state service producer VPC network, as
479
+ described at the top of this page.
480
+ """
481
+ return pulumi.get(self, "enabled")
482
+
483
+ @property
484
+ @pulumi.getter
485
+ def network(self) -> pulumi.Output[str]:
486
+ """
487
+ The network that the consumer is using to connect with services.
488
+ """
489
+ return pulumi.get(self, "network")
490
+
491
+ @property
492
+ @pulumi.getter
493
+ def project(self) -> pulumi.Output[Optional[str]]:
494
+ """
495
+ The id of the Google Cloud project containing the consumer network.
496
+ """
497
+ return pulumi.get(self, "project")
498
+
499
+ @property
500
+ @pulumi.getter
501
+ def service(self) -> pulumi.Output[str]:
502
+ """
503
+ The service that is managing peering connectivity for a service
504
+ producer's organization. For Google services that support this
505
+ functionality, this value is `servicenetworking.googleapis.com`.
506
+
507
+
508
+ - - -
509
+ """
510
+ return pulumi.get(self, "service")
511
+
pulumi_gcp/sql/user.py CHANGED
@@ -48,7 +48,9 @@ class UserArgs:
48
48
  is not provided, the provider project is used.
49
49
  :param pulumi.Input[str] type: The user type. It determines the method to authenticate the
50
50
  user during login. The default is the database's built-in user type. Flags
51
- include "BUILT_IN", "CLOUD_IAM_USER", "CLOUD_IAM_GROUP" or "CLOUD_IAM_SERVICE_ACCOUNT".
51
+ include "BUILT_IN", "CLOUD_IAM_USER", and "CLOUD_IAM_SERVICE_ACCOUNT" for both
52
+ [Postgres](https://cloud.google.com/sql/docs/postgres/admin-api/rest/v1beta4/users#sqlusertype) and [MySQL](https://cloud.google.com/sql/docs/mysql/admin-api/rest/v1beta4/users#sqlusertype).
53
+ MySQL also includes "CLOUD_IAM_GROUP", "CLOUD_IAM_GROUP_USER" and "CLOUD_IAM_GROUP_SERVICE_ACCOUNT".
52
54
  """
53
55
  pulumi.set(__self__, "instance", instance)
54
56
  if deletion_policy is not None:
@@ -167,7 +169,9 @@ class UserArgs:
167
169
  """
168
170
  The user type. It determines the method to authenticate the
169
171
  user during login. The default is the database's built-in user type. Flags
170
- include "BUILT_IN", "CLOUD_IAM_USER", "CLOUD_IAM_GROUP" or "CLOUD_IAM_SERVICE_ACCOUNT".
172
+ include "BUILT_IN", "CLOUD_IAM_USER", and "CLOUD_IAM_SERVICE_ACCOUNT" for both
173
+ [Postgres](https://cloud.google.com/sql/docs/postgres/admin-api/rest/v1beta4/users#sqlusertype) and [MySQL](https://cloud.google.com/sql/docs/mysql/admin-api/rest/v1beta4/users#sqlusertype).
174
+ MySQL also includes "CLOUD_IAM_GROUP", "CLOUD_IAM_GROUP_USER" and "CLOUD_IAM_GROUP_SERVICE_ACCOUNT".
171
175
  """
172
176
  return pulumi.get(self, "type")
173
177
 
@@ -212,7 +216,9 @@ class _UserState:
212
216
  is not provided, the provider project is used.
213
217
  :param pulumi.Input[str] type: The user type. It determines the method to authenticate the
214
218
  user during login. The default is the database's built-in user type. Flags
215
- include "BUILT_IN", "CLOUD_IAM_USER", "CLOUD_IAM_GROUP" or "CLOUD_IAM_SERVICE_ACCOUNT".
219
+ include "BUILT_IN", "CLOUD_IAM_USER", and "CLOUD_IAM_SERVICE_ACCOUNT" for both
220
+ [Postgres](https://cloud.google.com/sql/docs/postgres/admin-api/rest/v1beta4/users#sqlusertype) and [MySQL](https://cloud.google.com/sql/docs/mysql/admin-api/rest/v1beta4/users#sqlusertype).
221
+ MySQL also includes "CLOUD_IAM_GROUP", "CLOUD_IAM_GROUP_USER" and "CLOUD_IAM_GROUP_SERVICE_ACCOUNT".
216
222
  """
217
223
  if deletion_policy is not None:
218
224
  pulumi.set(__self__, "deletion_policy", deletion_policy)
@@ -343,7 +349,9 @@ class _UserState:
343
349
  """
344
350
  The user type. It determines the method to authenticate the
345
351
  user during login. The default is the database's built-in user type. Flags
346
- include "BUILT_IN", "CLOUD_IAM_USER", "CLOUD_IAM_GROUP" or "CLOUD_IAM_SERVICE_ACCOUNT".
352
+ include "BUILT_IN", "CLOUD_IAM_USER", and "CLOUD_IAM_SERVICE_ACCOUNT" for both
353
+ [Postgres](https://cloud.google.com/sql/docs/postgres/admin-api/rest/v1beta4/users#sqlusertype) and [MySQL](https://cloud.google.com/sql/docs/mysql/admin-api/rest/v1beta4/users#sqlusertype).
354
+ MySQL also includes "CLOUD_IAM_GROUP", "CLOUD_IAM_GROUP_USER" and "CLOUD_IAM_GROUP_SERVICE_ACCOUNT".
347
355
  """
348
356
  return pulumi.get(self, "type")
349
357
 
@@ -494,7 +502,9 @@ class User(pulumi.CustomResource):
494
502
  is not provided, the provider project is used.
495
503
  :param pulumi.Input[str] type: The user type. It determines the method to authenticate the
496
504
  user during login. The default is the database's built-in user type. Flags
497
- include "BUILT_IN", "CLOUD_IAM_USER", "CLOUD_IAM_GROUP" or "CLOUD_IAM_SERVICE_ACCOUNT".
505
+ include "BUILT_IN", "CLOUD_IAM_USER", and "CLOUD_IAM_SERVICE_ACCOUNT" for both
506
+ [Postgres](https://cloud.google.com/sql/docs/postgres/admin-api/rest/v1beta4/users#sqlusertype) and [MySQL](https://cloud.google.com/sql/docs/mysql/admin-api/rest/v1beta4/users#sqlusertype).
507
+ MySQL also includes "CLOUD_IAM_GROUP", "CLOUD_IAM_GROUP_USER" and "CLOUD_IAM_GROUP_SERVICE_ACCOUNT".
498
508
  """
499
509
  ...
500
510
  @overload
@@ -699,7 +709,9 @@ class User(pulumi.CustomResource):
699
709
  is not provided, the provider project is used.
700
710
  :param pulumi.Input[str] type: The user type. It determines the method to authenticate the
701
711
  user during login. The default is the database's built-in user type. Flags
702
- include "BUILT_IN", "CLOUD_IAM_USER", "CLOUD_IAM_GROUP" or "CLOUD_IAM_SERVICE_ACCOUNT".
712
+ include "BUILT_IN", "CLOUD_IAM_USER", and "CLOUD_IAM_SERVICE_ACCOUNT" for both
713
+ [Postgres](https://cloud.google.com/sql/docs/postgres/admin-api/rest/v1beta4/users#sqlusertype) and [MySQL](https://cloud.google.com/sql/docs/mysql/admin-api/rest/v1beta4/users#sqlusertype).
714
+ MySQL also includes "CLOUD_IAM_GROUP", "CLOUD_IAM_GROUP_USER" and "CLOUD_IAM_GROUP_SERVICE_ACCOUNT".
703
715
  """
704
716
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
705
717
 
@@ -794,7 +806,9 @@ class User(pulumi.CustomResource):
794
806
  """
795
807
  The user type. It determines the method to authenticate the
796
808
  user during login. The default is the database's built-in user type. Flags
797
- include "BUILT_IN", "CLOUD_IAM_USER", "CLOUD_IAM_GROUP" or "CLOUD_IAM_SERVICE_ACCOUNT".
809
+ include "BUILT_IN", "CLOUD_IAM_USER", and "CLOUD_IAM_SERVICE_ACCOUNT" for both
810
+ [Postgres](https://cloud.google.com/sql/docs/postgres/admin-api/rest/v1beta4/users#sqlusertype) and [MySQL](https://cloud.google.com/sql/docs/mysql/admin-api/rest/v1beta4/users#sqlusertype).
811
+ MySQL also includes "CLOUD_IAM_GROUP", "CLOUD_IAM_GROUP_USER" and "CLOUD_IAM_GROUP_SERVICE_ACCOUNT".
798
812
  """
799
813
  return pulumi.get(self, "type")
800
814
 
@@ -522,14 +522,11 @@ class Connector(pulumi.CustomResource):
522
522
  import pulumi
523
523
  import pulumi_gcp as gcp
524
524
 
525
- custom_test_network = gcp.compute.Network("custom_test",
526
- name="vpc-con",
527
- auto_create_subnetworks=False)
528
525
  custom_test = gcp.compute.Subnetwork("custom_test",
529
526
  name="vpc-con",
530
527
  ip_cidr_range="10.2.0.0/28",
531
528
  region="us-central1",
532
- network=custom_test_network.id)
529
+ network="default")
533
530
  connector = gcp.vpcaccess.Connector("connector",
534
531
  name="vpc-con",
535
532
  subnet=gcp.vpcaccess.ConnectorSubnetArgs(
@@ -628,14 +625,11 @@ class Connector(pulumi.CustomResource):
628
625
  import pulumi
629
626
  import pulumi_gcp as gcp
630
627
 
631
- custom_test_network = gcp.compute.Network("custom_test",
632
- name="vpc-con",
633
- auto_create_subnetworks=False)
634
628
  custom_test = gcp.compute.Subnetwork("custom_test",
635
629
  name="vpc-con",
636
630
  ip_cidr_range="10.2.0.0/28",
637
631
  region="us-central1",
638
- network=custom_test_network.id)
632
+ network="default")
639
633
  connector = gcp.vpcaccess.Connector("connector",
640
634
  name="vpc-con",
641
635
  subnet=gcp.vpcaccess.ConnectorSubnetArgs(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulumi_gcp
3
- Version: 7.29.0a1719364094
3
+ Version: 7.29.0a1719365805
4
4
  Summary: A Pulumi package for creating and managing Google Cloud Platform resources.
5
5
  License: Apache-2.0
6
6
  Project-URL: Homepage, https://pulumi.io