pulumi-gcp 8.13.0__py3-none-any.whl → 8.13.0a1734503365__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 (90) hide show
  1. pulumi_gcp/__init__.py +0 -43
  2. pulumi_gcp/accesscontextmanager/_inputs.py +3 -3
  3. pulumi_gcp/accesscontextmanager/outputs.py +2 -2
  4. pulumi_gcp/artifactregistry/_inputs.py +0 -83
  5. pulumi_gcp/artifactregistry/get_repository.py +4 -15
  6. pulumi_gcp/artifactregistry/outputs.py +0 -112
  7. pulumi_gcp/artifactregistry/repository.py +7 -93
  8. pulumi_gcp/backupdisasterrecovery/get_backup.py +2 -38
  9. pulumi_gcp/backupdisasterrecovery/get_data_source.py +2 -38
  10. pulumi_gcp/backupdisasterrecovery/outputs.py +8 -8
  11. pulumi_gcp/bigquery/_inputs.py +0 -369
  12. pulumi_gcp/bigquery/dataset_access.py +0 -61
  13. pulumi_gcp/bigquery/job.py +18 -6
  14. pulumi_gcp/bigquery/outputs.py +0 -350
  15. pulumi_gcp/bigquery/table.py +0 -47
  16. pulumi_gcp/cloudrunv2/_inputs.py +3 -6
  17. pulumi_gcp/cloudrunv2/outputs.py +6 -10
  18. pulumi_gcp/composer/_inputs.py +5 -80
  19. pulumi_gcp/composer/outputs.py +4 -111
  20. pulumi_gcp/compute/_inputs.py +87 -181
  21. pulumi_gcp/compute/firewall_policy_association.py +39 -50
  22. pulumi_gcp/compute/get_network.py +2 -17
  23. pulumi_gcp/compute/get_subnetwork.py +4 -18
  24. pulumi_gcp/compute/network.py +2 -39
  25. pulumi_gcp/compute/outputs.py +58 -157
  26. pulumi_gcp/compute/region_network_endpoint_group.py +1 -1
  27. pulumi_gcp/compute/resize_request.py +40 -26
  28. pulumi_gcp/config/__init__.pyi +0 -2
  29. pulumi_gcp/config/vars.py +0 -4
  30. pulumi_gcp/dataproc/batch.py +18 -4
  31. pulumi_gcp/datastream/_inputs.py +0 -68
  32. pulumi_gcp/datastream/outputs.py +1 -41
  33. pulumi_gcp/developerconnect/connection.py +12 -58
  34. pulumi_gcp/diagflow/_inputs.py +3 -3
  35. pulumi_gcp/diagflow/outputs.py +2 -2
  36. pulumi_gcp/filestore/backup.py +3 -71
  37. pulumi_gcp/firebase/hosting_custom_domain.py +4 -4
  38. pulumi_gcp/firestore/_inputs.py +3 -3
  39. pulumi_gcp/firestore/outputs.py +2 -2
  40. pulumi_gcp/gkehub/__init__.py +0 -1
  41. pulumi_gcp/gkehub/outputs.py +0 -1153
  42. pulumi_gcp/gkeonprem/__init__.py +0 -1
  43. pulumi_gcp/gkeonprem/_inputs.py +0 -2364
  44. pulumi_gcp/gkeonprem/outputs.py +0 -1780
  45. pulumi_gcp/integrationconnectors/_inputs.py +6 -6
  46. pulumi_gcp/integrationconnectors/connection.py +7 -7
  47. pulumi_gcp/integrationconnectors/outputs.py +4 -4
  48. pulumi_gcp/kms/__init__.py +0 -2
  49. pulumi_gcp/netapp/kmsconfig.py +14 -2
  50. pulumi_gcp/networkconnectivity/hub.py +0 -108
  51. pulumi_gcp/networkconnectivity/spoke.py +0 -195
  52. pulumi_gcp/networkmanagement/vpc_flow_logs_config.py +0 -4
  53. pulumi_gcp/networksecurity/__init__.py +0 -2
  54. pulumi_gcp/networksecurity/_inputs.py +0 -78
  55. pulumi_gcp/networksecurity/outputs.py +0 -48
  56. pulumi_gcp/oracledatabase/autonomous_database.py +2 -2
  57. pulumi_gcp/orgpolicy/policy.py +2 -2
  58. pulumi_gcp/parallelstore/instance.py +0 -149
  59. pulumi_gcp/projects/usage_export_bucket.py +110 -42
  60. pulumi_gcp/provider.py +0 -20
  61. pulumi_gcp/pubsub/subscription.py +6 -6
  62. pulumi_gcp/pulumi-plugin.json +1 -1
  63. pulumi_gcp/securesourcemanager/instance.py +16 -4
  64. pulumi_gcp/spanner/instance_iam_binding.py +0 -14
  65. pulumi_gcp/spanner/instance_iam_member.py +0 -14
  66. pulumi_gcp/sql/database_instance.py +7 -7
  67. pulumi_gcp/storage/__init__.py +0 -1
  68. pulumi_gcp/storage/_inputs.py +0 -431
  69. pulumi_gcp/storage/outputs.py +0 -363
  70. pulumi_gcp/storage/transfer_job.py +38 -84
  71. pulumi_gcp/vertex/_inputs.py +25 -26
  72. pulumi_gcp/vertex/ai_endpoint.py +4 -4
  73. pulumi_gcp/vertex/ai_feature_online_store_featureview.py +4 -4
  74. pulumi_gcp/vertex/outputs.py +14 -15
  75. pulumi_gcp/workstations/workstation.py +1 -55
  76. {pulumi_gcp-8.13.0.dist-info → pulumi_gcp-8.13.0a1734503365.dist-info}/METADATA +1 -1
  77. {pulumi_gcp-8.13.0.dist-info → pulumi_gcp-8.13.0a1734503365.dist-info}/RECORD +79 -90
  78. {pulumi_gcp-8.13.0.dist-info → pulumi_gcp-8.13.0a1734503365.dist-info}/WHEEL +1 -1
  79. pulumi_gcp/chronicle/__init__.py +0 -10
  80. pulumi_gcp/chronicle/_inputs.py +0 -169
  81. pulumi_gcp/chronicle/outputs.py +0 -107
  82. pulumi_gcp/chronicle/watchlist.py +0 -776
  83. pulumi_gcp/gkehub/get_feature.py +0 -226
  84. pulumi_gcp/gkeonprem/vmware_admin_cluster.py +0 -1715
  85. pulumi_gcp/kms/get_autokey_config.py +0 -121
  86. pulumi_gcp/kms/get_key_handle.py +0 -185
  87. pulumi_gcp/networksecurity/intercept_endpoint_group.py +0 -723
  88. pulumi_gcp/networksecurity/intercept_endpoint_group_association.py +0 -815
  89. pulumi_gcp/storage/folder.py +0 -483
  90. {pulumi_gcp-8.13.0.dist-info → pulumi_gcp-8.13.0a1734503365.dist-info}/top_level.txt +0 -0
