pulumi-azuredevops 3.8.0a1741843418__py3-none-any.whl → 3.9.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pulumi_azuredevops/__init__.py +21 -0
- pulumi_azuredevops/_inputs.py +1492 -956
- pulumi_azuredevops/area_permissions.py +71 -70
- pulumi_azuredevops/branch_policy_auto_reviewers.py +43 -42
- pulumi_azuredevops/branch_policy_build_validation.py +43 -42
- pulumi_azuredevops/branch_policy_comment_resolution.py +43 -42
- pulumi_azuredevops/branch_policy_merge_types.py +43 -42
- pulumi_azuredevops/branch_policy_min_reviewers.py +43 -42
- pulumi_azuredevops/branch_policy_status_check.py +43 -42
- pulumi_azuredevops/branch_policy_work_item_linking.py +43 -42
- pulumi_azuredevops/build_definition.py +427 -91
- pulumi_azuredevops/build_definition_permissions.py +71 -70
- pulumi_azuredevops/build_folder.py +43 -42
- pulumi_azuredevops/build_folder_permissions.py +78 -70
- pulumi_azuredevops/check_approval.py +120 -119
- pulumi_azuredevops/check_branch_control.py +120 -119
- pulumi_azuredevops/check_business_hours.py +218 -217
- pulumi_azuredevops/check_exclusive_lock.py +64 -63
- pulumi_azuredevops/check_required_template.py +50 -49
- pulumi_azuredevops/check_rest_api.py +218 -217
- pulumi_azuredevops/config/__init__.py +1 -0
- pulumi_azuredevops/config/__init__.pyi +1 -0
- pulumi_azuredevops/config/vars.py +1 -0
- pulumi_azuredevops/dashboard.py +78 -77
- pulumi_azuredevops/elastic_pool.py +169 -168
- pulumi_azuredevops/environment.py +43 -42
- pulumi_azuredevops/environment_resource_kubernetes.py +99 -98
- pulumi_azuredevops/extension.py +426 -0
- pulumi_azuredevops/feed.py +29 -28
- pulumi_azuredevops/feed_permission.py +106 -77
- pulumi_azuredevops/feed_retention_policy.py +57 -56
- pulumi_azuredevops/get_agent_queue.py +13 -12
- pulumi_azuredevops/get_area.py +19 -18
- pulumi_azuredevops/get_build_definition.py +64 -21
- pulumi_azuredevops/get_client_config.py +64 -7
- pulumi_azuredevops/get_descriptor.py +8 -7
- pulumi_azuredevops/get_environment.py +18 -17
- pulumi_azuredevops/get_feed.py +17 -16
- pulumi_azuredevops/get_git_repository.py +20 -19
- pulumi_azuredevops/get_git_repository_file.py +201 -0
- pulumi_azuredevops/get_group.py +16 -15
- pulumi_azuredevops/get_group_membership.py +132 -0
- pulumi_azuredevops/get_groups.py +7 -6
- pulumi_azuredevops/get_identity_group.py +14 -13
- pulumi_azuredevops/get_identity_groups.py +7 -6
- pulumi_azuredevops/get_identity_users.py +14 -13
- pulumi_azuredevops/get_iteration.py +19 -18
- pulumi_azuredevops/get_pool.py +10 -9
- pulumi_azuredevops/get_pools.py +2 -1
- pulumi_azuredevops/get_project.py +18 -17
- pulumi_azuredevops/get_projects.py +12 -11
- pulumi_azuredevops/get_repositories.py +17 -16
- pulumi_azuredevops/get_securityrole_definitions.py +7 -6
- pulumi_azuredevops/get_service_endpoint_azure_rm.py +31 -30
- pulumi_azuredevops/get_service_endpoint_github.py +19 -18
- pulumi_azuredevops/get_service_principal.py +10 -9
- pulumi_azuredevops/get_serviceendpoint_azurecr.py +29 -28
- pulumi_azuredevops/get_serviceendpoint_bitbucket.py +19 -18
- pulumi_azuredevops/get_serviceendpoint_npm.py +20 -19
- pulumi_azuredevops/get_serviceendpoint_sonarcloud.py +19 -18
- pulumi_azuredevops/get_storage_key.py +8 -7
- pulumi_azuredevops/get_team.py +21 -20
- pulumi_azuredevops/get_teams.py +14 -13
- pulumi_azuredevops/get_user.py +14 -13
- pulumi_azuredevops/get_users.py +88 -21
- pulumi_azuredevops/get_variable_group.py +14 -13
- pulumi_azuredevops/git.py +113 -112
- pulumi_azuredevops/git_permissions.py +85 -84
- pulumi_azuredevops/git_repository_branch.py +78 -77
- pulumi_azuredevops/git_repository_file.py +342 -85
- pulumi_azuredevops/group.py +134 -133
- pulumi_azuredevops/group_entitlement.py +85 -84
- pulumi_azuredevops/group_membership.py +43 -42
- pulumi_azuredevops/iterative_permissions.py +71 -70
- pulumi_azuredevops/library_permissions.py +57 -56
- pulumi_azuredevops/outputs.py +1569 -918
- pulumi_azuredevops/pipeline_authorization.py +71 -70
- pulumi_azuredevops/pool.py +57 -56
- pulumi_azuredevops/project.py +92 -91
- pulumi_azuredevops/project_features.py +25 -24
- pulumi_azuredevops/project_permissions.py +57 -56
- pulumi_azuredevops/project_pipeline_settings.py +99 -98
- pulumi_azuredevops/project_tags.py +29 -28
- pulumi_azuredevops/provider.py +157 -156
- pulumi_azuredevops/pulumi-plugin.json +1 -1
- pulumi_azuredevops/queue.py +43 -42
- pulumi_azuredevops/repository_policy_author_email_pattern.py +71 -70
- pulumi_azuredevops/repository_policy_case_enforcement.py +71 -70
- pulumi_azuredevops/repository_policy_check_credentials.py +57 -56
- pulumi_azuredevops/repository_policy_file_path_pattern.py +71 -70
- pulumi_azuredevops/repository_policy_max_file_size.py +71 -70
- pulumi_azuredevops/repository_policy_max_path_length.py +71 -70
- pulumi_azuredevops/repository_policy_reserved_names.py +57 -56
- pulumi_azuredevops/resource_authorization.py +71 -70
- pulumi_azuredevops/securityrole_assignment.py +57 -56
- pulumi_azuredevops/service_endpoint_artifactory.py +62 -61
- pulumi_azuredevops/service_endpoint_aws.py +144 -143
- pulumi_azuredevops/service_endpoint_azure_dev_ops.py +86 -85
- pulumi_azuredevops/service_endpoint_azure_ecr.py +175 -174
- pulumi_azuredevops/service_endpoint_azure_rm.py +203 -194
- pulumi_azuredevops/service_endpoint_bit_bucket.py +72 -71
- pulumi_azuredevops/service_endpoint_docker_registry.py +114 -113
- pulumi_azuredevops/service_endpoint_generic.py +86 -85
- pulumi_azuredevops/service_endpoint_generic_git.py +100 -99
- pulumi_azuredevops/service_endpoint_git_hub.py +44 -43
- pulumi_azuredevops/service_endpoint_git_hub_enterprise.py +174 -82
- pulumi_azuredevops/service_endpoint_git_lab.py +86 -85
- pulumi_azuredevops/service_endpoint_kubernetes.py +72 -71
- pulumi_azuredevops/service_endpoint_npm.py +76 -75
- pulumi_azuredevops/service_endpoint_pipeline.py +58 -57
- pulumi_azuredevops/service_endpoint_service_fabric.py +58 -57
- pulumi_azuredevops/service_endpoint_sonar_cloud.py +62 -61
- pulumi_azuredevops/service_endpoint_sonar_qube.py +76 -75
- pulumi_azuredevops/service_endpoint_ssh.py +114 -113
- pulumi_azuredevops/service_principal_entitlement.py +71 -70
- pulumi_azuredevops/serviceendpoint_argocd.py +62 -61
- pulumi_azuredevops/serviceendpoint_azure_service_bus.py +72 -71
- pulumi_azuredevops/serviceendpoint_checkmarx_one.py +114 -113
- pulumi_azuredevops/serviceendpoint_checkmarx_sast.py +114 -113
- pulumi_azuredevops/serviceendpoint_checkmarx_sca.py +142 -141
- pulumi_azuredevops/serviceendpoint_dynamics_lifecycle_services.py +114 -113
- pulumi_azuredevops/serviceendpoint_externaltfs.py +58 -57
- pulumi_azuredevops/serviceendpoint_gcp_terraform.py +116 -115
- pulumi_azuredevops/serviceendpoint_incomingwebhook.py +86 -85
- pulumi_azuredevops/serviceendpoint_jenkins.py +100 -99
- pulumi_azuredevops/serviceendpoint_jfrog_artifactory_v2.py +62 -61
- pulumi_azuredevops/serviceendpoint_jfrog_distribution_v2.py +62 -61
- pulumi_azuredevops/serviceendpoint_jfrog_platform_v2.py +62 -61
- pulumi_azuredevops/serviceendpoint_jfrog_xray_v2.py +62 -61
- pulumi_azuredevops/serviceendpoint_maven.py +72 -71
- pulumi_azuredevops/serviceendpoint_nexus.py +86 -85
- pulumi_azuredevops/serviceendpoint_nuget.py +114 -113
- pulumi_azuredevops/serviceendpoint_octopusdeploy.py +86 -85
- pulumi_azuredevops/serviceendpoint_openshift.py +688 -0
- pulumi_azuredevops/serviceendpoint_permissions.py +71 -70
- pulumi_azuredevops/serviceendpoint_snyk.py +72 -71
- pulumi_azuredevops/serviceendpoint_visualstudiomarketplace.py +58 -57
- pulumi_azuredevops/servicehook_permissions.py +57 -56
- pulumi_azuredevops/servicehook_storage_queue_pipelines.py +85 -84
- pulumi_azuredevops/tagging_permissions.py +57 -56
- pulumi_azuredevops/team.py +78 -77
- pulumi_azuredevops/team_administrators.py +57 -56
- pulumi_azuredevops/team_members.py +57 -56
- pulumi_azuredevops/user.py +78 -77
- pulumi_azuredevops/variable_group.py +57 -56
- pulumi_azuredevops/variable_group_permissions.py +71 -70
- pulumi_azuredevops/wiki.py +99 -98
- pulumi_azuredevops/wiki_page.py +67 -66
- pulumi_azuredevops/work_item_query_permissions.py +71 -70
- pulumi_azuredevops/workitem.py +113 -112
- {pulumi_azuredevops-3.8.0a1741843418.dist-info → pulumi_azuredevops-3.9.0.dist-info}/METADATA +2 -2
- pulumi_azuredevops-3.9.0.dist-info/RECORD +156 -0
- {pulumi_azuredevops-3.8.0a1741843418.dist-info → pulumi_azuredevops-3.9.0.dist-info}/WHEEL +1 -1
- pulumi_azuredevops-3.8.0a1741843418.dist-info/RECORD +0 -152
- {pulumi_azuredevops-3.8.0a1741843418.dist-info → pulumi_azuredevops-3.9.0.dist-info}/top_level.txt +0 -0
@@ -2,6 +2,7 @@
|
|
2
2
|
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
4
|
|
5
|
+
import builtins
|
5
6
|
import copy
|
6
7
|
import warnings
|
7
8
|
import sys
|
@@ -63,7 +64,7 @@ class GetGitRepositoryResult:
|
|
63
64
|
|
64
65
|
@property
|
65
66
|
@pulumi.getter(name="defaultBranch")
|
66
|
-
def default_branch(self) -> str:
|
67
|
+
def default_branch(self) -> builtins.str:
|
67
68
|
"""
|
68
69
|
The ref of the default branch.
|
69
70
|
"""
|
@@ -71,7 +72,7 @@ class GetGitRepositoryResult:
|
|
71
72
|
|
72
73
|
@property
|
73
74
|
@pulumi.getter
|
74
|
-
def disabled(self) -> bool:
|
75
|
+
def disabled(self) -> builtins.bool:
|
75
76
|
"""
|
76
77
|
Indicates whether the repository is disabled.
|
77
78
|
"""
|
@@ -79,7 +80,7 @@ class GetGitRepositoryResult:
|
|
79
80
|
|
80
81
|
@property
|
81
82
|
@pulumi.getter
|
82
|
-
def id(self) -> str:
|
83
|
+
def id(self) -> builtins.str:
|
83
84
|
"""
|
84
85
|
The provider-assigned unique ID for this managed resource.
|
85
86
|
"""
|
@@ -87,12 +88,12 @@ class GetGitRepositoryResult:
|
|
87
88
|
|
88
89
|
@property
|
89
90
|
@pulumi.getter(name="isFork")
|
90
|
-
def is_fork(self) -> bool:
|
91
|
+
def is_fork(self) -> builtins.bool:
|
91
92
|
return pulumi.get(self, "is_fork")
|
92
93
|
|
93
94
|
@property
|
94
95
|
@pulumi.getter
|
95
|
-
def name(self) -> str:
|
96
|
+
def name(self) -> builtins.str:
|
96
97
|
"""
|
97
98
|
The name of the Git repository.
|
98
99
|
"""
|
@@ -100,7 +101,7 @@ class GetGitRepositoryResult:
|
|
100
101
|
|
101
102
|
@property
|
102
103
|
@pulumi.getter(name="projectId")
|
103
|
-
def project_id(self) -> str:
|
104
|
+
def project_id(self) -> builtins.str:
|
104
105
|
"""
|
105
106
|
Project identifier to which the Git repository belongs.
|
106
107
|
"""
|
@@ -108,7 +109,7 @@ class GetGitRepositoryResult:
|
|
108
109
|
|
109
110
|
@property
|
110
111
|
@pulumi.getter(name="remoteUrl")
|
111
|
-
def remote_url(self) -> str:
|
112
|
+
def remote_url(self) -> builtins.str:
|
112
113
|
"""
|
113
114
|
HTTPS Url to clone the Git repository
|
114
115
|
"""
|
@@ -116,7 +117,7 @@ class GetGitRepositoryResult:
|
|
116
117
|
|
117
118
|
@property
|
118
119
|
@pulumi.getter
|
119
|
-
def size(self) -> int:
|
120
|
+
def size(self) -> builtins.int:
|
120
121
|
"""
|
121
122
|
Compressed size (bytes) of the repository.
|
122
123
|
"""
|
@@ -124,7 +125,7 @@ class GetGitRepositoryResult:
|
|
124
125
|
|
125
126
|
@property
|
126
127
|
@pulumi.getter(name="sshUrl")
|
127
|
-
def ssh_url(self) -> str:
|
128
|
+
def ssh_url(self) -> builtins.str:
|
128
129
|
"""
|
129
130
|
SSH Url to clone the Git repository
|
130
131
|
"""
|
@@ -132,7 +133,7 @@ class GetGitRepositoryResult:
|
|
132
133
|
|
133
134
|
@property
|
134
135
|
@pulumi.getter
|
135
|
-
def url(self) -> str:
|
136
|
+
def url(self) -> builtins.str:
|
136
137
|
"""
|
137
138
|
The details REST API endpoint for the Git Repository.
|
138
139
|
"""
|
@@ -140,7 +141,7 @@ class GetGitRepositoryResult:
|
|
140
141
|
|
141
142
|
@property
|
142
143
|
@pulumi.getter(name="webUrl")
|
143
|
-
def web_url(self) -> str:
|
144
|
+
def web_url(self) -> builtins.str:
|
144
145
|
"""
|
145
146
|
The Url of the Git repository web view
|
146
147
|
"""
|
@@ -166,8 +167,8 @@ class AwaitableGetGitRepositoryResult(GetGitRepositoryResult):
|
|
166
167
|
web_url=self.web_url)
|
167
168
|
|
168
169
|
|
169
|
-
def get_git_repository(name: Optional[str] = None,
|
170
|
-
project_id: Optional[str] = None,
|
170
|
+
def get_git_repository(name: Optional[builtins.str] = None,
|
171
|
+
project_id: Optional[builtins.str] = None,
|
171
172
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetGitRepositoryResult:
|
172
173
|
"""
|
173
174
|
Use this data source to access information about a **single** (existing) Git Repository within Azure DevOps.
|
@@ -190,8 +191,8 @@ def get_git_repository(name: Optional[str] = None,
|
|
190
191
|
- [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)
|
191
192
|
|
192
193
|
|
193
|
-
:param str name: The Name of the Git repository to retrieve
|
194
|
-
:param str project_id: The ID of project to list Git repositories
|
194
|
+
:param builtins.str name: The Name of the Git repository to retrieve
|
195
|
+
:param builtins.str project_id: The ID of project to list Git repositories
|
195
196
|
"""
|
196
197
|
__args__ = dict()
|
197
198
|
__args__['name'] = name
|
@@ -211,8 +212,8 @@ def get_git_repository(name: Optional[str] = None,
|
|
211
212
|
ssh_url=pulumi.get(__ret__, 'ssh_url'),
|
212
213
|
url=pulumi.get(__ret__, 'url'),
|
213
214
|
web_url=pulumi.get(__ret__, 'web_url'))
|
214
|
-
def get_git_repository_output(name: Optional[pulumi.Input[str]] = None,
|
215
|
-
project_id: Optional[pulumi.Input[str]] = None,
|
215
|
+
def get_git_repository_output(name: Optional[pulumi.Input[builtins.str]] = None,
|
216
|
+
project_id: Optional[pulumi.Input[builtins.str]] = None,
|
216
217
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetGitRepositoryResult]:
|
217
218
|
"""
|
218
219
|
Use this data source to access information about a **single** (existing) Git Repository within Azure DevOps.
|
@@ -235,8 +236,8 @@ def get_git_repository_output(name: Optional[pulumi.Input[str]] = None,
|
|
235
236
|
- [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)
|
236
237
|
|
237
238
|
|
238
|
-
:param str name: The Name of the Git repository to retrieve
|
239
|
-
:param str project_id: The ID of project to list Git repositories
|
239
|
+
:param builtins.str name: The Name of the Git repository to retrieve
|
240
|
+
:param builtins.str project_id: The ID of project to list Git repositories
|
240
241
|
"""
|
241
242
|
__args__ = dict()
|
242
243
|
__args__['name'] = name
|
@@ -0,0 +1,201 @@
|
|
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 builtins
|
6
|
+
import copy
|
7
|
+
import warnings
|
8
|
+
import sys
|
9
|
+
import pulumi
|
10
|
+
import pulumi.runtime
|
11
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
12
|
+
if sys.version_info >= (3, 11):
|
13
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
14
|
+
else:
|
15
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
16
|
+
from . import _utilities
|
17
|
+
|
18
|
+
__all__ = [
|
19
|
+
'GetGitRepositoryFileResult',
|
20
|
+
'AwaitableGetGitRepositoryFileResult',
|
21
|
+
'get_git_repository_file',
|
22
|
+
'get_git_repository_file_output',
|
23
|
+
]
|
24
|
+
|
25
|
+
@pulumi.output_type
|
26
|
+
class GetGitRepositoryFileResult:
|
27
|
+
"""
|
28
|
+
A collection of values returned by getGitRepositoryFile.
|
29
|
+
"""
|
30
|
+
def __init__(__self__, branch=None, content=None, file=None, id=None, last_commit_message=None, repository_id=None, tag=None):
|
31
|
+
if branch and not isinstance(branch, str):
|
32
|
+
raise TypeError("Expected argument 'branch' to be a str")
|
33
|
+
pulumi.set(__self__, "branch", branch)
|
34
|
+
if content and not isinstance(content, str):
|
35
|
+
raise TypeError("Expected argument 'content' to be a str")
|
36
|
+
pulumi.set(__self__, "content", content)
|
37
|
+
if file and not isinstance(file, str):
|
38
|
+
raise TypeError("Expected argument 'file' to be a str")
|
39
|
+
pulumi.set(__self__, "file", file)
|
40
|
+
if id and not isinstance(id, str):
|
41
|
+
raise TypeError("Expected argument 'id' to be a str")
|
42
|
+
pulumi.set(__self__, "id", id)
|
43
|
+
if last_commit_message and not isinstance(last_commit_message, str):
|
44
|
+
raise TypeError("Expected argument 'last_commit_message' to be a str")
|
45
|
+
pulumi.set(__self__, "last_commit_message", last_commit_message)
|
46
|
+
if repository_id and not isinstance(repository_id, str):
|
47
|
+
raise TypeError("Expected argument 'repository_id' to be a str")
|
48
|
+
pulumi.set(__self__, "repository_id", repository_id)
|
49
|
+
if tag and not isinstance(tag, str):
|
50
|
+
raise TypeError("Expected argument 'tag' to be a str")
|
51
|
+
pulumi.set(__self__, "tag", tag)
|
52
|
+
|
53
|
+
@property
|
54
|
+
@pulumi.getter
|
55
|
+
def branch(self) -> Optional[builtins.str]:
|
56
|
+
return pulumi.get(self, "branch")
|
57
|
+
|
58
|
+
@property
|
59
|
+
@pulumi.getter
|
60
|
+
def content(self) -> builtins.str:
|
61
|
+
"""
|
62
|
+
The file content.
|
63
|
+
"""
|
64
|
+
return pulumi.get(self, "content")
|
65
|
+
|
66
|
+
@property
|
67
|
+
@pulumi.getter
|
68
|
+
def file(self) -> builtins.str:
|
69
|
+
return pulumi.get(self, "file")
|
70
|
+
|
71
|
+
@property
|
72
|
+
@pulumi.getter
|
73
|
+
def id(self) -> builtins.str:
|
74
|
+
"""
|
75
|
+
The provider-assigned unique ID for this managed resource.
|
76
|
+
"""
|
77
|
+
return pulumi.get(self, "id")
|
78
|
+
|
79
|
+
@property
|
80
|
+
@pulumi.getter(name="lastCommitMessage")
|
81
|
+
def last_commit_message(self) -> builtins.str:
|
82
|
+
"""
|
83
|
+
The commit message for the file.
|
84
|
+
"""
|
85
|
+
return pulumi.get(self, "last_commit_message")
|
86
|
+
|
87
|
+
@property
|
88
|
+
@pulumi.getter(name="repositoryId")
|
89
|
+
def repository_id(self) -> builtins.str:
|
90
|
+
return pulumi.get(self, "repository_id")
|
91
|
+
|
92
|
+
@property
|
93
|
+
@pulumi.getter
|
94
|
+
def tag(self) -> Optional[builtins.str]:
|
95
|
+
return pulumi.get(self, "tag")
|
96
|
+
|
97
|
+
|
98
|
+
class AwaitableGetGitRepositoryFileResult(GetGitRepositoryFileResult):
|
99
|
+
# pylint: disable=using-constant-test
|
100
|
+
def __await__(self):
|
101
|
+
if False:
|
102
|
+
yield self
|
103
|
+
return GetGitRepositoryFileResult(
|
104
|
+
branch=self.branch,
|
105
|
+
content=self.content,
|
106
|
+
file=self.file,
|
107
|
+
id=self.id,
|
108
|
+
last_commit_message=self.last_commit_message,
|
109
|
+
repository_id=self.repository_id,
|
110
|
+
tag=self.tag)
|
111
|
+
|
112
|
+
|
113
|
+
def get_git_repository_file(branch: Optional[builtins.str] = None,
|
114
|
+
file: Optional[builtins.str] = None,
|
115
|
+
repository_id: Optional[builtins.str] = None,
|
116
|
+
tag: Optional[builtins.str] = None,
|
117
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetGitRepositoryFileResult:
|
118
|
+
"""
|
119
|
+
Use this data source to get an existing Git Repository File.
|
120
|
+
|
121
|
+
## Example Usage
|
122
|
+
|
123
|
+
```python
|
124
|
+
import pulumi
|
125
|
+
import pulumi_azuredevops as azuredevops
|
126
|
+
|
127
|
+
example = azuredevops.get_project(name="Example Project")
|
128
|
+
# Load a specific Git repository by name
|
129
|
+
example_get_git_repository = azuredevops.get_git_repository(project_id=example.id,
|
130
|
+
name="Example Repository")
|
131
|
+
example_get_git_repository_file = azuredevops.get_git_repository_file(repository_id=example_get_git_repository.id,
|
132
|
+
branch="refs/heads/main",
|
133
|
+
file="MyFile.txt")
|
134
|
+
```
|
135
|
+
|
136
|
+
|
137
|
+
:param builtins.str branch: The git branch to use. Conflicts with `tag`; one or the other must be specified.
|
138
|
+
:param builtins.str file: The path of the file to get.
|
139
|
+
:param builtins.str repository_id: The ID of the Git repository.
|
140
|
+
:param builtins.str tag: The tag to use.Conflicts with `branch`; one or the other must be specified.
|
141
|
+
"""
|
142
|
+
__args__ = dict()
|
143
|
+
__args__['branch'] = branch
|
144
|
+
__args__['file'] = file
|
145
|
+
__args__['repositoryId'] = repository_id
|
146
|
+
__args__['tag'] = tag
|
147
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
148
|
+
__ret__ = pulumi.runtime.invoke('azuredevops:index/getGitRepositoryFile:getGitRepositoryFile', __args__, opts=opts, typ=GetGitRepositoryFileResult).value
|
149
|
+
|
150
|
+
return AwaitableGetGitRepositoryFileResult(
|
151
|
+
branch=pulumi.get(__ret__, 'branch'),
|
152
|
+
content=pulumi.get(__ret__, 'content'),
|
153
|
+
file=pulumi.get(__ret__, 'file'),
|
154
|
+
id=pulumi.get(__ret__, 'id'),
|
155
|
+
last_commit_message=pulumi.get(__ret__, 'last_commit_message'),
|
156
|
+
repository_id=pulumi.get(__ret__, 'repository_id'),
|
157
|
+
tag=pulumi.get(__ret__, 'tag'))
|
158
|
+
def get_git_repository_file_output(branch: Optional[pulumi.Input[Optional[builtins.str]]] = None,
|
159
|
+
file: Optional[pulumi.Input[builtins.str]] = None,
|
160
|
+
repository_id: Optional[pulumi.Input[builtins.str]] = None,
|
161
|
+
tag: Optional[pulumi.Input[Optional[builtins.str]]] = None,
|
162
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetGitRepositoryFileResult]:
|
163
|
+
"""
|
164
|
+
Use this data source to get an existing Git Repository File.
|
165
|
+
|
166
|
+
## Example Usage
|
167
|
+
|
168
|
+
```python
|
169
|
+
import pulumi
|
170
|
+
import pulumi_azuredevops as azuredevops
|
171
|
+
|
172
|
+
example = azuredevops.get_project(name="Example Project")
|
173
|
+
# Load a specific Git repository by name
|
174
|
+
example_get_git_repository = azuredevops.get_git_repository(project_id=example.id,
|
175
|
+
name="Example Repository")
|
176
|
+
example_get_git_repository_file = azuredevops.get_git_repository_file(repository_id=example_get_git_repository.id,
|
177
|
+
branch="refs/heads/main",
|
178
|
+
file="MyFile.txt")
|
179
|
+
```
|
180
|
+
|
181
|
+
|
182
|
+
:param builtins.str branch: The git branch to use. Conflicts with `tag`; one or the other must be specified.
|
183
|
+
:param builtins.str file: The path of the file to get.
|
184
|
+
:param builtins.str repository_id: The ID of the Git repository.
|
185
|
+
:param builtins.str tag: The tag to use.Conflicts with `branch`; one or the other must be specified.
|
186
|
+
"""
|
187
|
+
__args__ = dict()
|
188
|
+
__args__['branch'] = branch
|
189
|
+
__args__['file'] = file
|
190
|
+
__args__['repositoryId'] = repository_id
|
191
|
+
__args__['tag'] = tag
|
192
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
193
|
+
__ret__ = pulumi.runtime.invoke_output('azuredevops:index/getGitRepositoryFile:getGitRepositoryFile', __args__, opts=opts, typ=GetGitRepositoryFileResult)
|
194
|
+
return __ret__.apply(lambda __response__: GetGitRepositoryFileResult(
|
195
|
+
branch=pulumi.get(__response__, 'branch'),
|
196
|
+
content=pulumi.get(__response__, 'content'),
|
197
|
+
file=pulumi.get(__response__, 'file'),
|
198
|
+
id=pulumi.get(__response__, 'id'),
|
199
|
+
last_commit_message=pulumi.get(__response__, 'last_commit_message'),
|
200
|
+
repository_id=pulumi.get(__response__, 'repository_id'),
|
201
|
+
tag=pulumi.get(__response__, 'tag')))
|
pulumi_azuredevops/get_group.py
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
4
|
|
5
|
+
import builtins
|
5
6
|
import copy
|
6
7
|
import warnings
|
7
8
|
import sys
|
@@ -51,7 +52,7 @@ class GetGroupResult:
|
|
51
52
|
|
52
53
|
@property
|
53
54
|
@pulumi.getter
|
54
|
-
def descriptor(self) -> str:
|
55
|
+
def descriptor(self) -> builtins.str:
|
55
56
|
"""
|
56
57
|
The Descriptor is the primary way to reference the graph subject. This field will uniquely identify the same graph subject across both Accounts and Organizations.
|
57
58
|
"""
|
@@ -59,7 +60,7 @@ class GetGroupResult:
|
|
59
60
|
|
60
61
|
@property
|
61
62
|
@pulumi.getter(name="groupId")
|
62
|
-
def group_id(self) -> str:
|
63
|
+
def group_id(self) -> builtins.str:
|
63
64
|
"""
|
64
65
|
The ID of the group.
|
65
66
|
"""
|
@@ -67,7 +68,7 @@ class GetGroupResult:
|
|
67
68
|
|
68
69
|
@property
|
69
70
|
@pulumi.getter
|
70
|
-
def id(self) -> str:
|
71
|
+
def id(self) -> builtins.str:
|
71
72
|
"""
|
72
73
|
The provider-assigned unique ID for this managed resource.
|
73
74
|
"""
|
@@ -75,12 +76,12 @@ class GetGroupResult:
|
|
75
76
|
|
76
77
|
@property
|
77
78
|
@pulumi.getter
|
78
|
-
def name(self) -> str:
|
79
|
+
def name(self) -> builtins.str:
|
79
80
|
return pulumi.get(self, "name")
|
80
81
|
|
81
82
|
@property
|
82
83
|
@pulumi.getter
|
83
|
-
def origin(self) -> str:
|
84
|
+
def origin(self) -> builtins.str:
|
84
85
|
"""
|
85
86
|
The type of source provider for the origin identifier (ex:AD, AAD, MSA)
|
86
87
|
"""
|
@@ -88,7 +89,7 @@ class GetGroupResult:
|
|
88
89
|
|
89
90
|
@property
|
90
91
|
@pulumi.getter(name="originId")
|
91
|
-
def origin_id(self) -> str:
|
92
|
+
def origin_id(self) -> builtins.str:
|
92
93
|
"""
|
93
94
|
The unique identifier from the system of origin. Typically a sid, object id or Guid. Linking and unlinking operations can cause this value to change for a user because the user is not backed by a different provider and has a different unique id in the new provider.
|
94
95
|
"""
|
@@ -96,7 +97,7 @@ class GetGroupResult:
|
|
96
97
|
|
97
98
|
@property
|
98
99
|
@pulumi.getter(name="projectId")
|
99
|
-
def project_id(self) -> Optional[str]:
|
100
|
+
def project_id(self) -> Optional[builtins.str]:
|
100
101
|
return pulumi.get(self, "project_id")
|
101
102
|
|
102
103
|
|
@@ -115,8 +116,8 @@ class AwaitableGetGroupResult(GetGroupResult):
|
|
115
116
|
project_id=self.project_id)
|
116
117
|
|
117
118
|
|
118
|
-
def get_group(name: Optional[str] = None,
|
119
|
-
project_id: Optional[str] = None,
|
119
|
+
def get_group(name: Optional[builtins.str] = None,
|
120
|
+
project_id: Optional[builtins.str] = None,
|
120
121
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetGroupResult:
|
121
122
|
"""
|
122
123
|
Use this data source to access information about an existing Group within Azure DevOps
|
@@ -147,8 +148,8 @@ def get_group(name: Optional[str] = None,
|
|
147
148
|
- **Work Items**: Read
|
148
149
|
|
149
150
|
|
150
|
-
:param str name: The Name of the Group.
|
151
|
-
:param str project_id: The ID of the Project. If `project_id` is not specified the project collection groups will be searched.
|
151
|
+
:param builtins.str name: The Name of the Group.
|
152
|
+
:param builtins.str project_id: The ID of the Project. If `project_id` is not specified the project collection groups will be searched.
|
152
153
|
"""
|
153
154
|
__args__ = dict()
|
154
155
|
__args__['name'] = name
|
@@ -164,8 +165,8 @@ def get_group(name: Optional[str] = None,
|
|
164
165
|
origin=pulumi.get(__ret__, 'origin'),
|
165
166
|
origin_id=pulumi.get(__ret__, 'origin_id'),
|
166
167
|
project_id=pulumi.get(__ret__, 'project_id'))
|
167
|
-
def get_group_output(name: Optional[pulumi.Input[str]] = None,
|
168
|
-
project_id: Optional[pulumi.Input[Optional[str]]] = None,
|
168
|
+
def get_group_output(name: Optional[pulumi.Input[builtins.str]] = None,
|
169
|
+
project_id: Optional[pulumi.Input[Optional[builtins.str]]] = None,
|
169
170
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetGroupResult]:
|
170
171
|
"""
|
171
172
|
Use this data source to access information about an existing Group within Azure DevOps
|
@@ -196,8 +197,8 @@ def get_group_output(name: Optional[pulumi.Input[str]] = None,
|
|
196
197
|
- **Work Items**: Read
|
197
198
|
|
198
199
|
|
199
|
-
:param str name: The Name of the Group.
|
200
|
-
:param str project_id: The ID of the Project. If `project_id` is not specified the project collection groups will be searched.
|
200
|
+
:param builtins.str name: The Name of the Group.
|
201
|
+
:param builtins.str project_id: The ID of the Project. If `project_id` is not specified the project collection groups will be searched.
|
201
202
|
"""
|
202
203
|
__args__ = dict()
|
203
204
|
__args__['name'] = name
|
@@ -0,0 +1,132 @@
|
|
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 builtins
|
6
|
+
import copy
|
7
|
+
import warnings
|
8
|
+
import sys
|
9
|
+
import pulumi
|
10
|
+
import pulumi.runtime
|
11
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
12
|
+
if sys.version_info >= (3, 11):
|
13
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
14
|
+
else:
|
15
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
16
|
+
from . import _utilities
|
17
|
+
|
18
|
+
__all__ = [
|
19
|
+
'GetGroupMembershipResult',
|
20
|
+
'AwaitableGetGroupMembershipResult',
|
21
|
+
'get_group_membership',
|
22
|
+
'get_group_membership_output',
|
23
|
+
]
|
24
|
+
|
25
|
+
@pulumi.output_type
|
26
|
+
class GetGroupMembershipResult:
|
27
|
+
"""
|
28
|
+
A collection of values returned by getGroupMembership.
|
29
|
+
"""
|
30
|
+
def __init__(__self__, group_descriptor=None, id=None, members=None):
|
31
|
+
if group_descriptor and not isinstance(group_descriptor, str):
|
32
|
+
raise TypeError("Expected argument 'group_descriptor' to be a str")
|
33
|
+
pulumi.set(__self__, "group_descriptor", group_descriptor)
|
34
|
+
if id and not isinstance(id, str):
|
35
|
+
raise TypeError("Expected argument 'id' to be a str")
|
36
|
+
pulumi.set(__self__, "id", id)
|
37
|
+
if members and not isinstance(members, list):
|
38
|
+
raise TypeError("Expected argument 'members' to be a list")
|
39
|
+
pulumi.set(__self__, "members", members)
|
40
|
+
|
41
|
+
@property
|
42
|
+
@pulumi.getter(name="groupDescriptor")
|
43
|
+
def group_descriptor(self) -> builtins.str:
|
44
|
+
return pulumi.get(self, "group_descriptor")
|
45
|
+
|
46
|
+
@property
|
47
|
+
@pulumi.getter
|
48
|
+
def id(self) -> builtins.str:
|
49
|
+
"""
|
50
|
+
The provider-assigned unique ID for this managed resource.
|
51
|
+
"""
|
52
|
+
return pulumi.get(self, "id")
|
53
|
+
|
54
|
+
@property
|
55
|
+
@pulumi.getter
|
56
|
+
def members(self) -> Sequence[builtins.str]:
|
57
|
+
"""
|
58
|
+
A list of user or group descriptors.
|
59
|
+
"""
|
60
|
+
return pulumi.get(self, "members")
|
61
|
+
|
62
|
+
|
63
|
+
class AwaitableGetGroupMembershipResult(GetGroupMembershipResult):
|
64
|
+
# pylint: disable=using-constant-test
|
65
|
+
def __await__(self):
|
66
|
+
if False:
|
67
|
+
yield self
|
68
|
+
return GetGroupMembershipResult(
|
69
|
+
group_descriptor=self.group_descriptor,
|
70
|
+
id=self.id,
|
71
|
+
members=self.members)
|
72
|
+
|
73
|
+
|
74
|
+
def get_group_membership(group_descriptor: Optional[builtins.str] = None,
|
75
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetGroupMembershipResult:
|
76
|
+
"""
|
77
|
+
Use this data source to access information about an existing Group Memberships within Azure DevOps
|
78
|
+
|
79
|
+
## Example Usage
|
80
|
+
|
81
|
+
```python
|
82
|
+
import pulumi
|
83
|
+
import pulumi_azuredevops as azuredevops
|
84
|
+
|
85
|
+
example = azuredevops.get_group_membership(group_descriptor="groupdescroptpr")
|
86
|
+
```
|
87
|
+
|
88
|
+
## Relevant Links
|
89
|
+
|
90
|
+
- [Azure DevOps Service REST API 7.1 - Memberships](https://docs.microsoft.com/en-us/rest/api/azure/devops/graph/memberships?view=azure-devops-rest-7.1)
|
91
|
+
|
92
|
+
|
93
|
+
:param builtins.str group_descriptor: The descriptor of the group.
|
94
|
+
"""
|
95
|
+
__args__ = dict()
|
96
|
+
__args__['groupDescriptor'] = group_descriptor
|
97
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
98
|
+
__ret__ = pulumi.runtime.invoke('azuredevops:index/getGroupMembership:getGroupMembership', __args__, opts=opts, typ=GetGroupMembershipResult).value
|
99
|
+
|
100
|
+
return AwaitableGetGroupMembershipResult(
|
101
|
+
group_descriptor=pulumi.get(__ret__, 'group_descriptor'),
|
102
|
+
id=pulumi.get(__ret__, 'id'),
|
103
|
+
members=pulumi.get(__ret__, 'members'))
|
104
|
+
def get_group_membership_output(group_descriptor: Optional[pulumi.Input[builtins.str]] = None,
|
105
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetGroupMembershipResult]:
|
106
|
+
"""
|
107
|
+
Use this data source to access information about an existing Group Memberships within Azure DevOps
|
108
|
+
|
109
|
+
## Example Usage
|
110
|
+
|
111
|
+
```python
|
112
|
+
import pulumi
|
113
|
+
import pulumi_azuredevops as azuredevops
|
114
|
+
|
115
|
+
example = azuredevops.get_group_membership(group_descriptor="groupdescroptpr")
|
116
|
+
```
|
117
|
+
|
118
|
+
## Relevant Links
|
119
|
+
|
120
|
+
- [Azure DevOps Service REST API 7.1 - Memberships](https://docs.microsoft.com/en-us/rest/api/azure/devops/graph/memberships?view=azure-devops-rest-7.1)
|
121
|
+
|
122
|
+
|
123
|
+
:param builtins.str group_descriptor: The descriptor of the group.
|
124
|
+
"""
|
125
|
+
__args__ = dict()
|
126
|
+
__args__['groupDescriptor'] = group_descriptor
|
127
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
128
|
+
__ret__ = pulumi.runtime.invoke_output('azuredevops:index/getGroupMembership:getGroupMembership', __args__, opts=opts, typ=GetGroupMembershipResult)
|
129
|
+
return __ret__.apply(lambda __response__: GetGroupMembershipResult(
|
130
|
+
group_descriptor=pulumi.get(__response__, 'group_descriptor'),
|
131
|
+
id=pulumi.get(__response__, 'id'),
|
132
|
+
members=pulumi.get(__response__, 'members')))
|
pulumi_azuredevops/get_groups.py
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
4
|
|
5
|
+
import builtins
|
5
6
|
import copy
|
6
7
|
import warnings
|
7
8
|
import sys
|
@@ -48,7 +49,7 @@ class GetGroupsResult:
|
|
48
49
|
|
49
50
|
@property
|
50
51
|
@pulumi.getter
|
51
|
-
def id(self) -> str:
|
52
|
+
def id(self) -> builtins.str:
|
52
53
|
"""
|
53
54
|
The provider-assigned unique ID for this managed resource.
|
54
55
|
"""
|
@@ -56,7 +57,7 @@ class GetGroupsResult:
|
|
56
57
|
|
57
58
|
@property
|
58
59
|
@pulumi.getter(name="projectId")
|
59
|
-
def project_id(self) -> Optional[str]:
|
60
|
+
def project_id(self) -> Optional[builtins.str]:
|
60
61
|
return pulumi.get(self, "project_id")
|
61
62
|
|
62
63
|
|
@@ -71,7 +72,7 @@ class AwaitableGetGroupsResult(GetGroupsResult):
|
|
71
72
|
project_id=self.project_id)
|
72
73
|
|
73
74
|
|
74
|
-
def get_groups(project_id: Optional[str] = None,
|
75
|
+
def get_groups(project_id: Optional[builtins.str] = None,
|
75
76
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetGroupsResult:
|
76
77
|
"""
|
77
78
|
Use this data source to access information about existing Groups within Azure DevOps
|
@@ -94,7 +95,7 @@ def get_groups(project_id: Optional[str] = None,
|
|
94
95
|
- [Azure DevOps Service REST API 7.0 - Groups - List](https://docs.microsoft.com/en-us/rest/api/azure/devops/graph/groups/list?view=azure-devops-rest-7.0)
|
95
96
|
|
96
97
|
|
97
|
-
:param str project_id: The ID of the Project. If no project ID is specified all groups of an organization will be returned
|
98
|
+
:param builtins.str project_id: The ID of the Project. If no project ID is specified all groups of an organization will be returned
|
98
99
|
"""
|
99
100
|
__args__ = dict()
|
100
101
|
__args__['projectId'] = project_id
|
@@ -105,7 +106,7 @@ def get_groups(project_id: Optional[str] = None,
|
|
105
106
|
groups=pulumi.get(__ret__, 'groups'),
|
106
107
|
id=pulumi.get(__ret__, 'id'),
|
107
108
|
project_id=pulumi.get(__ret__, 'project_id'))
|
108
|
-
def get_groups_output(project_id: Optional[pulumi.Input[Optional[str]]] = None,
|
109
|
+
def get_groups_output(project_id: Optional[pulumi.Input[Optional[builtins.str]]] = None,
|
109
110
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetGroupsResult]:
|
110
111
|
"""
|
111
112
|
Use this data source to access information about existing Groups within Azure DevOps
|
@@ -128,7 +129,7 @@ def get_groups_output(project_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
128
129
|
- [Azure DevOps Service REST API 7.0 - Groups - List](https://docs.microsoft.com/en-us/rest/api/azure/devops/graph/groups/list?view=azure-devops-rest-7.0)
|
129
130
|
|
130
131
|
|
131
|
-
:param str project_id: The ID of the Project. If no project ID is specified all groups of an organization will be returned
|
132
|
+
:param builtins.str project_id: The ID of the Project. If no project ID is specified all groups of an organization will be returned
|
132
133
|
"""
|
133
134
|
__args__ = dict()
|
134
135
|
__args__['projectId'] = project_id
|