pulumi-github 6.11.0a1768966924__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 (31) hide show
  1. pulumi_github/__init__.py +28 -0
  2. pulumi_github/_inputs.py +324 -19
  3. pulumi_github/actions_environment_secret.py +141 -12
  4. pulumi_github/actions_environment_variable.py +71 -37
  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_repository_permissions.py +50 -3
  13. pulumi_github/actions_secret.py +176 -41
  14. pulumi_github/actions_variable.py +65 -33
  15. pulumi_github/app_installation_repositories.py +6 -6
  16. pulumi_github/app_installation_repository.py +6 -6
  17. pulumi_github/dependabot_organization_secret.py +128 -59
  18. pulumi_github/dependabot_organization_secret_repositories.py +44 -36
  19. pulumi_github/dependabot_organization_secret_repository.py +262 -0
  20. pulumi_github/dependabot_secret.py +154 -41
  21. pulumi_github/emu_group_mapping.py +64 -4
  22. pulumi_github/get_release_asset.py +370 -0
  23. pulumi_github/organization_ruleset.py +11 -17
  24. pulumi_github/outputs.py +234 -13
  25. pulumi_github/pulumi-plugin.json +1 -1
  26. pulumi_github/repository.py +32 -27
  27. pulumi_github/repository_ruleset.py +7 -7
  28. {pulumi_github-6.11.0a1768966924.dist-info → pulumi_github-6.12.0.dist-info}/METADATA +1 -1
  29. {pulumi_github-6.11.0a1768966924.dist-info → pulumi_github-6.12.0.dist-info}/RECORD +31 -27
  30. {pulumi_github-6.11.0a1768966924.dist-info → pulumi_github-6.12.0.dist-info}/WHEEL +1 -1
  31. {pulumi_github-6.11.0a1768966924.dist-info → pulumi_github-6.12.0.dist-info}/top_level.txt +0 -0
@@ -23,8 +23,8 @@ class ActionsOrganizationSecretRepositoriesArgs:
23
23
  selected_repository_ids: pulumi.Input[Sequence[pulumi.Input[_builtins.int]]]):
24
24
  """
25
25
  The set of arguments for constructing a ActionsOrganizationSecretRepositories resource.
26
- :param pulumi.Input[_builtins.str] secret_name: Name of the existing secret
27
- :param pulumi.Input[Sequence[pulumi.Input[_builtins.int]]] selected_repository_ids: An array of repository ids that can access the organization secret.
26
+ :param pulumi.Input[_builtins.str] secret_name: Name of the actions organization secret.
27
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.int]]] selected_repository_ids: List of IDs for the repositories that should be able to access the secret.
28
28
  """
29
29
  pulumi.set(__self__, "secret_name", secret_name)
30
30
  pulumi.set(__self__, "selected_repository_ids", selected_repository_ids)
@@ -33,7 +33,7 @@ class ActionsOrganizationSecretRepositoriesArgs:
33
33
  @pulumi.getter(name="secretName")
34
34
  def secret_name(self) -> pulumi.Input[_builtins.str]:
35
35
  """
36
- Name of the existing secret
36
+ Name of the actions organization secret.
37
37
  """
38
38
  return pulumi.get(self, "secret_name")
39
39
 
@@ -45,7 +45,7 @@ class ActionsOrganizationSecretRepositoriesArgs:
45
45
  @pulumi.getter(name="selectedRepositoryIds")
46
46
  def selected_repository_ids(self) -> pulumi.Input[Sequence[pulumi.Input[_builtins.int]]]:
47
47
  """
48
- An array of repository ids that can access the organization secret.
48
+ List of IDs for the repositories that should be able to access the secret.
49
49
  """
50
50
  return pulumi.get(self, "selected_repository_ids")
51
51
 
@@ -61,8 +61,8 @@ class _ActionsOrganizationSecretRepositoriesState:
61
61
  selected_repository_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.int]]]] = None):
62
62
  """
63
63
  Input properties used for looking up and filtering ActionsOrganizationSecretRepositories resources.
64
- :param pulumi.Input[_builtins.str] secret_name: Name of the existing secret
65
- :param pulumi.Input[Sequence[pulumi.Input[_builtins.int]]] selected_repository_ids: An array of repository ids that can access the organization secret.
64
+ :param pulumi.Input[_builtins.str] secret_name: Name of the actions organization secret.
65
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.int]]] selected_repository_ids: List of IDs for the repositories that should be able to access the secret.
66
66
  """
