pulumi-gcp 8.1.0a1726492828__py3-none-any.whl → 8.2.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 +38 -0
- pulumi_gcp/bigquery/__init__.py +1 -0
- pulumi_gcp/bigquery/get_tables.py +143 -0
- pulumi_gcp/bigquery/outputs.py +30 -0
- pulumi_gcp/compute/__init__.py +1 -0
- pulumi_gcp/compute/_inputs.py +2208 -285
- pulumi_gcp/compute/get_instance.py +3 -0
- pulumi_gcp/compute/network_firewall_policy_with_rules.py +826 -0
- pulumi_gcp/compute/outputs.py +1383 -0
- pulumi_gcp/compute/region_target_http_proxy.py +159 -0
- pulumi_gcp/compute/region_target_https_proxy.py +175 -0
- pulumi_gcp/compute/service_attachment.py +75 -0
- pulumi_gcp/compute/target_http_proxy.py +49 -28
- pulumi_gcp/compute/target_https_proxy.py +49 -28
- pulumi_gcp/config/__init__.pyi +4 -0
- pulumi_gcp/config/vars.py +8 -0
- pulumi_gcp/container/_inputs.py +96 -0
- pulumi_gcp/container/attached_cluster.py +54 -1
- pulumi_gcp/container/outputs.py +102 -0
- pulumi_gcp/dataproc/metastore_federation.py +8 -8
- pulumi_gcp/dataproc/metastore_service.py +2 -0
- pulumi_gcp/datastream/stream.py +21 -14
- pulumi_gcp/developerconnect/__init__.py +11 -0
- pulumi_gcp/developerconnect/_inputs.py +301 -0
- pulumi_gcp/developerconnect/connection.py +1034 -0
- pulumi_gcp/developerconnect/git_repository_link.py +873 -0
- pulumi_gcp/developerconnect/outputs.py +247 -0
- pulumi_gcp/gkeonprem/_inputs.py +3 -3
- pulumi_gcp/gkeonprem/outputs.py +2 -2
- pulumi_gcp/memorystore/__init__.py +10 -0
- pulumi_gcp/memorystore/_inputs.py +731 -0
- pulumi_gcp/memorystore/instance.py +1663 -0
- pulumi_gcp/memorystore/outputs.py +598 -0
- pulumi_gcp/netapp/volume.py +101 -0
- pulumi_gcp/organizations/folder.py +52 -33
- pulumi_gcp/provider.py +40 -0
- pulumi_gcp/pulumi-plugin.json +1 -1
- pulumi_gcp/securitycenter/v2_project_mute_config.py +2 -2
- pulumi_gcp/vpcaccess/connector.py +21 -28
- {pulumi_gcp-8.1.0a1726492828.dist-info → pulumi_gcp-8.2.0.dist-info}/METADATA +1 -1
- {pulumi_gcp-8.1.0a1726492828.dist-info → pulumi_gcp-8.2.0.dist-info}/RECORD +43 -32
- {pulumi_gcp-8.1.0a1726492828.dist-info → pulumi_gcp-8.2.0.dist-info}/WHEEL +0 -0
- {pulumi_gcp-8.1.0a1726492828.dist-info → pulumi_gcp-8.2.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,1034 @@
|
|
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
|
+
from ._inputs import *
|
18
|
+
|
19
|
+
__all__ = ['ConnectionArgs', 'Connection']
|
20
|
+
|
21
|
+
@pulumi.input_type
|
22
|
+
class ConnectionArgs:
|
23
|
+
def __init__(__self__, *,
|
24
|
+
connection_id: pulumi.Input[str],
|
25
|
+
location: pulumi.Input[str],
|
26
|
+
annotations: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
27
|
+
disabled: Optional[pulumi.Input[bool]] = None,
|
28
|
+
etag: Optional[pulumi.Input[str]] = None,
|
29
|
+
github_config: Optional[pulumi.Input['ConnectionGithubConfigArgs']] = None,
|
30
|
+
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
31
|
+
project: Optional[pulumi.Input[str]] = None):
|
32
|
+
"""
|
33
|
+
The set of arguments for constructing a Connection resource.
|
34
|
+
:param pulumi.Input[str] connection_id: Required. Id of the requesting object
|
35
|
+
If auto-generating Id server-side, remove this field and
|
36
|
+
connection_id from the method_signature of Create RPC
|
37
|
+
|
38
|
+
|
39
|
+
- - -
|
40
|
+
:param pulumi.Input[str] location: Resource ID segment making up resource `name`. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource type `developerconnect.googleapis.com/GitRepositoryLink`.
|
41
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] annotations: Optional. Allows clients to store small amounts of arbitrary data.
|
42
|
+
**Note**: This field is non-authoritative, and will only manage the annotations present in your configuration.
|
43
|
+
Please refer to the field `effective_annotations` for all of the annotations present on the resource.
|
44
|
+
:param pulumi.Input[bool] disabled: Optional. If disabled is set to true, functionality is disabled for this connection.
|
45
|
+
Repository based API methods and webhooks processing for repositories in
|
46
|
+
this connection will be disabled.
|
47
|
+
:param pulumi.Input[str] etag: Optional. This checksum is computed by the server based on the value of other
|
48
|
+
fields, and may be sent on update and delete requests to ensure the
|
49
|
+
client has an up-to-date value before proceeding.
|
50
|
+
:param pulumi.Input['ConnectionGithubConfigArgs'] github_config: Configuration for connections to github.com.
|
51
|
+
Structure is documented below.
|
52
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] labels: Optional. Labels as key value pairs
|
53
|
+
**Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
|
54
|
+
Please refer to the field `effective_labels` for all of the labels present on the resource.
|
55
|
+
:param pulumi.Input[str] project: The ID of the project in which the resource belongs.
|
56
|
+
If it is not provided, the provider project is used.
|
57
|
+
"""
|
58
|
+
pulumi.set(__self__, "connection_id", connection_id)
|
59
|
+
pulumi.set(__self__, "location", location)
|
60
|
+
if annotations is not None:
|
61
|
+
pulumi.set(__self__, "annotations", annotations)
|
62
|
+
if disabled is not None:
|
63
|
+
pulumi.set(__self__, "disabled", disabled)
|
64
|
+
if etag is not None:
|
65
|
+
pulumi.set(__self__, "etag", etag)
|
66
|
+
if github_config is not None:
|
67
|
+
pulumi.set(__self__, "github_config", github_config)
|
68
|
+
if labels is not None:
|
69
|
+
pulumi.set(__self__, "labels", labels)
|
70
|
+
if project is not None:
|
71
|
+
pulumi.set(__self__, "project", project)
|
72
|
+
|
73
|
+
@property
|
74
|
+
@pulumi.getter(name="connectionId")
|
75
|
+
def connection_id(self) -> pulumi.Input[str]:
|
76
|
+
"""
|
77
|
+
Required. Id of the requesting object
|
78
|
+
If auto-generating Id server-side, remove this field and
|
79
|
+
connection_id from the method_signature of Create RPC
|
80
|
+
|
81
|
+
|
82
|
+
- - -
|
83
|
+
"""
|
84
|
+
return pulumi.get(self, "connection_id")
|
85
|
+
|
86
|
+
@connection_id.setter
|
87
|
+
def connection_id(self, value: pulumi.Input[str]):
|
88
|
+
pulumi.set(self, "connection_id", value)
|
89
|
+
|
90
|
+
@property
|
91
|
+
@pulumi.getter
|
92
|
+
def location(self) -> pulumi.Input[str]:
|
93
|
+
"""
|
94
|
+
Resource ID segment making up resource `name`. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource type `developerconnect.googleapis.com/GitRepositoryLink`.
|
95
|
+
"""
|
96
|
+
return pulumi.get(self, "location")
|
97
|
+
|
98
|
+
@location.setter
|
99
|
+
def location(self, value: pulumi.Input[str]):
|
100
|
+
pulumi.set(self, "location", value)
|
101
|
+
|
102
|
+
@property
|
103
|
+
@pulumi.getter
|
104
|
+
def annotations(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
105
|
+
"""
|
106
|
+
Optional. Allows clients to store small amounts of arbitrary data.
|
107
|
+
**Note**: This field is non-authoritative, and will only manage the annotations present in your configuration.
|
108
|
+
Please refer to the field `effective_annotations` for all of the annotations present on the resource.
|
109
|
+
"""
|
110
|
+
return pulumi.get(self, "annotations")
|
111
|
+
|
112
|
+
@annotations.setter
|
113
|
+
def annotations(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
114
|
+
pulumi.set(self, "annotations", value)
|
115
|
+
|
116
|
+
@property
|
117
|
+
@pulumi.getter
|
118
|
+
def disabled(self) -> Optional[pulumi.Input[bool]]:
|
119
|
+
"""
|
120
|
+
Optional. If disabled is set to true, functionality is disabled for this connection.
|
121
|
+
Repository based API methods and webhooks processing for repositories in
|
122
|
+
this connection will be disabled.
|
123
|
+
"""
|
124
|
+
return pulumi.get(self, "disabled")
|
125
|
+
|
126
|
+
@disabled.setter
|
127
|
+
def disabled(self, value: Optional[pulumi.Input[bool]]):
|
128
|
+
pulumi.set(self, "disabled", value)
|
129
|
+
|
130
|
+
@property
|
131
|
+
@pulumi.getter
|
132
|
+
def etag(self) -> Optional[pulumi.Input[str]]:
|
133
|
+
"""
|
134
|
+
Optional. This checksum is computed by the server based on the value of other
|
135
|
+
fields, and may be sent on update and delete requests to ensure the
|
136
|
+
client has an up-to-date value before proceeding.
|
137
|
+
"""
|
138
|
+
return pulumi.get(self, "etag")
|
139
|
+
|
140
|
+
@etag.setter
|
141
|
+
def etag(self, value: Optional[pulumi.Input[str]]):
|
142
|
+
pulumi.set(self, "etag", value)
|
143
|
+
|
144
|
+
@property
|
145
|
+
@pulumi.getter(name="githubConfig")
|
146
|
+
def github_config(self) -> Optional[pulumi.Input['ConnectionGithubConfigArgs']]:
|
147
|
+
"""
|
148
|
+
Configuration for connections to github.com.
|
149
|
+
Structure is documented below.
|
150
|
+
"""
|
151
|
+
return pulumi.get(self, "github_config")
|
152
|
+
|
153
|
+
@github_config.setter
|
154
|
+
def github_config(self, value: Optional[pulumi.Input['ConnectionGithubConfigArgs']]):
|
155
|
+
pulumi.set(self, "github_config", value)
|
156
|
+
|
157
|
+
@property
|
158
|
+
@pulumi.getter
|
159
|
+
def labels(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
160
|
+
"""
|
161
|
+
Optional. Labels as key value pairs
|
162
|
+
**Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
|
163
|
+
Please refer to the field `effective_labels` for all of the labels present on the resource.
|
164
|
+
"""
|
165
|
+
return pulumi.get(self, "labels")
|
166
|
+
|
167
|
+
@labels.setter
|
168
|
+
def labels(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
169
|
+
pulumi.set(self, "labels", value)
|
170
|
+
|
171
|
+
@property
|
172
|
+
@pulumi.getter
|
173
|
+
def project(self) -> Optional[pulumi.Input[str]]:
|
174
|
+
"""
|
175
|
+
The ID of the project in which the resource belongs.
|
176
|
+
If it is not provided, the provider project is used.
|
177
|
+
"""
|
178
|
+
return pulumi.get(self, "project")
|
179
|
+
|
180
|
+
@project.setter
|
181
|
+
def project(self, value: Optional[pulumi.Input[str]]):
|
182
|
+
pulumi.set(self, "project", value)
|
183
|
+
|
184
|
+
|
185
|
+
@pulumi.input_type
|
186
|
+
class _ConnectionState:
|
187
|
+
def __init__(__self__, *,
|
188
|
+
annotations: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
189
|
+
connection_id: Optional[pulumi.Input[str]] = None,
|
190
|
+
create_time: Optional[pulumi.Input[str]] = None,
|
191
|
+
delete_time: Optional[pulumi.Input[str]] = None,
|
192
|
+
disabled: Optional[pulumi.Input[bool]] = None,
|
193
|
+
effective_annotations: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
194
|
+
effective_labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
195
|
+
etag: Optional[pulumi.Input[str]] = None,
|
196
|
+
github_config: Optional[pulumi.Input['ConnectionGithubConfigArgs']] = None,
|
197
|
+
installation_states: Optional[pulumi.Input[Sequence[pulumi.Input['ConnectionInstallationStateArgs']]]] = None,
|
198
|
+
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
199
|
+
location: Optional[pulumi.Input[str]] = None,
|
200
|
+
name: Optional[pulumi.Input[str]] = None,
|
201
|
+
project: Optional[pulumi.Input[str]] = None,
|
202
|
+
pulumi_labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
203
|
+
reconciling: Optional[pulumi.Input[bool]] = None,
|
204
|
+
uid: Optional[pulumi.Input[str]] = None,
|
205
|
+
update_time: Optional[pulumi.Input[str]] = None):
|
206
|
+
"""
|
207
|
+
Input properties used for looking up and filtering Connection resources.
|
208
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] annotations: Optional. Allows clients to store small amounts of arbitrary data.
|
209
|
+
**Note**: This field is non-authoritative, and will only manage the annotations present in your configuration.
|
210
|
+
Please refer to the field `effective_annotations` for all of the annotations present on the resource.
|
211
|
+
:param pulumi.Input[str] connection_id: Required. Id of the requesting object
|
212
|
+
If auto-generating Id server-side, remove this field and
|
213
|
+
connection_id from the method_signature of Create RPC
|
214
|
+
|
215
|
+
|
216
|
+
- - -
|
217
|
+
:param pulumi.Input[str] create_time: Output only. [Output only] Create timestamp
|
218
|
+
:param pulumi.Input[str] delete_time: Output only. [Output only] Delete timestamp
|
219
|
+
:param pulumi.Input[bool] disabled: Optional. If disabled is set to true, functionality is disabled for this connection.
|
220
|
+
Repository based API methods and webhooks processing for repositories in
|
221
|
+
this connection will be disabled.
|
222
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] effective_labels: All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
|
223
|
+
:param pulumi.Input[str] etag: Optional. This checksum is computed by the server based on the value of other
|
224
|
+
fields, and may be sent on update and delete requests to ensure the
|
225
|
+
client has an up-to-date value before proceeding.
|
226
|
+
:param pulumi.Input['ConnectionGithubConfigArgs'] github_config: Configuration for connections to github.com.
|
227
|
+
Structure is documented below.
|
228
|
+
:param pulumi.Input[Sequence[pulumi.Input['ConnectionInstallationStateArgs']]] installation_states: Describes stage and necessary actions to be taken by the
|
229
|
+
user to complete the installation. Used for GitHub and GitHub Enterprise
|
230
|
+
based connections.
|
231
|
+
Structure is documented below.
|
232
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] labels: Optional. Labels as key value pairs
|
233
|
+
**Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
|
234
|
+
Please refer to the field `effective_labels` for all of the labels present on the resource.
|
235
|
+
:param pulumi.Input[str] location: Resource ID segment making up resource `name`. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource type `developerconnect.googleapis.com/GitRepositoryLink`.
|
236
|
+
:param pulumi.Input[str] name: Identifier. The resource name of the connection, in the format
|
237
|
+
`projects/{project}/locations/{location}/connections/{connection_id}`.
|
238
|
+
:param pulumi.Input[str] project: The ID of the project in which the resource belongs.
|
239
|
+
If it is not provided, the provider project is used.
|
240
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] pulumi_labels: The combination of labels configured directly on the resource
|
241
|
+
and default labels configured on the provider.
|
242
|
+
:param pulumi.Input[bool] reconciling: Output only. Set to true when the connection is being set up or updated in the
|
243
|
+
background.
|
244
|
+
:param pulumi.Input[str] uid: Output only. A system-assigned unique identifier for a the GitRepositoryLink.
|
245
|
+
:param pulumi.Input[str] update_time: Output only. [Output only] Update timestamp
|
246
|
+
"""
|
247
|
+
if annotations is not None:
|
248
|
+
pulumi.set(__self__, "annotations", annotations)
|
249
|
+
if connection_id is not None:
|
250
|
+
pulumi.set(__self__, "connection_id", connection_id)
|
251
|
+
if create_time is not None:
|
252
|
+
pulumi.set(__self__, "create_time", create_time)
|
253
|
+
if delete_time is not None:
|
254
|
+
pulumi.set(__self__, "delete_time", delete_time)
|
255
|
+
if disabled is not None:
|
256
|
+
pulumi.set(__self__, "disabled", disabled)
|
257
|
+
if effective_annotations is not None:
|
258
|
+
pulumi.set(__self__, "effective_annotations", effective_annotations)
|
259
|
+
if effective_labels is not None:
|
260
|
+
pulumi.set(__self__, "effective_labels", effective_labels)
|
261
|
+
if etag is not None:
|
262
|
+
pulumi.set(__self__, "etag", etag)
|
263
|
+
if github_config is not None:
|
264
|
+
pulumi.set(__self__, "github_config", github_config)
|
265
|
+
if installation_states is not None:
|
266
|
+
pulumi.set(__self__, "installation_states", installation_states)
|
267
|
+
if labels is not None:
|
268
|
+
pulumi.set(__self__, "labels", labels)
|
269
|
+
if location is not None:
|
270
|
+
pulumi.set(__self__, "location", location)
|
271
|
+
if name is not None:
|
272
|
+
pulumi.set(__self__, "name", name)
|
273
|
+
if project is not None:
|
274
|
+
pulumi.set(__self__, "project", project)
|
275
|
+
if pulumi_labels is not None:
|
276
|
+
pulumi.set(__self__, "pulumi_labels", pulumi_labels)
|
277
|
+
if reconciling is not None:
|
278
|
+
pulumi.set(__self__, "reconciling", reconciling)
|
279
|
+
if uid is not None:
|
280
|
+
pulumi.set(__self__, "uid", uid)
|
281
|
+
if update_time is not None:
|
282
|
+
pulumi.set(__self__, "update_time", update_time)
|
283
|
+
|
284
|
+
@property
|
285
|
+
@pulumi.getter
|
286
|
+
def annotations(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
287
|
+
"""
|
288
|
+
Optional. Allows clients to store small amounts of arbitrary data.
|
289
|
+
**Note**: This field is non-authoritative, and will only manage the annotations present in your configuration.
|
290
|
+
Please refer to the field `effective_annotations` for all of the annotations present on the resource.
|
291
|
+
"""
|
292
|
+
return pulumi.get(self, "annotations")
|
293
|
+
|
294
|
+
@annotations.setter
|
295
|
+
def annotations(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
296
|
+
pulumi.set(self, "annotations", value)
|
297
|
+
|
298
|
+
@property
|
299
|
+
@pulumi.getter(name="connectionId")
|
300
|
+
def connection_id(self) -> Optional[pulumi.Input[str]]:
|
301
|
+
"""
|
302
|
+
Required. Id of the requesting object
|
303
|
+
If auto-generating Id server-side, remove this field and
|
304
|
+
connection_id from the method_signature of Create RPC
|
305
|
+
|
306
|
+
|
307
|
+
- - -
|
308
|
+
"""
|
309
|
+
return pulumi.get(self, "connection_id")
|
310
|
+
|
311
|
+
@connection_id.setter
|
312
|
+
def connection_id(self, value: Optional[pulumi.Input[str]]):
|
313
|
+
pulumi.set(self, "connection_id", value)
|
314
|
+
|
315
|
+
@property
|
316
|
+
@pulumi.getter(name="createTime")
|
317
|
+
def create_time(self) -> Optional[pulumi.Input[str]]:
|
318
|
+
"""
|
319
|
+
Output only. [Output only] Create timestamp
|
320
|
+
"""
|
321
|
+
return pulumi.get(self, "create_time")
|
322
|
+
|
323
|
+
@create_time.setter
|
324
|
+
def create_time(self, value: Optional[pulumi.Input[str]]):
|
325
|
+
pulumi.set(self, "create_time", value)
|
326
|
+
|
327
|
+
@property
|
328
|
+
@pulumi.getter(name="deleteTime")
|
329
|
+
def delete_time(self) -> Optional[pulumi.Input[str]]:
|
330
|
+
"""
|
331
|
+
Output only. [Output only] Delete timestamp
|
332
|
+
"""
|
333
|
+
return pulumi.get(self, "delete_time")
|
334
|
+
|
335
|
+
@delete_time.setter
|
336
|
+
def delete_time(self, value: Optional[pulumi.Input[str]]):
|
337
|
+
pulumi.set(self, "delete_time", value)
|
338
|
+
|
339
|
+
@property
|
340
|
+
@pulumi.getter
|
341
|
+
def disabled(self) -> Optional[pulumi.Input[bool]]:
|
342
|
+
"""
|
343
|
+
Optional. If disabled is set to true, functionality is disabled for this connection.
|
344
|
+
Repository based API methods and webhooks processing for repositories in
|
345
|
+
this connection will be disabled.
|
346
|
+
"""
|
347
|
+
return pulumi.get(self, "disabled")
|
348
|
+
|
349
|
+
@disabled.setter
|
350
|
+
def disabled(self, value: Optional[pulumi.Input[bool]]):
|
351
|
+
pulumi.set(self, "disabled", value)
|
352
|
+
|
353
|
+
@property
|
354
|
+
@pulumi.getter(name="effectiveAnnotations")
|
355
|
+
def effective_annotations(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
356
|
+
return pulumi.get(self, "effective_annotations")
|
357
|
+
|
358
|
+
@effective_annotations.setter
|
359
|
+
def effective_annotations(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
360
|
+
pulumi.set(self, "effective_annotations", value)
|
361
|
+
|
362
|
+
@property
|
363
|
+
@pulumi.getter(name="effectiveLabels")
|
364
|
+
def effective_labels(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
365
|
+
"""
|
366
|
+
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
|
367
|
+
"""
|
368
|
+
return pulumi.get(self, "effective_labels")
|
369
|
+
|
370
|
+
@effective_labels.setter
|
371
|
+
def effective_labels(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
372
|
+
pulumi.set(self, "effective_labels", value)
|
373
|
+
|
374
|
+
@property
|
375
|
+
@pulumi.getter
|
376
|
+
def etag(self) -> Optional[pulumi.Input[str]]:
|
377
|
+
"""
|
378
|
+
Optional. This checksum is computed by the server based on the value of other
|
379
|
+
fields, and may be sent on update and delete requests to ensure the
|
380
|
+
client has an up-to-date value before proceeding.
|
381
|
+
"""
|
382
|
+
return pulumi.get(self, "etag")
|
383
|
+
|
384
|
+
@etag.setter
|
385
|
+
def etag(self, value: Optional[pulumi.Input[str]]):
|
386
|
+
pulumi.set(self, "etag", value)
|
387
|
+
|
388
|
+
@property
|
389
|
+
@pulumi.getter(name="githubConfig")
|
390
|
+
def github_config(self) -> Optional[pulumi.Input['ConnectionGithubConfigArgs']]:
|
391
|
+
"""
|
392
|
+
Configuration for connections to github.com.
|
393
|
+
Structure is documented below.
|
394
|
+
"""
|
395
|
+
return pulumi.get(self, "github_config")
|
396
|
+
|
397
|
+
@github_config.setter
|
398
|
+
def github_config(self, value: Optional[pulumi.Input['ConnectionGithubConfigArgs']]):
|
399
|
+
pulumi.set(self, "github_config", value)
|
400
|
+
|
401
|
+
@property
|
402
|
+
@pulumi.getter(name="installationStates")
|
403
|
+
def installation_states(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ConnectionInstallationStateArgs']]]]:
|
404
|
+
"""
|
405
|
+
Describes stage and necessary actions to be taken by the
|
406
|
+
user to complete the installation. Used for GitHub and GitHub Enterprise
|
407
|
+
based connections.
|
408
|
+
Structure is documented below.
|
409
|
+
"""
|
410
|
+
return pulumi.get(self, "installation_states")
|
411
|
+
|
412
|
+
@installation_states.setter
|
413
|
+
def installation_states(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ConnectionInstallationStateArgs']]]]):
|
414
|
+
pulumi.set(self, "installation_states", value)
|
415
|
+
|
416
|
+
@property
|
417
|
+
@pulumi.getter
|
418
|
+
def labels(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
419
|
+
"""
|
420
|
+
Optional. Labels as key value pairs
|
421
|
+
**Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
|
422
|
+
Please refer to the field `effective_labels` for all of the labels present on the resource.
|
423
|
+
"""
|
424
|
+
return pulumi.get(self, "labels")
|
425
|
+
|
426
|
+
@labels.setter
|
427
|
+
def labels(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
428
|
+
pulumi.set(self, "labels", value)
|
429
|
+
|
430
|
+
@property
|
431
|
+
@pulumi.getter
|
432
|
+
def location(self) -> Optional[pulumi.Input[str]]:
|
433
|
+
"""
|
434
|
+
Resource ID segment making up resource `name`. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource type `developerconnect.googleapis.com/GitRepositoryLink`.
|
435
|
+
"""
|
436
|
+
return pulumi.get(self, "location")
|
437
|
+
|
438
|
+
@location.setter
|
439
|
+
def location(self, value: Optional[pulumi.Input[str]]):
|
440
|
+
pulumi.set(self, "location", value)
|
441
|
+
|
442
|
+
@property
|
443
|
+
@pulumi.getter
|
444
|
+
def name(self) -> Optional[pulumi.Input[str]]:
|
445
|
+
"""
|
446
|
+
Identifier. The resource name of the connection, in the format
|
447
|
+
`projects/{project}/locations/{location}/connections/{connection_id}`.
|
448
|
+
"""
|
449
|
+
return pulumi.get(self, "name")
|
450
|
+
|
451
|
+
@name.setter
|
452
|
+
def name(self, value: Optional[pulumi.Input[str]]):
|
453
|
+
pulumi.set(self, "name", value)
|
454
|
+
|
455
|
+
@property
|
456
|
+
@pulumi.getter
|
457
|
+
def project(self) -> Optional[pulumi.Input[str]]:
|
458
|
+
"""
|
459
|
+
The ID of the project in which the resource belongs.
|
460
|
+
If it is not provided, the provider project is used.
|
461
|
+
"""
|
462
|
+
return pulumi.get(self, "project")
|
463
|
+
|
464
|
+
@project.setter
|
465
|
+
def project(self, value: Optional[pulumi.Input[str]]):
|
466
|
+
pulumi.set(self, "project", value)
|
467
|
+
|
468
|
+
@property
|
469
|
+
@pulumi.getter(name="pulumiLabels")
|
470
|
+
def pulumi_labels(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
471
|
+
"""
|
472
|
+
The combination of labels configured directly on the resource
|
473
|
+
and default labels configured on the provider.
|
474
|
+
"""
|
475
|
+
return pulumi.get(self, "pulumi_labels")
|
476
|
+
|
477
|
+
@pulumi_labels.setter
|
478
|
+
def pulumi_labels(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
479
|
+
pulumi.set(self, "pulumi_labels", value)
|
480
|
+
|
481
|
+
@property
|
482
|
+
@pulumi.getter
|
483
|
+
def reconciling(self) -> Optional[pulumi.Input[bool]]:
|
484
|
+
"""
|
485
|
+
Output only. Set to true when the connection is being set up or updated in the
|
486
|
+
background.
|
487
|
+
"""
|
488
|
+
return pulumi.get(self, "reconciling")
|
489
|
+
|
490
|
+
@reconciling.setter
|
491
|
+
def reconciling(self, value: Optional[pulumi.Input[bool]]):
|
492
|
+
pulumi.set(self, "reconciling", value)
|
493
|
+
|
494
|
+
@property
|
495
|
+
@pulumi.getter
|
496
|
+
def uid(self) -> Optional[pulumi.Input[str]]:
|
497
|
+
"""
|
498
|
+
Output only. A system-assigned unique identifier for a the GitRepositoryLink.
|
499
|
+
"""
|
500
|
+
return pulumi.get(self, "uid")
|
501
|
+
|
502
|
+
@uid.setter
|
503
|
+
def uid(self, value: Optional[pulumi.Input[str]]):
|
504
|
+
pulumi.set(self, "uid", value)
|
505
|
+
|
506
|
+
@property
|
507
|
+
@pulumi.getter(name="updateTime")
|
508
|
+
def update_time(self) -> Optional[pulumi.Input[str]]:
|
509
|
+
"""
|
510
|
+
Output only. [Output only] Update timestamp
|
511
|
+
"""
|
512
|
+
return pulumi.get(self, "update_time")
|
513
|
+
|
514
|
+
@update_time.setter
|
515
|
+
def update_time(self, value: Optional[pulumi.Input[str]]):
|
516
|
+
pulumi.set(self, "update_time", value)
|
517
|
+
|
518
|
+
|
519
|
+
class Connection(pulumi.CustomResource):
|
520
|
+
@overload
|
521
|
+
def __init__(__self__,
|
522
|
+
resource_name: str,
|
523
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
524
|
+
annotations: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
525
|
+
connection_id: Optional[pulumi.Input[str]] = None,
|
526
|
+
disabled: Optional[pulumi.Input[bool]] = None,
|
527
|
+
etag: Optional[pulumi.Input[str]] = None,
|
528
|
+
github_config: Optional[pulumi.Input[Union['ConnectionGithubConfigArgs', 'ConnectionGithubConfigArgsDict']]] = None,
|
529
|
+
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
530
|
+
location: Optional[pulumi.Input[str]] = None,
|
531
|
+
project: Optional[pulumi.Input[str]] = None,
|
532
|
+
__props__=None):
|
533
|
+
"""
|
534
|
+
## Example Usage
|
535
|
+
|
536
|
+
### Developer Connect Connection Basic
|
537
|
+
|
538
|
+
```python
|
539
|
+
import pulumi
|
540
|
+
import pulumi_gcp as gcp
|
541
|
+
|
542
|
+
my_connection = gcp.developerconnect.Connection("my-connection",
|
543
|
+
location="us-central1",
|
544
|
+
connection_id="tf-test-connection",
|
545
|
+
github_config={
|
546
|
+
"github_app": "DEVELOPER_CONNECT",
|
547
|
+
"authorizer_credential": {
|
548
|
+
"oauth_token_secret_version": "projects/devconnect-terraform-creds/secrets/tf-test-do-not-change-github-oauthtoken-e0b9e7/versions/1",
|
549
|
+
},
|
550
|
+
})
|
551
|
+
```
|
552
|
+
### Developer Connect Connection Github Doc
|
553
|
+
|
554
|
+
```python
|
555
|
+
import pulumi
|
556
|
+
import pulumi_gcp as gcp
|
557
|
+
import pulumi_std as std
|
558
|
+
|
559
|
+
github_token_secret = gcp.secretmanager.Secret("github-token-secret",
|
560
|
+
secret_id="github-token-secret",
|
561
|
+
replication={
|
562
|
+
"auto": {},
|
563
|
+
})
|
564
|
+
github_token_secret_version = gcp.secretmanager.SecretVersion("github-token-secret-version",
|
565
|
+
secret=github_token_secret.id,
|
566
|
+
secret_data=std.file(input="my-github-token.txt").result)
|
567
|
+
p4sa_secret_accessor = gcp.organizations.get_iam_policy(bindings=[{
|
568
|
+
"role": "roles/secretmanager.secretAccessor",
|
569
|
+
"members": ["serviceAccount:service-123456789@gcp-sa-devconnect.iam.gserviceaccount.com"],
|
570
|
+
}])
|
571
|
+
policy = gcp.secretmanager.SecretIamPolicy("policy",
|
572
|
+
secret_id=github_token_secret.secret_id,
|
573
|
+
policy_data=p4sa_secret_accessor.policy_data)
|
574
|
+
my_connection = gcp.developerconnect.Connection("my-connection",
|
575
|
+
location="us-central1",
|
576
|
+
connection_id="my-connection",
|
577
|
+
github_config={
|
578
|
+
"github_app": "DEVELOPER_CONNECT",
|
579
|
+
"app_installation_id": "123123",
|
580
|
+
"authorizer_credential": {
|
581
|
+
"oauth_token_secret_version": github_token_secret_version.id,
|
582
|
+
},
|
583
|
+
})
|
584
|
+
```
|
585
|
+
|
586
|
+
## Import
|
587
|
+
|
588
|
+
Connection can be imported using any of these accepted formats:
|
589
|
+
|
590
|
+
* `projects/{{project}}/locations/{{location}}/connections/{{connection_id}}`
|
591
|
+
|
592
|
+
* `{{project}}/{{location}}/{{connection_id}}`
|
593
|
+
|
594
|
+
* `{{location}}/{{connection_id}}`
|
595
|
+
|
596
|
+
When using the `pulumi import` command, Connection can be imported using one of the formats above. For example:
|
597
|
+
|
598
|
+
```sh
|
599
|
+
$ pulumi import gcp:developerconnect/connection:Connection default projects/{{project}}/locations/{{location}}/connections/{{connection_id}}
|
600
|
+
```
|
601
|
+
|
602
|
+
```sh
|
603
|
+
$ pulumi import gcp:developerconnect/connection:Connection default {{project}}/{{location}}/{{connection_id}}
|
604
|
+
```
|
605
|
+
|
606
|
+
```sh
|
607
|
+
$ pulumi import gcp:developerconnect/connection:Connection default {{location}}/{{connection_id}}
|
608
|
+
```
|
609
|
+
|
610
|
+
:param str resource_name: The name of the resource.
|
611
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
612
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] annotations: Optional. Allows clients to store small amounts of arbitrary data.
|
613
|
+
**Note**: This field is non-authoritative, and will only manage the annotations present in your configuration.
|
614
|
+
Please refer to the field `effective_annotations` for all of the annotations present on the resource.
|
615
|
+
:param pulumi.Input[str] connection_id: Required. Id of the requesting object
|
616
|
+
If auto-generating Id server-side, remove this field and
|
617
|
+
connection_id from the method_signature of Create RPC
|
618
|
+
|
619
|
+
|
620
|
+
- - -
|
621
|
+
:param pulumi.Input[bool] disabled: Optional. If disabled is set to true, functionality is disabled for this connection.
|
622
|
+
Repository based API methods and webhooks processing for repositories in
|
623
|
+
this connection will be disabled.
|
624
|
+
:param pulumi.Input[str] etag: Optional. This checksum is computed by the server based on the value of other
|
625
|
+
fields, and may be sent on update and delete requests to ensure the
|
626
|
+
client has an up-to-date value before proceeding.
|
627
|
+
:param pulumi.Input[Union['ConnectionGithubConfigArgs', 'ConnectionGithubConfigArgsDict']] github_config: Configuration for connections to github.com.
|
628
|
+
Structure is documented below.
|
629
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] labels: Optional. Labels as key value pairs
|
630
|
+
**Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
|
631
|
+
Please refer to the field `effective_labels` for all of the labels present on the resource.
|
632
|
+
:param pulumi.Input[str] location: Resource ID segment making up resource `name`. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource type `developerconnect.googleapis.com/GitRepositoryLink`.
|
633
|
+
:param pulumi.Input[str] project: The ID of the project in which the resource belongs.
|
634
|
+
If it is not provided, the provider project is used.
|
635
|
+
"""
|
636
|
+
...
|
637
|
+
@overload
|
638
|
+
def __init__(__self__,
|
639
|
+
resource_name: str,
|
640
|
+
args: ConnectionArgs,
|
641
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
642
|
+
"""
|
643
|
+
## Example Usage
|
644
|
+
|
645
|
+
### Developer Connect Connection Basic
|
646
|
+
|
647
|
+
```python
|
648
|
+
import pulumi
|
649
|
+
import pulumi_gcp as gcp
|
650
|
+
|
651
|
+
my_connection = gcp.developerconnect.Connection("my-connection",
|
652
|
+
location="us-central1",
|
653
|
+
connection_id="tf-test-connection",
|
654
|
+
github_config={
|
655
|
+
"github_app": "DEVELOPER_CONNECT",
|
656
|
+
"authorizer_credential": {
|
657
|
+
"oauth_token_secret_version": "projects/devconnect-terraform-creds/secrets/tf-test-do-not-change-github-oauthtoken-e0b9e7/versions/1",
|
658
|
+
},
|
659
|
+
})
|
660
|
+
```
|
661
|
+
### Developer Connect Connection Github Doc
|
662
|
+
|
663
|
+
```python
|
664
|
+
import pulumi
|
665
|
+
import pulumi_gcp as gcp
|
666
|
+
import pulumi_std as std
|
667
|
+
|
668
|
+
github_token_secret = gcp.secretmanager.Secret("github-token-secret",
|
669
|
+
secret_id="github-token-secret",
|
670
|
+
replication={
|
671
|
+
"auto": {},
|
672
|
+
})
|
673
|
+
github_token_secret_version = gcp.secretmanager.SecretVersion("github-token-secret-version",
|
674
|
+
secret=github_token_secret.id,
|
675
|
+
secret_data=std.file(input="my-github-token.txt").result)
|
676
|
+
p4sa_secret_accessor = gcp.organizations.get_iam_policy(bindings=[{
|
677
|
+
"role": "roles/secretmanager.secretAccessor",
|
678
|
+
"members": ["serviceAccount:service-123456789@gcp-sa-devconnect.iam.gserviceaccount.com"],
|
679
|
+
}])
|
680
|
+
policy = gcp.secretmanager.SecretIamPolicy("policy",
|
681
|
+
secret_id=github_token_secret.secret_id,
|
682
|
+
policy_data=p4sa_secret_accessor.policy_data)
|
683
|
+
my_connection = gcp.developerconnect.Connection("my-connection",
|
684
|
+
location="us-central1",
|
685
|
+
connection_id="my-connection",
|
686
|
+
github_config={
|
687
|
+
"github_app": "DEVELOPER_CONNECT",
|
688
|
+
"app_installation_id": "123123",
|
689
|
+
"authorizer_credential": {
|
690
|
+
"oauth_token_secret_version": github_token_secret_version.id,
|
691
|
+
},
|
692
|
+
})
|
693
|
+
```
|
694
|
+
|
695
|
+
## Import
|
696
|
+
|
697
|
+
Connection can be imported using any of these accepted formats:
|
698
|
+
|
699
|
+
* `projects/{{project}}/locations/{{location}}/connections/{{connection_id}}`
|
700
|
+
|
701
|
+
* `{{project}}/{{location}}/{{connection_id}}`
|
702
|
+
|
703
|
+
* `{{location}}/{{connection_id}}`
|
704
|
+
|
705
|
+
When using the `pulumi import` command, Connection can be imported using one of the formats above. For example:
|
706
|
+
|
707
|
+
```sh
|
708
|
+
$ pulumi import gcp:developerconnect/connection:Connection default projects/{{project}}/locations/{{location}}/connections/{{connection_id}}
|
709
|
+
```
|
710
|
+
|
711
|
+
```sh
|
712
|
+
$ pulumi import gcp:developerconnect/connection:Connection default {{project}}/{{location}}/{{connection_id}}
|
713
|
+
```
|
714
|
+
|
715
|
+
```sh
|
716
|
+
$ pulumi import gcp:developerconnect/connection:Connection default {{location}}/{{connection_id}}
|
717
|
+
```
|
718
|
+
|
719
|
+
:param str resource_name: The name of the resource.
|
720
|
+
:param ConnectionArgs args: The arguments to use to populate this resource's properties.
|
721
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
722
|
+
"""
|
723
|
+
...
|
724
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
725
|
+
resource_args, opts = _utilities.get_resource_args_opts(ConnectionArgs, pulumi.ResourceOptions, *args, **kwargs)
|
726
|
+
if resource_args is not None:
|
727
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
728
|
+
else:
|
729
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
730
|
+
|
731
|
+
def _internal_init(__self__,
|
732
|
+
resource_name: str,
|
733
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
734
|
+
annotations: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
735
|
+
connection_id: Optional[pulumi.Input[str]] = None,
|
736
|
+
disabled: Optional[pulumi.Input[bool]] = None,
|
737
|
+
etag: Optional[pulumi.Input[str]] = None,
|
738
|
+
github_config: Optional[pulumi.Input[Union['ConnectionGithubConfigArgs', 'ConnectionGithubConfigArgsDict']]] = None,
|
739
|
+
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
740
|
+
location: Optional[pulumi.Input[str]] = None,
|
741
|
+
project: Optional[pulumi.Input[str]] = None,
|
742
|
+
__props__=None):
|
743
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
744
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
745
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
746
|
+
if opts.id is None:
|
747
|
+
if __props__ is not None:
|
748
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
749
|
+
__props__ = ConnectionArgs.__new__(ConnectionArgs)
|
750
|
+
|
751
|
+
__props__.__dict__["annotations"] = annotations
|
752
|
+
if connection_id is None and not opts.urn:
|
753
|
+
raise TypeError("Missing required property 'connection_id'")
|
754
|
+
__props__.__dict__["connection_id"] = connection_id
|
755
|
+
__props__.__dict__["disabled"] = disabled
|
756
|
+
__props__.__dict__["etag"] = etag
|
757
|
+
__props__.__dict__["github_config"] = github_config
|
758
|
+
__props__.__dict__["labels"] = labels
|
759
|
+
if location is None and not opts.urn:
|
760
|
+
raise TypeError("Missing required property 'location'")
|
761
|
+
__props__.__dict__["location"] = location
|
762
|
+
__props__.__dict__["project"] = project
|
763
|
+
__props__.__dict__["create_time"] = None
|
764
|
+
__props__.__dict__["delete_time"] = None
|
765
|
+
__props__.__dict__["effective_annotations"] = None
|
766
|
+
__props__.__dict__["effective_labels"] = None
|
767
|
+
__props__.__dict__["installation_states"] = None
|
768
|
+
__props__.__dict__["name"] = None
|
769
|
+
__props__.__dict__["pulumi_labels"] = None
|
770
|
+
__props__.__dict__["reconciling"] = None
|
771
|
+
__props__.__dict__["uid"] = None
|
772
|
+
__props__.__dict__["update_time"] = None
|
773
|
+
secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["effectiveLabels", "pulumiLabels"])
|
774
|
+
opts = pulumi.ResourceOptions.merge(opts, secret_opts)
|
775
|
+
super(Connection, __self__).__init__(
|
776
|
+
'gcp:developerconnect/connection:Connection',
|
777
|
+
resource_name,
|
778
|
+
__props__,
|
779
|
+
opts)
|
780
|
+
|
781
|
+
@staticmethod
|
782
|
+
def get(resource_name: str,
|
783
|
+
id: pulumi.Input[str],
|
784
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
785
|
+
annotations: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
786
|
+
connection_id: Optional[pulumi.Input[str]] = None,
|
787
|
+
create_time: Optional[pulumi.Input[str]] = None,
|
788
|
+
delete_time: Optional[pulumi.Input[str]] = None,
|
789
|
+
disabled: Optional[pulumi.Input[bool]] = None,
|
790
|
+
effective_annotations: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
791
|
+
effective_labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
792
|
+
etag: Optional[pulumi.Input[str]] = None,
|
793
|
+
github_config: Optional[pulumi.Input[Union['ConnectionGithubConfigArgs', 'ConnectionGithubConfigArgsDict']]] = None,
|
794
|
+
installation_states: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ConnectionInstallationStateArgs', 'ConnectionInstallationStateArgsDict']]]]] = None,
|
795
|
+
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
796
|
+
location: Optional[pulumi.Input[str]] = None,
|
797
|
+
name: Optional[pulumi.Input[str]] = None,
|
798
|
+
project: Optional[pulumi.Input[str]] = None,
|
799
|
+
pulumi_labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
800
|
+
reconciling: Optional[pulumi.Input[bool]] = None,
|
801
|
+
uid: Optional[pulumi.Input[str]] = None,
|
802
|
+
update_time: Optional[pulumi.Input[str]] = None) -> 'Connection':
|
803
|
+
"""
|
804
|
+
Get an existing Connection resource's state with the given name, id, and optional extra
|
805
|
+
properties used to qualify the lookup.
|
806
|
+
|
807
|
+
:param str resource_name: The unique name of the resulting resource.
|
808
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
809
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
810
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] annotations: Optional. Allows clients to store small amounts of arbitrary data.
|
811
|
+
**Note**: This field is non-authoritative, and will only manage the annotations present in your configuration.
|
812
|
+
Please refer to the field `effective_annotations` for all of the annotations present on the resource.
|
813
|
+
:param pulumi.Input[str] connection_id: Required. Id of the requesting object
|
814
|
+
If auto-generating Id server-side, remove this field and
|
815
|
+
connection_id from the method_signature of Create RPC
|
816
|
+
|
817
|
+
|
818
|
+
- - -
|
819
|
+
:param pulumi.Input[str] create_time: Output only. [Output only] Create timestamp
|
820
|
+
:param pulumi.Input[str] delete_time: Output only. [Output only] Delete timestamp
|
821
|
+
:param pulumi.Input[bool] disabled: Optional. If disabled is set to true, functionality is disabled for this connection.
|
822
|
+
Repository based API methods and webhooks processing for repositories in
|
823
|
+
this connection will be disabled.
|
824
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] effective_labels: All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
|
825
|
+
:param pulumi.Input[str] etag: Optional. This checksum is computed by the server based on the value of other
|
826
|
+
fields, and may be sent on update and delete requests to ensure the
|
827
|
+
client has an up-to-date value before proceeding.
|
828
|
+
:param pulumi.Input[Union['ConnectionGithubConfigArgs', 'ConnectionGithubConfigArgsDict']] github_config: Configuration for connections to github.com.
|
829
|
+
Structure is documented below.
|
830
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['ConnectionInstallationStateArgs', 'ConnectionInstallationStateArgsDict']]]] installation_states: Describes stage and necessary actions to be taken by the
|
831
|
+
user to complete the installation. Used for GitHub and GitHub Enterprise
|
832
|
+
based connections.
|
833
|
+
Structure is documented below.
|
834
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] labels: Optional. Labels as key value pairs
|
835
|
+
**Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
|
836
|
+
Please refer to the field `effective_labels` for all of the labels present on the resource.
|
837
|
+
:param pulumi.Input[str] location: Resource ID segment making up resource `name`. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource type `developerconnect.googleapis.com/GitRepositoryLink`.
|
838
|
+
:param pulumi.Input[str] name: Identifier. The resource name of the connection, in the format
|
839
|
+
`projects/{project}/locations/{location}/connections/{connection_id}`.
|
840
|
+
:param pulumi.Input[str] project: The ID of the project in which the resource belongs.
|
841
|
+
If it is not provided, the provider project is used.
|
842
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] pulumi_labels: The combination of labels configured directly on the resource
|
843
|
+
and default labels configured on the provider.
|
844
|
+
:param pulumi.Input[bool] reconciling: Output only. Set to true when the connection is being set up or updated in the
|
845
|
+
background.
|
846
|
+
:param pulumi.Input[str] uid: Output only. A system-assigned unique identifier for a the GitRepositoryLink.
|
847
|
+
:param pulumi.Input[str] update_time: Output only. [Output only] Update timestamp
|
848
|
+
"""
|
849
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
850
|
+
|
851
|
+
__props__ = _ConnectionState.__new__(_ConnectionState)
|
852
|
+
|
853
|
+
__props__.__dict__["annotations"] = annotations
|
854
|
+
__props__.__dict__["connection_id"] = connection_id
|
855
|
+
__props__.__dict__["create_time"] = create_time
|
856
|
+
__props__.__dict__["delete_time"] = delete_time
|
857
|
+
__props__.__dict__["disabled"] = disabled
|
858
|
+
__props__.__dict__["effective_annotations"] = effective_annotations
|
859
|
+
__props__.__dict__["effective_labels"] = effective_labels
|
860
|
+
__props__.__dict__["etag"] = etag
|
861
|
+
__props__.__dict__["github_config"] = github_config
|
862
|
+
__props__.__dict__["installation_states"] = installation_states
|
863
|
+
__props__.__dict__["labels"] = labels
|
864
|
+
__props__.__dict__["location"] = location
|
865
|
+
__props__.__dict__["name"] = name
|
866
|
+
__props__.__dict__["project"] = project
|
867
|
+
__props__.__dict__["pulumi_labels"] = pulumi_labels
|
868
|
+
__props__.__dict__["reconciling"] = reconciling
|
869
|
+
__props__.__dict__["uid"] = uid
|
870
|
+
__props__.__dict__["update_time"] = update_time
|
871
|
+
return Connection(resource_name, opts=opts, __props__=__props__)
|
872
|
+
|
873
|
+
@property
|
874
|
+
@pulumi.getter
|
875
|
+
def annotations(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
|
876
|
+
"""
|
877
|
+
Optional. Allows clients to store small amounts of arbitrary data.
|
878
|
+
**Note**: This field is non-authoritative, and will only manage the annotations present in your configuration.
|
879
|
+
Please refer to the field `effective_annotations` for all of the annotations present on the resource.
|
880
|
+
"""
|
881
|
+
return pulumi.get(self, "annotations")
|
882
|
+
|
883
|
+
@property
|
884
|
+
@pulumi.getter(name="connectionId")
|
885
|
+
def connection_id(self) -> pulumi.Output[str]:
|
886
|
+
"""
|
887
|
+
Required. Id of the requesting object
|
888
|
+
If auto-generating Id server-side, remove this field and
|
889
|
+
connection_id from the method_signature of Create RPC
|
890
|
+
|
891
|
+
|
892
|
+
- - -
|
893
|
+
"""
|
894
|
+
return pulumi.get(self, "connection_id")
|
895
|
+
|
896
|
+
@property
|
897
|
+
@pulumi.getter(name="createTime")
|
898
|
+
def create_time(self) -> pulumi.Output[str]:
|
899
|
+
"""
|
900
|
+
Output only. [Output only] Create timestamp
|
901
|
+
"""
|
902
|
+
return pulumi.get(self, "create_time")
|
903
|
+
|
904
|
+
@property
|
905
|
+
@pulumi.getter(name="deleteTime")
|
906
|
+
def delete_time(self) -> pulumi.Output[str]:
|
907
|
+
"""
|
908
|
+
Output only. [Output only] Delete timestamp
|
909
|
+
"""
|
910
|
+
return pulumi.get(self, "delete_time")
|
911
|
+
|
912
|
+
@property
|
913
|
+
@pulumi.getter
|
914
|
+
def disabled(self) -> pulumi.Output[Optional[bool]]:
|
915
|
+
"""
|
916
|
+
Optional. If disabled is set to true, functionality is disabled for this connection.
|
917
|
+
Repository based API methods and webhooks processing for repositories in
|
918
|
+
this connection will be disabled.
|
919
|
+
"""
|
920
|
+
return pulumi.get(self, "disabled")
|
921
|
+
|
922
|
+
@property
|
923
|
+
@pulumi.getter(name="effectiveAnnotations")
|
924
|
+
def effective_annotations(self) -> pulumi.Output[Mapping[str, str]]:
|
925
|
+
return pulumi.get(self, "effective_annotations")
|
926
|
+
|
927
|
+
@property
|
928
|
+
@pulumi.getter(name="effectiveLabels")
|
929
|
+
def effective_labels(self) -> pulumi.Output[Mapping[str, str]]:
|
930
|
+
"""
|
931
|
+
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
|
932
|
+
"""
|
933
|
+
return pulumi.get(self, "effective_labels")
|
934
|
+
|
935
|
+
@property
|
936
|
+
@pulumi.getter
|
937
|
+
def etag(self) -> pulumi.Output[Optional[str]]:
|
938
|
+
"""
|
939
|
+
Optional. This checksum is computed by the server based on the value of other
|
940
|
+
fields, and may be sent on update and delete requests to ensure the
|
941
|
+
client has an up-to-date value before proceeding.
|
942
|
+
"""
|
943
|
+
return pulumi.get(self, "etag")
|
944
|
+
|
945
|
+
@property
|
946
|
+
@pulumi.getter(name="githubConfig")
|
947
|
+
def github_config(self) -> pulumi.Output[Optional['outputs.ConnectionGithubConfig']]:
|
948
|
+
"""
|
949
|
+
Configuration for connections to github.com.
|
950
|
+
Structure is documented below.
|
951
|
+
"""
|
952
|
+
return pulumi.get(self, "github_config")
|
953
|
+
|
954
|
+
@property
|
955
|
+
@pulumi.getter(name="installationStates")
|
956
|
+
def installation_states(self) -> pulumi.Output[Sequence['outputs.ConnectionInstallationState']]:
|
957
|
+
"""
|
958
|
+
Describes stage and necessary actions to be taken by the
|
959
|
+
user to complete the installation. Used for GitHub and GitHub Enterprise
|
960
|
+
based connections.
|
961
|
+
Structure is documented below.
|
962
|
+
"""
|
963
|
+
return pulumi.get(self, "installation_states")
|
964
|
+
|
965
|
+
@property
|
966
|
+
@pulumi.getter
|
967
|
+
def labels(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
|
968
|
+
"""
|
969
|
+
Optional. Labels as key value pairs
|
970
|
+
**Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
|
971
|
+
Please refer to the field `effective_labels` for all of the labels present on the resource.
|
972
|
+
"""
|
973
|
+
return pulumi.get(self, "labels")
|
974
|
+
|
975
|
+
@property
|
976
|
+
@pulumi.getter
|
977
|
+
def location(self) -> pulumi.Output[str]:
|
978
|
+
"""
|
979
|
+
Resource ID segment making up resource `name`. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource type `developerconnect.googleapis.com/GitRepositoryLink`.
|
980
|
+
"""
|
981
|
+
return pulumi.get(self, "location")
|
982
|
+
|
983
|
+
@property
|
984
|
+
@pulumi.getter
|
985
|
+
def name(self) -> pulumi.Output[str]:
|
986
|
+
"""
|
987
|
+
Identifier. The resource name of the connection, in the format
|
988
|
+
`projects/{project}/locations/{location}/connections/{connection_id}`.
|
989
|
+
"""
|
990
|
+
return pulumi.get(self, "name")
|
991
|
+
|
992
|
+
@property
|
993
|
+
@pulumi.getter
|
994
|
+
def project(self) -> pulumi.Output[str]:
|
995
|
+
"""
|
996
|
+
The ID of the project in which the resource belongs.
|
997
|
+
If it is not provided, the provider project is used.
|
998
|
+
"""
|
999
|
+
return pulumi.get(self, "project")
|
1000
|
+
|
1001
|
+
@property
|
1002
|
+
@pulumi.getter(name="pulumiLabels")
|
1003
|
+
def pulumi_labels(self) -> pulumi.Output[Mapping[str, str]]:
|
1004
|
+
"""
|
1005
|
+
The combination of labels configured directly on the resource
|
1006
|
+
and default labels configured on the provider.
|
1007
|
+
"""
|
1008
|
+
return pulumi.get(self, "pulumi_labels")
|
1009
|
+
|
1010
|
+
@property
|
1011
|
+
@pulumi.getter
|
1012
|
+
def reconciling(self) -> pulumi.Output[bool]:
|
1013
|
+
"""
|
1014
|
+
Output only. Set to true when the connection is being set up or updated in the
|
1015
|
+
background.
|
1016
|
+
"""
|
1017
|
+
return pulumi.get(self, "reconciling")
|
1018
|
+
|
1019
|
+
@property
|
1020
|
+
@pulumi.getter
|
1021
|
+
def uid(self) -> pulumi.Output[str]:
|
1022
|
+
"""
|
1023
|
+
Output only. A system-assigned unique identifier for a the GitRepositoryLink.
|
1024
|
+
"""
|
1025
|
+
return pulumi.get(self, "uid")
|
1026
|
+
|
1027
|
+
@property
|
1028
|
+
@pulumi.getter(name="updateTime")
|
1029
|
+
def update_time(self) -> pulumi.Output[str]:
|
1030
|
+
"""
|
1031
|
+
Output only. [Output only] Update timestamp
|
1032
|
+
"""
|
1033
|
+
return pulumi.get(self, "update_time")
|
1034
|
+
|