pulumi-azuredevops 3.8.0a1741843418__py3-none-any.whl → 3.8.0a1742224403__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.
@@ -26,13 +26,25 @@ class GetClientConfigResult:
26
26
  """
27
27
  A collection of values returned by getClientConfig.
28
28
  """
29
- def __init__(__self__, id=None, organization_url=None):
29
+ def __init__(__self__, id=None, name=None, organization_url=None, owner_id=None, status=None, tenant_id=None):
30
30
  if id and not isinstance(id, str):
31
31
  raise TypeError("Expected argument 'id' to be a str")
32
32
  pulumi.set(__self__, "id", id)
33
+ if name and not isinstance(name, str):
34
+ raise TypeError("Expected argument 'name' to be a str")
35
+ pulumi.set(__self__, "name", name)
33
36
  if organization_url and not isinstance(organization_url, str):
34
37
  raise TypeError("Expected argument 'organization_url' to be a str")
35
38
  pulumi.set(__self__, "organization_url", organization_url)
39
+ if owner_id and not isinstance(owner_id, str):
40
+ raise TypeError("Expected argument 'owner_id' to be a str")
41
+ pulumi.set(__self__, "owner_id", owner_id)
42
+ if status and not isinstance(status, str):
43
+ raise TypeError("Expected argument 'status' to be a str")
44
+ pulumi.set(__self__, "status", status)
45
+ if tenant_id and not isinstance(tenant_id, str):
46
+ raise TypeError("Expected argument 'tenant_id' to be a str")
47
+ pulumi.set(__self__, "tenant_id", tenant_id)
36
48
 
37
49
  @property
38
50
  @pulumi.getter
@@ -42,14 +54,46 @@ class GetClientConfigResult:
42
54
  """
43
55
  return pulumi.get(self, "id")
44
56
 
57
+ @property
58
+ @pulumi.getter
59
+ def name(self) -> str:
60
+ """
61
+ The name of the organization.
62
+ """
63
+ return pulumi.get(self, "name")
64
+
45
65
  @property
46
66
  @pulumi.getter(name="organizationUrl")
47
67
  def organization_url(self) -> str:
48
68
  """
49
- The organization configured for the provider.
69
+ The URL of the organization.
50
70
  """
51
71
  return pulumi.get(self, "organization_url")
52
72
 
73
+ @property
74
+ @pulumi.getter(name="ownerId")
75
+ def owner_id(self) -> str:
76
+ """
77
+ The owner ID of the organization.
78
+ """
79
+ return pulumi.get(self, "owner_id")
80
+
81
+ @property
82
+ @pulumi.getter
83
+ def status(self) -> str:
84
+ """
85
+ The status of the organization.
86
+ """
87
+ return pulumi.get(self, "status")
88
+
89
+ @property
90
+ @pulumi.getter(name="tenantId")
91
+ def tenant_id(self) -> str:
92
+ """
93
+ The Tenant ID of the connected Azure Directory.
94
+ """
95
+ return pulumi.get(self, "tenant_id")
96
+
53
97
 
54
98
  class AwaitableGetClientConfigResult(GetClientConfigResult):
55
99
  # pylint: disable=using-constant-test
@@ -58,7 +102,11 @@ class AwaitableGetClientConfigResult(GetClientConfigResult):
58
102
  yield self
59
103
  return GetClientConfigResult(
60
104
  id=self.id,
61
- organization_url=self.organization_url)
105
+ name=self.name,
106
+ organization_url=self.organization_url,
107
+ owner_id=self.owner_id,
108
+ status=self.status,
109
+ tenant_id=self.tenant_id)
62
110
 
63
111
 
64
112
  def get_client_config(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetClientConfigResult:
@@ -81,7 +129,11 @@ def get_client_config(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableG
81
129
 
82
130
  return AwaitableGetClientConfigResult(
83
131
  id=pulumi.get(__ret__, 'id'),
84
- organization_url=pulumi.get(__ret__, 'organization_url'))
132
+ name=pulumi.get(__ret__, 'name'),
133
+ organization_url=pulumi.get(__ret__, 'organization_url'),
134
+ owner_id=pulumi.get(__ret__, 'owner_id'),
135
+ status=pulumi.get(__ret__, 'status'),
136
+ tenant_id=pulumi.get(__ret__, 'tenant_id'))
85
137
  def get_client_config_output(opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetClientConfigResult]:
86
138
  """
