@pulumi/artifactory 7.10.0 → 8.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.
- package/README.md +1 -2
- package/config/vars.d.ts +0 -4
- package/config/vars.js +0 -7
- package/config/vars.js.map +1 -1
- package/index.d.ts +0 -9
- package/index.js +10 -25
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/provider.d.ts +0 -6
- package/provider.js +0 -2
- package/provider.js.map +1 -1
- package/remoteAlpineRepository.d.ts +3 -3
- package/remoteAnsibleRepository.d.ts +3 -3
- package/remoteBowerRepository.d.ts +3 -3
- package/remoteCargoRepository.d.ts +3 -3
- package/remoteChefRepository.d.ts +3 -3
- package/remoteCocoapodsRepository.d.ts +3 -3
- package/remoteComposerRepository.d.ts +3 -3
- package/remoteConanRepository.d.ts +3 -3
- package/remoteCondaRepository.d.ts +3 -3
- package/remoteCranRepository.d.ts +3 -3
- package/remoteDebianRepository.d.ts +3 -3
- package/remoteDockerRepository.d.ts +3 -3
- package/remoteGemsRepository.d.ts +3 -3
- package/remoteGenericRepository.d.ts +3 -3
- package/remoteGitlfsRepository.d.ts +3 -3
- package/remoteGoRepository.d.ts +3 -3
- package/remoteGradleRepository.d.ts +3 -3
- package/remoteHelmRepository.d.ts +3 -3
- package/remoteHelmociRepository.d.ts +3 -3
- package/remoteHuggingfacemlRepository.d.ts +3 -3
- package/remoteIvyRepository.d.ts +3 -3
- package/remoteMavenRepository.d.ts +3 -3
- package/remoteNpmRepository.d.ts +3 -3
- package/remoteNugetRepository.d.ts +3 -3
- package/remoteOciRepository.d.ts +3 -3
- package/remoteOpkgRepository.d.ts +3 -3
- package/remoteP2Repository.d.ts +3 -3
- package/remotePubRepository.d.ts +3 -3
- package/remotePuppetRepository.d.ts +3 -3
- package/remotePypiRepository.d.ts +3 -3
- package/remoteRpmRepository.d.ts +3 -3
- package/remoteSbtRepository.d.ts +3 -3
- package/remoteSwiftRepository.d.ts +3 -3
- package/remoteTerraformRepository.d.ts +3 -3
- package/remoteVcsRepository.d.ts +3 -3
- package/types/input.d.ts +0 -21
- package/types/output.d.ts +0 -21
- package/accessToken.d.ts +0 -307
- package/accessToken.js +0 -239
- package/accessToken.js.map +0 -1
- package/replicationConfig.d.ts +0 -93
- package/replicationConfig.js +0 -95
- package/replicationConfig.js.map +0 -1
- package/singleReplicationConfig.d.ts +0 -115
- package/singleReplicationConfig.js +0 -98
- package/singleReplicationConfig.js.map +0 -1
package/accessToken.js
DELETED
|
@@ -1,239 +0,0 @@
|
|
|
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.AccessToken = void 0;
|
|
6
|
-
const pulumi = require("@pulumi/pulumi");
|
|
7
|
-
const utilities = require("./utilities");
|
|
8
|
-
/**
|
|
9
|
-
* !> **Warning:** This resource is being deprecated and replaced by `artifactory.ScopedToken` since v6.8.0.
|
|
10
|
-
*
|
|
11
|
-
* Provides an Artifactory Access Token resource. This can be used to create and manage Artifactory Access Tokens.
|
|
12
|
-
*
|
|
13
|
-
* > **Note:** Access Tokens will be stored in the raw state as plain-text. Read more about sensitive data in
|
|
14
|
-
* state.
|
|
15
|
-
*
|
|
16
|
-
* ## Example Usage
|
|
17
|
-
*
|
|
18
|
-
* ### S
|
|
19
|
-
* ### Create a new Artifactory Access Token for an existing user
|
|
20
|
-
*
|
|
21
|
-
* ```typescript
|
|
22
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
23
|
-
* import * as artifactory from "@pulumi/artifactory";
|
|
24
|
-
*
|
|
25
|
-
* const exisingUser = new artifactory.AccessToken("exising_user", {
|
|
26
|
-
* username: "existing-user",
|
|
27
|
-
* endDateRelative: "5m",
|
|
28
|
-
* });
|
|
29
|
-
* ```
|
|
30
|
-
*
|
|
31
|
-
* Note: This assumes that the user `existing-user` has already been created in Artifactory by different means, i.e. manually or in a separate pulumi up.
|
|
32
|
-
*
|
|
33
|
-
* ### Create a new Artifactory User and Access token
|
|
34
|
-
* ```typescript
|
|
35
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
36
|
-
* import * as artifactory from "@pulumi/artifactory";
|
|
37
|
-
*
|
|
38
|
-
* const newUser = new artifactory.User("new_user", {
|
|
39
|
-
* name: "new_user",
|
|
40
|
-
* email: "new_user@somewhere.com",
|
|
41
|
-
* groups: ["readers"],
|
|
42
|
-
* });
|
|
43
|
-
* const newUserAccessToken = new artifactory.AccessToken("new_user", {
|
|
44
|
-
* username: newUser.name,
|
|
45
|
-
* endDateRelative: "5m",
|
|
46
|
-
* });
|
|
47
|
-
* ```
|
|
48
|
-
*
|
|
49
|
-
* ### Creates a new token for groups
|
|
50
|
-
* This creates a transient user called `temporary-user`.
|
|
51
|
-
* ```typescript
|
|
52
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
53
|
-
* import * as artifactory from "@pulumi/artifactory";
|
|
54
|
-
*
|
|
55
|
-
* const temporaryUser = new artifactory.AccessToken("temporary_user", {
|
|
56
|
-
* username: "temporary-user",
|
|
57
|
-
* endDateRelative: "1h",
|
|
58
|
-
* groups: ["readers"],
|
|
59
|
-
* });
|
|
60
|
-
* ```
|
|
61
|
-
*
|
|
62
|
-
* ### Create token with no expiry
|
|
63
|
-
* ```typescript
|
|
64
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
65
|
-
* import * as artifactory from "@pulumi/artifactory";
|
|
66
|
-
*
|
|
67
|
-
* const noExpiry = new artifactory.AccessToken("no_expiry", {
|
|
68
|
-
* username: "existing-user",
|
|
69
|
-
* endDateRelative: "0s",
|
|
70
|
-
* });
|
|
71
|
-
* ```
|
|
72
|
-
*
|
|
73
|
-
* ### Creates a refreshable token
|
|
74
|
-
* ```typescript
|
|
75
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
76
|
-
* import * as artifactory from "@pulumi/artifactory";
|
|
77
|
-
*
|
|
78
|
-
* const refreshable = new artifactory.AccessToken("refreshable", {
|
|
79
|
-
* username: "refreshable",
|
|
80
|
-
* endDateRelative: "1m",
|
|
81
|
-
* refreshable: true,
|
|
82
|
-
* groups: ["readers"],
|
|
83
|
-
* });
|
|
84
|
-
* ```
|
|
85
|
-
*
|
|
86
|
-
* ### Creates an administrator token
|
|
87
|
-
* ```typescript
|
|
88
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
89
|
-
* import * as artifactory from "@pulumi/artifactory";
|
|
90
|
-
*
|
|
91
|
-
* const admin = new artifactory.AccessToken("admin", {
|
|
92
|
-
* username: "admin",
|
|
93
|
-
* endDateRelative: "1m",
|
|
94
|
-
* adminToken: {
|
|
95
|
-
* instanceId: "<instance id>",
|
|
96
|
-
* },
|
|
97
|
-
* });
|
|
98
|
-
* ```
|
|
99
|
-
*
|
|
100
|
-
* ### Creates a token with an audience
|
|
101
|
-
* ```typescript
|
|
102
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
103
|
-
* import * as artifactory from "@pulumi/artifactory";
|
|
104
|
-
*
|
|
105
|
-
* const audience = new artifactory.AccessToken("audience", {
|
|
106
|
-
* username: "audience",
|
|
107
|
-
* endDateRelative: "1m",
|
|
108
|
-
* audience: "jfrt@*",
|
|
109
|
-
* refreshable: true,
|
|
110
|
-
* });
|
|
111
|
-
* ```
|
|
112
|
-
*
|
|
113
|
-
* ### Creates a token with a fixed end date
|
|
114
|
-
* ```typescript
|
|
115
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
116
|
-
* import * as artifactory from "@pulumi/artifactory";
|
|
117
|
-
*
|
|
118
|
-
* const fixeddate = new artifactory.AccessToken("fixeddate", {
|
|
119
|
-
* username: "fixeddate",
|
|
120
|
-
* endDate: "2018-01-01T01:02:03Z",
|
|
121
|
-
* groups: ["readers"],
|
|
122
|
-
* });
|
|
123
|
-
* ```
|
|
124
|
-
*
|
|
125
|
-
* ### Rotate token after it expires
|
|
126
|
-
* This example will generate a token that will expire in 1 hour.
|
|
127
|
-
*
|
|
128
|
-
* If `pulumi up` is run before 1 hour, nothing changes.
|
|
129
|
-
* One an hour has passed, `pulumi up` will generate a new token.
|
|
130
|
-
*
|
|
131
|
-
* ```typescript
|
|
132
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
133
|
-
* import * as artifactory from "@pulumi/artifactory";
|
|
134
|
-
* import * as time from "@pulumiverse/time";
|
|
135
|
-
*
|
|
136
|
-
* const nowPlus1Hours = new time.Rotating("now_plus_1_hours", {rotationHours: 1});
|
|
137
|
-
* const rotating = new artifactory.AccessToken("rotating", {
|
|
138
|
-
* username: "rotating",
|
|
139
|
-
* endDate: nowPlus1Hour.rotationRfc3339,
|
|
140
|
-
* groups: ["readers"],
|
|
141
|
-
* });
|
|
142
|
-
* ```
|
|
143
|
-
*
|
|
144
|
-
* ### Rotate token each pulumi up
|
|
145
|
-
* This example will generate a token that will expire in 1 hour.
|
|
146
|
-
*
|
|
147
|
-
* If `pulumi up` is run before 1 hour, a new token is generated with an expiry of 1 hour.
|
|
148
|
-
*
|
|
149
|
-
* ```typescript
|
|
150
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
151
|
-
* import * as artifactory from "@pulumi/artifactory";
|
|
152
|
-
* import * as std from "@pulumi/std";
|
|
153
|
-
* import * as time from "@pulumiverse/time";
|
|
154
|
-
*
|
|
155
|
-
* const nowPlus1Hours = new time.Rotating("now_plus_1_hours", {
|
|
156
|
-
* triggers: {
|
|
157
|
-
* key: std.timestamp({}).then(invoke => invoke.result),
|
|
158
|
-
* },
|
|
159
|
-
* rotationHours: 1,
|
|
160
|
-
* });
|
|
161
|
-
* const rotating = new artifactory.AccessToken("rotating", {
|
|
162
|
-
* username: "rotating",
|
|
163
|
-
* endDate: nowPlus1Hour.rotationRfc3339,
|
|
164
|
-
* groups: ["readers"],
|
|
165
|
-
* });
|
|
166
|
-
* ```
|
|
167
|
-
*
|
|
168
|
-
* ## References
|
|
169
|
-
*
|
|
170
|
-
* - https://www.jfrog.com/confluence/display/ACC1X/Access+Tokens
|
|
171
|
-
* - https://www.jfrog.com/confluence/display/JFROG/Artifactory+REST+API#ArtifactoryRESTAPI-CreateToken
|
|
172
|
-
*
|
|
173
|
-
* ## Import
|
|
174
|
-
*
|
|
175
|
-
* Artifactory **does not** retain access tokens and cannot be imported into state.
|
|
176
|
-
*/
|
|
177
|
-
class AccessToken extends pulumi.CustomResource {
|
|
178
|
-
/**
|
|
179
|
-
* Get an existing AccessToken resource's state with the given name, ID, and optional extra
|
|
180
|
-
* properties used to qualify the lookup.
|
|
181
|
-
*
|
|
182
|
-
* @param name The _unique_ name of the resulting resource.
|
|
183
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
184
|
-
* @param state Any extra arguments used during the lookup.
|
|
185
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
186
|
-
*/
|
|
187
|
-
static get(name, id, state, opts) {
|
|
188
|
-
return new AccessToken(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
189
|
-
}
|
|
190
|
-
/**
|
|
191
|
-
* Returns true if the given object is an instance of AccessToken. This is designed to work even
|
|
192
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
193
|
-
*/
|
|
194
|
-
static isInstance(obj) {
|
|
195
|
-
if (obj === undefined || obj === null) {
|
|
196
|
-
return false;
|
|
197
|
-
}
|
|
198
|
-
return obj['__pulumiType'] === AccessToken.__pulumiType;
|
|
199
|
-
}
|
|
200
|
-
constructor(name, argsOrState, opts) {
|
|
201
|
-
let resourceInputs = {};
|
|
202
|
-
opts = opts || {};
|
|
203
|
-
if (opts.id) {
|
|
204
|
-
const state = argsOrState;
|
|
205
|
-
resourceInputs["accessToken"] = state ? state.accessToken : undefined;
|
|
206
|
-
resourceInputs["adminToken"] = state ? state.adminToken : undefined;
|
|
207
|
-
resourceInputs["audience"] = state ? state.audience : undefined;
|
|
208
|
-
resourceInputs["endDate"] = state ? state.endDate : undefined;
|
|
209
|
-
resourceInputs["endDateRelative"] = state ? state.endDateRelative : undefined;
|
|
210
|
-
resourceInputs["groups"] = state ? state.groups : undefined;
|
|
211
|
-
resourceInputs["refreshToken"] = state ? state.refreshToken : undefined;
|
|
212
|
-
resourceInputs["refreshable"] = state ? state.refreshable : undefined;
|
|
213
|
-
resourceInputs["username"] = state ? state.username : undefined;
|
|
214
|
-
}
|
|
215
|
-
else {
|
|
216
|
-
const args = argsOrState;
|
|
217
|
-
if ((!args || args.username === undefined) && !opts.urn) {
|
|
218
|
-
throw new Error("Missing required property 'username'");
|
|
219
|
-
}
|
|
220
|
-
resourceInputs["adminToken"] = args ? args.adminToken : undefined;
|
|
221
|
-
resourceInputs["audience"] = args ? args.audience : undefined;
|
|
222
|
-
resourceInputs["endDate"] = args ? args.endDate : undefined;
|
|
223
|
-
resourceInputs["endDateRelative"] = args ? args.endDateRelative : undefined;
|
|
224
|
-
resourceInputs["groups"] = args ? args.groups : undefined;
|
|
225
|
-
resourceInputs["refreshable"] = args ? args.refreshable : undefined;
|
|
226
|
-
resourceInputs["username"] = args ? args.username : undefined;
|
|
227
|
-
resourceInputs["accessToken"] = undefined /*out*/;
|
|
228
|
-
resourceInputs["refreshToken"] = undefined /*out*/;
|
|
229
|
-
}
|
|
230
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
231
|
-
const secretOpts = { additionalSecretOutputs: ["accessToken", "refreshToken"] };
|
|
232
|
-
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
233
|
-
super(AccessToken.__pulumiType, name, resourceInputs, opts);
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
exports.AccessToken = AccessToken;
|
|
237
|
-
/** @internal */
|
|
238
|
-
AccessToken.__pulumiType = 'artifactory:index/accessToken:AccessToken';
|
|
239
|
-
//# sourceMappingURL=accessToken.js.map
|
package/accessToken.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"accessTo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AAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5E,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAClD,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACtD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,aAAa,EAAE,cAAc,CAAC,EAAE,CAAC;QAChF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;;AA1GL,kCA2GC;AA7FG,gBAAgB;AACO,wBAAY,GAAG,2CAA2C,CAAC"}
|
package/replicationConfig.d.ts
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
import * as inputs from "./types/input";
|
|
3
|
-
import * as outputs from "./types/output";
|
|
4
|
-
/**
|
|
5
|
-
* > This resource is deprecated in favor of `artifactory.PushReplication` resource.
|
|
6
|
-
*
|
|
7
|
-
* Provides an Artifactory replication config resource. This can be used to create and manage Artifactory replications.
|
|
8
|
-
*
|
|
9
|
-
* ## Example Usage
|
|
10
|
-
*
|
|
11
|
-
* ```typescript
|
|
12
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
-
* import * as artifactory from "@pulumi/artifactory";
|
|
14
|
-
*
|
|
15
|
-
* // Create a replication between two artifactory local repositories
|
|
16
|
-
* const providerTestSource = new artifactory.LocalMavenRepository("provider_test_source", {key: "provider_test_source"});
|
|
17
|
-
* const providerTestDest = new artifactory.LocalMavenRepository("provider_test_dest", {key: "provider_test_dest"});
|
|
18
|
-
* const foo_rep = new artifactory.ReplicationConfig("foo-rep", {
|
|
19
|
-
* repoKey: providerTestSource.key,
|
|
20
|
-
* cronExp: "0 0 * * * ?",
|
|
21
|
-
* enableEventReplication: true,
|
|
22
|
-
* replications: [{
|
|
23
|
-
* url: "$var.artifactory_url",
|
|
24
|
-
* username: "$var.artifactory_username",
|
|
25
|
-
* password: "$var.artifactory_password",
|
|
26
|
-
* }],
|
|
27
|
-
* });
|
|
28
|
-
* ```
|
|
29
|
-
*
|
|
30
|
-
* ## Import
|
|
31
|
-
*
|
|
32
|
-
* Replication configs can be imported using their repo key, e.g.
|
|
33
|
-
*
|
|
34
|
-
* ```sh
|
|
35
|
-
* $ pulumi import artifactory:index/replicationConfig:ReplicationConfig foo-rep provider_test_source
|
|
36
|
-
* ```
|
|
37
|
-
*/
|
|
38
|
-
export declare class ReplicationConfig extends pulumi.CustomResource {
|
|
39
|
-
/**
|
|
40
|
-
* Get an existing ReplicationConfig resource's state with the given name, ID, and optional extra
|
|
41
|
-
* properties used to qualify the lookup.
|
|
42
|
-
*
|
|
43
|
-
* @param name The _unique_ name of the resulting resource.
|
|
44
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
45
|
-
* @param state Any extra arguments used during the lookup.
|
|
46
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
47
|
-
*/
|
|
48
|
-
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ReplicationConfigState, opts?: pulumi.CustomResourceOptions): ReplicationConfig;
|
|
49
|
-
/**
|
|
50
|
-
* Returns true if the given object is an instance of ReplicationConfig. This is designed to work even
|
|
51
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
52
|
-
*/
|
|
53
|
-
static isInstance(obj: any): obj is ReplicationConfig;
|
|
54
|
-
/**
|
|
55
|
-
* Cron expression to control the operation frequency.
|
|
56
|
-
*/
|
|
57
|
-
readonly cronExp: pulumi.Output<string>;
|
|
58
|
-
readonly enableEventReplication: pulumi.Output<boolean>;
|
|
59
|
-
readonly replications: pulumi.Output<outputs.ReplicationConfigReplication[] | undefined>;
|
|
60
|
-
readonly repoKey: pulumi.Output<string>;
|
|
61
|
-
/**
|
|
62
|
-
* Create a ReplicationConfig resource with the given unique name, arguments, and options.
|
|
63
|
-
*
|
|
64
|
-
* @param name The _unique_ name of the resource.
|
|
65
|
-
* @param args The arguments to use to populate this resource's properties.
|
|
66
|
-
* @param opts A bag of options that control this resource's behavior.
|
|
67
|
-
*/
|
|
68
|
-
constructor(name: string, args: ReplicationConfigArgs, opts?: pulumi.CustomResourceOptions);
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* Input properties used for looking up and filtering ReplicationConfig resources.
|
|
72
|
-
*/
|
|
73
|
-
export interface ReplicationConfigState {
|
|
74
|
-
/**
|
|
75
|
-
* Cron expression to control the operation frequency.
|
|
76
|
-
*/
|
|
77
|
-
cronExp?: pulumi.Input<string>;
|
|
78
|
-
enableEventReplication?: pulumi.Input<boolean>;
|
|
79
|
-
replications?: pulumi.Input<pulumi.Input<inputs.ReplicationConfigReplication>[]>;
|
|
80
|
-
repoKey?: pulumi.Input<string>;
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* The set of arguments for constructing a ReplicationConfig resource.
|
|
84
|
-
*/
|
|
85
|
-
export interface ReplicationConfigArgs {
|
|
86
|
-
/**
|
|
87
|
-
* Cron expression to control the operation frequency.
|
|
88
|
-
*/
|
|
89
|
-
cronExp: pulumi.Input<string>;
|
|
90
|
-
enableEventReplication?: pulumi.Input<boolean>;
|
|
91
|
-
replications?: pulumi.Input<pulumi.Input<inputs.ReplicationConfigReplication>[]>;
|
|
92
|
-
repoKey: pulumi.Input<string>;
|
|
93
|
-
}
|
package/replicationConfig.js
DELETED
|
@@ -1,95 +0,0 @@
|
|
|
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.ReplicationConfig = void 0;
|
|
6
|
-
const pulumi = require("@pulumi/pulumi");
|
|
7
|
-
const utilities = require("./utilities");
|
|
8
|
-
/**
|
|
9
|
-
* > This resource is deprecated in favor of `artifactory.PushReplication` resource.
|
|
10
|
-
*
|
|
11
|
-
* Provides an Artifactory replication config resource. This can be used to create and manage Artifactory replications.
|
|
12
|
-
*
|
|
13
|
-
* ## Example Usage
|
|
14
|
-
*
|
|
15
|
-
* ```typescript
|
|
16
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
-
* import * as artifactory from "@pulumi/artifactory";
|
|
18
|
-
*
|
|
19
|
-
* // Create a replication between two artifactory local repositories
|
|
20
|
-
* const providerTestSource = new artifactory.LocalMavenRepository("provider_test_source", {key: "provider_test_source"});
|
|
21
|
-
* const providerTestDest = new artifactory.LocalMavenRepository("provider_test_dest", {key: "provider_test_dest"});
|
|
22
|
-
* const foo_rep = new artifactory.ReplicationConfig("foo-rep", {
|
|
23
|
-
* repoKey: providerTestSource.key,
|
|
24
|
-
* cronExp: "0 0 * * * ?",
|
|
25
|
-
* enableEventReplication: true,
|
|
26
|
-
* replications: [{
|
|
27
|
-
* url: "$var.artifactory_url",
|
|
28
|
-
* username: "$var.artifactory_username",
|
|
29
|
-
* password: "$var.artifactory_password",
|
|
30
|
-
* }],
|
|
31
|
-
* });
|
|
32
|
-
* ```
|
|
33
|
-
*
|
|
34
|
-
* ## Import
|
|
35
|
-
*
|
|
36
|
-
* Replication configs can be imported using their repo key, e.g.
|
|
37
|
-
*
|
|
38
|
-
* ```sh
|
|
39
|
-
* $ pulumi import artifactory:index/replicationConfig:ReplicationConfig foo-rep provider_test_source
|
|
40
|
-
* ```
|
|
41
|
-
*/
|
|
42
|
-
class ReplicationConfig extends pulumi.CustomResource {
|
|
43
|
-
/**
|
|
44
|
-
* Get an existing ReplicationConfig resource's state with the given name, ID, and optional extra
|
|
45
|
-
* properties used to qualify the lookup.
|
|
46
|
-
*
|
|
47
|
-
* @param name The _unique_ name of the resulting resource.
|
|
48
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
49
|
-
* @param state Any extra arguments used during the lookup.
|
|
50
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
51
|
-
*/
|
|
52
|
-
static get(name, id, state, opts) {
|
|
53
|
-
return new ReplicationConfig(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Returns true if the given object is an instance of ReplicationConfig. This is designed to work even
|
|
57
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
58
|
-
*/
|
|
59
|
-
static isInstance(obj) {
|
|
60
|
-
if (obj === undefined || obj === null) {
|
|
61
|
-
return false;
|
|
62
|
-
}
|
|
63
|
-
return obj['__pulumiType'] === ReplicationConfig.__pulumiType;
|
|
64
|
-
}
|
|
65
|
-
constructor(name, argsOrState, opts) {
|
|
66
|
-
let resourceInputs = {};
|
|
67
|
-
opts = opts || {};
|
|
68
|
-
if (opts.id) {
|
|
69
|
-
const state = argsOrState;
|
|
70
|
-
resourceInputs["cronExp"] = state ? state.cronExp : undefined;
|
|
71
|
-
resourceInputs["enableEventReplication"] = state ? state.enableEventReplication : undefined;
|
|
72
|
-
resourceInputs["replications"] = state ? state.replications : undefined;
|
|
73
|
-
resourceInputs["repoKey"] = state ? state.repoKey : undefined;
|
|
74
|
-
}
|
|
75
|
-
else {
|
|
76
|
-
const args = argsOrState;
|
|
77
|
-
if ((!args || args.cronExp === undefined) && !opts.urn) {
|
|
78
|
-
throw new Error("Missing required property 'cronExp'");
|
|
79
|
-
}
|
|
80
|
-
if ((!args || args.repoKey === undefined) && !opts.urn) {
|
|
81
|
-
throw new Error("Missing required property 'repoKey'");
|
|
82
|
-
}
|
|
83
|
-
resourceInputs["cronExp"] = args ? args.cronExp : undefined;
|
|
84
|
-
resourceInputs["enableEventReplication"] = args ? args.enableEventReplication : undefined;
|
|
85
|
-
resourceInputs["replications"] = args ? args.replications : undefined;
|
|
86
|
-
resourceInputs["repoKey"] = args ? args.repoKey : undefined;
|
|
87
|
-
}
|
|
88
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
89
|
-
super(ReplicationConfig.__pulumiType, name, resourceInputs, opts);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
exports.ReplicationConfig = ReplicationConfig;
|
|
93
|
-
/** @internal */
|
|
94
|
-
ReplicationConfig.__pulumiType = 'artifactory:index/replicationConfig:ReplicationConfig';
|
|
95
|
-
//# sourceMappingURL=replicationConfig.js.map
|
package/replicationConfig.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"replicationConfig.js","sourceRoot":"","sources":["../replicationConfig.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAa,iBAAkB,SAAQ,MAAM,CAAC,cAAc;IACxD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA8B,EAAE,IAAmC;QAC5H,OAAO,IAAI,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S,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACpD,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;aAC1D;YACD,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,wBAAwB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1F,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;SAC/D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,iBAAiB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACtE,CAAC;;AApEL,8CAqEC;AAvDG,gBAAgB;AACO,8BAAY,GAAG,uDAAuD,CAAC"}
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
/**
|
|
3
|
-
* > This resource is deprecated in favor of `artifactory.PullReplication` resource.
|
|
4
|
-
*
|
|
5
|
-
* Provides an Artifactory single replication config resource. This can be used to create and manage a single Artifactory
|
|
6
|
-
* replication. Primarily used when pull replication is needed.
|
|
7
|
-
*
|
|
8
|
-
* !> This should not be used on a repository with `artifactory.ReplicationConfig`. Using both together will cause
|
|
9
|
-
* unexpected behaviour and will almost certainly cause your replications to break.
|
|
10
|
-
*
|
|
11
|
-
* ## Import
|
|
12
|
-
*
|
|
13
|
-
* Replication configs can be imported using their repo key, e.g.
|
|
14
|
-
*
|
|
15
|
-
* ```sh
|
|
16
|
-
* $ pulumi import artifactory:index/singleReplicationConfig:SingleReplicationConfig foo-rep repository-key
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
export declare class SingleReplicationConfig extends pulumi.CustomResource {
|
|
20
|
-
/**
|
|
21
|
-
* Get an existing SingleReplicationConfig resource's state with the given name, ID, and optional extra
|
|
22
|
-
* properties used to qualify the lookup.
|
|
23
|
-
*
|
|
24
|
-
* @param name The _unique_ name of the resulting resource.
|
|
25
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
26
|
-
* @param state Any extra arguments used during the lookup.
|
|
27
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
28
|
-
*/
|
|
29
|
-
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: SingleReplicationConfigState, opts?: pulumi.CustomResourceOptions): SingleReplicationConfig;
|
|
30
|
-
/**
|
|
31
|
-
* Returns true if the given object is an instance of SingleReplicationConfig. This is designed to work even
|
|
32
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
33
|
-
*/
|
|
34
|
-
static isInstance(obj: any): obj is SingleReplicationConfig;
|
|
35
|
-
/**
|
|
36
|
-
* Cron expression to control the operation frequency.
|
|
37
|
-
*/
|
|
38
|
-
readonly cronExp: pulumi.Output<string>;
|
|
39
|
-
readonly enableEventReplication: pulumi.Output<boolean>;
|
|
40
|
-
readonly enabled: pulumi.Output<boolean>;
|
|
41
|
-
/**
|
|
42
|
-
* Requires password encryption to be turned off `POST /api/system/decrypt`.
|
|
43
|
-
*/
|
|
44
|
-
readonly password: pulumi.Output<string>;
|
|
45
|
-
readonly pathPrefix: pulumi.Output<string | undefined>;
|
|
46
|
-
/**
|
|
47
|
-
* Proxy key from Artifactory Proxies setting.
|
|
48
|
-
*/
|
|
49
|
-
readonly proxy: pulumi.Output<string | undefined>;
|
|
50
|
-
readonly repoKey: pulumi.Output<string>;
|
|
51
|
-
readonly socketTimeoutMillis: pulumi.Output<number>;
|
|
52
|
-
readonly syncDeletes: pulumi.Output<boolean>;
|
|
53
|
-
readonly syncProperties: pulumi.Output<boolean>;
|
|
54
|
-
readonly syncStatistics: pulumi.Output<boolean>;
|
|
55
|
-
readonly url: pulumi.Output<string | undefined>;
|
|
56
|
-
readonly username: pulumi.Output<string | undefined>;
|
|
57
|
-
/**
|
|
58
|
-
* Create a SingleReplicationConfig resource with the given unique name, arguments, and options.
|
|
59
|
-
*
|
|
60
|
-
* @param name The _unique_ name of the resource.
|
|
61
|
-
* @param args The arguments to use to populate this resource's properties.
|
|
62
|
-
* @param opts A bag of options that control this resource's behavior.
|
|
63
|
-
*/
|
|
64
|
-
constructor(name: string, args: SingleReplicationConfigArgs, opts?: pulumi.CustomResourceOptions);
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Input properties used for looking up and filtering SingleReplicationConfig resources.
|
|
68
|
-
*/
|
|
69
|
-
export interface SingleReplicationConfigState {
|
|
70
|
-
/**
|
|
71
|
-
* Cron expression to control the operation frequency.
|
|
72
|
-
*/
|
|
73
|
-
cronExp?: pulumi.Input<string>;
|
|
74
|
-
enableEventReplication?: pulumi.Input<boolean>;
|
|
75
|
-
enabled?: pulumi.Input<boolean>;
|
|
76
|
-
/**
|
|
77
|
-
* Requires password encryption to be turned off `POST /api/system/decrypt`.
|
|
78
|
-
*/
|
|
79
|
-
password?: pulumi.Input<string>;
|
|
80
|
-
pathPrefix?: pulumi.Input<string>;
|
|
81
|
-
/**
|
|
82
|
-
* Proxy key from Artifactory Proxies setting.
|
|
83
|
-
*/
|
|
84
|
-
proxy?: pulumi.Input<string>;
|
|
85
|
-
repoKey?: pulumi.Input<string>;
|
|
86
|
-
socketTimeoutMillis?: pulumi.Input<number>;
|
|
87
|
-
syncDeletes?: pulumi.Input<boolean>;
|
|
88
|
-
syncProperties?: pulumi.Input<boolean>;
|
|
89
|
-
syncStatistics?: pulumi.Input<boolean>;
|
|
90
|
-
url?: pulumi.Input<string>;
|
|
91
|
-
username?: pulumi.Input<string>;
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* The set of arguments for constructing a SingleReplicationConfig resource.
|
|
95
|
-
*/
|
|
96
|
-
export interface SingleReplicationConfigArgs {
|
|
97
|
-
/**
|
|
98
|
-
* Cron expression to control the operation frequency.
|
|
99
|
-
*/
|
|
100
|
-
cronExp: pulumi.Input<string>;
|
|
101
|
-
enableEventReplication?: pulumi.Input<boolean>;
|
|
102
|
-
enabled?: pulumi.Input<boolean>;
|
|
103
|
-
pathPrefix?: pulumi.Input<string>;
|
|
104
|
-
/**
|
|
105
|
-
* Proxy key from Artifactory Proxies setting.
|
|
106
|
-
*/
|
|
107
|
-
proxy?: pulumi.Input<string>;
|
|
108
|
-
repoKey: pulumi.Input<string>;
|
|
109
|
-
socketTimeoutMillis?: pulumi.Input<number>;
|
|
110
|
-
syncDeletes?: pulumi.Input<boolean>;
|
|
111
|
-
syncProperties?: pulumi.Input<boolean>;
|
|
112
|
-
syncStatistics?: pulumi.Input<boolean>;
|
|
113
|
-
url?: pulumi.Input<string>;
|
|
114
|
-
username?: pulumi.Input<string>;
|
|
115
|
-
}
|
|
@@ -1,98 +0,0 @@
|
|
|
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.SingleReplicationConfig = void 0;
|
|
6
|
-
const pulumi = require("@pulumi/pulumi");
|
|
7
|
-
const utilities = require("./utilities");
|
|
8
|
-
/**
|
|
9
|
-
* > This resource is deprecated in favor of `artifactory.PullReplication` resource.
|
|
10
|
-
*
|
|
11
|
-
* Provides an Artifactory single replication config resource. This can be used to create and manage a single Artifactory
|
|
12
|
-
* replication. Primarily used when pull replication is needed.
|
|
13
|
-
*
|
|
14
|
-
* !> This should not be used on a repository with `artifactory.ReplicationConfig`. Using both together will cause
|
|
15
|
-
* unexpected behaviour and will almost certainly cause your replications to break.
|
|
16
|
-
*
|
|
17
|
-
* ## Import
|
|
18
|
-
*
|
|
19
|
-
* Replication configs can be imported using their repo key, e.g.
|
|
20
|
-
*
|
|
21
|
-
* ```sh
|
|
22
|
-
* $ pulumi import artifactory:index/singleReplicationConfig:SingleReplicationConfig foo-rep repository-key
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
class SingleReplicationConfig extends pulumi.CustomResource {
|
|
26
|
-
/**
|
|
27
|
-
* Get an existing SingleReplicationConfig resource's state with the given name, ID, and optional extra
|
|
28
|
-
* properties used to qualify the lookup.
|
|
29
|
-
*
|
|
30
|
-
* @param name The _unique_ name of the resulting resource.
|
|
31
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
32
|
-
* @param state Any extra arguments used during the lookup.
|
|
33
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
34
|
-
*/
|
|
35
|
-
static get(name, id, state, opts) {
|
|
36
|
-
return new SingleReplicationConfig(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Returns true if the given object is an instance of SingleReplicationConfig. This is designed to work even
|
|
40
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
41
|
-
*/
|
|
42
|
-
static isInstance(obj) {
|
|
43
|
-
if (obj === undefined || obj === null) {
|
|
44
|
-
return false;
|
|
45
|
-
}
|
|
46
|
-
return obj['__pulumiType'] === SingleReplicationConfig.__pulumiType;
|
|
47
|
-
}
|
|
48
|
-
constructor(name, argsOrState, opts) {
|
|
49
|
-
let resourceInputs = {};
|
|
50
|
-
opts = opts || {};
|
|
51
|
-
if (opts.id) {
|
|
52
|
-
const state = argsOrState;
|
|
53
|
-
resourceInputs["cronExp"] = state ? state.cronExp : undefined;
|
|
54
|
-
resourceInputs["enableEventReplication"] = state ? state.enableEventReplication : undefined;
|
|
55
|
-
resourceInputs["enabled"] = state ? state.enabled : undefined;
|
|
56
|
-
resourceInputs["password"] = state ? state.password : undefined;
|
|
57
|
-
resourceInputs["pathPrefix"] = state ? state.pathPrefix : undefined;
|
|
58
|
-
resourceInputs["proxy"] = state ? state.proxy : undefined;
|
|
59
|
-
resourceInputs["repoKey"] = state ? state.repoKey : undefined;
|
|
60
|
-
resourceInputs["socketTimeoutMillis"] = state ? state.socketTimeoutMillis : undefined;
|
|
61
|
-
resourceInputs["syncDeletes"] = state ? state.syncDeletes : undefined;
|
|
62
|
-
resourceInputs["syncProperties"] = state ? state.syncProperties : undefined;
|
|
63
|
-
resourceInputs["syncStatistics"] = state ? state.syncStatistics : undefined;
|
|
64
|
-
resourceInputs["url"] = state ? state.url : undefined;
|
|
65
|
-
resourceInputs["username"] = state ? state.username : undefined;
|
|
66
|
-
}
|
|
67
|
-
else {
|
|
68
|
-
const args = argsOrState;
|
|
69
|
-
if ((!args || args.cronExp === undefined) && !opts.urn) {
|
|
70
|
-
throw new Error("Missing required property 'cronExp'");
|
|
71
|
-
}
|
|
72
|
-
if ((!args || args.repoKey === undefined) && !opts.urn) {
|
|
73
|
-
throw new Error("Missing required property 'repoKey'");
|
|
74
|
-
}
|
|
75
|
-
resourceInputs["cronExp"] = args ? args.cronExp : undefined;
|
|
76
|
-
resourceInputs["enableEventReplication"] = args ? args.enableEventReplication : undefined;
|
|
77
|
-
resourceInputs["enabled"] = args ? args.enabled : undefined;
|
|
78
|
-
resourceInputs["pathPrefix"] = args ? args.pathPrefix : undefined;
|
|
79
|
-
resourceInputs["proxy"] = args ? args.proxy : undefined;
|
|
80
|
-
resourceInputs["repoKey"] = args ? args.repoKey : undefined;
|
|
81
|
-
resourceInputs["socketTimeoutMillis"] = args ? args.socketTimeoutMillis : undefined;
|
|
82
|
-
resourceInputs["syncDeletes"] = args ? args.syncDeletes : undefined;
|
|
83
|
-
resourceInputs["syncProperties"] = args ? args.syncProperties : undefined;
|
|
84
|
-
resourceInputs["syncStatistics"] = args ? args.syncStatistics : undefined;
|
|
85
|
-
resourceInputs["url"] = args ? args.url : undefined;
|
|
86
|
-
resourceInputs["username"] = args ? args.username : undefined;
|
|
87
|
-
resourceInputs["password"] = undefined /*out*/;
|
|
88
|
-
}
|
|
89
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
90
|
-
const secretOpts = { additionalSecretOutputs: ["password"] };
|
|
91
|
-
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
92
|
-
super(SingleReplicationConfig.__pulumiType, name, resourceInputs, opts);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
exports.SingleReplicationConfig = SingleReplicationConfig;
|
|
96
|
-
/** @internal */
|
|
97
|
-
SingleReplicationConfig.__pulumiType = 'artifactory:index/singleReplicationConfig:SingleReplicationConfig';
|
|
98
|
-
//# sourceMappingURL=singleReplicationConfig.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"singleReplicationConfig.js","sourceRoot":"","sources":["../singleReplicationConfig.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;GAgBG;AACH,MAAa,uBAAwB,SAAQ,MAAM,CAAC,cAAc;IAC9D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoC,EAAE,IAAmC;QAClI,OAAO,IAAI,uBAAuB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC9E,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,uBAAuB,CAAC,YAAY,CAAC;IACxE,CAAC;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