pulumi-gcp 7.12.0a1709133800__py3-none-any.whl → 7.12.0a1709149267__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -132,6 +132,20 @@ class ProjectInfo(pulumi.CustomResource):
132
132
  * [Enable, disable, or change billing for a project](https://cloud.google.com/billing/docs/how-to/modify-project)
133
133
 
134
134
  ## Example Usage
135
+ ### Billing Project Info Basic
136
+
137
+ ```python
138
+ import pulumi
139
+ import pulumi_gcp as gcp
140
+
141
+ project = gcp.organizations.Project("project",
142
+ project_id="tf-test_77884",
143
+ name="tf-test_15222",
144
+ org_id="123456789")
145
+ default = gcp.billing.ProjectInfo("default",
146
+ project=project.project_id,
147
+ billing_account="000000-0000000-0000000-000000")
148
+ ```
135
149
 
136
150
  ## Import
137
151
 
@@ -178,6 +192,20 @@ class ProjectInfo(pulumi.CustomResource):
178
192
  * [Enable, disable, or change billing for a project](https://cloud.google.com/billing/docs/how-to/modify-project)
179
193
 
180
194
  ## Example Usage
195
+ ### Billing Project Info Basic
196
+
197
+ ```python
198
+ import pulumi
199
+ import pulumi_gcp as gcp
200
+
201
+ project = gcp.organizations.Project("project",
202
+ project_id="tf-test_77884",
203
+ name="tf-test_15222",
204
+ org_id="123456789")
205
+ default = gcp.billing.ProjectInfo("default",
206
+ project=project.project_id,
207
+ billing_account="000000-0000000-0000000-000000")
208
+ ```
181
209
 
182
210
  ## Import
183
211
 
@@ -465,6 +465,63 @@ class TargetInstance(pulumi.CustomResource):
465
465
  instance=target_vm_instance.id,
466
466
  network=target_vm.self_link)
467
467
  ```
468
+ ### Target Instance With Security Policy
469
+
470
+ ```python
471
+ import pulumi
472
+ import pulumi_gcp as gcp
473
+
474
+ default = gcp.compute.Network("default",
475
+ name="custom-default-network",
476
+ auto_create_subnetworks=False,
477
+ routing_mode="REGIONAL")
478
+ default_subnetwork = gcp.compute.Subnetwork("default",
479
+ name="custom-default-subnet",
480
+ ip_cidr_range="10.1.2.0/24",
481
+ network=default.id,
482
+ private_ipv6_google_access="DISABLE_GOOGLE_ACCESS",
483
+ purpose="PRIVATE",
484
+ region="southamerica-west1",
485
+ stack_type="IPV4_ONLY")
486
+ vmimage = gcp.compute.get_image(family="debian-11",
487
+ project="debian-cloud")
488
+ target_vm = gcp.compute.Instance("target-vm",
489
+ network_interfaces=[gcp.compute.InstanceNetworkInterfaceArgs(
490
+ access_configs=[gcp.compute.InstanceNetworkInterfaceAccessConfigArgs()],
491
+ network=default.self_link,
492
+ subnetwork=default_subnetwork.self_link,
493
+ )],
494
+ name="target-vm",
495
+ machine_type="e2-medium",
496
+ zone="southamerica-west1-a",
497
+ boot_disk=gcp.compute.InstanceBootDiskArgs(
498
+ initialize_params=gcp.compute.InstanceBootDiskInitializeParamsArgs(
499
+ image=vmimage.self_link,
500
+ ),
501
+ ))
502
+ policyddosprotection = gcp.compute.RegionSecurityPolicy("policyddosprotection",
503
+ region="southamerica-west1",
504
+ name="tf-test-policyddos_81126",
505
+ description="ddos protection security policy to set target instance",
506
+ type="CLOUD_ARMOR_NETWORK",
507
+ ddos_protection_config=gcp.compute.RegionSecurityPolicyDdosProtectionConfigArgs(
508
+ ddos_protection="ADVANCED_PREVIEW",
509
+ ))
510
+ edge_sec_service = gcp.compute.NetworkEdgeSecurityService("edge_sec_service",
511
+ region="southamerica-west1",
512
+ name="tf-test-edgesec_88717",
513
+ security_policy=policyddosprotection.self_link)
514
+ regionsecuritypolicy = gcp.compute.RegionSecurityPolicy("regionsecuritypolicy",
515
+ name="region-secpolicy",
516
+ region="southamerica-west1",
517
+ description="basic security policy for target instance",
518
+ type="CLOUD_ARMOR_NETWORK")
519
+ default_target_instance = gcp.compute.TargetInstance("default",
520
+ name="target-instance",
521
+ zone="southamerica-west1-a",
522
+ instance=target_vm.id,
523
+ security_policy=regionsecuritypolicy.self_link)
524
+ ```
468
525
 
469
526
  ## Import
470
527
 
@@ -596,6 +653,63 @@ class TargetInstance(pulumi.CustomResource):
596
653
  instance=target_vm_instance.id,
597
654
  network=target_vm.self_link)
598
655
  ```
656
+ ### Target Instance With Security Policy
657
+
658
+ ```python
659
+ import pulumi
660
+ import pulumi_gcp as gcp
661
+
662
+ default = gcp.compute.Network("default",
663
+ name="custom-default-network",
664
+ auto_create_subnetworks=False,
665
+ routing_mode="REGIONAL")
666
+ default_subnetwork = gcp.compute.Subnetwork("default",
667
+ name="custom-default-subnet",
668
+ ip_cidr_range="10.1.2.0/24",
669
+ network=default.id,
670
+ private_ipv6_google_access="DISABLE_GOOGLE_ACCESS",
671
+ purpose="PRIVATE",
672
+ region="southamerica-west1",
673
+ stack_type="IPV4_ONLY")
674
+ vmimage = gcp.compute.get_image(family="debian-11",
675
+ project="debian-cloud")
676
+ target_vm = gcp.compute.Instance("target-vm",
677
+ network_interfaces=[gcp.compute.InstanceNetworkInterfaceArgs(
678
+ access_configs=[gcp.compute.InstanceNetworkInterfaceAccessConfigArgs()],
679
+ network=default.self_link,
680
+ subnetwork=default_subnetwork.self_link,
681
+ )],
682
+ name="target-vm",
683
+ machine_type="e2-medium",
684
+ zone="southamerica-west1-a",
685
+ boot_disk=gcp.compute.InstanceBootDiskArgs(
686
+ initialize_params=gcp.compute.InstanceBootDiskInitializeParamsArgs(
687
+ image=vmimage.self_link,
688
+ ),
689
+ ))
690
+ policyddosprotection = gcp.compute.RegionSecurityPolicy("policyddosprotection",
691
+ region="southamerica-west1",
692
+ name="tf-test-policyddos_81126",
693
+ description="ddos protection security policy to set target instance",
694
+ type="CLOUD_ARMOR_NETWORK",
695
+ ddos_protection_config=gcp.compute.RegionSecurityPolicyDdosProtectionConfigArgs(
696
+ ddos_protection="ADVANCED_PREVIEW",
697
+ ))
698
+ edge_sec_service = gcp.compute.NetworkEdgeSecurityService("edge_sec_service",
699
+ region="southamerica-west1",
700
+ name="tf-test-edgesec_88717",
701
+ security_policy=policyddosprotection.self_link)
702
+ regionsecuritypolicy = gcp.compute.RegionSecurityPolicy("regionsecuritypolicy",
703
+ name="region-secpolicy",
704
+ region="southamerica-west1",
705
+ description="basic security policy for target instance",
706
+ type="CLOUD_ARMOR_NETWORK")
707
+ default_target_instance = gcp.compute.TargetInstance("default",
708
+ name="target-instance",
709
+ zone="southamerica-west1-a",
710
+ instance=target_vm.id,
711
+ security_policy=regionsecuritypolicy.self_link)
712
+ ```
599
713
 
600
714
  ## Import
601
715
 
@@ -671,6 +671,55 @@ class ConnectionProfile(pulumi.CustomResource):
671
671
  static_service_ip_connectivity=gcp.databasemigrationservice.ConnectionProfileOracleStaticServiceIpConnectivityArgs(),
672
672
  ))
