pulumi-github 6.11.0a1768542226__py3-none-any.whl → 6.12.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. pulumi_github/__init__.py +37 -0
  2. pulumi_github/_inputs.py +527 -34
  3. pulumi_github/actions_environment_secret.py +141 -12
  4. pulumi_github/actions_environment_variable.py +73 -39
  5. pulumi_github/actions_organization_permissions.py +50 -3
  6. pulumi_github/actions_organization_secret.py +164 -55
  7. pulumi_github/actions_organization_secret_repositories.py +44 -28
  8. pulumi_github/actions_organization_secret_repository.py +44 -28
  9. pulumi_github/actions_organization_variable.py +44 -47
  10. pulumi_github/actions_organization_variable_repositories.py +262 -0
  11. pulumi_github/actions_organization_variable_repository.py +262 -0
  12. pulumi_github/actions_organization_workflow_permissions.py +320 -0
  13. pulumi_github/actions_repository_permissions.py +50 -3
  14. pulumi_github/actions_secret.py +176 -41
  15. pulumi_github/actions_variable.py +65 -33
  16. pulumi_github/app_installation_repositories.py +6 -6
  17. pulumi_github/app_installation_repository.py +6 -6
  18. pulumi_github/dependabot_organization_secret.py +128 -59
  19. pulumi_github/dependabot_organization_secret_repositories.py +44 -36
  20. pulumi_github/dependabot_organization_secret_repository.py +262 -0
  21. pulumi_github/dependabot_secret.py +154 -41
  22. pulumi_github/emu_group_mapping.py +62 -6
  23. pulumi_github/get_ip_ranges.py +3 -0
  24. pulumi_github/get_release_asset.py +370 -0
  25. pulumi_github/get_repository.py +17 -2
  26. pulumi_github/get_team.py +29 -13
  27. pulumi_github/organization_ruleset.py +11 -17
  28. pulumi_github/outputs.py +404 -25
  29. pulumi_github/pulumi-plugin.json +1 -1
  30. pulumi_github/repository.py +88 -23
  31. pulumi_github/repository_custom_property.py +2 -2
  32. pulumi_github/repository_environment.py +11 -11
  33. pulumi_github/repository_environment_deployment_policy.py +4 -4
  34. pulumi_github/repository_ruleset.py +7 -7
  35. pulumi_github/team.py +70 -21
  36. {pulumi_github-6.11.0a1768542226.dist-info → pulumi_github-6.12.0.dist-info}/METADATA +1 -1
  37. {pulumi_github-6.11.0a1768542226.dist-info → pulumi_github-6.12.0.dist-info}/RECORD +39 -34
  38. {pulumi_github-6.11.0a1768542226.dist-info → pulumi_github-6.12.0.dist-info}/WHEEL +1 -1
  39. {pulumi_github-6.11.0a1768542226.dist-info → pulumi_github-6.12.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,370 @@
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
+ 'GetReleaseAssetResult',
19
+ 'AwaitableGetReleaseAssetResult',
20
+ 'get_release_asset',
21
+ 'get_release_asset_output',
22
+ ]
23
+
24
+ @pulumi.output_type
25
+ class GetReleaseAssetResult:
26
+ """
27
+ A collection of values returned by getReleaseAsset.
28
+ """
29
+ def __init__(__self__, asset_id=None, browser_download_url=None, content_type=None, created_at=None, download_file_contents=None, file_contents=None, id=None, label=None, name=None, node_id=None, owner=None, repository=None, size=None, updated_at=None, url=None):
30
+ if asset_id and not isinstance(asset_id, int):
31
+ raise TypeError("Expected argument 'asset_id' to be a int")
32
+ pulumi.set(__self__, "asset_id", asset_id)
33
+ if browser_download_url and not isinstance(browser_download_url, str):
34
+ raise TypeError("Expected argument 'browser_download_url' to be a str")
35
+ pulumi.set(__self__, "browser_download_url", browser_download_url)
36
+ if content_type and not isinstance(content_type, str):
37
+ raise TypeError("Expected argument 'content_type' to be a str")
38
+ pulumi.set(__self__, "content_type", content_type)
39
+ if created_at and not isinstance(created_at, str):
40
+ raise TypeError("Expected argument 'created_at' to be a str")
41
+ pulumi.set(__self__, "created_at", created_at)
42
+ if download_file_contents and not isinstance(download_file_contents, bool):
43
+ raise TypeError("Expected argument 'download_file_contents' to be a bool")
44
+ pulumi.set(__self__, "download_file_contents", download_file_contents)
45
+ if file_contents and not isinstance(file_contents, str):
46
+ raise TypeError("Expected argument 'file_contents' to be a str")
47
+ pulumi.set(__self__, "file_contents", file_contents)
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 label and not isinstance(label, str):
52
+ raise TypeError("Expected argument 'label' to be a str")
53
+ pulumi.set(__self__, "label", label)
54
+ if name and not isinstance(name, str):
55
+ raise TypeError("Expected argument 'name' to be a str")
56
+ pulumi.set(__self__, "name", name)
57
+ if node_id and not isinstance(node_id, str):
58
+ raise TypeError("Expected argument 'node_id' to be a str")
59
+ pulumi.set(__self__, "node_id", node_id)
60
+ if owner and not isinstance(owner, str):
61
+ raise TypeError("Expected argument 'owner' to be a str")
62
+ pulumi.set(__self__, "owner", owner)
63
+ if repository and not isinstance(repository, str):
64
+ raise TypeError("Expected argument 'repository' to be a str")
65
+ pulumi.set(__self__, "repository", repository)
66
+ if size and not isinstance(size, int):
67
+ raise TypeError("Expected argument 'size' to be a int")
68
+ pulumi.set(__self__, "size", size)
69
+ if updated_at and not isinstance(updated_at, str):
70
+ raise TypeError("Expected argument 'updated_at' to be a str")
71
+ pulumi.set(__self__, "updated_at", updated_at)
72
+ if url and not isinstance(url, str):
73
+ raise TypeError("Expected argument 'url' to be a str")
74
+ pulumi.set(__self__, "url", url)
75
+
76
+ @_builtins.property
77
+ @pulumi.getter(name="assetId")
78
+ def asset_id(self) -> _builtins.int:
79
+ return pulumi.get(self, "asset_id")
80
+
81
+ @_builtins.property
82
+ @pulumi.getter(name="browserDownloadUrl")
83
+ def browser_download_url(self) -> _builtins.str:
84
+ """
85
+ Browser URL from which the release asset can be downloaded
86
+ """
87
+ return pulumi.get(self, "browser_download_url")
88
+
89
+ @_builtins.property
90
+ @pulumi.getter(name="contentType")
91
+ def content_type(self) -> _builtins.str:
92
+ """
93
+ MIME type of the asset
94
+ """
95
+ return pulumi.get(self, "content_type")
96
+
97
+ @_builtins.property
98
+ @pulumi.getter(name="createdAt")
99
+ def created_at(self) -> _builtins.str:
100
+ """
101
+ Date the asset was created
102
+ """
103
+ return pulumi.get(self, "created_at")
104
+
105
+ @_builtins.property
106
+ @pulumi.getter(name="downloadFileContents")
107
+ def download_file_contents(self) -> Optional[_builtins.bool]:
108
+ return pulumi.get(self, "download_file_contents")
109
+
110
+ @_builtins.property
111
+ @pulumi.getter(name="fileContents")
112
+ def file_contents(self) -> _builtins.str:
113
+ """
114
+ The base64-encoded release asset file contents (requires `download_file_contents` to be `true`)
115
+ """
116
+ return pulumi.get(self, "file_contents")
117
+
118
+ @_builtins.property
119
+ @pulumi.getter
120
+ def id(self) -> _builtins.str:
121
+ """
122
+ The provider-assigned unique ID for this managed resource.
123
+ """
124
+ return pulumi.get(self, "id")
125
+
126
+ @_builtins.property
127
+ @pulumi.getter
128
+ def label(self) -> _builtins.str:
129
+ """
130
+ Label for the asset
131
+ """
132
+ return pulumi.get(self, "label")
133
+
134
+ @_builtins.property
135
+ @pulumi.getter
136
+ def name(self) -> _builtins.str:
137
+ """
138
+ The file name of the asset
139
+ """
140
+ return pulumi.get(self, "name")
141
+
142
+ @_builtins.property
143
+ @pulumi.getter(name="nodeId")
144
+ def node_id(self) -> _builtins.str:
145
+ """
146
+ Node ID of the asset
147
+ """
148
+ return pulumi.get(self, "node_id")
149
+
150
+ @_builtins.property
151
+ @pulumi.getter
152
+ def owner(self) -> _builtins.str:
153
+ return pulumi.get(self, "owner")
154
+
155
+ @_builtins.property
156
+ @pulumi.getter
157
+ def repository(self) -> _builtins.str:
158
+ return pulumi.get(self, "repository")
159
+
160
+ @_builtins.property
161
+ @pulumi.getter
162
+ def size(self) -> _builtins.int:
163
+ """
164
+ Asset size in bytes
165
+ """
166
+ return pulumi.get(self, "size")
167
+
168
+ @_builtins.property
169
+ @pulumi.getter(name="updatedAt")
170
+ def updated_at(self) -> _builtins.str:
171
+ """
172
+ Date the asset was last updated
173
+ """
174
+ return pulumi.get(self, "updated_at")
175
+
176
+ @_builtins.property
177
+ @pulumi.getter
178
+ def url(self) -> _builtins.str:
179
+ """
180
+ URL of the asset
181
+ """
182
+ return pulumi.get(self, "url")
183
+
184
+
185
+ class AwaitableGetReleaseAssetResult(GetReleaseAssetResult):
186
+ # pylint: disable=using-constant-test
187
+ def __await__(self):
188
+ if False:
189
+ yield self
190
+ return GetReleaseAssetResult(
191
+ asset_id=self.asset_id,
192
+ browser_download_url=self.browser_download_url,
193
+ content_type=self.content_type,
194
+ created_at=self.created_at,
195
+ download_file_contents=self.download_file_contents,
196
+ file_contents=self.file_contents,
197
+ id=self.id,
198
+ label=self.label,
199
+ name=self.name,
200
+ node_id=self.node_id,
201
+ owner=self.owner,
202
+ repository=self.repository,
203
+ size=self.size,
204
+ updated_at=self.updated_at,
205
+ url=self.url)
206
+
207
+
208
+ def get_release_asset(asset_id: Optional[_builtins.int] = None,
209
+ download_file_contents: Optional[_builtins.bool] = None,
210
+ owner: Optional[_builtins.str] = None,
211
+ repository: Optional[_builtins.str] = None,
212
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetReleaseAssetResult:
213
+ """
214
+ Use this data source to retrieve information about a GitHub release asset.
215
+
216
+ ## Example Usage
217
+
218
+ To retrieve a specific release asset from a repository based on its ID:
219
+
220
+ ```python
221
+ import pulumi
222
+ import pulumi_github as github
223
+
224
+ example = github.get_release_asset(repository="example-repository",
225
+ owner="example-owner",
226
+ asset_id=12345)
227
+ ```
228
+
229
+ To retrieve a specific release asset from a repository, and download the file
230
+ into a `file` attribute on the data source:
231
+
232
+ To retrieve the first release asset associated with the latest release in a repository:
233
+
234
+ ```python
235
+ import pulumi
236
+ import pulumi_github as github
237
+
238
+ example = github.get_release(repository="example-repository",
239
+ owner="example-owner",
240
+ retrieve_by="latest")
241
+ example_get_release_asset = github.get_release_asset(repository="example-repository",
242
+ owner="example-owner",
243
+ asset_id=example.assets[0].id)
244
+ ```
245
+
246
+ To retrieve all release assets associated with the the latest release in a repository:
247
+
248
+ ```python
249
+ import pulumi
250
+ import pulumi_github as github
251
+
252
+ example = github.get_release(repository="example-repository",
253
+ owner="example-owner",
254
+ retrieve_by="latest")
255
+ example_get_release_asset = [github.get_release_asset(repository="example-repository",
256
+ owner="example-owner",
257
+ asset_id=example.assets[__index].id) for __index in len(example.assets).apply(lambda length: range(length))]
258
+ ```
259
+
260
+
261
+ :param _builtins.int asset_id: ID of the release asset to retrieve
262
+ :param _builtins.bool download_file_contents: Whether to download the asset file content into the `file_contents` attribute (defaults to `false`)
263
+ :param _builtins.str owner: Owner of the repository
264
+ :param _builtins.str repository: Name of the repository to retrieve the release from
265
+ """
266
+ __args__ = dict()
267
+ __args__['assetId'] = asset_id
268
+ __args__['downloadFileContents'] = download_file_contents
269
+ __args__['owner'] = owner
270
+ __args__['repository'] = repository
271
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
272
+ __ret__ = pulumi.runtime.invoke('github:index/getReleaseAsset:getReleaseAsset', __args__, opts=opts, typ=GetReleaseAssetResult).value
273
+
274
+ return AwaitableGetReleaseAssetResult(
275
+ asset_id=pulumi.get(__ret__, 'asset_id'),
276
+ browser_download_url=pulumi.get(__ret__, 'browser_download_url'),
277
+ content_type=pulumi.get(__ret__, 'content_type'),
278
+ created_at=pulumi.get(__ret__, 'created_at'),
279
+ download_file_contents=pulumi.get(__ret__, 'download_file_contents'),
280
+ file_contents=pulumi.get(__ret__, 'file_contents'),
281
+ id=pulumi.get(__ret__, 'id'),
282
+ label=pulumi.get(__ret__, 'label'),
283
+ name=pulumi.get(__ret__, 'name'),
284
+ node_id=pulumi.get(__ret__, 'node_id'),
285
+ owner=pulumi.get(__ret__, 'owner'),
286
+ repository=pulumi.get(__ret__, 'repository'),
287
+ size=pulumi.get(__ret__, 'size'),
288
+ updated_at=pulumi.get(__ret__, 'updated_at'),
289
+ url=pulumi.get(__ret__, 'url'))
290
+ def get_release_asset_output(asset_id: Optional[pulumi.Input[_builtins.int]] = None,
291
+ download_file_contents: Optional[pulumi.Input[Optional[_builtins.bool]]] = None,
292
+ owner: Optional[pulumi.Input[_builtins.str]] = None,
293
+ repository: Optional[pulumi.Input[_builtins.str]] = None,
294
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetReleaseAssetResult]:
295
+ """
296
+ Use this data source to retrieve information about a GitHub release asset.
297
+
298
+ ## Example Usage
299
+
300
+ To retrieve a specific release asset from a repository based on its ID:
301
+
302
+ ```python
303
+ import pulumi
304
+ import pulumi_github as github
305
+
306
+ example = github.get_release_asset(repository="example-repository",
307
+ owner="example-owner",
308
+ asset_id=12345)
309
+ ```
310
+
311
+ To retrieve a specific release asset from a repository, and download the file
312
+ into a `file` attribute on the data source:
313
+
314
+ To retrieve the first release asset associated with the latest release in a repository:
315
+
316
+ ```python
317
+ import pulumi
318
+ import pulumi_github as github
319
+
320
+ example = github.get_release(repository="example-repository",
321
+ owner="example-owner",
322
+ retrieve_by="latest")
323
+ example_get_release_asset = github.get_release_asset(repository="example-repository",
324
+ owner="example-owner",
325
+ asset_id=example.assets[0].id)
326
+ ```
327
+
328
+ To retrieve all release assets associated with the the latest release in a repository:
329
+
330
+ ```python
331
+ import pulumi
332
+ import pulumi_github as github
333
+
334
+ example = github.get_release(repository="example-repository",
335
+ owner="example-owner",
336
+ retrieve_by="latest")
337
+ example_get_release_asset = [github.get_release_asset(repository="example-repository",
338
+ owner="example-owner",
339
+ asset_id=example.assets[__index].id) for __index in len(example.assets).apply(lambda length: range(length))]
340
+ ```
341
+
342
+
343
+ :param _builtins.int asset_id: ID of the release asset to retrieve
344
+ :param _builtins.bool download_file_contents: Whether to download the asset file content into the `file_contents` attribute (defaults to `false`)
345
+ :param _builtins.str owner: Owner of the repository
346
+ :param _builtins.str repository: Name of the repository to retrieve the release from
347
+ """
348
+ __args__ = dict()
349
+ __args__['assetId'] = asset_id
350
+ __args__['downloadFileContents'] = download_file_contents
351
+ __args__['owner'] = owner
352
+ __args__['repository'] = repository
353
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
354
+ __ret__ = pulumi.runtime.invoke_output('github:index/getReleaseAsset:getReleaseAsset', __args__, opts=opts, typ=GetReleaseAssetResult)
355
+ return __ret__.apply(lambda __response__: GetReleaseAssetResult(
356
+ asset_id=pulumi.get(__response__, 'asset_id'),
357
+ browser_download_url=pulumi.get(__response__, 'browser_download_url'),
358
+ content_type=pulumi.get(__response__, 'content_type'),
359
+ created_at=pulumi.get(__response__, 'created_at'),
360
+ download_file_contents=pulumi.get(__response__, 'download_file_contents'),
361
+ file_contents=pulumi.get(__response__, 'file_contents'),
362
+ id=pulumi.get(__response__, 'id'),
363
+ label=pulumi.get(__response__, 'label'),
364
+ name=pulumi.get(__response__, 'name'),
365
+ node_id=pulumi.get(__response__, 'node_id'),
366
+ owner=pulumi.get(__response__, 'owner'),
367
+ repository=pulumi.get(__response__, 'repository'),
368
+ size=pulumi.get(__response__, 'size'),
369
+ updated_at=pulumi.get(__response__, 'updated_at'),
370
+ url=pulumi.get(__response__, 'url')))
@@ -27,10 +27,13 @@ class GetRepositoryResult:
27
27
  """
28
28
  A collection of values returned by getRepository.
29
29
  """
30
- def __init__(__self__, allow_auto_merge=None, allow_merge_commit=None, allow_rebase_merge=None, allow_squash_merge=None, allow_update_branch=None, archived=None, default_branch=None, delete_branch_on_merge=None, description=None, fork=None, full_name=None, git_clone_url=None, has_discussions=None, has_downloads=None, has_issues=None, has_projects=None, has_wiki=None, homepage_url=None, html_url=None, http_clone_url=None, id=None, is_template=None, merge_commit_message=None, merge_commit_title=None, name=None, node_id=None, pages=None, primary_language=None, private=None, repo_id=None, repository_licenses=None, squash_merge_commit_message=None, squash_merge_commit_title=None, ssh_clone_url=None, svn_url=None, templates=None, topics=None, visibility=None):
30
+ def __init__(__self__, allow_auto_merge=None, allow_forking=None, allow_merge_commit=None, allow_rebase_merge=None, allow_squash_merge=None, allow_update_branch=None, archived=None, default_branch=None, delete_branch_on_merge=None, description=None, fork=None, full_name=None, git_clone_url=None, has_discussions=None, has_downloads=None, has_issues=None, has_projects=None, has_wiki=None, homepage_url=None, html_url=None, http_clone_url=None, id=None, is_template=None, merge_commit_message=None, merge_commit_title=None, name=None, node_id=None, pages=None, primary_language=None, private=None, repo_id=None, repository_licenses=None, squash_merge_commit_message=None, squash_merge_commit_title=None, ssh_clone_url=None, svn_url=None, templates=None, topics=None, visibility=None):
31
31
  if allow_auto_merge and not isinstance(allow_auto_merge, bool):
32
32
  raise TypeError("Expected argument 'allow_auto_merge' to be a bool")
33
33
  pulumi.set(__self__, "allow_auto_merge", allow_auto_merge)
34
+ if allow_forking and not isinstance(allow_forking, bool):
35
+ raise TypeError("Expected argument 'allow_forking' to be a bool")
36
+ pulumi.set(__self__, "allow_forking", allow_forking)
34
37
  if allow_merge_commit and not isinstance(allow_merge_commit, bool):
35
38
  raise TypeError("Expected argument 'allow_merge_commit' to be a bool")
36
39
  pulumi.set(__self__, "allow_merge_commit", allow_merge_commit)
@@ -151,6 +154,14 @@ class GetRepositoryResult:
151
154
  """
152
155
  return pulumi.get(self, "allow_auto_merge")
153
156
 
157
+ @_builtins.property
158
+ @pulumi.getter(name="allowForking")
159
+ def allow_forking(self) -> _builtins.bool:
160
+ """
161
+ Whether the repository allows private forking; this is only relevant if the repository is owned by an organization and is private or internal.
162
+ """
163
+ return pulumi.get(self, "allow_forking")
164
+
154
165
  @_builtins.property
155
166
  @pulumi.getter(name="allowMergeCommit")
156
167
  def allow_merge_commit(self) -> _builtins.bool:
@@ -240,9 +251,10 @@ class GetRepositoryResult:
240
251
 
241
252
  @_builtins.property
242
253
  @pulumi.getter(name="hasDownloads")
254
+ @_utilities.deprecated("""This attribute is no longer in use, but it hasn't been removed yet. It will be removed in a future version. See https://github.com/orgs/community/discussions/102145#discussioncomment-8351756""")
243
255
  def has_downloads(self) -> _builtins.bool:
244
256
  """
245
- Whether the repository has Downloads feature enabled.
257
+ (**DEPRECATED**) Whether the repository has Downloads feature enabled. This attribute is no longer in use, but it hasn't been removed yet. It will be removed in a future version. See [this discussion](https://github.com/orgs/community/discussions/102145#discussioncomment-8351756).
246
258
  """
247
259
  return pulumi.get(self, "has_downloads")
248
260
 
@@ -446,6 +458,7 @@ class AwaitableGetRepositoryResult(GetRepositoryResult):
446
458
  yield self
447
459
  return GetRepositoryResult(
448
460
  allow_auto_merge=self.allow_auto_merge,
461
+ allow_forking=self.allow_forking,
449
462
  allow_merge_commit=self.allow_merge_commit,
450
463
  allow_rebase_merge=self.allow_rebase_merge,
451
464
  allow_squash_merge=self.allow_squash_merge,
@@ -518,6 +531,7 @@ def get_repository(description: Optional[_builtins.str] = None,
518
531
 
519
532
  return AwaitableGetRepositoryResult(
520
533
  allow_auto_merge=pulumi.get(__ret__, 'allow_auto_merge'),
534
+ allow_forking=pulumi.get(__ret__, 'allow_forking'),
521
535
  allow_merge_commit=pulumi.get(__ret__, 'allow_merge_commit'),
522
536
  allow_rebase_merge=pulumi.get(__ret__, 'allow_rebase_merge'),
523
537
  allow_squash_merge=pulumi.get(__ret__, 'allow_squash_merge'),
@@ -587,6 +601,7 @@ def get_repository_output(description: Optional[pulumi.Input[Optional[_builtins.
587
601
  __ret__ = pulumi.runtime.invoke_output('github:index/getRepository:getRepository', __args__, opts=opts, typ=GetRepositoryResult)
588
602
  return __ret__.apply(lambda __response__: GetRepositoryResult(
589
603
  allow_auto_merge=pulumi.get(__response__, 'allow_auto_merge'),
604
+ allow_forking=pulumi.get(__response__, 'allow_forking'),
590
605
  allow_merge_commit=pulumi.get(__response__, 'allow_merge_commit'),
591
606
  allow_rebase_merge=pulumi.get(__response__, 'allow_rebase_merge'),
592
607
  allow_squash_merge=pulumi.get(__response__, 'allow_squash_merge'),
pulumi_github/get_team.py CHANGED
@@ -27,7 +27,7 @@ class GetTeamResult:
27
27
  """
28
28
  A collection of values returned by getTeam.
29
29
  """
30
- def __init__(__self__, description=None, id=None, members=None, membership_type=None, name=None, node_id=None, permission=None, privacy=None, repositories=None, repositories_detaileds=None, results_per_page=None, slug=None, summary_only=None):
30
+ def __init__(__self__, description=None, id=None, members=None, membership_type=None, name=None, node_id=None, notification_setting=None, permission=None, privacy=None, repositories=None, repositories_detaileds=None, results_per_page=None, slug=None, summary_only=None):
31
31
  if description and not isinstance(description, str):
32
32
  raise TypeError("Expected argument 'description' to be a str")
33
33
  pulumi.set(__self__, "description", description)
@@ -46,6 +46,9 @@ class GetTeamResult:
46
46
  if node_id and not isinstance(node_id, str):
47
47
  raise TypeError("Expected argument 'node_id' to be a str")
48
48
  pulumi.set(__self__, "node_id", node_id)
49
+ if notification_setting and not isinstance(notification_setting, str):
50
+ raise TypeError("Expected argument 'notification_setting' to be a str")
51
+ pulumi.set(__self__, "notification_setting", notification_setting)
49
52
  if permission and not isinstance(permission, str):
50
53
  raise TypeError("Expected argument 'permission' to be a str")
51
54
  pulumi.set(__self__, "permission", permission)
@@ -72,7 +75,7 @@ class GetTeamResult:
72
75
  @pulumi.getter
73
76
  def description(self) -> _builtins.str:
74
77
  """
75
- the team's description.
78
+ Team's description.
76
79
  """
77
80
  return pulumi.get(self, "description")
78
81
 
@@ -88,7 +91,7 @@ class GetTeamResult:
88
91
  @pulumi.getter
89
92
  def members(self) -> Sequence[_builtins.str]:
90
93
  """
91
- List of team members (list of GitHub usernames). Not returned if `summary_only = true`
94
+ List of team members (list of GitHub usernames). Not returned if `summary_only = true`.
92
95
  """
93
96
  return pulumi.get(self, "members")
94
97
 
@@ -101,7 +104,7 @@ class GetTeamResult:
101
104
  @pulumi.getter
102
105
  def name(self) -> _builtins.str:
103
106
  """
104
- the team's full name.
107
+ Team's full name.
105
108
  """
106
109
  return pulumi.get(self, "name")
107
110
 
@@ -109,15 +112,24 @@ class GetTeamResult:
109
112
  @pulumi.getter(name="nodeId")
110
113
  def node_id(self) -> _builtins.str:
111
114
  """
112
- the Node ID of the team.
115
+ Node ID of the team.
113
116
  """
114
117
  return pulumi.get(self, "node_id")
115
118
 
119
+ @_builtins.property
120
+ @pulumi.getter(name="notificationSetting")
121
+ def notification_setting(self) -> _builtins.str:
122
+ """
123
+ Teams's notification setting. Can be either `notifications_enabled` or `notifications_disabled`.
124
+ """
125
+ return pulumi.get(self, "notification_setting")
126
+
116
127
  @_builtins.property
117
128
  @pulumi.getter
129
+ @_utilities.deprecated("""Closing down notice.""")
118
130
  def permission(self) -> _builtins.str:
119
131
  """
120
- the team's permission level.
132
+ (**DEPRECATED**) The permission that new repositories will be added to the team with when none is specified.
121
133
  """
122
134
  return pulumi.get(self, "permission")
123
135
 
@@ -125,7 +137,7 @@ class GetTeamResult:
125
137
  @pulumi.getter
126
138
  def privacy(self) -> _builtins.str:
127
139
  """
128
- the team's privacy type.
140
+ Team's privacy type. Can either be `closed` or `secret`.
129
141
  """
130
142
  return pulumi.get(self, "privacy")
131
143
 
@@ -134,7 +146,7 @@ class GetTeamResult:
134
146
  @_utilities.deprecated("""Use repositories_detailed instead.""")
135
147
  def repositories(self) -> Sequence[_builtins.str]:
136
148
  """
137
- (**DEPRECATED**) List of team repositories (list of repo names). Not returned if `summary_only = true`
149
+ (**DEPRECATED**) List of team repositories (list of repo names). Not returned if `summary_only = true`.
138
150
  """
139
151
  return pulumi.get(self, "repositories")
140
152
 
@@ -142,12 +154,13 @@ class GetTeamResult:
142
154
  @pulumi.getter(name="repositoriesDetaileds")
143
155
  def repositories_detaileds(self) -> Sequence['outputs.GetTeamRepositoriesDetailedResult']:
144
156
  """
145
- List of team repositories (each item comprises of `repo_id`, `repo_name` & `role_name`). Not returned if `summary_only = true`
157
+ List of team repositories (each item comprises of `repo_id`, `repo_name` & `role_name`). Not returned if `summary_only = true`.
146
158
  """
147
159
  return pulumi.get(self, "repositories_detaileds")
148
160
 
149
161
  @_builtins.property
150
162
  @pulumi.getter(name="resultsPerPage")
163
+ @_utilities.deprecated("""This is deprecated and will be removed in a future release.""")
151
164
  def results_per_page(self) -> Optional[_builtins.int]:
152
165
  return pulumi.get(self, "results_per_page")
153
166
 
@@ -174,6 +187,7 @@ class AwaitableGetTeamResult(GetTeamResult):
174
187
  membership_type=self.membership_type,
175
188
  name=self.name,
176
189
  node_id=self.node_id,
190
+ notification_setting=self.notification_setting,
177
191
  permission=self.permission,
178
192
  privacy=self.privacy,
179
193
  repositories=self.repositories,
@@ -201,8 +215,8 @@ def get_team(membership_type: Optional[_builtins.str] = None,
201
215
  ```
202
216
 
203
217
 
204
- :param _builtins.str membership_type: Type of membership to be requested to fill the list of members. Can be either "all" or "immediate". Default: "all"
205
- :param _builtins.int results_per_page: Set the number of results per graphql query. Reducing this number can alleviate timeout errors. Accepts a value between 0 - 100. Defaults to `100`.
218
+ :param _builtins.str membership_type: Type of membership to be requested to fill the list of members. Can be either `all` _(default)_ or `immediate`.
219
+ :param _builtins.int results_per_page: (Optional) Set the number of results per REST API query. Accepts a value between 0 - 100 _(defaults to `100`)_.
206
220
  :param _builtins.str slug: The team slug.
207
221
  :param _builtins.bool summary_only: Exclude the members and repositories of the team from the returned result. Defaults to `false`.
208
222
  """
@@ -221,6 +235,7 @@ def get_team(membership_type: Optional[_builtins.str] = None,
221
235
  membership_type=pulumi.get(__ret__, 'membership_type'),
222
236
  name=pulumi.get(__ret__, 'name'),
223
237
  node_id=pulumi.get(__ret__, 'node_id'),
238
+ notification_setting=pulumi.get(__ret__, 'notification_setting'),
224
239
  permission=pulumi.get(__ret__, 'permission'),
225
240
  privacy=pulumi.get(__ret__, 'privacy'),
226
241
  repositories=pulumi.get(__ret__, 'repositories'),
@@ -246,8 +261,8 @@ def get_team_output(membership_type: Optional[pulumi.Input[Optional[_builtins.st
246
261
  ```
247
262
 
248
263
 
249
- :param _builtins.str membership_type: Type of membership to be requested to fill the list of members. Can be either "all" or "immediate". Default: "all"
250
- :param _builtins.int results_per_page: Set the number of results per graphql query. Reducing this number can alleviate timeout errors. Accepts a value between 0 - 100. Defaults to `100`.
264
+ :param _builtins.str membership_type: Type of membership to be requested to fill the list of members. Can be either `all` _(default)_ or `immediate`.
265
+ :param _builtins.int results_per_page: (Optional) Set the number of results per REST API query. Accepts a value between 0 - 100 _(defaults to `100`)_.
251
266
  :param _builtins.str slug: The team slug.
252
267
  :param _builtins.bool summary_only: Exclude the members and repositories of the team from the returned result. Defaults to `false`.
253
268
  """
@@ -265,6 +280,7 @@ def get_team_output(membership_type: Optional[pulumi.Input[Optional[_builtins.st
265
280
  membership_type=pulumi.get(__response__, 'membership_type'),
266
281
  name=pulumi.get(__response__, 'name'),
267
282
  node_id=pulumi.get(__response__, 'node_id'),
283
+ notification_setting=pulumi.get(__response__, 'notification_setting'),
268
284
  permission=pulumi.get(__response__, 'permission'),
269
285
  privacy=pulumi.get(__response__, 'privacy'),
270
286
  repositories=pulumi.get(__response__, 'repositories'),