pulumi-gcp 7.39.0a1726207510__py3-none-any.whl → 8.0.0a1__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 (167) hide show
  1. pulumi_gcp/__init__.py +32 -19
  2. pulumi_gcp/accesscontextmanager/access_policy.py +4 -2
  3. pulumi_gcp/activedirectory/domain.py +38 -2
  4. pulumi_gcp/activedirectory/domain_trust.py +0 -30
  5. pulumi_gcp/activedirectory/peering.py +0 -72
  6. pulumi_gcp/alloydb/cluster.py +12 -200
  7. pulumi_gcp/alloydb/instance.py +13 -5
  8. pulumi_gcp/alloydb/user.py +14 -6
  9. pulumi_gcp/apigee/keystores_aliases_self_signed_cert.py +4 -2
  10. pulumi_gcp/apigee/sync_authorization.py +4 -2
  11. pulumi_gcp/apigee/target_server.py +4 -2
  12. pulumi_gcp/appengine/firewall_rule.py +4 -2
  13. pulumi_gcp/appengine/flexible_app_version.py +4 -2
  14. pulumi_gcp/apphub/service.py +8 -4
  15. pulumi_gcp/apphub/service_project_attachment.py +8 -4
  16. pulumi_gcp/applicationintegration/client.py +0 -154
  17. pulumi_gcp/bigquery/_inputs.py +0 -70
  18. pulumi_gcp/bigquery/iam_binding.py +0 -260
  19. pulumi_gcp/bigquery/iam_member.py +0 -260
  20. pulumi_gcp/bigquery/iam_policy.py +0 -240
  21. pulumi_gcp/bigquery/outputs.py +0 -44
  22. pulumi_gcp/bigquery/reservation.py +0 -84
  23. pulumi_gcp/bigquery/table.py +0 -98
  24. pulumi_gcp/billing/project_info.py +4 -2
  25. pulumi_gcp/certificateauthority/get_authority.py +0 -20
  26. pulumi_gcp/certificatemanager/get_certificate_map.py +0 -14
  27. pulumi_gcp/cloudasset/folder_feed.py +4 -2
  28. pulumi_gcp/cloudidentity/get_group_lookup.py +0 -18
  29. pulumi_gcp/cloudidentity/get_group_memberships.py +0 -14
  30. pulumi_gcp/cloudidentity/get_groups.py +0 -14
  31. pulumi_gcp/cloudrunv2/_inputs.py +25 -25
  32. pulumi_gcp/cloudrunv2/get_job.py +11 -1
  33. pulumi_gcp/cloudrunv2/get_service.py +11 -1
  34. pulumi_gcp/cloudrunv2/job.py +50 -0
  35. pulumi_gcp/cloudrunv2/outputs.py +26 -26
  36. pulumi_gcp/cloudrunv2/service.py +54 -0
  37. pulumi_gcp/compute/_inputs.py +117 -54
  38. pulumi_gcp/compute/backend_service.py +52 -0
  39. pulumi_gcp/compute/disk_async_replication.py +0 -48
  40. pulumi_gcp/compute/firewall_policy_rule.py +4 -2
  41. pulumi_gcp/compute/forwarding_rule.py +42 -0
  42. pulumi_gcp/compute/get_backend_bucket.py +0 -14
  43. pulumi_gcp/compute/get_backend_service.py +0 -20
  44. pulumi_gcp/compute/get_certificate.py +0 -20
  45. pulumi_gcp/compute/get_forwarding_rule.py +11 -15
  46. pulumi_gcp/compute/get_forwarding_rules.py +0 -16
  47. pulumi_gcp/compute/get_global_forwarding_rule.py +0 -14
  48. pulumi_gcp/compute/get_hc_vpn_gateway.py +0 -14
  49. pulumi_gcp/compute/get_health_check.py +0 -14
  50. pulumi_gcp/compute/get_lbip_ranges.py +0 -32
  51. pulumi_gcp/compute/get_netblock_ip_ranges.py +0 -52
  52. pulumi_gcp/compute/get_network.py +0 -14
  53. pulumi_gcp/compute/get_networks.py +0 -14
  54. pulumi_gcp/compute/get_region_ssl_certificate.py +0 -20
  55. pulumi_gcp/compute/get_ssl_policy.py +0 -14
  56. pulumi_gcp/compute/get_vpn_gateway.py +0 -14
  57. pulumi_gcp/compute/global_address.py +8 -4
  58. pulumi_gcp/compute/global_forwarding_rule.py +7 -0
  59. pulumi_gcp/compute/instance_template.py +56 -63
  60. pulumi_gcp/compute/managed_ssl_certificate.py +1 -20
  61. pulumi_gcp/compute/manged_ssl_certificate.py +1 -20
  62. pulumi_gcp/compute/network_attachment.py +8 -4
  63. pulumi_gcp/compute/node_group.py +4 -2
  64. pulumi_gcp/compute/organization_security_policy_association.py +4 -2
  65. pulumi_gcp/compute/outputs.py +101 -42
  66. pulumi_gcp/compute/project_cloud_armor_tier.py +4 -2
  67. pulumi_gcp/compute/region_backend_service.py +36 -7
  68. pulumi_gcp/compute/region_instance_template.py +56 -7
  69. pulumi_gcp/compute/region_ssl_certificate.py +49 -7
  70. pulumi_gcp/compute/ssl_certificate.py +49 -7
  71. pulumi_gcp/compute/subnetwork.py +193 -23
  72. pulumi_gcp/config/__init__.pyi +3 -5
  73. pulumi_gcp/config/vars.py +6 -10
  74. pulumi_gcp/container/_inputs.py +19 -41
  75. pulumi_gcp/container/cluster.py +79 -0
  76. pulumi_gcp/container/get_cluster.py +21 -25
  77. pulumi_gcp/container/get_engine_versions.py +8 -2
  78. pulumi_gcp/container/outputs.py +17 -40
  79. pulumi_gcp/dataproc/get_metastore_service.py +0 -16
  80. pulumi_gcp/diagflow/intent.py +4 -2
  81. pulumi_gcp/dns/get_record_set.py +0 -20
  82. pulumi_gcp/edgenetwork/network.py +83 -0
  83. pulumi_gcp/edgenetwork/subnet.py +83 -0
  84. pulumi_gcp/filestore/get_instance.py +0 -20
  85. pulumi_gcp/firebase/database_instance.py +2 -0
  86. pulumi_gcp/firebase/hosting_custom_domain.py +4 -2
  87. pulumi_gcp/firebase/hosting_version.py +4 -2
  88. pulumi_gcp/firebase/project.py +2 -0
  89. pulumi_gcp/firestore/document.py +8 -4
  90. pulumi_gcp/folder/access_approval_settings.py +12 -6
  91. pulumi_gcp/gkeonprem/_inputs.py +11 -11
  92. pulumi_gcp/gkeonprem/outputs.py +9 -9
  93. pulumi_gcp/gkeonprem/v_mware_cluster.py +31 -31
  94. pulumi_gcp/gkeonprem/v_mware_node_pool.py +186 -0
  95. pulumi_gcp/iam/access_boundary_policy.py +4 -2
  96. pulumi_gcp/iam/deny_policy.py +4 -2
  97. pulumi_gcp/iam/get_workload_identity_pool.py +0 -14
  98. pulumi_gcp/iam/get_workload_identity_pool_provider.py +0 -16
  99. pulumi_gcp/iap/brand.py +4 -2
  100. pulumi_gcp/iap/client.py +4 -2
  101. pulumi_gcp/iap/get_client.py +0 -18
  102. pulumi_gcp/identityplatform/__init__.py +0 -1
  103. pulumi_gcp/identityplatform/_inputs.py +0 -396
  104. pulumi_gcp/identityplatform/config.py +2 -0
  105. pulumi_gcp/identityplatform/outputs.py +0 -313
  106. pulumi_gcp/integrationconnectors/managed_zone.py +4 -2
  107. pulumi_gcp/kms/__init__.py +4 -0
  108. pulumi_gcp/kms/_inputs.py +130 -0
  109. pulumi_gcp/kms/autokey_config.py +6 -2
  110. pulumi_gcp/kms/ekm_connection_iam_binding.py +1097 -0
  111. pulumi_gcp/kms/ekm_connection_iam_member.py +1097 -0
  112. pulumi_gcp/kms/ekm_connection_iam_policy.py +916 -0
  113. pulumi_gcp/kms/get_ekm_connection_iam_policy.py +177 -0
  114. pulumi_gcp/kms/key_handle.py +8 -2
  115. pulumi_gcp/kms/outputs.py +76 -0
  116. pulumi_gcp/logging/folder_settings.py +4 -2
  117. pulumi_gcp/monitoring/get_secret_version.py +2 -2
  118. pulumi_gcp/monitoring/monitored_project.py +4 -2
  119. pulumi_gcp/networksecurity/firewall_endpoint_association.py +12 -44
  120. pulumi_gcp/networkservices/_inputs.py +23 -0
  121. pulumi_gcp/networkservices/outputs.py +17 -1
  122. pulumi_gcp/networkservices/tcp_route.py +2 -0
  123. pulumi_gcp/organizations/access_approval_settings.py +4 -2
  124. pulumi_gcp/organizations/folder.py +35 -1
  125. pulumi_gcp/organizations/get_active_folder.py +0 -16
  126. pulumi_gcp/organizations/get_client_config.py +16 -15
  127. pulumi_gcp/organizations/get_folder.py +11 -1
  128. pulumi_gcp/organizations/get_project.py +3 -13
  129. pulumi_gcp/organizations/project.py +3 -87
  130. pulumi_gcp/orgpolicy/policy.py +12 -6
  131. pulumi_gcp/projects/api_key.py +2 -52
  132. pulumi_gcp/provider.py +32 -52
  133. pulumi_gcp/pubsub/topic.py +1 -1
  134. pulumi_gcp/pulumi-plugin.json +1 -1
  135. pulumi_gcp/redis/cluster.py +58 -0
  136. pulumi_gcp/redis/get_instance.py +0 -20
  137. pulumi_gcp/resourcemanager/lien.py +4 -2
  138. pulumi_gcp/secretmanager/get_secret_version.py +2 -2
  139. pulumi_gcp/securitycenter/__init__.py +1 -0
  140. pulumi_gcp/securitycenter/folder_custom_module.py +8 -4
  141. pulumi_gcp/securitycenter/management_folder_security_health_analytics_custom_module.py +8 -4
  142. pulumi_gcp/securitycenter/v2_organization_scc_big_query_exports.py +862 -0
  143. pulumi_gcp/serviceusage/consumer_quota_override.py +12 -6
  144. pulumi_gcp/spanner/get_instance.py +0 -14
  145. pulumi_gcp/sql/_inputs.py +3 -36
  146. pulumi_gcp/sql/outputs.py +6 -49
  147. pulumi_gcp/storage/_inputs.py +23 -23
  148. pulumi_gcp/storage/bucket.py +6 -6
  149. pulumi_gcp/storage/outputs.py +27 -27
  150. pulumi_gcp/tags/get_tag_key.py +0 -30
  151. pulumi_gcp/tags/get_tag_keys.py +0 -26
  152. pulumi_gcp/tags/get_tag_value.py +0 -16
  153. pulumi_gcp/tags/get_tag_values.py +0 -14
  154. pulumi_gcp/tags/tag_binding.py +4 -2
  155. pulumi_gcp/vertex/ai_feature_online_store_featureview.py +4 -2
  156. pulumi_gcp/vmwareengine/network.py +4 -2
  157. pulumi_gcp/vpcaccess/connector.py +14 -6
  158. pulumi_gcp/vpcaccess/get_connector.py +6 -2
  159. {pulumi_gcp-7.39.0a1726207510.dist-info → pulumi_gcp-8.0.0a1.dist-info}/METADATA +1 -1
  160. {pulumi_gcp-7.39.0a1726207510.dist-info → pulumi_gcp-8.0.0a1.dist-info}/RECORD +162 -162
  161. pulumi_gcp/datastore/__init__.py +0 -10
  162. pulumi_gcp/datastore/_inputs.py +0 -76
  163. pulumi_gcp/datastore/data_store_index.py +0 -515
  164. pulumi_gcp/datastore/outputs.py +0 -51
  165. pulumi_gcp/identityplatform/project_default_config.py +0 -357
  166. {pulumi_gcp-7.39.0a1726207510.dist-info → pulumi_gcp-8.0.0a1.dist-info}/WHEEL +0 -0
  167. {pulumi_gcp-7.39.0a1726207510.dist-info → pulumi_gcp-8.0.0a1.dist-info}/top_level.txt +0 -0
