@pulumi/github 5.2.1 → 5.3.0-alpha.1674582786

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.
Files changed (47) hide show
  1. package/actionsEnvironmentSecret.d.ts +3 -3
  2. package/actionsOrganizationOidcSubjectClaimCustomizationTemplate.d.ts +76 -0
  3. package/actionsOrganizationOidcSubjectClaimCustomizationTemplate.js +80 -0
  4. package/actionsOrganizationOidcSubjectClaimCustomizationTemplate.js.map +1 -0
  5. package/actionsOrganizationSecret.d.ts +3 -3
  6. package/actionsRepositoryAccessLevel.d.ts +85 -0
  7. package/actionsRepositoryAccessLevel.js +82 -0
  8. package/actionsRepositoryAccessLevel.js.map +1 -0
  9. package/actionsRepositoryOidcSubjectClaimCustomizationTemplate.d.ts +107 -0
  10. package/actionsRepositoryOidcSubjectClaimCustomizationTemplate.js +100 -0
  11. package/actionsRepositoryOidcSubjectClaimCustomizationTemplate.js.map +1 -0
  12. package/actionsRunnerGroup.d.ts +18 -2
  13. package/actionsRunnerGroup.js +4 -0
  14. package/actionsRunnerGroup.js.map +1 -1
  15. package/actionsSecret.d.ts +3 -3
  16. package/appInstallationRepositories.d.ts +2 -2
  17. package/appInstallationRepositories.js +2 -2
  18. package/branchProtectionV3.d.ts +3 -3
  19. package/branchProtectionV3.js +3 -3
  20. package/enterpriseOrganization.d.ts +51 -0
  21. package/enterpriseOrganization.js +66 -0
  22. package/enterpriseOrganization.js.map +1 -0
  23. package/getActionsOrganizationOidcSubjectClaimCustomizationTemplate.d.ts +27 -0
  24. package/getActionsOrganizationOidcSubjectClaimCustomizationTemplate.js +25 -0
  25. package/getActionsOrganizationOidcSubjectClaimCustomizationTemplate.js.map +1 -0
  26. package/getActionsRepositoryOidcSubjectClaimCustomizationTemplate.d.ts +67 -0
  27. package/getActionsRepositoryOidcSubjectClaimCustomizationTemplate.js +47 -0
  28. package/getActionsRepositoryOidcSubjectClaimCustomizationTemplate.js.map +1 -0
  29. package/getEnterprise.d.ts +56 -0
  30. package/getEnterprise.js +25 -0
  31. package/getEnterprise.js.map +1 -0
  32. package/getRepository.d.ts +4 -0
  33. package/getRepository.js.map +1 -1
  34. package/getRepositoryFile.d.ts +6 -6
  35. package/index.d.ts +20 -0
  36. package/index.js +31 -3
  37. package/index.js.map +1 -1
  38. package/package.json +2 -2
  39. package/package.json.dev +2 -2
  40. package/repository.d.ts +14 -2
  41. package/repository.js +3 -1
  42. package/repository.js.map +1 -1
  43. package/teamMembership.d.ts +0 -9
  44. package/teamMembership.js +0 -9
  45. package/teamMembership.js.map +1 -1
  46. package/types/input.d.ts +11 -5
  47. package/types/output.d.ts +17 -5
@@ -63,9 +63,11 @@ class ActionsRunnerGroup extends pulumi.CustomResource {
63
63
  resourceInputs["etag"] = state ? state.etag : undefined;
64
64
  resourceInputs["inherited"] = state ? state.inherited : undefined;
65
65
  resourceInputs["name"] = state ? state.name : undefined;
66
+ resourceInputs["restrictedToWorkflows"] = state ? state.restrictedToWorkflows : undefined;
66
67
  resourceInputs["runnersUrl"] = state ? state.runnersUrl : undefined;
67
68
  resourceInputs["selectedRepositoriesUrl"] = state ? state.selectedRepositoriesUrl : undefined;
68
69
  resourceInputs["selectedRepositoryIds"] = state ? state.selectedRepositoryIds : undefined;
70
+ resourceInputs["selectedWorkflows"] = state ? state.selectedWorkflows : undefined;
69
71
  resourceInputs["visibility"] = state ? state.visibility : undefined;
70
72
  }
