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__ = ['ActionsOrganizationVariableRepositoriesArgs', 'ActionsOrganizationVariableRepositories']
|
|
18
|
+
|
|
19
|
+
@pulumi.input_type
|
|
20
|
+
class ActionsOrganizationVariableRepositoriesArgs:
|
|
21
|
+
def __init__(__self__, *,
|
|
22
|
+
selected_repository_ids: pulumi.Input[Sequence[pulumi.Input[_builtins.int]]],
|
|
23
|
+
variable_name: pulumi.Input[_builtins.str]):
|
|
24
|
+
"""
|
|
25
|
+
The set of arguments for constructing a ActionsOrganizationVariableRepositories resource.
|
|
26
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.int]]] selected_repository_ids: List of IDs for the repositories that should be able to access the variable.
|
|
27
|
+
:param pulumi.Input[_builtins.str] variable_name: Name of the actions organization variable.
|
|
28
|
+
"""
|
|
29
|
+
pulumi.set(__self__, "selected_repository_ids", selected_repository_ids)
|
|
30
|
+
pulumi.set(__self__, "variable_name", variable_name)
|
|
31
|
+
|
|
32
|
+
@_builtins.property
|
|
33
|
+
@pulumi.getter(name="selectedRepositoryIds")
|
|
34
|
+
def selected_repository_ids(self) -> pulumi.Input[Sequence[pulumi.Input[_builtins.int]]]:
|
|
35
|
+
"""
|
|
36
|
+
List of IDs for the repositories that should be able to access the variable.
|
|
37
|
+
"""
|
|
38
|
+
return pulumi.get(self, "selected_repository_ids")
|
|
39
|
+
|
|
40
|
+
@selected_repository_ids.setter
|
|
41
|
+
def selected_repository_ids(self, value: pulumi.Input[Sequence[pulumi.Input[_builtins.int]]]):
|
|
42
|
+
pulumi.set(self, "selected_repository_ids", value)
|
|
43
|
+
|
|
44
|
+
@_builtins.property
|
|
45
|
+
@pulumi.getter(name="variableName")
|
|
46
|
+
def variable_name(self) -> pulumi.Input[_builtins.str]:
|
|
47
|
+
"""
|
|
48
|
+
Name of the actions organization variable.
|
|
49
|
+
"""
|
|
50
|
+
return pulumi.get(self, "variable_name")
|
|
51
|
+
|
|
52
|
+
@variable_name.setter
|
|
53
|
+
def variable_name(self, value: pulumi.Input[_builtins.str]):
|
|
54
|
+
pulumi.set(self, "variable_name", value)
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
@pulumi.input_type
|
|
58
|
+
class _ActionsOrganizationVariableRepositoriesState:
|
|
59
|
+
def __init__(__self__, *,
|
|
60
|
+
selected_repository_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.int]]]] = None,
|
|
61
|
+
variable_name: Optional[pulumi.Input[_builtins.str]] = None):
|
|
62
|
+
"""
|
|
63
|
+
Input properties used for looking up and filtering ActionsOrganizationVariableRepositories resources.
|
|
64
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.int]]] selected_repository_ids: List of IDs for the repositories that should be able to access the variable.
|
|
65
|
+
:param pulumi.Input[_builtins.str] variable_name: Name of the actions organization variable.
|
|
66
|
+
"""
|
|
67
|
+
if selected_repository_ids is not None:
|
|
68
|
+
pulumi.set(__self__, "selected_repository_ids", selected_repository_ids)
|
|
69
|
+
if variable_name is not None:
|
|
70
|
+
pulumi.set(__self__, "variable_name", variable_name)
|
|
71
|
+
|
|
72
|
+
@_builtins.property
|
|
73
|
+
@pulumi.getter(name="selectedRepositoryIds")
|
|
74
|
+
def selected_repository_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.int]]]]:
|
|
75
|
+
"""
|
|
76
|
+
List of IDs for the repositories that should be able to access the variable.
|
|
77
|
+
"""
|
|
78
|
+
return pulumi.get(self, "selected_repository_ids")
|
|
79
|
+
|
|
80
|
+
@selected_repository_ids.setter
|
|
81
|
+
def selected_repository_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.int]]]]):
|
|
82
|
+
pulumi.set(self, "selected_repository_ids", value)
|
|
83
|
+
|
|
84
|
+
@_builtins.property
|
|
85
|
+
@pulumi.getter(name="variableName")
|
|
86
|
+
def variable_name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
87
|
+
"""
|
|
88
|
+
Name of the actions organization variable.
|
|
89
|
+
"""
|
|
90
|
+
return pulumi.get(self, "variable_name")
|
|
91
|
+
|
|
92
|
+
@variable_name.setter
|
|
93
|
+
def variable_name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
94
|
+
pulumi.set(self, "variable_name", value)
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
@pulumi.type_token("github:index/actionsOrganizationVariableRepositories:ActionsOrganizationVariableRepositories")
|
|
98
|
+
class ActionsOrganizationVariableRepositories(pulumi.CustomResource):
|
|
99
|
+
@overload
|
|
100
|
+
def __init__(__self__,
|
|
101
|
+
resource_name: str,
|
|
102
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
103
|
+
selected_repository_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.int]]]] = None,
|
|
104
|
+
variable_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
105
|
+
__props__=None):
|
|
106
|
+
"""
|
|
107
|
+
This resource allows you to manage the repositories allowed to access an actions variable within your GitHub organization.
|
|
108
|
+
You must have write access to an organization variable to use this resource.
|
|
109
|
+
|
|
110
|
+
This resource is only applicable when `visibility` of the existing organization variable 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.ActionsOrganizationVariable("example",
|
|
119
|
+
variable_name="myvariable",
|
|
120
|
+
plaintext_value="foo",
|
|
121
|
+
visibility="selected")
|
|
122
|
+
example_repository = github.Repository("example",
|
|
123
|
+
name="myrepo",
|
|
124
|
+
visibility="public")
|
|
125
|
+
example_actions_organization_variable_repositories = github.ActionsOrganizationVariableRepositories("example",
|
|
126
|
+
variable_name=example.name,
|
|
127
|
+
selected_repository_ids=[example_repository.repo_id])
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
## Import
|
|
131
|
+
|
|
132
|
+
### Import Command
|
|
133
|
+
|
|
134
|
+
The following command imports the repositories able to access the actions organization variable named `myvariable` to a `github_actions_organization_variable_repositories` resource named `example`.
|
|
135
|
+
|
|
136
|
+
```sh
|
|
137
|
+
$ pulumi import github:index/actionsOrganizationVariableRepositories:ActionsOrganizationVariableRepositories example myvariable
|
|
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[Sequence[pulumi.Input[_builtins.int]]] selected_repository_ids: List of IDs for the repositories that should be able to access the variable.
|
|
143
|
+
:param pulumi.Input[_builtins.str] variable_name: Name of the actions organization variable.
|
|
144
|
+
"""
|
|
145
|
+
...
|
|
146
|
+
@overload
|
|
147
|
+
def __init__(__self__,
|
|
148
|
+
resource_name: str,
|
|
149
|
+
args: ActionsOrganizationVariableRepositoriesArgs,
|
|
150
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
151
|
+
"""
|
|
152
|
+
This resource allows you to manage the repositories allowed to access an actions variable within your GitHub organization.
|
|
153
|
+
You must have write access to an organization variable to use this resource.
|
|
154
|
+
|
|
155
|
+
This resource is only applicable when `visibility` of the existing organization variable 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.ActionsOrganizationVariable("example",
|
|
164
|
+
variable_name="myvariable",
|
|
165
|
+
plaintext_value="foo",
|
|
166
|
+
visibility="selected")
|
|
167
|
+
example_repository = github.Repository("example",
|
|
168
|
+
name="myrepo",
|
|
169
|
+
visibility="public")
|
|
170
|
+
example_actions_organization_variable_repositories = github.ActionsOrganizationVariableRepositories("example",
|
|
171
|
+
variable_name=example.name,
|
|
172
|
+
selected_repository_ids=[example_repository.repo_id])
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
## Import
|
|
176
|
+
|
|
177
|
+
### Import Command
|
|
178
|
+
|
|
179
|
+
The following command imports the repositories able to access the actions organization variable named `myvariable` to a `github_actions_organization_variable_repositories` resource named `example`.
|
|
180
|
+
|
|
181
|
+
```sh
|
|
182
|
+
$ pulumi import github:index/actionsOrganizationVariableRepositories:ActionsOrganizationVariableRepositories example myvariable
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
:param str resource_name: The name of the resource.
|
|
186
|
+
:param ActionsOrganizationVariableRepositoriesArgs 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(ActionsOrganizationVariableRepositoriesArgs, 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
|
+
selected_repository_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.int]]]] = None,
|
|
201
|
+
variable_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__ = ActionsOrganizationVariableRepositoriesArgs.__new__(ActionsOrganizationVariableRepositoriesArgs)
|
|
210
|
+
|
|
211
|
+
if selected_repository_ids is None and not opts.urn:
|
|
212
|
+
raise TypeError("Missing required property 'selected_repository_ids'")
|
|
213
|
+
__props__.__dict__["selected_repository_ids"] = selected_repository_ids
|
|
214
|
+
if variable_name is None and not opts.urn:
|
|
215
|
+
raise TypeError("Missing required property 'variable_name'")
|
|
216
|
+
__props__.__dict__["variable_name"] = variable_name
|
|
217
|
+
super(ActionsOrganizationVariableRepositories, __self__).__init__(
|
|
218
|
+
'github:index/actionsOrganizationVariableRepositories:ActionsOrganizationVariableRepositories',
|
|
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
|
+
selected_repository_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.int]]]] = None,
|
|
228
|
+
variable_name: Optional[pulumi.Input[_builtins.str]] = None) -> 'ActionsOrganizationVariableRepositories':
|
|
229
|
+
"""
|
|
230
|
+
Get an existing ActionsOrganizationVariableRepositories 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[Sequence[pulumi.Input[_builtins.int]]] selected_repository_ids: List of IDs for the repositories that should be able to access the variable.
|
|
237
|
+
:param pulumi.Input[_builtins.str] variable_name: Name of the actions organization variable.
|
|
238
|
+
"""
|
|
239
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
240
|
+
|
|
241
|
+
__props__ = _ActionsOrganizationVariableRepositoriesState.__new__(_ActionsOrganizationVariableRepositoriesState)
|
|
242
|
+
|
|
243
|
+
__props__.__dict__["selected_repository_ids"] = selected_repository_ids
|
|
244
|
+
__props__.__dict__["variable_name"] = variable_name
|
|
245
|
+
return ActionsOrganizationVariableRepositories(resource_name, opts=opts, __props__=__props__)
|
|
246
|
+
|
|
247
|
+
@_builtins.property
|
|
248
|
+
@pulumi.getter(name="selectedRepositoryIds")
|
|
249
|
+
def selected_repository_ids(self) -> pulumi.Output[Sequence[_builtins.int]]:
|
|
250
|
+
"""
|
|
251
|
+
List of IDs for the repositories that should be able to access the variable.
|
|
252
|
+
"""
|
|
253
|
+
return pulumi.get(self, "selected_repository_ids")
|
|
254
|
+
|
|
255
|
+
@_builtins.property
|
|
256
|
+
@pulumi.getter(name="variableName")
|
|
257
|
+
def variable_name(self) -> pulumi.Output[_builtins.str]:
|
|
258
|
+
"""
|
|
259
|
+
Name of the actions organization variable.
|
|
260
|
+
"""
|
|
261
|
+
return pulumi.get(self, "variable_name")
|
|
262
|
+
|
|
@@ -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__ = ['ActionsOrganizationVariableRepositoryArgs', 'ActionsOrganizationVariableRepository']
|
|
18
|
+
|
|
19
|
+
@pulumi.input_type
|
|
20
|
+
class ActionsOrganizationVariableRepositoryArgs:
|
|
21
|
+
def __init__(__self__, *,
|
|
22
|
+
repository_id: pulumi.Input[_builtins.int],
|
|
23
|
+
variable_name: pulumi.Input[_builtins.str]):
|
|
24
|
+
"""
|
|
25
|
+
The set of arguments for constructing a ActionsOrganizationVariableRepository resource.
|
|
26
|
+
:param pulumi.Input[_builtins.int] repository_id: ID of the repository that should be able to access the variable.
|
|
27
|
+
:param pulumi.Input[_builtins.str] variable_name: Name of the actions organization variable.
|
|
28
|
+
"""
|
|
29
|
+
pulumi.set(__self__, "repository_id", repository_id)
|
|
30
|
+
pulumi.set(__self__, "variable_name", variable_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 variable.
|
|
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="variableName")
|
|
46
|
+
def variable_name(self) -> pulumi.Input[_builtins.str]:
|
|
47
|
+
"""
|
|
48
|
+
Name of the actions organization variable.
|
|
49
|
+
"""
|
|
50
|
+
return pulumi.get(self, "variable_name")
|
|
51
|
+
|
|
52
|
+
@variable_name.setter
|
|
53
|
+
def variable_name(self, value: pulumi.Input[_builtins.str]):
|
|
54
|
+
pulumi.set(self, "variable_name", value)
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
@pulumi.input_type
|
|
58
|
+
class _ActionsOrganizationVariableRepositoryState:
|
|
59
|
+
def __init__(__self__, *,
|
|
60
|
+
repository_id: Optional[pulumi.Input[_builtins.int]] = None,
|
|
61
|
+
variable_name: Optional[pulumi.Input[_builtins.str]] = None):
|
|
62
|
+
"""
|
|
63
|
+
Input properties used for looking up and filtering ActionsOrganizationVariableRepository resources.
|
|
64
|
+
:param pulumi.Input[_builtins.int] repository_id: ID of the repository that should be able to access the variable.
|
|
65
|
+
:param pulumi.Input[_builtins.str] variable_name: Name of the actions organization variable.
|
|
66
|
+
"""
|
|
67
|
+
if repository_id is not None:
|
|
68
|
+
pulumi.set(__self__, "repository_id", repository_id)
|
|
69
|
+
if variable_name is not None:
|
|
70
|
+
pulumi.set(__self__, "variable_name", variable_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 variable.
|
|
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="variableName")
|
|
86
|
+
def variable_name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
87
|
+
"""
|
|
88
|
+
Name of the actions organization variable.
|
|
89
|
+
"""
|
|
90
|
+
return pulumi.get(self, "variable_name")
|
|
91
|
+
|
|
92
|
+
@variable_name.setter
|
|
93
|
+
def variable_name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
94
|
+
pulumi.set(self, "variable_name", value)
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
@pulumi.type_token("github:index/actionsOrganizationVariableRepository:ActionsOrganizationVariableRepository")
|
|
98
|
+
class ActionsOrganizationVariableRepository(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
|
+
variable_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
105
|
+
__props__=None):
|
|
106
|
+
"""
|
|
107
|
+
This resource adds permission for a repository to use an actions variables within your GitHub organization.
|
|
108
|
+
You must have write access to an organization variable to use this resource.
|
|
109
|
+
|
|
110
|
+
This resource is only applicable when `visibility` of the existing organization variable 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.ActionsOrganizationVariable("example",
|
|
119
|
+
variable_name="myvariable",
|
|
120
|
+
plaintext_value="foo",
|
|
121
|
+
visibility="selected")
|
|
122
|
+
example_repository = github.Repository("example",
|
|
123
|
+
name="myrepo",
|
|
124
|
+
visibility="public")
|
|
125
|
+
example_actions_organization_variable_repository = github.ActionsOrganizationVariableRepository("example",
|
|
126
|
+
variable_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 actions organization variable named `myvariable` to a `github_actions_organization_variable_repository` resource named `example`.
|
|
135
|
+
|
|
136
|
+
```sh
|
|
137
|
+
$ pulumi import github:index/actionsOrganizationVariableRepository:ActionsOrganizationVariableRepository example myvariable: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 variable.
|
|
143
|
+
:param pulumi.Input[_builtins.str] variable_name: Name of the actions organization variable.
|
|
144
|
+
"""
|
|
145
|
+
...
|
|
146
|
+
@overload
|
|
147
|
+
def __init__(__self__,
|
|
148
|
+
resource_name: str,
|
|
149
|
+
args: ActionsOrganizationVariableRepositoryArgs,
|
|
150
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
151
|
+
"""
|
|
152
|
+
This resource adds permission for a repository to use an actions variables within your GitHub organization.
|
|
153
|
+
You must have write access to an organization variable to use this resource.
|
|
154
|
+
|
|
155
|
+
This resource is only applicable when `visibility` of the existing organization variable 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.ActionsOrganizationVariable("example",
|
|
164
|
+
variable_name="myvariable",
|
|
165
|
+
plaintext_value="foo",
|
|
166
|
+
visibility="selected")
|
|
167
|
+
example_repository = github.Repository("example",
|
|
168
|
+
name="myrepo",
|
|
169
|
+
visibility="public")
|
|
170
|
+
example_actions_organization_variable_repository = github.ActionsOrganizationVariableRepository("example",
|
|
171
|
+
variable_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 actions organization variable named `myvariable` to a `github_actions_organization_variable_repository` resource named `example`.
|
|
180
|
+
|
|
181
|
+
```sh
|
|
182
|
+
$ pulumi import github:index/actionsOrganizationVariableRepository:ActionsOrganizationVariableRepository example myvariable:123456
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
:param str resource_name: The name of the resource.
|
|
186
|
+
:param ActionsOrganizationVariableRepositoryArgs 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(ActionsOrganizationVariableRepositoryArgs, 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
|
+
variable_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__ = ActionsOrganizationVariableRepositoryArgs.__new__(ActionsOrganizationVariableRepositoryArgs)
|
|
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 variable_name is None and not opts.urn:
|
|
215
|
+
raise TypeError("Missing required property 'variable_name'")
|
|
216
|
+
__props__.__dict__["variable_name"] = variable_name
|
|
217
|
+
super(ActionsOrganizationVariableRepository, __self__).__init__(
|
|
218
|
+
'github:index/actionsOrganizationVariableRepository:ActionsOrganizationVariableRepository',
|
|
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
|
+
variable_name: Optional[pulumi.Input[_builtins.str]] = None) -> 'ActionsOrganizationVariableRepository':
|
|
229
|
+
"""
|
|
230
|
+
Get an existing ActionsOrganizationVariableRepository 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 variable.
|
|
237
|
+
:param pulumi.Input[_builtins.str] variable_name: Name of the actions organization variable.
|
|
238
|
+
"""
|
|
239
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
240
|
+
|
|
241
|
+
__props__ = _ActionsOrganizationVariableRepositoryState.__new__(_ActionsOrganizationVariableRepositoryState)
|
|
242
|
+
|
|
243
|
+
__props__.__dict__["repository_id"] = repository_id
|
|
244
|
+
__props__.__dict__["variable_name"] = variable_name
|
|
245
|
+
return ActionsOrganizationVariableRepository(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 variable.
|
|
252
|
+
"""
|
|
253
|
+
return pulumi.get(self, "repository_id")
|
|
254
|
+
|
|
255
|
+
@_builtins.property
|
|
256
|
+
@pulumi.getter(name="variableName")
|
|
257
|
+
def variable_name(self) -> pulumi.Output[_builtins.str]:
|
|
258
|
+
"""
|
|
259
|
+
Name of the actions organization variable.
|
|
260
|
+
"""
|
|
261
|
+
return pulumi.get(self, "variable_name")
|
|
262
|
+
|