pulumi-gitlab 9.5.0a1763187027__py3-none-any.whl → 9.5.0a1763770463__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_gitlab/__init__.py CHANGED
@@ -18,6 +18,7 @@ from .deploy_key import *
18
18
  from .deploy_key_enable import *
19
19
  from .deploy_token import *
20
20
  from .get_application import *
21
+ from .get_artifact_file import *
21
22
  from .get_branch import *
22
23
  from .get_cluster_agent import *
23
24
  from .get_cluster_agents import *
@@ -41,6 +42,7 @@ from .get_instance_deploy_keys import *
41
42
  from .get_instance_service_account import *
42
43
  from .get_instance_variable import *
43
44
  from .get_instance_variables import *
45
+ from .get_member_role import *
44
46
  from .get_metadata import *
45
47
  from .get_pipeline_schedule import *
46
48
  from .get_pipeline_schedules import *
pulumi_gitlab/branch.py CHANGED
@@ -538,7 +538,7 @@ class Branch(pulumi.CustomResource):
538
538
 
539
539
  @_builtins.property
540
540
  @pulumi.getter(name="keepOnDestroy")
541
- def keep_on_destroy(self) -> pulumi.Output[Optional[_builtins.bool]]:
541
+ def keep_on_destroy(self) -> pulumi.Output[_builtins.bool]:
542
542
  """
543
543
  Indicates whether the branch is kept once the resource destroyed (must be applied before a destroy).
544
544
  """
@@ -21,25 +21,17 @@ class DeployKeyEnableArgs:
21
21
  def __init__(__self__, *,
22
22
  key_id: pulumi.Input[_builtins.str],
23
23
  project: pulumi.Input[_builtins.str],
24
- can_push: Optional[pulumi.Input[_builtins.bool]] = None,
25
- key: Optional[pulumi.Input[_builtins.str]] = None,
26
- title: Optional[pulumi.Input[_builtins.str]] = None):
24
+ can_push: Optional[pulumi.Input[_builtins.bool]] = None):
27
25
  """
28
26
  The set of arguments for constructing a DeployKeyEnable resource.
29
27
  :param pulumi.Input[_builtins.str] key_id: The Gitlab key id for the pre-existing deploy key
30
28
  :param pulumi.Input[_builtins.str] project: The name or id of the project to add the deploy key to.
31
29
  :param pulumi.Input[_builtins.bool] can_push: Can deploy key push to the project's repository.
32
- :param pulumi.Input[_builtins.str] key: Deploy key.
33
- :param pulumi.Input[_builtins.str] title: Deploy key's title.
34
30
  """
35
31
  pulumi.set(__self__, "key_id", key_id)
36
32
  pulumi.set(__self__, "project", project)
37
33
  if can_push is not None:
38
34
  pulumi.set(__self__, "can_push", can_push)
39
- if key is not None:
40
- pulumi.set(__self__, "key", key)
41
- if title is not None:
42
- pulumi.set(__self__, "title", title)
43
35
 
44
36
  @_builtins.property
45
37
  @pulumi.getter(name="keyId")
@@ -77,30 +69,6 @@ class DeployKeyEnableArgs:
77
69
  def can_push(self, value: Optional[pulumi.Input[_builtins.bool]]):
78
70
  pulumi.set(self, "can_push", value)
79
71
 
80
- @_builtins.property
81
- @pulumi.getter
82
- def key(self) -> Optional[pulumi.Input[_builtins.str]]:
83
- """
84
- Deploy key.
85
- """
86
- return pulumi.get(self, "key")
87
-
88
- @key.setter
89
- def key(self, value: Optional[pulumi.Input[_builtins.str]]):
90
- pulumi.set(self, "key", value)
91
-
92
- @_builtins.property
93
- @pulumi.getter
94
- def title(self) -> Optional[pulumi.Input[_builtins.str]]:
95
- """
96
- Deploy key's title.
97
- """
98
- return pulumi.get(self, "title")
99
-
100
- @title.setter
101
- def title(self, value: Optional[pulumi.Input[_builtins.str]]):
102
- pulumi.set(self, "title", value)
103
-
104
72
 
105
73
  @pulumi.input_type
106
74
  class _DeployKeyEnableState:
@@ -197,10 +165,8 @@ class DeployKeyEnable(pulumi.CustomResource):
197
165
  resource_name: str,
198
166
  opts: Optional[pulumi.ResourceOptions] = None,
199
167
  can_push: Optional[pulumi.Input[_builtins.bool]] = None,
200
- key: Optional[pulumi.Input[_builtins.str]] = None,
201
168
  key_id: Optional[pulumi.Input[_builtins.str]] = None,
202
169
  project: Optional[pulumi.Input[_builtins.str]] = None,
203
- title: Optional[pulumi.Input[_builtins.str]] = None,
204
170
  __props__=None):
205
171
  """
206
172
  The `DeployKeyEnable` resource allows to enable an already existing deploy key (see `DeployKey resource`) for a specific project.
@@ -261,10 +227,8 @@ class DeployKeyEnable(pulumi.CustomResource):
261
227
  :param str resource_name: The name of the resource.
262
228
  :param pulumi.ResourceOptions opts: Options for the resource.
263
229
  :param pulumi.Input[_builtins.bool] can_push: Can deploy key push to the project's repository.
264
- :param pulumi.Input[_builtins.str] key: Deploy key.
265
230
  :param pulumi.Input[_builtins.str] key_id: The Gitlab key id for the pre-existing deploy key
266
231
  :param pulumi.Input[_builtins.str] project: The name or id of the project to add the deploy key to.
267
- :param pulumi.Input[_builtins.str] title: Deploy key's title.
268
232
  """
269
233
  ...
270
234
  @overload
@@ -344,10 +308,8 @@ class DeployKeyEnable(pulumi.CustomResource):
344
308
  resource_name: str,