67
67
  if secret_name is not None:
68
68
  pulumi.set(__self__, "secret_name", secret_name)
@@ -73,7 +73,7 @@ class _ActionsOrganizationSecretRepositoriesState:
73
73
  @pulumi.getter(name="secretName")
74
74
  def secret_name(self) -> Optional[pulumi.Input[_builtins.str]]:
75
75
  """
76
- Name of the existing secret
76
+ Name of the actions organization secret.
77
77
  """
78
78
  return pulumi.get(self, "secret_name")
79
79
 
@@ -85,7 +85,7 @@ class _ActionsOrganizationSecretRepositoriesState:
85
85
  @pulumi.getter(name="selectedRepositoryIds")
86
86
  def selected_repository_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.int]]]]:
87
87
  """
88
- An array of repository ids that can access the organization secret.
88
+ List of IDs for the repositories that should be able to access the secret.
89
89
  """
90
90
  return pulumi.get(self, "selected_repository_ids")
91
91
 
@@ -104,7 +104,7 @@ class ActionsOrganizationSecretRepositories(pulumi.CustomResource):
104
104
  selected_repository_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.int]]]] = None,
105
105
  __props__=None):
106
106
  """
107
- This resource allows you to manage repository allow list for existing GitHub Actions secrets within your GitHub organization.
107
+ This resource allows you to manage the repositories allowed to access an actions secret within your GitHub organization.
108
108
  You must have write access to an organization secret to use this resource.
109
109
 
110
110
  This resource is only applicable when `visibility` of the existing organization secret has been set to `selected`.
@@ -115,24 +115,32 @@ class ActionsOrganizationSecretRepositories(pulumi.CustomResource):
115
115
  import pulumi
116
116
  import pulumi_github as github
117
117
 
118
- repo = github.get_repository(full_name="my-org/repo")
119
- org_secret_repos = github.ActionsOrganizationSecretRepositories("org_secret_repos",
120
- secret_name="existing_secret_name",
121
- selected_repository_ids=[repo.repo_id])
118
+ example = github.ActionsOrganizationSecret("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_actions_organization_secret_repositories = github.ActionsOrganizationSecretRepositories("example",
126
+ secret_name=example.name,
127
+ selected_repository_ids=[example_repository.repo_id])
122
128
  ```
123
129
 
124
130
  ## Import
125
131
 
126
- This resource can be imported using an ID made up of the secret name:
132
+ ### Import Command
133
+
134
+ The following command imports the repositories able to access the actions organization secret named `mysecret` to a `github_actions_organization_secret_repositories` resource named `example`.
127
135
 
128
136
  ```sh
129
- $ pulumi import github:index/actionsOrganizationSecretRepositories:ActionsOrganizationSecretRepositories test_secret_repos test_secret_name
137
+ $ pulumi import github:index/actionsOrganizationSecretRepositories:ActionsOrganizationSecretRepositories example mysecret
130
138
  ```
131
139
 
132
140
  :param str resource_name: The name of the resource.
133
141
  :param pulumi.ResourceOptions opts: Options for the resource.
134
- :param pulumi.Input[_builtins.str] secret_name: Name of the existing secret
135
- :param pulumi.Input[Sequence[pulumi.Input[_builtins.int]]] selected_repository_ids: An array of repository ids that can access the organization secret.
142
+ :param pulumi.Input[_builtins.str] secret_name: Name of the actions organization secret.
143
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.int]]] selected_repository_ids: List of IDs for the repositories that should be able to access the secret.
136
144
  """
137
145
  ...
138
146
  @overload
@@ -141,7 +149,7 @@ class ActionsOrganizationSecretRepositories(pulumi.CustomResource):
141
149
  args: ActionsOrganizationSecretRepositoriesArgs,
142
150
  opts: Optional[pulumi.ResourceOptions] = None):
