@pulumi/gitlab 4.11.0-alpha.1684185983 → 5.0.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 (79) hide show
  1. package/README.md +2 -2
  2. package/application.d.ts +134 -0
  3. package/application.js +98 -0
  4. package/application.js.map +1 -0
  5. package/applicationSettings.d.ts +150 -138
  6. package/applicationSettings.js +2 -0
  7. package/applicationSettings.js.map +1 -1
  8. package/branch.d.ts +1 -1
  9. package/branch.js +1 -1
  10. package/config/vars.d.ts +4 -3
  11. package/config/vars.js.map +1 -1
  12. package/deployKey.d.ts +1 -1
  13. package/deployKey.js +1 -1
  14. package/deployKeyEnable.d.ts +1 -1
  15. package/deployKeyEnable.js +1 -1
  16. package/getApplication.d.ts +47 -0
  17. package/getApplication.js +29 -0
  18. package/getApplication.js.map +1 -0
  19. package/getGroupMembership.d.ts +12 -0
  20. package/getGroupMembership.js +1 -0
  21. package/getGroupMembership.js.map +1 -1
  22. package/getMetadata.d.ts +42 -0
  23. package/getMetadata.js +27 -0
  24. package/getMetadata.js.map +1 -0
  25. package/getProject.d.ts +43 -7
  26. package/getProject.js +2 -2
  27. package/getProject.js.map +1 -1
  28. package/getProjectIssue.d.ts +0 -1
  29. package/getProjectIssue.js.map +1 -1
  30. package/getProjectMilestone.d.ts +1 -1
  31. package/getProjects.d.ts +3 -3
  32. package/getRepositoryFile.d.ts +3 -3
  33. package/group.d.ts +59 -15
  34. package/group.js +8 -0
  35. package/group.js.map +1 -1
  36. package/groupMembership.d.ts +1 -1
  37. package/groupMembership.js +1 -1
  38. package/groupProjectFileTemplate.d.ts +21 -0
  39. package/groupProjectFileTemplate.js +21 -0
  40. package/groupProjectFileTemplate.js.map +1 -1
  41. package/index.d.ts +14 -0
  42. package/index.js +23 -3
  43. package/index.js.map +1 -1
  44. package/package.json +2 -2
  45. package/package.json.dev +2 -2
  46. package/pagesDomain.d.ts +167 -0
  47. package/pagesDomain.js +108 -0
  48. package/pagesDomain.js.map +1 -0
  49. package/personalAccessToken.d.ts +3 -3
  50. package/project.d.ts +272 -25
  51. package/project.js +69 -1
  52. package/project.js.map +1 -1
  53. package/projectApprovalRule.d.ts +12 -6
  54. package/projectApprovalRule.js +2 -6
  55. package/projectApprovalRule.js.map +1 -1
  56. package/projectIssue.d.ts +0 -3
  57. package/projectIssue.js.map +1 -1
  58. package/projectMembership.d.ts +1 -1
  59. package/projectMembership.js +1 -1
  60. package/projectMilestone.d.ts +2 -2
  61. package/projectProtectedEnvironment.d.ts +3 -3
  62. package/projectProtectedEnvironment.js +0 -3
  63. package/projectProtectedEnvironment.js.map +1 -1
  64. package/provider.d.ts +7 -6
  65. package/provider.js +3 -4
  66. package/provider.js.map +1 -1
  67. package/repositoryFile.d.ts +15 -3
  68. package/repositoryFile.js +2 -0
  69. package/repositoryFile.js.map +1 -1
  70. package/serviceCustomIssueTracker.d.ts +134 -0
  71. package/serviceCustomIssueTracker.js +100 -0
  72. package/serviceCustomIssueTracker.js.map +1 -0
  73. package/serviceMicrosoftTeams.d.ts +3 -3
  74. package/serviceSlack.d.ts +3 -3
  75. package/types/input.d.ts +8 -2
  76. package/types/output.d.ts +45 -9
  77. package/userGpgKey.d.ts +3 -3
  78. package/userSshKey.d.ts +2 -2
  79. package/userSshKey.js +2 -2
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  [![NPM version](https://badge.fury.io/js/%40pulumi%2Fgitlab.svg)](https://www.npmjs.com/package/@pulumi/gitlab)
4
4
  [![Python version](https://badge.fury.io/py/pulumi-gitlab.svg)](https://pypi.org/project/pulumi-gitlab)
5
5
  [![NuGet version](https://badge.fury.io/nu/pulumi.gitlab.svg)](https://badge.fury.io/nu/pulumi.gitlab)
6
- [![PkgGoDev](https://pkg.go.dev/badge/github.com/pulumi/pulumi-gitlab/sdk/v4/go)](https://pkg.go.dev/github.com/pulumi/pulumi-gitlab/sdk/v4/go)
6
+ [![PkgGoDev](https://pkg.go.dev/badge/github.com/pulumi/pulumi-gitlab/sdk/v4/go)](https://pkg.go.dev/github.com/pulumi/pulumi-gitlab/sdk/v5/go)
7
7
  [![License](https://img.shields.io/npm/l/%40pulumi%2Fpulumi.svg)](https://github.com/pulumi/pulumi-gitlab/blob/master/LICENSE)
8
8
 
9
9
  # GitLab provider
@@ -35,7 +35,7 @@ To use from Python, install using `pip`:
35
35
 
36
36
  To use from Go, use `go get` to grab the latest version of the library
37
37
 
38
- $ go get github.com/pulumi/pulumi-gitlab/sdk/v4
38
+ $ go get github.com/pulumi/pulumi-gitlab/sdk/v5
39
39
 
40
40
  ### .NET
41
41
 
@@ -0,0 +1,134 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * The `gitlab.Application` resource allows to manage the lifecycle of applications in gitlab.
4
+ *
5
+ * > In order to use a user for a user to create an application, they must have admin privileges at the instance level.
6
+ * To create an OIDC application, a scope of "openid".
7
+ *
8
+ * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/applications.html)
9
+ *
10
+ * ## Example Usage
11
+ *
12
+ * ```typescript
13
+ * import * as pulumi from "@pulumi/pulumi";
14
+ * import * as gitlab from "@pulumi/gitlab";
15
+ *
16
+ * const oidc = new gitlab.Application("oidc", {
17
+ * confidential: true,
18
+ * redirectUrl: "https://mycompany.com",
19
+ * scopes: ["openid"],
20
+ * });
21
+ * ```
22
+ *
23
+ * ## Import
24
+ *
25
+ * Gitlab applications can be imported with their id, e.g.
26
+ *
27
+ * ```sh
28
+ * $ pulumi import gitlab:index/application:Application example "1"
29
+ * ```
30
+ *
31
+ * NOTEthe secret and scopes cannot be imported
32
+ */
33
+ export declare class Application extends pulumi.CustomResource {
34
+ /**
35
+ * Get an existing Application resource's state with the given name, ID, and optional extra
36
+ * properties used to qualify the lookup.
37
+ *
38
+ * @param name The _unique_ name of the resulting resource.
39
+ * @param id The _unique_ provider ID of the resource to lookup.
40
+ * @param state Any extra arguments used during the lookup.
41
+ * @param opts Optional settings to control the behavior of the CustomResource.
42
+ */
43
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ApplicationState, opts?: pulumi.CustomResourceOptions): Application;
44
+ /**
45
+ * Returns true if the given object is an instance of Application. This is designed to work even
46
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
47
+ */
48
+ static isInstance(obj: any): obj is Application;
49
+ /**
50
+ * Internal name of the application.
51
+ */
52
+ readonly applicationId: pulumi.Output<string>;
53
+ /**
54
+ * The application is used where the client secret can be kept confidential. Native mobile apps and Single Page Apps are considered non-confidential. Defaults to true if not supplied
55
+ */
56
+ readonly confidential: pulumi.Output<boolean>;
57
+ /**
58
+ * Name of the application.
59
+ */
60
+ readonly name: pulumi.Output<string>;
61
+ /**
62
+ * The URL gitlab should send the user to after authentication.
63
+ */
64
+ readonly redirectUrl: pulumi.Output<string>;
65
+ /**
66
+ * Scopes of the application. Use "openid" if you plan to use this as an oidc authentication application. Valid options are: `api`, `readApi`, `readUser`, `readRepository`, `writeRepository`, `readRegistry`, `writeRegistry`, `sudo`, `adminMode`, `openid`, `profile`, `email`.
67
+ * This is only populated when creating a new application. This attribute is not available for imported resources
68
+ */
69
+ readonly scopes: pulumi.Output<string[]>;
70
+ /**
71
+ * Application secret. Sensitive and must be kept secret. This is only populated when creating a new application. This attribute is not available for imported resources.
72
+ */
73
+ readonly secret: pulumi.Output<string>;
74
+ /**
75
+ * Create a Application resource with the given unique name, arguments, and options.
76
+ *
77
+ * @param name The _unique_ name of the resource.
78
+ * @param args The arguments to use to populate this resource's properties.
79
+ * @param opts A bag of options that control this resource's behavior.
80
+ */
81
+ constructor(name: string, args: ApplicationArgs, opts?: pulumi.CustomResourceOptions);
82
+ }
83
+ /**
84
+ * Input properties used for looking up and filtering Application resources.
85
+ */
86
+ export interface ApplicationState {
87
+ /**
88
+ * Internal name of the application.
89
+ */
90
+ applicationId?: pulumi.Input<string>;
91
+ /**
92
+ * The application is used where the client secret can be kept confidential. Native mobile apps and Single Page Apps are considered non-confidential. Defaults to true if not supplied
93
+ */
94
+ confidential?: pulumi.Input<boolean>;
95
+ /**
96
+ * Name of the application.
97
+ */
98
+ name?: pulumi.Input<string>;
99
+ /**
100
+ * The URL gitlab should send the user to after authentication.
101
+ */
102
+ redirectUrl?: pulumi.Input<string>;
103
+ /**
104
+ * Scopes of the application. Use "openid" if you plan to use this as an oidc authentication application. Valid options are: `api`, `readApi`, `readUser`, `readRepository`, `writeRepository`, `readRegistry`, `writeRegistry`, `sudo`, `adminMode`, `openid`, `profile`, `email`.
105
+ * This is only populated when creating a new application. This attribute is not available for imported resources
106
+ */
107
+ scopes?: pulumi.Input<pulumi.Input<string>[]>;
108
+ /**
109
+ * Application secret. Sensitive and must be kept secret. This is only populated when creating a new application. This attribute is not available for imported resources.
110
+ */
111
+ secret?: pulumi.Input<string>;
112
+ }
113
+ /**
114
+ * The set of arguments for constructing a Application resource.
115
+ */
116
+ export interface ApplicationArgs {
117
+ /**
118
+ * The application is used where the client secret can be kept confidential. Native mobile apps and Single Page Apps are considered non-confidential. Defaults to true if not supplied
119
+ */
120
+ confidential?: pulumi.Input<boolean>;
121
+ /**
122
+ * Name of the application.
123
+ */
124
+ name?: pulumi.Input<string>;
125
+ /**
126
+ * The URL gitlab should send the user to after authentication.
127
+ */
128
+ redirectUrl: pulumi.Input<string>;
129
+ /**
130
+ * Scopes of the application. Use "openid" if you plan to use this as an oidc authentication application. Valid options are: `api`, `readApi`, `readUser`, `readRepository`, `writeRepository`, `readRegistry`, `writeRegistry`, `sudo`, `adminMode`, `openid`, `profile`, `email`.
131
+ * This is only populated when creating a new application. This attribute is not available for imported resources
132
+ */
133
+ scopes: pulumi.Input<pulumi.Input<string>[]>;
134
+ }
package/application.js ADDED
@@ -0,0 +1,98 @@
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.Application = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * The `gitlab.Application` resource allows to manage the lifecycle of applications in gitlab.
10
+ *
11
+ * > In order to use a user for a user to create an application, they must have admin privileges at the instance level.
12
+ * To create an OIDC application, a scope of "openid".
13
+ *
14
+ * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/applications.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 oidc = new gitlab.Application("oidc", {
23
+ * confidential: true,
24
+ * redirectUrl: "https://mycompany.com",
25
+ * scopes: ["openid"],
26
+ * });
27
+ * ```
28
+ *
29
+ * ## Import
30
+ *
31
+ * Gitlab applications can be imported with their id, e.g.
32
+ *
33
+ * ```sh
34
+ * $ pulumi import gitlab:index/application:Application example "1"
35
+ * ```
36
+ *
37
+ * NOTEthe secret and scopes cannot be imported
38
+ */
39
+ class Application extends pulumi.CustomResource {
40
+ /**
41
+ * Get an existing Application resource's state with the given name, ID, and optional extra
42
+ * properties used to qualify the lookup.
43
+ *
44
+ * @param name The _unique_ name of the resulting resource.
45
+ * @param id The _unique_ provider ID of the resource to lookup.
46
+ * @param state Any extra arguments used during the lookup.
47
+ * @param opts Optional settings to control the behavior of the CustomResource.
48
+ */
49
+ static get(name, id, state, opts) {
50
+ return new Application(name, state, Object.assign(Object.assign({}, opts), { id: id }));
51
+ }
52
+ /**
53
+ * Returns true if the given object is an instance of Application. This is designed to work even
54
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
55
+ */
56
+ static isInstance(obj) {
57
+ if (obj === undefined || obj === null) {
58
+ return false;
59
+ }
60
+ return obj['__pulumiType'] === Application.__pulumiType;
61
+ }
62
+ constructor(name, argsOrState, opts) {
63
+ let resourceInputs = {};
64
+ opts = opts || {};
65
+ if (opts.id) {
66
+ const state = argsOrState;
67
+ resourceInputs["applicationId"] = state ? state.applicationId : undefined;
68
+ resourceInputs["confidential"] = state ? state.confidential : undefined;
69
+ resourceInputs["name"] = state ? state.name : undefined;
70
+ resourceInputs["redirectUrl"] = state ? state.redirectUrl : undefined;
71
+ resourceInputs["scopes"] = state ? state.scopes : undefined;
72
+ resourceInputs["secret"] = state ? state.secret : undefined;
73
+ }
74
+ else {
75
+ const args = argsOrState;
76
+ if ((!args || args.redirectUrl === undefined) && !opts.urn) {
77
+ throw new Error("Missing required property 'redirectUrl'");
78
+ }
79
+ if ((!args || args.scopes === undefined) && !opts.urn) {
80
+ throw new Error("Missing required property 'scopes'");
81
+ }
82
+ resourceInputs["confidential"] = args ? args.confidential : undefined;
83
+ resourceInputs["name"] = args ? args.name : undefined;
84
+ resourceInputs["redirectUrl"] = args ? args.redirectUrl : undefined;
85
+ resourceInputs["scopes"] = args ? args.scopes : undefined;
86
+ resourceInputs["applicationId"] = undefined /*out*/;
87
+ resourceInputs["secret"] = undefined /*out*/;
88
+ }
89
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
90
+ const secretOpts = { additionalSecretOutputs: ["secret"] };
91
+ opts = pulumi.mergeOptions(opts, secretOpts);
92
+ super(Application.__pulumiType, name, resourceInputs, opts);
93
+ }
94
+ }
95
+ exports.Application = Application;
96
+ /** @internal */
97
+ Application.__pulumiType = 'gitlab:index/application:Application';
98
+ //# sourceMappingURL=application.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"application.js","sourceRoot":"","sources":["../application.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;QACtH,OAAO,IAAI,WAAW,CAAC,IAAI,EAAO,KAA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