pulumi-gcp 7.27.0a1718103841__py3-none-any.whl → 7.27.0a1718279079__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 +32 -0
- pulumi_gcp/appengine/_inputs.py +40 -0
- pulumi_gcp/appengine/flexible_app_version.py +47 -0
- pulumi_gcp/appengine/outputs.py +51 -0
- pulumi_gcp/bigtable/instance.py +47 -0
- pulumi_gcp/clouddeploy/_inputs.py +16 -0
- pulumi_gcp/clouddeploy/outputs.py +12 -0
- pulumi_gcp/compute/__init__.py +2 -0
- pulumi_gcp/compute/_inputs.py +84 -0
- pulumi_gcp/compute/backend_service.py +54 -0
- pulumi_gcp/compute/disk.py +68 -0
- pulumi_gcp/compute/get_backend_service.py +11 -1
- pulumi_gcp/compute/get_disk.py +11 -1
- pulumi_gcp/compute/get_instance.py +11 -1
- pulumi_gcp/compute/get_instance_group_manager.py +31 -1
- pulumi_gcp/compute/get_instance_template.py +11 -1
- pulumi_gcp/compute/get_region_instance_template.py +11 -1
- pulumi_gcp/compute/get_security_policy.py +214 -0
- pulumi_gcp/compute/instance.py +47 -0
- pulumi_gcp/compute/instance_from_machine_image.py +47 -0
- pulumi_gcp/compute/instance_from_template.py +47 -0
- pulumi_gcp/compute/instance_group_manager.py +185 -0
- pulumi_gcp/compute/instance_template.py +47 -0
- pulumi_gcp/compute/outputs.py +1039 -0
- pulumi_gcp/compute/project_cloud_armor_tier.py +336 -0
- pulumi_gcp/compute/region_instance_group_manager.py +185 -0
- pulumi_gcp/compute/region_instance_template.py +47 -0
- pulumi_gcp/config/__init__.pyi +2 -0
- pulumi_gcp/config/vars.py +4 -0
- pulumi_gcp/container/_inputs.py +33 -4
- pulumi_gcp/container/cluster.py +61 -0
- pulumi_gcp/container/get_cluster.py +11 -1
- pulumi_gcp/container/outputs.py +48 -4
- pulumi_gcp/dataloss/_inputs.py +185 -19
- pulumi_gcp/dataloss/outputs.py +206 -17
- pulumi_gcp/dataloss/prevention_inspect_template.py +54 -0
- pulumi_gcp/gkebackup/_inputs.py +282 -7
- pulumi_gcp/gkebackup/backup_plan.py +100 -0
- pulumi_gcp/gkebackup/outputs.py +312 -7
- pulumi_gcp/gkebackup/restore_plan.py +326 -0
- pulumi_gcp/gkebackup/restore_plan_iam_binding.py +326 -0
- pulumi_gcp/gkebackup/restore_plan_iam_member.py +326 -0
- pulumi_gcp/gkebackup/restore_plan_iam_policy.py +326 -0
- pulumi_gcp/healthcare/_inputs.py +17 -1
- pulumi_gcp/healthcare/dicom_store.py +2 -0
- pulumi_gcp/healthcare/fhir_store.py +44 -60
- pulumi_gcp/healthcare/outputs.py +15 -1
- pulumi_gcp/integrationconnectors/endpoint_attachment.py +47 -0
- pulumi_gcp/kms/crypto_key.py +14 -7
- pulumi_gcp/netapp/_inputs.py +58 -0
- pulumi_gcp/netapp/outputs.py +67 -0
- pulumi_gcp/netapp/volume.py +54 -0
- pulumi_gcp/networkservices/__init__.py +1 -0
- pulumi_gcp/networkservices/_inputs.py +47 -0
- pulumi_gcp/networkservices/outputs.py +56 -0
- pulumi_gcp/networkservices/service_lb_policies.py +782 -0
- pulumi_gcp/provider.py +20 -0
- pulumi_gcp/pulumi-plugin.json +1 -1
- pulumi_gcp/redis/_inputs.py +44 -0
- pulumi_gcp/redis/cluster.py +128 -3
- pulumi_gcp/redis/outputs.py +36 -0
- pulumi_gcp/secretmanager/_inputs.py +20 -0
- pulumi_gcp/secretmanager/outputs.py +20 -0
- pulumi_gcp/secretmanager/secret_iam_binding.py +244 -0
- pulumi_gcp/secretmanager/secret_iam_member.py +244 -0
- pulumi_gcp/secretmanager/secret_iam_policy.py +224 -0
- pulumi_gcp/securitycenter/__init__.py +1 -0
- pulumi_gcp/securitycenter/management_organization_event_threat_detection_custom_module.py +568 -0
- pulumi_gcp/spanner/__init__.py +1 -0
- pulumi_gcp/spanner/_inputs.py +68 -0
- pulumi_gcp/spanner/instance_config.py +569 -0
- pulumi_gcp/spanner/outputs.py +73 -0
- pulumi_gcp/sql/_inputs.py +8 -2
- pulumi_gcp/sql/outputs.py +9 -6
- pulumi_gcp/workstations/_inputs.py +51 -1
- pulumi_gcp/workstations/outputs.py +46 -2
- pulumi_gcp/workstations/workstation_config.py +10 -4
- {pulumi_gcp-7.27.0a1718103841.dist-info → pulumi_gcp-7.27.0a1718279079.dist-info}/METADATA +1 -1
- {pulumi_gcp-7.27.0a1718103841.dist-info → pulumi_gcp-7.27.0a1718279079.dist-info}/RECORD +81 -76
- {pulumi_gcp-7.27.0a1718103841.dist-info → pulumi_gcp-7.27.0a1718279079.dist-info}/WHEEL +0 -0
- {pulumi_gcp-7.27.0a1718103841.dist-info → pulumi_gcp-7.27.0a1718279079.dist-info}/top_level.txt +0 -0
@@ -22,7 +22,7 @@ class GetInstanceGroupManagerResult:
|
|
22
22
|
"""
|
23
23
|
A collection of values returned by getInstanceGroupManager.
|
24
24
|
"""
|
25
|
-
def __init__(__self__, all_instances_configs=None, auto_healing_policies=None, base_instance_name=None, creation_timestamp=None, description=None, fingerprint=None, id=None, instance_group=None, instance_lifecycle_policies=None, list_managed_instances_results=None, name=None, named_ports=None, operation=None, params=None, project=None, self_link=None, stateful_disks=None, stateful_external_ips=None, stateful_internal_ips=None, statuses=None, target_pools=None, target_size=None, update_policies=None, versions=None, wait_for_instances=None, wait_for_instances_status=None, zone=None):
|
25
|
+
def __init__(__self__, all_instances_configs=None, auto_healing_policies=None, base_instance_name=None, creation_timestamp=None, description=None, fingerprint=None, id=None, instance_group=None, instance_lifecycle_policies=None, list_managed_instances_results=None, name=None, named_ports=None, operation=None, params=None, project=None, self_link=None, standby_policies=None, stateful_disks=None, stateful_external_ips=None, stateful_internal_ips=None, statuses=None, target_pools=None, target_size=None, target_stopped_size=None, target_suspended_size=None, update_policies=None, versions=None, wait_for_instances=None, wait_for_instances_status=None, zone=None):
|
26
26
|
if all_instances_configs and not isinstance(all_instances_configs, list):
|
27
27
|
raise TypeError("Expected argument 'all_instances_configs' to be a list")
|
28
28
|
pulumi.set(__self__, "all_instances_configs", all_instances_configs)
|
@@ -71,6 +71,9 @@ class GetInstanceGroupManagerResult:
|
|
71
71
|
if self_link and not isinstance(self_link, str):
|
72
72
|
raise TypeError("Expected argument 'self_link' to be a str")
|
73
73
|
pulumi.set(__self__, "self_link", self_link)
|
74
|
+
if standby_policies and not isinstance(standby_policies, list):
|
75
|
+
raise TypeError("Expected argument 'standby_policies' to be a list")
|
76
|
+
pulumi.set(__self__, "standby_policies", standby_policies)
|
74
77
|
if stateful_disks and not isinstance(stateful_disks, list):
|
75
78
|
raise TypeError("Expected argument 'stateful_disks' to be a list")
|
76
79
|
pulumi.set(__self__, "stateful_disks", stateful_disks)
|
@@ -89,6 +92,12 @@ class GetInstanceGroupManagerResult:
|
|
89
92
|
if target_size and not isinstance(target_size, int):
|
90
93
|
raise TypeError("Expected argument 'target_size' to be a int")
|
91
94
|
pulumi.set(__self__, "target_size", target_size)
|
95
|
+
if target_stopped_size and not isinstance(target_stopped_size, int):
|
96
|
+
raise TypeError("Expected argument 'target_stopped_size' to be a int")
|
97
|
+
pulumi.set(__self__, "target_stopped_size", target_stopped_size)
|
98
|
+
if target_suspended_size and not isinstance(target_suspended_size, int):
|
99
|
+
raise TypeError("Expected argument 'target_suspended_size' to be a int")
|
100
|
+
pulumi.set(__self__, "target_suspended_size", target_suspended_size)
|
92
101
|
if update_policies and not isinstance(update_policies, list):
|
93
102
|
raise TypeError("Expected argument 'update_policies' to be a list")
|
94
103
|
pulumi.set(__self__, "update_policies", update_policies)
|
@@ -188,6 +197,11 @@ class GetInstanceGroupManagerResult:
|
|
188
197
|
def self_link(self) -> Optional[str]:
|
189
198
|
return pulumi.get(self, "self_link")
|
190
199
|
|
200
|
+
@property
|
201
|
+
@pulumi.getter(name="standbyPolicies")
|
202
|
+
def standby_policies(self) -> Sequence['outputs.GetInstanceGroupManagerStandbyPolicyResult']:
|
203
|
+
return pulumi.get(self, "standby_policies")
|
204
|
+
|
191
205
|
@property
|
192
206
|
@pulumi.getter(name="statefulDisks")
|
193
207
|
def stateful_disks(self) -> Sequence['outputs.GetInstanceGroupManagerStatefulDiskResult']:
|
@@ -218,6 +232,16 @@ class GetInstanceGroupManagerResult:
|
|
218
232
|
def target_size(self) -> int:
|
219
233
|
return pulumi.get(self, "target_size")
|
220
234
|
|
235
|
+
@property
|
236
|
+
@pulumi.getter(name="targetStoppedSize")
|
237
|
+
def target_stopped_size(self) -> int:
|
238
|
+
return pulumi.get(self, "target_stopped_size")
|
239
|
+
|
240
|
+
@property
|
241
|
+
@pulumi.getter(name="targetSuspendedSize")
|
242
|
+
def target_suspended_size(self) -> int:
|
243
|
+
return pulumi.get(self, "target_suspended_size")
|
244
|
+
|
221
245
|
@property
|
222
246
|
@pulumi.getter(name="updatePolicies")
|
223
247
|
def update_policies(self) -> Sequence['outputs.GetInstanceGroupManagerUpdatePolicyResult']:
|
@@ -266,12 +290,15 @@ class AwaitableGetInstanceGroupManagerResult(GetInstanceGroupManagerResult):
|
|
266
290
|
params=self.params,
|
267
291
|
project=self.project,
|
268
292
|
self_link=self.self_link,
|
293
|
+
standby_policies=self.standby_policies,
|
269
294
|
stateful_disks=self.stateful_disks,
|
270
295
|
stateful_external_ips=self.stateful_external_ips,
|
271
296
|
stateful_internal_ips=self.stateful_internal_ips,
|
272
297
|
statuses=self.statuses,
|
273
298
|
target_pools=self.target_pools,
|
274
299
|
target_size=self.target_size,
|
300
|
+
target_stopped_size=self.target_stopped_size,
|
301
|
+
target_suspended_size=self.target_suspended_size,
|
275
302
|
update_policies=self.update_policies,
|
276
303
|
versions=self.versions,
|
277
304
|
wait_for_instances=self.wait_for_instances,
|
@@ -331,12 +358,15 @@ def get_instance_group_manager(name: Optional[str] = None,
|
|
331
358
|
params=pulumi.get(__ret__, 'params'),
|
332
359
|
project=pulumi.get(__ret__, 'project'),
|
333
360
|
self_link=pulumi.get(__ret__, 'self_link'),
|
361
|
+
standby_policies=pulumi.get(__ret__, 'standby_policies'),
|
334
362
|
stateful_disks=pulumi.get(__ret__, 'stateful_disks'),
|
335
363
|
stateful_external_ips=pulumi.get(__ret__, 'stateful_external_ips'),
|
336
364
|
stateful_internal_ips=pulumi.get(__ret__, 'stateful_internal_ips'),
|
337
365
|
statuses=pulumi.get(__ret__, 'statuses'),
|
338
366
|
target_pools=pulumi.get(__ret__, 'target_pools'),
|
339
367
|
target_size=pulumi.get(__ret__, 'target_size'),
|
368
|
+
target_stopped_size=pulumi.get(__ret__, 'target_stopped_size'),
|
369
|
+
target_suspended_size=pulumi.get(__ret__, 'target_suspended_size'),
|
340
370
|
update_policies=pulumi.get(__ret__, 'update_policies'),
|
341
371
|
versions=pulumi.get(__ret__, 'versions'),
|
342
372
|
wait_for_instances=pulumi.get(__ret__, 'wait_for_instances'),
|
@@ -22,7 +22,7 @@ class GetInstanceTemplateResult:
|
|
22
22
|
"""
|
23
23
|
A collection of values returned by getInstanceTemplate.
|
24
24
|
"""
|
25
|
-
def __init__(__self__, advanced_machine_features=None, can_ip_forward=None, confidential_instance_configs=None, description=None, disks=None, effective_labels=None, enable_display=None, filter=None, guest_accelerators=None, id=None, instance_description=None, labels=None, machine_type=None, metadata=None, metadata_fingerprint=None, metadata_startup_script=None, min_cpu_platform=None, most_recent=None, name=None, name_prefix=None, network_interfaces=None, network_performance_configs=None, project=None, pulumi_labels=None, region=None, reservation_affinities=None, resource_manager_tags=None, resource_policies=None, schedulings=None, self_link=None, self_link_unique=None, service_accounts=None, shielded_instance_configs=None, tags=None, tags_fingerprint=None):
|
25
|
+
def __init__(__self__, advanced_machine_features=None, can_ip_forward=None, confidential_instance_configs=None, description=None, disks=None, effective_labels=None, enable_display=None, filter=None, guest_accelerators=None, id=None, instance_description=None, labels=None, machine_type=None, metadata=None, metadata_fingerprint=None, metadata_startup_script=None, min_cpu_platform=None, most_recent=None, name=None, name_prefix=None, network_interfaces=None, network_performance_configs=None, partner_metadata=None, project=None, pulumi_labels=None, region=None, reservation_affinities=None, resource_manager_tags=None, resource_policies=None, schedulings=None, self_link=None, self_link_unique=None, service_accounts=None, shielded_instance_configs=None, tags=None, tags_fingerprint=None):
|
26
26
|
if advanced_machine_features and not isinstance(advanced_machine_features, list):
|
27
27
|
raise TypeError("Expected argument 'advanced_machine_features' to be a list")
|
28
28
|
pulumi.set(__self__, "advanced_machine_features", advanced_machine_features)
|
@@ -89,6 +89,9 @@ class GetInstanceTemplateResult:
|
|
89
89
|
if network_performance_configs and not isinstance(network_performance_configs, list):
|
90
90
|
raise TypeError("Expected argument 'network_performance_configs' to be a list")
|
91
91
|
pulumi.set(__self__, "network_performance_configs", network_performance_configs)
|
92
|
+
if partner_metadata and not isinstance(partner_metadata, dict):
|
93
|
+
raise TypeError("Expected argument 'partner_metadata' to be a dict")
|
94
|
+
pulumi.set(__self__, "partner_metadata", partner_metadata)
|
92
95
|
if project and not isinstance(project, str):
|
93
96
|
raise TypeError("Expected argument 'project' to be a str")
|
94
97
|
pulumi.set(__self__, "project", project)
|
@@ -307,6 +310,11 @@ class GetInstanceTemplateResult:
|
|
307
310
|
"""
|
308
311
|
return pulumi.get(self, "network_performance_configs")
|
309
312
|
|
313
|
+
@property
|
314
|
+
@pulumi.getter(name="partnerMetadata")
|
315
|
+
def partner_metadata(self) -> Mapping[str, str]:
|
316
|
+
return pulumi.get(self, "partner_metadata")
|
317
|
+
|
310
318
|
@property
|
311
319
|
@pulumi.getter
|
312
320
|
def project(self) -> Optional[str]:
|
@@ -440,6 +448,7 @@ class AwaitableGetInstanceTemplateResult(GetInstanceTemplateResult):
|
|
440
448
|
name_prefix=self.name_prefix,
|
441
449
|
network_interfaces=self.network_interfaces,
|
442
450
|
network_performance_configs=self.network_performance_configs,
|
451
|
+
partner_metadata=self.partner_metadata,
|
443
452
|
project=self.project,
|
444
453
|
pulumi_labels=self.pulumi_labels,
|
445
454
|
region=self.region,
|
@@ -512,6 +521,7 @@ def get_instance_template(filter: Optional[str] = None,
|
|
512
521
|
name_prefix=pulumi.get(__ret__, 'name_prefix'),
|
513
522
|
network_interfaces=pulumi.get(__ret__, 'network_interfaces'),
|
514
523
|
network_performance_configs=pulumi.get(__ret__, 'network_performance_configs'),
|
524
|
+
partner_metadata=pulumi.get(__ret__, 'partner_metadata'),
|
515
525
|
project=pulumi.get(__ret__, 'project'),
|
516
526
|
pulumi_labels=pulumi.get(__ret__, 'pulumi_labels'),
|
517
527
|
region=pulumi.get(__ret__, 'region'),
|
@@ -22,7 +22,7 @@ class GetRegionInstanceTemplateResult:
|
|
22
22
|
"""
|
23
23
|
A collection of values returned by getRegionInstanceTemplate.
|
24
24
|
"""
|
25
|
-
def __init__(__self__, advanced_machine_features=None, can_ip_forward=None, confidential_instance_configs=None, description=None, disks=None, effective_labels=None, enable_display=None, filter=None, guest_accelerators=None, id=None, instance_description=None, labels=None, machine_type=None, metadata=None, metadata_fingerprint=None, metadata_startup_script=None, min_cpu_platform=None, most_recent=None, name=None, name_prefix=None, network_interfaces=None, network_performance_configs=None, project=None, pulumi_labels=None, region=None, reservation_affinities=None, resource_manager_tags=None, resource_policies=None, schedulings=None, self_link=None, service_accounts=None, shielded_instance_configs=None, tags=None, tags_fingerprint=None):
|
25
|
+
def __init__(__self__, advanced_machine_features=None, can_ip_forward=None, confidential_instance_configs=None, description=None, disks=None, effective_labels=None, enable_display=None, filter=None, guest_accelerators=None, id=None, instance_description=None, labels=None, machine_type=None, metadata=None, metadata_fingerprint=None, metadata_startup_script=None, min_cpu_platform=None, most_recent=None, name=None, name_prefix=None, network_interfaces=None, network_performance_configs=None, partner_metadata=None, project=None, pulumi_labels=None, region=None, reservation_affinities=None, resource_manager_tags=None, resource_policies=None, schedulings=None, self_link=None, service_accounts=None, shielded_instance_configs=None, tags=None, tags_fingerprint=None):
|
26
26
|
if advanced_machine_features and not isinstance(advanced_machine_features, list):
|
27
27
|
raise TypeError("Expected argument 'advanced_machine_features' to be a list")
|
28
28
|
pulumi.set(__self__, "advanced_machine_features", advanced_machine_features)
|
@@ -89,6 +89,9 @@ class GetRegionInstanceTemplateResult:
|
|
89
89
|
if network_performance_configs and not isinstance(network_performance_configs, list):
|
90
90
|
raise TypeError("Expected argument 'network_performance_configs' to be a list")
|
91
91
|
pulumi.set(__self__, "network_performance_configs", network_performance_configs)
|
92
|
+
if partner_metadata and not isinstance(partner_metadata, dict):
|
93
|
+
raise TypeError("Expected argument 'partner_metadata' to be a dict")
|
94
|
+
pulumi.set(__self__, "partner_metadata", partner_metadata)
|
92
95
|
if project and not isinstance(project, str):
|
93
96
|
raise TypeError("Expected argument 'project' to be a str")
|
94
97
|
pulumi.set(__self__, "project", project)
|
@@ -302,6 +305,11 @@ class GetRegionInstanceTemplateResult:
|
|
302
305
|
"""
|
303
306
|
return pulumi.get(self, "network_performance_configs")
|
304
307
|
|
308
|
+
@property
|
309
|
+
@pulumi.getter(name="partnerMetadata")
|
310
|
+
def partner_metadata(self) -> Mapping[str, str]:
|
311
|
+
return pulumi.get(self, "partner_metadata")
|
312
|
+
|
305
313
|
@property
|
306
314
|
@pulumi.getter
|
307
315
|
def project(self) -> Optional[str]:
|
@@ -418,6 +426,7 @@ class AwaitableGetRegionInstanceTemplateResult(GetRegionInstanceTemplateResult):
|
|
418
426
|
name_prefix=self.name_prefix,
|
419
427
|
network_interfaces=self.network_interfaces,
|
420
428
|
network_performance_configs=self.network_performance_configs,
|
429
|
+
partner_metadata=self.partner_metadata,
|
421
430
|
project=self.project,
|
422
431
|
pulumi_labels=self.pulumi_labels,
|
423
432
|
region=self.region,
|
@@ -500,6 +509,7 @@ def get_region_instance_template(filter: Optional[str] = None,
|
|
500
509
|
name_prefix=pulumi.get(__ret__, 'name_prefix'),
|
501
510
|
network_interfaces=pulumi.get(__ret__, 'network_interfaces'),
|
502
511
|
network_performance_configs=pulumi.get(__ret__, 'network_performance_configs'),
|
512
|
+
partner_metadata=pulumi.get(__ret__, 'partner_metadata'),
|
503
513
|
project=pulumi.get(__ret__, 'project'),
|
504
514
|
pulumi_labels=pulumi.get(__ret__, 'pulumi_labels'),
|
505
515
|
region=pulumi.get(__ret__, 'region'),
|
@@ -0,0 +1,214 @@
|
|
1
|
+
# coding=utf-8
|
2
|
+
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
|
+
|
5
|
+
import copy
|
6
|
+
import warnings
|
7
|
+
import pulumi
|
8
|
+
import pulumi.runtime
|
9
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
10
|
+
from .. import _utilities
|
11
|
+
from . import outputs
|
12
|
+
|
13
|
+
__all__ = [
|
14
|
+
'GetSecurityPolicyResult',
|
15
|
+
'AwaitableGetSecurityPolicyResult',
|
16
|
+
'get_security_policy',
|
17
|
+
'get_security_policy_output',
|
18
|
+
]
|
19
|
+
|
20
|
+
@pulumi.output_type
|
21
|
+
class GetSecurityPolicyResult:
|
22
|
+
"""
|
23
|
+
A collection of values returned by getSecurityPolicy.
|
24
|
+
"""
|
25
|
+
def __init__(__self__, adaptive_protection_configs=None, advanced_options_configs=None, description=None, fingerprint=None, id=None, name=None, project=None, recaptcha_options_configs=None, rules=None, self_link=None, type=None):
|
26
|
+
if adaptive_protection_configs and not isinstance(adaptive_protection_configs, list):
|
27
|
+
raise TypeError("Expected argument 'adaptive_protection_configs' to be a list")
|
28
|
+
pulumi.set(__self__, "adaptive_protection_configs", adaptive_protection_configs)
|
29
|
+
if advanced_options_configs and not isinstance(advanced_options_configs, list):
|
30
|
+
raise TypeError("Expected argument 'advanced_options_configs' to be a list")
|
31
|
+
pulumi.set(__self__, "advanced_options_configs", advanced_options_configs)
|
32
|
+
if description and not isinstance(description, str):
|
33
|
+
raise TypeError("Expected argument 'description' to be a str")
|
34
|
+
pulumi.set(__self__, "description", description)
|
35
|
+
if fingerprint and not isinstance(fingerprint, str):
|
36
|
+
raise TypeError("Expected argument 'fingerprint' to be a str")
|
37
|
+
pulumi.set(__self__, "fingerprint", fingerprint)
|
38
|
+
if id and not isinstance(id, str):
|
39
|
+
raise TypeError("Expected argument 'id' to be a str")
|
40
|
+
pulumi.set(__self__, "id", id)
|
41
|
+
if name and not isinstance(name, str):
|
42
|
+
raise TypeError("Expected argument 'name' to be a str")
|
43
|
+
pulumi.set(__self__, "name", name)
|
44
|
+
if project and not isinstance(project, str):
|
45
|
+
raise TypeError("Expected argument 'project' to be a str")
|
46
|
+
pulumi.set(__self__, "project", project)
|
47
|
+
if recaptcha_options_configs and not isinstance(recaptcha_options_configs, list):
|
48
|
+
raise TypeError("Expected argument 'recaptcha_options_configs' to be a list")
|
49
|
+
pulumi.set(__self__, "recaptcha_options_configs", recaptcha_options_configs)
|
50
|
+
if rules and not isinstance(rules, list):
|
51
|
+
raise TypeError("Expected argument 'rules' to be a list")
|
52
|
+
pulumi.set(__self__, "rules", rules)
|
53
|
+
if self_link and not isinstance(self_link, str):
|
54
|
+
raise TypeError("Expected argument 'self_link' to be a str")
|
55
|
+
pulumi.set(__self__, "self_link", self_link)
|
56
|
+
if type and not isinstance(type, str):
|
57
|
+
raise TypeError("Expected argument 'type' to be a str")
|
58
|
+
pulumi.set(__self__, "type", type)
|
59
|
+
|
60
|
+
@property
|
61
|
+
@pulumi.getter(name="adaptiveProtectionConfigs")
|
62
|
+
def adaptive_protection_configs(self) -> Sequence['outputs.GetSecurityPolicyAdaptiveProtectionConfigResult']:
|
63
|
+
return pulumi.get(self, "adaptive_protection_configs")
|
64
|
+
|
65
|
+
@property
|
66
|
+
@pulumi.getter(name="advancedOptionsConfigs")
|
67
|
+
def advanced_options_configs(self) -> Sequence['outputs.GetSecurityPolicyAdvancedOptionsConfigResult']:
|
68
|
+
return pulumi.get(self, "advanced_options_configs")
|
69
|
+
|
70
|
+
@property
|
71
|
+
@pulumi.getter
|
72
|
+
def description(self) -> str:
|
73
|
+
return pulumi.get(self, "description")
|
74
|
+
|
75
|
+
@property
|
76
|
+
@pulumi.getter
|
77
|
+
def fingerprint(self) -> str:
|
78
|
+
return pulumi.get(self, "fingerprint")
|
79
|
+
|
80
|
+
@property
|
81
|
+
@pulumi.getter
|
82
|
+
def id(self) -> str:
|
83
|
+
"""
|
84
|
+
The provider-assigned unique ID for this managed resource.
|
85
|
+
"""
|
86
|
+
return pulumi.get(self, "id")
|
87
|
+
|
88
|
+
@property
|
89
|
+
@pulumi.getter
|
90
|
+
def name(self) -> Optional[str]:
|
91
|
+
return pulumi.get(self, "name")
|
92
|
+
|
93
|
+
@property
|
94
|
+
@pulumi.getter
|
95
|
+
def project(self) -> Optional[str]:
|
96
|
+
return pulumi.get(self, "project")
|
97
|
+
|
98
|
+
@property
|
99
|
+
@pulumi.getter(name="recaptchaOptionsConfigs")
|
100
|
+
def recaptcha_options_configs(self) -> Sequence['outputs.GetSecurityPolicyRecaptchaOptionsConfigResult']:
|
101
|
+
return pulumi.get(self, "recaptcha_options_configs")
|
102
|
+
|
103
|
+
@property
|
104
|
+
@pulumi.getter
|
105
|
+
def rules(self) -> Sequence['outputs.GetSecurityPolicyRuleResult']:
|
106
|
+
return pulumi.get(self, "rules")
|
107
|
+
|
108
|
+
@property
|
109
|
+
@pulumi.getter(name="selfLink")
|
110
|
+
def self_link(self) -> Optional[str]:
|
111
|
+
return pulumi.get(self, "self_link")
|
112
|
+
|
113
|
+
@property
|
114
|
+
@pulumi.getter
|
115
|
+
def type(self) -> str:
|
116
|
+
return pulumi.get(self, "type")
|
117
|
+
|
118
|
+
|
119
|
+
class AwaitableGetSecurityPolicyResult(GetSecurityPolicyResult):
|
120
|
+
# pylint: disable=using-constant-test
|
121
|
+
def __await__(self):
|
122
|
+
if False:
|
123
|
+
yield self
|
124
|
+
return GetSecurityPolicyResult(
|
125
|
+
adaptive_protection_configs=self.adaptive_protection_configs,
|
126
|
+
advanced_options_configs=self.advanced_options_configs,
|
127
|
+
description=self.description,
|
128
|
+
fingerprint=self.fingerprint,
|
129
|
+
id=self.id,
|
130
|
+
name=self.name,
|
131
|
+
project=self.project,
|
132
|
+
recaptcha_options_configs=self.recaptcha_options_configs,
|
133
|
+
rules=self.rules,
|
134
|
+
self_link=self.self_link,
|
135
|
+
type=self.type)
|
136
|
+
|
137
|
+
|
138
|
+
def get_security_policy(name: Optional[str] = None,
|
139
|
+
project: Optional[str] = None,
|
140
|
+
self_link: Optional[str] = None,
|
141
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetSecurityPolicyResult:
|
142
|
+
"""
|
143
|
+
To get more information about Google Compute Security Policy, see:
|
144
|
+
|
145
|
+
* [API documentation](https://cloud.google.com/compute/docs/reference/rest/beta/securityPolicies)
|
146
|
+
* How-to Guides
|
147
|
+
* [Official Documentation](https://cloud.google.com/armor/docs/configure-security-policies)
|
148
|
+
|
149
|
+
## Example Usage
|
150
|
+
|
151
|
+
```python
|
152
|
+
import pulumi
|
153
|
+
import pulumi_gcp as gcp
|
154
|
+
|
155
|
+
sp1 = gcp.compute.get_security_policy(name="my-policy",
|
156
|
+
project="my-project")
|
157
|
+
sp2 = gcp.compute.get_security_policy(self_link="https://www.googleapis.com/compute/v1/projects/my-project/global/securityPolicies/my-policy")
|
158
|
+
```
|
159
|
+
|
160
|
+
|
161
|
+
:param str name: The name of the security policy. Provide either this or a `self_link`.
|
162
|
+
:param str project: The project in which the resource belongs. If it is not provided, the provider project is used.
|
163
|
+
:param str self_link: The self_link of the security policy. Provide either this or a `name`
|
164
|
+
"""
|
165
|
+
__args__ = dict()
|
166
|
+
__args__['name'] = name
|
167
|
+
__args__['project'] = project
|
168
|
+
__args__['selfLink'] = self_link
|
169
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
170
|
+
__ret__ = pulumi.runtime.invoke('gcp:compute/getSecurityPolicy:getSecurityPolicy', __args__, opts=opts, typ=GetSecurityPolicyResult).value
|
171
|
+
|
172
|
+
return AwaitableGetSecurityPolicyResult(
|
173
|
+
adaptive_protection_configs=pulumi.get(__ret__, 'adaptive_protection_configs'),
|
174
|
+
advanced_options_configs=pulumi.get(__ret__, 'advanced_options_configs'),
|
175
|
+
description=pulumi.get(__ret__, 'description'),
|
176
|
+
fingerprint=pulumi.get(__ret__, 'fingerprint'),
|
177
|
+
id=pulumi.get(__ret__, 'id'),
|
178
|
+
name=pulumi.get(__ret__, 'name'),
|
179
|
+
project=pulumi.get(__ret__, 'project'),
|
180
|
+
recaptcha_options_configs=pulumi.get(__ret__, 'recaptcha_options_configs'),
|
181
|
+
rules=pulumi.get(__ret__, 'rules'),
|
182
|
+
self_link=pulumi.get(__ret__, 'self_link'),
|
183
|
+
type=pulumi.get(__ret__, 'type'))
|
184
|
+
|
185
|
+
|
186
|
+
@_utilities.lift_output_func(get_security_policy)
|
187
|
+
def get_security_policy_output(name: Optional[pulumi.Input[Optional[str]]] = None,
|
188
|
+
project: Optional[pulumi.Input[Optional[str]]] = None,
|
189
|
+
self_link: Optional[pulumi.Input[Optional[str]]] = None,
|
190
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetSecurityPolicyResult]:
|
191
|
+
"""
|
192
|
+
To get more information about Google Compute Security Policy, see:
|
193
|
+
|
194
|
+
* [API documentation](https://cloud.google.com/compute/docs/reference/rest/beta/securityPolicies)
|
195
|
+
* How-to Guides
|
196
|
+
* [Official Documentation](https://cloud.google.com/armor/docs/configure-security-policies)
|
197
|
+
|
198
|
+
## Example Usage
|
199
|
+
|
200
|
+
```python
|
201
|
+
import pulumi
|
202
|
+
import pulumi_gcp as gcp
|
203
|
+
|
204
|
+
sp1 = gcp.compute.get_security_policy(name="my-policy",
|
205
|
+
project="my-project")
|
206
|
+
sp2 = gcp.compute.get_security_policy(self_link="https://www.googleapis.com/compute/v1/projects/my-project/global/securityPolicies/my-policy")
|
207
|
+
```
|
208
|
+
|
209
|
+
|
210
|
+
:param str name: The name of the security policy. Provide either this or a `self_link`.
|
211
|
+
:param str project: The project in which the resource belongs. If it is not provided, the provider project is used.
|
212
|
+
:param str self_link: The self_link of the security policy. Provide either this or a `name`
|
213
|
+
"""
|
214
|
+
...
|
pulumi_gcp/compute/instance.py
CHANGED
@@ -37,6 +37,7 @@ class InstanceArgs:
|
|
37
37
|
name: Optional[pulumi.Input[str]] = None,
|
38
38
|
network_performance_config: Optional[pulumi.Input['InstanceNetworkPerformanceConfigArgs']] = None,
|
39
39
|
params: Optional[pulumi.Input['InstanceParamsArgs']] = None,
|
40
|
+
partner_metadata: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
40
41
|
project: Optional[pulumi.Input[str]] = None,
|
41
42
|
reservation_affinity: Optional[pulumi.Input['InstanceReservationAffinityArgs']] = None,
|
42
43
|
resource_policies: Optional[pulumi.Input[str]] = None,
|
@@ -120,6 +121,7 @@ class InstanceArgs:
|
|
120
121
|
in order for this setting to take effect.
|
121
122
|
:param pulumi.Input['InstanceParamsArgs'] params: Additional instance parameters.
|
122
123
|
.
|
124
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] partner_metadata: Beta key/value pair represents partner metadata assigned to instance where key represent a defined namespace and value is a json string represent the entries associted with the namespace.
|
123
125
|
:param pulumi.Input[str] project: The ID of the project in which the resource belongs. If it
|
124
126
|
is not provided, the provider project is used.
|
125
127
|
:param pulumi.Input['InstanceReservationAffinityArgs'] reservation_affinity: Specifies the reservations that this instance can consume from.
|
@@ -177,6 +179,8 @@ class InstanceArgs:
|
|
177
179
|
pulumi.set(__self__, "network_performance_config", network_performance_config)
|
178
180
|
if params is not None:
|
179
181
|
pulumi.set(__self__, "params", params)
|
182
|
+
if partner_metadata is not None:
|
183
|
+
pulumi.set(__self__, "partner_metadata", partner_metadata)
|
180
184
|
if project is not None:
|
181
185
|
pulumi.set(__self__, "project", project)
|
182
186
|
if reservation_affinity is not None:
|
@@ -499,6 +503,18 @@ class InstanceArgs:
|
|
499
503
|
def params(self, value: Optional[pulumi.Input['InstanceParamsArgs']]):
|
500
504
|
pulumi.set(self, "params", value)
|
501
505
|
|
506
|
+
@property
|
507
|
+
@pulumi.getter(name="partnerMetadata")
|
508
|
+
def partner_metadata(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
509
|
+
"""
|
510
|
+
Beta key/value pair represents partner metadata assigned to instance where key represent a defined namespace and value is a json string represent the entries associted with the namespace.
|
511
|
+
"""
|
512
|
+
return pulumi.get(self, "partner_metadata")
|
513
|
+
|
514
|
+
@partner_metadata.setter
|
515
|
+
def partner_metadata(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
516
|
+
pulumi.set(self, "partner_metadata", value)
|
517
|
+
|
502
518
|
@property
|
503
519
|
@pulumi.getter
|
504
520
|
def project(self) -> Optional[pulumi.Input[str]]:
|
@@ -646,6 +662,7 @@ class _InstanceState:
|
|
646
662
|
network_interfaces: Optional[pulumi.Input[Sequence[pulumi.Input['InstanceNetworkInterfaceArgs']]]] = None,
|
647
663
|
network_performance_config: Optional[pulumi.Input['InstanceNetworkPerformanceConfigArgs']] = None,
|
648
664
|
params: Optional[pulumi.Input['InstanceParamsArgs']] = None,
|
665
|
+
partner_metadata: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
649
666
|
project: Optional[pulumi.Input[str]] = None,
|
650
667
|
pulumi_labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
651
668
|
reservation_affinity: Optional[pulumi.Input['InstanceReservationAffinityArgs']] = None,
|
@@ -738,6 +755,7 @@ class _InstanceState:
|
|
738
755
|
in order for this setting to take effect.
|
739
756
|
:param pulumi.Input['InstanceParamsArgs'] params: Additional instance parameters.
|
740
757
|
.
|
758
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] partner_metadata: Beta key/value pair represents partner metadata assigned to instance where key represent a defined namespace and value is a json string represent the entries associted with the namespace.
|
741
759
|
:param pulumi.Input[str] project: The ID of the project in which the resource belongs. If it
|
742
760
|
is not provided, the provider project is used.
|
743
761
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] pulumi_labels: The combination of labels configured directly on the resource and default labels configured on the provider.
|
@@ -813,6 +831,8 @@ class _InstanceState:
|
|
813
831
|
pulumi.set(__self__, "network_performance_config", network_performance_config)
|
814
832
|
if params is not None:
|
815
833
|
pulumi.set(__self__, "params", params)
|
834
|
+
if partner_metadata is not None:
|
835
|
+
pulumi.set(__self__, "partner_metadata", partner_metadata)
|
816
836
|
if project is not None:
|
817
837
|
pulumi.set(__self__, "project", project)
|
818
838
|
if pulumi_labels is not None:
|
@@ -1213,6 +1233,18 @@ class _InstanceState:
|
|
1213
1233
|
def params(self, value: Optional[pulumi.Input['InstanceParamsArgs']]):
|
1214
1234
|
pulumi.set(self, "params", value)
|
1215
1235
|
|
1236
|
+
@property
|
1237
|
+
@pulumi.getter(name="partnerMetadata")
|
1238
|
+
def partner_metadata(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
1239
|
+
"""
|
1240
|
+
Beta key/value pair represents partner metadata assigned to instance where key represent a defined namespace and value is a json string represent the entries associted with the namespace.
|
1241
|
+
"""
|
1242
|
+
return pulumi.get(self, "partner_metadata")
|
1243
|
+
|
1244
|
+
@partner_metadata.setter
|
1245
|
+
def partner_metadata(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
1246
|
+
pulumi.set(self, "partner_metadata", value)
|
1247
|
+
|
1216
1248
|
@property
|
1217
1249
|
@pulumi.getter
|
1218
1250
|
def project(self) -> Optional[pulumi.Input[str]]:
|
@@ -1392,6 +1424,7 @@ class Instance(pulumi.CustomResource):
|
|
1392
1424
|
network_interfaces: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['InstanceNetworkInterfaceArgs']]]]] = None,
|
1393
1425
|
network_performance_config: Optional[pulumi.Input[pulumi.InputType['InstanceNetworkPerformanceConfigArgs']]] = None,
|
1394
1426
|
params: Optional[pulumi.Input[pulumi.InputType['InstanceParamsArgs']]] = None,
|
1427
|
+
partner_metadata: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
1395
1428
|
project: Optional[pulumi.Input[str]] = None,
|
1396
1429
|
reservation_affinity: Optional[pulumi.Input[pulumi.InputType['InstanceReservationAffinityArgs']]] = None,
|
1397
1430
|
resource_policies: Optional[pulumi.Input[str]] = None,
|
@@ -1548,6 +1581,7 @@ class Instance(pulumi.CustomResource):
|
|
1548
1581
|
in order for this setting to take effect.
|
1549
1582
|
:param pulumi.Input[pulumi.InputType['InstanceParamsArgs']] params: Additional instance parameters.
|
1550
1583
|
.
|
1584
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] partner_metadata: Beta key/value pair represents partner metadata assigned to instance where key represent a defined namespace and value is a json string represent the entries associted with the namespace.
|
1551
1585
|
:param pulumi.Input[str] project: The ID of the project in which the resource belongs. If it
|
1552
1586
|
is not provided, the provider project is used.
|
1553
1587
|
:param pulumi.Input[pulumi.InputType['InstanceReservationAffinityArgs']] reservation_affinity: Specifies the reservations that this instance can consume from.
|
@@ -1680,6 +1714,7 @@ class Instance(pulumi.CustomResource):
|
|
1680
1714
|
network_interfaces: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['InstanceNetworkInterfaceArgs']]]]] = None,
|
1681
1715
|
network_performance_config: Optional[pulumi.Input[pulumi.InputType['InstanceNetworkPerformanceConfigArgs']]] = None,
|
1682
1716
|
params: Optional[pulumi.Input[pulumi.InputType['InstanceParamsArgs']]] = None,
|
1717
|
+
partner_metadata: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
1683
1718
|
project: Optional[pulumi.Input[str]] = None,
|
1684
1719
|
reservation_affinity: Optional[pulumi.Input[pulumi.InputType['InstanceReservationAffinityArgs']]] = None,
|
1685
1720
|
resource_policies: Optional[pulumi.Input[str]] = None,
|
@@ -1725,6 +1760,7 @@ class Instance(pulumi.CustomResource):
|
|
1725
1760
|
__props__.__dict__["network_interfaces"] = network_interfaces
|
1726
1761
|
__props__.__dict__["network_performance_config"] = network_performance_config
|
1727
1762
|
__props__.__dict__["params"] = params
|
1763
|
+
__props__.__dict__["partner_metadata"] = partner_metadata
|
1728
1764
|
__props__.__dict__["project"] = project
|
1729
1765
|
__props__.__dict__["reservation_affinity"] = reservation_affinity
|
1730
1766
|
__props__.__dict__["resource_policies"] = resource_policies
|
@@ -1782,6 +1818,7 @@ class Instance(pulumi.CustomResource):
|
|
1782
1818
|
network_interfaces: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['InstanceNetworkInterfaceArgs']]]]] = None,
|
1783
1819
|
network_performance_config: Optional[pulumi.Input[pulumi.InputType['InstanceNetworkPerformanceConfigArgs']]] = None,
|
1784
1820
|
params: Optional[pulumi.Input[pulumi.InputType['InstanceParamsArgs']]] = None,
|
1821
|
+
partner_metadata: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
1785
1822
|
project: Optional[pulumi.Input[str]] = None,
|
1786
1823
|
pulumi_labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
1787
1824
|
reservation_affinity: Optional[pulumi.Input[pulumi.InputType['InstanceReservationAffinityArgs']]] = None,
|
@@ -1879,6 +1916,7 @@ class Instance(pulumi.CustomResource):
|
|
1879
1916
|
in order for this setting to take effect.
|
1880
1917
|
:param pulumi.Input[pulumi.InputType['InstanceParamsArgs']] params: Additional instance parameters.
|
1881
1918
|
.
|
1919
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] partner_metadata: Beta key/value pair represents partner metadata assigned to instance where key represent a defined namespace and value is a json string represent the entries associted with the namespace.
|
1882
1920
|
:param pulumi.Input[str] project: The ID of the project in which the resource belongs. If it
|
1883
1921
|
is not provided, the provider project is used.
|
1884
1922
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] pulumi_labels: The combination of labels configured directly on the resource and default labels configured on the provider.
|
@@ -1931,6 +1969,7 @@ class Instance(pulumi.CustomResource):
|
|
1931
1969
|
__props__.__dict__["network_interfaces"] = network_interfaces
|
1932
1970
|
__props__.__dict__["network_performance_config"] = network_performance_config
|
1933
1971
|
__props__.__dict__["params"] = params
|
1972
|
+
__props__.__dict__["partner_metadata"] = partner_metadata
|
1934
1973
|
__props__.__dict__["project"] = project
|
1935
1974
|
__props__.__dict__["pulumi_labels"] = pulumi_labels
|
1936
1975
|
__props__.__dict__["reservation_affinity"] = reservation_affinity
|
@@ -2212,6 +2251,14 @@ class Instance(pulumi.CustomResource):
|
|
2212
2251
|
"""
|
2213
2252
|
return pulumi.get(self, "params")
|
2214
2253
|
|
2254
|
+
@property
|
2255
|
+
@pulumi.getter(name="partnerMetadata")
|
2256
|
+
def partner_metadata(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
|
2257
|
+
"""
|
2258
|
+
Beta key/value pair represents partner metadata assigned to instance where key represent a defined namespace and value is a json string represent the entries associted with the namespace.
|
2259
|
+
"""
|
2260
|
+
return pulumi.get(self, "partner_metadata")
|
2261
|
+
|
2215
2262
|
@property
|
2216
2263
|
@pulumi.getter
|
2217
2264
|
def project(self) -> pulumi.Output[str]:
|