@@ -22,7 +22,6 @@ class InstanceArgs:
22
22
  capacity_gib: pulumi.Input[str],
23
23
  instance_id: pulumi.Input[str],
24
24
  location: pulumi.Input[str],
25
- deployment_type: Optional[pulumi.Input[str]] = None,
26
25
  description: Optional[pulumi.Input[str]] = None,
27
26
  directory_stripe_level: Optional[pulumi.Input[str]] = None,
28
27
  file_stripe_level: Optional[pulumi.Input[str]] = None,
@@ -43,11 +42,6 @@ class InstanceArgs:
43
42
 
44
43
  - - -
45
44
  :param pulumi.Input[str] location: Part of `parent`. See documentation of `projectsId`.
46
- :param pulumi.Input[str] deployment_type: Parallelstore Instance deployment type.
47
- Possible values:
48
- DEPLOYMENT_TYPE_UNSPECIFIED
49
- SCRATCH
50
- PERSISTENT
51
45
  :param pulumi.Input[str] description: The description of the instance. 2048 characters or less.
52
46
  :param pulumi.Input[str] directory_stripe_level: Stripe level for directories.
53
47
  MIN when directory has a small number of files.
@@ -98,8 +92,6 @@ class InstanceArgs:
98
92
  pulumi.set(__self__, "capacity_gib", capacity_gib)
99
93
  pulumi.set(__self__, "instance_id", instance_id)
100
94
  pulumi.set(__self__, "location", location)
101
- if deployment_type is not None:
102
- pulumi.set(__self__, "deployment_type", deployment_type)
103
95
  if description is not None:
104
96
  pulumi.set(__self__, "description", description)
105
97
  if directory_stripe_level is not None:
@@ -159,22 +151,6 @@ class InstanceArgs:
159
151
  def location(self, value: pulumi.Input[str]):
160
152
  pulumi.set(self, "location", value)
161
153
 
162
- @property
163
- @pulumi.getter(name="deploymentType")
164
- def deployment_type(self) -> Optional[pulumi.Input[str]]:
165
- """
166
- Parallelstore Instance deployment type.
167
- Possible values:
168
- DEPLOYMENT_TYPE_UNSPECIFIED
169
- SCRATCH
170
- PERSISTENT
171
- """
172
- return pulumi.get(self, "deployment_type")
173
-
174
- @deployment_type.setter
175
- def deployment_type(self, value: Optional[pulumi.Input[str]]):
176
- pulumi.set(self, "deployment_type", value)
177
-
178
154
  @property
179
155
  @pulumi.getter
180
156
  def description(self) -> Optional[pulumi.Input[str]]:
@@ -306,7 +282,6 @@ class _InstanceState:
306
282
  capacity_gib: Optional[pulumi.Input[str]] = None,
307
283
  create_time: Optional[pulumi.Input[str]] = None,
308
284
  daos_version: Optional[pulumi.Input[str]] = None,
309
- deployment_type: Optional[pulumi.Input[str]] = None,
310
285
  description: Optional[pulumi.Input[str]] = None,
311
286
  directory_stripe_level: Optional[pulumi.Input[str]] = None,
312
287
  effective_labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
@@ -329,11 +304,6 @@ class _InstanceState:
329
304
  :param pulumi.Input[str] capacity_gib: Required. Immutable. Storage capacity of Parallelstore instance in Gibibytes (GiB).
330
305
  :param pulumi.Input[str] create_time: The time when the instance was created.
331
306
  :param pulumi.Input[str] daos_version: The version of DAOS software running in the instance.