345
309
  opts: Optional[pulumi.ResourceOptions] = None,
346
310
  can_push: Optional[pulumi.Input[_builtins.bool]] = None,
347
- key: Optional[pulumi.Input[_builtins.str]] = None,
348
311
  key_id: Optional[pulumi.Input[_builtins.str]] = None,
349
312
  project: Optional[pulumi.Input[_builtins.str]] = None,
350
- title: Optional[pulumi.Input[_builtins.str]] = None,
351
313
  __props__=None):
352
314
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
353
315
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -358,14 +320,14 @@ class DeployKeyEnable(pulumi.CustomResource):
358
320
  __props__ = DeployKeyEnableArgs.__new__(DeployKeyEnableArgs)
359
321
 
360
322
  __props__.__dict__["can_push"] = can_push
361
- __props__.__dict__["key"] = key
362
323
  if key_id is None and not opts.urn:
363
324
  raise TypeError("Missing required property 'key_id'")
364
325
  __props__.__dict__["key_id"] = key_id
365
326
  if project is None and not opts.urn:
366
327
  raise TypeError("Missing required property 'project'")
367
328
  __props__.__dict__["project"] = project
368
- __props__.__dict__["title"] = title
329
+ __props__.__dict__["key"] = None
330
+ __props__.__dict__["title"] = None
369
331
  super(DeployKeyEnable, __self__).__init__(
370
332
  'gitlab:index/deployKeyEnable:DeployKeyEnable',
371
333
  resource_name,
@@ -407,7 +369,7 @@ class DeployKeyEnable(pulumi.CustomResource):
407
369
 
408
370
  @_builtins.property
409
371
  @pulumi.getter(name="canPush")
410
- def can_push(self) -> pulumi.Output[Optional[_builtins.bool]]:
372
+ def can_push(self) -> pulumi.Output[_builtins.bool]:
411
373
  """
412
374
  Can deploy key push to the project's repository.
413
375
  """
@@ -0,0 +1,266 @@
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
+ 'GetArtifactFileResult',
19
+ 'AwaitableGetArtifactFileResult',
20
+ 'get_artifact_file',
21
+ 'get_artifact_file_output',
22
+ ]
23
+
24
+ @pulumi.output_type
25
+ class GetArtifactFileResult:
26
+ """
27
+ A collection of values returned by getArtifactFile.
28
+ """
29
+ def __init__(__self__, artifact_path=None, content=None, content_base64=None, id=None, job=None, max_size_bytes=None, project=None, ref=None):
30
+ if artifact_path and not isinstance(artifact_path, str):
31
+ raise TypeError("Expected argument 'artifact_path' to be a str")
32
+ pulumi.set(__self__, "artifact_path", artifact_path)
33
+ if content and not isinstance(content, str):
34
+ raise TypeError("Expected argument 'content' to be a str")
35
+ pulumi.set(__self__, "content", content)
36
+ if content_base64 and not isinstance(content_base64, str):
37
+ raise TypeError("Expected argument 'content_base64' to be a str")
38
+ pulumi.set(__self__, "content_base64", content_base64)
39
+ if id and not isinstance(id, str):
40
+ raise TypeError("Expected argument 'id' to be a str")
41
+ pulumi.set(__self__, "id", id)
42
+ if job and not isinstance(job, str):
43
+ raise TypeError("Expected argument 'job' to be a str")
44
+ pulumi.set(__self__, "job", job)
45
+ if max_size_bytes and not isinstance(max_size_bytes, int):
46
+ raise TypeError("Expected argument 'max_size_bytes' to be a int")
47
+ pulumi.set(__self__, "max_size_bytes", max_size_bytes)
48
+ if project and not isinstance(project, str):
49
+ raise TypeError("Expected argument 'project' to be a str")
50
+ pulumi.set(__self__, "project", project)
51
+ if ref and not isinstance(ref, str):
52
+ raise TypeError("Expected argument 'ref' to be a str")
53
+ pulumi.set(__self__, "ref", ref)
54
+
55
+ @_builtins.property
56
+ @pulumi.getter(name="artifactPath")
57
+ def artifact_path(self) -> _builtins.str:
58
+ """
59
+ Path to the artifact file within the job's artifacts archive. This path is relative to the archive contents (not the local filesystem). Ensure each `get_artifact_file` data source in your configuration uses a unique artifact_path to avoid ambiguity.
60
+ """
61
+ return pulumi.get(self, "artifact_path")
62
+
63
+ @_builtins.property
64
+ @pulumi.getter
65
+ def content(self) -> _builtins.str:
66
+ """
67
+ The content of the artifact file as a UTF-8 string. Use `content_base64` for binary files.
68
+ """
69
+ return pulumi.get(self, "content")
70
+
71
+ @_builtins.property
72
+ @pulumi.getter(name="contentBase64")
73
+ def content_base64(self) -> _builtins.str:
74
+ """
75
+ The content of the artifact file as a base64-encoded string. Useful for binary files.
76
+ """
77
+ return pulumi.get(self, "content_base64")
78
+
79
+ @_builtins.property
80
+ @pulumi.getter
81
+ def id(self) -> _builtins.str:
82
+ """
83
+ The ID of this datasource. In the format `<project>:<ref>:<job>:<artifact_path>`.
84
+ """
85
+ return pulumi.get(self, "id")
86
+
87
+ @_builtins.property
88
+ @pulumi.getter
89
+ def job(self) -> _builtins.str:
90
+ """
91
+ The name of the job.
92
+ """
93
+ return pulumi.get(self, "job")
94
+
95
+ @_builtins.property
96
+ @pulumi.getter(name="maxSizeBytes")
97
+ def max_size_bytes(self) -> Optional[_builtins.int]:
98
+ """
99
+ Maximum bytes to read from the artifact. Defaults to 10MB (10485760 bytes).
100
+ """
101
+ return pulumi.get(self, "max_size_bytes")
102
+
103
+ @_builtins.property
104
+ @pulumi.getter
105
+ def project(self) -> _builtins.str:
106
+ """
107
+ The ID or URL-encoded path of the project.
108
+ """
109
+ return pulumi.get(self, "project")
110
+
111
+ @_builtins.property
112
+ @pulumi.getter
113
+ def ref(self) -> _builtins.str:
114
+ """
115
+ The name of the branch, tag, or commit SHA.
116
+ """
117
+ return pulumi.get(self, "ref")
118
+
119
+
120
+ class AwaitableGetArtifactFileResult(GetArtifactFileResult):
121
+ # pylint: disable=using-constant-test
122
+ def __await__(self):
123
+ if False:
124
+ yield self
125
+ return GetArtifactFileResult(
126
+ artifact_path=self.artifact_path,
127
+ content=self.content,
128
+ content_base64=self.content_base64,
129
+ id=self.id,
130
+ job=self.job,
131
+ max_size_bytes=self.max_size_bytes,
132
+ project=self.project,
133
+ ref=self.ref)
134
+
135
+
136
+ def get_artifact_file(artifact_path: Optional[_builtins.str] = None,
137
+ job: Optional[_builtins.str] = None,
138
+ max_size_bytes: Optional[_builtins.int] = None,
139
+ project: Optional[_builtins.str] = None,
140
+ ref: Optional[_builtins.str] = None,
141
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetArtifactFileResult:
142
+ """
143
+ The `get_artifact_file` data source allows downloading a single artifact file from a specific job in the latest successful pipeline for a given reference (branch, tag, or commit).
144
+ **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/job_artifacts.html#download-a-single-artifact-file-from-specific-tag-or-branch)
145
+
146
+ ## Example Usage
147
+
148
+ ```python
149
+ import pulumi
150
+ import pulumi_gitlab as gitlab
151
+
152
+ # Download a text artifact file from the latest successful pipeline
153
+ config = gitlab.get_artifact_file(project="namespace/myproject",
154
+ job="build-job",
155
+ ref="main",
156
+ artifact_path="config/settings.json")
157
+ pulumi.export("configContent", config.content)
158
+ # Download a binary artifact file using base64 encoding
159
+ binary = gitlab.get_artifact_file(project="namespace/myproject",
160
+ job="build-job",
161
+ ref="v1.0.0",
162
+ artifact_path="dist/app.zip")
163
+ pulumi.export("binaryContentBase64", binary.content_base64)
164
+ # Download artifact from a specific tag
165
+ release = gitlab.get_artifact_file(project="12345",
166
+ job="release-job",
167
+ ref="v2.1.0",
168
+ artifact_path="release-notes.txt")
169
+ # Download a larger artifact with custom size limit
170
+ large_artifact = gitlab.get_artifact_file(project="namespace/myproject",
171
+ job="build-job",
172
+ ref="main",
173
+ artifact_path="dist/large-file.zip",
174
+ max_size_bytes=20971520)
175
+ ```
176
+
177
+
178
+ :param _builtins.str artifact_path: Path to the artifact file within the job's artifacts archive. This path is relative to the archive contents (not the local filesystem). Ensure each `get_artifact_file` data source in your configuration uses a unique artifact_path to avoid ambiguity.
179
+ :param _builtins.str job: The name of the job.
180
+ :param _builtins.int max_size_bytes: Maximum bytes to read from the artifact. Defaults to 10MB (10485760 bytes).
181
+ :param _builtins.str project: The ID or URL-encoded path of the project.
182
+ :param _builtins.str ref: The name of the branch, tag, or commit SHA.
183
+ """
184
+ __args__ = dict()
185
+ __args__['artifactPath'] = artifact_path
186
+ __args__['job'] = job
187
+ __args__['maxSizeBytes'] = max_size_bytes
188
+ __args__['project'] = project
189
+ __args__['ref'] = ref
190
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
191
+ __ret__ = pulumi.runtime.invoke('gitlab:index/getArtifactFile:getArtifactFile', __args__, opts=opts, typ=GetArtifactFileResult).value
192
+
193
+ return AwaitableGetArtifactFileResult(
194
+ artifact_path=pulumi.get(__ret__, 'artifact_path'),
195
+ content=pulumi.get(__ret__, 'content'),
196
+ content_base64=pulumi.get(__ret__, 'content_base64'),
197
+ id=pulumi.get(__ret__, 'id'),
198
+ job=pulumi.get(__ret__, 'job'),
199
+ max_size_bytes=pulumi.get(__ret__, 'max_size_bytes'),
200
+ project=pulumi.get(__ret__, 'project'),
201
+ ref=pulumi.get(__ret__, 'ref'))
202
+ def get_artifact_file_output(artifact_path: Optional[pulumi.Input[_builtins.str]] = None,
203
+ job: Optional[pulumi.Input[_builtins.str]] = None,
204
+ max_size_bytes: Optional[pulumi.Input[Optional[_builtins.int]]] = None,
205
+ project: Optional[pulumi.Input[_builtins.str]] = None,
206
+ ref: Optional[pulumi.Input[_builtins.str]] = None,
207
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetArtifactFileResult]:
208
+ """
209
+ The `get_artifact_file` data source allows downloading a single artifact file from a specific job in the latest successful pipeline for a given reference (branch, tag, or commit).
210
+ **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/job_artifacts.html#download-a-single-artifact-file-from-specific-tag-or-branch)
211
+
212
+ ## Example Usage
213
+
214
+ ```python
215
+ import pulumi
216
+ import pulumi_gitlab as gitlab
217
+
218
+ # Download a text artifact file from the latest successful pipeline
219
+ config = gitlab.get_artifact_file(project="namespace/myproject",
220
+ job="build-job",
221
+ ref="main",
222
+ artifact_path="config/settings.json")
223
+ pulumi.export("configContent", config.content)
224
+ # Download a binary artifact file using base64 encoding
225
+ binary = gitlab.get_artifact_file(project="namespace/myproject",
226
+ job="build-job",
227
+ ref="v1.0.0",
228
+ artifact_path="dist/app.zip")
229
+ pulumi.export("binaryContentBase64", binary.content_base64)
230
+ # Download artifact from a specific tag
231
+ release = gitlab.get_artifact_file(project="12345",
232
+ job="release-job",
233
+ ref="v2.1.0",
234
+ artifact_path="release-notes.txt")
235
+ # Download a larger artifact with custom size limit
236
+ large_artifact = gitlab.get_artifact_file(project="namespace/myproject",
237
+ job="build-job",
238
+ ref="main",
239
+ artifact_path="dist/large-file.zip",
240
+ max_size_bytes=20971520)
241
+ ```
242
+
243
+
244
+ :param _builtins.str artifact_path: Path to the artifact file within the job's artifacts archive. This path is relative to the archive contents (not the local filesystem). Ensure each `get_artifact_file` data source in your configuration uses a unique artifact_path to avoid ambiguity.
245
+ :param _builtins.str job: The name of the job.
246
+ :param _builtins.int max_size_bytes: Maximum bytes to read from the artifact. Defaults to 10MB (10485760 bytes).
247
+ :param _builtins.str project: The ID or URL-encoded path of the project.
248
+ :param _builtins.str ref: The name of the branch, tag, or commit SHA.
249
+ """
250
+ __args__ = dict()
251
+ __args__['artifactPath'] = artifact_path
252
+ __args__['job'] = job
253
+ __args__['maxSizeBytes'] = max_size_bytes
254
+ __args__['project'] = project
255
+ __args__['ref'] = ref
256
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
257
+ __ret__ = pulumi.runtime.invoke_output('gitlab:index/getArtifactFile:getArtifactFile', __args__, opts=opts, typ=GetArtifactFileResult)
258
+ return __ret__.apply(lambda __response__: GetArtifactFileResult(
259
+ artifact_path=pulumi.get(__response__, 'artifact_path'),
260
+ content=pulumi.get(__response__, 'content'),
261
+ content_base64=pulumi.get(__response__, 'content_base64'),
262
+ id=pulumi.get(__response__, 'id'),
263
+ job=pulumi.get(__response__, 'job'),
264
+ max_size_bytes=pulumi.get(__response__, 'max_size_bytes'),
265
+ project=pulumi.get(__response__, 'project'),
266
+ ref=pulumi.get(__response__, 'ref')))
@@ -0,0 +1,200 @@
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
+ 'GetMemberRoleResult',
19
+ 'AwaitableGetMemberRoleResult',
20
+ 'get_member_role',
21
+ 'get_member_role_output',
22
+ ]
23
+
24
+ @pulumi.output_type
25
+ class GetMemberRoleResult:
26
+ """
27
+ A collection of values returned by getMemberRole.
28
+ """
29
+ def __init__(__self__, base_access_level=None, created_at=None, description=None, edit_path=None, enabled_permissions=None, id=None, iid=None, name=None):
30
+ if base_access_level and not isinstance(base_access_level, str):
31
+ raise TypeError("Expected argument 'base_access_level' to be a str")
32
+ pulumi.set(__self__, "base_access_level", base_access_level)
33
+ if created_at and not isinstance(created_at, str):
34
+ raise TypeError("Expected argument 'created_at' to be a str")
35
+ pulumi.set(__self__, "created_at", created_at)
36
+ if description and not isinstance(description, str):
37
+ raise TypeError("Expected argument 'description' to be a str")
38
+ pulumi.set(__self__, "description", description)
39
+ if edit_path and not isinstance(edit_path, str):
40
+ raise TypeError("Expected argument 'edit_path' to be a str")
41
+ pulumi.set(__self__, "edit_path", edit_path)
42
+ if enabled_permissions and not isinstance(enabled_permissions, list):
43
+ raise TypeError("Expected argument 'enabled_permissions' to be a list")
44
+ pulumi.set(__self__, "enabled_permissions", enabled_permissions)
45
+ if id and not isinstance(id, str):
46
+ raise TypeError("Expected argument 'id' to be a str")
47
+ pulumi.set(__self__, "id", id)
48
+ if iid and not isinstance(iid, int):
49
+ raise TypeError("Expected argument 'iid' to be a int")
50
+ pulumi.set(__self__, "iid", iid)
51
+ if name and not isinstance(name, str):
52
+ raise TypeError("Expected argument 'name' to be a str")
53
+ pulumi.set(__self__, "name", name)
54
+
55
+ @_builtins.property
56
+ @pulumi.getter(name="baseAccessLevel")
57
+ def base_access_level(self) -> _builtins.str:
58
+ """
59
+ The base access level of the custom role.
60
+ """
61
+ return pulumi.get(self, "base_access_level")
62
+
63
+ @_builtins.property
64
+ @pulumi.getter(name="createdAt")
65
+ def created_at(self) -> _builtins.str:
66
+ """
67
+ Timestamp of when the member role was created.
68
+ """
69
+ return pulumi.get(self, "created_at")
70
+
71
+ @_builtins.property
72
+ @pulumi.getter
73
+ def description(self) -> _builtins.str:
74
+ """
75
+ Description of the member role.
76
+ """
77
+ return pulumi.get(self, "description")
78
+
79
+ @_builtins.property
80
+ @pulumi.getter(name="editPath")
81
+ def edit_path(self) -> _builtins.str:
82
+ """
83
+ The Web UI path to edit the member role
84
+ """
85
+ return pulumi.get(self, "edit_path")
86
+
87
+ @_builtins.property
88
+ @pulumi.getter(name="enabledPermissions")
89
+ def enabled_permissions(self) -> Sequence[_builtins.str]:
90
+ """
91
+ All permissions enabled for the custom role.
92
+ """
93
+ return pulumi.get(self, "enabled_permissions")
94
+
95
+ @_builtins.property
96
+ @pulumi.getter
97
+ def id(self) -> _builtins.str:
98
+ """
99
+ Globally unique ID of the member role. In the format of `gid://gitlab/MemberRole/1`
100
+ """
101
+ return pulumi.get(self, "id")
102
+
103
+ @_builtins.property
104
+ @pulumi.getter
105
+ def iid(self) -> _builtins.int:
106
+ """
107
+ The member role ID integer value extracted from the `id` attribute
108
+ """
109
+ return pulumi.get(self, "iid")
110
+
111
+ @_builtins.property
112
+ @pulumi.getter
113
+ def name(self) -> _builtins.str:
114
+ """
115
+ Name of the member role.
116
+ """
117
+ return pulumi.get(self, "name")
118
+
119
+
120
+ class AwaitableGetMemberRoleResult(GetMemberRoleResult):
121
+ # pylint: disable=using-constant-test
122
+ def __await__(self):
123
+ if False:
124
+ yield self
125
+ return GetMemberRoleResult(
126
+ base_access_level=self.base_access_level,
127
+ created_at=self.created_at,
128
+ description=self.description,
129
+ edit_path=self.edit_path,
130
+ enabled_permissions=self.enabled_permissions,
131
+ id=self.id,
132
+ iid=self.iid,
133
+ name=self.name)
134
+
135
+
136
+ def get_member_role(id: Optional[_builtins.str] = None,
137
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetMemberRoleResult:
138
+ """
139
+ The `MemberRole` data source allows details of a custom member role to be retrieved.
140
+
141
+ **Upstream API**: [GitLab GraphQL API docs](https://docs.gitlab.com/api/graphql/reference/#querymemberrole)
142
+
143
+ ## Example Usage
144
+
145
+ ```python
146
+ import pulumi
147
+ import pulumi_gitlab as gitlab
148
+
149
+ example = gitlab.get_member_role(id="gid://gitlab/MemberRole/1")
150
+ ```
151
+
152
+
153
+ :param _builtins.str id: Globally unique ID of the member role. In the format of `gid://gitlab/MemberRole/1`
154
+ """
155
+ __args__ = dict()
156
+ __args__['id'] = id
157
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
158
+ __ret__ = pulumi.runtime.invoke('gitlab:index/getMemberRole:getMemberRole', __args__, opts=opts, typ=GetMemberRoleResult).value
159
+
160
+ return AwaitableGetMemberRoleResult(
161
+ base_access_level=pulumi.get(__ret__, 'base_access_level'),
162
+ created_at=pulumi.get(__ret__, 'created_at'),
163
+ description=pulumi.get(__ret__, 'description'),
164
+ edit_path=pulumi.get(__ret__, 'edit_path'),
165
+ enabled_permissions=pulumi.get(__ret__, 'enabled_permissions'),
166
+ id=pulumi.get(__ret__, 'id'),
167
+ iid=pulumi.get(__ret__, 'iid'),
168
+ name=pulumi.get(__ret__, 'name'))
169
+ def get_member_role_output(id: Optional[pulumi.Input[_builtins.str]] = None,
170
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetMemberRoleResult]:
171
+ """
172
+ The `MemberRole` data source allows details of a custom member role to be retrieved.
173
+
174
+ **Upstream API**: [GitLab GraphQL API docs](https://docs.gitlab.com/api/graphql/reference/#querymemberrole)
175
+
176
+ ## Example Usage
177
+
178
+ ```python
179
+ import pulumi
180
+ import pulumi_gitlab as gitlab
181
+
182
+ example = gitlab.get_member_role(id="gid://gitlab/MemberRole/1")
183
+ ```
184
+
185
+
186
+ :param _builtins.str id: Globally unique ID of the member role. In the format of `gid://gitlab/MemberRole/1`
187
+ """
188
+ __args__ = dict()
189
+ __args__['id'] = id
190
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
191
+ __ret__ = pulumi.runtime.invoke_output('gitlab:index/getMemberRole:getMemberRole', __args__, opts=opts, typ=GetMemberRoleResult)
192
+ return __ret__.apply(lambda __response__: GetMemberRoleResult(
193
+ base_access_level=pulumi.get(__response__, 'base_access_level'),
194
+ created_at=pulumi.get(__response__, 'created_at'),
195
+ description=pulumi.get(__response__, 'description'),
196
+ edit_path=pulumi.get(__response__, 'edit_path'),
197
+ enabled_permissions=pulumi.get(__response__, 'enabled_permissions'),
198
+ id=pulumi.get(__response__, 'id'),
199
+ iid=pulumi.get(__response__, 'iid'),
200
+ name=pulumi.get(__response__, 'name')))
@@ -65,7 +65,7 @@ class GetProjectTagResult:
65
65
  @pulumi.getter
66
66
  def id(self) -> _builtins.str:
67
67
  """
68
- The provider-assigned unique ID for this managed resource.
68
+ The ID of this datasource. In the format `<project:name>`.
69
69
  """
70
70
  return pulumi.get(self, "id")
71
71
 
@@ -97,7 +97,7 @@ class GetProjectTagResult:
97
97
  @pulumi.getter
98
98
  def protected(self) -> _builtins.bool:
99
99
  """
100
- Bool, true if tag has tag protection.
100
+ True if tag has tag protection.
101
101
  """
102
102
  return pulumi.get(self, "protected")
103
103
 
@@ -51,7 +51,7 @@ class GetProjectTagsResult:
51
51
  @pulumi.getter
52
52
  def id(self) -> _builtins.str:
53
53
  """
54
- The provider-assigned unique ID for this managed resource.
54
+ The ID of this datasource. In the format `<project:hash-of-other-options>`.
55
55
  """
56
56
  return pulumi.get(self, "id")
57
57
 
pulumi_gitlab/outputs.py CHANGED
@@ -8537,7 +8537,7 @@ class GetProjectTagReleaseResult(dict):
8537
8537
  description: _builtins.str,
8538
8538
  tag_name: _builtins.str):
