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.
- pulumi_github/__init__.py +28 -0
- pulumi_github/_inputs.py +324 -19
- pulumi_github/actions_environment_secret.py +141 -12
- pulumi_github/actions_environment_variable.py +71 -37
- 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_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 +64 -4
- pulumi_github/get_release_asset.py +370 -0
- pulumi_github/organization_ruleset.py +11 -17
- pulumi_github/outputs.py +234 -13
- pulumi_github/pulumi-plugin.json +1 -1
- pulumi_github/repository.py +32 -27
- pulumi_github/repository_ruleset.py +7 -7
- {pulumi_github-6.11.0a1768966924.dist-info → pulumi_github-6.12.0.dist-info}/METADATA +1 -1
- {pulumi_github-6.11.0a1768966924.dist-info → pulumi_github-6.12.0.dist-info}/RECORD +31 -27
- {pulumi_github-6.11.0a1768966924.dist-info → pulumi_github-6.12.0.dist-info}/WHEEL +1 -1
- {pulumi_github-6.11.0a1768966924.dist-info → pulumi_github-6.12.0.dist-info}/top_level.txt +0 -0
|
@@ -22,18 +22,24 @@ class DependabotSecretArgs:
|
|
|
22
22
|
repository: pulumi.Input[_builtins.str],
|
|
23
23
|
secret_name: pulumi.Input[_builtins.str],
|
|
24
24
|
encrypted_value: Optional[pulumi.Input[_builtins.str]] = None,
|
|
25
|
+
key_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
25
26
|
plaintext_value: Optional[pulumi.Input[_builtins.str]] = None):
|
|
26
27
|
"""
|
|
27
28
|
The set of arguments for constructing a DependabotSecret resource.
|
|
28
|
-
:param pulumi.Input[_builtins.str] repository: Name of the repository
|
|
29
|
-
:param pulumi.Input[_builtins.str] secret_name: Name of the secret
|
|
29
|
+
:param pulumi.Input[_builtins.str] repository: Name of the repository.
|
|
30
|
+
:param pulumi.Input[_builtins.str] secret_name: Name of the secret.
|
|
30
31
|
:param pulumi.Input[_builtins.str] encrypted_value: Encrypted value of the secret using the GitHub public key in Base64 format.
|
|
31
|
-
:param pulumi.Input[_builtins.str]
|
|
32
|
+
:param pulumi.Input[_builtins.str] key_id: ID of the public key used to encrypt the secret. This should be provided when setting `encrypted_value`; if it isn't then the current public key will be looked up, which could cause a missmatch. This conflicts with `plaintext_value`.
|
|
33
|
+
:param pulumi.Input[_builtins.str] plaintext_value: Plaintext value of the secret to be encrypted.
|
|
34
|
+
|
|
35
|
+
> **Note**: One of either `encrypted_value` or `plaintext_value` must be specified.
|
|
32
36
|
"""
|
|
33
37
|
pulumi.set(__self__, "repository", repository)
|
|
34
38
|
pulumi.set(__self__, "secret_name", secret_name)
|
|
35
39
|
if encrypted_value is not None:
|
|
36
40
|
pulumi.set(__self__, "encrypted_value", encrypted_value)
|
|
41
|
+
if key_id is not None:
|
|
42
|
+
pulumi.set(__self__, "key_id", key_id)
|
|
37
43
|
if plaintext_value is not None:
|
|
38
44
|
pulumi.set(__self__, "plaintext_value", plaintext_value)
|
|
39
45
|
|
|
@@ -41,7 +47,7 @@ class DependabotSecretArgs:
|
|
|
41
47
|
@pulumi.getter
|
|
42
48
|
def repository(self) -> pulumi.Input[_builtins.str]:
|
|
43
49
|
"""
|
|
44
|
-
Name of the repository
|
|
50
|
+
Name of the repository.
|
|
45
51
|
"""
|
|
46
52
|
return pulumi.get(self, "repository")
|
|
47
53
|
|
|
@@ -53,7 +59,7 @@ class DependabotSecretArgs:
|
|
|
53
59
|
@pulumi.getter(name="secretName")
|
|
54
60
|
def secret_name(self) -> pulumi.Input[_builtins.str]:
|
|
55
61
|
"""
|
|
56
|
-
Name of the secret
|
|
62
|
+
Name of the secret.
|
|
57
63
|
"""
|
|
58
64
|
return pulumi.get(self, "secret_name")
|
|
59
65
|
|
|
@@ -73,11 +79,25 @@ class DependabotSecretArgs:
|
|
|
73
79
|
def encrypted_value(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
74
80
|
pulumi.set(self, "encrypted_value", value)
|
|
75
81
|
|
|
82
|
+
@_builtins.property
|
|
83
|
+
@pulumi.getter(name="keyId")
|
|
84
|
+
def key_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
85
|
+
"""
|
|
86
|
+
ID of the public key used to encrypt the secret. This should be provided when setting `encrypted_value`; if it isn't then the current public key will be looked up, which could cause a missmatch. This conflicts with `plaintext_value`.
|
|
87
|
+
"""
|
|
88
|
+
return pulumi.get(self, "key_id")
|
|
89
|
+
|
|
90
|
+
@key_id.setter
|
|
91
|
+
def key_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
92
|
+
pulumi.set(self, "key_id", value)
|
|
93
|
+
|
|
76
94
|
@_builtins.property
|
|
77
95
|
@pulumi.getter(name="plaintextValue")
|
|
78
96
|
def plaintext_value(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
79
97
|
"""
|
|
80
|
-
Plaintext value of the secret to be encrypted
|
|
98
|
+
Plaintext value of the secret to be encrypted.
|
|
99
|
+
|
|
100
|
+
> **Note**: One of either `encrypted_value` or `plaintext_value` must be specified.
|
|
81
101
|
"""
|
|
82
102
|
return pulumi.get(self, "plaintext_value")
|
|
83
103
|
|
|
@@ -91,27 +111,41 @@ class _DependabotSecretState:
|
|
|
91
111
|
def __init__(__self__, *,
|
|
92
112
|
created_at: Optional[pulumi.Input[_builtins.str]] = None,
|
|
93
113
|
encrypted_value: Optional[pulumi.Input[_builtins.str]] = None,
|
|
114
|
+
key_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
94
115
|
plaintext_value: Optional[pulumi.Input[_builtins.str]] = None,
|
|
116
|
+
remote_updated_at: Optional[pulumi.Input[_builtins.str]] = None,
|
|
95
117
|
repository: Optional[pulumi.Input[_builtins.str]] = None,
|
|
118
|
+
repository_id: Optional[pulumi.Input[_builtins.int]] = None,
|
|
96
119
|
secret_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
97
120
|
updated_at: Optional[pulumi.Input[_builtins.str]] = None):
|
|
98
121
|
"""
|
|
99
122
|
Input properties used for looking up and filtering DependabotSecret resources.
|
|
100
|
-
:param pulumi.Input[_builtins.str] created_at: Date
|
|
123
|
+
:param pulumi.Input[_builtins.str] created_at: Date the secret was created.
|
|
101
124
|
:param pulumi.Input[_builtins.str] encrypted_value: Encrypted value of the secret using the GitHub public key in Base64 format.
|
|
102
|
-
:param pulumi.Input[_builtins.str]
|
|
103
|
-
:param pulumi.Input[_builtins.str]
|
|
104
|
-
|
|
105
|
-
|
|
125
|
+
:param pulumi.Input[_builtins.str] key_id: ID of the public key used to encrypt the secret. This should be provided when setting `encrypted_value`; if it isn't then the current public key will be looked up, which could cause a missmatch. This conflicts with `plaintext_value`.
|
|
126
|
+
:param pulumi.Input[_builtins.str] plaintext_value: Plaintext value of the secret to be encrypted.
|
|
127
|
+
|
|
128
|
+
> **Note**: One of either `encrypted_value` or `plaintext_value` must be specified.
|
|
129
|
+
:param pulumi.Input[_builtins.str] remote_updated_at: Date the secret was last updated in GitHub.
|
|
130
|
+
:param pulumi.Input[_builtins.str] repository: Name of the repository.
|
|
131
|
+
:param pulumi.Input[_builtins.int] repository_id: ID of the repository.
|
|
132
|
+
:param pulumi.Input[_builtins.str] secret_name: Name of the secret.
|
|
133
|
+
:param pulumi.Input[_builtins.str] updated_at: Date the secret was last updated by the provider.
|
|
106
134
|
"""
|
|
107
135
|
if created_at is not None:
|
|
108
136
|
pulumi.set(__self__, "created_at", created_at)
|
|
109
137
|
if encrypted_value is not None:
|
|
110
138
|
pulumi.set(__self__, "encrypted_value", encrypted_value)
|
|
139
|
+
if key_id is not None:
|
|
140
|
+
pulumi.set(__self__, "key_id", key_id)
|
|
111
141
|
if plaintext_value is not None:
|
|
112
142
|
pulumi.set(__self__, "plaintext_value", plaintext_value)
|
|
143
|
+
if remote_updated_at is not None:
|
|
144
|
+
pulumi.set(__self__, "remote_updated_at", remote_updated_at)
|
|
113
145
|
if repository is not None:
|
|
114
146
|
pulumi.set(__self__, "repository", repository)
|
|
147
|
+
if repository_id is not None:
|
|
148
|
+
pulumi.set(__self__, "repository_id", repository_id)
|
|
115
149
|
if secret_name is not None:
|
|
116
150
|
pulumi.set(__self__, "secret_name", secret_name)
|
|
117
151
|
if updated_at is not None:
|
|
@@ -121,7 +155,7 @@ class _DependabotSecretState:
|
|
|
121
155
|
@pulumi.getter(name="createdAt")
|
|
122
156
|
def created_at(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
123
157
|
"""
|
|
124
|
-
Date
|
|
158
|
+
Date the secret was created.
|
|
125
159
|
"""
|
|
126
160
|
return pulumi.get(self, "created_at")
|
|
127
161
|
|
|
@@ -141,11 +175,25 @@ class _DependabotSecretState:
|
|
|
141
175
|
def encrypted_value(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
142
176
|
pulumi.set(self, "encrypted_value", value)
|
|
143
177
|
|
|
178
|
+
@_builtins.property
|
|
179
|
+
@pulumi.getter(name="keyId")
|
|
180
|
+
def key_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
181
|
+
"""
|
|
182
|
+
ID of the public key used to encrypt the secret. This should be provided when setting `encrypted_value`; if it isn't then the current public key will be looked up, which could cause a missmatch. This conflicts with `plaintext_value`.
|
|
183
|
+
"""
|
|
184
|
+
return pulumi.get(self, "key_id")
|
|
185
|
+
|
|
186
|
+
@key_id.setter
|
|
187
|
+
def key_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
188
|
+
pulumi.set(self, "key_id", value)
|
|
189
|
+
|
|
144
190
|
@_builtins.property
|
|
145
191
|
@pulumi.getter(name="plaintextValue")
|
|
146
192
|
def plaintext_value(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
147
193
|
"""
|
|
148
|
-
Plaintext value of the secret to be encrypted
|
|
194
|
+
Plaintext value of the secret to be encrypted.
|
|
195
|
+
|
|
196
|
+
> **Note**: One of either `encrypted_value` or `plaintext_value` must be specified.
|
|
149
197
|
"""
|
|
150
198
|
return pulumi.get(self, "plaintext_value")
|
|
151
199
|
|
|
@@ -153,11 +201,23 @@ class _DependabotSecretState:
|
|
|
153
201
|
def plaintext_value(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
154
202
|
pulumi.set(self, "plaintext_value", value)
|
|
155
203
|
|
|
204
|
+
@_builtins.property
|
|
205
|
+
@pulumi.getter(name="remoteUpdatedAt")
|
|
206
|
+
def remote_updated_at(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
207
|
+
"""
|
|
208
|
+
Date the secret was last updated in GitHub.
|
|
209
|
+
"""
|
|
210
|
+
return pulumi.get(self, "remote_updated_at")
|
|
211
|
+
|
|
212
|
+
@remote_updated_at.setter
|
|
213
|
+
def remote_updated_at(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
214
|
+
pulumi.set(self, "remote_updated_at", value)
|
|
215
|
+
|
|
156
216
|
@_builtins.property
|
|
157
217
|
@pulumi.getter
|
|
158
218
|
def repository(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
159
219
|
"""
|
|
160
|
-
Name of the repository
|
|
220
|
+
Name of the repository.
|
|
161
221
|
"""
|
|
162
222
|
return pulumi.get(self, "repository")
|
|
163
223
|
|
|
@@ -165,11 +225,23 @@ class _DependabotSecretState:
|
|
|
165
225
|
def repository(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
166
226
|
pulumi.set(self, "repository", value)
|
|
167
227
|
|
|
228
|
+
@_builtins.property
|
|
229
|
+
@pulumi.getter(name="repositoryId")
|
|
230
|
+
def repository_id(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
231
|
+
"""
|
|
232
|
+
ID of the repository.
|
|
233
|
+
"""
|
|
234
|
+
return pulumi.get(self, "repository_id")
|
|
235
|
+
|
|
236
|
+
@repository_id.setter
|
|
237
|
+
def repository_id(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
238
|
+
pulumi.set(self, "repository_id", value)
|
|
239
|
+
|
|
168
240
|
@_builtins.property
|
|
169
241
|
@pulumi.getter(name="secretName")
|
|
170
242
|
def secret_name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
171
243
|
"""
|
|
172
|
-
Name of the secret
|
|
244
|
+
Name of the secret.
|
|
173
245
|
"""
|
|
174
246
|
return pulumi.get(self, "secret_name")
|
|
175
247
|
|
|
@@ -181,7 +253,7 @@ class _DependabotSecretState:
|
|
|
181
253
|
@pulumi.getter(name="updatedAt")
|
|
182
254
|
def updated_at(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
183
255
|
"""
|
|
184
|
-
Date
|
|
256
|
+
Date the secret was last updated by the provider.
|
|
185
257
|
"""
|
|
186
258
|
return pulumi.get(self, "updated_at")
|
|
187
259
|
|
|
@@ -197,29 +269,31 @@ class DependabotSecret(pulumi.CustomResource):
|
|
|
197
269
|
resource_name: str,
|
|
198
270
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
199
271
|
encrypted_value: Optional[pulumi.Input[_builtins.str]] = None,
|
|
272
|
+
key_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
200
273
|
plaintext_value: Optional[pulumi.Input[_builtins.str]] = None,
|
|
201
274
|
repository: Optional[pulumi.Input[_builtins.str]] = None,
|
|
202
275
|
secret_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
203
276
|
__props__=None):
|
|
204
277
|
"""
|
|
205
|
-
## Example Usage
|
|
206
|
-
|
|
207
278
|
## Import
|
|
208
279
|
|
|
209
|
-
|
|
280
|
+
### Import Command
|
|
281
|
+
|
|
282
|
+
The following command imports a GitHub Dependabot secret named `mysecret` for the repo `myrepo` to a `github_dependabot_secret` resource named `example`.
|
|
210
283
|
|
|
211
284
|
```sh
|
|
212
|
-
$ pulumi import github:index/dependabotSecret:DependabotSecret
|
|
285
|
+
$ pulumi import github:index/dependabotSecret:DependabotSecret example myrepo:mysecret
|
|
213
286
|
```
|
|
214
|
-
NOTE: the implementation is limited in that it won't fetch the value of the
|
|
215
|
-
`plaintext_value` or `encrypted_value` fields when importing. You may need to ignore changes for these as a workaround.
|
|
216
287
|
|
|
217
288
|
:param str resource_name: The name of the resource.
|
|
218
289
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
219
290
|
:param pulumi.Input[_builtins.str] encrypted_value: Encrypted value of the secret using the GitHub public key in Base64 format.
|
|
220
|
-
:param pulumi.Input[_builtins.str]
|
|
221
|
-
:param pulumi.Input[_builtins.str]
|
|
222
|
-
|
|
291
|
+
:param pulumi.Input[_builtins.str] key_id: ID of the public key used to encrypt the secret. This should be provided when setting `encrypted_value`; if it isn't then the current public key will be looked up, which could cause a missmatch. This conflicts with `plaintext_value`.
|
|
292
|
+
:param pulumi.Input[_builtins.str] plaintext_value: Plaintext value of the secret to be encrypted.
|
|
293
|
+
|
|
294
|
+
> **Note**: One of either `encrypted_value` or `plaintext_value` must be specified.
|
|
295
|
+
:param pulumi.Input[_builtins.str] repository: Name of the repository.
|
|
296
|
+
:param pulumi.Input[_builtins.str] secret_name: Name of the secret.
|
|
223
297
|
"""
|
|
224
298
|
...
|
|
225
299
|
@overload
|
|
@@ -228,17 +302,15 @@ class DependabotSecret(pulumi.CustomResource):
|
|
|
228
302
|
args: DependabotSecretArgs,
|
|
229
303
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
230
304
|
"""
|
|
231
|
-
## Example Usage
|
|
232
|
-
|
|
233
305
|
## Import
|
|
234
306
|
|
|
235
|
-
|
|
307
|
+
### Import Command
|
|
308
|
+
|
|
309
|
+
The following command imports a GitHub Dependabot secret named `mysecret` for the repo `myrepo` to a `github_dependabot_secret` resource named `example`.
|
|
236
310
|
|
|
237
311
|
```sh
|
|
238
|
-
$ pulumi import github:index/dependabotSecret:DependabotSecret
|
|
312
|
+
$ pulumi import github:index/dependabotSecret:DependabotSecret example myrepo:mysecret
|
|
239
313
|
```
|
|
240
|
-
NOTE: the implementation is limited in that it won't fetch the value of the
|
|
241
|
-
`plaintext_value` or `encrypted_value` fields when importing. You may need to ignore changes for these as a workaround.
|
|
242
314
|
|
|
243
315
|
:param str resource_name: The name of the resource.
|
|
244
316
|
:param DependabotSecretArgs args: The arguments to use to populate this resource's properties.
|
|
@@ -256,6 +328,7 @@ class DependabotSecret(pulumi.CustomResource):
|
|
|
256
328
|
resource_name: str,
|
|
257
329
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
258
330
|
encrypted_value: Optional[pulumi.Input[_builtins.str]] = None,
|
|
331
|
+
key_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
259
332
|
plaintext_value: Optional[pulumi.Input[_builtins.str]] = None,
|
|
260
333
|
repository: Optional[pulumi.Input[_builtins.str]] = None,
|
|
261
334
|
secret_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
@@ -269,6 +342,7 @@ class DependabotSecret(pulumi.CustomResource):
|
|
|
269
342
|
__props__ = DependabotSecretArgs.__new__(DependabotSecretArgs)
|
|
270
343
|
|
|
271
344
|
__props__.__dict__["encrypted_value"] = None if encrypted_value is None else pulumi.Output.secret(encrypted_value)
|
|
345
|
+
__props__.__dict__["key_id"] = key_id
|
|
272
346
|
__props__.__dict__["plaintext_value"] = None if plaintext_value is None else pulumi.Output.secret(plaintext_value)
|
|
273
347
|
if repository is None and not opts.urn:
|
|
274
348
|
raise TypeError("Missing required property 'repository'")
|
|
@@ -277,6 +351,8 @@ class DependabotSecret(pulumi.CustomResource):
|
|
|
277
351
|
raise TypeError("Missing required property 'secret_name'")
|
|
278
352
|
__props__.__dict__["secret_name"] = secret_name
|
|
279
353
|
__props__.__dict__["created_at"] = None
|
|
354
|
+
__props__.__dict__["remote_updated_at"] = None
|
|
355
|
+
__props__.__dict__["repository_id"] = None
|
|
280
356
|
__props__.__dict__["updated_at"] = None
|
|
281
357
|
secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["encryptedValue", "plaintextValue"])
|
|
282
358
|
opts = pulumi.ResourceOptions.merge(opts, secret_opts)
|
|
@@ -292,8 +368,11 @@ class DependabotSecret(pulumi.CustomResource):
|
|
|
292
368
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
293
369
|
created_at: Optional[pulumi.Input[_builtins.str]] = None,
|
|
294
370
|
encrypted_value: Optional[pulumi.Input[_builtins.str]] = None,
|
|
371
|
+
key_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
295
372
|
plaintext_value: Optional[pulumi.Input[_builtins.str]] = None,
|
|
373
|
+
remote_updated_at: Optional[pulumi.Input[_builtins.str]] = None,
|
|
296
374
|
repository: Optional[pulumi.Input[_builtins.str]] = None,
|
|
375
|
+
repository_id: Optional[pulumi.Input[_builtins.int]] = None,
|
|
297
376
|
secret_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
298
377
|
updated_at: Optional[pulumi.Input[_builtins.str]] = None) -> 'DependabotSecret':
|
|
299
378
|
"""
|
|
@@ -303,12 +382,17 @@ class DependabotSecret(pulumi.CustomResource):
|
|
|
303
382
|
:param str resource_name: The unique name of the resulting resource.
|
|
304
383
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
305
384
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
306
|
-
:param pulumi.Input[_builtins.str] created_at: Date
|
|
385
|
+
:param pulumi.Input[_builtins.str] created_at: Date the secret was created.
|
|
307
386
|
:param pulumi.Input[_builtins.str] encrypted_value: Encrypted value of the secret using the GitHub public key in Base64 format.
|
|
308
|
-
:param pulumi.Input[_builtins.str]
|
|
309
|
-
:param pulumi.Input[_builtins.str]
|
|
310
|
-
|
|
311
|
-
|
|
387
|
+
:param pulumi.Input[_builtins.str] key_id: ID of the public key used to encrypt the secret. This should be provided when setting `encrypted_value`; if it isn't then the current public key will be looked up, which could cause a missmatch. This conflicts with `plaintext_value`.
|
|
388
|
+
:param pulumi.Input[_builtins.str] plaintext_value: Plaintext value of the secret to be encrypted.
|
|
389
|
+
|
|
390
|
+
> **Note**: One of either `encrypted_value` or `plaintext_value` must be specified.
|
|
391
|
+
:param pulumi.Input[_builtins.str] remote_updated_at: Date the secret was last updated in GitHub.
|
|
392
|
+
:param pulumi.Input[_builtins.str] repository: Name of the repository.
|
|
393
|
+
:param pulumi.Input[_builtins.int] repository_id: ID of the repository.
|
|
394
|
+
:param pulumi.Input[_builtins.str] secret_name: Name of the secret.
|
|
395
|
+
:param pulumi.Input[_builtins.str] updated_at: Date the secret was last updated by the provider.
|
|
312
396
|
"""
|
|
313
397
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
314
398
|
|
|
@@ -316,8 +400,11 @@ class DependabotSecret(pulumi.CustomResource):
|
|
|
316
400
|
|
|
317
401
|
__props__.__dict__["created_at"] = created_at
|
|
318
402
|
__props__.__dict__["encrypted_value"] = encrypted_value
|
|
403
|
+
__props__.__dict__["key_id"] = key_id
|
|
319
404
|
__props__.__dict__["plaintext_value"] = plaintext_value
|
|
405
|
+
__props__.__dict__["remote_updated_at"] = remote_updated_at
|
|
320
406
|
__props__.__dict__["repository"] = repository
|
|
407
|
+
__props__.__dict__["repository_id"] = repository_id
|
|
321
408
|
__props__.__dict__["secret_name"] = secret_name
|
|
322
409
|
__props__.__dict__["updated_at"] = updated_at
|
|
323
410
|
return DependabotSecret(resource_name, opts=opts, __props__=__props__)
|
|
@@ -326,7 +413,7 @@ class DependabotSecret(pulumi.CustomResource):
|
|
|
326
413
|
@pulumi.getter(name="createdAt")
|
|
327
414
|
def created_at(self) -> pulumi.Output[_builtins.str]:
|
|
328
415
|
"""
|
|
329
|
-
Date
|
|
416
|
+
Date the secret was created.
|
|
330
417
|
"""
|
|
331
418
|
return pulumi.get(self, "created_at")
|
|
332
419
|
|
|
@@ -338,27 +425,53 @@ class DependabotSecret(pulumi.CustomResource):
|
|
|
338
425
|
"""
|
|
339
426
|
return pulumi.get(self, "encrypted_value")
|
|
340
427
|
|
|
428
|
+
@_builtins.property
|
|
429
|
+
@pulumi.getter(name="keyId")
|
|
430
|
+
def key_id(self) -> pulumi.Output[_builtins.str]:
|
|
431
|
+
"""
|
|
432
|
+
ID of the public key used to encrypt the secret. This should be provided when setting `encrypted_value`; if it isn't then the current public key will be looked up, which could cause a missmatch. This conflicts with `plaintext_value`.
|
|
433
|
+
"""
|
|
434
|
+
return pulumi.get(self, "key_id")
|
|
435
|
+
|
|
341
436
|
@_builtins.property
|
|
342
437
|
@pulumi.getter(name="plaintextValue")
|
|
343
438
|
def plaintext_value(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
344
439
|
"""
|
|
345
|
-
Plaintext value of the secret to be encrypted
|
|
440
|
+
Plaintext value of the secret to be encrypted.
|
|
441
|
+
|
|
442
|
+
> **Note**: One of either `encrypted_value` or `plaintext_value` must be specified.
|
|
346
443
|
"""
|
|
347
444
|
return pulumi.get(self, "plaintext_value")
|
|
348
445
|
|
|
446
|
+
@_builtins.property
|
|
447
|
+
@pulumi.getter(name="remoteUpdatedAt")
|
|
448
|
+
def remote_updated_at(self) -> pulumi.Output[_builtins.str]:
|
|
449
|
+
"""
|
|
450
|
+
Date the secret was last updated in GitHub.
|
|
451
|
+
"""
|
|
452
|
+
return pulumi.get(self, "remote_updated_at")
|
|
453
|
+
|
|
349
454
|
@_builtins.property
|
|
350
455
|
@pulumi.getter
|
|
351
456
|
def repository(self) -> pulumi.Output[_builtins.str]:
|
|
352
457
|
"""
|
|
353
|
-
Name of the repository
|
|
458
|
+
Name of the repository.
|
|
354
459
|
"""
|
|
355
460
|
return pulumi.get(self, "repository")
|
|
356
461
|
|
|
462
|
+
@_builtins.property
|
|
463
|
+
@pulumi.getter(name="repositoryId")
|
|
464
|
+
def repository_id(self) -> pulumi.Output[_builtins.int]:
|
|
465
|
+
"""
|
|
466
|
+
ID of the repository.
|
|
467
|
+
"""
|
|
468
|
+
return pulumi.get(self, "repository_id")
|
|
469
|
+
|
|
357
470
|
@_builtins.property
|
|
358
471
|
@pulumi.getter(name="secretName")
|
|
359
472
|
def secret_name(self) -> pulumi.Output[_builtins.str]:
|
|
360
473
|
"""
|
|
361
|
-
Name of the secret
|
|
474
|
+
Name of the secret.
|
|
362
475
|
"""
|
|
363
476
|
return pulumi.get(self, "secret_name")
|
|
364
477
|
|
|
@@ -366,7 +479,7 @@ class DependabotSecret(pulumi.CustomResource):
|
|
|
366
479
|
@pulumi.getter(name="updatedAt")
|
|
367
480
|
def updated_at(self) -> pulumi.Output[_builtins.str]:
|
|
368
481
|
"""
|
|
369
|
-
Date
|
|
482
|
+
Date the secret was last updated by the provider.
|
|
370
483
|
"""
|
|
371
484
|
return pulumi.get(self, "updated_at")
|
|
372
485
|
|
|
@@ -59,16 +59,24 @@ class _EmuGroupMappingState:
|
|
|
59
59
|
def __init__(__self__, *,
|
|
60
60
|
etag: Optional[pulumi.Input[_builtins.str]] = None,
|
|
61
61
|
group_id: Optional[pulumi.Input[_builtins.int]] = None,
|
|
62
|
+
group_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
63
|
+
team_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
62
64
|
team_slug: Optional[pulumi.Input[_builtins.str]] = None):
|
|
63
65
|
"""
|
|
64
66
|
Input properties used for looking up and filtering EmuGroupMapping resources.
|
|
65
67
|
:param pulumi.Input[_builtins.int] group_id: Integer corresponding to the external group ID to be linked
|
|
68
|
+
:param pulumi.Input[_builtins.str] group_name: Name of the external group.
|
|
69
|
+
:param pulumi.Input[_builtins.str] team_id: ID of the GitHub team.
|
|
66
70
|
:param pulumi.Input[_builtins.str] team_slug: Slug of the GitHub team
|
|
67
71
|
"""
|
|
68
72
|
if etag is not None:
|
|
69
73
|
pulumi.set(__self__, "etag", etag)
|
|
70
74
|
if group_id is not None:
|
|
71
75
|
pulumi.set(__self__, "group_id", group_id)
|
|
76
|
+
if group_name is not None:
|
|
77
|
+
pulumi.set(__self__, "group_name", group_name)
|
|
78
|
+
if team_id is not None:
|
|
79
|
+
pulumi.set(__self__, "team_id", team_id)
|
|
72
80
|
if team_slug is not None:
|
|
73
81
|
pulumi.set(__self__, "team_slug", team_slug)
|
|
74
82
|
|
|
@@ -93,6 +101,30 @@ class _EmuGroupMappingState:
|
|
|
93
101
|
def group_id(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
94
102
|
pulumi.set(self, "group_id", value)
|
|
95
103
|
|
|
104
|
+
@_builtins.property
|
|
105
|
+
@pulumi.getter(name="groupName")
|
|
106
|
+
def group_name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
107
|
+
"""
|
|
108
|
+
Name of the external group.
|
|
109
|
+
"""
|
|
110
|
+
return pulumi.get(self, "group_name")
|
|
111
|
+
|
|
112
|
+
@group_name.setter
|
|
113
|
+
def group_name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
114
|
+
pulumi.set(self, "group_name", value)
|
|
115
|
+
|
|
116
|
+
@_builtins.property
|
|
117
|
+
@pulumi.getter(name="teamId")
|
|
118
|
+
def team_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
119
|
+
"""
|
|
120
|
+
ID of the GitHub team.
|
|
121
|
+
"""
|
|
122
|
+
return pulumi.get(self, "team_id")
|
|
123
|
+
|
|
124
|
+
@team_id.setter
|
|
125
|
+
def team_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
126
|
+
pulumi.set(self, "team_id", value)
|
|
127
|
+
|
|
96
128
|
@_builtins.property
|
|
97
129
|
@pulumi.getter(name="teamSlug")
|
|
98
130
|
def team_slug(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
@@ -116,6 +148,8 @@ class EmuGroupMapping(pulumi.CustomResource):
|
|
|
116
148
|
team_slug: Optional[pulumi.Input[_builtins.str]] = None,
|
|
117
149
|
__props__=None):
|
|
118
150
|
"""
|
|
151
|
+
This resource manages mappings between external groups for enterprise managed users and GitHub teams. It wraps the [Teams#ExternalGroups API](https://docs.github.com/en/rest/reference/teams#external-groups). Note that this is a distinct resource from `TeamSyncGroupMapping`. `EmuGroupMapping` is special to the Enterprise Managed User (EMU) external group feature, whereas `TeamSyncGroupMapping` is specific to Identity Provider Groups.
|
|
152
|
+
|
|
119
153
|
## Example Usage
|
|
120
154
|
|
|
121
155
|
```python
|
|
@@ -129,10 +163,10 @@ class EmuGroupMapping(pulumi.CustomResource):
|
|
|
129
163
|
|
|
130
164
|
## Import
|
|
131
165
|
|
|
132
|
-
GitHub EMU External Group Mappings can be imported using the
|
|
166
|
+
GitHub EMU External Group Mappings can be imported using the `team_slug` and external `group_id` separated by a colon, e.g.
|
|
133
167
|
|
|
134
168
|
```sh
|
|
135
|
-
$ pulumi import github:index/emuGroupMapping:EmuGroupMapping example_emu_group_mapping
|
|
169
|
+
$ pulumi import github:index/emuGroupMapping:EmuGroupMapping example_emu_group_mapping emu-test-team:28836
|
|
136
170
|
```
|
|
137
171
|
|
|
138
172
|
:param str resource_name: The name of the resource.
|
|
@@ -147,6 +181,8 @@ class EmuGroupMapping(pulumi.CustomResource):
|
|
|
147
181
|
args: EmuGroupMappingArgs,
|
|
148
182
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
149
183
|
"""
|
|
184
|
+
This resource manages mappings between external groups for enterprise managed users and GitHub teams. It wraps the [Teams#ExternalGroups API](https://docs.github.com/en/rest/reference/teams#external-groups). Note that this is a distinct resource from `TeamSyncGroupMapping`. `EmuGroupMapping` is special to the Enterprise Managed User (EMU) external group feature, whereas `TeamSyncGroupMapping` is specific to Identity Provider Groups.
|
|
185
|
+
|
|
150
186
|
## Example Usage
|
|
151
187
|
|
|
152
188
|
```python
|
|
@@ -160,10 +196,10 @@ class EmuGroupMapping(pulumi.CustomResource):
|
|
|
160
196
|
|
|
161
197
|
## Import
|
|
162
198
|
|
|
163
|
-
GitHub EMU External Group Mappings can be imported using the
|
|
199
|
+
GitHub EMU External Group Mappings can be imported using the `team_slug` and external `group_id` separated by a colon, e.g.
|
|
164
200
|
|
|
165
201
|
```sh
|
|
166
|
-
$ pulumi import github:index/emuGroupMapping:EmuGroupMapping example_emu_group_mapping
|
|
202
|
+
$ pulumi import github:index/emuGroupMapping:EmuGroupMapping example_emu_group_mapping emu-test-team:28836
|
|
167
203
|
```
|
|
168
204
|
|
|
169
205
|
:param str resource_name: The name of the resource.
|
|
@@ -199,6 +235,8 @@ class EmuGroupMapping(pulumi.CustomResource):
|
|
|
199
235
|
raise TypeError("Missing required property 'team_slug'")
|
|
200
236
|
__props__.__dict__["team_slug"] = team_slug
|
|
201
237
|
__props__.__dict__["etag"] = None
|
|
238
|
+
__props__.__dict__["group_name"] = None
|
|
239
|
+
__props__.__dict__["team_id"] = None
|
|
202
240
|
super(EmuGroupMapping, __self__).__init__(
|
|
203
241
|
'github:index/emuGroupMapping:EmuGroupMapping',
|
|
204
242
|
resource_name,
|
|
@@ -211,6 +249,8 @@ class EmuGroupMapping(pulumi.CustomResource):
|
|
|
211
249
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
212
250
|
etag: Optional[pulumi.Input[_builtins.str]] = None,
|
|
213
251
|
group_id: Optional[pulumi.Input[_builtins.int]] = None,
|
|
252
|
+
group_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
253
|
+
team_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
214
254
|
team_slug: Optional[pulumi.Input[_builtins.str]] = None) -> 'EmuGroupMapping':
|
|
215
255
|
"""
|
|
216
256
|
Get an existing EmuGroupMapping resource's state with the given name, id, and optional extra
|
|
@@ -220,6 +260,8 @@ class EmuGroupMapping(pulumi.CustomResource):
|
|
|
220
260
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
221
261
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
222
262
|
:param pulumi.Input[_builtins.int] group_id: Integer corresponding to the external group ID to be linked
|
|
263
|
+
:param pulumi.Input[_builtins.str] group_name: Name of the external group.
|
|
264
|
+
:param pulumi.Input[_builtins.str] team_id: ID of the GitHub team.
|
|
223
265
|
:param pulumi.Input[_builtins.str] team_slug: Slug of the GitHub team
|
|
224
266
|
"""
|
|
225
267
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
@@ -228,6 +270,8 @@ class EmuGroupMapping(pulumi.CustomResource):
|
|
|
228
270
|
|
|
229
271
|
__props__.__dict__["etag"] = etag
|
|
230
272
|
__props__.__dict__["group_id"] = group_id
|
|
273
|
+
__props__.__dict__["group_name"] = group_name
|
|
274
|
+
__props__.__dict__["team_id"] = team_id
|
|
231
275
|
__props__.__dict__["team_slug"] = team_slug
|
|
232
276
|
return EmuGroupMapping(resource_name, opts=opts, __props__=__props__)
|
|
233
277
|
|
|
@@ -244,6 +288,22 @@ class EmuGroupMapping(pulumi.CustomResource):
|
|
|
244
288
|
"""
|
|
245
289
|
return pulumi.get(self, "group_id")
|
|
246
290
|
|
|
291
|
+
@_builtins.property
|
|
292
|
+
@pulumi.getter(name="groupName")
|
|
293
|
+
def group_name(self) -> pulumi.Output[_builtins.str]:
|
|
294
|
+
"""
|
|
295
|
+
Name of the external group.
|
|
296
|
+
"""
|
|
297
|
+
return pulumi.get(self, "group_name")
|
|
298
|
+
|
|
299
|
+
@_builtins.property
|
|
300
|
+
@pulumi.getter(name="teamId")
|
|
301
|
+
def team_id(self) -> pulumi.Output[_builtins.str]:
|
|
302
|
+
"""
|
|
303
|
+
ID of the GitHub team.
|
|
304
|
+
"""
|
|
305
|
+
return pulumi.get(self, "team_id")
|
|
306
|
+
|
|
247
307
|
@_builtins.property
|
|
248
308
|
@pulumi.getter(name="teamSlug")
|
|
249
309
|
def team_slug(self) -> pulumi.Output[_builtins.str]:
|