332
- :param pulumi.Input[str] deployment_type: Parallelstore Instance deployment type.
333
- Possible values:
334
- DEPLOYMENT_TYPE_UNSPECIFIED
335
- SCRATCH
336
- PERSISTENT
337
307
  :param pulumi.Input[str] description: The description of the instance. 2048 characters or less.
338
308
  :param pulumi.Input[str] directory_stripe_level: Stripe level for directories.
339
309
  MIN when directory has a small number of files.
@@ -417,8 +387,6 @@ class _InstanceState:
417
387
  pulumi.set(__self__, "create_time", create_time)
418
388
  if daos_version is not None:
419
389
  pulumi.set(__self__, "daos_version", daos_version)
420
- if deployment_type is not None:
421
- pulumi.set(__self__, "deployment_type", deployment_type)
422
390
  if description is not None:
423
391
  pulumi.set(__self__, "description", description)
424
392
  if directory_stripe_level is not None:
@@ -499,22 +467,6 @@ class _InstanceState:
499
467
  def daos_version(self, value: Optional[pulumi.Input[str]]):
500
468
  pulumi.set(self, "daos_version", value)
501
469
 
502
- @property
503
- @pulumi.getter(name="deploymentType")
504
- def deployment_type(self) -> Optional[pulumi.Input[str]]:
505
- """
506
- Parallelstore Instance deployment type.
507
- Possible values:
508
- DEPLOYMENT_TYPE_UNSPECIFIED
509
- SCRATCH
510
- PERSISTENT
511
- """
512
- return pulumi.get(self, "deployment_type")
513
-
514
- @deployment_type.setter
515
- def deployment_type(self, value: Optional[pulumi.Input[str]]):
516
- pulumi.set(self, "deployment_type", value)
517
-
518
470
  @property
519
471
  @pulumi.getter
520
472
  def description(self) -> Optional[pulumi.Input[str]]:
@@ -761,7 +713,6 @@ class Instance(pulumi.CustomResource):
761
713
  resource_name: str,
762
714
  opts: Optional[pulumi.ResourceOptions] = None,
763
715
  capacity_gib: Optional[pulumi.Input[str]] = None,
764
- deployment_type: Optional[pulumi.Input[str]] = None,
765
716
  description: Optional[pulumi.Input[str]] = None,
766
717
  directory_stripe_level: Optional[pulumi.Input[str]] = None,
767
718
  file_stripe_level: Optional[pulumi.Input[str]] = None,
@@ -777,42 +728,6 @@ class Instance(pulumi.CustomResource):
777
728
 
778
729
  ## Example Usage
779
730
 
780
- ### Parallelstore Instance Basic Beta
781
-
782
- ```python
783
- import pulumi
784
- import pulumi_gcp as gcp
785
-
786
- network = gcp.compute.Network("network",
787
- name="network",
788
- auto_create_subnetworks=True,
789
- mtu=8896)
790
- # Create an IP address
791
- private_ip_alloc = gcp.compute.GlobalAddress("private_ip_alloc",
792
- name="address",
793
- purpose="VPC_PEERING",
794
- address_type="INTERNAL",
795
- prefix_length=24,
796
- network=network.id)
797
- # Create a private connection
798
- default = gcp.servicenetworking.Connection("default",
799
- network=network.id,
800
- service="servicenetworking.googleapis.com",
801
- reserved_peering_ranges=[private_ip_alloc.name])
802
- instance = gcp.parallelstore.Instance("instance",
803
- instance_id="instance",
804
- location="us-central1-a",
805
- description="test instance",
806
- capacity_gib="12000",
807
- network=network.name,
808
- file_stripe_level="FILE_STRIPE_LEVEL_MIN",
809
- directory_stripe_level="DIRECTORY_STRIPE_LEVEL_MIN",
810
- deployment_type="SCRATCH",
811
- labels={
812
- "test": "value",
813
- },
814
- opts = pulumi.ResourceOptions(depends_on=[default]))
815
- ```
816
731
  ### Parallelstore Instance Basic
817
732
 