8539
8539
  """
8540
- :param _builtins.str description: The description of release.
8540
+ :param _builtins.str description: The description of the release.
8541
8541
  :param _builtins.str tag_name: The name of the tag.
8542
8542
  """
8543
8543
  pulumi.set(__self__, "description", description)
@@ -8547,7 +8547,7 @@ class GetProjectTagReleaseResult(dict):
8547
8547
  @pulumi.getter
8548
8548
  def description(self) -> _builtins.str:
8549
8549
  """
8550
- The description of release.
8550
+ The description of the release.
8551
8551
  """
8552
8552
  return pulumi.get(self, "description")
8553
8553
 
@@ -8573,7 +8573,7 @@ class GetProjectTagsTagResult(dict):
8573
8573
  :param Sequence['GetProjectTagsTagCommitArgs'] commits: The commit associated with the tag.
8574
8574
  :param _builtins.str message: The message of the annotated tag.
8575
8575
  :param _builtins.str name: The name of a tag.
8576
- :param _builtins.bool protected: Bool, true if tag has tag protection.
8576
+ :param _builtins.bool protected: True if tag has tag protection.
8577
8577
  :param Sequence['GetProjectTagsTagReleaseArgs'] releases: The release associated with the tag.
8578
8578
  :param _builtins.str target: The unique id assigned to the commit by Gitlab.
