pulumi-gcp 7.16.0a1711520590__py3-none-any.whl → 7.17.0__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.
- pulumi_gcp/__init__.py +35 -0
- pulumi_gcp/accesscontextmanager/__init__.py +1 -0
- pulumi_gcp/accesscontextmanager/service_perimeter_dry_run_resource.py +345 -0
- pulumi_gcp/accesscontextmanager/service_perimeter_egress_policy.py +80 -0
- pulumi_gcp/accesscontextmanager/service_perimeter_ingress_policy.py +86 -0
- pulumi_gcp/accesscontextmanager/service_perimeter_resource.py +4 -2
- pulumi_gcp/apphub/__init__.py +1 -0
- pulumi_gcp/apphub/get_application.py +220 -0
- pulumi_gcp/apphub/outputs.py +214 -0
- pulumi_gcp/applicationintegration/__init__.py +10 -0
- pulumi_gcp/applicationintegration/_inputs.py +119 -0
- pulumi_gcp/applicationintegration/client.py +566 -0
- pulumi_gcp/applicationintegration/outputs.py +122 -0
- pulumi_gcp/bigquery/_inputs.py +16 -0
- pulumi_gcp/bigquery/outputs.py +14 -0
- pulumi_gcp/bigquery/routine.py +98 -0
- pulumi_gcp/bigtable/_inputs.py +4 -4
- pulumi_gcp/bigtable/gc_policy.py +8 -0
- pulumi_gcp/bigtable/outputs.py +4 -4
- pulumi_gcp/billing/_inputs.py +4 -4
- pulumi_gcp/billing/outputs.py +4 -4
- pulumi_gcp/billing/project_info.py +4 -4
- pulumi_gcp/cloudfunctionsv2/_inputs.py +2 -2
- pulumi_gcp/cloudfunctionsv2/outputs.py +4 -4
- pulumi_gcp/cloudquota/__init__.py +3 -0
- pulumi_gcp/cloudquota/_inputs.py +131 -0
- pulumi_gcp/cloudquota/get_s_quota_infos.py +136 -0
- pulumi_gcp/cloudquota/outputs.py +388 -0
- pulumi_gcp/cloudquota/s_quota_preference.py +777 -0
- pulumi_gcp/cloudrunv2/_inputs.py +59 -2
- pulumi_gcp/cloudrunv2/outputs.py +107 -4
- pulumi_gcp/cloudrunv2/service.py +13 -13
- pulumi_gcp/composer/_inputs.py +30 -4
- pulumi_gcp/composer/outputs.py +45 -10
- pulumi_gcp/compute/_inputs.py +145 -51
- pulumi_gcp/compute/autoscaler.py +14 -14
- pulumi_gcp/compute/interconnect_attachment.py +64 -0
- pulumi_gcp/compute/network_endpoint.py +8 -0
- pulumi_gcp/compute/network_endpoint_list.py +8 -0
- pulumi_gcp/compute/outputs.py +202 -69
- pulumi_gcp/compute/region_autoscaler.py +14 -14
- pulumi_gcp/compute/region_backend_service.py +28 -0
- pulumi_gcp/compute/region_url_map.py +152 -0
- pulumi_gcp/compute/target_instance.py +4 -4
- pulumi_gcp/config/__init__.pyi +2 -0
- pulumi_gcp/config/vars.py +4 -0
- pulumi_gcp/container/_inputs.py +148 -16
- pulumi_gcp/container/outputs.py +148 -16
- pulumi_gcp/databasemigrationservice/connection_profile.py +6 -6
- pulumi_gcp/dataflow/flex_template_job.py +84 -112
- pulumi_gcp/dataform/repository.py +4 -74
- pulumi_gcp/dataloss/_inputs.py +6 -6
- pulumi_gcp/dataloss/outputs.py +6 -6
- pulumi_gcp/dataplex/task.py +16 -16
- pulumi_gcp/dataproc/_inputs.py +85 -10
- pulumi_gcp/dataproc/get_metastore_service.py +11 -1
- pulumi_gcp/dataproc/metastore_service.py +120 -0
- pulumi_gcp/dataproc/outputs.py +142 -10
- pulumi_gcp/firebase/android_app.py +41 -40
- pulumi_gcp/firebase/app_check_service_config.py +2 -2
- pulumi_gcp/firestore/backup_schedule.py +14 -14
- pulumi_gcp/firestore/field.py +4 -4
- pulumi_gcp/firestore/index.py +34 -48
- pulumi_gcp/gkehub/membership_binding.py +6 -6
- pulumi_gcp/gkehub/membership_rbac_role_binding.py +4 -4
- pulumi_gcp/gkehub/namespace.py +4 -4
- pulumi_gcp/gkehub/scope_rbac_role_binding.py +4 -4
- pulumi_gcp/iam/_inputs.py +76 -0
- pulumi_gcp/iam/outputs.py +76 -0
- pulumi_gcp/iam/workforce_pool_provider.py +35 -0
- pulumi_gcp/iam/workload_identity_pool_provider.py +140 -0
- pulumi_gcp/iap/tunnel_dest_group.py +2 -2
- pulumi_gcp/kms/_inputs.py +46 -0
- pulumi_gcp/kms/crypto_key.py +54 -0
- pulumi_gcp/kms/crypto_key_version.py +54 -0
- pulumi_gcp/kms/get_kms_crypto_key.py +11 -1
- pulumi_gcp/kms/outputs.py +54 -0
- pulumi_gcp/logging/_inputs.py +8 -8
- pulumi_gcp/logging/metric.py +7 -7
- pulumi_gcp/logging/outputs.py +8 -8
- pulumi_gcp/monitoring/_inputs.py +4 -2
- pulumi_gcp/monitoring/outputs.py +4 -2
- pulumi_gcp/monitoring/slo.py +4 -4
- pulumi_gcp/networksecurity/firewall_endpoint.py +48 -0
- pulumi_gcp/networkservices/_inputs.py +6 -6
- pulumi_gcp/networkservices/outputs.py +6 -6
- pulumi_gcp/orgpolicy/policy.py +2 -2
- pulumi_gcp/provider.py +20 -0
- pulumi_gcp/pubsub/_inputs.py +108 -0
- pulumi_gcp/pubsub/get_topic.py +11 -1
- pulumi_gcp/pubsub/outputs.py +213 -0
- pulumi_gcp/pubsub/subscription.py +4 -4
- pulumi_gcp/pubsub/topic.py +92 -0
- pulumi_gcp/serviceusage/consumer_quota_override.py +7 -7
- pulumi_gcp/sql/_inputs.py +20 -2
- pulumi_gcp/sql/database_instance.py +2 -2
- pulumi_gcp/sql/outputs.py +20 -2
- pulumi_gcp/storage/_inputs.py +42 -2
- pulumi_gcp/storage/bucket.py +54 -0
- pulumi_gcp/storage/get_bucket.py +11 -1
- pulumi_gcp/storage/outputs.py +83 -2
- pulumi_gcp/vertex/__init__.py +1 -0
- pulumi_gcp/vertex/_inputs.py +175 -8
- pulumi_gcp/vertex/ai_deployment_resource_pool.py +477 -0
- pulumi_gcp/vertex/outputs.py +202 -10
- pulumi_gcp/vpcaccess/connector.py +77 -28
- pulumi_gcp/workstations/_inputs.py +113 -0
- pulumi_gcp/workstations/outputs.py +109 -1
- pulumi_gcp/workstations/workstation_config.py +106 -0
- {pulumi_gcp-7.16.0a1711520590.dist-info → pulumi_gcp-7.17.0.dist-info}/METADATA +1 -1
- {pulumi_gcp-7.16.0a1711520590.dist-info → pulumi_gcp-7.17.0.dist-info}/RECORD +113 -103
- {pulumi_gcp-7.16.0a1711520590.dist-info → pulumi_gcp-7.17.0.dist-info}/WHEEL +0 -0
- {pulumi_gcp-7.16.0a1711520590.dist-info → pulumi_gcp-7.17.0.dist-info}/top_level.txt +0 -0
@@ -21,6 +21,8 @@ __all__ = [
|
|
21
21
|
'WorkstationConfigHostArgs',
|
22
22
|
'WorkstationConfigHostGceInstanceArgs',
|
23
23
|
'WorkstationConfigHostGceInstanceAcceleratorArgs',
|
24
|
+
'WorkstationConfigHostGceInstanceBoostConfigArgs',
|
25
|
+
'WorkstationConfigHostGceInstanceBoostConfigAcceleratorArgs',
|
24
26
|
'WorkstationConfigHostGceInstanceConfidentialInstanceConfigArgs',
|
25
27
|
'WorkstationConfigHostGceInstanceShieldedInstanceConfigArgs',
|
26
28
|
'WorkstationConfigIamBindingConditionArgs',
|
@@ -553,6 +555,7 @@ class WorkstationConfigHostArgs:
|
|
553
555
|
class WorkstationConfigHostGceInstanceArgs:
|
554
556
|
def __init__(__self__, *,
|
555
557
|
accelerators: Optional[pulumi.Input[Sequence[pulumi.Input['WorkstationConfigHostGceInstanceAcceleratorArgs']]]] = None,
|
558
|
+
boost_configs: Optional[pulumi.Input[Sequence[pulumi.Input['WorkstationConfigHostGceInstanceBoostConfigArgs']]]] = None,
|
556
559
|
boot_disk_size_gb: Optional[pulumi.Input[int]] = None,
|
557
560
|
confidential_instance_config: Optional[pulumi.Input['WorkstationConfigHostGceInstanceConfidentialInstanceConfigArgs']] = None,
|
558
561
|
disable_public_ip_addresses: Optional[pulumi.Input[bool]] = None,
|
@@ -567,6 +570,8 @@ class WorkstationConfigHostGceInstanceArgs:
|
|
567
570
|
"""
|
568
571
|
:param pulumi.Input[Sequence[pulumi.Input['WorkstationConfigHostGceInstanceAcceleratorArgs']]] accelerators: An accelerator card attached to the instance.
|
569
572
|
Structure is documented below.
|
573
|
+
:param pulumi.Input[Sequence[pulumi.Input['WorkstationConfigHostGceInstanceBoostConfigArgs']]] boost_configs: A list of the boost configurations that workstations created using this workstation configuration are allowed to use.
|
574
|
+
Structure is documented below.
|
570
575
|
:param pulumi.Input[int] boot_disk_size_gb: Size of the boot disk in GB.
|
571
576
|
:param pulumi.Input['WorkstationConfigHostGceInstanceConfidentialInstanceConfigArgs'] confidential_instance_config: A set of Compute Engine Confidential VM instance options.
|
572
577
|
Structure is documented below.
|
@@ -584,6 +589,8 @@ class WorkstationConfigHostGceInstanceArgs:
|
|
584
589
|
"""
|
585
590
|
if accelerators is not None:
|
586
591
|
pulumi.set(__self__, "accelerators", accelerators)
|
592
|
+
if boost_configs is not None:
|
593
|
+
pulumi.set(__self__, "boost_configs", boost_configs)
|
587
594
|
if boot_disk_size_gb is not None:
|
588
595
|
pulumi.set(__self__, "boot_disk_size_gb", boot_disk_size_gb)
|
589
596
|
if confidential_instance_config is not None:
|
@@ -620,6 +627,19 @@ class WorkstationConfigHostGceInstanceArgs:
|
|
620
627
|
def accelerators(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['WorkstationConfigHostGceInstanceAcceleratorArgs']]]]):
|
621
628
|
pulumi.set(self, "accelerators", value)
|
622
629
|
|
630
|
+
@property
|
631
|
+
@pulumi.getter(name="boostConfigs")
|
632
|
+
def boost_configs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['WorkstationConfigHostGceInstanceBoostConfigArgs']]]]:
|
633
|
+
"""
|
634
|
+
A list of the boost configurations that workstations created using this workstation configuration are allowed to use.
|
635
|
+
Structure is documented below.
|
636
|
+
"""
|
637
|
+
return pulumi.get(self, "boost_configs")
|
638
|
+
|
639
|
+
@boost_configs.setter
|
640
|
+
def boost_configs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['WorkstationConfigHostGceInstanceBoostConfigArgs']]]]):
|
641
|
+
pulumi.set(self, "boost_configs", value)
|
642
|
+
|
623
643
|
@property
|
624
644
|
@pulumi.getter(name="bootDiskSizeGb")
|
625
645
|
def boot_disk_size_gb(self) -> Optional[pulumi.Input[int]]:
|
@@ -793,6 +813,99 @@ class WorkstationConfigHostGceInstanceAcceleratorArgs:
|
|
793
813
|
pulumi.set(self, "type", value)
|
794
814
|
|
795
815
|
|
816
|
+
@pulumi.input_type
|
817
|
+
class WorkstationConfigHostGceInstanceBoostConfigArgs:
|
818
|
+
def __init__(__self__, *,
|
819
|
+
id: pulumi.Input[str],
|
820
|
+
accelerators: Optional[pulumi.Input[Sequence[pulumi.Input['WorkstationConfigHostGceInstanceBoostConfigAcceleratorArgs']]]] = None,
|
821
|
+
machine_type: Optional[pulumi.Input[str]] = None):
|
822
|
+
"""
|
823
|
+
:param pulumi.Input[str] id: The id to be used for the boost config.
|
824
|
+
:param pulumi.Input[Sequence[pulumi.Input['WorkstationConfigHostGceInstanceBoostConfigAcceleratorArgs']]] accelerators: An accelerator card attached to the boost instance.
|
825
|
+
Structure is documented below.
|
826
|
+
:param pulumi.Input[str] machine_type: The type of machine that boosted VM instances will use—for example, e2-standard-4. For more information about machine types that Cloud Workstations supports, see the list of available machine types https://cloud.google.com/workstations/docs/available-machine-types. Defaults to e2-standard-4.
|
827
|
+
"""
|
828
|
+
pulumi.set(__self__, "id", id)
|
829
|
+
if accelerators is not None:
|
830
|
+
pulumi.set(__self__, "accelerators", accelerators)
|
831
|
+
if machine_type is not None:
|
832
|
+
pulumi.set(__self__, "machine_type", machine_type)
|
833
|
+
|
834
|
+
@property
|
835
|
+
@pulumi.getter
|
836
|
+
def id(self) -> pulumi.Input[str]:
|
837
|
+
"""
|
838
|
+
The id to be used for the boost config.
|
839
|
+
"""
|
840
|
+
return pulumi.get(self, "id")
|
841
|
+
|
842
|
+
@id.setter
|
843
|
+
def id(self, value: pulumi.Input[str]):
|
844
|
+
pulumi.set(self, "id", value)
|
845
|
+
|
846
|
+
@property
|
847
|
+
@pulumi.getter
|
848
|
+
def accelerators(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['WorkstationConfigHostGceInstanceBoostConfigAcceleratorArgs']]]]:
|
849
|
+
"""
|
850
|
+
An accelerator card attached to the boost instance.
|
851
|
+
Structure is documented below.
|
852
|
+
"""
|
853
|
+
return pulumi.get(self, "accelerators")
|
854
|
+
|
855
|
+
@accelerators.setter
|
856
|
+
def accelerators(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['WorkstationConfigHostGceInstanceBoostConfigAcceleratorArgs']]]]):
|
857
|
+
pulumi.set(self, "accelerators", value)
|
858
|
+
|
859
|
+
@property
|
860
|
+
@pulumi.getter(name="machineType")
|
861
|
+
def machine_type(self) -> Optional[pulumi.Input[str]]:
|
862
|
+
"""
|
863
|
+
The type of machine that boosted VM instances will use—for example, e2-standard-4. For more information about machine types that Cloud Workstations supports, see the list of available machine types https://cloud.google.com/workstations/docs/available-machine-types. Defaults to e2-standard-4.
|
864
|
+
"""
|
865
|
+
return pulumi.get(self, "machine_type")
|
866
|
+
|
867
|
+
@machine_type.setter
|
868
|
+
def machine_type(self, value: Optional[pulumi.Input[str]]):
|
869
|
+
pulumi.set(self, "machine_type", value)
|
870
|
+
|
871
|
+
|
872
|
+
@pulumi.input_type
|
873
|
+
class WorkstationConfigHostGceInstanceBoostConfigAcceleratorArgs:
|
874
|
+
def __init__(__self__, *,
|
875
|
+
count: pulumi.Input[int],
|
876
|
+
type: pulumi.Input[str]):
|
877
|
+
"""
|
878
|
+
:param pulumi.Input[int] count: Number of accelerator cards exposed to the instance.
|
879
|
+
:param pulumi.Input[str] type: Type of accelerator resource to attach to the instance, for example, "nvidia-tesla-p100".
|
880
|
+
"""
|
881
|
+
pulumi.set(__self__, "count", count)
|
882
|
+
pulumi.set(__self__, "type", type)
|
883
|
+
|
884
|
+
@property
|
885
|
+
@pulumi.getter
|
886
|
+
def count(self) -> pulumi.Input[int]:
|
887
|
+
"""
|
888
|
+
Number of accelerator cards exposed to the instance.
|
889
|
+
"""
|
890
|
+
return pulumi.get(self, "count")
|
891
|
+
|
892
|
+
@count.setter
|
893
|
+
def count(self, value: pulumi.Input[int]):
|
894
|
+
pulumi.set(self, "count", value)
|
895
|
+
|
896
|
+
@property
|
897
|
+
@pulumi.getter
|
898
|
+
def type(self) -> pulumi.Input[str]:
|
899
|
+
"""
|
900
|
+
Type of accelerator resource to attach to the instance, for example, "nvidia-tesla-p100".
|
901
|
+
"""
|
902
|
+
return pulumi.get(self, "type")
|
903
|
+
|
904
|
+
@type.setter
|
905
|
+
def type(self, value: pulumi.Input[str]):
|
906
|
+
pulumi.set(self, "type", value)
|
907
|
+
|
908
|
+
|
796
909
|
@pulumi.input_type
|
797
910
|
class WorkstationConfigHostGceInstanceConfidentialInstanceConfigArgs:
|
798
911
|
def __init__(__self__, *,
|
@@ -22,6 +22,8 @@ __all__ = [
|
|
22
22
|
'WorkstationConfigHost',
|
23
23
|
'WorkstationConfigHostGceInstance',
|
24
24
|
'WorkstationConfigHostGceInstanceAccelerator',
|
25
|
+
'WorkstationConfigHostGceInstanceBoostConfig',
|
26
|
+
'WorkstationConfigHostGceInstanceBoostConfigAccelerator',
|
25
27
|
'WorkstationConfigHostGceInstanceConfidentialInstanceConfig',
|
26
28
|
'WorkstationConfigHostGceInstanceShieldedInstanceConfig',
|
27
29
|
'WorkstationConfigIamBindingCondition',
|
@@ -571,7 +573,9 @@ class WorkstationConfigHostGceInstance(dict):
|
|
571
573
|
@staticmethod
|
572
574
|
def __key_warning(key: str):
|
573
575
|
suggest = None
|
574
|
-
if key == "
|
576
|
+
if key == "boostConfigs":
|
577
|
+
suggest = "boost_configs"
|
578
|
+
elif key == "bootDiskSizeGb":
|
575
579
|
suggest = "boot_disk_size_gb"
|
576
580
|
elif key == "confidentialInstanceConfig":
|
577
581
|
suggest = "confidential_instance_config"
|
@@ -605,6 +609,7 @@ class WorkstationConfigHostGceInstance(dict):
|
|
605
609
|
|
606
610
|
def __init__(__self__, *,
|
607
611
|
accelerators: Optional[Sequence['outputs.WorkstationConfigHostGceInstanceAccelerator']] = None,
|
612
|
+
boost_configs: Optional[Sequence['outputs.WorkstationConfigHostGceInstanceBoostConfig']] = None,
|
608
613
|
boot_disk_size_gb: Optional[int] = None,
|
609
614
|
confidential_instance_config: Optional['outputs.WorkstationConfigHostGceInstanceConfidentialInstanceConfig'] = None,
|
610
615
|
disable_public_ip_addresses: Optional[bool] = None,
|
@@ -619,6 +624,8 @@ class WorkstationConfigHostGceInstance(dict):
|
|
619
624
|
"""
|
620
625
|
:param Sequence['WorkstationConfigHostGceInstanceAcceleratorArgs'] accelerators: An accelerator card attached to the instance.
|
621
626
|
Structure is documented below.
|
627
|
+
:param Sequence['WorkstationConfigHostGceInstanceBoostConfigArgs'] boost_configs: A list of the boost configurations that workstations created using this workstation configuration are allowed to use.
|
628
|
+
Structure is documented below.
|
622
629
|
:param int boot_disk_size_gb: Size of the boot disk in GB.
|
623
630
|
:param 'WorkstationConfigHostGceInstanceConfidentialInstanceConfigArgs' confidential_instance_config: A set of Compute Engine Confidential VM instance options.
|
624
631
|
Structure is documented below.
|
@@ -636,6 +643,8 @@ class WorkstationConfigHostGceInstance(dict):
|
|
636
643
|
"""
|
637
644
|
if accelerators is not None:
|
638
645
|
pulumi.set(__self__, "accelerators", accelerators)
|
646
|
+
if boost_configs is not None:
|
647
|
+
pulumi.set(__self__, "boost_configs", boost_configs)
|
639
648
|
if boot_disk_size_gb is not None:
|
640
649
|
pulumi.set(__self__, "boot_disk_size_gb", boot_disk_size_gb)
|
641
650
|
if confidential_instance_config is not None:
|
@@ -668,6 +677,15 @@ class WorkstationConfigHostGceInstance(dict):
|
|
668
677
|
"""
|
669
678
|
return pulumi.get(self, "accelerators")
|
670
679
|
|
680
|
+
@property
|
681
|
+
@pulumi.getter(name="boostConfigs")
|
682
|
+
def boost_configs(self) -> Optional[Sequence['outputs.WorkstationConfigHostGceInstanceBoostConfig']]:
|
683
|
+
"""
|
684
|
+
A list of the boost configurations that workstations created using this workstation configuration are allowed to use.
|
685
|
+
Structure is documented below.
|
686
|
+
"""
|
687
|
+
return pulumi.get(self, "boost_configs")
|
688
|
+
|
671
689
|
@property
|
672
690
|
@pulumi.getter(name="bootDiskSizeGb")
|
673
691
|
def boot_disk_size_gb(self) -> Optional[int]:
|
@@ -789,6 +807,96 @@ class WorkstationConfigHostGceInstanceAccelerator(dict):
|
|
789
807
|
return pulumi.get(self, "type")
|
790
808
|
|
791
809
|
|
810
|
+
@pulumi.output_type
|
811
|
+
class WorkstationConfigHostGceInstanceBoostConfig(dict):
|
812
|
+
@staticmethod
|
813
|
+
def __key_warning(key: str):
|
814
|
+
suggest = None
|
815
|
+
if key == "machineType":
|
816
|
+
suggest = "machine_type"
|
817
|
+
|
818
|
+
if suggest:
|
819
|
+
pulumi.log.warn(f"Key '{key}' not found in WorkstationConfigHostGceInstanceBoostConfig. Access the value via the '{suggest}' property getter instead.")
|
820
|
+
|
821
|
+
def __getitem__(self, key: str) -> Any:
|
822
|
+
WorkstationConfigHostGceInstanceBoostConfig.__key_warning(key)
|
823
|
+
return super().__getitem__(key)
|
824
|
+
|
825
|
+
def get(self, key: str, default = None) -> Any:
|
826
|
+
WorkstationConfigHostGceInstanceBoostConfig.__key_warning(key)
|
827
|
+
return super().get(key, default)
|
828
|
+
|
829
|
+
def __init__(__self__, *,
|
830
|
+
id: str,
|
831
|
+
accelerators: Optional[Sequence['outputs.WorkstationConfigHostGceInstanceBoostConfigAccelerator']] = None,
|
832
|
+
machine_type: Optional[str] = None):
|
833
|
+
"""
|
834
|
+
:param str id: The id to be used for the boost config.
|
835
|
+
:param Sequence['WorkstationConfigHostGceInstanceBoostConfigAcceleratorArgs'] accelerators: An accelerator card attached to the boost instance.
|
836
|
+
Structure is documented below.
|
837
|
+
:param str machine_type: The type of machine that boosted VM instances will use—for example, e2-standard-4. For more information about machine types that Cloud Workstations supports, see the list of available machine types https://cloud.google.com/workstations/docs/available-machine-types. Defaults to e2-standard-4.
|
838
|
+
"""
|
839
|
+
pulumi.set(__self__, "id", id)
|
840
|
+
if accelerators is not None:
|
841
|
+
pulumi.set(__self__, "accelerators", accelerators)
|
842
|
+
if machine_type is not None:
|
843
|
+
pulumi.set(__self__, "machine_type", machine_type)
|
844
|
+
|
845
|
+
@property
|
846
|
+
@pulumi.getter
|
847
|
+
def id(self) -> str:
|
848
|
+
"""
|
849
|
+
The id to be used for the boost config.
|
850
|
+
"""
|
851
|
+
return pulumi.get(self, "id")
|
852
|
+
|
853
|
+
@property
|
854
|
+
@pulumi.getter
|
855
|
+
def accelerators(self) -> Optional[Sequence['outputs.WorkstationConfigHostGceInstanceBoostConfigAccelerator']]:
|
856
|
+
"""
|
857
|
+
An accelerator card attached to the boost instance.
|
858
|
+
Structure is documented below.
|
859
|
+
"""
|
860
|
+
return pulumi.get(self, "accelerators")
|
861
|
+
|
862
|
+
@property
|
863
|
+
@pulumi.getter(name="machineType")
|
864
|
+
def machine_type(self) -> Optional[str]:
|
865
|
+
"""
|
866
|
+
The type of machine that boosted VM instances will use—for example, e2-standard-4. For more information about machine types that Cloud Workstations supports, see the list of available machine types https://cloud.google.com/workstations/docs/available-machine-types. Defaults to e2-standard-4.
|
867
|
+
"""
|
868
|
+
return pulumi.get(self, "machine_type")
|
869
|
+
|
870
|
+
|
871
|
+
@pulumi.output_type
|
872
|
+
class WorkstationConfigHostGceInstanceBoostConfigAccelerator(dict):
|
873
|
+
def __init__(__self__, *,
|
874
|
+
count: int,
|
875
|
+
type: str):
|
876
|
+
"""
|
877
|
+
:param int count: Number of accelerator cards exposed to the instance.
|
878
|
+
:param str type: Type of accelerator resource to attach to the instance, for example, "nvidia-tesla-p100".
|
879
|
+
"""
|
880
|
+
pulumi.set(__self__, "count", count)
|
881
|
+
pulumi.set(__self__, "type", type)
|
882
|
+
|
883
|
+
@property
|
884
|
+
@pulumi.getter
|
885
|
+
def count(self) -> int:
|
886
|
+
"""
|
887
|
+
Number of accelerator cards exposed to the instance.
|
888
|
+
"""
|
889
|
+
return pulumi.get(self, "count")
|
890
|
+
|
891
|
+
@property
|
892
|
+
@pulumi.getter
|
893
|
+
def type(self) -> str:
|
894
|
+
"""
|
895
|
+
Type of accelerator resource to attach to the instance, for example, "nvidia-tesla-p100".
|
896
|
+
"""
|
897
|
+
return pulumi.get(self, "type")
|
898
|
+
|
899
|
+
|
792
900
|
@pulumi.output_type
|
793
901
|
class WorkstationConfigHostGceInstanceConfidentialInstanceConfig(dict):
|
794
902
|
@staticmethod
|
@@ -1140,6 +1140,59 @@ class WorkstationConfig(pulumi.CustomResource):
|
|
1140
1140
|
))
|
1141
1141
|
```
|
1142
1142
|
<!--End PulumiCodeChooser -->
|
1143
|
+
### Workstation Config Boost
|
1144
|
+
|
1145
|
+
<!--Start PulumiCodeChooser -->
|
1146
|
+
```python
|
1147
|
+
import pulumi
|
1148
|
+
import pulumi_gcp as gcp
|
1149
|
+
|
1150
|
+
default = gcp.compute.Network("default",
|
1151
|
+
name="workstation-cluster",
|
1152
|
+
auto_create_subnetworks=False)
|
1153
|
+
default_subnetwork = gcp.compute.Subnetwork("default",
|
1154
|
+
name="workstation-cluster",
|
1155
|
+
ip_cidr_range="10.0.0.0/24",
|
1156
|
+
region="us-central1",
|
1157
|
+
network=default.name)
|
1158
|
+
default_workstation_cluster = gcp.workstations.WorkstationCluster("default",
|
1159
|
+
workstation_cluster_id="workstation-cluster",
|
1160
|
+
network=default.id,
|
1161
|
+
subnetwork=default_subnetwork.id,
|
1162
|
+
location="us-central1",
|
1163
|
+
labels={
|
1164
|
+
"label": "key",
|
1165
|
+
},
|
1166
|
+
annotations={
|
1167
|
+
"label-one": "value-one",
|
1168
|
+
})
|
1169
|
+
default_workstation_config = gcp.workstations.WorkstationConfig("default",
|
1170
|
+
workstation_config_id="workstation-config",
|
1171
|
+
workstation_cluster_id=default_workstation_cluster.workstation_cluster_id,
|
1172
|
+
location="us-central1",
|
1173
|
+
host=gcp.workstations.WorkstationConfigHostArgs(
|
1174
|
+
gce_instance=gcp.workstations.WorkstationConfigHostGceInstanceArgs(
|
1175
|
+
machine_type="e2-standard-4",
|
1176
|
+
boot_disk_size_gb=35,
|
1177
|
+
disable_public_ip_addresses=True,
|
1178
|
+
boost_configs=[
|
1179
|
+
gcp.workstations.WorkstationConfigHostGceInstanceBoostConfigArgs(
|
1180
|
+
id="boost-1",
|
1181
|
+
machine_type="n1-standard-2",
|
1182
|
+
accelerators=[gcp.workstations.WorkstationConfigHostGceInstanceBoostConfigAcceleratorArgs(
|
1183
|
+
type="nvidia-tesla-t4",
|
1184
|
+
count=1,
|
1185
|
+
)],
|
1186
|
+
),
|
1187
|
+
gcp.workstations.WorkstationConfigHostGceInstanceBoostConfigArgs(
|
1188
|
+
id="boost-1",
|
1189
|
+
machine_type="e2-standard-2",
|
1190
|
+
),
|
1191
|
+
],
|
1192
|
+
),
|
1193
|
+
))
|
1194
|
+
```
|
1195
|
+
<!--End PulumiCodeChooser -->
|
1143
1196
|
### Workstation Config Encryption Key
|
1144
1197
|
|
1145
1198
|
<!--Start PulumiCodeChooser -->
|
@@ -1550,6 +1603,59 @@ class WorkstationConfig(pulumi.CustomResource):
|
|
1550
1603
|
))
|
1551
1604
|
```
|
1552
1605
|
<!--End PulumiCodeChooser -->
|
1606
|
+
### Workstation Config Boost
|
1607
|
+
|
1608
|
+
<!--Start PulumiCodeChooser -->
|
1609
|
+
```python
|
1610
|
+
import pulumi
|
1611
|
+
import pulumi_gcp as gcp
|
1612
|
+
|
1613
|
+
default = gcp.compute.Network("default",
|
1614
|
+
name="workstation-cluster",
|
1615
|
+
auto_create_subnetworks=False)
|
1616
|
+
default_subnetwork = gcp.compute.Subnetwork("default",
|
1617
|
+
name="workstation-cluster",
|
1618
|
+
ip_cidr_range="10.0.0.0/24",
|
1619
|
+
region="us-central1",
|
1620
|
+
network=default.name)
|
1621
|
+
default_workstation_cluster = gcp.workstations.WorkstationCluster("default",
|
1622
|
+
workstation_cluster_id="workstation-cluster",
|
1623
|
+
network=default.id,
|
1624
|
+
subnetwork=default_subnetwork.id,
|
1625
|
+
location="us-central1",
|
1626
|
+
labels={
|
1627
|
+
"label": "key",
|
1628
|
+
},
|
1629
|
+
annotations={
|
1630
|
+
"label-one": "value-one",
|
1631
|
+
})
|
1632
|
+
default_workstation_config = gcp.workstations.WorkstationConfig("default",
|
1633
|
+
workstation_config_id="workstation-config",
|
1634
|
+
workstation_cluster_id=default_workstation_cluster.workstation_cluster_id,
|
1635
|
+
location="us-central1",
|
1636
|
+
host=gcp.workstations.WorkstationConfigHostArgs(
|
1637
|
+
gce_instance=gcp.workstations.WorkstationConfigHostGceInstanceArgs(
|
1638
|
+
machine_type="e2-standard-4",
|
1639
|
+
boot_disk_size_gb=35,
|
1640
|
+
disable_public_ip_addresses=True,
|
1641
|
+
boost_configs=[
|
1642
|
+
gcp.workstations.WorkstationConfigHostGceInstanceBoostConfigArgs(
|
1643
|
+
id="boost-1",
|
1644
|
+
machine_type="n1-standard-2",
|
1645
|
+
accelerators=[gcp.workstations.WorkstationConfigHostGceInstanceBoostConfigAcceleratorArgs(
|
1646
|
+
type="nvidia-tesla-t4",
|
1647
|
+
count=1,
|
1648
|
+
)],
|
1649
|
+
),
|
1650
|
+
gcp.workstations.WorkstationConfigHostGceInstanceBoostConfigArgs(
|
1651
|
+
id="boost-1",
|
1652
|
+
machine_type="e2-standard-2",
|
1653
|
+
),
|
1654
|
+
],
|
1655
|
+
),
|
1656
|
+
))
|
1657
|
+
```
|
1658
|
+
<!--End PulumiCodeChooser -->
|
1553
1659
|
### Workstation Config Encryption Key
|
1554
1660
|
|
1555
1661
|
<!--Start PulumiCodeChooser -->
|