71
73
  else {
@@ -80,8 +82,10 @@ class ActionsRunnerGroup extends pulumi.CustomResource {
80
82
  resourceInputs["default"] = undefined /*out*/;
81
83
  resourceInputs["etag"] = undefined /*out*/;
82
84
  resourceInputs["inherited"] = undefined /*out*/;
85
+ resourceInputs["restrictedToWorkflows"] = undefined /*out*/;
83
86
  resourceInputs["runnersUrl"] = undefined /*out*/;
84
87
  resourceInputs["selectedRepositoriesUrl"] = undefined /*out*/;
88
+ resourceInputs["selectedWorkflows"] = undefined /*out*/;
85
89
  }
86
90
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
87
91
  super(ActionsRunnerGroup.__pulumiType, name, resourceInputs, opts);
@@ -1 +1 @@
1
- {"version":3,"file":"actionsRunnerGroup.js","sourceRoot":"","sources":["../actionsRunnerGroup.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IACzD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA+B,EAAE,IAAmC;QAC7H,OAAO,IAAI,kBAAkB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACzE,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,kBAAkB,CAAC,YAAY,CAAC;IACnE,CAAC;IA+CD,YAAY,IAAY,EAAE,WAA8D,EAAE,IAAmC;QACzH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAkD,CAAC;YACjE,cAAc,CAAC,0BAA0B,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC,CAAC,SAAS,CAAC;YAChG,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,C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CAAC;YAC9D,cAAc,CAAC,mBAAmB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC3D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,kBAAkB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACvE,CAAC;;AApHL,gDAqHC;AAvGG,gBAAgB;AACO,+BAAY,GAAG,oDAAoD,CAAC"}
@@ -42,7 +42,7 @@ export declare class ActionsSecret extends pulumi.CustomResource {
42
42
  */
43
43
  readonly createdAt: pulumi.Output<string>;
44
44
  /**
45
- * Encrypted value of the secret using the Github public key in Base64 format.
45
+ * Encrypted value of the secret using the GitHub public key in Base64 format.
46
46
  */
47
47
  readonly encryptedValue: pulumi.Output<string | undefined>;
48
48
  /**
@@ -79,7 +79,7 @@ export interface ActionsSecretState {
79
79
  */
80
80
  createdAt?: pulumi.Input<string>;
81
81
  /**
82
- * Encrypted value of the secret using the Github public key in Base64 format.
82
+ * Encrypted value of the secret using the GitHub public key in Base64 format.
83
83
  */
84
84
  encryptedValue?: pulumi.Input<string>;
85
85
  /**
@@ -104,7 +104,7 @@ export interface ActionsSecretState {
104
104
  */
105
105
  export interface ActionsSecretArgs {
106
106
  /**
107
- * Encrypted value of the secret using the Github public key in Base64 format.
107
+ * Encrypted value of the secret using the GitHub public key in Base64 format.
108
108
  */
109
109
  encryptedValue?: pulumi.Input<string>;
110
110
  /**
@@ -14,10 +14,10 @@ import * as pulumi from "@pulumi/pulumi";
14
14
  *
15
15
  * ## Import
16
16
  *
17
- * GitHub App Installation Repository can be imported using an ID made up of `installation_id:repository`, e.g.
17
+ * GitHub App Installation Repositories can be imported using an ID made up of `installation_id`, e.g.
18
18
  *
19
19
  * ```sh
20
- * $ pulumi import github:index/appInstallationRepositories:AppInstallationRepositories terraform_repo 1234567:terraform
20
+ * $ pulumi import github:index/appInstallationRepositories:AppInstallationRepositories some_app_repos 1234567
21
21
  * ```
22
22
  */
23
23
  export declare class AppInstallationRepositories extends pulumi.CustomResource {
@@ -20,10 +20,10 @@ const utilities = require("./utilities");
20
20
  *
21
21
  * ## Import
22
22
  *
23
- * GitHub App Installation Repository can be imported using an ID made up of `installation_id:repository`, e.g.
23
+ * GitHub App Installation Repositories can be imported using an ID made up of `installation_id`, e.g.
24
24
  *
25
25
  * ```sh
26
- * $ pulumi import github:index/appInstallationRepositories:AppInstallationRepositories terraform_repo 1234567:terraform
26
+ * $ pulumi import github:index/appInstallationRepositories:AppInstallationRepositories some_app_repos 1234567
27
27
  * ```
28
28
  */
29
29
  class AppInstallationRepositories extends pulumi.CustomResource {
@@ -31,15 +31,15 @@ import * as outputs from "./types/output";
31
31
  * const exampleRepository = new github.Repository("exampleRepository", {});
32
32
  * const exampleTeam = new github.Team("exampleTeam", {});
33
33
  * // Protect the main branch of the foo repository. Additionally, require that
34
- * // the "ci/travis" context to be passing and only allow the engineers team merge
35
- * // to the branch.
34
+ * // the "ci/check" check ran by the Github Actions app is passing and only allow
35
+ * // the engineers team merge to the branch.
36
36
  * const exampleBranchProtectionV3 = new github.BranchProtectionV3("exampleBranchProtectionV3", {
37
37
  * repository: exampleRepository.name,
38
38
  * branch: "main",
39
39
  * enforceAdmins: true,
40
40
  * requiredStatusChecks: {
41
41
  * strict: false,
42
- * contexts: ["ci/travis"],
42
+ * checks: ["ci/check:824642007264"],
43
43
  * },
44
44
  * requiredPullRequestReviews: {
45
45
  * dismissStaleReviews: true,
@@ -35,15 +35,15 @@ const utilities = require("./utilities");
35
35
  * const exampleRepository = new github.Repository("exampleRepository", {});
36
36
  * const exampleTeam = new github.Team("exampleTeam", {});
37
37
  * // Protect the main branch of the foo repository. Additionally, require that
38
- * // the "ci/travis" context to be passing and only allow the engineers team merge
39
- * // to the branch.
38
+ * // the "ci/check" check ran by the Github Actions app is passing and only allow
39
+ * // the engineers team merge to the branch.
40
40
  * const exampleBranchProtectionV3 = new github.BranchProtectionV3("exampleBranchProtectionV3", {
41
41
  * repository: exampleRepository.name,
42
42
  * branch: "main",
43
43
  * enforceAdmins: true,
44
44
  * requiredStatusChecks: {
45
45
  * strict: false,
46
- * contexts: ["ci/travis"],
46
+ * checks: ["ci/check:824642007264"],
47
47
  * },
48
48
  * requiredPullRequestReviews: {
49
49
  * dismissStaleReviews: true,
@@ -0,0 +1,51 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ export declare class EnterpriseOrganization extends pulumi.CustomResource {
3
+ /**
4
+ * Get an existing EnterpriseOrganization resource's state with the given name, ID, and optional extra
5
+ * properties used to qualify the lookup.
6
+ *
7
+ * @param name The _unique_ name of the resulting resource.
8
+ * @param id The _unique_ provider ID of the resource to lookup.
9
+ * @param state Any extra arguments used during the lookup.
10
+ * @param opts Optional settings to control the behavior of the CustomResource.
11
+ */
12
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: EnterpriseOrganizationState, opts?: pulumi.CustomResourceOptions): EnterpriseOrganization;
13
+ /**
14
+ * Returns true if the given object is an instance of EnterpriseOrganization. This is designed to work even
15
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
16
+ */
17
+ static isInstance(obj: any): obj is EnterpriseOrganization;
18
+ readonly adminLogins: pulumi.Output<string[]>;
19
+ readonly billingEmail: pulumi.Output<string>;
20
+ readonly description: pulumi.Output<string | undefined>;
21
+ readonly enterpriseId: pulumi.Output<string>;
22
+ readonly name: pulumi.Output<string>;
23
+ /**
24
+ * Create a EnterpriseOrganization resource with the given unique name, arguments, and options.
25
+ *
26
+ * @param name The _unique_ name of the resource.
27
+ * @param args The arguments to use to populate this resource's properties.
28
+ * @param opts A bag of options that control this resource's behavior.
29
+ */
30
+ constructor(name: string, args: EnterpriseOrganizationArgs, opts?: pulumi.CustomResourceOptions);
31
+ }
32
+ /**
33
+ * Input properties used for looking up and filtering EnterpriseOrganization resources.
34
+ */
35
+ export interface EnterpriseOrganizationState {
36
+ adminLogins?: pulumi.Input<pulumi.Input<string>[]>;
37
+ billingEmail?: pulumi.Input<string>;
38
+ description?: pulumi.Input<string>;
39
+ enterpriseId?: pulumi.Input<string>;
40
+ name?: pulumi.Input<string>;
41
+ }
42
+ /**
43
+ * The set of arguments for constructing a EnterpriseOrganization resource.
44
+ */
45
+ export interface EnterpriseOrganizationArgs {
46
+ adminLogins: pulumi.Input<pulumi.Input<string>[]>;
47
+ billingEmail: pulumi.Input<string>;
48
+ description?: pulumi.Input<string>;
49
+ enterpriseId: pulumi.Input<string>;
50
+ name?: pulumi.Input<string>;
51
+ }
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
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.EnterpriseOrganization = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ class EnterpriseOrganization extends pulumi.CustomResource {
9
+ /**
10
+ * Get an existing EnterpriseOrganization resource's state with the given name, ID, and optional extra
11
+ * properties used to qualify the lookup.
12
+ *
13
+ * @param name The _unique_ name of the resulting resource.
14
+ * @param id The _unique_ provider ID of the resource to lookup.
15
+ * @param state Any extra arguments used during the lookup.
16
+ * @param opts Optional settings to control the behavior of the CustomResource.
17
+ */
18
+ static get(name, id, state, opts) {
19
+ return new EnterpriseOrganization(name, state, Object.assign(Object.assign({}, opts), { id: id }));
20
+ }
21
+ /**
22
+ * Returns true if the given object is an instance of EnterpriseOrganization. This is designed to work even
23
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
24
+ */
25
+ static isInstance(obj) {
26
+ if (obj === undefined || obj === null) {
27
+ return false;
28
+ }
29
+ return obj['__pulumiType'] === EnterpriseOrganization.__pulumiType;
30
+ }
31
+ constructor(name, argsOrState, opts) {
32
+ let resourceInputs = {};
33
+ opts = opts || {};
34
+ if (opts.id) {
35
+ const state = argsOrState;
36
+ resourceInputs["adminLogins"] = state ? state.adminLogins : undefined;
37
+ resourceInputs["billingEmail"] = state ? state.billingEmail : undefined;
38
+ resourceInputs["description"] = state ? state.description : undefined;
39
+ resourceInputs["enterpriseId"] = state ? state.enterpriseId : undefined;
40
+ resourceInputs["name"] = state ? state.name : undefined;
41
+ }
42
+ else {
43
+ const args = argsOrState;
44
+ if ((!args || args.adminLogins === undefined) && !opts.urn) {
45
+ throw new Error("Missing required property 'adminLogins'");
46
+ }
47
+ if ((!args || args.billingEmail === undefined) && !opts.urn) {
48
+ throw new Error("Missing required property 'billingEmail'");
49
+ }
50
+ if ((!args || args.enterpriseId === undefined) && !opts.urn) {
51
+ throw new Error("Missing required property 'enterpriseId'");
52
+ }
53
+ resourceInputs["adminLogins"] = args ? args.adminLogins : undefined;
54
+ resourceInputs["billingEmail"] = args ? args.billingEmail : undefined;
55
+ resourceInputs["description"] = args ? args.description : undefined;
56
+ resourceInputs["enterpriseId"] = args ? args.enterpriseId : undefined;
57
+ resourceInputs["name"] = args ? args.name : undefined;
58
+ }
59
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
60
+ super(EnterpriseOrganization.__pulumiType, name, resourceInputs, opts);
61
+ }
62
+ }
63
+ exports.EnterpriseOrganization = EnterpriseOrganization;
64
+ /** @internal */
65
+ EnterpriseOrganization.__pulumiType = 'github:index/enterpriseOrganization:EnterpriseOrganization';
66
+ //# sourceMappingURL=enterpriseOrganization.js.map
@@ -0,0 +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,CA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this data source to retrieve the OpenID Connect subject claim customization template for an organization
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.getActionsOrganizationOidcSubjectClaimCustomizationTemplate({});
12
+ * ```
13
+ */
14
+ export declare function getActionsOrganizationOidcSubjectClaimCustomizationTemplate(opts?: pulumi.InvokeOptions): Promise<GetActionsOrganizationOidcSubjectClaimCustomizationTemplateResult>;
15
+ /**
16
+ * A collection of values returned by getActionsOrganizationOidcSubjectClaimCustomizationTemplate.
17
+ */
18
+ export interface GetActionsOrganizationOidcSubjectClaimCustomizationTemplateResult {
19
+ /**
20
+ * The provider-assigned unique ID for this managed resource.
21
+ */
22
+ readonly id: string;
23
+ /**
24
+ * The list of OpenID Connect claim keys.
25
+ */
26
+ readonly includeClaimKeys: string[];
27
+ }
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
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.getActionsOrganizationOidcSubjectClaimCustomizationTemplate = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Use this data source to retrieve the OpenID Connect subject claim customization template for an organization
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.getActionsOrganizationOidcSubjectClaimCustomizationTemplate({});
18
+ * ```
19
+ */
20
+ function getActionsOrganizationOidcSubjectClaimCustomizationTemplate(opts) {
21
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
22
+ return pulumi.runtime.invoke("github:index/getActionsOrganizationOidcSubjectClaimCustomizationTemplate:getActionsOrganizationOidcSubjectClaimCustomizationTemplate", {}, opts);
23
+ }
24
+ exports.getActionsOrganizationOidcSubjectClaimCustomizationTemplate = getActionsOrganizationOidcSubjectClaimCustomizationTemplate;
25
+ //# sourceMappingURL=getActionsOrganizationOidcSubjectClaimCustomizationTemplate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getActionsOrganizationOidcSubjectClaimCustomizationTemplate.js","sourceRoot":"","sources":["../getActionsOrganizationOidcSubjectClaimCustomizationTemplate.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;GAWG;AACH,SAAgB,2DAA2D,CAAC,IAA2B;IAEnG,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,sIAAsI,EAAE,EACpK,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,kIAKC"}
@@ -0,0 +1,67 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Use this data source to retrieve the OpenID Connect subject claim customization template for a 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 = github.getActionsRepositoryOidcSubjectClaimCustomizationTemplate({
12
+ * name: "example_repository",
13
+ * });
14
+ * ```
15
+ */
16
+ export declare function getActionsRepositoryOidcSubjectClaimCustomizationTemplate(args: GetActionsRepositoryOidcSubjectClaimCustomizationTemplateArgs, opts?: pulumi.InvokeOptions): Promise<GetActionsRepositoryOidcSubjectClaimCustomizationTemplateResult>;
17
+ /**
18
+ * A collection of arguments for invoking getActionsRepositoryOidcSubjectClaimCustomizationTemplate.
19
+ */
20
+ export interface GetActionsRepositoryOidcSubjectClaimCustomizationTemplateArgs {
21
+ /**
22
+ * Name of the repository to get the OpenID Connect subject claim customization template for.
23
+ */
24
+ name: string;
25
+ }
26
+ /**
27
+ * A collection of values returned by getActionsRepositoryOidcSubjectClaimCustomizationTemplate.
28
+ */
29
+ export interface GetActionsRepositoryOidcSubjectClaimCustomizationTemplateResult {
30
+ /**
31
+ * The provider-assigned unique ID for this managed resource.
32
+ */
33
+ readonly id: string;
34
+ /**
35
+ * The list of OpenID Connect claim keys.
36
+ */
37
+ readonly includeClaimKeys: string[];
38
+ readonly name: string;
39
+ /**
40
+ * Whether the repository uses the default template.
41
+ */
42
+ readonly useDefault: boolean;
43
+ }
44
+ /**
45
+ * Use this data source to retrieve the OpenID Connect subject claim customization template for a repository
46
+ *
47
+ * ## Example Usage
48
+ *
49
+ * ```typescript
50
+ * import * as pulumi from "@pulumi/pulumi";
51
+ * import * as github from "@pulumi/github";
52
+ *
53
+ * const example = github.getActionsRepositoryOidcSubjectClaimCustomizationTemplate({
54
+ * name: "example_repository",
55
+ * });
56
+ * ```
57
+ */
58
+ export declare function getActionsRepositoryOidcSubjectClaimCustomizationTemplateOutput(args: GetActionsRepositoryOidcSubjectClaimCustomizationTemplateOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetActionsRepositoryOidcSubjectClaimCustomizationTemplateResult>;
59
+ /**
60
+ * A collection of arguments for invoking getActionsRepositoryOidcSubjectClaimCustomizationTemplate.
61
+ */
62
+ export interface GetActionsRepositoryOidcSubjectClaimCustomizationTemplateOutputArgs {
63
+ /**
64
+ * Name of the repository to get the OpenID Connect subject claim customization template for.
65
+ */
66
+ name: pulumi.Input<string>;
67
+ }
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
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.getActionsRepositoryOidcSubjectClaimCustomizationTemplateOutput = exports.getActionsRepositoryOidcSubjectClaimCustomizationTemplate = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Use this data source to retrieve the OpenID Connect subject claim customization template for a 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 = github.getActionsRepositoryOidcSubjectClaimCustomizationTemplate({
18
+ * name: "example_repository",
19
+ * });
20
+ * ```
21
+ */
22
+ function getActionsRepositoryOidcSubjectClaimCustomizationTemplate(args, opts) {
23
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
24
+ return pulumi.runtime.invoke("github:index/getActionsRepositoryOidcSubjectClaimCustomizationTemplate:getActionsRepositoryOidcSubjectClaimCustomizationTemplate", {
25
+ "name": args.name,
26
+ }, opts);
27
+ }
28
+ exports.getActionsRepositoryOidcSubjectClaimCustomizationTemplate = getActionsRepositoryOidcSubjectClaimCustomizationTemplate;
29
+ /**
30
+ * Use this data source to retrieve the OpenID Connect subject claim customization template for a repository
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.getActionsRepositoryOidcSubjectClaimCustomizationTemplate({
39
+ * name: "example_repository",
40
+ * });
41
+ * ```
42
+ */
43
+ function getActionsRepositoryOidcSubjectClaimCustomizationTemplateOutput(args, opts) {
44
+ return pulumi.output(args).apply((a) => getActionsRepositoryOidcSubjectClaimCustomizationTemplate(a, opts));
45
+ }
46
+ exports.getActionsRepositoryOidcSubjectClaimCustomizationTemplateOutput = getActionsRepositoryOidcSubjectClaimCustomizationTemplateOutput;
47
+ //# sourceMappingURL=getActionsRepositoryOidcSubjectClaimCustomizationTemplate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getActionsRepositoryOidcSubjectClaimCustomizationTemplate.js","sourceRoot":"","sources":["../getActionsRepositoryOidcSubjectClaimCustomizationTemplate.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,yDAAyD,CAAC,IAAmE,EAAE,IAA2B;IAEtK,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,kIAAkI,EAAE;QAC7J,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,8HAMC;AA8BD;;;;;;;;;;;;;GAaG;AACH,SAAgB,+DAA+D,CAAC,IAAyE,EAAE,IAA2B;IAClL,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,yDAAyD,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACpH,CAAC;AAFD,0IAEC"}
@@ -0,0 +1,56 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Use this data source to retrieve basic information about a GitHub enterprise.
4
+ */
5
+ export declare function getEnterprise(args: GetEnterpriseArgs, opts?: pulumi.InvokeOptions): Promise<GetEnterpriseResult>;
6
+ /**
7
+ * A collection of arguments for invoking getEnterprise.
8
+ */
9
+ export interface GetEnterpriseArgs {
10
+ /**
11
+ * The URL slug identifying the enterprise.
12
+ */
13
+ slug: string;
14
+ }
15
+ /**
16
+ * A collection of values returned by getEnterprise.
17
+ */
18
+ export interface GetEnterpriseResult {
19
+ /**
20
+ * The time the enterprise was created.
21
+ */
22
+ readonly createdAt: string;
23
+ /**
24
+ * The description of the enterpise.
25
+ */
26
+ readonly description: string;
27
+ /**
28
+ * The provider-assigned unique ID for this managed resource.
29
+ */
30
+ readonly id: string;
31
+ /**
32
+ * The name of the enteprise.
33
+ */
34
+ readonly name: string;
35
+ /**
36
+ * The URL slug identifying the enterprise.
37
+ */
38
+ readonly slug: string;
39
+ /**
40
+ * The url for the enterprise.
41
+ */
42
+ readonly url: string;
43
+ }
44
+ /**
45
+ * Use this data source to retrieve basic information about a GitHub enterprise.
46
+ */
47
+ export declare function getEnterpriseOutput(args: GetEnterpriseOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetEnterpriseResult>;
48
+ /**
49
+ * A collection of arguments for invoking getEnterprise.
50
+ */
51
+ export interface GetEnterpriseOutputArgs {
52
+ /**
53
+ * The URL slug identifying the enterprise.
54
+ */
55
+ slug: pulumi.Input<string>;
56
+ }
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
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.getEnterpriseOutput = exports.getEnterprise = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Use this data source to retrieve basic information about a GitHub enterprise.
10
+ */
11
+ function getEnterprise(args, opts) {
12
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
13
+ return pulumi.runtime.invoke("github:index/getEnterprise:getEnterprise", {
14
+ "slug": args.slug,
15
+ }, opts);
16
+ }
17
+ exports.getEnterprise = getEnterprise;
18
+ /**
19
+ * Use this data source to retrieve basic information about a GitHub enterprise.
20
+ */
21
+ function getEnterpriseOutput(args, opts) {
22
+ return pulumi.output(args).apply((a) => getEnterprise(a, opts));
23
+ }
24
+ exports.getEnterpriseOutput = getEnterpriseOutput;
25
+ //# sourceMappingURL=getEnterprise.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getEnterprise.js","sourceRoot":"","sources":["../getEnterprise.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;GAEG;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;;GAEG;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"}
@@ -73,6 +73,10 @@ export interface GetRepositoryResult {
73
73
  * URL that can be provided to `git clone` to clone the repository anonymously via the git protocol.
74
74
  */
75
75
  readonly gitCloneUrl: string;
76
+ /**
77
+ * Whether the repository has GitHub Discussions enabled.
78
+ */
79
+ readonly hasDiscussions: boolean;
76
80
  /**
77
81
  * Whether the repository has Downloads feature enabled.
78
82
  */
@@ -1 +1 @@
1
- {"version":3,"file":"getRepository.js","sourceRoot":"","sources":["../getRepository.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,aAAa,CAAC,IAAwB,EAAE,IAA2B;IAC/E,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,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,aAAa,EAAE,IAA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EAAE,IAAI,CAAC,CAAC,CAAA;AACxE,CAAC;AAFD,kDAEC"}
@@ -22,8 +22,8 @@ export declare function getRepositoryFile(args: GetRepositoryFileArgs, opts?: pu
22
22
  */
23
23
  export interface GetRepositoryFileArgs {
24
24
  /**
25
- * Git branch (defaults to `main`).
26
- * The branch must already exist, it will not be created if it does not already exist.
25
+ * Git branch (if omitted, the default repository branch is used, which is usually `main`)
26
+ * The branch must already exist; it will not be created if it does not already exist.
27
27
  */
28
28
  branch?: string;
29
29
  /**
@@ -31,7 +31,7 @@ export interface GetRepositoryFileArgs {
31
31
  */
32
32
  file: string;
33
33
  /**
34
- * The repository to create the file in.
34
+ * The repository to read the file from. If an unqualified repo name (without an owner) is passed, the owner will be inferred from the owner of the token used to execute the plan. If a name of the type "owner/repo" (with a slash in the middle) is passed, the owner will be as specified and not the owner of the token.
35
35
  */
36
36
  repository: string;
37
37
  }
@@ -94,8 +94,8 @@ export declare function getRepositoryFileOutput(args: GetRepositoryFileOutputArg
94
94
  */
95
95
  export interface GetRepositoryFileOutputArgs {
96
96
  /**
97
- * Git branch (defaults to `main`).
98
- * The branch must already exist, it will not be created if it does not already exist.
97
+ * Git branch (if omitted, the default repository branch is used, which is usually `main`)
98
+ * The branch must already exist; it will not be created if it does not already exist.
99
99
  */
100
100
  branch?: pulumi.Input<string>;
101
101
  /**
@@ -103,7 +103,7 @@ export interface GetRepositoryFileOutputArgs {
103
103
  */
104
104
  file: pulumi.Input<string>;
105
105
  /**
106
- * The repository to create the file in.
106
+ * The repository to read the file from. If an unqualified repo name (without an owner) is passed, the owner will be inferred from the owner of the token used to execute the plan. If a name of the type "owner/repo" (with a slash in the middle) is passed, the owner will be as specified and not the owner of the token.
107
107
  */
108
108
  repository: pulumi.Input<string>;
109
109
  }