pulumi-gcp 8.21.0a1741156431__py3-none-any.whl → 8.21.0a1741183435__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 +64 -0
- pulumi_gcp/alloydb/cluster.py +148 -0
- pulumi_gcp/alloydb/instance.py +28 -28
- pulumi_gcp/apihub/__init__.py +1 -0
- pulumi_gcp/apihub/host_project_registration.py +535 -0
- pulumi_gcp/bigquery/table.py +1 -1
- pulumi_gcp/compute/__init__.py +5 -0
- pulumi_gcp/compute/_inputs.py +770 -0
- pulumi_gcp/compute/backend_service.py +14 -7
- pulumi_gcp/compute/ca_external_account_key.py +48 -3
- pulumi_gcp/compute/disk.py +295 -0
- pulumi_gcp/compute/get_disk.py +56 -1
- pulumi_gcp/compute/get_instant_snapshot_iam_policy.py +182 -0
- pulumi_gcp/compute/instant_snapshot.py +796 -0
- pulumi_gcp/compute/instant_snapshot_iam_binding.py +1087 -0
- pulumi_gcp/compute/instant_snapshot_iam_member.py +1087 -0
- pulumi_gcp/compute/instant_snapshot_iam_policy.py +906 -0
- pulumi_gcp/compute/outputs.py +1329 -6
- pulumi_gcp/compute/region_backend_service.py +14 -7
- pulumi_gcp/compute/route.py +228 -2
- pulumi_gcp/compute/url_map.py +8 -0
- pulumi_gcp/container/_inputs.py +3 -3
- pulumi_gcp/container/outputs.py +4 -4
- pulumi_gcp/datacatalog/entry.py +4 -0
- pulumi_gcp/datacatalog/tag.py +4 -0
- pulumi_gcp/dataproc/_inputs.py +12 -15
- pulumi_gcp/dataproc/outputs.py +8 -10
- pulumi_gcp/discoveryengine/target_site.py +4 -4
- pulumi_gcp/eventarc/__init__.py +1 -0
- pulumi_gcp/eventarc/_inputs.py +40 -0
- pulumi_gcp/eventarc/message_bus.py +927 -0
- pulumi_gcp/eventarc/outputs.py +41 -0
- pulumi_gcp/gemini/__init__.py +1 -0
- pulumi_gcp/gemini/data_sharing_with_google_setting_binding.py +20 -8
- pulumi_gcp/gemini/gemini_gcp_enablement_setting.py +6 -0
- pulumi_gcp/gemini/gemini_gcp_enablement_setting_binding.py +734 -0
- pulumi_gcp/gemini/logging_setting_binding.py +7 -7
- pulumi_gcp/iam/_inputs.py +33 -9
- pulumi_gcp/iam/outputs.py +22 -6
- pulumi_gcp/iam/workforce_pool_provider.py +2 -2
- pulumi_gcp/memorystore/__init__.py +1 -0
- pulumi_gcp/memorystore/get_instance.py +425 -0
- pulumi_gcp/memorystore/outputs.py +582 -0
- pulumi_gcp/networkconnectivity/hub.py +84 -0
- pulumi_gcp/networkservices/grpc_route.py +116 -12
- pulumi_gcp/notebooks/location.py +4 -0
- pulumi_gcp/pulumi-plugin.json +1 -1
- pulumi_gcp/storage/__init__.py +1 -0
- pulumi_gcp/storage/_inputs.py +74 -0
- pulumi_gcp/storage/anywhere_cache.py +552 -0
- pulumi_gcp/storage/outputs.py +65 -0
- pulumi_gcp/storage/transfer_job.py +67 -0
- {pulumi_gcp-8.21.0a1741156431.dist-info → pulumi_gcp-8.21.0a1741183435.dist-info}/METADATA +1 -1
- {pulumi_gcp-8.21.0a1741156431.dist-info → pulumi_gcp-8.21.0a1741183435.dist-info}/RECORD +56 -46
- {pulumi_gcp-8.21.0a1741156431.dist-info → pulumi_gcp-8.21.0a1741183435.dist-info}/WHEEL +0 -0
- {pulumi_gcp-8.21.0a1741156431.dist-info → pulumi_gcp-8.21.0a1741183435.dist-info}/top_level.txt +0 -0
pulumi_gcp/compute/get_disk.py
CHANGED
@@ -27,10 +27,13 @@ class GetDiskResult:
|
|
27
27
|
"""
|
28
28
|
A collection of values returned by getDisk.
|
29
29
|
"""
|
30
|
-
def __init__(__self__, access_mode=None, async_primary_disks=None, creation_timestamp=None, description=None, disk_encryption_keys=None, disk_id=None, effective_labels=None, enable_confidential_compute=None, guest_os_features=None, id=None, image=None, interface=None, label_fingerprint=None, labels=None, last_attach_timestamp=None, last_detach_timestamp=None, licenses=None, multi_writer=None, name=None, physical_block_size_bytes=None, project=None, provisioned_iops=None, provisioned_throughput=None, pulumi_labels=None, resource_policies=None, self_link=None, size=None, snapshot=None, source_disk=None, source_disk_id=None, source_image_encryption_keys=None, source_image_id=None, source_snapshot_encryption_keys=None, source_snapshot_id=None, storage_pool=None, type=None, users=None, zone=None):
|
30
|
+
def __init__(__self__, access_mode=None, architecture=None, async_primary_disks=None, creation_timestamp=None, description=None, disk_encryption_keys=None, disk_id=None, effective_labels=None, enable_confidential_compute=None, guest_os_features=None, id=None, image=None, interface=None, label_fingerprint=None, labels=None, last_attach_timestamp=None, last_detach_timestamp=None, licenses=None, multi_writer=None, name=None, params=None, physical_block_size_bytes=None, project=None, provisioned_iops=None, provisioned_throughput=None, pulumi_labels=None, resource_policies=None, self_link=None, size=None, snapshot=None, source_disk=None, source_disk_id=None, source_image_encryption_keys=None, source_image_id=None, source_instant_snapshot=None, source_instant_snapshot_id=None, source_snapshot_encryption_keys=None, source_snapshot_id=None, source_storage_object=None, storage_pool=None, type=None, users=None, zone=None):
|
31
31
|
if access_mode and not isinstance(access_mode, str):
|
32
32
|
raise TypeError("Expected argument 'access_mode' to be a str")
|
33
33
|
pulumi.set(__self__, "access_mode", access_mode)
|
34
|
+
if architecture and not isinstance(architecture, str):
|
35
|
+
raise TypeError("Expected argument 'architecture' to be a str")
|
36
|
+
pulumi.set(__self__, "architecture", architecture)
|
34
37
|
if async_primary_disks and not isinstance(async_primary_disks, list):
|
35
38
|
raise TypeError("Expected argument 'async_primary_disks' to be a list")
|
36
39
|
pulumi.set(__self__, "async_primary_disks", async_primary_disks)
|
@@ -85,6 +88,9 @@ class GetDiskResult:
|
|
85
88
|
if name and not isinstance(name, str):
|
86
89
|
raise TypeError("Expected argument 'name' to be a str")
|
87
90
|
pulumi.set(__self__, "name", name)
|
91
|
+
if params and not isinstance(params, list):
|
92
|
+
raise TypeError("Expected argument 'params' to be a list")
|
93
|
+
pulumi.set(__self__, "params", params)
|
88
94
|
if physical_block_size_bytes and not isinstance(physical_block_size_bytes, int):
|
89
95
|
raise TypeError("Expected argument 'physical_block_size_bytes' to be a int")
|
90
96
|
pulumi.set(__self__, "physical_block_size_bytes", physical_block_size_bytes)
|
@@ -124,12 +130,21 @@ class GetDiskResult:
|
|
124
130
|
if source_image_id and not isinstance(source_image_id, str):
|
125
131
|
raise TypeError("Expected argument 'source_image_id' to be a str")
|
126
132
|
pulumi.set(__self__, "source_image_id", source_image_id)
|
133
|
+
if source_instant_snapshot and not isinstance(source_instant_snapshot, str):
|
134
|
+
raise TypeError("Expected argument 'source_instant_snapshot' to be a str")
|
135
|
+
pulumi.set(__self__, "source_instant_snapshot", source_instant_snapshot)
|
136
|
+
if source_instant_snapshot_id and not isinstance(source_instant_snapshot_id, str):
|
137
|
+
raise TypeError("Expected argument 'source_instant_snapshot_id' to be a str")
|
138
|
+
pulumi.set(__self__, "source_instant_snapshot_id", source_instant_snapshot_id)
|
127
139
|
if source_snapshot_encryption_keys and not isinstance(source_snapshot_encryption_keys, list):
|
128
140
|
raise TypeError("Expected argument 'source_snapshot_encryption_keys' to be a list")
|
129
141
|
pulumi.set(__self__, "source_snapshot_encryption_keys", source_snapshot_encryption_keys)
|
130
142
|
if source_snapshot_id and not isinstance(source_snapshot_id, str):
|
131
143
|
raise TypeError("Expected argument 'source_snapshot_id' to be a str")
|
132
144
|
pulumi.set(__self__, "source_snapshot_id", source_snapshot_id)
|
145
|
+
if source_storage_object and not isinstance(source_storage_object, str):
|
146
|
+
raise TypeError("Expected argument 'source_storage_object' to be a str")
|
147
|
+
pulumi.set(__self__, "source_storage_object", source_storage_object)
|
133
148
|
if storage_pool and not isinstance(storage_pool, str):
|
134
149
|
raise TypeError("Expected argument 'storage_pool' to be a str")
|
135
150
|
pulumi.set(__self__, "storage_pool", storage_pool)
|
@@ -148,6 +163,11 @@ class GetDiskResult:
|
|
148
163
|
def access_mode(self) -> str:
|
149
164
|
return pulumi.get(self, "access_mode")
|
150
165
|
|
166
|
+
@property
|
167
|
+
@pulumi.getter
|
168
|
+
def architecture(self) -> str:
|
169
|
+
return pulumi.get(self, "architecture")
|
170
|
+
|
151
171
|
@property
|
152
172
|
@pulumi.getter(name="asyncPrimaryDisks")
|
153
173
|
def async_primary_disks(self) -> Sequence['outputs.GetDiskAsyncPrimaryDiskResult']:
|
@@ -263,6 +283,11 @@ class GetDiskResult:
|
|
263
283
|
def name(self) -> str:
|
264
284
|
return pulumi.get(self, "name")
|
265
285
|
|
286
|
+
@property
|
287
|
+
@pulumi.getter
|
288
|
+
def params(self) -> Sequence['outputs.GetDiskParamResult']:
|
289
|
+
return pulumi.get(self, "params")
|
290
|
+
|
266
291
|
@property
|
267
292
|
@pulumi.getter(name="physicalBlockSizeBytes")
|
268
293
|
def physical_block_size_bytes(self) -> int:
|
@@ -350,6 +375,16 @@ class GetDiskResult:
|
|
350
375
|
"""
|
351
376
|
return pulumi.get(self, "source_image_id")
|
352
377
|
|
378
|
+
@property
|
379
|
+
@pulumi.getter(name="sourceInstantSnapshot")
|
380
|
+
def source_instant_snapshot(self) -> str:
|
381
|
+
return pulumi.get(self, "source_instant_snapshot")
|
382
|
+
|
383
|
+
@property
|
384
|
+
@pulumi.getter(name="sourceInstantSnapshotId")
|
385
|
+
def source_instant_snapshot_id(self) -> str:
|
386
|
+
return pulumi.get(self, "source_instant_snapshot_id")
|
387
|
+
|
353
388
|
@property
|
354
389
|
@pulumi.getter(name="sourceSnapshotEncryptionKeys")
|
355
390
|
def source_snapshot_encryption_keys(self) -> Sequence['outputs.GetDiskSourceSnapshotEncryptionKeyResult']:
|
@@ -371,6 +406,11 @@ class GetDiskResult:
|
|
371
406
|
"""
|
372
407
|
return pulumi.get(self, "source_snapshot_id")
|
373
408
|
|
409
|
+
@property
|
410
|
+
@pulumi.getter(name="sourceStorageObject")
|
411
|
+
def source_storage_object(self) -> str:
|
412
|
+
return pulumi.get(self, "source_storage_object")
|
413
|
+
|
374
414
|
@property
|
375
415
|
@pulumi.getter(name="storagePool")
|
376
416
|
def storage_pool(self) -> str:
|
@@ -410,6 +450,7 @@ class AwaitableGetDiskResult(GetDiskResult):
|
|
410
450
|
yield self
|
411
451
|
return GetDiskResult(
|
412
452
|
access_mode=self.access_mode,
|
453
|
+
architecture=self.architecture,
|
413
454
|
async_primary_disks=self.async_primary_disks,
|
414
455
|
creation_timestamp=self.creation_timestamp,
|
415
456
|
description=self.description,
|
@@ -428,6 +469,7 @@ class AwaitableGetDiskResult(GetDiskResult):
|
|
428
469
|
licenses=self.licenses,
|
429
470
|
multi_writer=self.multi_writer,
|
430
471
|
name=self.name,
|
472
|
+
params=self.params,
|
431
473
|
physical_block_size_bytes=self.physical_block_size_bytes,
|
432
474
|
project=self.project,
|
433
475
|
provisioned_iops=self.provisioned_iops,
|
@@ -441,8 +483,11 @@ class AwaitableGetDiskResult(GetDiskResult):
|
|
441
483
|
source_disk_id=self.source_disk_id,
|
442
484
|
source_image_encryption_keys=self.source_image_encryption_keys,
|
443
485
|
source_image_id=self.source_image_id,
|
486
|
+
source_instant_snapshot=self.source_instant_snapshot,
|
487
|
+
source_instant_snapshot_id=self.source_instant_snapshot_id,
|
444
488
|
source_snapshot_encryption_keys=self.source_snapshot_encryption_keys,
|
445
489
|
source_snapshot_id=self.source_snapshot_id,
|
490
|
+
source_storage_object=self.source_storage_object,
|
446
491
|
storage_pool=self.storage_pool,
|
447
492
|
type=self.type,
|
448
493
|
users=self.users,
|
@@ -489,6 +534,7 @@ def get_disk(name: Optional[str] = None,
|
|
489
534
|
|
490
535
|
return AwaitableGetDiskResult(
|
491
536
|
access_mode=pulumi.get(__ret__, 'access_mode'),
|
537
|
+
architecture=pulumi.get(__ret__, 'architecture'),
|
492
538
|
async_primary_disks=pulumi.get(__ret__, 'async_primary_disks'),
|
493
539
|
creation_timestamp=pulumi.get(__ret__, 'creation_timestamp'),
|
494
540
|
description=pulumi.get(__ret__, 'description'),
|
@@ -507,6 +553,7 @@ def get_disk(name: Optional[str] = None,
|
|
507
553
|
licenses=pulumi.get(__ret__, 'licenses'),
|
508
554
|
multi_writer=pulumi.get(__ret__, 'multi_writer'),
|
509
555
|
name=pulumi.get(__ret__, 'name'),
|
556
|
+
params=pulumi.get(__ret__, 'params'),
|
510
557
|
physical_block_size_bytes=pulumi.get(__ret__, 'physical_block_size_bytes'),
|
511
558
|
project=pulumi.get(__ret__, 'project'),
|
512
559
|
provisioned_iops=pulumi.get(__ret__, 'provisioned_iops'),
|
@@ -520,8 +567,11 @@ def get_disk(name: Optional[str] = None,
|
|
520
567
|
source_disk_id=pulumi.get(__ret__, 'source_disk_id'),
|
521
568
|
source_image_encryption_keys=pulumi.get(__ret__, 'source_image_encryption_keys'),
|
522
569
|
source_image_id=pulumi.get(__ret__, 'source_image_id'),
|
570
|
+
source_instant_snapshot=pulumi.get(__ret__, 'source_instant_snapshot'),
|
571
|
+
source_instant_snapshot_id=pulumi.get(__ret__, 'source_instant_snapshot_id'),
|
523
572
|
source_snapshot_encryption_keys=pulumi.get(__ret__, 'source_snapshot_encryption_keys'),
|
524
573
|
source_snapshot_id=pulumi.get(__ret__, 'source_snapshot_id'),
|
574
|
+
source_storage_object=pulumi.get(__ret__, 'source_storage_object'),
|
525
575
|
storage_pool=pulumi.get(__ret__, 'storage_pool'),
|
526
576
|
type=pulumi.get(__ret__, 'type'),
|
527
577
|
users=pulumi.get(__ret__, 'users'),
|
@@ -565,6 +615,7 @@ def get_disk_output(name: Optional[pulumi.Input[str]] = None,
|
|
565
615
|
__ret__ = pulumi.runtime.invoke_output('gcp:compute/getDisk:getDisk', __args__, opts=opts, typ=GetDiskResult)
|
566
616
|
return __ret__.apply(lambda __response__: GetDiskResult(
|
567
617
|
access_mode=pulumi.get(__response__, 'access_mode'),
|
618
|
+
architecture=pulumi.get(__response__, 'architecture'),
|
568
619
|
async_primary_disks=pulumi.get(__response__, 'async_primary_disks'),
|
569
620
|
creation_timestamp=pulumi.get(__response__, 'creation_timestamp'),
|
570
621
|
description=pulumi.get(__response__, 'description'),
|
@@ -583,6 +634,7 @@ def get_disk_output(name: Optional[pulumi.Input[str]] = None,
|
|
583
634
|
licenses=pulumi.get(__response__, 'licenses'),
|
584
635
|
multi_writer=pulumi.get(__response__, 'multi_writer'),
|
585
636
|
name=pulumi.get(__response__, 'name'),
|
637
|
+
params=pulumi.get(__response__, 'params'),
|
586
638
|
physical_block_size_bytes=pulumi.get(__response__, 'physical_block_size_bytes'),
|
587
639
|
project=pulumi.get(__response__, 'project'),
|
588
640
|
provisioned_iops=pulumi.get(__response__, 'provisioned_iops'),
|
@@ -596,8 +648,11 @@ def get_disk_output(name: Optional[pulumi.Input[str]] = None,
|
|
596
648
|
source_disk_id=pulumi.get(__response__, 'source_disk_id'),
|
597
649
|
source_image_encryption_keys=pulumi.get(__response__, 'source_image_encryption_keys'),
|
598
650
|
source_image_id=pulumi.get(__response__, 'source_image_id'),
|
651
|
+
source_instant_snapshot=pulumi.get(__response__, 'source_instant_snapshot'),
|
652
|
+
source_instant_snapshot_id=pulumi.get(__response__, 'source_instant_snapshot_id'),
|
599
653
|
source_snapshot_encryption_keys=pulumi.get(__response__, 'source_snapshot_encryption_keys'),
|
600
654
|
source_snapshot_id=pulumi.get(__response__, 'source_snapshot_id'),
|
655
|
+
source_storage_object=pulumi.get(__response__, 'source_storage_object'),
|
601
656
|
storage_pool=pulumi.get(__response__, 'storage_pool'),
|
602
657
|
type=pulumi.get(__response__, 'type'),
|
603
658
|
users=pulumi.get(__response__, 'users'),
|
@@ -0,0 +1,182 @@
|
|
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 sys
|
8
|
+
import pulumi
|
9
|
+
import pulumi.runtime
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
11
|
+
if sys.version_info >= (3, 11):
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
13
|
+
else:
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
15
|
+
from .. import _utilities
|
16
|
+
|
17
|
+
__all__ = [
|
18
|
+
'GetInstantSnapshotIamPolicyResult',
|
19
|
+
'AwaitableGetInstantSnapshotIamPolicyResult',
|
20
|
+
'get_instant_snapshot_iam_policy',
|
21
|
+
'get_instant_snapshot_iam_policy_output',
|
22
|
+
]
|
23
|
+
|
24
|
+
@pulumi.output_type
|
25
|
+
class GetInstantSnapshotIamPolicyResult:
|
26
|
+
"""
|
27
|
+
A collection of values returned by getInstantSnapshotIamPolicy.
|
28
|
+
"""
|
29
|
+
def __init__(__self__, etag=None, id=None, name=None, policy_data=None, project=None, zone=None):
|
30
|
+
if etag and not isinstance(etag, str):
|
31
|
+
raise TypeError("Expected argument 'etag' to be a str")
|
32
|
+
pulumi.set(__self__, "etag", etag)
|
33
|
+
if id and not isinstance(id, str):
|
34
|
+
raise TypeError("Expected argument 'id' to be a str")
|
35
|
+
pulumi.set(__self__, "id", id)
|
36
|
+
if name and not isinstance(name, str):
|
37
|
+
raise TypeError("Expected argument 'name' to be a str")
|
38
|
+
pulumi.set(__self__, "name", name)
|
39
|
+
if policy_data and not isinstance(policy_data, str):
|
40
|
+
raise TypeError("Expected argument 'policy_data' to be a str")
|
41
|
+
pulumi.set(__self__, "policy_data", policy_data)
|
42
|
+
if project and not isinstance(project, str):
|
43
|
+
raise TypeError("Expected argument 'project' to be a str")
|
44
|
+
pulumi.set(__self__, "project", project)
|
45
|
+
if zone and not isinstance(zone, str):
|
46
|
+
raise TypeError("Expected argument 'zone' to be a str")
|
47
|
+
pulumi.set(__self__, "zone", zone)
|
48
|
+
|
49
|
+
@property
|
50
|
+
@pulumi.getter
|
51
|
+
def etag(self) -> str:
|
52
|
+
"""
|
53
|
+
(Computed) The etag of the IAM policy.
|
54
|
+
"""
|
55
|
+
return pulumi.get(self, "etag")
|
56
|
+
|
57
|
+
@property
|
58
|
+
@pulumi.getter
|
59
|
+
def id(self) -> str:
|
60
|
+
"""
|
61
|
+
The provider-assigned unique ID for this managed resource.
|
62
|
+
"""
|
63
|
+
return pulumi.get(self, "id")
|
64
|
+
|
65
|
+
@property
|
66
|
+
@pulumi.getter
|
67
|
+
def name(self) -> str:
|
68
|
+
return pulumi.get(self, "name")
|
69
|
+
|
70
|
+
@property
|
71
|
+
@pulumi.getter(name="policyData")
|
72
|
+
def policy_data(self) -> str:
|
73
|
+
"""
|
74
|
+
(Required only by `compute.InstantSnapshotIamPolicy`) The policy data generated by
|
75
|
+
a `organizations_get_iam_policy` data source.
|
76
|
+
"""
|
77
|
+
return pulumi.get(self, "policy_data")
|
78
|
+
|
79
|
+
@property
|
80
|
+
@pulumi.getter
|
81
|
+
def project(self) -> str:
|
82
|
+
return pulumi.get(self, "project")
|
83
|
+
|
84
|
+
@property
|
85
|
+
@pulumi.getter
|
86
|
+
def zone(self) -> str:
|
87
|
+
return pulumi.get(self, "zone")
|
88
|
+
|
89
|
+
|
90
|
+
class AwaitableGetInstantSnapshotIamPolicyResult(GetInstantSnapshotIamPolicyResult):
|
91
|
+
# pylint: disable=using-constant-test
|
92
|
+
def __await__(self):
|
93
|
+
if False:
|
94
|
+
yield self
|
95
|
+
return GetInstantSnapshotIamPolicyResult(
|
96
|
+
etag=self.etag,
|
97
|
+
id=self.id,
|
98
|
+
name=self.name,
|
99
|
+
policy_data=self.policy_data,
|
100
|
+
project=self.project,
|
101
|
+
zone=self.zone)
|
102
|
+
|
103
|
+
|
104
|
+
def get_instant_snapshot_iam_policy(name: Optional[str] = None,
|
105
|
+
project: Optional[str] = None,
|
106
|
+
zone: Optional[str] = None,
|
107
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetInstantSnapshotIamPolicyResult:
|
108
|
+
"""
|
109
|
+
Retrieves the current IAM policy data for instantsnapshot
|
110
|
+
|
111
|
+
## Example Usage
|
112
|
+
|
113
|
+
```python
|
114
|
+
import pulumi
|
115
|
+
import pulumi_gcp as gcp
|
116
|
+
|
117
|
+
policy = gcp.compute.get_instant_snapshot_iam_policy(project=default["project"],
|
118
|
+
zone=default["zone"],
|
119
|
+
name=default["name"])
|
120
|
+
```
|
121
|
+
|
122
|
+
|
123
|
+
:param str name: Used to find the parent resource to bind the IAM policy to
|
124
|
+
:param str project: The ID of the project in which the resource belongs.
|
125
|
+
If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
|
126
|
+
:param str zone: A reference to the zone where the disk is located. Used to find the parent resource to bind the IAM policy to. If not specified,
|
127
|
+
the value will be parsed from the identifier of the parent resource. If no zone is provided in the parent identifier and no
|
128
|
+
zone is specified, it is taken from the provider configuration.
|
129
|
+
"""
|
130
|
+
__args__ = dict()
|
131
|
+
__args__['name'] = name
|
132
|
+
__args__['project'] = project
|
133
|
+
__args__['zone'] = zone
|
134
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
135
|
+
__ret__ = pulumi.runtime.invoke('gcp:compute/getInstantSnapshotIamPolicy:getInstantSnapshotIamPolicy', __args__, opts=opts, typ=GetInstantSnapshotIamPolicyResult).value
|
136
|
+
|
137
|
+
return AwaitableGetInstantSnapshotIamPolicyResult(
|
138
|
+
etag=pulumi.get(__ret__, 'etag'),
|
139
|
+
id=pulumi.get(__ret__, 'id'),
|
140
|
+
name=pulumi.get(__ret__, 'name'),
|
141
|
+
policy_data=pulumi.get(__ret__, 'policy_data'),
|
142
|
+
project=pulumi.get(__ret__, 'project'),
|
143
|
+
zone=pulumi.get(__ret__, 'zone'))
|
144
|
+
def get_instant_snapshot_iam_policy_output(name: Optional[pulumi.Input[str]] = None,
|
145
|
+
project: Optional[pulumi.Input[Optional[str]]] = None,
|
146
|
+
zone: Optional[pulumi.Input[Optional[str]]] = None,
|
147
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetInstantSnapshotIamPolicyResult]:
|
148
|
+
"""
|
149
|
+
Retrieves the current IAM policy data for instantsnapshot
|
150
|
+
|
151
|
+
## Example Usage
|
152
|
+
|
153
|
+
```python
|
154
|
+
import pulumi
|
155
|
+
import pulumi_gcp as gcp
|
156
|
+
|
157
|
+
policy = gcp.compute.get_instant_snapshot_iam_policy(project=default["project"],
|
158
|
+
zone=default["zone"],
|
159
|
+
name=default["name"])
|
160
|
+
```
|
161
|
+
|
162
|
+
|
163
|
+
:param str name: Used to find the parent resource to bind the IAM policy to
|
164
|
+
:param str project: The ID of the project in which the resource belongs.
|
165
|
+
If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
|
166
|
+
:param str zone: A reference to the zone where the disk is located. Used to find the parent resource to bind the IAM policy to. If not specified,
|
167
|
+
the value will be parsed from the identifier of the parent resource. If no zone is provided in the parent identifier and no
|
168
|
+
zone is specified, it is taken from the provider configuration.
|
169
|
+
"""
|
170
|
+
__args__ = dict()
|
171
|
+
__args__['name'] = name
|
172
|
+
__args__['project'] = project
|
173
|
+
__args__['zone'] = zone
|
174
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
175
|
+
__ret__ = pulumi.runtime.invoke_output('gcp:compute/getInstantSnapshotIamPolicy:getInstantSnapshotIamPolicy', __args__, opts=opts, typ=GetInstantSnapshotIamPolicyResult)
|
176
|
+
return __ret__.apply(lambda __response__: GetInstantSnapshotIamPolicyResult(
|
177
|
+
etag=pulumi.get(__response__, 'etag'),
|
178
|
+
id=pulumi.get(__response__, 'id'),
|
179
|
+
name=pulumi.get(__response__, 'name'),
|
180
|
+
policy_data=pulumi.get(__response__, 'policy_data'),
|
181
|
+
project=pulumi.get(__response__, 'project'),
|
182
|
+
zone=pulumi.get(__response__, 'zone')))
|