pulumi-gcp 7.22.0a1715345822__py3-none-any.whl → 7.23.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pulumi_gcp/__init__.py +35 -0
- pulumi_gcp/alloydb/_inputs.py +139 -0
- pulumi_gcp/alloydb/cluster.py +54 -0
- pulumi_gcp/alloydb/outputs.py +145 -0
- pulumi_gcp/applicationintegration/auth_config.py +2 -6
- pulumi_gcp/applicationintegration/client.py +133 -18
- pulumi_gcp/bigquery/dataset.py +2 -2
- pulumi_gcp/bigquery/job.py +16 -20
- pulumi_gcp/bigquery/table.py +47 -0
- pulumi_gcp/bigtable/__init__.py +1 -0
- pulumi_gcp/bigtable/_inputs.py +101 -0
- pulumi_gcp/bigtable/authorized_view.py +440 -0
- pulumi_gcp/bigtable/outputs.py +119 -0
- pulumi_gcp/certificateauthority/certificate_template.py +70 -0
- pulumi_gcp/cloudbuildv2/repository.py +2 -2
- pulumi_gcp/clouddeploy/_inputs.py +96 -0
- pulumi_gcp/clouddeploy/custom_target_type.py +46 -0
- pulumi_gcp/clouddeploy/delivery_pipeline.py +7 -7
- pulumi_gcp/clouddeploy/outputs.py +96 -1
- pulumi_gcp/clouddeploy/target.py +54 -7
- pulumi_gcp/cloudrunv2/job.py +2 -4
- pulumi_gcp/cloudrunv2/service.py +2 -4
- pulumi_gcp/compute/_inputs.py +693 -0
- pulumi_gcp/compute/firewall_policy_rule.py +125 -10
- pulumi_gcp/compute/network_firewall_policy_rule.py +125 -10
- pulumi_gcp/compute/outputs.py +688 -0
- pulumi_gcp/compute/region_network_firewall_policy_rule.py +125 -10
- pulumi_gcp/compute/region_security_policy_rule.py +230 -1
- pulumi_gcp/compute/router_peer.py +54 -14
- pulumi_gcp/config/__init__.pyi +2 -0
- pulumi_gcp/config/vars.py +4 -0
- pulumi_gcp/container/_inputs.py +236 -3
- pulumi_gcp/container/outputs.py +365 -4
- pulumi_gcp/dataflow/flex_template_job.py +28 -28
- pulumi_gcp/dataflow/job.py +28 -14
- pulumi_gcp/essentialcontacts/document_ai_warehouse_document_schema.py +0 -528
- pulumi_gcp/firebaserules/release.py +2 -2
- pulumi_gcp/iam/_inputs.py +191 -2
- pulumi_gcp/iam/outputs.py +197 -2
- pulumi_gcp/iam/workforce_pool_provider.py +245 -0
- pulumi_gcp/integrationconnectors/__init__.py +1 -0
- pulumi_gcp/integrationconnectors/managed_zone.py +753 -0
- pulumi_gcp/networkconnectivity/__init__.py +1 -0
- pulumi_gcp/networkconnectivity/regional_endpoint.py +946 -0
- pulumi_gcp/networksecurity/firewall_endpoint.py +34 -0
- pulumi_gcp/networksecurity/firewall_endpoint_association.py +24 -0
- pulumi_gcp/networksecurity/security_profile.py +16 -0
- pulumi_gcp/networksecurity/security_profile_group.py +18 -0
- pulumi_gcp/networksecurity/tls_inspection_policy.py +16 -0
- pulumi_gcp/orgpolicy/policy.py +2 -2
- pulumi_gcp/privilegedaccessmanager/__init__.py +10 -0
- pulumi_gcp/privilegedaccessmanager/_inputs.py +420 -0
- pulumi_gcp/privilegedaccessmanager/entitlement.py +852 -0
- pulumi_gcp/privilegedaccessmanager/outputs.py +491 -0
- pulumi_gcp/provider.py +20 -0
- pulumi_gcp/pubsub/subscription.py +4 -4
- pulumi_gcp/pulumi-plugin.json +2 -1
- pulumi_gcp/redis/cluster.py +69 -2
- pulumi_gcp/storage/__init__.py +1 -0
- pulumi_gcp/storage/get_buckets.py +138 -0
- pulumi_gcp/storage/outputs.py +63 -0
- {pulumi_gcp-7.22.0a1715345822.dist-info → pulumi_gcp-7.23.0.dist-info}/METADATA +1 -1
- {pulumi_gcp-7.22.0a1715345822.dist-info → pulumi_gcp-7.23.0.dist-info}/RECORD +65 -57
- {pulumi_gcp-7.22.0a1715345822.dist-info → pulumi_gcp-7.23.0.dist-info}/WHEEL +0 -0
- {pulumi_gcp-7.22.0a1715345822.dist-info → pulumi_gcp-7.23.0.dist-info}/top_level.txt +0 -0
pulumi_gcp/redis/cluster.py
CHANGED
@@ -22,6 +22,7 @@ class ClusterArgs:
|
|
22
22
|
name: Optional[pulumi.Input[str]] = None,
|
23
23
|
node_type: Optional[pulumi.Input[str]] = None,
|
24
24
|
project: Optional[pulumi.Input[str]] = None,
|
25
|
+
redis_configs: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
25
26
|
region: Optional[pulumi.Input[str]] = None,
|
26
27
|
replica_count: Optional[pulumi.Input[int]] = None,
|
27
28
|
transit_encryption_mode: Optional[pulumi.Input[str]] = None):
|
@@ -39,6 +40,9 @@ class ClusterArgs:
|
|
39
40
|
projects/{projectId}/locations/{locationId}/clusters/{clusterId}
|
40
41
|
:param pulumi.Input[str] node_type: The nodeType for the Redis cluster. If not provided, REDIS_HIGHMEM_MEDIUM will be used as default Possible values:
|
41
42
|
["REDIS_SHARED_CORE_NANO", "REDIS_HIGHMEM_MEDIUM", "REDIS_HIGHMEM_XLARGE", "REDIS_STANDARD_SMALL"]
|
43
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] redis_configs: Configure Redis Cluster behavior using a subset of native Redis configuration parameters. Please check Memorystore
|
44
|
+
documentation for the list of supported parameters:
|
45
|
+
https://cloud.google.com/memorystore/docs/cluster/supported-instance-configurations
|
42
46
|
:param pulumi.Input[str] region: The name of the region of the Redis cluster.
|
43
47
|
:param pulumi.Input[int] replica_count: Optional. The number of replica nodes per shard.
|
44
48
|
:param pulumi.Input[str] transit_encryption_mode: Optional. The in-transit encryption for the Redis cluster. If not provided, encryption is disabled for the cluster.
|
@@ -55,6 +59,8 @@ class ClusterArgs:
|
|
55
59
|
pulumi.set(__self__, "node_type", node_type)
|
56
60
|
if project is not None:
|
57
61
|
pulumi.set(__self__, "project", project)
|
62
|
+
if redis_configs is not None:
|
63
|
+
pulumi.set(__self__, "redis_configs", redis_configs)
|
58
64
|
if region is not None:
|
59
65
|
pulumi.set(__self__, "region", region)
|
60
66
|
if replica_count is not None:
|
@@ -138,6 +144,20 @@ class ClusterArgs:
|
|
138
144
|
def project(self, value: Optional[pulumi.Input[str]]):
|
139
145
|
pulumi.set(self, "project", value)
|
140
146
|
|
147
|
+
@property
|
148
|
+
@pulumi.getter(name="redisConfigs")
|
149
|
+
def redis_configs(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
150
|
+
"""
|
151
|
+
Configure Redis Cluster behavior using a subset of native Redis configuration parameters. Please check Memorystore
|
152
|
+
documentation for the list of supported parameters:
|
153
|
+
https://cloud.google.com/memorystore/docs/cluster/supported-instance-configurations
|
154
|
+
"""
|
155
|
+
return pulumi.get(self, "redis_configs")
|
156
|
+
|
157
|
+
@redis_configs.setter
|
158
|
+
def redis_configs(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
159
|
+
pulumi.set(self, "redis_configs", value)
|
160
|
+
|
141
161
|
@property
|
142
162
|
@pulumi.getter
|
143
163
|
def region(self) -> Optional[pulumi.Input[str]]:
|
@@ -189,6 +209,7 @@ class _ClusterState:
|
|
189
209
|
project: Optional[pulumi.Input[str]] = None,
|
190
210
|
psc_configs: Optional[pulumi.Input[Sequence[pulumi.Input['ClusterPscConfigArgs']]]] = None,
|
191
211
|
psc_connections: Optional[pulumi.Input[Sequence[pulumi.Input['ClusterPscConnectionArgs']]]] = None,
|
212
|
+
redis_configs: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
192
213
|
region: Optional[pulumi.Input[str]] = None,
|
193
214
|
replica_count: Optional[pulumi.Input[int]] = None,
|
194
215
|
shard_count: Optional[pulumi.Input[int]] = None,
|
@@ -220,6 +241,9 @@ class _ClusterState:
|
|
220
241
|
Structure is documented below.
|
221
242
|
:param pulumi.Input[Sequence[pulumi.Input['ClusterPscConnectionArgs']]] psc_connections: Output only. PSC connections for discovery of the cluster topology and accessing the cluster.
|
222
243
|
Structure is documented below.
|
244
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] redis_configs: Configure Redis Cluster behavior using a subset of native Redis configuration parameters. Please check Memorystore
|
245
|
+
documentation for the list of supported parameters:
|
246
|
+
https://cloud.google.com/memorystore/docs/cluster/supported-instance-configurations
|
223
247
|
:param pulumi.Input[str] region: The name of the region of the Redis cluster.
|
224
248
|
:param pulumi.Input[int] replica_count: Optional. The number of replica nodes per shard.
|
225
249
|
:param pulumi.Input[int] shard_count: Required. Number of shards for the Redis cluster.
|
@@ -250,6 +274,8 @@ class _ClusterState:
|
|
250
274
|
pulumi.set(__self__, "psc_configs", psc_configs)
|
251
275
|
if psc_connections is not None:
|
252
276
|
pulumi.set(__self__, "psc_connections", psc_connections)
|
277
|
+
if redis_configs is not None:
|
278
|
+
pulumi.set(__self__, "redis_configs", redis_configs)
|
253
279
|
if region is not None:
|
254
280
|
pulumi.set(__self__, "region", region)
|
255
281
|
if replica_count is not None:
|
@@ -385,6 +411,20 @@ class _ClusterState:
|
|
385
411
|
def psc_connections(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ClusterPscConnectionArgs']]]]):
|
386
412
|
pulumi.set(self, "psc_connections", value)
|
387
413
|
|
414
|
+
@property
|
415
|
+
@pulumi.getter(name="redisConfigs")
|
416
|
+
def redis_configs(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
417
|
+
"""
|
418
|
+
Configure Redis Cluster behavior using a subset of native Redis configuration parameters. Please check Memorystore
|
419
|
+
documentation for the list of supported parameters:
|
420
|
+
https://cloud.google.com/memorystore/docs/cluster/supported-instance-configurations
|
421
|
+
"""
|
422
|
+
return pulumi.get(self, "redis_configs")
|
423
|
+
|
424
|
+
@redis_configs.setter
|
425
|
+
def redis_configs(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
426
|
+
pulumi.set(self, "redis_configs", value)
|
427
|
+
|
388
428
|
@property
|
389
429
|
@pulumi.getter
|
390
430
|
def region(self) -> Optional[pulumi.Input[str]]:
|
@@ -495,6 +535,7 @@ class Cluster(pulumi.CustomResource):
|
|
495
535
|
node_type: Optional[pulumi.Input[str]] = None,
|
496
536
|
project: Optional[pulumi.Input[str]] = None,
|
497
537
|
psc_configs: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ClusterPscConfigArgs']]]]] = None,
|
538
|
+
redis_configs: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
498
539
|
region: Optional[pulumi.Input[str]] = None,
|
499
540
|
replica_count: Optional[pulumi.Input[int]] = None,
|
500
541
|
shard_count: Optional[pulumi.Input[int]] = None,
|
@@ -530,7 +571,10 @@ class Cluster(pulumi.CustomResource):
|
|
530
571
|
replica_count=1,
|
531
572
|
node_type="REDIS_SHARED_CORE_NANO",
|
532
573
|
transit_encryption_mode="TRANSIT_ENCRYPTION_MODE_DISABLED",
|
533
|
-
authorization_mode="AUTH_MODE_DISABLED"
|
574
|
+
authorization_mode="AUTH_MODE_DISABLED",
|
575
|
+
redis_configs={
|
576
|
+
"maxmemory-policy": "volatile-ttl",
|
577
|
+
})
|
534
578
|
producer_subnet = gcp.compute.Subnetwork("producer_subnet",
|
535
579
|
name="mysubnet",
|
536
580
|
ip_cidr_range="10.0.0.248/29",
|
@@ -590,6 +634,9 @@ class Cluster(pulumi.CustomResource):
|
|
590
634
|
network addresses will be designated to the cluster for client access.
|
591
635
|
Currently, only one PscConfig is supported.
|
592
636
|
Structure is documented below.
|
637
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] redis_configs: Configure Redis Cluster behavior using a subset of native Redis configuration parameters. Please check Memorystore
|
638
|
+
documentation for the list of supported parameters:
|
639
|
+
https://cloud.google.com/memorystore/docs/cluster/supported-instance-configurations
|
593
640
|
:param pulumi.Input[str] region: The name of the region of the Redis cluster.
|
594
641
|
:param pulumi.Input[int] replica_count: Optional. The number of replica nodes per shard.
|
595
642
|
:param pulumi.Input[int] shard_count: Required. Number of shards for the Redis cluster.
|
@@ -633,7 +680,10 @@ class Cluster(pulumi.CustomResource):
|
|
633
680
|
replica_count=1,
|
634
681
|
node_type="REDIS_SHARED_CORE_NANO",
|
635
682
|
transit_encryption_mode="TRANSIT_ENCRYPTION_MODE_DISABLED",
|
636
|
-
authorization_mode="AUTH_MODE_DISABLED"
|
683
|
+
authorization_mode="AUTH_MODE_DISABLED",
|
684
|
+
redis_configs={
|
685
|
+
"maxmemory-policy": "volatile-ttl",
|
686
|
+
})
|
637
687
|
producer_subnet = gcp.compute.Subnetwork("producer_subnet",
|
638
688
|
name="mysubnet",
|
639
689
|
ip_cidr_range="10.0.0.248/29",
|
@@ -700,6 +750,7 @@ class Cluster(pulumi.CustomResource):
|
|
700
750
|
node_type: Optional[pulumi.Input[str]] = None,
|
701
751
|
project: Optional[pulumi.Input[str]] = None,
|
702
752
|
psc_configs: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ClusterPscConfigArgs']]]]] = None,
|
753
|
+
redis_configs: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
703
754
|
region: Optional[pulumi.Input[str]] = None,
|
704
755
|
replica_count: Optional[pulumi.Input[int]] = None,
|
705
756
|
shard_count: Optional[pulumi.Input[int]] = None,
|
@@ -720,6 +771,7 @@ class Cluster(pulumi.CustomResource):
|
|
720
771
|
if psc_configs is None and not opts.urn:
|
721
772
|
raise TypeError("Missing required property 'psc_configs'")
|
722
773
|
__props__.__dict__["psc_configs"] = psc_configs
|
774
|
+
__props__.__dict__["redis_configs"] = redis_configs
|
723
775
|
__props__.__dict__["region"] = region
|
724
776
|
__props__.__dict__["replica_count"] = replica_count
|
725
777
|
if shard_count is None and not opts.urn:
|
@@ -753,6 +805,7 @@ class Cluster(pulumi.CustomResource):
|
|
753
805
|
project: Optional[pulumi.Input[str]] = None,
|
754
806
|
psc_configs: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ClusterPscConfigArgs']]]]] = None,
|
755
807
|
psc_connections: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ClusterPscConnectionArgs']]]]] = None,
|
808
|
+
redis_configs: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
756
809
|
region: Optional[pulumi.Input[str]] = None,
|
757
810
|
replica_count: Optional[pulumi.Input[int]] = None,
|
758
811
|
shard_count: Optional[pulumi.Input[int]] = None,
|
@@ -789,6 +842,9 @@ class Cluster(pulumi.CustomResource):
|
|
789
842
|
Structure is documented below.
|
790
843
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ClusterPscConnectionArgs']]]] psc_connections: Output only. PSC connections for discovery of the cluster topology and accessing the cluster.
|
791
844
|
Structure is documented below.
|
845
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] redis_configs: Configure Redis Cluster behavior using a subset of native Redis configuration parameters. Please check Memorystore
|
846
|
+
documentation for the list of supported parameters:
|
847
|
+
https://cloud.google.com/memorystore/docs/cluster/supported-instance-configurations
|
792
848
|
:param pulumi.Input[str] region: The name of the region of the Redis cluster.
|
793
849
|
:param pulumi.Input[int] replica_count: Optional. The number of replica nodes per shard.
|
794
850
|
:param pulumi.Input[int] shard_count: Required. Number of shards for the Redis cluster.
|
@@ -814,6 +870,7 @@ class Cluster(pulumi.CustomResource):
|
|
814
870
|
__props__.__dict__["project"] = project
|
815
871
|
__props__.__dict__["psc_configs"] = psc_configs
|
816
872
|
__props__.__dict__["psc_connections"] = psc_connections
|
873
|
+
__props__.__dict__["redis_configs"] = redis_configs
|
817
874
|
__props__.__dict__["region"] = region
|
818
875
|
__props__.__dict__["replica_count"] = replica_count
|
819
876
|
__props__.__dict__["shard_count"] = shard_count
|
@@ -906,6 +963,16 @@ class Cluster(pulumi.CustomResource):
|
|
906
963
|
"""
|
907
964
|
return pulumi.get(self, "psc_connections")
|
908
965
|
|
966
|
+
@property
|
967
|
+
@pulumi.getter(name="redisConfigs")
|
968
|
+
def redis_configs(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
|
969
|
+
"""
|
970
|
+
Configure Redis Cluster behavior using a subset of native Redis configuration parameters. Please check Memorystore
|
971
|
+
documentation for the list of supported parameters:
|
972
|
+
https://cloud.google.com/memorystore/docs/cluster/supported-instance-configurations
|
973
|
+
"""
|
974
|
+
return pulumi.get(self, "redis_configs")
|
975
|
+
|
909
976
|
@property
|
910
977
|
@pulumi.getter
|
911
978
|
def region(self) -> pulumi.Output[str]:
|
pulumi_gcp/storage/__init__.py
CHANGED
@@ -19,6 +19,7 @@ from .get_bucket_iam_policy import *
|
|
19
19
|
from .get_bucket_object import *
|
20
20
|
from .get_bucket_object_content import *
|
21
21
|
from .get_bucket_objects import *
|
22
|
+
from .get_buckets import *
|
22
23
|
from .get_object_signed_url import *
|
23
24
|
from .get_project_service_account import *
|
24
25
|
from .get_transfer_project_service_account import *
|
@@ -0,0 +1,138 @@
|
|
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
|
+
'GetBucketsResult',
|
15
|
+
'AwaitableGetBucketsResult',
|
16
|
+
'get_buckets',
|
17
|
+
'get_buckets_output',
|
18
|
+
]
|
19
|
+
|
20
|
+
@pulumi.output_type
|
21
|
+
class GetBucketsResult:
|
22
|
+
"""
|
23
|
+
A collection of values returned by getBuckets.
|
24
|
+
"""
|
25
|
+
def __init__(__self__, buckets=None, id=None, prefix=None, project=None):
|
26
|
+
if buckets and not isinstance(buckets, list):
|
27
|
+
raise TypeError("Expected argument 'buckets' to be a list")
|
28
|
+
pulumi.set(__self__, "buckets", buckets)
|
29
|
+
if id and not isinstance(id, str):
|
30
|
+
raise TypeError("Expected argument 'id' to be a str")
|
31
|
+
pulumi.set(__self__, "id", id)
|
32
|
+
if prefix and not isinstance(prefix, str):
|
33
|
+
raise TypeError("Expected argument 'prefix' to be a str")
|
34
|
+
pulumi.set(__self__, "prefix", prefix)
|
35
|
+
if project and not isinstance(project, str):
|
36
|
+
raise TypeError("Expected argument 'project' to be a str")
|
37
|
+
pulumi.set(__self__, "project", project)
|
38
|
+
|
39
|
+
@property
|
40
|
+
@pulumi.getter
|
41
|
+
def buckets(self) -> Sequence['outputs.GetBucketsBucketResult']:
|
42
|
+
"""
|
43
|
+
A list of all retrieved GCS buckets. Structure is defined below.
|
44
|
+
"""
|
45
|
+
return pulumi.get(self, "buckets")
|
46
|
+
|
47
|
+
@property
|
48
|
+
@pulumi.getter
|
49
|
+
def id(self) -> str:
|
50
|
+
"""
|
51
|
+
The provider-assigned unique ID for this managed resource.
|
52
|
+
"""
|
53
|
+
return pulumi.get(self, "id")
|
54
|
+
|
55
|
+
@property
|
56
|
+
@pulumi.getter
|
57
|
+
def prefix(self) -> Optional[str]:
|
58
|
+
return pulumi.get(self, "prefix")
|
59
|
+
|
60
|
+
@property
|
61
|
+
@pulumi.getter
|
62
|
+
def project(self) -> Optional[str]:
|
63
|
+
return pulumi.get(self, "project")
|
64
|
+
|
65
|
+
|
66
|
+
class AwaitableGetBucketsResult(GetBucketsResult):
|
67
|
+
# pylint: disable=using-constant-test
|
68
|
+
def __await__(self):
|
69
|
+
if False:
|
70
|
+
yield self
|
71
|
+
return GetBucketsResult(
|
72
|
+
buckets=self.buckets,
|
73
|
+
id=self.id,
|
74
|
+
prefix=self.prefix,
|
75
|
+
project=self.project)
|
76
|
+
|
77
|
+
|
78
|
+
def get_buckets(prefix: Optional[str] = None,
|
79
|
+
project: Optional[str] = None,
|
80
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetBucketsResult:
|
81
|
+
"""
|
82
|
+
Gets a list of existing GCS buckets.
|
83
|
+
See [the official documentation](https://cloud.google.com/storage/docs/introduction)
|
84
|
+
and [API](https://cloud.google.com/storage/docs/json_api/v1/buckets/list).
|
85
|
+
|
86
|
+
## Example Usage
|
87
|
+
|
88
|
+
Example GCS buckets.
|
89
|
+
|
90
|
+
```python
|
91
|
+
import pulumi
|
92
|
+
import pulumi_gcp as gcp
|
93
|
+
|
94
|
+
example = gcp.storage.get_buckets(project="example-project")
|
95
|
+
```
|
96
|
+
|
97
|
+
|
98
|
+
:param str prefix: Filter results to buckets whose names begin with this prefix.
|
99
|
+
:param str project: The ID of the project. If it is not provided, the provider project is used.
|
100
|
+
"""
|
101
|
+
__args__ = dict()
|
102
|
+
__args__['prefix'] = prefix
|
103
|
+
__args__['project'] = project
|
104
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
105
|
+
__ret__ = pulumi.runtime.invoke('gcp:storage/getBuckets:getBuckets', __args__, opts=opts, typ=GetBucketsResult).value
|
106
|
+
|
107
|
+
return AwaitableGetBucketsResult(
|
108
|
+
buckets=pulumi.get(__ret__, 'buckets'),
|
109
|
+
id=pulumi.get(__ret__, 'id'),
|
110
|
+
prefix=pulumi.get(__ret__, 'prefix'),
|
111
|
+
project=pulumi.get(__ret__, 'project'))
|
112
|
+
|
113
|
+
|
114
|
+
@_utilities.lift_output_func(get_buckets)
|
115
|
+
def get_buckets_output(prefix: Optional[pulumi.Input[Optional[str]]] = None,
|
116
|
+
project: Optional[pulumi.Input[Optional[str]]] = None,
|
117
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetBucketsResult]:
|
118
|
+
"""
|
119
|
+
Gets a list of existing GCS buckets.
|
120
|
+
See [the official documentation](https://cloud.google.com/storage/docs/introduction)
|
121
|
+
and [API](https://cloud.google.com/storage/docs/json_api/v1/buckets/list).
|
122
|
+
|
123
|
+
## Example Usage
|
124
|
+
|
125
|
+
Example GCS buckets.
|
126
|
+
|
127
|
+
```python
|
128
|
+
import pulumi
|
129
|
+
import pulumi_gcp as gcp
|
130
|
+
|
131
|
+
example = gcp.storage.get_buckets(project="example-project")
|
132
|
+
```
|
133
|
+
|
134
|
+
|
135
|
+
:param str prefix: Filter results to buckets whose names begin with this prefix.
|
136
|
+
:param str project: The ID of the project. If it is not provided, the provider project is used.
|
137
|
+
"""
|
138
|
+
...
|
pulumi_gcp/storage/outputs.py
CHANGED
@@ -72,6 +72,7 @@ __all__ = [
|
|
72
72
|
'GetBucketSoftDeletePolicyResult',
|
73
73
|
'GetBucketVersioningResult',
|
74
74
|
'GetBucketWebsiteResult',
|
75
|
+
'GetBucketsBucketResult',
|
75
76
|
]
|
76
77
|
|
77
78
|
@pulumi.output_type
|
@@ -3223,3 +3224,65 @@ class GetBucketWebsiteResult(dict):
|
|
3223
3224
|
return pulumi.get(self, "not_found_page")
|
3224
3225
|
|
3225
3226
|
|
3227
|
+
@pulumi.output_type
|
3228
|
+
class GetBucketsBucketResult(dict):
|
3229
|
+
def __init__(__self__, *,
|
3230
|
+
labels: Mapping[str, str],
|
3231
|
+
location: str,
|
3232
|
+
name: str,
|
3233
|
+
self_link: str,
|
3234
|
+
storage_class: str):
|
3235
|
+
"""
|
3236
|
+
:param Mapping[str, str] labels: User-provided bucket labels, in key/value pairs.
|
3237
|
+
:param str location: The location of the bucket.
|
3238
|
+
:param str name: The name of the bucket.
|
3239
|
+
:param str self_link: A url reference to the bucket.
|
3240
|
+
:param str storage_class: The [StorageClass](https://cloud.google.com/storage/docs/storage-classes) of the bucket.
|
3241
|
+
"""
|
3242
|
+
pulumi.set(__self__, "labels", labels)
|
3243
|
+
pulumi.set(__self__, "location", location)
|
3244
|
+
pulumi.set(__self__, "name", name)
|
3245
|
+
pulumi.set(__self__, "self_link", self_link)
|
3246
|
+
pulumi.set(__self__, "storage_class", storage_class)
|
3247
|
+
|
3248
|
+
@property
|
3249
|
+
@pulumi.getter
|
3250
|
+
def labels(self) -> Mapping[str, str]:
|
3251
|
+
"""
|
3252
|
+
User-provided bucket labels, in key/value pairs.
|
3253
|
+
"""
|
3254
|
+
return pulumi.get(self, "labels")
|
3255
|
+
|
3256
|
+
@property
|
3257
|
+
@pulumi.getter
|
3258
|
+
def location(self) -> str:
|
3259
|
+
"""
|
3260
|
+
The location of the bucket.
|
3261
|
+
"""
|
3262
|
+
return pulumi.get(self, "location")
|
3263
|
+
|
3264
|
+
@property
|
3265
|
+
@pulumi.getter
|
3266
|
+
def name(self) -> str:
|
3267
|
+
"""
|
3268
|
+
The name of the bucket.
|
3269
|
+
"""
|
3270
|
+
return pulumi.get(self, "name")
|
3271
|
+
|
3272
|
+
@property
|
3273
|
+
@pulumi.getter(name="selfLink")
|
3274
|
+
def self_link(self) -> str:
|
3275
|
+
"""
|
3276
|
+
A url reference to the bucket.
|
3277
|
+
"""
|
3278
|
+
return pulumi.get(self, "self_link")
|
3279
|
+
|
3280
|
+
@property
|
3281
|
+
@pulumi.getter(name="storageClass")
|
3282
|
+
def storage_class(self) -> str:
|
3283
|
+
"""
|
3284
|
+
The [StorageClass](https://cloud.google.com/storage/docs/storage-classes) of the bucket.
|
3285
|
+
"""
|
3286
|
+
return pulumi.get(self, "storage_class")
|
3287
|
+
|
3288
|
+
|