@pulumi/gitlab 4.8.0-alpha.1654086454 → 4.8.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.
Files changed (130) hide show
  1. package/clusterAgent.d.ts +128 -0
  2. package/clusterAgent.js +104 -0
  3. package/clusterAgent.js.map +1 -0
  4. package/clusterAgentToken.d.ts +151 -0
  5. package/clusterAgentToken.js +92 -0
  6. package/clusterAgentToken.js.map +1 -0
  7. package/deployKey.d.ts +8 -7
  8. package/deployKey.js +5 -1
  9. package/deployKey.js.map +1 -1
  10. package/deployKeyEnable.d.ts +9 -5
  11. package/deployKeyEnable.js +5 -1
  12. package/deployKeyEnable.js.map +1 -1
  13. package/getClusterAgent.d.ts +50 -0
  14. package/getClusterAgent.js +42 -0
  15. package/getClusterAgent.js.map +1 -0
  16. package/getClusterAgents.d.ts +45 -0
  17. package/getClusterAgents.js +40 -0
  18. package/getClusterAgents.js.map +1 -0
  19. package/getCurrentUser.d.ts +30 -0
  20. package/getCurrentUser.js +30 -0
  21. package/getCurrentUser.js.map +1 -0
  22. package/getGroupVariable.d.ts +58 -0
  23. package/getGroupVariable.js +47 -0
  24. package/getGroupVariable.js.map +1 -0
  25. package/getGroupVariables.d.ts +51 -0
  26. package/getGroupVariables.js +44 -0
  27. package/getGroupVariables.js.map +1 -0
  28. package/getInstanceVariable.d.ts +45 -0
  29. package/getInstanceVariable.js +38 -0
  30. package/getInstanceVariable.js.map +1 -0
  31. package/getInstanceVariables.d.ts +27 -0
  32. package/getInstanceVariables.js +30 -0
  33. package/getInstanceVariables.js.map +1 -0
  34. package/getProject.d.ts +3 -0
  35. package/getProject.js +1 -0
  36. package/getProject.js.map +1 -1
  37. package/getProjectIssues.d.ts +3 -3
  38. package/getProjectIssues.js +1 -1
  39. package/getProjectIssues.js.map +1 -1
  40. package/getProjectMilestone.d.ts +57 -0
  41. package/getProjectMilestone.js +41 -0
  42. package/getProjectMilestone.js.map +1 -0
  43. package/getProjectMilestones.d.ts +59 -0
  44. package/getProjectMilestones.js +44 -0
  45. package/getProjectMilestones.js.map +1 -0
  46. package/getProjectVariable.d.ts +58 -0
  47. package/getProjectVariable.js +47 -0
  48. package/getProjectVariable.js.map +1 -0
  49. package/getProjectVariables.d.ts +51 -0
  50. package/getProjectVariables.js +44 -0
  51. package/getProjectVariables.js.map +1 -0
  52. package/getReleaseLink.d.ts +56 -0
  53. package/getReleaseLink.js +43 -0
  54. package/getReleaseLink.js.map +1 -0
  55. package/getReleaseLinks.d.ts +48 -0
  56. package/getReleaseLinks.js +41 -0
  57. package/getReleaseLinks.js.map +1 -0
  58. package/getRepositoryFile.d.ts +1 -0
  59. package/getRepositoryFile.js.map +1 -1
  60. package/getUser.d.ts +3 -0
  61. package/getUser.js +1 -0
  62. package/getUser.js.map +1 -1
  63. package/groupAccessToken.d.ts +3 -3
  64. package/groupProjectFileTemplate.d.ts +76 -0
  65. package/groupProjectFileTemplate.js +67 -0
  66. package/groupProjectFileTemplate.js.map +1 -0
  67. package/groupShareGroup.d.ts +6 -6
  68. package/groupVariable.d.ts +6 -9
  69. package/groupVariable.js.map +1 -1
  70. package/index.d.ts +22 -0
  71. package/index.js +58 -0
  72. package/index.js.map +1 -1
  73. package/instanceVariable.d.ts +8 -8
  74. package/instanceVariable.js +2 -2
  75. package/package.json +2 -2
  76. package/package.json.dev +2 -2
  77. package/personalAccessToken.d.ts +159 -0
  78. package/personalAccessToken.js +104 -0
  79. package/personalAccessToken.js.map +1 -0
  80. package/project.d.ts +66 -19
  81. package/project.js +16 -13
  82. package/project.js.map +1 -1
  83. package/projectAccessToken.d.ts +16 -0
  84. package/projectAccessToken.js +3 -0
  85. package/projectAccessToken.js.map +1 -1
  86. package/projectBadge.d.ts +12 -0
  87. package/projectBadge.js +2 -0
  88. package/projectBadge.js.map +1 -1
  89. package/projectIssue.d.ts +2 -42
  90. package/projectIssue.js +10 -10
  91. package/projectIssue.js.map +1 -1
  92. package/projectMembership.d.ts +16 -3
  93. package/projectMembership.js +3 -0
  94. package/projectMembership.js.map +1 -1
  95. package/projectMilestone.d.ts +194 -0
  96. package/projectMilestone.js +109 -0
  97. package/projectMilestone.js.map +1 -0
  98. package/projectMirror.d.ts +4 -0
  99. package/projectMirror.js +4 -0
  100. package/projectMirror.js.map +1 -1
  101. package/projectProtectedEnvironment.d.ts +55 -30
  102. package/projectProtectedEnvironment.js +42 -27
  103. package/projectProtectedEnvironment.js.map +1 -1
  104. package/projectRunnerEnablement.d.ts +85 -0
  105. package/projectRunnerEnablement.js +82 -0
  106. package/projectRunnerEnablement.js.map +1 -0
  107. package/projectShareGroup.d.ts +6 -6
  108. package/projectVariable.d.ts +15 -9
  109. package/projectVariable.js.map +1 -1
  110. package/releaseLink.d.ts +166 -0
  111. package/releaseLink.js +103 -0
  112. package/releaseLink.js.map +1 -0
  113. package/repositoryFile.d.ts +12 -0
  114. package/repositoryFile.js +2 -0
  115. package/repositoryFile.js.map +1 -1
  116. package/runner.d.ts +166 -0
  117. package/runner.js +86 -0
  118. package/runner.js.map +1 -0
  119. package/serviceExternalWiki.d.ts +131 -0
  120. package/serviceExternalWiki.js +96 -0
  121. package/serviceExternalWiki.js.map +1 -0
  122. package/serviceJira.d.ts +3 -3
  123. package/topic.d.ts +12 -0
  124. package/topic.js +2 -0
  125. package/topic.js.map +1 -1
  126. package/types/input.d.ts +1 -1
  127. package/types/output.d.ts +62 -2
  128. package/user.d.ts +12 -0
  129. package/user.js +2 -0
  130. package/user.js.map +1 -1