143
151
  """
144
- This resource allows you to manage repository allow list for existing GitHub Actions secrets within your GitHub organization.
152
+ This resource allows you to manage the repositories allowed to access an actions secret within your GitHub organization.
145
153
  You must have write access to an organization secret to use this resource.
146
154
 
147
155
  This resource is only applicable when `visibility` of the existing organization secret has been set to `selected`.
@@ -152,18 +160,26 @@ class ActionsOrganizationSecretRepositories(pulumi.CustomResource):
152
160
  import pulumi
153
161
  import pulumi_github as github
154
162
 
155
- repo = github.get_repository(full_name="my-org/repo")
156
- org_secret_repos = github.ActionsOrganizationSecretRepositories("org_secret_repos",
157
- secret_name="existing_secret_name",
158
- selected_repository_ids=[repo.repo_id])
163
+ example = github.ActionsOrganizationSecret("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_actions_organization_secret_repositories = github.ActionsOrganizationSecretRepositories("example",
171
+ secret_name=example.name,
172
+ selected_repository_ids=[example_repository.repo_id])
159
173
  ```
160
174
 
161
175
  ## Import
162
176
 
163
- This resource can be imported using an ID made up of the secret name:
177
+ ### Import Command
178
+
179
+ The following command imports the repositories able to access the actions organization secret named `mysecret` to a `github_actions_organization_secret_repositories` resource named `example`.
164
180
 
165
181
  ```sh
166
- $ pulumi import github:index/actionsOrganizationSecretRepositories:ActionsOrganizationSecretRepositories test_secret_repos test_secret_name
182
+ $ pulumi import github:index/actionsOrganizationSecretRepositories:ActionsOrganizationSecretRepositories example mysecret
167
183
  ```
168
184
 
169
185
  :param str resource_name: The name of the resource.
@@ -217,8 +233,8 @@ class ActionsOrganizationSecretRepositories(pulumi.CustomResource):
217
233
  :param str resource_name: The unique name of the resulting resource.
218
234
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
219
235
  :param pulumi.ResourceOptions opts: Options for the resource.
220
- :param pulumi.Input[_builtins.str] secret_name: Name of the existing secret
221
- :param pulumi.Input[Sequence[pulumi.Input[_builtins.int]]] selected_repository_ids: An array of repository ids that can access the organization secret.
236
+ :param pulumi.Input[_builtins.str] secret_name: Name of the actions organization secret.
237
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.int]]] selected_repository_ids: List of IDs for the repositories that should be able to access the secret.
222
238
  """
223
239
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
224
240
 
@@ -232,7 +248,7 @@ class ActionsOrganizationSecretRepositories(pulumi.CustomResource):
232
248
  @pulumi.getter(name="secretName")
233
249
  def secret_name(self) -> pulumi.Output[_builtins.str]:
234
250
  """
235
- Name of the existing secret
251
+ Name of the actions organization secret.
236
252
  """
237
253
  return pulumi.get(self, "secret_name")
238
254
 
@@ -240,7 +256,7 @@ class ActionsOrganizationSecretRepositories(pulumi.CustomResource):
240
256
  @pulumi.getter(name="selectedRepositoryIds")
241
257
  def selected_repository_ids(self) -> pulumi.Output[Sequence[_builtins.int]]:
242
258
  """
243
- An array of repository ids that can access the organization secret.
259
+ List of IDs for the repositories that should be able to access the secret.
244
260
  """
245
261
  return pulumi.get(self, "selected_repository_ids")
246
262
 
@@ -23,8 +23,8 @@ class ActionsOrganizationSecretRepositoryArgs:
23
23
  secret_name: pulumi.Input[_builtins.str]):
24
24
  """
25
25
  The set of arguments for constructing a ActionsOrganizationSecretRepository resource.
26
- :param pulumi.Input[_builtins.int] repository_id: Repository id that can access the organization secret.
27
- :param pulumi.Input[_builtins.str] secret_name: Name of the existing secret
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 actions organization secret.
28
28
  """
29
29
  pulumi.set(__self__, "repository_id", repository_id)
30
30
  pulumi.set(__self__, "secret_name", secret_name)
@@ -33,7 +33,7 @@ class ActionsOrganizationSecretRepositoryArgs:
33
33
  @pulumi.getter(name="repositoryId")
34
34
  def repository_id(self) -> pulumi.Input[_builtins.int]:
35
35
  """
36
- Repository id that can access the organization secret.
36
+ ID of the repository that should be able to access the secret.
37
37
  """
38
38
  return pulumi.get(self, "repository_id")
39
39
 
@@ -45,7 +45,7 @@ class ActionsOrganizationSecretRepositoryArgs:
45
45
  @pulumi.getter(name="secretName")
46
46
  def secret_name(self) -> pulumi.Input[_builtins.str]:
