@pulumi/github 6.7.3 → 6.7.4
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/actionsEnvironmentSecret.js +16 -16
- package/actionsEnvironmentSecret.js.map +1 -1
- package/actionsEnvironmentVariable.js +15 -15
- package/actionsEnvironmentVariable.js.map +1 -1
- package/actionsOrganizationOidcSubjectClaimCustomizationTemplate.js +4 -4
- package/actionsOrganizationOidcSubjectClaimCustomizationTemplate.js.map +1 -1
- package/actionsOrganizationPermissions.js +10 -10
- package/actionsOrganizationPermissions.js.map +1 -1
- package/actionsOrganizationSecret.js +15 -15
- package/actionsOrganizationSecret.js.map +1 -1
- package/actionsOrganizationSecretRepositories.js +7 -7
- package/actionsOrganizationSecretRepositories.js.map +1 -1
- package/actionsOrganizationVariable.js +14 -14
- package/actionsOrganizationVariable.js.map +1 -1
- package/actionsRepositoryAccessLevel.js +7 -7
- package/actionsRepositoryAccessLevel.js.map +1 -1
- package/actionsRepositoryOidcSubjectClaimCustomizationTemplate.js +9 -9
- package/actionsRepositoryOidcSubjectClaimCustomizationTemplate.js.map +1 -1
- package/actionsRepositoryPermissions.js +10 -10
- package/actionsRepositoryPermissions.js.map +1 -1
- package/actionsRunnerGroup.js +19 -19
- package/actionsRunnerGroup.js.map +1 -1
- package/actionsSecret.js +13 -13
- package/actionsSecret.js.map +1 -1
- package/actionsVariable.js +12 -12
- package/actionsVariable.js.map +1 -1
- package/appInstallationRepositories.js +7 -7
- package/appInstallationRepositories.js.map +1 -1
- package/appInstallationRepository.js +8 -8
- package/appInstallationRepository.js.map +1 -1
- package/branch.js +14 -14
- package/branch.js.map +1 -1
- package/branchDefault.js +10 -10
- package/branchDefault.js.map +1 -1
- package/branchProtection.js +29 -29
- package/branchProtection.js.map +1 -1
- package/branchProtectionV3.js +20 -20
- package/branchProtectionV3.js.map +1 -1
- package/codespacesOrganizationSecret.js +15 -15
- package/codespacesOrganizationSecret.js.map +1 -1
- package/codespacesOrganizationSecretRepositories.js +7 -7
- package/codespacesOrganizationSecretRepositories.js.map +1 -1
- package/codespacesSecret.js +13 -13
- package/codespacesSecret.js.map +1 -1
- package/codespacesUserSecret.js +12 -12
- package/codespacesUserSecret.js.map +1 -1
- package/config/vars.d.ts +4 -9
- package/config/vars.js +2 -4
- package/config/vars.js.map +1 -1
- package/dependabotOrganizationSecret.js +15 -15
- package/dependabotOrganizationSecret.js.map +1 -1
- package/dependabotOrganizationSecretRepositories.js +7 -7
- package/dependabotOrganizationSecretRepositories.js.map +1 -1
- package/dependabotSecret.js +13 -13
- package/dependabotSecret.js.map +1 -1
- package/emuGroupMapping.js +8 -8
- package/emuGroupMapping.js.map +1 -1
- package/enterpriseActionsPermissions.js +13 -13
- package/enterpriseActionsPermissions.js.map +1 -1
- package/enterpriseActionsRunnerGroup.js +21 -21
- package/enterpriseActionsRunnerGroup.js.map +1 -1
- package/enterpriseOrganization.js +17 -17
- package/enterpriseOrganization.js.map +1 -1
- package/getRelease.d.ts +28 -0
- package/getRelease.js +28 -0
- package/getRelease.js.map +1 -1
- package/issue.js +18 -18
- package/issue.js.map +1 -1
- package/issueLabel.js +13 -13
- package/issueLabel.js.map +1 -1
- package/issueLabels.js +6 -6
- package/issueLabels.js.map +1 -1
- package/membership.js +9 -9
- package/membership.js.map +1 -1
- package/organizationBlock.js +5 -5
- package/organizationBlock.js.map +1 -1
- package/organizationCustomRole.js +11 -11
- package/organizationCustomRole.js.map +1 -1
- package/organizationProject.js +7 -7
- package/organizationProject.js.map +1 -1
- package/organizationRuleset.js +19 -19
- package/organizationRuleset.js.map +1 -1
- package/organizationSecurityManager.js +4 -4
- package/organizationSecurityManager.js.map +1 -1
- package/organizationSettings.js +54 -54
- package/organizationSettings.js.map +1 -1
- package/organizationWebhook.d.ts +2 -0
- package/organizationWebhook.js +12 -10
- package/organizationWebhook.js.map +1 -1
- package/package.json +2 -2
- package/projectCard.js +12 -12
- package/projectCard.js.map +1 -1
- package/projectColumn.js +8 -8
- package/projectColumn.js.map +1 -1
- package/provider.d.ts +4 -9
- package/provider.js +12 -13
- package/provider.js.map +1 -1
- package/release.js +32 -32
- package/release.js.map +1 -1
- package/repository.js +79 -79
- package/repository.js.map +1 -1
- package/repositoryAutolinkReference.js +13 -13
- package/repositoryAutolinkReference.js.map +1 -1
- package/repositoryCollaborator.js +12 -12
- package/repositoryCollaborator.js.map +1 -1
- package/repositoryCollaborators.js +11 -11
- package/repositoryCollaborators.js.map +1 -1
- package/repositoryCustomProperty.js +13 -13
- package/repositoryCustomProperty.js.map +1 -1
- package/repositoryDependabotSecurityUpdates.js +7 -7
- package/repositoryDependabotSecurityUpdates.js.map +1 -1
- package/repositoryDeployKey.js +13 -13
- package/repositoryDeployKey.js.map +1 -1
- package/repositoryDeploymentBranchPolicy.js +10 -10
- package/repositoryDeploymentBranchPolicy.js.map +1 -1
- package/repositoryEnvironment.js +17 -17
- package/repositoryEnvironment.js.map +1 -1
- package/repositoryEnvironmentDeploymentPolicy.js +11 -11
- package/repositoryEnvironmentDeploymentPolicy.js.map +1 -1
- package/repositoryFile.js +29 -29
- package/repositoryFile.js.map +1 -1
- package/repositoryMilestone.js +17 -17
- package/repositoryMilestone.js.map +1 -1
- package/repositoryProject.js +10 -10
- package/repositoryProject.js.map +1 -1
- package/repositoryPullRequest.js +28 -28
- package/repositoryPullRequest.js.map +1 -1
- package/repositoryRuleset.js +21 -21
- package/repositoryRuleset.js.map +1 -1
- package/repositoryTopics.js +7 -7
- package/repositoryTopics.js.map +1 -1
- package/repositoryWebhook.js +13 -13
- package/repositoryWebhook.js.map +1 -1
- package/team.js +21 -21
- package/team.js.map +1 -1
- package/teamMembers.js +7 -7
- package/teamMembers.js.map +1 -1
- package/teamMembership.js +10 -10
- package/teamMembership.js.map +1 -1
- package/teamRepository.js +10 -10
- package/teamRepository.js.map +1 -1
- package/teamSettings.js +8 -8
- package/teamSettings.js.map +1 -1
- package/teamSyncGroupMapping.js +7 -7
- package/teamSyncGroupMapping.js.map +1 -1
- package/userGpgKey.js +6 -6
- package/userGpgKey.js.map +1 -1
- package/userInvitationAccepter.js +5 -5
- package/userInvitationAccepter.js.map +1 -1
- package/userSshKey.js +9 -9
- package/userSshKey.js.map +1 -1
- package/utilities.js +18 -29
- package/utilities.js.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"branchProtectionV3.js","sourceRoot":"","sources":["../branchProtectionV3.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IACzD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA+B,EAAE,IAAmC;QAC7H,OAAO,IAAI,kBAAkB,CAAC,IAAI,EAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"branchProtectionV3.js","sourceRoot":"","sources":["../branchProtectionV3.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IACzD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA+B,EAAE,IAAmC;QAC7H,OAAO,IAAI,kBAAkB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACzE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,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a,CAAC;YACtD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,+BAA+B,CAAC,GAAG,IAAI,EAAE,6BAA6B,CAAC;YACtF,cAAc,CAAC,sBAAsB,CAAC,GAAG,IAAI,EAAE,oBAAoB,CAAC;YACpE,cAAc,CAAC,4BAA4B,CAAC,GAAG,IAAI,EAAE,0BAA0B,CAAC;YAChF,cAAc,CAAC,sBAAsB,CAAC,GAAG,IAAI,EAAE,oBAAoB,CAAC;YACpE,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,EAAE,YAAY,CAAC;YACpD,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC9C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,kBAAkB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACvE,CAAC;;AAxGL,gDAyGC;AA3FG,gBAAgB;AACO,+BAAY,GAAG,oDAAoD,CAAC"}
|
|
@@ -31,7 +31,7 @@ class CodespacesOrganizationSecret extends pulumi.CustomResource {
|
|
|
31
31
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
32
32
|
*/
|
|
33
33
|
static get(name, id, state, opts) {
|
|
34
|
-
return new CodespacesOrganizationSecret(name, state,
|
|
34
|
+
return new CodespacesOrganizationSecret(name, state, { ...opts, id: id });
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
37
37
|
* Returns true if the given object is an instance of CodespacesOrganizationSecret. This is designed to work even
|
|
@@ -48,27 +48,27 @@ class CodespacesOrganizationSecret extends pulumi.CustomResource {
|
|
|
48
48
|
opts = opts || {};
|
|
49
49
|
if (opts.id) {
|
|
50
50
|
const state = argsOrState;
|
|
51
|
-
resourceInputs["createdAt"] = state
|
|
52
|
-
resourceInputs["encryptedValue"] = state
|
|
53
|
-
resourceInputs["plaintextValue"] = state
|
|
54
|
-
resourceInputs["secretName"] = state
|
|
55
|
-
resourceInputs["selectedRepositoryIds"] = state
|
|
56
|
-
resourceInputs["updatedAt"] = state
|
|
57
|
-
resourceInputs["visibility"] = state
|
|
51
|
+
resourceInputs["createdAt"] = state?.createdAt;
|
|
52
|
+
resourceInputs["encryptedValue"] = state?.encryptedValue;
|
|
53
|
+
resourceInputs["plaintextValue"] = state?.plaintextValue;
|
|
54
|
+
resourceInputs["secretName"] = state?.secretName;
|
|
55
|
+
resourceInputs["selectedRepositoryIds"] = state?.selectedRepositoryIds;
|
|
56
|
+
resourceInputs["updatedAt"] = state?.updatedAt;
|
|
57
|
+
resourceInputs["visibility"] = state?.visibility;
|
|
58
58
|
}
|
|
59
59
|
else {
|
|
60
60
|
const args = argsOrState;
|
|
61
|
-
if (
|
|
61
|
+
if (args?.secretName === undefined && !opts.urn) {
|
|
62
62
|
throw new Error("Missing required property 'secretName'");
|
|
63
63
|
}
|
|
64
|
-
if (
|
|
64
|
+
if (args?.visibility === undefined && !opts.urn) {
|
|
65
65
|
throw new Error("Missing required property 'visibility'");
|
|
66
66
|
}
|
|
67
|
-
resourceInputs["encryptedValue"] =
|
|
68
|
-
resourceInputs["plaintextValue"] =
|
|
69
|
-
resourceInputs["secretName"] = args
|
|
70
|
-
resourceInputs["selectedRepositoryIds"] = args
|
|
71
|
-
resourceInputs["visibility"] = args
|
|
67
|
+
resourceInputs["encryptedValue"] = args?.encryptedValue ? pulumi.secret(args.encryptedValue) : undefined;
|
|
68
|
+
resourceInputs["plaintextValue"] = args?.plaintextValue ? pulumi.secret(args.plaintextValue) : undefined;
|
|
69
|
+
resourceInputs["secretName"] = args?.secretName;
|
|
70
|
+
resourceInputs["selectedRepositoryIds"] = args?.selectedRepositoryIds;
|
|
71
|
+
resourceInputs["visibility"] = args?.visibility;
|
|
72
72
|
resourceInputs["createdAt"] = undefined /*out*/;
|
|
73
73
|
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
74
74
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codespacesOrganizationSecret.js","sourceRoot":"","sources":["../codespacesOrganizationSecret.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;GAcG;AACH,MAAa,4BAA6B,SAAQ,MAAM,CAAC,cAAc;IACnE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyC,EAAE,IAAmC;QACvI,OAAO,IAAI,4BAA4B,CAAC,IAAI,EAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"codespacesOrganizationSecret.js","sourceRoot":"","sources":["../codespacesOrganizationSecret.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;GAcG;AACH,MAAa,4BAA6B,SAAQ,MAAM,CAAC,cAAc;IACnE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyC,EAAE,IAAmC;QACvI,OAAO,IAAI,4BAA4B,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACnF,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,4BAA4B,CAAC,YAAY,CAAC;IAC7E,CAAC;IAwCD,YAAY,IAAY,EAAE,WAAkF,EAAE,IAAmC;QAC7I,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,I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qBAAqB,CAAC;YACtE,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,EAAE,CAAC;QACrF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,4BAA4B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACjF,CAAC;;AAlGL,oEAmGC;AArFG,gBAAgB;AACO,yCAAY,GAAG,wEAAwE,CAAC"}
|
|
@@ -46,7 +46,7 @@ class CodespacesOrganizationSecretRepositories extends pulumi.CustomResource {
|
|
|
46
46
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
47
47
|
*/
|
|
48
48
|
static get(name, id, state, opts) {
|
|
49
|
-
return new CodespacesOrganizationSecretRepositories(name, state,
|
|
49
|
+
return new CodespacesOrganizationSecretRepositories(name, state, { ...opts, id: id });
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
52
52
|
* Returns true if the given object is an instance of CodespacesOrganizationSecretRepositories. This is designed to work even
|
|
@@ -63,19 +63,19 @@ class CodespacesOrganizationSecretRepositories extends pulumi.CustomResource {
|
|
|
63
63
|
opts = opts || {};
|
|
64
64
|
if (opts.id) {
|
|
65
65
|
const state = argsOrState;
|
|
66
|
-
resourceInputs["secretName"] = state
|
|
67
|
-
resourceInputs["selectedRepositoryIds"] = state
|
|
66
|
+
resourceInputs["secretName"] = state?.secretName;
|
|
67
|
+
resourceInputs["selectedRepositoryIds"] = state?.selectedRepositoryIds;
|
|
68
68
|
}
|
|
69
69
|
else {
|
|
70
70
|
const args = argsOrState;
|
|
71
|
-
if (
|
|
71
|
+
if (args?.secretName === undefined && !opts.urn) {
|
|
72
72
|
throw new Error("Missing required property 'secretName'");
|
|
73
73
|
}
|
|
74
|
-
if (
|
|
74
|
+
if (args?.selectedRepositoryIds === undefined && !opts.urn) {
|
|
75
75
|
throw new Error("Missing required property 'selectedRepositoryIds'");
|
|
76
76
|
}
|
|
77
|
-
resourceInputs["secretName"] = args
|
|
78
|
-
resourceInputs["selectedRepositoryIds"] = args
|
|
77
|
+
resourceInputs["secretName"] = args?.secretName;
|
|
78
|
+
resourceInputs["selectedRepositoryIds"] = args?.selectedRepositoryIds;
|
|
79
79
|
}
|
|
80
80
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
81
81
|
super(CodespacesOrganizationSecretRepositories.__pulumiType, name, resourceInputs, opts);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codespacesOrganizationSecretRepositories.js","sourceRoot":"","sources":["../codespacesOrganizationSecretRepositories.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAa,wCAAyC,SAAQ,MAAM,CAAC,cAAc;IAC/E;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqD,EAAE,IAAmC;QACnJ,OAAO,IAAI,wCAAwC,CAAC,IAAI,EAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"codespacesOrganizationSecretRepositories.js","sourceRoot":"","sources":["../codespacesOrganizationSecretRepositories.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH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G,IAAI,EAAE,qBAAqB,CAAC;SACzE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,wCAAwC,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7F,CAAC;;AAjEL,4FAkEC;AApDG,gBAAgB;AACO,qDAAY,GAAG,gGAAgG,CAAC"}
|
package/codespacesSecret.js
CHANGED
|
@@ -29,7 +29,7 @@ class CodespacesSecret extends pulumi.CustomResource {
|
|
|
29
29
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
30
30
|
*/
|
|
31
31
|
static get(name, id, state, opts) {
|
|
32
|
-
return new CodespacesSecret(name, state,
|
|
32
|
+
return new CodespacesSecret(name, state, { ...opts, id: id });
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
* Returns true if the given object is an instance of CodespacesSecret. This is designed to work even
|
|
@@ -46,25 +46,25 @@ class CodespacesSecret extends pulumi.CustomResource {
|
|
|
46
46
|
opts = opts || {};
|
|
47
47
|
if (opts.id) {
|
|
48
48
|
const state = argsOrState;
|
|
49
|
-
resourceInputs["createdAt"] = state
|
|
50
|
-
resourceInputs["encryptedValue"] = state
|
|
51
|
-
resourceInputs["plaintextValue"] = state
|
|
52
|
-
resourceInputs["repository"] = state
|
|
53
|
-
resourceInputs["secretName"] = state
|
|
54
|
-
resourceInputs["updatedAt"] = state
|
|
49
|
+
resourceInputs["createdAt"] = state?.createdAt;
|
|
50
|
+
resourceInputs["encryptedValue"] = state?.encryptedValue;
|
|
51
|
+
resourceInputs["plaintextValue"] = state?.plaintextValue;
|
|
52
|
+
resourceInputs["repository"] = state?.repository;
|
|
53
|
+
resourceInputs["secretName"] = state?.secretName;
|
|
54
|
+
resourceInputs["updatedAt"] = state?.updatedAt;
|
|
55
55
|
}
|
|
56
56
|
else {
|
|
57
57
|
const args = argsOrState;
|
|
58
|
-
if (
|
|
58
|
+
if (args?.repository === undefined && !opts.urn) {
|
|
59
59
|
throw new Error("Missing required property 'repository'");
|
|
60
60
|
}
|
|
61
|
-
if (
|
|
61
|
+
if (args?.secretName === undefined && !opts.urn) {
|
|
62
62
|
throw new Error("Missing required property 'secretName'");
|
|
63
63
|
}
|
|
64
|
-
resourceInputs["encryptedValue"] =
|
|
65
|
-
resourceInputs["plaintextValue"] =
|
|
66
|
-
resourceInputs["repository"] = args
|
|
67
|
-
resourceInputs["secretName"] = args
|
|
64
|
+
resourceInputs["encryptedValue"] = args?.encryptedValue ? pulumi.secret(args.encryptedValue) : undefined;
|
|
65
|
+
resourceInputs["plaintextValue"] = args?.plaintextValue ? pulumi.secret(args.plaintextValue) : undefined;
|
|
66
|
+
resourceInputs["repository"] = args?.repository;
|
|
67
|
+
resourceInputs["secretName"] = args?.secretName;
|
|
68
68
|
resourceInputs["createdAt"] = undefined /*out*/;
|
|
69
69
|
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
70
70
|
}
|
package/codespacesSecret.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codespacesSecret.js","sourceRoot":"","sources":["../codespacesSecret.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;GAYG;AACH,MAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IACvD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA6B,EAAE,IAAmC;QAC3H,OAAO,IAAI,gBAAgB,CAAC,IAAI,EAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"codespacesSecret.js","sourceRoot":"","sources":["../codespacesSecret.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;GAYG;AACH,MAAa,gBAAiB,SAAQ,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I,EAAE,UAAU,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC7C,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;aAC7D;YACD,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YACzG,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YACzG,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,EAAE,CAAC;QACrF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,gBAAgB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACrE,CAAC;;AA3FL,4CA4FC;AA9EG,gBAAgB;AACO,6BAAY,GAAG,gDAAgD,CAAC"}
|
package/codespacesUserSecret.js
CHANGED
|
@@ -31,7 +31,7 @@ class CodespacesUserSecret extends pulumi.CustomResource {
|
|
|
31
31
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
32
32
|
*/
|
|
33
33
|
static get(name, id, state, opts) {
|
|
34
|
-
return new CodespacesUserSecret(name, state,
|
|
34
|
+
return new CodespacesUserSecret(name, state, { ...opts, id: id });
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
37
37
|
* Returns true if the given object is an instance of CodespacesUserSecret. This is designed to work even
|
|
@@ -48,22 +48,22 @@ class CodespacesUserSecret extends pulumi.CustomResource {
|
|
|
48
48
|
opts = opts || {};
|
|
49
49
|
if (opts.id) {
|
|
50
50
|
const state = argsOrState;
|
|
51
|
-
resourceInputs["createdAt"] = state
|
|
52
|
-
resourceInputs["encryptedValue"] = state
|
|
53
|
-
resourceInputs["plaintextValue"] = state
|
|
54
|
-
resourceInputs["secretName"] = state
|
|
55
|
-
resourceInputs["selectedRepositoryIds"] = state
|
|
56
|
-
resourceInputs["updatedAt"] = state
|
|
51
|
+
resourceInputs["createdAt"] = state?.createdAt;
|
|
52
|
+
resourceInputs["encryptedValue"] = state?.encryptedValue;
|
|
53
|
+
resourceInputs["plaintextValue"] = state?.plaintextValue;
|
|
54
|
+
resourceInputs["secretName"] = state?.secretName;
|
|
55
|
+
resourceInputs["selectedRepositoryIds"] = state?.selectedRepositoryIds;
|
|
56
|
+
resourceInputs["updatedAt"] = state?.updatedAt;
|
|
57
57
|
}
|
|
58
58
|
else {
|
|
59
59
|
const args = argsOrState;
|
|
60
|
-
if (
|
|
60
|
+
if (args?.secretName === undefined && !opts.urn) {
|
|
61
61
|
throw new Error("Missing required property 'secretName'");
|
|
62
62
|
}
|
|
63
|
-
resourceInputs["encryptedValue"] =
|
|
64
|
-
resourceInputs["plaintextValue"] =
|
|
65
|
-
resourceInputs["secretName"] = args
|
|
66
|
-
resourceInputs["selectedRepositoryIds"] = args
|
|
63
|
+
resourceInputs["encryptedValue"] = args?.encryptedValue ? pulumi.secret(args.encryptedValue) : undefined;
|
|
64
|
+
resourceInputs["plaintextValue"] = args?.plaintextValue ? pulumi.secret(args.plaintextValue) : undefined;
|
|
65
|
+
resourceInputs["secretName"] = args?.secretName;
|
|
66
|
+
resourceInputs["selectedRepositoryIds"] = args?.selectedRepositoryIds;
|
|
67
67
|
resourceInputs["createdAt"] = undefined /*out*/;
|
|
68
68
|
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
69
69
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codespacesUserSecret.js","sourceRoot":"","sources":["../codespacesUserSecret.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;GAcG;AACH,MAAa,oBAAqB,SAAQ,MAAM,CAAC,cAAc;IAC3D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAiC,EAAE,IAAmC;QAC/H,OAAO,IAAI,oBAAoB,CAAC,IAAI,EAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"codespacesUserSecret.js","sourceRoot":"","sources":["../codespacesUserSecret.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;GAcG;AACH,MAAa,oBAAqB,SAAQ,MAAM,CAAC,cAAc;IAC3D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAiC,EAAE,IAAmC;QAC/H,OAAO,IAAI,oBAAoB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC3E,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,oBAAoB,CAAC,YAAY,CAAC;IACrE,CAAC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AC,OAAO,CAAC;YAChD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,EAAE,CAAC;QACrF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,oBAAoB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACzE,CAAC;;AAxFL,oDAyFC;AA3EG,gBAAgB;AACO,iCAAY,GAAG,wDAAwD,CAAC"}
|
package/config/vars.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as outputs from "../types/output";
|
|
2
2
|
/**
|
|
3
|
-
* The GitHub App credentials used to connect to GitHub. Conflicts with `token`. Anonymous mode is enabled if both `token`
|
|
4
|
-
* and `appAuth` are not set.
|
|
3
|
+
* The GitHub App credentials used to connect to GitHub. Conflicts with `token`. Anonymous mode is enabled if both `token` and `appAuth` are not set.
|
|
5
4
|
*/
|
|
6
5
|
export declare const appAuth: outputs.config.AppAuth | undefined;
|
|
7
6
|
/**
|
|
@@ -25,9 +24,7 @@ export declare const organization: string | undefined;
|
|
|
25
24
|
*/
|
|
26
25
|
export declare const owner: string | undefined;
|
|
27
26
|
/**
|
|
28
|
-
* Allow the provider to make parallel API calls to GitHub. You may want to set it to true when you have a private Github
|
|
29
|
-
* Enterprise without strict rate limits. Although, it is not possible to enable this setting on github.com because we
|
|
30
|
-
* enforce the respect of github.com's best practices to avoid hitting abuse rate limitsDefaults to false if not set
|
|
27
|
+
* Allow the provider to make parallel API calls to GitHub. You may want to set it to true when you have a private Github Enterprise without strict rate limits. Although, it is not possible to enable this setting on github.com because we enforce the respect of github.com's best practices to avoid hitting abuse rate limitsDefaults to false if not set
|
|
31
28
|
*/
|
|
32
29
|
export declare const parallelRequests: boolean | undefined;
|
|
33
30
|
/**
|
|
@@ -35,13 +32,11 @@ export declare const parallelRequests: boolean | undefined;
|
|
|
35
32
|
*/
|
|
36
33
|
export declare const readDelayMs: number | undefined;
|
|
37
34
|
/**
|
|
38
|
-
* Amount of time in milliseconds to sleep in between requests to GitHub API after an error response. Defaults to 1000ms or
|
|
39
|
-
* 1s if not set, the maxRetries must be set to greater than zero.
|
|
35
|
+
* Amount of time in milliseconds to sleep in between requests to GitHub API after an error response. Defaults to 1000ms or 1s if not set, the maxRetries must be set to greater than zero.
|
|
40
36
|
*/
|
|
41
37
|
export declare const retryDelayMs: number | undefined;
|
|
42
38
|
/**
|
|
43
|
-
* Allow the provider to retry after receiving an error status code, the maxRetries should be set for this to workDefaults
|
|
44
|
-
* to [500, 502, 503, 504]
|
|
39
|
+
* Allow the provider to retry after receiving an error status code, the maxRetries should be set for this to workDefaults to [500, 502, 503, 504]
|
|
45
40
|
*/
|
|
46
41
|
export declare const retryableErrors: number[] | undefined;
|
|
47
42
|
/**
|
package/config/vars.js
CHANGED
|
@@ -13,8 +13,7 @@ Object.defineProperty(exports, "appAuth", {
|
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "baseUrl", {
|
|
15
15
|
get() {
|
|
16
|
-
|
|
17
|
-
return (_a = __config.get("baseUrl")) !== null && _a !== void 0 ? _a : (utilities.getEnv("GITHUB_BASE_URL") || "https://api.github.com/");
|
|
16
|
+
return __config.get("baseUrl") ?? (utilities.getEnv("GITHUB_BASE_URL") || "https://api.github.com/");
|
|
18
17
|
},
|
|
19
18
|
enumerable: true,
|
|
20
19
|
});
|
|
@@ -68,8 +67,7 @@ Object.defineProperty(exports, "retryableErrors", {
|
|
|
68
67
|
});
|
|
69
68
|
Object.defineProperty(exports, "token", {
|
|
70
69
|
get() {
|
|
71
|
-
|
|
72
|
-
return (_a = __config.get("token")) !== null && _a !== void 0 ? _a : utilities.getEnv("GITHUB_TOKEN");
|
|
70
|
+
return __config.get("token") ?? utilities.getEnv("GITHUB_TOKEN");
|
|
73
71
|
},
|
|
74
72
|
enumerable: true,
|
|
75
73
|
});
|
package/config/vars.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vars.js","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAG1C,MAAM,QAAQ,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"vars.js","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAG1C,MAAM,QAAQ,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;AAM7C,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,SAAS,EAAE;IACtC,GAAG;QACC,OAAO,QAAQ,CAAC,SAAS,CAAyB,SAAS,CAAC,CAAC;IACjE,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,SAAS,EAAE;IACtC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,iBAAiB,CAAC,IAAI,yBAAyB,CAAC,CAAC;IACzG,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,UAAU,EAAE;IACvC,GAAG;QACC,OAAO,QAAQ,CAAC,SAAS,CAAU,UAAU,CAAC,CAAC;IACnD,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,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AAO,EAAE,OAAO,EAAE;IACpC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,SAAS,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;IACrE,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,cAAc,EAAE;IAC3C,GAAG;QACC,OAAO,QAAQ,CAAC,SAAS,CAAS,cAAc,CAAC,CAAC;IACtD,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC"}
|
|
@@ -31,7 +31,7 @@ class DependabotOrganizationSecret extends pulumi.CustomResource {
|
|
|
31
31
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
32
32
|
*/
|
|
33
33
|
static get(name, id, state, opts) {
|
|
34
|
-
return new DependabotOrganizationSecret(name, state,
|
|
34
|
+
return new DependabotOrganizationSecret(name, state, { ...opts, id: id });
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
37
37
|
* Returns true if the given object is an instance of DependabotOrganizationSecret. This is designed to work even
|
|
@@ -48,27 +48,27 @@ class DependabotOrganizationSecret extends pulumi.CustomResource {
|
|
|
48
48
|
opts = opts || {};
|
|
49
49
|
if (opts.id) {
|
|
50
50
|
const state = argsOrState;
|
|
51
|
-
resourceInputs["createdAt"] = state
|
|
52
|
-
resourceInputs["encryptedValue"] = state
|
|
53
|
-
resourceInputs["plaintextValue"] = state
|
|
54
|
-
resourceInputs["secretName"] = state
|
|
55
|
-
resourceInputs["selectedRepositoryIds"] = state
|
|
56
|
-
resourceInputs["updatedAt"] = state
|
|
57
|
-
resourceInputs["visibility"] = state
|
|
51
|
+
resourceInputs["createdAt"] = state?.createdAt;
|
|
52
|
+
resourceInputs["encryptedValue"] = state?.encryptedValue;
|
|
53
|
+
resourceInputs["plaintextValue"] = state?.plaintextValue;
|
|
54
|
+
resourceInputs["secretName"] = state?.secretName;
|
|
55
|
+
resourceInputs["selectedRepositoryIds"] = state?.selectedRepositoryIds;
|
|
56
|
+
resourceInputs["updatedAt"] = state?.updatedAt;
|
|
57
|
+
resourceInputs["visibility"] = state?.visibility;
|
|
58
58
|
}
|
|
59
59
|
else {
|
|
60
60
|
const args = argsOrState;
|
|
61
|
-
if (
|
|
61
|
+
if (args?.secretName === undefined && !opts.urn) {
|
|
62
62
|
throw new Error("Missing required property 'secretName'");
|
|
63
63
|
}
|
|
64
|
-
if (
|
|
64
|
+
if (args?.visibility === undefined && !opts.urn) {
|
|
65
65
|
throw new Error("Missing required property 'visibility'");
|
|
66
66
|
}
|
|
67
|
-
resourceInputs["encryptedValue"] =
|
|
68
|
-
resourceInputs["plaintextValue"] =
|
|
69
|
-
resourceInputs["secretName"] = args
|
|
70
|
-
resourceInputs["selectedRepositoryIds"] = args
|
|
71
|
-
resourceInputs["visibility"] = args
|
|
67
|
+
resourceInputs["encryptedValue"] = args?.encryptedValue ? pulumi.secret(args.encryptedValue) : undefined;
|
|
68
|
+
resourceInputs["plaintextValue"] = args?.plaintextValue ? pulumi.secret(args.plaintextValue) : undefined;
|
|
69
|
+
resourceInputs["secretName"] = args?.secretName;
|
|
70
|
+
resourceInputs["selectedRepositoryIds"] = args?.selectedRepositoryIds;
|
|
71
|
+
resourceInputs["visibility"] = args?.visibility;
|
|
72
72
|
resourceInputs["createdAt"] = undefined /*out*/;
|
|
73
73
|
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
74
74
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dependabotOrganizationSecret.js","sourceRoot":"","sources":["../dependabotOrganizationSecret.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;GAcG;AACH,MAAa,4BAA6B,SAAQ,MAAM,CAAC,cAAc;IACnE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyC,EAAE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BAAgB,CAAC,EAAE,CAAC;QACrF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,4BAA4B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACjF,CAAC;;AAlGL,oEAmGC;AArFG,gBAAgB;AACO,yCAAY,GAAG,wEAAwE,CAAC"}
|
|
@@ -50,7 +50,7 @@ class DependabotOrganizationSecretRepositories extends pulumi.CustomResource {
|
|
|
50
50
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
51
51
|
*/
|
|
52
52
|
static get(name, id, state, opts) {
|
|
53
|
-
return new DependabotOrganizationSecretRepositories(name, state,
|
|
53
|
+
return new DependabotOrganizationSecretRepositories(name, state, { ...opts, id: id });
|
|
54
54
|
}
|
|
55
55
|
/**
|
|
56
56
|
* Returns true if the given object is an instance of DependabotOrganizationSecretRepositories. This is designed to work even
|
|
@@ -67,19 +67,19 @@ class DependabotOrganizationSecretRepositories extends pulumi.CustomResource {
|
|
|
67
67
|
opts = opts || {};
|
|
68
68
|
if (opts.id) {
|
|
69
69
|
const state = argsOrState;
|
|
70
|
-
resourceInputs["secretName"] = state
|
|
71
|
-
resourceInputs["selectedRepositoryIds"] = state
|
|
70
|
+
resourceInputs["secretName"] = state?.secretName;
|
|
71
|
+
resourceInputs["selectedRepositoryIds"] = state?.selectedRepositoryIds;
|
|
72
72
|
}
|
|
73
73
|
else {
|
|
74
74
|
const args = argsOrState;
|
|
75
|
-
if (
|
|
75
|
+
if (args?.secretName === undefined && !opts.urn) {
|
|
76
76
|
throw new Error("Missing required property 'secretName'");
|
|
77
77
|
}
|
|
78
|
-
if (
|
|
78
|
+
if (args?.selectedRepositoryIds === undefined && !opts.urn) {
|
|
79
79
|
throw new Error("Missing required property 'selectedRepositoryIds'");
|
|
80
80
|
}
|
|
81
|
-
resourceInputs["secretName"] = args
|
|
82
|
-
resourceInputs["selectedRepositoryIds"] = args
|
|
81
|
+
resourceInputs["secretName"] = args?.secretName;
|
|
82
|
+
resourceInputs["selectedRepositoryIds"] = args?.selectedRepositoryIds;
|
|
83
83
|
}
|
|
84
84
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
85
85
|
super(DependabotOrganizationSecretRepositories.__pulumiType, name, resourceInputs, opts);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dependabotOrganizationSecretRepositories.js","sourceRoot":"","sources":["../dependabotOrganizationSecretRepositories.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAa,wCAAyC,SAAQ,MAAM,CAAC,cAAc;IAC/E;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqD,EAAE,IAAmC;QACnJ,OAAO,IAAI,wCAAwC,CAAC,IAAI,EAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"dependabotOrganizationSecretRepositories.js","sourceRoot":"","sources":["../dependabotOrganizationSecretRepositories.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAa,wCAAyC,SAAQ,MAAM,CAAC,cAAc;IAC/E;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqD,EAAE,IAAmC;QACnJ,OAAO,IAAI,wCAAwC,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC/F,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,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CustomResource {
|
|
|
29
29
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
30
30
|
*/
|
|
31
31
|
static get(name, id, state, opts) {
|
|
32
|
-
return new DependabotSecret(name, state,
|
|
32
|
+
return new DependabotSecret(name, state, { ...opts, id: id });
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
* Returns true if the given object is an instance of DependabotSecret. This is designed to work even
|
|
@@ -46,25 +46,25 @@ class DependabotSecret extends pulumi.CustomResource {
|
|
|
46
46
|
opts = opts || {};
|
|
47
47
|
if (opts.id) {
|
|
48
48
|
const state = argsOrState;
|
|
49
|
-
resourceInputs["createdAt"] = state
|
|
50
|
-
resourceInputs["encryptedValue"] = state
|
|
51
|
-
resourceInputs["plaintextValue"] = state
|
|
52
|
-
resourceInputs["repository"] = state
|
|
53
|
-
resourceInputs["secretName"] = state
|
|
54
|
-
resourceInputs["updatedAt"] = state
|
|
49
|
+
resourceInputs["createdAt"] = state?.createdAt;
|
|
50
|
+
resourceInputs["encryptedValue"] = state?.encryptedValue;
|
|
51
|
+
resourceInputs["plaintextValue"] = state?.plaintextValue;
|
|
52
|
+
resourceInputs["repository"] = state?.repository;
|
|
53
|
+
resourceInputs["secretName"] = state?.secretName;
|
|
54
|
+
resourceInputs["updatedAt"] = state?.updatedAt;
|
|
55
55
|
}
|
|
56
56
|
else {
|
|
57
57
|
const args = argsOrState;
|
|
58
|
-
if (
|
|
58
|
+
if (args?.repository === undefined && !opts.urn) {
|
|
59
59
|
throw new Error("Missing required property 'repository'");
|
|
60
60
|
}
|
|
61
|
-
if (
|
|
61
|
+
if (args?.secretName === undefined && !opts.urn) {
|
|
62
62
|
throw new Error("Missing required property 'secretName'");
|
|
63
63
|
}
|
|
64
|
-
resourceInputs["encryptedValue"] =
|
|
65
|
-
resourceInputs["plaintextValue"] =
|
|
66
|
-
resourceInputs["repository"] = args
|
|
67
|
-
resourceInputs["secretName"] = args
|
|
64
|
+
resourceInputs["encryptedValue"] = args?.encryptedValue ? pulumi.secret(args.encryptedValue) : undefined;
|
|
65
|
+
resourceInputs["plaintextValue"] = args?.plaintextValue ? pulumi.secret(args.plaintextValue) : undefined;
|
|
66
|
+
resourceInputs["repository"] = args?.repository;
|
|
67
|
+
resourceInputs["secretName"] = args?.secretName;
|
|
68
68
|
resourceInputs["createdAt"] = undefined /*out*/;
|
|
69
69
|
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
70
70
|
}
|
package/dependabotSecret.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dependabotSecret.js","sourceRoot":"","sources":["../dependabotSecret.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;GAYG;AACH,MAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IACvD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA6B,EAAE,IAAmC;QAC3H,OAAO,IAAI,gBAAgB,CAAC,IAAI,EAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"dependabotSecret.js","sourceRoot":"","sources":["../dependabotSecret.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;GAYG;AACH,MAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IACvD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA6B,EAAE,IAAmC;QAC3H,OAAO,IAAI,gBAAgB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACvE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,O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AAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YACzG,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,EAAE,CAAC;QACrF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,gBAAgB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACrE,CAAC;;AA3FL,4CA4FC;AA9EG,gBAAgB;AACO,6BAAY,GAAG,gDAAgD,CAAC"}
|
package/emuGroupMapping.js
CHANGED
|
@@ -39,7 +39,7 @@ class EmuGroupMapping extends pulumi.CustomResource {
|
|
|
39
39
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
40
40
|
*/
|
|
41
41
|
static get(name, id, state, opts) {
|
|
42
|
-
return new EmuGroupMapping(name, state,
|
|
42
|
+
return new EmuGroupMapping(name, state, { ...opts, id: id });
|
|
43
43
|
}
|
|
44
44
|
/**
|
|
45
45
|
* Returns true if the given object is an instance of EmuGroupMapping. This is designed to work even
|
|
@@ -56,20 +56,20 @@ class EmuGroupMapping extends pulumi.CustomResource {
|
|
|
56
56
|
opts = opts || {};
|
|
57
57
|
if (opts.id) {
|
|
58
58
|
const state = argsOrState;
|
|
59
|
-
resourceInputs["etag"] = state
|
|
60
|
-
resourceInputs["groupId"] = state
|
|
61
|
-
resourceInputs["teamSlug"] = state
|
|
59
|
+
resourceInputs["etag"] = state?.etag;
|
|
60
|
+
resourceInputs["groupId"] = state?.groupId;
|
|
61
|
+
resourceInputs["teamSlug"] = state?.teamSlug;
|
|
62
62
|
}
|
|
63
63
|
else {
|
|
64
64
|
const args = argsOrState;
|
|
65
|
-
if (
|
|
65
|
+
if (args?.groupId === undefined && !opts.urn) {
|
|
66
66
|
throw new Error("Missing required property 'groupId'");
|
|
67
67
|
}
|
|
68
|
-
if (
|
|
68
|
+
if (args?.teamSlug === undefined && !opts.urn) {
|
|
69
69
|
throw new Error("Missing required property 'teamSlug'");
|
|
70
70
|
}
|
|
71
|
-
resourceInputs["groupId"] = args
|
|
72
|
-
resourceInputs["teamSlug"] = args
|
|
71
|
+
resourceInputs["groupId"] = args?.groupId;
|
|
72
|
+
resourceInputs["teamSlug"] = args?.teamSlug;
|
|
73
73
|
resourceInputs["etag"] = undefined /*out*/;
|
|
74
74
|
}
|
|
75
75
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
package/emuGroupMapping.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emuGroupMapping.js","sourceRoot":"","sources":["../emuGroupMapping.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IACtD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA4B,EAAE,IAAmC;QAC1H,OAAO,IAAI,eAAe,CAAC,IAAI,EAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"emuGroupMapping.js","sourceRoot":"","sources":["../emuGroupMapping.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAy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