@@ -35,7 +35,6 @@ class ClusterArgs:
35
35
  initial_user: Optional[pulumi.Input['ClusterInitialUserArgs']] = None,
36
36
  labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
37
37
  maintenance_update_policy: Optional[pulumi.Input['ClusterMaintenanceUpdatePolicyArgs']] = None,
38
- network: Optional[pulumi.Input[str]] = None,
39
38
  network_config: Optional[pulumi.Input['ClusterNetworkConfigArgs']] = None,
40
39
  project: Optional[pulumi.Input[str]] = None,
41
40
  psc_config: Optional[pulumi.Input['ClusterPscConfigArgs']] = None,
@@ -77,11 +76,6 @@ class ClusterArgs:
77
76
  Please refer to the field `effective_labels` for all of the labels present on the resource.
78
77
  :param pulumi.Input['ClusterMaintenanceUpdatePolicyArgs'] maintenance_update_policy: MaintenanceUpdatePolicy defines the policy for system updates.
79
78
  Structure is documented below.
80
- :param pulumi.Input[str] network: (Optional, Deprecated)
81
- The relative resource name of the VPC network on which the instance can be accessed. It is specified in the following form:
82
- "projects/{projectNumber}/global/networks/{network_id}".
83
-
84
- > **Warning:** `network` is deprecated and will be removed in a future major release. Instead, use `network_config` to define the network configuration.
85
79
  :param pulumi.Input['ClusterNetworkConfigArgs'] network_config: Metadata related to network configuration.