47
47
  """
48
- Name of the existing secret
48
+ Name of the actions organization secret.
49
49
  """
50
50
  return pulumi.get(self, "secret_name")
51
51
 
@@ -61,8 +61,8 @@ class _ActionsOrganizationSecretRepositoryState:
61
61
  secret_name: Optional[pulumi.Input[_builtins.str]] = None):
62
62
  """
63
63
  Input properties used for looking up and filtering ActionsOrganizationSecretRepository resources.
64
- :param pulumi.Input[_builtins.int] repository_id: Repository id that can access the organization secret.
65
- :param pulumi.Input[_builtins.str] secret_name: Name of the existing secret
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 actions organization secret.
66
66
  """
67
67
  if repository_id is not None:
68
68
  pulumi.set(__self__, "repository_id", repository_id)
@@ -73,7 +73,7 @@ class _ActionsOrganizationSecretRepositoryState:
73
73
  @pulumi.getter(name="repositoryId")
74
74
  def repository_id(self) -> Optional[pulumi.Input[_builtins.int]]:
75
75
  """
76
- Repository id that can access the organization secret.
76
+ ID of the repository that should be able to access the secret.
77
77
  """
78
78
  return pulumi.get(self, "repository_id")
79
79
 
@@ -85,7 +85,7 @@ class _ActionsOrganizationSecretRepositoryState:
85
85
  @pulumi.getter(name="secretName")
86
86
  def secret_name(self) -> Optional[pulumi.Input[_builtins.str]]:
87
87
  """
88
- Name of the existing secret
88
+ Name of the actions organization secret.
89
89
  """
90
90
  return pulumi.get(self, "secret_name")
91
91
 
@@ -104,7 +104,7 @@ class ActionsOrganizationSecretRepository(pulumi.CustomResource):
104
104
  secret_name: Optional[pulumi.Input[_builtins.str]] = None,
105
105
  __props__=None):
106
106
  """
107
- This resource help you to allow/unallow a repository to use an existing GitHub Actions secrets within your GitHub organization.
107
+ This resource adds permission for a repository to use an actions secret within your GitHub organization.
108
108
  You must have write access to an organization secret to use this resource.
109
109
 
110
110
  This resource is only applicable when `visibility` of the existing organization secret has been set to `selected`.
@@ -115,24 +115,32 @@ class ActionsOrganizationSecretRepository(pulumi.CustomResource):
115
115
  import pulumi
116
116
  import pulumi_github as github
117
117
 
118
- repo = github.get_repository(full_name="my-org/repo")
119
- org_secret_repos = github.ActionsOrganizationSecretRepository("org_secret_repos",
120
- secret_name="EXAMPLE_SECRET_NAME",
121
- repository_id=repo_github_repository["repoId"])
118
+ example = github.ActionsOrganizationSecret("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_actions_organization_secret_repository = github.ActionsOrganizationSecretRepository("example",
126
+ secret_name=example.name,
127
+ repository_id=example_repository.repo_id)
122
128
  ```
123
129
 
124
130
  ## Import
125
131
 
126
- This resource can be imported using an ID made up of the secret name:
132
+ ### Import Command
133
+
134
+ The following command imports the access of repository ID `123456` for the actions organization secret named `mysecret` to a `github_actions_organization_secret_repository` resource named `example`.
127
135
 
128
136
  ```sh
129
- $ pulumi import github:index/actionsOrganizationSecretRepository:ActionsOrganizationSecretRepository test_secret_repos test_secret_name:repo_id
137
+ $ pulumi import github:index/actionsOrganizationSecretRepository:ActionsOrganizationSecretRepository example mysecret:123456
130
138
  ```
131
139
 
132
140
  :param str resource_name: The name of the resource.
133
141
  :param pulumi.ResourceOptions opts: Options for the resource.
134
- :param pulumi.Input[_builtins.int] repository_id: Repository id that can access the organization secret.
135
- :param pulumi.Input[_builtins.str] secret_name: Name of the existing secret
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 actions organization secret.
136
144
  """
137
145
  ...
138
146
  @overload
@@ -141,7 +149,7 @@ class ActionsOrganizationSecretRepository(pulumi.CustomResource):
141
149
  args: ActionsOrganizationSecretRepositoryArgs,
142
150
  opts: Optional[pulumi.ResourceOptions] = None):