673
673
  ```
674
+ ### Database Migration Service Connection Profile Alloydb
675
+
676
+ ```python
677
+ import pulumi
678
+ import pulumi_gcp as gcp
679
+
680
+ project = gcp.organizations.get_project()
681
+ default = gcp.compute.Network("default", name="vpc-network")
682
+ private_ip_alloc = gcp.compute.GlobalAddress("private_ip_alloc",
683
+ name="private-ip-alloc",
684
+ address_type="INTERNAL",
685
+ purpose="VPC_PEERING",
686
+ prefix_length=16,
687
+ network=default.id)
688
+ vpc_connection = gcp.servicenetworking.Connection("vpc_connection",
689
+ network=default.id,
690
+ service="servicenetworking.googleapis.com",
691
+ reserved_peering_ranges=[private_ip_alloc.name])
692
+ alloydbprofile = gcp.databasemigrationservice.ConnectionProfile("alloydbprofile",
693
+ location="us-central1",
694
+ connection_profile_id="my-profileid",
695
+ display_name="my-profileid_display",
696
+ labels={
697
+ "foo": "bar",
698
+ },
699
+ alloydb=gcp.databasemigrationservice.ConnectionProfileAlloydbArgs(
700
+ cluster_id="tf-test-dbmsalloycluster_85794",
701
+ settings=gcp.databasemigrationservice.ConnectionProfileAlloydbSettingsArgs(
702
+ initial_user=gcp.databasemigrationservice.ConnectionProfileAlloydbSettingsInitialUserArgs(
703
+ user="alloyuser_21197",
704
+ password="alloypass_52865",
705
+ ),
706
+ vpc_network=default.id,
707
+ labels={
708
+ "alloyfoo": "alloybar",
709
+ },
710
+ primary_instance_settings=gcp.databasemigrationservice.ConnectionProfileAlloydbSettingsPrimaryInstanceSettingsArgs(
711
+ id="priminstid",
712
+ machine_config=gcp.databasemigrationservice.ConnectionProfileAlloydbSettingsPrimaryInstanceSettingsMachineConfigArgs(
713
+ cpu_count=2,
714
+ ),
715
+ database_flags={},
716
+ labels={
717
+ "alloysinstfoo": "allowinstbar",
718
+ },
719
+ ),
720
+ ),
721
+ ))
722
+ ```
674
723
 
675
724
  ## Import
676
725
 
@@ -870,6 +919,55 @@ class ConnectionProfile(pulumi.CustomResource):
870
919
  static_service_ip_connectivity=gcp.databasemigrationservice.ConnectionProfileOracleStaticServiceIpConnectivityArgs(),
871
920
  ))
872
921
  ```
922
+ ### Database Migration Service Connection Profile Alloydb
923
+
924
+ ```python
925
+ import pulumi
926
+ import pulumi_gcp as gcp
927
+
928
+ project = gcp.organizations.get_project()
929
+ default = gcp.compute.Network("default", name="vpc-network")
930
+ private_ip_alloc = gcp.compute.GlobalAddress("private_ip_alloc",
931
+ name="private-ip-alloc",
932
+ address_type="INTERNAL",
933
+ purpose="VPC_PEERING",
934
+ prefix_length=16,
935
+ network=default.id)
936
+ vpc_connection = gcp.servicenetworking.Connection("vpc_connection",
937
+ network=default.id,
938
+ service="servicenetworking.googleapis.com",
939
+ reserved_peering_ranges=[private_ip_alloc.name])
940
+ alloydbprofile = gcp.databasemigrationservice.ConnectionProfile("alloydbprofile",
941
+ location="us-central1",
942
+ connection_profile_id="my-profileid",
943
+ display_name="my-profileid_display",
944
+ labels={
945
+ "foo": "bar",
946
+ },
947
+ alloydb=gcp.databasemigrationservice.ConnectionProfileAlloydbArgs(
948
+ cluster_id="tf-test-dbmsalloycluster_85794",
949
+ settings=gcp.databasemigrationservice.ConnectionProfileAlloydbSettingsArgs(
950
+ initial_user=gcp.databasemigrationservice.ConnectionProfileAlloydbSettingsInitialUserArgs(
951
+ user="alloyuser_21197",
952
+ password="alloypass_52865",
953
+ ),
954
+ vpc_network=default.id,
955
+ labels={
956
+ "alloyfoo": "alloybar",
957
+ },
958
+ primary_instance_settings=gcp.databasemigrationservice.ConnectionProfileAlloydbSettingsPrimaryInstanceSettingsArgs(
959
+ id="priminstid",
960
+ machine_config=gcp.databasemigrationservice.ConnectionProfileAlloydbSettingsPrimaryInstanceSettingsMachineConfigArgs(
961
+ cpu_count=2,
962
+ ),
963
+ database_flags={},
964
+ labels={
965
+ "alloysinstfoo": "allowinstbar",
966
+ },
967
+ ),
968
+ ),
969
+ ))
970
+ ```
873
971
 
874
972
  ## Import
875
973
 