@@ -0,0 +1,128 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * The `gitlab.ClusterAgent` resource allows to manage the lifecycle of a GitLab Agent for Kubernetes.
4
+ *
5
+ * > Note that this resource only registers the agent, but doesn't configure it.
6
+ * The configuration needs to be manually added as described in
7
+ * [the docs](https://docs.gitlab.com/ee/user/clusters/agent/install/index.html#create-an-agent-configuration-file).
8
+ * However, a `gitlab.RepositoryFile` resource may be used to achieve that.
9
+ *
10
+ * > Requires at least maintainer permissions on the project.
11
+ *
12
+ * > Requires at least GitLab 14.10
13
+ *
14
+ * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/cluster_agents.html)
15
+ *
16
+ * ## Example Usage
17
+ *
18
+ * ```typescript
19
+ * import * as pulumi from "@pulumi/pulumi";
20
+ * import * as gitlab from "@pulumi/gitlab";
21
+ *
22
+ * const example = new gitlab.ClusterAgent("example", {project: "12345"});
23
+ * // Optionally, configure the agent as described in
24
+ * // https://docs.gitlab.com/ee/user/clusters/agent/install/index.html#create-an-agent-configuration-file
25
+ * const exampleAgentConfig = new gitlab.RepositoryFile("exampleAgentConfig", {
26
+ * project: example.project,
27
+ * branch: "main",
28
+ * filePath: pulumi.interpolate`.gitlab/agents/${example.name}`,
29
+ * content: ` gitops:
30
+ * ...
31
+ * `,
32
+ * authorEmail: "terraform@example.com",
33
+ * authorName: "Terraform",
34
+ * commitMessage: pulumi.interpolate`feature: add agent config for ${example.name}`,
35
+ * });
36
+ * ```
37
+ *
38
+ * ## Import
39
+ *
40
+ * # GitLab Agent for Kubernetes can be imported with the following command and the id pattern `<project>:<agent-id>`
41
+ *
42
+ * ```sh
43
+ * $ pulumi import gitlab:index/clusterAgent:ClusterAgent example '12345:42'
44
+ * ```
45
+ */
46
+ export declare class ClusterAgent extends pulumi.CustomResource {
47
+ /**
48
+ * Get an existing ClusterAgent 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?: ClusterAgentState, opts?: pulumi.CustomResourceOptions): ClusterAgent;
57
+ /**
58
+ * Returns true if the given object is an instance of ClusterAgent. 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 ClusterAgent;
62
+ /**
63
+ * The ID of the agent.
64
+ */
65
+ readonly agentId: pulumi.Output<number>;
66
+ /**
67
+ * The ISO8601 datetime when the agent was created.
68
+ */
69
+ readonly createdAt: pulumi.Output<string>;
70
+ /**
71
+ * The ID of the user who created the agent.
72
+ */
73
+ readonly createdByUserId: pulumi.Output<number>;
74
+ /**
75
+ * The Name of the agent.
76
+ */
77
+ readonly name: pulumi.Output<string>;
78
+ /**
79
+ * ID or full path of the project maintained by the authenticated user.
80
+ */
81
+ readonly project: pulumi.Output<string>;
82
+ /**
83
+ * Create a ClusterAgent resource with the given unique name, arguments, and options.
84
+ *
85
+ * @param name The _unique_ name of the resource.
86
+ * @param args The arguments to use to populate this resource's properties.
87
+ * @param opts A bag of options that control this resource's behavior.
88
+ */
89
+ constructor(name: string, args: ClusterAgentArgs, opts?: pulumi.CustomResourceOptions);
90
+ }
91
+ /**
92
+ * Input properties used for looking up and filtering ClusterAgent resources.
93
+ */
94
+ export interface ClusterAgentState {
95
+ /**
96
+ * The ID of the agent.
97
+ */
98
+ agentId?: pulumi.Input<number>;
99
+ /**
100
+ * The ISO8601 datetime when the agent was created.
101
+ */
102
+ createdAt?: pulumi.Input<string>;
103
+ /**
104
+ * The ID of the user who created the agent.
105
+ */
106
+ createdByUserId?: pulumi.Input<number>;
107
+ /**
108
+ * The Name of the agent.
109
+ */
110
+ name?: pulumi.Input<string>;
111
+ /**
112
+ * ID or full path of the project maintained by the authenticated user.
113
+ */
114
+ project?: pulumi.Input<string>;
115
+ }
116
+ /**
117
+ * The set of arguments for constructing a ClusterAgent resource.
118
+ */
119
+ export interface ClusterAgentArgs {
120
+ /**
121
+ * The Name of the agent.
122
+ */
123
+ name?: pulumi.Input<string>;
124
+ /**
125
+ * ID or full path of the project maintained by the authenticated user.
126
+ */
127
+ project: pulumi.Input<string>;
128
+ }
@@ -0,0 +1,104 @@
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.ClusterAgent = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * The `gitlab.ClusterAgent` resource allows to manage the lifecycle of a GitLab Agent for Kubernetes.
10
+ *
11
+ * > Note that this resource only registers the agent, but doesn't configure it.
12
+ * The configuration needs to be manually added as described in
13
+ * [the docs](https://docs.gitlab.com/ee/user/clusters/agent/install/index.html#create-an-agent-configuration-file).
14
+ * However, a `gitlab.RepositoryFile` resource may be used to achieve that.
15
+ *
16
+ * > Requires at least maintainer permissions on the project.
17
+ *
18
+ * > Requires at least GitLab 14.10
19
+ *
20
+ * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/cluster_agents.html)
21
+ *
22
+ * ## Example Usage
23
+ *
24
+ * ```typescript
25
+ * import * as pulumi from "@pulumi/pulumi";
26
+ * import * as gitlab from "@pulumi/gitlab";
27
+ *
28
+ * const example = new gitlab.ClusterAgent("example", {project: "12345"});
29
+ * // Optionally, configure the agent as described in
30
+ * // https://docs.gitlab.com/ee/user/clusters/agent/install/index.html#create-an-agent-configuration-file
31
+ * const exampleAgentConfig = new gitlab.RepositoryFile("exampleAgentConfig", {
32
+ * project: example.project,
33
+ * branch: "main",
34
+ * filePath: pulumi.interpolate`.gitlab/agents/${example.name}`,
35
+ * content: ` gitops:
36
+ * ...
37
+ * `,
38
+ * authorEmail: "terraform@example.com",
39
+ * authorName: "Terraform",
40
+ * commitMessage: pulumi.interpolate`feature: add agent config for ${example.name}`,
41
+ * });
42
+ * ```
43
+ *
44
+ * ## Import
45
+ *
46
+ * # GitLab Agent for Kubernetes can be imported with the following command and the id pattern `<project>:<agent-id>`
47
+ *
48
+ * ```sh
49
+ * $ pulumi import gitlab:index/clusterAgent:ClusterAgent example '12345:42'
50
+ * ```
51
+ */
52
+ class ClusterAgent extends pulumi.CustomResource {
53
+ constructor(name, argsOrState, opts) {
54
+ let resourceInputs = {};
55
+ opts = opts || {};
56
+ if (opts.id) {
57
+ const state = argsOrState;
58
+ resourceInputs["agentId"] = state ? state.agentId : undefined;
59
+ resourceInputs["createdAt"] = state ? state.createdAt : undefined;
60
+ resourceInputs["createdByUserId"] = state ? state.createdByUserId : undefined;
61
+ resourceInputs["name"] = state ? state.name : undefined;
62
+ resourceInputs["project"] = state ? state.project : undefined;
63
+ }
64
+ else {
65
+ const args = argsOrState;
66
+ if ((!args || args.project === undefined) && !opts.urn) {
67
+ throw new Error("Missing required property 'project'");
68
+ }
69
+ resourceInputs["name"] = args ? args.name : undefined;
70
+ resourceInputs["project"] = args ? args.project : undefined;
71
+ resourceInputs["agentId"] = undefined /*out*/;
72
+ resourceInputs["createdAt"] = undefined /*out*/;
73
+ resourceInputs["createdByUserId"] = undefined /*out*/;
74
+ }
75
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
76
+ super(ClusterAgent.__pulumiType, name, resourceInputs, opts);
77
+ }
78
+ /**
79
+ * Get an existing ClusterAgent resource's state with the given name, ID, and optional extra
80
+ * properties used to qualify the lookup.
81
+ *
82
+ * @param name The _unique_ name of the resulting resource.
83
+ * @param id The _unique_ provider ID of the resource to lookup.
84
+ * @param state Any extra arguments used during the lookup.
85
+ * @param opts Optional settings to control the behavior of the CustomResource.
86
+ */
87
+ static get(name, id, state, opts) {
88
+ return new ClusterAgent(name, state, Object.assign(Object.assign({}, opts), { id: id }));
89
+ }
90
+ /**
91
+ * Returns true if the given object is an instance of ClusterAgent. This is designed to work even
92
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
93
+ */
94
+ static isInstance(obj) {
95
+ if (obj === undefined || obj === null) {
96
+ return false;
97
+ }
98
+ return obj['__pulumiType'] === ClusterAgent.__pulumiType;
99
+ }
100
+ }
101
+ exports.ClusterAgent = ClusterAgent;
102
+ /** @internal */
103
+ ClusterAgent.__pulumiType = 'gitlab:index/clusterAgent:Cluster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AqC,CAAC,CAAC;aAC1D;YACD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC9C,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,iBAAiB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACzD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,YAAY,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACjE,CAAC;IA/ED;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyB,EAAE,IAAmC;QACvH,OAAO,IAAI,YAAY,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACnE,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,YAAY,CAAC,YAAY,CAAC;IAC7D,CAAC;;AA1BL,oCAiFC;AAnEG,gBAAgB;AACO,yBAAY,GAAG,wCAAwC,CAAC"}
@@ -0,0 +1,151 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * The `gitlab.ClusterAgentToken` resource allows to manage the lifecycle of a token for a GitLab Agent for Kubernetes.
4
+ *
5
+ * > Requires at least maintainer permissions on the project.
6
+ *
7
+ * > Requires at least GitLab 15.0
8
+ *
9
+ * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/cluster_agents.html#create-an-agent-token)
10
+ *
11
+ * ## Import
12
+ *
13
+ * # A token for a GitLab Agent for Kubernetes can be imported with the following command and the id pattern `<project>:<agent-id>:<token-id>`
14
+ *
15
+ * ```sh
16
+ * $ pulumi import gitlab:index/clusterAgentToken:ClusterAgentToken example '12345:42:1'
17
+ * ```
18
+ *
19
+ * # ATTENTIONthe `token` resource attribute is not available for imported resources as this information cannot be read from the GitLab API.
20
+ */
21
+ export declare class ClusterAgentToken extends pulumi.CustomResource {
22
+ /**
23
+ * Get an existing ClusterAgentToken resource's state with the given name, ID, and optional extra
24
+ * properties used to qualify the lookup.
25
+ *
26
+ * @param name The _unique_ name of the resulting resource.
27
+ * @param id The _unique_ provider ID of the resource to lookup.
28
+ * @param state Any extra arguments used during the lookup.
29
+ * @param opts Optional settings to control the behavior of the CustomResource.
30
+ */
31
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ClusterAgentTokenState, opts?: pulumi.CustomResourceOptions): ClusterAgentToken;
32
+ /**
33
+ * Returns true if the given object is an instance of ClusterAgentToken. This is designed to work even
34
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
35
+ */
36
+ static isInstance(obj: any): obj is ClusterAgentToken;
37
+ /**
38
+ * The ID of the agent.
39
+ */
40
+ readonly agentId: pulumi.Output<number>;
41
+ /**
42
+ * The ISO8601 datetime when the agent was created.
43
+ */
44
+ readonly createdAt: pulumi.Output<string>;
45
+ /**
46
+ * The ID of the user who created the agent.
47
+ */
48
+ readonly createdByUserId: pulumi.Output<number>;
49
+ /**
50
+ * The Description for the agent.
51
+ */
52
+ readonly description: pulumi.Output<string | undefined>;
53
+ /**
54
+ * The ISO8601 datetime when the token was last used.
55
+ */
56
+ readonly lastUsedAt: pulumi.Output<string>;
57
+ /**
58
+ * The Name of the agent.
59
+ */
60
+ readonly name: pulumi.Output<string>;
61
+ /**
62
+ * ID or full path of the project maintained by the authenticated user.
63
+ */
64
+ readonly project: pulumi.Output<string>;
65
+ /**
66
+ * The status of the token. Valid values are `active`, `revoked`.
67
+ */
68
+ readonly status: pulumi.Output<string>;
69
+ /**
70
+ * The secret token for the agent. The `token` is not available in imported resources.
71
+ */
72
+ readonly token: pulumi.Output<string>;
73
+ /**
74
+ * The ID of the token.
75
+ */
76
+ readonly tokenId: pulumi.Output<number>;
77
+ /**
78
+ * Create a ClusterAgentToken resource with the given unique name, arguments, and options.
79
+ *
80
+ * @param name The _unique_ name of the resource.
81
+ * @param args The arguments to use to populate this resource's properties.
82
+ * @param opts A bag of options that control this resource's behavior.
83
+ */
84
+ constructor(name: string, args: ClusterAgentTokenArgs, opts?: pulumi.CustomResourceOptions);
85
+ }
86
+ /**
87
+ * Input properties used for looking up and filtering ClusterAgentToken resources.
88
+ */
89
+ export interface ClusterAgentTokenState {
90
+ /**
91
+ * The ID of the agent.
92
+ */
93
+ agentId?: pulumi.Input<number>;
94
+ /**
95
+ * The ISO8601 datetime when the agent was created.
96
+ */
97
+ createdAt?: pulumi.Input<string>;
98
+ /**
99
+ * The ID of the user who created the agent.
100
+ */
101
+ createdByUserId?: pulumi.Input<number>;
102
+ /**
103
+ * The Description for the agent.
104
+ */
105
+ description?: pulumi.Input<string>;
106
+ /**
107
+ * The ISO8601 datetime when the token was last used.
108
+ */
109
+ lastUsedAt?: pulumi.Input<string>;
110
+ /**
111
+ * The Name of the agent.
112
+ */
113
+ name?: pulumi.Input<string>;
114
+ /**
115
+ * ID or full path of the project maintained by the authenticated user.
116
+ */
117
+ project?: pulumi.Input<string>;
118
+ /**
119
+ * The status of the token. Valid values are `active`, `revoked`.
120
+ */
121
+ status?: pulumi.Input<string>;
122
+ /**
123
+ * The secret token for the agent. The `token` is not available in imported resources.
124
+ */
125
+ token?: pulumi.Input<string>;
126
+ /**
127
+ * The ID of the token.
128
+ */
129
+ tokenId?: pulumi.Input<number>;
130
+ }
131
+ /**
132
+ * The set of arguments for constructing a ClusterAgentToken resource.
133
+ */
134
+ export interface ClusterAgentTokenArgs {
135
+ /**
136
+ * The ID of the agent.
137
+ */
138
+ agentId: pulumi.Input<number>;
139
+ /**
140
+ * The Description for the agent.
141
+ */
142
+ description?: pulumi.Input<string>;
143
+ /**
144
+ * The Name of the agent.
145
+ */
146
+ name?: pulumi.Input<string>;
147
+ /**
148
+ * ID or full path of the project maintained by the authenticated user.
149
+ */
150
+ project: pulumi.Input<string>;
151
+ }
@@ -0,0 +1,92 @@
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.ClusterAgentToken = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * The `gitlab.ClusterAgentToken` resource allows to manage the lifecycle of a token for a GitLab Agent for Kubernetes.
10
+ *
11
+ * > Requires at least maintainer permissions on the project.
12
+ *
13
+ * > Requires at least GitLab 15.0
14
+ *
15
+ * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/cluster_agents.html#create-an-agent-token)
16
+ *
17
+ * ## Import
18
+ *
19
+ * # A token for a GitLab Agent for Kubernetes can be imported with the following command and the id pattern `<project>:<agent-id>:<token-id>`
20
+ *
21
+ * ```sh
22
+ * $ pulumi import gitlab:index/clusterAgentToken:ClusterAgentToken example '12345:42:1'
23
+ * ```
24
+ *
25
+ * # ATTENTIONthe `token` resource attribute is not available for imported resources as this information cannot be read from the GitLab API.
26
+ */
27
+ class ClusterAgentToken extends pulumi.CustomResource {
28
+ constructor(name, argsOrState, opts) {
29
+ let resourceInputs = {};
30
+ opts = opts || {};
31
+ if (opts.id) {
32
+ const state = argsOrState;
33
+ resourceInputs["agentId"] = state ? state.agentId : undefined;
34
+ resourceInputs["createdAt"] = state ? state.createdAt : undefined;
35
+ resourceInputs["createdByUserId"] = state ? state.createdByUserId : undefined;
36
+ resourceInputs["description"] = state ? state.description : undefined;
37
+ resourceInputs["lastUsedAt"] = state ? state.lastUsedAt : undefined;
38
+ resourceInputs["name"] = state ? state.name : undefined;
39
+ resourceInputs["project"] = state ? state.project : undefined;
40
+ resourceInputs["status"] = state ? state.status : undefined;
41
+ resourceInputs["token"] = state ? state.token : undefined;
42
+ resourceInputs["tokenId"] = state ? state.tokenId : undefined;
43
+ }
44
+ else {
45
+ const args = argsOrState;
46
+ if ((!args || args.agentId === undefined) && !opts.urn) {
47
+ throw new Error("Missing required property 'agentId'");
48
+ }
49
+ if ((!args || args.project === undefined) && !opts.urn) {
50
+ throw new Error("Missing required property 'project'");
51
+ }
52
+ resourceInputs["agentId"] = args ? args.agentId : undefined;
53
+ resourceInputs["description"] = args ? args.description : undefined;
54
+ resourceInputs["name"] = args ? args.name : undefined;
55
+ resourceInputs["project"] = args ? args.project : undefined;
56
+ resourceInputs["createdAt"] = undefined /*out*/;
57
+ resourceInputs["createdByUserId"] = undefined /*out*/;
58
+ resourceInputs["lastUsedAt"] = undefined /*out*/;
59
+ resourceInputs["status"] = undefined /*out*/;
60
+ resourceInputs["token"] = undefined /*out*/;
61
+ resourceInputs["tokenId"] = undefined /*out*/;
62
+ }
63
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
64
+ super(ClusterAgentToken.__pulumiType, name, resourceInputs, opts);
65
+ }
66
+ /**
67
+ * Get an existing ClusterAgentToken resource's state with the given name, ID, and optional extra
68
+ * properties used to qualify the lookup.
69
+ *
70
+ * @param name The _unique_ name of the resulting resource.
71
+ * @param id The _unique_ provider ID of the resource to lookup.
72
+ * @param state Any extra arguments used during the lookup.
73
+ * @param opts Optional settings to control the behavior of the CustomResource.
74
+ */
75
+ static get(name, id, state, opts) {
76
+ return new ClusterAgentToken(name, state, Object.assign(Object.assign({}, opts), { id: id }));
77
+ }
78
+ /**
79
+ * Returns true if the given object is an instance of ClusterAgentToken. This is designed to work even
80
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
81
+ */
82
+ static isInstance(obj) {
83
+ if (obj === undefined || obj === null) {
84
+ return false;
85
+ }
86
+ return obj['__pulumiType'] === ClusterAgentToken.__pulumiType;
87
+ }
88
+ }
89
+ exports.ClusterAgentToken = ClusterAgentToken;
90
+ /** @internal */
91
+ ClusterAgentToken.__pulumiType = 'gitlab:index/clusterAgentToken:ClusterAgentToken';
92
+ //# sourceMappingURL=clusterAgentToken.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clusterAgentToken.js","sourceRoot":"","sources":["../clusterAgentToken.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAa,iBAAkB,SAAQ,MAAM,CAAC,cAAc;IA6ExD,YAAY,IAAY,EAAE,WAA4D,EAAE,IAAmC;QACvH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAiD,CAAC;YAChE,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,iBAAiB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9E,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAA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8CAkHC;AApGG,gBAAgB;AACO,8BAAY,GAAG,kDAAkD,CAAC"}
package/deployKey.d.ts CHANGED
@@ -21,11 +21,15 @@ import * as pulumi from "@pulumi/pulumi";
21
21
  *
