pulumi-azuredevops 3.9.0a1744781039__py3-none-any.whl → 3.9.0a1745292941__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_azuredevops/__init__.py +19 -0
- pulumi_azuredevops/_inputs.py +152 -26
- pulumi_azuredevops/build_folder_permissions.py +7 -0
- pulumi_azuredevops/extension.py +426 -0
- pulumi_azuredevops/feed_permission.py +28 -0
- pulumi_azuredevops/get_git_repository_file.py +201 -0
- pulumi_azuredevops/git_repository_file.py +256 -0
- pulumi_azuredevops/outputs.py +122 -16
- pulumi_azuredevops/pulumi-plugin.json +1 -1
- pulumi_azuredevops/service_endpoint_git_hub_enterprise.py +122 -31
- pulumi_azuredevops/serviceendpoint_openshift.py +688 -0
- {pulumi_azuredevops-3.9.0a1744781039.dist-info → pulumi_azuredevops-3.9.0a1745292941.dist-info}/METADATA +1 -1
- {pulumi_azuredevops-3.9.0a1744781039.dist-info → pulumi_azuredevops-3.9.0a1745292941.dist-info}/RECORD +15 -12
- {pulumi_azuredevops-3.9.0a1744781039.dist-info → pulumi_azuredevops-3.9.0a1745292941.dist-info}/WHEEL +1 -1
- {pulumi_azuredevops-3.9.0a1744781039.dist-info → pulumi_azuredevops-3.9.0a1745292941.dist-info}/top_level.txt +0 -0
@@ -22,36 +22,30 @@ __all__ = ['ServiceEndpointGitHubEnterpriseArgs', 'ServiceEndpointGitHubEnterpri
|
|
22
22
|
@pulumi.input_type
|
23
23
|
class ServiceEndpointGitHubEnterpriseArgs:
|
24
24
|
def __init__(__self__, *,
|
25
|
-
auth_personal: pulumi.Input['ServiceEndpointGitHubEnterpriseAuthPersonalArgs'],
|
26
25
|
project_id: pulumi.Input[builtins.str],
|
27
26
|
service_endpoint_name: pulumi.Input[builtins.str],
|
28
|
-
|
29
|
-
|
27
|
+
auth_oauth: Optional[pulumi.Input['ServiceEndpointGitHubEnterpriseAuthOauthArgs']] = None,
|
28
|
+
auth_personal: Optional[pulumi.Input['ServiceEndpointGitHubEnterpriseAuthPersonalArgs']] = None,
|
29
|
+
description: Optional[pulumi.Input[builtins.str]] = None,
|
30
|
+
url: Optional[pulumi.Input[builtins.str]] = None):
|
30
31
|
"""
|
31
32
|
The set of arguments for constructing a ServiceEndpointGitHubEnterprise resource.
|
32
|
-
:param pulumi.Input['ServiceEndpointGitHubEnterpriseAuthPersonalArgs'] auth_personal: An `auth_personal` block as documented below. Allows connecting using a personal access token.
|
33
33
|
:param pulumi.Input[builtins.str] project_id: The ID of the project.
|
34
34
|
:param pulumi.Input[builtins.str] service_endpoint_name: The Service Endpoint name.
|
35
|
+
:param pulumi.Input['ServiceEndpointGitHubEnterpriseAuthOauthArgs'] auth_oauth: An `auth_oauth` block as documented below. Allows connecting using an Oauth token.
|
36
|
+
:param pulumi.Input['ServiceEndpointGitHubEnterpriseAuthPersonalArgs'] auth_personal: An `auth_personal` block as documented below. Allows connecting using a personal access token.
|
35
37
|
:param pulumi.Input[builtins.str] url: GitHub Enterprise Server Url.
|
36
38
|
"""
|
37
|
-
pulumi.set(__self__, "auth_personal", auth_personal)
|
38
39
|
pulumi.set(__self__, "project_id", project_id)
|
39
40
|
pulumi.set(__self__, "service_endpoint_name", service_endpoint_name)
|
40
|
-
|
41
|
+
if auth_oauth is not None:
|
42
|
+
pulumi.set(__self__, "auth_oauth", auth_oauth)
|
43
|
+
if auth_personal is not None:
|
44
|
+
pulumi.set(__self__, "auth_personal", auth_personal)
|
41
45
|
if description is not None:
|
42
46
|
pulumi.set(__self__, "description", description)
|
43
|
-
|
44
|
-
|
45
|
-
@pulumi.getter(name="authPersonal")
|
46
|
-
def auth_personal(self) -> pulumi.Input['ServiceEndpointGitHubEnterpriseAuthPersonalArgs']:
|
47
|
-
"""
|
48
|
-
An `auth_personal` block as documented below. Allows connecting using a personal access token.
|
49
|
-
"""
|
50
|
-
return pulumi.get(self, "auth_personal")
|
51
|
-
|
52
|
-
@auth_personal.setter
|
53
|
-
def auth_personal(self, value: pulumi.Input['ServiceEndpointGitHubEnterpriseAuthPersonalArgs']):
|
54
|
-
pulumi.set(self, "auth_personal", value)
|
47
|
+
if url is not None:
|
48
|
+
pulumi.set(__self__, "url", url)
|
55
49
|
|
56
50
|
@property
|
57
51
|
@pulumi.getter(name="projectId")
|
@@ -78,16 +72,28 @@ class ServiceEndpointGitHubEnterpriseArgs:
|
|
78
72
|
pulumi.set(self, "service_endpoint_name", value)
|
79
73
|
|
80
74
|
@property
|
81
|
-
@pulumi.getter
|
82
|
-
def
|
75
|
+
@pulumi.getter(name="authOauth")
|
76
|
+
def auth_oauth(self) -> Optional[pulumi.Input['ServiceEndpointGitHubEnterpriseAuthOauthArgs']]:
|
83
77
|
"""
|
84
|
-
|
78
|
+
An `auth_oauth` block as documented below. Allows connecting using an Oauth token.
|
85
79
|
"""
|
86
|
-
return pulumi.get(self, "
|
80
|
+
return pulumi.get(self, "auth_oauth")
|
87
81
|
|
88
|
-
@
|
89
|
-
def
|
90
|
-
pulumi.set(self, "
|
82
|
+
@auth_oauth.setter
|
83
|
+
def auth_oauth(self, value: Optional[pulumi.Input['ServiceEndpointGitHubEnterpriseAuthOauthArgs']]):
|
84
|
+
pulumi.set(self, "auth_oauth", value)
|
85
|
+
|
86
|
+
@property
|
87
|
+
@pulumi.getter(name="authPersonal")
|
88
|
+
def auth_personal(self) -> Optional[pulumi.Input['ServiceEndpointGitHubEnterpriseAuthPersonalArgs']]:
|
89
|
+
"""
|
90
|
+
An `auth_personal` block as documented below. Allows connecting using a personal access token.
|
91
|
+
"""
|
92
|
+
return pulumi.get(self, "auth_personal")
|
93
|
+
|
94
|
+
@auth_personal.setter
|
95
|
+
def auth_personal(self, value: Optional[pulumi.Input['ServiceEndpointGitHubEnterpriseAuthPersonalArgs']]):
|
96
|
+
pulumi.set(self, "auth_personal", value)
|
91
97
|
|
92
98
|
@property
|
93
99
|
@pulumi.getter
|
@@ -98,10 +104,23 @@ class ServiceEndpointGitHubEnterpriseArgs:
|
|
98
104
|
def description(self, value: Optional[pulumi.Input[builtins.str]]):
|
99
105
|
pulumi.set(self, "description", value)
|
100
106
|
|
107
|
+
@property
|
108
|
+
@pulumi.getter
|
109
|
+
def url(self) -> Optional[pulumi.Input[builtins.str]]:
|
110
|
+
"""
|
111
|
+
GitHub Enterprise Server Url.
|
112
|
+
"""
|
113
|
+
return pulumi.get(self, "url")
|
114
|
+
|
115
|
+
@url.setter
|
116
|
+
def url(self, value: Optional[pulumi.Input[builtins.str]]):
|
117
|
+
pulumi.set(self, "url", value)
|
118
|
+
|
101
119
|
|
102
120
|
@pulumi.input_type
|
103
121
|
class _ServiceEndpointGitHubEnterpriseState:
|
104
122
|
def __init__(__self__, *,
|
123
|
+
auth_oauth: Optional[pulumi.Input['ServiceEndpointGitHubEnterpriseAuthOauthArgs']] = None,
|
105
124
|
auth_personal: Optional[pulumi.Input['ServiceEndpointGitHubEnterpriseAuthPersonalArgs']] = None,
|
106
125
|
authorization: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None,
|
107
126
|
description: Optional[pulumi.Input[builtins.str]] = None,
|
@@ -110,11 +129,14 @@ class _ServiceEndpointGitHubEnterpriseState:
|
|
110
129
|
url: Optional[pulumi.Input[builtins.str]] = None):
|
111
130
|
"""
|
112
131
|
Input properties used for looking up and filtering ServiceEndpointGitHubEnterprise resources.
|
132
|
+
:param pulumi.Input['ServiceEndpointGitHubEnterpriseAuthOauthArgs'] auth_oauth: An `auth_oauth` block as documented below. Allows connecting using an Oauth token.
|
113
133
|
:param pulumi.Input['ServiceEndpointGitHubEnterpriseAuthPersonalArgs'] auth_personal: An `auth_personal` block as documented below. Allows connecting using a personal access token.
|
114
134
|
:param pulumi.Input[builtins.str] project_id: The ID of the project.
|
115
135
|
:param pulumi.Input[builtins.str] service_endpoint_name: The Service Endpoint name.
|
116
136
|
:param pulumi.Input[builtins.str] url: GitHub Enterprise Server Url.
|
117
137
|
"""
|
138
|
+
if auth_oauth is not None:
|
139
|
+
pulumi.set(__self__, "auth_oauth", auth_oauth)
|
118
140
|
if auth_personal is not None:
|
119
141
|
pulumi.set(__self__, "auth_personal", auth_personal)
|
120
142
|
if authorization is not None:
|
@@ -128,6 +150,18 @@ class _ServiceEndpointGitHubEnterpriseState:
|
|
128
150
|
if url is not None:
|
129
151
|
pulumi.set(__self__, "url", url)
|
130
152
|
|
153
|
+
@property
|
154
|
+
@pulumi.getter(name="authOauth")
|
155
|
+
def auth_oauth(self) -> Optional[pulumi.Input['ServiceEndpointGitHubEnterpriseAuthOauthArgs']]:
|
156
|
+
"""
|
157
|
+
An `auth_oauth` block as documented below. Allows connecting using an Oauth token.
|
158
|
+
"""
|
159
|
+
return pulumi.get(self, "auth_oauth")
|
160
|
+
|
161
|
+
@auth_oauth.setter
|
162
|
+
def auth_oauth(self, value: Optional[pulumi.Input['ServiceEndpointGitHubEnterpriseAuthOauthArgs']]):
|
163
|
+
pulumi.set(self, "auth_oauth", value)
|
164
|
+
|
131
165
|
@property
|
132
166
|
@pulumi.getter(name="authPersonal")
|
133
167
|
def auth_personal(self) -> Optional[pulumi.Input['ServiceEndpointGitHubEnterpriseAuthPersonalArgs']]:
|
@@ -200,6 +234,7 @@ class ServiceEndpointGitHubEnterprise(pulumi.CustomResource):
|
|
200
234
|
def __init__(__self__,
|
201
235
|
resource_name: str,
|
202
236
|
opts: Optional[pulumi.ResourceOptions] = None,
|
237
|
+
auth_oauth: Optional[pulumi.Input[Union['ServiceEndpointGitHubEnterpriseAuthOauthArgs', 'ServiceEndpointGitHubEnterpriseAuthOauthArgsDict']]] = None,
|
203
238
|
auth_personal: Optional[pulumi.Input[Union['ServiceEndpointGitHubEnterpriseAuthPersonalArgs', 'ServiceEndpointGitHubEnterpriseAuthPersonalArgsDict']]] = None,
|
204
239
|
description: Optional[pulumi.Input[builtins.str]] = None,
|
205
240
|
project_id: Optional[pulumi.Input[builtins.str]] = None,
|
@@ -211,6 +246,8 @@ class ServiceEndpointGitHubEnterprise(pulumi.CustomResource):
|
|
211
246
|
|
212
247
|
## Example Usage
|
213
248
|
|
249
|
+
### With token
|
250
|
+
|
214
251
|
```python
|
215
252
|
import pulumi
|
216
253
|
import pulumi_azuredevops as azuredevops
|
@@ -231,6 +268,27 @@ class ServiceEndpointGitHubEnterprise(pulumi.CustomResource):
|
|
231
268
|
})
|
232
269
|
```
|
233
270
|
|
271
|
+
### With OAuth
|
272
|
+
|
273
|
+
```python
|
274
|
+
import pulumi
|
275
|
+
import pulumi_azuredevops as azuredevops
|
276
|
+
|
277
|
+
example = azuredevops.Project("example",
|
278
|
+
name="Example Project",
|
279
|
+
visibility="private",
|
280
|
+
version_control="Git",
|
281
|
+
work_item_template="Agile",
|
282
|
+
description="Managed by Pulumi")
|
283
|
+
example_service_endpoint_git_hub_enterprise = azuredevops.ServiceEndpointGitHubEnterprise("example",
|
284
|
+
project_id=example.id,
|
285
|
+
service_endpoint_name="Example GitHub Enterprise",
|
286
|
+
description="Managed by Pulumi",
|
287
|
+
auth_oauth={
|
288
|
+
"oauth_configuration_id": "00000000-0000-0000-0000-000000000000",
|
289
|
+
})
|
290
|
+
```
|
291
|
+
ss
|
234
292
|
## Relevant Links
|
235
293
|
|
236
294
|
- [Azure DevOps Service REST API 7.0 - Service Endpoints](https://docs.microsoft.com/en-us/rest/api/azure/devops/serviceendpoint/endpoints?view=azure-devops-rest-7.0)
|
@@ -245,6 +303,7 @@ class ServiceEndpointGitHubEnterprise(pulumi.CustomResource):
|
|
245
303
|
|
246
304
|
:param str resource_name: The name of the resource.
|
247
305
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
306
|
+
:param pulumi.Input[Union['ServiceEndpointGitHubEnterpriseAuthOauthArgs', 'ServiceEndpointGitHubEnterpriseAuthOauthArgsDict']] auth_oauth: An `auth_oauth` block as documented below. Allows connecting using an Oauth token.
|
248
307
|
:param pulumi.Input[Union['ServiceEndpointGitHubEnterpriseAuthPersonalArgs', 'ServiceEndpointGitHubEnterpriseAuthPersonalArgsDict']] auth_personal: An `auth_personal` block as documented below. Allows connecting using a personal access token.
|
249
308
|
:param pulumi.Input[builtins.str] project_id: The ID of the project.
|
250
309
|
:param pulumi.Input[builtins.str] service_endpoint_name: The Service Endpoint name.
|
@@ -261,6 +320,8 @@ class ServiceEndpointGitHubEnterprise(pulumi.CustomResource):
|
|
261
320
|
|
262
321
|
## Example Usage
|
263
322
|
|
323
|
+
### With token
|
324
|
+
|
264
325
|
```python
|
265
326
|
import pulumi
|
266
327
|
import pulumi_azuredevops as azuredevops
|
@@ -281,6 +342,27 @@ class ServiceEndpointGitHubEnterprise(pulumi.CustomResource):
|
|
281
342
|
})
|
282
343
|
```
|
283
344
|
|
345
|
+
### With OAuth
|
346
|
+
|
347
|
+
```python
|
348
|
+
import pulumi
|
349
|
+
import pulumi_azuredevops as azuredevops
|
350
|
+
|
351
|
+
example = azuredevops.Project("example",
|
352
|
+
name="Example Project",
|
353
|
+
visibility="private",
|
354
|
+
version_control="Git",
|
355
|
+
work_item_template="Agile",
|
356
|
+
description="Managed by Pulumi")
|
357
|
+
example_service_endpoint_git_hub_enterprise = azuredevops.ServiceEndpointGitHubEnterprise("example",
|
358
|
+
project_id=example.id,
|
359
|
+
service_endpoint_name="Example GitHub Enterprise",
|
360
|
+
description="Managed by Pulumi",
|
361
|
+
auth_oauth={
|
362
|
+
"oauth_configuration_id": "00000000-0000-0000-0000-000000000000",
|
363
|
+
})
|
364
|
+
```
|
365
|
+
ss
|
284
366
|
## Relevant Links
|
285
367
|
|
286
368
|
- [Azure DevOps Service REST API 7.0 - Service Endpoints](https://docs.microsoft.com/en-us/rest/api/azure/devops/serviceendpoint/endpoints?view=azure-devops-rest-7.0)
|
@@ -308,6 +390,7 @@ class ServiceEndpointGitHubEnterprise(pulumi.CustomResource):
|
|
308
390
|
def _internal_init(__self__,
|
309
391
|
resource_name: str,
|
310
392
|
opts: Optional[pulumi.ResourceOptions] = None,
|
393
|
+
auth_oauth: Optional[pulumi.Input[Union['ServiceEndpointGitHubEnterpriseAuthOauthArgs', 'ServiceEndpointGitHubEnterpriseAuthOauthArgsDict']]] = None,
|
311
394
|
auth_personal: Optional[pulumi.Input[Union['ServiceEndpointGitHubEnterpriseAuthPersonalArgs', 'ServiceEndpointGitHubEnterpriseAuthPersonalArgsDict']]] = None,
|
312
395
|
description: Optional[pulumi.Input[builtins.str]] = None,
|
313
396
|
project_id: Optional[pulumi.Input[builtins.str]] = None,
|
@@ -322,8 +405,7 @@ class ServiceEndpointGitHubEnterprise(pulumi.CustomResource):
|
|
322
405
|
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
323
406
|
__props__ = ServiceEndpointGitHubEnterpriseArgs.__new__(ServiceEndpointGitHubEnterpriseArgs)
|
324
407
|
|
325
|
-
|
326
|
-
raise TypeError("Missing required property 'auth_personal'")
|
408
|
+
__props__.__dict__["auth_oauth"] = auth_oauth
|
327
409
|
__props__.__dict__["auth_personal"] = auth_personal
|
328
410
|
__props__.__dict__["description"] = description
|
329
411
|
if project_id is None and not opts.urn:
|
@@ -332,8 +414,6 @@ class ServiceEndpointGitHubEnterprise(pulumi.CustomResource):
|
|
332
414
|
if service_endpoint_name is None and not opts.urn:
|
333
415
|
raise TypeError("Missing required property 'service_endpoint_name'")
|
334
416
|
__props__.__dict__["service_endpoint_name"] = service_endpoint_name
|
335
|
-
if url is None and not opts.urn:
|
336
|
-
raise TypeError("Missing required property 'url'")
|
337
417
|
__props__.__dict__["url"] = url
|
338
418
|
__props__.__dict__["authorization"] = None
|
339
419
|
super(ServiceEndpointGitHubEnterprise, __self__).__init__(
|
@@ -346,6 +426,7 @@ class ServiceEndpointGitHubEnterprise(pulumi.CustomResource):
|
|
346
426
|
def get(resource_name: str,
|
347
427
|
id: pulumi.Input[str],
|
348
428
|
opts: Optional[pulumi.ResourceOptions] = None,
|
429
|
+
auth_oauth: Optional[pulumi.Input[Union['ServiceEndpointGitHubEnterpriseAuthOauthArgs', 'ServiceEndpointGitHubEnterpriseAuthOauthArgsDict']]] = None,
|
349
430
|
auth_personal: Optional[pulumi.Input[Union['ServiceEndpointGitHubEnterpriseAuthPersonalArgs', 'ServiceEndpointGitHubEnterpriseAuthPersonalArgsDict']]] = None,
|
350
431
|
authorization: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None,
|
351
432
|
description: Optional[pulumi.Input[builtins.str]] = None,
|
@@ -359,6 +440,7 @@ class ServiceEndpointGitHubEnterprise(pulumi.CustomResource):
|
|
359
440
|
:param str resource_name: The unique name of the resulting resource.
|
360
441
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
361
442
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
443
|
+
:param pulumi.Input[Union['ServiceEndpointGitHubEnterpriseAuthOauthArgs', 'ServiceEndpointGitHubEnterpriseAuthOauthArgsDict']] auth_oauth: An `auth_oauth` block as documented below. Allows connecting using an Oauth token.
|
362
444
|
:param pulumi.Input[Union['ServiceEndpointGitHubEnterpriseAuthPersonalArgs', 'ServiceEndpointGitHubEnterpriseAuthPersonalArgsDict']] auth_personal: An `auth_personal` block as documented below. Allows connecting using a personal access token.
|
363
445
|
:param pulumi.Input[builtins.str] project_id: The ID of the project.
|
364
446
|
:param pulumi.Input[builtins.str] service_endpoint_name: The Service Endpoint name.
|
@@ -368,6 +450,7 @@ class ServiceEndpointGitHubEnterprise(pulumi.CustomResource):
|
|
368
450
|
|
369
451
|
__props__ = _ServiceEndpointGitHubEnterpriseState.__new__(_ServiceEndpointGitHubEnterpriseState)
|
370
452
|
|
453
|
+
__props__.__dict__["auth_oauth"] = auth_oauth
|
371
454
|
__props__.__dict__["auth_personal"] = auth_personal
|
372
455
|
__props__.__dict__["authorization"] = authorization
|
373
456
|
__props__.__dict__["description"] = description
|
@@ -376,9 +459,17 @@ class ServiceEndpointGitHubEnterprise(pulumi.CustomResource):
|
|
376
459
|
__props__.__dict__["url"] = url
|
377
460
|
return ServiceEndpointGitHubEnterprise(resource_name, opts=opts, __props__=__props__)
|
378
461
|
|
462
|
+
@property
|
463
|
+
@pulumi.getter(name="authOauth")
|
464
|
+
def auth_oauth(self) -> pulumi.Output[Optional['outputs.ServiceEndpointGitHubEnterpriseAuthOauth']]:
|
465
|
+
"""
|
466
|
+
An `auth_oauth` block as documented below. Allows connecting using an Oauth token.
|
467
|
+
"""
|
468
|
+
return pulumi.get(self, "auth_oauth")
|
469
|
+
|
379
470
|
@property
|
380
471
|
@pulumi.getter(name="authPersonal")
|
381
|
-
def auth_personal(self) -> pulumi.Output['outputs.ServiceEndpointGitHubEnterpriseAuthPersonal']:
|
472
|
+
def auth_personal(self) -> pulumi.Output[Optional['outputs.ServiceEndpointGitHubEnterpriseAuthPersonal']]:
|
382
473
|
"""
|
383
474
|
An `auth_personal` block as documented below. Allows connecting using a personal access token.
|
384
475
|
"""
|
@@ -412,7 +503,7 @@ class ServiceEndpointGitHubEnterprise(pulumi.CustomResource):
|
|
412
503
|
|
413
504
|
@property
|
414
505
|
@pulumi.getter
|
415
|
-
def url(self) -> pulumi.Output[builtins.str]:
|
506
|
+
def url(self) -> pulumi.Output[Optional[builtins.str]]:
|
416
507
|
"""
|
417
508
|
GitHub Enterprise Server Url.
|
418
509
|
"""
|