@pulumi/azuredevops 2.7.0 → 2.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.
@@ -0,0 +1,182 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * Manages a JFrog Platform V2 server endpoint within an Azure DevOps organization.
6
+ *
7
+ * > **Note:** Using this service endpoint requires you to first install [JFrog Extension](https://marketplace.visualstudio.com/items?itemName=JFrog.jfrog-azure-devops-extension).
8
+ *
9
+ * ## Example Usage
10
+ *
11
+ * ```typescript
12
+ * import * as pulumi from "@pulumi/pulumi";
13
+ * import * as azuredevops from "@pulumi/azuredevops";
14
+ *
15
+ * const exampleProject = new azuredevops.Project("exampleProject", {
16
+ * visibility: "private",
17
+ * versionControl: "Git",
18
+ * workItemTemplate: "Agile",
19
+ * description: "Managed by Terraform",
20
+ * });
21
+ * const exampleServiceendpointJfrogPlatformV2 = new azuredevops.ServiceendpointJfrogPlatformV2("exampleServiceendpointJfrogPlatformV2", {
22
+ * projectId: exampleProject.id,
23
+ * serviceEndpointName: "Example Artifactory",
24
+ * description: "Managed by Terraform",
25
+ * url: "https://artifactory.my.com",
26
+ * authenticationToken: {
27
+ * token: "0000000000000000000000000000000000000000",
28
+ * },
29
+ * });
30
+ * ```
31
+ * Alternatively a username and password may be used.
32
+ *
33
+ * ```typescript
34
+ * import * as pulumi from "@pulumi/pulumi";
35
+ * import * as azuredevops from "@pulumi/azuredevops";
36
+ *
37
+ * const exampleProject = new azuredevops.Project("exampleProject", {
38
+ * visibility: "private",
39
+ * versionControl: "Git",
40
+ * workItemTemplate: "Agile",
41
+ * description: "Managed by Terraform",
42
+ * });
43
+ * const exampleServiceendpointJfrogPlatformV2 = new azuredevops.ServiceendpointJfrogPlatformV2("exampleServiceendpointJfrogPlatformV2", {
44
+ * projectId: exampleProject.id,
45
+ * serviceEndpointName: "Example Artifactory",
46
+ * description: "Managed by Terraform",
47
+ * url: "https://artifactory.my.com",
48
+ * authenticationBasic: {
49
+ * username: "username",
50
+ * password: "password",
51
+ * },
52
+ * });
53
+ * ```
54
+ * ## Relevant Links
55
+ *
56
+ * * [Azure DevOps Service Connections](https://docs.microsoft.com/en-us/azure/devops/pipelines/library/service-endpoints?view=azure-devops&tabs=yaml)
57
+ * * [Artifactory User Token](https://docs.artifactory.org/latest/user-guide/user-token/)
58
+ *
59
+ * ## Import
60
+ *
61
+ * Azure DevOps Service Endpoint JFrog Platform V2 can be imported using the **projectID/serviceEndpointID**, e.g.
62
+ *
63
+ * ```sh
64
+ * $ pulumi import azuredevops:index/serviceendpointJfrogPlatformV2:ServiceendpointJfrogPlatformV2 example 00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000000
65
+ * ```
66
+ */
67
+ export declare class ServiceendpointJfrogPlatformV2 extends pulumi.CustomResource {
68
+ /**
69
+ * Get an existing ServiceendpointJfrogPlatformV2 resource's state with the given name, ID, and optional extra
70
+ * properties used to qualify the lookup.
71
+ *
72
+ * @param name The _unique_ name of the resulting resource.
73
+ * @param id The _unique_ provider ID of the resource to lookup.
74
+ * @param state Any extra arguments used during the lookup.
75
+ * @param opts Optional settings to control the behavior of the CustomResource.
76
+ */
77
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ServiceendpointJfrogPlatformV2State, opts?: pulumi.CustomResourceOptions): ServiceendpointJfrogPlatformV2;
78
+ /**
79
+ * Returns true if the given object is an instance of ServiceendpointJfrogPlatformV2. 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: any): obj is ServiceendpointJfrogPlatformV2;
83
+ /**
84
+ * A `authenticationBasic` block as documented below.
85
+ */
86
+ readonly authenticationBasic: pulumi.Output<outputs.ServiceendpointJfrogPlatformV2AuthenticationBasic | undefined>;
87
+ /**
88
+ * A `authenticationToken` block as documented below.
89
+ */
90
+ readonly authenticationToken: pulumi.Output<outputs.ServiceendpointJfrogPlatformV2AuthenticationToken | undefined>;
91
+ readonly authorization: pulumi.Output<{
92
+ [key: string]: string;
93
+ }>;
94
+ /**
95
+ * The Service Endpoint description.
96
+ */
97
+ readonly description: pulumi.Output<string | undefined>;
98
+ /**
99
+ * The ID of the project.
100
+ */
101
+ readonly projectId: pulumi.Output<string>;
102
+ /**
103
+ * The Service Endpoint name.
104
+ */
105
+ readonly serviceEndpointName: pulumi.Output<string>;
106
+ /**
107
+ * URL of the Artifactory server to connect with.
108
+ */
109
+ readonly url: pulumi.Output<string>;
110
+ /**
111
+ * Create a ServiceendpointJfrogPlatformV2 resource with the given unique name, arguments, and options.
112
+ *
113
+ * @param name The _unique_ name of the resource.
114
+ * @param args The arguments to use to populate this resource's properties.
115
+ * @param opts A bag of options that control this resource's behavior.
116
+ */
117
+ constructor(name: string, args: ServiceendpointJfrogPlatformV2Args, opts?: pulumi.CustomResourceOptions);
118
+ }
119
+ /**
120
+ * Input properties used for looking up and filtering ServiceendpointJfrogPlatformV2 resources.
121
+ */
122
+ export interface ServiceendpointJfrogPlatformV2State {
123
+ /**
124
+ * A `authenticationBasic` block as documented below.
125
+ */
126
+ authenticationBasic?: pulumi.Input<inputs.ServiceendpointJfrogPlatformV2AuthenticationBasic>;
127
+ /**
128
+ * A `authenticationToken` block as documented below.
129
+ */
130
+ authenticationToken?: pulumi.Input<inputs.ServiceendpointJfrogPlatformV2AuthenticationToken>;
131
+ authorization?: pulumi.Input<{
132
+ [key: string]: pulumi.Input<string>;
133
+ }>;
134
+ /**
135
+ * The Service Endpoint description.
136
+ */
137
+ description?: pulumi.Input<string>;
138
+ /**
139
+ * The ID of the project.
140
+ */
141
+ projectId?: pulumi.Input<string>;
142
+ /**
143
+ * The Service Endpoint name.
144
+ */
145
+ serviceEndpointName?: pulumi.Input<string>;
146
+ /**
147
+ * URL of the Artifactory server to connect with.
148
+ */
149
+ url?: pulumi.Input<string>;
150
+ }
151
+ /**
152
+ * The set of arguments for constructing a ServiceendpointJfrogPlatformV2 resource.
153
+ */
154
+ export interface ServiceendpointJfrogPlatformV2Args {
155
+ /**
156
+ * A `authenticationBasic` block as documented below.
157
+ */
158
+ authenticationBasic?: pulumi.Input<inputs.ServiceendpointJfrogPlatformV2AuthenticationBasic>;
159
+ /**
160
+ * A `authenticationToken` block as documented below.
161
+ */
162
+ authenticationToken?: pulumi.Input<inputs.ServiceendpointJfrogPlatformV2AuthenticationToken>;
163
+ authorization?: pulumi.Input<{
164
+ [key: string]: pulumi.Input<string>;
165
+ }>;
166
+ /**
167
+ * The Service Endpoint description.
168
+ */
169
+ description?: pulumi.Input<string>;
170
+ /**
171
+ * The ID of the project.
172
+ */
173
+ projectId: pulumi.Input<string>;
174
+ /**
175
+ * The Service Endpoint name.
176
+ */
177
+ serviceEndpointName: pulumi.Input<string>;
178
+ /**
179
+ * URL of the Artifactory server to connect with.
180
+ */
181
+ url: pulumi.Input<string>;
182
+ }
@@ -0,0 +1,133 @@
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.ServiceendpointJfrogPlatformV2 = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Manages a JFrog Platform V2 server endpoint within an Azure DevOps organization.
10
+ *
11
+ * > **Note:** Using this service endpoint requires you to first install [JFrog Extension](https://marketplace.visualstudio.com/items?itemName=JFrog.jfrog-azure-devops-extension).
12
+ *
13
+ * ## Example Usage
14
+ *
15
+ * ```typescript
16
+ * import * as pulumi from "@pulumi/pulumi";
17
+ * import * as azuredevops from "@pulumi/azuredevops";
18
+ *
19
+ * const exampleProject = new azuredevops.Project("exampleProject", {
20
+ * visibility: "private",
21
+ * versionControl: "Git",
22
+ * workItemTemplate: "Agile",
23
+ * description: "Managed by Terraform",
24
+ * });
25
+ * const exampleServiceendpointJfrogPlatformV2 = new azuredevops.ServiceendpointJfrogPlatformV2("exampleServiceendpointJfrogPlatformV2", {
26
+ * projectId: exampleProject.id,
27
+ * serviceEndpointName: "Example Artifactory",
28
+ * description: "Managed by Terraform",
29
+ * url: "https://artifactory.my.com",
30
+ * authenticationToken: {
31
+ * token: "0000000000000000000000000000000000000000",
32
+ * },
33
+ * });
34
+ * ```
35
+ * Alternatively a username and password may be used.
36
+ *
37
+ * ```typescript
38
+ * import * as pulumi from "@pulumi/pulumi";
39
+ * import * as azuredevops from "@pulumi/azuredevops";
40
+ *
41
+ * const exampleProject = new azuredevops.Project("exampleProject", {
42
+ * visibility: "private",
43
+ * versionControl: "Git",
44
+ * workItemTemplate: "Agile",
45
+ * description: "Managed by Terraform",
46
+ * });
47
+ * const exampleServiceendpointJfrogPlatformV2 = new azuredevops.ServiceendpointJfrogPlatformV2("exampleServiceendpointJfrogPlatformV2", {
48
+ * projectId: exampleProject.id,
49
+ * serviceEndpointName: "Example Artifactory",
50
+ * description: "Managed by Terraform",
51
+ * url: "https://artifactory.my.com",
52
+ * authenticationBasic: {
53
+ * username: "username",
54
+ * password: "password",
55
+ * },
56
+ * });
57
+ * ```
58
+ * ## Relevant Links
59
+ *
60
+ * * [Azure DevOps Service Connections](https://docs.microsoft.com/en-us/azure/devops/pipelines/library/service-endpoints?view=azure-devops&tabs=yaml)
61
+ * * [Artifactory User Token](https://docs.artifactory.org/latest/user-guide/user-token/)
62
+ *
63
+ * ## Import
64
+ *
65
+ * Azure DevOps Service Endpoint JFrog Platform V2 can be imported using the **projectID/serviceEndpointID**, e.g.
66
+ *
67
+ * ```sh
68
+ * $ pulumi import azuredevops:index/serviceendpointJfrogPlatformV2:ServiceendpointJfrogPlatformV2 example 00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000000
69
+ * ```
70
+ */
71
+ class ServiceendpointJfrogPlatformV2 extends pulumi.CustomResource {
72
+ /**
73
+ * Get an existing ServiceendpointJfrogPlatformV2 resource's state with the given name, ID, and optional extra
74
+ * properties used to qualify the lookup.
75
+ *
76
+ * @param name The _unique_ name of the resulting resource.
77
+ * @param id The _unique_ provider ID of the resource to lookup.
78
+ * @param state Any extra arguments used during the lookup.
79
+ * @param opts Optional settings to control the behavior of the CustomResource.
80
+ */
81
+ static get(name, id, state, opts) {
82
+ return new ServiceendpointJfrogPlatformV2(name, state, Object.assign(Object.assign({}, opts), { id: id }));
83
+ }
84
+ /**
85
+ * Returns true if the given object is an instance of ServiceendpointJfrogPlatformV2. This is designed to work even
86
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
87
+ */
88
+ static isInstance(obj) {
89
+ if (obj === undefined || obj === null) {
90
+ return false;
91
+ }
92
+ return obj['__pulumiType'] === ServiceendpointJfrogPlatformV2.__pulumiType;
93
+ }
94
+ constructor(name, argsOrState, opts) {
95
+ let resourceInputs = {};
96
+ opts = opts || {};
97
+ if (opts.id) {
98
+ const state = argsOrState;
99
+ resourceInputs["authenticationBasic"] = state ? state.authenticationBasic : undefined;
100
+ resourceInputs["authenticationToken"] = state ? state.authenticationToken : undefined;
101
+ resourceInputs["authorization"] = state ? state.authorization : undefined;
102
+ resourceInputs["description"] = state ? state.description : undefined;
103
+ resourceInputs["projectId"] = state ? state.projectId : undefined;
104
+ resourceInputs["serviceEndpointName"] = state ? state.serviceEndpointName : undefined;
105
+ resourceInputs["url"] = state ? state.url : undefined;
106
+ }
107
+ else {
108
+ const args = argsOrState;
109
+ if ((!args || args.projectId === undefined) && !opts.urn) {
110
+ throw new Error("Missing required property 'projectId'");
111
+ }
112
+ if ((!args || args.serviceEndpointName === undefined) && !opts.urn) {
113
+ throw new Error("Missing required property 'serviceEndpointName'");
114
+ }
115
+ if ((!args || args.url === undefined) && !opts.urn) {
116
+ throw new Error("Missing required property 'url'");
117
+ }
118
+ resourceInputs["authenticationBasic"] = args ? args.authenticationBasic : undefined;
119
+ resourceInputs["authenticationToken"] = args ? args.authenticationToken : undefined;
120
+ resourceInputs["authorization"] = args ? args.authorization : undefined;
121
+ resourceInputs["description"] = args ? args.description : undefined;
122
+ resourceInputs["projectId"] = args ? args.projectId : undefined;
123
+ resourceInputs["serviceEndpointName"] = args ? args.serviceEndpointName : undefined;
124
+ resourceInputs["url"] = args ? args.url : undefined;
125
+ }
126
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
127
+ super(ServiceendpointJfrogPlatformV2.__pulumiType, name, resourceInputs, opts);
128
+ }
129
+ }
130
+ exports.ServiceendpointJfrogPlatformV2 = ServiceendpointJfrogPlatformV2;
131
+ /** @internal */
132
+ ServiceendpointJfrogPlatformV2.__pulumiType = 'azuredevops:index/serviceendpointJfrogPlatformV2:ServiceendpointJfrogPlatformV2';
133
+ //# sourceMappingURL=serviceendpointJfrogPlatformV2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serviceendpointJfrogPlatformV2.js","sourceRoot":"","sources":["../serviceendpointJfrogPlatformV2.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DG;AACH,MAAa,8BAA+B,SAAQ,MAAM,CAAC,cAAc;IACrE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA2C,EAAE,IAAmC;QACzI,OAAO,IAAI,8BAA8B,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACrF,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,8BAA8B,CAAC,YAAY,CAAC;IAC/E,CAAC;IAoCD,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CAAC;IACnF,CAAC;;AA/FL,wEAgGC;AAlFG,gBAAgB;AACO,2CAAY,GAAG,iFAAiF,CAAC"}
@@ -0,0 +1,182 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * Manages an JFrog XRay V2 server endpoint within an Azure DevOps organization.
6
+ *
7
+ * > **Note:** Using this service endpoint requires you to first install [JFrog Extension](https://marketplace.visualstudio.com/items?itemName=JFrog.jfrog-azure-devops-extension).
8
+ *
9
+ * ## Example Usage
10
+ *
11
+ * ```typescript
12
+ * import * as pulumi from "@pulumi/pulumi";
13
+ * import * as azuredevops from "@pulumi/azuredevops";
14
+ *
15
+ * const exampleProject = new azuredevops.Project("exampleProject", {
16
+ * visibility: "private",
17
+ * versionControl: "Git",
18
+ * workItemTemplate: "Agile",
19
+ * description: "Managed by Terraform",
20
+ * });
21
+ * const exampleServiceendpointJfrogXrayV2 = new azuredevops.ServiceendpointJfrogXrayV2("exampleServiceendpointJfrogXrayV2", {
22
+ * projectId: exampleProject.id,
23
+ * serviceEndpointName: "Example Artifactory",
24
+ * description: "Managed by Terraform",
25
+ * url: "https://artifactory.my.com",
26
+ * authenticationToken: {
27
+ * token: "0000000000000000000000000000000000000000",
28
+ * },
29
+ * });
30
+ * ```
31
+ * Alternatively a username and password may be used.
32
+ *
33
+ * ```typescript
34
+ * import * as pulumi from "@pulumi/pulumi";
35
+ * import * as azuredevops from "@pulumi/azuredevops";
36
+ *
37
+ * const exampleProject = new azuredevops.Project("exampleProject", {
38
+ * visibility: "private",
39
+ * versionControl: "Git",
40
+ * workItemTemplate: "Agile",
41
+ * description: "Managed by Terraform",
42
+ * });
43
+ * const exampleServiceendpointJfrogXrayV2 = new azuredevops.ServiceendpointJfrogXrayV2("exampleServiceendpointJfrogXrayV2", {
44
+ * projectId: exampleProject.id,
45
+ * serviceEndpointName: "Example Artifactory",
46
+ * description: "Managed by Terraform",
47
+ * url: "https://artifactory.my.com",
48
+ * authenticationBasic: {
49
+ * username: "username",
50
+ * password: "password",
51
+ * },
52
+ * });
53
+ * ```
54
+ * ## Relevant Links
55
+ *
56
+ * * [Azure DevOps Service Connections](https://docs.microsoft.com/en-us/azure/devops/pipelines/library/service-endpoints?view=azure-devops&tabs=yaml)
57
+ * * [Artifactory User Token](https://docs.artifactory.org/latest/user-guide/user-token/)
58
+ *
59
+ * ## Import
60
+ *
61
+ * Azure DevOps Service Endpoint JFrog XRay V2 can be imported using the **projectID/serviceEndpointID**, e.g.
62
+ *
63
+ * ```sh
64
+ * $ pulumi import azuredevops:index/serviceendpointJfrogXrayV2:ServiceendpointJfrogXrayV2 example 00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000000
65
+ * ```
66
+ */
67
+ export declare class ServiceendpointJfrogXrayV2 extends pulumi.CustomResource {
68
+ /**
69
+ * Get an existing ServiceendpointJfrogXrayV2 resource's state with the given name, ID, and optional extra
70
+ * properties used to qualify the lookup.
71
+ *
72
+ * @param name The _unique_ name of the resulting resource.
73
+ * @param id The _unique_ provider ID of the resource to lookup.
74
+ * @param state Any extra arguments used during the lookup.
75
+ * @param opts Optional settings to control the behavior of the CustomResource.
76
+ */
77
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ServiceendpointJfrogXrayV2State, opts?: pulumi.CustomResourceOptions): ServiceendpointJfrogXrayV2;
78
+ /**
79
+ * Returns true if the given object is an instance of ServiceendpointJfrogXrayV2. 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: any): obj is ServiceendpointJfrogXrayV2;
83
+ /**
84
+ * A `authenticationBasic` block as documented below.
85
+ */
86
+ readonly authenticationBasic: pulumi.Output<outputs.ServiceendpointJfrogXrayV2AuthenticationBasic | undefined>;
87
+ /**
88
+ * A `authenticationToken` block as documented below.
89
+ */
90
+ readonly authenticationToken: pulumi.Output<outputs.ServiceendpointJfrogXrayV2AuthenticationToken | undefined>;
91
+ readonly authorization: pulumi.Output<{
92
+ [key: string]: string;
93
+ }>;
94
+ /**
95
+ * The Service Endpoint description.
96
+ */
97
+ readonly description: pulumi.Output<string | undefined>;
98
+ /**
99
+ * The ID of the project.
100
+ */
101
+ readonly projectId: pulumi.Output<string>;
102
+ /**
103
+ * The Service Endpoint name.
104
+ */
105
+ readonly serviceEndpointName: pulumi.Output<string>;
106
+ /**
107
+ * URL of the Artifactory server to connect with.
108
+ */
109
+ readonly url: pulumi.Output<string>;
110
+ /**
111
+ * Create a ServiceendpointJfrogXrayV2 resource with the given unique name, arguments, and options.
112
+ *
113
+ * @param name The _unique_ name of the resource.
114
+ * @param args The arguments to use to populate this resource's properties.
115
+ * @param opts A bag of options that control this resource's behavior.
116
+ */
117
+ constructor(name: string, args: ServiceendpointJfrogXrayV2Args, opts?: pulumi.CustomResourceOptions);
118
+ }
119
+ /**
120
+ * Input properties used for looking up and filtering ServiceendpointJfrogXrayV2 resources.
121
+ */
122
+ export interface ServiceendpointJfrogXrayV2State {
123
+ /**
124
+ * A `authenticationBasic` block as documented below.
125
+ */
126
+ authenticationBasic?: pulumi.Input<inputs.ServiceendpointJfrogXrayV2AuthenticationBasic>;
127
+ /**
128
+ * A `authenticationToken` block as documented below.
129
+ */
130
+ authenticationToken?: pulumi.Input<inputs.ServiceendpointJfrogXrayV2AuthenticationToken>;
131
+ authorization?: pulumi.Input<{
132
+ [key: string]: pulumi.Input<string>;
133
+ }>;
134
+ /**
135
+ * The Service Endpoint description.
136
+ */
137
+ description?: pulumi.Input<string>;
138
+ /**
139
+ * The ID of the project.
140
+ */
141
+ projectId?: pulumi.Input<string>;
142
+ /**
143
+ * The Service Endpoint name.
144
+ */
145
+ serviceEndpointName?: pulumi.Input<string>;
146
+ /**
147
+ * URL of the Artifactory server to connect with.
148
+ */
149
+ url?: pulumi.Input<string>;
150
+ }
151
+ /**
152
+ * The set of arguments for constructing a ServiceendpointJfrogXrayV2 resource.
153
+ */
154
+ export interface ServiceendpointJfrogXrayV2Args {
155
+ /**
156
+ * A `authenticationBasic` block as documented below.
157
+ */
158
+ authenticationBasic?: pulumi.Input<inputs.ServiceendpointJfrogXrayV2AuthenticationBasic>;
159
+ /**
160
+ * A `authenticationToken` block as documented below.
161
+ */
162
+ authenticationToken?: pulumi.Input<inputs.ServiceendpointJfrogXrayV2AuthenticationToken>;
163
+ authorization?: pulumi.Input<{
164
+ [key: string]: pulumi.Input<string>;
165
+ }>;
166
+ /**
167
+ * The Service Endpoint description.
168
+ */
169
+ description?: pulumi.Input<string>;
170
+ /**
171
+ * The ID of the project.
172
+ */
173
+ projectId: pulumi.Input<string>;
174
+ /**
175
+ * The Service Endpoint name.
176
+ */
177
+ serviceEndpointName: pulumi.Input<string>;
178
+ /**
179
+ * URL of the Artifactory server to connect with.
180
+ */
181
+ url: pulumi.Input<string>;
182
+ }
@@ -0,0 +1,133 @@
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.ServiceendpointJfrogXrayV2 = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Manages an JFrog XRay V2 server endpoint within an Azure DevOps organization.
10
+ *
11
+ * > **Note:** Using this service endpoint requires you to first install [JFrog Extension](https://marketplace.visualstudio.com/items?itemName=JFrog.jfrog-azure-devops-extension).
12
+ *
13
+ * ## Example Usage
14
+ *
15
+ * ```typescript
16
+ * import * as pulumi from "@pulumi/pulumi";
17
+ * import * as azuredevops from "@pulumi/azuredevops";
18
+ *
19
+ * const exampleProject = new azuredevops.Project("exampleProject", {
20
+ * visibility: "private",
21
+ * versionControl: "Git",
22
+ * workItemTemplate: "Agile",
23
+ * description: "Managed by Terraform",
24
+ * });
25
+ * const exampleServiceendpointJfrogXrayV2 = new azuredevops.ServiceendpointJfrogXrayV2("exampleServiceendpointJfrogXrayV2", {
26
+ * projectId: exampleProject.id,
27
+ * serviceEndpointName: "Example Artifactory",
28
+ * description: "Managed by Terraform",
29
+ * url: "https://artifactory.my.com",
30
+ * authenticationToken: {
31
+ * token: "0000000000000000000000000000000000000000",
32
+ * },
33
+ * });
34
+ * ```
35
+ * Alternatively a username and password may be used.
36
+ *
37
+ * ```typescript
38
+ * import * as pulumi from "@pulumi/pulumi";
39
+ * import * as azuredevops from "@pulumi/azuredevops";
40
+ *
41
+ * const exampleProject = new azuredevops.Project("exampleProject", {
42
+ * visibility: "private",
43
+ * versionControl: "Git",
44
+ * workItemTemplate: "Agile",
45
+ * description: "Managed by Terraform",
46
+ * });
47
+ * const exampleServiceendpointJfrogXrayV2 = new azuredevops.ServiceendpointJfrogXrayV2("exampleServiceendpointJfrogXrayV2", {
48
+ * projectId: exampleProject.id,
49
+ * serviceEndpointName: "Example Artifactory",
50
+ * description: "Managed by Terraform",
51
+ * url: "https://artifactory.my.com",
52
+ * authenticationBasic: {
53
+ * username: "username",
54
+ * password: "password",
55
+ * },
56
+ * });
57
+ * ```
58
+ * ## Relevant Links
59
+ *
60
+ * * [Azure DevOps Service Connections](https://docs.microsoft.com/en-us/azure/devops/pipelines/library/service-endpoints?view=azure-devops&tabs=yaml)
61
+ * * [Artifactory User Token](https://docs.artifactory.org/latest/user-guide/user-token/)
62
+ *
63
+ * ## Import
64
+ *
65
+ * Azure DevOps Service Endpoint JFrog XRay V2 can be imported using the **projectID/serviceEndpointID**, e.g.
66
+ *
67
+ * ```sh
68
+ * $ pulumi import azuredevops:index/serviceendpointJfrogXrayV2:ServiceendpointJfrogXrayV2 example 00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000000
69
+ * ```
70
+ */
71
+ class ServiceendpointJfrogXrayV2 extends pulumi.CustomResource {
72
+ /**
73
+ * Get an existing ServiceendpointJfrogXrayV2 resource's state with the given name, ID, and optional extra
74
+ * properties used to qualify the lookup.
75
+ *
76
+ * @param name The _unique_ name of the resulting resource.
77
+ * @param id The _unique_ provider ID of the resource to lookup.
78
+ * @param state Any extra arguments used during the lookup.
79
+ * @param opts Optional settings to control the behavior of the CustomResource.
80
+ */
81
+ static get(name, id, state, opts) {
82
+ return new ServiceendpointJfrogXrayV2(name, state, Object.assign(Object.assign({}, opts), { id: id }));
83
+ }
84
+ /**
85
+ * Returns true if the given object is an instance of ServiceendpointJfrogXrayV2. This is designed to work even
86
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
87
+ */
88
+ static isInstance(obj) {
89
+ if (obj === undefined || obj === null) {
90
+ return false;
91
+ }
92
+ return obj['__pulumiType'] === ServiceendpointJfrogXrayV2.__pulumiType;
93
+ }
94
+ constructor(name, argsOrState, opts) {
95
+ let resourceInputs = {};
96
+ opts = opts || {};
97
+ if (opts.id) {
98
+ const state = argsOrState;
99
+ resourceInputs["authenticationBasic"] = state ? state.authenticationBasic : undefined;
100
+ resourceInputs["authenticationToken"] = state ? state.authenticationToken : undefined;
101
+ resourceInputs["authorization"] = state ? state.authorization : undefined;
102
+ resourceInputs["description"] = state ? state.description : undefined;
103
+ resourceInputs["projectId"] = state ? state.projectId : undefined;
104
+ resourceInputs["serviceEndpointName"] = state ? state.serviceEndpointName : undefined;
105
+ resourceInputs["url"] = state ? state.url : undefined;
106
+ }
107
+ else {
108
+ const args = argsOrState;
109
+ if ((!args || args.projectId === undefined) && !opts.urn) {
110
+ throw new Error("Missing required property 'projectId'");
111
+ }
112
+ if ((!args || args.serviceEndpointName === undefined) && !opts.urn) {
113
+ throw new Error("Missing required property 'serviceEndpointName'");
114
+ }
115
+ if ((!args || args.url === undefined) && !opts.urn) {
116
+ throw new Error("Missing required property 'url'");
117
+ }
118
+ resourceInputs["authenticationBasic"] = args ? args.authenticationBasic : undefined;
119
+ resourceInputs["authenticationToken"] = args ? args.authenticationToken : undefined;
120
+ resourceInputs["authorization"] = args ? args.authorization : undefined;
121
+ resourceInputs["description"] = args ? args.description : undefined;
122
+ resourceInputs["projectId"] = args ? args.projectId : undefined;
123
+ resourceInputs["serviceEndpointName"] = args ? args.serviceEndpointName : undefined;
124
+ resourceInputs["url"] = args ? args.url : undefined;
125
+ }
126
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
127
+ super(ServiceendpointJfrogXrayV2.__pulumiType, name, resourceInputs, opts);
128
+ }
129
+ }
130
+ exports.ServiceendpointJfrogXrayV2 = ServiceendpointJfrogXrayV2;
131
+ /** @internal */
132
+ ServiceendpointJfrogXrayV2.__pulumiType = 'azuredevops:index/serviceendpointJfrogXrayV2:ServiceendpointJfrogXrayV2';
133
+ //# sourceMappingURL=serviceendpointJfrogXrayV2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serviceendpointJfrogXrayV2.js","sourceRoot":"","sources":["../serviceendpointJfrogXrayV2.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DG;AACH,MAAa,0BAA2B,SAAQ,MAAM,CAAC,cAAc;IACjE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuC,EAAE,IAAmC;QACrI,OAAO,IAAI,0BAA0B,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACjF,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,0BAA0B,CAAC,YAAY,CAAC;IAC3E,CAAC;IAoCD,YAAY,IAAY,EAAE,WAA8E,EAAE,IAAmC;QACzI,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,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