pulumi-gcp 8.18.0a1738650987__py3-none-any.whl → 8.18.0a1738676305__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 +24 -0
- pulumi_gcp/accesscontextmanager/service_perimeter_dry_run_resource.py +28 -0
- pulumi_gcp/alloydb/user.py +10 -1
- pulumi_gcp/assuredworkloads/workload.py +7 -7
- pulumi_gcp/beyondcorp/__init__.py +4 -0
- pulumi_gcp/beyondcorp/_inputs.py +130 -0
- pulumi_gcp/beyondcorp/get_security_gateway_iam_policy.py +180 -0
- pulumi_gcp/beyondcorp/outputs.py +76 -0
- pulumi_gcp/beyondcorp/security_gateway.py +52 -25
- pulumi_gcp/beyondcorp/security_gateway_iam_binding.py +1075 -0
- pulumi_gcp/beyondcorp/security_gateway_iam_member.py +1075 -0
- pulumi_gcp/beyondcorp/security_gateway_iam_policy.py +894 -0
- pulumi_gcp/bigquery/_inputs.py +33 -0
- pulumi_gcp/bigquery/dataset.py +7 -7
- pulumi_gcp/bigquery/outputs.py +36 -0
- pulumi_gcp/bigquery/table.py +61 -7
- pulumi_gcp/chronicle/retrohunt.py +0 -16
- pulumi_gcp/cloudquota/s_quota_adjuster_settings.py +23 -23
- pulumi_gcp/compute/_inputs.py +9 -9
- pulumi_gcp/compute/get_network.py +3 -3
- pulumi_gcp/compute/network.py +7 -7
- pulumi_gcp/compute/outputs.py +6 -6
- pulumi_gcp/compute/router_peer.py +112 -0
- pulumi_gcp/container/_inputs.py +79 -20
- pulumi_gcp/container/outputs.py +75 -12
- pulumi_gcp/dataproc/_inputs.py +34 -0
- pulumi_gcp/dataproc/outputs.py +37 -0
- pulumi_gcp/dataproc/workflow_template.py +47 -0
- pulumi_gcp/firestore/field.py +60 -0
- pulumi_gcp/gkehub/_inputs.py +20 -0
- pulumi_gcp/gkehub/membership_binding.py +6 -6
- pulumi_gcp/gkehub/membership_rbac_role_binding.py +4 -4
- pulumi_gcp/gkehub/namespace.py +4 -4
- pulumi_gcp/gkehub/outputs.py +26 -1
- pulumi_gcp/gkehub/scope_rbac_role_binding.py +4 -4
- pulumi_gcp/iap/tunnel_dest_group.py +2 -2
- pulumi_gcp/integrationconnectors/managed_zone.py +8 -8
- pulumi_gcp/netapp/storage_pool.py +1 -1
- pulumi_gcp/networkconnectivity/spoke.py +76 -14
- pulumi_gcp/orgpolicy/policy.py +2 -2
- pulumi_gcp/parametermanager/__init__.py +3 -0
- pulumi_gcp/parametermanager/get_parameter_version.py +216 -0
- pulumi_gcp/parametermanager/get_parameters.py +140 -0
- pulumi_gcp/parametermanager/get_regional_parameter_version.py +235 -0
- pulumi_gcp/parametermanager/outputs.py +156 -0
- pulumi_gcp/pubsub/_inputs.py +264 -0
- pulumi_gcp/pubsub/outputs.py +353 -0
- pulumi_gcp/pubsub/subscription.py +6 -6
- pulumi_gcp/pubsub/topic.py +70 -0
- pulumi_gcp/pulumi-plugin.json +1 -1
- pulumi_gcp/resourcemanager/lien.py +12 -0
- pulumi_gcp/secretmanager/regional_secret.py +4 -0
- pulumi_gcp/secretmanager/regional_secret_version.py +12 -0
- pulumi_gcp/secretmanager/secret.py +4 -0
- pulumi_gcp/secretmanager/secret_version.py +12 -0
- pulumi_gcp/securityposture/posture.py +4 -0
- pulumi_gcp/securityposture/posture_deployment.py +4 -0
- pulumi_gcp/serviceaccount/get_s.py +98 -8
- pulumi_gcp/spanner/_inputs.py +68 -0
- pulumi_gcp/spanner/backup_schedule.py +70 -4
- pulumi_gcp/spanner/outputs.py +60 -0
- pulumi_gcp/storage/get_bucket_object_content.py +4 -4
- pulumi_gcp/vertex/ai_endpoint.py +4 -4
- pulumi_gcp/vertex/ai_feature_online_store_featureview.py +4 -4
- pulumi_gcp/workflows/workflow.py +175 -0
- {pulumi_gcp-8.18.0a1738650987.dist-info → pulumi_gcp-8.18.0a1738676305.dist-info}/METADATA +1 -1
- {pulumi_gcp-8.18.0a1738650987.dist-info → pulumi_gcp-8.18.0a1738676305.dist-info}/RECORD +69 -62
- {pulumi_gcp-8.18.0a1738650987.dist-info → pulumi_gcp-8.18.0a1738676305.dist-info}/WHEEL +0 -0
- {pulumi_gcp-8.18.0a1738650987.dist-info → pulumi_gcp-8.18.0a1738676305.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,216 @@
|
|
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
|
+
'GetParameterVersionResult',
|
19
|
+
'AwaitableGetParameterVersionResult',
|
20
|
+
'get_parameter_version',
|
21
|
+
'get_parameter_version_output',
|
22
|
+
]
|
23
|
+
|
24
|
+
@pulumi.output_type
|
25
|
+
class GetParameterVersionResult:
|
26
|
+
"""
|
27
|
+
A collection of values returned by getParameterVersion.
|
28
|
+
"""
|
29
|
+
def __init__(__self__, create_time=None, disabled=None, id=None, name=None, parameter=None, parameter_data=None, parameter_version_id=None, project=None, update_time=None):
|
30
|
+
if create_time and not isinstance(create_time, str):
|
31
|
+
raise TypeError("Expected argument 'create_time' to be a str")
|
32
|
+
pulumi.set(__self__, "create_time", create_time)
|
33
|
+
if disabled and not isinstance(disabled, bool):
|
34
|
+
raise TypeError("Expected argument 'disabled' to be a bool")
|
35
|
+
pulumi.set(__self__, "disabled", disabled)
|
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 name and not isinstance(name, str):
|
40
|
+
raise TypeError("Expected argument 'name' to be a str")
|
41
|
+
pulumi.set(__self__, "name", name)
|
42
|
+
if parameter and not isinstance(parameter, str):
|
43
|
+
raise TypeError("Expected argument 'parameter' to be a str")
|
44
|
+
pulumi.set(__self__, "parameter", parameter)
|
45
|
+
if parameter_data and not isinstance(parameter_data, str):
|
46
|
+
raise TypeError("Expected argument 'parameter_data' to be a str")
|
47
|
+
pulumi.set(__self__, "parameter_data", parameter_data)
|
48
|
+
if parameter_version_id and not isinstance(parameter_version_id, str):
|
49
|
+
raise TypeError("Expected argument 'parameter_version_id' to be a str")
|
50
|
+
pulumi.set(__self__, "parameter_version_id", parameter_version_id)
|
51
|
+
if project and not isinstance(project, str):
|
52
|
+
raise TypeError("Expected argument 'project' to be a str")
|
53
|
+
pulumi.set(__self__, "project", project)
|
54
|
+
if update_time and not isinstance(update_time, str):
|
55
|
+
raise TypeError("Expected argument 'update_time' to be a str")
|
56
|
+
pulumi.set(__self__, "update_time", update_time)
|
57
|
+
|
58
|
+
@property
|
59
|
+
@pulumi.getter(name="createTime")
|
60
|
+
def create_time(self) -> str:
|
61
|
+
"""
|
62
|
+
The time at which the Parameter Version was created.
|
63
|
+
"""
|
64
|
+
return pulumi.get(self, "create_time")
|
65
|
+
|
66
|
+
@property
|
67
|
+
@pulumi.getter
|
68
|
+
def disabled(self) -> bool:
|
69
|
+
"""
|
70
|
+
The current state of the Parameter Version.
|
71
|
+
"""
|
72
|
+
return pulumi.get(self, "disabled")
|
73
|
+
|
74
|
+
@property
|
75
|
+
@pulumi.getter
|
76
|
+
def id(self) -> str:
|
77
|
+
"""
|
78
|
+
The provider-assigned unique ID for this managed resource.
|
79
|
+
"""
|
80
|
+
return pulumi.get(self, "id")
|
81
|
+
|
82
|
+
@property
|
83
|
+
@pulumi.getter
|
84
|
+
def name(self) -> str:
|
85
|
+
"""
|
86
|
+
The resource name of the ParameterVersion. Format:
|
87
|
+
`projects/{{project}}/locations/global/parameters/{{parameter_id}}/versions/{{parameter_version_id}}`
|
88
|
+
"""
|
89
|
+
return pulumi.get(self, "name")
|
90
|
+
|
91
|
+
@property
|
92
|
+
@pulumi.getter
|
93
|
+
def parameter(self) -> str:
|
94
|
+
return pulumi.get(self, "parameter")
|
95
|
+
|
96
|
+
@property
|
97
|
+
@pulumi.getter(name="parameterData")
|
98
|
+
def parameter_data(self) -> str:
|
99
|
+
"""
|
100
|
+
The parameter data.
|
101
|
+
"""
|
102
|
+
return pulumi.get(self, "parameter_data")
|
103
|
+
|
104
|
+
@property
|
105
|
+
@pulumi.getter(name="parameterVersionId")
|
106
|
+
def parameter_version_id(self) -> str:
|
107
|
+
return pulumi.get(self, "parameter_version_id")
|
108
|
+
|
109
|
+
@property
|
110
|
+
@pulumi.getter
|
111
|
+
def project(self) -> str:
|
112
|
+
return pulumi.get(self, "project")
|
113
|
+
|
114
|
+
@property
|
115
|
+
@pulumi.getter(name="updateTime")
|
116
|
+
def update_time(self) -> str:
|
117
|
+
"""
|
118
|
+
The time at which the Parameter Version was last updated.
|
119
|
+
"""
|
120
|
+
return pulumi.get(self, "update_time")
|
121
|
+
|
122
|
+
|
123
|
+
class AwaitableGetParameterVersionResult(GetParameterVersionResult):
|
124
|
+
# pylint: disable=using-constant-test
|
125
|
+
def __await__(self):
|
126
|
+
if False:
|
127
|
+
yield self
|
128
|
+
return GetParameterVersionResult(
|
129
|
+
create_time=self.create_time,
|
130
|
+
disabled=self.disabled,
|
131
|
+
id=self.id,
|
132
|
+
name=self.name,
|
133
|
+
parameter=self.parameter,
|
134
|
+
parameter_data=self.parameter_data,
|
135
|
+
parameter_version_id=self.parameter_version_id,
|
136
|
+
project=self.project,
|
137
|
+
update_time=self.update_time)
|
138
|
+
|
139
|
+
|
140
|
+
def get_parameter_version(parameter: Optional[str] = None,
|
141
|
+
parameter_version_id: Optional[str] = None,
|
142
|
+
project: Optional[str] = None,
|
143
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetParameterVersionResult:
|
144
|
+
"""
|
145
|
+
## Example Usage
|
146
|
+
|
147
|
+
```python
|
148
|
+
import pulumi
|
149
|
+
import pulumi_gcp as gcp
|
150
|
+
|
151
|
+
basic = gcp.parametermanager.get_parameter_version(parameter="test-parameter",
|
152
|
+
parameter_version_id="test-parameter-version")
|
153
|
+
```
|
154
|
+
|
155
|
+
|
156
|
+
:param str parameter: The parameter for obtaining the Parameter Version.
|
157
|
+
This can be either the reference of the parameter as in `projects/{{project}}/locations/global/parameters/{{parameter_id}}` or only the name of the parameter as in `{{parameter_id}}`.
|
158
|
+
:param str parameter_version_id: The version of the parameter to get.
|
159
|
+
:param str project: The project for retrieving the Parameter Version. If it's not specified,
|
160
|
+
the provider project will be used.
|
161
|
+
"""
|
162
|
+
__args__ = dict()
|
163
|
+
__args__['parameter'] = parameter
|
164
|
+
__args__['parameterVersionId'] = parameter_version_id
|
165
|
+
__args__['project'] = project
|
166
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
167
|
+
__ret__ = pulumi.runtime.invoke('gcp:parametermanager/getParameterVersion:getParameterVersion', __args__, opts=opts, typ=GetParameterVersionResult).value
|
168
|
+
|
169
|
+
return AwaitableGetParameterVersionResult(
|
170
|
+
create_time=pulumi.get(__ret__, 'create_time'),
|
171
|
+
disabled=pulumi.get(__ret__, 'disabled'),
|
172
|
+
id=pulumi.get(__ret__, 'id'),
|
173
|
+
name=pulumi.get(__ret__, 'name'),
|
174
|
+
parameter=pulumi.get(__ret__, 'parameter'),
|
175
|
+
parameter_data=pulumi.get(__ret__, 'parameter_data'),
|
176
|
+
parameter_version_id=pulumi.get(__ret__, 'parameter_version_id'),
|
177
|
+
project=pulumi.get(__ret__, 'project'),
|
178
|
+
update_time=pulumi.get(__ret__, 'update_time'))
|
179
|
+
def get_parameter_version_output(parameter: Optional[pulumi.Input[str]] = None,
|
180
|
+
parameter_version_id: Optional[pulumi.Input[str]] = None,
|
181
|
+
project: Optional[pulumi.Input[Optional[str]]] = None,
|
182
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetParameterVersionResult]:
|
183
|
+
"""
|
184
|
+
## Example Usage
|
185
|
+
|
186
|
+
```python
|
187
|
+
import pulumi
|
188
|
+
import pulumi_gcp as gcp
|
189
|
+
|
190
|
+
basic = gcp.parametermanager.get_parameter_version(parameter="test-parameter",
|
191
|
+
parameter_version_id="test-parameter-version")
|
192
|
+
```
|
193
|
+
|
194
|
+
|
195
|
+
:param str parameter: The parameter for obtaining the Parameter Version.
|
196
|
+
This can be either the reference of the parameter as in `projects/{{project}}/locations/global/parameters/{{parameter_id}}` or only the name of the parameter as in `{{parameter_id}}`.
|
197
|
+
:param str parameter_version_id: The version of the parameter to get.
|
198
|
+
:param str project: The project for retrieving the Parameter Version. If it's not specified,
|
199
|
+
the provider project will be used.
|
200
|
+
"""
|
201
|
+
__args__ = dict()
|
202
|
+
__args__['parameter'] = parameter
|
203
|
+
__args__['parameterVersionId'] = parameter_version_id
|
204
|
+
__args__['project'] = project
|
205
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
206
|
+
__ret__ = pulumi.runtime.invoke_output('gcp:parametermanager/getParameterVersion:getParameterVersion', __args__, opts=opts, typ=GetParameterVersionResult)
|
207
|
+
return __ret__.apply(lambda __response__: GetParameterVersionResult(
|
208
|
+
create_time=pulumi.get(__response__, 'create_time'),
|
209
|
+
disabled=pulumi.get(__response__, 'disabled'),
|
210
|
+
id=pulumi.get(__response__, 'id'),
|
211
|
+
name=pulumi.get(__response__, 'name'),
|
212
|
+
parameter=pulumi.get(__response__, 'parameter'),
|
213
|
+
parameter_data=pulumi.get(__response__, 'parameter_data'),
|
214
|
+
parameter_version_id=pulumi.get(__response__, 'parameter_version_id'),
|
215
|
+
project=pulumi.get(__response__, 'project'),
|
216
|
+
update_time=pulumi.get(__response__, 'update_time')))
|
@@ -0,0 +1,140 @@
|
|
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
|
+
from . import outputs
|
17
|
+
|
18
|
+
__all__ = [
|
19
|
+
'GetParametersResult',
|
20
|
+
'AwaitableGetParametersResult',
|
21
|
+
'get_parameters',
|
22
|
+
'get_parameters_output',
|
23
|
+
]
|
24
|
+
|
25
|
+
@pulumi.output_type
|
26
|
+
class GetParametersResult:
|
27
|
+
"""
|
28
|
+
A collection of values returned by getParameters.
|
29
|
+
"""
|
30
|
+
def __init__(__self__, filter=None, id=None, parameters=None, project=None):
|
31
|
+
if filter and not isinstance(filter, str):
|
32
|
+
raise TypeError("Expected argument 'filter' to be a str")
|
33
|
+
pulumi.set(__self__, "filter", filter)
|
34
|
+
if id and not isinstance(id, str):
|
35
|
+
raise TypeError("Expected argument 'id' to be a str")
|
36
|
+
pulumi.set(__self__, "id", id)
|
37
|
+
if parameters and not isinstance(parameters, list):
|
38
|
+
raise TypeError("Expected argument 'parameters' to be a list")
|
39
|
+
pulumi.set(__self__, "parameters", parameters)
|
40
|
+
if project and not isinstance(project, str):
|
41
|
+
raise TypeError("Expected argument 'project' to be a str")
|
42
|
+
pulumi.set(__self__, "project", project)
|
43
|
+
|
44
|
+
@property
|
45
|
+
@pulumi.getter
|
46
|
+
def filter(self) -> Optional[str]:
|
47
|
+
return pulumi.get(self, "filter")
|
48
|
+
|
49
|
+
@property
|
50
|
+
@pulumi.getter
|
51
|
+
def id(self) -> str:
|
52
|
+
"""
|
53
|
+
The provider-assigned unique ID for this managed resource.
|
54
|
+
"""
|
55
|
+
return pulumi.get(self, "id")
|
56
|
+
|
57
|
+
@property
|
58
|
+
@pulumi.getter
|
59
|
+
def parameters(self) -> Sequence['outputs.GetParametersParameterResult']:
|
60
|
+
"""
|
61
|
+
A list of parameters matching the filter. Structure is defined below.
|
62
|
+
"""
|
63
|
+
return pulumi.get(self, "parameters")
|
64
|
+
|
65
|
+
@property
|
66
|
+
@pulumi.getter
|
67
|
+
def project(self) -> str:
|
68
|
+
"""
|
69
|
+
The ID of the project in which the resource belongs.
|
70
|
+
"""
|
71
|
+
return pulumi.get(self, "project")
|
72
|
+
|
73
|
+
|
74
|
+
class AwaitableGetParametersResult(GetParametersResult):
|
75
|
+
# pylint: disable=using-constant-test
|
76
|
+
def __await__(self):
|
77
|
+
if False:
|
78
|
+
yield self
|
79
|
+
return GetParametersResult(
|
80
|
+
filter=self.filter,
|
81
|
+
id=self.id,
|
82
|
+
parameters=self.parameters,
|
83
|
+
project=self.project)
|
84
|
+
|
85
|
+
|
86
|
+
def get_parameters(filter: Optional[str] = None,
|
87
|
+
project: Optional[str] = None,
|
88
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetParametersResult:
|
89
|
+
"""
|
90
|
+
## Example Usage
|
91
|
+
|
92
|
+
```python
|
93
|
+
import pulumi
|
94
|
+
import pulumi_gcp as gcp
|
95
|
+
|
96
|
+
parameters = gcp.parametermanager.get_parameters()
|
97
|
+
```
|
98
|
+
|
99
|
+
|
100
|
+
:param str filter: Filter string, adhering to the rules in List-operation filtering. List only parameters matching the filter. If filter is empty, all parameters are listed.
|
101
|
+
:param str project: The ID of the project.
|
102
|
+
"""
|
103
|
+
__args__ = dict()
|
104
|
+
__args__['filter'] = filter
|
105
|
+
__args__['project'] = project
|
106
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
107
|
+
__ret__ = pulumi.runtime.invoke('gcp:parametermanager/getParameters:getParameters', __args__, opts=opts, typ=GetParametersResult).value
|
108
|
+
|
109
|
+
return AwaitableGetParametersResult(
|
110
|
+
filter=pulumi.get(__ret__, 'filter'),
|
111
|
+
id=pulumi.get(__ret__, 'id'),
|
112
|
+
parameters=pulumi.get(__ret__, 'parameters'),
|
113
|
+
project=pulumi.get(__ret__, 'project'))
|
114
|
+
def get_parameters_output(filter: Optional[pulumi.Input[Optional[str]]] = None,
|
115
|
+
project: Optional[pulumi.Input[Optional[str]]] = None,
|
116
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetParametersResult]:
|
117
|
+
"""
|
118
|
+
## Example Usage
|
119
|
+
|
120
|
+
```python
|
121
|
+
import pulumi
|
122
|
+
import pulumi_gcp as gcp
|
123
|
+
|
124
|
+
parameters = gcp.parametermanager.get_parameters()
|
125
|
+
```
|
126
|
+
|
127
|
+
|
128
|
+
:param str filter: Filter string, adhering to the rules in List-operation filtering. List only parameters matching the filter. If filter is empty, all parameters are listed.
|
129
|
+
:param str project: The ID of the project.
|
130
|
+
"""
|
131
|
+
__args__ = dict()
|
132
|
+
__args__['filter'] = filter
|
133
|
+
__args__['project'] = project
|
134
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
135
|
+
__ret__ = pulumi.runtime.invoke_output('gcp:parametermanager/getParameters:getParameters', __args__, opts=opts, typ=GetParametersResult)
|
136
|
+
return __ret__.apply(lambda __response__: GetParametersResult(
|
137
|
+
filter=pulumi.get(__response__, 'filter'),
|
138
|
+
id=pulumi.get(__response__, 'id'),
|
139
|
+
parameters=pulumi.get(__response__, 'parameters'),
|
140
|
+
project=pulumi.get(__response__, 'project')))
|
@@ -0,0 +1,235 @@
|
|
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
|
+
'GetRegionalParameterVersionResult',
|
19
|
+
'AwaitableGetRegionalParameterVersionResult',
|
20
|
+
'get_regional_parameter_version',
|
21
|
+
'get_regional_parameter_version_output',
|
22
|
+
]
|
23
|
+
|
24
|
+
@pulumi.output_type
|
25
|
+
class GetRegionalParameterVersionResult:
|
26
|
+
"""
|
27
|
+
A collection of values returned by getRegionalParameterVersion.
|
28
|
+
"""
|
29
|
+
def __init__(__self__, create_time=None, disabled=None, id=None, location=None, name=None, parameter=None, parameter_data=None, parameter_version_id=None, project=None, update_time=None):
|
30
|
+
if create_time and not isinstance(create_time, str):
|
31
|
+
raise TypeError("Expected argument 'create_time' to be a str")
|
32
|
+
pulumi.set(__self__, "create_time", create_time)
|
33
|
+
if disabled and not isinstance(disabled, bool):
|
34
|
+
raise TypeError("Expected argument 'disabled' to be a bool")
|
35
|
+
pulumi.set(__self__, "disabled", disabled)
|
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 location and not isinstance(location, str):
|
40
|
+
raise TypeError("Expected argument 'location' to be a str")
|
41
|
+
pulumi.set(__self__, "location", location)
|
42
|
+
if name and not isinstance(name, str):
|
43
|
+
raise TypeError("Expected argument 'name' to be a str")
|
44
|
+
pulumi.set(__self__, "name", name)
|
45
|
+
if parameter and not isinstance(parameter, str):
|
46
|
+
raise TypeError("Expected argument 'parameter' to be a str")
|
47
|
+
pulumi.set(__self__, "parameter", parameter)
|
48
|
+
if parameter_data and not isinstance(parameter_data, str):
|
49
|
+
raise TypeError("Expected argument 'parameter_data' to be a str")
|
50
|
+
pulumi.set(__self__, "parameter_data", parameter_data)
|
51
|
+
if parameter_version_id and not isinstance(parameter_version_id, str):
|
52
|
+
raise TypeError("Expected argument 'parameter_version_id' to be a str")
|
53
|
+
pulumi.set(__self__, "parameter_version_id", parameter_version_id)
|
54
|
+
if project and not isinstance(project, str):
|
55
|
+
raise TypeError("Expected argument 'project' to be a str")
|
56
|
+
pulumi.set(__self__, "project", project)
|
57
|
+
if update_time and not isinstance(update_time, str):
|
58
|
+
raise TypeError("Expected argument 'update_time' to be a str")
|
59
|
+
pulumi.set(__self__, "update_time", update_time)
|
60
|
+
|
61
|
+
@property
|
62
|
+
@pulumi.getter(name="createTime")
|
63
|
+
def create_time(self) -> str:
|
64
|
+
"""
|
65
|
+
The time at which the Regional Parameter Version was created.
|
66
|
+
"""
|
67
|
+
return pulumi.get(self, "create_time")
|
68
|
+
|
69
|
+
@property
|
70
|
+
@pulumi.getter
|
71
|
+
def disabled(self) -> bool:
|
72
|
+
"""
|
73
|
+
The current state of the Regional Parameter Version.
|
74
|
+
"""
|
75
|
+
return pulumi.get(self, "disabled")
|
76
|
+
|
77
|
+
@property
|
78
|
+
@pulumi.getter
|
79
|
+
def id(self) -> str:
|
80
|
+
"""
|
81
|
+
The provider-assigned unique ID for this managed resource.
|
82
|
+
"""
|
83
|
+
return pulumi.get(self, "id")
|
84
|
+
|
85
|
+
@property
|
86
|
+
@pulumi.getter
|
87
|
+
def location(self) -> str:
|
88
|
+
return pulumi.get(self, "location")
|
89
|
+
|
90
|
+
@property
|
91
|
+
@pulumi.getter
|
92
|
+
def name(self) -> str:
|
93
|
+
"""
|
94
|
+
The resource name of the Regional Parameter Version. Format:
|
95
|
+
`projects/{{project}}/locations/{{location}}/parameters/{{parameter_id}}/versions/{{parameter_version_id}}`
|
96
|
+
"""
|
97
|
+
return pulumi.get(self, "name")
|
98
|
+
|
99
|
+
@property
|
100
|
+
@pulumi.getter
|
101
|
+
def parameter(self) -> str:
|
102
|
+
return pulumi.get(self, "parameter")
|
103
|
+
|
104
|
+
@property
|
105
|
+
@pulumi.getter(name="parameterData")
|
106
|
+
def parameter_data(self) -> str:
|
107
|
+
"""
|
108
|
+
The regional parameter data.
|
109
|
+
"""
|
110
|
+
return pulumi.get(self, "parameter_data")
|
111
|
+
|
112
|
+
@property
|
113
|
+
@pulumi.getter(name="parameterVersionId")
|
114
|
+
def parameter_version_id(self) -> str:
|
115
|
+
return pulumi.get(self, "parameter_version_id")
|
116
|
+
|
117
|
+
@property
|
118
|
+
@pulumi.getter
|
119
|
+
def project(self) -> str:
|
120
|
+
return pulumi.get(self, "project")
|
121
|
+
|
122
|
+
@property
|
123
|
+
@pulumi.getter(name="updateTime")
|
124
|
+
def update_time(self) -> str:
|
125
|
+
"""
|
126
|
+
The time at which the Regional Parameter Version was last updated.
|
127
|
+
"""
|
128
|
+
return pulumi.get(self, "update_time")
|
129
|
+
|
130
|
+
|
131
|
+
class AwaitableGetRegionalParameterVersionResult(GetRegionalParameterVersionResult):
|
132
|
+
# pylint: disable=using-constant-test
|
133
|
+
def __await__(self):
|
134
|
+
if False:
|
135
|
+
yield self
|
136
|
+
return GetRegionalParameterVersionResult(
|
137
|
+
create_time=self.create_time,
|
138
|
+
disabled=self.disabled,
|
139
|
+
id=self.id,
|
140
|
+
location=self.location,
|
141
|
+
name=self.name,
|
142
|
+
parameter=self.parameter,
|
143
|
+
parameter_data=self.parameter_data,
|
144
|
+
parameter_version_id=self.parameter_version_id,
|
145
|
+
project=self.project,
|
146
|
+
update_time=self.update_time)
|
147
|
+
|
148
|
+
|
149
|
+
def get_regional_parameter_version(location: Optional[str] = None,
|
150
|
+
parameter: Optional[str] = None,
|
151
|
+
parameter_version_id: Optional[str] = None,
|
152
|
+
project: Optional[str] = None,
|
153
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetRegionalParameterVersionResult:
|
154
|
+
"""
|
155
|
+
## Example Usage
|
156
|
+
|
157
|
+
```python
|
158
|
+
import pulumi
|
159
|
+
import pulumi_gcp as gcp
|
160
|
+
|
161
|
+
basic = gcp.parametermanager.get_regional_parameter_version(parameter="test-regional-parameter",
|
162
|
+
parameter_version_id="test-regional-parameter-version",
|
163
|
+
location="us-central1")
|
164
|
+
```
|
165
|
+
|
166
|
+
|
167
|
+
:param str location: The location of regional parameter.
|
168
|
+
:param str parameter: The parameter for obtaining the Regional Parameter Version.
|
169
|
+
This can be either the reference of the regional parameter as in `projects/{{project}}/locations/{{location}}/parameters/{{parameter_id}}` or only the name of the regional parameter as in `{{parameter_id}}`.
|
170
|
+
:param str parameter_version_id: The version of the regional parameter to get.
|
171
|
+
:param str project: The project for retrieving the Regional Parameter Version. If it's not specified,
|
172
|
+
the provider project will be used.
|
173
|
+
"""
|
174
|
+
__args__ = dict()
|
175
|
+
__args__['location'] = location
|
176
|
+
__args__['parameter'] = parameter
|
177
|
+
__args__['parameterVersionId'] = parameter_version_id
|
178
|
+
__args__['project'] = project
|
179
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
180
|
+
__ret__ = pulumi.runtime.invoke('gcp:parametermanager/getRegionalParameterVersion:getRegionalParameterVersion', __args__, opts=opts, typ=GetRegionalParameterVersionResult).value
|
181
|
+
|
182
|
+
return AwaitableGetRegionalParameterVersionResult(
|
183
|
+
create_time=pulumi.get(__ret__, 'create_time'),
|
184
|
+
disabled=pulumi.get(__ret__, 'disabled'),
|
185
|
+
id=pulumi.get(__ret__, 'id'),
|
186
|
+
location=pulumi.get(__ret__, 'location'),
|
187
|
+
name=pulumi.get(__ret__, 'name'),
|
188
|
+
parameter=pulumi.get(__ret__, 'parameter'),
|
189
|
+
parameter_data=pulumi.get(__ret__, 'parameter_data'),
|
190
|
+
parameter_version_id=pulumi.get(__ret__, 'parameter_version_id'),
|
191
|
+
project=pulumi.get(__ret__, 'project'),
|
192
|
+
update_time=pulumi.get(__ret__, 'update_time'))
|
193
|
+
def get_regional_parameter_version_output(location: Optional[pulumi.Input[Optional[str]]] = None,
|
194
|
+
parameter: Optional[pulumi.Input[str]] = None,
|
195
|
+
parameter_version_id: Optional[pulumi.Input[str]] = None,
|
196
|
+
project: Optional[pulumi.Input[Optional[str]]] = None,
|
197
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetRegionalParameterVersionResult]:
|
198
|
+
"""
|
199
|
+
## Example Usage
|
200
|
+
|
201
|
+
```python
|
202
|
+
import pulumi
|
203
|
+
import pulumi_gcp as gcp
|
204
|
+
|
205
|
+
basic = gcp.parametermanager.get_regional_parameter_version(parameter="test-regional-parameter",
|
206
|
+
parameter_version_id="test-regional-parameter-version",
|
207
|
+
location="us-central1")
|
208
|
+
```
|
209
|
+
|
210
|
+
|
211
|
+
:param str location: The location of regional parameter.
|
212
|
+
:param str parameter: The parameter for obtaining the Regional Parameter Version.
|
213
|
+
This can be either the reference of the regional parameter as in `projects/{{project}}/locations/{{location}}/parameters/{{parameter_id}}` or only the name of the regional parameter as in `{{parameter_id}}`.
|
214
|
+
:param str parameter_version_id: The version of the regional parameter to get.
|
215
|
+
:param str project: The project for retrieving the Regional Parameter Version. If it's not specified,
|
216
|
+
the provider project will be used.
|
217
|
+
"""
|
218
|
+
__args__ = dict()
|
219
|
+
__args__['location'] = location
|
220
|
+
__args__['parameter'] = parameter
|
221
|
+
__args__['parameterVersionId'] = parameter_version_id
|
222
|
+
__args__['project'] = project
|
223
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
224
|
+
__ret__ = pulumi.runtime.invoke_output('gcp:parametermanager/getRegionalParameterVersion:getRegionalParameterVersion', __args__, opts=opts, typ=GetRegionalParameterVersionResult)
|
225
|
+
return __ret__.apply(lambda __response__: GetRegionalParameterVersionResult(
|
226
|
+
create_time=pulumi.get(__response__, 'create_time'),
|
227
|
+
disabled=pulumi.get(__response__, 'disabled'),
|
228
|
+
id=pulumi.get(__response__, 'id'),
|
229
|
+
location=pulumi.get(__response__, 'location'),
|
230
|
+
name=pulumi.get(__response__, 'name'),
|
231
|
+
parameter=pulumi.get(__response__, 'parameter'),
|
232
|
+
parameter_data=pulumi.get(__response__, 'parameter_data'),
|
233
|
+
parameter_version_id=pulumi.get(__response__, 'parameter_version_id'),
|
234
|
+
project=pulumi.get(__response__, 'project'),
|
235
|
+
update_time=pulumi.get(__response__, 'update_time')))
|