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.
Files changed (188) hide show
  1. pulumi_azuredevops/__init__.py +123 -174
  2. pulumi_azuredevops/_inputs.py +1742 -110
  3. pulumi_azuredevops/_utilities.py +41 -5
  4. pulumi_azuredevops/area_permissions.py +9 -6
  5. pulumi_azuredevops/branch_policy_auto_reviewers.py +52 -49
  6. pulumi_azuredevops/branch_policy_build_validation.py +86 -79
  7. pulumi_azuredevops/branch_policy_comment_resolution.py +60 -57
  8. pulumi_azuredevops/branch_policy_merge_types.py +68 -65
  9. pulumi_azuredevops/branch_policy_min_reviewers.py +72 -71
  10. pulumi_azuredevops/branch_policy_status_check.py +66 -61
  11. pulumi_azuredevops/branch_policy_work_item_linking.py +60 -57
  12. pulumi_azuredevops/build_definition.py +380 -200
  13. pulumi_azuredevops/build_definition_permissions.py +186 -165
  14. pulumi_azuredevops/build_folder.py +13 -10
  15. pulumi_azuredevops/build_folder_permissions.py +33 -32
  16. pulumi_azuredevops/check_approval.py +49 -16
  17. pulumi_azuredevops/check_branch_control.py +139 -110
  18. pulumi_azuredevops/check_business_hours.py +137 -108
  19. pulumi_azuredevops/check_exclusive_lock.py +107 -30
  20. pulumi_azuredevops/check_required_template.py +96 -67
  21. pulumi_azuredevops/config/__init__.pyi +87 -0
  22. pulumi_azuredevops/config/vars.py +125 -0
  23. pulumi_azuredevops/elastic_pool.py +78 -26
  24. pulumi_azuredevops/environment.py +17 -10
  25. pulumi_azuredevops/environment_resource_kubernetes.py +534 -0
  26. pulumi_azuredevops/feed.py +372 -0
  27. pulumi_azuredevops/feed_permission.py +415 -0
  28. pulumi_azuredevops/get_agent_queue.py +28 -19
  29. pulumi_azuredevops/get_area.py +28 -15
  30. pulumi_azuredevops/get_build_definition.py +32 -15
  31. pulumi_azuredevops/get_client_config.py +12 -9
  32. pulumi_azuredevops/get_environment.py +72 -5
  33. pulumi_azuredevops/get_feed.py +186 -0
  34. pulumi_azuredevops/get_git_repository.py +39 -10
  35. pulumi_azuredevops/get_group.py +55 -22
  36. pulumi_azuredevops/get_groups.py +18 -9
  37. pulumi_azuredevops/get_identity_group.py +152 -0
  38. pulumi_azuredevops/get_identity_groups.py +140 -0
  39. pulumi_azuredevops/get_identity_users.py +122 -0
  40. pulumi_azuredevops/get_iteration.py +24 -11
  41. pulumi_azuredevops/get_pool.py +16 -9
  42. pulumi_azuredevops/get_pools.py +12 -9
  43. pulumi_azuredevops/get_project.py +22 -10
  44. pulumi_azuredevops/get_projects.py +16 -9
  45. pulumi_azuredevops/get_repositories.py +22 -9
  46. pulumi_azuredevops/get_securityrole_definitions.py +141 -0
  47. pulumi_azuredevops/get_service_endpoint_azure_rm.py +70 -26
  48. pulumi_azuredevops/get_service_endpoint_github.py +19 -13
  49. pulumi_azuredevops/get_serviceendpoint_azurecr.py +31 -11
  50. pulumi_azuredevops/get_serviceendpoint_bitbucket.py +219 -0
  51. pulumi_azuredevops/get_serviceendpoint_npm.py +22 -11
  52. pulumi_azuredevops/get_serviceendpoint_sonarcloud.py +21 -11
  53. pulumi_azuredevops/get_team.py +29 -15
  54. pulumi_azuredevops/get_teams.py +16 -9
  55. pulumi_azuredevops/get_users.py +26 -87
  56. pulumi_azuredevops/get_variable_group.py +27 -17
  57. pulumi_azuredevops/git.py +57 -99
  58. pulumi_azuredevops/git_permissions.py +78 -75
  59. pulumi_azuredevops/git_repository_branch.py +29 -20
  60. pulumi_azuredevops/git_repository_file.py +23 -18
  61. pulumi_azuredevops/group.py +43 -16
  62. pulumi_azuredevops/group_entitlement.py +5 -8
  63. pulumi_azuredevops/group_membership.py +57 -30
  64. pulumi_azuredevops/iterative_permissions.py +9 -6
  65. pulumi_azuredevops/library_permissions.py +451 -0
  66. pulumi_azuredevops/outputs.py +460 -56
  67. pulumi_azuredevops/pipeline_authorization.py +136 -47
  68. pulumi_azuredevops/pool.py +7 -6
  69. pulumi_azuredevops/project.py +19 -18
  70. pulumi_azuredevops/project_features.py +9 -8
  71. pulumi_azuredevops/project_permissions.py +9 -6
  72. pulumi_azuredevops/project_pipeline_settings.py +15 -12
  73. pulumi_azuredevops/provider.py +491 -2
  74. pulumi_azuredevops/pulumi-plugin.json +2 -1
  75. pulumi_azuredevops/queue.py +23 -24
  76. pulumi_azuredevops/repository_policy_author_email_pattern.py +37 -34
  77. pulumi_azuredevops/repository_policy_case_enforcement.py +37 -34
  78. pulumi_azuredevops/repository_policy_check_credentials.py +37 -34
  79. pulumi_azuredevops/repository_policy_file_path_pattern.py +31 -28
  80. pulumi_azuredevops/repository_policy_max_file_size.py +44 -41
  81. pulumi_azuredevops/repository_policy_max_path_length.py +37 -34
  82. pulumi_azuredevops/repository_policy_reserved_names.py +37 -34
  83. pulumi_azuredevops/resource_authorization.py +23 -20
  84. pulumi_azuredevops/securityrole_assignment.py +295 -0
  85. pulumi_azuredevops/service_endpoint_artifactory.py +49 -48
  86. pulumi_azuredevops/service_endpoint_aws.py +99 -51
  87. pulumi_azuredevops/service_endpoint_azure_dev_ops.py +17 -14
  88. pulumi_azuredevops/service_endpoint_azure_ecr.py +275 -33
  89. pulumi_azuredevops/service_endpoint_azure_rm.py +236 -114
  90. pulumi_azuredevops/service_endpoint_bit_bucket.py +19 -18
  91. pulumi_azuredevops/service_endpoint_docker_registry.py +17 -16
  92. pulumi_azuredevops/service_endpoint_generic.py +19 -20
  93. pulumi_azuredevops/service_endpoint_generic_git.py +17 -14
  94. pulumi_azuredevops/service_endpoint_git_hub.py +57 -60
  95. pulumi_azuredevops/service_endpoint_git_hub_enterprise.py +26 -23
  96. pulumi_azuredevops/{serviceendpoint/bit_bucket.py → service_endpoint_git_lab.py} +147 -100
  97. pulumi_azuredevops/service_endpoint_kubernetes.py +160 -17
  98. pulumi_azuredevops/service_endpoint_npm.py +17 -14
  99. pulumi_azuredevops/service_endpoint_pipeline.py +28 -25
  100. pulumi_azuredevops/service_endpoint_service_fabric.py +42 -95
  101. pulumi_azuredevops/service_endpoint_sonar_cloud.py +17 -14
  102. pulumi_azuredevops/service_endpoint_sonar_qube.py +17 -14
  103. pulumi_azuredevops/service_endpoint_ssh.py +17 -14
  104. pulumi_azuredevops/serviceendpoint_argocd.py +51 -50
  105. pulumi_azuredevops/serviceendpoint_azure_service_bus.py +429 -0
  106. pulumi_azuredevops/serviceendpoint_dynamics_lifecycle_services.py +579 -0
  107. pulumi_azuredevops/serviceendpoint_externaltfs.py +10 -5
  108. pulumi_azuredevops/serviceendpoint_gcp_terraform.py +17 -14
  109. pulumi_azuredevops/serviceendpoint_incomingwebhook.py +17 -14
  110. pulumi_azuredevops/serviceendpoint_jenkins.py +15 -12
  111. pulumi_azuredevops/serviceendpoint_jfrog_artifactory_v2.py +53 -52
  112. pulumi_azuredevops/serviceendpoint_jfrog_distribution_v2.py +53 -52
  113. pulumi_azuredevops/serviceendpoint_jfrog_platform_v2.py +53 -52
  114. pulumi_azuredevops/serviceendpoint_jfrog_xray_v2.py +53 -52
  115. pulumi_azuredevops/serviceendpoint_maven.py +49 -48
  116. pulumi_azuredevops/serviceendpoint_nexus.py +15 -12
  117. pulumi_azuredevops/serviceendpoint_nuget.py +17 -14
  118. pulumi_azuredevops/serviceendpoint_octopusdeploy.py +17 -14
  119. pulumi_azuredevops/serviceendpoint_permissions.py +21 -18
  120. pulumi_azuredevops/serviceendpoint_snyk.py +429 -0
  121. pulumi_azuredevops/serviceendpoint_visualstudiomarketplace.py +543 -0
  122. pulumi_azuredevops/servicehook_permissions.py +9 -6
  123. pulumi_azuredevops/servicehook_storage_queue_pipelines.py +55 -48
  124. pulumi_azuredevops/tagging_permissions.py +9 -6
  125. pulumi_azuredevops/team.py +21 -16
  126. pulumi_azuredevops/team_administrators.py +19 -12
  127. pulumi_azuredevops/team_members.py +19 -12
  128. pulumi_azuredevops/user.py +27 -8
  129. pulumi_azuredevops/variable_group.py +91 -88
  130. pulumi_azuredevops/variable_group_permissions.py +517 -0
  131. pulumi_azuredevops/wiki.py +509 -0
  132. pulumi_azuredevops/wiki_page.py +377 -0
  133. pulumi_azuredevops/work_item_query_permissions.py +17 -18
  134. pulumi_azuredevops/workitem.py +25 -24
  135. {pulumi_azuredevops-2.16.0a1710156155.dist-info → pulumi_azuredevops-3.6.0a1736832240.dist-info}/METADATA +9 -8
  136. pulumi_azuredevops-3.6.0a1736832240.dist-info/RECORD +140 -0
  137. {pulumi_azuredevops-2.16.0a1710156155.dist-info → pulumi_azuredevops-3.6.0a1736832240.dist-info}/WHEEL +1 -1
  138. pulumi_azuredevops/agent/__init__.py +0 -12
  139. pulumi_azuredevops/agent/get_pool.py +0 -155
  140. pulumi_azuredevops/agent/get_pools.py +0 -120
  141. pulumi_azuredevops/agent/outputs.py +0 -73
  142. pulumi_azuredevops/agent/pool.py +0 -342
  143. pulumi_azuredevops/agent/queue.py +0 -376
  144. pulumi_azuredevops/build/__init__.py +0 -10
  145. pulumi_azuredevops/build/_inputs.py +0 -1164
  146. pulumi_azuredevops/build/build_definition.py +0 -987
  147. pulumi_azuredevops/build/outputs.py +0 -1170
  148. pulumi_azuredevops/core/__init__.py +0 -13
  149. pulumi_azuredevops/core/get_client_config.py +0 -102
  150. pulumi_azuredevops/core/get_project.py +0 -194
  151. pulumi_azuredevops/core/get_projects.py +0 -166
  152. pulumi_azuredevops/core/outputs.py +0 -70
  153. pulumi_azuredevops/core/project.py +0 -538
  154. pulumi_azuredevops/core/project_features.py +0 -303
  155. pulumi_azuredevops/entitlement/__init__.py +0 -8
  156. pulumi_azuredevops/entitlement/user.py +0 -429
  157. pulumi_azuredevops/identities/__init__.py +0 -13
  158. pulumi_azuredevops/identities/_inputs.py +0 -42
  159. pulumi_azuredevops/identities/get_group.py +0 -185
  160. pulumi_azuredevops/identities/get_users.py +0 -257
  161. pulumi_azuredevops/identities/group.py +0 -632
  162. pulumi_azuredevops/identities/group_membership.py +0 -333
  163. pulumi_azuredevops/identities/outputs.py +0 -124
  164. pulumi_azuredevops/pipeline/__init__.py +0 -10
  165. pulumi_azuredevops/pipeline/_inputs.py +0 -175
  166. pulumi_azuredevops/pipeline/outputs.py +0 -175
  167. pulumi_azuredevops/pipeline/variable_group.py +0 -594
  168. pulumi_azuredevops/policy/__init__.py +0 -11
  169. pulumi_azuredevops/policy/_inputs.py +0 -382
  170. pulumi_azuredevops/policy/branch_policy_build_validation.py +0 -424
  171. pulumi_azuredevops/policy/branch_policy_min_reviewers.py +0 -406
  172. pulumi_azuredevops/policy/outputs.py +0 -397
  173. pulumi_azuredevops/repository/__init__.py +0 -11
  174. pulumi_azuredevops/repository/_inputs.py +0 -85
  175. pulumi_azuredevops/repository/get_repositories.py +0 -177
  176. pulumi_azuredevops/repository/git.py +0 -627
  177. pulumi_azuredevops/repository/outputs.py +0 -199
  178. pulumi_azuredevops/security/__init__.py +0 -8
  179. pulumi_azuredevops/security/resource_authorization.py +0 -404
  180. pulumi_azuredevops/serviceendpoint/__init__.py +0 -14
  181. pulumi_azuredevops/serviceendpoint/_inputs.py +0 -341
  182. pulumi_azuredevops/serviceendpoint/azure_rm.py +0 -1140
  183. pulumi_azuredevops/serviceendpoint/docker_registry.py +0 -595
  184. pulumi_azuredevops/serviceendpoint/git_hub.py +0 -489
  185. pulumi_azuredevops/serviceendpoint/kubernetes.py +0 -523
  186. pulumi_azuredevops/serviceendpoint/outputs.py +0 -370
  187. pulumi_azuredevops-2.16.0a1710156155.dist-info/RECORD +0 -171
  188. {pulumi_azuredevops-2.16.0a1710156155.dist-info → pulumi_azuredevops-3.6.0a1736832240.dist-info}/top_level.txt +0 -0
