@pulumi/artifactory 2.10.0 → 2.11.0-alpha.1674594197
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/getGroup.d.ts +194 -0
- package/getGroup.js +64 -0
- package/getGroup.js.map +1 -0
- package/getPermissionTarget.d.ts +101 -0
- package/getPermissionTarget.js +54 -0
- package/getPermissionTarget.js.map +1 -0
- package/getUser.d.ts +147 -0
- package/getUser.js +57 -0
- package/getUser.js.map +1 -0
- package/index.d.ts +9 -0
- package/index.js +12 -3
- package/index.js.map +1 -1
- package/managedUser.d.ts +3 -7
- package/managedUser.js +0 -4
- package/managedUser.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/types/input.d.ts +246 -0
- package/types/output.d.ts +123 -0
- package/unmanagedUser.d.ts +6 -7
- package/unmanagedUser.js +3 -4
- package/unmanagedUser.js.map +1 -1
- package/user.d.ts +3 -1
- package/user.js +3 -1
- package/user.js.map +1 -1
package/getGroup.d.ts
ADDED
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* ## # Artifactory Group Data Source
|
|
4
|
+
*
|
|
5
|
+
* Provides an Artifactory group datasource. This can be used to read the configuration of groups in artifactory.
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as artifactory from "@pulumi/artifactory";
|
|
12
|
+
*
|
|
13
|
+
* const myGroup = artifactory.getGroup({
|
|
14
|
+
* includeUsers: "true",
|
|
15
|
+
* name: "my_group",
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
export declare function getGroup(args: GetGroupArgs, opts?: pulumi.InvokeOptions): Promise<GetGroupResult>;
|
|
20
|
+
/**
|
|
21
|
+
* A collection of arguments for invoking getGroup.
|
|
22
|
+
*/
|
|
23
|
+
export interface GetGroupArgs {
|
|
24
|
+
/**
|
|
25
|
+
* Any users added to this group will automatically be assigned with admin privileges in the system.
|
|
26
|
+
*/
|
|
27
|
+
adminPrivileges?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* When this parameter is set, any new users defined in the system are automatically assigned to this group.
|
|
30
|
+
*/
|
|
31
|
+
autoJoin?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* A description for the group
|
|
34
|
+
*/
|
|
35
|
+
description?: string;
|
|
36
|
+
/**
|
|
37
|
+
* New external group ID used to configure the corresponding group in Azure AD.
|
|
38
|
+
*/
|
|
39
|
+
externalId?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Determines if the group's associated user list will return as an attribute. Default is false.
|
|
42
|
+
*/
|
|
43
|
+
includeUsers?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Name of the group.
|
|
46
|
+
*/
|
|
47
|
+
name: string;
|
|
48
|
+
/**
|
|
49
|
+
* When this override is set, User in the group can set Xray security and compliance policies. Default value is 'false'.
|
|
50
|
+
*/
|
|
51
|
+
policyManager?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* The realm for the group.
|
|
54
|
+
*/
|
|
55
|
+
realm?: string;
|
|
56
|
+
/**
|
|
57
|
+
* The realm attributes for the group.
|
|
58
|
+
*/
|
|
59
|
+
realmAttributes?: string;
|
|
60
|
+
/**
|
|
61
|
+
* When this override is set, User in the group can manage Xray Reports on any resource type. Default value is 'false'.
|
|
62
|
+
*/
|
|
63
|
+
reportsManager?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* List of users assigned to the group. Set includeUsers to `true` to retrieve this list.
|
|
66
|
+
*/
|
|
67
|
+
usersNames?: string[];
|
|
68
|
+
/**
|
|
69
|
+
* When this override is set, User in the group can manage Xray Watches on any resource type. Default value is 'false'.
|
|
70
|
+
*/
|
|
71
|
+
watchManager?: boolean;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* A collection of values returned by getGroup.
|
|
75
|
+
*/
|
|
76
|
+
export interface GetGroupResult {
|
|
77
|
+
/**
|
|
78
|
+
* Any users added to this group will automatically be assigned with admin privileges in the system.
|
|
79
|
+
*/
|
|
80
|
+
readonly adminPrivileges: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* When this parameter is set, any new users defined in the system are automatically assigned to this group.
|
|
83
|
+
*/
|
|
84
|
+
readonly autoJoin: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* A description for the group
|
|
87
|
+
*/
|
|
88
|
+
readonly description?: string;
|
|
89
|
+
/**
|
|
90
|
+
* New external group ID used to configure the corresponding group in Azure AD.
|
|
91
|
+
*/
|
|
92
|
+
readonly externalId?: string;
|
|
93
|
+
/**
|
|
94
|
+
* The provider-assigned unique ID for this managed resource.
|
|
95
|
+
*/
|
|
96
|
+
readonly id: string;
|
|
97
|
+
readonly includeUsers?: string;
|
|
98
|
+
readonly name: string;
|
|
99
|
+
/**
|
|
100
|
+
* When this override is set, User in the group can set Xray security and compliance policies. Default value is 'false'.
|
|
101
|
+
*/
|
|
102
|
+
readonly policyManager?: boolean;
|
|
103
|
+
/**
|
|
104
|
+
* The realm for the group.
|
|
105
|
+
*/
|
|
106
|
+
readonly realm: string;
|
|
107
|
+
/**
|
|
108
|
+
* The realm attributes for the group.
|
|
109
|
+
*/
|
|
110
|
+
readonly realmAttributes?: string;
|
|
111
|
+
/**
|
|
112
|
+
* When this override is set, User in the group can manage Xray Reports on any resource type. Default value is 'false'.
|
|
113
|
+
*/
|
|
114
|
+
readonly reportsManager?: boolean;
|
|
115
|
+
/**
|
|
116
|
+
* List of users assigned to the group. Set includeUsers to `true` to retrieve this list.
|
|
117
|
+
*/
|
|
118
|
+
readonly usersNames?: string[];
|
|
119
|
+
/**
|
|
120
|
+
* When this override is set, User in the group can manage Xray Watches on any resource type. Default value is 'false'.
|
|
121
|
+
*/
|
|
122
|
+
readonly watchManager?: boolean;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* ## # Artifactory Group Data Source
|
|
126
|
+
*
|
|
127
|
+
* Provides an Artifactory group datasource. This can be used to read the configuration of groups in artifactory.
|
|
128
|
+
*
|
|
129
|
+
* ## Example Usage
|
|
130
|
+
*
|
|
131
|
+
* ```typescript
|
|
132
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
133
|
+
* import * as artifactory from "@pulumi/artifactory";
|
|
134
|
+
*
|
|
135
|
+
* const myGroup = artifactory.getGroup({
|
|
136
|
+
* includeUsers: "true",
|
|
137
|
+
* name: "my_group",
|
|
138
|
+
* });
|
|
139
|
+
* ```
|
|
140
|
+
*/
|
|
141
|
+
export declare function getGroupOutput(args: GetGroupOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetGroupResult>;
|
|
142
|
+
/**
|
|
143
|
+
* A collection of arguments for invoking getGroup.
|
|
144
|
+
*/
|
|
145
|
+
export interface GetGroupOutputArgs {
|
|
146
|
+
/**
|
|
147
|
+
* Any users added to this group will automatically be assigned with admin privileges in the system.
|
|
148
|
+
*/
|
|
149
|
+
adminPrivileges?: pulumi.Input<boolean>;
|
|
150
|
+
/**
|
|
151
|
+
* When this parameter is set, any new users defined in the system are automatically assigned to this group.
|
|
152
|
+
*/
|
|
153
|
+
autoJoin?: pulumi.Input<boolean>;
|
|
154
|
+
/**
|
|
155
|
+
* A description for the group
|
|
156
|
+
*/
|
|
157
|
+
description?: pulumi.Input<string>;
|
|
158
|
+
/**
|
|
159
|
+
* New external group ID used to configure the corresponding group in Azure AD.
|
|
160
|
+
*/
|
|
161
|
+
externalId?: pulumi.Input<string>;
|
|
162
|
+
/**
|
|
163
|
+
* Determines if the group's associated user list will return as an attribute. Default is false.
|
|
164
|
+
*/
|
|
165
|
+
includeUsers?: pulumi.Input<string>;
|
|
166
|
+
/**
|
|
167
|
+
* Name of the group.
|
|
168
|
+
*/
|
|
169
|
+
name: pulumi.Input<string>;
|
|
170
|
+
/**
|
|
171
|
+
* When this override is set, User in the group can set Xray security and compliance policies. Default value is 'false'.
|
|
172
|
+
*/
|
|
173
|
+
policyManager?: pulumi.Input<boolean>;
|
|
174
|
+
/**
|
|
175
|
+
* The realm for the group.
|
|
176
|
+
*/
|
|
177
|
+
realm?: pulumi.Input<string>;
|
|
178
|
+
/**
|
|
179
|
+
* The realm attributes for the group.
|
|
180
|
+
*/
|
|
181
|
+
realmAttributes?: pulumi.Input<string>;
|
|
182
|
+
/**
|
|
183
|
+
* When this override is set, User in the group can manage Xray Reports on any resource type. Default value is 'false'.
|
|
184
|
+
*/
|
|
185
|
+
reportsManager?: pulumi.Input<boolean>;
|
|
186
|
+
/**
|
|
187
|
+
* List of users assigned to the group. Set includeUsers to `true` to retrieve this list.
|
|
188
|
+
*/
|
|
189
|
+
usersNames?: pulumi.Input<pulumi.Input<string>[]>;
|
|
190
|
+
/**
|
|
191
|
+
* When this override is set, User in the group can manage Xray Watches on any resource type. Default value is 'false'.
|
|
192
|
+
*/
|
|
193
|
+
watchManager?: pulumi.Input<boolean>;
|
|
194
|
+
}
|
package/getGroup.js
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
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.getGroupOutput = exports.getGroup = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## # Artifactory Group Data Source
|
|
10
|
+
*
|
|
11
|
+
* Provides an Artifactory group datasource. This can be used to read the configuration of groups in artifactory.
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as artifactory from "@pulumi/artifactory";
|
|
18
|
+
*
|
|
19
|
+
* const myGroup = artifactory.getGroup({
|
|
20
|
+
* includeUsers: "true",
|
|
21
|
+
* name: "my_group",
|
|
22
|
+
* });
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
function getGroup(args, opts) {
|
|
26
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
27
|
+
return pulumi.runtime.invoke("artifactory:index/getGroup:getGroup", {
|
|
28
|
+
"adminPrivileges": args.adminPrivileges,
|
|
29
|
+
"autoJoin": args.autoJoin,
|
|
30
|
+
"description": args.description,
|
|
31
|
+
"externalId": args.externalId,
|
|
32
|
+
"includeUsers": args.includeUsers,
|
|
33
|
+
"name": args.name,
|
|
34
|
+
"policyManager": args.policyManager,
|
|
35
|
+
"realm": args.realm,
|
|
36
|
+
"realmAttributes": args.realmAttributes,
|
|
37
|
+
"reportsManager": args.reportsManager,
|
|
38
|
+
"usersNames": args.usersNames,
|
|
39
|
+
"watchManager": args.watchManager,
|
|
40
|
+
}, opts);
|
|
41
|
+
}
|
|
42
|
+
exports.getGroup = getGroup;
|
|
43
|
+
/**
|
|
44
|
+
* ## # Artifactory Group Data Source
|
|
45
|
+
*
|
|
46
|
+
* Provides an Artifactory group datasource. This can be used to read the configuration of groups in artifactory.
|
|
47
|
+
*
|
|
48
|
+
* ## Example Usage
|
|
49
|
+
*
|
|
50
|
+
* ```typescript
|
|
51
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
52
|
+
* import * as artifactory from "@pulumi/artifactory";
|
|
53
|
+
*
|
|
54
|
+
* const myGroup = artifactory.getGroup({
|
|
55
|
+
* includeUsers: "true",
|
|
56
|
+
* name: "my_group",
|
|
57
|
+
* });
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
function getGroupOutput(args, opts) {
|
|
61
|
+
return pulumi.output(args).apply((a) => getGroup(a, opts));
|
|
62
|
+
}
|
|
63
|
+
exports.getGroupOutput = getGroupOutput;
|
|
64
|
+
//# sourceMappingURL=getGroup.js.map
|
package/getGroup.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getGroup.js","sourceRoot":"","sources":["../getGroup.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,QAAQ,CAAC,IAAkB,EAAE,IAA2B;IAEpE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,qCAAqC,EAAE;QAChE,iBAAiB,EAAE,IAAI,CAAC,eAAe;QACvC,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,eAAe,EAAE,IAAI,CAAC,aAAa;QACnC,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,iBAAiB,EAAE,IAAI,CAAC,eAAe;QACvC,gBAAgB,EAAE,IAAI,CAAC,cAAc;QACrC,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,cAAc,EAAE,IAAI,CAAC,YAAY;KACpC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAjBD,4BAiBC;AA2GD;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,cAAc,CAAC,IAAwB,EAAE,IAA2B;IAChF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACnE,CAAC;AAFD,wCAEC"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* ## # Artifactory Permission Target Data Source
|
|
6
|
+
*
|
|
7
|
+
* Provides an Artifactory permission target data source. This can be used to read the configuration of permission targets in artifactory.
|
|
8
|
+
*
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as artifactory from "@pulumi/artifactory";
|
|
14
|
+
*
|
|
15
|
+
* const target1 = artifactory.getPermissionTarget({
|
|
16
|
+
* name: "my_permission",
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare function getPermissionTarget(args: GetPermissionTargetArgs, opts?: pulumi.InvokeOptions): Promise<GetPermissionTargetResult>;
|
|
21
|
+
/**
|
|
22
|
+
* A collection of arguments for invoking getPermissionTarget.
|
|
23
|
+
*/
|
|
24
|
+
export interface GetPermissionTargetArgs {
|
|
25
|
+
/**
|
|
26
|
+
* Same as repo but for artifactory-build-info permissions.
|
|
27
|
+
*/
|
|
28
|
+
build?: inputs.GetPermissionTargetBuild;
|
|
29
|
+
/**
|
|
30
|
+
* Name of the permission target.
|
|
31
|
+
*/
|
|
32
|
+
name: string;
|
|
33
|
+
/**
|
|
34
|
+
* Same as repo but for release-bundles permissions.
|
|
35
|
+
*/
|
|
36
|
+
releaseBundle?: inputs.GetPermissionTargetReleaseBundle;
|
|
37
|
+
/**
|
|
38
|
+
* Repository permission configuration.
|
|
39
|
+
*/
|
|
40
|
+
repo?: inputs.GetPermissionTargetRepo;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* A collection of values returned by getPermissionTarget.
|
|
44
|
+
*/
|
|
45
|
+
export interface GetPermissionTargetResult {
|
|
46
|
+
/**
|
|
47
|
+
* Same as repo but for artifactory-build-info permissions.
|
|
48
|
+
*/
|
|
49
|
+
readonly build?: outputs.GetPermissionTargetBuild;
|
|
50
|
+
/**
|
|
51
|
+
* The provider-assigned unique ID for this managed resource.
|
|
52
|
+
*/
|
|
53
|
+
readonly id: string;
|
|
54
|
+
readonly name: string;
|
|
55
|
+
/**
|
|
56
|
+
* Same as repo but for release-bundles permissions.
|
|
57
|
+
*/
|
|
58
|
+
readonly releaseBundle?: outputs.GetPermissionTargetReleaseBundle;
|
|
59
|
+
/**
|
|
60
|
+
* Repository permission configuration.
|
|
61
|
+
*/
|
|
62
|
+
readonly repo?: outputs.GetPermissionTargetRepo;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* ## # Artifactory Permission Target Data Source
|
|
66
|
+
*
|
|
67
|
+
* Provides an Artifactory permission target data source. This can be used to read the configuration of permission targets in artifactory.
|
|
68
|
+
*
|
|
69
|
+
* ## Example Usage
|
|
70
|
+
*
|
|
71
|
+
* ```typescript
|
|
72
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
73
|
+
* import * as artifactory from "@pulumi/artifactory";
|
|
74
|
+
*
|
|
75
|
+
* const target1 = artifactory.getPermissionTarget({
|
|
76
|
+
* name: "my_permission",
|
|
77
|
+
* });
|
|
78
|
+
* ```
|
|
79
|
+
*/
|
|
80
|
+
export declare function getPermissionTargetOutput(args: GetPermissionTargetOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetPermissionTargetResult>;
|
|
81
|
+
/**
|
|
82
|
+
* A collection of arguments for invoking getPermissionTarget.
|
|
83
|
+
*/
|
|
84
|
+
export interface GetPermissionTargetOutputArgs {
|
|
85
|
+
/**
|
|
86
|
+
* Same as repo but for artifactory-build-info permissions.
|
|
87
|
+
*/
|
|
88
|
+
build?: pulumi.Input<inputs.GetPermissionTargetBuildArgs>;
|
|
89
|
+
/**
|
|
90
|
+
* Name of the permission target.
|
|
91
|
+
*/
|
|
92
|
+
name: pulumi.Input<string>;
|
|
93
|
+
/**
|
|
94
|
+
* Same as repo but for release-bundles permissions.
|
|
95
|
+
*/
|
|
96
|
+
releaseBundle?: pulumi.Input<inputs.GetPermissionTargetReleaseBundleArgs>;
|
|
97
|
+
/**
|
|
98
|
+
* Repository permission configuration.
|
|
99
|
+
*/
|
|
100
|
+
repo?: pulumi.Input<inputs.GetPermissionTargetRepoArgs>;
|
|
101
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
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.getPermissionTargetOutput = exports.getPermissionTarget = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## # Artifactory Permission Target Data Source
|
|
10
|
+
*
|
|
11
|
+
* Provides an Artifactory permission target data source. This can be used to read the configuration of permission targets in artifactory.
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as artifactory from "@pulumi/artifactory";
|
|
18
|
+
*
|
|
19
|
+
* const target1 = artifactory.getPermissionTarget({
|
|
20
|
+
* name: "my_permission",
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
function getPermissionTarget(args, opts) {
|
|
25
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
26
|
+
return pulumi.runtime.invoke("artifactory:index/getPermissionTarget:getPermissionTarget", {
|
|
27
|
+
"build": args.build,
|
|
28
|
+
"name": args.name,
|
|
29
|
+
"releaseBundle": args.releaseBundle,
|
|
30
|
+
"repo": args.repo,
|
|
31
|
+
}, opts);
|
|
32
|
+
}
|
|
33
|
+
exports.getPermissionTarget = getPermissionTarget;
|
|
34
|
+
/**
|
|
35
|
+
* ## # Artifactory Permission Target Data Source
|
|
36
|
+
*
|
|
37
|
+
* Provides an Artifactory permission target data source. This can be used to read the configuration of permission targets in artifactory.
|
|
38
|
+
*
|
|
39
|
+
* ## Example Usage
|
|
40
|
+
*
|
|
41
|
+
* ```typescript
|
|
42
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
43
|
+
* import * as artifactory from "@pulumi/artifactory";
|
|
44
|
+
*
|
|
45
|
+
* const target1 = artifactory.getPermissionTarget({
|
|
46
|
+
* name: "my_permission",
|
|
47
|
+
* });
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
function getPermissionTargetOutput(args, opts) {
|
|
51
|
+
return pulumi.output(args).apply((a) => getPermissionTarget(a, opts));
|
|
52
|
+
}
|
|
53
|
+
exports.getPermissionTargetOutput = getPermissionTargetOutput;
|
|
54
|
+
//# sourceMappingURL=getPermissionTarget.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getPermissionTarget.js","sourceRoot":"","sources":["../getPermissionTarget.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,mBAAmB,CAAC,IAA6B,EAAE,IAA2B;IAE1F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,2DAA2D,EAAE;QACtF,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,eAAe,EAAE,IAAI,CAAC,aAAa;QACnC,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AATD,kDASC;AA8CD;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,yBAAyB,CAAC,IAAmC,EAAE,IAA2B;IACtG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,mBAAmB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC9E,CAAC;AAFD,8DAEC"}
|
package/getUser.d.ts
ADDED
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* ## # Artifactory User Data Source
|
|
4
|
+
*
|
|
5
|
+
* Provides an Artifactory user data source. This can be used to read the configuration of users in artifactory.
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as artifactory from "@pulumi/artifactory";
|
|
12
|
+
*
|
|
13
|
+
* const user1 = artifactory.getUser({
|
|
14
|
+
* name: "user1",
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
export declare function getUser(args: GetUserArgs, opts?: pulumi.InvokeOptions): Promise<GetUserResult>;
|
|
19
|
+
/**
|
|
20
|
+
* A collection of arguments for invoking getUser.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetUserArgs {
|
|
23
|
+
/**
|
|
24
|
+
* When enabled, this user is an administrator with all the ensuing privileges. Default value
|
|
25
|
+
* is `false`.
|
|
26
|
+
*/
|
|
27
|
+
admin?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* When set, this user can only access Artifactory through the REST API. This option
|
|
30
|
+
* cannot be set if the user has Admin privileges. Default value is `true`.
|
|
31
|
+
*/
|
|
32
|
+
disableUiAccess?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Email for user.
|
|
35
|
+
*/
|
|
36
|
+
email?: string;
|
|
37
|
+
/**
|
|
38
|
+
* List of groups this user is a part of.
|
|
39
|
+
*/
|
|
40
|
+
groups?: string[];
|
|
41
|
+
/**
|
|
42
|
+
* When set, disables the fallback of using an internal password when external
|
|
43
|
+
* authentication (such as LDAP) is enabled.
|
|
44
|
+
*/
|
|
45
|
+
internalPasswordDisabled?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Name of the user.
|
|
48
|
+
*/
|
|
49
|
+
name: string;
|
|
50
|
+
/**
|
|
51
|
+
* When set, this user can update his profile details (except for the password. Only an
|
|
52
|
+
* administrator can update the password). Default value is `true`.
|
|
53
|
+
*/
|
|
54
|
+
profileUpdatable?: boolean;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* A collection of values returned by getUser.
|
|
58
|
+
*/
|
|
59
|
+
export interface GetUserResult {
|
|
60
|
+
/**
|
|
61
|
+
* When enabled, this user is an administrator with all the ensuing privileges. Default value
|
|
62
|
+
* is `false`.
|
|
63
|
+
*/
|
|
64
|
+
readonly admin?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* When set, this user can only access Artifactory through the REST API. This option
|
|
67
|
+
* cannot be set if the user has Admin privileges. Default value is `true`.
|
|
68
|
+
*/
|
|
69
|
+
readonly disableUiAccess?: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Email for user.
|
|
72
|
+
*/
|
|
73
|
+
readonly email?: string;
|
|
74
|
+
/**
|
|
75
|
+
* List of groups this user is a part of.
|
|
76
|
+
*/
|
|
77
|
+
readonly groups?: string[];
|
|
78
|
+
/**
|
|
79
|
+
* The provider-assigned unique ID for this managed resource.
|
|
80
|
+
*/
|
|
81
|
+
readonly id: string;
|
|
82
|
+
/**
|
|
83
|
+
* When set, disables the fallback of using an internal password when external
|
|
84
|
+
* authentication (such as LDAP) is enabled.
|
|
85
|
+
*/
|
|
86
|
+
readonly internalPasswordDisabled?: boolean;
|
|
87
|
+
readonly name: string;
|
|
88
|
+
/**
|
|
89
|
+
* When set, this user can update his profile details (except for the password. Only an
|
|
90
|
+
* administrator can update the password). Default value is `true`.
|
|
91
|
+
*/
|
|
92
|
+
readonly profileUpdatable?: boolean;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* ## # Artifactory User Data Source
|
|
96
|
+
*
|
|
97
|
+
* Provides an Artifactory user data source. This can be used to read the configuration of users in artifactory.
|
|
98
|
+
*
|
|
99
|
+
* ## Example Usage
|
|
100
|
+
*
|
|
101
|
+
* ```typescript
|
|
102
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
103
|
+
* import * as artifactory from "@pulumi/artifactory";
|
|
104
|
+
*
|
|
105
|
+
* const user1 = artifactory.getUser({
|
|
106
|
+
* name: "user1",
|
|
107
|
+
* });
|
|
108
|
+
* ```
|
|
109
|
+
*/
|
|
110
|
+
export declare function getUserOutput(args: GetUserOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetUserResult>;
|
|
111
|
+
/**
|
|
112
|
+
* A collection of arguments for invoking getUser.
|
|
113
|
+
*/
|
|
114
|
+
export interface GetUserOutputArgs {
|
|
115
|
+
/**
|
|
116
|
+
* When enabled, this user is an administrator with all the ensuing privileges. Default value
|
|
117
|
+
* is `false`.
|
|
118
|
+
*/
|
|
119
|
+
admin?: pulumi.Input<boolean>;
|
|
120
|
+
/**
|
|
121
|
+
* When set, this user can only access Artifactory through the REST API. This option
|
|
122
|
+
* cannot be set if the user has Admin privileges. Default value is `true`.
|
|
123
|
+
*/
|
|
124
|
+
disableUiAccess?: pulumi.Input<boolean>;
|
|
125
|
+
/**
|
|
126
|
+
* Email for user.
|
|
127
|
+
*/
|
|
128
|
+
email?: pulumi.Input<string>;
|
|
129
|
+
/**
|
|
130
|
+
* List of groups this user is a part of.
|
|
131
|
+
*/
|
|
132
|
+
groups?: pulumi.Input<pulumi.Input<string>[]>;
|
|
133
|
+
/**
|
|
134
|
+
* When set, disables the fallback of using an internal password when external
|
|
135
|
+
* authentication (such as LDAP) is enabled.
|
|
136
|
+
*/
|
|
137
|
+
internalPasswordDisabled?: pulumi.Input<boolean>;
|
|
138
|
+
/**
|
|
139
|
+
* Name of the user.
|
|
140
|
+
*/
|
|
141
|
+
name: pulumi.Input<string>;
|
|
142
|
+
/**
|
|
143
|
+
* When set, this user can update his profile details (except for the password. Only an
|
|
144
|
+
* administrator can update the password). Default value is `true`.
|
|
145
|
+
*/
|
|
146
|
+
profileUpdatable?: pulumi.Input<boolean>;
|
|
147
|
+
}
|
package/getUser.js
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
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.getUserOutput = exports.getUser = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## # Artifactory User Data Source
|
|
10
|
+
*
|
|
11
|
+
* Provides an Artifactory user data source. This can be used to read the configuration of users in artifactory.
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as artifactory from "@pulumi/artifactory";
|
|
18
|
+
*
|
|
19
|
+
* const user1 = artifactory.getUser({
|
|
20
|
+
* name: "user1",
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
function getUser(args, opts) {
|
|
25
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
26
|
+
return pulumi.runtime.invoke("artifactory:index/getUser:getUser", {
|
|
27
|
+
"admin": args.admin,
|
|
28
|
+
"disableUiAccess": args.disableUiAccess,
|
|
29
|
+
"email": args.email,
|
|
30
|
+
"groups": args.groups,
|
|
31
|
+
"internalPasswordDisabled": args.internalPasswordDisabled,
|
|
32
|
+
"name": args.name,
|
|
33
|
+
"profileUpdatable": args.profileUpdatable,
|
|
34
|
+
}, opts);
|
|
35
|
+
}
|
|
36
|
+
exports.getUser = getUser;
|
|
37
|
+
/**
|
|
38
|
+
* ## # Artifactory User Data Source
|
|
39
|
+
*
|
|
40
|
+
* Provides an Artifactory user data source. This can be used to read the configuration of users in artifactory.
|
|
41
|
+
*
|
|
42
|
+
* ## Example Usage
|
|
43
|
+
*
|
|
44
|
+
* ```typescript
|
|
45
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
46
|
+
* import * as artifactory from "@pulumi/artifactory";
|
|
47
|
+
*
|
|
48
|
+
* const user1 = artifactory.getUser({
|
|
49
|
+
* name: "user1",
|
|
50
|
+
* });
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
function getUserOutput(args, opts) {
|
|
54
|
+
return pulumi.output(args).apply((a) => getUser(a, opts));
|
|
55
|
+
}
|
|
56
|
+
exports.getUserOutput = getUserOutput;
|
|
57
|
+
//# sourceMappingURL=getUser.js.map
|
package/getUser.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getUser.js","sourceRoot":"","sources":["../getUser.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,OAAO,CAAC,IAAiB,EAAE,IAA2B;IAElE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,mCAAmC,EAAE;QAC9D,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,iBAAiB,EAAE,IAAI,CAAC,eAAe;QACvC,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,0BAA0B,EAAE,IAAI,CAAC,wBAAwB;QACzD,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,kBAAkB,EAAE,IAAI,CAAC,gBAAgB;KAC5C,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAZD,0BAYC;AA8ED;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,aAAa,CAAC,IAAuB,EAAE,IAA2B;IAC9E,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAClE,CAAC;AAFD,sCAEC"}
|
package/index.d.ts
CHANGED
|
@@ -148,6 +148,15 @@ export declare const getFileOutput: typeof import("./getFile").getFileOutput;
|
|
|
148
148
|
export { GetFileinfoArgs, GetFileinfoResult, GetFileinfoOutputArgs } from "./getFileinfo";
|
|
149
149
|
export declare const getFileinfo: typeof import("./getFileinfo").getFileinfo;
|
|
150
150
|
export declare const getFileinfoOutput: typeof import("./getFileinfo").getFileinfoOutput;
|
|
151
|
+
export { GetGroupArgs, GetGroupResult, GetGroupOutputArgs } from "./getGroup";
|
|
152
|
+
export declare const getGroup: typeof import("./getGroup").getGroup;
|
|
153
|
+
export declare const getGroupOutput: typeof import("./getGroup").getGroupOutput;
|
|
154
|
+
export { GetPermissionTargetArgs, GetPermissionTargetResult, GetPermissionTargetOutputArgs } from "./getPermissionTarget";
|
|
155
|
+
export declare const getPermissionTarget: typeof import("./getPermissionTarget").getPermissionTarget;
|
|
156
|
+
export declare const getPermissionTargetOutput: typeof import("./getPermissionTarget").getPermissionTargetOutput;
|
|
157
|
+
export { GetUserArgs, GetUserResult, GetUserOutputArgs } from "./getUser";
|
|
158
|
+
export declare const getUser: typeof import("./getUser").getUser;
|
|
159
|
+
export declare const getUserOutput: typeof import("./getUser").getUserOutput;
|
|
151
160
|
export { GoRepositoryArgs, GoRepositoryState } from "./goRepository";
|
|
152
161
|
export type GoRepository = import("./goRepository").GoRepository;
|
|
153
162
|
export declare const GoRepository: typeof import("./goRepository").GoRepository;
|