generated from pulumi/pulumi-tf-provider-boilerplate
/
remotePuppetRepository.go
683 lines (637 loc) · 41.5 KB
/
remotePuppetRepository.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package artifactory
import (
"context"
"reflect"
"github.com/pkg/errors"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// ## # Artifactory Remote Puppet Repository Resource
//
// Creates a remote Puppet repository.
// Official documentation can be found [here](https://www.jfrog.com/confluence/display/JFROG/Puppet+Repositories)
//
// ## Example Usage
//
// To create a new Artifactory remote Puppet repository called my-remote-puppet.
//
// ```go
// package main
//
// import (
// "github.com/pulumi/pulumi-artifactory/sdk/v2/go/artifactory"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := artifactory.NewRemotePuppetRepository(ctx, "my-remote-puppet", &artifactory.RemotePuppetRepositoryArgs{
// Key: pulumi.String("my-remote-puppet"),
// Url: pulumi.String("https://forgeapi.puppetlabs.com/"),
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
// ```
type RemotePuppetRepository struct {
pulumi.CustomResourceState
// Also known as 'Lenient Host Authentication', Allow credentials of this repository to be used on requests redirected to
// any other host.
AllowAnyHostAuth pulumi.BoolOutput `pulumi:"allowAnyHostAuth"`
// The number of seconds the repository stays in assumed offline state after a connection error. At the end of this time,
// an online check is attempted in order to reset the offline status. A value of 0 means the repository is never assumed
// offline. Default to 300.
AssumedOfflinePeriodSecs pulumi.IntPtrOutput `pulumi:"assumedOfflinePeriodSecs"`
// (A.K.A 'Ignore Repository' on the UI) When set, the repository or its local cache do not participate in artifact
// resolution.
BlackedOut pulumi.BoolOutput `pulumi:"blackedOut"`
// Before caching an artifact, Artifactory first sends a HEAD request to the remote resource. In some remote resources,
// HEAD requests are disallowed and therefore rejected, even though downloading the artifact is allowed. When checked,
// Artifactory will bypass the HEAD request and cache the artifact directly using a GET request.
BlockMismatchingMimeTypes pulumi.BoolOutput `pulumi:"blockMismatchingMimeTypes"`
// Before caching an artifact, Artifactory first sends a HEAD request to the remote resource. In some remote resources,
// HEAD requests are disallowed and therefore rejected, even though downloading the artifact is allowed. When checked,
// Artifactory will bypass the HEAD request and cache the artifact directly using a GET request.
BypassHeadRequests pulumi.BoolOutput `pulumi:"bypassHeadRequests"`
ClientTlsCertificate pulumi.StringOutput `pulumi:"clientTlsCertificate"`
ContentSynchronisation RemotePuppetRepositoryContentSynchronisationOutput `pulumi:"contentSynchronisation"`
Description pulumi.StringOutput `pulumi:"description"`
// Enables cookie management if the remote repository uses cookies to manage client state.
EnableCookieManagement pulumi.BoolOutput `pulumi:"enableCookieManagement"`
// List of artifact patterns to exclude when evaluating artifact requests, in the form of x/y/**/z/*. By default no
// artifacts are excluded.
ExcludesPattern pulumi.StringOutput `pulumi:"excludesPattern"`
// Deprecated: This field is not returned in a get payload but is offered on the UI. It's inserted here for inclusive and informational reasons. It does not function
FailedRetrievalCachePeriodSecs pulumi.IntOutput `pulumi:"failedRetrievalCachePeriodSecs"`
// When set, Artifactory will return an error to the client that causes the build to fail if there is a failure to
// communicate with this repository.
HardFail pulumi.BoolOutput `pulumi:"hardFail"`
// List of artifact patterns to include when evaluating artifact requests in the form of x/y/**/z/*. When used, only
// artifacts matching one of the include patterns are served. By default, all artifacts are included (**/*).
IncludesPattern pulumi.StringOutput `pulumi:"includesPattern"`
// The repository identifier. Must be unique system-wide
Key pulumi.StringOutput `pulumi:"key"`
// (Optional) Lists the items of remote folders in simple and list browsing. The remote content is cached according to the
// value of the 'Retrieval Cache Period'. Default value is 'false'.
ListRemoteFolderItems pulumi.BoolPtrOutput `pulumi:"listRemoteFolderItems"`
// The local address to be used when creating connections. Useful for specifying the interface to use on systems with
// multiple network interfaces.
LocalAddress pulumi.StringPtrOutput `pulumi:"localAddress"`
// (Optional) The set of mime types that should override the block_mismatching_mime_types setting. Eg:
// "application/json,application/xml". Default value is empty.
MismatchingMimeTypesOverrideList pulumi.StringPtrOutput `pulumi:"mismatchingMimeTypesOverrideList"`
// The number of seconds to cache artifact retrieval misses (artifact not found). A value of 0 indicates no caching.
MissedCachePeriodSeconds pulumi.IntOutput `pulumi:"missedCachePeriodSeconds"`
Notes pulumi.StringPtrOutput `pulumi:"notes"`
// If set, Artifactory does not try to fetch remote artifacts. Only locally-cached artifacts are retrieved.
Offline pulumi.BoolOutput `pulumi:"offline"`
PackageType pulumi.StringOutput `pulumi:"packageType"`
Password pulumi.StringPtrOutput `pulumi:"password"`
// Setting repositories with priority will cause metadata to be merged only from repositories set with this field
PriorityResolution pulumi.BoolOutput `pulumi:"priorityResolution"`
// Project environment for assigning this repository to. Allow values: "DEV" or "PROD"
ProjectEnvironments pulumi.StringArrayOutput `pulumi:"projectEnvironments"`
// Project key for assigning this repository to. Must be 3 - 10 lowercase alphanumeric characters. When assigning
// repository to a project, repository key must be prefixed with project key, separated by a dash.
ProjectKey pulumi.StringPtrOutput `pulumi:"projectKey"`
// When set, if query params are included in the request to Artifactory, they will be passed on to the remote repository.
PropagateQueryParams pulumi.BoolPtrOutput `pulumi:"propagateQueryParams"`
// List of property set name
PropertySets pulumi.StringArrayOutput `pulumi:"propertySets"`
Proxy pulumi.StringOutput `pulumi:"proxy"`
// Repository layout key for the remote layout mapping
RemoteRepoLayoutRef pulumi.StringOutput `pulumi:"remoteRepoLayoutRef"`
// Repository layout key for the local repository
RepoLayoutRef pulumi.StringPtrOutput `pulumi:"repoLayoutRef"`
// The metadataRetrievalTimeoutSecs field not allowed to be bigger then retrievalCachePeriodSecs field.
RetrievalCachePeriodSeconds pulumi.IntOutput `pulumi:"retrievalCachePeriodSeconds"`
ShareConfiguration pulumi.BoolOutput `pulumi:"shareConfiguration"`
// Network timeout (in ms) to use when establishing a connection and for unanswered requests. Timing out on a network
// operation is considered a retrieval failure.
SocketTimeoutMillis pulumi.IntOutput `pulumi:"socketTimeoutMillis"`
// When set, the repository should store cached artifacts locally. When not set, artifacts are not stored locally, and
// direct repository-to-client streaming is used. This can be useful for multi-server setups over a high-speed LAN, with
// one Artifactory caching certain data on central storage, and streaming it directly to satellite pass-though Artifactory
// servers.
StoreArtifactsLocally pulumi.BoolOutput `pulumi:"storeArtifactsLocally"`
// When set, remote artifacts are fetched along with their properties.
SynchronizeProperties pulumi.BoolOutput `pulumi:"synchronizeProperties"`
UnusedArtifactsCleanupPeriodEnabled pulumi.BoolOutput `pulumi:"unusedArtifactsCleanupPeriodEnabled"`
// The number of hours to wait before an artifact is deemed "unused" and eligible for cleanup from the repository. A value
// of 0 means automatic cleanup of cached artifacts is disabled.
UnusedArtifactsCleanupPeriodHours pulumi.IntOutput `pulumi:"unusedArtifactsCleanupPeriodHours"`
// - the remote repo URL. You kinda don't have a remote repo without it
Url pulumi.StringOutput `pulumi:"url"`
Username pulumi.StringPtrOutput `pulumi:"username"`
// Enable Indexing In Xray. Repository will be indexed with the default retention period. You will be able to change it via
// Xray settings.
XrayIndex pulumi.BoolPtrOutput `pulumi:"xrayIndex"`
}
// NewRemotePuppetRepository registers a new resource with the given unique name, arguments, and options.
func NewRemotePuppetRepository(ctx *pulumi.Context,
name string, args *RemotePuppetRepositoryArgs, opts ...pulumi.ResourceOption) (*RemotePuppetRepository, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.Key == nil {
return nil, errors.New("invalid value for required argument 'Key'")
}
if args.Url == nil {
return nil, errors.New("invalid value for required argument 'Url'")
}
var resource RemotePuppetRepository
err := ctx.RegisterResource("artifactory:index/remotePuppetRepository:RemotePuppetRepository", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetRemotePuppetRepository gets an existing RemotePuppetRepository resource's state with the given name, ID, and optional
// state properties that are used to uniquely qualify the lookup (nil if not required).
func GetRemotePuppetRepository(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *RemotePuppetRepositoryState, opts ...pulumi.ResourceOption) (*RemotePuppetRepository, error) {
var resource RemotePuppetRepository
err := ctx.ReadResource("artifactory:index/remotePuppetRepository:RemotePuppetRepository", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering RemotePuppetRepository resources.
type remotePuppetRepositoryState struct {
// Also known as 'Lenient Host Authentication', Allow credentials of this repository to be used on requests redirected to
// any other host.
AllowAnyHostAuth *bool `pulumi:"allowAnyHostAuth"`
// The number of seconds the repository stays in assumed offline state after a connection error. At the end of this time,
// an online check is attempted in order to reset the offline status. A value of 0 means the repository is never assumed
// offline. Default to 300.
AssumedOfflinePeriodSecs *int `pulumi:"assumedOfflinePeriodSecs"`
// (A.K.A 'Ignore Repository' on the UI) When set, the repository or its local cache do not participate in artifact
// resolution.
BlackedOut *bool `pulumi:"blackedOut"`
// Before caching an artifact, Artifactory first sends a HEAD request to the remote resource. In some remote resources,
// HEAD requests are disallowed and therefore rejected, even though downloading the artifact is allowed. When checked,
// Artifactory will bypass the HEAD request and cache the artifact directly using a GET request.
BlockMismatchingMimeTypes *bool `pulumi:"blockMismatchingMimeTypes"`
// Before caching an artifact, Artifactory first sends a HEAD request to the remote resource. In some remote resources,
// HEAD requests are disallowed and therefore rejected, even though downloading the artifact is allowed. When checked,
// Artifactory will bypass the HEAD request and cache the artifact directly using a GET request.
BypassHeadRequests *bool `pulumi:"bypassHeadRequests"`
ClientTlsCertificate *string `pulumi:"clientTlsCertificate"`
ContentSynchronisation *RemotePuppetRepositoryContentSynchronisation `pulumi:"contentSynchronisation"`
Description *string `pulumi:"description"`
// Enables cookie management if the remote repository uses cookies to manage client state.
EnableCookieManagement *bool `pulumi:"enableCookieManagement"`
// List of artifact patterns to exclude when evaluating artifact requests, in the form of x/y/**/z/*. By default no
// artifacts are excluded.
ExcludesPattern *string `pulumi:"excludesPattern"`
// Deprecated: This field is not returned in a get payload but is offered on the UI. It's inserted here for inclusive and informational reasons. It does not function
FailedRetrievalCachePeriodSecs *int `pulumi:"failedRetrievalCachePeriodSecs"`
// When set, Artifactory will return an error to the client that causes the build to fail if there is a failure to
// communicate with this repository.
HardFail *bool `pulumi:"hardFail"`
// List of artifact patterns to include when evaluating artifact requests in the form of x/y/**/z/*. When used, only
// artifacts matching one of the include patterns are served. By default, all artifacts are included (**/*).
IncludesPattern *string `pulumi:"includesPattern"`
// The repository identifier. Must be unique system-wide
Key *string `pulumi:"key"`
// (Optional) Lists the items of remote folders in simple and list browsing. The remote content is cached according to the
// value of the 'Retrieval Cache Period'. Default value is 'false'.
ListRemoteFolderItems *bool `pulumi:"listRemoteFolderItems"`
// The local address to be used when creating connections. Useful for specifying the interface to use on systems with
// multiple network interfaces.
LocalAddress *string `pulumi:"localAddress"`
// (Optional) The set of mime types that should override the block_mismatching_mime_types setting. Eg:
// "application/json,application/xml". Default value is empty.
MismatchingMimeTypesOverrideList *string `pulumi:"mismatchingMimeTypesOverrideList"`
// The number of seconds to cache artifact retrieval misses (artifact not found). A value of 0 indicates no caching.
MissedCachePeriodSeconds *int `pulumi:"missedCachePeriodSeconds"`
Notes *string `pulumi:"notes"`
// If set, Artifactory does not try to fetch remote artifacts. Only locally-cached artifacts are retrieved.
Offline *bool `pulumi:"offline"`
PackageType *string `pulumi:"packageType"`
Password *string `pulumi:"password"`
// Setting repositories with priority will cause metadata to be merged only from repositories set with this field
PriorityResolution *bool `pulumi:"priorityResolution"`
// Project environment for assigning this repository to. Allow values: "DEV" or "PROD"
ProjectEnvironments []string `pulumi:"projectEnvironments"`
// Project key for assigning this repository to. Must be 3 - 10 lowercase alphanumeric characters. When assigning
// repository to a project, repository key must be prefixed with project key, separated by a dash.
ProjectKey *string `pulumi:"projectKey"`
// When set, if query params are included in the request to Artifactory, they will be passed on to the remote repository.
PropagateQueryParams *bool `pulumi:"propagateQueryParams"`
// List of property set name
PropertySets []string `pulumi:"propertySets"`
Proxy *string `pulumi:"proxy"`
// Repository layout key for the remote layout mapping
RemoteRepoLayoutRef *string `pulumi:"remoteRepoLayoutRef"`
// Repository layout key for the local repository
RepoLayoutRef *string `pulumi:"repoLayoutRef"`
// The metadataRetrievalTimeoutSecs field not allowed to be bigger then retrievalCachePeriodSecs field.
RetrievalCachePeriodSeconds *int `pulumi:"retrievalCachePeriodSeconds"`
ShareConfiguration *bool `pulumi:"shareConfiguration"`
// Network timeout (in ms) to use when establishing a connection and for unanswered requests. Timing out on a network
// operation is considered a retrieval failure.
SocketTimeoutMillis *int `pulumi:"socketTimeoutMillis"`
// When set, the repository should store cached artifacts locally. When not set, artifacts are not stored locally, and
// direct repository-to-client streaming is used. This can be useful for multi-server setups over a high-speed LAN, with
// one Artifactory caching certain data on central storage, and streaming it directly to satellite pass-though Artifactory
// servers.
StoreArtifactsLocally *bool `pulumi:"storeArtifactsLocally"`
// When set, remote artifacts are fetched along with their properties.
SynchronizeProperties *bool `pulumi:"synchronizeProperties"`
UnusedArtifactsCleanupPeriodEnabled *bool `pulumi:"unusedArtifactsCleanupPeriodEnabled"`
// The number of hours to wait before an artifact is deemed "unused" and eligible for cleanup from the repository. A value
// of 0 means automatic cleanup of cached artifacts is disabled.
UnusedArtifactsCleanupPeriodHours *int `pulumi:"unusedArtifactsCleanupPeriodHours"`
// - the remote repo URL. You kinda don't have a remote repo without it
Url *string `pulumi:"url"`
Username *string `pulumi:"username"`
// Enable Indexing In Xray. Repository will be indexed with the default retention period. You will be able to change it via
// Xray settings.
XrayIndex *bool `pulumi:"xrayIndex"`
}
type RemotePuppetRepositoryState struct {
// Also known as 'Lenient Host Authentication', Allow credentials of this repository to be used on requests redirected to
// any other host.
AllowAnyHostAuth pulumi.BoolPtrInput
// The number of seconds the repository stays in assumed offline state after a connection error. At the end of this time,
// an online check is attempted in order to reset the offline status. A value of 0 means the repository is never assumed
// offline. Default to 300.
AssumedOfflinePeriodSecs pulumi.IntPtrInput
// (A.K.A 'Ignore Repository' on the UI) When set, the repository or its local cache do not participate in artifact
// resolution.
BlackedOut pulumi.BoolPtrInput
// Before caching an artifact, Artifactory first sends a HEAD request to the remote resource. In some remote resources,
// HEAD requests are disallowed and therefore rejected, even though downloading the artifact is allowed. When checked,
// Artifactory will bypass the HEAD request and cache the artifact directly using a GET request.
BlockMismatchingMimeTypes pulumi.BoolPtrInput
// Before caching an artifact, Artifactory first sends a HEAD request to the remote resource. In some remote resources,
// HEAD requests are disallowed and therefore rejected, even though downloading the artifact is allowed. When checked,
// Artifactory will bypass the HEAD request and cache the artifact directly using a GET request.
BypassHeadRequests pulumi.BoolPtrInput
ClientTlsCertificate pulumi.StringPtrInput
ContentSynchronisation RemotePuppetRepositoryContentSynchronisationPtrInput
Description pulumi.StringPtrInput
// Enables cookie management if the remote repository uses cookies to manage client state.
EnableCookieManagement pulumi.BoolPtrInput
// List of artifact patterns to exclude when evaluating artifact requests, in the form of x/y/**/z/*. By default no
// artifacts are excluded.
ExcludesPattern pulumi.StringPtrInput
// Deprecated: This field is not returned in a get payload but is offered on the UI. It's inserted here for inclusive and informational reasons. It does not function
FailedRetrievalCachePeriodSecs pulumi.IntPtrInput
// When set, Artifactory will return an error to the client that causes the build to fail if there is a failure to
// communicate with this repository.
HardFail pulumi.BoolPtrInput
// List of artifact patterns to include when evaluating artifact requests in the form of x/y/**/z/*. When used, only
// artifacts matching one of the include patterns are served. By default, all artifacts are included (**/*).
IncludesPattern pulumi.StringPtrInput
// The repository identifier. Must be unique system-wide
Key pulumi.StringPtrInput
// (Optional) Lists the items of remote folders in simple and list browsing. The remote content is cached according to the
// value of the 'Retrieval Cache Period'. Default value is 'false'.
ListRemoteFolderItems pulumi.BoolPtrInput
// The local address to be used when creating connections. Useful for specifying the interface to use on systems with
// multiple network interfaces.
LocalAddress pulumi.StringPtrInput
// (Optional) The set of mime types that should override the block_mismatching_mime_types setting. Eg:
// "application/json,application/xml". Default value is empty.
MismatchingMimeTypesOverrideList pulumi.StringPtrInput
// The number of seconds to cache artifact retrieval misses (artifact not found). A value of 0 indicates no caching.
MissedCachePeriodSeconds pulumi.IntPtrInput
Notes pulumi.StringPtrInput
// If set, Artifactory does not try to fetch remote artifacts. Only locally-cached artifacts are retrieved.
Offline pulumi.BoolPtrInput
PackageType pulumi.StringPtrInput
Password pulumi.StringPtrInput
// Setting repositories with priority will cause metadata to be merged only from repositories set with this field
PriorityResolution pulumi.BoolPtrInput
// Project environment for assigning this repository to. Allow values: "DEV" or "PROD"
ProjectEnvironments pulumi.StringArrayInput
// Project key for assigning this repository to. Must be 3 - 10 lowercase alphanumeric characters. When assigning
// repository to a project, repository key must be prefixed with project key, separated by a dash.
ProjectKey pulumi.StringPtrInput
// When set, if query params are included in the request to Artifactory, they will be passed on to the remote repository.
PropagateQueryParams pulumi.BoolPtrInput
// List of property set name
PropertySets pulumi.StringArrayInput
Proxy pulumi.StringPtrInput
// Repository layout key for the remote layout mapping
RemoteRepoLayoutRef pulumi.StringPtrInput
// Repository layout key for the local repository
RepoLayoutRef pulumi.StringPtrInput
// The metadataRetrievalTimeoutSecs field not allowed to be bigger then retrievalCachePeriodSecs field.
RetrievalCachePeriodSeconds pulumi.IntPtrInput
ShareConfiguration pulumi.BoolPtrInput
// Network timeout (in ms) to use when establishing a connection and for unanswered requests. Timing out on a network
// operation is considered a retrieval failure.
SocketTimeoutMillis pulumi.IntPtrInput
// When set, the repository should store cached artifacts locally. When not set, artifacts are not stored locally, and
// direct repository-to-client streaming is used. This can be useful for multi-server setups over a high-speed LAN, with
// one Artifactory caching certain data on central storage, and streaming it directly to satellite pass-though Artifactory
// servers.
StoreArtifactsLocally pulumi.BoolPtrInput
// When set, remote artifacts are fetched along with their properties.
SynchronizeProperties pulumi.BoolPtrInput
UnusedArtifactsCleanupPeriodEnabled pulumi.BoolPtrInput
// The number of hours to wait before an artifact is deemed "unused" and eligible for cleanup from the repository. A value
// of 0 means automatic cleanup of cached artifacts is disabled.
UnusedArtifactsCleanupPeriodHours pulumi.IntPtrInput
// - the remote repo URL. You kinda don't have a remote repo without it
Url pulumi.StringPtrInput
Username pulumi.StringPtrInput
// Enable Indexing In Xray. Repository will be indexed with the default retention period. You will be able to change it via
// Xray settings.
XrayIndex pulumi.BoolPtrInput
}
func (RemotePuppetRepositoryState) ElementType() reflect.Type {
return reflect.TypeOf((*remotePuppetRepositoryState)(nil)).Elem()
}
type remotePuppetRepositoryArgs struct {
// Also known as 'Lenient Host Authentication', Allow credentials of this repository to be used on requests redirected to
// any other host.
AllowAnyHostAuth *bool `pulumi:"allowAnyHostAuth"`
// The number of seconds the repository stays in assumed offline state after a connection error. At the end of this time,
// an online check is attempted in order to reset the offline status. A value of 0 means the repository is never assumed
// offline. Default to 300.
AssumedOfflinePeriodSecs *int `pulumi:"assumedOfflinePeriodSecs"`
// (A.K.A 'Ignore Repository' on the UI) When set, the repository or its local cache do not participate in artifact
// resolution.
BlackedOut *bool `pulumi:"blackedOut"`
// Before caching an artifact, Artifactory first sends a HEAD request to the remote resource. In some remote resources,
// HEAD requests are disallowed and therefore rejected, even though downloading the artifact is allowed. When checked,
// Artifactory will bypass the HEAD request and cache the artifact directly using a GET request.
BlockMismatchingMimeTypes *bool `pulumi:"blockMismatchingMimeTypes"`
// Before caching an artifact, Artifactory first sends a HEAD request to the remote resource. In some remote resources,
// HEAD requests are disallowed and therefore rejected, even though downloading the artifact is allowed. When checked,
// Artifactory will bypass the HEAD request and cache the artifact directly using a GET request.
BypassHeadRequests *bool `pulumi:"bypassHeadRequests"`
ClientTlsCertificate *string `pulumi:"clientTlsCertificate"`
ContentSynchronisation *RemotePuppetRepositoryContentSynchronisation `pulumi:"contentSynchronisation"`
Description *string `pulumi:"description"`
// Enables cookie management if the remote repository uses cookies to manage client state.
EnableCookieManagement *bool `pulumi:"enableCookieManagement"`
// List of artifact patterns to exclude when evaluating artifact requests, in the form of x/y/**/z/*. By default no
// artifacts are excluded.
ExcludesPattern *string `pulumi:"excludesPattern"`
// When set, Artifactory will return an error to the client that causes the build to fail if there is a failure to
// communicate with this repository.
HardFail *bool `pulumi:"hardFail"`
// List of artifact patterns to include when evaluating artifact requests in the form of x/y/**/z/*. When used, only
// artifacts matching one of the include patterns are served. By default, all artifacts are included (**/*).
IncludesPattern *string `pulumi:"includesPattern"`
// The repository identifier. Must be unique system-wide
Key string `pulumi:"key"`
// (Optional) Lists the items of remote folders in simple and list browsing. The remote content is cached according to the
// value of the 'Retrieval Cache Period'. Default value is 'false'.
ListRemoteFolderItems *bool `pulumi:"listRemoteFolderItems"`
// The local address to be used when creating connections. Useful for specifying the interface to use on systems with
// multiple network interfaces.
LocalAddress *string `pulumi:"localAddress"`
// (Optional) The set of mime types that should override the block_mismatching_mime_types setting. Eg:
// "application/json,application/xml". Default value is empty.
MismatchingMimeTypesOverrideList *string `pulumi:"mismatchingMimeTypesOverrideList"`
// The number of seconds to cache artifact retrieval misses (artifact not found). A value of 0 indicates no caching.
MissedCachePeriodSeconds *int `pulumi:"missedCachePeriodSeconds"`
Notes *string `pulumi:"notes"`
// If set, Artifactory does not try to fetch remote artifacts. Only locally-cached artifacts are retrieved.
Offline *bool `pulumi:"offline"`
Password *string `pulumi:"password"`
// Setting repositories with priority will cause metadata to be merged only from repositories set with this field
PriorityResolution *bool `pulumi:"priorityResolution"`
// Project environment for assigning this repository to. Allow values: "DEV" or "PROD"
ProjectEnvironments []string `pulumi:"projectEnvironments"`
// Project key for assigning this repository to. Must be 3 - 10 lowercase alphanumeric characters. When assigning
// repository to a project, repository key must be prefixed with project key, separated by a dash.
ProjectKey *string `pulumi:"projectKey"`
// When set, if query params are included in the request to Artifactory, they will be passed on to the remote repository.
PropagateQueryParams *bool `pulumi:"propagateQueryParams"`
// List of property set name
PropertySets []string `pulumi:"propertySets"`
Proxy *string `pulumi:"proxy"`
// Repository layout key for the remote layout mapping
RemoteRepoLayoutRef *string `pulumi:"remoteRepoLayoutRef"`
// Repository layout key for the local repository
RepoLayoutRef *string `pulumi:"repoLayoutRef"`
// The metadataRetrievalTimeoutSecs field not allowed to be bigger then retrievalCachePeriodSecs field.
RetrievalCachePeriodSeconds *int `pulumi:"retrievalCachePeriodSeconds"`
ShareConfiguration *bool `pulumi:"shareConfiguration"`
// Network timeout (in ms) to use when establishing a connection and for unanswered requests. Timing out on a network
// operation is considered a retrieval failure.
SocketTimeoutMillis *int `pulumi:"socketTimeoutMillis"`
// When set, the repository should store cached artifacts locally. When not set, artifacts are not stored locally, and
// direct repository-to-client streaming is used. This can be useful for multi-server setups over a high-speed LAN, with
// one Artifactory caching certain data on central storage, and streaming it directly to satellite pass-though Artifactory
// servers.
StoreArtifactsLocally *bool `pulumi:"storeArtifactsLocally"`
// When set, remote artifacts are fetched along with their properties.
SynchronizeProperties *bool `pulumi:"synchronizeProperties"`
UnusedArtifactsCleanupPeriodEnabled *bool `pulumi:"unusedArtifactsCleanupPeriodEnabled"`
// The number of hours to wait before an artifact is deemed "unused" and eligible for cleanup from the repository. A value
// of 0 means automatic cleanup of cached artifacts is disabled.
UnusedArtifactsCleanupPeriodHours *int `pulumi:"unusedArtifactsCleanupPeriodHours"`
// - the remote repo URL. You kinda don't have a remote repo without it
Url string `pulumi:"url"`
Username *string `pulumi:"username"`
// Enable Indexing In Xray. Repository will be indexed with the default retention period. You will be able to change it via
// Xray settings.
XrayIndex *bool `pulumi:"xrayIndex"`
}
// The set of arguments for constructing a RemotePuppetRepository resource.
type RemotePuppetRepositoryArgs struct {
// Also known as 'Lenient Host Authentication', Allow credentials of this repository to be used on requests redirected to
// any other host.
AllowAnyHostAuth pulumi.BoolPtrInput
// The number of seconds the repository stays in assumed offline state after a connection error. At the end of this time,
// an online check is attempted in order to reset the offline status. A value of 0 means the repository is never assumed
// offline. Default to 300.
AssumedOfflinePeriodSecs pulumi.IntPtrInput
// (A.K.A 'Ignore Repository' on the UI) When set, the repository or its local cache do not participate in artifact
// resolution.
BlackedOut pulumi.BoolPtrInput
// Before caching an artifact, Artifactory first sends a HEAD request to the remote resource. In some remote resources,
// HEAD requests are disallowed and therefore rejected, even though downloading the artifact is allowed. When checked,
// Artifactory will bypass the HEAD request and cache the artifact directly using a GET request.
BlockMismatchingMimeTypes pulumi.BoolPtrInput
// Before caching an artifact, Artifactory first sends a HEAD request to the remote resource. In some remote resources,
// HEAD requests are disallowed and therefore rejected, even though downloading the artifact is allowed. When checked,
// Artifactory will bypass the HEAD request and cache the artifact directly using a GET request.
BypassHeadRequests pulumi.BoolPtrInput
ClientTlsCertificate pulumi.StringPtrInput
ContentSynchronisation RemotePuppetRepositoryContentSynchronisationPtrInput
Description pulumi.StringPtrInput
// Enables cookie management if the remote repository uses cookies to manage client state.
EnableCookieManagement pulumi.BoolPtrInput
// List of artifact patterns to exclude when evaluating artifact requests, in the form of x/y/**/z/*. By default no
// artifacts are excluded.
ExcludesPattern pulumi.StringPtrInput
// When set, Artifactory will return an error to the client that causes the build to fail if there is a failure to
// communicate with this repository.
HardFail pulumi.BoolPtrInput
// List of artifact patterns to include when evaluating artifact requests in the form of x/y/**/z/*. When used, only
// artifacts matching one of the include patterns are served. By default, all artifacts are included (**/*).
IncludesPattern pulumi.StringPtrInput
// The repository identifier. Must be unique system-wide
Key pulumi.StringInput
// (Optional) Lists the items of remote folders in simple and list browsing. The remote content is cached according to the
// value of the 'Retrieval Cache Period'. Default value is 'false'.
ListRemoteFolderItems pulumi.BoolPtrInput
// The local address to be used when creating connections. Useful for specifying the interface to use on systems with
// multiple network interfaces.
LocalAddress pulumi.StringPtrInput
// (Optional) The set of mime types that should override the block_mismatching_mime_types setting. Eg:
// "application/json,application/xml". Default value is empty.
MismatchingMimeTypesOverrideList pulumi.StringPtrInput
// The number of seconds to cache artifact retrieval misses (artifact not found). A value of 0 indicates no caching.
MissedCachePeriodSeconds pulumi.IntPtrInput
Notes pulumi.StringPtrInput
// If set, Artifactory does not try to fetch remote artifacts. Only locally-cached artifacts are retrieved.
Offline pulumi.BoolPtrInput
Password pulumi.StringPtrInput
// Setting repositories with priority will cause metadata to be merged only from repositories set with this field
PriorityResolution pulumi.BoolPtrInput
// Project environment for assigning this repository to. Allow values: "DEV" or "PROD"
ProjectEnvironments pulumi.StringArrayInput
// Project key for assigning this repository to. Must be 3 - 10 lowercase alphanumeric characters. When assigning
// repository to a project, repository key must be prefixed with project key, separated by a dash.
ProjectKey pulumi.StringPtrInput
// When set, if query params are included in the request to Artifactory, they will be passed on to the remote repository.
PropagateQueryParams pulumi.BoolPtrInput
// List of property set name
PropertySets pulumi.StringArrayInput
Proxy pulumi.StringPtrInput
// Repository layout key for the remote layout mapping
RemoteRepoLayoutRef pulumi.StringPtrInput
// Repository layout key for the local repository
RepoLayoutRef pulumi.StringPtrInput
// The metadataRetrievalTimeoutSecs field not allowed to be bigger then retrievalCachePeriodSecs field.
RetrievalCachePeriodSeconds pulumi.IntPtrInput
ShareConfiguration pulumi.BoolPtrInput
// Network timeout (in ms) to use when establishing a connection and for unanswered requests. Timing out on a network
// operation is considered a retrieval failure.
SocketTimeoutMillis pulumi.IntPtrInput
// When set, the repository should store cached artifacts locally. When not set, artifacts are not stored locally, and
// direct repository-to-client streaming is used. This can be useful for multi-server setups over a high-speed LAN, with
// one Artifactory caching certain data on central storage, and streaming it directly to satellite pass-though Artifactory
// servers.
StoreArtifactsLocally pulumi.BoolPtrInput
// When set, remote artifacts are fetched along with their properties.
SynchronizeProperties pulumi.BoolPtrInput
UnusedArtifactsCleanupPeriodEnabled pulumi.BoolPtrInput
// The number of hours to wait before an artifact is deemed "unused" and eligible for cleanup from the repository. A value
// of 0 means automatic cleanup of cached artifacts is disabled.
UnusedArtifactsCleanupPeriodHours pulumi.IntPtrInput
// - the remote repo URL. You kinda don't have a remote repo without it
Url pulumi.StringInput
Username pulumi.StringPtrInput
// Enable Indexing In Xray. Repository will be indexed with the default retention period. You will be able to change it via
// Xray settings.
XrayIndex pulumi.BoolPtrInput
}
func (RemotePuppetRepositoryArgs) ElementType() reflect.Type {
return reflect.TypeOf((*remotePuppetRepositoryArgs)(nil)).Elem()
}
type RemotePuppetRepositoryInput interface {
pulumi.Input
ToRemotePuppetRepositoryOutput() RemotePuppetRepositoryOutput
ToRemotePuppetRepositoryOutputWithContext(ctx context.Context) RemotePuppetRepositoryOutput
}
func (*RemotePuppetRepository) ElementType() reflect.Type {
return reflect.TypeOf((**RemotePuppetRepository)(nil)).Elem()
}
func (i *RemotePuppetRepository) ToRemotePuppetRepositoryOutput() RemotePuppetRepositoryOutput {
return i.ToRemotePuppetRepositoryOutputWithContext(context.Background())
}
func (i *RemotePuppetRepository) ToRemotePuppetRepositoryOutputWithContext(ctx context.Context) RemotePuppetRepositoryOutput {
return pulumi.ToOutputWithContext(ctx, i).(RemotePuppetRepositoryOutput)
}
// RemotePuppetRepositoryArrayInput is an input type that accepts RemotePuppetRepositoryArray and RemotePuppetRepositoryArrayOutput values.
// You can construct a concrete instance of `RemotePuppetRepositoryArrayInput` via:
//
// RemotePuppetRepositoryArray{ RemotePuppetRepositoryArgs{...} }
type RemotePuppetRepositoryArrayInput interface {
pulumi.Input
ToRemotePuppetRepositoryArrayOutput() RemotePuppetRepositoryArrayOutput
ToRemotePuppetRepositoryArrayOutputWithContext(context.Context) RemotePuppetRepositoryArrayOutput
}
type RemotePuppetRepositoryArray []RemotePuppetRepositoryInput
func (RemotePuppetRepositoryArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*RemotePuppetRepository)(nil)).Elem()
}
func (i RemotePuppetRepositoryArray) ToRemotePuppetRepositoryArrayOutput() RemotePuppetRepositoryArrayOutput {
return i.ToRemotePuppetRepositoryArrayOutputWithContext(context.Background())
}
func (i RemotePuppetRepositoryArray) ToRemotePuppetRepositoryArrayOutputWithContext(ctx context.Context) RemotePuppetRepositoryArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(RemotePuppetRepositoryArrayOutput)
}
// RemotePuppetRepositoryMapInput is an input type that accepts RemotePuppetRepositoryMap and RemotePuppetRepositoryMapOutput values.
// You can construct a concrete instance of `RemotePuppetRepositoryMapInput` via:
//
// RemotePuppetRepositoryMap{ "key": RemotePuppetRepositoryArgs{...} }
type RemotePuppetRepositoryMapInput interface {
pulumi.Input
ToRemotePuppetRepositoryMapOutput() RemotePuppetRepositoryMapOutput
ToRemotePuppetRepositoryMapOutputWithContext(context.Context) RemotePuppetRepositoryMapOutput
}
type RemotePuppetRepositoryMap map[string]RemotePuppetRepositoryInput
func (RemotePuppetRepositoryMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*RemotePuppetRepository)(nil)).Elem()
}
func (i RemotePuppetRepositoryMap) ToRemotePuppetRepositoryMapOutput() RemotePuppetRepositoryMapOutput {
return i.ToRemotePuppetRepositoryMapOutputWithContext(context.Background())
}
func (i RemotePuppetRepositoryMap) ToRemotePuppetRepositoryMapOutputWithContext(ctx context.Context) RemotePuppetRepositoryMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(RemotePuppetRepositoryMapOutput)
}
type RemotePuppetRepositoryOutput struct{ *pulumi.OutputState }
func (RemotePuppetRepositoryOutput) ElementType() reflect.Type {
return reflect.TypeOf((**RemotePuppetRepository)(nil)).Elem()
}
func (o RemotePuppetRepositoryOutput) ToRemotePuppetRepositoryOutput() RemotePuppetRepositoryOutput {
return o
}
func (o RemotePuppetRepositoryOutput) ToRemotePuppetRepositoryOutputWithContext(ctx context.Context) RemotePuppetRepositoryOutput {
return o
}
type RemotePuppetRepositoryArrayOutput struct{ *pulumi.OutputState }
func (RemotePuppetRepositoryArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*RemotePuppetRepository)(nil)).Elem()
}
func (o RemotePuppetRepositoryArrayOutput) ToRemotePuppetRepositoryArrayOutput() RemotePuppetRepositoryArrayOutput {
return o
}
func (o RemotePuppetRepositoryArrayOutput) ToRemotePuppetRepositoryArrayOutputWithContext(ctx context.Context) RemotePuppetRepositoryArrayOutput {
return o
}
func (o RemotePuppetRepositoryArrayOutput) Index(i pulumi.IntInput) RemotePuppetRepositoryOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *RemotePuppetRepository {
return vs[0].([]*RemotePuppetRepository)[vs[1].(int)]
}).(RemotePuppetRepositoryOutput)
}
type RemotePuppetRepositoryMapOutput struct{ *pulumi.OutputState }
func (RemotePuppetRepositoryMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*RemotePuppetRepository)(nil)).Elem()
}
func (o RemotePuppetRepositoryMapOutput) ToRemotePuppetRepositoryMapOutput() RemotePuppetRepositoryMapOutput {
return o
}
func (o RemotePuppetRepositoryMapOutput) ToRemotePuppetRepositoryMapOutputWithContext(ctx context.Context) RemotePuppetRepositoryMapOutput {
return o
}
func (o RemotePuppetRepositoryMapOutput) MapIndex(k pulumi.StringInput) RemotePuppetRepositoryOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *RemotePuppetRepository {
return vs[0].(map[string]*RemotePuppetRepository)[vs[1].(string)]
}).(RemotePuppetRepositoryOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*RemotePuppetRepositoryInput)(nil)).Elem(), &RemotePuppetRepository{})
pulumi.RegisterInputType(reflect.TypeOf((*RemotePuppetRepositoryArrayInput)(nil)).Elem(), RemotePuppetRepositoryArray{})
pulumi.RegisterInputType(reflect.TypeOf((*RemotePuppetRepositoryMapInput)(nil)).Elem(), RemotePuppetRepositoryMap{})
pulumi.RegisterOutputType(RemotePuppetRepositoryOutput{})
pulumi.RegisterOutputType(RemotePuppetRepositoryArrayOutput{})
pulumi.RegisterOutputType(RemotePuppetRepositoryMapOutput{})
}