143
151
  """
144
- This resource help you to allow/unallow a repository to use an existing GitHub Actions secrets within your GitHub organization.
152
+ This resource adds permission for a repository to use an actions secret within your GitHub organization.
145
153
  You must have write access to an organization secret to use this resource.
146
154
 
147
155
  This resource is only applicable when `visibility` of the existing organization secret has been set to `selected`.
@@ -152,18 +160,26 @@ class ActionsOrganizationSecretRepository(pulumi.CustomResource):
152
160
  import pulumi
153
161
  import pulumi_github as github
154
162
 
155
- repo = github.get_repository(full_name="my-org/repo")
156
- org_secret_repos = github.ActionsOrganizationSecretRepository("org_secret_repos",
157
- secret_name="EXAMPLE_SECRET_NAME",
158
- repository_id=repo_github_repository["repoId"])
163
+ example = github.ActionsOrganizationSecret("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_actions_organization_secret_repository = github.ActionsOrganizationSecretRepository("example",
171
+ secret_name=example.name,
172
+ repository_id=example_repository.repo_id)
159
173
  ```
160
174
 
161
175
  ## Import
162
176
 
163
- This resource can be imported using an ID made up of the secret name:
177
+ ### Import Command
178
+
179
+ The following command imports the access of repository ID `123456` for the actions organization secret named `mysecret` to a `github_actions_organization_secret_repository` resource named `example`.
164
180
 
165
181
  ```sh
166
- $ pulumi import github:index/actionsOrganizationSecretRepository:ActionsOrganizationSecretRepository test_secret_repos test_secret_name:repo_id
182
+ $ pulumi import github:index/actionsOrganizationSecretRepository:ActionsOrganizationSecretRepository example mysecret:123456
167
183
  ```
168
184
 
169
185
  :param str resource_name: The name of the resource.
@@ -217,8 +233,8 @@ class ActionsOrganizationSecretRepository(pulumi.CustomResource):
217
233
  :param str resource_name: The unique name of the resulting resource.
218
234
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
219
235
  :param pulumi.ResourceOptions opts: Options for the resource.
220
- :param pulumi.Input[_builtins.int] repository_id: Repository id that can access the organization secret.
221
- :param pulumi.Input[_builtins.str] secret_name: Name of the existing secret
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 actions organization secret.
222
238
  """
223
239
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
224
240
 
@@ -232,7 +248,7 @@ class ActionsOrganizationSecretRepository(pulumi.CustomResource):
232
248
  @pulumi.getter(name="repositoryId")
233
249
  def repository_id(self) -> pulumi.Output[_builtins.int]:
234
250
  """
235
- Repository id that can access the organization secret.
251
+ ID of the repository that should be able to access the secret.
236
252
  """
237
253
  return pulumi.get(self, "repository_id")
238
254
 
@@ -240,7 +256,7 @@ class ActionsOrganizationSecretRepository(pulumi.CustomResource):
240
256
  @pulumi.getter(name="secretName")
241
257
  def secret_name(self) -> pulumi.Output[_builtins.str]:
242
258
  """
243
- Name of the existing secret
259
+ Name of the actions organization secret.
244
260
  """
245
261
  return pulumi.get(self, "secret_name")
246
262
 
@@ -25,11 +25,10 @@ class ActionsOrganizationVariableArgs:
25
25
  selected_repository_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.int]]]] = None):
26
26
  """
27
27
  The set of arguments for constructing a ActionsOrganizationVariable resource.
28
- :param pulumi.Input[_builtins.str] value: Value of the variable
29
- :param pulumi.Input[_builtins.str] variable_name: Name of the variable
30
- :param pulumi.Input[_builtins.str] visibility: Configures the access that repositories have to the organization variable.
31
- Must be one of `all`, `private`, `selected`. `selected_repository_ids` is required if set to `selected`.
32
- :param pulumi.Input[Sequence[pulumi.Input[_builtins.int]]] selected_repository_ids: An array of repository ids that can access the organization variable.
28
+ :param pulumi.Input[_builtins.str] value: Value of the variable.
29
+ :param pulumi.Input[_builtins.str] variable_name: Name of the variable.
30
+ :param pulumi.Input[_builtins.str] visibility: Configures the access that repositories have to the organization variable; must be one of `all`, `private`, or `selected`.
31
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.int]]] selected_repository_ids: An array of repository IDs that can access the organization variable; this requires `visibility` to be set to `selected`.
33
32
  """
34
33
  pulumi.set(__self__, "value", value)