@@ -578,6 +578,156 @@ class Task(pulumi.CustomResource):
578
578
  * [Official Documentation](https://cloud.google.com/dataplex/docs)
579
579
 
580
580
  ## Example Usage
581
+ ### Dataplex Task Basic
582
+
583
+ ```python
584
+ import pulumi
585
+ import pulumi_gcp as gcp
586
+
587
+ project = gcp.organizations.get_project()
588
+ example = gcp.dataplex.Lake("example",
589
+ name="tf-test-lake_85840",
590
+ location="us-central1",
591
+ project="my-project-name")
592
+ example_task = gcp.dataplex.Task("example",
593
+ task_id="tf-test-task_60302",
594
+ location="us-central1",
595
+ lake=example.name,
596
+ description="Test Task Basic",
597
+ display_name="task-basic",
598
+ labels={
599
+ "count": "3",
600
+ },
601
+ trigger_spec=gcp.dataplex.TaskTriggerSpecArgs(
602
+ type="RECURRING",
603
+ disabled=False,
604
+ max_retries=3,
605
+ start_time="2023-10-02T15:01:23Z",
606
+ schedule="1 * * * *",
607
+ ),
608
+ execution_spec=gcp.dataplex.TaskExecutionSpecArgs(
609
+ service_account=f"{project.number}-compute@developer.gserviceaccount.com",
610
+ project="my-project-name",
611
+ max_job_execution_lifetime="100s",
612
+ kms_key="234jn2kjn42k3n423",
613
+ ),
614
+ spark=gcp.dataplex.TaskSparkArgs(
615
+ python_script_file="gs://dataproc-examples/pyspark/hello-world/hello-world.py",
616
+ ),
617
+ project="my-project-name")
618
+ ```
619
+ ### Dataplex Task Spark
620
+
621
+ ```python
622
+ import pulumi
623
+ import pulumi_gcp as gcp
624
+
625
+ # VPC network
626
+ default = gcp.compute.Network("default",
627
+ name="tf-test-workstation-cluster_22811",
628
+ auto_create_subnetworks=True)
629
+ project = gcp.organizations.get_project()
630
+ example_spark = gcp.dataplex.Lake("example_spark",
631
+ name="tf-test-lake_91042",
632
+ location="us-central1",
633
+ project="my-project-name")
634
+ example_spark_task = gcp.dataplex.Task("example_spark",
635
+ task_id="tf-test-task_72490",
636
+ location="us-central1",
637
+ lake=example_spark.name,
638
+ trigger_spec=gcp.dataplex.TaskTriggerSpecArgs(
639
+ type="ON_DEMAND",
640
+ ),
641
+ description="task-spark-terraform",
642
+ execution_spec=gcp.dataplex.TaskExecutionSpecArgs(
643
+ service_account=f"{project.number}-compute@developer.gserviceaccount.com",
644
+ args={
645
+ "TASK_ARGS": "--output_location,gs://spark-job/task-result, --output_format, json",
646
+ },
647
+ ),
648
+ spark=gcp.dataplex.TaskSparkArgs(
649
+ infrastructure_spec=gcp.dataplex.TaskSparkInfrastructureSpecArgs(
650
+ batch=gcp.dataplex.TaskSparkInfrastructureSpecBatchArgs(
651
+ executors_count=2,
652
+ max_executors_count=100,
653
+ ),
654
+ container_image=gcp.dataplex.TaskSparkInfrastructureSpecContainerImageArgs(
655
+ image="test-image",
656
+ java_jars=["test-java-jars.jar"],
657
+ python_packages=["gs://bucket-name/my/path/to/lib.tar.gz"],
658
+ properties={
659
+ "name": "wrench",
660
+ "mass": "1.3kg",
661
+ "count": "3",
662
+ },
663
+ ),
664
+ vpc_network=gcp.dataplex.TaskSparkInfrastructureSpecVpcNetworkArgs(
665
+ network_tags=["test-network-tag"],
666
+ sub_network=default.id,
667
+ ),
668
+ ),
669
+ file_uris=["gs://terrafrom-test/test.csv"],
670
+ archive_uris=["gs://terraform-test/test.csv"],
671
+ sql_script="show databases",
672
+ ),
673
+ project="my-project-name")
674
+ ```
675
+ ### Dataplex Task Notebook
676
+
677
+ ```python
678
+ import pulumi
679
+ import pulumi_gcp as gcp
680
+
681
+ # VPC network
682
+ default = gcp.compute.Network("default",
683
+ name="tf-test-workstation-cluster_89605",
684
+ auto_create_subnetworks=True)
685
+ project = gcp.organizations.get_project()
686
+ example_notebook = gcp.dataplex.Lake("example_notebook",
687
+ name="tf-test-lake_56730",
688
+ location="us-central1",
689
+ project="my-project-name")
690
+ example_notebook_task = gcp.dataplex.Task("example_notebook",
691
+ task_id="tf-test-task_95154",
692
+ location="us-central1",
693
+ lake=example_notebook.name,
694
+ trigger_spec=gcp.dataplex.TaskTriggerSpecArgs(
695
+ type="RECURRING",
696
+ schedule="1 * * * *",
697
+ ),
698
+ execution_spec=gcp.dataplex.TaskExecutionSpecArgs(
699
+ service_account=f"{project.number}-compute@developer.gserviceaccount.com",
700
+ args={
701
+ "TASK_ARGS": "--output_location,gs://spark-job-jars-anrajitha/task-result, --output_format, json",
702
+ },
703
+ ),
704
+ notebook=gcp.dataplex.TaskNotebookArgs(
705
+ notebook="gs://terraform-test/test-notebook.ipynb",
706
+ infrastructure_spec=gcp.dataplex.TaskNotebookInfrastructureSpecArgs(
707
+ batch=gcp.dataplex.TaskNotebookInfrastructureSpecBatchArgs(
708
+ executors_count=2,
709
+ max_executors_count=100,
710
+ ),
711
+ container_image=gcp.dataplex.TaskNotebookInfrastructureSpecContainerImageArgs(
712
+ image="test-image",
713
+ java_jars=["test-java-jars.jar"],
714
+ python_packages=["gs://bucket-name/my/path/to/lib.tar.gz"],
715
+ properties={
716
+ "name": "wrench",
717
+ "mass": "1.3kg",
718
+ "count": "3",
719
+ },
720
+ ),
721
+ vpc_network=gcp.dataplex.TaskNotebookInfrastructureSpecVpcNetworkArgs(
722
+ network_tags=["test-network-tag"],
723
+ network=default.id,
724
+ ),
725
+ ),
726
+ file_uris=["gs://terraform-test/test.csv"],
727
+ archive_uris=["gs://terraform-test/test.csv"],
728
+ ),
729
+ project="my-project-name")
730
+ ```
581
731
 
582
732
  ## Import
583
733
 
@@ -641,6 +791,156 @@ class Task(pulumi.CustomResource):
641
791
  * [Official Documentation](https://cloud.google.com/dataplex/docs)
642
792
 
643
793
  ## Example Usage
794
+ ### Dataplex Task Basic
795
+
796
+ ```python
797
+ import pulumi
798
+ import pulumi_gcp as gcp
799
+
800
+ project = gcp.organizations.get_project()
801
+ example = gcp.dataplex.Lake("example",
802
+ name="tf-test-lake_85840",
803
+ location="us-central1",
804
+ project="my-project-name")
805
+ example_task = gcp.dataplex.Task("example",
806
+ task_id="tf-test-task_60302",
807
+ location="us-central1",
808
+ lake=example.name,
809
+ description="Test Task Basic",
810
+ display_name="task-basic",
811
+ labels={
812
+ "count": "3",
813
+ },
814
+ trigger_spec=gcp.dataplex.TaskTriggerSpecArgs(
815
+ type="RECURRING",
816
+ disabled=False,
817
+ max_retries=3,
818
+ start_time="2023-10-02T15:01:23Z",
819
+ schedule="1 * * * *",
820
+ ),
821
+ execution_spec=gcp.dataplex.TaskExecutionSpecArgs(
822
+ service_account=f"{project.number}-compute@developer.gserviceaccount.com",
823
+ project="my-project-name",
824
+ max_job_execution_lifetime="100s",
825
+ kms_key="234jn2kjn42k3n423",
826
+ ),
827
+ spark=gcp.dataplex.TaskSparkArgs(
828
+ python_script_file="gs://dataproc-examples/pyspark/hello-world/hello-world.py",
829
+ ),
830
+ project="my-project-name")
831
+ ```
832
+ ### Dataplex Task Spark
833
+
834
+ ```python
835
+ import pulumi
836
+ import pulumi_gcp as gcp
837
+
838
+ # VPC network
839
+ default = gcp.compute.Network("default",
840
+ name="tf-test-workstation-cluster_22811",
841
+ auto_create_subnetworks=True)
842
+ project = gcp.organizations.get_project()
843
+ example_spark = gcp.dataplex.Lake("example_spark",
844
+ name="tf-test-lake_91042",
845
+ location="us-central1",
846
+ project="my-project-name")
847
+ example_spark_task = gcp.dataplex.Task("example_spark",
848
+ task_id="tf-test-task_72490",
849
+ location="us-central1",
850
+ lake=example_spark.name,
851
+ trigger_spec=gcp.dataplex.TaskTriggerSpecArgs(
852
+ type="ON_DEMAND",
853
+ ),
854
+ description="task-spark-terraform",
855
+ execution_spec=gcp.dataplex.TaskExecutionSpecArgs(
856
+ service_account=f"{project.number}-compute@developer.gserviceaccount.com",
857
+ args={
858
+ "TASK_ARGS": "--output_location,gs://spark-job/task-result, --output_format, json",
859
+ },
860
+ ),
861
+ spark=gcp.dataplex.TaskSparkArgs(
862
+ infrastructure_spec=gcp.dataplex.TaskSparkInfrastructureSpecArgs(
863
+ batch=gcp.dataplex.TaskSparkInfrastructureSpecBatchArgs(
864
+ executors_count=2,
865
+ max_executors_count=100,
866
+ ),
867
+ container_image=gcp.dataplex.TaskSparkInfrastructureSpecContainerImageArgs(
868
+ image="test-image",
869
+ java_jars=["test-java-jars.jar"],
870
+ python_packages=["gs://bucket-name/my/path/to/lib.tar.gz"],
871
+ properties={
872
+ "name": "wrench",
873
+ "mass": "1.3kg",
874
+ "count": "3",
875
+ },
876
+ ),
877
+ vpc_network=gcp.dataplex.TaskSparkInfrastructureSpecVpcNetworkArgs(
878
+ network_tags=["test-network-tag"],
879
+ sub_network=default.id,
880
+ ),
881
+ ),
882
+ file_uris=["gs://terrafrom-test/test.csv"],
883
+ archive_uris=["gs://terraform-test/test.csv"],
884
+ sql_script="show databases",
885
+ ),
886
+ project="my-project-name")
887
+ ```
888
+ ### Dataplex Task Notebook
889
+
890
+ ```python
891
+ import pulumi
892
+ import pulumi_gcp as gcp
893
+
894
+ # VPC network
895
+ default = gcp.compute.Network("default",
896
+ name="tf-test-workstation-cluster_89605",
897
+ auto_create_subnetworks=True)
898
+ project = gcp.organizations.get_project()
899
+ example_notebook = gcp.dataplex.Lake("example_notebook",
900
+ name="tf-test-lake_56730",
901
+ location="us-central1",
902
+ project="my-project-name")
903
+ example_notebook_task = gcp.dataplex.Task("example_notebook",
904
+ task_id="tf-test-task_95154",
905
+ location="us-central1",
906
+ lake=example_notebook.name,
907
+ trigger_spec=gcp.dataplex.TaskTriggerSpecArgs(
908
+ type="RECURRING",
909
+ schedule="1 * * * *",
910
+ ),
911
+ execution_spec=gcp.dataplex.TaskExecutionSpecArgs(
912
+ service_account=f"{project.number}-compute@developer.gserviceaccount.com",
913
+ args={
914
+ "TASK_ARGS": "--output_location,gs://spark-job-jars-anrajitha/task-result, --output_format, json",
915
+ },
916
+ ),
917
+ notebook=gcp.dataplex.TaskNotebookArgs(
918
+ notebook="gs://terraform-test/test-notebook.ipynb",
919
+ infrastructure_spec=gcp.dataplex.TaskNotebookInfrastructureSpecArgs(
920
+ batch=gcp.dataplex.TaskNotebookInfrastructureSpecBatchArgs(
921
+ executors_count=2,
922
+ max_executors_count=100,
923
+ ),
924
+ container_image=gcp.dataplex.TaskNotebookInfrastructureSpecContainerImageArgs(
925
+ image="test-image",
926
+ java_jars=["test-java-jars.jar"],
927
+ python_packages=["gs://bucket-name/my/path/to/lib.tar.gz"],
928
+ properties={
929
+ "name": "wrench",
930
+ "mass": "1.3kg",
931
+ "count": "3",
932
+ },
933
+ ),
934
+ vpc_network=gcp.dataplex.TaskNotebookInfrastructureSpecVpcNetworkArgs(
935
+ network_tags=["test-network-tag"],
936
+ network=default.id,
937
+ ),
938
+ ),
939
+ file_uris=["gs://terraform-test/test.csv"],
940
+ archive_uris=["gs://terraform-test/test.csv"],
941
+ ),
942
+ project="my-project-name")
943
+ ```
644
944
 
645
945
  ## Import
646
946
 
@@ -302,6 +302,36 @@ class Field(pulumi.CustomResource):
302
302
  chosen location.
303
303
 
304
304
  ## Example Usage
305
+ ### Firestore Field Basic
306
+
307
+ ```python
308
+ import pulumi
309
+ import pulumi_gcp as gcp
310
+
311
+ database = gcp.firestore.Database("database",
312
+ project="my-project-name",
313
+ name="database-id",
314
+ location_id="nam5",
315
+ type="FIRESTORE_NATIVE",
316
+ delete_protection_state="DELETE_PROTECTION_ENABLED",
317
+ deletion_policy="DELETE")
318
+ basic = gcp.firestore.Field("basic",
319
+ project="my-project-name",
320
+ database=database.name,
321
+ collection="chatrooms__64336",
322
+ field="basic",
323
+ index_config=gcp.firestore.FieldIndexConfigArgs(
324
+ indexes=[
325
+ gcp.firestore.FieldIndexConfigIndexArgs(
326
+ order="ASCENDING",
327
+ query_scope="COLLECTION_GROUP",
328
+ ),
329
+ gcp.firestore.FieldIndexConfigIndexArgs(
330
+ array_config="CONTAINS",
331
+ ),
332
+ ],
333
+ ))
334
+ ```
305
335
  ### Firestore Field Timestamp
306
336
 
307
337
  ```python
@@ -323,6 +353,38 @@ class Field(pulumi.CustomResource):
323
353
  ttl_config=gcp.firestore.FieldTtlConfigArgs(),
324
354
  index_config=gcp.firestore.FieldIndexConfigArgs())
325
355
  ```
356
+ ### Firestore Field Match Override
357
+
358
+ ```python
359
+ import pulumi
360
+ import pulumi_gcp as gcp
361
+
362
+ database = gcp.firestore.Database("database",
363
+ project="my-project-name",
364
+ name="database-id",
365
+ location_id="nam5",
366
+ type="FIRESTORE_NATIVE",
367
+ delete_protection_state="DELETE_PROTECTION_ENABLED",
368
+ deletion_policy="DELETE")
369
+ match_override = gcp.firestore.Field("match_override",
370
+ project="my-project-name",
371
+ database=database.name,
372
+ collection="chatrooms__34962",
373
+ field="field_with_same_configuration_as_ancestor",
374
+ index_config=gcp.firestore.FieldIndexConfigArgs(
375
+ indexes=[
376
+ gcp.firestore.FieldIndexConfigIndexArgs(
377
+ order="ASCENDING",
378
+ ),
379
+ gcp.firestore.FieldIndexConfigIndexArgs(
380
+ order="DESCENDING",
381
+ ),
382
+ gcp.firestore.FieldIndexConfigIndexArgs(
383
+ array_config="CONTAINS",
384
+ ),
385
+ ],
386
+ ))
387
+ ```
326
388
 
327
389
  ## Import
328
390
 
@@ -377,6 +439,36 @@ class Field(pulumi.CustomResource):
377
439
  chosen location.
378
440
 
379
441
  ## Example Usage
442
+ ### Firestore Field Basic
443
+
444
+ ```python
445
+ import pulumi
446
+ import pulumi_gcp as gcp
447
+
448
+ database = gcp.firestore.Database("database",
449
+ project="my-project-name",
450
+ name="database-id",
451
+ location_id="nam5",
452
+ type="FIRESTORE_NATIVE",
453
+ delete_protection_state="DELETE_PROTECTION_ENABLED",
454
+ deletion_policy="DELETE")
455
+ basic = gcp.firestore.Field("basic",
456
+ project="my-project-name",
457
+ database=database.name,
458
+ collection="chatrooms__64336",
459
+ field="basic",
460
+ index_config=gcp.firestore.FieldIndexConfigArgs(
461
+ indexes=[
462
+ gcp.firestore.FieldIndexConfigIndexArgs(
463
+ order="ASCENDING",
464
+ query_scope="COLLECTION_GROUP",
465
+ ),
466
+ gcp.firestore.FieldIndexConfigIndexArgs(
467
+ array_config="CONTAINS",
468
+ ),
469
+ ],
470
+ ))
471
+ ```
380
472
  ### Firestore Field Timestamp
381
473
 
382
474
  ```python
@@ -398,6 +490,38 @@ class Field(pulumi.CustomResource):
398
490
  ttl_config=gcp.firestore.FieldTtlConfigArgs(),
399
491
  index_config=gcp.firestore.FieldIndexConfigArgs())
400
492
  ```
493
+ ### Firestore Field Match Override
494
+
495
+ ```python
496
+ import pulumi
497
+ import pulumi_gcp as gcp
498
+
499
+ database = gcp.firestore.Database("database",
500
+ project="my-project-name",
501
+ name="database-id",
502
+ location_id="nam5",
503
+ type="FIRESTORE_NATIVE",
504
+ delete_protection_state="DELETE_PROTECTION_ENABLED",
505
+ deletion_policy="DELETE")
506
+ match_override = gcp.firestore.Field("match_override",
507
+ project="my-project-name",
508
+ database=database.name,
509
+ collection="chatrooms__34962",
510
+ field="field_with_same_configuration_as_ancestor",
511
+ index_config=gcp.firestore.FieldIndexConfigArgs(
512
+ indexes=[
513
+ gcp.firestore.FieldIndexConfigIndexArgs(
514
+ order="ASCENDING",
515
+ ),
516
+ gcp.firestore.FieldIndexConfigIndexArgs(
517
+ order="DESCENDING",
518
+ ),
519
+ gcp.firestore.FieldIndexConfigIndexArgs(
520
+ array_config="CONTAINS",
521
+ ),
522
+ ],
523
+ ))
524
+ ```
401
525
 
402
526
  ## Import
403
527
 
@@ -403,6 +403,38 @@ class MembershipBinding(pulumi.CustomResource):
403
403
  * [Registering a Cluster](https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster#register_cluster)
404
404
 
405
405
  ## Example Usage
406
+ ### Gkehub Membership Binding Basic
407
+
408
+ ```python
409
+ import pulumi
410
+ import pulumi_gcp as gcp
411
+
412
+ primary = gcp.container.Cluster("primary",
413
+ name="basic-cluster",
414
+ location="us-central1-a",
415
+ initial_node_count=1,
416
+ deletion_protection=True,
417
+ network="default",
418
+ subnetwork="default")
419
+ membership = gcp.gkehub.Membership("membership",
420
+ membership_id="tf-test-membership_74000",
421
+ endpoint=gcp.gkehub.MembershipEndpointArgs(
422
+ gke_cluster=gcp.gkehub.MembershipEndpointGkeClusterArgs(
423
+ resource_link=primary.id.apply(lambda id: f"//container.googleapis.com/{id}"),
424
+ ),
425
+ ))
426
+ scope = gcp.gkehub.Scope("scope", scope_id="tf-test-scope_75125")
427
+ membership_binding = gcp.gkehub.MembershipBinding("membership_binding",
428
+ membership_binding_id="tf-test-membership-binding_88722",
429
+ scope=scope.name,
430
+ membership_id=membership.membership_id,
431
+ location="global",
432
+ labels={
433
+ "keyb": "valueb",
434
+ "keya": "valuea",
435
+ "keyc": "valuec",
436
+ })
437
+ ```
406
438
 
407
439
  ## Import
408
440
 
@@ -461,6 +493,38 @@ class MembershipBinding(pulumi.CustomResource):
461
493
  * [Registering a Cluster](https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster#register_cluster)
462
494
 
463
495
  ## Example Usage
496
+ ### Gkehub Membership Binding Basic
497
+
498
+ ```python
499
+ import pulumi
500
+ import pulumi_gcp as gcp
501
+
502
+ primary = gcp.container.Cluster("primary",
503
+ name="basic-cluster",
504
+ location="us-central1-a",
505
+ initial_node_count=1,
506
+ deletion_protection=True,
507
+ network="default",
508
+ subnetwork="default")
509
+ membership = gcp.gkehub.Membership("membership",
510
+ membership_id="tf-test-membership_74000",
511
+ endpoint=gcp.gkehub.MembershipEndpointArgs(
512
+ gke_cluster=gcp.gkehub.MembershipEndpointGkeClusterArgs(
513
+ resource_link=primary.id.apply(lambda id: f"//container.googleapis.com/{id}"),
514
+ ),
515
+ ))
516
+ scope = gcp.gkehub.Scope("scope", scope_id="tf-test-scope_75125")
517
+ membership_binding = gcp.gkehub.MembershipBinding("membership_binding",
518
+ membership_binding_id="tf-test-membership-binding_88722",
519
+ scope=scope.name,
520
+ membership_id=membership.membership_id,
521
+ location="global",
522
+ labels={
523
+ "keyb": "valueb",
524
+ "keya": "valuea",
525
+ "keyc": "valuec",
526
+ })
527
+ ```
464
528
 
465
529
  ## Import
466
530
 
@@ -348,6 +348,36 @@ class MembershipRbacRoleBinding(pulumi.CustomResource):
348
348
  __props__=None):
349
349
  """
350
350
  ## Example Usage
351
+ ### Gkehub Membership Rbac Role Binding Basic
352
+
353
+ ```python
354
+ import pulumi
355
+ import pulumi_gcp as gcp
356
+
357
+ primary = gcp.container.Cluster("primary",
358
+ name="basic-cluster",
359
+ location="us-central1-a",
360
+ initial_node_count=1,
361
+ deletion_protection=True,
362
+ network="default",
363
+ subnetwork="default")
364
+ membership = gcp.gkehub.Membership("membership",
365
+ membership_id="tf-test-membership_39249",
366
+ endpoint=gcp.gkehub.MembershipEndpointArgs(
367
+ gke_cluster=gcp.gkehub.MembershipEndpointGkeClusterArgs(
368
+ resource_link=primary.id.apply(lambda id: f"//container.googleapis.com/{id}"),
369
+ ),
370
+ ))
371
+ project = gcp.organizations.get_project()
372
+ membership_rbac_role_binding = gcp.gkehub.MembershipRbacRoleBinding("membership_rbac_role_binding",
373
+ membership_rbac_role_binding_id="tf-test-membership-rbac-role-binding_74391",
374
+ membership_id=membership.membership_id,
375
+ user=f"service-{project.number}@gcp-sa-anthossupport.iam.gserviceaccount.com",
376
+ role=gcp.gkehub.MembershipRbacRoleBindingRoleArgs(
377
+ predefined_role="ANTHOS_SUPPORT",
378
+ ),
379
+ location="global")
380
+ ```
351
381
 
352
382
  ## Import
353
383
 
@@ -395,6 +425,36 @@ class MembershipRbacRoleBinding(pulumi.CustomResource):
395
425
  opts: Optional[pulumi.ResourceOptions] = None):
396
426
  """
397
427
  ## Example Usage
428
+ ### Gkehub Membership Rbac Role Binding Basic
429
+
430
+ ```python
431
+ import pulumi
432
+ import pulumi_gcp as gcp
433
+
434
+ primary = gcp.container.Cluster("primary",
435
+ name="basic-cluster",
436
+ location="us-central1-a",
437
+ initial_node_count=1,
438
+ deletion_protection=True,
439
+ network="default",
440
+ subnetwork="default")
441
+ membership = gcp.gkehub.Membership("membership",
442
+ membership_id="tf-test-membership_39249",
443
+ endpoint=gcp.gkehub.MembershipEndpointArgs(
444
+ gke_cluster=gcp.gkehub.MembershipEndpointGkeClusterArgs(
445
+ resource_link=primary.id.apply(lambda id: f"//container.googleapis.com/{id}"),
446
+ ),
447
+ ))
448
+ project = gcp.organizations.get_project()
449
+ membership_rbac_role_binding = gcp.gkehub.MembershipRbacRoleBinding("membership_rbac_role_binding",
450
+ membership_rbac_role_binding_id="tf-test-membership-rbac-role-binding_74391",
451
+ membership_id=membership.membership_id,
452
+ user=f"service-{project.number}@gcp-sa-anthossupport.iam.gserviceaccount.com",
453
+ role=gcp.gkehub.MembershipRbacRoleBindingRoleArgs(
454
+ predefined_role="ANTHOS_SUPPORT",
455
+ ),
456
+ location="global")
457
+ ```
398
458
 
399
459
  ## Import
400
460
 
@@ -416,6 +416,28 @@ class Namespace(pulumi.CustomResource):
416
416
  * [Registering a Cluster](https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster#register_cluster)
417
417
 
418
418
  ## Example Usage
419
+ ### Gkehub Namespace Basic
420
+
421
+ ```python
422
+ import pulumi
423
+ import pulumi_gcp as gcp
424
+
425
+ scope = gcp.gkehub.Scope("scope", scope_id="tf-test-scope_16511")
426
+ namespace = gcp.gkehub.Namespace("namespace",
427
+ scope_namespace_id="tf-test-namespace_8493",
428
+ scope_id=scope.scope_id,
429
+ scope=scope.name,
430
+ namespace_labels={
431
+ "keyb": "valueb",
432
+ "keya": "valuea",
433
+ "keyc": "valuec",
434
+ },
435
+ labels={
436
+ "keyb": "valueb",
437
+ "keya": "valuea",
438
+ "keyc": "valuec",
439
+ })
440
+ ```
419
441
 
420
442
  ## Import
421
443
 
@@ -477,6 +499,28 @@ class Namespace(pulumi.CustomResource):
477
499
  * [Registering a Cluster](https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster#register_cluster)
478
500
 
479
501
  ## Example Usage
502
+ ### Gkehub Namespace Basic
503
+
504
+ ```python
505
+ import pulumi
506
+ import pulumi_gcp as gcp
507
+
508
+ scope = gcp.gkehub.Scope("scope", scope_id="tf-test-scope_16511")
509
+ namespace = gcp.gkehub.Namespace("namespace",
510
+ scope_namespace_id="tf-test-namespace_8493",
511
+ scope_id=scope.scope_id,
512
+ scope=scope.name,
513
+ namespace_labels={
514
+ "keyb": "valueb",
515
+ "keya": "valuea",
516
+ "keyc": "valuec",
517
+ },
518
+ labels={
519
+ "keyb": "valueb",
520
+ "keya": "valuea",
521
+ "keyc": "valuec",
522
+ })
523
+ ```
480
524
 
481
525
  ## Import
482
526
 
@@ -445,6 +445,24 @@ class ScopeRbacRoleBinding(pulumi.CustomResource):
445
445
  * [Registering a Cluster](https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster#register_cluster)
446
446
 
447
447
  ## Example Usage
448
+ ### Gkehub Scope Rbac Role Binding Basic
449
+
450
+ ```python
451
+ import pulumi
452
+ import pulumi_gcp as gcp
453
+
454
+ scope = gcp.gkehub.Scope("scope", scope_id="tf-test-scope_9106")
455
+ scope_rbac_role_binding = gcp.gkehub.ScopeRbacRoleBinding("scope_rbac_role_binding",
456
+ scope_rbac_role_binding_id="tf-test-scope-rbac-role-binding_27169",
457
+ scope_id=scope.scope_id,
458
+ user="test-email@gmail.com",
459
+ role=gcp.gkehub.ScopeRbacRoleBindingRoleArgs(
460
+ predefined_role="ADMIN",
461
+ ),
462
+ labels={
463
+ "key": "value",
464
+ })
465
+ ```
448
466
 
449
467
  ## Import
450
468
 
@@ -506,6 +524,24 @@ class ScopeRbacRoleBinding(pulumi.CustomResource):
506
524
  * [Registering a Cluster](https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster#register_cluster)
507
525
 
508
526
  ## Example Usage
527
+ ### Gkehub Scope Rbac Role Binding Basic
528
+
529
+ ```python
530
+ import pulumi
531
+ import pulumi_gcp as gcp
532
+
533
+ scope = gcp.gkehub.Scope("scope", scope_id="tf-test-scope_9106")
534
+ scope_rbac_role_binding = gcp.gkehub.ScopeRbacRoleBinding("scope_rbac_role_binding",
535
+ scope_rbac_role_binding_id="tf-test-scope-rbac-role-binding_27169",
536
+ scope_id=scope.scope_id,
537
+ user="test-email@gmail.com",
538
+ role=gcp.gkehub.ScopeRbacRoleBindingRoleArgs(
539
+ predefined_role="ADMIN",
540
+ ),
541
+ labels={
542
+ "key": "value",
543
+ })
544
+ ```
509
545
 
510
546
  ## Import
511
547
 
@@ -290,6 +290,36 @@ class Policy(pulumi.CustomResource):
290
290
  ],
291
291
  ))
292
292
  ```
293
+ ### Dry_run_spec
294
+ ```python
295
+ import pulumi
296
+ import pulumi_gcp as gcp
297
+
298
+ constraint = gcp.orgpolicy.CustomConstraint("constraint",
299
+ name="custom.disableGkeAutoUpgrade_75223",
300
+ parent="organizations/123456789",
301
+ display_name="Disable GKE auto upgrade",
302
+ description="Only allow GKE NodePool resource to be created or updated if AutoUpgrade is not enabled where this custom constraint is enforced.",
303
+ action_type="ALLOW",
304
+ condition="resource.management.autoUpgrade == false",
305
+ method_types=["CREATE"],
306
+ resource_types=["container.googleapis.com/NodePool"])
307
+ primary = gcp.orgpolicy.Policy("primary",
308
+ name=constraint.name.apply(lambda name: f"organizations/123456789/policies/{name}"),
309
+ parent="organizations/123456789",
310
+ spec=gcp.orgpolicy.PolicySpecArgs(
311
+ rules=[gcp.orgpolicy.PolicySpecRuleArgs(
312
+ enforce="FALSE",
313
+ )],
314
+ ),
315
+ dry_run_spec=gcp.orgpolicy.PolicyDryRunSpecArgs(
316
+ inherit_from_parent=False,
317
+ reset=False,
318
+ rules=[gcp.orgpolicy.PolicyDryRunSpecRuleArgs(
319
+ enforce="FALSE",
320
+ )],
321
+ ))
322
+ ```
293
323
 
294
324
  ## Import
295
325
 
@@ -410,6 +440,36 @@ class Policy(pulumi.CustomResource):
410
440
  ],
411
441
  ))
412
442
  ```
443
+ ### Dry_run_spec
444
+ ```python
445
+ import pulumi
446
+ import pulumi_gcp as gcp
447
+
448
+ constraint = gcp.orgpolicy.CustomConstraint("constraint",
449
+ name="custom.disableGkeAutoUpgrade_75223",
450
+ parent="organizations/123456789",
451
+ display_name="Disable GKE auto upgrade",
452
+ description="Only allow GKE NodePool resource to be created or updated if AutoUpgrade is not enabled where this custom constraint is enforced.",
453
+ action_type="ALLOW",
454
+ condition="resource.management.autoUpgrade == false",
455
+ method_types=["CREATE"],
456
+ resource_types=["container.googleapis.com/NodePool"])
457
+ primary = gcp.orgpolicy.Policy("primary",
458
+ name=constraint.name.apply(lambda name: f"organizations/123456789/policies/{name}"),
459
+ parent="organizations/123456789",
460
+ spec=gcp.orgpolicy.PolicySpecArgs(
461
+ rules=[gcp.orgpolicy.PolicySpecRuleArgs(
462
+ enforce="FALSE",
463
+ )],
464
+ ),
465
+ dry_run_spec=gcp.orgpolicy.PolicyDryRunSpecArgs(
466
+ inherit_from_parent=False,
467
+ reset=False,
468
+ rules=[gcp.orgpolicy.PolicyDryRunSpecRuleArgs(
469
+ enforce="FALSE",
470
+ )],
471
+ ))
472
+ ```
413
473
 
414
474
  ## Import
415
475
 
@@ -1022,6 +1022,63 @@ class Subscription(pulumi.CustomResource):
1022
1022
  role="roles/bigquery.dataEditor",
1023
1023
  member=f"serviceAccount:service-{project.number}@gcp-sa-pubsub.iam.gserviceaccount.com")
1024
1024
  ```
1025
+ ### Pubsub Subscription Push Cloudstorage
1026
+
1027
+ ```python
1028
+ import pulumi
1029
+ import pulumi_gcp as gcp
1030
+
1031
+ example = gcp.storage.Bucket("example",
1032
+ name="example-bucket",
1033
+ location="US",
1034
+ uniform_bucket_level_access=True)
1035
+ example_topic = gcp.pubsub.Topic("example", name="example-topic")
1036
+ example_subscription = gcp.pubsub.Subscription("example",
1037
+ name="example-subscription",
1038
+ topic=example_topic.id,
1039
+ cloud_storage_config=gcp.pubsub.SubscriptionCloudStorageConfigArgs(
1040
+ bucket=example.name,
1041
+ filename_prefix="pre-",
1042
+ filename_suffix="-_41819",
1043
+ max_bytes=1000,
1044
+ max_duration="300s",
1045
+ ))
1046
+ project = gcp.organizations.get_project()
1047
+ admin = gcp.storage.BucketIAMMember("admin",
1048
+ bucket=example.name,
1049
+ role="roles/storage.admin",
1050
+ member=f"serviceAccount:service-{project.number}@gcp-sa-pubsub.iam.gserviceaccount.com")
1051
+ ```
1052
+ ### Pubsub Subscription Push Cloudstorage Avro
1053
+
1054
+ ```python
1055
+ import pulumi
1056
+ import pulumi_gcp as gcp
1057
+
1058
+ example = gcp.storage.Bucket("example",
1059
+ name="example-bucket",
1060
+ location="US",
1061
+ uniform_bucket_level_access=True)
1062
+ example_topic = gcp.pubsub.Topic("example", name="example-topic")
1063
+ example_subscription = gcp.pubsub.Subscription("example",
1064
+ name="example-subscription",
1065
+ topic=example_topic.id,
1066
+ cloud_storage_config=gcp.pubsub.SubscriptionCloudStorageConfigArgs(
1067
+ bucket=example.name,
1068
+ filename_prefix="pre-",
1069
+ filename_suffix="-_75092",
1070
+ max_bytes=1000,
1071
+ max_duration="300s",
1072
+ avro_config=gcp.pubsub.SubscriptionCloudStorageConfigAvroConfigArgs(
1073
+ write_metadata=True,
1074
+ ),
1075
+ ))
1076
+ project = gcp.organizations.get_project()
1077
+ admin = gcp.storage.BucketIAMMember("admin",
1078
+ bucket=example.name,
1079
+ role="roles/storage.admin",
1080
+ member=f"serviceAccount:service-{project.number}@gcp-sa-pubsub.iam.gserviceaccount.com")
1081
+ ```
1025
1082
 
1026
1083
  ## Import
1027
1084
 
@@ -1291,6 +1348,63 @@ class Subscription(pulumi.CustomResource):
1291
1348
  role="roles/bigquery.dataEditor",
1292
1349
  member=f"serviceAccount:service-{project.number}@gcp-sa-pubsub.iam.gserviceaccount.com")
1293
1350
  ```
1351
+ ### Pubsub Subscription Push Cloudstorage
1352
+
1353
+ ```python
1354
+ import pulumi
1355
+ import pulumi_gcp as gcp
1356
+
1357
+ example = gcp.storage.Bucket("example",
1358
+ name="example-bucket",
1359
+ location="US",
1360
+ uniform_bucket_level_access=True)
1361
+ example_topic = gcp.pubsub.Topic("example", name="example-topic")
1362
+ example_subscription = gcp.pubsub.Subscription("example",
1363
+ name="example-subscription",
1364
+ topic=example_topic.id,
1365
+ cloud_storage_config=gcp.pubsub.SubscriptionCloudStorageConfigArgs(
1366
+ bucket=example.name,
1367
+ filename_prefix="pre-",
1368
+ filename_suffix="-_41819",
1369
+ max_bytes=1000,
1370
+ max_duration="300s",
1371
+ ))
1372
+ project = gcp.organizations.get_project()
1373
+ admin = gcp.storage.BucketIAMMember("admin",
1374
+ bucket=example.name,
1375
+ role="roles/storage.admin",
1376
+ member=f"serviceAccount:service-{project.number}@gcp-sa-pubsub.iam.gserviceaccount.com")
1377
+ ```
1378
+ ### Pubsub Subscription Push Cloudstorage Avro
1379
+
1380
+ ```python
1381
+ import pulumi
1382
+ import pulumi_gcp as gcp
1383
+
1384
+ example = gcp.storage.Bucket("example",
1385
+ name="example-bucket",
1386
+ location="US",
1387
+ uniform_bucket_level_access=True)
1388
+ example_topic = gcp.pubsub.Topic("example", name="example-topic")
1389
+ example_subscription = gcp.pubsub.Subscription("example",
1390
+ name="example-subscription",
1391
+ topic=example_topic.id,
1392
+ cloud_storage_config=gcp.pubsub.SubscriptionCloudStorageConfigArgs(
1393
+ bucket=example.name,
1394
+ filename_prefix="pre-",
1395
+ filename_suffix="-_75092",
1396
+ max_bytes=1000,
1397
+ max_duration="300s",
1398
+ avro_config=gcp.pubsub.SubscriptionCloudStorageConfigAvroConfigArgs(
1399
+ write_metadata=True,
1400
+ ),
1401
+ ))
1402
+ project = gcp.organizations.get_project()
1403
+ admin = gcp.storage.BucketIAMMember("admin",
1404
+ bucket=example.name,
1405
+ role="roles/storage.admin",
1406
+ member=f"serviceAccount:service-{project.number}@gcp-sa-pubsub.iam.gserviceaccount.com")
1407
+ ```
1294
1408
 
1295
1409
  ## Import
1296
1410
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulumi_gcp
3
- Version: 7.12.0a1709133800
3
+ Version: 7.12.0a1709149267
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
@@ -203,7 +203,7 @@ pulumi_gcp/billing/account_iam_policy.py,sha256=-d5R1N6GgHG6NelV3qYiV7Abx19z3i-a
203
203
  pulumi_gcp/billing/budget.py,sha256=9e-NdDccnOzABM6BvIqF751twceyys3gRhUjOdjMzQs,37715
204
204
  pulumi_gcp/billing/get_account_iam_policy.py,sha256=eh0AIBYkKLtU_J89_t5bF40C_f78CwMud3WNUKxcf00,4196
205
205
  pulumi_gcp/billing/outputs.py,sha256=_cvcFhnp93eWP92Q6BDxkI5BdFgUjEeVieqWpC5iazc,30032
206
- pulumi_gcp/billing/project_info.py,sha256=PvaXgjXNTphpzKQe0MKfiOnXQ_LvC_q3P87-s6RV9vo,11095
206
+ pulumi_gcp/billing/project_info.py,sha256=xsueAhYn3OljE64GFwI35SuHGe-wmLjBSzwaDx3yYoY,11977
207
207
  pulumi_gcp/billing/sub_account.py,sha256=iNeBCSDAtrEvEZSXJiObrs7U8_T8kE51HbwjYRVz8tM,17103
208
208
  pulumi_gcp/binaryauthorization/__init__.py,sha256=m7d8G8patRN0kKPrHK4inwl9q1bGQfCo0b3BkYN54cQ,505
209
209
  pulumi_gcp/binaryauthorization/_inputs.py,sha256=TOVE7BLWbYDFQ06_ZvwOZH9iSUg1cXoka-oxP1a7PnU,24798
@@ -543,7 +543,7 @@ pulumi_gcp/compute/subnetwork_iam_policy.py,sha256=pSRUaL1XR0xRiN4lOwd06WBapd_JJ
543
543
  pulumi_gcp/compute/target_grpc_proxy.py,sha256=YbL7sPENj5l1JTbptMkMge3Sy4kJd3ufT0ZPCHGCiwg,40070
544
544
  pulumi_gcp/compute/target_http_proxy.py,sha256=9i0D6ron8-6d9ocTfng2AEYsrUikVvolXRYehLWPr1E,35960
545
545
  pulumi_gcp/compute/target_https_proxy.py,sha256=8kxV8IVP8ZxoFtnCjX-tJnXcj6YvBtVSDqw-5t07SS4,76161
546
- pulumi_gcp/compute/target_instance.py,sha256=Mx9XBooCrUI__jbeJInhmLWBHxty6xUW_AmZRdJiAAk,36259
546
+ pulumi_gcp/compute/target_instance.py,sha256=wwY6juu98u8GJEsyQowiymVO_moGFkFCN8ArsDJB70M,41497
547
547
  pulumi_gcp/compute/target_pool.py,sha256=rhy5Y7-BqGpvKzFfdy00Sqi5NibZv5xbw9fFFeej5jk,33613
548
548
  pulumi_gcp/compute/target_ssl_proxy.py,sha256=cBxWC9FQjnYBUWA6Zx5V3qGf23gN8eZcrdAjyDGJ8sI,36510
549
549
  pulumi_gcp/compute/target_tcp_proxy.py,sha256=krYwkAIKUKR2MCDyb0_rRr80eEjdHRvtkiWEC5Mu3bM,28010
@@ -585,7 +585,7 @@ pulumi_gcp/containeranalysis/occurence.py,sha256=JeRtvYd8dKKO4A_bLsDtQrwYnhqcjvY
585
585
  pulumi_gcp/containeranalysis/outputs.py,sha256=tKTjBy_TUrQtU5fLgeGLZVDuQ7_1ODp-fKw7PgG6sRw,11707
586
586
  pulumi_gcp/databasemigrationservice/__init__.py,sha256=TSOKMMGWNU2jmJt9LlIW8nNA9vCQf0pxMpZpbsIpV8M,382
587
587
  pulumi_gcp/databasemigrationservice/_inputs.py,sha256=iN2VndIAYH2Szo5WrxKLdwJqjpvHNF28naXsNsPJ61Y,78007
588
- pulumi_gcp/databasemigrationservice/connection_profile.py,sha256=4nwzLiV0ktEe7ODCegmn-peMTxR5LSJPqslCZIH6DdY,55527
588
+ pulumi_gcp/databasemigrationservice/connection_profile.py,sha256=28HpotU9ogmzKyAmnBOwnCNT-SeBRRNwlRRQovuptpo,60027
589
589
  pulumi_gcp/databasemigrationservice/outputs.py,sha256=vdKP9Creyr2lV1ldecHGOD39dBFS0ZImvvnMiGl6fg4,74814
590
590
  pulumi_gcp/databasemigrationservice/private_connection.py,sha256=t5CtJFCDO87XzviS52az8xNDeUEVctQ-dMFhMfIbnyU,30676
591
591
  pulumi_gcp/datacatalog/__init__.py,sha256=M4wloqnS9CGbzIsU_zjPk4erIdmSgZFRcrrO9MC5pmI,1075
@@ -661,7 +661,7 @@ pulumi_gcp/dataplex/lake_iam_binding.py,sha256=F9w_PStrPCqRr_1RxA7Dw0-PzSLTzkLWJ
661
661
  pulumi_gcp/dataplex/lake_iam_member.py,sha256=-1ef3P3ZRH0RBHLY9guW7-NKlZsloM7-T7SH009uC6A,34661
662
662
  pulumi_gcp/dataplex/lake_iam_policy.py,sha256=Niw2wamlUwEEK5cnkyxRFE_lPBQNfN0A2zGJMnTDelo,31172
663
663
  pulumi_gcp/dataplex/outputs.py,sha256=S2trle-G3hQnAGHO_3TKmduORljdLBAPgiqDkLb7EsU,151703
664
- pulumi_gcp/dataplex/task.py,sha256=qyI2ytIKNyQCVUU6Jm_XUkZK7LzdCrxk8GCDgCql8MQ,43345
664
+ pulumi_gcp/dataplex/task.py,sha256=41aqo-S_9jrcjTIUAvVsQU3C3t00qrTjksVsGU_yCuc,56031
665
665
  pulumi_gcp/dataplex/task_iam_binding.py,sha256=4hLPRw8__v4tZ9vGpxKhm-QarF81vQJpphSIxFsbpqM,38221
666
666
  pulumi_gcp/dataplex/task_iam_member.py,sha256=mB4ZroMZ8N1uXtKjT1l2xq7-lKWNcPoI9zjztQgaiXw,37925
667
667
  pulumi_gcp/dataplex/task_iam_policy.py,sha256=tW8GQrfkxsxNq8SACR51kCUNTZMhWEI6w3EA4ohl3Uc,34436
@@ -829,7 +829,7 @@ pulumi_gcp/firestore/_inputs.py,sha256=ti-isFku5gF1aFvlIsTciSka2LFd4R97iPr8m9hQW
829
829
  pulumi_gcp/firestore/backup_schedule.py,sha256=tyfITgtVcI4DsPTXPl8KJMl5juyvEVUTAyHKV_Ez2mA,25945
830
830
  pulumi_gcp/firestore/database.py,sha256=PVw_WFu2t2UWFZGBv76LBVh2amLA5wF33wkNIDCLrpk,60520
831
831
  pulumi_gcp/firestore/document.py,sha256=o_y9Wv-bz2x5vmb3rCJGZNjl4sQ5j25zLtU3uNmbKqw,28385
832
- pulumi_gcp/firestore/field.py,sha256=gRe265IcFCNt5k-ZKfk8mXnyuoXxeBQ7phBUMnbA1t0,24902
832
+ pulumi_gcp/firestore/field.py,sha256=u5vDX2p_-hfhSHioprbi7b-JE14rvskPM_YU-sY9Y4s,29352
833
833
  pulumi_gcp/firestore/index.py,sha256=E8FKq6gfmOF4PusYbZZopdBDkPIjEp0osJA2SgLMq28,29359
834
834
  pulumi_gcp/firestore/outputs.py,sha256=UjiWBJ2jJOdwLiCptvLdaHFZfyxMlAMc_VYYwjMOkfQ,8646
835
835
  pulumi_gcp/folder/__init__.py,sha256=wLVz30d4tKDtVPp4BsH10obSXoVPu1gK7SMra3jJf88,569
@@ -868,18 +868,18 @@ pulumi_gcp/gkehub/get_feature_iam_policy.py,sha256=6iVFnYMt2OQviFOUrCduCH2OMSPsx
868
868
  pulumi_gcp/gkehub/get_membership_iam_policy.py,sha256=GMIYU4yc16-Ynh6BfZwJsMYSqp67vWbZ7ZngF7CMSMU,6352
869
869
  pulumi_gcp/gkehub/get_scope_iam_policy.py,sha256=qStvLp1NRy5nyPn3rVjz6kHVyOTnNs04Q81P_7QBn3k,5101
870
870
  pulumi_gcp/gkehub/membership.py,sha256=yn9HgPa698Dta9FZB1J13fkKYkuujbLAdadkxrwxAdE,37531
871
- pulumi_gcp/gkehub/membership_binding.py,sha256=0IsoD_gEWc9fkkmhLxrlb9M2V7HTtRUBsUy2iUfshp0,31744
871
+ pulumi_gcp/gkehub/membership_binding.py,sha256=oc4chFvDZDk1jSzHfz_tkSthVqXzaIlJNTIhIyq0Yak,34222
872
872
  pulumi_gcp/gkehub/membership_iam_binding.py,sha256=wbevq-g1w6--Xhj6hGcbqH_TLSlYz5Td-kyDpX8PzL0,36667
873
873
  pulumi_gcp/gkehub/membership_iam_member.py,sha256=IIddaL_U_QOljgYnyF4PIAp8IQWL77PgtQ3k5t-zGJw,36371
874
874
  pulumi_gcp/gkehub/membership_iam_policy.py,sha256=YIeq4EWbNttUm9VoVC_yQybisrR72dO73p9cb9QfY5o,32794
875
- pulumi_gcp/gkehub/membership_rbac_role_binding.py,sha256=j5gl81sa1OzwFByUZ5B931-5nXAjyOscY0CkiScQYTo,27726
876
- pulumi_gcp/gkehub/namespace.py,sha256=iCb5asYzaeRv7jBKY6IzCnZ4avfmJhnSPVvDnB4vod0,32999
875
+ pulumi_gcp/gkehub/membership_rbac_role_binding.py,sha256=xVIC-LOLNrqtB9Xz5fgYrSDQ8UYp8ZIIXEN2q6Zgwac,30374
876
+ pulumi_gcp/gkehub/namespace.py,sha256=l87MRxP_idER4osddG60NPP5RV1zA5aaTnyFihMvsvo,34319
877
877
  pulumi_gcp/gkehub/outputs.py,sha256=EKhcGo2MJBtTyKZpTqsFK_9KPEODOnKXPcxQm4KY5xQ,135813
878
878
  pulumi_gcp/gkehub/scope.py,sha256=EAyPON7dU7pQo81Z7rZPubRXliSugSTgywrMgZzana8,24458
879
879
  pulumi_gcp/gkehub/scope_iam_binding.py,sha256=ajazyibX-lUoGvFgSoixQoAjenjtlReA0sUIan8H2-Y,32913
880
880
  pulumi_gcp/gkehub/scope_iam_member.py,sha256=aE2tT2_ZlAmoXY8M21QonKTuKKhF8HA0UqK_Dt6dBD8,32617
881
881
  pulumi_gcp/gkehub/scope_iam_policy.py,sha256=yX_N_ApIlCa3vl941Tj11wvSjfCC1P1etQKPBSHfTgk,29125
882
- pulumi_gcp/gkehub/scope_rbac_role_binding.py,sha256=J6B5dq5KoIaj4zk0LoFcdequMO171TpQuHVpSETj72k,36133
882
+ pulumi_gcp/gkehub/scope_rbac_role_binding.py,sha256=5LnAtyED9UByxxZzmJpq0lSvxvutHi0--__WykGIyR0,37417
883
883
  pulumi_gcp/gkeonprem/__init__.py,sha256=Mvd41ZaItFnzM4iQtQTqhAwcPeZ-cpWq1hjgdvBi_e8,488
884
884
  pulumi_gcp/gkeonprem/_inputs.py,sha256=53i0bg33YdZRG2eSvlkdU1DfJHVAHFbcGptMPKYchgU,270681
885
885
  pulumi_gcp/gkeonprem/bare_metal_admin_cluster.py,sha256=qqRhT3Gd9pZHUzKsghgZl171gjO_-86Qo60kTD-19sY,92474
@@ -1162,7 +1162,7 @@ pulumi_gcp/orgpolicy/__init__.py,sha256=bdd_oQduV_xUj2RtYRYe5h9NzODH1KbvCbkkZLJp
1162
1162
  pulumi_gcp/orgpolicy/_inputs.py,sha256=Q9nLVXMAjQODetqcoXCQ_RmZDRouqelJqF3RB7YkdZc,32256
1163
1163
  pulumi_gcp/orgpolicy/custom_constraint.py,sha256=vWjDQcAN0ByOjkZUDAt33QQXyLmC26o7rGH-jgqiv24,33223
1164
1164
  pulumi_gcp/orgpolicy/outputs.py,sha256=lWC69234Vv4r2aFVHKj8jz6_XxBCvOhWG-LFBM7WK3Y,30184
1165
- pulumi_gcp/orgpolicy/policy.py,sha256=V2qDcIuvvEykV-Ii79ol1T_QtJjmIp_MGGs-lLGK8bo,27111
1165
+ pulumi_gcp/orgpolicy/policy.py,sha256=hQyCrd8FRhstTgOOFuAaKKnj7UBSe8wjpLGmx6fTdLs,29765
1166
1166
  pulumi_gcp/osconfig/__init__.py,sha256=yDD2y1RayZ6ZJsosFD0HA15H2OCYk_GwALeFoLuEusk,412
1167
1167
  pulumi_gcp/osconfig/_inputs.py,sha256=mFZ0_vJRhp0Am7JCUMYEnHdZmHHE7GcJwKVh3qfo5IY,276549
1168
1168
  pulumi_gcp/osconfig/guest_policies.py,sha256=vxjJBzH7E_PWZhu5jVrZ11XjwM5WqQ4UxvEsDu0ODV4,48993
@@ -1205,7 +1205,7 @@ pulumi_gcp/pubsub/schema.py,sha256=GFl7chvDwdZ4DQA677QgM7bn-gLDHRdCvJnM93O5TD8,2
1205
1205
  pulumi_gcp/pubsub/schema_iam_binding.py,sha256=ZCJIZakrkBvf2KuKil5LE_-aqT2sEJS3b0NyVvrRKT4,33413
1206
1206
  pulumi_gcp/pubsub/schema_iam_member.py,sha256=A8iw55vbYtRj-0_bjkRakmJHu_cVy7du-aA-oxLSe8A,33117
1207
1207
  pulumi_gcp/pubsub/schema_iam_policy.py,sha256=aFAOTNSncph3k8LkMcAr_oc5n9_ydFvkA0_g5IqApUI,29608
1208
- pulumi_gcp/pubsub/subscription.py,sha256=97nUA8DqMUBqaiGAaiR67ni0fZsUSRYX__tXmolm51w,96124
1208
+ pulumi_gcp/pubsub/subscription.py,sha256=sOs1NL21GG3rYgkxeAxSL6D1St0Ao3ozzwlztzEtxT0,100708
1209
1209
  pulumi_gcp/pubsub/subscription_iam_binding.py,sha256=sIxFju3OHg2EMg8OssQmuKWlrnwS5_JAlk577FB26Bc,28498
1210
1210
  pulumi_gcp/pubsub/subscription_iam_member.py,sha256=GjY9gfw4qiuNBBP3taSGteHhV1DiVOLjBhNIR8Dn3zg,28210
1211
1211
  pulumi_gcp/pubsub/subscription_iam_policy.py,sha256=w7kw-92oWIGTy_nnd3QEMI3Uq4NE7rm1tDuoo-Gxy8E,24792
@@ -1483,7 +1483,7 @@ pulumi_gcp/workstations/workstation_config_iam_policy.py,sha256=sli2qaaWdgRoGifd
1483
1483
  pulumi_gcp/workstations/workstation_iam_binding.py,sha256=9fYHcTYfq2rLBmoLmIeN1did5jwECGYi-eVNwjAfYoU,35877
1484
1484
  pulumi_gcp/workstations/workstation_iam_member.py,sha256=K-nQU3_UK-9GMEwiOobKHvMUbrvzNxR5tavwnyg9BfU,35581
1485
1485
  pulumi_gcp/workstations/workstation_iam_policy.py,sha256=uF2FCQiwlv7LpIEuMV5-hMVueNNRchK5d8YmnTnVU_A,31945
1486
- pulumi_gcp-7.12.0a1709133800.dist-info/METADATA,sha256=5HvarRVm4Hya9m3jnCdN_WbxfieNDUBEXZN717PwhYQ,2662
1487
- pulumi_gcp-7.12.0a1709133800.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
1488
- pulumi_gcp-7.12.0a1709133800.dist-info/top_level.txt,sha256=acmDGVRVMJWpVhhj-l-aHbZ7mrvmzjmUeqRyCN8nnjM,11
1489
- pulumi_gcp-7.12.0a1709133800.dist-info/RECORD,,
1486
+ pulumi_gcp-7.12.0a1709149267.dist-info/METADATA,sha256=wyCjnDlruvXx4WJtlXNVBoEFRI2qUTylWQW1vV93FL8,2662
1487
+ pulumi_gcp-7.12.0a1709149267.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
1488
+ pulumi_gcp-7.12.0a1709149267.dist-info/top_level.txt,sha256=acmDGVRVMJWpVhhj-l-aHbZ7mrvmzjmUeqRyCN8nnjM,11
1489
+ pulumi_gcp-7.12.0a1709149267.dist-info/RECORD,,