pulumi-azuredevops 3.1.0a1710568843__py3-none-any.whl → 3.6.0a1736832240__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 +96 -0
- pulumi_azuredevops/_inputs.py +1740 -108
- pulumi_azuredevops/_utilities.py +41 -5
- pulumi_azuredevops/area_permissions.py +9 -6
- pulumi_azuredevops/branch_policy_auto_reviewers.py +52 -49
- pulumi_azuredevops/branch_policy_build_validation.py +86 -79
- pulumi_azuredevops/branch_policy_comment_resolution.py +60 -57
- pulumi_azuredevops/branch_policy_merge_types.py +68 -65
- pulumi_azuredevops/branch_policy_min_reviewers.py +72 -69
- pulumi_azuredevops/branch_policy_status_check.py +66 -61
- pulumi_azuredevops/branch_policy_work_item_linking.py +60 -57
- pulumi_azuredevops/build_definition.py +380 -198
- pulumi_azuredevops/build_definition_permissions.py +186 -165
- pulumi_azuredevops/build_folder.py +13 -10
- pulumi_azuredevops/build_folder_permissions.py +33 -32
- pulumi_azuredevops/check_approval.py +19 -14
- pulumi_azuredevops/check_branch_control.py +109 -108
- pulumi_azuredevops/check_business_hours.py +109 -108
- pulumi_azuredevops/check_exclusive_lock.py +77 -28
- pulumi_azuredevops/check_required_template.py +66 -65
- pulumi_azuredevops/config/__init__.pyi +5 -0
- pulumi_azuredevops/config/vars.py +5 -0
- pulumi_azuredevops/elastic_pool.py +31 -26
- pulumi_azuredevops/environment.py +17 -10
- pulumi_azuredevops/environment_resource_kubernetes.py +198 -2
- pulumi_azuredevops/feed.py +372 -0
- pulumi_azuredevops/feed_permission.py +415 -0
- pulumi_azuredevops/get_agent_queue.py +28 -19
- pulumi_azuredevops/get_area.py +28 -15
- pulumi_azuredevops/get_build_definition.py +32 -15
- pulumi_azuredevops/get_client_config.py +12 -9
- pulumi_azuredevops/get_environment.py +72 -5
- pulumi_azuredevops/get_feed.py +186 -0
- pulumi_azuredevops/get_git_repository.py +39 -10
- pulumi_azuredevops/get_group.py +45 -22
- pulumi_azuredevops/get_groups.py +18 -9
- pulumi_azuredevops/get_identity_group.py +152 -0
- pulumi_azuredevops/get_identity_groups.py +140 -0
- pulumi_azuredevops/get_identity_users.py +122 -0
- pulumi_azuredevops/get_iteration.py +24 -11
- pulumi_azuredevops/get_pool.py +16 -9
- pulumi_azuredevops/get_pools.py +12 -9
- pulumi_azuredevops/get_project.py +22 -10
- pulumi_azuredevops/get_projects.py +16 -9
- pulumi_azuredevops/get_repositories.py +22 -9
- pulumi_azuredevops/get_securityrole_definitions.py +141 -0
- pulumi_azuredevops/get_service_endpoint_azure_rm.py +70 -26
- pulumi_azuredevops/get_service_endpoint_github.py +19 -13
- pulumi_azuredevops/get_serviceendpoint_azurecr.py +31 -11
- pulumi_azuredevops/get_serviceendpoint_bitbucket.py +219 -0
- pulumi_azuredevops/get_serviceendpoint_npm.py +22 -11
- pulumi_azuredevops/get_serviceendpoint_sonarcloud.py +21 -11
- pulumi_azuredevops/get_team.py +29 -15
- pulumi_azuredevops/get_teams.py +16 -9
- pulumi_azuredevops/get_users.py +26 -87
- pulumi_azuredevops/get_variable_group.py +27 -17
- pulumi_azuredevops/git.py +57 -97
- pulumi_azuredevops/git_permissions.py +78 -75
- pulumi_azuredevops/git_repository_branch.py +29 -20
- pulumi_azuredevops/git_repository_file.py +23 -18
- pulumi_azuredevops/group.py +43 -14
- pulumi_azuredevops/group_entitlement.py +5 -8
- pulumi_azuredevops/group_membership.py +57 -28
- pulumi_azuredevops/iterative_permissions.py +9 -6
- pulumi_azuredevops/library_permissions.py +7 -4
- pulumi_azuredevops/outputs.py +447 -54
- pulumi_azuredevops/pipeline_authorization.py +101 -47
- pulumi_azuredevops/pool.py +7 -4
- pulumi_azuredevops/project.py +19 -16
- pulumi_azuredevops/project_features.py +9 -6
- pulumi_azuredevops/project_permissions.py +9 -6
- pulumi_azuredevops/project_pipeline_settings.py +15 -12
- pulumi_azuredevops/provider.py +5 -40
- pulumi_azuredevops/pulumi-plugin.json +2 -1
- pulumi_azuredevops/queue.py +23 -22
- pulumi_azuredevops/repository_policy_author_email_pattern.py +37 -34
- pulumi_azuredevops/repository_policy_case_enforcement.py +37 -34
- pulumi_azuredevops/repository_policy_check_credentials.py +37 -34
- pulumi_azuredevops/repository_policy_file_path_pattern.py +31 -28
- pulumi_azuredevops/repository_policy_max_file_size.py +44 -41
- pulumi_azuredevops/repository_policy_max_path_length.py +37 -34
- pulumi_azuredevops/repository_policy_reserved_names.py +37 -34
- pulumi_azuredevops/resource_authorization.py +23 -20
- pulumi_azuredevops/securityrole_assignment.py +295 -0
- pulumi_azuredevops/service_endpoint_artifactory.py +49 -48
- pulumi_azuredevops/service_endpoint_aws.py +99 -51
- pulumi_azuredevops/service_endpoint_azure_dev_ops.py +17 -14
- pulumi_azuredevops/service_endpoint_azure_ecr.py +275 -33
- pulumi_azuredevops/service_endpoint_azure_rm.py +236 -112
- pulumi_azuredevops/service_endpoint_bit_bucket.py +19 -16
- pulumi_azuredevops/service_endpoint_docker_registry.py +17 -14
- pulumi_azuredevops/service_endpoint_generic.py +19 -20
- pulumi_azuredevops/service_endpoint_generic_git.py +17 -14
- pulumi_azuredevops/service_endpoint_git_hub.py +57 -58
- pulumi_azuredevops/service_endpoint_git_hub_enterprise.py +26 -23
- pulumi_azuredevops/service_endpoint_git_lab.py +479 -0
- pulumi_azuredevops/service_endpoint_kubernetes.py +160 -15
- pulumi_azuredevops/service_endpoint_npm.py +17 -14
- pulumi_azuredevops/service_endpoint_pipeline.py +28 -25
- pulumi_azuredevops/service_endpoint_service_fabric.py +42 -95
- pulumi_azuredevops/service_endpoint_sonar_cloud.py +17 -14
- pulumi_azuredevops/service_endpoint_sonar_qube.py +17 -14
- pulumi_azuredevops/service_endpoint_ssh.py +17 -14
- pulumi_azuredevops/serviceendpoint_argocd.py +51 -50
- pulumi_azuredevops/serviceendpoint_azure_service_bus.py +429 -0
- pulumi_azuredevops/serviceendpoint_dynamics_lifecycle_services.py +579 -0
- pulumi_azuredevops/serviceendpoint_externaltfs.py +10 -5
- pulumi_azuredevops/serviceendpoint_gcp_terraform.py +17 -14
- pulumi_azuredevops/serviceendpoint_incomingwebhook.py +17 -14
- pulumi_azuredevops/serviceendpoint_jenkins.py +15 -12
- pulumi_azuredevops/serviceendpoint_jfrog_artifactory_v2.py +53 -52
- pulumi_azuredevops/serviceendpoint_jfrog_distribution_v2.py +53 -52
- pulumi_azuredevops/serviceendpoint_jfrog_platform_v2.py +53 -52
- pulumi_azuredevops/serviceendpoint_jfrog_xray_v2.py +53 -52
- pulumi_azuredevops/serviceendpoint_maven.py +49 -48
- pulumi_azuredevops/serviceendpoint_nexus.py +15 -12
- pulumi_azuredevops/serviceendpoint_nuget.py +17 -14
- pulumi_azuredevops/serviceendpoint_octopusdeploy.py +17 -14
- pulumi_azuredevops/serviceendpoint_permissions.py +21 -18
- pulumi_azuredevops/serviceendpoint_snyk.py +429 -0
- pulumi_azuredevops/serviceendpoint_visualstudiomarketplace.py +543 -0
- pulumi_azuredevops/servicehook_permissions.py +9 -6
- pulumi_azuredevops/servicehook_storage_queue_pipelines.py +55 -48
- pulumi_azuredevops/tagging_permissions.py +9 -6
- pulumi_azuredevops/team.py +21 -16
- pulumi_azuredevops/team_administrators.py +19 -12
- pulumi_azuredevops/team_members.py +19 -12
- pulumi_azuredevops/user.py +27 -6
- pulumi_azuredevops/variable_group.py +91 -86
- pulumi_azuredevops/variable_group_permissions.py +17 -12
- pulumi_azuredevops/wiki.py +509 -0
- pulumi_azuredevops/wiki_page.py +377 -0
- pulumi_azuredevops/work_item_query_permissions.py +17 -18
- pulumi_azuredevops/workitem.py +25 -24
- {pulumi_azuredevops-3.1.0a1710568843.dist-info → pulumi_azuredevops-3.6.0a1736832240.dist-info}/METADATA +7 -6
- pulumi_azuredevops-3.6.0a1736832240.dist-info/RECORD +140 -0
- {pulumi_azuredevops-3.1.0a1710568843.dist-info → pulumi_azuredevops-3.6.0a1736832240.dist-info}/WHEEL +1 -1
- pulumi_azuredevops-3.1.0a1710568843.dist-info/RECORD +0 -124
- {pulumi_azuredevops-3.1.0a1710568843.dist-info → pulumi_azuredevops-3.6.0a1736832240.dist-info}/top_level.txt +0 -0
@@ -4,9 +4,14 @@
|
|
4
4
|
|
5
5
|
import copy
|
6
6
|
import warnings
|
7
|
+
import sys
|
7
8
|
import pulumi
|
8
9
|
import pulumi.runtime
|
9
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
|
10
15
|
from . import _utilities
|
11
16
|
|
12
17
|
__all__ = ['ProjectPipelineSettingsArgs', 'ProjectPipelineSettings']
|
@@ -288,25 +293,24 @@ class ProjectPipelineSettings(pulumi.CustomResource):
|
|
288
293
|
|
289
294
|
## Example Usage
|
290
295
|
|
291
|
-
<!--Start PulumiCodeChooser -->
|
292
296
|
```python
|
293
297
|
import pulumi
|
294
298
|
import pulumi_azuredevops as azuredevops
|
295
299
|
|
296
|
-
|
300
|
+
example = azuredevops.Project("example",
|
301
|
+
name="Example Project",
|
297
302
|
visibility="private",
|
298
303
|
version_control="Git",
|
299
304
|
work_item_template="Agile",
|
300
|
-
description="Managed by
|
301
|
-
example_project_pipeline_settings = azuredevops.ProjectPipelineSettings("
|
302
|
-
project_id=
|
305
|
+
description="Managed by Pulumi")
|
306
|
+
example_project_pipeline_settings = azuredevops.ProjectPipelineSettings("example",
|
307
|
+
project_id=example.id,
|
303
308
|
enforce_job_scope=True,
|
304
309
|
enforce_referenced_repo_scoped_token=False,
|
305
310
|
enforce_settable_var=True,
|
306
311
|
publish_pipeline_metadata=False,
|
307
312
|
status_badges_are_private=True)
|
308
313
|
```
|
309
|
-
<!--End PulumiCodeChooser -->
|
310
314
|
|
311
315
|
## Relevant Links
|
312
316
|
|
@@ -350,25 +354,24 @@ class ProjectPipelineSettings(pulumi.CustomResource):
|
|
350
354
|
|
351
355
|
## Example Usage
|
352
356
|
|
353
|
-
<!--Start PulumiCodeChooser -->
|
354
357
|
```python
|
355
358
|
import pulumi
|
356
359
|
import pulumi_azuredevops as azuredevops
|
357
360
|
|
358
|
-
|
361
|
+
example = azuredevops.Project("example",
|
362
|
+
name="Example Project",
|
359
363
|
visibility="private",
|
360
364
|
version_control="Git",
|
361
365
|
work_item_template="Agile",
|
362
|
-
description="Managed by
|
363
|
-
example_project_pipeline_settings = azuredevops.ProjectPipelineSettings("
|
364
|
-
project_id=
|
366
|
+
description="Managed by Pulumi")
|
367
|
+
example_project_pipeline_settings = azuredevops.ProjectPipelineSettings("example",
|
368
|
+
project_id=example.id,
|
365
369
|
enforce_job_scope=True,
|
366
370
|
enforce_referenced_repo_scoped_token=False,
|
367
371
|
enforce_settable_var=True,
|
368
372
|
publish_pipeline_metadata=False,
|
369
373
|
status_badges_are_private=True)
|
370
374
|
```
|
371
|
-
<!--End PulumiCodeChooser -->
|
372
375
|
|
373
376
|
## Relevant Links
|
374
377
|
|
pulumi_azuredevops/provider.py
CHANGED
@@ -4,9 +4,14 @@
|
|
4
4
|
|
5
5
|
import copy
|
6
6
|
import warnings
|
7
|
+
import sys
|
7
8
|
import pulumi
|
8
9
|
import pulumi.runtime
|
9
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
|
10
15
|
from . import _utilities
|
11
16
|
|
12
17
|
__all__ = ['ProviderArgs', 'Provider']
|
@@ -41,8 +46,6 @@ class ProviderArgs:
|
|
41
46
|
:param pulumi.Input[str] client_certificate_password: Password for a client certificate password.
|
42
47
|
:param pulumi.Input[str] client_certificate_path: Path to a certificate to use to authenticate to the service principal.
|
43
48
|
:param pulumi.Input[str] client_id: The service principal client or managed service principal id which should be used.
|
44
|
-
:param pulumi.Input[str] client_id_apply: The service principal client id which should be used during an apply operation in Terraform Cloud.
|
45
|
-
:param pulumi.Input[str] client_id_plan: The service principal client id which should be used during a plan operation in Terraform Cloud.
|
46
49
|
:param pulumi.Input[str] client_secret: Client secret for authenticating to a service principal.
|
47
50
|
:param pulumi.Input[str] client_secret_path: Path to a file containing a client secret for authenticating to a service principal.
|
48
51
|
:param pulumi.Input[str] oidc_audience: Set the audience when requesting OIDC tokens.
|
@@ -50,14 +53,11 @@ class ProviderArgs:
|
|
50
53
|
Connect.
|
51
54
|
:param pulumi.Input[str] oidc_request_url: The URL for the OIDC provider from which to request an ID token. For use when authenticating as a Service Principal
|
52
55
|
using OpenID Connect.
|
53
|
-
:param pulumi.Input[str] oidc_tfc_tag: Terraform Cloud dynamic credential provider tag.
|
54
56
|
:param pulumi.Input[str] oidc_token: OIDC token to authenticate as a service principal.
|
55
57
|
:param pulumi.Input[str] oidc_token_file_path: OIDC token from file to authenticate as a service principal.
|
56
58
|
:param pulumi.Input[str] org_service_url: The url of the Azure DevOps instance which should be used.
|
57
59
|
:param pulumi.Input[str] personal_access_token: The personal access token which should be used.
|
58
60
|
:param pulumi.Input[str] tenant_id: The service principal tenant id which should be used.
|
59
|
-
:param pulumi.Input[str] tenant_id_apply: The service principal tenant id which should be used during an apply operation in Terraform Cloud..
|
60
|
-
:param pulumi.Input[str] tenant_id_plan: The service principal tenant id which should be used during a plan operation in Terraform Cloud.
|
61
61
|
:param pulumi.Input[bool] use_msi: Use an Azure Managed Service Identity.
|
62
62
|
:param pulumi.Input[bool] use_oidc: Use an OIDC token to authenticate to a service principal.
|
63
63
|
"""
|
@@ -157,9 +157,6 @@ class ProviderArgs:
|
|
157
157
|
@property
|
158
158
|
@pulumi.getter(name="clientIdApply")
|
159
159
|
def client_id_apply(self) -> Optional[pulumi.Input[str]]:
|
160
|
-
"""
|
161
|
-
The service principal client id which should be used during an apply operation in Terraform Cloud.
|
162
|
-
"""
|
163
160
|
return pulumi.get(self, "client_id_apply")
|
164
161
|
|
165
162
|
@client_id_apply.setter
|
@@ -169,9 +166,6 @@ class ProviderArgs:
|
|
169
166
|
@property
|
170
167
|
@pulumi.getter(name="clientIdPlan")
|
171
168
|
def client_id_plan(self) -> Optional[pulumi.Input[str]]:
|
172
|
-
"""
|
173
|
-
The service principal client id which should be used during a plan operation in Terraform Cloud.
|
174
|
-
"""
|
175
169
|
return pulumi.get(self, "client_id_plan")
|
176
170
|
|
177
171
|
@client_id_plan.setter
|
@@ -243,9 +237,6 @@ class ProviderArgs:
|
|
243
237
|
@property
|
244
238
|
@pulumi.getter(name="oidcTfcTag")
|
245
239
|
def oidc_tfc_tag(self) -> Optional[pulumi.Input[str]]:
|
246
|
-
"""
|
247
|
-
Terraform Cloud dynamic credential provider tag.
|
248
|
-
"""
|
249
240
|
return pulumi.get(self, "oidc_tfc_tag")
|
250
241
|
|
251
242
|
@oidc_tfc_tag.setter
|
@@ -315,9 +306,6 @@ class ProviderArgs:
|
|
315
306
|
@property
|
316
307
|
@pulumi.getter(name="tenantIdApply")
|
317
308
|
def tenant_id_apply(self) -> Optional[pulumi.Input[str]]:
|
318
|
-
"""
|
319
|
-
The service principal tenant id which should be used during an apply operation in Terraform Cloud..
|
320
|
-
"""
|
321
309
|
return pulumi.get(self, "tenant_id_apply")
|
322
310
|
|
323
311
|
@tenant_id_apply.setter
|
@@ -327,9 +315,6 @@ class ProviderArgs:
|
|
327
315
|
@property
|
328
316
|
@pulumi.getter(name="tenantIdPlan")
|
329
317
|
def tenant_id_plan(self) -> Optional[pulumi.Input[str]]:
|
330
|
-
"""
|
331
|
-
The service principal tenant id which should be used during a plan operation in Terraform Cloud.
|
332
|
-
"""
|
333
318
|
return pulumi.get(self, "tenant_id_plan")
|
334
319
|
|
335
320
|
@tenant_id_plan.setter
|
@@ -400,8 +385,6 @@ class Provider(pulumi.ProviderResource):
|
|
400
385
|
:param pulumi.Input[str] client_certificate_password: Password for a client certificate password.
|
401
386
|
:param pulumi.Input[str] client_certificate_path: Path to a certificate to use to authenticate to the service principal.
|
402
387
|
:param pulumi.Input[str] client_id: The service principal client or managed service principal id which should be used.
|
403
|
-
:param pulumi.Input[str] client_id_apply: The service principal client id which should be used during an apply operation in Terraform Cloud.
|
404
|
-
:param pulumi.Input[str] client_id_plan: The service principal client id which should be used during a plan operation in Terraform Cloud.
|
405
388
|
:param pulumi.Input[str] client_secret: Client secret for authenticating to a service principal.
|
406
389
|
:param pulumi.Input[str] client_secret_path: Path to a file containing a client secret for authenticating to a service principal.
|
407
390
|
:param pulumi.Input[str] oidc_audience: Set the audience when requesting OIDC tokens.
|
@@ -409,14 +392,11 @@ class Provider(pulumi.ProviderResource):
|
|
409
392
|
Connect.
|
410
393
|
:param pulumi.Input[str] oidc_request_url: The URL for the OIDC provider from which to request an ID token. For use when authenticating as a Service Principal
|
411
394
|
using OpenID Connect.
|
412
|
-
:param pulumi.Input[str] oidc_tfc_tag: Terraform Cloud dynamic credential provider tag.
|
413
395
|
:param pulumi.Input[str] oidc_token: OIDC token to authenticate as a service principal.
|
414
396
|
:param pulumi.Input[str] oidc_token_file_path: OIDC token from file to authenticate as a service principal.
|
415
397
|
:param pulumi.Input[str] org_service_url: The url of the Azure DevOps instance which should be used.
|
416
398
|
:param pulumi.Input[str] personal_access_token: The personal access token which should be used.
|
417
399
|
:param pulumi.Input[str] tenant_id: The service principal tenant id which should be used.
|
418
|
-
:param pulumi.Input[str] tenant_id_apply: The service principal tenant id which should be used during an apply operation in Terraform Cloud..
|
419
|
-
:param pulumi.Input[str] tenant_id_plan: The service principal tenant id which should be used during a plan operation in Terraform Cloud.
|
420
400
|
:param pulumi.Input[bool] use_msi: Use an Azure Managed Service Identity.
|
421
401
|
:param pulumi.Input[bool] use_oidc: Use an OIDC token to authenticate to a service principal.
|
422
402
|
"""
|
@@ -543,17 +523,11 @@ class Provider(pulumi.ProviderResource):
|
|
543
523
|
@property
|
544
524
|
@pulumi.getter(name="clientIdApply")
|
545
525
|
def client_id_apply(self) -> pulumi.Output[Optional[str]]:
|
546
|
-
"""
|
547
|
-
The service principal client id which should be used during an apply operation in Terraform Cloud.
|
548
|
-
"""
|
549
526
|
return pulumi.get(self, "client_id_apply")
|
550
527
|
|
551
528
|
@property
|
552
529
|
@pulumi.getter(name="clientIdPlan")
|
553
530
|
def client_id_plan(self) -> pulumi.Output[Optional[str]]:
|
554
|
-
"""
|
555
|
-
The service principal client id which should be used during a plan operation in Terraform Cloud.
|
556
|
-
"""
|
557
531
|
return pulumi.get(self, "client_id_plan")
|
558
532
|
|
559
533
|
@property
|
@@ -601,9 +575,6 @@ class Provider(pulumi.ProviderResource):
|
|
601
575
|
@property
|
602
576
|
@pulumi.getter(name="oidcTfcTag")
|
603
577
|
def oidc_tfc_tag(self) -> pulumi.Output[Optional[str]]:
|
604
|
-
"""
|
605
|
-
Terraform Cloud dynamic credential provider tag.
|
606
|
-
"""
|
607
578
|
return pulumi.get(self, "oidc_tfc_tag")
|
608
579
|
|
609
580
|
@property
|
@@ -649,16 +620,10 @@ class Provider(pulumi.ProviderResource):
|
|
649
620
|
@property
|
650
621
|
@pulumi.getter(name="tenantIdApply")
|
651
622
|
def tenant_id_apply(self) -> pulumi.Output[Optional[str]]:
|
652
|
-
"""
|
653
|
-
The service principal tenant id which should be used during an apply operation in Terraform Cloud..
|
654
|
-
"""
|
655
623
|
return pulumi.get(self, "tenant_id_apply")
|
656
624
|
|
657
625
|
@property
|
658
626
|
@pulumi.getter(name="tenantIdPlan")
|
659
627
|
def tenant_id_plan(self) -> pulumi.Output[Optional[str]]:
|
660
|
-
"""
|
661
|
-
The service principal tenant id which should be used during a plan operation in Terraform Cloud.
|
662
|
-
"""
|
663
628
|
return pulumi.get(self, "tenant_id_plan")
|
664
629
|
|
pulumi_azuredevops/queue.py
CHANGED
@@ -4,9 +4,14 @@
|
|
4
4
|
|
5
5
|
import copy
|
6
6
|
import warnings
|
7
|
+
import sys
|
7
8
|
import pulumi
|
8
9
|
import pulumi.runtime
|
9
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
|
10
15
|
from . import _utilities
|
11
16
|
|
12
17
|
__all__ = ['QueueArgs', 'Queue']
|
@@ -158,36 +163,34 @@ class Queue(pulumi.CustomResource):
|
|
158
163
|
|
159
164
|
### Creating a Queue from an organization-level pool
|
160
165
|
|
161
|
-
<!--Start PulumiCodeChooser -->
|
162
166
|
```python
|
163
167
|
import pulumi
|
164
168
|
import pulumi_azuredevops as azuredevops
|
165
169
|
|
166
|
-
example_project = azuredevops.Project("
|
167
|
-
|
168
|
-
example_queue = azuredevops.Queue("
|
170
|
+
example_project = azuredevops.Project("example", name="Example Project")
|
171
|
+
example = azuredevops.get_pool(name="example-pool")
|
172
|
+
example_queue = azuredevops.Queue("example",
|
169
173
|
project_id=example_project.id,
|
170
|
-
agent_pool_id=
|
174
|
+
agent_pool_id=example.id)
|
171
175
|
# Grant access to queue to all pipelines in the project
|
172
|
-
example_resource_authorization = azuredevops.ResourceAuthorization("
|
176
|
+
example_resource_authorization = azuredevops.ResourceAuthorization("example",
|
173
177
|
project_id=example_project.id,
|
174
178
|
resource_id=example_queue.id,
|
175
179
|
type="queue",
|
176
180
|
authorized=True)
|
177
181
|
```
|
178
|
-
<!--End PulumiCodeChooser -->
|
179
182
|
|
180
183
|
### Creating a Queue at the project level (Organization-level permissions not required)
|
181
184
|
|
182
|
-
<!--Start PulumiCodeChooser -->
|
183
185
|
```python
|
184
186
|
import pulumi
|
185
187
|
import pulumi_azuredevops as azuredevops
|
186
188
|
|
187
|
-
|
188
|
-
example_queue = azuredevops.Queue("
|
189
|
+
example = azuredevops.get_project(name="Example Project")
|
190
|
+
example_queue = azuredevops.Queue("example",
|
191
|
+
name="example-queue",
|
192
|
+
project_id=example.id)
|
189
193
|
```
|
190
|
-
<!--End PulumiCodeChooser -->
|
191
194
|
|
192
195
|
## Relevant Links
|
193
196
|
|
@@ -228,36 +231,34 @@ class Queue(pulumi.CustomResource):
|
|
228
231
|
|
229
232
|
### Creating a Queue from an organization-level pool
|
230
233
|
|
231
|
-
<!--Start PulumiCodeChooser -->
|
232
234
|
```python
|
233
235
|
import pulumi
|
234
236
|
import pulumi_azuredevops as azuredevops
|
235
237
|
|
236
|
-
example_project = azuredevops.Project("
|
237
|
-
|
238
|
-
example_queue = azuredevops.Queue("
|
238
|
+
example_project = azuredevops.Project("example", name="Example Project")
|
239
|
+
example = azuredevops.get_pool(name="example-pool")
|
240
|
+
example_queue = azuredevops.Queue("example",
|
239
241
|
project_id=example_project.id,
|
240
|
-
agent_pool_id=
|
242
|
+
agent_pool_id=example.id)
|
241
243
|
# Grant access to queue to all pipelines in the project
|
242
|
-
example_resource_authorization = azuredevops.ResourceAuthorization("
|
244
|
+
example_resource_authorization = azuredevops.ResourceAuthorization("example",
|
243
245
|
project_id=example_project.id,
|
244
246
|
resource_id=example_queue.id,
|
245
247
|
type="queue",
|
246
248
|
authorized=True)
|
247
249
|
```
|
248
|
-
<!--End PulumiCodeChooser -->
|
249
250
|
|
250
251
|
### Creating a Queue at the project level (Organization-level permissions not required)
|
251
252
|
|
252
|
-
<!--Start PulumiCodeChooser -->
|
253
253
|
```python
|
254
254
|
import pulumi
|
255
255
|
import pulumi_azuredevops as azuredevops
|
256
256
|
|
257
|
-
|
258
|
-
example_queue = azuredevops.Queue("
|
257
|
+
example = azuredevops.get_project(name="Example Project")
|
258
|
+
example_queue = azuredevops.Queue("example",
|
259
|
+
name="example-queue",
|
260
|
+
project_id=example.id)
|
259
261
|
```
|
260
|
-
<!--End PulumiCodeChooser -->
|
261
262
|
|
262
263
|
## Relevant Links
|
263
264
|
|
@@ -4,9 +4,14 @@
|
|
4
4
|
|
5
5
|
import copy
|
6
6
|
import warnings
|
7
|
+
import sys
|
7
8
|
import pulumi
|
8
9
|
import pulumi.runtime
|
9
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
|
10
15
|
from . import _utilities
|
11
16
|
|
12
17
|
__all__ = ['RepositoryPolicyAuthorEmailPatternArgs', 'RepositoryPolicyAuthorEmailPattern']
|
@@ -205,23 +210,24 @@ class RepositoryPolicyAuthorEmailPattern(pulumi.CustomResource):
|
|
205
210
|
|
206
211
|
## Example Usage
|
207
212
|
|
208
|
-
<!--Start PulumiCodeChooser -->
|
209
213
|
```python
|
210
214
|
import pulumi
|
211
215
|
import pulumi_azuredevops as azuredevops
|
212
216
|
|
213
|
-
|
217
|
+
example = azuredevops.Project("example",
|
218
|
+
name="Example Project",
|
214
219
|
visibility="private",
|
215
220
|
version_control="Git",
|
216
221
|
work_item_template="Agile",
|
217
|
-
description="Managed by
|
218
|
-
example_git = azuredevops.Git("
|
219
|
-
project_id=
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
222
|
+
description="Managed by Pulumi")
|
223
|
+
example_git = azuredevops.Git("example",
|
224
|
+
project_id=example.id,
|
225
|
+
name="Example Repository",
|
226
|
+
initialization={
|
227
|
+
"init_type": "Clean",
|
228
|
+
})
|
229
|
+
example_repository_policy_author_email_pattern = azuredevops.RepositoryPolicyAuthorEmailPattern("example",
|
230
|
+
project_id=example.id,
|
225
231
|
enabled=True,
|
226
232
|
blocking=True,
|
227
233
|
author_email_patterns=[
|
@@ -230,22 +236,21 @@ class RepositoryPolicyAuthorEmailPattern(pulumi.CustomResource):
|
|
230
236
|
],
|
231
237
|
repository_ids=[example_git.id])
|
232
238
|
```
|
233
|
-
<!--End PulumiCodeChooser -->
|
234
239
|
|
235
240
|
## Set project level repository policy
|
236
241
|
|
237
|
-
<!--Start PulumiCodeChooser -->
|
238
242
|
```python
|
239
243
|
import pulumi
|
240
244
|
import pulumi_azuredevops as azuredevops
|
241
245
|
|
242
|
-
|
246
|
+
example = azuredevops.Project("example",
|
247
|
+
name="Example Project",
|
243
248
|
visibility="private",
|
244
249
|
version_control="Git",
|
245
250
|
work_item_template="Agile",
|
246
|
-
description="Managed by
|
247
|
-
example_repository_policy_author_email_pattern = azuredevops.RepositoryPolicyAuthorEmailPattern("
|
248
|
-
project_id=
|
251
|
+
description="Managed by Pulumi")
|
252
|
+
example_repository_policy_author_email_pattern = azuredevops.RepositoryPolicyAuthorEmailPattern("example",
|
253
|
+
project_id=example.id,
|
249
254
|
enabled=True,
|
250
255
|
blocking=True,
|
251
256
|
author_email_patterns=[
|
@@ -253,7 +258,6 @@ class RepositoryPolicyAuthorEmailPattern(pulumi.CustomResource):
|
|
253
258
|
"user2@test.com",
|
254
259
|
])
|
255
260
|
```
|
256
|
-
<!--End PulumiCodeChooser -->
|
257
261
|
|
258
262
|
## Relevant Links
|
259
263
|
|
@@ -287,23 +291,24 @@ class RepositoryPolicyAuthorEmailPattern(pulumi.CustomResource):
|
|
287
291
|
|
288
292
|
## Example Usage
|
289
293
|
|
290
|
-
<!--Start PulumiCodeChooser -->
|
291
294
|
```python
|
292
295
|
import pulumi
|
293
296
|
import pulumi_azuredevops as azuredevops
|
294
297
|
|
295
|
-
|
298
|
+
example = azuredevops.Project("example",
|
299
|
+
name="Example Project",
|
296
300
|
visibility="private",
|
297
301
|
version_control="Git",
|
298
302
|
work_item_template="Agile",
|
299
|
-
description="Managed by
|
300
|
-
example_git = azuredevops.Git("
|
301
|
-
project_id=
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
303
|
+
description="Managed by Pulumi")
|
304
|
+
example_git = azuredevops.Git("example",
|
305
|
+
project_id=example.id,
|
306
|
+
name="Example Repository",
|
307
|
+
initialization={
|
308
|
+
"init_type": "Clean",
|
309
|
+
})
|
310
|
+
example_repository_policy_author_email_pattern = azuredevops.RepositoryPolicyAuthorEmailPattern("example",
|
311
|
+
project_id=example.id,
|
307
312
|
enabled=True,
|
308
313
|
blocking=True,
|
309
314
|
author_email_patterns=[
|
@@ -312,22 +317,21 @@ class RepositoryPolicyAuthorEmailPattern(pulumi.CustomResource):
|
|
312
317
|
],
|
313
318
|
repository_ids=[example_git.id])
|
314
319
|
```
|
315
|
-
<!--End PulumiCodeChooser -->
|
316
320
|
|
317
321
|
## Set project level repository policy
|
318
322
|
|
319
|
-
<!--Start PulumiCodeChooser -->
|
320
323
|
```python
|
321
324
|
import pulumi
|
322
325
|
import pulumi_azuredevops as azuredevops
|
323
326
|
|
324
|
-
|
327
|
+
example = azuredevops.Project("example",
|
328
|
+
name="Example Project",
|
325
329
|
visibility="private",
|
326
330
|
version_control="Git",
|
327
331
|
work_item_template="Agile",
|
328
|
-
description="Managed by
|
329
|
-
example_repository_policy_author_email_pattern = azuredevops.RepositoryPolicyAuthorEmailPattern("
|
330
|
-
project_id=
|
332
|
+
description="Managed by Pulumi")
|
333
|
+
example_repository_policy_author_email_pattern = azuredevops.RepositoryPolicyAuthorEmailPattern("example",
|
334
|
+
project_id=example.id,
|
331
335
|
enabled=True,
|
332
336
|
blocking=True,
|
333
337
|
author_email_patterns=[
|
@@ -335,7 +339,6 @@ class RepositoryPolicyAuthorEmailPattern(pulumi.CustomResource):
|
|
335
339
|
"user2@test.com",
|
336
340
|
])
|
337
341
|
```
|
338
|
-
<!--End PulumiCodeChooser -->
|
339
342
|
|
340
343
|
## Relevant Links
|
341
344
|
|
@@ -4,9 +4,14 @@
|
|
4
4
|
|
5
5
|
import copy
|
6
6
|
import warnings
|
7
|
+
import sys
|
7
8
|
import pulumi
|
8
9
|
import pulumi.runtime
|
9
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
|
10
15
|
from . import _utilities
|
11
16
|
|
12
17
|
__all__ = ['RepositoryPolicyCaseEnforcementArgs', 'RepositoryPolicyCaseEnforcement']
|
@@ -203,48 +208,47 @@ class RepositoryPolicyCaseEnforcement(pulumi.CustomResource):
|
|
203
208
|
|
204
209
|
## Example Usage
|
205
210
|
|
206
|
-
<!--Start PulumiCodeChooser -->
|
207
211
|
```python
|
208
212
|
import pulumi
|
209
213
|
import pulumi_azuredevops as azuredevops
|
210
214
|
|
211
|
-
|
215
|
+
example = azuredevops.Project("example",
|
216
|
+
name="Example Project",
|
212
217
|
visibility="private",
|
213
218
|
version_control="Git",
|
214
219
|
work_item_template="Agile",
|
215
|
-
description="Managed by
|
216
|
-
example_git = azuredevops.Git("
|
217
|
-
project_id=
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
220
|
+
description="Managed by Pulumi")
|
221
|
+
example_git = azuredevops.Git("example",
|
222
|
+
project_id=example.id,
|
223
|
+
name="Example Repository",
|
224
|
+
initialization={
|
225
|
+
"init_type": "Clean",
|
226
|
+
})
|
227
|
+
example_repository_policy_case_enforcement = azuredevops.RepositoryPolicyCaseEnforcement("example",
|
228
|
+
project_id=example.id,
|
223
229
|
enabled=True,
|
224
230
|
blocking=True,
|
225
231
|
enforce_consistent_case=True,
|
226
232
|
repository_ids=[example_git.id])
|
227
233
|
```
|
228
|
-
<!--End PulumiCodeChooser -->
|
229
234
|
|
230
235
|
# Set project level repository policy
|
231
|
-
<!--Start PulumiCodeChooser -->
|
232
236
|
```python
|
233
237
|
import pulumi
|
234
238
|
import pulumi_azuredevops as azuredevops
|
235
239
|
|
236
|
-
|
240
|
+
example = azuredevops.Project("example",
|
241
|
+
name="Example Project",
|
237
242
|
visibility="private",
|
238
243
|
version_control="Git",
|
239
244
|
work_item_template="Agile",
|
240
|
-
description="Managed by
|
241
|
-
example_repository_policy_case_enforcement = azuredevops.RepositoryPolicyCaseEnforcement("
|
242
|
-
project_id=
|
245
|
+
description="Managed by Pulumi")
|
246
|
+
example_repository_policy_case_enforcement = azuredevops.RepositoryPolicyCaseEnforcement("example",
|
247
|
+
project_id=example.id,
|
243
248
|
enabled=True,
|
244
249
|
blocking=True,
|
245
250
|
enforce_consistent_case=True)
|
246
251
|
```
|
247
|
-
<!--End PulumiCodeChooser -->
|
248
252
|
|
249
253
|
## Relevant Links
|
250
254
|
|
@@ -279,48 +283,47 @@ class RepositoryPolicyCaseEnforcement(pulumi.CustomResource):
|
|
279
283
|
|
280
284
|
## Example Usage
|
281
285
|
|
282
|
-
<!--Start PulumiCodeChooser -->
|
283
286
|
```python
|
284
287
|
import pulumi
|
285
288
|
import pulumi_azuredevops as azuredevops
|
286
289
|
|
287
|
-
|
290
|
+
example = azuredevops.Project("example",
|
291
|
+
name="Example Project",
|
288
292
|
visibility="private",
|
289
293
|
version_control="Git",
|
290
294
|
work_item_template="Agile",
|
291
|
-
description="Managed by
|
292
|
-
example_git = azuredevops.Git("
|
293
|
-
project_id=
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
295
|
+
description="Managed by Pulumi")
|
296
|
+
example_git = azuredevops.Git("example",
|
297
|
+
project_id=example.id,
|
298
|
+
name="Example Repository",
|
299
|
+
initialization={
|
300
|
+
"init_type": "Clean",
|
301
|
+
})
|
302
|
+
example_repository_policy_case_enforcement = azuredevops.RepositoryPolicyCaseEnforcement("example",
|
303
|
+
project_id=example.id,
|
299
304
|
enabled=True,
|
300
305
|
blocking=True,
|
301
306
|
enforce_consistent_case=True,
|
302
307
|
repository_ids=[example_git.id])
|
303
308
|
```
|
304
|
-
<!--End PulumiCodeChooser -->
|
305
309
|
|
306
310
|
# Set project level repository policy
|
307
|
-
<!--Start PulumiCodeChooser -->
|
308
311
|
```python
|
309
312
|
import pulumi
|
310
313
|
import pulumi_azuredevops as azuredevops
|
311
314
|
|
312
|
-
|
315
|
+
example = azuredevops.Project("example",
|
316
|
+
name="Example Project",
|
313
317
|
visibility="private",
|
314
318
|
version_control="Git",
|
315
319
|
work_item_template="Agile",
|
316
|
-
description="Managed by
|
317
|
-
example_repository_policy_case_enforcement = azuredevops.RepositoryPolicyCaseEnforcement("
|
318
|
-
project_id=
|
320
|
+
description="Managed by Pulumi")
|
321
|
+
example_repository_policy_case_enforcement = azuredevops.RepositoryPolicyCaseEnforcement("example",
|
322
|
+
project_id=example.id,
|
319
323
|
enabled=True,
|
320
324
|
blocking=True,
|
321
325
|
enforce_consistent_case=True)
|
322
326
|
```
|
323
|
-
<!--End PulumiCodeChooser -->
|
324
327
|
|
325
328
|
## Relevant Links
|
326
329
|
|