@pulumi/github 5.1.0 → 5.2.0-alpha.1673638210
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 +99 -0
- package/actionsEnvironmentSecret.js +64 -22
- package/actionsEnvironmentSecret.js.map +1 -1
- package/actionsOrganizationPermissions.d.ts +72 -0
- package/actionsOrganizationPermissions.js +58 -22
- package/actionsOrganizationPermissions.js.map +1 -1
- package/actionsOrganizationSecret.d.ts +110 -0
- package/actionsOrganizationSecret.js +72 -22
- package/actionsOrganizationSecret.js.map +1 -1
- package/actionsOrganizationSecretRepositories.d.ts +47 -0
- package/actionsOrganizationSecretRepositories.js +51 -22
- package/actionsOrganizationSecretRepositories.js.map +1 -1
- package/actionsRepositoryPermissions.d.ts +119 -0
- package/actionsRepositoryPermissions.js +91 -0
- package/actionsRepositoryPermissions.js.map +1 -0
- package/actionsRunnerGroup.d.ts +88 -0
- package/actionsRunnerGroup.js +47 -22
- package/actionsRunnerGroup.js.map +1 -1
- package/actionsSecret.d.ts +70 -0
- package/actionsSecret.js +44 -22
- package/actionsSecret.js.map +1 -1
- package/appInstallationRepositories.d.ts +81 -0
- package/appInstallationRepositories.js +78 -0
- package/appInstallationRepositories.js.map +1 -0
- package/appInstallationRepository.d.ts +53 -0
- package/appInstallationRepository.js +57 -22
- package/appInstallationRepository.js.map +1 -1
- package/branch.d.ts +92 -0
- package/branch.js +60 -22
- package/branch.js.map +1 -1
- package/branchDefault.d.ts +53 -0
- package/branchDefault.js +57 -22
- package/branchDefault.js.map +1 -1
- package/branchProtection.d.ts +173 -3
- package/branchProtection.js +83 -22
- package/branchProtection.js.map +1 -1
- package/branchProtectionV3.d.ts +138 -0
- package/branchProtectionV3.js +88 -22
- package/branchProtectionV3.js.map +1 -1
- package/dependabotOrganizationSecret.js +22 -22
- package/dependabotOrganizationSecret.js.map +1 -1
- package/dependabotOrganizationSecretRepositories.js +22 -22
- package/dependabotOrganizationSecretRepositories.js.map +1 -1
- package/dependabotSecret.js +22 -22
- package/dependabotSecret.js.map +1 -1
- package/emuGroupMapping.d.ts +42 -0
- package/emuGroupMapping.js +46 -22
- package/emuGroupMapping.js.map +1 -1
- package/getActionsOrganizationRegistrationToken.d.ts +31 -0
- package/getActionsOrganizationRegistrationToken.js +25 -0
- package/getActionsOrganizationRegistrationToken.js.map +1 -0
- package/getActionsOrganizationSecrets.d.ts +15 -0
- package/getActionsOrganizationSecrets.js +13 -4
- package/getActionsOrganizationSecrets.js.map +1 -1
- package/getActionsPublicKey.d.ts +42 -0
- package/getActionsPublicKey.js +32 -5
- package/getActionsPublicKey.js.map +1 -1
- package/getActionsRegistrationToken.d.ts +67 -0
- package/getActionsRegistrationToken.js +47 -0
- package/getActionsRegistrationToken.js.map +1 -0
- package/getActionsSecrets.d.ts +46 -0
- package/getActionsSecrets.js +30 -5
- package/getActionsSecrets.js.map +1 -1
- package/getBranch.d.ts +51 -0
- package/getBranch.js +32 -5
- package/getBranch.js.map +1 -1
- package/getCollaborators.d.ts +51 -0
- package/getCollaborators.js +32 -5
- package/getCollaborators.js.map +1 -1
- package/getDependabotOrganizationSecrets.d.ts +15 -0
- package/getDependabotOrganizationSecrets.js +13 -4
- package/getDependabotOrganizationSecrets.js.map +1 -1
- package/getDependabotPublicKey.js +2 -5
- package/getDependabotPublicKey.js.map +1 -1
- package/getDependabotSecrets.d.ts +46 -0
- package/getDependabotSecrets.js +30 -5
- package/getDependabotSecrets.js.map +1 -1
- package/getExternalGroups.d.ts +17 -0
- package/getExternalGroups.js +15 -4
- package/getExternalGroups.js.map +1 -1
- package/getGithubApp.d.ts +43 -0
- package/getGithubApp.js +30 -5
- package/getGithubApp.js.map +1 -1
- package/getIpRanges.d.ts +84 -0
- package/getIpRanges.js +13 -4
- package/getIpRanges.js.map +1 -1
- package/getMembership.d.ts +58 -0
- package/getMembership.js +36 -5
- package/getMembership.js.map +1 -1
- package/getOrganization.d.ts +58 -0
- package/getOrganization.js +30 -5
- package/getOrganization.js.map +1 -1
- package/getOrganizationIpAllowList.d.ts +18 -0
- package/getOrganizationIpAllowList.js +15 -4
- package/getOrganizationIpAllowList.js.map +1 -1
- package/getOrganizationTeamSyncGroups.d.ts +15 -0
- package/getOrganizationTeamSyncGroups.js +13 -4
- package/getOrganizationTeamSyncGroups.js.map +1 -1
- package/getOrganizationTeams.d.ts +80 -0
- package/getOrganizationTeams.js +52 -5
- package/getOrganizationTeams.js.map +1 -1
- package/getOrganizationWebhooks.d.ts +18 -0
- package/getOrganizationWebhooks.js +15 -4
- package/getOrganizationWebhooks.js.map +1 -1
- package/getRef.d.ts +48 -0
- package/getRef.js +32 -5
- package/getRef.js.map +1 -1
- package/getRelease.d.ts +90 -0
- package/getRelease.js +8 -5
- package/getRelease.js.map +1 -1
- package/getRepositories.d.ts +70 -0
- package/getRepositories.js +40 -5
- package/getRepositories.js.map +1 -1
- package/getRepository.d.ts +141 -0
- package/getRepository.js +30 -5
- package/getRepository.js.map +1 -1
- package/getRepositoryBranches.d.ts +49 -0
- package/getRepositoryBranches.js +30 -5
- package/getRepositoryBranches.js.map +1 -1
- package/getRepositoryDeployKeys.d.ts +37 -0
- package/getRepositoryDeployKeys.js +30 -5
- package/getRepositoryDeployKeys.js.map +1 -1
- package/getRepositoryFile.d.ts +72 -0
- package/getRepositoryFile.js +36 -5
- package/getRepositoryFile.js.map +1 -1
- package/getRepositoryMilestone.d.ts +62 -0
- package/getRepositoryMilestone.js +34 -5
- package/getRepositoryMilestone.js.map +1 -1
- package/getRepositoryPullRequest.d.ts +90 -0
- package/getRepositoryPullRequest.js +32 -5
- package/getRepositoryPullRequest.js.map +1 -1
- package/getRepositoryPullRequests.d.ts +90 -0
- package/getRepositoryPullRequests.js +38 -5
- package/getRepositoryPullRequests.js.map +1 -1
- package/getRepositoryTeams.d.ts +46 -0
- package/getRepositoryTeams.js +30 -5
- package/getRepositoryTeams.js.map +1 -1
- package/getRepositoryWebhooks.d.ts +36 -0
- package/getRepositoryWebhooks.js +34 -5
- package/getRepositoryWebhooks.js.map +1 -1
- package/getTeam.d.ts +79 -0
- package/getTeam.js +32 -5
- package/getTeam.js.map +1 -1
- package/getTree.d.ts +69 -0
- package/getTree.js +50 -5
- package/getTree.js.map +1 -1
- package/getUser.d.ts +102 -0
- package/getUser.js +38 -5
- package/getUser.js.map +1 -1
- package/getUsers.d.ts +55 -0
- package/getUsers.js +42 -5
- package/getUsers.js.map +1 -1
- package/index.d.ts +64 -44
- package/index.js +33 -3
- package/index.js.map +1 -1
- package/issue.d.ts +117 -6
- package/issue.js +85 -22
- package/issue.js.map +1 -1
- package/issueLabel.d.ts +64 -0
- package/issueLabel.js +44 -22
- package/issueLabel.js.map +1 -1
- package/membership.d.ts +49 -0
- package/membership.js +49 -21
- package/membership.js.map +1 -1
- package/organizationBlock.d.ts +21 -0
- package/organizationBlock.js +31 -19
- package/organizationBlock.js.map +1 -1
- package/organizationProject.d.ts +36 -0
- package/organizationProject.js +32 -20
- package/organizationProject.js.map +1 -1
- package/organizationSecurityManager.d.ts +67 -0
- package/organizationSecurityManager.js +71 -0
- package/organizationSecurityManager.js.map +1 -0
- package/organizationSettings.d.ts +274 -3
- package/organizationSettings.js +68 -22
- package/organizationSettings.js.map +1 -1
- package/organizationWebhook.d.ts +63 -0
- package/organizationWebhook.js +52 -22
- package/organizationWebhook.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/projectCard.d.ts +87 -0
- package/projectCard.js +73 -22
- package/projectCard.js.map +1 -1
- package/projectColumn.d.ts +31 -0
- package/projectColumn.js +35 -22
- package/projectColumn.js.map +1 -1
- package/provider.js +10 -10
- package/provider.js.map +1 -1
- package/release.d.ts +194 -0
- package/release.js +121 -0
- package/release.js.map +1 -0
- package/repository.d.ts +391 -3
- package/repository.js +70 -22
- package/repository.js.map +1 -1
- package/repositoryAutolinkReference.d.ts +45 -12
- package/repositoryAutolinkReference.js +52 -22
- package/repositoryAutolinkReference.js.map +1 -1
- package/repositoryCollaborator.d.ts +90 -0
- package/repositoryCollaborator.js +64 -22
- package/repositoryCollaborator.js.map +1 -1
- package/repositoryDeployKey.d.ts +71 -0
- package/repositoryDeployKey.js +57 -22
- package/repositoryDeployKey.js.map +1 -1
- package/repositoryEnvironment.d.ts +61 -0
- package/repositoryEnvironment.js +56 -22
- package/repositoryEnvironment.js.map +1 -1
- package/repositoryFile.d.ts +68 -34
- package/repositoryFile.js +59 -22
- package/repositoryFile.js.map +1 -1
- package/repositoryMilestone.d.ts +81 -3
- package/repositoryMilestone.js +49 -22
- package/repositoryMilestone.js.map +1 -1
- package/repositoryProject.d.ts +52 -0
- package/repositoryProject.js +41 -22
- package/repositoryProject.js.map +1 -1
- package/repositoryPullRequest.d.ts +127 -4
- package/repositoryPullRequest.js +40 -22
- package/repositoryPullRequest.js.map +1 -1
- package/repositoryTagProtection.d.ts +41 -0
- package/repositoryTagProtection.js +45 -22
- package/repositoryTagProtection.js.map +1 -1
- package/repositoryWebhook.d.ts +79 -0
- package/repositoryWebhook.js +59 -22
- package/repositoryWebhook.js.map +1 -1
- package/team.d.ts +100 -0
- package/team.js +49 -22
- package/team.js.map +1 -1
- package/teamMembers.d.ts +58 -0
- package/teamMembers.js +62 -22
- package/teamMembers.js.map +1 -1
- package/teamMembership.d.ts +67 -0
- package/teamMembership.js +59 -22
- package/teamMembership.js.map +1 -1
- package/teamRepository.d.ts +59 -3
- package/teamRepository.js +57 -22
- package/teamRepository.js.map +1 -1
- package/teamSettings.d.ts +119 -0
- package/teamSettings.js +99 -0
- package/teamSettings.js.map +1 -0
- package/teamSyncGroupMapping.d.ts +36 -0
- package/teamSyncGroupMapping.js +36 -21
- package/teamSyncGroupMapping.js.map +1 -1
- package/types/input.d.ts +206 -0
- package/types/output.d.ts +498 -0
- package/userGpgKey.d.ts +39 -0
- package/userGpgKey.js +42 -21
- package/userGpgKey.js.map +1 -1
- package/userInvitationAccepter.d.ts +30 -0
- package/userInvitationAccepter.js +38 -17
- package/userInvitationAccepter.js.map +1 -1
- package/userSshKey.d.ts +50 -0
- package/userSshKey.js +48 -22
- package/userSshKey.js.map +1 -1
package/repositoryMilestone.d.ts
CHANGED
|
@@ -1,4 +1,31 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Provides a GitHub repository milestone resource.
|
|
4
|
+
*
|
|
5
|
+
* This resource allows you to create and manage milestones for a GitHub Repository within an organization or user account.
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as github from "@pulumi/github";
|
|
12
|
+
*
|
|
13
|
+
* // Create a milestone for a repository
|
|
14
|
+
* const example = new github.RepositoryMilestone("example", {
|
|
15
|
+
* owner: "example-owner",
|
|
16
|
+
* repository: "example-repository",
|
|
17
|
+
* title: "v1.1.0",
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* ## Import
|
|
22
|
+
*
|
|
23
|
+
* A GitHub Repository Milestone can be imported using an ID made up of `owner/repository/number`, e.g.
|
|
24
|
+
*
|
|
25
|
+
* ```sh
|
|
26
|
+
* $ pulumi import github:index/repositoryMilestone:RepositoryMilestone example example-owner/example-repository/1
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
2
29
|
export declare class RepositoryMilestone extends pulumi.CustomResource {
|
|
3
30
|
/**
|
|
4
31
|
* Get an existing RepositoryMilestone resource's state with the given name, ID, and optional extra
|
|
@@ -15,15 +42,33 @@ export declare class RepositoryMilestone extends pulumi.CustomResource {
|
|
|
15
42
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
16
43
|
*/
|
|
17
44
|
static isInstance(obj: any): obj is RepositoryMilestone;
|
|
45
|
+
/**
|
|
46
|
+
* A description of the milestone.
|
|
47
|
+
*/
|
|
18
48
|
readonly description: pulumi.Output<string | undefined>;
|
|
19
49
|
/**
|
|
20
|
-
*
|
|
50
|
+
* The milestone due date. In `yyyy-mm-dd` format.
|
|
21
51
|
*/
|
|
22
52
|
readonly dueDate: pulumi.Output<string | undefined>;
|
|
53
|
+
/**
|
|
54
|
+
* The number of the milestone.
|
|
55
|
+
*/
|
|
23
56
|
readonly number: pulumi.Output<number>;
|
|
57
|
+
/**
|
|
58
|
+
* The owner of the GitHub Repository.
|
|
59
|
+
*/
|
|
24
60
|
readonly owner: pulumi.Output<string>;
|
|
61
|
+
/**
|
|
62
|
+
* The name of the GitHub Repository.
|
|
63
|
+
*/
|
|
25
64
|
readonly repository: pulumi.Output<string>;
|
|
65
|
+
/**
|
|
66
|
+
* The state of the milestone. Either `open` or `closed`. Default: `open`
|
|
67
|
+
*/
|
|
26
68
|
readonly state: pulumi.Output<string | undefined>;
|
|
69
|
+
/**
|
|
70
|
+
* The title of the milestone.
|
|
71
|
+
*/
|
|
27
72
|
readonly title: pulumi.Output<string>;
|
|
28
73
|
/**
|
|
29
74
|
* Create a RepositoryMilestone resource with the given unique name, arguments, and options.
|
|
@@ -38,28 +83,61 @@ export declare class RepositoryMilestone extends pulumi.CustomResource {
|
|
|
38
83
|
* Input properties used for looking up and filtering RepositoryMilestone resources.
|
|
39
84
|
*/
|
|
40
85
|
export interface RepositoryMilestoneState {
|
|
86
|
+
/**
|
|
87
|
+
* A description of the milestone.
|
|
88
|
+
*/
|
|
41
89
|
description?: pulumi.Input<string>;
|
|
42
90
|
/**
|
|
43
|
-
*
|
|
91
|
+
* The milestone due date. In `yyyy-mm-dd` format.
|
|
44
92
|
*/
|
|
45
93
|
dueDate?: pulumi.Input<string>;
|
|
94
|
+
/**
|
|
95
|
+
* The number of the milestone.
|
|
96
|
+
*/
|
|
46
97
|
number?: pulumi.Input<number>;
|
|
98
|
+
/**
|
|
99
|
+
* The owner of the GitHub Repository.
|
|
100
|
+
*/
|
|
47
101
|
owner?: pulumi.Input<string>;
|
|
102
|
+
/**
|
|
103
|
+
* The name of the GitHub Repository.
|
|
104
|
+
*/
|
|
48
105
|
repository?: pulumi.Input<string>;
|
|
106
|
+
/**
|
|
107
|
+
* The state of the milestone. Either `open` or `closed`. Default: `open`
|
|
108
|
+
*/
|
|
49
109
|
state?: pulumi.Input<string>;
|
|
110
|
+
/**
|
|
111
|
+
* The title of the milestone.
|
|
112
|
+
*/
|
|
50
113
|
title?: pulumi.Input<string>;
|
|
51
114
|
}
|
|
52
115
|
/**
|
|
53
116
|
* The set of arguments for constructing a RepositoryMilestone resource.
|
|
54
117
|
*/
|
|
55
118
|
export interface RepositoryMilestoneArgs {
|
|
119
|
+
/**
|
|
120
|
+
* A description of the milestone.
|
|
121
|
+
*/
|
|
56
122
|
description?: pulumi.Input<string>;
|
|
57
123
|
/**
|
|
58
|
-
*
|
|
124
|
+
* The milestone due date. In `yyyy-mm-dd` format.
|
|
59
125
|
*/
|
|
60
126
|
dueDate?: pulumi.Input<string>;
|
|
127
|
+
/**
|
|
128
|
+
* The owner of the GitHub Repository.
|
|
129
|
+
*/
|
|
61
130
|
owner: pulumi.Input<string>;
|
|
131
|
+
/**
|
|
132
|
+
* The name of the GitHub Repository.
|
|
133
|
+
*/
|
|
62
134
|
repository: pulumi.Input<string>;
|
|
135
|
+
/**
|
|
136
|
+
* The state of the milestone. Either `open` or `closed`. Default: `open`
|
|
137
|
+
*/
|
|
63
138
|
state?: pulumi.Input<string>;
|
|
139
|
+
/**
|
|
140
|
+
* The title of the milestone.
|
|
141
|
+
*/
|
|
64
142
|
title: pulumi.Input<string>;
|
|
65
143
|
}
|
package/repositoryMilestone.js
CHANGED
|
@@ -5,7 +5,56 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.RepositoryMilestone = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides a GitHub repository milestone resource.
|
|
10
|
+
*
|
|
11
|
+
* This resource allows you to create and manage milestones for a GitHub Repository within an organization or user account.
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as github from "@pulumi/github";
|
|
18
|
+
*
|
|
19
|
+
* // Create a milestone for a repository
|
|
20
|
+
* const example = new github.RepositoryMilestone("example", {
|
|
21
|
+
* owner: "example-owner",
|
|
22
|
+
* repository: "example-repository",
|
|
23
|
+
* title: "v1.1.0",
|
|
24
|
+
* });
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* ## Import
|
|
28
|
+
*
|
|
29
|
+
* A GitHub Repository Milestone can be imported using an ID made up of `owner/repository/number`, e.g.
|
|
30
|
+
*
|
|
31
|
+
* ```sh
|
|
32
|
+
* $ pulumi import github:index/repositoryMilestone:RepositoryMilestone example example-owner/example-repository/1
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
8
35
|
class RepositoryMilestone extends pulumi.CustomResource {
|
|
36
|
+
/**
|
|
37
|
+
* Get an existing RepositoryMilestone resource's state with the given name, ID, and optional extra
|
|
38
|
+
* properties used to qualify the lookup.
|
|
39
|
+
*
|
|
40
|
+
* @param name The _unique_ name of the resulting resource.
|
|
41
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
42
|
+
* @param state Any extra arguments used during the lookup.
|
|
43
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
44
|
+
*/
|
|
45
|
+
static get(name, id, state, opts) {
|
|
46
|
+
return new RepositoryMilestone(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Returns true if the given object is an instance of RepositoryMilestone. This is designed to work even
|
|
50
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
51
|
+
*/
|
|
52
|
+
static isInstance(obj) {
|
|
53
|
+
if (obj === undefined || obj === null) {
|
|
54
|
+
return false;
|
|
55
|
+
}
|
|
56
|
+
return obj['__pulumiType'] === RepositoryMilestone.__pulumiType;
|
|
57
|
+
}
|
|
9
58
|
constructor(name, argsOrState, opts) {
|
|
10
59
|
let resourceInputs = {};
|
|
11
60
|
opts = opts || {};
|
|
@@ -41,28 +90,6 @@ class RepositoryMilestone extends pulumi.CustomResource {
|
|
|
41
90
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
42
91
|
super(RepositoryMilestone.__pulumiType, name, resourceInputs, opts);
|
|
43
92
|
}
|
|
44
|
-
/**
|
|
45
|
-
* Get an existing RepositoryMilestone resource's state with the given name, ID, and optional extra
|
|
46
|
-
* properties used to qualify the lookup.
|
|
47
|
-
*
|
|
48
|
-
* @param name The _unique_ name of the resulting resource.
|
|
49
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
50
|
-
* @param state Any extra arguments used during the lookup.
|
|
51
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
52
|
-
*/
|
|
53
|
-
static get(name, id, state, opts) {
|
|
54
|
-
return new RepositoryMilestone(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Returns true if the given object is an instance of RepositoryMilestone. This is designed to work even
|
|
58
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
59
|
-
*/
|
|
60
|
-
static isInstance(obj) {
|
|
61
|
-
if (obj === undefined || obj === null) {
|
|
62
|
-
return false;
|
|
63
|
-
}
|
|
64
|
-
return obj['__pulumiType'] === RepositoryMilestone.__pulumiType;
|
|
65
|
-
}
|
|
66
93
|
}
|
|
67
94
|
exports.RepositoryMilestone = RepositoryMilestone;
|
|
68
95
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repositoryMilestone.js","sourceRoot":"","sources":["../repositoryMilestone.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,mBAAoB,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,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAChD;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;;AAlGL,kDAmGC;AArFG,gBAAgB;AACO,gCAAY,GAAG,sDAAsD,CAAC"}
|
package/repositoryProject.d.ts
CHANGED
|
@@ -1,4 +1,23 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* This resource allows you to create and manage projects for GitHub repository.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as github from "@pulumi/github";
|
|
10
|
+
*
|
|
11
|
+
* const example = new github.Repository("example", {
|
|
12
|
+
* description: "My awesome codebase",
|
|
13
|
+
* hasProjects: true,
|
|
14
|
+
* });
|
|
15
|
+
* const project = new github.RepositoryProject("project", {
|
|
16
|
+
* body: "This is a repository project.",
|
|
17
|
+
* repository: example.name,
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
2
21
|
export declare class RepositoryProject extends pulumi.CustomResource {
|
|
3
22
|
/**
|
|
4
23
|
* Get an existing RepositoryProject resource's state with the given name, ID, and optional extra
|
|
@@ -15,10 +34,22 @@ export declare class RepositoryProject extends pulumi.CustomResource {
|
|
|
15
34
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
16
35
|
*/
|
|
17
36
|
static isInstance(obj: any): obj is RepositoryProject;
|
|
37
|
+
/**
|
|
38
|
+
* The body of the project.
|
|
39
|
+
*/
|
|
18
40
|
readonly body: pulumi.Output<string | undefined>;
|
|
19
41
|
readonly etag: pulumi.Output<string>;
|
|
42
|
+
/**
|
|
43
|
+
* The name of the project.
|
|
44
|
+
*/
|
|
20
45
|
readonly name: pulumi.Output<string>;
|
|
46
|
+
/**
|
|
47
|
+
* The repository of the project.
|
|
48
|
+
*/
|
|
21
49
|
readonly repository: pulumi.Output<string>;
|
|
50
|
+
/**
|
|
51
|
+
* URL of the project
|
|
52
|
+
*/
|
|
22
53
|
readonly url: pulumi.Output<string>;
|
|
23
54
|
/**
|
|
24
55
|
* Create a RepositoryProject resource with the given unique name, arguments, and options.
|
|
@@ -33,17 +64,38 @@ export declare class RepositoryProject extends pulumi.CustomResource {
|
|
|
33
64
|
* Input properties used for looking up and filtering RepositoryProject resources.
|
|
34
65
|
*/
|
|
35
66
|
export interface RepositoryProjectState {
|
|
67
|
+
/**
|
|
68
|
+
* The body of the project.
|
|
69
|
+
*/
|
|
36
70
|
body?: pulumi.Input<string>;
|
|
37
71
|
etag?: pulumi.Input<string>;
|
|
72
|
+
/**
|
|
73
|
+
* The name of the project.
|
|
74
|
+
*/
|
|
38
75
|
name?: pulumi.Input<string>;
|
|
76
|
+
/**
|
|
77
|
+
* The repository of the project.
|
|
78
|
+
*/
|
|
39
79
|
repository?: pulumi.Input<string>;
|
|
80
|
+
/**
|
|
81
|
+
* URL of the project
|
|
82
|
+
*/
|
|
40
83
|
url?: pulumi.Input<string>;
|
|
41
84
|
}
|
|
42
85
|
/**
|
|
43
86
|
* The set of arguments for constructing a RepositoryProject resource.
|
|
44
87
|
*/
|
|
45
88
|
export interface RepositoryProjectArgs {
|
|
89
|
+
/**
|
|
90
|
+
* The body of the project.
|
|
91
|
+
*/
|
|
46
92
|
body?: pulumi.Input<string>;
|
|
93
|
+
/**
|
|
94
|
+
* The name of the project.
|
|
95
|
+
*/
|
|
47
96
|
name?: pulumi.Input<string>;
|
|
97
|
+
/**
|
|
98
|
+
* The repository of the project.
|
|
99
|
+
*/
|
|
48
100
|
repository: pulumi.Input<string>;
|
|
49
101
|
}
|
package/repositoryProject.js
CHANGED
|
@@ -5,7 +5,48 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.RepositoryProject = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* This resource allows you to create and manage projects for GitHub repository.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as github from "@pulumi/github";
|
|
16
|
+
*
|
|
17
|
+
* const example = new github.Repository("example", {
|
|
18
|
+
* description: "My awesome codebase",
|
|
19
|
+
* hasProjects: true,
|
|
20
|
+
* });
|
|
21
|
+
* const project = new github.RepositoryProject("project", {
|
|
22
|
+
* body: "This is a repository project.",
|
|
23
|
+
* repository: example.name,
|
|
24
|
+
* });
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
8
27
|
class RepositoryProject extends pulumi.CustomResource {
|
|
28
|
+
/**
|
|
29
|
+
* Get an existing RepositoryProject resource's state with the given name, ID, and optional extra
|
|
30
|
+
* properties used to qualify the lookup.
|
|
31
|
+
*
|
|
32
|
+
* @param name The _unique_ name of the resulting resource.
|
|
33
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
34
|
+
* @param state Any extra arguments used during the lookup.
|
|
35
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
36
|
+
*/
|
|
37
|
+
static get(name, id, state, opts) {
|
|
38
|
+
return new RepositoryProject(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Returns true if the given object is an instance of RepositoryProject. This is designed to work even
|
|
42
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
43
|
+
*/
|
|
44
|
+
static isInstance(obj) {
|
|
45
|
+
if (obj === undefined || obj === null) {
|
|
46
|
+
return false;
|
|
47
|
+
}
|
|
48
|
+
return obj['__pulumiType'] === RepositoryProject.__pulumiType;
|
|
49
|
+
}
|
|
9
50
|
constructor(name, argsOrState, opts) {
|
|
10
51
|
let resourceInputs = {};
|
|
11
52
|
opts = opts || {};
|
|
@@ -31,28 +72,6 @@ class RepositoryProject extends pulumi.CustomResource {
|
|
|
31
72
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
32
73
|
super(RepositoryProject.__pulumiType, name, resourceInputs, opts);
|
|
33
74
|
}
|
|
34
|
-
/**
|
|
35
|
-
* Get an existing RepositoryProject resource's state with the given name, ID, and optional extra
|
|
36
|
-
* properties used to qualify the lookup.
|
|
37
|
-
*
|
|
38
|
-
* @param name The _unique_ name of the resulting resource.
|
|
39
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
40
|
-
* @param state Any extra arguments used during the lookup.
|
|
41
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
42
|
-
*/
|
|
43
|
-
static get(name, id, state, opts) {
|
|
44
|
-
return new RepositoryProject(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Returns true if the given object is an instance of RepositoryProject. This is designed to work even
|
|
48
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
49
|
-
*/
|
|
50
|
-
static isInstance(obj) {
|
|
51
|
-
if (obj === undefined || obj === null) {
|
|
52
|
-
return false;
|
|
53
|
-
}
|
|
54
|
-
return obj['__pulumiType'] === RepositoryProject.__pulumiType;
|
|
55
|
-
}
|
|
56
75
|
}
|
|
57
76
|
exports.RepositoryProject = RepositoryProject;
|
|
58
77
|
/** @internal */
|
package/repositoryProject.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repositoryProject.js","sourceRoot":"","sources":["../repositoryProject.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,iBAAkB,SAAQ,MAAM,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"repositoryProject.js","sourceRoot":"","sources":["../repositoryProject.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAa,iBAAkB,SAAQ,MAAM,CAAC,cAAc;IACxD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA8B,EAAE,IAAmC;QAC5H,OAAO,IAAI,iBAAiB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACxE,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,iBAAiB,CAAC,YAAY,CAAC;IAClE,CAAC;IA4BD,YAAY,IAAY,EAAE,WAA4D,EAAE,IAAmC;QACvH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;Y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CAAC;SAC7C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,iBAAiB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACtE,CAAC;;AA7EL,8CA8EC;AAhEG,gBAAgB;AACO,8BAAY,GAAG,kDAAkD,CAAC"}
|
|
@@ -1,4 +1,22 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* This resource allows you to create and manage PullRequests for repositories within your GitHub organization or personal account.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as github from "@pulumi/github";
|
|
10
|
+
*
|
|
11
|
+
* const example = new github.RepositoryPullRequest("example", {
|
|
12
|
+
* baseRef: "main",
|
|
13
|
+
* baseRepository: "example-repository",
|
|
14
|
+
* body: "This will change everything",
|
|
15
|
+
* headRef: "feature-branch",
|
|
16
|
+
* title: "My newest feature",
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
2
20
|
export declare class RepositoryPullRequest extends pulumi.CustomResource {
|
|
3
21
|
/**
|
|
4
22
|
* Get an existing RepositoryPullRequest resource's state with the given name, ID, and optional extra
|
|
@@ -15,27 +33,69 @@ export declare class RepositoryPullRequest extends pulumi.CustomResource {
|
|
|
15
33
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
16
34
|
*/
|
|
17
35
|
static isInstance(obj: any): obj is RepositoryPullRequest;
|
|
36
|
+
/**
|
|
37
|
+
* Name of the branch serving as the base of the Pull Request.
|
|
38
|
+
*/
|
|
18
39
|
readonly baseRef: pulumi.Output<string>;
|
|
40
|
+
/**
|
|
41
|
+
* Name of the base repository to retrieve the Pull Requests from.
|
|
42
|
+
*/
|
|
19
43
|
readonly baseRepository: pulumi.Output<string>;
|
|
44
|
+
/**
|
|
45
|
+
* Head commit SHA of the Pull Request base.
|
|
46
|
+
*/
|
|
20
47
|
readonly baseSha: pulumi.Output<string>;
|
|
48
|
+
/**
|
|
49
|
+
* Body of the Pull Request.
|
|
50
|
+
*/
|
|
21
51
|
readonly body: pulumi.Output<string | undefined>;
|
|
52
|
+
/**
|
|
53
|
+
* Indicates Whether this Pull Request is a draft.
|
|
54
|
+
*/
|
|
22
55
|
readonly draft: pulumi.Output<boolean>;
|
|
56
|
+
/**
|
|
57
|
+
* Name of the branch serving as the head of the Pull Request.
|
|
58
|
+
*/
|
|
23
59
|
readonly headRef: pulumi.Output<string>;
|
|
60
|
+
/**
|
|
61
|
+
* Head commit SHA of the Pull Request head.
|
|
62
|
+
*/
|
|
24
63
|
readonly headSha: pulumi.Output<string>;
|
|
25
64
|
/**
|
|
26
|
-
* List of names
|
|
65
|
+
* List of label names set on the Pull Request.
|
|
27
66
|
*/
|
|
28
67
|
readonly labels: pulumi.Output<string[]>;
|
|
68
|
+
/**
|
|
69
|
+
* Controls whether the base repository maintainers can modify the Pull Request. Default: false.
|
|
70
|
+
*/
|
|
29
71
|
readonly maintainerCanModify: pulumi.Output<boolean | undefined>;
|
|
72
|
+
/**
|
|
73
|
+
* The number of the Pull Request within the repository.
|
|
74
|
+
*/
|
|
30
75
|
readonly number: pulumi.Output<number>;
|
|
76
|
+
/**
|
|
77
|
+
* Unix timestamp indicating the Pull Request creation time.
|
|
78
|
+
*/
|
|
31
79
|
readonly openedAt: pulumi.Output<number>;
|
|
32
80
|
/**
|
|
33
|
-
*
|
|
81
|
+
* GitHub login of the user who opened the Pull Request.
|
|
34
82
|
*/
|
|
35
83
|
readonly openedBy: pulumi.Output<string>;
|
|
84
|
+
/**
|
|
85
|
+
* Owner of the repository. If not provided, the provider's default owner is used.
|
|
86
|
+
*/
|
|
36
87
|
readonly owner: pulumi.Output<string | undefined>;
|
|
88
|
+
/**
|
|
89
|
+
* the current Pull Request state - can be "open", "closed" or "merged".
|
|
90
|
+
*/
|
|
37
91
|
readonly state: pulumi.Output<string>;
|
|
92
|
+
/**
|
|
93
|
+
* The title of the Pull Request.
|
|
94
|
+
*/
|
|
38
95
|
readonly title: pulumi.Output<string>;
|
|
96
|
+
/**
|
|
97
|
+
* The timestamp of the last Pull Request update.
|
|
98
|
+
*/
|
|
39
99
|
readonly updatedAt: pulumi.Output<number>;
|
|
40
100
|
/**
|
|
41
101
|
* Create a RepositoryPullRequest resource with the given unique name, arguments, and options.
|
|
@@ -50,38 +110,101 @@ export declare class RepositoryPullRequest extends pulumi.CustomResource {
|
|
|
50
110
|
* Input properties used for looking up and filtering RepositoryPullRequest resources.
|
|
51
111
|
*/
|
|
52
112
|
export interface RepositoryPullRequestState {
|
|
113
|
+
/**
|
|
114
|
+
* Name of the branch serving as the base of the Pull Request.
|
|
115
|
+
*/
|
|
53
116
|
baseRef?: pulumi.Input<string>;
|
|
117
|
+
/**
|
|
118
|
+
* Name of the base repository to retrieve the Pull Requests from.
|
|
119
|
+
*/
|
|
54
120
|
baseRepository?: pulumi.Input<string>;
|
|
121
|
+
/**
|
|
122
|
+
* Head commit SHA of the Pull Request base.
|
|
123
|
+
*/
|
|
55
124
|
baseSha?: pulumi.Input<string>;
|
|
125
|
+
/**
|
|
126
|
+
* Body of the Pull Request.
|
|
127
|
+
*/
|
|
56
128
|
body?: pulumi.Input<string>;
|
|
129
|
+
/**
|
|
130
|
+
* Indicates Whether this Pull Request is a draft.
|
|
131
|
+
*/
|
|
57
132
|
draft?: pulumi.Input<boolean>;
|
|
133
|
+
/**
|
|
134
|
+
* Name of the branch serving as the head of the Pull Request.
|
|
135
|
+
*/
|
|
58
136
|
headRef?: pulumi.Input<string>;
|
|
137
|
+
/**
|
|
138
|
+
* Head commit SHA of the Pull Request head.
|
|
139
|
+
*/
|
|
59
140
|
headSha?: pulumi.Input<string>;
|
|
60
141
|
/**
|
|
61
|
-
* List of names
|
|
142
|
+
* List of label names set on the Pull Request.
|
|
62
143
|
*/
|
|
63
144
|
labels?: pulumi.Input<pulumi.Input<string>[]>;
|
|
145
|
+
/**
|
|
146
|
+
* Controls whether the base repository maintainers can modify the Pull Request. Default: false.
|
|
147
|
+
*/
|
|
64
148
|
maintainerCanModify?: pulumi.Input<boolean>;
|
|
149
|
+
/**
|
|
150
|
+
* The number of the Pull Request within the repository.
|
|
151
|
+
*/
|
|
65
152
|
number?: pulumi.Input<number>;
|
|
153
|
+
/**
|
|
154
|
+
* Unix timestamp indicating the Pull Request creation time.
|
|
155
|
+
*/
|
|
66
156
|
openedAt?: pulumi.Input<number>;
|
|
67
157
|
/**
|
|
68
|
-
*
|
|
158
|
+
* GitHub login of the user who opened the Pull Request.
|
|
69
159
|
*/
|
|
70
160
|
openedBy?: pulumi.Input<string>;
|
|
161
|
+
/**
|
|
162
|
+
* Owner of the repository. If not provided, the provider's default owner is used.
|
|
163
|
+
*/
|
|
71
164
|
owner?: pulumi.Input<string>;
|
|
165
|
+
/**
|
|
166
|
+
* the current Pull Request state - can be "open", "closed" or "merged".
|
|
167
|
+
*/
|
|
72
168
|
state?: pulumi.Input<string>;
|
|
169
|
+
/**
|
|
170
|
+
* The title of the Pull Request.
|
|
171
|
+
*/
|
|
73
172
|
title?: pulumi.Input<string>;
|
|
173
|
+
/**
|
|
174
|
+
* The timestamp of the last Pull Request update.
|
|
175
|
+
*/
|
|
74
176
|
updatedAt?: pulumi.Input<number>;
|
|
75
177
|
}
|
|
76
178
|
/**
|
|
77
179
|
* The set of arguments for constructing a RepositoryPullRequest resource.
|
|
78
180
|
*/
|
|
79
181
|
export interface RepositoryPullRequestArgs {
|
|
182
|
+
/**
|
|
183
|
+
* Name of the branch serving as the base of the Pull Request.
|
|
184
|
+
*/
|
|
80
185
|
baseRef: pulumi.Input<string>;
|
|
186
|
+
/**
|
|
187
|
+
* Name of the base repository to retrieve the Pull Requests from.
|
|
188
|
+
*/
|
|
81
189
|
baseRepository: pulumi.Input<string>;
|
|
190
|
+
/**
|
|
191
|
+
* Body of the Pull Request.
|
|
192
|
+
*/
|
|
82
193
|
body?: pulumi.Input<string>;
|
|
194
|
+
/**
|
|
195
|
+
* Name of the branch serving as the head of the Pull Request.
|
|
196
|
+
*/
|
|
83
197
|
headRef: pulumi.Input<string>;
|
|
198
|
+
/**
|
|
199
|
+
* Controls whether the base repository maintainers can modify the Pull Request. Default: false.
|
|
200
|
+
*/
|
|
84
201
|
maintainerCanModify?: pulumi.Input<boolean>;
|
|
202
|
+
/**
|
|
203
|
+
* Owner of the repository. If not provided, the provider's default owner is used.
|
|
204
|
+
*/
|
|
85
205
|
owner?: pulumi.Input<string>;
|
|
206
|
+
/**
|
|
207
|
+
* The title of the Pull Request.
|
|
208
|
+
*/
|
|
86
209
|
title: pulumi.Input<string>;
|
|
87
210
|
}
|
package/repositoryPullRequest.js
CHANGED
|
@@ -5,7 +5,47 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.RepositoryPullRequest = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* This resource allows you to create and manage PullRequests for repositories within your GitHub organization or personal account.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as github from "@pulumi/github";
|
|
16
|
+
*
|
|
17
|
+
* const example = new github.RepositoryPullRequest("example", {
|
|
18
|
+
* baseRef: "main",
|
|
19
|
+
* baseRepository: "example-repository",
|
|
20
|
+
* body: "This will change everything",
|
|
21
|
+
* headRef: "feature-branch",
|
|
22
|
+
* title: "My newest feature",
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
8
26
|
class RepositoryPullRequest extends pulumi.CustomResource {
|
|
27
|
+
/**
|
|
28
|
+
* Get an existing RepositoryPullRequest resource's state with the given name, ID, and optional extra
|
|
29
|
+
* properties used to qualify the lookup.
|
|
30
|
+
*
|
|
31
|
+
* @param name The _unique_ name of the resulting resource.
|
|
32
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
33
|
+
* @param state Any extra arguments used during the lookup.
|
|
34
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
35
|
+
*/
|
|
36
|
+
static get(name, id, state, opts) {
|
|
37
|
+
return new RepositoryPullRequest(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Returns true if the given object is an instance of RepositoryPullRequest. This is designed to work even
|
|
41
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
42
|
+
*/
|
|
43
|
+
static isInstance(obj) {
|
|
44
|
+
if (obj === undefined || obj === null) {
|
|
45
|
+
return false;
|
|
46
|
+
}
|
|
47
|
+
return obj['__pulumiType'] === RepositoryPullRequest.__pulumiType;
|
|
48
|
+
}
|
|
9
49
|
constructor(name, argsOrState, opts) {
|
|
10
50
|
let resourceInputs = {};
|
|
11
51
|
opts = opts || {};
|
|
@@ -62,28 +102,6 @@ class RepositoryPullRequest extends pulumi.CustomResource {
|
|
|
62
102
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
63
103
|
super(RepositoryPullRequest.__pulumiType, name, resourceInputs, opts);
|
|
64
104
|
}
|
|
65
|
-
/**
|
|
66
|
-
* Get an existing RepositoryPullRequest resource's state with the given name, ID, and optional extra
|
|
67
|
-
* properties used to qualify the lookup.
|
|
68
|
-
*
|
|
69
|
-
* @param name The _unique_ name of the resulting resource.
|
|
70
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
71
|
-
* @param state Any extra arguments used during the lookup.
|
|
72
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
73
|
-
*/
|
|
74
|
-
static get(name, id, state, opts) {
|
|
75
|
-
return new RepositoryPullRequest(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Returns true if the given object is an instance of RepositoryPullRequest. This is designed to work even
|
|
79
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
80
|
-
*/
|
|
81
|
-
static isInstance(obj) {
|
|
82
|
-
if (obj === undefined || obj === null) {
|
|
83
|
-
return false;
|
|
84
|
-
}
|
|
85
|
-
return obj['__pulumiType'] === RepositoryPullRequest.__pulumiType;
|
|
86
|
-
}
|
|
87
105
|
}
|
|
88
106
|
exports.RepositoryPullRequest = RepositoryPullRequest;
|
|
89
107
|
/** @internal */
|