8579
8579
  """
@@ -8612,7 +8612,7 @@ class GetProjectTagsTagResult(dict):
8612
8612
  @pulumi.getter
8613
8613
  def protected(self) -> _builtins.bool:
8614
8614
  """
8615
- Bool, true if tag has tag protection.
8615
+ True if tag has tag protection.
8616
8616
  """
8617
8617
  return pulumi.get(self, "protected")
8618
8618
 
@@ -8767,7 +8767,7 @@ class GetProjectTagsTagReleaseResult(dict):
8767
8767
  description: _builtins.str,
8768
8768
  tag_name: _builtins.str):
8769
8769
  """
8770
- :param _builtins.str description: The description of release.
8770
+ :param _builtins.str description: The description of the release.
8771
8771
  :param _builtins.str tag_name: The name of the tag.
8772
8772
  """
8773
8773
  pulumi.set(__self__, "description", description)
@@ -8777,7 +8777,7 @@ class GetProjectTagsTagReleaseResult(dict):
8777
8777
  @pulumi.getter
8778
8778
  def description(self) -> _builtins.str:
8779
8779
  """
8780
- The description of release.
8780
+ The description of the release.
8781
8781
  """
8782
8782
  return pulumi.get(self, "description")
8783
8783
 
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "resource": true,
3
3
  "name": "gitlab",
4
- "version": "9.5.0-alpha.1763187027"
4
+ "version": "9.5.0-alpha.1763770463"
5
5
  }
@@ -517,7 +517,7 @@ class ReleaseLink(pulumi.CustomResource):
517
517
 
518
518
  @_builtins.property
519
519
  @pulumi.getter(name="linkType")
520
- def link_type(self) -> pulumi.Output[Optional[_builtins.str]]:
520
+ def link_type(self) -> pulumi.Output[_builtins.str]:
521
521
  """