@@ -1,199 +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
- 'GitInitialization',
14
- 'GetRepositoriesRepositoryResult',
15
- ]
16
-
17
- @pulumi.output_type
18
- class GitInitialization(dict):
19
- @staticmethod
20
- def __key_warning(key: str):
21
- suggest = None
22
- if key == "initType":
23
- suggest = "init_type"
24
- elif key == "serviceConnectionId":
25
- suggest = "service_connection_id"
26
- elif key == "sourceType":
27
- suggest = "source_type"
28
- elif key == "sourceUrl":
29
- suggest = "source_url"
30
-
31
- if suggest:
32
- pulumi.log.warn(f"Key '{key}' not found in GitInitialization. Access the value via the '{suggest}' property getter instead.")
33
-
34
- def __getitem__(self, key: str) -> Any:
35
- GitInitialization.__key_warning(key)
36
- return super().__getitem__(key)
37
-
38
- def get(self, key: str, default = None) -> Any:
39
- GitInitialization.__key_warning(key)
40
- return super().get(key, default)
41
-
42
- def __init__(__self__, *,
43
- init_type: str,
44
- service_connection_id: Optional[str] = None,
45
- source_type: Optional[str] = None,
46
- source_url: Optional[str] = None):
47
- """
48
- :param str init_type: The type of repository to create. Valid values: `Uninitialized`, `Clean` or `Import`.
49
- :param str service_connection_id: The id of service connection used to authenticate to a private repository for import initialization.
50
- :param str source_type: Type of the source repository. Used if the `init_type` is `Import`. Valid values: `Git`.
51
- :param str source_url: The URL of the source repository. Used if the `init_type` is `Import`.
52
- """
53
- pulumi.set(__self__, "init_type", init_type)
54
- if service_connection_id is not None:
55
- pulumi.set(__self__, "service_connection_id", service_connection_id)
56
- if source_type is not None:
57
- pulumi.set(__self__, "source_type", source_type)
58
- if source_url is not None:
59
- pulumi.set(__self__, "source_url", source_url)
60
-
61
- @property
62
- @pulumi.getter(name="initType")
63
- def init_type(self) -> str:
64
- """
65
- The type of repository to create. Valid values: `Uninitialized`, `Clean` or `Import`.
66
- """
67
- return pulumi.get(self, "init_type")
68
-
69
- @property
70
- @pulumi.getter(name="serviceConnectionId")
71
- def service_connection_id(self) -> Optional[str]:
72
- """
73
- The id of service connection used to authenticate to a private repository for import initialization.
74
- """
75
- return pulumi.get(self, "service_connection_id")
76
-
77
- @property
78
- @pulumi.getter(name="sourceType")
79
- def source_type(self) -> Optional[str]:
80
- """
81
- Type of the source repository. Used if the `init_type` is `Import`. Valid values: `Git`.
82
- """
83
- return pulumi.get(self, "source_type")
84
-
85
- @property
86
- @pulumi.getter(name="sourceUrl")
87
- def source_url(self) -> Optional[str]:
88
- """
89
- The URL of the source repository. Used if the `init_type` is `Import`.
90
- """
91
- return pulumi.get(self, "source_url")
92
-
93
-
94
- @pulumi.output_type
95
- class GetRepositoriesRepositoryResult(dict):
96
- def __init__(__self__, *,
97
- default_branch: str,
98
- id: str,
99
- name: str,
100
- project_id: str,
101
- remote_url: str,
102
- size: int,
103
- ssh_url: str,
104
- url: str,
105
- web_url: str):
106
- """
107
- :param str default_branch: The ref of the default branch.
108
- :param str id: Git repository identifier.
109
- :param str name: Name of the Git repository to retrieve; requires `project_id` to be specified as well
110
- :param str project_id: ID of project to list Git repositories
111
- :param str remote_url: HTTPS Url to clone the Git repository
112
- :param int size: Compressed size (bytes) of the repository.
113
- :param str ssh_url: SSH Url to clone the Git repository
114
- :param str url: Details REST API endpoint for the Git Repository.
115
- :param str web_url: Url of the Git repository web view
116
- """
117
- pulumi.set(__self__, "default_branch", default_branch)
118
- pulumi.set(__self__, "id", id)
119
- pulumi.set(__self__, "name", name)
120
- pulumi.set(__self__, "project_id", project_id)
121
- pulumi.set(__self__, "remote_url", remote_url)
122
- pulumi.set(__self__, "size", size)
123
- pulumi.set(__self__, "ssh_url", ssh_url)
124
- pulumi.set(__self__, "url", url)
125
- pulumi.set(__self__, "web_url", web_url)
126
-
127
- @property
128
- @pulumi.getter(name="defaultBranch")
129
- def default_branch(self) -> str:
130
- """
131
- The ref of the default branch.
132
- """
133
- return pulumi.get(self, "default_branch")
134
-
135
- @property
136
- @pulumi.getter
137
- def id(self) -> str:
138
- """
139
- Git repository identifier.
140
- """
141
- return pulumi.get(self, "id")
142
-
143
- @property
144
- @pulumi.getter
145
- def name(self) -> str:
146
- """
147
- Name of the Git repository to retrieve; requires `project_id` to be specified as well
148
- """
149
- return pulumi.get(self, "name")
150
-
151
- @property
152
- @pulumi.getter(name="projectId")
153
- def project_id(self) -> str:
154
- """
155
- ID of project to list Git repositories
156
- """
157
- return pulumi.get(self, "project_id")
158
-
159
- @property
160
- @pulumi.getter(name="remoteUrl")
161
- def remote_url(self) -> str:
162
- """
163
- HTTPS Url to clone the Git repository
164
- """
165
- return pulumi.get(self, "remote_url")
166
-
167
- @property
168
- @pulumi.getter
169
- def size(self) -> int:
170
- """
171
- Compressed size (bytes) of the repository.
172
- """
173
- return pulumi.get(self, "size")
174
-
175
- @property
176
- @pulumi.getter(name="sshUrl")
177
- def ssh_url(self) -> str:
178
- """
179
- SSH Url to clone the Git repository
180
- """
181
- return pulumi.get(self, "ssh_url")
182
-
183
- @property
184
- @pulumi.getter
185
- def url(self) -> str:
186
- """
187
- Details REST API endpoint for the Git Repository.
188
- """
189
- return pulumi.get(self, "url")
190
-
191
- @property
192
- @pulumi.getter(name="webUrl")
193
- def web_url(self) -> str:
194
- """
195
- Url of the Git repository web view
196
- """
197
- return pulumi.get(self, "web_url")
198
-
199
-
@@ -1,8 +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 .resource_authorization import *
@@ -1,404 +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__ = ['ResourceAuthorizationArgs', 'ResourceAuthorization']
13
-
14
- @pulumi.input_type
15
- class ResourceAuthorizationArgs:
16
- def __init__(__self__, *,
17
- authorized: pulumi.Input[bool],
18
- project_id: pulumi.Input[str],
19
- resource_id: pulumi.Input[str],
20
- definition_id: Optional[pulumi.Input[int]] = None,
21
- type: Optional[pulumi.Input[str]] = None):
22
- """
23
- The set of arguments for constructing a ResourceAuthorization resource.
24
- :param pulumi.Input[bool] authorized: Set to true to allow public access in the project. Type: boolean.
25
- :param pulumi.Input[str] project_id: The project ID or project name. Type: string.
26
- :param pulumi.Input[str] resource_id: The ID of the resource to authorize. Type: string.
27
- :param pulumi.Input[int] definition_id: The ID of the build definition to authorize. Type: string.
28
- :param pulumi.Input[str] type: The type of the resource to authorize. Type: string. Valid values: `endpoint`, `queue`, `variablegroup`. Default value: `endpoint`.
29
- """
30
- pulumi.set(__self__, "authorized", authorized)
31
- pulumi.set(__self__, "project_id", project_id)
32
- pulumi.set(__self__, "resource_id", resource_id)
33
- if definition_id is not None:
34
- pulumi.set(__self__, "definition_id", definition_id)
35
- if type is not None:
36
- pulumi.set(__self__, "type", type)
37
-
38
- @property
39
- @pulumi.getter
40
- def authorized(self) -> pulumi.Input[bool]:
41
- """
42
- Set to true to allow public access in the project. Type: boolean.
43
- """
44
- return pulumi.get(self, "authorized")
45
-
46
- @authorized.setter
47
- def authorized(self, value: pulumi.Input[bool]):
48
- pulumi.set(self, "authorized", value)
49
-
50
- @property
51
- @pulumi.getter(name="projectId")
52
- def project_id(self) -> pulumi.Input[str]:
53
- """
54
- The project ID or project name. Type: string.
55
- """
56
- return pulumi.get(self, "project_id")
57
-
58
- @project_id.setter
59
- def project_id(self, value: pulumi.Input[str]):
60
- pulumi.set(self, "project_id", value)
61
-
62
- @property
63
- @pulumi.getter(name="resourceId")
64
- def resource_id(self) -> pulumi.Input[str]:
65
- """
66
- The ID of the resource to authorize. Type: string.
67
- """
68
- return pulumi.get(self, "resource_id")
69
-
70
- @resource_id.setter
71
- def resource_id(self, value: pulumi.Input[str]):
72
- pulumi.set(self, "resource_id", value)
73
-
74
- @property
75
- @pulumi.getter(name="definitionId")
76
- def definition_id(self) -> Optional[pulumi.Input[int]]:
77
- """
78
- The ID of the build definition to authorize. Type: string.
79
- """
80
- return pulumi.get(self, "definition_id")
81
-
82
- @definition_id.setter
83
- def definition_id(self, value: Optional[pulumi.Input[int]]):
84
- pulumi.set(self, "definition_id", value)
85
-
86
- @property
87
- @pulumi.getter
88
- def type(self) -> Optional[pulumi.Input[str]]:
89
- """
90
- The type of the resource to authorize. Type: string. Valid values: `endpoint`, `queue`, `variablegroup`. Default value: `endpoint`.
91
- """
92
- return pulumi.get(self, "type")
93
-
94
- @type.setter
95
- def type(self, value: Optional[pulumi.Input[str]]):
96
- pulumi.set(self, "type", value)
97
-
98
-
99
- @pulumi.input_type
100
- class _ResourceAuthorizationState:
101
- def __init__(__self__, *,
102
- authorized: Optional[pulumi.Input[bool]] = None,
103
- definition_id: Optional[pulumi.Input[int]] = None,
104
- project_id: Optional[pulumi.Input[str]] = None,
105
- resource_id: Optional[pulumi.Input[str]] = None,
106
- type: Optional[pulumi.Input[str]] = None):
107
- """
108
- Input properties used for looking up and filtering ResourceAuthorization resources.
109
- :param pulumi.Input[bool] authorized: Set to true to allow public access in the project. Type: boolean.
110
- :param pulumi.Input[int] definition_id: The ID of the build definition to authorize. Type: string.
111
- :param pulumi.Input[str] project_id: The project ID or project name. Type: string.
112
- :param pulumi.Input[str] resource_id: The ID of the resource to authorize. Type: string.
113
- :param pulumi.Input[str] type: The type of the resource to authorize. Type: string. Valid values: `endpoint`, `queue`, `variablegroup`. Default value: `endpoint`.
114
- """
115
- if authorized is not None:
116
- pulumi.set(__self__, "authorized", authorized)
117
- if definition_id is not None:
118
- pulumi.set(__self__, "definition_id", definition_id)
119
- if project_id is not None:
120
- pulumi.set(__self__, "project_id", project_id)
121
- if resource_id is not None:
122
- pulumi.set(__self__, "resource_id", resource_id)
123
- if type is not None:
124
- pulumi.set(__self__, "type", type)
125
-
126
- @property
127
- @pulumi.getter
128
- def authorized(self) -> Optional[pulumi.Input[bool]]:
129
- """
130
- Set to true to allow public access in the project. Type: boolean.
131
- """
132
- return pulumi.get(self, "authorized")
133
-
134
- @authorized.setter
135
- def authorized(self, value: Optional[pulumi.Input[bool]]):
136
- pulumi.set(self, "authorized", value)
137
-
138
- @property
139
- @pulumi.getter(name="definitionId")
140
- def definition_id(self) -> Optional[pulumi.Input[int]]:
141
- """
142
- The ID of the build definition to authorize. Type: string.
143
- """
144
- return pulumi.get(self, "definition_id")
145
-
146
- @definition_id.setter
147
- def definition_id(self, value: Optional[pulumi.Input[int]]):
148
- pulumi.set(self, "definition_id", value)
149
-
150
- @property
151
- @pulumi.getter(name="projectId")
152
- def project_id(self) -> Optional[pulumi.Input[str]]:
153
- """
154
- The project ID or project name. Type: string.
155
- """
156
- return pulumi.get(self, "project_id")
157
-
158
- @project_id.setter
159
- def project_id(self, value: Optional[pulumi.Input[str]]):
160
- pulumi.set(self, "project_id", value)
161
-
162
- @property
163
- @pulumi.getter(name="resourceId")
164
- def resource_id(self) -> Optional[pulumi.Input[str]]:
165
- """
166
- The ID of the resource to authorize. Type: string.
167
- """
168
- return pulumi.get(self, "resource_id")
169
-
170
- @resource_id.setter
171
- def resource_id(self, value: Optional[pulumi.Input[str]]):
172
- pulumi.set(self, "resource_id", value)
173
-
174
- @property
175
- @pulumi.getter
176
- def type(self) -> Optional[pulumi.Input[str]]:
177
- """
178
- The type of the resource to authorize. Type: string. Valid values: `endpoint`, `queue`, `variablegroup`. Default value: `endpoint`.
179
- """
180
- return pulumi.get(self, "type")
181
-
182
- @type.setter
183
- def type(self, value: Optional[pulumi.Input[str]]):
184
- pulumi.set(self, "type", value)
185
-
186
-
187
- warnings.warn("""azuredevops.security/resourceauthorization.ResourceAuthorization has been deprecated in favor of azuredevops.index/resourceauthorization.ResourceAuthorization""", DeprecationWarning)
188
-
189
-
190
- class ResourceAuthorization(pulumi.CustomResource):
191
- warnings.warn("""azuredevops.security/resourceauthorization.ResourceAuthorization has been deprecated in favor of azuredevops.index/resourceauthorization.ResourceAuthorization""", DeprecationWarning)
192
-
193
- @overload
194
- def __init__(__self__,
195
- resource_name: str,
196
- opts: Optional[pulumi.ResourceOptions] = None,
197
- authorized: Optional[pulumi.Input[bool]] = None,
198
- definition_id: Optional[pulumi.Input[int]] = None,
199
- project_id: Optional[pulumi.Input[str]] = None,
200
- resource_id: Optional[pulumi.Input[str]] = None,
201
- type: Optional[pulumi.Input[str]] = None,
202
- __props__=None):
203
- """
204
- Manages authorization of resources, e.g. for access in build pipelines.
205
-
206
- Currently supported resources: service endpoint (aka service connection, endpoint).
207
-
208
- ## Example Usage
209
-
210
- <!--Start PulumiCodeChooser -->
211
- ```python
212
- import pulumi
213
- import pulumi_azuredevops as azuredevops
214
-
215
- example_project = azuredevops.Project("exampleProject",
216
- visibility="private",
217
- version_control="Git",
218
- work_item_template="Agile",
219
- description="Managed by Terraform")
220
- example_service_endpoint_bit_bucket = azuredevops.ServiceEndpointBitBucket("exampleServiceEndpointBitBucket",
221
- project_id=example_project.id,
222
- username="username",
223
- password="password",
224
- service_endpoint_name="example-bitbucket",
225
- description="Managed by Terraform")
226
- example_resource_authorization = azuredevops.ResourceAuthorization("exampleResourceAuthorization",
227
- project_id=example_project.id,
228
- resource_id=example_service_endpoint_bit_bucket.id,
229
- authorized=True)
230
- ```
231
- <!--End PulumiCodeChooser -->
232
-
233
- ## Relevant Links
234
-
235
- - [Azure DevOps Service REST API 7.0 - Authorize Definition Resource](<https://docs.microsoft.com/en-us/rest/api/azure/devops/build/resources/authorize%!d(MISSING)efinition%!r(MISSING)esources?view=azure-devops-rest-7.0>)
236
-
237
- :param str resource_name: The name of the resource.
238
- :param pulumi.ResourceOptions opts: Options for the resource.
239
- :param pulumi.Input[bool] authorized: Set to true to allow public access in the project. Type: boolean.
240
- :param pulumi.Input[int] definition_id: The ID of the build definition to authorize. Type: string.
241
- :param pulumi.Input[str] project_id: The project ID or project name. Type: string.
242
- :param pulumi.Input[str] resource_id: The ID of the resource to authorize. Type: string.
243
- :param pulumi.Input[str] type: The type of the resource to authorize. Type: string. Valid values: `endpoint`, `queue`, `variablegroup`. Default value: `endpoint`.
244
- """
245
- ...
246
- @overload
247
- def __init__(__self__,
248
- resource_name: str,
249
- args: ResourceAuthorizationArgs,
250
- opts: Optional[pulumi.ResourceOptions] = None):
251
- """
252
- Manages authorization of resources, e.g. for access in build pipelines.
253
-
254
- Currently supported resources: service endpoint (aka service connection, endpoint).
255
-
256
- ## Example Usage
257
-
258
- <!--Start PulumiCodeChooser -->
259
- ```python
260
- import pulumi
261
- import pulumi_azuredevops as azuredevops
262
-
263
- example_project = azuredevops.Project("exampleProject",
264
- visibility="private",
265
- version_control="Git",
266
- work_item_template="Agile",
267
- description="Managed by Terraform")
268
- example_service_endpoint_bit_bucket = azuredevops.ServiceEndpointBitBucket("exampleServiceEndpointBitBucket",
269
- project_id=example_project.id,
270
- username="username",
271
- password="password",
272
- service_endpoint_name="example-bitbucket",
273
- description="Managed by Terraform")
274
- example_resource_authorization = azuredevops.ResourceAuthorization("exampleResourceAuthorization",
275
- project_id=example_project.id,
276
- resource_id=example_service_endpoint_bit_bucket.id,
277
- authorized=True)
278
- ```
279
- <!--End PulumiCodeChooser -->
280
-
281
- ## Relevant Links
282
-
283
- - [Azure DevOps Service REST API 7.0 - Authorize Definition Resource](<https://docs.microsoft.com/en-us/rest/api/azure/devops/build/resources/authorize%!d(MISSING)efinition%!r(MISSING)esources?view=azure-devops-rest-7.0>)
284
-
285
- :param str resource_name: The name of the resource.
286
- :param ResourceAuthorizationArgs args: The arguments to use to populate this resource's properties.
287
- :param pulumi.ResourceOptions opts: Options for the resource.
288
- """
289
- ...
290
- def __init__(__self__, resource_name: str, *args, **kwargs):
291
- resource_args, opts = _utilities.get_resource_args_opts(ResourceAuthorizationArgs, pulumi.ResourceOptions, *args, **kwargs)
292
- if resource_args is not None:
293
- __self__._internal_init(resource_name, opts, **resource_args.__dict__)
294
- else:
295
- __self__._internal_init(resource_name, *args, **kwargs)
296
-
297
- def _internal_init(__self__,
298
- resource_name: str,
299
- opts: Optional[pulumi.ResourceOptions] = None,
300
- authorized: Optional[pulumi.Input[bool]] = None,
301
- definition_id: Optional[pulumi.Input[int]] = None,
302
- project_id: Optional[pulumi.Input[str]] = None,
303
- resource_id: Optional[pulumi.Input[str]] = None,
304
- type: Optional[pulumi.Input[str]] = None,
305
- __props__=None):
306
- pulumi.log.warn("""ResourceAuthorization is deprecated: azuredevops.security/resourceauthorization.ResourceAuthorization has been deprecated in favor of azuredevops.index/resourceauthorization.ResourceAuthorization""")
307
- opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
308
- if not isinstance(opts, pulumi.ResourceOptions):
309
- raise TypeError('Expected resource options to be a ResourceOptions instance')
310
- if opts.id is None:
311
- if __props__ is not None:
312
- raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
313
- __props__ = ResourceAuthorizationArgs.__new__(ResourceAuthorizationArgs)
314
-
315
- if authorized is None and not opts.urn:
316
- raise TypeError("Missing required property 'authorized'")
317
- __props__.__dict__["authorized"] = authorized
318
- __props__.__dict__["definition_id"] = definition_id
319
- if project_id is None and not opts.urn:
320
- raise TypeError("Missing required property 'project_id'")
321
- __props__.__dict__["project_id"] = project_id
322
- if resource_id is None and not opts.urn:
323
- raise TypeError("Missing required property 'resource_id'")
324
- __props__.__dict__["resource_id"] = resource_id
325
- __props__.__dict__["type"] = type
326
- super(ResourceAuthorization, __self__).__init__(
327
- 'azuredevops:Security/resourceAuthorization:ResourceAuthorization',
328
- resource_name,
329
- __props__,
330
- opts)
331
-
332
- @staticmethod
333
- def get(resource_name: str,
334
- id: pulumi.Input[str],
335
- opts: Optional[pulumi.ResourceOptions] = None,
336
- authorized: Optional[pulumi.Input[bool]] = None,
337
- definition_id: Optional[pulumi.Input[int]] = None,
338
- project_id: Optional[pulumi.Input[str]] = None,
339
- resource_id: Optional[pulumi.Input[str]] = None,
340
- type: Optional[pulumi.Input[str]] = None) -> 'ResourceAuthorization':
341
- """
342
- Get an existing ResourceAuthorization resource's state with the given name, id, and optional extra
343
- properties used to qualify the lookup.
344
-
345
- :param str resource_name: The unique name of the resulting resource.
346
- :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
347
- :param pulumi.ResourceOptions opts: Options for the resource.
348
- :param pulumi.Input[bool] authorized: Set to true to allow public access in the project. Type: boolean.
349
- :param pulumi.Input[int] definition_id: The ID of the build definition to authorize. Type: string.
350
- :param pulumi.Input[str] project_id: The project ID or project name. Type: string.
351
- :param pulumi.Input[str] resource_id: The ID of the resource to authorize. Type: string.
352
- :param pulumi.Input[str] type: The type of the resource to authorize. Type: string. Valid values: `endpoint`, `queue`, `variablegroup`. Default value: `endpoint`.
353
- """
354
- opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
355
-
356
- __props__ = _ResourceAuthorizationState.__new__(_ResourceAuthorizationState)
357
-
358
- __props__.__dict__["authorized"] = authorized
359
- __props__.__dict__["definition_id"] = definition_id
360
- __props__.__dict__["project_id"] = project_id
361
- __props__.__dict__["resource_id"] = resource_id
362
- __props__.__dict__["type"] = type
363
- return ResourceAuthorization(resource_name, opts=opts, __props__=__props__)
364
-
365
- @property
366
- @pulumi.getter
367
- def authorized(self) -> pulumi.Output[bool]:
368
- """
369
- Set to true to allow public access in the project. Type: boolean.
370
- """
371
- return pulumi.get(self, "authorized")
372
-
373
- @property
374
- @pulumi.getter(name="definitionId")
375
- def definition_id(self) -> pulumi.Output[Optional[int]]:
376
- """
377
- The ID of the build definition to authorize. Type: string.
378
- """
379
- return pulumi.get(self, "definition_id")
380
-
381
- @property
382
- @pulumi.getter(name="projectId")
383
- def project_id(self) -> pulumi.Output[str]:
384
- """
385
- The project ID or project name. Type: string.
386
- """
387
- return pulumi.get(self, "project_id")
388
-
389
- @property
390
- @pulumi.getter(name="resourceId")
391
- def resource_id(self) -> pulumi.Output[str]:
392
- """
393
- The ID of the resource to authorize. Type: string.
394
- """
395
- return pulumi.get(self, "resource_id")
396
-
397
- @property
398
- @pulumi.getter
399
- def type(self) -> pulumi.Output[Optional[str]]:
400
- """
401
- The type of the resource to authorize. Type: string. Valid values: `endpoint`, `queue`, `variablegroup`. Default value: `endpoint`.
402
- """
403
- return pulumi.get(self, "type")
404
-
@@ -1,14 +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 .azure_rm import *
9
- from .bit_bucket import *
10
- from .docker_registry import *
11
- from .git_hub import *
12
- from .kubernetes import *
13
- from ._inputs import *
14
- from . import outputs