818
733
  ```python
@@ -843,7 +758,6 @@ class Instance(pulumi.CustomResource):
843
758
  network=network.name,
844
759
  file_stripe_level="FILE_STRIPE_LEVEL_MIN",
845
760
  directory_stripe_level="DIRECTORY_STRIPE_LEVEL_MIN",
846
- deployment_type="SCRATCH",
847
761
  labels={
848
762
  "test": "value",
849
763
  },
@@ -877,11 +791,6 @@ class Instance(pulumi.CustomResource):
877
791
  :param str resource_name: The name of the resource.
878
792
  :param pulumi.ResourceOptions opts: Options for the resource.
879
793
  :param pulumi.Input[str] capacity_gib: Required. Immutable. Storage capacity of Parallelstore instance in Gibibytes (GiB).
880
- :param pulumi.Input[str] deployment_type: Parallelstore Instance deployment type.
881
- Possible values:
882
- DEPLOYMENT_TYPE_UNSPECIFIED
883
- SCRATCH
884
- PERSISTENT
885
794
  :param pulumi.Input[str] description: The description of the instance. 2048 characters or less.
886
795
  :param pulumi.Input[str] directory_stripe_level: Stripe level for directories.
887
796
  MIN when directory has a small number of files.
@@ -950,42 +859,6 @@ class Instance(pulumi.CustomResource):
950
859
 
951
860
  ## Example Usage
952
861
 
953
- ### Parallelstore Instance Basic Beta
954
-
955
- ```python
956
- import pulumi
957
- import pulumi_gcp as gcp
958
-
959
- network = gcp.compute.Network("network",
960
- name="network",
961
- auto_create_subnetworks=True,
962
- mtu=8896)
963
- # Create an IP address
964
- private_ip_alloc = gcp.compute.GlobalAddress("private_ip_alloc",
965
- name="address",
966
- purpose="VPC_PEERING",
967
- address_type="INTERNAL",
968
- prefix_length=24,
969
- network=network.id)
970
- # Create a private connection
971
- default = gcp.servicenetworking.Connection("default",
972
- network=network.id,
973
- service="servicenetworking.googleapis.com",
974
- reserved_peering_ranges=[private_ip_alloc.name])
975
- instance = gcp.parallelstore.Instance("instance",
976
- instance_id="instance",
977
- location="us-central1-a",
978
- description="test instance",
979
- capacity_gib="12000",
980
- network=network.name,
981
- file_stripe_level="FILE_STRIPE_LEVEL_MIN",
982
- directory_stripe_level="DIRECTORY_STRIPE_LEVEL_MIN",
983
- deployment_type="SCRATCH",
984
- labels={
985
- "test": "value",
986
- },
987
- opts = pulumi.ResourceOptions(depends_on=[default]))
988
- ```
989
862
  ### Parallelstore Instance Basic
990
863
 
991
864
  ```python
@@ -1016,7 +889,6 @@ class Instance(pulumi.CustomResource):
1016
889
  network=network.name,
1017
890
  file_stripe_level="FILE_STRIPE_LEVEL_MIN",
1018
891
  directory_stripe_level="DIRECTORY_STRIPE_LEVEL_MIN",
1019
- deployment_type="SCRATCH",
1020
892
  labels={
1021
893
  "test": "value",
1022
894
  },
@@ -1063,7 +935,6 @@ class Instance(pulumi.CustomResource):
1063
935
  resource_name: str,
1064
936
  opts: Optional[pulumi.ResourceOptions] = None,
1065
937
  capacity_gib: Optional[pulumi.Input[str]] = None,
1066
- deployment_type: Optional[pulumi.Input[str]] = None,
1067
938
  description: Optional[pulumi.Input[str]] = None,
1068
939
  directory_stripe_level: Optional[pulumi.Input[str]] = None,
1069
940
  file_stripe_level: Optional[pulumi.Input[str]] = None,
@@ -1085,7 +956,6 @@ class Instance(pulumi.CustomResource):
1085
956
  if capacity_gib is None and not opts.urn:
1086
957
  raise TypeError("Missing required property 'capacity_gib'")
1087
958
  __props__.__dict__["capacity_gib"] = capacity_gib
1088
- __props__.__dict__["deployment_type"] = deployment_type
1089
959
  __props__.__dict__["description"] = description
1090
960
  __props__.__dict__["directory_stripe_level"] = directory_stripe_level
1091
961
  __props__.__dict__["file_stripe_level"] = file_stripe_level
@@ -1124,7 +994,6 @@ class Instance(pulumi.CustomResource):
1124
994
  capacity_gib: Optional[pulumi.Input[str]] = None,
1125
995
  create_time: Optional[pulumi.Input[str]] = None,
1126
996
  daos_version: Optional[pulumi.Input[str]] = None,
1127
- deployment_type: Optional[pulumi.Input[str]] = None,
1128
997
  description: Optional[pulumi.Input[str]] = None,
1129
998
  directory_stripe_level: Optional[pulumi.Input[str]] = None,
1130
999
  effective_labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
@@ -1152,11 +1021,6 @@ class Instance(pulumi.CustomResource):
1152
1021
  :param pulumi.Input[str] capacity_gib: Required. Immutable. Storage capacity of Parallelstore instance in Gibibytes (GiB).
1153
1022
  :param pulumi.Input[str] create_time: The time when the instance was created.
1154
1023
  :param pulumi.Input[str] daos_version: The version of DAOS software running in the instance.
1155
- :param pulumi.Input[str] deployment_type: Parallelstore Instance deployment type.
1156
- Possible values:
1157
- DEPLOYMENT_TYPE_UNSPECIFIED
1158
- SCRATCH
1159
- PERSISTENT
1160
1024
  :param pulumi.Input[str] description: The description of the instance. 2048 characters or less.
1161
1025
  :param pulumi.Input[str] directory_stripe_level: Stripe level for directories.
1162
1026
  MIN when directory has a small number of files.
@@ -1240,7 +1104,6 @@ class Instance(pulumi.CustomResource):
1240
1104
  __props__.__dict__["capacity_gib"] = capacity_gib
1241
1105
  __props__.__dict__["create_time"] = create_time
1242
1106
  __props__.__dict__["daos_version"] = daos_version
1243
- __props__.__dict__["deployment_type"] = deployment_type
1244
1107
  __props__.__dict__["description"] = description
1245
1108
  __props__.__dict__["directory_stripe_level"] = directory_stripe_level
1246
1109
  __props__.__dict__["effective_labels"] = effective_labels