522
522
  The type of the link. Valid values are `other`, `runbook`, `image`, `package`. Defaults to other.
523
523
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pulumi_gitlab
3
- Version: 9.5.0a1763187027
3
+ Version: 9.5.0a1763770463
4
4
  Summary: A Pulumi package for creating and managing GitLab resources.
5
5
  License: Apache-2.0
6
6
  Project-URL: Homepage, https://pulumi.io
@@ -1,18 +1,19 @@
1
- pulumi_gitlab/__init__.py,sha256=T-5WfwbFyxxpCPv-2P_YWIP9I3qB8Xfw12DJ4-RPU8w,29249
1
+ pulumi_gitlab/__init__.py,sha256=XDnPczCqP3OF45YUAy5bDM-XipvuZN710YwWurNmkj8,29313
2
2
  pulumi_gitlab/_inputs.py,sha256=en1xLDwJxacN26OxYYKtpX2rd07SXdeBEG6fgCXtcYA,236754
3
3
  pulumi_gitlab/_utilities.py,sha256=66uLGQDI1oMFOI3Fe5igAphtexWhcSLDyuVW50jW3ik,10789
4
4
  pulumi_gitlab/application.py,sha256=PgLuXBM3IaUaTL-YcI5Df3BqOAoUS1KD_ixUvTtQvg8,21154