86
80
  Structure is documented below.
87
81
  :param pulumi.Input[str] project: The ID of the project in which the resource belongs.
@@ -121,11 +115,6 @@ class ClusterArgs:
121
115
  pulumi.set(__self__, "labels", labels)
122
116
  if maintenance_update_policy is not None:
123
117
  pulumi.set(__self__, "maintenance_update_policy", maintenance_update_policy)
124
- if network is not None:
125
- warnings.warn("""`network` is deprecated and will be removed in a future major release. Instead, use `network_config` to define the network configuration.""", DeprecationWarning)
126
- pulumi.log.warn("""network is deprecated: `network` is deprecated and will be removed in a future major release. Instead, use `network_config` to define the network configuration.""")
127
- if network is not None:
128
- pulumi.set(__self__, "network", network)
129
118
  if network_config is not None:
130
119
  pulumi.set(__self__, "network_config", network_config)
131
120
  if project is not None:
@@ -326,23 +315,6 @@ class ClusterArgs:
326
315
  def maintenance_update_policy(self, value: Optional[pulumi.Input['ClusterMaintenanceUpdatePolicyArgs']]):
327
316
  pulumi.set(self, "maintenance_update_policy", value)
328
317
 
329
- @property
330
- @pulumi.getter
331
- @_utilities.deprecated("""`network` is deprecated and will be removed in a future major release. Instead, use `network_config` to define the network configuration.""")
332
- def network(self) -> Optional[pulumi.Input[str]]:
333
- """
334
- (Optional, Deprecated)
335
- The relative resource name of the VPC network on which the instance can be accessed. It is specified in the following form:
336
- "projects/{projectNumber}/global/networks/{network_id}".
337
-
338
- > **Warning:** `network` is deprecated and will be removed in a future major release. Instead, use `network_config` to define the network configuration.
339
- """
340
- return pulumi.get(self, "network")
341
-
342
- @network.setter
343
- def network(self, value: Optional[pulumi.Input[str]]):
344
- pulumi.set(self, "network", value)
345
-
346
318
  @property
347
319
  @pulumi.getter(name="networkConfig")
348
320
  def network_config(self) -> Optional[pulumi.Input['ClusterNetworkConfigArgs']]:
@@ -446,7 +418,6 @@ class _ClusterState:
446
418
  maintenance_update_policy: Optional[pulumi.Input['ClusterMaintenanceUpdatePolicyArgs']] = None,
447
419
  migration_sources: Optional[pulumi.Input[Sequence[pulumi.Input['ClusterMigrationSourceArgs']]]] = None,
448
420
  name: Optional[pulumi.Input[str]] = None,
449
- network: Optional[pulumi.Input[str]] = None,
450
421
  network_config: Optional[pulumi.Input['ClusterNetworkConfigArgs']] = None,
451
422
  project: Optional[pulumi.Input[str]] = None,
452
423
  psc_config: Optional[pulumi.Input['ClusterPscConfigArgs']] = None,
@@ -503,11 +474,6 @@ class _ClusterState:
503
474
  :param pulumi.Input[Sequence[pulumi.Input['ClusterMigrationSourceArgs']]] migration_sources: Cluster created via DMS migration.
504
475
  Structure is documented below.
505
476
  :param pulumi.Input[str] name: The name of the cluster resource.
506
- :param pulumi.Input[str] network: (Optional, Deprecated)
507
- The relative resource name of the VPC network on which the instance can be accessed. It is specified in the following form:
508
- "projects/{projectNumber}/global/networks/{network_id}".
509
-
510
- > **Warning:** `network` is deprecated and will be removed in a future major release. Instead, use `network_config` to define the network configuration.
511
477
  :param pulumi.Input['ClusterNetworkConfigArgs'] network_config: Metadata related to network configuration.
512
478
  Structure is documented below.
513
479
  :param pulumi.Input[str] project: The ID of the project in which the resource belongs.
@@ -570,11 +536,6 @@ class _ClusterState:
570
536
  pulumi.set(__self__, "migration_sources", migration_sources)
571
537
  if name is not None:
572
538
  pulumi.set(__self__, "name", name)
