@pulumi/github 6.8.0-alpha.1761113005 → 6.8.0-alpha.1761189922
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/actionsOrganizationSecret.d.ts +3 -0
- package/actionsOrganizationSecret.js +2 -0
- package/actionsOrganizationSecret.js.map +1 -1
- package/actionsOrganizationSecretRepository.d.ts +89 -0
- package/actionsOrganizationSecretRepository.js +86 -0
- package/actionsOrganizationSecretRepository.js.map +1 -0
- package/config/vars.d.ts +1 -1
- package/getOrganizationCustomProperties.d.ts +122 -0
- package/getOrganizationCustomProperties.js +60 -0
- package/getOrganizationCustomProperties.js.map +1 -0
- package/getOrganizationCustomRole.d.ts +4 -0
- package/getOrganizationCustomRole.js +4 -0
- package/getOrganizationCustomRole.js.map +1 -1
- package/getOrganizationRepositoryRole.d.ts +82 -0
- package/getOrganizationRepositoryRole.js +54 -0
- package/getOrganizationRepositoryRole.js.map +1 -0
- package/getOrganizationRepositoryRoles.d.ts +65 -0
- package/getOrganizationRepositoryRoles.js +66 -0
- package/getOrganizationRepositoryRoles.js.map +1 -0
- package/getOrganizationRole.d.ts +82 -0
- package/getOrganizationRole.js +50 -0
- package/getOrganizationRole.js.map +1 -0
- package/getOrganizationRoleTeams.d.ts +85 -0
- package/getOrganizationRoleTeams.js +68 -0
- package/getOrganizationRoleTeams.js.map +1 -0
- package/getOrganizationRoleUsers.d.ts +81 -0
- package/getOrganizationRoleUsers.js +64 -0
- package/getOrganizationRoleUsers.js.map +1 -0
- package/getOrganizationRoles.d.ts +63 -0
- package/getOrganizationRoles.js +64 -0
- package/getOrganizationRoles.js.map +1 -0
- package/getOrganizationSecurityManagers.d.ts +41 -0
- package/getOrganizationSecurityManagers.js +42 -0
- package/getOrganizationSecurityManagers.js.map +1 -0
- package/getTeam.d.ts +4 -2
- package/getTeam.js.map +1 -1
- package/index.d.ts +45 -0
- package/index.js +64 -4
- package/index.js.map +1 -1
- package/organizationCustomProperties.d.ts +170 -0
- package/organizationCustomProperties.js +124 -0
- package/organizationCustomProperties.js.map +1 -0
- package/organizationCustomRole.d.ts +2 -0
- package/organizationCustomRole.js +2 -0
- package/organizationCustomRole.js.map +1 -1
- package/organizationProject.d.ts +2 -0
- package/organizationProject.js +2 -0
- package/organizationProject.js.map +1 -1
- package/organizationRepositoryRole.d.ts +121 -0
- package/organizationRepositoryRole.js +92 -0
- package/organizationRepositoryRole.js.map +1 -0
- package/organizationRole.d.ts +121 -0
- package/organizationRole.js +89 -0
- package/organizationRole.js.map +1 -0
- package/organizationRoleTeam.d.ts +83 -0
- package/organizationRoleTeam.js +80 -0
- package/organizationRoleTeam.js.map +1 -0
- package/organizationRoleTeamAssignment.d.ts +90 -0
- package/organizationRoleTeamAssignment.js +87 -0
- package/organizationRoleTeamAssignment.js.map +1 -0
- package/organizationRoleUser.d.ts +83 -0
- package/organizationRoleUser.js +80 -0
- package/organizationRoleUser.js.map +1 -0
- package/organizationRuleset.d.ts +8 -0
- package/organizationRuleset.js +8 -0
- package/organizationRuleset.js.map +1 -1
- package/package.json +2 -2
- package/projectCard.d.ts +2 -0
- package/projectCard.js +2 -0
- package/projectCard.js.map +1 -1
- package/projectColumn.d.ts +2 -0
- package/projectColumn.js +2 -0
- package/projectColumn.js.map +1 -1
- package/provider.d.ts +1 -1
- package/repository.d.ts +1 -1
- package/repositoryProject.d.ts +2 -0
- package/repositoryProject.js +2 -0
- package/repositoryProject.js.map +1 -1
- package/repositoryRuleset.d.ts +28 -3
- package/repositoryRuleset.js +25 -0
- package/repositoryRuleset.js.map +1 -1
- package/types/input.d.ts +44 -6
- package/types/output.d.ts +158 -15
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as outputs from "./types/output";
|
|
3
|
+
/**
|
|
4
|
+
* Lookup all custom repository roles in an organization.
|
|
5
|
+
*
|
|
6
|
+
* > **Note**: Custom organization repository roles are currently only available in GitHub Enterprise Cloud.
|
|
7
|
+
*
|
|
8
|
+
* ## Example Usage
|
|
9
|
+
*
|
|
10
|
+
* ```typescript
|
|
11
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
12
|
+
* import * as github from "@pulumi/github";
|
|
13
|
+
*
|
|
14
|
+
* const example = github.getOrganizationRepositoryRoles({});
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* ## Nested Schema for `roles`
|
|
18
|
+
*
|
|
19
|
+
* ### Read-Only
|
|
20
|
+
*
|
|
21
|
+
* - `roleId` (Number) The ID of the organization repository role.
|
|
22
|
+
* - `name` (String) The name of the organization repository role.
|
|
23
|
+
* - `description` (String) The description of the organization repository role.
|
|
24
|
+
* - `baseRole` (String) The system role from which this role inherits permissions.
|
|
25
|
+
* - `permissions` (Set of String) The permissions included in this role.
|
|
26
|
+
*/
|
|
27
|
+
export declare function getOrganizationRepositoryRoles(opts?: pulumi.InvokeOptions): Promise<GetOrganizationRepositoryRolesResult>;
|
|
28
|
+
/**
|
|
29
|
+
* A collection of values returned by getOrganizationRepositoryRoles.
|
|
30
|
+
*/
|
|
31
|
+
export interface GetOrganizationRepositoryRolesResult {
|
|
32
|
+
/**
|
|
33
|
+
* The provider-assigned unique ID for this managed resource.
|
|
34
|
+
*/
|
|
35
|
+
readonly id: string;
|
|
36
|
+
/**
|
|
37
|
+
* (Set of Object, see schema) Available organization repository roles.
|
|
38
|
+
*/
|
|
39
|
+
readonly roles: outputs.GetOrganizationRepositoryRolesRole[];
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Lookup all custom repository roles in an organization.
|
|
43
|
+
*
|
|
44
|
+
* > **Note**: Custom organization repository roles are currently only available in GitHub Enterprise Cloud.
|
|
45
|
+
*
|
|
46
|
+
* ## Example Usage
|
|
47
|
+
*
|
|
48
|
+
* ```typescript
|
|
49
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
50
|
+
* import * as github from "@pulumi/github";
|
|
51
|
+
*
|
|
52
|
+
* const example = github.getOrganizationRepositoryRoles({});
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
55
|
+
* ## Nested Schema for `roles`
|
|
56
|
+
*
|
|
57
|
+
* ### Read-Only
|
|
58
|
+
*
|
|
59
|
+
* - `roleId` (Number) The ID of the organization repository role.
|
|
60
|
+
* - `name` (String) The name of the organization repository role.
|
|
61
|
+
* - `description` (String) The description of the organization repository role.
|
|
62
|
+
* - `baseRole` (String) The system role from which this role inherits permissions.
|
|
63
|
+
* - `permissions` (Set of String) The permissions included in this role.
|
|
64
|
+
*/
|
|
65
|
+
export declare function getOrganizationRepositoryRolesOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetOrganizationRepositoryRolesResult>;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.getOrganizationRepositoryRolesOutput = exports.getOrganizationRepositoryRoles = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Lookup all custom repository roles in an organization.
|
|
10
|
+
*
|
|
11
|
+
* > **Note**: Custom organization repository roles are currently only available in GitHub Enterprise Cloud.
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as github from "@pulumi/github";
|
|
18
|
+
*
|
|
19
|
+
* const example = github.getOrganizationRepositoryRoles({});
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* ## Nested Schema for `roles`
|
|
23
|
+
*
|
|
24
|
+
* ### Read-Only
|
|
25
|
+
*
|
|
26
|
+
* - `roleId` (Number) The ID of the organization repository role.
|
|
27
|
+
* - `name` (String) The name of the organization repository role.
|
|
28
|
+
* - `description` (String) The description of the organization repository role.
|
|
29
|
+
* - `baseRole` (String) The system role from which this role inherits permissions.
|
|
30
|
+
* - `permissions` (Set of String) The permissions included in this role.
|
|
31
|
+
*/
|
|
32
|
+
function getOrganizationRepositoryRoles(opts) {
|
|
33
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
34
|
+
return pulumi.runtime.invoke("github:index/getOrganizationRepositoryRoles:getOrganizationRepositoryRoles", {}, opts);
|
|
35
|
+
}
|
|
36
|
+
exports.getOrganizationRepositoryRoles = getOrganizationRepositoryRoles;
|
|
37
|
+
/**
|
|
38
|
+
* Lookup all custom repository roles in an organization.
|
|
39
|
+
*
|
|
40
|
+
* > **Note**: Custom organization repository roles are currently only available in GitHub Enterprise Cloud.
|
|
41
|
+
*
|
|
42
|
+
* ## Example Usage
|
|
43
|
+
*
|
|
44
|
+
* ```typescript
|
|
45
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
46
|
+
* import * as github from "@pulumi/github";
|
|
47
|
+
*
|
|
48
|
+
* const example = github.getOrganizationRepositoryRoles({});
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* ## Nested Schema for `roles`
|
|
52
|
+
*
|
|
53
|
+
* ### Read-Only
|
|
54
|
+
*
|
|
55
|
+
* - `roleId` (Number) The ID of the organization repository role.
|
|
56
|
+
* - `name` (String) The name of the organization repository role.
|
|
57
|
+
* - `description` (String) The description of the organization repository role.
|
|
58
|
+
* - `baseRole` (String) The system role from which this role inherits permissions.
|
|
59
|
+
* - `permissions` (Set of String) The permissions included in this role.
|
|
60
|
+
*/
|
|
61
|
+
function getOrganizationRepositoryRolesOutput(opts) {
|
|
62
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
63
|
+
return pulumi.runtime.invokeOutput("github:index/getOrganizationRepositoryRoles:getOrganizationRepositoryRoles", {}, opts);
|
|
64
|
+
}
|
|
65
|
+
exports.getOrganizationRepositoryRolesOutput = getOrganizationRepositoryRolesOutput;
|
|
66
|
+
//# sourceMappingURL=getOrganizationRepositoryRoles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getOrganizationRepositoryRoles.js","sourceRoot":"","sources":["../getOrganizationRepositoryRoles.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,SAAgB,8BAA8B,CAAC,IAA2B;IACtE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,4EAA4E,EAAE,EAC1G,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,wEAIC;AAeD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,SAAgB,oCAAoC,CAAC,IAAiC;IAClF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,4EAA4E,EAAE,EAChH,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,oFAIC"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Lookup a custom organization role.
|
|
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.getOrganizationRole({
|
|
12
|
+
* roleId: 1234,
|
|
13
|
+
* });
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
export declare function getOrganizationRole(args: GetOrganizationRoleArgs, opts?: pulumi.InvokeOptions): Promise<GetOrganizationRoleResult>;
|
|
17
|
+
/**
|
|
18
|
+
* A collection of arguments for invoking getOrganizationRole.
|
|
19
|
+
*/
|
|
20
|
+
export interface GetOrganizationRoleArgs {
|
|
21
|
+
/**
|
|
22
|
+
* The ID of the organization role.
|
|
23
|
+
*/
|
|
24
|
+
roleId: number;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* A collection of values returned by getOrganizationRole.
|
|
28
|
+
*/
|
|
29
|
+
export interface GetOrganizationRoleResult {
|
|
30
|
+
/**
|
|
31
|
+
* The system role from which this role inherits permissions.
|
|
32
|
+
*/
|
|
33
|
+
readonly baseRole: string;
|
|
34
|
+
/**
|
|
35
|
+
* The description of the organization role.
|
|
36
|
+
*/
|
|
37
|
+
readonly description: string;
|
|
38
|
+
/**
|
|
39
|
+
* The provider-assigned unique ID for this managed resource.
|
|
40
|
+
*/
|
|
41
|
+
readonly id: string;
|
|
42
|
+
/**
|
|
43
|
+
* The name of the organization role.
|
|
44
|
+
*/
|
|
45
|
+
readonly name: string;
|
|
46
|
+
/**
|
|
47
|
+
* The permissions included in this role.
|
|
48
|
+
*/
|
|
49
|
+
readonly permissions: string[];
|
|
50
|
+
/**
|
|
51
|
+
* The ID of the organization role.
|
|
52
|
+
*/
|
|
53
|
+
readonly roleId: number;
|
|
54
|
+
/**
|
|
55
|
+
* The source of this role; one of `Predefined`, `Organization`, or `Enterprise`.
|
|
56
|
+
*/
|
|
57
|
+
readonly source: string;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Lookup a custom organization role.
|
|
61
|
+
*
|
|
62
|
+
* ## Example Usage
|
|
63
|
+
*
|
|
64
|
+
* ```typescript
|
|
65
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
66
|
+
* import * as github from "@pulumi/github";
|
|
67
|
+
*
|
|
68
|
+
* const example = github.getOrganizationRole({
|
|
69
|
+
* roleId: 1234,
|
|
70
|
+
* });
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
export declare function getOrganizationRoleOutput(args: GetOrganizationRoleOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetOrganizationRoleResult>;
|
|
74
|
+
/**
|
|
75
|
+
* A collection of arguments for invoking getOrganizationRole.
|
|
76
|
+
*/
|
|
77
|
+
export interface GetOrganizationRoleOutputArgs {
|
|
78
|
+
/**
|
|
79
|
+
* The ID of the organization role.
|
|
80
|
+
*/
|
|
81
|
+
roleId: pulumi.Input<number>;
|
|
82
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.getOrganizationRoleOutput = exports.getOrganizationRole = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Lookup a custom organization role.
|
|
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.getOrganizationRole({
|
|
18
|
+
* roleId: 1234,
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
function getOrganizationRole(args, opts) {
|
|
23
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
24
|
+
return pulumi.runtime.invoke("github:index/getOrganizationRole:getOrganizationRole", {
|
|
25
|
+
"roleId": args.roleId,
|
|
26
|
+
}, opts);
|
|
27
|
+
}
|
|
28
|
+
exports.getOrganizationRole = getOrganizationRole;
|
|
29
|
+
/**
|
|
30
|
+
* Lookup a custom organization role.
|
|
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.getOrganizationRole({
|
|
39
|
+
* roleId: 1234,
|
|
40
|
+
* });
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
function getOrganizationRoleOutput(args, opts) {
|
|
44
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
45
|
+
return pulumi.runtime.invokeOutput("github:index/getOrganizationRole:getOrganizationRole", {
|
|
46
|
+
"roleId": args.roleId,
|
|
47
|
+
}, opts);
|
|
48
|
+
}
|
|
49
|
+
exports.getOrganizationRoleOutput = getOrganizationRoleOutput;
|
|
50
|
+
//# sourceMappingURL=getOrganizationRole.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getOrganizationRole.js","sourceRoot":"","sources":["../getOrganizationRole.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,mBAAmB,CAAC,IAA6B,EAAE,IAA2B;IAC1F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,sDAAsD,EAAE;QACjF,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,kDAKC;AA6CD;;;;;;;;;;;;;GAaG;AACH,SAAgB,yBAAyB,CAAC,IAAmC,EAAE,IAAiC;IAC5G,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,sDAAsD,EAAE;QACvF,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,8DAKC"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as outputs from "./types/output";
|
|
3
|
+
/**
|
|
4
|
+
* Lookup all teams assigned to a custom organization role.
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as github from "@pulumi/github";
|
|
11
|
+
*
|
|
12
|
+
* const example = github.getOrganizationRoleTeams({
|
|
13
|
+
* roleId: 1234,
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* ## Nested Schema for `teams`
|
|
18
|
+
*
|
|
19
|
+
* ### Read-Only
|
|
20
|
+
*
|
|
21
|
+
* - `teamId` (Number) The ID of the team.
|
|
22
|
+
* - `slug` (String) The Slug of the team name.
|
|
23
|
+
* - `name` (String) The name of the team.
|
|
24
|
+
* - `permission` (String) The permission that the team will have for its repositories.
|
|
25
|
+
*/
|
|
26
|
+
export declare function getOrganizationRoleTeams(args: GetOrganizationRoleTeamsArgs, opts?: pulumi.InvokeOptions): Promise<GetOrganizationRoleTeamsResult>;
|
|
27
|
+
/**
|
|
28
|
+
* A collection of arguments for invoking getOrganizationRoleTeams.
|
|
29
|
+
*/
|
|
30
|
+
export interface GetOrganizationRoleTeamsArgs {
|
|
31
|
+
/**
|
|
32
|
+
* The ID of the organization role.
|
|
33
|
+
*/
|
|
34
|
+
roleId: number;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* A collection of values returned by getOrganizationRoleTeams.
|
|
38
|
+
*/
|
|
39
|
+
export interface GetOrganizationRoleTeamsResult {
|
|
40
|
+
/**
|
|
41
|
+
* The provider-assigned unique ID for this managed resource.
|
|
42
|
+
*/
|
|
43
|
+
readonly id: string;
|
|
44
|
+
/**
|
|
45
|
+
* The ID of the organization role.
|
|
46
|
+
*/
|
|
47
|
+
readonly roleId: number;
|
|
48
|
+
/**
|
|
49
|
+
* (Set of Object, see schema) Teams assigned to the organization role.
|
|
50
|
+
*/
|
|
51
|
+
readonly teams: outputs.GetOrganizationRoleTeamsTeam[];
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Lookup all teams assigned to a custom organization role.
|
|
55
|
+
*
|
|
56
|
+
* ## Example Usage
|
|
57
|
+
*
|
|
58
|
+
* ```typescript
|
|
59
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
60
|
+
* import * as github from "@pulumi/github";
|
|
61
|
+
*
|
|
62
|
+
* const example = github.getOrganizationRoleTeams({
|
|
63
|
+
* roleId: 1234,
|
|
64
|
+
* });
|
|
65
|
+
* ```
|
|
66
|
+
*
|
|
67
|
+
* ## Nested Schema for `teams`
|
|
68
|
+
*
|
|
69
|
+
* ### Read-Only
|
|
70
|
+
*
|
|
71
|
+
* - `teamId` (Number) The ID of the team.
|
|
72
|
+
* - `slug` (String) The Slug of the team name.
|
|
73
|
+
* - `name` (String) The name of the team.
|
|
74
|
+
* - `permission` (String) The permission that the team will have for its repositories.
|
|
75
|
+
*/
|
|
76
|
+
export declare function getOrganizationRoleTeamsOutput(args: GetOrganizationRoleTeamsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetOrganizationRoleTeamsResult>;
|
|
77
|
+
/**
|
|
78
|
+
* A collection of arguments for invoking getOrganizationRoleTeams.
|
|
79
|
+
*/
|
|
80
|
+
export interface GetOrganizationRoleTeamsOutputArgs {
|
|
81
|
+
/**
|
|
82
|
+
* The ID of the organization role.
|
|
83
|
+
*/
|
|
84
|
+
roleId: pulumi.Input<number>;
|
|
85
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.getOrganizationRoleTeamsOutput = exports.getOrganizationRoleTeams = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Lookup all teams assigned to a custom organization role.
|
|
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.getOrganizationRoleTeams({
|
|
18
|
+
* roleId: 1234,
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* ## Nested Schema for `teams`
|
|
23
|
+
*
|
|
24
|
+
* ### Read-Only
|
|
25
|
+
*
|
|
26
|
+
* - `teamId` (Number) The ID of the team.
|
|
27
|
+
* - `slug` (String) The Slug of the team name.
|
|
28
|
+
* - `name` (String) The name of the team.
|
|
29
|
+
* - `permission` (String) The permission that the team will have for its repositories.
|
|
30
|
+
*/
|
|
31
|
+
function getOrganizationRoleTeams(args, opts) {
|
|
32
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
33
|
+
return pulumi.runtime.invoke("github:index/getOrganizationRoleTeams:getOrganizationRoleTeams", {
|
|
34
|
+
"roleId": args.roleId,
|
|
35
|
+
}, opts);
|
|
36
|
+
}
|
|
37
|
+
exports.getOrganizationRoleTeams = getOrganizationRoleTeams;
|
|
38
|
+
/**
|
|
39
|
+
* Lookup all teams assigned to a custom organization role.
|
|
40
|
+
*
|
|
41
|
+
* ## Example Usage
|
|
42
|
+
*
|
|
43
|
+
* ```typescript
|
|
44
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
45
|
+
* import * as github from "@pulumi/github";
|
|
46
|
+
*
|
|
47
|
+
* const example = github.getOrganizationRoleTeams({
|
|
48
|
+
* roleId: 1234,
|
|
49
|
+
* });
|
|
50
|
+
* ```
|
|
51
|
+
*
|
|
52
|
+
* ## Nested Schema for `teams`
|
|
53
|
+
*
|
|
54
|
+
* ### Read-Only
|
|
55
|
+
*
|
|
56
|
+
* - `teamId` (Number) The ID of the team.
|
|
57
|
+
* - `slug` (String) The Slug of the team name.
|
|
58
|
+
* - `name` (String) The name of the team.
|
|
59
|
+
* - `permission` (String) The permission that the team will have for its repositories.
|
|
60
|
+
*/
|
|
61
|
+
function getOrganizationRoleTeamsOutput(args, opts) {
|
|
62
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
63
|
+
return pulumi.runtime.invokeOutput("github:index/getOrganizationRoleTeams:getOrganizationRoleTeams", {
|
|
64
|
+
"roleId": args.roleId,
|
|
65
|
+
}, opts);
|
|
66
|
+
}
|
|
67
|
+
exports.getOrganizationRoleTeamsOutput = getOrganizationRoleTeamsOutput;
|
|
68
|
+
//# sourceMappingURL=getOrganizationRoleTeams.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getOrganizationRoleTeams.js","sourceRoot":"","sources":["../getOrganizationRoleTeams.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,SAAgB,wBAAwB,CAAC,IAAkC,EAAE,IAA2B;IACpG,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,gEAAgE,EAAE;QAC3F,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,4DAKC;AA6BD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,SAAgB,8BAA8B,CAAC,IAAwC,EAAE,IAAiC;IACtH,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,gEAAgE,EAAE;QACjG,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,wEAKC"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as outputs from "./types/output";
|
|
3
|
+
/**
|
|
4
|
+
* Lookup all users assigned to a custom organization role.
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as github from "@pulumi/github";
|
|
11
|
+
*
|
|
12
|
+
* const example = github.getOrganizationRoleUsers({
|
|
13
|
+
* roleId: 1234,
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* ## Nested Schema for `users`
|
|
18
|
+
*
|
|
19
|
+
* ### Read-Only
|
|
20
|
+
*
|
|
21
|
+
* - `userId` (Number) The ID of the user.
|
|
22
|
+
* - `login` (String) The login for the GitHub user account.
|
|
23
|
+
*/
|
|
24
|
+
export declare function getOrganizationRoleUsers(args: GetOrganizationRoleUsersArgs, opts?: pulumi.InvokeOptions): Promise<GetOrganizationRoleUsersResult>;
|
|
25
|
+
/**
|
|
26
|
+
* A collection of arguments for invoking getOrganizationRoleUsers.
|
|
27
|
+
*/
|
|
28
|
+
export interface GetOrganizationRoleUsersArgs {
|
|
29
|
+
/**
|
|
30
|
+
* The ID of the organization role.
|
|
31
|
+
*/
|
|
32
|
+
roleId: number;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* A collection of values returned by getOrganizationRoleUsers.
|
|
36
|
+
*/
|
|
37
|
+
export interface GetOrganizationRoleUsersResult {
|
|
38
|
+
/**
|
|
39
|
+
* The provider-assigned unique ID for this managed resource.
|
|
40
|
+
*/
|
|
41
|
+
readonly id: string;
|
|
42
|
+
/**
|
|
43
|
+
* The ID of the organization role.
|
|
44
|
+
*/
|
|
45
|
+
readonly roleId: number;
|
|
46
|
+
/**
|
|
47
|
+
* (Set of Object, see schema) Users assigned to the organization role.
|
|
48
|
+
*/
|
|
49
|
+
readonly users: outputs.GetOrganizationRoleUsersUser[];
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Lookup all users assigned to a custom organization role.
|
|
53
|
+
*
|
|
54
|
+
* ## Example Usage
|
|
55
|
+
*
|
|
56
|
+
* ```typescript
|
|
57
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
58
|
+
* import * as github from "@pulumi/github";
|
|
59
|
+
*
|
|
60
|
+
* const example = github.getOrganizationRoleUsers({
|
|
61
|
+
* roleId: 1234,
|
|
62
|
+
* });
|
|
63
|
+
* ```
|
|
64
|
+
*
|
|
65
|
+
* ## Nested Schema for `users`
|
|
66
|
+
*
|
|
67
|
+
* ### Read-Only
|
|
68
|
+
*
|
|
69
|
+
* - `userId` (Number) The ID of the user.
|
|
70
|
+
* - `login` (String) The login for the GitHub user account.
|
|
71
|
+
*/
|
|
72
|
+
export declare function getOrganizationRoleUsersOutput(args: GetOrganizationRoleUsersOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetOrganizationRoleUsersResult>;
|
|
73
|
+
/**
|
|
74
|
+
* A collection of arguments for invoking getOrganizationRoleUsers.
|
|
75
|
+
*/
|
|
76
|
+
export interface GetOrganizationRoleUsersOutputArgs {
|
|
77
|
+
/**
|
|
78
|
+
* The ID of the organization role.
|
|
79
|
+
*/
|
|
80
|
+
roleId: pulumi.Input<number>;
|
|
81
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.getOrganizationRoleUsersOutput = exports.getOrganizationRoleUsers = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Lookup all users assigned to a custom organization role.
|
|
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.getOrganizationRoleUsers({
|
|
18
|
+
* roleId: 1234,
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* ## Nested Schema for `users`
|
|
23
|
+
*
|
|
24
|
+
* ### Read-Only
|
|
25
|
+
*
|
|
26
|
+
* - `userId` (Number) The ID of the user.
|
|
27
|
+
* - `login` (String) The login for the GitHub user account.
|
|
28
|
+
*/
|
|
29
|
+
function getOrganizationRoleUsers(args, opts) {
|
|
30
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
31
|
+
return pulumi.runtime.invoke("github:index/getOrganizationRoleUsers:getOrganizationRoleUsers", {
|
|
32
|
+
"roleId": args.roleId,
|
|
33
|
+
}, opts);
|
|
34
|
+
}
|
|
35
|
+
exports.getOrganizationRoleUsers = getOrganizationRoleUsers;
|
|
36
|
+
/**
|
|
37
|
+
* Lookup all users assigned to a custom organization role.
|
|
38
|
+
*
|
|
39
|
+
* ## Example Usage
|
|
40
|
+
*
|
|
41
|
+
* ```typescript
|
|
42
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
43
|
+
* import * as github from "@pulumi/github";
|
|
44
|
+
*
|
|
45
|
+
* const example = github.getOrganizationRoleUsers({
|
|
46
|
+
* roleId: 1234,
|
|
47
|
+
* });
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
50
|
+
* ## Nested Schema for `users`
|
|
51
|
+
*
|
|
52
|
+
* ### Read-Only
|
|
53
|
+
*
|
|
54
|
+
* - `userId` (Number) The ID of the user.
|
|
55
|
+
* - `login` (String) The login for the GitHub user account.
|
|
56
|
+
*/
|
|
57
|
+
function getOrganizationRoleUsersOutput(args, opts) {
|
|
58
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
59
|
+
return pulumi.runtime.invokeOutput("github:index/getOrganizationRoleUsers:getOrganizationRoleUsers", {
|
|
60
|
+
"roleId": args.roleId,
|
|
61
|
+
}, opts);
|
|
62
|
+
}
|
|
63
|
+
exports.getOrganizationRoleUsersOutput = getOrganizationRoleUsersOutput;
|
|
64
|
+
//# sourceMappingURL=getOrganizationRoleUsers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getOrganizationRoleUsers.js","sourceRoot":"","sources":["../getOrganizationRoleUsers.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAgB,wBAAwB,CAAC,IAAkC,EAAE,IAA2B;IACpG,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,gEAAgE,EAAE;QAC3F,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,4DAKC;AA6BD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAgB,8BAA8B,CAAC,IAAwC,EAAE,IAAiC;IACtH,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,gEAAgE,EAAE;QACjG,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,wEAKC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as outputs from "./types/output";
|
|
3
|
+
/**
|
|
4
|
+
* Lookup all custom roles in an organization.
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as github from "@pulumi/github";
|
|
11
|
+
*
|
|
12
|
+
* const example = github.getOrganizationRoles({});
|
|
13
|
+
* ```
|
|
14
|
+
*
|
|
15
|
+
* ## Nested Schema for `roles`
|
|
16
|
+
*
|
|
17
|
+
* ### Read-Only
|
|
18
|
+
*
|
|
19
|
+
* - `roleId` (Number) The ID of the organization role.
|
|
20
|
+
* - `name` (String) The name of the organization role.
|
|
21
|
+
* - `description` (String) The description of the organization role.
|
|
22
|
+
* - `source` (String) The source of this role; one of `Predefined`, `Organization`, or `Enterprise`.
|
|
23
|
+
* - `baseRole` (String) The system role from which this role inherits permissions.
|
|
24
|
+
* - `permissions` (Set of String) The permissions included in this role.
|
|
25
|
+
*/
|
|
26
|
+
export declare function getOrganizationRoles(opts?: pulumi.InvokeOptions): Promise<GetOrganizationRolesResult>;
|
|
27
|
+
/**
|
|
28
|
+
* A collection of values returned by getOrganizationRoles.
|
|
29
|
+
*/
|
|
30
|
+
export interface GetOrganizationRolesResult {
|
|
31
|
+
/**
|
|
32
|
+
* The provider-assigned unique ID for this managed resource.
|
|
33
|
+
*/
|
|
34
|
+
readonly id: string;
|
|
35
|
+
/**
|
|
36
|
+
* (Set of Object, see schema) Available organization roles.
|
|
37
|
+
*/
|
|
38
|
+
readonly roles: outputs.GetOrganizationRolesRole[];
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Lookup all custom roles in an organization.
|
|
42
|
+
*
|
|
43
|
+
* ## Example Usage
|
|
44
|
+
*
|
|
45
|
+
* ```typescript
|
|
46
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
47
|
+
* import * as github from "@pulumi/github";
|
|
48
|
+
*
|
|
49
|
+
* const example = github.getOrganizationRoles({});
|
|
50
|
+
* ```
|
|
51
|
+
*
|
|
52
|
+
* ## Nested Schema for `roles`
|
|
53
|
+
*
|
|
54
|
+
* ### Read-Only
|
|
55
|
+
*
|
|
56
|
+
* - `roleId` (Number) The ID of the organization role.
|
|
57
|
+
* - `name` (String) The name of the organization role.
|
|
58
|
+
* - `description` (String) The description of the organization role.
|
|
59
|
+
* - `source` (String) The source of this role; one of `Predefined`, `Organization`, or `Enterprise`.
|
|
60
|
+
* - `baseRole` (String) The system role from which this role inherits permissions.
|
|
61
|
+
* - `permissions` (Set of String) The permissions included in this role.
|
|
62
|
+
*/
|
|
63
|
+
export declare function getOrganizationRolesOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetOrganizationRolesResult>;
|