5
5
  pulumi_gitlab/application_appearance.py,sha256=m6opePjc2q9HWQUPUyl88wxHUm15IwlCS7EbXBIh508,38986
6
6
  pulumi_gitlab/application_settings.py,sha256=NVreAF0z4l9jv-JA0WSCatc7VbshDLopDoz16dvQQxQ,936273
7
- pulumi_gitlab/branch.py,sha256=tBTtD5dln5TAhpeNXP4TZikxA94BrJY_pPaKzW1Wmqg,24036
7
+ pulumi_gitlab/branch.py,sha256=BDerW-NRX5UCfrJd3qQUpgWnUtDrWpEDMzxvqB5MI-I,24026
8
8
  pulumi_gitlab/branch_protection.py,sha256=yJc3rrP0xKfkBQiGqqdkaas6MXG2hEY6f_zl7-9qPys,38562
9
9
  pulumi_gitlab/cluster_agent.py,sha256=S6OdazI_e7wxIXKYcyhruKjzkwHHpkZOEE399SMCP3s,15683
10
10
  pulumi_gitlab/cluster_agent_token.py,sha256=vlRO-OFxp2hZRQY876gTDsEvwflcXyzILVmgvaePIU8,24082
11
11
  pulumi_gitlab/compliance_framework.py,sha256=o1YewNvA739ZlH8pYrK5Iy5nGubLasK9HC7OrLhaKX8,23925