573
- if network is not None:
574
- warnings.warn("""`network` is deprecated and will be removed in a future major release. Instead, use `network_config` to define the network configuration.""", DeprecationWarning)
575
- pulumi.log.warn("""network is deprecated: `network` is deprecated and will be removed in a future major release. Instead, use `network_config` to define the network configuration.""")
576
- if network is not None:
577
- pulumi.set(__self__, "network", network)
578
539
  if network_config is not None:
579
540
  pulumi.set(__self__, "network_config", network_config)
580
541
  if project is not None:
@@ -869,23 +830,6 @@ class _ClusterState:
869
830
  def name(self, value: Optional[pulumi.Input[str]]):
870
831
  pulumi.set(self, "name", value)
871
832
 
872
- @property
873
- @pulumi.getter
874
- @_utilities.deprecated("""`network` is deprecated and will be removed in a future major release. Instead, use `network_config` to define the network configuration.""")
875
- def network(self) -> Optional[pulumi.Input[str]]:
876
- """
877
- (Optional, Deprecated)
878
- The relative resource name of the VPC network on which the instance can be accessed. It is specified in the following form:
879
- "projects/{projectNumber}/global/networks/{network_id}".
880
-
881
- > **Warning:** `network` is deprecated and will be removed in a future major release. Instead, use `network_config` to define the network configuration.
882
- """
883
- return pulumi.get(self, "network")
884
-
885
- @network.setter
886
- def network(self, value: Optional[pulumi.Input[str]]):
887
- pulumi.set(self, "network", value)
888
-
889
833
  @property
890
834
  @pulumi.getter(name="networkConfig")
891
835
  def network_config(self) -> Optional[pulumi.Input['ClusterNetworkConfigArgs']]:
@@ -1035,7 +979,6 @@ class Cluster(pulumi.CustomResource):
1035
979
  labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
1036
980
  location: Optional[pulumi.Input[str]] = None,
1037
981
  maintenance_update_policy: Optional[pulumi.Input[Union['ClusterMaintenanceUpdatePolicyArgs', 'ClusterMaintenanceUpdatePolicyArgsDict']]] = None,
1038
- network: Optional[pulumi.Input[str]] = None,
1039
982
  network_config: Optional[pulumi.Input[Union['ClusterNetworkConfigArgs', 'ClusterNetworkConfigArgsDict']]] = None,
1040
983
  project: Optional[pulumi.Input[str]] = None,
1041
984
  psc_config: Optional[pulumi.Input[Union['ClusterPscConfigArgs', 'ClusterPscConfigArgsDict']]] = None,
@@ -1108,62 +1051,6 @@ class Cluster(pulumi.CustomResource):
1108
1051
  })
1109
1052
  project = gcp.organizations.get_project()
1110
1053
  ```
1111
- ### Alloydb Cluster Restore
1112
-
1113
- ```python
1114
- import pulumi
1115
- import pulumi_gcp as gcp
1116
-
1117
- default = gcp.compute.get_network(name="alloydb-network")
1118
- source = gcp.alloydb.Cluster("source",
1119
- cluster_id="alloydb-source-cluster",
1120
- location="us-central1",
1121
- network=default.id,
1122
- initial_user={
1123
- "password": "alloydb-source-cluster",
1124
- })
1125
- private_ip_alloc = gcp.compute.GlobalAddress("private_ip_alloc",
1126
- name="alloydb-source-cluster",
1127
- address_type="INTERNAL",
1128
- purpose="VPC_PEERING",
1129
- prefix_length=16,
1130
- network=default.id)
1131
- vpc_connection = gcp.servicenetworking.Connection("vpc_connection",
1132
- network=default.id,
1133
- service="servicenetworking.googleapis.com",
1134
- reserved_peering_ranges=[private_ip_alloc.name])
1135
- source_instance = gcp.alloydb.Instance("source",
1136
- cluster=source.name,
1137
- instance_id="alloydb-instance",
1138
- instance_type="PRIMARY",
1139
- machine_config={
1140
- "cpu_count": 2,
1141
- },
1142
- opts = pulumi.ResourceOptions(depends_on=[vpc_connection]))
1143
- source_backup = gcp.alloydb.Backup("source",
1144
- backup_id="alloydb-backup",
1145
- location="us-central1",
1146
- cluster_name=source.name,
1147
- opts = pulumi.ResourceOptions(depends_on=[source_instance]))
1148
- restored_from_backup = gcp.alloydb.Cluster("restored_from_backup",
1149
- cluster_id="alloydb-backup-restored",
1150
- location="us-central1",
1151
- network_config={
1152
- "network": default.id,
1153
- },
1154
- restore_backup_source={
1155
- "backup_name": source_backup.name,
1156
- })
1157
- restored_via_pitr = gcp.alloydb.Cluster("restored_via_pitr",
1158
- cluster_id="alloydb-pitr-restored",
1159
- location="us-central1",
1160
- network=default.id,
1161
- restore_continuous_backup_source={
1162
- "cluster": source.name,
1163
- "point_in_time": "2023-08-03T19:19:00.094Z",
1164
- })
1165
- project = gcp.organizations.get_project()
1166
- ```
1167
1054
  ### Alloydb Secondary Cluster Basic
1168
1055
 
1169
1056
  ```python