22
22
  * ## Import
23
23
  *
24
- * # GitLab deploy keys can be imported using an id made up of `{project_id}:{deploy_key_id}`, e.g.
24
+ * # GitLab deploy keys can be imported using an id made up of `{project_id}:{deploy_key_id}`, e.g. # `project_id` can be whatever the [get single project api][get_single_project] takes for # its `:id` value, so for example
25
25
  *
26
26
  * ```sh
27
27
  * $ pulumi import gitlab:index/deployKey:DeployKey test 1:3
28
28
  * ```
29
+ *
30
+ * ```sh
31
+ * $ pulumi import gitlab:index/deployKey:DeployKey test richardc/example:3
32
+ * ```
29
33
  */
30
34
  export declare class DeployKey extends pulumi.CustomResource {
31
35
  /**
@@ -44,8 +48,7 @@ export declare class DeployKey extends pulumi.CustomResource {
44
48
  */
45
49
  static isInstance(obj: any): obj is DeployKey;
46
50
  /**
47
- * Allow this deploy key to be used to push changes to the project. Defaults to `false`. **NOTE::** this cannot currently
48
- * be managed.
51
+ * Allow this deploy key to be used to push changes to the project. Defaults to `false`.
49
52
  */
50
53
  readonly canPush: pulumi.Output<boolean | undefined>;
51
54
  /**
@@ -74,8 +77,7 @@ export declare class DeployKey extends pulumi.CustomResource {
74
77
  */
75
78
  export interface DeployKeyState {
76
79
  /**
77
- * Allow this deploy key to be used to push changes to the project. Defaults to `false`. **NOTE::** this cannot currently
78
- * be managed.
80
+ * Allow this deploy key to be used to push changes to the project. Defaults to `false`.
79
81
  */
80
82
  canPush?: pulumi.Input<boolean>;
81
83
  /**
@@ -96,8 +98,7 @@ export interface DeployKeyState {
96
98
  */
97
99
  export interface DeployKeyArgs {
98
100
  /**
99
- * Allow this deploy key to be used to push changes to the project. Defaults to `false`. **NOTE::** this cannot currently
100
- * be managed.
101
+ * Allow this deploy key to be used to push changes to the project. Defaults to `false`.
101
102
  */
102
103
  canPush?: pulumi.Input<boolean>;
103
104
  /**
package/deployKey.js CHANGED
@@ -27,11 +27,15 @@ const utilities = require("./utilities");
27
27
  *
28
28
  * ## Import
29
29
  *
30
- * # GitLab deploy keys can be imported using an id made up of `{project_id}:{deploy_key_id}`, e.g.
30
+ * # GitLab deploy keys can be imported using an id made up of `{project_id}:{deploy_key_id}`, e.g. # `project_id` can be whatever the [get single project api][get_single_project] takes for # its `:id` value, so for example
31
31
  *
32
32
  * ```sh
33
33
  * $ pulumi import gitlab:index/deployKey:DeployKey test 1:3
34
34
  * ```
35
+ *
36
+ * ```sh
37
+ * $ pulumi import gitlab:index/deployKey:DeployKey test richardc/example:3
38
+ * ```
35
39
  */
36
40
  class DeployKey extends pulumi.CustomResource {
37
41
  constructor(name, argsOrState, opts) {
package/deployKey.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"deployKey.js","sourceRoot":"","sources":["../deployKey.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAa,SAAU,SAAQ,MAAM,CAAC,cAAc;IAsDhD,YAAY,IAAY,EAAE,WAA4C,EAAE,IAAmC;QACvG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAyC,CAAC;YACxD,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,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AE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,SAAS,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC9D,CAAC;IA/ED;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAsB,EAAE,IAAmC;QACpH,OAAO,IAAI,SAAS,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAChE,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,SAAS,CAAC,YAAY,CAAC;IAC1D,CAAC;;AA1BL,8BAiFC;AAnEG,gBAAgB;AACO,sBAAY,GAAG,kCAAkC,CAAC"}
@@ -29,11 +29,15 @@ import * as pulumi from "@pulumi/pulumi";
29
29
  *
30
30
  * ## Import
31
31
  *
32
- * # GitLab enabled deploy keys can be imported using an id made up of `{project_id}:{deploy_key_id}`, e.g.
32
+ * # GitLab enabled deploy keys can be imported using an id made up of `{project_id}:{deploy_key_id}`, e.g. # `project_id` can be whatever the [get single project api][get_single_project] takes for # its `:id` value, so for example
33
33
  *
34
34
  * ```sh
35
35
  * $ pulumi import gitlab:index/deployKeyEnable:DeployKeyEnable example 12345:67890
36
36
  * ```
37
+ *
38
+ * ```sh
39
+ * $ pulumi import gitlab:index/deployKeyEnable:DeployKeyEnable example richardc/example:67890
40
+ * ```
37
41
  */
38
42
  export declare class DeployKeyEnable extends pulumi.CustomResource {
39
43
  /**
@@ -52,9 +56,9 @@ export declare class DeployKeyEnable extends pulumi.CustomResource {
52
56
  */
53
57
  static isInstance(obj: any): obj is DeployKeyEnable;
54
58
  /**
55
- * Can deploy key push to the projects repository.
59
+ * Can deploy key push to the project's repository.
56
60
  */
57
- readonly canPush: pulumi.Output<boolean>;
61
+ readonly canPush: pulumi.Output<boolean | undefined>;
58
62
  /**
59
63
  * Deploy key.
60
64
  */
@@ -85,7 +89,7 @@ export declare class DeployKeyEnable extends pulumi.CustomResource {
85
89
  */
86
90
  export interface DeployKeyEnableState {
87
91
  /**
88
- * Can deploy key push to the projects repository.
92
+ * Can deploy key push to the project's repository.
89
93
  */
90
94
  canPush?: pulumi.Input<boolean>;
91
95
  /**
@@ -110,7 +114,7 @@ export interface DeployKeyEnableState {
110
114
  */
111
115
  export interface DeployKeyEnableArgs {
112
116
  /**
113
- * Can deploy key push to the projects repository.
117
+ * Can deploy key push to the project's repository.
114
118
  */
115
119
  canPush?: pulumi.Input<boolean>;
116
120
  /**
@@ -35,11 +35,15 @@ const utilities = require("./utilities");
35
35
  *
36
36
  * ## Import
37
37
  *
38
- * # GitLab enabled deploy keys can be imported using an id made up of `{project_id}:{deploy_key_id}`, e.g.
38
+ * # GitLab enabled deploy keys can be imported using an id made up of `{project_id}:{deploy_key_id}`, e.g. # `project_id` can be whatever the [get single project api][get_single_project] takes for # its `:id` value, so for example
39
39
  *
40
40
  * ```sh
41
41
  * $ pulumi import gitlab:index/deployKeyEnable:DeployKeyEnable example 12345:67890
42
42
  * ```
43
+ *
44
+ * ```sh
45
+ * $ pulumi import gitlab:index/deployKeyEnable:DeployKeyEnable example richardc/example:67890
46
+ * ```
43
47
  */
44
48
  class DeployKeyEnable extends pulumi.CustomResource {
45
49
  constructor(name, argsOrState, opts) {
@@ -1 +1 @@
1
- {"version":3,"file":"deployKeyEnable.js","sourceRoot":"","sources":["../deployKeyEnable.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IAyDtD,YAAY,IAAY,EAAE,WAAwD,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