pulumi-gcp 8.17.0a1738274430__py3-none-any.whl → 8.18.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 +115 -0
- pulumi_gcp/accesscontextmanager/service_perimeter_dry_run_resource.py +28 -0
- pulumi_gcp/alloydb/cluster.py +75 -7
- pulumi_gcp/alloydb/user.py +10 -1
- pulumi_gcp/apigee/_inputs.py +91 -0
- pulumi_gcp/apigee/endpoint_attachment.py +0 -64
- pulumi_gcp/apigee/environment.py +54 -0
- pulumi_gcp/apigee/outputs.py +54 -0
- pulumi_gcp/apihub/__init__.py +10 -0
- pulumi_gcp/apihub/_inputs.py +154 -0
- pulumi_gcp/apihub/api_hub_instance.py +784 -0
- pulumi_gcp/apihub/outputs.py +124 -0
- 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/__init__.py +1 -0
- pulumi_gcp/chronicle/_inputs.py +124 -0
- pulumi_gcp/chronicle/outputs.py +112 -0
- pulumi_gcp/chronicle/retrohunt.py +629 -0
- pulumi_gcp/cloudquota/s_quota_adjuster_settings.py +23 -23
- pulumi_gcp/cloudrunv2/_inputs.py +197 -0
- pulumi_gcp/cloudrunv2/get_service.py +12 -1
- pulumi_gcp/cloudrunv2/outputs.py +256 -0
- pulumi_gcp/cloudrunv2/service.py +159 -0
- pulumi_gcp/colab/__init__.py +5 -0
- pulumi_gcp/colab/_inputs.py +131 -0
- pulumi_gcp/colab/get_runtime_template_iam_policy.py +182 -0
- pulumi_gcp/colab/outputs.py +92 -0
- pulumi_gcp/colab/runtime.py +696 -0
- pulumi_gcp/colab/runtime_template_iam_binding.py +828 -0
- pulumi_gcp/colab/runtime_template_iam_member.py +828 -0
- pulumi_gcp/colab/runtime_template_iam_policy.py +667 -0
- pulumi_gcp/compute/__init__.py +4 -0
- pulumi_gcp/compute/_inputs.py +535 -9
- pulumi_gcp/compute/firewall_policy_rule.py +104 -22
- pulumi_gcp/compute/firewall_policy_with_rules.py +114 -42
- pulumi_gcp/compute/get_instance_template_iam_policy.py +159 -0
- pulumi_gcp/compute/get_network.py +3 -3
- pulumi_gcp/compute/instance_template_iam_binding.py +998 -0
- pulumi_gcp/compute/instance_template_iam_member.py +998 -0
- pulumi_gcp/compute/instance_template_iam_policy.py +817 -0
- pulumi_gcp/compute/interconnect_attachment.py +189 -2
- pulumi_gcp/compute/network.py +7 -7
- pulumi_gcp/compute/network_firewall_policy_rule.py +122 -10
- pulumi_gcp/compute/network_firewall_policy_with_rules.py +116 -44
- pulumi_gcp/compute/outputs.py +358 -6
- pulumi_gcp/compute/project_metadata_item.py +12 -0
- pulumi_gcp/compute/public_advertised_prefix.py +87 -0
- pulumi_gcp/compute/region_network_firewall_policy_rule.py +130 -10
- pulumi_gcp/compute/region_network_firewall_policy_with_rules.py +104 -32
- pulumi_gcp/compute/router_peer.py +227 -3
- pulumi_gcp/config/__init__.pyi +2 -0
- pulumi_gcp/config/vars.py +4 -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/filestore/get_instance.py +12 -1
- pulumi_gcp/filestore/instance.py +75 -0
- pulumi_gcp/firestore/field.py +60 -0
- pulumi_gcp/gemini/code_repository_index.py +29 -33
- pulumi_gcp/gemini/get_repository_group_iam_policy.py +28 -2
- pulumi_gcp/gemini/repository_group.py +76 -26
- pulumi_gcp/gemini/repository_group_iam_binding.py +258 -0
- pulumi_gcp/gemini/repository_group_iam_member.py +258 -0
- pulumi_gcp/gemini/repository_group_iam_policy.py +258 -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/kms/__init__.py +1 -0
- pulumi_gcp/kms/get_key_handles.py +172 -0
- pulumi_gcp/kms/outputs.py +45 -0
- pulumi_gcp/netapp/storage_pool.py +1 -1
- pulumi_gcp/networkconnectivity/spoke.py +76 -14
- pulumi_gcp/networksecurity/_inputs.py +72 -0
- pulumi_gcp/networksecurity/outputs.py +76 -0
- pulumi_gcp/networksecurity/security_profile.py +233 -7
- pulumi_gcp/networksecurity/security_profile_group.py +218 -0
- pulumi_gcp/organizations/__init__.py +1 -0
- pulumi_gcp/organizations/get_s.py +128 -0
- pulumi_gcp/organizations/outputs.py +63 -0
- pulumi_gcp/orgpolicy/policy.py +2 -2
- pulumi_gcp/parametermanager/__init__.py +6 -0
- pulumi_gcp/parametermanager/get_parameter.py +211 -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/get_regional_parameters.py +157 -0
- pulumi_gcp/parametermanager/outputs.py +366 -0
- pulumi_gcp/parametermanager/parameter_version.py +496 -0
- pulumi_gcp/parametermanager/regional_parameter_version.py +10 -38
- pulumi_gcp/provider.py +20 -0
- pulumi_gcp/pubsub/_inputs.py +477 -1
- pulumi_gcp/pubsub/outputs.py +631 -2
- pulumi_gcp/pubsub/subscription.py +6 -6
- pulumi_gcp/pubsub/topic.py +112 -0
- pulumi_gcp/pulumi-plugin.json +1 -1
- pulumi_gcp/redis/__init__.py +1 -0
- pulumi_gcp/redis/_inputs.py +342 -6
- pulumi_gcp/redis/cluster.py +223 -102
- pulumi_gcp/redis/cluster_user_created_connections.py +845 -0
- pulumi_gcp/redis/outputs.py +268 -4
- 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.17.0a1738274430.dist-info → pulumi_gcp-8.18.0.dist-info}/METADATA +1 -1
- {pulumi_gcp-8.17.0a1738274430.dist-info → pulumi_gcp-8.18.0.dist-info}/RECORD +137 -110
- {pulumi_gcp-8.17.0a1738274430.dist-info → pulumi_gcp-8.18.0.dist-info}/WHEEL +0 -0
- {pulumi_gcp-8.17.0a1738274430.dist-info → pulumi_gcp-8.18.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,211 @@
|
|
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
|
+
'GetParameterResult',
|
20
|
+
'AwaitableGetParameterResult',
|
21
|
+
'get_parameter',
|
22
|
+
'get_parameter_output',
|
23
|
+
]
|
24
|
+
|
25
|
+
@pulumi.output_type
|
26
|
+
class GetParameterResult:
|
27
|
+
"""
|
28
|
+
A collection of values returned by getParameter.
|
29
|
+
"""
|
30
|
+
def __init__(__self__, create_time=None, effective_labels=None, format=None, id=None, labels=None, name=None, parameter_id=None, policy_members=None, project=None, pulumi_labels=None, update_time=None):
|
31
|
+
if create_time and not isinstance(create_time, str):
|
32
|
+
raise TypeError("Expected argument 'create_time' to be a str")
|
33
|
+
pulumi.set(__self__, "create_time", create_time)
|
34
|
+
if effective_labels and not isinstance(effective_labels, dict):
|
35
|
+
raise TypeError("Expected argument 'effective_labels' to be a dict")
|
36
|
+
pulumi.set(__self__, "effective_labels", effective_labels)
|
37
|
+
if format and not isinstance(format, str):
|
38
|
+
raise TypeError("Expected argument 'format' to be a str")
|
39
|
+
pulumi.set(__self__, "format", format)
|
40
|
+
if id and not isinstance(id, str):
|
41
|
+
raise TypeError("Expected argument 'id' to be a str")
|
42
|
+
pulumi.set(__self__, "id", id)
|
43
|
+
if labels and not isinstance(labels, dict):
|
44
|
+
raise TypeError("Expected argument 'labels' to be a dict")
|
45
|
+
pulumi.set(__self__, "labels", labels)
|
46
|
+
if name and not isinstance(name, str):
|
47
|
+
raise TypeError("Expected argument 'name' to be a str")
|
48
|
+
pulumi.set(__self__, "name", name)
|
49
|
+
if parameter_id and not isinstance(parameter_id, str):
|
50
|
+
raise TypeError("Expected argument 'parameter_id' to be a str")
|
51
|
+
pulumi.set(__self__, "parameter_id", parameter_id)
|
52
|
+
if policy_members and not isinstance(policy_members, list):
|
53
|
+
raise TypeError("Expected argument 'policy_members' to be a list")
|
54
|
+
pulumi.set(__self__, "policy_members", policy_members)
|
55
|
+
if project and not isinstance(project, str):
|
56
|
+
raise TypeError("Expected argument 'project' to be a str")
|
57
|
+
pulumi.set(__self__, "project", project)
|
58
|
+
if pulumi_labels and not isinstance(pulumi_labels, dict):
|
59
|
+
raise TypeError("Expected argument 'pulumi_labels' to be a dict")
|
60
|
+
pulumi.set(__self__, "pulumi_labels", pulumi_labels)
|
61
|
+
if update_time and not isinstance(update_time, str):
|
62
|
+
raise TypeError("Expected argument 'update_time' to be a str")
|
63
|
+
pulumi.set(__self__, "update_time", update_time)
|
64
|
+
|
65
|
+
@property
|
66
|
+
@pulumi.getter(name="createTime")
|
67
|
+
def create_time(self) -> str:
|
68
|
+
return pulumi.get(self, "create_time")
|
69
|
+
|
70
|
+
@property
|
71
|
+
@pulumi.getter(name="effectiveLabels")
|
72
|
+
def effective_labels(self) -> Mapping[str, str]:
|
73
|
+
return pulumi.get(self, "effective_labels")
|
74
|
+
|
75
|
+
@property
|
76
|
+
@pulumi.getter
|
77
|
+
def format(self) -> str:
|
78
|
+
return pulumi.get(self, "format")
|
79
|
+
|
80
|
+
@property
|
81
|
+
@pulumi.getter
|
82
|
+
def id(self) -> str:
|
83
|
+
"""
|
84
|
+
The provider-assigned unique ID for this managed resource.
|
85
|
+
"""
|
86
|
+
return pulumi.get(self, "id")
|
87
|
+
|
88
|
+
@property
|
89
|
+
@pulumi.getter
|
90
|
+
def labels(self) -> Mapping[str, str]:
|
91
|
+
return pulumi.get(self, "labels")
|
92
|
+
|
93
|
+
@property
|
94
|
+
@pulumi.getter
|
95
|
+
def name(self) -> str:
|
96
|
+
return pulumi.get(self, "name")
|
97
|
+
|
98
|
+
@property
|
99
|
+
@pulumi.getter(name="parameterId")
|
100
|
+
def parameter_id(self) -> str:
|
101
|
+
return pulumi.get(self, "parameter_id")
|
102
|
+
|
103
|
+
@property
|
104
|
+
@pulumi.getter(name="policyMembers")
|
105
|
+
def policy_members(self) -> Sequence['outputs.GetParameterPolicyMemberResult']:
|
106
|
+
return pulumi.get(self, "policy_members")
|
107
|
+
|
108
|
+
@property
|
109
|
+
@pulumi.getter
|
110
|
+
def project(self) -> Optional[str]:
|
111
|
+
return pulumi.get(self, "project")
|
112
|
+
|
113
|
+
@property
|
114
|
+
@pulumi.getter(name="pulumiLabels")
|
115
|
+
def pulumi_labels(self) -> Mapping[str, str]:
|
116
|
+
return pulumi.get(self, "pulumi_labels")
|
117
|
+
|
118
|
+
@property
|
119
|
+
@pulumi.getter(name="updateTime")
|
120
|
+
def update_time(self) -> str:
|
121
|
+
return pulumi.get(self, "update_time")
|
122
|
+
|
123
|
+
|
124
|
+
class AwaitableGetParameterResult(GetParameterResult):
|
125
|
+
# pylint: disable=using-constant-test
|
126
|
+
def __await__(self):
|
127
|
+
if False:
|
128
|
+
yield self
|
129
|
+
return GetParameterResult(
|
130
|
+
create_time=self.create_time,
|
131
|
+
effective_labels=self.effective_labels,
|
132
|
+
format=self.format,
|
133
|
+
id=self.id,
|
134
|
+
labels=self.labels,
|
135
|
+
name=self.name,
|
136
|
+
parameter_id=self.parameter_id,
|
137
|
+
policy_members=self.policy_members,
|
138
|
+
project=self.project,
|
139
|
+
pulumi_labels=self.pulumi_labels,
|
140
|
+
update_time=self.update_time)
|
141
|
+
|
142
|
+
|
143
|
+
def get_parameter(parameter_id: Optional[str] = None,
|
144
|
+
project: Optional[str] = None,
|
145
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetParameterResult:
|
146
|
+
"""
|
147
|
+
## Example Usage
|
148
|
+
|
149
|
+
```python
|
150
|
+
import pulumi
|
151
|
+
import pulumi_gcp as gcp
|
152
|
+
|
153
|
+
parameter_datasource = gcp.parametermanager.get_parameter(parameter_id="foobar")
|
154
|
+
```
|
155
|
+
|
156
|
+
|
157
|
+
:param str parameter_id: The name of the parameter.
|
158
|
+
:param str project: The ID of the project in which the resource belongs.
|
159
|
+
"""
|
160
|
+
__args__ = dict()
|
161
|
+
__args__['parameterId'] = parameter_id
|
162
|
+
__args__['project'] = project
|
163
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
164
|
+
__ret__ = pulumi.runtime.invoke('gcp:parametermanager/getParameter:getParameter', __args__, opts=opts, typ=GetParameterResult).value
|
165
|
+
|
166
|
+
return AwaitableGetParameterResult(
|
167
|
+
create_time=pulumi.get(__ret__, 'create_time'),
|
168
|
+
effective_labels=pulumi.get(__ret__, 'effective_labels'),
|
169
|
+
format=pulumi.get(__ret__, 'format'),
|
170
|
+
id=pulumi.get(__ret__, 'id'),
|
171
|
+
labels=pulumi.get(__ret__, 'labels'),
|
172
|
+
name=pulumi.get(__ret__, 'name'),
|
173
|
+
parameter_id=pulumi.get(__ret__, 'parameter_id'),
|
174
|
+
policy_members=pulumi.get(__ret__, 'policy_members'),
|
175
|
+
project=pulumi.get(__ret__, 'project'),
|
176
|
+
pulumi_labels=pulumi.get(__ret__, 'pulumi_labels'),
|
177
|
+
update_time=pulumi.get(__ret__, 'update_time'))
|
178
|
+
def get_parameter_output(parameter_id: Optional[pulumi.Input[str]] = None,
|
179
|
+
project: Optional[pulumi.Input[Optional[str]]] = None,
|
180
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetParameterResult]:
|
181
|
+
"""
|
182
|
+
## Example Usage
|
183
|
+
|
184
|
+
```python
|
185
|
+
import pulumi
|
186
|
+
import pulumi_gcp as gcp
|
187
|
+
|
188
|
+
parameter_datasource = gcp.parametermanager.get_parameter(parameter_id="foobar")
|
189
|
+
```
|
190
|
+
|
191
|
+
|
192
|
+
:param str parameter_id: The name of the parameter.
|
193
|
+
:param str project: The ID of the project in which the resource belongs.
|
194
|
+
"""
|
195
|
+
__args__ = dict()
|
196
|
+
__args__['parameterId'] = parameter_id
|
197
|
+
__args__['project'] = project
|
198
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
199
|
+
__ret__ = pulumi.runtime.invoke_output('gcp:parametermanager/getParameter:getParameter', __args__, opts=opts, typ=GetParameterResult)
|
200
|
+
return __ret__.apply(lambda __response__: GetParameterResult(
|
201
|
+
create_time=pulumi.get(__response__, 'create_time'),
|
202
|
+
effective_labels=pulumi.get(__response__, 'effective_labels'),
|
203
|
+
format=pulumi.get(__response__, 'format'),
|
204
|
+
id=pulumi.get(__response__, 'id'),
|
205
|
+
labels=pulumi.get(__response__, 'labels'),
|
206
|
+
name=pulumi.get(__response__, 'name'),
|
207
|
+
parameter_id=pulumi.get(__response__, 'parameter_id'),
|
208
|
+
policy_members=pulumi.get(__response__, 'policy_members'),
|
209
|
+
project=pulumi.get(__response__, 'project'),
|
210
|
+
pulumi_labels=pulumi.get(__response__, 'pulumi_labels'),
|
211
|
+
update_time=pulumi.get(__response__, 'update_time')))
|
@@ -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')))
|