pulumi-gcp 7.17.0a1712402830__py3-none-any.whl → 7.17.0a1712602552__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 +27 -0
- 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/billing/project_info.py +4 -4
- pulumi_gcp/cloudquota/__init__.py +2 -0
- pulumi_gcp/cloudquota/_inputs.py +131 -0
- pulumi_gcp/cloudquota/outputs.py +118 -0
- pulumi_gcp/cloudquota/s_quota_preference.py +777 -0
- 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/region_backend_service.py +28 -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/databasemigrationservice/connection_profile.py +6 -6
- pulumi_gcp/dataflow/flex_template_job.py +84 -112
- pulumi_gcp/dataplex/task.py +16 -16
- pulumi_gcp/dataproc/_inputs.py +71 -0
- pulumi_gcp/dataproc/get_metastore_service.py +11 -1
- pulumi_gcp/dataproc/metastore_service.py +120 -0
- pulumi_gcp/dataproc/outputs.py +128 -0
- 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/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/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/orgpolicy/policy.py +2 -2
- pulumi_gcp/provider.py +20 -0
- pulumi_gcp/pubsub/subscription.py +4 -4
- pulumi_gcp/vertex/__init__.py +1 -0
- pulumi_gcp/vertex/_inputs.py +169 -0
- pulumi_gcp/vertex/ai_deployment_resource_pool.py +477 -0
- pulumi_gcp/vertex/outputs.py +194 -0
- pulumi_gcp/vpcaccess/connector.py +77 -28
- {pulumi_gcp-7.17.0a1712402830.dist-info → pulumi_gcp-7.17.0a1712602552.dist-info}/METADATA +1 -1
- {pulumi_gcp-7.17.0a1712402830.dist-info → pulumi_gcp-7.17.0a1712602552.dist-info}/RECORD +55 -47
- {pulumi_gcp-7.17.0a1712402830.dist-info → pulumi_gcp-7.17.0a1712602552.dist-info}/WHEEL +0 -0
- {pulumi_gcp-7.17.0a1712402830.dist-info → pulumi_gcp-7.17.0a1712602552.dist-info}/top_level.txt +0 -0
pulumi_gcp/dataplex/task.py
CHANGED
@@ -588,11 +588,11 @@ class Task(pulumi.CustomResource):
|
|
588
588
|
|
589
589
|
project = gcp.organizations.get_project()
|
590
590
|
example = gcp.dataplex.Lake("example",
|
591
|
-
name="tf-test-
|
591
|
+
name="tf-test-lake_60302",
|
592
592
|
location="us-central1",
|
593
593
|
project="my-project-name")
|
594
594
|
example_task = gcp.dataplex.Task("example",
|
595
|
-
task_id="tf-test-
|
595
|
+
task_id="tf-test-task_22811",
|
596
596
|
location="us-central1",
|
597
597
|
lake=example.name,
|
598
598
|
description="Test Task Basic",
|
@@ -628,15 +628,15 @@ class Task(pulumi.CustomResource):
|
|
628
628
|
|
629
629
|
# VPC network
|
630
630
|
default = gcp.compute.Network("default",
|
631
|
-
name="tf-test-workstation-
|
631
|
+
name="tf-test-workstation-cluster_91042",
|
632
632
|
auto_create_subnetworks=True)
|
633
633
|
project = gcp.organizations.get_project()
|
634
634
|
example_spark = gcp.dataplex.Lake("example_spark",
|
635
|
-
name="tf-test-
|
635
|
+
name="tf-test-lake_72490",
|
636
636
|
location="us-central1",
|
637
637
|
project="my-project-name")
|
638
638
|
example_spark_task = gcp.dataplex.Task("example_spark",
|
639
|
-
task_id="tf-test-
|
639
|
+
task_id="tf-test-task_89605",
|
640
640
|
location="us-central1",
|
641
641
|
lake=example_spark.name,
|
642
642
|
trigger_spec=gcp.dataplex.TaskTriggerSpecArgs(
|
@@ -686,15 +686,15 @@ class Task(pulumi.CustomResource):
|
|
686
686
|
|
687
687
|
# VPC network
|
688
688
|
default = gcp.compute.Network("default",
|
689
|
-
name="tf-test-workstation-
|
689
|
+
name="tf-test-workstation-cluster_56730",
|
690
690
|
auto_create_subnetworks=True)
|
691
691
|
project = gcp.organizations.get_project()
|
692
692
|
example_notebook = gcp.dataplex.Lake("example_notebook",
|
693
|
-
name="tf-test-
|
693
|
+
name="tf-test-lake_95154",
|
694
694
|
location="us-central1",
|
695
695
|
project="my-project-name")
|
696
696
|
example_notebook_task = gcp.dataplex.Task("example_notebook",
|
697
|
-
task_id="tf-test-
|
697
|
+
task_id="tf-test-task_64336",
|
698
698
|
location="us-central1",
|
699
699
|
lake=example_notebook.name,
|
700
700
|
trigger_spec=gcp.dataplex.TaskTriggerSpecArgs(
|
@@ -808,11 +808,11 @@ class Task(pulumi.CustomResource):
|
|
808
808
|
|
809
809
|
project = gcp.organizations.get_project()
|
810
810
|
example = gcp.dataplex.Lake("example",
|
811
|
-
name="tf-test-
|
811
|
+
name="tf-test-lake_60302",
|
812
812
|
location="us-central1",
|
813
813
|
project="my-project-name")
|
814
814
|
example_task = gcp.dataplex.Task("example",
|
815
|
-
task_id="tf-test-
|
815
|
+
task_id="tf-test-task_22811",
|
816
816
|
location="us-central1",
|
817
817
|
lake=example.name,
|
818
818
|
description="Test Task Basic",
|
@@ -848,15 +848,15 @@ class Task(pulumi.CustomResource):
|
|
848
848
|
|
849
849
|
# VPC network
|
850
850
|
default = gcp.compute.Network("default",
|
851
|
-
name="tf-test-workstation-
|
851
|
+
name="tf-test-workstation-cluster_91042",
|
852
852
|
auto_create_subnetworks=True)
|
853
853
|
project = gcp.organizations.get_project()
|
854
854
|
example_spark = gcp.dataplex.Lake("example_spark",
|
855
|
-
name="tf-test-
|
855
|
+
name="tf-test-lake_72490",
|
856
856
|
location="us-central1",
|
857
857
|
project="my-project-name")
|
858
858
|
example_spark_task = gcp.dataplex.Task("example_spark",
|
859
|
-
task_id="tf-test-
|
859
|
+
task_id="tf-test-task_89605",
|
860
860
|
location="us-central1",
|
861
861
|
lake=example_spark.name,
|
862
862
|
trigger_spec=gcp.dataplex.TaskTriggerSpecArgs(
|
@@ -906,15 +906,15 @@ class Task(pulumi.CustomResource):
|
|
906
906
|
|
907
907
|
# VPC network
|
908
908
|
default = gcp.compute.Network("default",
|
909
|
-
name="tf-test-workstation-
|
909
|
+
name="tf-test-workstation-cluster_56730",
|
910
910
|
auto_create_subnetworks=True)
|
911
911
|
project = gcp.organizations.get_project()
|
912
912
|
example_notebook = gcp.dataplex.Lake("example_notebook",
|
913
|
-
name="tf-test-
|
913
|
+
name="tf-test-lake_95154",
|
914
914
|
location="us-central1",
|
915
915
|
project="my-project-name")
|
916
916
|
example_notebook_task = gcp.dataplex.Task("example_notebook",
|
917
|
-
task_id="tf-test-
|
917
|
+
task_id="tf-test-task_64336",
|
918
918
|
location="us-central1",
|
919
919
|
lake=example_notebook.name,
|
920
920
|
trigger_spec=gcp.dataplex.TaskTriggerSpecArgs(
|
pulumi_gcp/dataproc/_inputs.py
CHANGED
@@ -96,6 +96,7 @@ __all__ = [
|
|
96
96
|
'MetastoreServiceNetworkConfigArgs',
|
97
97
|
'MetastoreServiceNetworkConfigConsumerArgs',
|
98
98
|
'MetastoreServiceScalingConfigArgs',
|
99
|
+
'MetastoreServiceScheduledBackupArgs',
|
99
100
|
'MetastoreServiceTelemetryConfigArgs',
|
100
101
|
'WorkflowTemplateJobArgs',
|
101
102
|
'WorkflowTemplateJobHadoopJobArgs',
|
@@ -5710,6 +5711,76 @@ class MetastoreServiceScalingConfigArgs:
|
|
5710
5711
|
pulumi.set(self, "scaling_factor", value)
|
5711
5712
|
|
5712
5713
|
|
5714
|
+
@pulumi.input_type
|
5715
|
+
class MetastoreServiceScheduledBackupArgs:
|
5716
|
+
def __init__(__self__, *,
|
5717
|
+
backup_location: pulumi.Input[str],
|
5718
|
+
cron_schedule: Optional[pulumi.Input[str]] = None,
|
5719
|
+
enabled: Optional[pulumi.Input[bool]] = None,
|
5720
|
+
time_zone: Optional[pulumi.Input[str]] = None):
|
5721
|
+
"""
|
5722
|
+
:param pulumi.Input[str] backup_location: A Cloud Storage URI of a folder, in the format gs://<bucket_name>/<path_inside_bucket>. A sub-folder <backup_folder> containing backup files will be stored below it.
|
5723
|
+
:param pulumi.Input[str] cron_schedule: The scheduled interval in Cron format, see https://en.wikipedia.org/wiki/Cron The default is empty: scheduled backup is not enabled. Must be specified to enable scheduled backups.
|
5724
|
+
:param pulumi.Input[bool] enabled: Defines whether the scheduled backup is enabled. The default value is false.
|
5725
|
+
:param pulumi.Input[str] time_zone: Specifies the time zone to be used when interpreting cronSchedule. Must be a time zone name from the time zone database (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones), e.g. America/Los_Angeles or Africa/Abidjan. If left unspecified, the default is UTC.
|
5726
|
+
"""
|
5727
|
+
pulumi.set(__self__, "backup_location", backup_location)
|
5728
|
+
if cron_schedule is not None:
|
5729
|
+
pulumi.set(__self__, "cron_schedule", cron_schedule)
|
5730
|
+
if enabled is not None:
|
5731
|
+
pulumi.set(__self__, "enabled", enabled)
|
5732
|
+
if time_zone is not None:
|
5733
|
+
pulumi.set(__self__, "time_zone", time_zone)
|
5734
|
+
|
5735
|
+
@property
|
5736
|
+
@pulumi.getter(name="backupLocation")
|
5737
|
+
def backup_location(self) -> pulumi.Input[str]:
|
5738
|
+
"""
|
5739
|
+
A Cloud Storage URI of a folder, in the format gs://<bucket_name>/<path_inside_bucket>. A sub-folder <backup_folder> containing backup files will be stored below it.
|
5740
|
+
"""
|
5741
|
+
return pulumi.get(self, "backup_location")
|
5742
|
+
|
5743
|
+
@backup_location.setter
|
5744
|
+
def backup_location(self, value: pulumi.Input[str]):
|
5745
|
+
pulumi.set(self, "backup_location", value)
|
5746
|
+
|
5747
|
+
@property
|
5748
|
+
@pulumi.getter(name="cronSchedule")
|
5749
|
+
def cron_schedule(self) -> Optional[pulumi.Input[str]]:
|
5750
|
+
"""
|
5751
|
+
The scheduled interval in Cron format, see https://en.wikipedia.org/wiki/Cron The default is empty: scheduled backup is not enabled. Must be specified to enable scheduled backups.
|
5752
|
+
"""
|
5753
|
+
return pulumi.get(self, "cron_schedule")
|
5754
|
+
|
5755
|
+
@cron_schedule.setter
|
5756
|
+
def cron_schedule(self, value: Optional[pulumi.Input[str]]):
|
5757
|
+
pulumi.set(self, "cron_schedule", value)
|
5758
|
+
|
5759
|
+
@property
|
5760
|
+
@pulumi.getter
|
5761
|
+
def enabled(self) -> Optional[pulumi.Input[bool]]:
|
5762
|
+
"""
|
5763
|
+
Defines whether the scheduled backup is enabled. The default value is false.
|
5764
|
+
"""
|
5765
|
+
return pulumi.get(self, "enabled")
|
5766
|
+
|
5767
|
+
@enabled.setter
|
5768
|
+
def enabled(self, value: Optional[pulumi.Input[bool]]):
|
5769
|
+
pulumi.set(self, "enabled", value)
|
5770
|
+
|
5771
|
+
@property
|
5772
|
+
@pulumi.getter(name="timeZone")
|
5773
|
+
def time_zone(self) -> Optional[pulumi.Input[str]]:
|
5774
|
+
"""
|
5775
|
+
Specifies the time zone to be used when interpreting cronSchedule. Must be a time zone name from the time zone database (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones), e.g. America/Los_Angeles or Africa/Abidjan. If left unspecified, the default is UTC.
|
5776
|
+
"""
|
5777
|
+
return pulumi.get(self, "time_zone")
|
5778
|
+
|
5779
|
+
@time_zone.setter
|
5780
|
+
def time_zone(self, value: Optional[pulumi.Input[str]]):
|
5781
|
+
pulumi.set(self, "time_zone", value)
|
5782
|
+
|
5783
|
+
|
5713
5784
|
@pulumi.input_type
|
5714
5785
|
class MetastoreServiceTelemetryConfigArgs:
|
5715
5786
|
def __init__(__self__, *,
|
@@ -22,7 +22,7 @@ class GetMetastoreServiceResult:
|
|
22
22
|
"""
|
23
23
|
A collection of values returned by getMetastoreService.
|
24
24
|
"""
|
25
|
-
def __init__(__self__, artifact_gcs_uri=None, database_type=None, effective_labels=None, encryption_configs=None, endpoint_uri=None, hive_metastore_configs=None, id=None, labels=None, location=None, maintenance_windows=None, metadata_integrations=None, name=None, network=None, network_configs=None, port=None, project=None, pulumi_labels=None, release_channel=None, scaling_configs=None, service_id=None, state=None, state_message=None, telemetry_configs=None, tier=None, uid=None):
|
25
|
+
def __init__(__self__, artifact_gcs_uri=None, database_type=None, effective_labels=None, encryption_configs=None, endpoint_uri=None, hive_metastore_configs=None, id=None, labels=None, location=None, maintenance_windows=None, metadata_integrations=None, name=None, network=None, network_configs=None, port=None, project=None, pulumi_labels=None, release_channel=None, scaling_configs=None, scheduled_backups=None, service_id=None, state=None, state_message=None, telemetry_configs=None, tier=None, uid=None):
|
26
26
|
if artifact_gcs_uri and not isinstance(artifact_gcs_uri, str):
|
27
27
|
raise TypeError("Expected argument 'artifact_gcs_uri' to be a str")
|
28
28
|
pulumi.set(__self__, "artifact_gcs_uri", artifact_gcs_uri)
|
@@ -80,6 +80,9 @@ class GetMetastoreServiceResult:
|
|
80
80
|
if scaling_configs and not isinstance(scaling_configs, list):
|
81
81
|
raise TypeError("Expected argument 'scaling_configs' to be a list")
|
82
82
|
pulumi.set(__self__, "scaling_configs", scaling_configs)
|
83
|
+
if scheduled_backups and not isinstance(scheduled_backups, list):
|
84
|
+
raise TypeError("Expected argument 'scheduled_backups' to be a list")
|
85
|
+
pulumi.set(__self__, "scheduled_backups", scheduled_backups)
|
83
86
|
if service_id and not isinstance(service_id, str):
|
84
87
|
raise TypeError("Expected argument 'service_id' to be a str")
|
85
88
|
pulumi.set(__self__, "service_id", service_id)
|
@@ -197,6 +200,11 @@ class GetMetastoreServiceResult:
|
|
197
200
|
def scaling_configs(self) -> Sequence['outputs.GetMetastoreServiceScalingConfigResult']:
|
198
201
|
return pulumi.get(self, "scaling_configs")
|
199
202
|
|
203
|
+
@property
|
204
|
+
@pulumi.getter(name="scheduledBackups")
|
205
|
+
def scheduled_backups(self) -> Sequence['outputs.GetMetastoreServiceScheduledBackupResult']:
|
206
|
+
return pulumi.get(self, "scheduled_backups")
|
207
|
+
|
200
208
|
@property
|
201
209
|
@pulumi.getter(name="serviceId")
|
202
210
|
def service_id(self) -> str:
|
@@ -253,6 +261,7 @@ class AwaitableGetMetastoreServiceResult(GetMetastoreServiceResult):
|
|
253
261
|
pulumi_labels=self.pulumi_labels,
|
254
262
|
release_channel=self.release_channel,
|
255
263
|
scaling_configs=self.scaling_configs,
|
264
|
+
scheduled_backups=self.scheduled_backups,
|
256
265
|
service_id=self.service_id,
|
257
266
|
state=self.state,
|
258
267
|
state_message=self.state_message,
|
@@ -305,6 +314,7 @@ def get_metastore_service(location: Optional[str] = None,
|
|
305
314
|
pulumi_labels=pulumi.get(__ret__, 'pulumi_labels'),
|
306
315
|
release_channel=pulumi.get(__ret__, 'release_channel'),
|
307
316
|
scaling_configs=pulumi.get(__ret__, 'scaling_configs'),
|
317
|
+
scheduled_backups=pulumi.get(__ret__, 'scheduled_backups'),
|
308
318
|
service_id=pulumi.get(__ret__, 'service_id'),
|
309
319
|
state=pulumi.get(__ret__, 'state'),
|
310
320
|
state_message=pulumi.get(__ret__, 'state_message'),
|
@@ -30,6 +30,7 @@ class MetastoreServiceArgs:
|
|
30
30
|
project: Optional[pulumi.Input[str]] = None,
|
31
31
|
release_channel: Optional[pulumi.Input[str]] = None,
|
32
32
|
scaling_config: Optional[pulumi.Input['MetastoreServiceScalingConfigArgs']] = None,
|
33
|
+
scheduled_backup: Optional[pulumi.Input['MetastoreServiceScheduledBackupArgs']] = None,
|
33
34
|
telemetry_config: Optional[pulumi.Input['MetastoreServiceTelemetryConfigArgs']] = None,
|
34
35
|
tier: Optional[pulumi.Input[str]] = None):
|
35
36
|
"""
|
@@ -71,6 +72,8 @@ class MetastoreServiceArgs:
|
|
71
72
|
Possible values are: `CANARY`, `STABLE`.
|
72
73
|
:param pulumi.Input['MetastoreServiceScalingConfigArgs'] scaling_config: Represents the scaling configuration of a metastore service.
|
73
74
|
Structure is documented below.
|
75
|
+
:param pulumi.Input['MetastoreServiceScheduledBackupArgs'] scheduled_backup: The configuration of scheduled backup for the metastore service.
|
76
|
+
Structure is documented below.
|
74
77
|
:param pulumi.Input['MetastoreServiceTelemetryConfigArgs'] telemetry_config: The configuration specifying telemetry settings for the Dataproc Metastore service. If unspecified defaults to JSON.
|
75
78
|
Structure is documented below.
|
76
79
|
:param pulumi.Input[str] tier: The tier of the service.
|
@@ -103,6 +106,8 @@ class MetastoreServiceArgs:
|
|
103
106
|
pulumi.set(__self__, "release_channel", release_channel)
|
104
107
|
if scaling_config is not None:
|
105
108
|
pulumi.set(__self__, "scaling_config", scaling_config)
|
109
|
+
if scheduled_backup is not None:
|
110
|
+
pulumi.set(__self__, "scheduled_backup", scheduled_backup)
|
106
111
|
if telemetry_config is not None:
|
107
112
|
pulumi.set(__self__, "telemetry_config", telemetry_config)
|
108
113
|
if tier is not None:
|
@@ -299,6 +304,19 @@ class MetastoreServiceArgs:
|
|
299
304
|
def scaling_config(self, value: Optional[pulumi.Input['MetastoreServiceScalingConfigArgs']]):
|
300
305
|
pulumi.set(self, "scaling_config", value)
|
301
306
|
|
307
|
+
@property
|
308
|
+
@pulumi.getter(name="scheduledBackup")
|
309
|
+
def scheduled_backup(self) -> Optional[pulumi.Input['MetastoreServiceScheduledBackupArgs']]:
|
310
|
+
"""
|
311
|
+
The configuration of scheduled backup for the metastore service.
|
312
|
+
Structure is documented below.
|
313
|
+
"""
|
314
|
+
return pulumi.get(self, "scheduled_backup")
|
315
|
+
|
316
|
+
@scheduled_backup.setter
|
317
|
+
def scheduled_backup(self, value: Optional[pulumi.Input['MetastoreServiceScheduledBackupArgs']]):
|
318
|
+
pulumi.set(self, "scheduled_backup", value)
|
319
|
+
|
302
320
|
@property
|
303
321
|
@pulumi.getter(name="telemetryConfig")
|
304
322
|
def telemetry_config(self) -> Optional[pulumi.Input['MetastoreServiceTelemetryConfigArgs']]:
|
@@ -347,6 +365,7 @@ class _MetastoreServiceState:
|
|
347
365
|
pulumi_labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
348
366
|
release_channel: Optional[pulumi.Input[str]] = None,
|
349
367
|
scaling_config: Optional[pulumi.Input['MetastoreServiceScalingConfigArgs']] = None,
|
368
|
+
scheduled_backup: Optional[pulumi.Input['MetastoreServiceScheduledBackupArgs']] = None,
|
350
369
|
service_id: Optional[pulumi.Input[str]] = None,
|
351
370
|
state: Optional[pulumi.Input[str]] = None,
|
352
371
|
state_message: Optional[pulumi.Input[str]] = None,
|
@@ -393,6 +412,8 @@ class _MetastoreServiceState:
|
|
393
412
|
Possible values are: `CANARY`, `STABLE`.
|
394
413
|
:param pulumi.Input['MetastoreServiceScalingConfigArgs'] scaling_config: Represents the scaling configuration of a metastore service.
|
395
414
|
Structure is documented below.
|
415
|
+
:param pulumi.Input['MetastoreServiceScheduledBackupArgs'] scheduled_backup: The configuration of scheduled backup for the metastore service.
|
416
|
+
Structure is documented below.
|
396
417
|
:param pulumi.Input[str] service_id: The ID of the metastore service. The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_),
|
397
418
|
and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of between
|
398
419
|
3 and 63 characters.
|
@@ -443,6 +464,8 @@ class _MetastoreServiceState:
|
|
443
464
|
pulumi.set(__self__, "release_channel", release_channel)
|
444
465
|
if scaling_config is not None:
|
445
466
|
pulumi.set(__self__, "scaling_config", scaling_config)
|
467
|
+
if scheduled_backup is not None:
|
468
|
+
pulumi.set(__self__, "scheduled_backup", scheduled_backup)
|
446
469
|
if service_id is not None:
|
447
470
|
pulumi.set(__self__, "service_id", service_id)
|
448
471
|
if state is not None:
|
@@ -692,6 +715,19 @@ class _MetastoreServiceState:
|
|
692
715
|
def scaling_config(self, value: Optional[pulumi.Input['MetastoreServiceScalingConfigArgs']]):
|
693
716
|
pulumi.set(self, "scaling_config", value)
|
694
717
|
|
718
|
+
@property
|
719
|
+
@pulumi.getter(name="scheduledBackup")
|
720
|
+
def scheduled_backup(self) -> Optional[pulumi.Input['MetastoreServiceScheduledBackupArgs']]:
|
721
|
+
"""
|
722
|
+
The configuration of scheduled backup for the metastore service.
|
723
|
+
Structure is documented below.
|
724
|
+
"""
|
725
|
+
return pulumi.get(self, "scheduled_backup")
|
726
|
+
|
727
|
+
@scheduled_backup.setter
|
728
|
+
def scheduled_backup(self, value: Optional[pulumi.Input['MetastoreServiceScheduledBackupArgs']]):
|
729
|
+
pulumi.set(self, "scheduled_backup", value)
|
730
|
+
|
695
731
|
@property
|
696
732
|
@pulumi.getter(name="serviceId")
|
697
733
|
def service_id(self) -> Optional[pulumi.Input[str]]:
|
@@ -790,6 +826,7 @@ class MetastoreService(pulumi.CustomResource):
|
|
790
826
|
project: Optional[pulumi.Input[str]] = None,
|
791
827
|
release_channel: Optional[pulumi.Input[str]] = None,
|
792
828
|
scaling_config: Optional[pulumi.Input[pulumi.InputType['MetastoreServiceScalingConfigArgs']]] = None,
|
829
|
+
scheduled_backup: Optional[pulumi.Input[pulumi.InputType['MetastoreServiceScheduledBackupArgs']]] = None,
|
793
830
|
service_id: Optional[pulumi.Input[str]] = None,
|
794
831
|
telemetry_config: Optional[pulumi.Input[pulumi.InputType['MetastoreServiceTelemetryConfigArgs']]] = None,
|
795
832
|
tier: Optional[pulumi.Input[str]] = None,
|
@@ -951,6 +988,39 @@ class MetastoreService(pulumi.CustomResource):
|
|
951
988
|
))
|
952
989
|
```
|
953
990
|
<!--End PulumiCodeChooser -->
|
991
|
+
### Dataproc Metastore Service Scheduled Backup
|
992
|
+
|
993
|
+
<!--Start PulumiCodeChooser -->
|
994
|
+
```python
|
995
|
+
import pulumi
|
996
|
+
import pulumi_gcp as gcp
|
997
|
+
|
998
|
+
bucket = gcp.storage.Bucket("bucket",
|
999
|
+
name="backup",
|
1000
|
+
location="us-central1")
|
1001
|
+
backup = gcp.dataproc.MetastoreService("backup",
|
1002
|
+
service_id="backup",
|
1003
|
+
location="us-central1",
|
1004
|
+
port=9080,
|
1005
|
+
tier="DEVELOPER",
|
1006
|
+
maintenance_window=gcp.dataproc.MetastoreServiceMaintenanceWindowArgs(
|
1007
|
+
hour_of_day=2,
|
1008
|
+
day_of_week="SUNDAY",
|
1009
|
+
),
|
1010
|
+
hive_metastore_config=gcp.dataproc.MetastoreServiceHiveMetastoreConfigArgs(
|
1011
|
+
version="2.3.6",
|
1012
|
+
),
|
1013
|
+
scheduled_backup=gcp.dataproc.MetastoreServiceScheduledBackupArgs(
|
1014
|
+
enabled=True,
|
1015
|
+
cron_schedule="0 0 * * *",
|
1016
|
+
time_zone="UTC",
|
1017
|
+
backup_location=bucket.name.apply(lambda name: f"gs://{name}"),
|
1018
|
+
),
|
1019
|
+
labels={
|
1020
|
+
"env": "test",
|
1021
|
+
})
|
1022
|
+
```
|
1023
|
+
<!--End PulumiCodeChooser -->
|
954
1024
|
|
955
1025
|
## Import
|
956
1026
|
|
@@ -1009,6 +1079,8 @@ class MetastoreService(pulumi.CustomResource):
|
|
1009
1079
|
Possible values are: `CANARY`, `STABLE`.
|
1010
1080
|
:param pulumi.Input[pulumi.InputType['MetastoreServiceScalingConfigArgs']] scaling_config: Represents the scaling configuration of a metastore service.
|
1011
1081
|
Structure is documented below.
|
1082
|
+
:param pulumi.Input[pulumi.InputType['MetastoreServiceScheduledBackupArgs']] scheduled_backup: The configuration of scheduled backup for the metastore service.
|
1083
|
+
Structure is documented below.
|
1012
1084
|
:param pulumi.Input[str] service_id: The ID of the metastore service. The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_),
|
1013
1085
|
and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of between
|
1014
1086
|
3 and 63 characters.
|
@@ -1183,6 +1255,39 @@ class MetastoreService(pulumi.CustomResource):
|
|
1183
1255
|
))
|
1184
1256
|
```
|
1185
1257
|
<!--End PulumiCodeChooser -->
|
1258
|
+
### Dataproc Metastore Service Scheduled Backup
|
1259
|
+
|
1260
|
+
<!--Start PulumiCodeChooser -->
|
1261
|
+
```python
|
1262
|
+
import pulumi
|
1263
|
+
import pulumi_gcp as gcp
|
1264
|
+
|
1265
|
+
bucket = gcp.storage.Bucket("bucket",
|
1266
|
+
name="backup",
|
1267
|
+
location="us-central1")
|
1268
|
+
backup = gcp.dataproc.MetastoreService("backup",
|
1269
|
+
service_id="backup",
|
1270
|
+
location="us-central1",
|
1271
|
+
port=9080,
|
1272
|
+
tier="DEVELOPER",
|
1273
|
+
maintenance_window=gcp.dataproc.MetastoreServiceMaintenanceWindowArgs(
|
1274
|
+
hour_of_day=2,
|
1275
|
+
day_of_week="SUNDAY",
|
1276
|
+
),
|
1277
|
+
hive_metastore_config=gcp.dataproc.MetastoreServiceHiveMetastoreConfigArgs(
|
1278
|
+
version="2.3.6",
|
1279
|
+
),
|
1280
|
+
scheduled_backup=gcp.dataproc.MetastoreServiceScheduledBackupArgs(
|
1281
|
+
enabled=True,
|
1282
|
+
cron_schedule="0 0 * * *",
|
1283
|
+
time_zone="UTC",
|
1284
|
+
backup_location=bucket.name.apply(lambda name: f"gs://{name}"),
|
1285
|
+
),
|
1286
|
+
labels={
|
1287
|
+
"env": "test",
|
1288
|
+
})
|
1289
|
+
```
|
1290
|
+
<!--End PulumiCodeChooser -->
|
1186
1291
|
|
1187
1292
|
## Import
|
1188
1293
|
|
@@ -1236,6 +1341,7 @@ class MetastoreService(pulumi.CustomResource):
|
|
1236
1341
|
project: Optional[pulumi.Input[str]] = None,
|
1237
1342
|
release_channel: Optional[pulumi.Input[str]] = None,
|
1238
1343
|
scaling_config: Optional[pulumi.Input[pulumi.InputType['MetastoreServiceScalingConfigArgs']]] = None,
|
1344
|
+
scheduled_backup: Optional[pulumi.Input[pulumi.InputType['MetastoreServiceScheduledBackupArgs']]] = None,
|
1239
1345
|
service_id: Optional[pulumi.Input[str]] = None,
|
1240
1346
|
telemetry_config: Optional[pulumi.Input[pulumi.InputType['MetastoreServiceTelemetryConfigArgs']]] = None,
|
1241
1347
|
tier: Optional[pulumi.Input[str]] = None,
|
@@ -1261,6 +1367,7 @@ class MetastoreService(pulumi.CustomResource):
|
|
1261
1367
|
__props__.__dict__["project"] = project
|
1262
1368
|
__props__.__dict__["release_channel"] = release_channel
|
1263
1369
|
__props__.__dict__["scaling_config"] = scaling_config
|
1370
|
+
__props__.__dict__["scheduled_backup"] = scheduled_backup
|
1264
1371
|
if service_id is None and not opts.urn:
|
1265
1372
|
raise TypeError("Missing required property 'service_id'")
|
1266
1373
|
__props__.__dict__["service_id"] = service_id
|
@@ -1304,6 +1411,7 @@ class MetastoreService(pulumi.CustomResource):
|
|
1304
1411
|
pulumi_labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
1305
1412
|
release_channel: Optional[pulumi.Input[str]] = None,
|
1306
1413
|
scaling_config: Optional[pulumi.Input[pulumi.InputType['MetastoreServiceScalingConfigArgs']]] = None,
|
1414
|
+
scheduled_backup: Optional[pulumi.Input[pulumi.InputType['MetastoreServiceScheduledBackupArgs']]] = None,
|
1307
1415
|
service_id: Optional[pulumi.Input[str]] = None,
|
1308
1416
|
state: Optional[pulumi.Input[str]] = None,
|
1309
1417
|
state_message: Optional[pulumi.Input[str]] = None,
|
@@ -1355,6 +1463,8 @@ class MetastoreService(pulumi.CustomResource):
|
|
1355
1463
|
Possible values are: `CANARY`, `STABLE`.
|
1356
1464
|
:param pulumi.Input[pulumi.InputType['MetastoreServiceScalingConfigArgs']] scaling_config: Represents the scaling configuration of a metastore service.
|
1357
1465
|
Structure is documented below.
|
1466
|
+
:param pulumi.Input[pulumi.InputType['MetastoreServiceScheduledBackupArgs']] scheduled_backup: The configuration of scheduled backup for the metastore service.
|
1467
|
+
Structure is documented below.
|
1358
1468
|
:param pulumi.Input[str] service_id: The ID of the metastore service. The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_),
|
1359
1469
|
and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of between
|
1360
1470
|
3 and 63 characters.
|
@@ -1391,6 +1501,7 @@ class MetastoreService(pulumi.CustomResource):
|
|
1391
1501
|
__props__.__dict__["pulumi_labels"] = pulumi_labels
|
1392
1502
|
__props__.__dict__["release_channel"] = release_channel
|
1393
1503
|
__props__.__dict__["scaling_config"] = scaling_config
|
1504
|
+
__props__.__dict__["scheduled_backup"] = scheduled_backup
|
1394
1505
|
__props__.__dict__["service_id"] = service_id
|
1395
1506
|
__props__.__dict__["state"] = state
|
1396
1507
|
__props__.__dict__["state_message"] = state_message
|
@@ -1563,6 +1674,15 @@ class MetastoreService(pulumi.CustomResource):
|
|
1563
1674
|
"""
|
1564
1675
|
return pulumi.get(self, "scaling_config")
|
1565
1676
|
|
1677
|
+
@property
|
1678
|
+
@pulumi.getter(name="scheduledBackup")
|
1679
|
+
def scheduled_backup(self) -> pulumi.Output[Optional['outputs.MetastoreServiceScheduledBackup']]:
|
1680
|
+
"""
|
1681
|
+
The configuration of scheduled backup for the metastore service.
|
1682
|
+
Structure is documented below.
|
1683
|
+
"""
|
1684
|
+
return pulumi.get(self, "scheduled_backup")
|
1685
|
+
|
1566
1686
|
@property
|
1567
1687
|
@pulumi.getter(name="serviceId")
|
1568
1688
|
def service_id(self) -> pulumi.Output[str]:
|
pulumi_gcp/dataproc/outputs.py
CHANGED
@@ -97,6 +97,7 @@ __all__ = [
|
|
97
97
|
'MetastoreServiceNetworkConfig',
|
98
98
|
'MetastoreServiceNetworkConfigConsumer',
|
99
99
|
'MetastoreServiceScalingConfig',
|
100
|
+
'MetastoreServiceScheduledBackup',
|
100
101
|
'MetastoreServiceTelemetryConfig',
|
101
102
|
'WorkflowTemplateJob',
|
102
103
|
'WorkflowTemplateJobHadoopJob',
|
@@ -165,6 +166,7 @@ __all__ = [
|
|
165
166
|
'GetMetastoreServiceNetworkConfigResult',
|
166
167
|
'GetMetastoreServiceNetworkConfigConsumerResult',
|
167
168
|
'GetMetastoreServiceScalingConfigResult',
|
169
|
+
'GetMetastoreServiceScheduledBackupResult',
|
168
170
|
'GetMetastoreServiceTelemetryConfigResult',
|
169
171
|
]
|
170
172
|
|
@@ -6088,6 +6090,81 @@ class MetastoreServiceScalingConfig(dict):
|
|
6088
6090
|
return pulumi.get(self, "scaling_factor")
|
6089
6091
|
|
6090
6092
|
|
6093
|
+
@pulumi.output_type
|
6094
|
+
class MetastoreServiceScheduledBackup(dict):
|
6095
|
+
@staticmethod
|
6096
|
+
def __key_warning(key: str):
|
6097
|
+
suggest = None
|
6098
|
+
if key == "backupLocation":
|
6099
|
+
suggest = "backup_location"
|
6100
|
+
elif key == "cronSchedule":
|
6101
|
+
suggest = "cron_schedule"
|
6102
|
+
elif key == "timeZone":
|
6103
|
+
suggest = "time_zone"
|
6104
|
+
|
6105
|
+
if suggest:
|
6106
|
+
pulumi.log.warn(f"Key '{key}' not found in MetastoreServiceScheduledBackup. Access the value via the '{suggest}' property getter instead.")
|
6107
|
+
|
6108
|
+
def __getitem__(self, key: str) -> Any:
|
6109
|
+
MetastoreServiceScheduledBackup.__key_warning(key)
|
6110
|
+
return super().__getitem__(key)
|
6111
|
+
|
6112
|
+
def get(self, key: str, default = None) -> Any:
|
6113
|
+
MetastoreServiceScheduledBackup.__key_warning(key)
|
6114
|
+
return super().get(key, default)
|
6115
|
+
|
6116
|
+
def __init__(__self__, *,
|
6117
|
+
backup_location: str,
|
6118
|
+
cron_schedule: Optional[str] = None,
|
6119
|
+
enabled: Optional[bool] = None,
|
6120
|
+
time_zone: Optional[str] = None):
|
6121
|
+
"""
|
6122
|
+
:param str backup_location: A Cloud Storage URI of a folder, in the format gs://<bucket_name>/<path_inside_bucket>. A sub-folder <backup_folder> containing backup files will be stored below it.
|
6123
|
+
:param str cron_schedule: The scheduled interval in Cron format, see https://en.wikipedia.org/wiki/Cron The default is empty: scheduled backup is not enabled. Must be specified to enable scheduled backups.
|
6124
|
+
:param bool enabled: Defines whether the scheduled backup is enabled. The default value is false.
|
6125
|
+
:param str time_zone: Specifies the time zone to be used when interpreting cronSchedule. Must be a time zone name from the time zone database (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones), e.g. America/Los_Angeles or Africa/Abidjan. If left unspecified, the default is UTC.
|
6126
|
+
"""
|
6127
|
+
pulumi.set(__self__, "backup_location", backup_location)
|
6128
|
+
if cron_schedule is not None:
|
6129
|
+
pulumi.set(__self__, "cron_schedule", cron_schedule)
|
6130
|
+
if enabled is not None:
|
6131
|
+
pulumi.set(__self__, "enabled", enabled)
|
6132
|
+
if time_zone is not None:
|
6133
|
+
pulumi.set(__self__, "time_zone", time_zone)
|
6134
|
+
|
6135
|
+
@property
|
6136
|
+
@pulumi.getter(name="backupLocation")
|
6137
|
+
def backup_location(self) -> str:
|
6138
|
+
"""
|
6139
|
+
A Cloud Storage URI of a folder, in the format gs://<bucket_name>/<path_inside_bucket>. A sub-folder <backup_folder> containing backup files will be stored below it.
|
6140
|
+
"""
|
6141
|
+
return pulumi.get(self, "backup_location")
|
6142
|
+
|
6143
|
+
@property
|
6144
|
+
@pulumi.getter(name="cronSchedule")
|
6145
|
+
def cron_schedule(self) -> Optional[str]:
|
6146
|
+
"""
|
6147
|
+
The scheduled interval in Cron format, see https://en.wikipedia.org/wiki/Cron The default is empty: scheduled backup is not enabled. Must be specified to enable scheduled backups.
|
6148
|
+
"""
|
6149
|
+
return pulumi.get(self, "cron_schedule")
|
6150
|
+
|
6151
|
+
@property
|
6152
|
+
@pulumi.getter
|
6153
|
+
def enabled(self) -> Optional[bool]:
|
6154
|
+
"""
|
6155
|
+
Defines whether the scheduled backup is enabled. The default value is false.
|
6156
|
+
"""
|
6157
|
+
return pulumi.get(self, "enabled")
|
6158
|
+
|
6159
|
+
@property
|
6160
|
+
@pulumi.getter(name="timeZone")
|
6161
|
+
def time_zone(self) -> Optional[str]:
|
6162
|
+
"""
|
6163
|
+
Specifies the time zone to be used when interpreting cronSchedule. Must be a time zone name from the time zone database (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones), e.g. America/Los_Angeles or Africa/Abidjan. If left unspecified, the default is UTC.
|
6164
|
+
"""
|
6165
|
+
return pulumi.get(self, "time_zone")
|
6166
|
+
|
6167
|
+
|
6091
6168
|
@pulumi.output_type
|
6092
6169
|
class MetastoreServiceTelemetryConfig(dict):
|
6093
6170
|
@staticmethod
|
@@ -10489,6 +10566,57 @@ class GetMetastoreServiceScalingConfigResult(dict):
|
|
10489
10566
|
return pulumi.get(self, "scaling_factor")
|
10490
10567
|
|
10491
10568
|
|
10569
|
+
@pulumi.output_type
|
10570
|
+
class GetMetastoreServiceScheduledBackupResult(dict):
|
10571
|
+
def __init__(__self__, *,
|
10572
|
+
backup_location: str,
|
10573
|
+
cron_schedule: str,
|
10574
|
+
enabled: bool,
|
10575
|
+
time_zone: str):
|
10576
|
+
"""
|
10577
|
+
:param str backup_location: A Cloud Storage URI of a folder, in the format gs://<bucket_name>/<path_inside_bucket>. A sub-folder <backup_folder> containing backup files will be stored below it.
|
10578
|
+
:param str cron_schedule: The scheduled interval in Cron format, see https://en.wikipedia.org/wiki/Cron The default is empty: scheduled backup is not enabled. Must be specified to enable scheduled backups.
|
10579
|
+
:param bool enabled: Defines whether the scheduled backup is enabled. The default value is false.
|
10580
|
+
:param str time_zone: Specifies the time zone to be used when interpreting cronSchedule. Must be a time zone name from the time zone database (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones), e.g. America/Los_Angeles or Africa/Abidjan. If left unspecified, the default is UTC.
|
10581
|
+
"""
|
10582
|
+
pulumi.set(__self__, "backup_location", backup_location)
|
10583
|
+
pulumi.set(__self__, "cron_schedule", cron_schedule)
|
10584
|
+
pulumi.set(__self__, "enabled", enabled)
|
10585
|
+
pulumi.set(__self__, "time_zone", time_zone)
|
10586
|
+
|
10587
|
+
@property
|
10588
|
+
@pulumi.getter(name="backupLocation")
|
10589
|
+
def backup_location(self) -> str:
|
10590
|
+
"""
|
10591
|
+
A Cloud Storage URI of a folder, in the format gs://<bucket_name>/<path_inside_bucket>. A sub-folder <backup_folder> containing backup files will be stored below it.
|
10592
|
+
"""
|
10593
|
+
return pulumi.get(self, "backup_location")
|
10594
|
+
|
10595
|
+
@property
|
10596
|
+
@pulumi.getter(name="cronSchedule")
|
10597
|
+
def cron_schedule(self) -> str:
|
10598
|
+
"""
|
10599
|
+
The scheduled interval in Cron format, see https://en.wikipedia.org/wiki/Cron The default is empty: scheduled backup is not enabled. Must be specified to enable scheduled backups.
|
10600
|
+
"""
|
10601
|
+
return pulumi.get(self, "cron_schedule")
|
10602
|
+
|
10603
|
+
@property
|
10604
|
+
@pulumi.getter
|
10605
|
+
def enabled(self) -> bool:
|
10606
|
+
"""
|
10607
|
+
Defines whether the scheduled backup is enabled. The default value is false.
|
10608
|
+
"""
|
10609
|
+
return pulumi.get(self, "enabled")
|
10610
|
+
|
10611
|
+
@property
|
10612
|
+
@pulumi.getter(name="timeZone")
|
10613
|
+
def time_zone(self) -> str:
|
10614
|
+
"""
|
10615
|
+
Specifies the time zone to be used when interpreting cronSchedule. Must be a time zone name from the time zone database (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones), e.g. America/Los_Angeles or Africa/Abidjan. If left unspecified, the default is UTC.
|
10616
|
+
"""
|
10617
|
+
return pulumi.get(self, "time_zone")
|
10618
|
+
|
10619
|
+
|
10492
10620
|
@pulumi.output_type
|
10493
10621
|
class GetMetastoreServiceTelemetryConfigResult(dict):
|
10494
10622
|
def __init__(__self__, *,
|
@@ -300,7 +300,7 @@ class AppCheckServiceConfig(pulumi.CustomResource):
|
|
300
300
|
disable_on_destroy=False)
|
301
301
|
default = gcp.firebase.AppCheckServiceConfig("default",
|
302
302
|
project="my-project-name",
|
303
|
-
service_id="
|
303
|
+
service_id="identitytoolkit.googleapis.com",
|
304
304
|
enforcement_mode="UNENFORCED")
|
305
305
|
```
|
306
306
|
<!--End PulumiCodeChooser -->
|
@@ -422,7 +422,7 @@ class AppCheckServiceConfig(pulumi.CustomResource):
|
|
422
422
|
disable_on_destroy=False)
|
423
423
|
default = gcp.firebase.AppCheckServiceConfig("default",
|
424
424
|
project="my-project-name",
|
425
|
-
service_id="
|
425
|
+
service_id="identitytoolkit.googleapis.com",
|
426
426
|
enforcement_mode="UNENFORCED")
|
427
427
|
```
|
428
428
|
<!--End PulumiCodeChooser -->
|