35
34
  pulumi.set(__self__, "variable_name", variable_name)
@@ -41,7 +40,7 @@ class ActionsOrganizationVariableArgs:
41
40
  @pulumi.getter
42
41
  def value(self) -> pulumi.Input[_builtins.str]:
43
42
  """
44
- Value of the variable
43
+ Value of the variable.
45
44
  """
46
45
  return pulumi.get(self, "value")
47
46
 
@@ -53,7 +52,7 @@ class ActionsOrganizationVariableArgs:
53
52
  @pulumi.getter(name="variableName")
54
53
  def variable_name(self) -> pulumi.Input[_builtins.str]:
55
54
  """
56
- Name of the variable
55
+ Name of the variable.
57
56
  """
58
57
  return pulumi.get(self, "variable_name")
59
58
 
@@ -65,8 +64,7 @@ class ActionsOrganizationVariableArgs:
65
64
  @pulumi.getter
66
65
  def visibility(self) -> pulumi.Input[_builtins.str]:
67
66
  """
68
- Configures the access that repositories have to the organization variable.
69
- Must be one of `all`, `private`, `selected`. `selected_repository_ids` is required if set to `selected`.
67
+ Configures the access that repositories have to the organization variable; must be one of `all`, `private`, or `selected`.
70
68
  """
71
69
  return pulumi.get(self, "visibility")
72
70
 
@@ -78,7 +76,7 @@ class ActionsOrganizationVariableArgs:
78
76
  @pulumi.getter(name="selectedRepositoryIds")
79
77
  def selected_repository_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.int]]]]:
80
78
  """
81
- An array of repository ids that can access the organization variable.
79
+ An array of repository IDs that can access the organization variable; this requires `visibility` to be set to `selected`.
82
80
  """
83
81
  return pulumi.get(self, "selected_repository_ids")
84
82
 
@@ -98,13 +96,12 @@ class _ActionsOrganizationVariableState:
98
96
  visibility: Optional[pulumi.Input[_builtins.str]] = None):
99
97
  """
100
98
  Input properties used for looking up and filtering ActionsOrganizationVariable resources.
101
- :param pulumi.Input[_builtins.str] created_at: Date of actions_variable creation.
102
- :param pulumi.Input[Sequence[pulumi.Input[_builtins.int]]] selected_repository_ids: An array of repository ids that can access the organization variable.
103
- :param pulumi.Input[_builtins.str] updated_at: Date of actions_variable update.
104
- :param pulumi.Input[_builtins.str] value: Value of the variable
105
- :param pulumi.Input[_builtins.str] variable_name: Name of the variable
106
- :param pulumi.Input[_builtins.str] visibility: Configures the access that repositories have to the organization variable.
107
- Must be one of `all`, `private`, `selected`. `selected_repository_ids` is required if set to `selected`.
99
+ :param pulumi.Input[_builtins.str] created_at: Date the variable was created.
100
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.int]]] selected_repository_ids: An array of repository IDs that can access the organization variable; this requires `visibility` to be set to `selected`.
101
+ :param pulumi.Input[_builtins.str] updated_at: Date the variable was last updated.
102
+ :param pulumi.Input[_builtins.str] value: Value of the variable.
103
+ :param pulumi.Input[_builtins.str] variable_name: Name of the variable.
104
+ :param pulumi.Input[_builtins.str] visibility: Configures the access that repositories have to the organization variable; must be one of `all`, `private`, or `selected`.
108
105
  """
109
106
  if created_at is not None:
110
107
  pulumi.set(__self__, "created_at", created_at)
@@ -123,7 +120,7 @@ class _ActionsOrganizationVariableState:
123
120
  @pulumi.getter(name="createdAt")
124
121
  def created_at(self) -> Optional[pulumi.Input[_builtins.str]]:
125
122
  """
126
- Date of actions_variable creation.
123
+ Date the variable was created.
127
124
  """
128
125
  return pulumi.get(self, "created_at")
129
126
 
@@ -135,7 +132,7 @@ class _ActionsOrganizationVariableState:
135
132
  @pulumi.getter(name="selectedRepositoryIds")
136
133
  def selected_repository_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.int]]]]:
137
134
  """
138
- An array of repository ids that can access the organization variable.
135
+ An array of repository IDs that can access the organization variable; this requires `visibility` to be set to `selected`.
139
136
  """