12
12
  pulumi_gitlab/deploy_key.py,sha256=NYEVpalJkdEKXnntKqrMpGkLMfL-QWN2LKG_Zqo5poc,18979
13
- pulumi_gitlab/deploy_key_enable.py,sha256=mIQV7efXmTSeUbrEfLT_qXc4CS51gkDSMe0mdj_ZMu4,17184
13
+ pulumi_gitlab/deploy_key_enable.py,sha256=o2rQ2Kj4KElodUVhc-Gq0qLit0cZsgR0JixzjQhQ7kk,15714
14
14
  pulumi_gitlab/deploy_token.py,sha256=pXk5qOA5ooPSBis8kFmrh_I8VlVrCSWA1IwvHk1t5jc,22734
15
15
  pulumi_gitlab/get_application.py,sha256=uaW2ZAb_9OhwZRzTgVura2xxnI_NNDF9drDqgAFQ2vg,5391
16
+ pulumi_gitlab/get_artifact_file.py,sha256=txK3ShsFCwyGdHLYzwwZdXBXEYj1MoCT01aqbCaLrxg,11847
16
17
  pulumi_gitlab/get_branch.py,sha256=j6ZSamR96v5YUUbIGsLvAFbuxOXNwXbheOSW4C7CjH4,9060
17
18
  pulumi_gitlab/get_cluster_agent.py,sha256=iwTqj8ZnCgX8nJTzcbrE6GPVErjv_HgENPgbCcrNpQo,6680
18
19
  pulumi_gitlab/get_cluster_agents.py,sha256=_G242BH8y3zZuOILvlTaIXfYyCKzqEstVQt8rz7EaJc,4764
@@ -36,6 +37,7 @@ pulumi_gitlab/get_instance_deploy_keys.py,sha256=vz22DdfqMA59sCB-XG0NYdNNR54JC6o
36
37
  pulumi_gitlab/get_instance_service_account.py,sha256=B8yGT-jTrJ9YWhV5EVfjwyocB3Ow8WBCs1P4Cy1hHT0,6147
37
38
  pulumi_gitlab/get_instance_variable.py,sha256=r5la7d0kTiFGBaSs914T1mVld_-x1qpARDRLV1FLFZg,7285
38
39
  pulumi_gitlab/get_instance_variables.py,sha256=AZ_XyYUk-O_Tp36IcqfrXYMxCbG9A2npDD3febIeNgM,3790
40
+ pulumi_gitlab/get_member_role.py,sha256=yY5RdEaUKtuN4r8CJxO5_K8KucsZIOaDlhdXwm7H9ng,7610
39
41
  pulumi_gitlab/get_metadata.py,sha256=voj93AOaaeOx2rKEvLoIAya8xAsb5oaPXovs_bzl-bE,5028
40
42
  pulumi_gitlab/get_pipeline_schedule.py,sha256=EWKGUP0lrD1AZT9ve9WcLzg0Xuf-Q-sSRAyU93MsdxA,11944
41
43
  pulumi_gitlab/get_pipeline_schedules.py,sha256=Yl6rZi3VRy1xQpxHZ1AP-cZ6WjSL3wHshD1n4f3Cjww,4825
@@ -59,8 +61,8 @@ pulumi_gitlab/get_project_protected_branch.py,sha256=YQTtGqGo5W8KN9RRU_4hjSmNFIf
59
61
  pulumi_gitlab/get_project_protected_branches.py,sha256=nhvPTRqgJwRQXuN2y1zG7IQRl5TDPkG-aV2Hchxg_Aw,5906
60
62
  pulumi_gitlab/get_project_protected_tag.py,sha256=Fo8UoJWayVujW9NPgFmyNpOTCZLKKzxsM4a79AOSWxg,5718
61
63
  pulumi_gitlab/get_project_protected_tags.py,sha256=t2VcHaU1UX1hhs9VTWuC_W5ia5Jl24WK1vNMxIv4YSU,4671
62
- pulumi_gitlab/get_project_tag.py,sha256=oJ7x5hVV6CuoFGhXPDH5yp01ZCSdoZkSknMJ2UAvMfM,7135
63
- pulumi_gitlab/get_project_tags.py,sha256=Jw5Rm9bIJIfwsThxsOhzSOHURKRfqc9CntibPzGpVYc,7579
64
+ pulumi_gitlab/get_project_tag.py,sha256=bTYxA4HpDxpyKka5WOpuO93gMaJYcyXyat8asZIDtXA,7129
65
+ pulumi_gitlab/get_project_tags.py,sha256=meUS3PZNccndWKnP4wWDj_KD_TuLnZXnheCCqfvTlyw,7596
64
66
  pulumi_gitlab/get_project_variable.py,sha256=OvfaMmjKasLxraaAEkdWPWuoKhV6z9azth3HjgcdhFo,9798
65
67
  pulumi_gitlab/get_project_variables.py,sha256=4LgJrtm2cmU9-H3ollUpyYbrCJnH3E5ufVgAP6zTNDQ,6258
