@pulumi/gitlab 4.6.0 → 4.7.0-alpha.1648756283
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/branch.d.ts +3 -1
- package/branch.js +3 -1
- package/branch.js.map +1 -1
- package/branchProtection.d.ts +42 -6
- package/branchProtection.js +18 -8
- package/branchProtection.js.map +1 -1
- package/deployKey.d.ts +11 -4
- package/deployKey.js +5 -1
- package/deployKey.js.map +1 -1
- package/deployKeyEnable.d.ts +2 -2
- package/deployKeyEnable.js +2 -2
- package/deployToken.d.ts +24 -6
- package/deployToken.js +17 -1
- package/deployToken.js.map +1 -1
- package/getBranch.d.ts +3 -43
- package/getBranch.js +3 -1
- package/getBranch.js.map +1 -1
- package/getGroup.d.ts +3 -53
- package/getGroup.js +2 -2
- package/getGroup.js.map +1 -1
- package/getGroupMembership.d.ts +2 -32
- package/getGroupMembership.js +2 -2
- package/getGroupMembership.js.map +1 -1
- package/getInstanceDeployKeys.d.ts +46 -0
- package/getInstanceDeployKeys.js +42 -0
- package/getInstanceDeployKeys.js.map +1 -0
- package/getProject.d.ts +32 -88
- package/getProject.js +4 -1
- package/getProject.js.map +1 -1
- package/getProjectIssue.d.ts +91 -0
- package/getProjectIssue.js +44 -0
- package/getProjectIssue.js.map +1 -0
- package/getProjectIssues.d.ts +122 -0
- package/getProjectIssues.js +67 -0
- package/getProjectIssues.js.map +1 -0
- package/getProjectProtectedBranch.d.ts +3 -34
- package/getProjectProtectedBranch.js +3 -1
- package/getProjectProtectedBranch.js.map +1 -1
- package/getProjectProtectedBranches.d.ts +3 -13
- package/getProjectProtectedBranches.js +3 -1
- package/getProjectProtectedBranches.js.map +1 -1
- package/getProjectTag.d.ts +52 -0
- package/getProjectTag.js +41 -0
- package/getProjectTag.js.map +1 -0
- package/getProjectTags.d.ts +53 -0
- package/getProjectTags.js +42 -0
- package/getProjectTags.js.map +1 -0
- package/getProjects.d.ts +5 -195
- package/getProjects.js +5 -3
- package/getProjects.js.map +1 -1
- package/getRepositoryFile.d.ts +57 -0
- package/getRepositoryFile.js +42 -0
- package/getRepositoryFile.js.map +1 -0
- package/getUser.d.ts +4 -101
- package/getUser.js +4 -2
- package/getUser.js.map +1 -1
- package/getUsers.d.ts +6 -86
- package/getUsers.js +6 -2
- package/getUsers.js.map +1 -1
- package/group.d.ts +53 -38
- package/group.js +7 -2
- package/group.js.map +1 -1
- package/groupAccessToken.d.ts +15 -6
- package/groupAccessToken.js +5 -1
- package/groupAccessToken.js.map +1 -1
- package/groupBadge.d.ts +7 -7
- package/groupBadge.js +3 -3
- package/groupCluster.d.ts +8 -6
- package/groupCluster.js +5 -3
- package/groupCluster.js.map +1 -1
- package/groupCustomAttribute.d.ts +3 -1
- package/groupCustomAttribute.js +3 -1
- package/groupCustomAttribute.js.map +1 -1
- package/groupLabel.d.ts +9 -6
- package/groupLabel.js +3 -3
- package/groupLabel.js.map +1 -1
- package/groupLdapLink.d.ts +15 -7
- package/groupLdapLink.js +3 -1
- package/groupLdapLink.js.map +1 -1
- package/groupMembership.d.ts +11 -4
- package/groupMembership.js +5 -1
- package/groupMembership.js.map +1 -1
- package/groupShareGroup.d.ts +9 -4
- package/groupShareGroup.js +3 -1
- package/groupShareGroup.js.map +1 -1
- package/groupVariable.d.ts +27 -15
- package/groupVariable.js +3 -3
- package/groupVariable.js.map +1 -1
- package/index.d.ts +11 -0
- package/index.js +31 -0
- package/index.js.map +1 -1
- package/instanceCluster.d.ts +8 -6
- package/instanceCluster.js +5 -3
- package/instanceCluster.js.map +1 -1
- package/instanceVariable.d.ts +18 -12
- package/instanceVariable.js +3 -3
- package/instanceVariable.js.map +1 -1
- package/label.d.ts +17 -6
- package/label.js +11 -3
- package/label.js.map +1 -1
- package/managedLicense.d.ts +14 -7
- package/managedLicense.js +5 -4
- package/managedLicense.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/pipelineSchedule.d.ts +3 -3
- package/pipelineSchedule.js +3 -3
- package/pipelineScheduleVariable.d.ts +3 -1
- package/pipelineScheduleVariable.js +3 -1
- package/pipelineScheduleVariable.js.map +1 -1
- package/pipelineTrigger.d.ts +3 -1
- package/pipelineTrigger.js +3 -1
- package/pipelineTrigger.js.map +1 -1
- package/project.d.ts +372 -26
- package/project.js +59 -1
- package/project.js.map +1 -1
- package/projectAccessToken.d.ts +20 -8
- package/projectAccessToken.js +13 -1
- package/projectAccessToken.js.map +1 -1
- package/projectApprovalRule.d.ts +19 -2
- package/projectApprovalRule.js +6 -2
- package/projectApprovalRule.js.map +1 -1
- package/projectBadge.d.ts +7 -7
- package/projectBadge.js +3 -3
- package/projectCluster.d.ts +8 -6
- package/projectCluster.js +5 -3
- package/projectCluster.js.map +1 -1
- package/projectCustomAttribute.d.ts +3 -1
- package/projectCustomAttribute.js +3 -1
- package/projectCustomAttribute.js.map +1 -1
- package/projectEnvironment.d.ts +147 -0
- package/projectEnvironment.js +95 -0
- package/projectEnvironment.js.map +1 -0
- package/projectFreezePeriod.d.ts +3 -1
- package/projectFreezePeriod.js +3 -1
- package/projectFreezePeriod.js.map +1 -1
- package/projectHook.d.ts +16 -6
- package/projectHook.js +13 -3
- package/projectHook.js.map +1 -1
- package/projectIssue.d.ts +526 -0
- package/projectIssue.js +163 -0
- package/projectIssue.js.map +1 -0
- package/projectLevelMrApprovals.d.ts +11 -5
- package/projectLevelMrApprovals.js +5 -2
- package/projectLevelMrApprovals.js.map +1 -1
- package/projectMembership.d.ts +11 -4
- package/projectMembership.js +5 -1
- package/projectMembership.js.map +1 -1
- package/projectMirror.d.ts +4 -5
- package/projectMirror.js +4 -5
- package/projectMirror.js.map +1 -1
- package/projectProtectedEnvironment.d.ts +127 -0
- package/projectProtectedEnvironment.js +116 -0
- package/projectProtectedEnvironment.js.map +1 -0
- package/projectShareGroup.d.ts +15 -7
- package/projectShareGroup.js +3 -1
- package/projectShareGroup.js.map +1 -1
- package/projectTag.d.ts +149 -0
- package/projectTag.js +101 -0
- package/projectTag.js.map +1 -0
- package/projectVariable.d.ts +16 -16
- package/projectVariable.js +4 -7
- package/projectVariable.js.map +1 -1
- package/repositoryFile.d.ts +67 -8
- package/repositoryFile.js +14 -0
- package/repositoryFile.js.map +1 -1
- package/serviceGithub.d.ts +10 -5
- package/serviceGithub.js +4 -2
- package/serviceGithub.js.map +1 -1
- package/serviceJira.d.ts +15 -7
- package/serviceJira.js +3 -1
- package/serviceJira.js.map +1 -1
- package/serviceMicrosoftTeams.d.ts +9 -4
- package/serviceMicrosoftTeams.js +3 -1
- package/serviceMicrosoftTeams.js.map +1 -1
- package/servicePipelinesEmail.d.ts +9 -4
- package/servicePipelinesEmail.js +3 -1
- package/servicePipelinesEmail.js.map +1 -1
- package/serviceSlack.d.ts +13 -9
- package/serviceSlack.js +3 -1
- package/serviceSlack.js.map +1 -1
- package/systemHook.d.ts +165 -0
- package/systemHook.js +100 -0
- package/systemHook.js.map +1 -0
- package/tagProtection.d.ts +3 -1
- package/tagProtection.js +3 -1
- package/tagProtection.js.map +1 -1
- package/topic.d.ts +57 -25
- package/topic.js +10 -16
- package/topic.js.map +1 -1
- package/types/input.d.ts +42 -60
- package/types/output.d.ts +197 -102
- package/user.d.ts +18 -12
- package/user.js +6 -3
- package/user.js.map +1 -1
- package/userCustomAttribute.d.ts +3 -1
- package/userCustomAttribute.js +3 -1
- package/userCustomAttribute.js.map +1 -1
- package/userSshKey.d.ts +7 -4
- package/userSshKey.js +1 -1
- package/userSshKey.js.map +1 -1
package/projectTag.d.ts
ADDED
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import { input as inputs, output as outputs } from "./types";
|
|
3
|
+
/**
|
|
4
|
+
* The `gitlab.ProjectTag` resource allows to manage the lifecycle of a tag in a project.
|
|
5
|
+
*
|
|
6
|
+
* **Upstream API**: [GitLab API docs](https://docs.gitlab.com/ee/api/tags.html)
|
|
7
|
+
*
|
|
8
|
+
* ## Example Usage
|
|
9
|
+
*
|
|
10
|
+
* ```typescript
|
|
11
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
12
|
+
* import * as gitlab from "@pulumi/gitlab";
|
|
13
|
+
*
|
|
14
|
+
* // Create a project for the tag to use
|
|
15
|
+
* const exampleProject = new gitlab.Project("exampleProject", {
|
|
16
|
+
* description: "An example project",
|
|
17
|
+
* namespaceId: gitlab_group.example.id,
|
|
18
|
+
* });
|
|
19
|
+
* const exampleProjectTag = new gitlab.ProjectTag("exampleProjectTag", {
|
|
20
|
+
* ref: "main",
|
|
21
|
+
* project: exampleProject.id,
|
|
22
|
+
* });
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* ## Import
|
|
26
|
+
*
|
|
27
|
+
* # Gitlab project tags can be imported with a key composed of `<project_id>:<tag_name>`, e.g.
|
|
28
|
+
*
|
|
29
|
+
* ```sh
|
|
30
|
+
* $ pulumi import gitlab:index/projectTag:ProjectTag example "12345:develop"
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* # NOTEthe `ref` attribute won't be available for imported `gitlab_project_tag` resources.
|
|
34
|
+
*/
|
|
35
|
+
export declare class ProjectTag extends pulumi.CustomResource {
|
|
36
|
+
/**
|
|
37
|
+
* Get an existing ProjectTag resource's state with the given name, ID, and optional extra
|
|
38
|
+
* properties used to qualify the lookup.
|
|
39
|
+
*
|
|
40
|
+
* @param name The _unique_ name of the resulting resource.
|
|
41
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
42
|
+
* @param state Any extra arguments used during the lookup.
|
|
43
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
44
|
+
*/
|
|
45
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ProjectTagState, opts?: pulumi.CustomResourceOptions): ProjectTag;
|
|
46
|
+
/**
|
|
47
|
+
* Returns true if the given object is an instance of ProjectTag. This is designed to work even
|
|
48
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
49
|
+
*/
|
|
50
|
+
static isInstance(obj: any): obj is ProjectTag;
|
|
51
|
+
/**
|
|
52
|
+
* The commit associated with the tag.
|
|
53
|
+
*/
|
|
54
|
+
readonly commits: pulumi.Output<outputs.ProjectTagCommit[]>;
|
|
55
|
+
/**
|
|
56
|
+
* The message of the annotated tag.
|
|
57
|
+
*/
|
|
58
|
+
readonly message: pulumi.Output<string | undefined>;
|
|
59
|
+
/**
|
|
60
|
+
* The name of a tag.
|
|
61
|
+
*/
|
|
62
|
+
readonly name: pulumi.Output<string>;
|
|
63
|
+
/**
|
|
64
|
+
* The ID or URL-encoded path of the project owned by the authenticated user.
|
|
65
|
+
*/
|
|
66
|
+
readonly project: pulumi.Output<string>;
|
|
67
|
+
/**
|
|
68
|
+
* Bool, true if tag has tag protection.
|
|
69
|
+
*/
|
|
70
|
+
readonly protected: pulumi.Output<boolean>;
|
|
71
|
+
/**
|
|
72
|
+
* Create tag using commit SHA, another tag name, or branch name. This attribute is not available for imported resources.
|
|
73
|
+
*/
|
|
74
|
+
readonly ref: pulumi.Output<string>;
|
|
75
|
+
/**
|
|
76
|
+
* The release associated with the tag.
|
|
77
|
+
*/
|
|
78
|
+
readonly releases: pulumi.Output<outputs.ProjectTagRelease[]>;
|
|
79
|
+
/**
|
|
80
|
+
* The unique id assigned to the commit by Gitlab.
|
|
81
|
+
*/
|
|
82
|
+
readonly target: pulumi.Output<string>;
|
|
83
|
+
/**
|
|
84
|
+
* Create a ProjectTag resource with the given unique name, arguments, and options.
|
|
85
|
+
*
|
|
86
|
+
* @param name The _unique_ name of the resource.
|
|
87
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
88
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
89
|
+
*/
|
|
90
|
+
constructor(name: string, args: ProjectTagArgs, opts?: pulumi.CustomResourceOptions);
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Input properties used for looking up and filtering ProjectTag resources.
|
|
94
|
+
*/
|
|
95
|
+
export interface ProjectTagState {
|
|
96
|
+
/**
|
|
97
|
+
* The commit associated with the tag.
|
|
98
|
+
*/
|
|
99
|
+
commits?: pulumi.Input<pulumi.Input<inputs.ProjectTagCommit>[]>;
|
|
100
|
+
/**
|
|
101
|
+
* The message of the annotated tag.
|
|
102
|
+
*/
|
|
103
|
+
message?: pulumi.Input<string>;
|
|
104
|
+
/**
|
|
105
|
+
* The name of a tag.
|
|
106
|
+
*/
|
|
107
|
+
name?: pulumi.Input<string>;
|
|
108
|
+
/**
|
|
109
|
+
* The ID or URL-encoded path of the project owned by the authenticated user.
|
|
110
|
+
*/
|
|
111
|
+
project?: pulumi.Input<string>;
|
|
112
|
+
/**
|
|
113
|
+
* Bool, true if tag has tag protection.
|
|
114
|
+
*/
|
|
115
|
+
protected?: pulumi.Input<boolean>;
|
|
116
|
+
/**
|
|
117
|
+
* Create tag using commit SHA, another tag name, or branch name. This attribute is not available for imported resources.
|
|
118
|
+
*/
|
|
119
|
+
ref?: pulumi.Input<string>;
|
|
120
|
+
/**
|
|
121
|
+
* The release associated with the tag.
|
|
122
|
+
*/
|
|
123
|
+
releases?: pulumi.Input<pulumi.Input<inputs.ProjectTagRelease>[]>;
|
|
124
|
+
/**
|
|
125
|
+
* The unique id assigned to the commit by Gitlab.
|
|
126
|
+
*/
|
|
127
|
+
target?: pulumi.Input<string>;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* The set of arguments for constructing a ProjectTag resource.
|
|
131
|
+
*/
|
|
132
|
+
export interface ProjectTagArgs {
|
|
133
|
+
/**
|
|
134
|
+
* The message of the annotated tag.
|
|
135
|
+
*/
|
|
136
|
+
message?: pulumi.Input<string>;
|
|
137
|
+
/**
|
|
138
|
+
* The name of a tag.
|
|
139
|
+
*/
|
|
140
|
+
name?: pulumi.Input<string>;
|
|
141
|
+
/**
|
|
142
|
+
* The ID or URL-encoded path of the project owned by the authenticated user.
|
|
143
|
+
*/
|
|
144
|
+
project: pulumi.Input<string>;
|
|
145
|
+
/**
|
|
146
|
+
* Create tag using commit SHA, another tag name, or branch name. This attribute is not available for imported resources.
|
|
147
|
+
*/
|
|
148
|
+
ref: pulumi.Input<string>;
|
|
149
|
+
}
|
package/projectTag.js
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
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.ProjectTag = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* The `gitlab.ProjectTag` resource allows to manage the lifecycle of a tag in a project.
|
|
10
|
+
*
|
|
11
|
+
* **Upstream API**: [GitLab API docs](https://docs.gitlab.com/ee/api/tags.html)
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as gitlab from "@pulumi/gitlab";
|
|
18
|
+
*
|
|
19
|
+
* // Create a project for the tag to use
|
|
20
|
+
* const exampleProject = new gitlab.Project("exampleProject", {
|
|
21
|
+
* description: "An example project",
|
|
22
|
+
* namespaceId: gitlab_group.example.id,
|
|
23
|
+
* });
|
|
24
|
+
* const exampleProjectTag = new gitlab.ProjectTag("exampleProjectTag", {
|
|
25
|
+
* ref: "main",
|
|
26
|
+
* project: exampleProject.id,
|
|
27
|
+
* });
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* ## Import
|
|
31
|
+
*
|
|
32
|
+
* # Gitlab project tags can be imported with a key composed of `<project_id>:<tag_name>`, e.g.
|
|
33
|
+
*
|
|
34
|
+
* ```sh
|
|
35
|
+
* $ pulumi import gitlab:index/projectTag:ProjectTag example "12345:develop"
|
|
36
|
+
* ```
|
|
37
|
+
*
|
|
38
|
+
* # NOTEthe `ref` attribute won't be available for imported `gitlab_project_tag` resources.
|
|
39
|
+
*/
|
|
40
|
+
class ProjectTag extends pulumi.CustomResource {
|
|
41
|
+
constructor(name, argsOrState, opts) {
|
|
42
|
+
let resourceInputs = {};
|
|
43
|
+
opts = opts || {};
|
|
44
|
+
if (opts.id) {
|
|
45
|
+
const state = argsOrState;
|
|
46
|
+
resourceInputs["commits"] = state ? state.commits : undefined;
|
|
47
|
+
resourceInputs["message"] = state ? state.message : undefined;
|
|
48
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
49
|
+
resourceInputs["project"] = state ? state.project : undefined;
|
|
50
|
+
resourceInputs["protected"] = state ? state.protected : undefined;
|
|
51
|
+
resourceInputs["ref"] = state ? state.ref : undefined;
|
|
52
|
+
resourceInputs["releases"] = state ? state.releases : undefined;
|
|
53
|
+
resourceInputs["target"] = state ? state.target : undefined;
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
const args = argsOrState;
|
|
57
|
+
if ((!args || args.project === undefined) && !opts.urn) {
|
|
58
|
+
throw new Error("Missing required property 'project'");
|
|
59
|
+
}
|
|
60
|
+
if ((!args || args.ref === undefined) && !opts.urn) {
|
|
61
|
+
throw new Error("Missing required property 'ref'");
|
|
62
|
+
}
|
|
63
|
+
resourceInputs["message"] = args ? args.message : undefined;
|
|
64
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
65
|
+
resourceInputs["project"] = args ? args.project : undefined;
|
|
66
|
+
resourceInputs["ref"] = args ? args.ref : undefined;
|
|
67
|
+
resourceInputs["commits"] = undefined /*out*/;
|
|
68
|
+
resourceInputs["protected"] = undefined /*out*/;
|
|
69
|
+
resourceInputs["releases"] = undefined /*out*/;
|
|
70
|
+
resourceInputs["target"] = undefined /*out*/;
|
|
71
|
+
}
|
|
72
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
73
|
+
super(ProjectTag.__pulumiType, name, resourceInputs, opts);
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Get an existing ProjectTag resource's state with the given name, ID, and optional extra
|
|
77
|
+
* properties used to qualify the lookup.
|
|
78
|
+
*
|
|
79
|
+
* @param name The _unique_ name of the resulting resource.
|
|
80
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
81
|
+
* @param state Any extra arguments used during the lookup.
|
|
82
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
83
|
+
*/
|
|
84
|
+
static get(name, id, state, opts) {
|
|
85
|
+
return new ProjectTag(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Returns true if the given object is an instance of ProjectTag. This is designed to work even
|
|
89
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
90
|
+
*/
|
|
91
|
+
static isInstance(obj) {
|
|
92
|
+
if (obj === undefined || obj === null) {
|
|
93
|
+
return false;
|
|
94
|
+
}
|
|
95
|
+
return obj['__pulumiType'] === ProjectTag.__pulumiType;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
exports.ProjectTag = ProjectTag;
|
|
99
|
+
/** @internal */
|
|
100
|
+
ProjectTag.__pulumiType = 'gitlab:index/projectTag:ProjectTag';
|
|
101
|
+
//# sourceMappingURL=projectTag.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"projectTag.js","sourceRoot":"","sources":["../projectTag.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IAqEjD,YAAY,IAAY,EAAE,WAA8C,EAAE,IAAmC;QACzG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,G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nC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,UAAU,CAAC,YAAY,CAAC;IAC3D,CAAC;;AA1BL,gCAsGC;AAxFG,gBAAgB;AACO,uBAAY,GAAG,oCAAoC,CAAC"}
|
package/projectVariable.d.ts
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
* For further information on variables, consult the [gitlab
|
|
5
|
-
* documentation](https://docs.gitlab.com/ce/ci/variables/README.html#variables).
|
|
3
|
+
* The `gitlab.ProjectVariable` resource allows to manage the lifecycle of a CI/CD variable for a project.
|
|
6
4
|
*
|
|
7
|
-
* > **Important:** If your GitLab version is older than 13.4, you may see nondeterministic behavior
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* [this GitLab issue](https://gitlab.com/gitlab-org/gitlab/-/issues/9912).
|
|
5
|
+
* > **Important:** If your GitLab version is older than 13.4, you may see nondeterministic behavior when updating or deleting gitlab.ProjectVariable resources with non-unique keys, for example if there is another variable with the same key and different environment scope. See [this GitLab issue](https://gitlab.com/gitlab-org/gitlab/-/issues/9912).
|
|
6
|
+
*
|
|
7
|
+
* **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/project_level_variables.html)
|
|
11
8
|
*
|
|
12
9
|
* ## Example Usage
|
|
13
10
|
*
|
|
@@ -48,7 +45,7 @@ export declare class ProjectVariable extends pulumi.CustomResource {
|
|
|
48
45
|
*/
|
|
49
46
|
static isInstance(obj: any): obj is ProjectVariable;
|
|
50
47
|
/**
|
|
51
|
-
* The
|
|
48
|
+
* The environment_scope of the variable. Defaults to `*`.
|
|
52
49
|
*/
|
|
53
50
|
readonly environmentScope: pulumi.Output<string | undefined>;
|
|
54
51
|
/**
|
|
@@ -64,7 +61,8 @@ export declare class ProjectVariable extends pulumi.CustomResource {
|
|
|
64
61
|
*/
|
|
65
62
|
readonly project: pulumi.Output<string>;
|
|
66
63
|
/**
|
|
67
|
-
* If set to `true`, the variable will be passed only to pipelines running on protected branches and tags. Defaults to
|
|
64
|
+
* If set to `true`, the variable will be passed only to pipelines running on protected branches and tags. Defaults to
|
|
65
|
+
* `false`.
|
|
68
66
|
*/
|
|
69
67
|
readonly protected: pulumi.Output<boolean | undefined>;
|
|
70
68
|
/**
|
|
@@ -72,7 +70,7 @@ export declare class ProjectVariable extends pulumi.CustomResource {
|
|
|
72
70
|
*/
|
|
73
71
|
readonly value: pulumi.Output<string>;
|
|
74
72
|
/**
|
|
75
|
-
* The type of a variable. Available types are:
|
|
73
|
+
* The type of a variable. Available types are: env_var (default) and file.
|
|
76
74
|
*/
|
|
77
75
|
readonly variableType: pulumi.Output<string | undefined>;
|
|
78
76
|
/**
|
|
@@ -89,7 +87,7 @@ export declare class ProjectVariable extends pulumi.CustomResource {
|
|
|
89
87
|
*/
|
|
90
88
|
export interface ProjectVariableState {
|
|
91
89
|
/**
|
|
92
|
-
* The
|
|
90
|
+
* The environment_scope of the variable. Defaults to `*`.
|
|
93
91
|
*/
|
|
94
92
|
environmentScope?: pulumi.Input<string>;
|
|
95
93
|
/**
|
|
@@ -105,7 +103,8 @@ export interface ProjectVariableState {
|
|
|
105
103
|
*/
|
|
106
104
|
project?: pulumi.Input<string>;
|
|
107
105
|
/**
|
|
108
|
-
* If set to `true`, the variable will be passed only to pipelines running on protected branches and tags. Defaults to
|
|
106
|
+
* If set to `true`, the variable will be passed only to pipelines running on protected branches and tags. Defaults to
|
|
107
|
+
* `false`.
|
|
109
108
|
*/
|
|
110
109
|
protected?: pulumi.Input<boolean>;
|
|
111
110
|
/**
|
|
@@ -113,7 +112,7 @@ export interface ProjectVariableState {
|
|
|
113
112
|
*/
|
|
114
113
|
value?: pulumi.Input<string>;
|
|
115
114
|
/**
|
|
116
|
-
* The type of a variable. Available types are:
|
|
115
|
+
* The type of a variable. Available types are: env_var (default) and file.
|
|
117
116
|
*/
|
|
118
117
|
variableType?: pulumi.Input<string>;
|
|
119
118
|
}
|
|
@@ -122,7 +121,7 @@ export interface ProjectVariableState {
|
|
|
122
121
|
*/
|
|
123
122
|
export interface ProjectVariableArgs {
|
|
124
123
|
/**
|
|
125
|
-
* The
|
|
124
|
+
* The environment_scope of the variable. Defaults to `*`.
|
|
126
125
|
*/
|
|
127
126
|
environmentScope?: pulumi.Input<string>;
|
|
128
127
|
/**
|
|
@@ -138,7 +137,8 @@ export interface ProjectVariableArgs {
|
|
|
138
137
|
*/
|
|
139
138
|
project: pulumi.Input<string>;
|
|
140
139
|
/**
|
|
141
|
-
* If set to `true`, the variable will be passed only to pipelines running on protected branches and tags. Defaults to
|
|
140
|
+
* If set to `true`, the variable will be passed only to pipelines running on protected branches and tags. Defaults to
|
|
141
|
+
* `false`.
|
|
142
142
|
*/
|
|
143
143
|
protected?: pulumi.Input<boolean>;
|
|
144
144
|
/**
|
|
@@ -146,7 +146,7 @@ export interface ProjectVariableArgs {
|
|
|
146
146
|
*/
|
|
147
147
|
value: pulumi.Input<string>;
|
|
148
148
|
/**
|
|
149
|
-
* The type of a variable. Available types are:
|
|
149
|
+
* The type of a variable. Available types are: env_var (default) and file.
|
|
150
150
|
*/
|
|
151
151
|
variableType?: pulumi.Input<string>;
|
|
152
152
|
}
|
package/projectVariable.js
CHANGED
|
@@ -6,14 +6,11 @@ exports.ProjectVariable = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
* For further information on variables, consult the [gitlab
|
|
11
|
-
* documentation](https://docs.gitlab.com/ce/ci/variables/README.html#variables).
|
|
9
|
+
* The `gitlab.ProjectVariable` resource allows to manage the lifecycle of a CI/CD variable for a project.
|
|
12
10
|
*
|
|
13
|
-
* > **Important:** If your GitLab version is older than 13.4, you may see nondeterministic behavior
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* [this GitLab issue](https://gitlab.com/gitlab-org/gitlab/-/issues/9912).
|
|
11
|
+
* > **Important:** If your GitLab version is older than 13.4, you may see nondeterministic behavior when updating or deleting gitlab.ProjectVariable resources with non-unique keys, for example if there is another variable with the same key and different environment scope. See [this GitLab issue](https://gitlab.com/gitlab-org/gitlab/-/issues/9912).
|
|
12
|
+
*
|
|
13
|
+
* **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/project_level_variables.html)
|
|
17
14
|
*
|
|
18
15
|
* ## Example Usage
|
|
19
16
|
*
|
package/projectVariable.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projectVariable.js","sourceRoot":"","sources":["../projectVariable.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"projectVariable.js","sourceRoot":"","sources":["../projectVariable.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IAkEtD,YAAY,IAAY,EAAE,WAAwD,EAAE,IAAmC;QACnH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA+C,CAAC;YAC9D,cAAc,CAAC,kBAAkB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAC,SAAS,CAAC;YAChF,cAAc,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CA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A8C,CAAC"}
|
package/repositoryFile.d.ts
CHANGED
|
@@ -32,30 +32,59 @@ export declare class RepositoryFile extends pulumi.CustomResource {
|
|
|
32
32
|
* Name of the commit author.
|
|
33
33
|
*/
|
|
34
34
|
readonly authorName: pulumi.Output<string | undefined>;
|
|
35
|
+
/**
|
|
36
|
+
* The blob id.
|
|
37
|
+
*/
|
|
38
|
+
readonly blobId: pulumi.Output<string>;
|
|
35
39
|
/**
|
|
36
40
|
* Name of the branch to which to commit to.
|
|
37
41
|
*/
|
|
38
42
|
readonly branch: pulumi.Output<string>;
|
|
43
|
+
/**
|
|
44
|
+
* The commit id.
|
|
45
|
+
*/
|
|
46
|
+
readonly commitId: pulumi.Output<string>;
|
|
39
47
|
/**
|
|
40
48
|
* Commit message.
|
|
41
49
|
*/
|
|
42
50
|
readonly commitMessage: pulumi.Output<string>;
|
|
43
51
|
/**
|
|
44
|
-
*
|
|
52
|
+
* File content. If the content is not yet base64 encoded, it will be encoded automatically. No other encoding is currently
|
|
53
|
+
* supported, because of a [GitLab API bug](https://gitlab.com/gitlab-org/gitlab/-/issues/342430).
|
|
45
54
|
*/
|
|
46
55
|
readonly content: pulumi.Output<string>;
|
|
47
56
|
/**
|
|
48
|
-
*
|
|
57
|
+
* File content sha256 digest.
|
|
58
|
+
*/
|
|
59
|
+
readonly contentSha256: pulumi.Output<string>;
|
|
60
|
+
/**
|
|
61
|
+
* The file content encoding.
|
|
49
62
|
*/
|
|
50
63
|
readonly encoding: pulumi.Output<string>;
|
|
64
|
+
/**
|
|
65
|
+
* The filename.
|
|
66
|
+
*/
|
|
67
|
+
readonly fileName: pulumi.Output<string>;
|
|
51
68
|
/**
|
|
52
69
|
* The full path of the file. It must be relative to the root of the project without a leading slash `/`.
|
|
53
70
|
*/
|
|
54
71
|
readonly filePath: pulumi.Output<string>;
|
|
55
72
|
/**
|
|
56
|
-
* The
|
|
73
|
+
* The last known commit id.
|
|
74
|
+
*/
|
|
75
|
+
readonly lastCommitId: pulumi.Output<string>;
|
|
76
|
+
/**
|
|
77
|
+
* The name or ID of the project.
|
|
57
78
|
*/
|
|
58
79
|
readonly project: pulumi.Output<string>;
|
|
80
|
+
/**
|
|
81
|
+
* The name of branch, tag or commit.
|
|
82
|
+
*/
|
|
83
|
+
readonly ref: pulumi.Output<string>;
|
|
84
|
+
/**
|
|
85
|
+
* The file size.
|
|
86
|
+
*/
|
|
87
|
+
readonly size: pulumi.Output<number>;
|
|
59
88
|
/**
|
|
60
89
|
* Name of the branch to start the new commit from.
|
|
61
90
|
*/
|
|
@@ -81,30 +110,59 @@ export interface RepositoryFileState {
|
|
|
81
110
|
* Name of the commit author.
|
|
82
111
|
*/
|
|
83
112
|
authorName?: pulumi.Input<string>;
|
|
113
|
+
/**
|
|
114
|
+
* The blob id.
|
|
115
|
+
*/
|
|
116
|
+
blobId?: pulumi.Input<string>;
|
|
84
117
|
/**
|
|
85
118
|
* Name of the branch to which to commit to.
|
|
86
119
|
*/
|
|
87
120
|
branch?: pulumi.Input<string>;
|
|
121
|
+
/**
|
|
122
|
+
* The commit id.
|
|
123
|
+
*/
|
|
124
|
+
commitId?: pulumi.Input<string>;
|
|
88
125
|
/**
|
|
89
126
|
* Commit message.
|
|
90
127
|
*/
|
|
91
128
|
commitMessage?: pulumi.Input<string>;
|
|
92
129
|
/**
|
|
93
|
-
*
|
|
130
|
+
* File content. If the content is not yet base64 encoded, it will be encoded automatically. No other encoding is currently
|
|
131
|
+
* supported, because of a [GitLab API bug](https://gitlab.com/gitlab-org/gitlab/-/issues/342430).
|
|
94
132
|
*/
|
|
95
133
|
content?: pulumi.Input<string>;
|
|
96
134
|
/**
|
|
97
|
-
*
|
|
135
|
+
* File content sha256 digest.
|
|
136
|
+
*/
|
|
137
|
+
contentSha256?: pulumi.Input<string>;
|
|
138
|
+
/**
|
|
139
|
+
* The file content encoding.
|
|
98
140
|
*/
|
|
99
141
|
encoding?: pulumi.Input<string>;
|
|
142
|
+
/**
|
|
143
|
+
* The filename.
|
|
144
|
+
*/
|
|
145
|
+
fileName?: pulumi.Input<string>;
|
|
100
146
|
/**
|
|
101
147
|
* The full path of the file. It must be relative to the root of the project without a leading slash `/`.
|
|
102
148
|
*/
|
|
103
149
|
filePath?: pulumi.Input<string>;
|
|
104
150
|
/**
|
|
105
|
-
* The
|
|
151
|
+
* The last known commit id.
|
|
152
|
+
*/
|
|
153
|
+
lastCommitId?: pulumi.Input<string>;
|
|
154
|
+
/**
|
|
155
|
+
* The name or ID of the project.
|
|
106
156
|
*/
|
|
107
157
|
project?: pulumi.Input<string>;
|
|
158
|
+
/**
|
|
159
|
+
* The name of branch, tag or commit.
|
|
160
|
+
*/
|
|
161
|
+
ref?: pulumi.Input<string>;
|
|
162
|
+
/**
|
|
163
|
+
* The file size.
|
|
164
|
+
*/
|
|
165
|
+
size?: pulumi.Input<number>;
|
|
108
166
|
/**
|
|
109
167
|
* Name of the branch to start the new commit from.
|
|
110
168
|
*/
|
|
@@ -131,7 +189,8 @@ export interface RepositoryFileArgs {
|
|
|
131
189
|
*/
|
|
132
190
|
commitMessage: pulumi.Input<string>;
|
|
133
191
|
/**
|
|
134
|
-
*
|
|
192
|
+
* File content. If the content is not yet base64 encoded, it will be encoded automatically. No other encoding is currently
|
|
193
|
+
* supported, because of a [GitLab API bug](https://gitlab.com/gitlab-org/gitlab/-/issues/342430).
|
|
135
194
|
*/
|
|
136
195
|
content: pulumi.Input<string>;
|
|
137
196
|
/**
|
|
@@ -139,7 +198,7 @@ export interface RepositoryFileArgs {
|
|
|
139
198
|
*/
|
|
140
199
|
filePath: pulumi.Input<string>;
|
|
141
200
|
/**
|
|
142
|
-
* The ID of the project.
|
|
201
|
+
* The name or ID of the project.
|
|
143
202
|
*/
|
|
144
203
|
project: pulumi.Input<string>;
|
|
145
204
|
/**
|
package/repositoryFile.js
CHANGED
|
@@ -22,12 +22,19 @@ class RepositoryFile extends pulumi.CustomResource {
|
|
|
22
22
|
const state = argsOrState;
|
|
23
23
|
resourceInputs["authorEmail"] = state ? state.authorEmail : undefined;
|
|
24
24
|
resourceInputs["authorName"] = state ? state.authorName : undefined;
|
|
25
|
+
resourceInputs["blobId"] = state ? state.blobId : undefined;
|
|
25
26
|
resourceInputs["branch"] = state ? state.branch : undefined;
|
|
27
|
+
resourceInputs["commitId"] = state ? state.commitId : undefined;
|
|
26
28
|
resourceInputs["commitMessage"] = state ? state.commitMessage : undefined;
|
|
27
29
|
resourceInputs["content"] = state ? state.content : undefined;
|
|
30
|
+
resourceInputs["contentSha256"] = state ? state.contentSha256 : undefined;
|
|
28
31
|
resourceInputs["encoding"] = state ? state.encoding : undefined;
|
|
32
|
+
resourceInputs["fileName"] = state ? state.fileName : undefined;
|
|
29
33
|
resourceInputs["filePath"] = state ? state.filePath : undefined;
|
|
34
|
+
resourceInputs["lastCommitId"] = state ? state.lastCommitId : undefined;
|
|
30
35
|
resourceInputs["project"] = state ? state.project : undefined;
|
|
36
|
+
resourceInputs["ref"] = state ? state.ref : undefined;
|
|
37
|
+
resourceInputs["size"] = state ? state.size : undefined;
|
|
31
38
|
resourceInputs["startBranch"] = state ? state.startBranch : undefined;
|
|
32
39
|
}
|
|
33
40
|
else {
|
|
@@ -55,7 +62,14 @@ class RepositoryFile extends pulumi.CustomResource {
|
|
|
55
62
|
resourceInputs["filePath"] = args ? args.filePath : undefined;
|
|
56
63
|
resourceInputs["project"] = args ? args.project : undefined;
|
|
57
64
|
resourceInputs["startBranch"] = args ? args.startBranch : undefined;
|
|
65
|
+
resourceInputs["blobId"] = undefined /*out*/;
|
|
66
|
+
resourceInputs["commitId"] = undefined /*out*/;
|
|
67
|
+
resourceInputs["contentSha256"] = undefined /*out*/;
|
|
58
68
|
resourceInputs["encoding"] = undefined /*out*/;
|
|
69
|
+
resourceInputs["fileName"] = undefined /*out*/;
|
|
70
|
+
resourceInputs["lastCommitId"] = undefined /*out*/;
|
|
71
|
+
resourceInputs["ref"] = undefined /*out*/;
|
|
72
|
+
resourceInputs["size"] = undefined /*out*/;
|
|
59
73
|
}
|
|
60
74
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
61
75
|
super(RepositoryFile.__pulumiType, name, resourceInputs, opts);
|
package/repositoryFile.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repositoryFile.js","sourceRoot":"","sources":["../repositoryFile.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;GAQG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"repositoryFile.js","sourceRoot":"","sources":["../repositoryFile.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;GAQG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IAsGrD,YAAY,IAAY,EAAE,WAAsD,EAAE,IAAmC;QACjH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA8C,CAAC;YAC7D,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,UAAU,CAAC,GAAG,K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IACnE,CAAC;IA9JD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA2B,EAAE,IAAmC;QACzH,OAAO,IAAI,cAAc,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACrE,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,cAAc,CAAC,YAAY,CAAC;IAC/D,CAAC;;AA1BL,wCAgKC;AAlJG,gBAAgB;AACO,2BAAY,GAAG,4CAA4C,CAAC"}
|
package/serviceGithub.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* The `gitlab.ServiceGithub` resource allows to manage the lifecycle of a project integration with GitHub.
|
|
4
4
|
*
|
|
5
|
-
* This resource
|
|
5
|
+
* > This resource requires a GitLab Enterprise instance.
|
|
6
|
+
*
|
|
7
|
+
* **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#github)
|
|
6
8
|
*
|
|
7
9
|
* ## Example Usage
|
|
8
10
|
*
|
|
@@ -64,7 +66,8 @@ export declare class ServiceGithub extends pulumi.CustomResource {
|
|
|
64
66
|
*/
|
|
65
67
|
readonly repositoryUrl: pulumi.Output<string>;
|
|
66
68
|
/**
|
|
67
|
-
* Append instance name instead of branch to the status. Must enable to set a GitLab status check as
|
|
69
|
+
* Append instance name instead of branch to the status. Must enable to set a GitLab status check as _required_ in GitHub.
|
|
70
|
+
* See [Static / dynamic status check names] to learn more.
|
|
68
71
|
*/
|
|
69
72
|
readonly staticContext: pulumi.Output<boolean | undefined>;
|
|
70
73
|
/**
|
|
@@ -109,7 +112,8 @@ export interface ServiceGithubState {
|
|
|
109
112
|
*/
|
|
110
113
|
repositoryUrl?: pulumi.Input<string>;
|
|
111
114
|
/**
|
|
112
|
-
* Append instance name instead of branch to the status. Must enable to set a GitLab status check as
|
|
115
|
+
* Append instance name instead of branch to the status. Must enable to set a GitLab status check as _required_ in GitHub.
|
|
116
|
+
* See [Static / dynamic status check names] to learn more.
|
|
113
117
|
*/
|
|
114
118
|
staticContext?: pulumi.Input<boolean>;
|
|
115
119
|
/**
|
|
@@ -138,7 +142,8 @@ export interface ServiceGithubArgs {
|
|
|
138
142
|
*/
|
|
139
143
|
repositoryUrl: pulumi.Input<string>;
|
|
140
144
|
/**
|
|
141
|
-
* Append instance name instead of branch to the status. Must enable to set a GitLab status check as
|
|
145
|
+
* Append instance name instead of branch to the status. Must enable to set a GitLab status check as _required_ in GitHub.
|
|
146
|
+
* See [Static / dynamic status check names] to learn more.
|
|
142
147
|
*/
|
|
143
148
|
staticContext?: pulumi.Input<boolean>;
|
|
144
149
|
/**
|
package/serviceGithub.js
CHANGED
|
@@ -6,9 +6,11 @@ exports.ServiceGithub = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* The `gitlab.ServiceGithub` resource allows to manage the lifecycle of a project integration with GitHub.
|
|
10
10
|
*
|
|
11
|
-
* This resource
|
|
11
|
+
* > This resource requires a GitLab Enterprise instance.
|
|
12
|
+
*
|
|
13
|
+
* **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#github)
|
|
12
14
|
*
|
|
13
15
|
* ## Example Usage
|
|
14
16
|
*
|