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.
- pulumi_github/__init__.py +37 -0
- pulumi_github/_inputs.py +527 -34
- pulumi_github/actions_environment_secret.py +141 -12
- pulumi_github/actions_environment_variable.py +73 -39
- pulumi_github/actions_organization_permissions.py +50 -3
- pulumi_github/actions_organization_secret.py +164 -55
- pulumi_github/actions_organization_secret_repositories.py +44 -28
- pulumi_github/actions_organization_secret_repository.py +44 -28
- pulumi_github/actions_organization_variable.py +44 -47
- pulumi_github/actions_organization_variable_repositories.py +262 -0
- pulumi_github/actions_organization_variable_repository.py +262 -0
- pulumi_github/actions_organization_workflow_permissions.py +320 -0
- pulumi_github/actions_repository_permissions.py +50 -3
- pulumi_github/actions_secret.py +176 -41
- pulumi_github/actions_variable.py +65 -33
- pulumi_github/app_installation_repositories.py +6 -6
- pulumi_github/app_installation_repository.py +6 -6
- pulumi_github/dependabot_organization_secret.py +128 -59
- pulumi_github/dependabot_organization_secret_repositories.py +44 -36
- pulumi_github/dependabot_organization_secret_repository.py +262 -0
- pulumi_github/dependabot_secret.py +154 -41
- pulumi_github/emu_group_mapping.py +62 -6
- pulumi_github/get_ip_ranges.py +3 -0
- pulumi_github/get_release_asset.py +370 -0
- pulumi_github/get_repository.py +17 -2
- pulumi_github/get_team.py +29 -13
- pulumi_github/organization_ruleset.py +11 -17
- pulumi_github/outputs.py +404 -25
- pulumi_github/pulumi-plugin.json +1 -1
- pulumi_github/repository.py +88 -23
- pulumi_github/repository_custom_property.py +2 -2
- pulumi_github/repository_environment.py +11 -11
- pulumi_github/repository_environment_deployment_policy.py +4 -4
- pulumi_github/repository_ruleset.py +7 -7
- pulumi_github/team.py +70 -21
- {pulumi_github-6.11.0a1768542226.dist-info → pulumi_github-6.12.0.dist-info}/METADATA +1 -1
- {pulumi_github-6.11.0a1768542226.dist-info → pulumi_github-6.12.0.dist-info}/RECORD +39 -34
- {pulumi_github-6.11.0a1768542226.dist-info → pulumi_github-6.12.0.dist-info}/WHEEL +1 -1
- {pulumi_github-6.11.0a1768542226.dist-info → pulumi_github-6.12.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,262 @@
|
|
|
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__ = ['DependabotOrganizationSecretRepositoryArgs', 'DependabotOrganizationSecretRepository']
|
|
18
|
+
|
|
19
|
+
@pulumi.input_type
|
|
20
|
+
class DependabotOrganizationSecretRepositoryArgs:
|
|
21
|
+
def __init__(__self__, *,
|
|
22
|
+
repository_id: pulumi.Input[_builtins.int],
|
|
23
|
+
secret_name: pulumi.Input[_builtins.str]):
|
|
24
|
+
"""
|
|
25
|
+
The set of arguments for constructing a DependabotOrganizationSecretRepository resource.
|
|
26
|
+
:param pulumi.Input[_builtins.int] repository_id: ID of the repository that should be able to access the secret.
|
|
27
|
+
:param pulumi.Input[_builtins.str] secret_name: Name of the Dependabot organization secret.
|
|
28
|
+
"""
|
|
29
|
+
pulumi.set(__self__, "repository_id", repository_id)
|
|
30
|
+
pulumi.set(__self__, "secret_name", secret_name)
|
|
31
|
+
|
|
32
|
+
@_builtins.property
|
|
33
|
+
@pulumi.getter(name="repositoryId")
|
|
34
|
+
def repository_id(self) -> pulumi.Input[_builtins.int]:
|
|
35
|
+
"""
|
|
36
|
+
ID of the repository that should be able to access the secret.
|
|
37
|
+
"""
|
|
38
|
+
return pulumi.get(self, "repository_id")
|
|
39
|
+
|
|
40
|
+
@repository_id.setter
|
|
41
|
+
def repository_id(self, value: pulumi.Input[_builtins.int]):
|
|
42
|
+
pulumi.set(self, "repository_id", value)
|
|
43
|
+
|
|
44
|
+
@_builtins.property
|
|
45
|
+
@pulumi.getter(name="secretName")
|
|
46
|
+
def secret_name(self) -> pulumi.Input[_builtins.str]:
|
|
47
|
+
"""
|
|
48
|
+
Name of the Dependabot organization secret.
|
|
49
|
+
"""
|
|
50
|
+
return pulumi.get(self, "secret_name")
|
|
51
|
+
|
|
52
|
+
@secret_name.setter
|
|
53
|
+
def secret_name(self, value: pulumi.Input[_builtins.str]):
|
|
54
|
+
pulumi.set(self, "secret_name", value)
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
@pulumi.input_type
|
|
58
|
+
class _DependabotOrganizationSecretRepositoryState:
|
|
59
|
+
def __init__(__self__, *,
|
|
60
|
+
repository_id: Optional[pulumi.Input[_builtins.int]] = None,
|
|
61
|
+
secret_name: Optional[pulumi.Input[_builtins.str]] = None):
|
|
62
|
+
"""
|
|
63
|
+
Input properties used for looking up and filtering DependabotOrganizationSecretRepository resources.
|
|
64
|
+
:param pulumi.Input[_builtins.int] repository_id: ID of the repository that should be able to access the secret.
|
|
65
|
+
:param pulumi.Input[_builtins.str] secret_name: Name of the Dependabot organization secret.
|
|
66
|
+
"""
|
|
67
|
+
if repository_id is not None:
|
|
68
|
+
pulumi.set(__self__, "repository_id", repository_id)
|
|
69
|
+
if secret_name is not None:
|
|
70
|
+
pulumi.set(__self__, "secret_name", secret_name)
|
|
71
|
+
|
|
72
|
+
@_builtins.property
|
|
73
|
+
@pulumi.getter(name="repositoryId")
|
|
74
|
+
def repository_id(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
75
|
+
"""
|
|
76
|
+
ID of the repository that should be able to access the secret.
|
|
77
|
+
"""
|
|
78
|
+
return pulumi.get(self, "repository_id")
|
|
79
|
+
|
|
80
|
+
@repository_id.setter
|
|
81
|
+
def repository_id(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
82
|
+
pulumi.set(self, "repository_id", value)
|
|
83
|
+
|
|
84
|
+
@_builtins.property
|
|
85
|
+
@pulumi.getter(name="secretName")
|
|
86
|
+
def secret_name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
87
|
+
"""
|
|
88
|
+
Name of the Dependabot organization secret.
|
|
89
|
+
"""
|
|
90
|
+
return pulumi.get(self, "secret_name")
|
|
91
|
+
|
|
92
|
+
@secret_name.setter
|
|
93
|
+
def secret_name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
94
|
+
pulumi.set(self, "secret_name", value)
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
@pulumi.type_token("github:index/dependabotOrganizationSecretRepository:DependabotOrganizationSecretRepository")
|
|
98
|
+
class DependabotOrganizationSecretRepository(pulumi.CustomResource):
|
|
99
|
+
@overload
|
|
100
|
+
def __init__(__self__,
|
|
101
|
+
resource_name: str,
|
|
102
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
103
|
+
repository_id: Optional[pulumi.Input[_builtins.int]] = None,
|
|
104
|
+
secret_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
105
|
+
__props__=None):
|
|
106
|
+
"""
|
|
107
|
+
This resource adds permission for a repository to use a Dependabot secret within your GitHub organization.
|
|
108
|
+
You must have write access to an organization secret to use this resource.
|
|
109
|
+
|
|
110
|
+
This resource is only applicable when `visibility` of the existing organization secret has been set to `selected`.
|
|
111
|
+
|
|
112
|
+
## Example Usage
|
|
113
|
+
|
|
114
|
+
```python
|
|
115
|
+
import pulumi
|
|
116
|
+
import pulumi_github as github
|
|
117
|
+
|
|
118
|
+
example = github.DependabotOrganizationSecret("example",
|
|
119
|
+
secret_name="mysecret",
|
|
120
|
+
plaintext_value="foo",
|
|
121
|
+
visibility="selected")
|
|
122
|
+
example_repository = github.Repository("example",
|
|
123
|
+
name="myrepo",
|
|
124
|
+
visibility="public")
|
|
125
|
+
example_dependabot_organization_secret_repository = github.DependabotOrganizationSecretRepository("example",
|
|
126
|
+
secret_name=example.name,
|
|
127
|
+
repository_id=example_repository.repo_id)
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
## Import
|
|
131
|
+
|
|
132
|
+
### Import Command
|
|
133
|
+
|
|
134
|
+
The following command imports the access of repository ID `123456` for the Dependabot organization secret named `mysecret` to a `v` resource named `example`.
|
|
135
|
+
|
|
136
|
+
```sh
|
|
137
|
+
$ pulumi import github:index/dependabotOrganizationSecretRepository:DependabotOrganizationSecretRepository example mysecret:123456
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
:param str resource_name: The name of the resource.
|
|
141
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
142
|
+
:param pulumi.Input[_builtins.int] repository_id: ID of the repository that should be able to access the secret.
|
|
143
|
+
:param pulumi.Input[_builtins.str] secret_name: Name of the Dependabot organization secret.
|
|
144
|
+
"""
|
|
145
|
+
...
|
|
146
|
+
@overload
|
|
147
|
+
def __init__(__self__,
|
|
148
|
+
resource_name: str,
|
|
149
|
+
args: DependabotOrganizationSecretRepositoryArgs,
|
|
150
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
151
|
+
"""
|
|
152
|
+
This resource adds permission for a repository to use a Dependabot secret within your GitHub organization.
|
|
153
|
+
You must have write access to an organization secret to use this resource.
|
|
154
|
+
|
|
155
|
+
This resource is only applicable when `visibility` of the existing organization secret has been set to `selected`.
|
|
156
|
+
|
|
157
|
+
## Example Usage
|
|
158
|
+
|
|
159
|
+
```python
|
|
160
|
+
import pulumi
|
|
161
|
+
import pulumi_github as github
|
|
162
|
+
|
|
163
|
+
example = github.DependabotOrganizationSecret("example",
|
|
164
|
+
secret_name="mysecret",
|
|
165
|
+
plaintext_value="foo",
|
|
166
|
+
visibility="selected")
|
|
167
|
+
example_repository = github.Repository("example",
|
|
168
|
+
name="myrepo",
|
|
169
|
+
visibility="public")
|
|
170
|
+
example_dependabot_organization_secret_repository = github.DependabotOrganizationSecretRepository("example",
|
|
171
|
+
secret_name=example.name,
|
|
172
|
+
repository_id=example_repository.repo_id)
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
## Import
|
|
176
|
+
|
|
177
|
+
### Import Command
|
|
178
|
+
|
|
179
|
+
The following command imports the access of repository ID `123456` for the Dependabot organization secret named `mysecret` to a `v` resource named `example`.
|
|
180
|
+
|
|
181
|
+
```sh
|
|
182
|
+
$ pulumi import github:index/dependabotOrganizationSecretRepository:DependabotOrganizationSecretRepository example mysecret:123456
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
:param str resource_name: The name of the resource.
|
|
186
|
+
:param DependabotOrganizationSecretRepositoryArgs args: The arguments to use to populate this resource's properties.
|
|
187
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
188
|
+
"""
|
|
189
|
+
...
|
|
190
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
191
|
+
resource_args, opts = _utilities.get_resource_args_opts(DependabotOrganizationSecretRepositoryArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
192
|
+
if resource_args is not None:
|
|
193
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
194
|
+
else:
|
|
195
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
196
|
+
|
|
197
|
+
def _internal_init(__self__,
|
|
198
|
+
resource_name: str,
|
|
199
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
200
|
+
repository_id: Optional[pulumi.Input[_builtins.int]] = None,
|
|
201
|
+
secret_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
202
|
+
__props__=None):
|
|
203
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
204
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
205
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
206
|
+
if opts.id is None:
|
|
207
|
+
if __props__ is not None:
|
|
208
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
209
|
+
__props__ = DependabotOrganizationSecretRepositoryArgs.__new__(DependabotOrganizationSecretRepositoryArgs)
|
|
210
|
+
|
|
211
|
+
if repository_id is None and not opts.urn:
|
|
212
|
+
raise TypeError("Missing required property 'repository_id'")
|
|
213
|
+
__props__.__dict__["repository_id"] = repository_id
|
|
214
|
+
if secret_name is None and not opts.urn:
|
|
215
|
+
raise TypeError("Missing required property 'secret_name'")
|
|
216
|
+
__props__.__dict__["secret_name"] = secret_name
|
|
217
|
+
super(DependabotOrganizationSecretRepository, __self__).__init__(
|
|
218
|
+
'github:index/dependabotOrganizationSecretRepository:DependabotOrganizationSecretRepository',
|
|
219
|
+
resource_name,
|
|
220
|
+
__props__,
|
|
221
|
+
opts)
|
|
222
|
+
|
|
223
|
+
@staticmethod
|
|
224
|
+
def get(resource_name: str,
|
|
225
|
+
id: pulumi.Input[str],
|
|
226
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
227
|
+
repository_id: Optional[pulumi.Input[_builtins.int]] = None,
|
|
228
|
+
secret_name: Optional[pulumi.Input[_builtins.str]] = None) -> 'DependabotOrganizationSecretRepository':
|
|
229
|
+
"""
|
|
230
|
+
Get an existing DependabotOrganizationSecretRepository resource's state with the given name, id, and optional extra
|
|
231
|
+
properties used to qualify the lookup.
|
|
232
|
+
|
|
233
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
234
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
235
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
236
|
+
:param pulumi.Input[_builtins.int] repository_id: ID of the repository that should be able to access the secret.
|
|
237
|
+
:param pulumi.Input[_builtins.str] secret_name: Name of the Dependabot organization secret.
|
|
238
|
+
"""
|
|
239
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
240
|
+
|
|
241
|
+
__props__ = _DependabotOrganizationSecretRepositoryState.__new__(_DependabotOrganizationSecretRepositoryState)
|
|
242
|
+
|
|
243
|
+
__props__.__dict__["repository_id"] = repository_id
|
|
244
|
+
__props__.__dict__["secret_name"] = secret_name
|
|
245
|
+
return DependabotOrganizationSecretRepository(resource_name, opts=opts, __props__=__props__)
|
|
246
|
+
|
|
247
|
+
@_builtins.property
|
|
248
|
+
@pulumi.getter(name="repositoryId")
|
|
249
|
+
def repository_id(self) -> pulumi.Output[_builtins.int]:
|
|
250
|
+
"""
|
|
251
|
+
ID of the repository that should be able to access the secret.
|
|
252
|
+
"""
|
|
253
|
+
return pulumi.get(self, "repository_id")
|
|
254
|
+
|
|
255
|
+
@_builtins.property
|
|
256
|
+
@pulumi.getter(name="secretName")
|
|
257
|
+
def secret_name(self) -> pulumi.Output[_builtins.str]:
|
|
258
|
+
"""
|
|
259
|
+
Name of the Dependabot organization secret.
|
|
260
|
+
"""
|
|
261
|
+
return pulumi.get(self, "secret_name")
|
|
262
|
+
|