@pulumi/github 4.17.0 → 5.0.0-alpha.1663887713
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.
- package/README.md +1 -1
- package/actionsEnvironmentSecret.d.ts +0 -105
- package/actionsEnvironmentSecret.js +0 -48
- package/actionsEnvironmentSecret.js.map +1 -1
- package/actionsOrganizationPermissions.d.ts +0 -72
- package/actionsOrganizationPermissions.js +0 -36
- package/actionsOrganizationPermissions.js.map +1 -1
- package/actionsOrganizationSecret.d.ts +0 -110
- package/actionsOrganizationSecret.js +0 -50
- package/actionsOrganizationSecret.js.map +1 -1
- package/actionsOrganizationSecretRepositories.d.ts +0 -47
- package/actionsOrganizationSecretRepositories.js +0 -29
- package/actionsOrganizationSecretRepositories.js.map +1 -1
- package/actionsRunnerGroup.d.ts +0 -88
- package/actionsRunnerGroup.js +0 -25
- package/actionsRunnerGroup.js.map +1 -1
- package/actionsSecret.d.ts +0 -70
- package/actionsSecret.js +0 -22
- package/actionsSecret.js.map +1 -1
- package/appInstallationRepository.d.ts +0 -54
- package/appInstallationRepository.js +0 -36
- package/appInstallationRepository.js.map +1 -1
- package/branch.d.ts +0 -92
- package/branch.js +0 -38
- package/branch.js.map +1 -1
- package/branchDefault.d.ts +0 -53
- package/branchDefault.js +0 -35
- package/branchDefault.js.map +1 -1
- package/branchProtection.d.ts +3 -155
- package/branchProtection.js +0 -53
- package/branchProtection.js.map +1 -1
- package/branchProtectionV3.d.ts +0 -138
- package/branchProtectionV3.js +0 -66
- package/branchProtectionV3.js.map +1 -1
- package/emuGroupMapping.d.ts +0 -41
- package/emuGroupMapping.js +0 -23
- package/emuGroupMapping.js.map +1 -1
- package/getActionsOrganizationSecrets.d.ts +13 -0
- package/getActionsOrganizationSecrets.js +16 -0
- package/getActionsOrganizationSecrets.js.map +1 -0
- package/getActionsPublicKey.d.ts +0 -27
- package/getActionsPublicKey.js +0 -15
- package/getActionsPublicKey.js.map +1 -1
- package/getActionsSecrets.d.ts +30 -0
- package/getActionsSecrets.js +24 -0
- package/getActionsSecrets.js.map +1 -0
- package/getBranch.d.ts +0 -36
- package/getBranch.js +0 -15
- package/getBranch.js.map +1 -1
- package/getCollaborators.d.ts +0 -36
- package/getCollaborators.js +0 -15
- package/getCollaborators.js.map +1 -1
- package/getExternalGroups.d.ts +0 -17
- package/getExternalGroups.js +0 -14
- package/getExternalGroups.js.map +1 -1
- package/getIpRanges.d.ts +0 -84
- package/getIpRanges.js +0 -12
- package/getIpRanges.js.map +1 -1
- package/getMembership.d.ts +0 -38
- package/getMembership.js +0 -17
- package/getMembership.js.map +1 -1
- package/getOrganization.d.ts +0 -38
- package/getOrganization.js +0 -14
- package/getOrganization.js.map +1 -1
- package/getOrganizationTeamSyncGroups.d.ts +0 -15
- package/getOrganizationTeamSyncGroups.js +0 -12
- package/getOrganizationTeamSyncGroups.js.map +1 -1
- package/getOrganizationTeams.d.ts +0 -38
- package/getOrganizationTeams.js +0 -25
- package/getOrganizationTeams.js.map +1 -1
- package/getRef.d.ts +0 -33
- package/getRef.js +0 -15
- package/getRef.js.map +1 -1
- package/getRelease.d.ts +0 -121
- package/getRelease.js +0 -46
- package/getRelease.js.map +1 -1
- package/getRepositories.d.ts +0 -29
- package/getRepositories.js +0 -17
- package/getRepositories.js.map +1 -1
- package/getRepository.d.ts +0 -132
- package/getRepository.js +0 -14
- package/getRepository.js.map +1 -1
- package/getRepositoryFile.d.ts +0 -55
- package/getRepositoryFile.js +0 -17
- package/getRepositoryFile.js.map +1 -1
- package/getRepositoryMilestone.d.ts +0 -46
- package/getRepositoryMilestone.js +0 -16
- package/getRepositoryMilestone.js.map +1 -1
- package/getRepositoryPullRequest.d.ts +0 -75
- package/getRepositoryPullRequest.js +0 -15
- package/getRepositoryPullRequest.js.map +1 -1
- package/getRepositoryPullRequests.d.ts +0 -72
- package/getRepositoryPullRequests.js +0 -18
- package/getRepositoryPullRequests.js.map +1 -1
- package/getRepositoryTeams.d.ts +30 -0
- package/getRepositoryTeams.js +24 -0
- package/getRepositoryTeams.js.map +1 -0
- package/getTeam.d.ts +0 -47
- package/getTeam.js +0 -14
- package/getTeam.js.map +1 -1
- package/getTree.d.ts +0 -45
- package/getTree.js +0 -24
- package/getTree.js.map +1 -1
- package/getUser.d.ts +0 -87
- package/getUser.js +0 -21
- package/getUser.js.map +1 -1
- package/getUsers.d.ts +0 -37
- package/getUsers.js +0 -22
- package/getUsers.js.map +1 -1
- package/index.d.ts +4 -0
- package/index.js +8 -0
- package/index.js.map +1 -1
- package/issue.d.ts +6 -117
- package/issue.js +0 -63
- package/issue.js.map +1 -1
- package/issueLabel.d.ts +0 -64
- package/issueLabel.js +0 -22
- package/issueLabel.js.map +1 -1
- package/membership.d.ts +0 -49
- package/membership.js +0 -28
- package/membership.js.map +1 -1
- package/organizationBlock.d.ts +0 -23
- package/organizationBlock.js +0 -14
- package/organizationBlock.js.map +1 -1
- package/organizationProject.d.ts +0 -38
- package/organizationProject.js +0 -14
- package/organizationProject.js.map +1 -1
- package/organizationWebhook.d.ts +0 -63
- package/organizationWebhook.js +0 -30
- package/organizationWebhook.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/projectCard.d.ts +0 -87
- package/projectCard.js +0 -51
- package/projectCard.js.map +1 -1
- package/projectColumn.d.ts +0 -31
- package/projectColumn.js +0 -13
- package/projectColumn.js.map +1 -1
- package/repository.d.ts +3 -377
- package/repository.js +0 -47
- package/repository.js.map +1 -1
- package/repositoryAutolinkReference.d.ts +6 -40
- package/repositoryAutolinkReference.js +0 -28
- package/repositoryAutolinkReference.js.map +1 -1
- package/repositoryCollaborator.d.ts +0 -90
- package/repositoryCollaborator.js +0 -42
- package/repositoryCollaborator.js.map +1 -1
- package/repositoryDeployKey.d.ts +0 -71
- package/repositoryDeployKey.js +0 -35
- package/repositoryDeployKey.js.map +1 -1
- package/repositoryEnvironment.d.ts +0 -61
- package/repositoryEnvironment.js +0 -34
- package/repositoryEnvironment.js.map +1 -1
- package/repositoryFile.d.ts +28 -68
- package/repositoryFile.js +0 -37
- package/repositoryFile.js.map +1 -1
- package/repositoryMilestone.d.ts +3 -81
- package/repositoryMilestone.js +0 -27
- package/repositoryMilestone.js.map +1 -1
- package/repositoryProject.d.ts +0 -52
- package/repositoryProject.js +0 -19
- package/repositoryProject.js.map +1 -1
- package/repositoryPullRequest.d.ts +4 -127
- package/repositoryPullRequest.js +0 -18
- package/repositoryPullRequest.js.map +1 -1
- package/repositoryTagProtection.d.ts +44 -0
- package/repositoryTagProtection.js +59 -0
- package/repositoryTagProtection.js.map +1 -0
- package/repositoryWebhook.d.ts +0 -79
- package/repositoryWebhook.js +0 -37
- package/repositoryWebhook.js.map +1 -1
- package/team.d.ts +0 -100
- package/team.js +0 -27
- package/team.js.map +1 -1
- package/teamMembers.d.ts +0 -58
- package/teamMembers.js +0 -40
- package/teamMembers.js.map +1 -1
- package/teamMembership.d.ts +0 -67
- package/teamMembership.js +0 -37
- package/teamMembership.js.map +1 -1
- package/teamRepository.d.ts +3 -59
- package/teamRepository.js +0 -35
- package/teamRepository.js.map +1 -1
- package/teamSyncGroupMapping.d.ts +0 -36
- package/teamSyncGroupMapping.js +0 -15
- package/teamSyncGroupMapping.js.map +1 -1
- package/types/input.d.ts +0 -86
- package/types/output.d.ts +16 -237
- package/userGpgKey.d.ts +0 -40
- package/userGpgKey.js +0 -22
- package/userGpgKey.js.map +1 -1
- package/userInvitationAccepter.d.ts +0 -30
- package/userInvitationAccepter.js +0 -21
- package/userInvitationAccepter.js.map +1 -1
- package/userSshKey.d.ts +0 -50
- package/userSshKey.js +0 -26
- package/userSshKey.js.map +1 -1
package/README.md
CHANGED
|
@@ -1,52 +1,4 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
/**
|
|
3
|
-
* ## Example Usage
|
|
4
|
-
*
|
|
5
|
-
* ```typescript
|
|
6
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
7
|
-
* import * as github from "@pulumi/github";
|
|
8
|
-
*
|
|
9
|
-
* const exampleSecretActionsEnvironmentSecret = new github.ActionsEnvironmentSecret("exampleSecretActionsEnvironmentSecret", {
|
|
10
|
-
* environment: "example_environment",
|
|
11
|
-
* secretName: "example_secret_name",
|
|
12
|
-
* plaintextValue: _var.some_secret_string,
|
|
13
|
-
* });
|
|
14
|
-
* const exampleSecretIndex_actionsEnvironmentSecretActionsEnvironmentSecret = new github.ActionsEnvironmentSecret("exampleSecretIndex/actionsEnvironmentSecretActionsEnvironmentSecret", {
|
|
15
|
-
* environment: "example_environment",
|
|
16
|
-
* secretName: "example_secret_name",
|
|
17
|
-
* encryptedValue: _var.some_encrypted_secret_string,
|
|
18
|
-
* });
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* ```typescript
|
|
22
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
23
|
-
* import * as github from "@pulumi/github";
|
|
24
|
-
*
|
|
25
|
-
* const repo = github.getRepository({
|
|
26
|
-
* fullName: "my-org/repo",
|
|
27
|
-
* });
|
|
28
|
-
* const repoEnvironment = new github.RepositoryEnvironment("repoEnvironment", {
|
|
29
|
-
* repository: repo.then(repo => repo.name),
|
|
30
|
-
* environment: "example_environment",
|
|
31
|
-
* });
|
|
32
|
-
* const testSecret = new github.ActionsEnvironmentSecret("testSecret", {
|
|
33
|
-
* repository: repo.then(repo => repo.name),
|
|
34
|
-
* environment: repoEnvironment.environment,
|
|
35
|
-
* secretName: "test_secret_name",
|
|
36
|
-
* plaintextValue: `%s`,
|
|
37
|
-
* });
|
|
38
|
-
* ```
|
|
39
|
-
*
|
|
40
|
-
* ## Import
|
|
41
|
-
*
|
|
42
|
-
* This resource can be imported using an ID made up of the secret name
|
|
43
|
-
*
|
|
44
|
-
* ```sh
|
|
45
|
-
* $ pulumi import github:index/actionsEnvironmentSecret:ActionsEnvironmentSecret test_secret test_secret_name
|
|
46
|
-
* ```
|
|
47
|
-
*
|
|
48
|
-
* NOTEthe implementation is limited in that it won't fetch the value of the `plaintext_value` field when importing. You may need to ignore changes for the `plaintext_value` as a workaround.
|
|
49
|
-
*/
|
|
50
2
|
export declare class ActionsEnvironmentSecret extends pulumi.CustomResource {
|
|
51
3
|
/**
|
|
52
4
|
* Get an existing ActionsEnvironmentSecret resource's state with the given name, ID, and optional extra
|
|
@@ -63,33 +15,12 @@ export declare class ActionsEnvironmentSecret extends pulumi.CustomResource {
|
|
|
63
15
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
64
16
|
*/
|
|
65
17
|
static isInstance(obj: any): obj is ActionsEnvironmentSecret;
|
|
66
|
-
/**
|
|
67
|
-
* Date of actionsEnvironmentSecret creation.
|
|
68
|
-
*/
|
|
69
18
|
readonly createdAt: pulumi.Output<string>;
|
|
70
|
-
/**
|
|
71
|
-
* Encrypted value of the secret using the Github public key in Base64 format.
|
|
72
|
-
*/
|
|
73
19
|
readonly encryptedValue: pulumi.Output<string | undefined>;
|
|
74
|
-
/**
|
|
75
|
-
* Name of the environment.
|
|
76
|
-
*/
|
|
77
20
|
readonly environment: pulumi.Output<string>;
|
|
78
|
-
/**
|
|
79
|
-
* Plaintext value of the secret to be encrypted.
|
|
80
|
-
*/
|
|
81
21
|
readonly plaintextValue: pulumi.Output<string | undefined>;
|
|
82
|
-
/**
|
|
83
|
-
* Name of the repository.
|
|
84
|
-
*/
|
|
85
22
|
readonly repository: pulumi.Output<string>;
|
|
86
|
-
/**
|
|
87
|
-
* Name of the secret.
|
|
88
|
-
*/
|
|
89
23
|
readonly secretName: pulumi.Output<string>;
|
|
90
|
-
/**
|
|
91
|
-
* Date of actionsEnvironmentSecret update.
|
|
92
|
-
*/
|
|
93
24
|
readonly updatedAt: pulumi.Output<string>;
|
|
94
25
|
/**
|
|
95
26
|
* Create a ActionsEnvironmentSecret resource with the given unique name, arguments, and options.
|
|
@@ -104,57 +35,21 @@ export declare class ActionsEnvironmentSecret extends pulumi.CustomResource {
|
|
|
104
35
|
* Input properties used for looking up and filtering ActionsEnvironmentSecret resources.
|
|
105
36
|
*/
|
|
106
37
|
export interface ActionsEnvironmentSecretState {
|
|
107
|
-
/**
|
|
108
|
-
* Date of actionsEnvironmentSecret creation.
|
|
109
|
-
*/
|
|
110
38
|
createdAt?: pulumi.Input<string>;
|
|
111
|
-
/**
|
|
112
|
-
* Encrypted value of the secret using the Github public key in Base64 format.
|
|
113
|
-
*/
|
|
114
39
|
encryptedValue?: pulumi.Input<string>;
|
|
115
|
-
/**
|
|
116
|
-
* Name of the environment.
|
|
117
|
-
*/
|
|
118
40
|
environment?: pulumi.Input<string>;
|
|
119
|
-
/**
|
|
120
|
-
* Plaintext value of the secret to be encrypted.
|
|
121
|
-
*/
|
|
122
41
|
plaintextValue?: pulumi.Input<string>;
|
|
123
|
-
/**
|
|
124
|
-
* Name of the repository.
|
|
125
|
-
*/
|
|
126
42
|
repository?: pulumi.Input<string>;
|
|
127
|
-
/**
|
|
128
|
-
* Name of the secret.
|
|
129
|
-
*/
|
|
130
43
|
secretName?: pulumi.Input<string>;
|
|
131
|
-
/**
|
|
132
|
-
* Date of actionsEnvironmentSecret update.
|
|
133
|
-
*/
|
|
134
44
|
updatedAt?: pulumi.Input<string>;
|
|
135
45
|
}
|
|
136
46
|
/**
|
|
137
47
|
* The set of arguments for constructing a ActionsEnvironmentSecret resource.
|
|
138
48
|
*/
|
|
139
49
|
export interface ActionsEnvironmentSecretArgs {
|
|
140
|
-
/**
|
|
141
|
-
* Encrypted value of the secret using the Github public key in Base64 format.
|
|
142
|
-
*/
|
|
143
50
|
encryptedValue?: pulumi.Input<string>;
|
|
144
|
-
/**
|
|
145
|
-
* Name of the environment.
|
|
146
|
-
*/
|
|
147
51
|
environment: pulumi.Input<string>;
|
|
148
|
-
/**
|
|
149
|
-
* Plaintext value of the secret to be encrypted.
|
|
150
|
-
*/
|
|
151
52
|
plaintextValue?: pulumi.Input<string>;
|
|
152
|
-
/**
|
|
153
|
-
* Name of the repository.
|
|
154
|
-
*/
|
|
155
53
|
repository: pulumi.Input<string>;
|
|
156
|
-
/**
|
|
157
|
-
* Name of the secret.
|
|
158
|
-
*/
|
|
159
54
|
secretName: pulumi.Input<string>;
|
|
160
55
|
}
|
|
@@ -5,54 +5,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.ActionsEnvironmentSecret = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
-
/**
|
|
9
|
-
* ## Example Usage
|
|
10
|
-
*
|
|
11
|
-
* ```typescript
|
|
12
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
-
* import * as github from "@pulumi/github";
|
|
14
|
-
*
|
|
15
|
-
* const exampleSecretActionsEnvironmentSecret = new github.ActionsEnvironmentSecret("exampleSecretActionsEnvironmentSecret", {
|
|
16
|
-
* environment: "example_environment",
|
|
17
|
-
* secretName: "example_secret_name",
|
|
18
|
-
* plaintextValue: _var.some_secret_string,
|
|
19
|
-
* });
|
|
20
|
-
* const exampleSecretIndex_actionsEnvironmentSecretActionsEnvironmentSecret = new github.ActionsEnvironmentSecret("exampleSecretIndex/actionsEnvironmentSecretActionsEnvironmentSecret", {
|
|
21
|
-
* environment: "example_environment",
|
|
22
|
-
* secretName: "example_secret_name",
|
|
23
|
-
* encryptedValue: _var.some_encrypted_secret_string,
|
|
24
|
-
* });
|
|
25
|
-
* ```
|
|
26
|
-
*
|
|
27
|
-
* ```typescript
|
|
28
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
29
|
-
* import * as github from "@pulumi/github";
|
|
30
|
-
*
|
|
31
|
-
* const repo = github.getRepository({
|
|
32
|
-
* fullName: "my-org/repo",
|
|
33
|
-
* });
|
|
34
|
-
* const repoEnvironment = new github.RepositoryEnvironment("repoEnvironment", {
|
|
35
|
-
* repository: repo.then(repo => repo.name),
|
|
36
|
-
* environment: "example_environment",
|
|
37
|
-
* });
|
|
38
|
-
* const testSecret = new github.ActionsEnvironmentSecret("testSecret", {
|
|
39
|
-
* repository: repo.then(repo => repo.name),
|
|
40
|
-
* environment: repoEnvironment.environment,
|
|
41
|
-
* secretName: "test_secret_name",
|
|
42
|
-
* plaintextValue: `%s`,
|
|
43
|
-
* });
|
|
44
|
-
* ```
|
|
45
|
-
*
|
|
46
|
-
* ## Import
|
|
47
|
-
*
|
|
48
|
-
* This resource can be imported using an ID made up of the secret name
|
|
49
|
-
*
|
|
50
|
-
* ```sh
|
|
51
|
-
* $ pulumi import github:index/actionsEnvironmentSecret:ActionsEnvironmentSecret test_secret test_secret_name
|
|
52
|
-
* ```
|
|
53
|
-
*
|
|
54
|
-
* NOTEthe implementation is limited in that it won't fetch the value of the `plaintext_value` field when importing. You may need to ignore changes for the `plaintext_value` as a workaround.
|
|
55
|
-
*/
|
|
56
8
|
class ActionsEnvironmentSecret extends pulumi.CustomResource {
|
|
57
9
|
constructor(name, argsOrState, opts) {
|
|
58
10
|
let resourceInputs = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actionsEnvironmentSecret.js","sourceRoot":"","sources":["../actionsEnvironmentSecret.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"actionsEnvironmentSecret.js","sourceRoot":"","sources":["../actionsEnvironmentSecret.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,wBAAyB,SAAQ,MAAM,CAAC,cAAc;IA4C/D,YAAY,IAAY,EAAE,WAA0E,EAAE,IAAmC;QACrI,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAwD,CAAC;YACvE,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,C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D,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,wBAAwB,CAAC,YAAY,CAAC;IACzE,CAAC;;AA1BL,4DA8EC;AAhEG,gBAAgB;AACO,qCAAY,GAAG,gEAAgE,CAAC"}
|
|
@@ -1,41 +1,5 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
import { input as inputs, output as outputs } from "./types";
|
|
3
|
-
/**
|
|
4
|
-
* This resource allows you to create and manage GitHub Actions permissions within your GitHub enterprise organizations.
|
|
5
|
-
* You must have admin access to an organization to use this resource.
|
|
6
|
-
*
|
|
7
|
-
* ## Example Usage
|
|
8
|
-
*
|
|
9
|
-
* ```typescript
|
|
10
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
-
* import * as github from "@pulumi/github";
|
|
12
|
-
*
|
|
13
|
-
* const example = new github.Repository("example", {});
|
|
14
|
-
* const test = new github.ActionsOrganizationPermissions("test", {
|
|
15
|
-
* allowedActions: "selected",
|
|
16
|
-
* enabledRepositories: "selected",
|
|
17
|
-
* allowedActionsConfig: {
|
|
18
|
-
* githubOwnedAllowed: true,
|
|
19
|
-
* patternsAlloweds: [
|
|
20
|
-
* "actions/cache@*",
|
|
21
|
-
* "actions/checkout@*",
|
|
22
|
-
* ],
|
|
23
|
-
* verifiedAllowed: true,
|
|
24
|
-
* },
|
|
25
|
-
* enabledRepositoriesConfig: {
|
|
26
|
-
* repositoryIds: [example.repoId],
|
|
27
|
-
* },
|
|
28
|
-
* });
|
|
29
|
-
* ```
|
|
30
|
-
*
|
|
31
|
-
* ## Import
|
|
32
|
-
*
|
|
33
|
-
* This resource can be imported using the ID of the GitHub organization
|
|
34
|
-
*
|
|
35
|
-
* ```sh
|
|
36
|
-
* $ pulumi import github:index/actionsOrganizationPermissions:ActionsOrganizationPermissions test <github_organization_name>
|
|
37
|
-
* ```
|
|
38
|
-
*/
|
|
39
3
|
export declare class ActionsOrganizationPermissions extends pulumi.CustomResource {
|
|
40
4
|
/**
|
|
41
5
|
* Get an existing ActionsOrganizationPermissions resource's state with the given name, ID, and optional extra
|
|
@@ -52,21 +16,9 @@ export declare class ActionsOrganizationPermissions extends pulumi.CustomResourc
|
|
|
52
16
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
53
17
|
*/
|
|
54
18
|
static isInstance(obj: any): obj is ActionsOrganizationPermissions;
|
|
55
|
-
/**
|
|
56
|
-
* The permissions policy that controls the actions that are allowed to run. Can be one of: `all`, `localOnly`, or `selected`.
|
|
57
|
-
*/
|
|
58
19
|
readonly allowedActions: pulumi.Output<string | undefined>;
|
|
59
|
-
/**
|
|
60
|
-
* Sets the actions that are allowed in an organization. Only available when `allowedActions` = `selected`. See Allowed Actions Config below for details.
|
|
61
|
-
*/
|
|
62
20
|
readonly allowedActionsConfig: pulumi.Output<outputs.ActionsOrganizationPermissionsAllowedActionsConfig | undefined>;
|
|
63
|
-
/**
|
|
64
|
-
* The policy that controls the repositories in the organization that are allowed to run GitHub Actions. Can be one of: `all`, `none`, or `selected`.
|
|
65
|
-
*/
|
|
66
21
|
readonly enabledRepositories: pulumi.Output<string>;
|
|
67
|
-
/**
|
|
68
|
-
* Sets the list of selected repositories that are enabled for GitHub Actions in an organization. Only available when `enabledRepositories` = `selected`. See Enabled Repositories Config below for details.
|
|
69
|
-
*/
|
|
70
22
|
readonly enabledRepositoriesConfig: pulumi.Output<outputs.ActionsOrganizationPermissionsEnabledRepositoriesConfig | undefined>;
|
|
71
23
|
/**
|
|
72
24
|
* Create a ActionsOrganizationPermissions resource with the given unique name, arguments, and options.
|
|
@@ -81,41 +33,17 @@ export declare class ActionsOrganizationPermissions extends pulumi.CustomResourc
|
|
|
81
33
|
* Input properties used for looking up and filtering ActionsOrganizationPermissions resources.
|
|
82
34
|
*/
|
|
83
35
|
export interface ActionsOrganizationPermissionsState {
|
|
84
|
-
/**
|
|
85
|
-
* The permissions policy that controls the actions that are allowed to run. Can be one of: `all`, `localOnly`, or `selected`.
|
|
86
|
-
*/
|
|
87
36
|
allowedActions?: pulumi.Input<string>;
|
|
88
|
-
/**
|
|
89
|
-
* Sets the actions that are allowed in an organization. Only available when `allowedActions` = `selected`. See Allowed Actions Config below for details.
|
|
90
|
-
*/
|
|
91
37
|
allowedActionsConfig?: pulumi.Input<inputs.ActionsOrganizationPermissionsAllowedActionsConfig>;
|
|
92
|
-
/**
|
|
93
|
-
* The policy that controls the repositories in the organization that are allowed to run GitHub Actions. Can be one of: `all`, `none`, or `selected`.
|
|
94
|
-
*/
|
|
95
38
|
enabledRepositories?: pulumi.Input<string>;
|
|
96
|
-
/**
|
|
97
|
-
* Sets the list of selected repositories that are enabled for GitHub Actions in an organization. Only available when `enabledRepositories` = `selected`. See Enabled Repositories Config below for details.
|
|
98
|
-
*/
|
|
99
39
|
enabledRepositoriesConfig?: pulumi.Input<inputs.ActionsOrganizationPermissionsEnabledRepositoriesConfig>;
|
|
100
40
|
}
|
|
101
41
|
/**
|
|
102
42
|
* The set of arguments for constructing a ActionsOrganizationPermissions resource.
|
|
103
43
|
*/
|
|
104
44
|
export interface ActionsOrganizationPermissionsArgs {
|
|
105
|
-
/**
|
|
106
|
-
* The permissions policy that controls the actions that are allowed to run. Can be one of: `all`, `localOnly`, or `selected`.
|
|
107
|
-
*/
|
|
108
45
|
allowedActions?: pulumi.Input<string>;
|
|
109
|
-
/**
|
|
110
|
-
* Sets the actions that are allowed in an organization. Only available when `allowedActions` = `selected`. See Allowed Actions Config below for details.
|
|
111
|
-
*/
|
|
112
46
|
allowedActionsConfig?: pulumi.Input<inputs.ActionsOrganizationPermissionsAllowedActionsConfig>;
|
|
113
|
-
/**
|
|
114
|
-
* The policy that controls the repositories in the organization that are allowed to run GitHub Actions. Can be one of: `all`, `none`, or `selected`.
|
|
115
|
-
*/
|
|
116
47
|
enabledRepositories: pulumi.Input<string>;
|
|
117
|
-
/**
|
|
118
|
-
* Sets the list of selected repositories that are enabled for GitHub Actions in an organization. Only available when `enabledRepositories` = `selected`. See Enabled Repositories Config below for details.
|
|
119
|
-
*/
|
|
120
48
|
enabledRepositoriesConfig?: pulumi.Input<inputs.ActionsOrganizationPermissionsEnabledRepositoriesConfig>;
|
|
121
49
|
}
|
|
@@ -5,42 +5,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.ActionsOrganizationPermissions = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
-
/**
|
|
9
|
-
* This resource allows you to create and manage GitHub Actions permissions within your GitHub enterprise organizations.
|
|
10
|
-
* You must have admin access to an organization to use this resource.
|
|
11
|
-
*
|
|
12
|
-
* ## Example Usage
|
|
13
|
-
*
|
|
14
|
-
* ```typescript
|
|
15
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
16
|
-
* import * as github from "@pulumi/github";
|
|
17
|
-
*
|
|
18
|
-
* const example = new github.Repository("example", {});
|
|
19
|
-
* const test = new github.ActionsOrganizationPermissions("test", {
|
|
20
|
-
* allowedActions: "selected",
|
|
21
|
-
* enabledRepositories: "selected",
|
|
22
|
-
* allowedActionsConfig: {
|
|
23
|
-
* githubOwnedAllowed: true,
|
|
24
|
-
* patternsAlloweds: [
|
|
25
|
-
* "actions/cache@*",
|
|
26
|
-
* "actions/checkout@*",
|
|
27
|
-
* ],
|
|
28
|
-
* verifiedAllowed: true,
|
|
29
|
-
* },
|
|
30
|
-
* enabledRepositoriesConfig: {
|
|
31
|
-
* repositoryIds: [example.repoId],
|
|
32
|
-
* },
|
|
33
|
-
* });
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* ## Import
|
|
37
|
-
*
|
|
38
|
-
* This resource can be imported using the ID of the GitHub organization
|
|
39
|
-
*
|
|
40
|
-
* ```sh
|
|
41
|
-
* $ pulumi import github:index/actionsOrganizationPermissions:ActionsOrganizationPermissions test <github_organization_name>
|
|
42
|
-
* ```
|
|
43
|
-
*/
|
|
44
8
|
class ActionsOrganizationPermissions extends pulumi.CustomResource {
|
|
45
9
|
constructor(name, argsOrState, opts) {
|
|
46
10
|
let resourceInputs = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actionsOrganizationPermissions.js","sourceRoot":"","sources":["../actionsOrganizationPermissions.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"actionsOrganizationPermissions.js","sourceRoot":"","sources":["../actionsOrganizationPermissions.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC,MAAa,8BAA+B,SAAQ,MAAM,CAAC,cAAc;IAyCrE,YAAY,IAAY,EAAE,WAAsF,EAAE,IAAmC;QACjJ,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA8D,CAAC;YAC7E,cAAc,CAAC,gBAAgB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5E,cAAc,CAAC,sBAAsB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC,CAAC,SAAS,CAAC;YACxF,cAAc,CAAC,qBAAqB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC,CAAC,SAAS,CAAC;YACtF,cAAc,CAAC,2BAA2B,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAAC,CAAC,SAAS,CAAC;SACrG;aAAM;YACH,MAAM,IAAI,GAAG,WAA6D,CAAC;YAC3E,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,mBAAmB,KAAK,SAAS,CAAC,IAAI,CAA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
@@ -1,54 +1,4 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
/**
|
|
3
|
-
* ## Example Usage
|
|
4
|
-
*
|
|
5
|
-
* ```typescript
|
|
6
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
7
|
-
* import * as github from "@pulumi/github";
|
|
8
|
-
*
|
|
9
|
-
* const exampleSecretActionsOrganizationSecret = new github.ActionsOrganizationSecret("exampleSecretActionsOrganizationSecret", {
|
|
10
|
-
* secretName: "example_secret_name",
|
|
11
|
-
* visibility: "private",
|
|
12
|
-
* plaintextValue: _var.some_secret_string,
|
|
13
|
-
* });
|
|
14
|
-
* const exampleSecretIndex_actionsOrganizationSecretActionsOrganizationSecret = new github.ActionsOrganizationSecret("exampleSecretIndex/actionsOrganizationSecretActionsOrganizationSecret", {
|
|
15
|
-
* secretName: "example_secret_name",
|
|
16
|
-
* visibility: "private",
|
|
17
|
-
* encryptedValue: _var.some_encrypted_secret_string,
|
|
18
|
-
* });
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* ```typescript
|
|
22
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
23
|
-
* import * as github from "@pulumi/github";
|
|
24
|
-
*
|
|
25
|
-
* const repo = github.getRepository({
|
|
26
|
-
* fullName: "my-org/repo",
|
|
27
|
-
* });
|
|
28
|
-
* const exampleSecretActionsOrganizationSecret = new github.ActionsOrganizationSecret("exampleSecretActionsOrganizationSecret", {
|
|
29
|
-
* secretName: "example_secret_name",
|
|
30
|
-
* visibility: "selected",
|
|
31
|
-
* plaintextValue: _var.some_secret_string,
|
|
32
|
-
* selectedRepositoryIds: [repo.then(repo => repo.repoId)],
|
|
33
|
-
* });
|
|
34
|
-
* const exampleSecretIndex_actionsOrganizationSecretActionsOrganizationSecret = new github.ActionsOrganizationSecret("exampleSecretIndex/actionsOrganizationSecretActionsOrganizationSecret", {
|
|
35
|
-
* secretName: "example_secret_name",
|
|
36
|
-
* visibility: "selected",
|
|
37
|
-
* encryptedValue: _var.some_encrypted_secret_string,
|
|
38
|
-
* selectedRepositoryIds: [repo.then(repo => repo.repoId)],
|
|
39
|
-
* });
|
|
40
|
-
* ```
|
|
41
|
-
*
|
|
42
|
-
* ## Import
|
|
43
|
-
*
|
|
44
|
-
* This resource can be imported using an ID made up of the secret name
|
|
45
|
-
*
|
|
46
|
-
* ```sh
|
|
47
|
-
* $ pulumi import github:index/actionsOrganizationSecret:ActionsOrganizationSecret test_secret test_secret_name
|
|
48
|
-
* ```
|
|
49
|
-
*
|
|
50
|
-
* NOTEthe implementation is limited in that it won't fetch the value of the `plaintext_value` or `encrypted_value` fields when importing. You may need to ignore changes for these as a workaround.
|
|
51
|
-
*/
|
|
52
2
|
export declare class ActionsOrganizationSecret extends pulumi.CustomResource {
|
|
53
3
|
/**
|
|
54
4
|
* Get an existing ActionsOrganizationSecret resource's state with the given name, ID, and optional extra
|
|
@@ -65,34 +15,12 @@ export declare class ActionsOrganizationSecret extends pulumi.CustomResource {
|
|
|
65
15
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
66
16
|
*/
|
|
67
17
|
static isInstance(obj: any): obj is ActionsOrganizationSecret;
|
|
68
|
-
/**
|
|
69
|
-
* Date of actionsSecret creation.
|
|
70
|
-
*/
|
|
71
18
|
readonly createdAt: pulumi.Output<string>;
|
|
72
|
-
/**
|
|
73
|
-
* Encrypted value of the secret using the Github public key in Base64 format.
|
|
74
|
-
*/
|
|
75
19
|
readonly encryptedValue: pulumi.Output<string | undefined>;
|
|
76
|
-
/**
|
|
77
|
-
* Plaintext value of the secret to be encrypted
|
|
78
|
-
*/
|
|
79
20
|
readonly plaintextValue: pulumi.Output<string | undefined>;
|
|
80
|
-
/**
|
|
81
|
-
* Name of the secret
|
|
82
|
-
*/
|
|
83
21
|
readonly secretName: pulumi.Output<string>;
|
|
84
|
-
/**
|
|
85
|
-
* An array of repository ids that can access the organization secret.
|
|
86
|
-
*/
|
|
87
22
|
readonly selectedRepositoryIds: pulumi.Output<number[] | undefined>;
|
|
88
|
-
/**
|
|
89
|
-
* Date of actionsSecret update.
|
|
90
|
-
*/
|
|
91
23
|
readonly updatedAt: pulumi.Output<string>;
|
|
92
|
-
/**
|
|
93
|
-
* Configures the access that repositories have to the organization secret.
|
|
94
|
-
* Must be one of `all`, `private`, `selected`. `selectedRepositoryIds` is required if set to `selected`.
|
|
95
|
-
*/
|
|
96
24
|
readonly visibility: pulumi.Output<string>;
|
|
97
25
|
/**
|
|
98
26
|
* Create a ActionsOrganizationSecret resource with the given unique name, arguments, and options.
|
|
@@ -107,59 +35,21 @@ export declare class ActionsOrganizationSecret extends pulumi.CustomResource {
|
|
|
107
35
|
* Input properties used for looking up and filtering ActionsOrganizationSecret resources.
|
|
108
36
|
*/
|
|
109
37
|
export interface ActionsOrganizationSecretState {
|
|
110
|
-
/**
|
|
111
|
-
* Date of actionsSecret creation.
|
|
112
|
-
*/
|
|
113
38
|
createdAt?: pulumi.Input<string>;
|
|
114
|
-
/**
|
|
115
|
-
* Encrypted value of the secret using the Github public key in Base64 format.
|
|
116
|
-
*/
|
|
117
39
|
encryptedValue?: pulumi.Input<string>;
|
|
118
|
-
/**
|
|
119
|
-
* Plaintext value of the secret to be encrypted
|
|
120
|
-
*/
|
|
121
40
|
plaintextValue?: pulumi.Input<string>;
|
|
122
|
-
/**
|
|
123
|
-
* Name of the secret
|
|
124
|
-
*/
|
|
125
41
|
secretName?: pulumi.Input<string>;
|
|
126
|
-
/**
|
|
127
|
-
* An array of repository ids that can access the organization secret.
|
|
128
|
-
*/
|
|
129
42
|
selectedRepositoryIds?: pulumi.Input<pulumi.Input<number>[]>;
|
|
130
|
-
/**
|
|
131
|
-
* Date of actionsSecret update.
|
|
132
|
-
*/
|
|
133
43
|
updatedAt?: pulumi.Input<string>;
|
|
134
|
-
/**
|
|
135
|
-
* Configures the access that repositories have to the organization secret.
|
|
136
|
-
* Must be one of `all`, `private`, `selected`. `selectedRepositoryIds` is required if set to `selected`.
|
|
137
|
-
*/
|
|
138
44
|
visibility?: pulumi.Input<string>;
|
|
139
45
|
}
|
|
140
46
|
/**
|
|
141
47
|
* The set of arguments for constructing a ActionsOrganizationSecret resource.
|
|
142
48
|
*/
|
|
143
49
|
export interface ActionsOrganizationSecretArgs {
|
|
144
|
-
/**
|
|
145
|
-
* Encrypted value of the secret using the Github public key in Base64 format.
|
|
146
|
-
*/
|
|
147
50
|
encryptedValue?: pulumi.Input<string>;
|
|
148
|
-
/**
|
|
149
|
-
* Plaintext value of the secret to be encrypted
|
|
150
|
-
*/
|
|
151
51
|
plaintextValue?: pulumi.Input<string>;
|
|
152
|
-
/**
|
|
153
|
-
* Name of the secret
|
|
154
|
-
*/
|
|
155
52
|
secretName: pulumi.Input<string>;
|
|
156
|
-
/**
|
|
157
|
-
* An array of repository ids that can access the organization secret.
|
|
158
|
-
*/
|
|
159
53
|
selectedRepositoryIds?: pulumi.Input<pulumi.Input<number>[]>;
|
|
160
|
-
/**
|
|
161
|
-
* Configures the access that repositories have to the organization secret.
|
|
162
|
-
* Must be one of `all`, `private`, `selected`. `selectedRepositoryIds` is required if set to `selected`.
|
|
163
|
-
*/
|
|
164
54
|
visibility: pulumi.Input<string>;
|
|
165
55
|
}
|
|
@@ -5,56 +5,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.ActionsOrganizationSecret = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
-
/**
|
|
9
|
-
* ## Example Usage
|
|
10
|
-
*
|
|
11
|
-
* ```typescript
|
|
12
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
-
* import * as github from "@pulumi/github";
|
|
14
|
-
*
|
|
15
|
-
* const exampleSecretActionsOrganizationSecret = new github.ActionsOrganizationSecret("exampleSecretActionsOrganizationSecret", {
|
|
16
|
-
* secretName: "example_secret_name",
|
|
17
|
-
* visibility: "private",
|
|
18
|
-
* plaintextValue: _var.some_secret_string,
|
|
19
|
-
* });
|
|
20
|
-
* const exampleSecretIndex_actionsOrganizationSecretActionsOrganizationSecret = new github.ActionsOrganizationSecret("exampleSecretIndex/actionsOrganizationSecretActionsOrganizationSecret", {
|
|
21
|
-
* secretName: "example_secret_name",
|
|
22
|
-
* visibility: "private",
|
|
23
|
-
* encryptedValue: _var.some_encrypted_secret_string,
|
|
24
|
-
* });
|
|
25
|
-
* ```
|
|
26
|
-
*
|
|
27
|
-
* ```typescript
|
|
28
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
29
|
-
* import * as github from "@pulumi/github";
|
|
30
|
-
*
|
|
31
|
-
* const repo = github.getRepository({
|
|
32
|
-
* fullName: "my-org/repo",
|
|
33
|
-
* });
|
|
34
|
-
* const exampleSecretActionsOrganizationSecret = new github.ActionsOrganizationSecret("exampleSecretActionsOrganizationSecret", {
|
|
35
|
-
* secretName: "example_secret_name",
|
|
36
|
-
* visibility: "selected",
|
|
37
|
-
* plaintextValue: _var.some_secret_string,
|
|
38
|
-
* selectedRepositoryIds: [repo.then(repo => repo.repoId)],
|
|
39
|
-
* });
|
|
40
|
-
* const exampleSecretIndex_actionsOrganizationSecretActionsOrganizationSecret = new github.ActionsOrganizationSecret("exampleSecretIndex/actionsOrganizationSecretActionsOrganizationSecret", {
|
|
41
|
-
* secretName: "example_secret_name",
|
|
42
|
-
* visibility: "selected",
|
|
43
|
-
* encryptedValue: _var.some_encrypted_secret_string,
|
|
44
|
-
* selectedRepositoryIds: [repo.then(repo => repo.repoId)],
|
|
45
|
-
* });
|
|
46
|
-
* ```
|
|
47
|
-
*
|
|
48
|
-
* ## Import
|
|
49
|
-
*
|
|
50
|
-
* This resource can be imported using an ID made up of the secret name
|
|
51
|
-
*
|
|
52
|
-
* ```sh
|
|
53
|
-
* $ pulumi import github:index/actionsOrganizationSecret:ActionsOrganizationSecret test_secret test_secret_name
|
|
54
|
-
* ```
|
|
55
|
-
*
|
|
56
|
-
* NOTEthe implementation is limited in that it won't fetch the value of the `plaintext_value` or `encrypted_value` fields when importing. You may need to ignore changes for these as a workaround.
|
|
57
|
-
*/
|
|
58
8
|
class ActionsOrganizationSecret extends pulumi.CustomResource {
|
|
59
9
|
constructor(name, argsOrState, opts) {
|
|
60
10
|
let resourceInputs = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actionsOrganizationSecret.js","sourceRoot":"","sources":["../actionsOrganizationSecret.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"actionsOrganizationSecret.js","sourceRoot":"","sources":["../actionsOrganizationSecret.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,yBAA0B,SAAQ,MAAM,CAAC,cAAc;IA4ChE,YAAY,IAAY,EAAE,WAA4E,EAAE,IAAmC;QACvI,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAyD,CAAC;YACxE,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,gBAAgB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5E,cAAc,CAAC,gBAAgB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5E,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,uBAAuB,CAAC,GAAG,KA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