@pulumi/github 5.3.0 → 5.4.0-alpha.1676395162
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/branchDefault.d.ts +31 -0
- package/branchDefault.js +21 -0
- package/branchDefault.js.map +1 -1
- package/enterpriseOrganization.d.ts +64 -0
- package/enterpriseOrganization.js +19 -0
- package/enterpriseOrganization.js.map +1 -1
- package/getEnterprise.d.ts +24 -2
- package/getEnterprise.js +22 -0
- package/getEnterprise.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/repositoryWebhook.d.ts +1 -1
- package/repositoryWebhook.js +1 -1
- package/teamMembership.d.ts +3 -3
- package/teamRepository.d.ts +1 -1
- package/teamRepository.js +1 -1
- package/userInvitationAccepter.d.ts +18 -27
- package/userInvitationAccepter.js +2 -24
- package/userInvitationAccepter.js.map +1 -1
package/branchDefault.d.ts
CHANGED
|
@@ -8,6 +8,8 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
8
8
|
*
|
|
9
9
|
* ## Example Usage
|
|
10
10
|
*
|
|
11
|
+
* Basic usage:
|
|
12
|
+
*
|
|
11
13
|
* ```typescript
|
|
12
14
|
* import * as pulumi from "@pulumi/pulumi";
|
|
13
15
|
* import * as github from "@pulumi/github";
|
|
@@ -26,6 +28,23 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
26
28
|
* });
|
|
27
29
|
* ```
|
|
28
30
|
*
|
|
31
|
+
* Renaming to a branch that doesn't exist:
|
|
32
|
+
*
|
|
33
|
+
* ```typescript
|
|
34
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
35
|
+
* import * as github from "@pulumi/github";
|
|
36
|
+
*
|
|
37
|
+
* const example = new github.Repository("example", {
|
|
38
|
+
* description: "My awesome codebase",
|
|
39
|
+
* autoInit: true,
|
|
40
|
+
* });
|
|
41
|
+
* const _default = new github.BranchDefault("default", {
|
|
42
|
+
* repository: example.name,
|
|
43
|
+
* branch: "development",
|
|
44
|
+
* rename: true,
|
|
45
|
+
* });
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
29
48
|
* ## Import
|
|
30
49
|
*
|
|
31
50
|
* GitHub Branch Defaults can be imported using an ID made up of `repository`, e.g.
|
|
@@ -54,6 +73,10 @@ export declare class BranchDefault extends pulumi.CustomResource {
|
|
|
54
73
|
* The branch (e.g. `main`)
|
|
55
74
|
*/
|
|
56
75
|
readonly branch: pulumi.Output<string>;
|
|
76
|
+
/**
|
|
77
|
+
* Indicate if it should rename the branch rather than use an existing branch. Defaults to `false`.
|
|
78
|
+
*/
|
|
79
|
+
readonly rename: pulumi.Output<boolean | undefined>;
|
|
57
80
|
/**
|
|
58
81
|
* The GitHub repository
|
|
59
82
|
*/
|
|
@@ -75,6 +98,10 @@ export interface BranchDefaultState {
|
|
|
75
98
|
* The branch (e.g. `main`)
|
|
76
99
|
*/
|
|
77
100
|
branch?: pulumi.Input<string>;
|
|
101
|
+
/**
|
|
102
|
+
* Indicate if it should rename the branch rather than use an existing branch. Defaults to `false`.
|
|
103
|
+
*/
|
|
104
|
+
rename?: pulumi.Input<boolean>;
|
|
78
105
|
/**
|
|
79
106
|
* The GitHub repository
|
|
80
107
|
*/
|
|
@@ -88,6 +115,10 @@ export interface BranchDefaultArgs {
|
|
|
88
115
|
* The branch (e.g. `main`)
|
|
89
116
|
*/
|
|
90
117
|
branch: pulumi.Input<string>;
|
|
118
|
+
/**
|
|
119
|
+
* Indicate if it should rename the branch rather than use an existing branch. Defaults to `false`.
|
|
120
|
+
*/
|
|
121
|
+
rename?: pulumi.Input<boolean>;
|
|
91
122
|
/**
|
|
92
123
|
* The GitHub repository
|
|
93
124
|
*/
|
package/branchDefault.js
CHANGED
|
@@ -14,6 +14,8 @@ const utilities = require("./utilities");
|
|
|
14
14
|
*
|
|
15
15
|
* ## Example Usage
|
|
16
16
|
*
|
|
17
|
+
* Basic usage:
|
|
18
|
+
*
|
|
17
19
|
* ```typescript
|
|
18
20
|
* import * as pulumi from "@pulumi/pulumi";
|
|
19
21
|
* import * as github from "@pulumi/github";
|
|
@@ -32,6 +34,23 @@ const utilities = require("./utilities");
|
|
|
32
34
|
* });
|
|
33
35
|
* ```
|
|
34
36
|
*
|
|
37
|
+
* Renaming to a branch that doesn't exist:
|
|
38
|
+
*
|
|
39
|
+
* ```typescript
|
|
40
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
41
|
+
* import * as github from "@pulumi/github";
|
|
42
|
+
*
|
|
43
|
+
* const example = new github.Repository("example", {
|
|
44
|
+
* description: "My awesome codebase",
|
|
45
|
+
* autoInit: true,
|
|
46
|
+
* });
|
|
47
|
+
* const _default = new github.BranchDefault("default", {
|
|
48
|
+
* repository: example.name,
|
|
49
|
+
* branch: "development",
|
|
50
|
+
* rename: true,
|
|
51
|
+
* });
|
|
52
|
+
* ```
|
|
53
|
+
*
|
|
35
54
|
* ## Import
|
|
36
55
|
*
|
|
37
56
|
* GitHub Branch Defaults can be imported using an ID made up of `repository`, e.g.
|
|
@@ -69,6 +88,7 @@ class BranchDefault extends pulumi.CustomResource {
|
|
|
69
88
|
if (opts.id) {
|
|
70
89
|
const state = argsOrState;
|
|
71
90
|
resourceInputs["branch"] = state ? state.branch : undefined;
|
|
91
|
+
resourceInputs["rename"] = state ? state.rename : undefined;
|
|
72
92
|
resourceInputs["repository"] = state ? state.repository : undefined;
|
|
73
93
|
}
|
|
74
94
|
else {
|
|
@@ -80,6 +100,7 @@ class BranchDefault extends pulumi.CustomResource {
|
|
|
80
100
|
throw new Error("Missing required property 'repository'");
|
|
81
101
|
}
|
|
82
102
|
resourceInputs["branch"] = args ? args.branch : undefined;
|
|
103
|
+
resourceInputs["rename"] = args ? args.rename : undefined;
|
|
83
104
|
resourceInputs["repository"] = args ? args.repository : undefined;
|
|
84
105
|
}
|
|
85
106
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
package/branchDefault.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"branchDefault.js","sourceRoot":"","sources":["../branchDefault.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"branchDefault.js","sourceRoot":"","sources":["../branchDefault.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AACH,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IACpD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA0B,EAAE,IAAmC;QACxH,OAAO,IAAI,aAAa,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACpE,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,aAAa,CAAC,YAAY,CAAC;IAC9D,CAAC;IAuBD,YAAY,IAAY,EAAE,WAAoD,EAAE,IAAmC;QAC/G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA6C,CAAC;YAC5D,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5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umi from "@pulumi/pulumi";
|
|
7
|
+
* import * as github from "@pulumi/github";
|
|
8
|
+
*
|
|
9
|
+
* const org = new github.EnterpriseOrganization("org", {
|
|
10
|
+
* enterpriseId: data.github_enterprise.enterprise.id,
|
|
11
|
+
* description: "Organization created with terraform",
|
|
12
|
+
* billingEmail: "jon@winteriscoming.com",
|
|
13
|
+
* adminLogins: ["jon-snow"],
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* ## Import
|
|
18
|
+
*
|
|
19
|
+
* Support for importing organizations is not currently supported.
|
|
20
|
+
*/
|
|
2
21
|
export declare class EnterpriseOrganization extends pulumi.CustomResource {
|
|
3
22
|
/**
|
|
4
23
|
* Get an existing EnterpriseOrganization resource's state with the given name, ID, and optional extra
|
|
@@ -15,10 +34,25 @@ export declare class EnterpriseOrganization 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 EnterpriseOrganization;
|
|
37
|
+
/**
|
|
38
|
+
* List of organization owner usernames.
|
|
39
|
+
*/
|
|
18
40
|
readonly adminLogins: pulumi.Output<string[]>;
|
|
41
|
+
/**
|
|
42
|
+
* The billing email address.
|
|
43
|
+
*/
|
|
19
44
|
readonly billingEmail: pulumi.Output<string>;
|
|
45
|
+
/**
|
|
46
|
+
* The description of the organization.
|
|
47
|
+
*/
|
|
20
48
|
readonly description: pulumi.Output<string | undefined>;
|
|
49
|
+
/**
|
|
50
|
+
* The ID of the enterprise.
|
|
51
|
+
*/
|
|
21
52
|
readonly enterpriseId: pulumi.Output<string>;
|
|
53
|
+
/**
|
|
54
|
+
* The name of the organization.
|
|
55
|
+
*/
|
|
22
56
|
readonly name: pulumi.Output<string>;
|
|
23
57
|
/**
|
|
24
58
|
* Create a EnterpriseOrganization resource with the given unique name, arguments, and options.
|
|
@@ -33,19 +67,49 @@ export declare class EnterpriseOrganization extends pulumi.CustomResource {
|
|
|
33
67
|
* Input properties used for looking up and filtering EnterpriseOrganization resources.
|
|
34
68
|
*/
|
|
35
69
|
export interface EnterpriseOrganizationState {
|
|
70
|
+
/**
|
|
71
|
+
* List of organization owner usernames.
|
|
72
|
+
*/
|
|
36
73
|
adminLogins?: pulumi.Input<pulumi.Input<string>[]>;
|
|
74
|
+
/**
|
|
75
|
+
* The billing email address.
|
|
76
|
+
*/
|
|
37
77
|
billingEmail?: pulumi.Input<string>;
|
|
78
|
+
/**
|
|
79
|
+
* The description of the organization.
|
|
80
|
+
*/
|
|
38
81
|
description?: pulumi.Input<string>;
|
|
82
|
+
/**
|
|
83
|
+
* The ID of the enterprise.
|
|
84
|
+
*/
|
|
39
85
|
enterpriseId?: pulumi.Input<string>;
|
|
86
|
+
/**
|
|
87
|
+
* The name of the organization.
|
|
88
|
+
*/
|
|
40
89
|
name?: pulumi.Input<string>;
|
|
41
90
|
}
|
|
42
91
|
/**
|
|
43
92
|
* The set of arguments for constructing a EnterpriseOrganization resource.
|
|
44
93
|
*/
|
|
45
94
|
export interface EnterpriseOrganizationArgs {
|
|
95
|
+
/**
|
|
96
|
+
* List of organization owner usernames.
|
|
97
|
+
*/
|
|
46
98
|
adminLogins: pulumi.Input<pulumi.Input<string>[]>;
|
|
99
|
+
/**
|
|
100
|
+
* The billing email address.
|
|
101
|
+
*/
|
|
47
102
|
billingEmail: pulumi.Input<string>;
|
|
103
|
+
/**
|
|
104
|
+
* The description of the organization.
|
|
105
|
+
*/
|
|
48
106
|
description?: pulumi.Input<string>;
|
|
107
|
+
/**
|
|
108
|
+
* The ID of the enterprise.
|
|
109
|
+
*/
|
|
49
110
|
enterpriseId: pulumi.Input<string>;
|
|
111
|
+
/**
|
|
112
|
+
* The name of the organization.
|
|
113
|
+
*/
|
|
50
114
|
name?: pulumi.Input<string>;
|
|
51
115
|
}
|
|
@@ -5,6 +5,25 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.EnterpriseOrganization = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as github from "@pulumi/github";
|
|
14
|
+
*
|
|
15
|
+
* const org = new github.EnterpriseOrganization("org", {
|
|
16
|
+
* enterpriseId: data.github_enterprise.enterprise.id,
|
|
17
|
+
* description: "Organization created with terraform",
|
|
18
|
+
* billingEmail: "jon@winteriscoming.com",
|
|
19
|
+
* adminLogins: ["jon-snow"],
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* ## Import
|
|
24
|
+
*
|
|
25
|
+
* Support for importing organizations is not currently supported.
|
|
26
|
+
*/
|
|
8
27
|
class EnterpriseOrganization extends pulumi.CustomResource {
|
|
9
28
|
/**
|
|
10
29
|
* Get an existing EnterpriseOrganization resource's state with the given name, ID, and optional extra
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enterpriseOrganization.js","sourceRoot":"","sources":["../enterpriseOrganization.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,sBAAuB,SAAQ,MAAM,CAAC,cAAc;IAC7D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAmC,EAAE,IAAmC;QACjI,OAAO,IAAI,sBAAsB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC7E,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,CA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AC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;SACzD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,sBAAsB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3E,CAAC;;AAtFL,wDAuFC;AAzEG,gBAAgB;AACO,mCAAY,GAAG,4DAA4D,CAAC"}
|
package/getEnterprise.d.ts
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
3
|
* Use this data source to retrieve basic information about a GitHub enterprise.
|
|
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 = github.getEnterprise({
|
|
12
|
+
* slug: "example-co",
|
|
13
|
+
* });
|
|
14
|
+
* ```
|
|
4
15
|
*/
|
|
5
16
|
export declare function getEnterprise(args: GetEnterpriseArgs, opts?: pulumi.InvokeOptions): Promise<GetEnterpriseResult>;
|
|
6
17
|
/**
|
|
@@ -21,7 +32,7 @@ export interface GetEnterpriseResult {
|
|
|
21
32
|
*/
|
|
22
33
|
readonly createdAt: string;
|
|
23
34
|
/**
|
|
24
|
-
* The description of the
|
|
35
|
+
* The description of the enterprise.
|
|
25
36
|
*/
|
|
26
37
|
readonly description: string;
|
|
27
38
|
/**
|
|
@@ -29,7 +40,7 @@ export interface GetEnterpriseResult {
|
|
|
29
40
|
*/
|
|
30
41
|
readonly id: string;
|
|
31
42
|
/**
|
|
32
|
-
* The name of the
|
|
43
|
+
* The name of the enterprise.
|
|
33
44
|
*/
|
|
34
45
|
readonly name: string;
|
|
35
46
|
/**
|
|
@@ -43,6 +54,17 @@ export interface GetEnterpriseResult {
|
|
|
43
54
|
}
|
|
44
55
|
/**
|
|
45
56
|
* Use this data source to retrieve basic information about a GitHub enterprise.
|
|
57
|
+
*
|
|
58
|
+
* ## Example Usage
|
|
59
|
+
*
|
|
60
|
+
* ```typescript
|
|
61
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
62
|
+
* import * as github from "@pulumi/github";
|
|
63
|
+
*
|
|
64
|
+
* const example = github.getEnterprise({
|
|
65
|
+
* slug: "example-co",
|
|
66
|
+
* });
|
|
67
|
+
* ```
|
|
46
68
|
*/
|
|
47
69
|
export declare function getEnterpriseOutput(args: GetEnterpriseOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetEnterpriseResult>;
|
|
48
70
|
/**
|
package/getEnterprise.js
CHANGED
|
@@ -7,6 +7,17 @@ const pulumi = require("@pulumi/pulumi");
|
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
9
|
* Use this data source to retrieve basic information about a GitHub enterprise.
|
|
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 = github.getEnterprise({
|
|
18
|
+
* slug: "example-co",
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
10
21
|
*/
|
|
11
22
|
function getEnterprise(args, opts) {
|
|
12
23
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
@@ -17,6 +28,17 @@ function getEnterprise(args, opts) {
|
|
|
17
28
|
exports.getEnterprise = getEnterprise;
|
|
18
29
|
/**
|
|
19
30
|
* Use this data source to retrieve basic information about a GitHub enterprise.
|
|
31
|
+
*
|
|
32
|
+
* ## Example Usage
|
|
33
|
+
*
|
|
34
|
+
* ```typescript
|
|
35
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
36
|
+
* import * as github from "@pulumi/github";
|
|
37
|
+
*
|
|
38
|
+
* const example = github.getEnterprise({
|
|
39
|
+
* slug: "example-co",
|
|
40
|
+
* });
|
|
41
|
+
* ```
|
|
20
42
|
*/
|
|
21
43
|
function getEnterpriseOutput(args, opts) {
|
|
22
44
|
return pulumi.output(args).apply((a) => getEnterprise(a, opts));
|
package/getEnterprise.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getEnterprise.js","sourceRoot":"","sources":["../getEnterprise.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"getEnterprise.js","sourceRoot":"","sources":["../getEnterprise.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,aAAa,CAAC,IAAuB,EAAE,IAA2B;IAE9E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0CAA0C,EAAE;QACrE,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,sCAMC;AAyCD;;;;;;;;;;;;;GAaG;AACH,SAAgB,mBAAmB,CAAC,IAA6B,EAAE,IAA2B;IAC1F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACxE,CAAC;AAFD,kDAEC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/github",
|
|
3
|
-
"version": "v5.
|
|
3
|
+
"version": "v5.4.0-alpha.1676395162+6cc0aa42",
|
|
4
4
|
"description": "A Pulumi package for creating and managing github cloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "tsc",
|
|
14
|
-
"install": "node scripts/install-pulumi-plugin.js resource github v5.
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource github v5.4.0-alpha.1676395162+6cc0aa42"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@pulumi/pulumi": "^3.0.0"
|
package/package.json.dev
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/github",
|
|
3
|
-
"version": "v5.
|
|
3
|
+
"version": "v5.4.0-alpha.1676395162+6cc0aa42",
|
|
4
4
|
"description": "A Pulumi package for creating and managing github cloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "tsc",
|
|
14
|
-
"install": "node scripts/install-pulumi-plugin.js resource github v5.
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource github v5.4.0-alpha.1676395162+6cc0aa42"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@pulumi/pulumi": "^3.0.0"
|
package/repositoryWebhook.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ import * as outputs from "./types/output";
|
|
|
14
14
|
* const repo = new github.Repository("repo", {
|
|
15
15
|
* description: "Terraform acceptance tests",
|
|
16
16
|
* homepageUrl: "http://example.com/",
|
|
17
|
-
* "
|
|
17
|
+
* visibility: "public",
|
|
18
18
|
* });
|
|
19
19
|
* const foo = new github.RepositoryWebhook("foo", {
|
|
20
20
|
* repository: repo.name,
|
package/repositoryWebhook.js
CHANGED
|
@@ -18,7 +18,7 @@ const utilities = require("./utilities");
|
|
|
18
18
|
* const repo = new github.Repository("repo", {
|
|
19
19
|
* description: "Terraform acceptance tests",
|
|
20
20
|
* homepageUrl: "http://example.com/",
|
|
21
|
-
* "
|
|
21
|
+
* visibility: "public",
|
|
22
22
|
* });
|
|
23
23
|
* const foo = new github.RepositoryWebhook("foo", {
|
|
24
24
|
* repository: repo.name,
|
package/teamMembership.d.ts
CHANGED
|
@@ -50,7 +50,7 @@ export declare class TeamMembership extends pulumi.CustomResource {
|
|
|
50
50
|
*/
|
|
51
51
|
readonly role: pulumi.Output<string | undefined>;
|
|
52
52
|
/**
|
|
53
|
-
* The GitHub team id
|
|
53
|
+
* The GitHub team id or the GitHub team slug
|
|
54
54
|
*/
|
|
55
55
|
readonly teamId: pulumi.Output<string>;
|
|
56
56
|
/**
|
|
@@ -77,7 +77,7 @@ export interface TeamMembershipState {
|
|
|
77
77
|
*/
|
|
78
78
|
role?: pulumi.Input<string>;
|
|
79
79
|
/**
|
|
80
|
-
* The GitHub team id
|
|
80
|
+
* The GitHub team id or the GitHub team slug
|
|
81
81
|
*/
|
|
82
82
|
teamId?: pulumi.Input<string>;
|
|
83
83
|
/**
|
|
@@ -95,7 +95,7 @@ export interface TeamMembershipArgs {
|
|
|
95
95
|
*/
|
|
96
96
|
role?: pulumi.Input<string>;
|
|
97
97
|
/**
|
|
98
|
-
* The GitHub team id
|
|
98
|
+
* The GitHub team id or the GitHub team slug
|
|
99
99
|
*/
|
|
100
100
|
teamId: pulumi.Input<string>;
|
|
101
101
|
/**
|
package/teamRepository.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
28
28
|
*
|
|
29
29
|
* ## Import
|
|
30
30
|
*
|
|
31
|
-
* GitHub Team Repository can be imported using an ID made up of `
|
|
31
|
+
* GitHub Team Repository can be imported using an ID made up of `team_id:repository`, e.g.
|
|
32
32
|
*
|
|
33
33
|
* ```sh
|
|
34
34
|
* $ pulumi import github:index/teamRepository:TeamRepository terraform_repo 1234567:terraform
|
package/teamRepository.js
CHANGED
|
@@ -34,7 +34,7 @@ const utilities = require("./utilities");
|
|
|
34
34
|
*
|
|
35
35
|
* ## Import
|
|
36
36
|
*
|
|
37
|
-
* GitHub Team Repository can be imported using an ID made up of `
|
|
37
|
+
* GitHub Team Repository can be imported using an ID made up of `team_id:repository`, e.g.
|
|
38
38
|
*
|
|
39
39
|
* ```sh
|
|
40
40
|
* $ pulumi import github:index/teamRepository:TeamRepository terraform_repo 1234567:terraform
|
|
@@ -1,25 +1,4 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
/**
|
|
3
|
-
* Provides a resource to manage GitHub repository collaborator invitations.
|
|
4
|
-
*
|
|
5
|
-
* ## Example Usage
|
|
6
|
-
*
|
|
7
|
-
* ```typescript
|
|
8
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
-
* import * as github from "@pulumi/github";
|
|
10
|
-
*
|
|
11
|
-
* const exampleRepository = new github.Repository("exampleRepository", {});
|
|
12
|
-
* const exampleRepositoryCollaborator = new github.RepositoryCollaborator("exampleRepositoryCollaborator", {
|
|
13
|
-
* repository: exampleRepository.name,
|
|
14
|
-
* username: "example-username",
|
|
15
|
-
* permission: "push",
|
|
16
|
-
* });
|
|
17
|
-
* const invitee = new github.Provider("invitee", {token: _var.invitee_token});
|
|
18
|
-
* const exampleUserInvitationAccepter = new github.UserInvitationAccepter("exampleUserInvitationAccepter", {invitationId: exampleRepositoryCollaborator.invitationId}, {
|
|
19
|
-
* provider: "github.invitee",
|
|
20
|
-
* });
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
2
|
export declare class UserInvitationAccepter extends pulumi.CustomResource {
|
|
24
3
|
/**
|
|
25
4
|
* Get an existing UserInvitationAccepter resource's state with the given name, ID, and optional extra
|
|
@@ -37,9 +16,13 @@ export declare class UserInvitationAccepter extends pulumi.CustomResource {
|
|
|
37
16
|
*/
|
|
38
17
|
static isInstance(obj: any): obj is UserInvitationAccepter;
|
|
39
18
|
/**
|
|
40
|
-
* ID
|
|
19
|
+
* Allow the ID to be unset. This will result in the resource being skipped when the ID is not set instead of returning an error.
|
|
41
20
|
*/
|
|
42
|
-
readonly
|
|
21
|
+
readonly allowEmptyId: pulumi.Output<boolean | undefined>;
|
|
22
|
+
/**
|
|
23
|
+
* ID of the invitation to accept. Must be set when `allowEmptyId` is `false`.
|
|
24
|
+
*/
|
|
25
|
+
readonly invitationId: pulumi.Output<string | undefined>;
|
|
43
26
|
/**
|
|
44
27
|
* Create a UserInvitationAccepter resource with the given unique name, arguments, and options.
|
|
45
28
|
*
|
|
@@ -47,14 +30,18 @@ export declare class UserInvitationAccepter extends pulumi.CustomResource {
|
|
|
47
30
|
* @param args The arguments to use to populate this resource's properties.
|
|
48
31
|
* @param opts A bag of options that control this resource's behavior.
|
|
49
32
|
*/
|
|
50
|
-
constructor(name: string, args
|
|
33
|
+
constructor(name: string, args?: UserInvitationAccepterArgs, opts?: pulumi.CustomResourceOptions);
|
|
51
34
|
}
|
|
52
35
|
/**
|
|
53
36
|
* Input properties used for looking up and filtering UserInvitationAccepter resources.
|
|
54
37
|
*/
|
|
55
38
|
export interface UserInvitationAccepterState {
|
|
56
39
|
/**
|
|
57
|
-
* ID
|
|
40
|
+
* Allow the ID to be unset. This will result in the resource being skipped when the ID is not set instead of returning an error.
|
|
41
|
+
*/
|
|
42
|
+
allowEmptyId?: pulumi.Input<boolean>;
|
|
43
|
+
/**
|
|
44
|
+
* ID of the invitation to accept. Must be set when `allowEmptyId` is `false`.
|
|
58
45
|
*/
|
|
59
46
|
invitationId?: pulumi.Input<string>;
|
|
60
47
|
}
|
|
@@ -63,7 +50,11 @@ export interface UserInvitationAccepterState {
|
|
|
63
50
|
*/
|
|
64
51
|
export interface UserInvitationAccepterArgs {
|
|
65
52
|
/**
|
|
66
|
-
* ID
|
|
53
|
+
* Allow the ID to be unset. This will result in the resource being skipped when the ID is not set instead of returning an error.
|
|
54
|
+
*/
|
|
55
|
+
allowEmptyId?: pulumi.Input<boolean>;
|
|
56
|
+
/**
|
|
57
|
+
* ID of the invitation to accept. Must be set when `allowEmptyId` is `false`.
|
|
67
58
|
*/
|
|
68
|
-
invitationId
|
|
59
|
+
invitationId?: pulumi.Input<string>;
|
|
69
60
|
}
|
|
@@ -5,27 +5,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.UserInvitationAccepter = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
-
/**
|
|
9
|
-
* Provides a resource to manage GitHub repository collaborator invitations.
|
|
10
|
-
*
|
|
11
|
-
* ## Example Usage
|
|
12
|
-
*
|
|
13
|
-
* ```typescript
|
|
14
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
-
* import * as github from "@pulumi/github";
|
|
16
|
-
*
|
|
17
|
-
* const exampleRepository = new github.Repository("exampleRepository", {});
|
|
18
|
-
* const exampleRepositoryCollaborator = new github.RepositoryCollaborator("exampleRepositoryCollaborator", {
|
|
19
|
-
* repository: exampleRepository.name,
|
|
20
|
-
* username: "example-username",
|
|
21
|
-
* permission: "push",
|
|
22
|
-
* });
|
|
23
|
-
* const invitee = new github.Provider("invitee", {token: _var.invitee_token});
|
|
24
|
-
* const exampleUserInvitationAccepter = new github.UserInvitationAccepter("exampleUserInvitationAccepter", {invitationId: exampleRepositoryCollaborator.invitationId}, {
|
|
25
|
-
* provider: "github.invitee",
|
|
26
|
-
* });
|
|
27
|
-
* ```
|
|
28
|
-
*/
|
|
29
8
|
class UserInvitationAccepter extends pulumi.CustomResource {
|
|
30
9
|
/**
|
|
31
10
|
* Get an existing UserInvitationAccepter resource's state with the given name, ID, and optional extra
|
|
@@ -54,13 +33,12 @@ class UserInvitationAccepter extends pulumi.CustomResource {
|
|
|
54
33
|
opts = opts || {};
|
|
55
34
|
if (opts.id) {
|
|
56
35
|
const state = argsOrState;
|
|
36
|
+
resourceInputs["allowEmptyId"] = state ? state.allowEmptyId : undefined;
|
|
57
37
|
resourceInputs["invitationId"] = state ? state.invitationId : undefined;
|
|
58
38
|
}
|
|
59
39
|
else {
|
|
60
40
|
const args = argsOrState;
|
|
61
|
-
|
|
62
|
-
throw new Error("Missing required property 'invitationId'");
|
|
63
|
-
}
|
|
41
|
+
resourceInputs["allowEmptyId"] = args ? args.allowEmptyId : undefined;
|
|
64
42
|
resourceInputs["invitationId"] = args ? args.invitationId : undefined;
|
|
65
43
|
}
|
|
66
44
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"userInvitationAccepter.js","sourceRoot":"","sources":["../userInvitationAccepter.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"userInvitationAccepter.js","sourceRoot":"","sources":["../userInvitationAccepter.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,sBAAuB,SAAQ,MAAM,CAAC,cAAc;IAC7D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAmC,EAAE,IAAmC;QACjI,OAAO,IAAI,sBAAsB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC7E,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,sBAAsB,CAAC,YAAY,CAA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