@@ -1174,7 +1061,9 @@ class Cluster(pulumi.CustomResource):
1174
1061
  primary = gcp.alloydb.Cluster("primary",
1175
1062
  cluster_id="alloydb-primary-cluster",
1176
1063
  location="us-central1",
1177
- network=default.id)
1064
+ network_config={
1065
+ "network": default.id,
1066
+ })
1178
1067
  private_ip_alloc = gcp.compute.GlobalAddress("private_ip_alloc",
1179
1068
  name="alloydb-secondary-cluster",
1180
1069
  address_type="INTERNAL",
@@ -1196,7 +1085,9 @@ class Cluster(pulumi.CustomResource):
1196
1085
  secondary = gcp.alloydb.Cluster("secondary",
1197
1086
  cluster_id="alloydb-secondary-cluster",
1198
1087
  location="us-east1",
1199
- network=default.id,
1088
+ network_config={
1089
+ "network": default.id,
1090
+ },
1200
1091
  cluster_type="SECONDARY",
1201
1092
  continuous_backup_config={
1202
1093
  "enabled": False,
@@ -1273,11 +1164,6 @@ class Cluster(pulumi.CustomResource):
1273
1164
  - - -
1274
1165
  :param pulumi.Input[Union['ClusterMaintenanceUpdatePolicyArgs', 'ClusterMaintenanceUpdatePolicyArgsDict']] maintenance_update_policy: MaintenanceUpdatePolicy defines the policy for system updates.
1275
1166
  Structure is documented below.
1276
- :param pulumi.Input[str] network: (Optional, Deprecated)
1277
- The relative resource name of the VPC network on which the instance can be accessed. It is specified in the following form:
1278
- "projects/{projectNumber}/global/networks/{network_id}".
1279
-
1280
- > **Warning:** `network` is deprecated and will be removed in a future major release. Instead, use `network_config` to define the network configuration.
1281
1167
  :param pulumi.Input[Union['ClusterNetworkConfigArgs', 'ClusterNetworkConfigArgsDict']] network_config: Metadata related to network configuration.
1282
1168
  Structure is documented below.
1283
1169
  :param pulumi.Input[str] project: The ID of the project in which the resource belongs.
@@ -1362,62 +1248,6 @@ class Cluster(pulumi.CustomResource):
1362
1248
  })
1363
1249
  project = gcp.organizations.get_project()
1364
1250
  ```
1365
- ### Alloydb Cluster Restore
1366
-
1367
- ```python
1368
- import pulumi
1369
- import pulumi_gcp as gcp
1370
-
1371
- default = gcp.compute.get_network(name="alloydb-network")
1372
- source = gcp.alloydb.Cluster("source",
1373
- cluster_id="alloydb-source-cluster",
1374
- location="us-central1",
1375
- network=default.id,
1376
- initial_user={
1377
- "password": "alloydb-source-cluster",
1378
- })
1379
- private_ip_alloc = gcp.compute.GlobalAddress("private_ip_alloc",
1380
- name="alloydb-source-cluster",
1381
- address_type="INTERNAL",
1382
- purpose="VPC_PEERING",
1383
- prefix_length=16,
1384
- network=default.id)
1385
- vpc_connection = gcp.servicenetworking.Connection("vpc_connection",
1386
- network=default.id,
1387
- service="servicenetworking.googleapis.com",
1388
- reserved_peering_ranges=[private_ip_alloc.name])
1389
- source_instance = gcp.alloydb.Instance("source",
1390
- cluster=source.name,
1391
- instance_id="alloydb-instance",
1392
- instance_type="PRIMARY",
1393
- machine_config={
1394
- "cpu_count": 2,
1395
- },
1396
- opts = pulumi.ResourceOptions(depends_on=[vpc_connection]))
1397
- source_backup = gcp.alloydb.Backup("source",
1398
- backup_id="alloydb-backup",
1399
- location="us-central1",
1400
- cluster_name=source.name,
1401
- opts = pulumi.ResourceOptions(depends_on=[source_instance]))
1402
- restored_from_backup = gcp.alloydb.Cluster("restored_from_backup",
1403
- cluster_id="alloydb-backup-restored",
1404
- location="us-central1",
1405
- network_config={
1406
- "network": default.id,
1407
- },
1408
- restore_backup_source={
1409
- "backup_name": source_backup.name,
1410
- })
1411
- restored_via_pitr = gcp.alloydb.Cluster("restored_via_pitr",
1412
- cluster_id="alloydb-pitr-restored",
1413
- location="us-central1",
1414
- network=default.id,
1415
- restore_continuous_backup_source={
1416
- "cluster": source.name,
1417
- "point_in_time": "2023-08-03T19:19:00.094Z",
1418
- })
1419
- project = gcp.organizations.get_project()
1420
- ```
1421
1251
  ### Alloydb Secondary Cluster Basic
1422
1252
 
1423
1253
  ```python
@@ -1428,7 +1258,9 @@ class Cluster(pulumi.CustomResource):
1428
1258
  primary = gcp.alloydb.Cluster("primary",
1429
1259
  cluster_id="alloydb-primary-cluster",
1430
1260
  location="us-central1",
1431
- network=default.id)
1261
+ network_config={
1262
+ "network": default.id,
1263
+ })
1432
1264
  private_ip_alloc = gcp.compute.GlobalAddress("private_ip_alloc",
1433
1265
  name="alloydb-secondary-cluster",
1434
1266
  address_type="INTERNAL",
@@ -1450,7 +1282,9 @@ class Cluster(pulumi.CustomResource):
1450
1282
  secondary = gcp.alloydb.Cluster("secondary",
1451
1283
  cluster_id="alloydb-secondary-cluster",
1452
1284
  location="us-east1",
1453
- network=default.id,
1285
+ network_config={
1286
+ "network": default.id,
1287
+ },
1454
1288
  cluster_type="SECONDARY",
1455
1289
  continuous_backup_config={
1456
1290
  "enabled": False,
@@ -1521,7 +1355,6 @@ class Cluster(pulumi.CustomResource):
1521
1355
  labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
1522
1356
  location: Optional[pulumi.Input[str]] = None,
1523
1357
  maintenance_update_policy: Optional[pulumi.Input[Union['ClusterMaintenanceUpdatePolicyArgs', 'ClusterMaintenanceUpdatePolicyArgsDict']]] = None,
1524
- network: Optional[pulumi.Input[str]] = None,
1525
1358
  network_config: Optional[pulumi.Input[Union['ClusterNetworkConfigArgs', 'ClusterNetworkConfigArgsDict']]] = None,
1526
1359
  project: Optional[pulumi.Input[str]] = None,
1527
1360
  psc_config: Optional[pulumi.Input[Union['ClusterPscConfigArgs', 'ClusterPscConfigArgsDict']]] = None,
@@ -1555,7 +1388,6 @@ class Cluster(pulumi.CustomResource):
1555
1388
  raise TypeError("Missing required property 'location'")
1556
1389
  __props__.__dict__["location"] = location
1557
1390
  __props__.__dict__["maintenance_update_policy"] = maintenance_update_policy
1558
- __props__.__dict__["network"] = network
1559
1391
  __props__.__dict__["network_config"] = network_config
1560
1392
  __props__.__dict__["project"] = project
1561
1393
  __props__.__dict__["psc_config"] = psc_config
@@ -1606,7 +1438,6 @@ class Cluster(pulumi.CustomResource):
1606
1438
  maintenance_update_policy: Optional[pulumi.Input[Union['ClusterMaintenanceUpdatePolicyArgs', 'ClusterMaintenanceUpdatePolicyArgsDict']]] = None,
1607
1439
  migration_sources: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ClusterMigrationSourceArgs', 'ClusterMigrationSourceArgsDict']]]]] = None,
1608
1440
  name: Optional[pulumi.Input[str]] = None,
1609
- network: Optional[pulumi.Input[str]] = None,
1610
1441
  network_config: Optional[pulumi.Input[Union['ClusterNetworkConfigArgs', 'ClusterNetworkConfigArgsDict']]] = None,
1611
1442
  project: Optional[pulumi.Input[str]] = None,
1612
1443
  psc_config: Optional[pulumi.Input[Union['ClusterPscConfigArgs', 'ClusterPscConfigArgsDict']]] = None,
@@ -1668,11 +1499,6 @@ class Cluster(pulumi.CustomResource):
1668
1499
  :param pulumi.Input[Sequence[pulumi.Input[Union['ClusterMigrationSourceArgs', 'ClusterMigrationSourceArgsDict']]]] migration_sources: Cluster created via DMS migration.
1669
1500
  Structure is documented below.
1670
1501
  :param pulumi.Input[str] name: The name of the cluster resource.
1671
- :param pulumi.Input[str] network: (Optional, Deprecated)
1672
- The relative resource name of the VPC network on which the instance can be accessed. It is specified in the following form:
1673
- "projects/{projectNumber}/global/networks/{network_id}".
1674
-
1675
- > **Warning:** `network` is deprecated and will be removed in a future major release. Instead, use `network_config` to define the network configuration.
1676
1502
  :param pulumi.Input[Union['ClusterNetworkConfigArgs', 'ClusterNetworkConfigArgsDict']] network_config: Metadata related to network configuration.
1677
1503
  Structure is documented below.
1678
1504
  :param pulumi.Input[str] project: The ID of the project in which the resource belongs.
@@ -1718,7 +1544,6 @@ class Cluster(pulumi.CustomResource):
1718
1544
  __props__.__dict__["maintenance_update_policy"] = maintenance_update_policy
1719
1545
  __props__.__dict__["migration_sources"] = migration_sources
1720
1546
  __props__.__dict__["name"] = name
1721
- __props__.__dict__["network"] = network
1722
1547
  __props__.__dict__["network_config"] = network_config
1723
1548
  __props__.__dict__["project"] = project
1724
1549
  __props__.__dict__["psc_config"] = psc_config
@@ -1920,19 +1745,6 @@ class Cluster(pulumi.CustomResource):
1920
1745
  """
1921
1746
  return pulumi.get(self, "name")
1922
1747
 
1923
- @property
1924
- @pulumi.getter
1925
- @_utilities.deprecated("""`network` is deprecated and will be removed in a future major release. Instead, use `network_config` to define the network configuration.""")
1926
- def network(self) -> pulumi.Output[str]:
1927
- """
1928
- (Optional, Deprecated)
1929
- The relative resource name of the VPC network on which the instance can be accessed. It is specified in the following form:
1930
- "projects/{projectNumber}/global/networks/{network_id}".
1931
-
1932
- > **Warning:** `network` is deprecated and will be removed in a future major release. Instead, use `network_config` to define the network configuration.
1933
- """
1934
- return pulumi.get(self, "network")
1935
-
1936
1748
  @property
1937
1749
  @pulumi.getter(name="networkConfig")
1938
1750
  def network_config(self) -> pulumi.Output['outputs.ClusterNetworkConfig']:
@@ -868,7 +868,9 @@ class Instance(pulumi.CustomResource):
868
868
  primary = gcp.alloydb.Cluster("primary",
869
869
  cluster_id="alloydb-primary-cluster",
870
870
  location="us-central1",
871
- network=default.id)
871
+ network_config={
872
+ "network": default.id,
873
+ })
872
874
  private_ip_alloc = gcp.compute.GlobalAddress("private_ip_alloc",
873
875
  name="alloydb-secondary-instance",
874
876
  address_type="INTERNAL",
@@ -890,7 +892,9 @@ class Instance(pulumi.CustomResource):
890
892
  secondary = gcp.alloydb.Cluster("secondary",
891
893
  cluster_id="alloydb-secondary-cluster",
892
894
  location="us-east1",
893
- network=default.id,
895
+ network_config={
896
+ "network": default_google_compute_network["id"],
897
+ },
894
898
  cluster_type="SECONDARY",
895
899
  continuous_backup_config={
896
900
  "enabled": False,
@@ -1029,7 +1033,9 @@ class Instance(pulumi.CustomResource):
1029
1033
  primary = gcp.alloydb.Cluster("primary",
1030
1034
  cluster_id="alloydb-primary-cluster",
1031
1035
  location="us-central1",
1032
- network=default.id)
1036
+ network_config={
1037
+ "network": default.id,
1038
+ })
1033
1039
  private_ip_alloc = gcp.compute.GlobalAddress("private_ip_alloc",
1034
1040
  name="alloydb-secondary-instance",
1035
1041
  address_type="INTERNAL",
@@ -1051,7 +1057,9 @@ class Instance(pulumi.CustomResource):
1051
1057
  secondary = gcp.alloydb.Cluster("secondary",
1052
1058
  cluster_id="alloydb-secondary-cluster",
1053
1059
  location="us-east1",
1054
- network=default.id,
1060
+ network_config={
1061
+ "network": default_google_compute_network["id"],
1062
+ },
1055
1063
  cluster_type="SECONDARY",
1056
1064
  continuous_backup_config={
1057
1065
  "enabled": False,
@@ -1456,7 +1464,7 @@ class Instance(pulumi.CustomResource):
1456
1464
 
1457
1465
  @property
1458
1466
  @pulumi.getter(name="pscInstanceConfig")
1459
- def psc_instance_config(self) -> pulumi.Output[Optional['outputs.InstancePscInstanceConfig']]:
1467
+ def psc_instance_config(self) -> pulumi.Output['outputs.InstancePscInstanceConfig']:
1460
1468
  """
1461
1469
  Configuration for Private Service Connect (PSC) for the instance.
1462
1470
  Structure is documented below.
@@ -253,14 +253,16 @@ class User(pulumi.CustomResource):
253
253
  import pulumi
254
254
  import pulumi_gcp as gcp
255
255
 
256
- default_network = gcp.compute.Network("default", name="alloydb-network")
257
256
  default_cluster = gcp.alloydb.Cluster("default",
258
257
  cluster_id="alloydb-cluster",
259
258
  location="us-central1",
260
- network=default_network.id,
259
+ network_config={
260
+ "network": default_google_compute_network["id"],
261
+ },
261
262
  initial_user={
262
263
  "password": "cluster_secret",
263
264
  })
265
+ default_network = gcp.compute.Network("default", name="alloydb-network")
264
266
  private_ip_alloc = gcp.compute.GlobalAddress("private_ip_alloc",
265
267
  name="alloydb-cluster",
266
268
  address_type="INTERNAL",
@@ -295,7 +297,9 @@ class User(pulumi.CustomResource):
295
297
  default_cluster = gcp.alloydb.Cluster("default",
296
298
  cluster_id="alloydb-cluster",
297
299
  location="us-central1",
298
- network=default_network.id,
300
+ network_config={
301
+ "network": default_network.id,
302
+ },
299
303
  initial_user={
300
304
  "password": "cluster_secret",
301
305
  })
@@ -383,14 +387,16 @@ class User(pulumi.CustomResource):
383
387
  import pulumi
384
388
  import pulumi_gcp as gcp
385
389
 
386
- default_network = gcp.compute.Network("default", name="alloydb-network")
387
390
  default_cluster = gcp.alloydb.Cluster("default",
388
391
  cluster_id="alloydb-cluster",
389
392
  location="us-central1",
390
- network=default_network.id,
393
+ network_config={
394
+ "network": default_google_compute_network["id"],
395
+ },
391
396
  initial_user={
392
397
  "password": "cluster_secret",
393
398
  })
399
+ default_network = gcp.compute.Network("default", name="alloydb-network")
394
400
  private_ip_alloc = gcp.compute.GlobalAddress("private_ip_alloc",
395
401
  name="alloydb-cluster",
396
402
  address_type="INTERNAL",
@@ -425,7 +431,9 @@ class User(pulumi.CustomResource):
425
431
  default_cluster = gcp.alloydb.Cluster("default",
426
432
  cluster_id="alloydb-cluster",
427
433
  location="us-central1",
428
- network=default_network.id,
434
+ network_config={
435
+ "network": default_network.id,
436
+ },
429
437
  initial_user={
430
438
  "password": "cluster_secret",
431
439
  })
@@ -398,7 +398,8 @@ class KeystoresAliasesSelfSignedCert(pulumi.CustomResource):
398
398
  project_id="my-project",
399
399
  name="my-project",
400
400
  org_id="123456789",
401
- billing_account="000000-0000000-0000000-000000")
401
+ billing_account="000000-0000000-0000000-000000",
402
+ deletion_policy="DELETE")
402
403
  apigee = gcp.projects.Service("apigee",
403
404
  project=project.project_id,
404
405
  service="apigee.googleapis.com")
@@ -519,7 +520,8 @@ class KeystoresAliasesSelfSignedCert(pulumi.CustomResource):
519
520
  project_id="my-project",
520
521
  name="my-project",
521
522
  org_id="123456789",
522
- billing_account="000000-0000000-0000000-000000")
523
+ billing_account="000000-0000000-0000000-000000",
524
+ deletion_policy="DELETE")
523
525
  apigee = gcp.projects.Service("apigee",
524
526
  project=project.project_id,
525
527
  service="apigee.googleapis.com")
@@ -166,7 +166,8 @@ class SyncAuthorization(pulumi.CustomResource):
166
166
  project_id="my-project",
167
167
  name="my-project",
168
168
  org_id="123456789",
169
- billing_account="000000-0000000-0000000-000000")
169
+ billing_account="000000-0000000-0000000-000000",
170
+ deletion_policy="DELETE")
170
171
  apigee = gcp.projects.Service("apigee",
171
172
  project=project.project_id,
172
173
  service="apigee.googleapis.com")