87
139
  Use this data source to access information about the Azure DevOps organization configured for the provider.
@@ -101,4 +153,8 @@ def get_client_config_output(opts: Optional[Union[pulumi.InvokeOptions, pulumi.I
101
153
  __ret__ = pulumi.runtime.invoke_output('azuredevops:index/getClientConfig:getClientConfig', __args__, opts=opts, typ=GetClientConfigResult)
102
154
  return __ret__.apply(lambda __response__: GetClientConfigResult(
103
155
  id=pulumi.get(__response__, 'id'),
104
- organization_url=pulumi.get(__response__, 'organization_url')))
156
+ name=pulumi.get(__response__, 'name'),
157
+ organization_url=pulumi.get(__response__, 'organization_url'),
158
+ owner_id=pulumi.get(__response__, 'owner_id'),
159
+ status=pulumi.get(__response__, 'status'),
160
+ tenant_id=pulumi.get(__response__, 'tenant_id')))
@@ -0,0 +1,131 @@
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 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
+ 'GetGroupMembershipResult',
19
+ 'AwaitableGetGroupMembershipResult',
20
+ 'get_group_membership',
21
+ 'get_group_membership_output',
22
+ ]
23
+
24
+ @pulumi.output_type
25
+ class GetGroupMembershipResult:
26
+ """
27
+ A collection of values returned by getGroupMembership.
28
+ """
29
+ def __init__(__self__, group_descriptor=None, id=None, members=None):
30
+ if group_descriptor and not isinstance(group_descriptor, str):
31
+ raise TypeError("Expected argument 'group_descriptor' to be a str")
32
+ pulumi.set(__self__, "group_descriptor", group_descriptor)
33
+ if id and not isinstance(id, str):
34
+ raise TypeError("Expected argument 'id' to be a str")
35
+ pulumi.set(__self__, "id", id)
36
+ if members and not isinstance(members, list):
37
+ raise TypeError("Expected argument 'members' to be a list")
38
+ pulumi.set(__self__, "members", members)
39
+
40
+ @property
41
+ @pulumi.getter(name="groupDescriptor")
42
+ def group_descriptor(self) -> str:
43
+ return pulumi.get(self, "group_descriptor")
44
+
45
+ @property
46
+ @pulumi.getter
47
+ def id(self) -> str:
48
+ """
49
+ The provider-assigned unique ID for this managed resource.
50
+ """
51
+ return pulumi.get(self, "id")
52
+
53
+ @property
54
+ @pulumi.getter
55
+ def members(self) -> Sequence[str]:
56
+ """
57
+ A list of user or group descriptors.
58
+ """
59
+ return pulumi.get(self, "members")
60
+
61
+
62
+ class AwaitableGetGroupMembershipResult(GetGroupMembershipResult):
63
+ # pylint: disable=using-constant-test
64
+ def __await__(self):
65
+ if False:
66
+ yield self
67
+ return GetGroupMembershipResult(
68
+ group_descriptor=self.group_descriptor,
69
+ id=self.id,
70
+ members=self.members)
71
+
72
+
73
+ def get_group_membership(group_descriptor: Optional[str] = None,
74
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetGroupMembershipResult:
75
+ """
76
+ Use this data source to access information about an existing Group Memberships within Azure DevOps
77
+
78
+ ## Example Usage
79
+
80
+ ```python
81
+ import pulumi
82
+ import pulumi_azuredevops as azuredevops
83
+
84
+ example = azuredevops.get_group_membership(group_descriptor="groupdescroptpr")
85
+ ```
86
+
87
+ ## Relevant Links
88
+
89
+ - [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)
90
+
91
+
92
+ :param str group_descriptor: The descriptor of the group.
93
+ """
94
+ __args__ = dict()
95
+ __args__['groupDescriptor'] = group_descriptor
96
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
97
+ __ret__ = pulumi.runtime.invoke('azuredevops:index/getGroupMembership:getGroupMembership', __args__, opts=opts, typ=GetGroupMembershipResult).value
98
+
99
+ return AwaitableGetGroupMembershipResult(
100
+ group_descriptor=pulumi.get(__ret__, 'group_descriptor'),
101
+ id=pulumi.get(__ret__, 'id'),
102
+ members=pulumi.get(__ret__, 'members'))
103
+ def get_group_membership_output(group_descriptor: Optional[pulumi.Input[str]] = None,
104
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetGroupMembershipResult]:
105
+ """
106
+ Use this data source to access information about an existing Group Memberships within Azure DevOps
107
+
108
+ ## Example Usage
109
+
110
+ ```python
111
+ import pulumi
112
+ import pulumi_azuredevops as azuredevops
113
+
114
+ example = azuredevops.get_group_membership(group_descriptor="groupdescroptpr")
115
+ ```
116
+
117
+ ## Relevant Links
118
+
119
+ - [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)
120
+
121
+
122
+ :param str group_descriptor: The descriptor of the group.
123
+ """
124
+ __args__ = dict()
125
+ __args__['groupDescriptor'] = group_descriptor
126
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
127
+ __ret__ = pulumi.runtime.invoke_output('azuredevops:index/getGroupMembership:getGroupMembership', __args__, opts=opts, typ=GetGroupMembershipResult)
128
+ return __ret__.apply(lambda __response__: GetGroupMembershipResult(
129
+ group_descriptor=pulumi.get(__response__, 'group_descriptor'),
130
+ id=pulumi.get(__response__, 'id'),
131
+ members=pulumi.get(__response__, 'members')))
@@ -98,7 +98,7 @@ def get_teams(project_id: Optional[str] = None,
98
98
  example = azuredevops.get_teams()
99
99
  pulumi.export("projectId", [__item.project_id for __item in example.teams])
100
100
  pulumi.export("name", [__item.name for __item in example.teams])
101
- pulumi.export("alladministrators", [__item.administrators for __item in example.teams])
101
+ pulumi.export("allAdministrators", [__item.administrators for __item in example.teams])
102
102
  pulumi.export("administrators", [__item.members for __item in example.teams])
103
103
  ```
104
104
 
@@ -140,7 +140,7 @@ def get_teams_output(project_id: Optional[pulumi.Input[Optional[str]]] = None,
140
140
  example = azuredevops.get_teams()
141
141
  pulumi.export("projectId", [__item.project_id for __item in example.teams])
142
142
  pulumi.export("name", [__item.name for __item in example.teams])
143
- pulumi.export("alladministrators", [__item.administrators for __item in example.teams])
143
+ pulumi.export("allAdministrators", [__item.administrators for __item in example.teams])
144
144
  pulumi.export("administrators", [__item.members for __item in example.teams])
145
145
  ```
146
146
 
@@ -126,6 +126,8 @@ def get_users(features: Optional[Union['GetUsersFeaturesArgs', 'GetUsersFeatures
126
126
  """
127
127
  Use this data source to access information about an existing users within Azure DevOps.
128
128
 
129
+ > **NOTE:** This resource will try to get all the users within the organization which may result in poor performance. `get_identity_users`, `get_user` can be used to replace this resource.
130
+
129
131
 
130
132
  :param Union['GetUsersFeaturesArgs', 'GetUsersFeaturesArgsDict'] features: A `features` block as defined below.
131
133
  :param str origin: The type of source provider for the `origin_id` parameter (ex:AD, AAD, MSA) The supported origins are listed below.
@@ -161,6 +163,8 @@ def get_users_output(features: Optional[pulumi.Input[Optional[Union['GetUsersFea
161
163
  """
162
164
  Use this data source to access information about an existing users within Azure DevOps.
163
165
 
166
+ > **NOTE:** This resource will try to get all the users within the organization which may result in poor performance. `get_identity_users`, `get_user` can be used to replace this resource.
167
+
164
168
 
165
169
  :param Union['GetUsersFeaturesArgs', 'GetUsersFeaturesArgsDict'] features: A `features` block as defined below.
166
170
  :param str origin: The type of source provider for the `origin_id` parameter (ex:AD, AAD, MSA) The supported origins are listed below.