66
68
  pulumi_gitlab/get_projects.py,sha256=k06XJVSWO3s5pcI82fU0JdT_bXw4sKeMf0K6zVBpCA0,30215
@@ -114,7 +116,7 @@ pulumi_gitlab/integration_slack.py,sha256=-D_4aaoSleCEK4qI99XWuWzeh2QpAOQM-Ewq9Z
114
116
  pulumi_gitlab/integration_telegram.py,sha256=wLKXDVepFB45HgeyCHsyS484jzhVz50ud7qHz1arzjI,41348
115
117
  pulumi_gitlab/label.py,sha256=IyPE9Y27YjDCA-QovCc6185Oejtt5defjCcpl-z-eh4,16247
116
118
  pulumi_gitlab/member_role.py,sha256=nL5F9uKtfa5-aFK5vHlDJ4dp7OsZYoJRzn_H9osbijs,26412
117
- pulumi_gitlab/outputs.py,sha256=Q8UkTFVCsq8VZbf_RGx7mpZQsnSgX2lgGOaheSL1Cc4,444638
119
+ pulumi_gitlab/outputs.py,sha256=CLXpL4Mq4N7mQCLnfHmRkRd8PX4zHUcofhH8Q_xYkPE,444642
118
120
  pulumi_gitlab/pages_domain.py,sha256=wZHPUA37V2kvhc2s_7NfnFAKi6HjAV2WMoRRxXN-tus,23392
119
121
  pulumi_gitlab/personal_access_token.py,sha256=KS9hp82294uMNcC4xltKeVeL2MCzVnJDYceicz6QTZQ,32591
120
122
  pulumi_gitlab/pipeline_schedule.py,sha256=UcqpiWKBXWbDm491woCUjIEm_TcRg48Ihh93x8qHgNg,22808
@@ -168,10 +170,10 @@ pulumi_gitlab/project_target_branch_rule.py,sha256=r-ARIXOststH6qEVV49NCA91HrLMO
168
170
  pulumi_gitlab/project_variable.py,sha256=jFABiqW3TfvYy1_33GvDqwMlWMrr2pD79j1NhwQRqM0,29693
169
171
  pulumi_gitlab/project_wiki_page.py,sha256=_uJ0vbZO0P5pVp3xuvnBYBZYfZUY0KX6hnvHK5motfU,16558
170
172
  pulumi_gitlab/provider.py,sha256=xszx1fRkM7_uck9iIfo2dNGa2JkXWThqRXi1wHsYtjY,23257
171
- pulumi_gitlab/pulumi-plugin.json,sha256=fMuCAXFLGDOgE1IA_InqIZJjwj_MhtvpC1aUjo-neqI,82
173
+ pulumi_gitlab/pulumi-plugin.json,sha256=d3WDNJ6W7XE56Ck1wL3izewmcf3Iyp0mAM91jTaQxgg,82
172
174
  pulumi_gitlab/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
173
175
  pulumi_gitlab/release.py,sha256=nl-zDbU9uBrgSal-Q_hmgvucLEdRdVwzQaHznkzG064,36331
174
- pulumi_gitlab/release_link.py,sha256=tlZPA5u79DJQ9ssyRmuy_QQNwOpIk79_6ykWWufHhfQ,23615
176
+ pulumi_gitlab/release_link.py,sha256=nC8p9D48gyAN_ZV3BZ8wn4B33SpgbtEX2B7SUiGbwH0,23605
175
177
  pulumi_gitlab/repository_file.py,sha256=0fBrHI7nqAzeKHhnJSs6sAez2vw34dX9JwqwMrhkdaY,48070
176
178
  pulumi_gitlab/runner.py,sha256=gJekwwkDTRb3K1zg4YcnjBoWio1yLgPFxqJUC2Ox1XI,29829
177
179
  pulumi_gitlab/system_hook.py,sha256=XEgfe6vgqUutRv5mfy0WJ7-t_-XRpQKwzQcN5-SgBW0,23940
@@ -188,7 +190,7 @@ pulumi_gitlab/value_stream_analytics.py,sha256=qajoNI2VIT6EgVAN-V0YAMShve-D6jDQf
188
190
  pulumi_gitlab/config/__init__.py,sha256=XWnQfVtc2oPapjSXXCdORFJvMpXt_SMJQASWdTRoPmc,296
189
191
  pulumi_gitlab/config/__init__.pyi,sha256=ZtEaCpKCo4BZor-bBsDtf4j3yl7ym84dqhkIy_Keuvs,2671
190
192
  pulumi_gitlab/config/vars.py,sha256=Rf2oVEIYf4vSaqK-7RmfAixxpaGEhQG9kXIeSCfIuJc,4073
191
- pulumi_gitlab-9.5.0a1763187027.dist-info/METADATA,sha256=ueb1Oo_A2SzXHzMzjqHiZ2_QGKpwGGKOgSfQ9uOduXA,3447
192
- pulumi_gitlab-9.5.0a1763187027.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
193
- pulumi_gitlab-9.5.0a1763187027.dist-info/top_level.txt,sha256=fl4bklikEmbp3mE-JWfvC3JROXPLQGxFaJd_j_qmjgE,14
194
- pulumi_gitlab-9.5.0a1763187027.dist-info/RECORD,,
193
+ pulumi_gitlab-9.5.0a1763770463.dist-info/METADATA,sha256=lyz96EsGk7qTJcUIg1kP6h1u3eK9ryi107CyhRIHS74,3447
194
+ pulumi_gitlab-9.5.0a1763770463.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
195
+ pulumi_gitlab-9.5.0a1763770463.dist-info/top_level.txt,sha256=fl4bklikEmbp3mE-JWfvC3JROXPLQGxFaJd_j_qmjgE,14
196
+ pulumi_gitlab-9.5.0a1763770463.dist-info/RECORD,,