@@ -244,7 +245,8 @@ class SyncAuthorization(pulumi.CustomResource):
244
245
  project_id="my-project",
245
246
  name="my-project",
246
247
  org_id="123456789",
247
- billing_account="000000-0000000-0000000-000000")
248
+ billing_account="000000-0000000-0000000-000000",
249
+ deletion_policy="DELETE")
248
250
  apigee = gcp.projects.Service("apigee",
249
251
  project=project.project_id,
250
252
  service="apigee.googleapis.com")
@@ -346,7 +346,8 @@ class TargetServer(pulumi.CustomResource):
346
346
  project_id="my-project",
347
347
  name="my-project",
348
348
  org_id="123456789",
349
- billing_account="000000-0000000-0000000-000000")
349
+ billing_account="000000-0000000-0000000-000000",
350
+ deletion_policy="DELETE")
350
351
  apigee = gcp.projects.Service("apigee",
351
352
  project=project.project_id,
352
353
  service="apigee.googleapis.com")
@@ -458,7 +459,8 @@ class TargetServer(pulumi.CustomResource):
458
459
  project_id="my-project",
459
460
  name="my-project",
460
461
  org_id="123456789",
461
- billing_account="000000-0000000-0000000-000000")
462
+ billing_account="000000-0000000-0000000-000000",
463
+ deletion_policy="DELETE")
462
464
  apigee = gcp.projects.Service("apigee",
463
465
  project=project.project_id,
464
466
  service="apigee.googleapis.com")