@@ -1291,18 +1154,6 @@ class Instance(pulumi.CustomResource):
1291
1154
  """
1292
1155
  return pulumi.get(self, "daos_version")
1293
1156
 
1294
- @property
1295
- @pulumi.getter(name="deploymentType")
1296
- def deployment_type(self) -> pulumi.Output[Optional[str]]:
1297
- """
1298
- Parallelstore Instance deployment type.
1299
- Possible values:
1300
- DEPLOYMENT_TYPE_UNSPECIFIED
1301
- SCRATCH
1302
- PERSISTENT
1303
- """
1304
- return pulumi.get(self, "deployment_type")
1305
-
1306
1157
  @property
1307
1158
  @pulumi.getter
1308
1159
  def description(self) -> pulumi.Output[Optional[str]]:
@@ -25,8 +25,6 @@ class UsageExportBucketArgs:
25
25
  """
26
26
  The set of arguments for constructing a UsageExportBucket resource.
27
27
  :param pulumi.Input[str] bucket_name: The bucket to store reports in.
28
-
29
- - - -
30
28
  :param pulumi.Input[str] prefix: A prefix for the reports, for instance, the project name.
31
29
  :param pulumi.Input[str] project: The project to set the export bucket on. If it is not provided, the provider project is used.
32
30
  """
@@ -41,8 +39,6 @@ class UsageExportBucketArgs:
41
39
  def bucket_name(self) -> pulumi.Input[str]:
42
40
  """
43
41
  The bucket to store reports in.
44
-
45
- - - -
46
42
  """
47
43
  return pulumi.get(self, "bucket_name")
48
44
 
@@ -84,8 +80,6 @@ class _UsageExportBucketState:
84
80
  """
85
81
  Input properties used for looking up and filtering UsageExportBucket resources.
86
82
  :param pulumi.Input[str] bucket_name: The bucket to store reports in.
87
-
88
- - - -
89
83
  :param pulumi.Input[str] prefix: A prefix for the reports, for instance, the project name.
90
84
  :param pulumi.Input[str] project: The project to set the export bucket on. If it is not provided, the provider project is used.
91
85
  """
@@ -101,8 +95,6 @@ class _UsageExportBucketState:
101
95
  def bucket_name(self) -> Optional[pulumi.Input[str]]:
102
96
  """
103
97
  The bucket to store reports in.
104
-
105
- - - -
106
98
  """
107
99
  return pulumi.get(self, "bucket_name")
108
100
 
@@ -145,17 +137,27 @@ class UsageExportBucket(pulumi.CustomResource):
145
137
  project: Optional[pulumi.Input[str]] = None,
146
138
  __props__=None):
147
139
  """
