@pulumi/github 5.6.0-alpha.1678231022 → 5.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/actionsEnvironmentSecret.d.ts +1 -1
- package/actionsEnvironmentSecret.js +1 -1
- package/actionsEnvironmentVariable.d.ts +144 -0
- package/actionsEnvironmentVariable.js +115 -0
- package/actionsEnvironmentVariable.js.map +1 -0
- package/actionsOrganizationVariable.d.ts +115 -0
- package/actionsOrganizationVariable.js +80 -0
- package/actionsOrganizationVariable.js.map +1 -0
- package/actionsVariable.d.ts +113 -0
- package/actionsVariable.js +91 -0
- package/actionsVariable.js.map +1 -0
- package/getActionsEnvironmentSecrets.d.ts +72 -0
- package/getActionsEnvironmentSecrets.js +51 -0
- package/getActionsEnvironmentSecrets.js.map +1 -0
- package/getActionsEnvironmentVariables.d.ts +75 -0
- package/getActionsEnvironmentVariables.js +51 -0
- package/getActionsEnvironmentVariables.js.map +1 -0
- package/getActionsOrganizationVariables.d.ts +28 -0
- package/getActionsOrganizationVariables.js +25 -0
- package/getActionsOrganizationVariables.js.map +1 -0
- package/getActionsVariables.d.ts +76 -0
- package/getActionsVariables.js +49 -0
- package/getActionsVariables.js.map +1 -0
- package/index.d.ts +20 -0
- package/index.js +29 -3
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/teamMembers.d.ts +3 -3
- package/types/output.d.ts +72 -0
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* This resource allows you to create and manage GitHub Actions variables within your GitHub repository environments.
|
|
4
|
+
* You must have write access to a repository to use this resource.
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as github from "@pulumi/github";
|
|
11
|
+
*
|
|
12
|
+
* const exampleVariable = new github.ActionsEnvironmentVariable("exampleVariable", {
|
|
13
|
+
* environment: "example_environment",
|
|
14
|
+
* value: "example_variable_value",
|
|
15
|
+
* variableName: "example_variable_name",
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* ```typescript
|
|
20
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
21
|
+
* import * as github from "@pulumi/github";
|
|
22
|
+
*
|
|
23
|
+
* const repo = github.getRepository({
|
|
24
|
+
* fullName: "my-org/repo",
|
|
25
|
+
* });
|
|
26
|
+
* const repoEnvironment = new github.RepositoryEnvironment("repoEnvironment", {
|
|
27
|
+
* repository: repo.then(repo => repo.name),
|
|
28
|
+
* environment: "example_environment",
|
|
29
|
+
* });
|
|
30
|
+
* const exampleVariable = new github.ActionsEnvironmentVariable("exampleVariable", {
|
|
31
|
+
* repository: repo.then(repo => repo.name),
|
|
32
|
+
* environment: repoEnvironment.environment,
|
|
33
|
+
* variableName: "example_variable_name",
|
|
34
|
+
* value: "example_variable_value",
|
|
35
|
+
* });
|
|
36
|
+
* ```
|
|
37
|
+
*
|
|
38
|
+
* ## Import
|
|
39
|
+
*
|
|
40
|
+
* This resource can be imported using an ID made up of the repository name, environment name, and variable name
|
|
41
|
+
*
|
|
42
|
+
* ```sh
|
|
43
|
+
* $ pulumi import github:index/actionsEnvironmentVariable:ActionsEnvironmentVariable test_variable myrepo:myenv:myvariable
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
export declare class ActionsEnvironmentVariable extends pulumi.CustomResource {
|
|
47
|
+
/**
|
|
48
|
+
* Get an existing ActionsEnvironmentVariable resource's state with the given name, ID, and optional extra
|
|
49
|
+
* properties used to qualify the lookup.
|
|
50
|
+
*
|
|
51
|
+
* @param name The _unique_ name of the resulting resource.
|
|
52
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
53
|
+
* @param state Any extra arguments used during the lookup.
|
|
54
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
55
|
+
*/
|
|
56
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ActionsEnvironmentVariableState, opts?: pulumi.CustomResourceOptions): ActionsEnvironmentVariable;
|
|
57
|
+
/**
|
|
58
|
+
* Returns true if the given object is an instance of ActionsEnvironmentVariable. This is designed to work even
|
|
59
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
60
|
+
*/
|
|
61
|
+
static isInstance(obj: any): obj is ActionsEnvironmentVariable;
|
|
62
|
+
/**
|
|
63
|
+
* Date of actionsEnvironmentSecret creation.
|
|
64
|
+
*/
|
|
65
|
+
readonly createdAt: pulumi.Output<string>;
|
|
66
|
+
/**
|
|
67
|
+
* Name of the environment.
|
|
68
|
+
*/
|
|
69
|
+
readonly environment: pulumi.Output<string>;
|
|
70
|
+
/**
|
|
71
|
+
* Name of the repository.
|
|
72
|
+
*/
|
|
73
|
+
readonly repository: pulumi.Output<string>;
|
|
74
|
+
/**
|
|
75
|
+
* Date of actionsEnvironmentSecret update.
|
|
76
|
+
*/
|
|
77
|
+
readonly updatedAt: pulumi.Output<string>;
|
|
78
|
+
/**
|
|
79
|
+
* Value of the variable
|
|
80
|
+
*/
|
|
81
|
+
readonly value: pulumi.Output<string>;
|
|
82
|
+
/**
|
|
83
|
+
* Name of the variable.
|
|
84
|
+
*/
|
|
85
|
+
readonly variableName: pulumi.Output<string>;
|
|
86
|
+
/**
|
|
87
|
+
* Create a ActionsEnvironmentVariable resource with the given unique name, arguments, and options.
|
|
88
|
+
*
|
|
89
|
+
* @param name The _unique_ name of the resource.
|
|
90
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
91
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
92
|
+
*/
|
|
93
|
+
constructor(name: string, args: ActionsEnvironmentVariableArgs, opts?: pulumi.CustomResourceOptions);
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Input properties used for looking up and filtering ActionsEnvironmentVariable resources.
|
|
97
|
+
*/
|
|
98
|
+
export interface ActionsEnvironmentVariableState {
|
|
99
|
+
/**
|
|
100
|
+
* Date of actionsEnvironmentSecret creation.
|
|
101
|
+
*/
|
|
102
|
+
createdAt?: pulumi.Input<string>;
|
|
103
|
+
/**
|
|
104
|
+
* Name of the environment.
|
|
105
|
+
*/
|
|
106
|
+
environment?: pulumi.Input<string>;
|
|
107
|
+
/**
|
|
108
|
+
* Name of the repository.
|
|
109
|
+
*/
|
|
110
|
+
repository?: pulumi.Input<string>;
|
|
111
|
+
/**
|
|
112
|
+
* Date of actionsEnvironmentSecret update.
|
|
113
|
+
*/
|
|
114
|
+
updatedAt?: pulumi.Input<string>;
|
|
115
|
+
/**
|
|
116
|
+
* Value of the variable
|
|
117
|
+
*/
|
|
118
|
+
value?: pulumi.Input<string>;
|
|
119
|
+
/**
|
|
120
|
+
* Name of the variable.
|
|
121
|
+
*/
|
|
122
|
+
variableName?: pulumi.Input<string>;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* The set of arguments for constructing a ActionsEnvironmentVariable resource.
|
|
126
|
+
*/
|
|
127
|
+
export interface ActionsEnvironmentVariableArgs {
|
|
128
|
+
/**
|
|
129
|
+
* Name of the environment.
|
|
130
|
+
*/
|
|
131
|
+
environment: pulumi.Input<string>;
|
|
132
|
+
/**
|
|
133
|
+
* Name of the repository.
|
|
134
|
+
*/
|
|
135
|
+
repository: pulumi.Input<string>;
|
|
136
|
+
/**
|
|
137
|
+
* Value of the variable
|
|
138
|
+
*/
|
|
139
|
+
value: pulumi.Input<string>;
|
|
140
|
+
/**
|
|
141
|
+
* Name of the variable.
|
|
142
|
+
*/
|
|
143
|
+
variableName: pulumi.Input<string>;
|
|
144
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
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.ActionsEnvironmentVariable = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* This resource allows you to create and manage GitHub Actions variables within your GitHub repository environments.
|
|
10
|
+
* You must have write access to a repository to use this resource.
|
|
11
|
+
*
|
|
12
|
+
* ## Example Usage
|
|
13
|
+
*
|
|
14
|
+
* ```typescript
|
|
15
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
16
|
+
* import * as github from "@pulumi/github";
|
|
17
|
+
*
|
|
18
|
+
* const exampleVariable = new github.ActionsEnvironmentVariable("exampleVariable", {
|
|
19
|
+
* environment: "example_environment",
|
|
20
|
+
* value: "example_variable_value",
|
|
21
|
+
* variableName: "example_variable_name",
|
|
22
|
+
* });
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* ```typescript
|
|
26
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
27
|
+
* import * as github from "@pulumi/github";
|
|
28
|
+
*
|
|
29
|
+
* const repo = github.getRepository({
|
|
30
|
+
* fullName: "my-org/repo",
|
|
31
|
+
* });
|
|
32
|
+
* const repoEnvironment = new github.RepositoryEnvironment("repoEnvironment", {
|
|
33
|
+
* repository: repo.then(repo => repo.name),
|
|
34
|
+
* environment: "example_environment",
|
|
35
|
+
* });
|
|
36
|
+
* const exampleVariable = new github.ActionsEnvironmentVariable("exampleVariable", {
|
|
37
|
+
* repository: repo.then(repo => repo.name),
|
|
38
|
+
* environment: repoEnvironment.environment,
|
|
39
|
+
* variableName: "example_variable_name",
|
|
40
|
+
* value: "example_variable_value",
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*
|
|
44
|
+
* ## Import
|
|
45
|
+
*
|
|
46
|
+
* This resource can be imported using an ID made up of the repository name, environment name, and variable name
|
|
47
|
+
*
|
|
48
|
+
* ```sh
|
|
49
|
+
* $ pulumi import github:index/actionsEnvironmentVariable:ActionsEnvironmentVariable test_variable myrepo:myenv:myvariable
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
class ActionsEnvironmentVariable extends pulumi.CustomResource {
|
|
53
|
+
/**
|
|
54
|
+
* Get an existing ActionsEnvironmentVariable resource's state with the given name, ID, and optional extra
|
|
55
|
+
* properties used to qualify the lookup.
|
|
56
|
+
*
|
|
57
|
+
* @param name The _unique_ name of the resulting resource.
|
|
58
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
59
|
+
* @param state Any extra arguments used during the lookup.
|
|
60
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
61
|
+
*/
|
|
62
|
+
static get(name, id, state, opts) {
|
|
63
|
+
return new ActionsEnvironmentVariable(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Returns true if the given object is an instance of ActionsEnvironmentVariable. This is designed to work even
|
|
67
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
68
|
+
*/
|
|
69
|
+
static isInstance(obj) {
|
|
70
|
+
if (obj === undefined || obj === null) {
|
|
71
|
+
return false;
|
|
72
|
+
}
|
|
73
|
+
return obj['__pulumiType'] === ActionsEnvironmentVariable.__pulumiType;
|
|
74
|
+
}
|
|
75
|
+
constructor(name, argsOrState, opts) {
|
|
76
|
+
let resourceInputs = {};
|
|
77
|
+
opts = opts || {};
|
|
78
|
+
if (opts.id) {
|
|
79
|
+
const state = argsOrState;
|
|
80
|
+
resourceInputs["createdAt"] = state ? state.createdAt : undefined;
|
|
81
|
+
resourceInputs["environment"] = state ? state.environment : undefined;
|
|
82
|
+
resourceInputs["repository"] = state ? state.repository : undefined;
|
|
83
|
+
resourceInputs["updatedAt"] = state ? state.updatedAt : undefined;
|
|
84
|
+
resourceInputs["value"] = state ? state.value : undefined;
|
|
85
|
+
resourceInputs["variableName"] = state ? state.variableName : undefined;
|
|
86
|
+
}
|
|
87
|
+
else {
|
|
88
|
+
const args = argsOrState;
|
|
89
|
+
if ((!args || args.environment === undefined) && !opts.urn) {
|
|
90
|
+
throw new Error("Missing required property 'environment'");
|
|
91
|
+
}
|
|
92
|
+
if ((!args || args.repository === undefined) && !opts.urn) {
|
|
93
|
+
throw new Error("Missing required property 'repository'");
|
|
94
|
+
}
|
|
95
|
+
if ((!args || args.value === undefined) && !opts.urn) {
|
|
96
|
+
throw new Error("Missing required property 'value'");
|
|
97
|
+
}
|
|
98
|
+
if ((!args || args.variableName === undefined) && !opts.urn) {
|
|
99
|
+
throw new Error("Missing required property 'variableName'");
|
|
100
|
+
}
|
|
101
|
+
resourceInputs["environment"] = args ? args.environment : undefined;
|
|
102
|
+
resourceInputs["repository"] = args ? args.repository : undefined;
|
|
103
|
+
resourceInputs["value"] = args ? args.value : undefined;
|
|
104
|
+
resourceInputs["variableName"] = args ? args.variableName : undefined;
|
|
105
|
+
resourceInputs["createdAt"] = undefined /*out*/;
|
|
106
|
+
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
107
|
+
}
|
|
108
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
109
|
+
super(ActionsEnvironmentVariable.__pulumiType, name, resourceInputs, opts);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
exports.ActionsEnvironmentVariable = ActionsEnvironmentVariable;
|
|
113
|
+
/** @internal */
|
|
114
|
+
ActionsEnvironmentVariable.__pulumiType = 'github:index/actionsEnvironmentVariable:ActionsEnvironmentVariable';
|
|
115
|
+
//# sourceMappingURL=actionsEnvironmentVariable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actionsEnvironmentVariable.js","sourceRoot":"","sources":["../actionsEnvironmentVariable.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,MAAa,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AAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,0BAA0B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/E,CAAC;;AA/FL,gEAgGC;AAlFG,gBAAgB;AACO,uCAAY,GAAG,oEAAoE,CAAC"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* This resource allows you to create and manage GitHub Actions variables within your GitHub organization.
|
|
4
|
+
* You must have write access to a repository to use this resource.
|
|
5
|
+
*
|
|
6
|
+
* ## Import
|
|
7
|
+
*
|
|
8
|
+
* This resource can be imported using an ID made up of the variable name
|
|
9
|
+
*
|
|
10
|
+
* ```sh
|
|
11
|
+
* $ pulumi import github:index/actionsOrganizationVariable:ActionsOrganizationVariable test_variable test_variable_name
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
export declare class ActionsOrganizationVariable extends pulumi.CustomResource {
|
|
15
|
+
/**
|
|
16
|
+
* Get an existing ActionsOrganizationVariable resource's state with the given name, ID, and optional extra
|
|
17
|
+
* properties used to qualify the lookup.
|
|
18
|
+
*
|
|
19
|
+
* @param name The _unique_ name of the resulting resource.
|
|
20
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
21
|
+
* @param state Any extra arguments used during the lookup.
|
|
22
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
23
|
+
*/
|
|
24
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ActionsOrganizationVariableState, opts?: pulumi.CustomResourceOptions): ActionsOrganizationVariable;
|
|
25
|
+
/**
|
|
26
|
+
* Returns true if the given object is an instance of ActionsOrganizationVariable. This is designed to work even
|
|
27
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
28
|
+
*/
|
|
29
|
+
static isInstance(obj: any): obj is ActionsOrganizationVariable;
|
|
30
|
+
/**
|
|
31
|
+
* Date of actionsVariable creation.
|
|
32
|
+
*/
|
|
33
|
+
readonly createdAt: pulumi.Output<string>;
|
|
34
|
+
/**
|
|
35
|
+
* An array of repository ids that can access the organization variable.
|
|
36
|
+
*/
|
|
37
|
+
readonly selectedRepositoryIds: pulumi.Output<number[] | undefined>;
|
|
38
|
+
/**
|
|
39
|
+
* Date of actionsVariable update.
|
|
40
|
+
*/
|
|
41
|
+
readonly updatedAt: pulumi.Output<string>;
|
|
42
|
+
/**
|
|
43
|
+
* Value of the variable
|
|
44
|
+
*/
|
|
45
|
+
readonly value: pulumi.Output<string>;
|
|
46
|
+
/**
|
|
47
|
+
* Name of the variable
|
|
48
|
+
*/
|
|
49
|
+
readonly variableName: pulumi.Output<string>;
|
|
50
|
+
/**
|
|
51
|
+
* Configures the access that repositories have to the organization variable.
|
|
52
|
+
* Must be one of `all`, `private`, `selected`. `selectedRepositoryIds` is required if set to `selected`.
|
|
53
|
+
*/
|
|
54
|
+
readonly visibility: pulumi.Output<string>;
|
|
55
|
+
/**
|
|
56
|
+
* Create a ActionsOrganizationVariable resource with the given unique name, arguments, and options.
|
|
57
|
+
*
|
|
58
|
+
* @param name The _unique_ name of the resource.
|
|
59
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
60
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
61
|
+
*/
|
|
62
|
+
constructor(name: string, args: ActionsOrganizationVariableArgs, opts?: pulumi.CustomResourceOptions);
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Input properties used for looking up and filtering ActionsOrganizationVariable resources.
|
|
66
|
+
*/
|
|
67
|
+
export interface ActionsOrganizationVariableState {
|
|
68
|
+
/**
|
|
69
|
+
* Date of actionsVariable creation.
|
|
70
|
+
*/
|
|
71
|
+
createdAt?: pulumi.Input<string>;
|
|
72
|
+
/**
|
|
73
|
+
* An array of repository ids that can access the organization variable.
|
|
74
|
+
*/
|
|
75
|
+
selectedRepositoryIds?: pulumi.Input<pulumi.Input<number>[]>;
|
|
76
|
+
/**
|
|
77
|
+
* Date of actionsVariable update.
|
|
78
|
+
*/
|
|
79
|
+
updatedAt?: pulumi.Input<string>;
|
|
80
|
+
/**
|
|
81
|
+
* Value of the variable
|
|
82
|
+
*/
|
|
83
|
+
value?: pulumi.Input<string>;
|
|
84
|
+
/**
|
|
85
|
+
* Name of the variable
|
|
86
|
+
*/
|
|
87
|
+
variableName?: pulumi.Input<string>;
|
|
88
|
+
/**
|
|
89
|
+
* Configures the access that repositories have to the organization variable.
|
|
90
|
+
* Must be one of `all`, `private`, `selected`. `selectedRepositoryIds` is required if set to `selected`.
|
|
91
|
+
*/
|
|
92
|
+
visibility?: pulumi.Input<string>;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* The set of arguments for constructing a ActionsOrganizationVariable resource.
|
|
96
|
+
*/
|
|
97
|
+
export interface ActionsOrganizationVariableArgs {
|
|
98
|
+
/**
|
|
99
|
+
* An array of repository ids that can access the organization variable.
|
|
100
|
+
*/
|
|
101
|
+
selectedRepositoryIds?: pulumi.Input<pulumi.Input<number>[]>;
|
|
102
|
+
/**
|
|
103
|
+
* Value of the variable
|
|
104
|
+
*/
|
|
105
|
+
value: pulumi.Input<string>;
|
|
106
|
+
/**
|
|
107
|
+
* Name of the variable
|
|
108
|
+
*/
|
|
109
|
+
variableName: pulumi.Input<string>;
|
|
110
|
+
/**
|
|
111
|
+
* Configures the access that repositories have to the organization variable.
|
|
112
|
+
* Must be one of `all`, `private`, `selected`. `selectedRepositoryIds` is required if set to `selected`.
|
|
113
|
+
*/
|
|
114
|
+
visibility: pulumi.Input<string>;
|
|
115
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
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.ActionsOrganizationVariable = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* This resource allows you to create and manage GitHub Actions variables within your GitHub organization.
|
|
10
|
+
* You must have write access to a repository to use this resource.
|
|
11
|
+
*
|
|
12
|
+
* ## Import
|
|
13
|
+
*
|
|
14
|
+
* This resource can be imported using an ID made up of the variable name
|
|
15
|
+
*
|
|
16
|
+
* ```sh
|
|
17
|
+
* $ pulumi import github:index/actionsOrganizationVariable:ActionsOrganizationVariable test_variable test_variable_name
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
class ActionsOrganizationVariable extends pulumi.CustomResource {
|
|
21
|
+
/**
|
|
22
|
+
* Get an existing ActionsOrganizationVariable resource's state with the given name, ID, and optional extra
|
|
23
|
+
* properties used to qualify the lookup.
|
|
24
|
+
*
|
|
25
|
+
* @param name The _unique_ name of the resulting resource.
|
|
26
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
27
|
+
* @param state Any extra arguments used during the lookup.
|
|
28
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
29
|
+
*/
|
|
30
|
+
static get(name, id, state, opts) {
|
|
31
|
+
return new ActionsOrganizationVariable(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Returns true if the given object is an instance of ActionsOrganizationVariable. This is designed to work even
|
|
35
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
36
|
+
*/
|
|
37
|
+
static isInstance(obj) {
|
|
38
|
+
if (obj === undefined || obj === null) {
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
return obj['__pulumiType'] === ActionsOrganizationVariable.__pulumiType;
|
|
42
|
+
}
|
|
43
|
+
constructor(name, argsOrState, opts) {
|
|
44
|
+
let resourceInputs = {};
|
|
45
|
+
opts = opts || {};
|
|
46
|
+
if (opts.id) {
|
|
47
|
+
const state = argsOrState;
|
|
48
|
+
resourceInputs["createdAt"] = state ? state.createdAt : undefined;
|
|
49
|
+
resourceInputs["selectedRepositoryIds"] = state ? state.selectedRepositoryIds : undefined;
|
|
50
|
+
resourceInputs["updatedAt"] = state ? state.updatedAt : undefined;
|
|
51
|
+
resourceInputs["value"] = state ? state.value : undefined;
|
|
52
|
+
resourceInputs["variableName"] = state ? state.variableName : undefined;
|
|
53
|
+
resourceInputs["visibility"] = state ? state.visibility : undefined;
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
const args = argsOrState;
|
|
57
|
+
if ((!args || args.value === undefined) && !opts.urn) {
|
|
58
|
+
throw new Error("Missing required property 'value'");
|
|
59
|
+
}
|
|
60
|
+
if ((!args || args.variableName === undefined) && !opts.urn) {
|
|
61
|
+
throw new Error("Missing required property 'variableName'");
|
|
62
|
+
}
|
|
63
|
+
if ((!args || args.visibility === undefined) && !opts.urn) {
|
|
64
|
+
throw new Error("Missing required property 'visibility'");
|
|
65
|
+
}
|
|
66
|
+
resourceInputs["selectedRepositoryIds"] = args ? args.selectedRepositoryIds : undefined;
|
|
67
|
+
resourceInputs["value"] = args ? args.value : undefined;
|
|
68
|
+
resourceInputs["variableName"] = args ? args.variableName : undefined;
|
|
69
|
+
resourceInputs["visibility"] = args ? args.visibility : undefined;
|
|
70
|
+
resourceInputs["createdAt"] = undefined /*out*/;
|
|
71
|
+
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
72
|
+
}
|
|
73
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
74
|
+
super(ActionsOrganizationVariable.__pulumiType, name, resourceInputs, opts);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
exports.ActionsOrganizationVariable = ActionsOrganizationVariable;
|
|
78
|
+
/** @internal */
|
|
79
|
+
ActionsOrganizationVariable.__pulumiType = 'github:index/actionsOrganizationVariable:ActionsOrganizationVariable';
|
|
80
|
+
//# sourceMappingURL=actionsOrganizationVariable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actionsOrganizationVariable.js","sourceRoot":"","sources":["../actionsOrganizationVariable.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;GAWG;AACH,MAAa,2BAA4B,SAAQ,MAAM,CAAC,cAAc;IAClE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwC,EAAE,IAAmC;QACtI,OAAO,IAAI,2BAA2B,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAClF,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,2BAA2B,CAAC,YAAY,CAAC;IAC5E,CAAC;IAoCD,YAAY,IAAY,EAAE,WAAgF,EAAE,IAAmC;QAC3I,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA2D,CAAC;YAC1E,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,uBAAuB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,qBAAqB,C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ACxD,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,2BAA2B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChF,CAAC;;AA7FL,kEA8FC;AAhFG,gBAAgB;AACO,wCAAY,GAAG,sEAAsE,CAAC"}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* This resource allows you to create and manage GitHub Actions variables within your GitHub repositories.
|
|
4
|
+
* You must have write access to a repository to use this resource.
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as github from "@pulumi/github";
|
|
11
|
+
*
|
|
12
|
+
* const exampleVariable = new github.ActionsVariable("exampleVariable", {
|
|
13
|
+
* repository: "example_repository",
|
|
14
|
+
* value: "example_variable_value",
|
|
15
|
+
* variableName: "example_variable_name",
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* ## Import
|
|
20
|
+
*
|
|
21
|
+
* GitHub Actions variables can be imported using an ID made up of `repository:variable_name`, e.g.
|
|
22
|
+
*
|
|
23
|
+
* ```sh
|
|
24
|
+
* $ pulumi import github:index/actionsVariable:ActionsVariable myvariable myrepo:myvariable
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
export declare class ActionsVariable extends pulumi.CustomResource {
|
|
28
|
+
/**
|
|
29
|
+
* Get an existing ActionsVariable resource's state with the given name, ID, and optional extra
|
|
30
|
+
* properties used to qualify the lookup.
|
|
31
|
+
*
|
|
32
|
+
* @param name The _unique_ name of the resulting resource.
|
|
33
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
34
|
+
* @param state Any extra arguments used during the lookup.
|
|
35
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
36
|
+
*/
|
|
37
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ActionsVariableState, opts?: pulumi.CustomResourceOptions): ActionsVariable;
|
|
38
|
+
/**
|
|
39
|
+
* Returns true if the given object is an instance of ActionsVariable. This is designed to work even
|
|
40
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
41
|
+
*/
|
|
42
|
+
static isInstance(obj: any): obj is ActionsVariable;
|
|
43
|
+
/**
|
|
44
|
+
* Date of actionsVariable creation.
|
|
45
|
+
*/
|
|
46
|
+
readonly createdAt: pulumi.Output<string>;
|
|
47
|
+
/**
|
|
48
|
+
* Name of the repository
|
|
49
|
+
*/
|
|
50
|
+
readonly repository: pulumi.Output<string>;
|
|
51
|
+
/**
|
|
52
|
+
* Date of actionsVariable update.
|
|
53
|
+
*/
|
|
54
|
+
readonly updatedAt: pulumi.Output<string>;
|
|
55
|
+
/**
|
|
56
|
+
* Value of the variable
|
|
57
|
+
*/
|
|
58
|
+
readonly value: pulumi.Output<string>;
|
|
59
|
+
/**
|
|
60
|
+
* Name of the variable
|
|
61
|
+
*/
|
|
62
|
+
readonly variableName: pulumi.Output<string>;
|
|
63
|
+
/**
|
|
64
|
+
* Create a ActionsVariable resource with the given unique name, arguments, and options.
|
|
65
|
+
*
|
|
66
|
+
* @param name The _unique_ name of the resource.
|
|
67
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
68
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
69
|
+
*/
|
|
70
|
+
constructor(name: string, args: ActionsVariableArgs, opts?: pulumi.CustomResourceOptions);
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Input properties used for looking up and filtering ActionsVariable resources.
|
|
74
|
+
*/
|
|
75
|
+
export interface ActionsVariableState {
|
|
76
|
+
/**
|
|
77
|
+
* Date of actionsVariable creation.
|
|
78
|
+
*/
|
|
79
|
+
createdAt?: pulumi.Input<string>;
|
|
80
|
+
/**
|
|
81
|
+
* Name of the repository
|
|
82
|
+
*/
|
|
83
|
+
repository?: pulumi.Input<string>;
|
|
84
|
+
/**
|
|
85
|
+
* Date of actionsVariable update.
|
|
86
|
+
*/
|
|
87
|
+
updatedAt?: pulumi.Input<string>;
|
|
88
|
+
/**
|
|
89
|
+
* Value of the variable
|
|
90
|
+
*/
|
|
91
|
+
value?: pulumi.Input<string>;
|
|
92
|
+
/**
|
|
93
|
+
* Name of the variable
|
|
94
|
+
*/
|
|
95
|
+
variableName?: pulumi.Input<string>;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* The set of arguments for constructing a ActionsVariable resource.
|
|
99
|
+
*/
|
|
100
|
+
export interface ActionsVariableArgs {
|
|
101
|
+
/**
|
|
102
|
+
* Name of the repository
|
|
103
|
+
*/
|
|
104
|
+
repository: pulumi.Input<string>;
|
|
105
|
+
/**
|
|
106
|
+
* Value of the variable
|
|
107
|
+
*/
|
|
108
|
+
value: pulumi.Input<string>;
|
|
109
|
+
/**
|
|
110
|
+
* Name of the variable
|
|
111
|
+
*/
|
|
112
|
+
variableName: pulumi.Input<string>;
|
|
113
|
+
}
|