@@ -259,7 +259,8 @@ class FirewallRule(pulumi.CustomResource):
259
259
  name="tf-test-project",
260
260
  project_id="ae-project",
261
261
  org_id="123456789",
262
- billing_account="000000-0000000-0000000-000000")
262
+ billing_account="000000-0000000-0000000-000000",
263
+ deletion_policy="DELETE")
263
264
  app = gcp.appengine.Application("app",
264
265
  project=my_project.project_id,
265
266
  location_id="us-central")
@@ -339,7 +340,8 @@ class FirewallRule(pulumi.CustomResource):
339
340
  name="tf-test-project",
340
341
  project_id="ae-project",
341
342
  org_id="123456789",
342
- billing_account="000000-0000000-0000000-000000")
343
+ billing_account="000000-0000000-0000000-000000",
344
+ deletion_policy="DELETE")
343
345
  app = gcp.appengine.Application("app",
344
346
  project=my_project.project_id,
345
347
  location_id="us-central")
@@ -1109,7 +1109,8 @@ class FlexibleAppVersion(pulumi.CustomResource):
1109
1109
  name="appeng-flex",
1110
1110
  project_id="appeng-flex",
1111
1111
  org_id="123456789",
1112
- billing_account="000000-0000000-0000000-000000")
1112
+ billing_account="000000-0000000-0000000-000000",
1113
+ deletion_policy="DELETE")
1113
1114
  app = gcp.appengine.Application("app",
1114
1115
  project=my_project.project_id,
1115
1116
  location_id="us-central")