148
- Sets up a usage export bucket for a particular project. A usage export bucket
149
- is a pre-configured GCS bucket which is set up to receive daily and monthly
150
- reports of the GCE resources used.
140
+ Allows creation and management of a Google Cloud Platform project.
141
+
142
+ Projects created with this resource must be associated with an Organization.
143
+ See the [Organization documentation](https://cloud.google.com/resource-manager/docs/quickstarts) for more details.
144
+
145
+ The user or service account that is running this provider when creating a `organizations.Project`
146
+ resource must have `roles/resourcemanager.projectCreator` on the specified organization. See the
147
+ [Access Control for Organizations Using IAM](https://cloud.google.com/resource-manager/docs/access-control-org)
148
+ doc for more information.
149
+
150
+ > This resource reads the specified billing account on every pulumi up and plan operation so you must have permissions on the specified billing account.
151
+
152
+ > It is recommended to use the `constraints/compute.skipDefaultNetworkCreation` [constraint](https://www.terraform.io/docs/providers/google/r/google_organization_policy.html) to remove the default network instead of setting `auto_create_network` to false, when possible.
151
153
 
152
- For more information see the [Docs](https://cloud.google.com/compute/docs/usage-export)
153
- and for further details, the
154
- [API Documentation](https://cloud.google.com/compute/docs/reference/rest/beta/projects/setUsageExportBucket).
154
+ > It may take a while for the attached tag bindings to be deleted after the project is scheduled to be deleted.
155
155
 
156
- > **Note:** You should specify only one of these per project. If there are two or more
157
- they will fight over which bucket the reports should be stored in. It is
158
- safe to have multiple resources with the same backing bucket.
156
+ To get more information about projects, see:
157
+
158
+ * [API documentation](https://cloud.google.com/resource-manager/reference/rest/v1/projects)
159
+ * How-to Guides
160
+ * [Creating and managing projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects)
159
161
 
160
162
  ## Example Usage
161
163
 
@@ -163,18 +165,49 @@ class UsageExportBucket(pulumi.CustomResource):
163
165
  import pulumi
164
166
  import pulumi_gcp as gcp
165
167
 
166
- usage_export = gcp.projects.UsageExportBucket("usage_export",
167
- project="development-project",
168
- bucket_name="usage-tracking-bucket")
168
+ my_project = gcp.organizations.Project("my_project",
169
+ name="My Project",
170
+ project_id="your-project-id",
171
+ org_id="1234567")
172
+ ```
173
+
174
+ To create a project under a specific folder
175
+
176
+ ```python
177
+ import pulumi
178
+ import pulumi_gcp as gcp
179
+
180
+ department1 = gcp.organizations.Folder("department1",
181
+ display_name="Department 1",
182
+ parent="organizations/1234567")
183
+ my_project_in_a_folder = gcp.organizations.Project("my_project-in-a-folder",
184
+ name="My Project",
185
+ project_id="your-project-id",
186
+ folder_id=department1.name)
187
+ ```
188
+
189
+ To create a project with a tag
190
+
191
+ ```python
192
+ import pulumi
193
+ import pulumi_gcp as gcp
194
+
195
+ my_project = gcp.organizations.Project("my_project",
196
+ name="My Project",
197
+ project_id="your-project-id",
198
+ org_id="1234567",
199
+ tags={
200
+ "1234567/env": "staging",
201
+ })
169
202
  ```
170
203
 
171
204
  ## Import
172
205
 
173
- A project's Usage Export Bucket can be imported using this format:
206
+ Projects can be imported using the `project_id`, e.g.
174
207
 
175
208
  * `{{project_id}}`
176
209
 
177
- When using the `pulumi import` command, NAME_HERE can be imported using one of the formats above. For example:
210
+ When using the `pulumi import` command, Projects can be imported using one of the formats above. For example:
178
211
 
179
212
  ```sh
180
213
  $ pulumi import gcp:projects/usageExportBucket:UsageExportBucket default {{project_id}}
@@ -183,8 +216,6 @@ class UsageExportBucket(pulumi.CustomResource):
183
216
  :param str resource_name: The name of the resource.
184
217
  :param pulumi.ResourceOptions opts: Options for the resource.
185
218
  :param pulumi.Input[str] bucket_name: The bucket to store reports in.
186
-
187
- - - -
188
219
  :param pulumi.Input[str] prefix: A prefix for the reports, for instance, the project name.
189
220
  :param pulumi.Input[str] project: The project to set the export bucket on. If it is not provided, the provider project is used.
190
221
  """
@@ -195,17 +226,27 @@ class UsageExportBucket(pulumi.CustomResource):
195
226
  args: UsageExportBucketArgs,
196
227
  opts: Optional[pulumi.ResourceOptions] = None):
197
228
  """
198
- Sets up a usage export bucket for a particular project. A usage export bucket
199
- is a pre-configured GCS bucket which is set up to receive daily and monthly
200
- reports of the GCE resources used.
229
+ Allows creation and management of a Google Cloud Platform project.
201
230
 
202
- For more information see the [Docs](https://cloud.google.com/compute/docs/usage-export)
203
- and for further details, the
204
- [API Documentation](https://cloud.google.com/compute/docs/reference/rest/beta/projects/setUsageExportBucket).
231
+ Projects created with this resource must be associated with an Organization.
232
+ See the [Organization documentation](https://cloud.google.com/resource-manager/docs/quickstarts) for more details.
205
233
 
206
- > **Note:** You should specify only one of these per project. If there are two or more
207
- they will fight over which bucket the reports should be stored in. It is
208
- safe to have multiple resources with the same backing bucket.
234
+ The user or service account that is running this provider when creating a `organizations.Project`
235
+ resource must have `roles/resourcemanager.projectCreator` on the specified organization. See the
236
+ [Access Control for Organizations Using IAM](https://cloud.google.com/resource-manager/docs/access-control-org)
237
+ doc for more information.
238
+
239
+ > This resource reads the specified billing account on every pulumi up and plan operation so you must have permissions on the specified billing account.
240
+
241
+ > It is recommended to use the `constraints/compute.skipDefaultNetworkCreation` [constraint](https://www.terraform.io/docs/providers/google/r/google_organization_policy.html) to remove the default network instead of setting `auto_create_network` to false, when possible.
242
+
243
+ > It may take a while for the attached tag bindings to be deleted after the project is scheduled to be deleted.
244
+
245
+ To get more information about projects, see:
246
+
247
+ * [API documentation](https://cloud.google.com/resource-manager/reference/rest/v1/projects)
248
+ * How-to Guides
249
+ * [Creating and managing projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects)
209
250
 
210
251
  ## Example Usage
211
252
 
@@ -213,18 +254,49 @@ class UsageExportBucket(pulumi.CustomResource):
213
254
  import pulumi
214
255
  import pulumi_gcp as gcp
215
256
 
216
- usage_export = gcp.projects.UsageExportBucket("usage_export",
217
- project="development-project",
218
- bucket_name="usage-tracking-bucket")
257
+ my_project = gcp.organizations.Project("my_project",
258
+ name="My Project",
259
+ project_id="your-project-id",
260
+ org_id="1234567")
261
+ ```
262
+
263
+ To create a project under a specific folder
264
+
265
+ ```python
266
+ import pulumi
267
+ import pulumi_gcp as gcp
268
+
269
+ department1 = gcp.organizations.Folder("department1",
270
+ display_name="Department 1",
271
+ parent="organizations/1234567")
272
+ my_project_in_a_folder = gcp.organizations.Project("my_project-in-a-folder",
273
+ name="My Project",
274
+ project_id="your-project-id",
275
+ folder_id=department1.name)
276
+ ```
277
+
278
+ To create a project with a tag
279
+
280
+ ```python
281
+ import pulumi
282
+ import pulumi_gcp as gcp
283
+
284
+ my_project = gcp.organizations.Project("my_project",
285
+ name="My Project",
286
+ project_id="your-project-id",
287
+ org_id="1234567",
288
+ tags={
289
+ "1234567/env": "staging",
290
+ })
219
291
  ```
220
292
 
221
293
  ## Import
222
294
 
223
- A project's Usage Export Bucket can be imported using this format:
295
+ Projects can be imported using the `project_id`, e.g.
224
296
 
225
297
  * `{{project_id}}`
226
298
 
227
- When using the `pulumi import` command, NAME_HERE can be imported using one of the formats above. For example:
299
+ When using the `pulumi import` command, Projects can be imported using one of the formats above. For example:
228
300
 
229
301
  ```sh
230
302
  $ pulumi import gcp:projects/usageExportBucket:UsageExportBucket default {{project_id}}
@@ -283,8 +355,6 @@ class UsageExportBucket(pulumi.CustomResource):
283
355
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
284
356
  :param pulumi.ResourceOptions opts: Options for the resource.
285
357
  :param pulumi.Input[str] bucket_name: The bucket to store reports in.
286
-
287
- - - -
288
358
  :param pulumi.Input[str] prefix: A prefix for the reports, for instance, the project name.
289
359
  :param pulumi.Input[str] project: The project to set the export bucket on. If it is not provided, the provider project is used.
290
360
  """
@@ -302,8 +372,6 @@ class UsageExportBucket(pulumi.CustomResource):
302
372
  def bucket_name(self) -> pulumi.Output[str]:
303
373
  """
304
374
  The bucket to store reports in.
305
-
306
- - - -
307
375
  """
308
376
  return pulumi.get(self, "bucket_name")
309
377
 
pulumi_gcp/provider.py CHANGED
@@ -49,7 +49,6 @@ class ProviderArgs:
49
49
  binary_authorization_custom_endpoint: Optional[pulumi.Input[str]] = None,
50
50
  blockchain_node_engine_custom_endpoint: Optional[pulumi.Input[str]] = None,
51
51
  certificate_manager_custom_endpoint: Optional[pulumi.Input[str]] = None,
52
- chronicle_custom_endpoint: Optional[pulumi.Input[str]] = None,
53
52
  cloud_asset_custom_endpoint: Optional[pulumi.Input[str]] = None,
54
53
  cloud_billing_custom_endpoint: Optional[pulumi.Input[str]] = None,
55
54
  cloud_build_custom_endpoint: Optional[pulumi.Input[str]] = None,
@@ -262,8 +261,6 @@ class ProviderArgs:
262
261
  pulumi.set(__self__, "blockchain_node_engine_custom_endpoint", blockchain_node_engine_custom_endpoint)
263
262
  if certificate_manager_custom_endpoint is not None:
264
263
  pulumi.set(__self__, "certificate_manager_custom_endpoint", certificate_manager_custom_endpoint)
265
- if chronicle_custom_endpoint is not None:
266
- pulumi.set(__self__, "chronicle_custom_endpoint", chronicle_custom_endpoint)
267
264
  if cloud_asset_custom_endpoint is not None:
268
265
  pulumi.set(__self__, "cloud_asset_custom_endpoint", cloud_asset_custom_endpoint)
269
266
  if cloud_billing_custom_endpoint is not None:
@@ -834,15 +831,6 @@ class ProviderArgs:
834
831
  def certificate_manager_custom_endpoint(self, value: Optional[pulumi.Input[str]]):
835
832
  pulumi.set(self, "certificate_manager_custom_endpoint", value)
836
833
 
837
- @property
838
- @pulumi.getter(name="chronicleCustomEndpoint")
839
- def chronicle_custom_endpoint(self) -> Optional[pulumi.Input[str]]:
840
- return pulumi.get(self, "chronicle_custom_endpoint")
841
-
842
- @chronicle_custom_endpoint.setter
843
- def chronicle_custom_endpoint(self, value: Optional[pulumi.Input[str]]):
844
- pulumi.set(self, "chronicle_custom_endpoint", value)
845
-
846
834
  @property
847
835
  @pulumi.getter(name="cloudAssetCustomEndpoint")
848
836
  def cloud_asset_custom_endpoint(self) -> Optional[pulumi.Input[str]]:
@@ -2237,7 +2225,6 @@ class Provider(pulumi.ProviderResource):
2237
2225
  binary_authorization_custom_endpoint: Optional[pulumi.Input[str]] = None,
2238
2226
  blockchain_node_engine_custom_endpoint: Optional[pulumi.Input[str]] = None,
2239
2227
  certificate_manager_custom_endpoint: Optional[pulumi.Input[str]] = None,
2240
- chronicle_custom_endpoint: Optional[pulumi.Input[str]] = None,
2241
2228
  cloud_asset_custom_endpoint: Optional[pulumi.Input[str]] = None,
2242
2229
  cloud_billing_custom_endpoint: Optional[pulumi.Input[str]] = None,
2243
2230
  cloud_build_custom_endpoint: Optional[pulumi.Input[str]] = None,
@@ -2455,7 +2442,6 @@ class Provider(pulumi.ProviderResource):
2455
2442
  binary_authorization_custom_endpoint: Optional[pulumi.Input[str]] = None,
2456
2443
  blockchain_node_engine_custom_endpoint: Optional[pulumi.Input[str]] = None,
2457
2444
  certificate_manager_custom_endpoint: Optional[pulumi.Input[str]] = None,
2458
- chronicle_custom_endpoint: Optional[pulumi.Input[str]] = None,
2459
2445
  cloud_asset_custom_endpoint: Optional[pulumi.Input[str]] = None,
2460
2446
  cloud_billing_custom_endpoint: Optional[pulumi.Input[str]] = None,
2461
2447
  cloud_build_custom_endpoint: Optional[pulumi.Input[str]] = None,
@@ -2645,7 +2631,6 @@ class Provider(pulumi.ProviderResource):
2645
2631
  __props__.__dict__["binary_authorization_custom_endpoint"] = binary_authorization_custom_endpoint
2646
2632
  __props__.__dict__["blockchain_node_engine_custom_endpoint"] = blockchain_node_engine_custom_endpoint
2647
2633
  __props__.__dict__["certificate_manager_custom_endpoint"] = certificate_manager_custom_endpoint
2648
- __props__.__dict__["chronicle_custom_endpoint"] = chronicle_custom_endpoint
2649
2634
  __props__.__dict__["cloud_asset_custom_endpoint"] = cloud_asset_custom_endpoint
2650
2635
  __props__.__dict__["cloud_billing_custom_endpoint"] = cloud_billing_custom_endpoint
2651
2636
  __props__.__dict__["cloud_build_custom_endpoint"] = cloud_build_custom_endpoint
@@ -2946,11 +2931,6 @@ class Provider(pulumi.ProviderResource):
2946
2931
  def certificate_manager_custom_endpoint(self) -> pulumi.Output[Optional[str]]:
2947
2932
  return pulumi.get(self, "certificate_manager_custom_endpoint")
2948
2933
 
2949
- @property
2950
- @pulumi.getter(name="chronicleCustomEndpoint")
2951
- def chronicle_custom_endpoint(self) -> pulumi.Output[Optional[str]]:
2952
- return pulumi.get(self, "chronicle_custom_endpoint")
2953
-
2954
2934
  @property
2955
2935
  @pulumi.getter(name="cloudAssetCustomEndpoint")
2956
2936
  def cloud_asset_custom_endpoint(self) -> pulumi.Output[Optional[str]]:
@@ -1113,7 +1113,7 @@ class Subscription(pulumi.CustomResource):
1113
1113
  cloud_storage_config={
1114
1114
  "bucket": example.name,
1115
1115
  "filename_prefix": "pre-",
1116
- "filename_suffix": "-_69391",
1116
+ "filename_suffix": "-_33395",
1117
1117
  "filename_datetime_format": "YYYY-MM-DD/hh_mm_ssZ",
1118
1118
  "max_bytes": 1000,
1119
1119
  "max_duration": "300s",
@@ -1146,7 +1146,7 @@ class Subscription(pulumi.CustomResource):
1146
1146
  cloud_storage_config={
1147
1147
  "bucket": example.name,
1148
1148
  "filename_prefix": "pre-",
1149
- "filename_suffix": "-_8270",
1149
+ "filename_suffix": "-_76044",
1150
1150
  "filename_datetime_format": "YYYY-MM-DD/hh_mm_ssZ",
1151
1151
  "max_bytes": 1000,
1152
1152
  "max_duration": "300s",
@@ -1185,7 +1185,7 @@ class Subscription(pulumi.CustomResource):
1185
1185
  cloud_storage_config={
1186
1186
  "bucket": example.name,
1187
1187
  "filename_prefix": "pre-",
1188
- "filename_suffix": "-_41150",
1188
+ "filename_suffix": "-_69391",
1189
1189
  "filename_datetime_format": "YYYY-MM-DD/hh_mm_ssZ",
1190
1190
  "max_bytes": 1000,
1191
1191
  "max_duration": "300s",
@@ -1553,7 +1553,7 @@ class Subscription(pulumi.CustomResource):
1553
1553
  cloud_storage_config={
1554
1554
  "bucket": example.name,
1555
1555
  "filename_prefix": "pre-",
1556
- "filename_suffix": "-_69391",
1556
+ "filename_suffix": "-_33395",
1557
1557
  "filename_datetime_format": "YYYY-MM-DD/hh_mm_ssZ",
1558
1558
  "max_bytes": 1000,
1559
1559
  "max_duration": "300s",
@@ -1586,7 +1586,7 @@ class Subscription(pulumi.CustomResource):
1586
1586
  cloud_storage_config={
1587
1587
  "bucket": example.name,
1588
1588
  "filename_prefix": "pre-",
1589
- "filename_suffix": "-_8270",
1589
+ "filename_suffix": "-_76044",
1590
1590
  "filename_datetime_format": "YYYY-MM-DD/hh_mm_ssZ",
1591
1591
  "max_bytes": 1000,
1592
1592
  "max_duration": "300s",
@@ -1625,7 +1625,7 @@ class Subscription(pulumi.CustomResource):
1625
1625
  cloud_storage_config={
1626
1626
  "bucket": example.name,
1627
1627
  "filename_prefix": "pre-",
1628
- "filename_suffix": "-_41150",
1628
+ "filename_suffix": "-_69391",
1629
1629
  "filename_datetime_format": "YYYY-MM-DD/hh_mm_ssZ",
1630
1630
  "max_bytes": 1000,
1631
1631
  "max_duration": "300s",
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "resource": true,
3
3
  "name": "gcp",
4
- "version": "8.13.0"
4
+ "version": "8.13.0-alpha.1734503365"
5
5
  }