140
137
  return pulumi.get(self, "selected_repository_ids")
141
138
 
@@ -147,7 +144,7 @@ class _ActionsOrganizationVariableState:
147
144
  @pulumi.getter(name="updatedAt")
148
145
  def updated_at(self) -> Optional[pulumi.Input[_builtins.str]]:
149
146
  """
150
- Date of actions_variable update.
147
+ Date the variable was last updated.
151
148
  """
152
149
  return pulumi.get(self, "updated_at")
153
150
 
@@ -159,7 +156,7 @@ class _ActionsOrganizationVariableState:
159
156
  @pulumi.getter
160
157
  def value(self) -> Optional[pulumi.Input[_builtins.str]]:
161
158
  """
162
- Value of the variable
159
+ Value of the variable.
163
160
  """
164
161
  return pulumi.get(self, "value")
165
162
 
@@ -171,7 +168,7 @@ class _ActionsOrganizationVariableState:
171
168
  @pulumi.getter(name="variableName")
172
169
  def variable_name(self) -> Optional[pulumi.Input[_builtins.str]]:
173
170
  """
174
- Name of the variable
171
+ Name of the variable.
175
172
  """
176
173
  return pulumi.get(self, "variable_name")
177
174
 
@@ -183,8 +180,7 @@ class _ActionsOrganizationVariableState:
183
180
  @pulumi.getter
184
181
  def visibility(self) -> Optional[pulumi.Input[_builtins.str]]:
185
182
  """
186
- Configures the access that repositories have to the organization variable.
187
- Must be one of `all`, `private`, `selected`. `selected_repository_ids` is required if set to `selected`.
183
+ Configures the access that repositories have to the organization variable; must be one of `all`, `private`, or `selected`.
188
184
  """
189
185
  return pulumi.get(self, "visibility")
190
186
 
@@ -234,19 +230,20 @@ class ActionsOrganizationVariable(pulumi.CustomResource):
234
230
 
235
231
  ## Import
236
232
 
237
- This resource can be imported using an ID made up of the variable name:
233
+ ### Import Command
234
+
235
+ The following command imports a GitHub actions organization variable named `myvariable` to a `github_actions_organization_variable` resource named `example`.
238
236
 
239
237
  ```sh
240
- $ pulumi import github:index/actionsOrganizationVariable:ActionsOrganizationVariable test_variable test_variable_name
238
+ $ pulumi import github:index/actionsOrganizationVariable:ActionsOrganizationVariable example myvariable
241
239
  ```
242
240
 
243
241
  :param str resource_name: The name of the resource.
244
242
  :param pulumi.ResourceOptions opts: Options for the resource.
245
- :param pulumi.Input[Sequence[pulumi.Input[_builtins.int]]] selected_repository_ids: An array of repository ids that can access the organization variable.
246
- :param pulumi.Input[_builtins.str] value: Value of the variable
247
- :param pulumi.Input[_builtins.str] variable_name: Name of the variable
248
- :param pulumi.Input[_builtins.str] visibility: Configures the access that repositories have to the organization variable.
249
- Must be one of `all`, `private`, `selected`. `selected_repository_ids` is required if set to `selected`.
243
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.int]]] selected_repository_ids: An array of repository IDs that can access the organization variable; this requires `visibility` to be set to `selected`.
244
+ :param pulumi.Input[_builtins.str] value: Value of the variable.
245
+ :param pulumi.Input[_builtins.str] variable_name: Name of the variable.
246
+ :param pulumi.Input[_builtins.str] visibility: Configures the access that repositories have to the organization variable; must be one of `all`, `private`, or `selected`.
250
247
  """
251
248
  ...
252
249
  @overload
@@ -284,10 +281,12 @@ class ActionsOrganizationVariable(pulumi.CustomResource):
284
281
 
285
282
  ## Import
286
283
 
287
- This resource can be imported using an ID made up of the variable name:
284
+ ### Import Command
285
+
286
+ The following command imports a GitHub actions organization variable named `myvariable` to a `github_actions_organization_variable` resource named `example`.
288
287
 
289
288
  ```sh
290
- $ pulumi import github:index/actionsOrganizationVariable:ActionsOrganizationVariable test_variable test_variable_name
289
+ $ pulumi import github:index/actionsOrganizationVariable:ActionsOrganizationVariable example myvariable
291
290
  ```
292
291
 
293
292
  :param str resource_name: The name of the resource.
@@ -353,13 +352,12 @@ class ActionsOrganizationVariable(pulumi.CustomResource):
353
352
  :param str resource_name: The unique name of the resulting resource.
354
353
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
355
354
  :param pulumi.ResourceOptions opts: Options for the resource.
356
- :param pulumi.Input[_builtins.str] created_at: Date of actions_variable creation.
357
- :param pulumi.Input[Sequence[pulumi.Input[_builtins.int]]] selected_repository_ids: An array of repository ids that can access the organization variable.
358
- :param pulumi.Input[_builtins.str] updated_at: Date of actions_variable update.
359
- :param pulumi.Input[_builtins.str] value: Value of the variable
360
- :param pulumi.Input[_builtins.str] variable_name: Name of the variable
361
- :param pulumi.Input[_builtins.str] visibility: Configures the access that repositories have to the organization variable.
362
- Must be one of `all`, `private`, `selected`. `selected_repository_ids` is required if set to `selected`.
355
+ :param pulumi.Input[_builtins.str] created_at: Date the variable was created.
356
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.int]]] selected_repository_ids: An array of repository IDs that can access the organization variable; this requires `visibility` to be set to `selected`.
357
+ :param pulumi.Input[_builtins.str] updated_at: Date the variable was last updated.
358
+ :param pulumi.Input[_builtins.str] value: Value of the variable.
359
+ :param pulumi.Input[_builtins.str] variable_name: Name of the variable.
360
+ :param pulumi.Input[_builtins.str] visibility: Configures the access that repositories have to the organization variable; must be one of `all`, `private`, or `selected`.
363
361
  """