@@ -1293,7 +1294,8 @@ class FlexibleAppVersion(pulumi.CustomResource):
1293
1294
  name="appeng-flex",
1294
1295
  project_id="appeng-flex",
1295
1296
  org_id="123456789",
1296
- billing_account="000000-0000000-0000000-000000")
1297
+ billing_account="000000-0000000-0000000-000000",
1298
+ deletion_policy="DELETE")
1297
1299
  app = gcp.appengine.Application("app",
1298
1300
  project=my_project.project_id,
1299
1301
  location_id="us-central")
@@ -462,7 +462,8 @@ class Service(pulumi.CustomResource):
462
462
  project_id="project-1",
463
463
  name="Service Project",
464
464
  org_id="123456789",
465
- billing_account="000000-0000000-0000000-000000")
465
+ billing_account="000000-0000000-0000000-000000",
466
+ deletion_policy="DELETE")
466
467
  # Enable Compute API
467
468
  compute_service_project = gcp.projects.Service("compute_service_project",
468
469
  project=service_project.project_id,
@@ -539,7 +540,8 @@ class Service(pulumi.CustomResource):
539
540
  project_id="project-1",
540
541
  name="Service Project",
541
542
  org_id="123456789",
542
- billing_account="000000-0000000-0000000-000000")
543
+ billing_account="000000-0000000-0000000-000000",
544
+ deletion_policy="DELETE")
543
545
  # Enable Compute API
544
546
  compute_service_project = gcp.projects.Service("compute_service_project",
545
547
  project=service_project.project_id,
@@ -690,7 +692,8 @@ class Service(pulumi.CustomResource):
690
692
  project_id="project-1",
691
693
  name="Service Project",
692
694
  org_id="123456789",
693
- billing_account="000000-0000000-0000000-000000")
695
+ billing_account="000000-0000000-0000000-000000",
696
+ deletion_policy="DELETE")
694
697
  # Enable Compute API
695
698
  compute_service_project = gcp.projects.Service("compute_service_project",
696
699
  project=service_project.project_id,
@@ -767,7 +770,8 @@ class Service(pulumi.CustomResource):
767
770
  project_id="project-1",
768
771
  name="Service Project",
769
772
  org_id="123456789",
770
- billing_account="000000-0000000-0000000-000000")
773
+ billing_account="000000-0000000-0000000-000000",
774
+ deletion_policy="DELETE")
771
775
  # Enable Compute API
772
776
  compute_service_project = gcp.projects.Service("compute_service_project",
773
777
  project=service_project.project_id,
@@ -239,7 +239,8 @@ class ServiceProjectAttachment(pulumi.CustomResource):
239
239
  service_project = gcp.organizations.Project("service_project",
240
240
  project_id="project-1",
241
241
  name="Service Project",
242
- org_id="123456789")
242
+ org_id="123456789",
243
+ deletion_policy="DELETE")
243
244
  wait120s = time.index.Sleep("wait_120s", create_duration=120s,
244
245
  opts = pulumi.ResourceOptions(depends_on=[service_project]))
245
246
  example = gcp.apphub.ServiceProjectAttachment("example", service_project_attachment_id=service_project.project_id,
@@ -255,7 +256,8 @@ class ServiceProjectAttachment(pulumi.CustomResource):
255
256
  service_project_full = gcp.organizations.Project("service_project_full",
256
257
  project_id="project-1",
257
258
  name="Service Project Full",
258
- org_id="123456789")
259
+ org_id="123456789",
260
+ deletion_policy="DELETE")
259
261
  wait120s = time.index.Sleep("wait_120s", create_duration=120s,
260
262
  opts = pulumi.ResourceOptions(depends_on=[service_project_full]))
261
263
  example2 = gcp.apphub.ServiceProjectAttachment("example2",
@@ -321,7 +323,8 @@ class ServiceProjectAttachment(pulumi.CustomResource):
321
323
  service_project = gcp.organizations.Project("service_project",
322
324
  project_id="project-1",
323
325
  name="Service Project",
324
- org_id="123456789")
326
+ org_id="123456789",
327
+ deletion_policy="DELETE")
325
328
  wait120s = time.index.Sleep("wait_120s", create_duration=120s,
326
329
  opts = pulumi.ResourceOptions(depends_on=[service_project]))
327
330
  example = gcp.apphub.ServiceProjectAttachment("example", service_project_attachment_id=service_project.project_id,
@@ -337,7 +340,8 @@ class ServiceProjectAttachment(pulumi.CustomResource):
337
340
  service_project_full = gcp.organizations.Project("service_project_full",
338
341
  project_id="project-1",
339
342
  name="Service Project Full",
340
- org_id="123456789")
343
+ org_id="123456789",
344
+ deletion_policy="DELETE")
341
345
  wait120s = time.index.Sleep("wait_120s", create_duration=120s,
342
346
  opts = pulumi.ResourceOptions(depends_on=[service_project_full]))
343
347
  example2 = gcp.apphub.ServiceProjectAttachment("example2",