pulumi-azuredevops 3.10.0a1747977999__py3-none-any.whl → 3.10.1__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 +12 -2
- pulumi_azuredevops/_inputs.py +1289 -1236
- pulumi_azuredevops/_utilities.py +1 -1
- pulumi_azuredevops/area_permissions.py +87 -88
- pulumi_azuredevops/branch_policy_auto_reviewers.py +56 -57
- pulumi_azuredevops/branch_policy_build_validation.py +56 -57
- pulumi_azuredevops/branch_policy_comment_resolution.py +56 -57
- pulumi_azuredevops/branch_policy_merge_types.py +56 -57
- pulumi_azuredevops/branch_policy_min_reviewers.py +56 -57
- pulumi_azuredevops/branch_policy_status_check.py +56 -57
- pulumi_azuredevops/branch_policy_work_item_linking.py +56 -57
- pulumi_azuredevops/build_definition.py +171 -172
- pulumi_azuredevops/build_definition_permissions.py +87 -88
- pulumi_azuredevops/build_folder.py +53 -54
- pulumi_azuredevops/build_folder_permissions.py +87 -88
- pulumi_azuredevops/check_approval.py +147 -148
- pulumi_azuredevops/check_branch_control.py +147 -148
- pulumi_azuredevops/check_business_hours.py +266 -267
- pulumi_azuredevops/check_exclusive_lock.py +79 -80
- pulumi_azuredevops/check_required_template.py +65 -66
- pulumi_azuredevops/check_rest_api.py +266 -267
- pulumi_azuredevops/config/__init__.py +2 -2
- pulumi_azuredevops/config/__init__.pyi +2 -3
- pulumi_azuredevops/config/vars.py +23 -24
- pulumi_azuredevops/dashboard.py +96 -97
- pulumi_azuredevops/elastic_pool.py +206 -207
- pulumi_azuredevops/environment.py +53 -54
- pulumi_azuredevops/environment_resource_kubernetes.py +121 -122
- pulumi_azuredevops/extension.py +97 -98
- pulumi_azuredevops/feed.py +39 -40
- pulumi_azuredevops/feed_permission.py +96 -97
- pulumi_azuredevops/feed_retention_policy.py +70 -71
- pulumi_azuredevops/get_agent_queue.py +18 -19
- pulumi_azuredevops/get_area.py +27 -28
- pulumi_azuredevops/get_build_definition.py +40 -41
- pulumi_azuredevops/get_client_config.py +14 -15
- pulumi_azuredevops/get_descriptor.py +12 -13
- pulumi_azuredevops/get_environment.py +24 -25
- pulumi_azuredevops/get_feed.py +22 -23
- pulumi_azuredevops/get_git_repository.py +32 -33
- pulumi_azuredevops/get_git_repository_file.py +32 -33
- pulumi_azuredevops/get_group.py +25 -26
- pulumi_azuredevops/get_group_membership.py +12 -13
- pulumi_azuredevops/get_groups.py +11 -12
- pulumi_azuredevops/get_identity_group.py +20 -21
- pulumi_azuredevops/get_identity_groups.py +11 -12
- pulumi_azuredevops/get_identity_users.py +20 -21
- pulumi_azuredevops/get_iteration.py +27 -28
- pulumi_azuredevops/get_pool.py +16 -17
- pulumi_azuredevops/get_pools.py +5 -6
- pulumi_azuredevops/get_project.py +28 -29
- pulumi_azuredevops/get_projects.py +17 -18
- pulumi_azuredevops/get_repositories.py +23 -24
- pulumi_azuredevops/get_securityrole_definitions.py +11 -12
- pulumi_azuredevops/get_service_endpoint_azure_rm.py +50 -51
- pulumi_azuredevops/get_service_endpoint_github.py +26 -27
- pulumi_azuredevops/get_service_principal.py +16 -17
- pulumi_azuredevops/get_serviceendpoint_azurecr.py +46 -47
- pulumi_azuredevops/get_serviceendpoint_bitbucket.py +26 -27
- pulumi_azuredevops/get_serviceendpoint_dockerregistry.py +281 -0
- pulumi_azuredevops/get_serviceendpoint_npm.py +28 -29
- pulumi_azuredevops/get_serviceendpoint_sonarcloud.py +26 -27
- pulumi_azuredevops/get_storage_key.py +12 -13
- pulumi_azuredevops/get_team.py +30 -31
- pulumi_azuredevops/get_teams.py +17 -18
- pulumi_azuredevops/get_user.py +24 -25
- pulumi_azuredevops/get_users.py +30 -31
- pulumi_azuredevops/get_variable_group.py +22 -23
- pulumi_azuredevops/git.py +144 -145
- pulumi_azuredevops/git_permissions.py +125 -105
- pulumi_azuredevops/git_repository_branch.py +96 -97
- pulumi_azuredevops/git_repository_file.py +172 -173
- pulumi_azuredevops/group.py +167 -168
- pulumi_azuredevops/group_entitlement.py +105 -106
- pulumi_azuredevops/group_membership.py +53 -54
- pulumi_azuredevops/iterative_permissions.py +87 -88
- pulumi_azuredevops/library_permissions.py +70 -71
- pulumi_azuredevops/outputs.py +1387 -1356
- pulumi_azuredevops/pipeline_authorization.py +87 -88
- pulumi_azuredevops/pool.py +70 -71
- pulumi_azuredevops/project.py +113 -114
- pulumi_azuredevops/project_features.py +32 -33
- pulumi_azuredevops/project_permissions.py +70 -71
- pulumi_azuredevops/project_pipeline_settings.py +121 -122
- pulumi_azuredevops/project_tags.py +36 -37
- pulumi_azuredevops/provider.py +199 -200
- pulumi_azuredevops/pulumi-plugin.json +1 -1
- pulumi_azuredevops/queue.py +53 -54
- pulumi_azuredevops/repository_policy_author_email_pattern.py +87 -88
- pulumi_azuredevops/repository_policy_case_enforcement.py +87 -88
- pulumi_azuredevops/repository_policy_check_credentials.py +70 -71
- pulumi_azuredevops/repository_policy_file_path_pattern.py +87 -88
- pulumi_azuredevops/repository_policy_max_file_size.py +87 -88
- pulumi_azuredevops/repository_policy_max_path_length.py +87 -88
- pulumi_azuredevops/repository_policy_reserved_names.py +70 -71
- pulumi_azuredevops/resource_authorization.py +87 -88
- pulumi_azuredevops/securityrole_assignment.py +70 -71
- pulumi_azuredevops/service_endpoint_artifactory.py +83 -84
- pulumi_azuredevops/service_endpoint_aws.py +175 -176
- pulumi_azuredevops/service_endpoint_azure_dev_ops.py +138 -142
- pulumi_azuredevops/service_endpoint_azure_ecr.py +242 -247
- pulumi_azuredevops/service_endpoint_azure_rm.py +257 -259
- pulumi_azuredevops/service_endpoint_bit_bucket.py +109 -112
- pulumi_azuredevops/service_endpoint_docker_registry.py +164 -167
- pulumi_azuredevops/service_endpoint_generic.py +107 -108
- pulumi_azuredevops/service_endpoint_generic_git.py +124 -125
- pulumi_azuredevops/service_endpoint_git_hub.py +62 -63
- pulumi_azuredevops/service_endpoint_git_hub_enterprise.py +79 -80
- pulumi_azuredevops/service_endpoint_git_lab.py +107 -108
- pulumi_azuredevops/service_endpoint_kubernetes.py +99 -100
- pulumi_azuredevops/service_endpoint_npm.py +94 -95
- pulumi_azuredevops/service_endpoint_pipeline.py +76 -77
- pulumi_azuredevops/service_endpoint_service_fabric.py +82 -83
- pulumi_azuredevops/service_endpoint_sonar_cloud.py +77 -78
- pulumi_azuredevops/service_endpoint_sonar_qube.py +94 -95
- pulumi_azuredevops/service_endpoint_ssh.py +141 -142
- pulumi_azuredevops/service_principal_entitlement.py +88 -89
- pulumi_azuredevops/serviceendpoint_argocd.py +83 -84
- pulumi_azuredevops/serviceendpoint_azure_service_bus.py +90 -91
- pulumi_azuredevops/serviceendpoint_black_duck.py +416 -0
- pulumi_azuredevops/serviceendpoint_checkmarx_one.py +141 -142
- pulumi_azuredevops/serviceendpoint_checkmarx_sast.py +141 -142
- pulumi_azuredevops/serviceendpoint_checkmarx_sca.py +175 -176
- pulumi_azuredevops/serviceendpoint_dynamics_lifecycle_services.py +141 -142
- pulumi_azuredevops/serviceendpoint_externaltfs.py +76 -77
- pulumi_azuredevops/serviceendpoint_gcp_terraform.py +177 -181
- pulumi_azuredevops/serviceendpoint_incomingwebhook.py +118 -120
- pulumi_azuredevops/serviceendpoint_jenkins.py +124 -125
- pulumi_azuredevops/serviceendpoint_jfrog_artifactory_v2.py +83 -84
- pulumi_azuredevops/serviceendpoint_jfrog_distribution_v2.py +83 -84
- pulumi_azuredevops/serviceendpoint_jfrog_platform_v2.py +83 -84
- pulumi_azuredevops/serviceendpoint_jfrog_xray_v2.py +83 -84
- pulumi_azuredevops/serviceendpoint_maven.py +96 -97
- pulumi_azuredevops/serviceendpoint_nexus.py +107 -108
- pulumi_azuredevops/serviceendpoint_nuget.py +141 -142
- pulumi_azuredevops/serviceendpoint_octopusdeploy.py +107 -108
- pulumi_azuredevops/serviceendpoint_openshift.py +116 -117
- pulumi_azuredevops/serviceendpoint_permissions.py +87 -88
- pulumi_azuredevops/serviceendpoint_snyk.py +90 -91
- pulumi_azuredevops/serviceendpoint_visualstudiomarketplace.py +79 -80
- pulumi_azuredevops/servicehook_permissions.py +70 -71
- pulumi_azuredevops/servicehook_storage_queue_pipelines.py +110 -111
- pulumi_azuredevops/tagging_permissions.py +70 -71
- pulumi_azuredevops/team.py +96 -97
- pulumi_azuredevops/team_administrators.py +70 -71
- pulumi_azuredevops/team_members.py +70 -71
- pulumi_azuredevops/user.py +96 -97
- pulumi_azuredevops/variable_group.py +76 -77
- pulumi_azuredevops/variable_group_permissions.py +87 -88
- pulumi_azuredevops/wiki.py +122 -123
- pulumi_azuredevops/wiki_page.py +83 -84
- pulumi_azuredevops/work_item_query_permissions.py +87 -88
- pulumi_azuredevops/workitem.py +301 -141
- {pulumi_azuredevops-3.10.0a1747977999.dist-info → pulumi_azuredevops-3.10.1.dist-info}/METADATA +1 -1
- pulumi_azuredevops-3.10.1.dist-info/RECORD +158 -0
- {pulumi_azuredevops-3.10.0a1747977999.dist-info → pulumi_azuredevops-3.10.1.dist-info}/WHEEL +1 -1
- pulumi_azuredevops-3.10.0a1747977999.dist-info/RECORD +0 -156
- {pulumi_azuredevops-3.10.0a1747977999.dist-info → pulumi_azuredevops-3.10.1.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,281 @@
|
|
1
|
+
# coding=utf-8
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
|
+
|
5
|
+
import builtins as _builtins
|
6
|
+
import warnings
|
7
|
+
import sys
|
8
|
+
import pulumi
|
9
|
+
import pulumi.runtime
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
11
|
+
if sys.version_info >= (3, 11):
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
13
|
+
else:
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
15
|
+
from . import _utilities
|
16
|
+
|
17
|
+
__all__ = [
|
18
|
+
'GetServiceendpointDockerregistryResult',
|
19
|
+
'AwaitableGetServiceendpointDockerregistryResult',
|
20
|
+
'get_serviceendpoint_dockerregistry',
|
21
|
+
'get_serviceendpoint_dockerregistry_output',
|
22
|
+
]
|
23
|
+
|
24
|
+
@pulumi.output_type
|
25
|
+
class GetServiceendpointDockerregistryResult:
|
26
|
+
"""
|
27
|
+
A collection of values returned by getServiceendpointDockerregistry.
|
28
|
+
"""
|
29
|
+
def __init__(__self__, authorization=None, description=None, docker_email=None, docker_password=None, docker_registry=None, docker_username=None, id=None, project_id=None, registry_type=None, service_endpoint_id=None, service_endpoint_name=None):
|
30
|
+
if authorization and not isinstance(authorization, dict):
|
31
|
+
raise TypeError("Expected argument 'authorization' to be a dict")
|
32
|
+
pulumi.set(__self__, "authorization", authorization)
|
33
|
+
if description and not isinstance(description, str):
|
34
|
+
raise TypeError("Expected argument 'description' to be a str")
|
35
|
+
pulumi.set(__self__, "description", description)
|
36
|
+
if docker_email and not isinstance(docker_email, str):
|
37
|
+
raise TypeError("Expected argument 'docker_email' to be a str")
|
38
|
+
pulumi.set(__self__, "docker_email", docker_email)
|
39
|
+
if docker_password and not isinstance(docker_password, str):
|
40
|
+
raise TypeError("Expected argument 'docker_password' to be a str")
|
41
|
+
pulumi.set(__self__, "docker_password", docker_password)
|
42
|
+
if docker_registry and not isinstance(docker_registry, str):
|
43
|
+
raise TypeError("Expected argument 'docker_registry' to be a str")
|
44
|
+
pulumi.set(__self__, "docker_registry", docker_registry)
|
45
|
+
if docker_username and not isinstance(docker_username, str):
|
46
|
+
raise TypeError("Expected argument 'docker_username' to be a str")
|
47
|
+
pulumi.set(__self__, "docker_username", docker_username)
|
48
|
+
if id and not isinstance(id, str):
|
49
|
+
raise TypeError("Expected argument 'id' to be a str")
|
50
|
+
pulumi.set(__self__, "id", id)
|
51
|
+
if project_id and not isinstance(project_id, str):
|
52
|
+
raise TypeError("Expected argument 'project_id' to be a str")
|
53
|
+
pulumi.set(__self__, "project_id", project_id)
|
54
|
+
if registry_type and not isinstance(registry_type, str):
|
55
|
+
raise TypeError("Expected argument 'registry_type' to be a str")
|
56
|
+
pulumi.set(__self__, "registry_type", registry_type)
|
57
|
+
if service_endpoint_id and not isinstance(service_endpoint_id, str):
|
58
|
+
raise TypeError("Expected argument 'service_endpoint_id' to be a str")
|
59
|
+
pulumi.set(__self__, "service_endpoint_id", service_endpoint_id)
|
60
|
+
if service_endpoint_name and not isinstance(service_endpoint_name, str):
|
61
|
+
raise TypeError("Expected argument 'service_endpoint_name' to be a str")
|
62
|
+
pulumi.set(__self__, "service_endpoint_name", service_endpoint_name)
|
63
|
+
|
64
|
+
@_builtins.property
|
65
|
+
@pulumi.getter
|
66
|
+
def authorization(self) -> Mapping[str, _builtins.str]:
|
67
|
+
"""
|
68
|
+
The Authorization scheme.
|
69
|
+
"""
|
70
|
+
return pulumi.get(self, "authorization")
|
71
|
+
|
72
|
+
@_builtins.property
|
73
|
+
@pulumi.getter
|
74
|
+
def description(self) -> _builtins.str:
|
75
|
+
"""
|
76
|
+
The Service Endpoint description.
|
77
|
+
"""
|
78
|
+
return pulumi.get(self, "description")
|
79
|
+
|
80
|
+
@_builtins.property
|
81
|
+
@pulumi.getter(name="dockerEmail")
|
82
|
+
def docker_email(self) -> _builtins.str:
|
83
|
+
"""
|
84
|
+
The email for Docker account user.
|
85
|
+
"""
|
86
|
+
return pulumi.get(self, "docker_email")
|
87
|
+
|
88
|
+
@_builtins.property
|
89
|
+
@pulumi.getter(name="dockerPassword")
|
90
|
+
def docker_password(self) -> _builtins.str:
|
91
|
+
"""
|
92
|
+
The password for the account user identified above.
|
93
|
+
"""
|
94
|
+
return pulumi.get(self, "docker_password")
|
95
|
+
|
96
|
+
@_builtins.property
|
97
|
+
@pulumi.getter(name="dockerRegistry")
|
98
|
+
def docker_registry(self) -> _builtins.str:
|
99
|
+
"""
|
100
|
+
The URL of the Docker registry.
|
101
|
+
"""
|
102
|
+
return pulumi.get(self, "docker_registry")
|
103
|
+
|
104
|
+
@_builtins.property
|
105
|
+
@pulumi.getter(name="dockerUsername")
|
106
|
+
def docker_username(self) -> _builtins.str:
|
107
|
+
"""
|
108
|
+
The identifier of the Docker account user.
|
109
|
+
"""
|
110
|
+
return pulumi.get(self, "docker_username")
|
111
|
+
|
112
|
+
@_builtins.property
|
113
|
+
@pulumi.getter
|
114
|
+
def id(self) -> _builtins.str:
|
115
|
+
"""
|
116
|
+
The provider-assigned unique ID for this managed resource.
|
117
|
+
"""
|
118
|
+
return pulumi.get(self, "id")
|
119
|
+
|
120
|
+
@_builtins.property
|
121
|
+
@pulumi.getter(name="projectId")
|
122
|
+
def project_id(self) -> _builtins.str:
|
123
|
+
return pulumi.get(self, "project_id")
|
124
|
+
|
125
|
+
@_builtins.property
|
126
|
+
@pulumi.getter(name="registryType")
|
127
|
+
def registry_type(self) -> _builtins.str:
|
128
|
+
"""
|
129
|
+
Can be "DockerHub" or "Others" (Default "DockerHub")
|
130
|
+
"""
|
131
|
+
return pulumi.get(self, "registry_type")
|
132
|
+
|
133
|
+
@_builtins.property
|
134
|
+
@pulumi.getter(name="serviceEndpointId")
|
135
|
+
def service_endpoint_id(self) -> _builtins.str:
|
136
|
+
return pulumi.get(self, "service_endpoint_id")
|
137
|
+
|
138
|
+
@_builtins.property
|
139
|
+
@pulumi.getter(name="serviceEndpointName")
|
140
|
+
def service_endpoint_name(self) -> _builtins.str:
|
141
|
+
return pulumi.get(self, "service_endpoint_name")
|
142
|
+
|
143
|
+
|
144
|
+
class AwaitableGetServiceendpointDockerregistryResult(GetServiceendpointDockerregistryResult):
|
145
|
+
# pylint: disable=using-constant-test
|
146
|
+
def __await__(self):
|
147
|
+
if False:
|
148
|
+
yield self
|
149
|
+
return GetServiceendpointDockerregistryResult(
|
150
|
+
authorization=self.authorization,
|
151
|
+
description=self.description,
|
152
|
+
docker_email=self.docker_email,
|
153
|
+
docker_password=self.docker_password,
|
154
|
+
docker_registry=self.docker_registry,
|
155
|
+
docker_username=self.docker_username,
|
156
|
+
id=self.id,
|
157
|
+
project_id=self.project_id,
|
158
|
+
registry_type=self.registry_type,
|
159
|
+
service_endpoint_id=self.service_endpoint_id,
|
160
|
+
service_endpoint_name=self.service_endpoint_name)
|
161
|
+
|
162
|
+
|
163
|
+
def get_serviceendpoint_dockerregistry(project_id: Optional[_builtins.str] = None,
|
164
|
+
service_endpoint_id: Optional[_builtins.str] = None,
|
165
|
+
service_endpoint_name: Optional[_builtins.str] = None,
|
166
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetServiceendpointDockerregistryResult:
|
167
|
+
"""
|
168
|
+
Use this data source to access information about an existing Docker Registry Service Endpoint.
|
169
|
+
|
170
|
+
## Example Usage
|
171
|
+
|
172
|
+
### By Service Endpoint ID
|
173
|
+
|
174
|
+
```python
|
175
|
+
import pulumi
|
176
|
+
import pulumi_azuredevops as azuredevops
|
177
|
+
|
178
|
+
example = azuredevops.get_project(name="Example Project")
|
179
|
+
example_get_serviceendpoint_dockerregistry = azuredevops.get_serviceendpoint_dockerregistry(project_id=example.id,
|
180
|
+
service_endpoint_id="00000000-0000-0000-0000-000000000000")
|
181
|
+
pulumi.export("serviceEndpointName", example_get_serviceendpoint_dockerregistry.service_endpoint_name)
|
182
|
+
```
|
183
|
+
|
184
|
+
### By Service Endpoint Name
|
185
|
+
|
186
|
+
```python
|
187
|
+
import pulumi
|
188
|
+
import pulumi_azuredevops as azuredevops
|
189
|
+
|
190
|
+
example = azuredevops.get_project(name="Example Project")
|
191
|
+
example_get_serviceendpoint_dockerregistry = azuredevops.get_serviceendpoint_dockerregistry(project_id=example.id,
|
192
|
+
service_endpoint_name="Example-Service-Endpoint")
|
193
|
+
pulumi.export("serviceEndpointId", serviceendpoint["id"])
|
194
|
+
```
|
195
|
+
|
196
|
+
|
197
|
+
:param _builtins.str project_id: The ID of the project.
|
198
|
+
:param _builtins.str service_endpoint_id: the ID of the Service Endpoint.
|
199
|
+
:param _builtins.str service_endpoint_name: the Name of the Service Endpoint.
|
200
|
+
|
201
|
+
> **NOTE:** 1. One of either `service_endpoint_id` or `service_endpoint_name` must be specified.
|
202
|
+
<br>2. When supplying `service_endpoint_name`, take care to ensure that this is a unique name.
|
203
|
+
"""
|
204
|
+
__args__ = dict()
|
205
|
+
__args__['projectId'] = project_id
|
206
|
+
__args__['serviceEndpointId'] = service_endpoint_id
|
207
|
+
__args__['serviceEndpointName'] = service_endpoint_name
|
208
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
209
|
+
__ret__ = pulumi.runtime.invoke('azuredevops:index/getServiceendpointDockerregistry:getServiceendpointDockerregistry', __args__, opts=opts, typ=GetServiceendpointDockerregistryResult).value
|
210
|
+
|
211
|
+
return AwaitableGetServiceendpointDockerregistryResult(
|
212
|
+
authorization=pulumi.get(__ret__, 'authorization'),
|
213
|
+
description=pulumi.get(__ret__, 'description'),
|
214
|
+
docker_email=pulumi.get(__ret__, 'docker_email'),
|
215
|
+
docker_password=pulumi.get(__ret__, 'docker_password'),
|
216
|
+
docker_registry=pulumi.get(__ret__, 'docker_registry'),
|
217
|
+
docker_username=pulumi.get(__ret__, 'docker_username'),
|
218
|
+
id=pulumi.get(__ret__, 'id'),
|
219
|
+
project_id=pulumi.get(__ret__, 'project_id'),
|
220
|
+
registry_type=pulumi.get(__ret__, 'registry_type'),
|
221
|
+
service_endpoint_id=pulumi.get(__ret__, 'service_endpoint_id'),
|
222
|
+
service_endpoint_name=pulumi.get(__ret__, 'service_endpoint_name'))
|
223
|
+
def get_serviceendpoint_dockerregistry_output(project_id: Optional[pulumi.Input[_builtins.str]] = None,
|
224
|
+
service_endpoint_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
225
|
+
service_endpoint_name: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
226
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetServiceendpointDockerregistryResult]:
|
227
|
+
"""
|
228
|
+
Use this data source to access information about an existing Docker Registry Service Endpoint.
|
229
|
+
|
230
|
+
## Example Usage
|
231
|
+
|
232
|
+
### By Service Endpoint ID
|
233
|
+
|
234
|
+
```python
|
235
|
+
import pulumi
|
236
|
+
import pulumi_azuredevops as azuredevops
|
237
|
+
|
238
|
+
example = azuredevops.get_project(name="Example Project")
|
239
|
+
example_get_serviceendpoint_dockerregistry = azuredevops.get_serviceendpoint_dockerregistry(project_id=example.id,
|
240
|
+
service_endpoint_id="00000000-0000-0000-0000-000000000000")
|
241
|
+
pulumi.export("serviceEndpointName", example_get_serviceendpoint_dockerregistry.service_endpoint_name)
|
242
|
+
```
|
243
|
+
|
244
|
+
### By Service Endpoint Name
|
245
|
+
|
246
|
+
```python
|
247
|
+
import pulumi
|
248
|
+
import pulumi_azuredevops as azuredevops
|
249
|
+
|
250
|
+
example = azuredevops.get_project(name="Example Project")
|
251
|
+
example_get_serviceendpoint_dockerregistry = azuredevops.get_serviceendpoint_dockerregistry(project_id=example.id,
|
252
|
+
service_endpoint_name="Example-Service-Endpoint")
|
253
|
+
pulumi.export("serviceEndpointId", serviceendpoint["id"])
|
254
|
+
```
|
255
|
+
|
256
|
+
|
257
|
+
:param _builtins.str project_id: The ID of the project.
|
258
|
+
:param _builtins.str service_endpoint_id: the ID of the Service Endpoint.
|
259
|
+
:param _builtins.str service_endpoint_name: the Name of the Service Endpoint.
|
260
|
+
|
261
|
+
> **NOTE:** 1. One of either `service_endpoint_id` or `service_endpoint_name` must be specified.
|
262
|
+
<br>2. When supplying `service_endpoint_name`, take care to ensure that this is a unique name.
|
263
|
+
"""
|
264
|
+
__args__ = dict()
|
265
|
+
__args__['projectId'] = project_id
|
266
|
+
__args__['serviceEndpointId'] = service_endpoint_id
|
267
|
+
__args__['serviceEndpointName'] = service_endpoint_name
|
268
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
269
|
+
__ret__ = pulumi.runtime.invoke_output('azuredevops:index/getServiceendpointDockerregistry:getServiceendpointDockerregistry', __args__, opts=opts, typ=GetServiceendpointDockerregistryResult)
|
270
|
+
return __ret__.apply(lambda __response__: GetServiceendpointDockerregistryResult(
|
271
|
+
authorization=pulumi.get(__response__, 'authorization'),
|
272
|
+
description=pulumi.get(__response__, 'description'),
|
273
|
+
docker_email=pulumi.get(__response__, 'docker_email'),
|
274
|
+
docker_password=pulumi.get(__response__, 'docker_password'),
|
275
|
+
docker_registry=pulumi.get(__response__, 'docker_registry'),
|
276
|
+
docker_username=pulumi.get(__response__, 'docker_username'),
|
277
|
+
id=pulumi.get(__response__, 'id'),
|
278
|
+
project_id=pulumi.get(__response__, 'project_id'),
|
279
|
+
registry_type=pulumi.get(__response__, 'registry_type'),
|
280
|
+
service_endpoint_id=pulumi.get(__response__, 'service_endpoint_id'),
|
281
|
+
service_endpoint_name=pulumi.get(__response__, 'service_endpoint_name')))
|
@@ -1,9 +1,8 @@
|
|
1
1
|
# coding=utf-8
|
2
|
-
# *** WARNING: this file was generated by
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
4
|
|
5
|
-
import builtins
|
6
|
-
import copy
|
5
|
+
import builtins as _builtins
|
7
6
|
import warnings
|
8
7
|
import sys
|
9
8
|
import pulumi
|
@@ -50,48 +49,48 @@ class GetServiceendpointNpmResult:
|
|
50
49
|
raise TypeError("Expected argument 'url' to be a str")
|
51
50
|
pulumi.set(__self__, "url", url)
|
52
51
|
|
53
|
-
@property
|
52
|
+
@_builtins.property
|
54
53
|
@pulumi.getter
|
55
|
-
def authorization(self) -> Mapping[str,
|
54
|
+
def authorization(self) -> Mapping[str, _builtins.str]:
|
56
55
|
"""
|
57
56
|
The Authorization scheme.
|
58
57
|
"""
|
59
58
|
return pulumi.get(self, "authorization")
|
60
59
|
|
61
|
-
@property
|
60
|
+
@_builtins.property
|
62
61
|
@pulumi.getter
|
63
|
-
def description(self) ->
|
62
|
+
def description(self) -> _builtins.str:
|
64
63
|
"""
|
65
64
|
The description of the Service Endpoint.
|
66
65
|
"""
|
67
66
|
return pulumi.get(self, "description")
|
68
67
|
|
69
|
-
@property
|
68
|
+
@_builtins.property
|
70
69
|
@pulumi.getter
|
71
|
-
def id(self) ->
|
70
|
+
def id(self) -> _builtins.str:
|
72
71
|
"""
|
73
72
|
The provider-assigned unique ID for this managed resource.
|
74
73
|
"""
|
75
74
|
return pulumi.get(self, "id")
|
76
75
|
|
77
|
-
@property
|
76
|
+
@_builtins.property
|
78
77
|
@pulumi.getter(name="projectId")
|
79
|
-
def project_id(self) ->
|
78
|
+
def project_id(self) -> _builtins.str:
|
80
79
|
return pulumi.get(self, "project_id")
|
81
80
|
|
82
|
-
@property
|
81
|
+
@_builtins.property
|
83
82
|
@pulumi.getter(name="serviceEndpointId")
|
84
|
-
def service_endpoint_id(self) ->
|
83
|
+
def service_endpoint_id(self) -> _builtins.str:
|
85
84
|
return pulumi.get(self, "service_endpoint_id")
|
86
85
|
|
87
|
-
@property
|
86
|
+
@_builtins.property
|
88
87
|
@pulumi.getter(name="serviceEndpointName")
|
89
|
-
def service_endpoint_name(self) ->
|
88
|
+
def service_endpoint_name(self) -> _builtins.str:
|
90
89
|
return pulumi.get(self, "service_endpoint_name")
|
91
90
|
|
92
|
-
@property
|
91
|
+
@_builtins.property
|
93
92
|
@pulumi.getter
|
94
|
-
def url(self) ->
|
93
|
+
def url(self) -> _builtins.str:
|
95
94
|
"""
|
96
95
|
The URL of the NPM registry to connect with.
|
97
96
|
"""
|
@@ -113,9 +112,9 @@ class AwaitableGetServiceendpointNpmResult(GetServiceendpointNpmResult):
|
|
113
112
|
url=self.url)
|
114
113
|
|
115
114
|
|
116
|
-
def get_serviceendpoint_npm(project_id: Optional[
|
117
|
-
service_endpoint_id: Optional[
|
118
|
-
service_endpoint_name: Optional[
|
115
|
+
def get_serviceendpoint_npm(project_id: Optional[_builtins.str] = None,
|
116
|
+
service_endpoint_id: Optional[_builtins.str] = None,
|
117
|
+
service_endpoint_name: Optional[_builtins.str] = None,
|
119
118
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetServiceendpointNpmResult:
|
120
119
|
"""
|
121
120
|
Use this data source to access information about an existing NPM Service Endpoint.
|
@@ -132,9 +131,9 @@ def get_serviceendpoint_npm(project_id: Optional[builtins.str] = None,
|
|
132
131
|
```
|
133
132
|
|
134
133
|
|
135
|
-
:param
|
136
|
-
:param
|
137
|
-
:param
|
134
|
+
:param _builtins.str project_id: The ID of the project.
|
135
|
+
:param _builtins.str service_endpoint_id: the ID of the Service Endpoint.
|
136
|
+
:param _builtins.str service_endpoint_name: the Name of the Service Endpoint.
|
138
137
|
|
139
138
|
> **NOTE:** One of either `service_endpoint_id` or `service_endpoint_name` must be specified.
|
140
139
|
"""
|
@@ -153,9 +152,9 @@ def get_serviceendpoint_npm(project_id: Optional[builtins.str] = None,
|
|
153
152
|
service_endpoint_id=pulumi.get(__ret__, 'service_endpoint_id'),
|
154
153
|
service_endpoint_name=pulumi.get(__ret__, 'service_endpoint_name'),
|
155
154
|
url=pulumi.get(__ret__, 'url'))
|
156
|
-
def get_serviceendpoint_npm_output(project_id: Optional[pulumi.Input[
|
157
|
-
service_endpoint_id: Optional[pulumi.Input[Optional[
|
158
|
-
service_endpoint_name: Optional[pulumi.Input[Optional[
|
155
|
+
def get_serviceendpoint_npm_output(project_id: Optional[pulumi.Input[_builtins.str]] = None,
|
156
|
+
service_endpoint_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
157
|
+
service_endpoint_name: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
159
158
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetServiceendpointNpmResult]:
|
160
159
|
"""
|
161
160
|
Use this data source to access information about an existing NPM Service Endpoint.
|
@@ -172,9 +171,9 @@ def get_serviceendpoint_npm_output(project_id: Optional[pulumi.Input[builtins.st
|
|
172
171
|
```
|
173
172
|
|
174
173
|
|
175
|
-
:param
|
176
|
-
:param
|
177
|
-
:param
|
174
|
+
:param _builtins.str project_id: The ID of the project.
|
175
|
+
:param _builtins.str service_endpoint_id: the ID of the Service Endpoint.
|
176
|
+
:param _builtins.str service_endpoint_name: the Name of the Service Endpoint.
|
178
177
|
|
179
178
|
> **NOTE:** One of either `service_endpoint_id` or `service_endpoint_name` must be specified.
|
180
179
|
"""
|
@@ -1,9 +1,8 @@
|
|
1
1
|
# coding=utf-8
|
2
|
-
# *** WARNING: this file was generated by
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
4
|
|
5
|
-
import builtins
|
6
|
-
import copy
|
5
|
+
import builtins as _builtins
|
7
6
|
import warnings
|
8
7
|
import sys
|
9
8
|
import pulumi
|
@@ -47,43 +46,43 @@ class GetServiceendpointSonarcloudResult:
|
|
47
46
|
raise TypeError("Expected argument 'service_endpoint_name' to be a str")
|
48
47
|
pulumi.set(__self__, "service_endpoint_name", service_endpoint_name)
|
49
48
|
|
50
|
-
@property
|
49
|
+
@_builtins.property
|
51
50
|
@pulumi.getter
|
52
|
-
def authorization(self) -> Mapping[str,
|
51
|
+
def authorization(self) -> Mapping[str, _builtins.str]:
|
53
52
|
"""
|
54
53
|
The Authorization scheme.
|
55
54
|
"""
|
56
55
|
return pulumi.get(self, "authorization")
|
57
56
|
|
58
|
-
@property
|
57
|
+
@_builtins.property
|
59
58
|
@pulumi.getter
|
60
|
-
def description(self) ->
|
59
|
+
def description(self) -> _builtins.str:
|
61
60
|
"""
|
62
61
|
The description of the Service Endpoint.
|
63
62
|
"""
|
64
63
|
return pulumi.get(self, "description")
|
65
64
|
|
66
|
-
@property
|
65
|
+
@_builtins.property
|
67
66
|
@pulumi.getter
|
68
|
-
def id(self) ->
|
67
|
+
def id(self) -> _builtins.str:
|
69
68
|
"""
|
70
69
|
The provider-assigned unique ID for this managed resource.
|
71
70
|
"""
|
72
71
|
return pulumi.get(self, "id")
|
73
72
|
|
74
|
-
@property
|
73
|
+
@_builtins.property
|
75
74
|
@pulumi.getter(name="projectId")
|
76
|
-
def project_id(self) ->
|
75
|
+
def project_id(self) -> _builtins.str:
|
77
76
|
return pulumi.get(self, "project_id")
|
78
77
|
|
79
|
-
@property
|
78
|
+
@_builtins.property
|
80
79
|
@pulumi.getter(name="serviceEndpointId")
|
81
|
-
def service_endpoint_id(self) ->
|
80
|
+
def service_endpoint_id(self) -> _builtins.str:
|
82
81
|
return pulumi.get(self, "service_endpoint_id")
|
83
82
|
|
84
|
-
@property
|
83
|
+
@_builtins.property
|
85
84
|
@pulumi.getter(name="serviceEndpointName")
|
86
|
-
def service_endpoint_name(self) ->
|
85
|
+
def service_endpoint_name(self) -> _builtins.str:
|
87
86
|
return pulumi.get(self, "service_endpoint_name")
|
88
87
|
|
89
88
|
|
@@ -101,9 +100,9 @@ class AwaitableGetServiceendpointSonarcloudResult(GetServiceendpointSonarcloudRe
|
|
101
100
|
service_endpoint_name=self.service_endpoint_name)
|
102
101
|
|
103
102
|
|
104
|
-
def get_serviceendpoint_sonarcloud(project_id: Optional[
|
105
|
-
service_endpoint_id: Optional[
|
106
|
-
service_endpoint_name: Optional[
|
103
|
+
def get_serviceendpoint_sonarcloud(project_id: Optional[_builtins.str] = None,
|
104
|
+
service_endpoint_id: Optional[_builtins.str] = None,
|
105
|
+
service_endpoint_name: Optional[_builtins.str] = None,
|
107
106
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetServiceendpointSonarcloudResult:
|
108
107
|
"""
|
109
108
|
Use this data source to access information about an existing Sonar Cloud Service Endpoint.
|
@@ -120,9 +119,9 @@ def get_serviceendpoint_sonarcloud(project_id: Optional[builtins.str] = None,
|
|
120
119
|
```
|
121
120
|
|
122
121
|
|
123
|
-
:param
|
124
|
-
:param
|
125
|
-
:param
|
122
|
+
:param _builtins.str project_id: The ID of the project.
|
123
|
+
:param _builtins.str service_endpoint_id: the ID of the Service Endpoint.
|
124
|
+
:param _builtins.str service_endpoint_name: the Name of the Service Endpoint.
|
126
125
|
|
127
126
|
> **NOTE:** One of either `service_endpoint_id` or `service_endpoint_name` must be specified.
|
128
127
|
"""
|
@@ -140,9 +139,9 @@ def get_serviceendpoint_sonarcloud(project_id: Optional[builtins.str] = None,
|
|
140
139
|
project_id=pulumi.get(__ret__, 'project_id'),
|
141
140
|
service_endpoint_id=pulumi.get(__ret__, 'service_endpoint_id'),
|
142
141
|
service_endpoint_name=pulumi.get(__ret__, 'service_endpoint_name'))
|
143
|
-
def get_serviceendpoint_sonarcloud_output(project_id: Optional[pulumi.Input[
|
144
|
-
service_endpoint_id: Optional[pulumi.Input[Optional[
|
145
|
-
service_endpoint_name: Optional[pulumi.Input[Optional[
|
142
|
+
def get_serviceendpoint_sonarcloud_output(project_id: Optional[pulumi.Input[_builtins.str]] = None,
|
143
|
+
service_endpoint_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
144
|
+
service_endpoint_name: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
146
145
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetServiceendpointSonarcloudResult]:
|
147
146
|
"""
|
148
147
|
Use this data source to access information about an existing Sonar Cloud Service Endpoint.
|
@@ -159,9 +158,9 @@ def get_serviceendpoint_sonarcloud_output(project_id: Optional[pulumi.Input[buil
|
|
159
158
|
```
|
160
159
|
|
161
160
|
|
162
|
-
:param
|
163
|
-
:param
|
164
|
-
:param
|
161
|
+
:param _builtins.str project_id: The ID of the project.
|
162
|
+
:param _builtins.str service_endpoint_id: the ID of the Service Endpoint.
|
163
|
+
:param _builtins.str service_endpoint_name: the Name of the Service Endpoint.
|
165
164
|
|
166
165
|
> **NOTE:** One of either `service_endpoint_id` or `service_endpoint_name` must be specified.
|
167
166
|
"""
|
@@ -1,9 +1,8 @@
|
|
1
1
|
# coding=utf-8
|
2
|
-
# *** WARNING: this file was generated by
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
4
|
|
5
|
-
import builtins
|
6
|
-
import copy
|
5
|
+
import builtins as _builtins
|
7
6
|
import warnings
|
8
7
|
import sys
|
9
8
|
import pulumi
|
@@ -38,22 +37,22 @@ class GetStorageKeyResult:
|
|
38
37
|
raise TypeError("Expected argument 'storage_key' to be a str")
|
39
38
|
pulumi.set(__self__, "storage_key", storage_key)
|
40
39
|
|
41
|
-
@property
|
40
|
+
@_builtins.property
|
42
41
|
@pulumi.getter
|
43
|
-
def descriptor(self) ->
|
42
|
+
def descriptor(self) -> _builtins.str:
|
44
43
|
return pulumi.get(self, "descriptor")
|
45
44
|
|
46
|
-
@property
|
45
|
+
@_builtins.property
|
47
46
|
@pulumi.getter
|
48
|
-
def id(self) ->
|
47
|
+
def id(self) -> _builtins.str:
|
49
48
|
"""
|
50
49
|
The provider-assigned unique ID for this managed resource.
|
51
50
|
"""
|
52
51
|
return pulumi.get(self, "id")
|
53
52
|
|
54
|
-
@property
|
53
|
+
@_builtins.property
|
55
54
|
@pulumi.getter(name="storageKey")
|
56
|
-
def storage_key(self) ->
|
55
|
+
def storage_key(self) -> _builtins.str:
|
57
56
|
"""
|
58
57
|
The Storage Key of the descriptor.
|
59
58
|
"""
|
@@ -71,7 +70,7 @@ class AwaitableGetStorageKeyResult(GetStorageKeyResult):
|
|
71
70
|
storage_key=self.storage_key)
|
72
71
|
|
73
72
|
|
74
|
-
def get_storage_key(descriptor: Optional[
|
73
|
+
def get_storage_key(descriptor: Optional[_builtins.str] = None,
|
75
74
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetStorageKeyResult:
|
76
75
|
"""
|
77
76
|
Use this data source to access information about an existing Storage Key.
|
@@ -91,7 +90,7 @@ def get_storage_key(descriptor: Optional[builtins.str] = None,
|
|
91
90
|
- [Azure DevOps Service REST API 7.1 - Storage Key - Get](https://learn.microsoft.com/en-us/rest/api/azure/devops/graph/storage-keys/get?view=azure-devops-rest-7.1)
|
92
91
|
|
93
92
|
|
94
|
-
:param
|
93
|
+
:param _builtins.str descriptor: The descriptor that will be resolved to a storage key.
|
95
94
|
"""
|
96
95
|
__args__ = dict()
|
97
96
|
__args__['descriptor'] = descriptor
|
@@ -102,7 +101,7 @@ def get_storage_key(descriptor: Optional[builtins.str] = None,
|
|
102
101
|
descriptor=pulumi.get(__ret__, 'descriptor'),
|
103
102
|
id=pulumi.get(__ret__, 'id'),
|
104
103
|
storage_key=pulumi.get(__ret__, 'storage_key'))
|
105
|
-
def get_storage_key_output(descriptor: Optional[pulumi.Input[
|
104
|
+
def get_storage_key_output(descriptor: Optional[pulumi.Input[_builtins.str]] = None,
|
106
105
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetStorageKeyResult]:
|
107
106
|
"""
|
108
107
|
Use this data source to access information about an existing Storage Key.
|
@@ -122,7 +121,7 @@ def get_storage_key_output(descriptor: Optional[pulumi.Input[builtins.str]] = No
|
|
122
121
|
- [Azure DevOps Service REST API 7.1 - Storage Key - Get](https://learn.microsoft.com/en-us/rest/api/azure/devops/graph/storage-keys/get?view=azure-devops-rest-7.1)
|
123
122
|
|
124
123
|
|
125
|
-
:param
|
124
|
+
:param _builtins.str descriptor: The descriptor that will be resolved to a storage key.
|
126
125
|
"""
|
127
126
|
__args__ = dict()
|
128
127
|
__args__['descriptor'] = descriptor
|