pulumi-gcp 7.16.0__py3-none-any.whl → 7.16.0a1711520590__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 -8
- pulumi_gcp/accesscontextmanager/__init__.py +0 -1
- pulumi_gcp/accesscontextmanager/service_perimeter_egress_policy.py +0 -80
- pulumi_gcp/accesscontextmanager/service_perimeter_ingress_policy.py +0 -86
- pulumi_gcp/accesscontextmanager/service_perimeter_resource.py +2 -4
- pulumi_gcp/cloudquota/__init__.py +0 -1
- pulumi_gcp/cloudquota/outputs.py +0 -270
- pulumi_gcp/cloudrunv2/_inputs.py +2 -59
- pulumi_gcp/cloudrunv2/outputs.py +4 -107
- pulumi_gcp/cloudrunv2/service.py +6 -6
- pulumi_gcp/composer/_inputs.py +0 -16
- pulumi_gcp/composer/outputs.py +0 -23
- pulumi_gcp/compute/_inputs.py +7 -105
- pulumi_gcp/compute/outputs.py +9 -140
- pulumi_gcp/compute/region_url_map.py +0 -152
- pulumi_gcp/dataform/repository.py +74 -4
- pulumi_gcp/firebase/android_app.py +40 -41
- pulumi_gcp/firestore/index.py +48 -34
- pulumi_gcp/monitoring/_inputs.py +0 -2
- pulumi_gcp/monitoring/outputs.py +0 -2
- pulumi_gcp/networksecurity/firewall_endpoint.py +0 -48
- pulumi_gcp/pubsub/_inputs.py +0 -108
- pulumi_gcp/pubsub/get_topic.py +1 -11
- pulumi_gcp/pubsub/outputs.py +0 -213
- pulumi_gcp/pubsub/topic.py +0 -92
- pulumi_gcp/storage/_inputs.py +0 -40
- pulumi_gcp/storage/bucket.py +0 -54
- pulumi_gcp/storage/get_bucket.py +1 -11
- pulumi_gcp/storage/outputs.py +0 -81
- pulumi_gcp/workstations/_inputs.py +0 -113
- pulumi_gcp/workstations/outputs.py +1 -109
- pulumi_gcp/workstations/workstation_config.py +0 -106
- {pulumi_gcp-7.16.0.dist-info → pulumi_gcp-7.16.0a1711520590.dist-info}/METADATA +1 -1
- {pulumi_gcp-7.16.0.dist-info → pulumi_gcp-7.16.0a1711520590.dist-info}/RECORD +36 -38
- pulumi_gcp/accesscontextmanager/service_perimeter_dry_run_resource.py +0 -345
- pulumi_gcp/cloudquota/get_s_quota_infos.py +0 -136
- {pulumi_gcp-7.16.0.dist-info → pulumi_gcp-7.16.0a1711520590.dist-info}/WHEEL +0 -0
- {pulumi_gcp-7.16.0.dist-info → pulumi_gcp-7.16.0a1711520590.dist-info}/top_level.txt +0 -0
@@ -1,345 +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 pulumi
|
8
|
-
import pulumi.runtime
|
9
|
-
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
10
|
-
from .. import _utilities
|
11
|
-
|
12
|
-
__all__ = ['ServicePerimeterDryRunResourceArgs', 'ServicePerimeterDryRunResource']
|
13
|
-
|
14
|
-
@pulumi.input_type
|
15
|
-
class ServicePerimeterDryRunResourceArgs:
|
16
|
-
def __init__(__self__, *,
|
17
|
-
perimeter_name: pulumi.Input[str],
|
18
|
-
resource: pulumi.Input[str]):
|
19
|
-
"""
|
20
|
-
The set of arguments for constructing a ServicePerimeterDryRunResource resource.
|
21
|
-
:param pulumi.Input[str] perimeter_name: The name of the Service Perimeter to add this resource to.
|
22
|
-
|
23
|
-
|
24
|
-
- - -
|
25
|
-
:param pulumi.Input[str] resource: A GCP resource that is inside of the service perimeter.
|
26
|
-
Currently only projects are allowed.
|
27
|
-
Format: projects/{project_number}
|
28
|
-
"""
|
29
|
-
pulumi.set(__self__, "perimeter_name", perimeter_name)
|
30
|
-
pulumi.set(__self__, "resource", resource)
|
31
|
-
|
32
|
-
@property
|
33
|
-
@pulumi.getter(name="perimeterName")
|
34
|
-
def perimeter_name(self) -> pulumi.Input[str]:
|
35
|
-
"""
|
36
|
-
The name of the Service Perimeter to add this resource to.
|
37
|
-
|
38
|
-
|
39
|
-
- - -
|
40
|
-
"""
|
41
|
-
return pulumi.get(self, "perimeter_name")
|
42
|
-
|
43
|
-
@perimeter_name.setter
|
44
|
-
def perimeter_name(self, value: pulumi.Input[str]):
|
45
|
-
pulumi.set(self, "perimeter_name", value)
|
46
|
-
|
47
|
-
@property
|
48
|
-
@pulumi.getter
|
49
|
-
def resource(self) -> pulumi.Input[str]:
|
50
|
-
"""
|
51
|
-
A GCP resource that is inside of the service perimeter.
|
52
|
-
Currently only projects are allowed.
|
53
|
-
Format: projects/{project_number}
|
54
|
-
"""
|
55
|
-
return pulumi.get(self, "resource")
|
56
|
-
|
57
|
-
@resource.setter
|
58
|
-
def resource(self, value: pulumi.Input[str]):
|
59
|
-
pulumi.set(self, "resource", value)
|
60
|
-
|
61
|
-
|
62
|
-
@pulumi.input_type
|
63
|
-
class _ServicePerimeterDryRunResourceState:
|
64
|
-
def __init__(__self__, *,
|
65
|
-
perimeter_name: Optional[pulumi.Input[str]] = None,
|
66
|
-
resource: Optional[pulumi.Input[str]] = None):
|
67
|
-
"""
|
68
|
-
Input properties used for looking up and filtering ServicePerimeterDryRunResource resources.
|
69
|
-
:param pulumi.Input[str] perimeter_name: The name of the Service Perimeter to add this resource to.
|
70
|
-
|
71
|
-
|
72
|
-
- - -
|
73
|
-
:param pulumi.Input[str] resource: A GCP resource that is inside of the service perimeter.
|
74
|
-
Currently only projects are allowed.
|
75
|
-
Format: projects/{project_number}
|
76
|
-
"""
|
77
|
-
if perimeter_name is not None:
|
78
|
-
pulumi.set(__self__, "perimeter_name", perimeter_name)
|
79
|
-
if resource is not None:
|
80
|
-
pulumi.set(__self__, "resource", resource)
|
81
|
-
|
82
|
-
@property
|
83
|
-
@pulumi.getter(name="perimeterName")
|
84
|
-
def perimeter_name(self) -> Optional[pulumi.Input[str]]:
|
85
|
-
"""
|
86
|
-
The name of the Service Perimeter to add this resource to.
|
87
|
-
|
88
|
-
|
89
|
-
- - -
|
90
|
-
"""
|
91
|
-
return pulumi.get(self, "perimeter_name")
|
92
|
-
|
93
|
-
@perimeter_name.setter
|
94
|
-
def perimeter_name(self, value: Optional[pulumi.Input[str]]):
|
95
|
-
pulumi.set(self, "perimeter_name", value)
|
96
|
-
|
97
|
-
@property
|
98
|
-
@pulumi.getter
|
99
|
-
def resource(self) -> Optional[pulumi.Input[str]]:
|
100
|
-
"""
|
101
|
-
A GCP resource that is inside of the service perimeter.
|
102
|
-
Currently only projects are allowed.
|
103
|
-
Format: projects/{project_number}
|
104
|
-
"""
|
105
|
-
return pulumi.get(self, "resource")
|
106
|
-
|
107
|
-
@resource.setter
|
108
|
-
def resource(self, value: Optional[pulumi.Input[str]]):
|
109
|
-
pulumi.set(self, "resource", value)
|
110
|
-
|
111
|
-
|
112
|
-
class ServicePerimeterDryRunResource(pulumi.CustomResource):
|
113
|
-
@overload
|
114
|
-
def __init__(__self__,
|
115
|
-
resource_name: str,
|
116
|
-
opts: Optional[pulumi.ResourceOptions] = None,
|
117
|
-
perimeter_name: Optional[pulumi.Input[str]] = None,
|
118
|
-
resource: Optional[pulumi.Input[str]] = None,
|
119
|
-
__props__=None):
|
120
|
-
"""
|
121
|
-
Allows configuring a single GCP resource that should be inside of the `spec` block of a dry run service perimeter.
|
122
|
-
This resource is intended to be used in cases where it is not possible to compile a full list
|
123
|
-
of projects to include in a `accesscontextmanager.ServicePerimeter` resource,
|
124
|
-
to enable them to be added separately.
|
125
|
-
If your perimeter is NOT in dry-run mode use `accesscontextmanager.ServicePerimeterResource` instead.
|
126
|
-
|
127
|
-
> **Note:** If this resource is used alongside a `accesscontextmanager.ServicePerimeter` resource,
|
128
|
-
the service perimeter resource must have a `lifecycle` block with `ignore_changes = [spec[0].resources]` so
|
129
|
-
they don't fight over which resources should be in the policy.
|
130
|
-
|
131
|
-
To get more information about ServicePerimeterDryRunResource, see:
|
132
|
-
|
133
|
-
* [API documentation](https://cloud.google.com/access-context-manager/docs/reference/rest/v1/accessPolicies.servicePerimeters)
|
134
|
-
* How-to Guides
|
135
|
-
* [Service Perimeter Quickstart](https://cloud.google.com/vpc-service-controls/docs/quickstart)
|
136
|
-
|
137
|
-
> **Warning:** If you are using User ADCs (Application Default Credentials) with this resource,
|
138
|
-
you must specify a `billing_project` and set `user_project_override` to true
|
139
|
-
in the provider configuration. Otherwise the ACM API will return a 403 error.
|
140
|
-
Your account must have the `serviceusage.services.use` permission on the
|
141
|
-
`billing_project` you defined.
|
142
|
-
|
143
|
-
## Example Usage
|
144
|
-
|
145
|
-
### Access Context Manager Service Perimeter Dry Run Resource Basic
|
146
|
-
|
147
|
-
<!--Start PulumiCodeChooser -->
|
148
|
-
```python
|
149
|
-
import pulumi
|
150
|
-
import pulumi_gcp as gcp
|
151
|
-
|
152
|
-
access_policy = gcp.accesscontextmanager.AccessPolicy("access-policy",
|
153
|
-
parent="organizations/123456789",
|
154
|
-
title="my policy")
|
155
|
-
service_perimeter_dry_run_resource_service_perimeter = gcp.accesscontextmanager.ServicePerimeter("service-perimeter-dry-run-resource",
|
156
|
-
parent=access_policy.name.apply(lambda name: f"accessPolicies/{name}"),
|
157
|
-
name=access_policy.name.apply(lambda name: f"accessPolicies/{name}/servicePerimeters/restrict_all"),
|
158
|
-
title="restrict_all",
|
159
|
-
spec=gcp.accesscontextmanager.ServicePerimeterSpecArgs(
|
160
|
-
restricted_services=["storage.googleapis.com"],
|
161
|
-
),
|
162
|
-
use_explicit_dry_run_spec=True)
|
163
|
-
service_perimeter_dry_run_resource = gcp.accesscontextmanager.ServicePerimeterDryRunResource("service-perimeter-dry-run-resource",
|
164
|
-
perimeter_name=service_perimeter_dry_run_resource_service_perimeter.name,
|
165
|
-
resource="projects/987654321")
|
166
|
-
```
|
167
|
-
<!--End PulumiCodeChooser -->
|
168
|
-
|
169
|
-
## Import
|
170
|
-
|
171
|
-
ServicePerimeterDryRunResource can be imported using any of these accepted formats:
|
172
|
-
|
173
|
-
* `{{perimeter_name}}/{{resource}}`
|
174
|
-
|
175
|
-
When using the `pulumi import` command, ServicePerimeterDryRunResource can be imported using one of the formats above. For example:
|
176
|
-
|
177
|
-
```sh
|
178
|
-
$ pulumi import gcp:accesscontextmanager/servicePerimeterDryRunResource:ServicePerimeterDryRunResource default {{perimeter_name}}/{{resource}}
|
179
|
-
```
|
180
|
-
|
181
|
-
:param str resource_name: The name of the resource.
|
182
|
-
:param pulumi.ResourceOptions opts: Options for the resource.
|
183
|
-
:param pulumi.Input[str] perimeter_name: The name of the Service Perimeter to add this resource to.
|
184
|
-
|
185
|
-
|
186
|
-
- - -
|
187
|
-
:param pulumi.Input[str] resource: A GCP resource that is inside of the service perimeter.
|
188
|
-
Currently only projects are allowed.
|
189
|
-
Format: projects/{project_number}
|
190
|
-
"""
|
191
|
-
...
|
192
|
-
@overload
|
193
|
-
def __init__(__self__,
|
194
|
-
resource_name: str,
|
195
|
-
args: ServicePerimeterDryRunResourceArgs,
|
196
|
-
opts: Optional[pulumi.ResourceOptions] = None):
|
197
|
-
"""
|
198
|
-
Allows configuring a single GCP resource that should be inside of the `spec` block of a dry run service perimeter.
|
199
|
-
This resource is intended to be used in cases where it is not possible to compile a full list
|
200
|
-
of projects to include in a `accesscontextmanager.ServicePerimeter` resource,
|
201
|
-
to enable them to be added separately.
|
202
|
-
If your perimeter is NOT in dry-run mode use `accesscontextmanager.ServicePerimeterResource` instead.
|
203
|
-
|
204
|
-
> **Note:** If this resource is used alongside a `accesscontextmanager.ServicePerimeter` resource,
|
205
|
-
the service perimeter resource must have a `lifecycle` block with `ignore_changes = [spec[0].resources]` so
|
206
|
-
they don't fight over which resources should be in the policy.
|
207
|
-
|
208
|
-
To get more information about ServicePerimeterDryRunResource, see:
|
209
|
-
|
210
|
-
* [API documentation](https://cloud.google.com/access-context-manager/docs/reference/rest/v1/accessPolicies.servicePerimeters)
|
211
|
-
* How-to Guides
|
212
|
-
* [Service Perimeter Quickstart](https://cloud.google.com/vpc-service-controls/docs/quickstart)
|
213
|
-
|
214
|
-
> **Warning:** If you are using User ADCs (Application Default Credentials) with this resource,
|
215
|
-
you must specify a `billing_project` and set `user_project_override` to true
|
216
|
-
in the provider configuration. Otherwise the ACM API will return a 403 error.
|
217
|
-
Your account must have the `serviceusage.services.use` permission on the
|
218
|
-
`billing_project` you defined.
|
219
|
-
|
220
|
-
## Example Usage
|
221
|
-
|
222
|
-
### Access Context Manager Service Perimeter Dry Run Resource Basic
|
223
|
-
|
224
|
-
<!--Start PulumiCodeChooser -->
|
225
|
-
```python
|
226
|
-
import pulumi
|
227
|
-
import pulumi_gcp as gcp
|
228
|
-
|
229
|
-
access_policy = gcp.accesscontextmanager.AccessPolicy("access-policy",
|
230
|
-
parent="organizations/123456789",
|
231
|
-
title="my policy")
|
232
|
-
service_perimeter_dry_run_resource_service_perimeter = gcp.accesscontextmanager.ServicePerimeter("service-perimeter-dry-run-resource",
|
233
|
-
parent=access_policy.name.apply(lambda name: f"accessPolicies/{name}"),
|
234
|
-
name=access_policy.name.apply(lambda name: f"accessPolicies/{name}/servicePerimeters/restrict_all"),
|
235
|
-
title="restrict_all",
|
236
|
-
spec=gcp.accesscontextmanager.ServicePerimeterSpecArgs(
|
237
|
-
restricted_services=["storage.googleapis.com"],
|
238
|
-
),
|
239
|
-
use_explicit_dry_run_spec=True)
|
240
|
-
service_perimeter_dry_run_resource = gcp.accesscontextmanager.ServicePerimeterDryRunResource("service-perimeter-dry-run-resource",
|
241
|
-
perimeter_name=service_perimeter_dry_run_resource_service_perimeter.name,
|
242
|
-
resource="projects/987654321")
|
243
|
-
```
|
244
|
-
<!--End PulumiCodeChooser -->
|
245
|
-
|
246
|
-
## Import
|
247
|
-
|
248
|
-
ServicePerimeterDryRunResource can be imported using any of these accepted formats:
|
249
|
-
|
250
|
-
* `{{perimeter_name}}/{{resource}}`
|
251
|
-
|
252
|
-
When using the `pulumi import` command, ServicePerimeterDryRunResource can be imported using one of the formats above. For example:
|
253
|
-
|
254
|
-
```sh
|
255
|
-
$ pulumi import gcp:accesscontextmanager/servicePerimeterDryRunResource:ServicePerimeterDryRunResource default {{perimeter_name}}/{{resource}}
|
256
|
-
```
|
257
|
-
|
258
|
-
:param str resource_name: The name of the resource.
|
259
|
-
:param ServicePerimeterDryRunResourceArgs args: The arguments to use to populate this resource's properties.
|
260
|
-
:param pulumi.ResourceOptions opts: Options for the resource.
|
261
|
-
"""
|
262
|
-
...
|
263
|
-
def __init__(__self__, resource_name: str, *args, **kwargs):
|
264
|
-
resource_args, opts = _utilities.get_resource_args_opts(ServicePerimeterDryRunResourceArgs, pulumi.ResourceOptions, *args, **kwargs)
|
265
|
-
if resource_args is not None:
|
266
|
-
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
267
|
-
else:
|
268
|
-
__self__._internal_init(resource_name, *args, **kwargs)
|
269
|
-
|
270
|
-
def _internal_init(__self__,
|
271
|
-
resource_name: str,
|
272
|
-
opts: Optional[pulumi.ResourceOptions] = None,
|
273
|
-
perimeter_name: Optional[pulumi.Input[str]] = None,
|
274
|
-
resource: Optional[pulumi.Input[str]] = None,
|
275
|
-
__props__=None):
|
276
|
-
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
277
|
-
if not isinstance(opts, pulumi.ResourceOptions):
|
278
|
-
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
279
|
-
if opts.id is None:
|
280
|
-
if __props__ is not None:
|
281
|
-
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
282
|
-
__props__ = ServicePerimeterDryRunResourceArgs.__new__(ServicePerimeterDryRunResourceArgs)
|
283
|
-
|
284
|
-
if perimeter_name is None and not opts.urn:
|
285
|
-
raise TypeError("Missing required property 'perimeter_name'")
|
286
|
-
__props__.__dict__["perimeter_name"] = perimeter_name
|
287
|
-
if resource is None and not opts.urn:
|
288
|
-
raise TypeError("Missing required property 'resource'")
|
289
|
-
__props__.__dict__["resource"] = resource
|
290
|
-
super(ServicePerimeterDryRunResource, __self__).__init__(
|
291
|
-
'gcp:accesscontextmanager/servicePerimeterDryRunResource:ServicePerimeterDryRunResource',
|
292
|
-
resource_name,
|
293
|
-
__props__,
|
294
|
-
opts)
|
295
|
-
|
296
|
-
@staticmethod
|
297
|
-
def get(resource_name: str,
|
298
|
-
id: pulumi.Input[str],
|
299
|
-
opts: Optional[pulumi.ResourceOptions] = None,
|
300
|
-
perimeter_name: Optional[pulumi.Input[str]] = None,
|
301
|
-
resource: Optional[pulumi.Input[str]] = None) -> 'ServicePerimeterDryRunResource':
|
302
|
-
"""
|
303
|
-
Get an existing ServicePerimeterDryRunResource resource's state with the given name, id, and optional extra
|
304
|
-
properties used to qualify the lookup.
|
305
|
-
|
306
|
-
:param str resource_name: The unique name of the resulting resource.
|
307
|
-
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
308
|
-
:param pulumi.ResourceOptions opts: Options for the resource.
|
309
|
-
:param pulumi.Input[str] perimeter_name: The name of the Service Perimeter to add this resource to.
|
310
|
-
|
311
|
-
|
312
|
-
- - -
|
313
|
-
:param pulumi.Input[str] resource: A GCP resource that is inside of the service perimeter.
|
314
|
-
Currently only projects are allowed.
|
315
|
-
Format: projects/{project_number}
|
316
|
-
"""
|
317
|
-
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
318
|
-
|
319
|
-
__props__ = _ServicePerimeterDryRunResourceState.__new__(_ServicePerimeterDryRunResourceState)
|
320
|
-
|
321
|
-
__props__.__dict__["perimeter_name"] = perimeter_name
|
322
|
-
__props__.__dict__["resource"] = resource
|
323
|
-
return ServicePerimeterDryRunResource(resource_name, opts=opts, __props__=__props__)
|
324
|
-
|
325
|
-
@property
|
326
|
-
@pulumi.getter(name="perimeterName")
|
327
|
-
def perimeter_name(self) -> pulumi.Output[str]:
|
328
|
-
"""
|
329
|
-
The name of the Service Perimeter to add this resource to.
|
330
|
-
|
331
|
-
|
332
|
-
- - -
|
333
|
-
"""
|
334
|
-
return pulumi.get(self, "perimeter_name")
|
335
|
-
|
336
|
-
@property
|
337
|
-
@pulumi.getter
|
338
|
-
def resource(self) -> pulumi.Output[str]:
|
339
|
-
"""
|
340
|
-
A GCP resource that is inside of the service perimeter.
|
341
|
-
Currently only projects are allowed.
|
342
|
-
Format: projects/{project_number}
|
343
|
-
"""
|
344
|
-
return pulumi.get(self, "resource")
|
345
|
-
|
@@ -1,136 +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 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
|
-
'GetSQuotaInfosResult',
|
15
|
-
'AwaitableGetSQuotaInfosResult',
|
16
|
-
'get_s_quota_infos',
|
17
|
-
'get_s_quota_infos_output',
|
18
|
-
]
|
19
|
-
|
20
|
-
@pulumi.output_type
|
21
|
-
class GetSQuotaInfosResult:
|
22
|
-
"""
|
23
|
-
A collection of values returned by getSQuotaInfos.
|
24
|
-
"""
|
25
|
-
def __init__(__self__, id=None, parent=None, quota_infos=None, service=None):
|
26
|
-
if id and not isinstance(id, str):
|
27
|
-
raise TypeError("Expected argument 'id' to be a str")
|
28
|
-
pulumi.set(__self__, "id", id)
|
29
|
-
if parent and not isinstance(parent, str):
|
30
|
-
raise TypeError("Expected argument 'parent' to be a str")
|
31
|
-
pulumi.set(__self__, "parent", parent)
|
32
|
-
if quota_infos and not isinstance(quota_infos, list):
|
33
|
-
raise TypeError("Expected argument 'quota_infos' to be a list")
|
34
|
-
pulumi.set(__self__, "quota_infos", quota_infos)
|
35
|
-
if service and not isinstance(service, str):
|
36
|
-
raise TypeError("Expected argument 'service' to be a str")
|
37
|
-
pulumi.set(__self__, "service", service)
|
38
|
-
|
39
|
-
@property
|
40
|
-
@pulumi.getter
|
41
|
-
def id(self) -> str:
|
42
|
-
"""
|
43
|
-
The provider-assigned unique ID for this managed resource.
|
44
|
-
"""
|
45
|
-
return pulumi.get(self, "id")
|
46
|
-
|
47
|
-
@property
|
48
|
-
@pulumi.getter
|
49
|
-
def parent(self) -> str:
|
50
|
-
return pulumi.get(self, "parent")
|
51
|
-
|
52
|
-
@property
|
53
|
-
@pulumi.getter(name="quotaInfos")
|
54
|
-
def quota_infos(self) -> Sequence['outputs.GetSQuotaInfosQuotaInfoResult']:
|
55
|
-
"""
|
56
|
-
(Output) The list of QuotaInfo.
|
57
|
-
"""
|
58
|
-
return pulumi.get(self, "quota_infos")
|
59
|
-
|
60
|
-
@property
|
61
|
-
@pulumi.getter
|
62
|
-
def service(self) -> str:
|
63
|
-
return pulumi.get(self, "service")
|
64
|
-
|
65
|
-
|
66
|
-
class AwaitableGetSQuotaInfosResult(GetSQuotaInfosResult):
|
67
|
-
# pylint: disable=using-constant-test
|
68
|
-
def __await__(self):
|
69
|
-
if False:
|
70
|
-
yield self
|
71
|
-
return GetSQuotaInfosResult(
|
72
|
-
id=self.id,
|
73
|
-
parent=self.parent,
|
74
|
-
quota_infos=self.quota_infos,
|
75
|
-
service=self.service)
|
76
|
-
|
77
|
-
|
78
|
-
def get_s_quota_infos(parent: Optional[str] = None,
|
79
|
-
service: Optional[str] = None,
|
80
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetSQuotaInfosResult:
|
81
|
-
"""
|
82
|
-
Provides information about all quotas for a given project, folder or organization.
|
83
|
-
|
84
|
-
## Example Usage
|
85
|
-
|
86
|
-
<!--Start PulumiCodeChooser -->
|
87
|
-
```python
|
88
|
-
import pulumi
|
89
|
-
import pulumi_gcp as gcp
|
90
|
-
|
91
|
-
my_quota_infos = gcp.cloudquota.get_s_quota_infos(parent="projects/my-project",
|
92
|
-
service="compute.googleapis.com")
|
93
|
-
```
|
94
|
-
<!--End PulumiCodeChooser -->
|
95
|
-
|
96
|
-
|
97
|
-
:param str parent: Parent value of QuotaInfo resources. Listing across different resource containers (such as 'projects/-') is not allowed. Allowed parents are "projects/[project-id / number]" or "folders/[folder-id / number]" or "organizations/[org-id / number].
|
98
|
-
:param str service: The name of the service in which the quotas are defined.
|
99
|
-
"""
|
100
|
-
__args__ = dict()
|
101
|
-
__args__['parent'] = parent
|
102
|
-
__args__['service'] = service
|
103
|
-
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
104
|
-
__ret__ = pulumi.runtime.invoke('gcp:cloudquota/getSQuotaInfos:getSQuotaInfos', __args__, opts=opts, typ=GetSQuotaInfosResult).value
|
105
|
-
|
106
|
-
return AwaitableGetSQuotaInfosResult(
|
107
|
-
id=pulumi.get(__ret__, 'id'),
|
108
|
-
parent=pulumi.get(__ret__, 'parent'),
|
109
|
-
quota_infos=pulumi.get(__ret__, 'quota_infos'),
|
110
|
-
service=pulumi.get(__ret__, 'service'))
|
111
|
-
|
112
|
-
|
113
|
-
@_utilities.lift_output_func(get_s_quota_infos)
|
114
|
-
def get_s_quota_infos_output(parent: Optional[pulumi.Input[str]] = None,
|
115
|
-
service: Optional[pulumi.Input[str]] = None,
|
116
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetSQuotaInfosResult]:
|
117
|
-
"""
|
118
|
-
Provides information about all quotas for a given project, folder or organization.
|
119
|
-
|
120
|
-
## Example Usage
|
121
|
-
|
122
|
-
<!--Start PulumiCodeChooser -->
|
123
|
-
```python
|
124
|
-
import pulumi
|
125
|
-
import pulumi_gcp as gcp
|
126
|
-
|
127
|
-
my_quota_infos = gcp.cloudquota.get_s_quota_infos(parent="projects/my-project",
|
128
|
-
service="compute.googleapis.com")
|
129
|
-
```
|
130
|
-
<!--End PulumiCodeChooser -->
|
131
|
-
|
132
|
-
|
133
|
-
:param str parent: Parent value of QuotaInfo resources. Listing across different resource containers (such as 'projects/-') is not allowed. Allowed parents are "projects/[project-id / number]" or "folders/[folder-id / number]" or "organizations/[org-id / number].
|
134
|
-
:param str service: The name of the service in which the quotas are defined.
|
135
|
-
"""
|
136
|
-
...
|
File without changes
|
File without changes
|