@pulumi/github 6.0.0-alpha.1709638261 → 6.0.0-alpha.1768023817
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.d.ts +0 -37
- package/actionsEnvironmentSecret.js +17 -54
- package/actionsEnvironmentSecret.js.map +1 -1
- package/actionsEnvironmentVariable.d.ts +5 -5
- package/actionsEnvironmentVariable.js +21 -21
- package/actionsEnvironmentVariable.js.map +1 -1
- package/actionsHostedRunner.d.ts +250 -0
- package/actionsHostedRunner.js +158 -0
- package/actionsHostedRunner.js.map +1 -0
- package/actionsOrganizationOidcSubjectClaimCustomizationTemplate.d.ts +2 -2
- package/actionsOrganizationOidcSubjectClaimCustomizationTemplate.js +7 -7
- package/actionsOrganizationOidcSubjectClaimCustomizationTemplate.js.map +1 -1
- package/actionsOrganizationPermissions.d.ts +2 -2
- package/actionsOrganizationPermissions.js +13 -13
- package/actionsOrganizationPermissions.js.map +1 -1
- package/actionsOrganizationSecret.d.ts +6 -39
- package/actionsOrganizationSecret.js +21 -55
- package/actionsOrganizationSecret.js.map +1 -1
- package/actionsOrganizationSecretRepositories.d.ts +2 -2
- package/actionsOrganizationSecretRepositories.js +10 -10
- package/actionsOrganizationSecretRepositories.js.map +1 -1
- package/actionsOrganizationSecretRepository.d.ts +89 -0
- package/actionsOrganizationSecretRepository.js +86 -0
- package/actionsOrganizationSecretRepository.js.map +1 -0
- package/actionsOrganizationVariable.d.ts +4 -4
- package/actionsOrganizationVariable.js +19 -19
- package/actionsOrganizationVariable.js.map +1 -1
- package/actionsRepositoryAccessLevel.d.ts +5 -2
- package/actionsRepositoryAccessLevel.js +13 -10
- package/actionsRepositoryAccessLevel.js.map +1 -1
- package/actionsRepositoryOidcSubjectClaimCustomizationTemplate.d.ts +3 -3
- package/actionsRepositoryOidcSubjectClaimCustomizationTemplate.js +13 -13
- package/actionsRepositoryOidcSubjectClaimCustomizationTemplate.js.map +1 -1
- package/actionsRepositoryPermissions.d.ts +2 -2
- package/actionsRepositoryPermissions.js +13 -13
- package/actionsRepositoryPermissions.js.map +1 -1
- package/actionsRunnerGroup.d.ts +5 -4
- package/actionsRunnerGroup.js +25 -24
- package/actionsRunnerGroup.js.map +1 -1
- package/actionsSecret.d.ts +6 -21
- package/actionsSecret.js +19 -35
- package/actionsSecret.js.map +1 -1
- package/actionsVariable.d.ts +3 -3
- package/actionsVariable.js +16 -16
- package/actionsVariable.js.map +1 -1
- package/appInstallationRepositories.d.ts +3 -2
- package/appInstallationRepositories.js +11 -10
- package/appInstallationRepositories.js.map +1 -1
- package/appInstallationRepository.d.ts +5 -4
- package/appInstallationRepository.js +14 -13
- package/appInstallationRepository.js.map +1 -1
- package/branch.d.ts +11 -6
- package/branch.js +23 -22
- package/branch.js.map +1 -1
- package/branchDefault.d.ts +4 -1
- package/branchDefault.js +15 -13
- package/branchDefault.js.map +1 -1
- package/branchProtection.d.ts +9 -9
- package/branchProtection.js +39 -39
- package/branchProtection.js.map +1 -1
- package/branchProtectionV3.d.ts +58 -1
- package/branchProtectionV3.js +79 -22
- package/branchProtectionV3.js.map +1 -1
- package/codespacesOrganizationSecret.d.ts +2 -39
- package/codespacesOrganizationSecret.js +18 -55
- package/codespacesOrganizationSecret.js.map +1 -1
- package/codespacesOrganizationSecretRepositories.d.ts +2 -2
- package/codespacesOrganizationSecretRepositories.js +10 -10
- package/codespacesOrganizationSecretRepositories.js.map +1 -1
- package/codespacesSecret.d.ts +3 -21
- package/codespacesSecret.js +17 -35
- package/codespacesSecret.js.map +1 -1
- package/codespacesUserSecret.d.ts +2 -21
- package/codespacesUserSecret.js +15 -34
- package/codespacesUserSecret.js.map +1 -1
- package/config/index.js +1 -1
- package/config/index.js.map +1 -1
- package/config/vars.d.ts +8 -9
- package/config/vars.js +9 -5
- package/config/vars.js.map +1 -1
- package/dependabotOrganizationSecret.d.ts +2 -39
- package/dependabotOrganizationSecret.js +18 -55
- package/dependabotOrganizationSecret.js.map +1 -1
- package/dependabotOrganizationSecretRepositories.d.ts +3 -3
- package/dependabotOrganizationSecretRepositories.js +11 -11
- package/dependabotOrganizationSecretRepositories.js.map +1 -1
- package/dependabotSecret.d.ts +3 -21
- package/dependabotSecret.js +17 -35
- package/dependabotSecret.js.map +1 -1
- package/emuGroupMapping.d.ts +3 -4
- package/emuGroupMapping.js +12 -13
- package/emuGroupMapping.js.map +1 -1
- package/enterpriseActionsPermissions.d.ts +137 -0
- package/enterpriseActionsPermissions.js +102 -0
- package/enterpriseActionsPermissions.js.map +1 -0
- package/enterpriseActionsRunnerGroup.d.ts +190 -0
- package/enterpriseActionsRunnerGroup.js +113 -0
- package/enterpriseActionsRunnerGroup.js.map +1 -0
- package/enterpriseActionsWorkflowPermissions.d.ts +113 -0
- package/enterpriseActionsWorkflowPermissions.js +97 -0
- package/enterpriseActionsWorkflowPermissions.js.map +1 -0
- package/enterpriseOrganization.d.ts +11 -2
- package/enterpriseOrganization.js +22 -19
- package/enterpriseOrganization.js.map +1 -1
- package/enterpriseSecurityAnalysisSettings.d.ts +162 -0
- package/enterpriseSecurityAnalysisSettings.js +116 -0
- package/enterpriseSecurityAnalysisSettings.js.map +1 -0
- package/getActionsEnvironmentPublicKey.d.ts +80 -0
- package/getActionsEnvironmentPublicKey.js +56 -0
- package/getActionsEnvironmentPublicKey.js.map +1 -0
- package/getActionsEnvironmentSecrets.d.ts +3 -3
- package/getActionsEnvironmentSecrets.js +9 -4
- package/getActionsEnvironmentSecrets.js.map +1 -1
- package/getActionsEnvironmentVariables.d.ts +3 -3
- package/getActionsEnvironmentVariables.js +9 -4
- package/getActionsEnvironmentVariables.js.map +1 -1
- package/getActionsOrganizationOidcSubjectClaimCustomizationTemplate.d.ts +1 -1
- package/getActionsOrganizationOidcSubjectClaimCustomizationTemplate.js +3 -2
- package/getActionsOrganizationOidcSubjectClaimCustomizationTemplate.js.map +1 -1
- package/getActionsOrganizationPublicKey.d.ts +1 -1
- package/getActionsOrganizationPublicKey.js +3 -2
- package/getActionsOrganizationPublicKey.js.map +1 -1
- package/getActionsOrganizationRegistrationToken.d.ts +1 -1
- package/getActionsOrganizationRegistrationToken.js +3 -2
- package/getActionsOrganizationRegistrationToken.js.map +1 -1
- package/getActionsOrganizationSecrets.d.ts +1 -1
- package/getActionsOrganizationSecrets.js +3 -2
- package/getActionsOrganizationSecrets.js.map +1 -1
- package/getActionsOrganizationVariables.d.ts +1 -1
- package/getActionsOrganizationVariables.js +3 -2
- package/getActionsOrganizationVariables.js.map +1 -1
- package/getActionsPublicKey.d.ts +1 -1
- package/getActionsPublicKey.js +5 -2
- package/getActionsPublicKey.js.map +1 -1
- package/getActionsRegistrationToken.d.ts +1 -1
- package/getActionsRegistrationToken.js +5 -2
- package/getActionsRegistrationToken.js.map +1 -1
- package/getActionsRepositoryOidcSubjectClaimCustomizationTemplate.d.ts +1 -1
- package/getActionsRepositoryOidcSubjectClaimCustomizationTemplate.js +5 -2
- package/getActionsRepositoryOidcSubjectClaimCustomizationTemplate.js.map +1 -1
- package/getActionsSecrets.d.ts +1 -1
- package/getActionsSecrets.js +7 -2
- package/getActionsSecrets.js.map +1 -1
- package/getActionsVariables.d.ts +1 -1
- package/getActionsVariables.js +7 -2
- package/getActionsVariables.js.map +1 -1
- package/getAppToken.d.ts +13 -9
- package/getAppToken.js +19 -10
- package/getAppToken.js.map +1 -1
- package/getBranch.d.ts +3 -3
- package/getBranch.js +8 -4
- package/getBranch.js.map +1 -1
- package/getBranchProtectionRules.d.ts +1 -1
- package/getBranchProtectionRules.js +5 -2
- package/getBranchProtectionRules.js.map +1 -1
- package/getCodespacesOrganizationPublicKey.d.ts +1 -1
- package/getCodespacesOrganizationPublicKey.js +3 -2
- package/getCodespacesOrganizationPublicKey.js.map +1 -1
- package/getCodespacesOrganizationSecrets.d.ts +1 -1
- package/getCodespacesOrganizationSecrets.js +3 -2
- package/getCodespacesOrganizationSecrets.js.map +1 -1
- package/getCodespacesPublicKey.d.ts +1 -1
- package/getCodespacesPublicKey.js +5 -2
- package/getCodespacesPublicKey.js.map +1 -1
- package/getCodespacesSecrets.d.ts +1 -1
- package/getCodespacesSecrets.js +7 -2
- package/getCodespacesSecrets.js.map +1 -1
- package/getCodespacesUserPublicKey.d.ts +1 -1
- package/getCodespacesUserPublicKey.js +3 -2
- package/getCodespacesUserPublicKey.js.map +1 -1
- package/getCodespacesUserSecrets.d.ts +1 -1
- package/getCodespacesUserSecrets.js +3 -2
- package/getCodespacesUserSecrets.js.map +1 -1
- package/getCollaborators.d.ts +13 -1
- package/getCollaborators.js +9 -2
- package/getCollaborators.js.map +1 -1
- package/getDependabotOrganizationPublicKey.d.ts +1 -1
- package/getDependabotOrganizationPublicKey.js +3 -2
- package/getDependabotOrganizationPublicKey.js.map +1 -1
- package/getDependabotOrganizationSecrets.d.ts +1 -1
- package/getDependabotOrganizationSecrets.js +3 -2
- package/getDependabotOrganizationSecrets.js.map +1 -1
- package/getDependabotPublicKey.d.ts +1 -1
- package/getDependabotPublicKey.js +5 -2
- package/getDependabotPublicKey.js.map +1 -1
- package/getDependabotSecrets.d.ts +1 -1
- package/getDependabotSecrets.js +7 -2
- package/getDependabotSecrets.js.map +1 -1
- package/getEnterprise.d.ts +5 -1
- package/getEnterprise.js +5 -2
- package/getEnterprise.js.map +1 -1
- package/getExternalGroups.d.ts +1 -1
- package/getExternalGroups.js +3 -2
- package/getExternalGroups.js.map +1 -1
- package/getGithubApp.d.ts +1 -1
- package/getGithubApp.js +5 -2
- package/getGithubApp.js.map +1 -1
- package/getIpRanges.d.ts +1 -1
- package/getIpRanges.js +3 -2
- package/getIpRanges.js.map +1 -1
- package/getIssueLabels.d.ts +1 -1
- package/getIssueLabels.js +5 -2
- package/getIssueLabels.js.map +1 -1
- package/getMembership.d.ts +1 -1
- package/getMembership.js +6 -2
- package/getMembership.js.map +1 -1
- package/getOrganization.d.ts +14 -5
- package/getOrganization.js +8 -2
- package/getOrganization.js.map +1 -1
- package/getOrganizationCustomProperties.d.ts +134 -0
- package/getOrganizationCustomProperties.js +62 -0
- package/getOrganizationCustomProperties.js.map +1 -0
- package/getOrganizationCustomRole.d.ts +5 -1
- package/getOrganizationCustomRole.js +9 -2
- package/getOrganizationCustomRole.js.map +1 -1
- package/getOrganizationExternalIdentities.d.ts +1 -1
- package/getOrganizationExternalIdentities.js +3 -2
- package/getOrganizationExternalIdentities.js.map +1 -1
- package/getOrganizationIpAllowList.d.ts +1 -1
- package/getOrganizationIpAllowList.js +3 -2
- package/getOrganizationIpAllowList.js.map +1 -1
- package/getOrganizationRepositoryRole.d.ts +82 -0
- package/getOrganizationRepositoryRole.js +54 -0
- package/getOrganizationRepositoryRole.js.map +1 -0
- package/getOrganizationRepositoryRoles.d.ts +65 -0
- package/getOrganizationRepositoryRoles.js +66 -0
- package/getOrganizationRepositoryRoles.js.map +1 -0
- package/getOrganizationRole.d.ts +82 -0
- package/getOrganizationRole.js +50 -0
- package/getOrganizationRole.js.map +1 -0
- package/getOrganizationRoleTeams.d.ts +85 -0
- package/getOrganizationRoleTeams.js +68 -0
- package/getOrganizationRoleTeams.js.map +1 -0
- package/getOrganizationRoleUsers.d.ts +81 -0
- package/getOrganizationRoleUsers.js +64 -0
- package/getOrganizationRoleUsers.js.map +1 -0
- package/getOrganizationRoles.d.ts +63 -0
- package/getOrganizationRoles.js +64 -0
- package/getOrganizationRoles.js.map +1 -0
- package/getOrganizationSecurityManagers.d.ts +45 -0
- package/getOrganizationSecurityManagers.js +46 -0
- package/getOrganizationSecurityManagers.js.map +1 -0
- package/getOrganizationTeamSyncGroups.d.ts +1 -1
- package/getOrganizationTeamSyncGroups.js +3 -2
- package/getOrganizationTeamSyncGroups.js.map +1 -1
- package/getOrganizationTeams.d.ts +1 -1
- package/getOrganizationTeams.js +8 -2
- package/getOrganizationTeams.js.map +1 -1
- package/getOrganizationWebhooks.d.ts +1 -1
- package/getOrganizationWebhooks.js +3 -2
- package/getOrganizationWebhooks.js.map +1 -1
- package/getRef.d.ts +3 -3
- package/getRef.js +9 -4
- package/getRef.js.map +1 -1
- package/getRelease.d.ts +64 -2
- package/getRelease.js +71 -2
- package/getRelease.js.map +1 -1
- package/getRepositories.d.ts +3 -3
- package/getRepositories.js +10 -4
- package/getRepositories.js.map +1 -1
- package/getRepository.d.ts +3 -1
- package/getRepository.js +9 -2
- package/getRepository.js.map +1 -1
- package/getRepositoryAutolinkReferences.d.ts +1 -1
- package/getRepositoryAutolinkReferences.js +5 -2
- package/getRepositoryAutolinkReferences.js.map +1 -1
- package/getRepositoryBranches.d.ts +1 -1
- package/getRepositoryBranches.js +7 -2
- package/getRepositoryBranches.js.map +1 -1
- package/getRepositoryCustomProperties.d.ts +64 -0
- package/getRepositoryCustomProperties.js +50 -0
- package/getRepositoryCustomProperties.js.map +1 -0
- package/getRepositoryDeployKeys.d.ts +1 -1
- package/getRepositoryDeployKeys.js +5 -2
- package/getRepositoryDeployKeys.js.map +1 -1
- package/getRepositoryDeploymentBranchPolicies.d.ts +7 -3
- package/getRepositoryDeploymentBranchPolicies.js +12 -4
- package/getRepositoryDeploymentBranchPolicies.js.map +1 -1
- package/getRepositoryEnvironmentDeploymentPolicies.d.ts +75 -0
- package/getRepositoryEnvironmentDeploymentPolicies.js +54 -0
- package/getRepositoryEnvironmentDeploymentPolicies.js.map +1 -0
- package/getRepositoryEnvironments.d.ts +1 -1
- package/getRepositoryEnvironments.js +5 -2
- package/getRepositoryEnvironments.js.map +1 -1
- package/getRepositoryFile.d.ts +3 -3
- package/getRepositoryFile.js +9 -4
- package/getRepositoryFile.js.map +1 -1
- package/getRepositoryMilestone.d.ts +3 -3
- package/getRepositoryMilestone.js +9 -4
- package/getRepositoryMilestone.js.map +1 -1
- package/getRepositoryPullRequest.d.ts +1 -1
- package/getRepositoryPullRequest.js +7 -2
- package/getRepositoryPullRequest.js.map +1 -1
- package/getRepositoryPullRequests.d.ts +3 -3
- package/getRepositoryPullRequests.js +13 -4
- package/getRepositoryPullRequests.js.map +1 -1
- package/getRepositoryTeams.d.ts +1 -1
- package/getRepositoryTeams.js +7 -2
- package/getRepositoryTeams.js.map +1 -1
- package/getRepositoryWebhooks.d.ts +1 -1
- package/getRepositoryWebhooks.js +5 -2
- package/getRepositoryWebhooks.js.map +1 -1
- package/getRestApi.d.ts +1 -1
- package/getRestApi.js +5 -2
- package/getRestApi.js.map +1 -1
- package/getSshKeys.d.ts +1 -1
- package/getSshKeys.js +3 -2
- package/getSshKeys.js.map +1 -1
- package/getTeam.d.ts +5 -3
- package/getTeam.js +8 -2
- package/getTeam.js.map +1 -1
- package/getTree.d.ts +17 -17
- package/getTree.js +23 -18
- package/getTree.js.map +1 -1
- package/getUser.d.ts +5 -1
- package/getUser.js +9 -2
- package/getUser.js.map +1 -1
- package/getUserExternalIdentity.d.ts +1 -1
- package/getUserExternalIdentity.js +5 -2
- package/getUserExternalIdentity.js.map +1 -1
- package/getUsers.d.ts +3 -1
- package/getUsers.js +7 -2
- package/getUsers.js.map +1 -1
- package/index.d.ts +76 -6
- package/index.js +126 -13
- package/index.js.map +1 -1
- package/issue.d.ts +17 -10
- package/issue.js +36 -29
- package/issue.js.map +1 -1
- package/issueLabel.d.ts +20 -3
- package/issueLabel.js +34 -18
- package/issueLabel.js.map +1 -1
- package/issueLabels.d.ts +5 -16
- package/issueLabels.js +12 -23
- package/issueLabels.js.map +1 -1
- package/membership.d.ts +3 -3
- package/membership.js +13 -13
- package/membership.js.map +1 -1
- package/organizationBlock.d.ts +1 -1
- package/organizationBlock.js +7 -7
- package/organizationBlock.js.map +1 -1
- package/organizationCustomProperties.d.ts +199 -0
- package/organizationCustomProperties.js +143 -0
- package/organizationCustomProperties.js.map +1 -0
- package/organizationCustomRole.d.ts +7 -3
- package/organizationCustomRole.js +19 -15
- package/organizationCustomRole.js.map +1 -1
- package/organizationProject.d.ts +6 -1
- package/organizationProject.js +14 -9
- package/organizationProject.js.map +1 -1
- package/organizationRepositoryRole.d.ts +121 -0
- package/organizationRepositoryRole.js +92 -0
- package/organizationRepositoryRole.js.map +1 -0
- package/organizationRole.d.ts +121 -0
- package/organizationRole.js +89 -0
- package/organizationRole.js.map +1 -0
- package/organizationRoleTeam.d.ts +83 -0
- package/organizationRoleTeam.js +80 -0
- package/organizationRoleTeam.js.map +1 -0
- package/organizationRoleTeamAssignment.d.ts +94 -0
- package/organizationRoleTeamAssignment.js +91 -0
- package/organizationRoleTeamAssignment.js.map +1 -0
- package/organizationRoleUser.d.ts +83 -0
- package/organizationRoleUser.js +80 -0
- package/organizationRoleUser.js.map +1 -0
- package/organizationRuleset.d.ts +92 -3
- package/organizationRuleset.js +109 -20
- package/organizationRuleset.js.map +1 -1
- package/organizationSecurityManager.d.ts +10 -3
- package/organizationSecurityManager.js +15 -8
- package/organizationSecurityManager.js.map +1 -1
- package/organizationSettings.d.ts +18 -16
- package/organizationSettings.js +73 -71
- package/organizationSettings.js.map +1 -1
- package/organizationWebhook.d.ts +22 -3
- package/organizationWebhook.js +33 -14
- package/organizationWebhook.js.map +1 -1
- package/package.json +4 -3
- package/projectCard.d.ts +24 -10
- package/projectCard.js +37 -23
- package/projectCard.js.map +1 -1
- package/projectColumn.d.ts +10 -2
- package/projectColumn.js +19 -11
- package/projectColumn.js.map +1 -1
- package/provider.d.ts +24 -11
- package/provider.js +22 -14
- package/provider.js.map +1 -1
- package/release.d.ts +91 -6
- package/release.js +54 -29
- package/release.js.map +1 -1
- package/repository.d.ts +64 -11
- package/repository.js +110 -88
- package/repository.js.map +1 -1
- package/repositoryAutolinkReference.d.ts +1 -0
- package/repositoryAutolinkReference.js +15 -14
- package/repositoryAutolinkReference.js.map +1 -1
- package/repositoryCollaborator.d.ts +3 -28
- package/repositoryCollaborator.js +16 -41
- package/repositoryCollaborator.js.map +1 -1
- package/repositoryCollaborators.d.ts +28 -38
- package/repositoryCollaborators.js +19 -39
- package/repositoryCollaborators.js.map +1 -1
- package/repositoryCustomProperty.d.ts +115 -0
- package/repositoryCustomProperty.js +98 -0
- package/repositoryCustomProperty.js.map +1 -0
- package/repositoryDependabotSecurityUpdates.d.ts +5 -4
- package/repositoryDependabotSecurityUpdates.js +10 -9
- package/repositoryDependabotSecurityUpdates.js.map +1 -1
- package/repositoryDeployKey.d.ts +6 -16
- package/repositoryDeployKey.js +20 -30
- package/repositoryDeployKey.js.map +1 -1
- package/repositoryDeploymentBranchPolicy.d.ts +10 -1
- package/repositoryDeploymentBranchPolicy.js +18 -13
- package/repositoryDeploymentBranchPolicy.js.map +1 -1
- package/repositoryEnvironment.d.ts +7 -4
- package/repositoryEnvironment.js +25 -22
- package/repositoryEnvironment.js.map +1 -1
- package/repositoryEnvironmentDeploymentPolicy.d.ts +54 -11
- package/repositoryEnvironmentDeploymentPolicy.js +49 -19
- package/repositoryEnvironmentDeploymentPolicy.js.map +1 -1
- package/repositoryFile.d.ts +72 -13
- package/repositoryFile.js +63 -34
- package/repositoryFile.js.map +1 -1
- package/repositoryMilestone.d.ts +1 -1
- package/repositoryMilestone.js +19 -19
- package/repositoryMilestone.js.map +1 -1
- package/repositoryProject.d.ts +6 -1
- package/repositoryProject.js +17 -13
- package/repositoryProject.js.map +1 -1
- package/repositoryPullRequest.d.ts +2 -2
- package/repositoryPullRequest.js +31 -31
- package/repositoryPullRequest.js.map +1 -1
- package/repositoryRuleset.d.ts +50 -11
- package/repositoryRuleset.js +67 -25
- package/repositoryRuleset.js.map +1 -1
- package/repositoryTopics.d.ts +4 -4
- package/repositoryTopics.js +12 -12
- package/repositoryTopics.js.map +1 -1
- package/repositoryWebhook.d.ts +8 -8
- package/repositoryWebhook.js +20 -21
- package/repositoryWebhook.js.map +1 -1
- package/team.d.ts +2 -1
- package/team.js +24 -23
- package/team.js.map +1 -1
- package/teamMembers.d.ts +9 -10
- package/teamMembers.js +17 -18
- package/teamMembers.js.map +1 -1
- package/teamMembership.d.ts +7 -4
- package/teamMembership.js +18 -15
- package/teamMembership.js.map +1 -1
- package/teamRepository.d.ts +6 -19
- package/teamRepository.js +17 -30
- package/teamRepository.js.map +1 -1
- package/teamSettings.d.ts +8 -5
- package/teamSettings.js +17 -14
- package/teamSettings.js.map +1 -1
- package/teamSyncGroupMapping.d.ts +18 -1
- package/teamSyncGroupMapping.js +26 -9
- package/teamSyncGroupMapping.js.map +1 -1
- package/types/index.js +1 -1
- package/types/index.js.map +1 -1
- package/types/input.d.ts +360 -74
- package/types/input.js +1 -1
- package/types/input.js.map +1 -1
- package/types/output.d.ts +495 -84
- package/types/output.js +1 -1
- package/types/output.js.map +1 -1
- package/userGpgKey.d.ts +2 -3
- package/userGpgKey.js +9 -10
- package/userGpgKey.js.map +1 -1
- package/userInvitationAccepter.d.ts +5 -7
- package/userInvitationAccepter.js +11 -13
- package/userInvitationAccepter.js.map +1 -1
- package/userSshKey.d.ts +5 -3
- package/userSshKey.js +15 -13
- package/userSshKey.js.map +1 -1
- package/utilities.d.ts +0 -4
- package/utilities.js +20 -30
- package/utilities.js.map +1 -1
- package/workflowRepositoryPermissions.d.ts +98 -0
- package/workflowRepositoryPermissions.js +82 -0
- package/workflowRepositoryPermissions.js.map +1 -0
- package/package.json.bak +0 -27
- package/repositoryTagProtection.d.ts +0 -93
- package/repositoryTagProtection.js +0 -84
- package/repositoryTagProtection.js.map +0 -1
package/repositoryDeployKey.js
CHANGED
|
@@ -1,22 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// *** WARNING: this file was generated by
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.RepositoryDeployKey = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
-
* Provides a GitHub repository deploy key resource.
|
|
10
|
-
*
|
|
11
|
-
* A deploy key is an SSH key that is stored on your server and grants
|
|
12
|
-
* access to a single GitHub repository. This key is attached directly to the repository instead of to a personal user
|
|
13
|
-
* account.
|
|
14
|
-
*
|
|
15
|
-
* This resource allows you to add/remove repository deploy keys.
|
|
16
|
-
*
|
|
17
|
-
* Further documentation on GitHub repository deploy keys:
|
|
18
|
-
* - [About deploy keys](https://developer.github.com/guides/managing-deploy-keys/#deploy-keys)
|
|
19
|
-
*
|
|
20
9
|
* ## Example Usage
|
|
21
10
|
*
|
|
22
11
|
* ```typescript
|
|
@@ -25,22 +14,23 @@ const utilities = require("./utilities");
|
|
|
25
14
|
* import * as tls from "@pulumi/tls";
|
|
26
15
|
*
|
|
27
16
|
* // Generate an ssh key using provider "hashicorp/tls"
|
|
28
|
-
* const
|
|
17
|
+
* const exampleRepositoryDeployKey = new tls.PrivateKey("example_repository_deploy_key", {algorithm: "ED25519"});
|
|
29
18
|
* // Add the ssh key as a deploy key
|
|
30
|
-
* const exampleRepositoryDeployKeyRepositoryDeployKey = new github.RepositoryDeployKey("
|
|
19
|
+
* const exampleRepositoryDeployKeyRepositoryDeployKey = new github.RepositoryDeployKey("example_repository_deploy_key", {
|
|
31
20
|
* title: "Repository test key",
|
|
32
21
|
* repository: "test-repo",
|
|
33
|
-
* key:
|
|
22
|
+
* key: exampleRepositoryDeployKey.publicKeyOpenssh,
|
|
34
23
|
* readOnly: true,
|
|
35
24
|
* });
|
|
36
25
|
* ```
|
|
37
26
|
*
|
|
38
27
|
* ## Import
|
|
39
28
|
*
|
|
40
|
-
* Repository deploy keys can be imported using a colon-separated pair of repository name
|
|
29
|
+
* Repository deploy keys can be imported using a colon-separated pair of repository name
|
|
30
|
+
* and GitHub's key id. The latter can be obtained by GitHub's SDKs and API.
|
|
41
31
|
*
|
|
42
32
|
* ```sh
|
|
43
|
-
*
|
|
33
|
+
* $ pulumi import github:index/repositoryDeployKey:RepositoryDeployKey foo test-repo:23824728
|
|
44
34
|
* ```
|
|
45
35
|
*/
|
|
46
36
|
class RepositoryDeployKey extends pulumi.CustomResource {
|
|
@@ -54,7 +44,7 @@ class RepositoryDeployKey extends pulumi.CustomResource {
|
|
|
54
44
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
55
45
|
*/
|
|
56
46
|
static get(name, id, state, opts) {
|
|
57
|
-
return new RepositoryDeployKey(name, state,
|
|
47
|
+
return new RepositoryDeployKey(name, state, { ...opts, id: id });
|
|
58
48
|
}
|
|
59
49
|
/**
|
|
60
50
|
* Returns true if the given object is an instance of RepositoryDeployKey. This is designed to work even
|
|
@@ -71,27 +61,27 @@ class RepositoryDeployKey extends pulumi.CustomResource {
|
|
|
71
61
|
opts = opts || {};
|
|
72
62
|
if (opts.id) {
|
|
73
63
|
const state = argsOrState;
|
|
74
|
-
resourceInputs["etag"] = state
|
|
75
|
-
resourceInputs["key"] = state
|
|
76
|
-
resourceInputs["readOnly"] = state
|
|
77
|
-
resourceInputs["repository"] = state
|
|
78
|
-
resourceInputs["title"] = state
|
|
64
|
+
resourceInputs["etag"] = state?.etag;
|
|
65
|
+
resourceInputs["key"] = state?.key;
|
|
66
|
+
resourceInputs["readOnly"] = state?.readOnly;
|
|
67
|
+
resourceInputs["repository"] = state?.repository;
|
|
68
|
+
resourceInputs["title"] = state?.title;
|
|
79
69
|
}
|
|
80
70
|
else {
|
|
81
71
|
const args = argsOrState;
|
|
82
|
-
if (
|
|
72
|
+
if (args?.key === undefined && !opts.urn) {
|
|
83
73
|
throw new Error("Missing required property 'key'");
|
|
84
74
|
}
|
|
85
|
-
if (
|
|
75
|
+
if (args?.repository === undefined && !opts.urn) {
|
|
86
76
|
throw new Error("Missing required property 'repository'");
|
|
87
77
|
}
|
|
88
|
-
if (
|
|
78
|
+
if (args?.title === undefined && !opts.urn) {
|
|
89
79
|
throw new Error("Missing required property 'title'");
|
|
90
80
|
}
|
|
91
|
-
resourceInputs["key"] = args
|
|
92
|
-
resourceInputs["readOnly"] = args
|
|
93
|
-
resourceInputs["repository"] = args
|
|
94
|
-
resourceInputs["title"] = args
|
|
81
|
+
resourceInputs["key"] = args?.key;
|
|
82
|
+
resourceInputs["readOnly"] = args?.readOnly;
|
|
83
|
+
resourceInputs["repository"] = args?.repository;
|
|
84
|
+
resourceInputs["title"] = args?.title;
|
|
95
85
|
resourceInputs["etag"] = undefined /*out*/;
|
|
96
86
|
}
|
|
97
87
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repositoryDeployKey.js","sourceRoot":"","sources":["../repositoryDeployKey.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"repositoryDeployKey.js","sourceRoot":"","sources":["../repositoryDeployKey.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAa,mBAAoB,SAAQ,MAAM,CAAC,cAAc;IAC1D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAgC,EAAE,IAAmC;QAC9H,OAAO,IAAI,mBAAmB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC1E,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,mBAAmB,CAAC,YAAY,CAAC;IACpE,CAAC;IA8BD,YAAY,IAAY,EAAE,WAAgE,EAAE,IAAmC;QAC3H,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAmD,CAAC;YAClE,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,EAAE,IAAI,CAAC;YACrC,cAAc,CAAC,KAAK,CAAC,GAAG,KAAK,EAAE,GAAG,CAAC;YACnC,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,EAAE,QAAQ,CAAC;YAC7C,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,EAAE,UAAU,CAAC;YACjD,cAAc,CAAC,OAAO,CAAC,GAAG,KAAK,EAAE,KAAK,CAAC;SAC1C;aAAM;YACH,MAAM,IAAI,GAAG,WAAkD,CAAC;YAChE,IAAI,IAAI,EAAE,GAAG,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACtC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;aACtD;YACD,IAAI,IAAI,EAAE,UAAU,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC7C,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;aAC7D;YACD,IAAI,IAAI,EAAE,KAAK,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACxC,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;aACxD;YACD,cAAc,CAAC,KAAK,CAAC,GAAG,IAAI,EAAE,GAAG,CAAC;YAClC,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC;YACtC,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,mBAAmB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxE,CAAC;;AArFL,kDAsFC;AAxEG,gBAAgB;AACO,gCAAY,GAAG,sDAAsD,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
+
* > **Note:** This resource is deprecated, please use the `github.RepositoryEnvironmentDeploymentPolicy` resource instead.
|
|
4
|
+
*
|
|
3
5
|
* This resource allows you to create and manage deployment branch policies.
|
|
4
6
|
*
|
|
5
7
|
* ## Example Usage
|
|
@@ -19,6 +21,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
19
21
|
* const foo = new github.RepositoryDeploymentBranchPolicy("foo", {
|
|
20
22
|
* repository: "my_repo",
|
|
21
23
|
* environmentName: "my_env",
|
|
24
|
+
* name: "foo",
|
|
22
25
|
* }, {
|
|
23
26
|
* dependsOn: [env],
|
|
24
27
|
* });
|
|
@@ -26,8 +29,10 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
26
29
|
*
|
|
27
30
|
* ## Import
|
|
28
31
|
*
|
|
32
|
+
* text
|
|
33
|
+
*
|
|
29
34
|
* ```sh
|
|
30
|
-
*
|
|
35
|
+
* $ pulumi import github:index/repositoryDeploymentBranchPolicy:RepositoryDeploymentBranchPolicy foo repo:env:id
|
|
31
36
|
* ```
|
|
32
37
|
*/
|
|
33
38
|
export declare class RepositoryDeploymentBranchPolicy extends pulumi.CustomResource {
|
|
@@ -100,6 +105,10 @@ export interface RepositoryDeploymentBranchPolicyArgs {
|
|
|
100
105
|
* The name of the environment. This environment must have `deployment_branch_policy.custom_branch_policies` set to true or a 404 error will be thrown.
|
|
101
106
|
*/
|
|
102
107
|
environmentName: pulumi.Input<string>;
|
|
108
|
+
/**
|
|
109
|
+
* An etag representing the Branch object.
|
|
110
|
+
*/
|
|
111
|
+
etag?: pulumi.Input<string>;
|
|
103
112
|
/**
|
|
104
113
|
* The name pattern that branches must match in order to deploy to the environment.
|
|
105
114
|
*/
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// *** WARNING: this file was generated by
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.RepositoryDeploymentBranchPolicy = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
+
* > **Note:** This resource is deprecated, please use the `github.RepositoryEnvironmentDeploymentPolicy` resource instead.
|
|
10
|
+
*
|
|
9
11
|
* This resource allows you to create and manage deployment branch policies.
|
|
10
12
|
*
|
|
11
13
|
* ## Example Usage
|
|
@@ -25,6 +27,7 @@ const utilities = require("./utilities");
|
|
|
25
27
|
* const foo = new github.RepositoryDeploymentBranchPolicy("foo", {
|
|
26
28
|
* repository: "my_repo",
|
|
27
29
|
* environmentName: "my_env",
|
|
30
|
+
* name: "foo",
|
|
28
31
|
* }, {
|
|
29
32
|
* dependsOn: [env],
|
|
30
33
|
* });
|
|
@@ -32,8 +35,10 @@ const utilities = require("./utilities");
|
|
|
32
35
|
*
|
|
33
36
|
* ## Import
|
|
34
37
|
*
|
|
38
|
+
* text
|
|
39
|
+
*
|
|
35
40
|
* ```sh
|
|
36
|
-
*
|
|
41
|
+
* $ pulumi import github:index/repositoryDeploymentBranchPolicy:RepositoryDeploymentBranchPolicy foo repo:env:id
|
|
37
42
|
* ```
|
|
38
43
|
*/
|
|
39
44
|
class RepositoryDeploymentBranchPolicy extends pulumi.CustomResource {
|
|
@@ -47,7 +52,7 @@ class RepositoryDeploymentBranchPolicy extends pulumi.CustomResource {
|
|
|
47
52
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
48
53
|
*/
|
|
49
54
|
static get(name, id, state, opts) {
|
|
50
|
-
return new RepositoryDeploymentBranchPolicy(name, state,
|
|
55
|
+
return new RepositoryDeploymentBranchPolicy(name, state, { ...opts, id: id });
|
|
51
56
|
}
|
|
52
57
|
/**
|
|
53
58
|
* Returns true if the given object is an instance of RepositoryDeploymentBranchPolicy. This is designed to work even
|
|
@@ -64,23 +69,23 @@ class RepositoryDeploymentBranchPolicy extends pulumi.CustomResource {
|
|
|
64
69
|
opts = opts || {};
|
|
65
70
|
if (opts.id) {
|
|
66
71
|
const state = argsOrState;
|
|
67
|
-
resourceInputs["environmentName"] = state
|
|
68
|
-
resourceInputs["etag"] = state
|
|
69
|
-
resourceInputs["name"] = state
|
|
70
|
-
resourceInputs["repository"] = state
|
|
72
|
+
resourceInputs["environmentName"] = state?.environmentName;
|
|
73
|
+
resourceInputs["etag"] = state?.etag;
|
|
74
|
+
resourceInputs["name"] = state?.name;
|
|
75
|
+
resourceInputs["repository"] = state?.repository;
|
|
71
76
|
}
|
|
72
77
|
else {
|
|
73
78
|
const args = argsOrState;
|
|
74
|
-
if (
|
|
79
|
+
if (args?.environmentName === undefined && !opts.urn) {
|
|
75
80
|
throw new Error("Missing required property 'environmentName'");
|
|
76
81
|
}
|
|
77
|
-
if (
|
|
82
|
+
if (args?.repository === undefined && !opts.urn) {
|
|
78
83
|
throw new Error("Missing required property 'repository'");
|
|
79
84
|
}
|
|
80
|
-
resourceInputs["environmentName"] = args
|
|
81
|
-
resourceInputs["
|
|
82
|
-
resourceInputs["
|
|
83
|
-
resourceInputs["
|
|
85
|
+
resourceInputs["environmentName"] = args?.environmentName;
|
|
86
|
+
resourceInputs["etag"] = args?.etag;
|
|
87
|
+
resourceInputs["name"] = args?.name;
|
|
88
|
+
resourceInputs["repository"] = args?.repository;
|
|
84
89
|
}
|
|
85
90
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
86
91
|
super(RepositoryDeploymentBranchPolicy.__pulumiType, name, resourceInputs, opts);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repositoryDeploymentBranchPolicy.js","sourceRoot":"","sources":["../repositoryDeploymentBranchPolicy.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"repositoryDeploymentBranchPolicy.js","sourceRoot":"","sources":["../repositoryDeploymentBranchPolicy.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,MAAa,gCAAiC,SAAQ,MAAM,CAAC,cAAc;IACvE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA6C,EAAE,IAAmC;QAC3I,OAAO,IAAI,gCAAgC,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACvF,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,gCAAgC,CAAC,YAAY,CAAC;IACjF,CAAC;IA2BD,YAAY,IAAY,EAAE,WAA0F,EAAE,IAAmC;QACrJ,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAgE,CAAC;YAC/E,cAAc,CAAC,iBAAiB,CAAC,GAAG,KAAK,EAAE,eAAe,CAAC;YAC3D,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,EAAE,IAAI,CAAC;YACrC,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,EAAE,IAAI,CAAC;YACrC,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,EAAE,UAAU,CAAC;SACpD;aAAM;YACH,MAAM,IAAI,GAAG,WAA+D,CAAC;YAC7E,IAAI,IAAI,EAAE,eAAe,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAClD,MAAM,IAAI,KAAK,CAAC,6CAA6C,CAAC,CAAC;aAClE;YACD,IAAI,IAAI,EAAE,UAAU,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC7C,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;aAC7D;YACD,cAAc,CAAC,iBAAiB,CAAC,GAAG,IAAI,EAAE,eAAe,CAAC;YAC1D,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,gCAAgC,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACrF,CAAC;;AA7EL,4EA8EC;AAhEG,gBAAgB;AACO,6CAAY,GAAG,gFAAgF,CAAC"}
|
|
@@ -13,10 +13,13 @@ import * as outputs from "./types/output";
|
|
|
13
13
|
* const current = github.getUser({
|
|
14
14
|
* username: "",
|
|
15
15
|
* });
|
|
16
|
-
* const
|
|
17
|
-
*
|
|
16
|
+
* const example = new github.Repository("example", {
|
|
17
|
+
* name: "A Repository Project",
|
|
18
|
+
* description: "My awesome codebase",
|
|
19
|
+
* });
|
|
20
|
+
* const exampleRepositoryEnvironment = new github.RepositoryEnvironment("example", {
|
|
18
21
|
* environment: "example",
|
|
19
|
-
* repository:
|
|
22
|
+
* repository: example.name,
|
|
20
23
|
* preventSelfReview: true,
|
|
21
24
|
* reviewers: [{
|
|
22
25
|
* users: [current.then(current => current.id)],
|
|
@@ -33,7 +36,7 @@ import * as outputs from "./types/output";
|
|
|
33
36
|
* GitHub Repository Environment can be imported using an ID made up of `name` of the repository combined with the `environment` name of the environment, separated by a `:` character, e.g.
|
|
34
37
|
*
|
|
35
38
|
* ```sh
|
|
36
|
-
*
|
|
39
|
+
* $ pulumi import github:index/repositoryEnvironment:RepositoryEnvironment daily terraform:daily
|
|
37
40
|
* ```
|
|
38
41
|
*/
|
|
39
42
|
export declare class RepositoryEnvironment extends pulumi.CustomResource {
|
package/repositoryEnvironment.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// *** WARNING: this file was generated by
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.RepositoryEnvironment = void 0;
|
|
@@ -17,10 +17,13 @@ const utilities = require("./utilities");
|
|
|
17
17
|
* const current = github.getUser({
|
|
18
18
|
* username: "",
|
|
19
19
|
* });
|
|
20
|
-
* const
|
|
21
|
-
*
|
|
20
|
+
* const example = new github.Repository("example", {
|
|
21
|
+
* name: "A Repository Project",
|
|
22
|
+
* description: "My awesome codebase",
|
|
23
|
+
* });
|
|
24
|
+
* const exampleRepositoryEnvironment = new github.RepositoryEnvironment("example", {
|
|
22
25
|
* environment: "example",
|
|
23
|
-
* repository:
|
|
26
|
+
* repository: example.name,
|
|
24
27
|
* preventSelfReview: true,
|
|
25
28
|
* reviewers: [{
|
|
26
29
|
* users: [current.then(current => current.id)],
|
|
@@ -37,7 +40,7 @@ const utilities = require("./utilities");
|
|
|
37
40
|
* GitHub Repository Environment can be imported using an ID made up of `name` of the repository combined with the `environment` name of the environment, separated by a `:` character, e.g.
|
|
38
41
|
*
|
|
39
42
|
* ```sh
|
|
40
|
-
*
|
|
43
|
+
* $ pulumi import github:index/repositoryEnvironment:RepositoryEnvironment daily terraform:daily
|
|
41
44
|
* ```
|
|
42
45
|
*/
|
|
43
46
|
class RepositoryEnvironment extends pulumi.CustomResource {
|
|
@@ -51,7 +54,7 @@ class RepositoryEnvironment extends pulumi.CustomResource {
|
|
|
51
54
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
52
55
|
*/
|
|
53
56
|
static get(name, id, state, opts) {
|
|
54
|
-
return new RepositoryEnvironment(name, state,
|
|
57
|
+
return new RepositoryEnvironment(name, state, { ...opts, id: id });
|
|
55
58
|
}
|
|
56
59
|
/**
|
|
57
60
|
* Returns true if the given object is an instance of RepositoryEnvironment. This is designed to work even
|
|
@@ -68,29 +71,29 @@ class RepositoryEnvironment extends pulumi.CustomResource {
|
|
|
68
71
|
opts = opts || {};
|
|
69
72
|
if (opts.id) {
|
|
70
73
|
const state = argsOrState;
|
|
71
|
-
resourceInputs["canAdminsBypass"] = state
|
|
72
|
-
resourceInputs["deploymentBranchPolicy"] = state
|
|
73
|
-
resourceInputs["environment"] = state
|
|
74
|
-
resourceInputs["preventSelfReview"] = state
|
|
75
|
-
resourceInputs["repository"] = state
|
|
76
|
-
resourceInputs["reviewers"] = state
|
|
77
|
-
resourceInputs["waitTimer"] = state
|
|
74
|
+
resourceInputs["canAdminsBypass"] = state?.canAdminsBypass;
|
|
75
|
+
resourceInputs["deploymentBranchPolicy"] = state?.deploymentBranchPolicy;
|
|
76
|
+
resourceInputs["environment"] = state?.environment;
|
|
77
|
+
resourceInputs["preventSelfReview"] = state?.preventSelfReview;
|
|
78
|
+
resourceInputs["repository"] = state?.repository;
|
|
79
|
+
resourceInputs["reviewers"] = state?.reviewers;
|
|
80
|
+
resourceInputs["waitTimer"] = state?.waitTimer;
|
|
78
81
|
}
|
|
79
82
|
else {
|
|
80
83
|
const args = argsOrState;
|
|
81
|
-
if (
|
|
84
|
+
if (args?.environment === undefined && !opts.urn) {
|
|
82
85
|
throw new Error("Missing required property 'environment'");
|
|
83
86
|
}
|
|
84
|
-
if (
|
|
87
|
+
if (args?.repository === undefined && !opts.urn) {
|
|
85
88
|
throw new Error("Missing required property 'repository'");
|
|
86
89
|
}
|
|
87
|
-
resourceInputs["canAdminsBypass"] = args
|
|
88
|
-
resourceInputs["deploymentBranchPolicy"] = args
|
|
89
|
-
resourceInputs["environment"] = args
|
|
90
|
-
resourceInputs["preventSelfReview"] = args
|
|
91
|
-
resourceInputs["repository"] = args
|
|
92
|
-
resourceInputs["reviewers"] = args
|
|
93
|
-
resourceInputs["waitTimer"] = args
|
|
90
|
+
resourceInputs["canAdminsBypass"] = args?.canAdminsBypass;
|
|
91
|
+
resourceInputs["deploymentBranchPolicy"] = args?.deploymentBranchPolicy;
|
|
92
|
+
resourceInputs["environment"] = args?.environment;
|
|
93
|
+
resourceInputs["preventSelfReview"] = args?.preventSelfReview;
|
|
94
|
+
resourceInputs["repository"] = args?.repository;
|
|
95
|
+
resourceInputs["reviewers"] = args?.reviewers;
|
|
96
|
+
resourceInputs["waitTimer"] = args?.waitTimer;
|
|
94
97
|
}
|
|
95
98
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
96
99
|
super(RepositoryEnvironment.__pulumiType, name, resourceInputs, opts);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repositoryEnvironment.js","sourceRoot":"","sources":["../repositoryEnvironment.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"repositoryEnvironment.js","sourceRoot":"","sources":["../repositoryEnvironment.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,MAAa,qBAAsB,SAAQ,MAAM,CAAC,cAAc;IAC5D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAkC,EAAE,IAAmC;QAChI,OAAO,IAAI,qBAAqB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC5E,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,qBAAqB,CAAC,YAAY,CAAC;IACtE,CAAC;IAuCD,YAAY,IAAY,EAAE,WAAoE,EAAE,IAAmC;QAC/H,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAqD,CAAC;YACpE,cAAc,CAAC,iBAAiB,CAAC,GAAG,KAAK,EAAE,eAAe,CAAC;YAC3D,cAAc,CAAC,wBAAwB,CAAC,GAAG,KAAK,EAAE,sBAAsB,CAAC;YACzE,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,EAAE,WAAW,CAAC;YACnD,cAAc,CAAC,mBAAmB,CAAC,GAAG,KAAK,EAAE,iBAAiB,CAAC;YAC/D,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,EAAE,UAAU,CAAC;YACjD,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,EAAE,SAAS,CAAC;YAC/C,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,EAAE,SAAS,CAAC;SAClD;aAAM;YACH,MAAM,IAAI,GAAG,WAAoD,CAAC;YAClE,IAAI,IAAI,EAAE,WAAW,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC9C,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;aAC9D;YACD,IAAI,IAAI,EAAE,UAAU,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC7C,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;aAC7D;YACD,cAAc,CAAC,iBAAiB,CAAC,GAAG,IAAI,EAAE,eAAe,CAAC;YAC1D,cAAc,CAAC,wBAAwB,CAAC,GAAG,IAAI,EAAE,sBAAsB,CAAC;YACxE,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,mBAAmB,CAAC,GAAG,IAAI,EAAE,iBAAiB,CAAC;YAC9D,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;SACjD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,qBAAqB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC1E,CAAC;;AA/FL,sDAgGC;AAlFG,gBAAgB;AACO,kCAAY,GAAG,0DAA0D,CAAC"}
|
|
@@ -4,6 +4,8 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
4
4
|
*
|
|
5
5
|
* ## Example Usage
|
|
6
6
|
*
|
|
7
|
+
* Create a branch-based deployment policy:
|
|
8
|
+
*
|
|
7
9
|
* ```typescript
|
|
8
10
|
* import * as pulumi from "@pulumi/pulumi";
|
|
9
11
|
* import * as github from "@pulumi/github";
|
|
@@ -11,9 +13,9 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
11
13
|
* const current = github.getUser({
|
|
12
14
|
* username: "",
|
|
13
15
|
* });
|
|
14
|
-
* const
|
|
15
|
-
* const testRepositoryEnvironment = new github.RepositoryEnvironment("
|
|
16
|
-
* repository:
|
|
16
|
+
* const test = new github.Repository("test", {name: "tf-acc-test-%s"});
|
|
17
|
+
* const testRepositoryEnvironment = new github.RepositoryEnvironment("test", {
|
|
18
|
+
* repository: test.name,
|
|
17
19
|
* environment: "environment/test",
|
|
18
20
|
* waitTimer: 10000,
|
|
19
21
|
* reviewers: [{
|
|
@@ -24,19 +26,48 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
24
26
|
* customBranchPolicies: true,
|
|
25
27
|
* },
|
|
26
28
|
* });
|
|
27
|
-
* const testRepositoryEnvironmentDeploymentPolicy = new github.RepositoryEnvironmentDeploymentPolicy("
|
|
28
|
-
* repository:
|
|
29
|
+
* const testRepositoryEnvironmentDeploymentPolicy = new github.RepositoryEnvironmentDeploymentPolicy("test", {
|
|
30
|
+
* repository: test.name,
|
|
29
31
|
* environment: testRepositoryEnvironment.environment,
|
|
30
32
|
* branchPattern: "releases/*",
|
|
31
33
|
* });
|
|
32
34
|
* ```
|
|
33
35
|
*
|
|
36
|
+
* Create a tag-based deployment policy:
|
|
37
|
+
*
|
|
38
|
+
* ```typescript
|
|
39
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
40
|
+
* import * as github from "@pulumi/github";
|
|
41
|
+
*
|
|
42
|
+
* const current = github.getUser({
|
|
43
|
+
* username: "",
|
|
44
|
+
* });
|
|
45
|
+
* const test = new github.Repository("test", {name: "tf-acc-test-%s"});
|
|
46
|
+
* const testRepositoryEnvironment = new github.RepositoryEnvironment("test", {
|
|
47
|
+
* repository: test.name,
|
|
48
|
+
* environment: "environment/test",
|
|
49
|
+
* waitTimer: 10000,
|
|
50
|
+
* reviewers: [{
|
|
51
|
+
* users: [current.then(current => current.id)],
|
|
52
|
+
* }],
|
|
53
|
+
* deploymentBranchPolicy: {
|
|
54
|
+
* protectedBranches: false,
|
|
55
|
+
* customBranchPolicies: true,
|
|
56
|
+
* },
|
|
57
|
+
* });
|
|
58
|
+
* const testRepositoryEnvironmentDeploymentPolicy = new github.RepositoryEnvironmentDeploymentPolicy("test", {
|
|
59
|
+
* repository: test.name,
|
|
60
|
+
* environment: testRepositoryEnvironment.environment,
|
|
61
|
+
* tagPattern: "v*",
|
|
62
|
+
* });
|
|
63
|
+
* ```
|
|
64
|
+
*
|
|
34
65
|
* ## Import
|
|
35
66
|
*
|
|
36
67
|
* GitHub Repository Environment Deployment Policy can be imported using an ID made up of `name` of the repository combined with the `environment` name of the environment with the `Id` of the deployment policy, separated by a `:` character, e.g.
|
|
37
68
|
*
|
|
38
69
|
* ```sh
|
|
39
|
-
*
|
|
70
|
+
* $ pulumi import github:index/repositoryEnvironmentDeploymentPolicy:RepositoryEnvironmentDeploymentPolicy daily terraform:daily:123456
|
|
40
71
|
* ```
|
|
41
72
|
*/
|
|
42
73
|
export declare class RepositoryEnvironmentDeploymentPolicy extends pulumi.CustomResource {
|
|
@@ -56,9 +87,9 @@ export declare class RepositoryEnvironmentDeploymentPolicy extends pulumi.Custom
|
|
|
56
87
|
*/
|
|
57
88
|
static isInstance(obj: any): obj is RepositoryEnvironmentDeploymentPolicy;
|
|
58
89
|
/**
|
|
59
|
-
* The name pattern that branches must match in order to deploy to the environment.
|
|
90
|
+
* The name pattern that branches must match in order to deploy to the environment. If not specified, `tagPattern` must be specified.
|
|
60
91
|
*/
|
|
61
|
-
readonly branchPattern: pulumi.Output<string>;
|
|
92
|
+
readonly branchPattern: pulumi.Output<string | undefined>;
|
|
62
93
|
/**
|
|
63
94
|
* The name of the environment.
|
|
64
95
|
*/
|
|
@@ -67,6 +98,10 @@ export declare class RepositoryEnvironmentDeploymentPolicy extends pulumi.Custom
|
|
|
67
98
|
* The repository of the environment.
|
|
68
99
|
*/
|
|
69
100
|
readonly repository: pulumi.Output<string>;
|
|
101
|
+
/**
|
|
102
|
+
* The name pattern that tags must match in order to deploy to the environment. If not specified, `branchPattern` must be specified.
|
|
103
|
+
*/
|
|
104
|
+
readonly tagPattern: pulumi.Output<string | undefined>;
|
|
70
105
|
/**
|
|
71
106
|
* Create a RepositoryEnvironmentDeploymentPolicy resource with the given unique name, arguments, and options.
|
|
72
107
|
*
|
|
@@ -81,7 +116,7 @@ export declare class RepositoryEnvironmentDeploymentPolicy extends pulumi.Custom
|
|
|
81
116
|
*/
|
|
82
117
|
export interface RepositoryEnvironmentDeploymentPolicyState {
|
|
83
118
|
/**
|
|
84
|
-
* The name pattern that branches must match in order to deploy to the environment.
|
|
119
|
+
* The name pattern that branches must match in order to deploy to the environment. If not specified, `tagPattern` must be specified.
|
|
85
120
|
*/
|
|
86
121
|
branchPattern?: pulumi.Input<string>;
|
|
87
122
|
/**
|
|
@@ -92,15 +127,19 @@ export interface RepositoryEnvironmentDeploymentPolicyState {
|
|
|
92
127
|
* The repository of the environment.
|
|
93
128
|
*/
|
|
94
129
|
repository?: pulumi.Input<string>;
|
|
130
|
+
/**
|
|
131
|
+
* The name pattern that tags must match in order to deploy to the environment. If not specified, `branchPattern` must be specified.
|
|
132
|
+
*/
|
|
133
|
+
tagPattern?: pulumi.Input<string>;
|
|
95
134
|
}
|
|
96
135
|
/**
|
|
97
136
|
* The set of arguments for constructing a RepositoryEnvironmentDeploymentPolicy resource.
|
|
98
137
|
*/
|
|
99
138
|
export interface RepositoryEnvironmentDeploymentPolicyArgs {
|
|
100
139
|
/**
|
|
101
|
-
* The name pattern that branches must match in order to deploy to the environment.
|
|
140
|
+
* The name pattern that branches must match in order to deploy to the environment. If not specified, `tagPattern` must be specified.
|
|
102
141
|
*/
|
|
103
|
-
branchPattern
|
|
142
|
+
branchPattern?: pulumi.Input<string>;
|
|
104
143
|
/**
|
|
105
144
|
* The name of the environment.
|
|
106
145
|
*/
|
|
@@ -109,4 +148,8 @@ export interface RepositoryEnvironmentDeploymentPolicyArgs {
|
|
|
109
148
|
* The repository of the environment.
|
|
110
149
|
*/
|
|
111
150
|
repository: pulumi.Input<string>;
|
|
151
|
+
/**
|
|
152
|
+
* The name pattern that tags must match in order to deploy to the environment. If not specified, `branchPattern` must be specified.
|
|
153
|
+
*/
|
|
154
|
+
tagPattern?: pulumi.Input<string>;
|
|
112
155
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// *** WARNING: this file was generated by
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.RepositoryEnvironmentDeploymentPolicy = void 0;
|
|
@@ -10,6 +10,8 @@ const utilities = require("./utilities");
|
|
|
10
10
|
*
|
|
11
11
|
* ## Example Usage
|
|
12
12
|
*
|
|
13
|
+
* Create a branch-based deployment policy:
|
|
14
|
+
*
|
|
13
15
|
* ```typescript
|
|
14
16
|
* import * as pulumi from "@pulumi/pulumi";
|
|
15
17
|
* import * as github from "@pulumi/github";
|
|
@@ -17,9 +19,9 @@ const utilities = require("./utilities");
|
|
|
17
19
|
* const current = github.getUser({
|
|
18
20
|
* username: "",
|
|
19
21
|
* });
|
|
20
|
-
* const
|
|
21
|
-
* const testRepositoryEnvironment = new github.RepositoryEnvironment("
|
|
22
|
-
* repository:
|
|
22
|
+
* const test = new github.Repository("test", {name: "tf-acc-test-%s"});
|
|
23
|
+
* const testRepositoryEnvironment = new github.RepositoryEnvironment("test", {
|
|
24
|
+
* repository: test.name,
|
|
23
25
|
* environment: "environment/test",
|
|
24
26
|
* waitTimer: 10000,
|
|
25
27
|
* reviewers: [{
|
|
@@ -30,19 +32,48 @@ const utilities = require("./utilities");
|
|
|
30
32
|
* customBranchPolicies: true,
|
|
31
33
|
* },
|
|
32
34
|
* });
|
|
33
|
-
* const testRepositoryEnvironmentDeploymentPolicy = new github.RepositoryEnvironmentDeploymentPolicy("
|
|
34
|
-
* repository:
|
|
35
|
+
* const testRepositoryEnvironmentDeploymentPolicy = new github.RepositoryEnvironmentDeploymentPolicy("test", {
|
|
36
|
+
* repository: test.name,
|
|
35
37
|
* environment: testRepositoryEnvironment.environment,
|
|
36
38
|
* branchPattern: "releases/*",
|
|
37
39
|
* });
|
|
38
40
|
* ```
|
|
39
41
|
*
|
|
42
|
+
* Create a tag-based deployment policy:
|
|
43
|
+
*
|
|
44
|
+
* ```typescript
|
|
45
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
46
|
+
* import * as github from "@pulumi/github";
|
|
47
|
+
*
|
|
48
|
+
* const current = github.getUser({
|
|
49
|
+
* username: "",
|
|
50
|
+
* });
|
|
51
|
+
* const test = new github.Repository("test", {name: "tf-acc-test-%s"});
|
|
52
|
+
* const testRepositoryEnvironment = new github.RepositoryEnvironment("test", {
|
|
53
|
+
* repository: test.name,
|
|
54
|
+
* environment: "environment/test",
|
|
55
|
+
* waitTimer: 10000,
|
|
56
|
+
* reviewers: [{
|
|
57
|
+
* users: [current.then(current => current.id)],
|
|
58
|
+
* }],
|
|
59
|
+
* deploymentBranchPolicy: {
|
|
60
|
+
* protectedBranches: false,
|
|
61
|
+
* customBranchPolicies: true,
|
|
62
|
+
* },
|
|
63
|
+
* });
|
|
64
|
+
* const testRepositoryEnvironmentDeploymentPolicy = new github.RepositoryEnvironmentDeploymentPolicy("test", {
|
|
65
|
+
* repository: test.name,
|
|
66
|
+
* environment: testRepositoryEnvironment.environment,
|
|
67
|
+
* tagPattern: "v*",
|
|
68
|
+
* });
|
|
69
|
+
* ```
|
|
70
|
+
*
|
|
40
71
|
* ## Import
|
|
41
72
|
*
|
|
42
73
|
* GitHub Repository Environment Deployment Policy can be imported using an ID made up of `name` of the repository combined with the `environment` name of the environment with the `Id` of the deployment policy, separated by a `:` character, e.g.
|
|
43
74
|
*
|
|
44
75
|
* ```sh
|
|
45
|
-
*
|
|
76
|
+
* $ pulumi import github:index/repositoryEnvironmentDeploymentPolicy:RepositoryEnvironmentDeploymentPolicy daily terraform:daily:123456
|
|
46
77
|
* ```
|
|
47
78
|
*/
|
|
48
79
|
class RepositoryEnvironmentDeploymentPolicy extends pulumi.CustomResource {
|
|
@@ -56,7 +87,7 @@ class RepositoryEnvironmentDeploymentPolicy extends pulumi.CustomResource {
|
|
|
56
87
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
57
88
|
*/
|
|
58
89
|
static get(name, id, state, opts) {
|
|
59
|
-
return new RepositoryEnvironmentDeploymentPolicy(name, state,
|
|
90
|
+
return new RepositoryEnvironmentDeploymentPolicy(name, state, { ...opts, id: id });
|
|
60
91
|
}
|
|
61
92
|
/**
|
|
62
93
|
* Returns true if the given object is an instance of RepositoryEnvironmentDeploymentPolicy. This is designed to work even
|
|
@@ -73,24 +104,23 @@ class RepositoryEnvironmentDeploymentPolicy extends pulumi.CustomResource {
|
|
|
73
104
|
opts = opts || {};
|
|
74
105
|
if (opts.id) {
|
|
75
106
|
const state = argsOrState;
|
|
76
|
-
resourceInputs["branchPattern"] = state
|
|
77
|
-
resourceInputs["environment"] = state
|
|
78
|
-
resourceInputs["repository"] = state
|
|
107
|
+
resourceInputs["branchPattern"] = state?.branchPattern;
|
|
108
|
+
resourceInputs["environment"] = state?.environment;
|
|
109
|
+
resourceInputs["repository"] = state?.repository;
|
|
110
|
+
resourceInputs["tagPattern"] = state?.tagPattern;
|
|
79
111
|
}
|
|
80
112
|
else {
|
|
81
113
|
const args = argsOrState;
|
|
82
|
-
if (
|
|
83
|
-
throw new Error("Missing required property 'branchPattern'");
|
|
84
|
-
}
|
|
85
|
-
if ((!args || args.environment === undefined) && !opts.urn) {
|
|
114
|
+
if (args?.environment === undefined && !opts.urn) {
|
|
86
115
|
throw new Error("Missing required property 'environment'");
|
|
87
116
|
}
|
|
88
|
-
if (
|
|
117
|
+
if (args?.repository === undefined && !opts.urn) {
|
|
89
118
|
throw new Error("Missing required property 'repository'");
|
|
90
119
|
}
|
|
91
|
-
resourceInputs["branchPattern"] = args
|
|
92
|
-
resourceInputs["environment"] = args
|
|
93
|
-
resourceInputs["repository"] = args
|
|
120
|
+
resourceInputs["branchPattern"] = args?.branchPattern;
|
|
121
|
+
resourceInputs["environment"] = args?.environment;
|
|
122
|
+
resourceInputs["repository"] = args?.repository;
|
|
123
|
+
resourceInputs["tagPattern"] = args?.tagPattern;
|
|
94
124
|
}
|
|
95
125
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
96
126
|
super(RepositoryEnvironmentDeploymentPolicy.__pulumiType, name, resourceInputs, opts);
|