@pulumi/github 6.15.0-alpha.1786702465 → 6.15.0
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 +49 -11
- package/actionsEnvironmentSecret.d.ts.map +1 -1
- package/actionsEnvironmentSecret.js +49 -11
- package/actionsEnvironmentSecret.js.map +1 -1
- package/actionsEnvironmentVariable.d.ts +5 -2
- package/actionsEnvironmentVariable.d.ts.map +1 -1
- package/actionsEnvironmentVariable.js +5 -2
- package/actionsEnvironmentVariable.js.map +1 -1
- package/actionsHostedRunner.d.ts +8 -9
- package/actionsHostedRunner.d.ts.map +1 -1
- package/actionsHostedRunner.js +8 -9
- package/actionsHostedRunner.js.map +1 -1
- package/actionsOrganizationOidcSubjectClaimCustomizationTemplate.d.ts +2 -4
- package/actionsOrganizationOidcSubjectClaimCustomizationTemplate.d.ts.map +1 -1
- package/actionsOrganizationOidcSubjectClaimCustomizationTemplate.js +2 -4
- package/actionsOrganizationOidcSubjectClaimCustomizationTemplate.js.map +1 -1
- package/actionsOrganizationPermissions.d.ts +1 -2
- package/actionsOrganizationPermissions.d.ts.map +1 -1
- package/actionsOrganizationPermissions.js +1 -2
- package/actionsOrganizationPermissions.js.map +1 -1
- package/actionsOrganizationSecret.d.ts +12 -14
- package/actionsOrganizationSecret.d.ts.map +1 -1
- package/actionsOrganizationSecret.js +12 -14
- package/actionsOrganizationSecret.js.map +1 -1
- package/actionsOrganizationSecretRepositories.d.ts +6 -3
- package/actionsOrganizationSecretRepositories.d.ts.map +1 -1
- package/actionsOrganizationSecretRepositories.js +6 -3
- package/actionsOrganizationSecretRepositories.js.map +1 -1
- package/actionsOrganizationSecretRepository.d.ts +6 -3
- package/actionsOrganizationSecretRepository.d.ts.map +1 -1
- package/actionsOrganizationSecretRepository.js +6 -3
- package/actionsOrganizationSecretRepository.js.map +1 -1
- package/actionsOrganizationVariable.d.ts +5 -2
- package/actionsOrganizationVariable.d.ts.map +1 -1
- package/actionsOrganizationVariable.js +5 -2
- package/actionsOrganizationVariable.js.map +1 -1
- package/actionsOrganizationVariableRepositories.d.ts +6 -3
- package/actionsOrganizationVariableRepositories.d.ts.map +1 -1
- package/actionsOrganizationVariableRepositories.js +6 -3
- package/actionsOrganizationVariableRepositories.js.map +1 -1
- package/actionsOrganizationVariableRepository.d.ts +6 -3
- package/actionsOrganizationVariableRepository.d.ts.map +1 -1
- package/actionsOrganizationVariableRepository.js +6 -3
- package/actionsOrganizationVariableRepository.js.map +1 -1
- package/actionsOrganizationWorkflowPermissions.d.ts +2 -2
- package/actionsOrganizationWorkflowPermissions.js +2 -2
- package/actionsRepositoryAccessLevel.d.ts +1 -2
- package/actionsRepositoryAccessLevel.d.ts.map +1 -1
- package/actionsRepositoryAccessLevel.js +1 -2
- package/actionsRepositoryAccessLevel.js.map +1 -1
- package/actionsRepositoryOidcSubjectClaimCustomizationTemplate.d.ts +5 -10
- package/actionsRepositoryOidcSubjectClaimCustomizationTemplate.d.ts.map +1 -1
- package/actionsRepositoryOidcSubjectClaimCustomizationTemplate.js +2 -4
- package/actionsRepositoryOidcSubjectClaimCustomizationTemplate.js.map +1 -1
- package/actionsRepositoryPermissions.d.ts +1 -2
- package/actionsRepositoryPermissions.d.ts.map +1 -1
- package/actionsRepositoryPermissions.js +1 -2
- package/actionsRepositoryPermissions.js.map +1 -1
- package/actionsRunnerGroup.d.ts +1 -2
- package/actionsRunnerGroup.d.ts.map +1 -1
- package/actionsRunnerGroup.js +1 -2
- package/actionsRunnerGroup.js.map +1 -1
- package/actionsSecret.d.ts +10 -12
- package/actionsSecret.d.ts.map +1 -1
- package/actionsSecret.js +10 -12
- package/actionsSecret.js.map +1 -1
- package/actionsVariable.d.ts +5 -2
- package/actionsVariable.d.ts.map +1 -1
- package/actionsVariable.js +5 -2
- package/actionsVariable.js.map +1 -1
- package/appInstallationRepositories.d.ts +21 -8
- package/appInstallationRepositories.d.ts.map +1 -1
- package/appInstallationRepositories.js +21 -8
- package/appInstallationRepositories.js.map +1 -1
- package/appInstallationRepository.d.ts +3 -8
- package/appInstallationRepository.d.ts.map +1 -1
- package/appInstallationRepository.js +3 -8
- package/appInstallationRepository.js.map +1 -1
- package/branch.d.ts +2 -4
- package/branch.d.ts.map +1 -1
- package/branch.js +2 -4
- package/branch.js.map +1 -1
- package/branchDefault.d.ts +43 -18
- package/branchDefault.d.ts.map +1 -1
- package/branchDefault.js +9 -9
- package/branchDefault.js.map +1 -1
- package/codespacesOrganizationSecret.d.ts +6 -26
- package/codespacesOrganizationSecret.d.ts.map +1 -1
- package/codespacesOrganizationSecret.js +3 -20
- package/codespacesOrganizationSecret.js.map +1 -1
- package/codespacesSecret.d.ts +4 -11
- package/codespacesSecret.d.ts.map +1 -1
- package/codespacesSecret.js +4 -11
- package/codespacesSecret.js.map +1 -1
- package/codespacesUserSecret.d.ts +3 -20
- package/codespacesUserSecret.d.ts.map +1 -1
- package/codespacesUserSecret.js +3 -20
- package/codespacesUserSecret.js.map +1 -1
- package/config/vars.d.ts +21 -13
- package/config/vars.d.ts.map +1 -1
- package/config/vars.js +12 -0
- package/config/vars.js.map +1 -1
- package/dependabotOrganizationSecret.d.ts +32 -13
- package/dependabotOrganizationSecret.d.ts.map +1 -1
- package/dependabotOrganizationSecret.js +32 -13
- package/dependabotOrganizationSecret.js.map +1 -1
- package/dependabotOrganizationSecretRepositories.d.ts +6 -3
- package/dependabotOrganizationSecretRepositories.d.ts.map +1 -1
- package/dependabotOrganizationSecretRepositories.js +6 -3
- package/dependabotOrganizationSecretRepositories.js.map +1 -1
- package/dependabotOrganizationSecretRepository.d.ts +6 -3
- package/dependabotOrganizationSecretRepository.d.ts.map +1 -1
- package/dependabotOrganizationSecretRepository.js +6 -3
- package/dependabotOrganizationSecretRepository.js.map +1 -1
- package/dependabotSecret.d.ts +10 -12
- package/dependabotSecret.d.ts.map +1 -1
- package/dependabotSecret.js +10 -12
- package/dependabotSecret.js.map +1 -1
- package/enterpriseActionsPermissions.d.ts +1 -2
- package/enterpriseActionsPermissions.d.ts.map +1 -1
- package/enterpriseActionsPermissions.js +1 -2
- package/enterpriseActionsPermissions.js.map +1 -1
- package/enterpriseActionsRunnerGroup.d.ts +1 -2
- package/enterpriseActionsRunnerGroup.d.ts.map +1 -1
- package/enterpriseActionsRunnerGroup.js +1 -2
- package/enterpriseActionsRunnerGroup.js.map +1 -1
- package/enterpriseActionsWorkflowPermissions.d.ts +1 -8
- package/enterpriseActionsWorkflowPermissions.d.ts.map +1 -1
- package/enterpriseActionsWorkflowPermissions.js +1 -8
- package/enterpriseActionsWorkflowPermissions.js.map +1 -1
- package/enterpriseSecurityAnalysisSettings.d.ts +0 -8
- package/enterpriseSecurityAnalysisSettings.d.ts.map +1 -1
- package/enterpriseSecurityAnalysisSettings.js +0 -8
- package/enterpriseSecurityAnalysisSettings.js.map +1 -1
- package/getActionsEnvironmentPublicKey.d.ts +2 -4
- package/getActionsEnvironmentPublicKey.d.ts.map +1 -1
- package/getActionsEnvironmentPublicKey.js +2 -4
- package/getActionsEnvironmentPublicKey.js.map +1 -1
- package/getActionsOrganizationPublicKey.d.ts +2 -4
- package/getActionsOrganizationPublicKey.d.ts.map +1 -1
- package/getActionsOrganizationPublicKey.js +2 -4
- package/getActionsOrganizationPublicKey.js.map +1 -1
- package/getActionsPublicKey.d.ts +2 -4
- package/getActionsPublicKey.d.ts.map +1 -1
- package/getActionsPublicKey.js +2 -4
- package/getActionsPublicKey.js.map +1 -1
- package/getAppToken.d.ts +10 -10
- package/getAppToken.js +10 -10
- package/getCodespacesOrganizationPublicKey.d.ts +2 -4
- package/getCodespacesOrganizationPublicKey.d.ts.map +1 -1
- package/getCodespacesOrganizationPublicKey.js +2 -4
- package/getCodespacesOrganizationPublicKey.js.map +1 -1
- package/getCodespacesPublicKey.d.ts +2 -4
- package/getCodespacesPublicKey.d.ts.map +1 -1
- package/getCodespacesPublicKey.js +2 -4
- package/getCodespacesPublicKey.js.map +1 -1
- package/getCodespacesUserPublicKey.d.ts +2 -4
- package/getCodespacesUserPublicKey.d.ts.map +1 -1
- package/getCodespacesUserPublicKey.js +2 -4
- package/getCodespacesUserPublicKey.js.map +1 -1
- package/getCollaborators.d.ts +5 -5
- package/getDependabotOrganizationPublicKey.d.ts +2 -4
- package/getDependabotOrganizationPublicKey.d.ts.map +1 -1
- package/getDependabotOrganizationPublicKey.js +2 -4
- package/getDependabotOrganizationPublicKey.js.map +1 -1
- package/getDependabotPublicKey.d.ts +2 -4
- package/getDependabotPublicKey.d.ts.map +1 -1
- package/getDependabotPublicKey.js +2 -4
- package/getDependabotPublicKey.js.map +1 -1
- package/getGithubApp.d.ts +6 -3
- package/getGithubApp.d.ts.map +1 -1
- package/getGithubApp.js +2 -2
- package/getGithubApp.js.map +1 -1
- package/getMembership.d.ts +3 -9
- package/getMembership.d.ts.map +1 -1
- package/getMembership.js +2 -8
- package/getMembership.js.map +1 -1
- package/getOrganizationExternalIdentities.d.ts +2 -4
- package/getOrganizationExternalIdentities.d.ts.map +1 -1
- package/getOrganizationExternalIdentities.js +2 -4
- package/getOrganizationExternalIdentities.js.map +1 -1
- package/getOrganizationIpAllowList.d.ts +2 -7
- package/getOrganizationIpAllowList.d.ts.map +1 -1
- package/getOrganizationIpAllowList.js +2 -6
- package/getOrganizationIpAllowList.js.map +1 -1
- package/getOrganizationSecurityManagers.d.ts +1 -1
- package/getOrganizationTeamSyncGroups.d.ts +1 -1
- package/getOrganizationTeams.d.ts +3 -3
- package/getOrganizationTeams.js +2 -2
- package/getOrganizationWebhooks.d.ts +3 -4
- package/getOrganizationWebhooks.d.ts.map +1 -1
- package/getOrganizationWebhooks.js +2 -2
- package/getOrganizationWebhooks.js.map +1 -1
- package/getReleaseAsset.d.ts +2 -4
- package/getReleaseAsset.d.ts.map +1 -1
- package/getReleaseAsset.js +2 -4
- package/getReleaseAsset.js.map +1 -1
- package/getRepositories.d.ts +2 -4
- package/getRepositories.d.ts.map +1 -1
- package/getRepositories.js +2 -4
- package/getRepositories.js.map +1 -1
- package/getRepositoryDeploymentBranchPolicies.d.ts +2 -2
- package/getRepositoryEnvironments.d.ts +4 -0
- package/getRepositoryEnvironments.d.ts.map +1 -1
- package/getRepositoryEnvironments.js +4 -0
- package/getRepositoryEnvironments.js.map +1 -1
- package/getRepositoryFile.d.ts +2 -4
- package/getRepositoryFile.d.ts.map +1 -1
- package/getRepositoryFile.js +2 -4
- package/getRepositoryFile.js.map +1 -1
- package/getRepositoryWebhooks.d.ts +1 -2
- package/getRepositoryWebhooks.d.ts.map +1 -1
- package/getRepositoryWebhooks.js.map +1 -1
- package/getTeam.d.ts +4 -4
- package/getUserExternalIdentity.d.ts +4 -8
- package/getUserExternalIdentity.d.ts.map +1 -1
- package/getUserExternalIdentity.js +2 -4
- package/getUserExternalIdentity.js.map +1 -1
- package/issue.d.ts +3 -4
- package/issue.d.ts.map +1 -1
- package/issue.js +3 -4
- package/issue.js.map +1 -1
- package/issueLabel.d.ts +4 -9
- package/issueLabel.d.ts.map +1 -1
- package/issueLabel.js +4 -9
- package/issueLabel.js.map +1 -1
- package/issueLabels.d.ts +1 -2
- package/issueLabels.d.ts.map +1 -1
- package/issueLabels.js +1 -2
- package/issueLabels.js.map +1 -1
- package/membership.d.ts +7 -24
- package/membership.d.ts.map +1 -1
- package/membership.js +1 -3
- package/membership.js.map +1 -1
- package/organizationCustomProperties.d.ts +0 -8
- package/organizationCustomProperties.d.ts.map +1 -1
- package/organizationCustomProperties.js +0 -8
- package/organizationCustomProperties.js.map +1 -1
- package/organizationCustomRole.d.ts +1 -2
- package/organizationCustomRole.d.ts.map +1 -1
- package/organizationCustomRole.js +1 -2
- package/organizationCustomRole.js.map +1 -1
- package/organizationRoleTeamAssignment.d.ts +6 -4
- package/organizationRoleTeamAssignment.d.ts.map +1 -1
- package/organizationRoleTeamAssignment.js +6 -4
- package/organizationRoleTeamAssignment.js.map +1 -1
- package/organizationRuleset.d.ts +0 -38
- package/organizationRuleset.d.ts.map +1 -1
- package/organizationRuleset.js +0 -38
- package/organizationRuleset.js.map +1 -1
- package/organizationSecurityManager.d.ts +4 -0
- package/organizationSecurityManager.d.ts.map +1 -1
- package/organizationSecurityManager.js +4 -0
- package/organizationSecurityManager.js.map +1 -1
- package/organizationSettings.d.ts +1 -2
- package/organizationSettings.d.ts.map +1 -1
- package/organizationSettings.js +1 -2
- package/organizationSettings.js.map +1 -1
- package/organizationWebhook.d.ts +1 -2
- package/organizationWebhook.d.ts.map +1 -1
- package/organizationWebhook.js +1 -2
- package/organizationWebhook.js.map +1 -1
- package/package.json +2 -2
- package/projectCard.d.ts +3 -6
- package/projectCard.d.ts.map +1 -1
- package/projectCard.js.map +1 -1
- package/provider.d.ts +33 -19
- package/provider.d.ts.map +1 -1
- package/provider.js +2 -0
- package/provider.js.map +1 -1
- package/release.d.ts +1 -2
- package/release.d.ts.map +1 -1
- package/release.js +1 -2
- package/release.js.map +1 -1
- package/repository.d.ts +13 -29
- package/repository.d.ts.map +1 -1
- package/repository.js +1 -2
- package/repository.js.map +1 -1
- package/repositoryCollaborator.d.ts +15 -30
- package/repositoryCollaborator.d.ts.map +1 -1
- package/repositoryCollaborator.js +4 -13
- package/repositoryCollaborator.js.map +1 -1
- package/repositoryCollaborators.d.ts +51 -32
- package/repositoryCollaborators.d.ts.map +1 -1
- package/repositoryCollaborators.js +31 -16
- package/repositoryCollaborators.js.map +1 -1
- package/repositoryCustomProperty.d.ts +26 -18
- package/repositoryCustomProperty.d.ts.map +1 -1
- package/repositoryCustomProperty.js +8 -6
- package/repositoryCustomProperty.js.map +1 -1
- package/repositoryDependabotSecurityUpdates.d.ts +1 -3
- package/repositoryDependabotSecurityUpdates.d.ts.map +1 -1
- package/repositoryDependabotSecurityUpdates.js +1 -3
- package/repositoryDependabotSecurityUpdates.js.map +1 -1
- package/repositoryDeployKey.d.ts +3 -5
- package/repositoryDeployKey.d.ts.map +1 -1
- package/repositoryDeployKey.js +3 -5
- package/repositoryDeployKey.js.map +1 -1
- package/repositoryDeploymentBranchPolicy.d.ts +4 -0
- package/repositoryDeploymentBranchPolicy.d.ts.map +1 -1
- package/repositoryDeploymentBranchPolicy.js +4 -0
- package/repositoryDeploymentBranchPolicy.js.map +1 -1
- package/repositoryEnvironment.d.ts +6 -0
- package/repositoryEnvironment.d.ts.map +1 -1
- package/repositoryEnvironment.js +6 -0
- package/repositoryEnvironment.js.map +1 -1
- package/repositoryEnvironmentDeploymentPolicy.d.ts +4 -0
- package/repositoryEnvironmentDeploymentPolicy.d.ts.map +1 -1
- package/repositoryEnvironmentDeploymentPolicy.js +4 -0
- package/repositoryEnvironmentDeploymentPolicy.js.map +1 -1
- package/repositoryFile.d.ts +13 -14
- package/repositoryFile.d.ts.map +1 -1
- package/repositoryFile.js +10 -8
- package/repositoryFile.js.map +1 -1
- package/repositoryPages.d.ts +1 -3
- package/repositoryPages.d.ts.map +1 -1
- package/repositoryPages.js +1 -3
- package/repositoryPages.js.map +1 -1
- package/repositoryTopics.d.ts +1 -2
- package/repositoryTopics.d.ts.map +1 -1
- package/repositoryTopics.js +1 -2
- package/repositoryTopics.js.map +1 -1
- package/repositoryVulnerabilityAlerts.d.ts +1 -3
- package/repositoryVulnerabilityAlerts.d.ts.map +1 -1
- package/repositoryVulnerabilityAlerts.js +1 -3
- package/repositoryVulnerabilityAlerts.js.map +1 -1
- package/repositoryWebhook.d.ts +4 -6
- package/repositoryWebhook.d.ts.map +1 -1
- package/repositoryWebhook.js +2 -4
- package/repositoryWebhook.js.map +1 -1
- package/team.d.ts +9 -14
- package/team.d.ts.map +1 -1
- package/team.js +1 -2
- package/team.js.map +1 -1
- package/teamMembers.d.ts +32 -39
- package/teamMembers.d.ts.map +1 -1
- package/teamMembers.js +12 -32
- package/teamMembers.js.map +1 -1
- package/teamMembership.d.ts +4 -10
- package/teamMembership.d.ts.map +1 -1
- package/teamMembership.js +1 -4
- package/teamMembership.js.map +1 -1
- package/teamRepository.d.ts +8 -17
- package/teamRepository.d.ts.map +1 -1
- package/teamRepository.js +5 -11
- package/teamRepository.js.map +1 -1
- package/teamSettings.d.ts +6 -7
- package/teamSettings.d.ts.map +1 -1
- package/teamSettings.js +6 -7
- package/teamSettings.js.map +1 -1
- package/teamSyncGroupMapping.d.ts +5 -16
- package/teamSyncGroupMapping.d.ts.map +1 -1
- package/teamSyncGroupMapping.js +2 -4
- package/teamSyncGroupMapping.js.map +1 -1
- package/types/input.d.ts +23 -39
- package/types/input.d.ts.map +1 -1
- package/types/output.d.ts +26 -44
- package/types/output.d.ts.map +1 -1
- package/userGpgKey.d.ts +4 -8
- package/userGpgKey.d.ts.map +1 -1
- package/userGpgKey.js +1 -2
- package/userGpgKey.js.map +1 -1
- package/userInvitationAccepter.d.ts +2 -4
- package/userInvitationAccepter.d.ts.map +1 -1
- package/userInvitationAccepter.js +2 -4
- package/userInvitationAccepter.js.map +1 -1
- package/userSshKey.d.ts +1 -1
- package/userSshKey.js +1 -1
- package/workflowRepositoryPermissions.d.ts +1 -2
- package/workflowRepositoryPermissions.d.ts.map +1 -1
- package/workflowRepositoryPermissions.js +1 -2
- package/workflowRepositoryPermissions.js.map +1 -1
package/team.d.ts
CHANGED
|
@@ -2,8 +2,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
/**
|
|
3
3
|
* Provides a GitHub team resource.
|
|
4
4
|
*
|
|
5
|
-
* This resource allows you to add/remove teams from your organization. When applied,
|
|
6
|
-
* a new team will be created. When destroyed, that team will be removed.
|
|
5
|
+
* This resource allows you to add/remove teams from your organization. When applied, a new team will be created. When destroyed, that team will be removed.
|
|
7
6
|
*
|
|
8
7
|
* ## Example Usage
|
|
9
8
|
*
|
|
@@ -69,7 +68,7 @@ export declare class Team extends pulumi.CustomResource {
|
|
|
69
68
|
*/
|
|
70
69
|
readonly nodeId: pulumi.Output<string>;
|
|
71
70
|
/**
|
|
72
|
-
* The notification setting for the team. Must be one of `notificationsEnabled`
|
|
71
|
+
* The notification setting for the team. Must be one of `notificationsEnabled` *(default)- or `notificationsDisabled`.
|
|
73
72
|
*/
|
|
74
73
|
readonly notificationSetting: pulumi.Output<string | undefined>;
|
|
75
74
|
/**
|
|
@@ -85,13 +84,11 @@ export declare class Team extends pulumi.CustomResource {
|
|
|
85
84
|
*/
|
|
86
85
|
readonly parentTeamReadSlug: pulumi.Output<string>;
|
|
87
86
|
/**
|
|
88
|
-
* The level of privacy for the team. Must be one of `secret`
|
|
87
|
+
* The level of privacy for the team. Must be one of `secret` *(default)- or `closed`.
|
|
89
88
|
*/
|
|
90
89
|
readonly privacy: pulumi.Output<string | undefined>;
|
|
91
90
|
/**
|
|
92
|
-
* The slug of the created team, which may or may not differ from `name`,
|
|
93
|
-
* depending on whether `name` contains "URL-unsafe" characters.
|
|
94
|
-
* Useful when referencing the team in [`github.BranchProtection`](https://www.terraform.io/docs/providers/github/r/branch_protection.html).
|
|
91
|
+
* The slug of the created team, which may or may not differ from `name`, depending on whether `name` contains "URL-unsafe" characters.
|
|
95
92
|
*/
|
|
96
93
|
readonly slug: pulumi.Output<string>;
|
|
97
94
|
/**
|
|
@@ -132,7 +129,7 @@ export interface TeamState {
|
|
|
132
129
|
*/
|
|
133
130
|
nodeId?: pulumi.Input<string | undefined>;
|
|
134
131
|
/**
|
|
135
|
-
* The notification setting for the team. Must be one of `notificationsEnabled`
|
|
132
|
+
* The notification setting for the team. Must be one of `notificationsEnabled` *(default)- or `notificationsDisabled`.
|
|
136
133
|
*/
|
|
137
134
|
notificationSetting?: pulumi.Input<string | undefined>;
|
|
138
135
|
/**
|
|
@@ -148,13 +145,11 @@ export interface TeamState {
|
|
|
148
145
|
*/
|
|
149
146
|
parentTeamReadSlug?: pulumi.Input<string | undefined>;
|
|
150
147
|
/**
|
|
151
|
-
* The level of privacy for the team. Must be one of `secret`
|
|
148
|
+
* The level of privacy for the team. Must be one of `secret` *(default)- or `closed`.
|
|
152
149
|
*/
|
|
153
150
|
privacy?: pulumi.Input<string | undefined>;
|
|
154
151
|
/**
|
|
155
|
-
* The slug of the created team, which may or may not differ from `name`,
|
|
156
|
-
* depending on whether `name` contains "URL-unsafe" characters.
|
|
157
|
-
* Useful when referencing the team in [`github.BranchProtection`](https://www.terraform.io/docs/providers/github/r/branch_protection.html).
|
|
152
|
+
* The slug of the created team, which may or may not differ from `name`, depending on whether `name` contains "URL-unsafe" characters.
|
|
158
153
|
*/
|
|
159
154
|
slug?: pulumi.Input<string | undefined>;
|
|
160
155
|
}
|
|
@@ -181,7 +176,7 @@ export interface TeamArgs {
|
|
|
181
176
|
*/
|
|
182
177
|
name?: pulumi.Input<string | undefined>;
|
|
183
178
|
/**
|
|
184
|
-
* The notification setting for the team. Must be one of `notificationsEnabled`
|
|
179
|
+
* The notification setting for the team. Must be one of `notificationsEnabled` *(default)- or `notificationsDisabled`.
|
|
185
180
|
*/
|
|
186
181
|
notificationSetting?: pulumi.Input<string | undefined>;
|
|
187
182
|
/**
|
|
@@ -197,7 +192,7 @@ export interface TeamArgs {
|
|
|
197
192
|
*/
|
|
198
193
|
parentTeamReadSlug?: pulumi.Input<string | undefined>;
|
|
199
194
|
/**
|
|
200
|
-
* The level of privacy for the team. Must be one of `secret`
|
|
195
|
+
* The level of privacy for the team. Must be one of `secret` *(default)- or `closed`.
|
|
201
196
|
*/
|
|
202
197
|
privacy?: pulumi.Input<string | undefined>;
|
|
203
198
|
}
|
package/team.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"team.d.ts","sourceRoot":"","sources":["../team.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC
|
|
1
|
+
{"version":3,"file":"team.d.ts","sourceRoot":"","sources":["../team.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,qBAAa,IAAK,SAAQ,MAAM,CAAC,cAAc;IAC3C;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,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C;IACtD;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC3C;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC3C;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACrB;;;;OAIG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IAC5D;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC/C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC1C;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACxC;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACvD;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAChD;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACpD;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACtD;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC9C"}
|
package/team.js
CHANGED
|
@@ -31,8 +31,7 @@ const utilities = __importStar(require("./utilities"));
|
|
|
31
31
|
/**
|
|
32
32
|
* Provides a GitHub team resource.
|
|
33
33
|
*
|
|
34
|
-
* This resource allows you to add/remove teams from your organization. When applied,
|
|
35
|
-
* a new team will be created. When destroyed, that team will be removed.
|
|
34
|
+
* This resource allows you to add/remove teams from your organization. When applied, a new team will be created. When destroyed, that team will be removed.
|
|
36
35
|
*
|
|
37
36
|
* ## Example Usage
|
|
38
37
|
*
|
package/team.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"team.js","sourceRoot":"","sources":["../team.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"team.js","sourceRoot":"","sources":["../team.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAa,IAAK,SAAQ,MAAM,CAAC,cAAc;IAC3C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAiB,EAAE,IAAmC;QAC/G,OAAO,IAAI,IAAI,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC3D,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,wBAAwB,CAAC;IAE/D;;;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,IAAI,CAAC,YAAY,CAAC;IACrD,CAAC;IA2DD,YAAY,IAAY,EAAE,WAAkC,EAAE,IAAmC;QAC7F,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IA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YAClE,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,EAAE,YAAY,CAAC;YACpD,cAAc,CAAC,kBAAkB,CAAC,GAAG,IAAI,EAAE,gBAAgB,CAAC;YAC5D,cAAc,CAAC,oBAAoB,CAAC,GAAG,IAAI,EAAE,kBAAkB,CAAC;YAChE,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC3C,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACnD,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC7C,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,IAAI,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACzD,CAAC;;AAzHL,oBA0HC"}
|
package/teamMembers.d.ts
CHANGED
|
@@ -2,19 +2,13 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
import * as inputs from "./types/input";
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* > This resource is not compatible with `github.TeamMembership`; use either `github.TeamMembers` or `github.TeamMembership`.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
7
|
+
* Resource to authoritatively manage GitHub team members.
|
|
8
8
|
*
|
|
9
|
-
*
|
|
9
|
+
* This resource allows you to manage members of teams in your organization; it sets the requested team members for the team and removes all users not managed by Terraform. If an organization owner is given the `member` role they will be granted `maintainer` instead which will result in a perpetual diff. If a user who hasn't accepted their invitation to the organization is added to the team, they will not be a team member until they've accepted the invitation. When this resource is deleted all users will be removed from the team.
|
|
10
10
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* > **Note** This resource is not compatible with `github.TeamMembership`. Use either `github.TeamMembers` or `github.TeamMembership`.
|
|
14
|
-
*
|
|
15
|
-
* > **Note** You can accidentally lock yourself out of your team using this resource. Deleting a `github.TeamMembers` resource removes access from anyone without organization-level access to the team. Proceed with caution. It should generally only be used with teams fully managed by Terraform.
|
|
16
|
-
*
|
|
17
|
-
* > **Note** Attempting to set a user who is an organization owner to "member" will result in the user being granted "maintainer" instead; this can result in a perpetual `terraform plan` diff that changes their status back to "member".
|
|
11
|
+
* > If you don't have a member with the `maintainer` set then this resource may end up with a perpetual diff as the GitHub API will automatically promote a member to `maintainer` if there are no maintainers in the team. To avoid this, ensure that at least one member has the `maintainer` role.
|
|
18
12
|
*
|
|
19
13
|
* ## Example Usage
|
|
20
14
|
*
|
|
@@ -22,21 +16,9 @@ import * as outputs from "./types/output";
|
|
|
22
16
|
* import * as pulumi from "@pulumi/pulumi";
|
|
23
17
|
* import * as github from "@pulumi/github";
|
|
24
18
|
*
|
|
25
|
-
*
|
|
26
|
-
* const
|
|
27
|
-
*
|
|
28
|
-
* role: "member",
|
|
29
|
-
* });
|
|
30
|
-
* const membershipForAnotherUser = new github.Membership("membership_for_another_user", {
|
|
31
|
-
* username: "AnotherUser",
|
|
32
|
-
* role: "member",
|
|
33
|
-
* });
|
|
34
|
-
* const someTeam = new github.Team("some_team", {
|
|
35
|
-
* name: "SomeTeam",
|
|
36
|
-
* description: "Some cool team",
|
|
37
|
-
* });
|
|
38
|
-
* const someTeamMembers = new github.TeamMembers("some_team_members", {
|
|
39
|
-
* teamId: someTeam.id,
|
|
19
|
+
* const example = new github.Team("example", {name: "my-team"});
|
|
20
|
+
* const exampleTeamMembers = new github.TeamMembers("example", {
|
|
21
|
+
* teamSlug: example.slug,
|
|
40
22
|
* members: [
|
|
41
23
|
* {
|
|
42
24
|
* username: "SomeUser",
|
|
@@ -52,13 +34,12 @@ import * as outputs from "./types/output";
|
|
|
52
34
|
*
|
|
53
35
|
* ## Import
|
|
54
36
|
*
|
|
55
|
-
*
|
|
37
|
+
* This resource can be imported either by the team slug or team ID; it is recommended to use the team slug in combination with the `teamSlug` resource attribute.
|
|
56
38
|
*
|
|
57
|
-
*
|
|
39
|
+
* The `pulumi import` command can be used, for example:
|
|
58
40
|
*
|
|
59
41
|
* ```sh
|
|
60
|
-
* $ pulumi import github:index/teamMembers:TeamMembers
|
|
61
|
-
* $ pulumi import github:index/teamMembers:TeamMembers some_team Administrators
|
|
42
|
+
* $ pulumi import github:index/teamMembers:TeamMembers example my-team
|
|
62
43
|
* ```
|
|
63
44
|
*/
|
|
64
45
|
export declare class TeamMembers extends pulumi.CustomResource {
|
|
@@ -78,15 +59,19 @@ export declare class TeamMembers extends pulumi.CustomResource {
|
|
|
78
59
|
*/
|
|
79
60
|
static isInstance(obj: any): obj is TeamMembers;
|
|
80
61
|
/**
|
|
81
|
-
* List of
|
|
62
|
+
* List of users that should be members of the team.
|
|
82
63
|
*/
|
|
83
64
|
readonly members: pulumi.Output<outputs.TeamMembersMember[]>;
|
|
84
65
|
/**
|
|
85
|
-
*
|
|
66
|
+
* ID or slug of the GitHub team to manage membership for.
|
|
86
67
|
*
|
|
87
|
-
*
|
|
68
|
+
* @deprecated Use `teamSlug` instead; this field will be made computed only in a future version of the provider.
|
|
88
69
|
*/
|
|
89
70
|
readonly teamId: pulumi.Output<string>;
|
|
71
|
+
/**
|
|
72
|
+
* Slug of the GitHub team to manage membership for.
|
|
73
|
+
*/
|
|
74
|
+
readonly teamSlug: pulumi.Output<string>;
|
|
90
75
|
/**
|
|
91
76
|
* Create a TeamMembers resource with the given unique name, arguments, and options.
|
|
92
77
|
*
|
|
@@ -101,29 +86,37 @@ export declare class TeamMembers extends pulumi.CustomResource {
|
|
|
101
86
|
*/
|
|
102
87
|
export interface TeamMembersState {
|
|
103
88
|
/**
|
|
104
|
-
* List of
|
|
89
|
+
* List of users that should be members of the team.
|
|
105
90
|
*/
|
|
106
91
|
members?: pulumi.Input<pulumi.Input<inputs.TeamMembersMember>[] | undefined>;
|
|
107
92
|
/**
|
|
108
|
-
*
|
|
93
|
+
* ID or slug of the GitHub team to manage membership for.
|
|
109
94
|
*
|
|
110
|
-
*
|
|
95
|
+
* @deprecated Use `teamSlug` instead; this field will be made computed only in a future version of the provider.
|
|
111
96
|
*/
|
|
112
97
|
teamId?: pulumi.Input<string | undefined>;
|
|
98
|
+
/**
|
|
99
|
+
* Slug of the GitHub team to manage membership for.
|
|
100
|
+
*/
|
|
101
|
+
teamSlug?: pulumi.Input<string | undefined>;
|
|
113
102
|
}
|
|
114
103
|
/**
|
|
115
104
|
* The set of arguments for constructing a TeamMembers resource.
|
|
116
105
|
*/
|
|
117
106
|
export interface TeamMembersArgs {
|
|
118
107
|
/**
|
|
119
|
-
* List of
|
|
108
|
+
* List of users that should be members of the team.
|
|
120
109
|
*/
|
|
121
110
|
members: pulumi.Input<pulumi.Input<inputs.TeamMembersMember>[]>;
|
|
122
111
|
/**
|
|
123
|
-
*
|
|
112
|
+
* ID or slug of the GitHub team to manage membership for.
|
|
124
113
|
*
|
|
125
|
-
*
|
|
114
|
+
* @deprecated Use `teamSlug` instead; this field will be made computed only in a future version of the provider.
|
|
115
|
+
*/
|
|
116
|
+
teamId?: pulumi.Input<string | undefined>;
|
|
117
|
+
/**
|
|
118
|
+
* Slug of the GitHub team to manage membership for.
|
|
126
119
|
*/
|
|
127
|
-
|
|
120
|
+
teamSlug?: pulumi.Input<string | undefined>;
|
|
128
121
|
}
|
|
129
122
|
//# sourceMappingURL=teamMembers.d.ts.map
|
package/teamMembers.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"teamMembers.d.ts","sourceRoot":"","sources":["../teamMembers.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,M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AM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC1C;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC/C;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,iBAAiB,CAAC,EAAE,CAAC,CAAC;IAChE;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC1C;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC/C"}
|
package/teamMembers.js
CHANGED
|
@@ -29,19 +29,13 @@ exports.TeamMembers = void 0;
|
|
|
29
29
|
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
30
|
const utilities = __importStar(require("./utilities"));
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* > This resource is not compatible with `github.TeamMembership`; use either `github.TeamMembers` or `github.TeamMembership`.
|
|
33
33
|
*
|
|
34
|
-
*
|
|
34
|
+
* Resource to authoritatively manage GitHub team members.
|
|
35
35
|
*
|
|
36
|
-
*
|
|
36
|
+
* This resource allows you to manage members of teams in your organization; it sets the requested team members for the team and removes all users not managed by Terraform. If an organization owner is given the `member` role they will be granted `maintainer` instead which will result in a perpetual diff. If a user who hasn't accepted their invitation to the organization is added to the team, they will not be a team member until they've accepted the invitation. When this resource is deleted all users will be removed from the team.
|
|
37
37
|
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
* > **Note** This resource is not compatible with `github.TeamMembership`. Use either `github.TeamMembers` or `github.TeamMembership`.
|
|
41
|
-
*
|
|
42
|
-
* > **Note** You can accidentally lock yourself out of your team using this resource. Deleting a `github.TeamMembers` resource removes access from anyone without organization-level access to the team. Proceed with caution. It should generally only be used with teams fully managed by Terraform.
|
|
43
|
-
*
|
|
44
|
-
* > **Note** Attempting to set a user who is an organization owner to "member" will result in the user being granted "maintainer" instead; this can result in a perpetual `terraform plan` diff that changes their status back to "member".
|
|
38
|
+
* > If you don't have a member with the `maintainer` set then this resource may end up with a perpetual diff as the GitHub API will automatically promote a member to `maintainer` if there are no maintainers in the team. To avoid this, ensure that at least one member has the `maintainer` role.
|
|
45
39
|
*
|
|
46
40
|
* ## Example Usage
|
|
47
41
|
*
|
|
@@ -49,21 +43,9 @@ const utilities = __importStar(require("./utilities"));
|
|
|
49
43
|
* import * as pulumi from "@pulumi/pulumi";
|
|
50
44
|
* import * as github from "@pulumi/github";
|
|
51
45
|
*
|
|
52
|
-
*
|
|
53
|
-
* const
|
|
54
|
-
*
|
|
55
|
-
* role: "member",
|
|
56
|
-
* });
|
|
57
|
-
* const membershipForAnotherUser = new github.Membership("membership_for_another_user", {
|
|
58
|
-
* username: "AnotherUser",
|
|
59
|
-
* role: "member",
|
|
60
|
-
* });
|
|
61
|
-
* const someTeam = new github.Team("some_team", {
|
|
62
|
-
* name: "SomeTeam",
|
|
63
|
-
* description: "Some cool team",
|
|
64
|
-
* });
|
|
65
|
-
* const someTeamMembers = new github.TeamMembers("some_team_members", {
|
|
66
|
-
* teamId: someTeam.id,
|
|
46
|
+
* const example = new github.Team("example", {name: "my-team"});
|
|
47
|
+
* const exampleTeamMembers = new github.TeamMembers("example", {
|
|
48
|
+
* teamSlug: example.slug,
|
|
67
49
|
* members: [
|
|
68
50
|
* {
|
|
69
51
|
* username: "SomeUser",
|
|
@@ -79,13 +61,12 @@ const utilities = __importStar(require("./utilities"));
|
|
|
79
61
|
*
|
|
80
62
|
* ## Import
|
|
81
63
|
*
|
|
82
|
-
*
|
|
64
|
+
* This resource can be imported either by the team slug or team ID; it is recommended to use the team slug in combination with the `teamSlug` resource attribute.
|
|
83
65
|
*
|
|
84
|
-
*
|
|
66
|
+
* The `pulumi import` command can be used, for example:
|
|
85
67
|
*
|
|
86
68
|
* ```sh
|
|
87
|
-
* $ pulumi import github:index/teamMembers:TeamMembers
|
|
88
|
-
* $ pulumi import github:index/teamMembers:TeamMembers some_team Administrators
|
|
69
|
+
* $ pulumi import github:index/teamMembers:TeamMembers example my-team
|
|
89
70
|
* ```
|
|
90
71
|
*/
|
|
91
72
|
class TeamMembers extends pulumi.CustomResource {
|
|
@@ -120,17 +101,16 @@ class TeamMembers extends pulumi.CustomResource {
|
|
|
120
101
|
const state = argsOrState;
|
|
121
102
|
resourceInputs["members"] = state?.members;
|
|
122
103
|
resourceInputs["teamId"] = state?.teamId;
|
|
104
|
+
resourceInputs["teamSlug"] = state?.teamSlug;
|
|
123
105
|
}
|
|
124
106
|
else {
|
|
125
107
|
const args = argsOrState;
|
|
126
108
|
if (args?.members === undefined && !opts.urn) {
|
|
127
109
|
throw new Error("Missing required property 'members'");
|
|
128
110
|
}
|
|
129
|
-
if (args?.teamId === undefined && !opts.urn) {
|
|
130
|
-
throw new Error("Missing required property 'teamId'");
|
|
131
|
-
}
|
|
132
111
|
resourceInputs["members"] = args?.members;
|
|
133
112
|
resourceInputs["teamId"] = args?.teamId;
|
|
113
|
+
resourceInputs["teamSlug"] = args?.teamSlug;
|
|
134
114
|
}
|
|
135
115
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
136
116
|
super(TeamMembers.__pulumiType, name, resourceInputs, opts);
|
package/teamMembers.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"teamMembers.js","sourceRoot":"","sources":["../teamMembers.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"teamMembers.js","sourceRoot":"","sources":["../teamMembers.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;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CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;SAC/C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;;AAtEL,kCAuEC"}
|
package/teamMembership.d.ts
CHANGED
|
@@ -2,10 +2,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
/**
|
|
3
3
|
* Provides a GitHub team membership resource.
|
|
4
4
|
*
|
|
5
|
-
* This resource allows you to add/remove users from teams in your organization. When applied,
|
|
6
|
-
* the user will be added to the team. If the user hasn't accepted their invitation to the
|
|
7
|
-
* organization, they won't be part of the team until they do. When
|
|
8
|
-
* destroyed, the user will be removed from the team.
|
|
5
|
+
* This resource allows you to add/remove users from teams in your organization. When applied, the user will be added to the team. If the user hasn't accepted their invitation to the organization, they won't be part of the team until they do. When destroyed, the user will be removed from the team.
|
|
9
6
|
*
|
|
10
7
|
* > **Note** This resource is not compatible with `github.TeamMembers`. Use either `github.TeamMembers` or `github.TeamMembership`.
|
|
11
8
|
*
|
|
@@ -60,8 +57,7 @@ export declare class TeamMembership extends pulumi.CustomResource {
|
|
|
60
57
|
static isInstance(obj: any): obj is TeamMembership;
|
|
61
58
|
readonly etag: pulumi.Output<string>;
|
|
62
59
|
/**
|
|
63
|
-
* The role of the user within the team.
|
|
64
|
-
* Must be one of `member` or `maintainer`. Defaults to `member`.
|
|
60
|
+
* The role of the user within the team. Must be one of `member` or `maintainer`. Defaults to `member`.
|
|
65
61
|
*/
|
|
66
62
|
readonly role: pulumi.Output<string | undefined>;
|
|
67
63
|
/**
|
|
@@ -87,8 +83,7 @@ export declare class TeamMembership extends pulumi.CustomResource {
|
|
|
87
83
|
export interface TeamMembershipState {
|
|
88
84
|
etag?: pulumi.Input<string | undefined>;
|
|
89
85
|
/**
|
|
90
|
-
* The role of the user within the team.
|
|
91
|
-
* Must be one of `member` or `maintainer`. Defaults to `member`.
|
|
86
|
+
* The role of the user within the team. Must be one of `member` or `maintainer`. Defaults to `member`.
|
|
92
87
|
*/
|
|
93
88
|
role?: pulumi.Input<string | undefined>;
|
|
94
89
|
/**
|
|
@@ -105,8 +100,7 @@ export interface TeamMembershipState {
|
|
|
105
100
|
*/
|
|
106
101
|
export interface TeamMembershipArgs {
|
|
107
102
|
/**
|
|
108
|
-
* The role of the user within the team.
|
|
109
|
-
* Must be one of `member` or `maintainer`. Defaults to `member`.
|
|
103
|
+
* The role of the user within the team. Must be one of `member` or `maintainer`. Defaults to `member`.
|
|
110
104
|
*/
|
|
111
105
|
role?: pulumi.Input<string | undefined>;
|
|
112
106
|
/**
|
package/teamMembership.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"teamMembership.d.ts","sourceRoot":"","sources":["../teamMembership.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC
|
|
1
|
+
{"version":3,"file":"teamMembership.d.ts","sourceRoot":"","sources":["../teamMembership.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,qBAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,mBAAmB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,cAAc;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31,7 @@ const utilities = __importStar(require("./utilities"));
|
|
|
31
31
|
/**
|
|
32
32
|
* Provides a GitHub team membership resource.
|
|
33
33
|
*
|
|
34
|
-
* This resource allows you to add/remove users from teams in your organization. When applied,
|
|
35
|
-
* the user will be added to the team. If the user hasn't accepted their invitation to the
|
|
36
|
-
* organization, they won't be part of the team until they do. When
|
|
37
|
-
* destroyed, the user will be removed from the team.
|
|
34
|
+
* This resource allows you to add/remove users from teams in your organization. When applied, the user will be added to the team. If the user hasn't accepted their invitation to the organization, they won't be part of the team until they do. When destroyed, the user will be removed from the team.
|
|
38
35
|
*
|
|
39
36
|
* > **Note** This resource is not compatible with `github.TeamMembers`. Use either `github.TeamMembers` or `github.TeamMembership`.
|
|
40
37
|
*
|
package/teamMembership.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"teamMembership.js","sourceRoot":"","sources":["../teamMembership.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"teamMembership.js","sourceRoot":"","sources":["../teamMembership.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA2B,EAAE,IAAmC;QACzH,OAAO,IAAI,cAAc,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACrE,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,4CAA4C,CAAC;IAEnF;;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,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,cAAc,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;;AA1EL,wCA2EC"}
|
package/teamRepository.d.ts
CHANGED
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
* > Note: github.TeamRepository cannot be used in conjunction with github.RepositoryCollaborators or
|
|
4
|
-
* they will fight over what your policy should be.
|
|
3
|
+
* > Note: github.TeamRepository cannot be used in conjunction with github.RepositoryCollaborators or they will fight over what your policy should be.
|
|
5
4
|
*
|
|
6
|
-
* This resource manages relationships between teams and repositories
|
|
7
|
-
* in your GitHub organization.
|
|
5
|
+
* This resource manages relationships between teams and repositories in your GitHub organization.
|
|
8
6
|
*
|
|
9
|
-
* Creating this resource grants a particular team permissions on a
|
|
10
|
-
* particular repository.
|
|
7
|
+
* Creating this resource grants a particular team permissions on a particular repository.
|
|
11
8
|
*
|
|
12
|
-
* The repository and the team must both belong to the same organization
|
|
13
|
-
* on GitHub. This resource does not actually *create* any repositories;
|
|
14
|
-
* to do that, see `github.Repository`.
|
|
9
|
+
* The repository and the team must both belong to the same organization on GitHub. This resource does not actually *create* any repositories.
|
|
15
10
|
*
|
|
16
11
|
* > **Note on Archived Repositories**: When a repository is archived, GitHub makes it read-only, preventing team permission modifications. If you attempt to destroy resources associated with archived repositories, the provider will gracefully handle the operation by logging an informational message and removing the resource from Terraform state without attempting to modify the archived repository.
|
|
17
12
|
*
|
|
18
|
-
* This resource is non-authoritative, for managing ALL collaborators of a repo, use github.RepositoryCollaborators
|
|
19
|
-
* instead.
|
|
13
|
+
* This resource is non-authoritative, for managing ALL collaborators of a repo, use github.RepositoryCollaborators instead.
|
|
20
14
|
*
|
|
21
15
|
* ## Example Usage
|
|
22
16
|
*
|
|
@@ -64,8 +58,7 @@ export declare class TeamRepository extends pulumi.CustomResource {
|
|
|
64
58
|
static isInstance(obj: any): obj is TeamRepository;
|
|
65
59
|
readonly etag: pulumi.Output<string>;
|
|
66
60
|
/**
|
|
67
|
-
* The permissions of team members regarding the repository.
|
|
68
|
-
* Must be one of `pull`, `triage`, `push`, `maintain`, `admin` or the name of an existing [custom repository role](https://docs.github.com/en/enterprise-cloud@latest/organizations/managing-peoples-access-to-your-organization-with-roles/managing-custom-repository-roles-for-an-organization) within the organisation. Defaults to `pull`.
|
|
61
|
+
* The permissions of team members regarding the repository. Must be one of `pull`, `triage`, `push`, `maintain`, `admin` or the name of an existing [custom repository role](https://docs.github.com/en/enterprise-cloud@latest/organizations/managing-peoples-access-to-your-organization-with-roles/managing-custom-repository-roles-for-an-organization) within the organisation. Defaults to `pull`.
|
|
69
62
|
*/
|
|
70
63
|
readonly permission: pulumi.Output<string | undefined>;
|
|
71
64
|
/**
|
|
@@ -91,8 +84,7 @@ export declare class TeamRepository extends pulumi.CustomResource {
|
|
|
91
84
|
export interface TeamRepositoryState {
|
|
92
85
|
etag?: pulumi.Input<string | undefined>;
|
|
93
86
|
/**
|
|
94
|
-
* The permissions of team members regarding the repository.
|
|
95
|
-
* Must be one of `pull`, `triage`, `push`, `maintain`, `admin` or the name of an existing [custom repository role](https://docs.github.com/en/enterprise-cloud@latest/organizations/managing-peoples-access-to-your-organization-with-roles/managing-custom-repository-roles-for-an-organization) within the organisation. Defaults to `pull`.
|
|
87
|
+
* The permissions of team members regarding the repository. Must be one of `pull`, `triage`, `push`, `maintain`, `admin` or the name of an existing [custom repository role](https://docs.github.com/en/enterprise-cloud@latest/organizations/managing-peoples-access-to-your-organization-with-roles/managing-custom-repository-roles-for-an-organization) within the organisation. Defaults to `pull`.
|
|
96
88
|
*/
|
|
97
89
|
permission?: pulumi.Input<string | undefined>;
|
|
98
90
|
/**
|
|
@@ -109,8 +101,7 @@ export interface TeamRepositoryState {
|
|
|
109
101
|
*/
|
|
110
102
|
export interface TeamRepositoryArgs {
|
|
111
103
|
/**
|
|
112
|
-
* The permissions of team members regarding the repository.
|
|
113
|
-
* Must be one of `pull`, `triage`, `push`, `maintain`, `admin` or the name of an existing [custom repository role](https://docs.github.com/en/enterprise-cloud@latest/organizations/managing-peoples-access-to-your-organization-with-roles/managing-custom-repository-roles-for-an-organization) within the organisation. Defaults to `pull`.
|
|
104
|
+
* The permissions of team members regarding the repository. Must be one of `pull`, `triage`, `push`, `maintain`, `admin` or the name of an existing [custom repository role](https://docs.github.com/en/enterprise-cloud@latest/organizations/managing-peoples-access-to-your-organization-with-roles/managing-custom-repository-roles-for-an-organization) within the organisation. Defaults to `pull`.
|
|
114
105
|
*/
|
|
115
106
|
permission?: pulumi.Input<string | undefined>;
|
|
116
107
|
/**
|
package/teamRepository.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"teamRepository.d.ts","sourceRoot":"","sources":["../teamRepository.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC
|
|
1
|
+
{"version":3,"file":"teamRepository.d.ts","sourceRoot":"","sources":["../teamRepository.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,qBAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,mBAAmB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,cAAc;IAO9I;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,cAAc;IAOzD,SAAgC,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC5D;;OAEG;IACH,SAAwB,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACtE;;OAEG;IACH,SAAwB,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC1D;;OAEG;IACH,SAAwB,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAEtD;;;;;;OAMG;gBACS,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB;CA0B1F;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACxC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC9C;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC9C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC7C;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC9C;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACjC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CAChC"}
|
package/teamRepository.js
CHANGED
|
@@ -29,23 +29,17 @@ exports.TeamRepository = void 0;
|
|
|
29
29
|
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
30
|
const utilities = __importStar(require("./utilities"));
|
|
31
31
|
/**
|
|
32
|
-
* > Note: github.TeamRepository cannot be used in conjunction with github.RepositoryCollaborators or
|
|
33
|
-
* they will fight over what your policy should be.
|
|
32
|
+
* > Note: github.TeamRepository cannot be used in conjunction with github.RepositoryCollaborators or they will fight over what your policy should be.
|
|
34
33
|
*
|
|
35
|
-
* This resource manages relationships between teams and repositories
|
|
36
|
-
* in your GitHub organization.
|
|
34
|
+
* This resource manages relationships between teams and repositories in your GitHub organization.
|
|
37
35
|
*
|
|
38
|
-
* Creating this resource grants a particular team permissions on a
|
|
39
|
-
* particular repository.
|
|
36
|
+
* Creating this resource grants a particular team permissions on a particular repository.
|
|
40
37
|
*
|
|
41
|
-
* The repository and the team must both belong to the same organization
|
|
42
|
-
* on GitHub. This resource does not actually *create* any repositories;
|
|
43
|
-
* to do that, see `github.Repository`.
|
|
38
|
+
* The repository and the team must both belong to the same organization on GitHub. This resource does not actually *create* any repositories.
|
|
44
39
|
*
|
|
45
40
|
* > **Note on Archived Repositories**: When a repository is archived, GitHub makes it read-only, preventing team permission modifications. If you attempt to destroy resources associated with archived repositories, the provider will gracefully handle the operation by logging an informational message and removing the resource from Terraform state without attempting to modify the archived repository.
|
|
46
41
|
*
|
|
47
|
-
* This resource is non-authoritative, for managing ALL collaborators of a repo, use github.RepositoryCollaborators
|
|
48
|
-
* instead.
|
|
42
|
+
* This resource is non-authoritative, for managing ALL collaborators of a repo, use github.RepositoryCollaborators instead.
|
|
49
43
|
*
|
|
50
44
|
* ## Example Usage
|
|
51
45
|
*
|
package/teamRepository.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"teamRepository.js","sourceRoot":"","sources":["../teamRepository.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"teamRepository.js","sourceRoot":"","sources":["../teamRepository.ts"],"names":[],"mappings":";AAA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,IAAI,CAAC,GAAG,EAAE;gBAC7C,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;aAC7D;YACD,IAAI,IAAI,EAAE,MAAM,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACzC,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;aACzD;YACD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,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,cAAc,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;;AA1EL,wCA2EC"}
|
package/teamSettings.d.ts
CHANGED
|
@@ -18,13 +18,18 @@ import * as outputs from "./types/output";
|
|
|
18
18
|
* import * as pulumi from "@pulumi/pulumi";
|
|
19
19
|
* import * as github from "@pulumi/github";
|
|
20
20
|
*
|
|
21
|
+
* // Add a repository to the team
|
|
21
22
|
* const someTeam = new github.Team("some_team", {
|
|
22
23
|
* name: "SomeTeam",
|
|
23
24
|
* description: "Some cool team",
|
|
24
25
|
* });
|
|
25
26
|
* const codeReviewSettings = new github.TeamSettings("code_review_settings", {
|
|
26
27
|
* teamId: someTeam.id,
|
|
27
|
-
*
|
|
28
|
+
* reviewRequestDelegation: {
|
|
29
|
+
* algorithm: "ROUND_ROBIN",
|
|
30
|
+
* memberCount: 1,
|
|
31
|
+
* notify: true,
|
|
32
|
+
* },
|
|
28
33
|
* });
|
|
29
34
|
* ```
|
|
30
35
|
*
|
|
@@ -47,12 +52,6 @@ import * as outputs from "./types/output";
|
|
|
47
52
|
* },
|
|
48
53
|
* });
|
|
49
54
|
* ```
|
|
50
|
-
*
|
|
51
|
-
* ## Import
|
|
52
|
-
*
|
|
53
|
-
* GitHub Teams can be imported using the GitHub team ID, or the team slug e.g.
|
|
54
|
-
*
|
|
55
|
-
* or,
|
|
56
55
|
*/
|
|
57
56
|
export declare class TeamSettings extends pulumi.CustomResource {
|
|
58
57
|
/**
|
package/teamSettings.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"teamSettings.d.ts","sourceRoot":"","sources":["../teamSettings.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C
|
|
1
|
+
{"version":3,"file":"teamSettings.d.ts","sourceRoot":"","sources":["../teamSettings.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AACH,qBAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IACnD;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,iBAAiB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,YAAY;IAO1I;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,YAAY;IAOvD;;OAEG;IACH,SAAwB,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,GAAG,SAA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