pulumi-azuredevops 2.16.0a1710156155__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 +123 -174
- pulumi_azuredevops/_inputs.py +1742 -110
- 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 -71
- 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 -200
- 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 +49 -16
- pulumi_azuredevops/check_branch_control.py +139 -110
- pulumi_azuredevops/check_business_hours.py +137 -108
- pulumi_azuredevops/check_exclusive_lock.py +107 -30
- pulumi_azuredevops/check_required_template.py +96 -67
- pulumi_azuredevops/config/__init__.pyi +87 -0
- pulumi_azuredevops/config/vars.py +125 -0
- pulumi_azuredevops/elastic_pool.py +78 -26
- pulumi_azuredevops/environment.py +17 -10
- pulumi_azuredevops/environment_resource_kubernetes.py +534 -0
- 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 +55 -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 -99
- 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 -16
- pulumi_azuredevops/group_entitlement.py +5 -8
- pulumi_azuredevops/group_membership.py +57 -30
- pulumi_azuredevops/iterative_permissions.py +9 -6
- pulumi_azuredevops/library_permissions.py +451 -0
- pulumi_azuredevops/outputs.py +460 -56
- pulumi_azuredevops/pipeline_authorization.py +136 -47
- pulumi_azuredevops/pool.py +7 -6
- pulumi_azuredevops/project.py +19 -18
- pulumi_azuredevops/project_features.py +9 -8
- pulumi_azuredevops/project_permissions.py +9 -6
- pulumi_azuredevops/project_pipeline_settings.py +15 -12
- pulumi_azuredevops/provider.py +491 -2
- pulumi_azuredevops/pulumi-plugin.json +2 -1
- pulumi_azuredevops/queue.py +23 -24
- 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 -114
- pulumi_azuredevops/service_endpoint_bit_bucket.py +19 -18
- pulumi_azuredevops/service_endpoint_docker_registry.py +17 -16
- 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 -60
- pulumi_azuredevops/service_endpoint_git_hub_enterprise.py +26 -23
- pulumi_azuredevops/{serviceendpoint/bit_bucket.py → service_endpoint_git_lab.py} +147 -100
- pulumi_azuredevops/service_endpoint_kubernetes.py +160 -17
- 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 -8
- pulumi_azuredevops/variable_group.py +91 -88
- pulumi_azuredevops/variable_group_permissions.py +517 -0
- 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-2.16.0a1710156155.dist-info → pulumi_azuredevops-3.6.0a1736832240.dist-info}/METADATA +9 -8
- pulumi_azuredevops-3.6.0a1736832240.dist-info/RECORD +140 -0
- {pulumi_azuredevops-2.16.0a1710156155.dist-info → pulumi_azuredevops-3.6.0a1736832240.dist-info}/WHEEL +1 -1
- pulumi_azuredevops/agent/__init__.py +0 -12
- pulumi_azuredevops/agent/get_pool.py +0 -155
- pulumi_azuredevops/agent/get_pools.py +0 -120
- pulumi_azuredevops/agent/outputs.py +0 -73
- pulumi_azuredevops/agent/pool.py +0 -342
- pulumi_azuredevops/agent/queue.py +0 -376
- pulumi_azuredevops/build/__init__.py +0 -10
- pulumi_azuredevops/build/_inputs.py +0 -1164
- pulumi_azuredevops/build/build_definition.py +0 -987
- pulumi_azuredevops/build/outputs.py +0 -1170
- pulumi_azuredevops/core/__init__.py +0 -13
- pulumi_azuredevops/core/get_client_config.py +0 -102
- pulumi_azuredevops/core/get_project.py +0 -194
- pulumi_azuredevops/core/get_projects.py +0 -166
- pulumi_azuredevops/core/outputs.py +0 -70
- pulumi_azuredevops/core/project.py +0 -538
- pulumi_azuredevops/core/project_features.py +0 -303
- pulumi_azuredevops/entitlement/__init__.py +0 -8
- pulumi_azuredevops/entitlement/user.py +0 -429
- pulumi_azuredevops/identities/__init__.py +0 -13
- pulumi_azuredevops/identities/_inputs.py +0 -42
- pulumi_azuredevops/identities/get_group.py +0 -185
- pulumi_azuredevops/identities/get_users.py +0 -257
- pulumi_azuredevops/identities/group.py +0 -632
- pulumi_azuredevops/identities/group_membership.py +0 -333
- pulumi_azuredevops/identities/outputs.py +0 -124
- pulumi_azuredevops/pipeline/__init__.py +0 -10
- pulumi_azuredevops/pipeline/_inputs.py +0 -175
- pulumi_azuredevops/pipeline/outputs.py +0 -175
- pulumi_azuredevops/pipeline/variable_group.py +0 -594
- pulumi_azuredevops/policy/__init__.py +0 -11
- pulumi_azuredevops/policy/_inputs.py +0 -382
- pulumi_azuredevops/policy/branch_policy_build_validation.py +0 -424
- pulumi_azuredevops/policy/branch_policy_min_reviewers.py +0 -406
- pulumi_azuredevops/policy/outputs.py +0 -397
- pulumi_azuredevops/repository/__init__.py +0 -11
- pulumi_azuredevops/repository/_inputs.py +0 -85
- pulumi_azuredevops/repository/get_repositories.py +0 -177
- pulumi_azuredevops/repository/git.py +0 -627
- pulumi_azuredevops/repository/outputs.py +0 -199
- pulumi_azuredevops/security/__init__.py +0 -8
- pulumi_azuredevops/security/resource_authorization.py +0 -404
- pulumi_azuredevops/serviceendpoint/__init__.py +0 -14
- pulumi_azuredevops/serviceendpoint/_inputs.py +0 -341
- pulumi_azuredevops/serviceendpoint/azure_rm.py +0 -1140
- pulumi_azuredevops/serviceendpoint/docker_registry.py +0 -595
- pulumi_azuredevops/serviceendpoint/git_hub.py +0 -489
- pulumi_azuredevops/serviceendpoint/kubernetes.py +0 -523
- pulumi_azuredevops/serviceendpoint/outputs.py +0 -370
- pulumi_azuredevops-2.16.0a1710156155.dist-info/RECORD +0 -171
- {pulumi_azuredevops-2.16.0a1710156155.dist-info → pulumi_azuredevops-3.6.0a1736832240.dist-info}/top_level.txt +0 -0
@@ -1,397 +0,0 @@
|
|
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 pulumi
|
8
|
-
import pulumi.runtime
|
9
|
-
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
10
|
-
from .. import _utilities
|
11
|
-
from . import outputs
|
12
|
-
|
13
|
-
__all__ = [
|
14
|
-
'BranchPolicyBuildValidationSettings',
|
15
|
-
'BranchPolicyBuildValidationSettingsScope',
|
16
|
-
'BranchPolicyMinReviewersSettings',
|
17
|
-
'BranchPolicyMinReviewersSettingsScope',
|
18
|
-
]
|
19
|
-
|
20
|
-
@pulumi.output_type
|
21
|
-
class BranchPolicyBuildValidationSettings(dict):
|
22
|
-
@staticmethod
|
23
|
-
def __key_warning(key: str):
|
24
|
-
suggest = None
|
25
|
-
if key == "buildDefinitionId":
|
26
|
-
suggest = "build_definition_id"
|
27
|
-
elif key == "displayName":
|
28
|
-
suggest = "display_name"
|
29
|
-
elif key == "filenamePatterns":
|
30
|
-
suggest = "filename_patterns"
|
31
|
-
elif key == "manualQueueOnly":
|
32
|
-
suggest = "manual_queue_only"
|
33
|
-
elif key == "queueOnSourceUpdateOnly":
|
34
|
-
suggest = "queue_on_source_update_only"
|
35
|
-
elif key == "validDuration":
|
36
|
-
suggest = "valid_duration"
|
37
|
-
|
38
|
-
if suggest:
|
39
|
-
pulumi.log.warn(f"Key '{key}' not found in BranchPolicyBuildValidationSettings. Access the value via the '{suggest}' property getter instead.")
|
40
|
-
|
41
|
-
def __getitem__(self, key: str) -> Any:
|
42
|
-
BranchPolicyBuildValidationSettings.__key_warning(key)
|
43
|
-
return super().__getitem__(key)
|
44
|
-
|
45
|
-
def get(self, key: str, default = None) -> Any:
|
46
|
-
BranchPolicyBuildValidationSettings.__key_warning(key)
|
47
|
-
return super().get(key, default)
|
48
|
-
|
49
|
-
def __init__(__self__, *,
|
50
|
-
build_definition_id: int,
|
51
|
-
display_name: str,
|
52
|
-
scopes: Sequence['outputs.BranchPolicyBuildValidationSettingsScope'],
|
53
|
-
filename_patterns: Optional[Sequence[str]] = None,
|
54
|
-
manual_queue_only: Optional[bool] = None,
|
55
|
-
queue_on_source_update_only: Optional[bool] = None,
|
56
|
-
valid_duration: Optional[int] = None):
|
57
|
-
"""
|
58
|
-
:param int build_definition_id: The ID of the build to monitor for the policy.
|
59
|
-
:param str display_name: The display name for the policy.
|
60
|
-
:param Sequence['BranchPolicyBuildValidationSettingsScopeArgs'] scopes: Controls which repositories and branches the policy will be enabled for. This block must be defined at least once.
|
61
|
-
:param Sequence[str] filename_patterns: If a path filter is set, the policy will only apply when files which match the filter are changes. Not setting this field means that the policy will always apply. You can specify absolute paths and wildcards. Example: `["/WebApp/Models/Data.cs", "/WebApp/*", "*.cs"]`. Paths prefixed with "!" are excluded. Example: `["/WebApp/*", "!/WebApp/Tests/*"]`. Order is significant.
|
62
|
-
:param bool manual_queue_only: If set to true, the build will need to be manually queued. Defaults to `false`
|
63
|
-
:param bool queue_on_source_update_only: True if the build should queue on source updates only. Defaults to `true`.
|
64
|
-
:param int valid_duration: The number of minutes for which the build is valid. If `0`, the build will not expire. Defaults to `720` (12 hours).
|
65
|
-
"""
|
66
|
-
pulumi.set(__self__, "build_definition_id", build_definition_id)
|
67
|
-
pulumi.set(__self__, "display_name", display_name)
|
68
|
-
pulumi.set(__self__, "scopes", scopes)
|
69
|
-
if filename_patterns is not None:
|
70
|
-
pulumi.set(__self__, "filename_patterns", filename_patterns)
|
71
|
-
if manual_queue_only is not None:
|
72
|
-
pulumi.set(__self__, "manual_queue_only", manual_queue_only)
|
73
|
-
if queue_on_source_update_only is not None:
|
74
|
-
pulumi.set(__self__, "queue_on_source_update_only", queue_on_source_update_only)
|
75
|
-
if valid_duration is not None:
|
76
|
-
pulumi.set(__self__, "valid_duration", valid_duration)
|
77
|
-
|
78
|
-
@property
|
79
|
-
@pulumi.getter(name="buildDefinitionId")
|
80
|
-
def build_definition_id(self) -> int:
|
81
|
-
"""
|
82
|
-
The ID of the build to monitor for the policy.
|
83
|
-
"""
|
84
|
-
return pulumi.get(self, "build_definition_id")
|
85
|
-
|
86
|
-
@property
|
87
|
-
@pulumi.getter(name="displayName")
|
88
|
-
def display_name(self) -> str:
|
89
|
-
"""
|
90
|
-
The display name for the policy.
|
91
|
-
"""
|
92
|
-
return pulumi.get(self, "display_name")
|
93
|
-
|
94
|
-
@property
|
95
|
-
@pulumi.getter
|
96
|
-
def scopes(self) -> Sequence['outputs.BranchPolicyBuildValidationSettingsScope']:
|
97
|
-
"""
|
98
|
-
Controls which repositories and branches the policy will be enabled for. This block must be defined at least once.
|
99
|
-
"""
|
100
|
-
return pulumi.get(self, "scopes")
|
101
|
-
|
102
|
-
@property
|
103
|
-
@pulumi.getter(name="filenamePatterns")
|
104
|
-
def filename_patterns(self) -> Optional[Sequence[str]]:
|
105
|
-
"""
|
106
|
-
If a path filter is set, the policy will only apply when files which match the filter are changes. Not setting this field means that the policy will always apply. You can specify absolute paths and wildcards. Example: `["/WebApp/Models/Data.cs", "/WebApp/*", "*.cs"]`. Paths prefixed with "!" are excluded. Example: `["/WebApp/*", "!/WebApp/Tests/*"]`. Order is significant.
|
107
|
-
"""
|
108
|
-
return pulumi.get(self, "filename_patterns")
|
109
|
-
|
110
|
-
@property
|
111
|
-
@pulumi.getter(name="manualQueueOnly")
|
112
|
-
def manual_queue_only(self) -> Optional[bool]:
|
113
|
-
"""
|
114
|
-
If set to true, the build will need to be manually queued. Defaults to `false`
|
115
|
-
"""
|
116
|
-
return pulumi.get(self, "manual_queue_only")
|
117
|
-
|
118
|
-
@property
|
119
|
-
@pulumi.getter(name="queueOnSourceUpdateOnly")
|
120
|
-
def queue_on_source_update_only(self) -> Optional[bool]:
|
121
|
-
"""
|
122
|
-
True if the build should queue on source updates only. Defaults to `true`.
|
123
|
-
"""
|
124
|
-
return pulumi.get(self, "queue_on_source_update_only")
|
125
|
-
|
126
|
-
@property
|
127
|
-
@pulumi.getter(name="validDuration")
|
128
|
-
def valid_duration(self) -> Optional[int]:
|
129
|
-
"""
|
130
|
-
The number of minutes for which the build is valid. If `0`, the build will not expire. Defaults to `720` (12 hours).
|
131
|
-
"""
|
132
|
-
return pulumi.get(self, "valid_duration")
|
133
|
-
|
134
|
-
|
135
|
-
@pulumi.output_type
|
136
|
-
class BranchPolicyBuildValidationSettingsScope(dict):
|
137
|
-
@staticmethod
|
138
|
-
def __key_warning(key: str):
|
139
|
-
suggest = None
|
140
|
-
if key == "matchType":
|
141
|
-
suggest = "match_type"
|
142
|
-
elif key == "repositoryId":
|
143
|
-
suggest = "repository_id"
|
144
|
-
elif key == "repositoryRef":
|
145
|
-
suggest = "repository_ref"
|
146
|
-
|
147
|
-
if suggest:
|
148
|
-
pulumi.log.warn(f"Key '{key}' not found in BranchPolicyBuildValidationSettingsScope. Access the value via the '{suggest}' property getter instead.")
|
149
|
-
|
150
|
-
def __getitem__(self, key: str) -> Any:
|
151
|
-
BranchPolicyBuildValidationSettingsScope.__key_warning(key)
|
152
|
-
return super().__getitem__(key)
|
153
|
-
|
154
|
-
def get(self, key: str, default = None) -> Any:
|
155
|
-
BranchPolicyBuildValidationSettingsScope.__key_warning(key)
|
156
|
-
return super().get(key, default)
|
157
|
-
|
158
|
-
def __init__(__self__, *,
|
159
|
-
match_type: Optional[str] = None,
|
160
|
-
repository_id: Optional[str] = None,
|
161
|
-
repository_ref: Optional[str] = None):
|
162
|
-
"""
|
163
|
-
:param str match_type: The match type to use when applying the policy. Supported values are `Exact` (default), `Prefix` or `DefaultBranch`.
|
164
|
-
:param str repository_id: The repository ID. Needed only if the scope of the policy will be limited to a single repository. If `match_type` is `DefaultBranch`, this should not be defined.
|
165
|
-
:param str repository_ref: The ref pattern to use for the match when `match_type` other than `DefaultBranch`. If `match_type` is `Exact`, this should be a qualified ref such as `refs/heads/master`. If `match_type` is `Prefix`, this should be a ref path such as `refs/heads/releases`.
|
166
|
-
"""
|
167
|
-
if match_type is not None:
|
168
|
-
pulumi.set(__self__, "match_type", match_type)
|
169
|
-
if repository_id is not None:
|
170
|
-
pulumi.set(__self__, "repository_id", repository_id)
|
171
|
-
if repository_ref is not None:
|
172
|
-
pulumi.set(__self__, "repository_ref", repository_ref)
|
173
|
-
|
174
|
-
@property
|
175
|
-
@pulumi.getter(name="matchType")
|
176
|
-
def match_type(self) -> Optional[str]:
|
177
|
-
"""
|
178
|
-
The match type to use when applying the policy. Supported values are `Exact` (default), `Prefix` or `DefaultBranch`.
|
179
|
-
"""
|
180
|
-
return pulumi.get(self, "match_type")
|
181
|
-
|
182
|
-
@property
|
183
|
-
@pulumi.getter(name="repositoryId")
|
184
|
-
def repository_id(self) -> Optional[str]:
|
185
|
-
"""
|
186
|
-
The repository ID. Needed only if the scope of the policy will be limited to a single repository. If `match_type` is `DefaultBranch`, this should not be defined.
|
187
|
-
"""
|
188
|
-
return pulumi.get(self, "repository_id")
|
189
|
-
|
190
|
-
@property
|
191
|
-
@pulumi.getter(name="repositoryRef")
|
192
|
-
def repository_ref(self) -> Optional[str]:
|
193
|
-
"""
|
194
|
-
The ref pattern to use for the match when `match_type` other than `DefaultBranch`. If `match_type` is `Exact`, this should be a qualified ref such as `refs/heads/master`. If `match_type` is `Prefix`, this should be a ref path such as `refs/heads/releases`.
|
195
|
-
"""
|
196
|
-
return pulumi.get(self, "repository_ref")
|
197
|
-
|
198
|
-
|
199
|
-
@pulumi.output_type
|
200
|
-
class BranchPolicyMinReviewersSettings(dict):
|
201
|
-
@staticmethod
|
202
|
-
def __key_warning(key: str):
|
203
|
-
suggest = None
|
204
|
-
if key == "allowCompletionWithRejectsOrWaits":
|
205
|
-
suggest = "allow_completion_with_rejects_or_waits"
|
206
|
-
elif key == "lastPusherCannotApprove":
|
207
|
-
suggest = "last_pusher_cannot_approve"
|
208
|
-
elif key == "onLastIterationRequireVote":
|
209
|
-
suggest = "on_last_iteration_require_vote"
|
210
|
-
elif key == "onPushResetAllVotes":
|
211
|
-
suggest = "on_push_reset_all_votes"
|
212
|
-
elif key == "onPushResetApprovedVotes":
|
213
|
-
suggest = "on_push_reset_approved_votes"
|
214
|
-
elif key == "reviewerCount":
|
215
|
-
suggest = "reviewer_count"
|
216
|
-
elif key == "submitterCanVote":
|
217
|
-
suggest = "submitter_can_vote"
|
218
|
-
|
219
|
-
if suggest:
|
220
|
-
pulumi.log.warn(f"Key '{key}' not found in BranchPolicyMinReviewersSettings. Access the value via the '{suggest}' property getter instead.")
|
221
|
-
|
222
|
-
def __getitem__(self, key: str) -> Any:
|
223
|
-
BranchPolicyMinReviewersSettings.__key_warning(key)
|
224
|
-
return super().__getitem__(key)
|
225
|
-
|
226
|
-
def get(self, key: str, default = None) -> Any:
|
227
|
-
BranchPolicyMinReviewersSettings.__key_warning(key)
|
228
|
-
return super().get(key, default)
|
229
|
-
|
230
|
-
def __init__(__self__, *,
|
231
|
-
scopes: Sequence['outputs.BranchPolicyMinReviewersSettingsScope'],
|
232
|
-
allow_completion_with_rejects_or_waits: Optional[bool] = None,
|
233
|
-
last_pusher_cannot_approve: Optional[bool] = None,
|
234
|
-
on_last_iteration_require_vote: Optional[bool] = None,
|
235
|
-
on_push_reset_all_votes: Optional[bool] = None,
|
236
|
-
on_push_reset_approved_votes: Optional[bool] = None,
|
237
|
-
reviewer_count: Optional[int] = None,
|
238
|
-
submitter_can_vote: Optional[bool] = None):
|
239
|
-
"""
|
240
|
-
:param Sequence['BranchPolicyMinReviewersSettingsScopeArgs'] scopes: A `scope` block as defined below. Controls which repositories and branches the policy will be enabled for. This block must be defined at least once.
|
241
|
-
:param bool allow_completion_with_rejects_or_waits: Allow completion even if some reviewers vote to wait or reject. Defaults to `false`.
|
242
|
-
:param bool last_pusher_cannot_approve: Prohibit the most recent pusher from approving their own changes. Defaults to `false`.
|
243
|
-
:param bool on_last_iteration_require_vote: On last iteration require vote. Defaults to `false`.
|
244
|
-
:param bool on_push_reset_all_votes: When new changes are pushed reset all code reviewer votes. Defaults to `false`.
|
245
|
-
|
246
|
-
> **Note:** If `on_push_reset_all_votes` is `true` then `on_push_reset_approved_votes` will be set to `true`. To enable `on_push_reset_approved_votes`, you need explicitly set `on_push_reset_all_votes` `false` or not configure.
|
247
|
-
:param bool on_push_reset_approved_votes: When new changes are pushed reset all approval votes (does not reset votes to reject or wait). Defaults to `false`.
|
248
|
-
:param int reviewer_count: The number of reviewers needed to approve.
|
249
|
-
:param bool submitter_can_vote: Allow requesters to approve their own changes. Defaults to `false`.
|
250
|
-
"""
|
251
|
-
pulumi.set(__self__, "scopes", scopes)
|
252
|
-
if allow_completion_with_rejects_or_waits is not None:
|
253
|
-
pulumi.set(__self__, "allow_completion_with_rejects_or_waits", allow_completion_with_rejects_or_waits)
|
254
|
-
if last_pusher_cannot_approve is not None:
|
255
|
-
pulumi.set(__self__, "last_pusher_cannot_approve", last_pusher_cannot_approve)
|
256
|
-
if on_last_iteration_require_vote is not None:
|
257
|
-
pulumi.set(__self__, "on_last_iteration_require_vote", on_last_iteration_require_vote)
|
258
|
-
if on_push_reset_all_votes is not None:
|
259
|
-
pulumi.set(__self__, "on_push_reset_all_votes", on_push_reset_all_votes)
|
260
|
-
if on_push_reset_approved_votes is not None:
|
261
|
-
pulumi.set(__self__, "on_push_reset_approved_votes", on_push_reset_approved_votes)
|
262
|
-
if reviewer_count is not None:
|
263
|
-
pulumi.set(__self__, "reviewer_count", reviewer_count)
|
264
|
-
if submitter_can_vote is not None:
|
265
|
-
pulumi.set(__self__, "submitter_can_vote", submitter_can_vote)
|
266
|
-
|
267
|
-
@property
|
268
|
-
@pulumi.getter
|
269
|
-
def scopes(self) -> Sequence['outputs.BranchPolicyMinReviewersSettingsScope']:
|
270
|
-
"""
|
271
|
-
A `scope` block as defined below. Controls which repositories and branches the policy will be enabled for. This block must be defined at least once.
|
272
|
-
"""
|
273
|
-
return pulumi.get(self, "scopes")
|
274
|
-
|
275
|
-
@property
|
276
|
-
@pulumi.getter(name="allowCompletionWithRejectsOrWaits")
|
277
|
-
def allow_completion_with_rejects_or_waits(self) -> Optional[bool]:
|
278
|
-
"""
|
279
|
-
Allow completion even if some reviewers vote to wait or reject. Defaults to `false`.
|
280
|
-
"""
|
281
|
-
return pulumi.get(self, "allow_completion_with_rejects_or_waits")
|
282
|
-
|
283
|
-
@property
|
284
|
-
@pulumi.getter(name="lastPusherCannotApprove")
|
285
|
-
def last_pusher_cannot_approve(self) -> Optional[bool]:
|
286
|
-
"""
|
287
|
-
Prohibit the most recent pusher from approving their own changes. Defaults to `false`.
|
288
|
-
"""
|
289
|
-
return pulumi.get(self, "last_pusher_cannot_approve")
|
290
|
-
|
291
|
-
@property
|
292
|
-
@pulumi.getter(name="onLastIterationRequireVote")
|
293
|
-
def on_last_iteration_require_vote(self) -> Optional[bool]:
|
294
|
-
"""
|
295
|
-
On last iteration require vote. Defaults to `false`.
|
296
|
-
"""
|
297
|
-
return pulumi.get(self, "on_last_iteration_require_vote")
|
298
|
-
|
299
|
-
@property
|
300
|
-
@pulumi.getter(name="onPushResetAllVotes")
|
301
|
-
def on_push_reset_all_votes(self) -> Optional[bool]:
|
302
|
-
"""
|
303
|
-
When new changes are pushed reset all code reviewer votes. Defaults to `false`.
|
304
|
-
|
305
|
-
> **Note:** If `on_push_reset_all_votes` is `true` then `on_push_reset_approved_votes` will be set to `true`. To enable `on_push_reset_approved_votes`, you need explicitly set `on_push_reset_all_votes` `false` or not configure.
|
306
|
-
"""
|
307
|
-
return pulumi.get(self, "on_push_reset_all_votes")
|
308
|
-
|
309
|
-
@property
|
310
|
-
@pulumi.getter(name="onPushResetApprovedVotes")
|
311
|
-
def on_push_reset_approved_votes(self) -> Optional[bool]:
|
312
|
-
"""
|
313
|
-
When new changes are pushed reset all approval votes (does not reset votes to reject or wait). Defaults to `false`.
|
314
|
-
"""
|
315
|
-
return pulumi.get(self, "on_push_reset_approved_votes")
|
316
|
-
|
317
|
-
@property
|
318
|
-
@pulumi.getter(name="reviewerCount")
|
319
|
-
def reviewer_count(self) -> Optional[int]:
|
320
|
-
"""
|
321
|
-
The number of reviewers needed to approve.
|
322
|
-
"""
|
323
|
-
return pulumi.get(self, "reviewer_count")
|
324
|
-
|
325
|
-
@property
|
326
|
-
@pulumi.getter(name="submitterCanVote")
|
327
|
-
def submitter_can_vote(self) -> Optional[bool]:
|
328
|
-
"""
|
329
|
-
Allow requesters to approve their own changes. Defaults to `false`.
|
330
|
-
"""
|
331
|
-
return pulumi.get(self, "submitter_can_vote")
|
332
|
-
|
333
|
-
|
334
|
-
@pulumi.output_type
|
335
|
-
class BranchPolicyMinReviewersSettingsScope(dict):
|
336
|
-
@staticmethod
|
337
|
-
def __key_warning(key: str):
|
338
|
-
suggest = None
|
339
|
-
if key == "matchType":
|
340
|
-
suggest = "match_type"
|
341
|
-
elif key == "repositoryId":
|
342
|
-
suggest = "repository_id"
|
343
|
-
elif key == "repositoryRef":
|
344
|
-
suggest = "repository_ref"
|
345
|
-
|
346
|
-
if suggest:
|
347
|
-
pulumi.log.warn(f"Key '{key}' not found in BranchPolicyMinReviewersSettingsScope. Access the value via the '{suggest}' property getter instead.")
|
348
|
-
|
349
|
-
def __getitem__(self, key: str) -> Any:
|
350
|
-
BranchPolicyMinReviewersSettingsScope.__key_warning(key)
|
351
|
-
return super().__getitem__(key)
|
352
|
-
|
353
|
-
def get(self, key: str, default = None) -> Any:
|
354
|
-
BranchPolicyMinReviewersSettingsScope.__key_warning(key)
|
355
|
-
return super().get(key, default)
|
356
|
-
|
357
|
-
def __init__(__self__, *,
|
358
|
-
match_type: Optional[str] = None,
|
359
|
-
repository_id: Optional[str] = None,
|
360
|
-
repository_ref: Optional[str] = None):
|
361
|
-
"""
|
362
|
-
:param str match_type: The match type to use when applying the policy. Supported values are `Exact` (default), `Prefix` or `DefaultBranch`.
|
363
|
-
:param str repository_id: The repository ID. Needed only if the scope of the policy will be limited to a single repository. If `match_type` is `DefaultBranch`, this should not be defined.
|
364
|
-
:param str repository_ref: The ref pattern to use for the match when `match_type` other than `DefaultBranch`. If `match_type` is `Exact`, this should be a qualified ref such as `refs/heads/master`. If `match_type` is `Prefix`, this should be a ref path such as `refs/heads/releases`.
|
365
|
-
"""
|
366
|
-
if match_type is not None:
|
367
|
-
pulumi.set(__self__, "match_type", match_type)
|
368
|
-
if repository_id is not None:
|
369
|
-
pulumi.set(__self__, "repository_id", repository_id)
|
370
|
-
if repository_ref is not None:
|
371
|
-
pulumi.set(__self__, "repository_ref", repository_ref)
|
372
|
-
|
373
|
-
@property
|
374
|
-
@pulumi.getter(name="matchType")
|
375
|
-
def match_type(self) -> Optional[str]:
|
376
|
-
"""
|
377
|
-
The match type to use when applying the policy. Supported values are `Exact` (default), `Prefix` or `DefaultBranch`.
|
378
|
-
"""
|
379
|
-
return pulumi.get(self, "match_type")
|
380
|
-
|
381
|
-
@property
|
382
|
-
@pulumi.getter(name="repositoryId")
|
383
|
-
def repository_id(self) -> Optional[str]:
|
384
|
-
"""
|
385
|
-
The repository ID. Needed only if the scope of the policy will be limited to a single repository. If `match_type` is `DefaultBranch`, this should not be defined.
|
386
|
-
"""
|
387
|
-
return pulumi.get(self, "repository_id")
|
388
|
-
|
389
|
-
@property
|
390
|
-
@pulumi.getter(name="repositoryRef")
|
391
|
-
def repository_ref(self) -> Optional[str]:
|
392
|
-
"""
|
393
|
-
The ref pattern to use for the match when `match_type` other than `DefaultBranch`. If `match_type` is `Exact`, this should be a qualified ref such as `refs/heads/master`. If `match_type` is `Prefix`, this should be a ref path such as `refs/heads/releases`.
|
394
|
-
"""
|
395
|
-
return pulumi.get(self, "repository_ref")
|
396
|
-
|
397
|
-
|
@@ -1,11 +0,0 @@
|
|
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
|
-
from .. import _utilities
|
6
|
-
import typing
|
7
|
-
# Export this package's modules as members:
|
8
|
-
from .get_repositories import *
|
9
|
-
from .git import *
|
10
|
-
from ._inputs import *
|
11
|
-
from . import outputs
|
@@ -1,85 +0,0 @@
|
|
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 pulumi
|
8
|
-
import pulumi.runtime
|
9
|
-
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
10
|
-
from .. import _utilities
|
11
|
-
|
12
|
-
__all__ = [
|
13
|
-
'GitInitializationArgs',
|
14
|
-
]
|
15
|
-
|
16
|
-
@pulumi.input_type
|
17
|
-
class GitInitializationArgs:
|
18
|
-
def __init__(__self__, *,
|
19
|
-
init_type: pulumi.Input[str],
|
20
|
-
service_connection_id: Optional[pulumi.Input[str]] = None,
|
21
|
-
source_type: Optional[pulumi.Input[str]] = None,
|
22
|
-
source_url: Optional[pulumi.Input[str]] = None):
|
23
|
-
"""
|
24
|
-
:param pulumi.Input[str] init_type: The type of repository to create. Valid values: `Uninitialized`, `Clean` or `Import`.
|
25
|
-
:param pulumi.Input[str] service_connection_id: The id of service connection used to authenticate to a private repository for import initialization.
|
26
|
-
:param pulumi.Input[str] source_type: Type of the source repository. Used if the `init_type` is `Import`. Valid values: `Git`.
|
27
|
-
:param pulumi.Input[str] source_url: The URL of the source repository. Used if the `init_type` is `Import`.
|
28
|
-
"""
|
29
|
-
pulumi.set(__self__, "init_type", init_type)
|
30
|
-
if service_connection_id is not None:
|
31
|
-
pulumi.set(__self__, "service_connection_id", service_connection_id)
|
32
|
-
if source_type is not None:
|
33
|
-
pulumi.set(__self__, "source_type", source_type)
|
34
|
-
if source_url is not None:
|
35
|
-
pulumi.set(__self__, "source_url", source_url)
|
36
|
-
|
37
|
-
@property
|
38
|
-
@pulumi.getter(name="initType")
|
39
|
-
def init_type(self) -> pulumi.Input[str]:
|
40
|
-
"""
|
41
|
-
The type of repository to create. Valid values: `Uninitialized`, `Clean` or `Import`.
|
42
|
-
"""
|
43
|
-
return pulumi.get(self, "init_type")
|
44
|
-
|
45
|
-
@init_type.setter
|
46
|
-
def init_type(self, value: pulumi.Input[str]):
|
47
|
-
pulumi.set(self, "init_type", value)
|
48
|
-
|
49
|
-
@property
|
50
|
-
@pulumi.getter(name="serviceConnectionId")
|
51
|
-
def service_connection_id(self) -> Optional[pulumi.Input[str]]:
|
52
|
-
"""
|
53
|
-
The id of service connection used to authenticate to a private repository for import initialization.
|
54
|
-
"""
|
55
|
-
return pulumi.get(self, "service_connection_id")
|
56
|
-
|
57
|
-
@service_connection_id.setter
|
58
|
-
def service_connection_id(self, value: Optional[pulumi.Input[str]]):
|
59
|
-
pulumi.set(self, "service_connection_id", value)
|
60
|
-
|
61
|
-
@property
|
62
|
-
@pulumi.getter(name="sourceType")
|
63
|
-
def source_type(self) -> Optional[pulumi.Input[str]]:
|
64
|
-
"""
|
65
|
-
Type of the source repository. Used if the `init_type` is `Import`. Valid values: `Git`.
|
66
|
-
"""
|
67
|
-
return pulumi.get(self, "source_type")
|
68
|
-
|
69
|
-
@source_type.setter
|
70
|
-
def source_type(self, value: Optional[pulumi.Input[str]]):
|
71
|
-
pulumi.set(self, "source_type", value)
|
72
|
-
|
73
|
-
@property
|
74
|
-
@pulumi.getter(name="sourceUrl")
|
75
|
-
def source_url(self) -> Optional[pulumi.Input[str]]:
|
76
|
-
"""
|
77
|
-
The URL of the source repository. Used if the `init_type` is `Import`.
|
78
|
-
"""
|
79
|
-
return pulumi.get(self, "source_url")
|
80
|
-
|
81
|
-
@source_url.setter
|
82
|
-
def source_url(self, value: Optional[pulumi.Input[str]]):
|
83
|
-
pulumi.set(self, "source_url", value)
|
84
|
-
|
85
|
-
|
@@ -1,177 +0,0 @@
|
|
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 pulumi
|
8
|
-
import pulumi.runtime
|
9
|
-
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
10
|
-
from .. import _utilities
|
11
|
-
from . import outputs
|
12
|
-
|
13
|
-
__all__ = [
|
14
|
-
'GetRepositoriesResult',
|
15
|
-
'AwaitableGetRepositoriesResult',
|
16
|
-
'get_repositories',
|
17
|
-
'get_repositories_output',
|
18
|
-
]
|
19
|
-
|
20
|
-
warnings.warn("""azuredevops.repository.getRepositories has been deprecated in favor of azuredevops.getRepositories""", DeprecationWarning)
|
21
|
-
|
22
|
-
@pulumi.output_type
|
23
|
-
class GetRepositoriesResult:
|
24
|
-
"""
|
25
|
-
A collection of values returned by getRepositories.
|
26
|
-
"""
|
27
|
-
def __init__(__self__, id=None, include_hidden=None, name=None, project_id=None, repositories=None):
|
28
|
-
if id and not isinstance(id, str):
|
29
|
-
raise TypeError("Expected argument 'id' to be a str")
|
30
|
-
pulumi.set(__self__, "id", id)
|
31
|
-
if include_hidden and not isinstance(include_hidden, bool):
|
32
|
-
raise TypeError("Expected argument 'include_hidden' to be a bool")
|
33
|
-
pulumi.set(__self__, "include_hidden", include_hidden)
|
34
|
-
if name and not isinstance(name, str):
|
35
|
-
raise TypeError("Expected argument 'name' to be a str")
|
36
|
-
pulumi.set(__self__, "name", name)
|
37
|
-
if project_id and not isinstance(project_id, str):
|
38
|
-
raise TypeError("Expected argument 'project_id' to be a str")
|
39
|
-
pulumi.set(__self__, "project_id", project_id)
|
40
|
-
if repositories and not isinstance(repositories, list):
|
41
|
-
raise TypeError("Expected argument 'repositories' to be a list")
|
42
|
-
pulumi.set(__self__, "repositories", repositories)
|
43
|
-
|
44
|
-
@property
|
45
|
-
@pulumi.getter
|
46
|
-
def id(self) -> str:
|
47
|
-
"""
|
48
|
-
The provider-assigned unique ID for this managed resource.
|
49
|
-
"""
|
50
|
-
return pulumi.get(self, "id")
|
51
|
-
|
52
|
-
@property
|
53
|
-
@pulumi.getter(name="includeHidden")
|
54
|
-
def include_hidden(self) -> Optional[bool]:
|
55
|
-
return pulumi.get(self, "include_hidden")
|
56
|
-
|
57
|
-
@property
|
58
|
-
@pulumi.getter
|
59
|
-
def name(self) -> Optional[str]:
|
60
|
-
"""
|
61
|
-
Git repository name.
|
62
|
-
"""
|
63
|
-
return pulumi.get(self, "name")
|
64
|
-
|
65
|
-
@property
|
66
|
-
@pulumi.getter(name="projectId")
|
67
|
-
def project_id(self) -> Optional[str]:
|
68
|
-
"""
|
69
|
-
Project identifier to which the Git repository belongs.
|
70
|
-
"""
|
71
|
-
return pulumi.get(self, "project_id")
|
72
|
-
|
73
|
-
@property
|
74
|
-
@pulumi.getter
|
75
|
-
def repositories(self) -> Sequence['outputs.GetRepositoriesRepositoryResult']:
|
76
|
-
"""
|
77
|
-
A list of existing projects in your Azure DevOps Organization with details about every project which includes:
|
78
|
-
"""
|
79
|
-
return pulumi.get(self, "repositories")
|
80
|
-
|
81
|
-
|
82
|
-
class AwaitableGetRepositoriesResult(GetRepositoriesResult):
|
83
|
-
# pylint: disable=using-constant-test
|
84
|
-
def __await__(self):
|
85
|
-
if False:
|
86
|
-
yield self
|
87
|
-
return GetRepositoriesResult(
|
88
|
-
id=self.id,
|
89
|
-
include_hidden=self.include_hidden,
|
90
|
-
name=self.name,
|
91
|
-
project_id=self.project_id,
|
92
|
-
repositories=self.repositories)
|
93
|
-
|
94
|
-
|
95
|
-
def get_repositories(include_hidden: Optional[bool] = None,
|
96
|
-
name: Optional[str] = None,
|
97
|
-
project_id: Optional[str] = None,
|
98
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetRepositoriesResult:
|
99
|
-
"""
|
100
|
-
Use this data source to access information about **multiple** existing Git Repositories within Azure DevOps.
|
101
|
-
To read informations about a **single** Git Repository use the data source `Git`
|
102
|
-
|
103
|
-
## Example Usage
|
104
|
-
|
105
|
-
<!--Start PulumiCodeChooser -->
|
106
|
-
```python
|
107
|
-
import pulumi
|
108
|
-
import pulumi_azuredevops as azuredevops
|
109
|
-
|
110
|
-
example = azuredevops.get_project(name="Example Project")
|
111
|
-
example_all_repos = azuredevops.get_repositories(project_id=example.id,
|
112
|
-
include_hidden=True)
|
113
|
-
example_single_repo = azuredevops.get_repositories(project_id=example.id,
|
114
|
-
name="Example Repository")
|
115
|
-
```
|
116
|
-
<!--End PulumiCodeChooser -->
|
117
|
-
|
118
|
-
## Relevant Links
|
119
|
-
|
120
|
-
- [Azure DevOps Service REST API 7.0 - Git API](https://docs.microsoft.com/en-us/rest/api/azure/devops/git/?view=azure-devops-rest-7.0)
|
121
|
-
|
122
|
-
|
123
|
-
:param bool include_hidden: DataSource without specifying any arguments will return all Git repositories of an organization.
|
124
|
-
:param str name: Name of the Git repository to retrieve; requires `project_id` to be specified as well
|
125
|
-
:param str project_id: ID of project to list Git repositories
|
126
|
-
"""
|
127
|
-
pulumi.log.warn("""get_repositories is deprecated: azuredevops.repository.getRepositories has been deprecated in favor of azuredevops.getRepositories""")
|
128
|
-
__args__ = dict()
|
129
|
-
__args__['includeHidden'] = include_hidden
|
130
|
-
__args__['name'] = name
|
131
|
-
__args__['projectId'] = project_id
|
132
|
-
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
133
|
-
__ret__ = pulumi.runtime.invoke('azuredevops:Repository/getRepositories:getRepositories', __args__, opts=opts, typ=GetRepositoriesResult).value
|
134
|
-
|
135
|
-
return AwaitableGetRepositoriesResult(
|
136
|
-
id=pulumi.get(__ret__, 'id'),
|
137
|
-
include_hidden=pulumi.get(__ret__, 'include_hidden'),
|
138
|
-
name=pulumi.get(__ret__, 'name'),
|
139
|
-
project_id=pulumi.get(__ret__, 'project_id'),
|
140
|
-
repositories=pulumi.get(__ret__, 'repositories'))
|
141
|
-
|
142
|
-
|
143
|
-
@_utilities.lift_output_func(get_repositories)
|
144
|
-
def get_repositories_output(include_hidden: Optional[pulumi.Input[Optional[bool]]] = None,
|
145
|
-
name: Optional[pulumi.Input[Optional[str]]] = None,
|
146
|
-
project_id: Optional[pulumi.Input[Optional[str]]] = None,
|
147
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetRepositoriesResult]:
|
148
|
-
"""
|
149
|
-
Use this data source to access information about **multiple** existing Git Repositories within Azure DevOps.
|
150
|
-
To read informations about a **single** Git Repository use the data source `Git`
|
151
|
-
|
152
|
-
## Example Usage
|
153
|
-
|
154
|
-
<!--Start PulumiCodeChooser -->
|
155
|
-
```python
|
156
|
-
import pulumi
|
157
|
-
import pulumi_azuredevops as azuredevops
|
158
|
-
|
159
|
-
example = azuredevops.get_project(name="Example Project")
|
160
|
-
example_all_repos = azuredevops.get_repositories(project_id=example.id,
|
161
|
-
include_hidden=True)
|
162
|
-
example_single_repo = azuredevops.get_repositories(project_id=example.id,
|
163
|
-
name="Example Repository")
|
164
|
-
```
|
165
|
-
<!--End PulumiCodeChooser -->
|
166
|
-
|
167
|
-
## Relevant Links
|
168
|
-
|
169
|
-
- [Azure DevOps Service REST API 7.0 - Git API](https://docs.microsoft.com/en-us/rest/api/azure/devops/git/?view=azure-devops-rest-7.0)
|
170
|
-
|
171
|
-
|
172
|
-
:param bool include_hidden: DataSource without specifying any arguments will return all Git repositories of an organization.
|
173
|
-
:param str name: Name of the Git repository to retrieve; requires `project_id` to be specified as well
|
174
|
-
:param str project_id: ID of project to list Git repositories
|
175
|
-
"""
|
176
|
-
pulumi.log.warn("""get_repositories is deprecated: azuredevops.repository.getRepositories has been deprecated in favor of azuredevops.getRepositories""")
|
177
|
-
...
|