pulumi-gcp 7.30.0__py3-none-any.whl → 7.30.0a1719513455__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 +0 -32
- pulumi_gcp/artifactregistry/get_docker_image.py +2 -2
- pulumi_gcp/bigtable/gc_policy.py +14 -68
- pulumi_gcp/cloudfunctionsv2/_inputs.py +0 -97
- pulumi_gcp/cloudfunctionsv2/function.py +0 -232
- pulumi_gcp/cloudfunctionsv2/outputs.py +1 -129
- pulumi_gcp/compute/_inputs.py +0 -622
- pulumi_gcp/compute/address.py +7 -0
- pulumi_gcp/compute/backend_service.py +14 -0
- pulumi_gcp/compute/forwarding_rule.py +21 -0
- pulumi_gcp/compute/global_forwarding_rule.py +21 -0
- pulumi_gcp/compute/managed_ssl_certificate.py +7 -0
- pulumi_gcp/compute/manged_ssl_certificate.py +7 -0
- pulumi_gcp/compute/network_attachment.py +0 -16
- pulumi_gcp/compute/outputs.py +8 -504
- pulumi_gcp/compute/region_backend_service.py +14 -0
- pulumi_gcp/compute/region_disk_iam_binding.py +95 -122
- pulumi_gcp/compute/region_disk_iam_member.py +95 -122
- pulumi_gcp/compute/region_disk_iam_policy.py +88 -115
- pulumi_gcp/compute/region_ssl_certificate.py +7 -0
- pulumi_gcp/compute/ssl_certificate.py +7 -0
- pulumi_gcp/compute/target_https_proxy.py +1 -76
- pulumi_gcp/compute/url_map.py +0 -255
- pulumi_gcp/container/aws_cluster.py +2 -2
- pulumi_gcp/container/aws_node_pool.py +2 -2
- pulumi_gcp/container/azure_client.py +2 -2
- pulumi_gcp/container/azure_cluster.py +2 -2
- pulumi_gcp/container/azure_node_pool.py +2 -2
- pulumi_gcp/datafusion/_inputs.py +11 -163
- pulumi_gcp/datafusion/instance.py +0 -64
- pulumi_gcp/datafusion/outputs.py +7 -127
- pulumi_gcp/gkebackup/restore_plan_iam_binding.py +953 -328
- pulumi_gcp/gkebackup/restore_plan_iam_member.py +953 -328
- pulumi_gcp/gkebackup/restore_plan_iam_policy.py +953 -238
- pulumi_gcp/healthcare/_inputs.py +0 -43
- pulumi_gcp/healthcare/dataset.py +0 -110
- pulumi_gcp/healthcare/outputs.py +0 -43
- pulumi_gcp/identityplatform/config.py +1 -1
- pulumi_gcp/logging/billing_account_bucket_config.py +1 -1
- pulumi_gcp/logging/folder_bucket_config.py +1 -1
- pulumi_gcp/logging/organization_bucket_config.py +1 -1
- pulumi_gcp/monitoring/_inputs.py +0 -77
- pulumi_gcp/monitoring/outputs.py +0 -63
- pulumi_gcp/networksecurity/address_group_iam_binding.py +2 -289
- pulumi_gcp/networksecurity/address_group_iam_member.py +2 -289
- pulumi_gcp/pulumi-plugin.json +1 -1
- pulumi_gcp/securitycenter/instance_iam_binding.py +0 -64
- pulumi_gcp/securitycenter/instance_iam_member.py +0 -64
- pulumi_gcp/securitycenter/instance_iam_policy.py +0 -64
- pulumi_gcp/sourcerepo/repository_iam_binding.py +83 -92
- pulumi_gcp/sourcerepo/repository_iam_member.py +83 -92
- pulumi_gcp/sourcerepo/repository_iam_policy.py +76 -85
- pulumi_gcp/storage/__init__.py +0 -5
- pulumi_gcp/storage/_inputs.py +0 -130
- pulumi_gcp/storage/outputs.py +0 -76
- pulumi_gcp/vertex/_inputs.py +3 -3
- pulumi_gcp/vertex/ai_feature_online_store.py +9 -9
- pulumi_gcp/vertex/outputs.py +2 -2
- {pulumi_gcp-7.30.0.dist-info → pulumi_gcp-7.30.0a1719513455.dist-info}/METADATA +1 -1
- {pulumi_gcp-7.30.0.dist-info → pulumi_gcp-7.30.0a1719513455.dist-info}/RECORD +62 -67
- {pulumi_gcp-7.30.0.dist-info → pulumi_gcp-7.30.0a1719513455.dist-info}/WHEEL +1 -1
- pulumi_gcp/storage/get_managed_folder_iam_policy.py +0 -115
- pulumi_gcp/storage/managed_folder.py +0 -440
- pulumi_gcp/storage/managed_folder_iam_binding.py +0 -947
- pulumi_gcp/storage/managed_folder_iam_member.py +0 -947
- pulumi_gcp/storage/managed_folder_iam_policy.py +0 -766
- {pulumi_gcp-7.30.0.dist-info → pulumi_gcp-7.30.0a1719513455.dist-info}/top_level.txt +0 -0
@@ -1,115 +0,0 @@
|
|
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
|
-
'GetManagedFolderIamPolicyResult',
|
19
|
-
'AwaitableGetManagedFolderIamPolicyResult',
|
20
|
-
'get_managed_folder_iam_policy',
|
21
|
-
'get_managed_folder_iam_policy_output',
|
22
|
-
]
|
23
|
-
|
24
|
-
@pulumi.output_type
|
25
|
-
class GetManagedFolderIamPolicyResult:
|
26
|
-
"""
|
27
|
-
A collection of values returned by getManagedFolderIamPolicy.
|
28
|
-
"""
|
29
|
-
def __init__(__self__, bucket=None, etag=None, id=None, managed_folder=None, policy_data=None):
|
30
|
-
if bucket and not isinstance(bucket, str):
|
31
|
-
raise TypeError("Expected argument 'bucket' to be a str")
|
32
|
-
pulumi.set(__self__, "bucket", bucket)
|
33
|
-
if etag and not isinstance(etag, str):
|
34
|
-
raise TypeError("Expected argument 'etag' to be a str")
|
35
|
-
pulumi.set(__self__, "etag", etag)
|
36
|
-
if id and not isinstance(id, str):
|
37
|
-
raise TypeError("Expected argument 'id' to be a str")
|
38
|
-
pulumi.set(__self__, "id", id)
|
39
|
-
if managed_folder and not isinstance(managed_folder, str):
|
40
|
-
raise TypeError("Expected argument 'managed_folder' to be a str")
|
41
|
-
pulumi.set(__self__, "managed_folder", managed_folder)
|
42
|
-
if policy_data and not isinstance(policy_data, str):
|
43
|
-
raise TypeError("Expected argument 'policy_data' to be a str")
|
44
|
-
pulumi.set(__self__, "policy_data", policy_data)
|
45
|
-
|
46
|
-
@property
|
47
|
-
@pulumi.getter
|
48
|
-
def bucket(self) -> str:
|
49
|
-
return pulumi.get(self, "bucket")
|
50
|
-
|
51
|
-
@property
|
52
|
-
@pulumi.getter
|
53
|
-
def etag(self) -> str:
|
54
|
-
return pulumi.get(self, "etag")
|
55
|
-
|
56
|
-
@property
|
57
|
-
@pulumi.getter
|
58
|
-
def id(self) -> str:
|
59
|
-
"""
|
60
|
-
The provider-assigned unique ID for this managed resource.
|
61
|
-
"""
|
62
|
-
return pulumi.get(self, "id")
|
63
|
-
|
64
|
-
@property
|
65
|
-
@pulumi.getter(name="managedFolder")
|
66
|
-
def managed_folder(self) -> str:
|
67
|
-
return pulumi.get(self, "managed_folder")
|
68
|
-
|
69
|
-
@property
|
70
|
-
@pulumi.getter(name="policyData")
|
71
|
-
def policy_data(self) -> str:
|
72
|
-
return pulumi.get(self, "policy_data")
|
73
|
-
|
74
|
-
|
75
|
-
class AwaitableGetManagedFolderIamPolicyResult(GetManagedFolderIamPolicyResult):
|
76
|
-
# pylint: disable=using-constant-test
|
77
|
-
def __await__(self):
|
78
|
-
if False:
|
79
|
-
yield self
|
80
|
-
return GetManagedFolderIamPolicyResult(
|
81
|
-
bucket=self.bucket,
|
82
|
-
etag=self.etag,
|
83
|
-
id=self.id,
|
84
|
-
managed_folder=self.managed_folder,
|
85
|
-
policy_data=self.policy_data)
|
86
|
-
|
87
|
-
|
88
|
-
def get_managed_folder_iam_policy(bucket: Optional[str] = None,
|
89
|
-
managed_folder: Optional[str] = None,
|
90
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetManagedFolderIamPolicyResult:
|
91
|
-
"""
|
92
|
-
Use this data source to access information about an existing resource.
|
93
|
-
"""
|
94
|
-
__args__ = dict()
|
95
|
-
__args__['bucket'] = bucket
|
96
|
-
__args__['managedFolder'] = managed_folder
|
97
|
-
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
98
|
-
__ret__ = pulumi.runtime.invoke('gcp:storage/getManagedFolderIamPolicy:getManagedFolderIamPolicy', __args__, opts=opts, typ=GetManagedFolderIamPolicyResult).value
|
99
|
-
|
100
|
-
return AwaitableGetManagedFolderIamPolicyResult(
|
101
|
-
bucket=pulumi.get(__ret__, 'bucket'),
|
102
|
-
etag=pulumi.get(__ret__, 'etag'),
|
103
|
-
id=pulumi.get(__ret__, 'id'),
|
104
|
-
managed_folder=pulumi.get(__ret__, 'managed_folder'),
|
105
|
-
policy_data=pulumi.get(__ret__, 'policy_data'))
|
106
|
-
|
107
|
-
|
108
|
-
@_utilities.lift_output_func(get_managed_folder_iam_policy)
|
109
|
-
def get_managed_folder_iam_policy_output(bucket: Optional[pulumi.Input[str]] = None,
|
110
|
-
managed_folder: Optional[pulumi.Input[str]] = None,
|
111
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetManagedFolderIamPolicyResult]:
|
112
|
-
"""
|
113
|
-
Use this data source to access information about an existing resource.
|
114
|
-
"""
|
115
|
-
...
|
@@ -1,440 +0,0 @@
|
|
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__ = ['ManagedFolderArgs', 'ManagedFolder']
|
18
|
-
|
19
|
-
@pulumi.input_type
|
20
|
-
class ManagedFolderArgs:
|
21
|
-
def __init__(__self__, *,
|
22
|
-
bucket: pulumi.Input[str],
|
23
|
-
name: Optional[pulumi.Input[str]] = None):
|
24
|
-
"""
|
25
|
-
The set of arguments for constructing a ManagedFolder resource.
|
26
|
-
:param pulumi.Input[str] bucket: The name of the bucket that contains the managed folder.
|
27
|
-
:param pulumi.Input[str] name: The name of the managed folder expressed as a path. Must include
|
28
|
-
trailing '/'. For example, `example_dir/example_dir2/`.
|
29
|
-
|
30
|
-
|
31
|
-
- - -
|
32
|
-
"""
|
33
|
-
pulumi.set(__self__, "bucket", bucket)
|
34
|
-
if name is not None:
|
35
|
-
pulumi.set(__self__, "name", name)
|
36
|
-
|
37
|
-
@property
|
38
|
-
@pulumi.getter
|
39
|
-
def bucket(self) -> pulumi.Input[str]:
|
40
|
-
"""
|
41
|
-
The name of the bucket that contains the managed folder.
|
42
|
-
"""
|
43
|
-
return pulumi.get(self, "bucket")
|
44
|
-
|
45
|
-
@bucket.setter
|
46
|
-
def bucket(self, value: pulumi.Input[str]):
|
47
|
-
pulumi.set(self, "bucket", value)
|
48
|
-
|
49
|
-
@property
|
50
|
-
@pulumi.getter
|
51
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
52
|
-
"""
|
53
|
-
The name of the managed folder expressed as a path. Must include
|
54
|
-
trailing '/'. For example, `example_dir/example_dir2/`.
|
55
|
-
|
56
|
-
|
57
|
-
- - -
|
58
|
-
"""
|
59
|
-
return pulumi.get(self, "name")
|
60
|
-
|
61
|
-
@name.setter
|
62
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
63
|
-
pulumi.set(self, "name", value)
|
64
|
-
|
65
|
-
|
66
|
-
@pulumi.input_type
|
67
|
-
class _ManagedFolderState:
|
68
|
-
def __init__(__self__, *,
|
69
|
-
bucket: Optional[pulumi.Input[str]] = None,
|
70
|
-
create_time: Optional[pulumi.Input[str]] = None,
|
71
|
-
metageneration: Optional[pulumi.Input[str]] = None,
|
72
|
-
name: Optional[pulumi.Input[str]] = None,
|
73
|
-
self_link: Optional[pulumi.Input[str]] = None,
|
74
|
-
update_time: Optional[pulumi.Input[str]] = None):
|
75
|
-
"""
|
76
|
-
Input properties used for looking up and filtering ManagedFolder resources.
|
77
|
-
:param pulumi.Input[str] bucket: The name of the bucket that contains the managed folder.
|
78
|
-
:param pulumi.Input[str] create_time: The timestamp at which this managed folder was created.
|
79
|
-
:param pulumi.Input[str] metageneration: The metadata generation of the managed folder.
|
80
|
-
:param pulumi.Input[str] name: The name of the managed folder expressed as a path. Must include
|
81
|
-
trailing '/'. For example, `example_dir/example_dir2/`.
|
82
|
-
|
83
|
-
|
84
|
-
- - -
|
85
|
-
:param pulumi.Input[str] self_link: The URI of the created resource.
|
86
|
-
:param pulumi.Input[str] update_time: The timestamp at which this managed folder was most recently updated.
|
87
|
-
"""
|
88
|
-
if bucket is not None:
|
89
|
-
pulumi.set(__self__, "bucket", bucket)
|
90
|
-
if create_time is not None:
|
91
|
-
pulumi.set(__self__, "create_time", create_time)
|
92
|
-
if metageneration is not None:
|
93
|
-
pulumi.set(__self__, "metageneration", metageneration)
|
94
|
-
if name is not None:
|
95
|
-
pulumi.set(__self__, "name", name)
|
96
|
-
if self_link is not None:
|
97
|
-
pulumi.set(__self__, "self_link", self_link)
|
98
|
-
if update_time is not None:
|
99
|
-
pulumi.set(__self__, "update_time", update_time)
|
100
|
-
|
101
|
-
@property
|
102
|
-
@pulumi.getter
|
103
|
-
def bucket(self) -> Optional[pulumi.Input[str]]:
|
104
|
-
"""
|
105
|
-
The name of the bucket that contains the managed folder.
|
106
|
-
"""
|
107
|
-
return pulumi.get(self, "bucket")
|
108
|
-
|
109
|
-
@bucket.setter
|
110
|
-
def bucket(self, value: Optional[pulumi.Input[str]]):
|
111
|
-
pulumi.set(self, "bucket", value)
|
112
|
-
|
113
|
-
@property
|
114
|
-
@pulumi.getter(name="createTime")
|
115
|
-
def create_time(self) -> Optional[pulumi.Input[str]]:
|
116
|
-
"""
|
117
|
-
The timestamp at which this managed folder was created.
|
118
|
-
"""
|
119
|
-
return pulumi.get(self, "create_time")
|
120
|
-
|
121
|
-
@create_time.setter
|
122
|
-
def create_time(self, value: Optional[pulumi.Input[str]]):
|
123
|
-
pulumi.set(self, "create_time", value)
|
124
|
-
|
125
|
-
@property
|
126
|
-
@pulumi.getter
|
127
|
-
def metageneration(self) -> Optional[pulumi.Input[str]]:
|
128
|
-
"""
|
129
|
-
The metadata generation of the managed folder.
|
130
|
-
"""
|
131
|
-
return pulumi.get(self, "metageneration")
|
132
|
-
|
133
|
-
@metageneration.setter
|
134
|
-
def metageneration(self, value: Optional[pulumi.Input[str]]):
|
135
|
-
pulumi.set(self, "metageneration", value)
|
136
|
-
|
137
|
-
@property
|
138
|
-
@pulumi.getter
|
139
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
140
|
-
"""
|
141
|
-
The name of the managed folder expressed as a path. Must include
|
142
|
-
trailing '/'. For example, `example_dir/example_dir2/`.
|
143
|
-
|
144
|
-
|
145
|
-
- - -
|
146
|
-
"""
|
147
|
-
return pulumi.get(self, "name")
|
148
|
-
|
149
|
-
@name.setter
|
150
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
151
|
-
pulumi.set(self, "name", value)
|
152
|
-
|
153
|
-
@property
|
154
|
-
@pulumi.getter(name="selfLink")
|
155
|
-
def self_link(self) -> Optional[pulumi.Input[str]]:
|
156
|
-
"""
|
157
|
-
The URI of the created resource.
|
158
|
-
"""
|
159
|
-
return pulumi.get(self, "self_link")
|
160
|
-
|
161
|
-
@self_link.setter
|
162
|
-
def self_link(self, value: Optional[pulumi.Input[str]]):
|
163
|
-
pulumi.set(self, "self_link", value)
|
164
|
-
|
165
|
-
@property
|
166
|
-
@pulumi.getter(name="updateTime")
|
167
|
-
def update_time(self) -> Optional[pulumi.Input[str]]:
|
168
|
-
"""
|
169
|
-
The timestamp at which this managed folder was most recently updated.
|
170
|
-
"""
|
171
|
-
return pulumi.get(self, "update_time")
|
172
|
-
|
173
|
-
@update_time.setter
|
174
|
-
def update_time(self, value: Optional[pulumi.Input[str]]):
|
175
|
-
pulumi.set(self, "update_time", value)
|
176
|
-
|
177
|
-
|
178
|
-
class ManagedFolder(pulumi.CustomResource):
|
179
|
-
@overload
|
180
|
-
def __init__(__self__,
|
181
|
-
resource_name: str,
|
182
|
-
opts: Optional[pulumi.ResourceOptions] = None,
|
183
|
-
bucket: Optional[pulumi.Input[str]] = None,
|
184
|
-
name: Optional[pulumi.Input[str]] = None,
|
185
|
-
__props__=None):
|
186
|
-
"""
|
187
|
-
A Google Cloud Storage Managed Folder.
|
188
|
-
|
189
|
-
You can apply Identity and Access Management (IAM) policies to
|
190
|
-
managed folders to grant principals access only to the objects
|
191
|
-
within the managed folder, which lets you more finely control access
|
192
|
-
for specific data sets and tables within a bucket. You can nest
|
193
|
-
managed folders up to 15 levels deep, including the parent managed
|
194
|
-
folder.
|
195
|
-
|
196
|
-
Managed folders can only be created in buckets that have uniform
|
197
|
-
bucket-level access enabled.
|
198
|
-
|
199
|
-
To get more information about ManagedFolder, see:
|
200
|
-
|
201
|
-
* [API documentation](https://cloud.google.com/storage/docs/json_api/v1/managedFolder)
|
202
|
-
* How-to Guides
|
203
|
-
* [Official Documentation](https://cloud.google.com/storage/docs/managed-folders)
|
204
|
-
|
205
|
-
## Example Usage
|
206
|
-
|
207
|
-
### Storage Managed Folder Basic
|
208
|
-
|
209
|
-
```python
|
210
|
-
import pulumi
|
211
|
-
import pulumi_gcp as gcp
|
212
|
-
|
213
|
-
bucket = gcp.storage.Bucket("bucket",
|
214
|
-
name="my-bucket",
|
215
|
-
location="EU",
|
216
|
-
uniform_bucket_level_access=True)
|
217
|
-
folder = gcp.storage.ManagedFolder("folder",
|
218
|
-
bucket=bucket.name,
|
219
|
-
name="managed/folder/name/")
|
220
|
-
```
|
221
|
-
|
222
|
-
## Import
|
223
|
-
|
224
|
-
ManagedFolder can be imported using any of these accepted formats:
|
225
|
-
|
226
|
-
* `{{bucket}}/managedFolders/{{name}}`
|
227
|
-
|
228
|
-
* `{{bucket}}/{{name}}`
|
229
|
-
|
230
|
-
When using the `pulumi import` command, ManagedFolder can be imported using one of the formats above. For example:
|
231
|
-
|
232
|
-
```sh
|
233
|
-
$ pulumi import gcp:storage/managedFolder:ManagedFolder default {{bucket}}/managedFolders/{{name}}
|
234
|
-
```
|
235
|
-
|
236
|
-
```sh
|
237
|
-
$ pulumi import gcp:storage/managedFolder:ManagedFolder default {{bucket}}/{{name}}
|
238
|
-
```
|
239
|
-
|
240
|
-
:param str resource_name: The name of the resource.
|
241
|
-
:param pulumi.ResourceOptions opts: Options for the resource.
|
242
|
-
:param pulumi.Input[str] bucket: The name of the bucket that contains the managed folder.
|
243
|
-
:param pulumi.Input[str] name: The name of the managed folder expressed as a path. Must include
|
244
|
-
trailing '/'. For example, `example_dir/example_dir2/`.
|
245
|
-
|
246
|
-
|
247
|
-
- - -
|
248
|
-
"""
|
249
|
-
...
|
250
|
-
@overload
|
251
|
-
def __init__(__self__,
|
252
|
-
resource_name: str,
|
253
|
-
args: ManagedFolderArgs,
|
254
|
-
opts: Optional[pulumi.ResourceOptions] = None):
|
255
|
-
"""
|
256
|
-
A Google Cloud Storage Managed Folder.
|
257
|
-
|
258
|
-
You can apply Identity and Access Management (IAM) policies to
|
259
|
-
managed folders to grant principals access only to the objects
|
260
|
-
within the managed folder, which lets you more finely control access
|
261
|
-
for specific data sets and tables within a bucket. You can nest
|
262
|
-
managed folders up to 15 levels deep, including the parent managed
|
263
|
-
folder.
|
264
|
-
|
265
|
-
Managed folders can only be created in buckets that have uniform
|
266
|
-
bucket-level access enabled.
|
267
|
-
|
268
|
-
To get more information about ManagedFolder, see:
|
269
|
-
|
270
|
-
* [API documentation](https://cloud.google.com/storage/docs/json_api/v1/managedFolder)
|
271
|
-
* How-to Guides
|
272
|
-
* [Official Documentation](https://cloud.google.com/storage/docs/managed-folders)
|
273
|
-
|
274
|
-
## Example Usage
|
275
|
-
|
276
|
-
### Storage Managed Folder Basic
|
277
|
-
|
278
|
-
```python
|
279
|
-
import pulumi
|
280
|
-
import pulumi_gcp as gcp
|
281
|
-
|
282
|
-
bucket = gcp.storage.Bucket("bucket",
|
283
|
-
name="my-bucket",
|
284
|
-
location="EU",
|
285
|
-
uniform_bucket_level_access=True)
|
286
|
-
folder = gcp.storage.ManagedFolder("folder",
|
287
|
-
bucket=bucket.name,
|
288
|
-
name="managed/folder/name/")
|
289
|
-
```
|
290
|
-
|
291
|
-
## Import
|
292
|
-
|
293
|
-
ManagedFolder can be imported using any of these accepted formats:
|
294
|
-
|
295
|
-
* `{{bucket}}/managedFolders/{{name}}`
|
296
|
-
|
297
|
-
* `{{bucket}}/{{name}}`
|
298
|
-
|
299
|
-
When using the `pulumi import` command, ManagedFolder can be imported using one of the formats above. For example:
|
300
|
-
|
301
|
-
```sh
|
302
|
-
$ pulumi import gcp:storage/managedFolder:ManagedFolder default {{bucket}}/managedFolders/{{name}}
|
303
|
-
```
|
304
|
-
|
305
|
-
```sh
|
306
|
-
$ pulumi import gcp:storage/managedFolder:ManagedFolder default {{bucket}}/{{name}}
|
307
|
-
```
|
308
|
-
|
309
|
-
:param str resource_name: The name of the resource.
|
310
|
-
:param ManagedFolderArgs args: The arguments to use to populate this resource's properties.
|
311
|
-
:param pulumi.ResourceOptions opts: Options for the resource.
|
312
|
-
"""
|
313
|
-
...
|
314
|
-
def __init__(__self__, resource_name: str, *args, **kwargs):
|
315
|
-
resource_args, opts = _utilities.get_resource_args_opts(ManagedFolderArgs, pulumi.ResourceOptions, *args, **kwargs)
|
316
|
-
if resource_args is not None:
|
317
|
-
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
318
|
-
else:
|
319
|
-
__self__._internal_init(resource_name, *args, **kwargs)
|
320
|
-
|
321
|
-
def _internal_init(__self__,
|
322
|
-
resource_name: str,
|
323
|
-
opts: Optional[pulumi.ResourceOptions] = None,
|
324
|
-
bucket: Optional[pulumi.Input[str]] = None,
|
325
|
-
name: Optional[pulumi.Input[str]] = None,
|
326
|
-
__props__=None):
|
327
|
-
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
328
|
-
if not isinstance(opts, pulumi.ResourceOptions):
|
329
|
-
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
330
|
-
if opts.id is None:
|
331
|
-
if __props__ is not None:
|
332
|
-
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
333
|
-
__props__ = ManagedFolderArgs.__new__(ManagedFolderArgs)
|
334
|
-
|
335
|
-
if bucket is None and not opts.urn:
|
336
|
-
raise TypeError("Missing required property 'bucket'")
|
337
|
-
__props__.__dict__["bucket"] = bucket
|
338
|
-
__props__.__dict__["name"] = name
|
339
|
-
__props__.__dict__["create_time"] = None
|
340
|
-
__props__.__dict__["metageneration"] = None
|
341
|
-
__props__.__dict__["self_link"] = None
|
342
|
-
__props__.__dict__["update_time"] = None
|
343
|
-
super(ManagedFolder, __self__).__init__(
|
344
|
-
'gcp:storage/managedFolder:ManagedFolder',
|
345
|
-
resource_name,
|
346
|
-
__props__,
|
347
|
-
opts)
|
348
|
-
|
349
|
-
@staticmethod
|
350
|
-
def get(resource_name: str,
|
351
|
-
id: pulumi.Input[str],
|
352
|
-
opts: Optional[pulumi.ResourceOptions] = None,
|
353
|
-
bucket: Optional[pulumi.Input[str]] = None,
|
354
|
-
create_time: Optional[pulumi.Input[str]] = None,
|
355
|
-
metageneration: Optional[pulumi.Input[str]] = None,
|
356
|
-
name: Optional[pulumi.Input[str]] = None,
|
357
|
-
self_link: Optional[pulumi.Input[str]] = None,
|
358
|
-
update_time: Optional[pulumi.Input[str]] = None) -> 'ManagedFolder':
|
359
|
-
"""
|
360
|
-
Get an existing ManagedFolder resource's state with the given name, id, and optional extra
|
361
|
-
properties used to qualify the lookup.
|
362
|
-
|
363
|
-
:param str resource_name: The unique name of the resulting resource.
|
364
|
-
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
365
|
-
:param pulumi.ResourceOptions opts: Options for the resource.
|
366
|
-
:param pulumi.Input[str] bucket: The name of the bucket that contains the managed folder.
|
367
|
-
:param pulumi.Input[str] create_time: The timestamp at which this managed folder was created.
|
368
|
-
:param pulumi.Input[str] metageneration: The metadata generation of the managed folder.
|
369
|
-
:param pulumi.Input[str] name: The name of the managed folder expressed as a path. Must include
|
370
|
-
trailing '/'. For example, `example_dir/example_dir2/`.
|
371
|
-
|
372
|
-
|
373
|
-
- - -
|
374
|
-
:param pulumi.Input[str] self_link: The URI of the created resource.
|
375
|
-
:param pulumi.Input[str] update_time: The timestamp at which this managed folder was most recently updated.
|
376
|
-
"""
|
377
|
-
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
378
|
-
|
379
|
-
__props__ = _ManagedFolderState.__new__(_ManagedFolderState)
|
380
|
-
|
381
|
-
__props__.__dict__["bucket"] = bucket
|
382
|
-
__props__.__dict__["create_time"] = create_time
|
383
|
-
__props__.__dict__["metageneration"] = metageneration
|
384
|
-
__props__.__dict__["name"] = name
|
385
|
-
__props__.__dict__["self_link"] = self_link
|
386
|
-
__props__.__dict__["update_time"] = update_time
|
387
|
-
return ManagedFolder(resource_name, opts=opts, __props__=__props__)
|
388
|
-
|
389
|
-
@property
|
390
|
-
@pulumi.getter
|
391
|
-
def bucket(self) -> pulumi.Output[str]:
|
392
|
-
"""
|
393
|
-
The name of the bucket that contains the managed folder.
|
394
|
-
"""
|
395
|
-
return pulumi.get(self, "bucket")
|
396
|
-
|
397
|
-
@property
|
398
|
-
@pulumi.getter(name="createTime")
|
399
|
-
def create_time(self) -> pulumi.Output[str]:
|
400
|
-
"""
|
401
|
-
The timestamp at which this managed folder was created.
|
402
|
-
"""
|
403
|
-
return pulumi.get(self, "create_time")
|
404
|
-
|
405
|
-
@property
|
406
|
-
@pulumi.getter
|
407
|
-
def metageneration(self) -> pulumi.Output[str]:
|
408
|
-
"""
|
409
|
-
The metadata generation of the managed folder.
|
410
|
-
"""
|
411
|
-
return pulumi.get(self, "metageneration")
|
412
|
-
|
413
|
-
@property
|
414
|
-
@pulumi.getter
|
415
|
-
def name(self) -> pulumi.Output[str]:
|
416
|
-
"""
|
417
|
-
The name of the managed folder expressed as a path. Must include
|
418
|
-
trailing '/'. For example, `example_dir/example_dir2/`.
|
419
|
-
|
420
|
-
|
421
|
-
- - -
|
422
|
-
"""
|
423
|
-
return pulumi.get(self, "name")
|
424
|
-
|
425
|
-
@property
|
426
|
-
@pulumi.getter(name="selfLink")
|
427
|
-
def self_link(self) -> pulumi.Output[str]:
|
428
|
-
"""
|
429
|
-
The URI of the created resource.
|
430
|
-
"""
|
431
|
-
return pulumi.get(self, "self_link")
|
432
|
-
|
433
|
-
@property
|
434
|
-
@pulumi.getter(name="updateTime")
|
435
|
-
def update_time(self) -> pulumi.Output[str]:
|
436
|
-
"""
|
437
|
-
The timestamp at which this managed folder was most recently updated.
|
438
|
-
"""
|
439
|
-
return pulumi.get(self, "update_time")
|
440
|
-
|