364
362
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
365
363
 
@@ -377,7 +375,7 @@ class ActionsOrganizationVariable(pulumi.CustomResource):
377
375
  @pulumi.getter(name="createdAt")
378
376
  def created_at(self) -> pulumi.Output[_builtins.str]:
379
377
  """
380
- Date of actions_variable creation.
378
+ Date the variable was created.
381
379
  """
382
380
  return pulumi.get(self, "created_at")
383
381
 
@@ -385,7 +383,7 @@ class ActionsOrganizationVariable(pulumi.CustomResource):
385
383
  @pulumi.getter(name="selectedRepositoryIds")
386
384
  def selected_repository_ids(self) -> pulumi.Output[Optional[Sequence[_builtins.int]]]:
387
385
  """
388
- An array of repository ids that can access the organization variable.
386
+ An array of repository IDs that can access the organization variable; this requires `visibility` to be set to `selected`.
389
387
  """
390
388
  return pulumi.get(self, "selected_repository_ids")
391
389
 
@@ -393,7 +391,7 @@ class ActionsOrganizationVariable(pulumi.CustomResource):
393
391
  @pulumi.getter(name="updatedAt")
394
392
  def updated_at(self) -> pulumi.Output[_builtins.str]:
395
393
  """
396
- Date of actions_variable update.
394
+ Date the variable was last updated.
397
395
  """
398
396
  return pulumi.get(self, "updated_at")
399
397
 
@@ -401,7 +399,7 @@ class ActionsOrganizationVariable(pulumi.CustomResource):
401
399
  @pulumi.getter
402
400
  def value(self) -> pulumi.Output[_builtins.str]:
403
401
  """
404
- Value of the variable
402
+ Value of the variable.
405
403
  """
406
404
  return pulumi.get(self, "value")
407
405
 
@@ -409,7 +407,7 @@ class ActionsOrganizationVariable(pulumi.CustomResource):
409
407
  @pulumi.getter(name="variableName")
410
408
  def variable_name(self) -> pulumi.Output[_builtins.str]:
411
409
  """
412
- Name of the variable
410
+ Name of the variable.
413
411
  """
414
412
  return pulumi.get(self, "variable_name")
415
413
 
@@ -417,8 +415,7 @@ class ActionsOrganizationVariable(pulumi.CustomResource):
417
415
  @pulumi.getter
418
416
  def visibility(self) -> pulumi.Output[_builtins.str]:
419
417
  """
420
- Configures the access that repositories have to the organization variable.
421
- Must be one of `all`, `private`, `selected`. `selected_repository_ids` is required if set to `selected`.
418
+ Configures the access that repositories have to the organization variable; must be one of `all`, `private`, or `selected`.
422
419
  """
423
420
  return pulumi.get(self, "visibility")
424
421