aws-sdk-codeartifact 1.16.0 → 1.35.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +98 -1
- data/VERSION +1 -1
- data/lib/aws-sdk-codeartifact/client.rb +735 -322
- data/lib/aws-sdk-codeartifact/client_api.rb +159 -0
- data/lib/aws-sdk-codeartifact/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-codeartifact/endpoint_provider.rb +54 -0
- data/lib/aws-sdk-codeartifact/endpoints.rb +548 -0
- data/lib/aws-sdk-codeartifact/plugins/endpoints.rb +144 -0
- data/lib/aws-sdk-codeartifact/types.rb +869 -835
- data/lib/aws-sdk-codeartifact.rb +5 -1
- metadata +8 -4
@@ -15,6 +15,8 @@ module Aws::CodeArtifact
|
|
15
15
|
|
16
16
|
AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
|
17
17
|
AccountId = Shapes::StringShape.new(name: 'AccountId')
|
18
|
+
AllowPublish = Shapes::StringShape.new(name: 'AllowPublish')
|
19
|
+
AllowUpstream = Shapes::StringShape.new(name: 'AllowUpstream')
|
18
20
|
Arn = Shapes::StringShape.new(name: 'Arn')
|
19
21
|
Asset = Shapes::BlobShape.new(name: 'Asset', streaming: true)
|
20
22
|
AssetHashes = Shapes::MapShape.new(name: 'AssetHashes')
|
@@ -36,6 +38,8 @@ module Aws::CodeArtifact
|
|
36
38
|
DeleteDomainPermissionsPolicyResult = Shapes::StructureShape.new(name: 'DeleteDomainPermissionsPolicyResult')
|
37
39
|
DeleteDomainRequest = Shapes::StructureShape.new(name: 'DeleteDomainRequest')
|
38
40
|
DeleteDomainResult = Shapes::StructureShape.new(name: 'DeleteDomainResult')
|
41
|
+
DeletePackageRequest = Shapes::StructureShape.new(name: 'DeletePackageRequest')
|
42
|
+
DeletePackageResult = Shapes::StructureShape.new(name: 'DeletePackageResult')
|
39
43
|
DeletePackageVersionsRequest = Shapes::StructureShape.new(name: 'DeletePackageVersionsRequest')
|
40
44
|
DeletePackageVersionsResult = Shapes::StructureShape.new(name: 'DeletePackageVersionsResult')
|
41
45
|
DeleteRepositoryPermissionsPolicyRequest = Shapes::StructureShape.new(name: 'DeleteRepositoryPermissionsPolicyRequest')
|
@@ -44,6 +48,8 @@ module Aws::CodeArtifact
|
|
44
48
|
DeleteRepositoryResult = Shapes::StructureShape.new(name: 'DeleteRepositoryResult')
|
45
49
|
DescribeDomainRequest = Shapes::StructureShape.new(name: 'DescribeDomainRequest')
|
46
50
|
DescribeDomainResult = Shapes::StructureShape.new(name: 'DescribeDomainResult')
|
51
|
+
DescribePackageRequest = Shapes::StructureShape.new(name: 'DescribePackageRequest')
|
52
|
+
DescribePackageResult = Shapes::StructureShape.new(name: 'DescribePackageResult')
|
47
53
|
DescribePackageVersionRequest = Shapes::StructureShape.new(name: 'DescribePackageVersionRequest')
|
48
54
|
DescribePackageVersionResult = Shapes::StructureShape.new(name: 'DescribePackageVersionResult')
|
49
55
|
DescribeRepositoryRequest = Shapes::StructureShape.new(name: 'DescribeRepositoryRequest')
|
@@ -54,6 +60,7 @@ module Aws::CodeArtifact
|
|
54
60
|
DisposePackageVersionsRequest = Shapes::StructureShape.new(name: 'DisposePackageVersionsRequest')
|
55
61
|
DisposePackageVersionsResult = Shapes::StructureShape.new(name: 'DisposePackageVersionsResult')
|
56
62
|
DomainDescription = Shapes::StructureShape.new(name: 'DomainDescription')
|
63
|
+
DomainEntryPoint = Shapes::StructureShape.new(name: 'DomainEntryPoint')
|
57
64
|
DomainName = Shapes::StringShape.new(name: 'DomainName')
|
58
65
|
DomainStatus = Shapes::StringShape.new(name: 'DomainStatus')
|
59
66
|
DomainSummary = Shapes::StructureShape.new(name: 'DomainSummary')
|
@@ -105,9 +112,12 @@ module Aws::CodeArtifact
|
|
105
112
|
LongOptional = Shapes::IntegerShape.new(name: 'LongOptional')
|
106
113
|
PackageDependency = Shapes::StructureShape.new(name: 'PackageDependency')
|
107
114
|
PackageDependencyList = Shapes::ListShape.new(name: 'PackageDependencyList')
|
115
|
+
PackageDescription = Shapes::StructureShape.new(name: 'PackageDescription')
|
108
116
|
PackageFormat = Shapes::StringShape.new(name: 'PackageFormat')
|
109
117
|
PackageName = Shapes::StringShape.new(name: 'PackageName')
|
110
118
|
PackageNamespace = Shapes::StringShape.new(name: 'PackageNamespace')
|
119
|
+
PackageOriginConfiguration = Shapes::StructureShape.new(name: 'PackageOriginConfiguration')
|
120
|
+
PackageOriginRestrictions = Shapes::StructureShape.new(name: 'PackageOriginRestrictions')
|
111
121
|
PackageSummary = Shapes::StructureShape.new(name: 'PackageSummary')
|
112
122
|
PackageSummaryList = Shapes::ListShape.new(name: 'PackageSummaryList')
|
113
123
|
PackageVersion = Shapes::StringShape.new(name: 'PackageVersion')
|
@@ -116,6 +126,8 @@ module Aws::CodeArtifact
|
|
116
126
|
PackageVersionErrorCode = Shapes::StringShape.new(name: 'PackageVersionErrorCode')
|
117
127
|
PackageVersionErrorMap = Shapes::MapShape.new(name: 'PackageVersionErrorMap')
|
118
128
|
PackageVersionList = Shapes::ListShape.new(name: 'PackageVersionList')
|
129
|
+
PackageVersionOrigin = Shapes::StructureShape.new(name: 'PackageVersionOrigin')
|
130
|
+
PackageVersionOriginType = Shapes::StringShape.new(name: 'PackageVersionOriginType')
|
119
131
|
PackageVersionRevision = Shapes::StringShape.new(name: 'PackageVersionRevision')
|
120
132
|
PackageVersionRevisionMap = Shapes::MapShape.new(name: 'PackageVersionRevisionMap')
|
121
133
|
PackageVersionSortType = Shapes::StringShape.new(name: 'PackageVersionSortType')
|
@@ -125,8 +137,12 @@ module Aws::CodeArtifact
|
|
125
137
|
PaginationToken = Shapes::StringShape.new(name: 'PaginationToken')
|
126
138
|
PolicyDocument = Shapes::StringShape.new(name: 'PolicyDocument')
|
127
139
|
PolicyRevision = Shapes::StringShape.new(name: 'PolicyRevision')
|
140
|
+
PublishPackageVersionRequest = Shapes::StructureShape.new(name: 'PublishPackageVersionRequest')
|
141
|
+
PublishPackageVersionResult = Shapes::StructureShape.new(name: 'PublishPackageVersionResult')
|
128
142
|
PutDomainPermissionsPolicyRequest = Shapes::StructureShape.new(name: 'PutDomainPermissionsPolicyRequest')
|
129
143
|
PutDomainPermissionsPolicyResult = Shapes::StructureShape.new(name: 'PutDomainPermissionsPolicyResult')
|
144
|
+
PutPackageOriginConfigurationRequest = Shapes::StructureShape.new(name: 'PutPackageOriginConfigurationRequest')
|
145
|
+
PutPackageOriginConfigurationResult = Shapes::StructureShape.new(name: 'PutPackageOriginConfigurationResult')
|
130
146
|
PutRepositoryPermissionsPolicyRequest = Shapes::StructureShape.new(name: 'PutRepositoryPermissionsPolicyRequest')
|
131
147
|
PutRepositoryPermissionsPolicyResult = Shapes::StructureShape.new(name: 'PutRepositoryPermissionsPolicyResult')
|
132
148
|
RepositoryDescription = Shapes::StructureShape.new(name: 'RepositoryDescription')
|
@@ -139,6 +155,7 @@ module Aws::CodeArtifact
|
|
139
155
|
ResourcePolicy = Shapes::StructureShape.new(name: 'ResourcePolicy')
|
140
156
|
ResourceType = Shapes::StringShape.new(name: 'ResourceType')
|
141
157
|
RetryAfterSeconds = Shapes::IntegerShape.new(name: 'RetryAfterSeconds')
|
158
|
+
SHA256 = Shapes::StringShape.new(name: 'SHA256')
|
142
159
|
ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
|
143
160
|
String = Shapes::StringShape.new(name: 'String')
|
144
161
|
String255 = Shapes::StringShape.new(name: 'String255')
|
@@ -244,6 +261,17 @@ module Aws::CodeArtifact
|
|
244
261
|
DeleteDomainResult.add_member(:domain, Shapes::ShapeRef.new(shape: DomainDescription, location_name: "domain"))
|
245
262
|
DeleteDomainResult.struct_class = Types::DeleteDomainResult
|
246
263
|
|
264
|
+
DeletePackageRequest.add_member(:domain, Shapes::ShapeRef.new(shape: DomainName, required: true, location: "querystring", location_name: "domain"))
|
265
|
+
DeletePackageRequest.add_member(:domain_owner, Shapes::ShapeRef.new(shape: AccountId, location: "querystring", location_name: "domain-owner"))
|
266
|
+
DeletePackageRequest.add_member(:repository, Shapes::ShapeRef.new(shape: RepositoryName, required: true, location: "querystring", location_name: "repository"))
|
267
|
+
DeletePackageRequest.add_member(:format, Shapes::ShapeRef.new(shape: PackageFormat, required: true, location: "querystring", location_name: "format"))
|
268
|
+
DeletePackageRequest.add_member(:namespace, Shapes::ShapeRef.new(shape: PackageNamespace, location: "querystring", location_name: "namespace"))
|
269
|
+
DeletePackageRequest.add_member(:package, Shapes::ShapeRef.new(shape: PackageName, required: true, location: "querystring", location_name: "package"))
|
270
|
+
DeletePackageRequest.struct_class = Types::DeletePackageRequest
|
271
|
+
|
272
|
+
DeletePackageResult.add_member(:deleted_package, Shapes::ShapeRef.new(shape: PackageSummary, location_name: "deletedPackage"))
|
273
|
+
DeletePackageResult.struct_class = Types::DeletePackageResult
|
274
|
+
|
247
275
|
DeletePackageVersionsRequest.add_member(:domain, Shapes::ShapeRef.new(shape: DomainName, required: true, location: "querystring", location_name: "domain"))
|
248
276
|
DeletePackageVersionsRequest.add_member(:domain_owner, Shapes::ShapeRef.new(shape: AccountId, location: "querystring", location_name: "domain-owner"))
|
249
277
|
DeletePackageVersionsRequest.add_member(:repository, Shapes::ShapeRef.new(shape: RepositoryName, required: true, location: "querystring", location_name: "repository"))
|
@@ -282,6 +310,17 @@ module Aws::CodeArtifact
|
|
282
310
|
DescribeDomainResult.add_member(:domain, Shapes::ShapeRef.new(shape: DomainDescription, location_name: "domain"))
|
283
311
|
DescribeDomainResult.struct_class = Types::DescribeDomainResult
|
284
312
|
|
313
|
+
DescribePackageRequest.add_member(:domain, Shapes::ShapeRef.new(shape: DomainName, required: true, location: "querystring", location_name: "domain"))
|
314
|
+
DescribePackageRequest.add_member(:domain_owner, Shapes::ShapeRef.new(shape: AccountId, location: "querystring", location_name: "domain-owner"))
|
315
|
+
DescribePackageRequest.add_member(:repository, Shapes::ShapeRef.new(shape: RepositoryName, required: true, location: "querystring", location_name: "repository"))
|
316
|
+
DescribePackageRequest.add_member(:format, Shapes::ShapeRef.new(shape: PackageFormat, required: true, location: "querystring", location_name: "format"))
|
317
|
+
DescribePackageRequest.add_member(:namespace, Shapes::ShapeRef.new(shape: PackageNamespace, location: "querystring", location_name: "namespace"))
|
318
|
+
DescribePackageRequest.add_member(:package, Shapes::ShapeRef.new(shape: PackageName, required: true, location: "querystring", location_name: "package"))
|
319
|
+
DescribePackageRequest.struct_class = Types::DescribePackageRequest
|
320
|
+
|
321
|
+
DescribePackageResult.add_member(:package, Shapes::ShapeRef.new(shape: PackageDescription, required: true, location_name: "package"))
|
322
|
+
DescribePackageResult.struct_class = Types::DescribePackageResult
|
323
|
+
|
285
324
|
DescribePackageVersionRequest.add_member(:domain, Shapes::ShapeRef.new(shape: DomainName, required: true, location: "querystring", location_name: "domain"))
|
286
325
|
DescribePackageVersionRequest.add_member(:domain_owner, Shapes::ShapeRef.new(shape: AccountId, location: "querystring", location_name: "domain-owner"))
|
287
326
|
DescribePackageVersionRequest.add_member(:repository, Shapes::ShapeRef.new(shape: RepositoryName, required: true, location: "querystring", location_name: "repository"))
|
@@ -337,6 +376,10 @@ module Aws::CodeArtifact
|
|
337
376
|
DomainDescription.add_member(:s3_bucket_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "s3BucketArn"))
|
338
377
|
DomainDescription.struct_class = Types::DomainDescription
|
339
378
|
|
379
|
+
DomainEntryPoint.add_member(:repository_name, Shapes::ShapeRef.new(shape: RepositoryName, location_name: "repositoryName"))
|
380
|
+
DomainEntryPoint.add_member(:external_connection_name, Shapes::ShapeRef.new(shape: ExternalConnectionName, location_name: "externalConnectionName"))
|
381
|
+
DomainEntryPoint.struct_class = Types::DomainEntryPoint
|
382
|
+
|
340
383
|
DomainSummary.add_member(:name, Shapes::ShapeRef.new(shape: DomainName, location_name: "name"))
|
341
384
|
DomainSummary.add_member(:owner, Shapes::ShapeRef.new(shape: AccountId, location_name: "owner"))
|
342
385
|
DomainSummary.add_member(:arn, Shapes::ShapeRef.new(shape: Arn, location_name: "arn"))
|
@@ -482,6 +525,7 @@ module Aws::CodeArtifact
|
|
482
525
|
ListPackageVersionsRequest.add_member(:sort_by, Shapes::ShapeRef.new(shape: PackageVersionSortType, location: "querystring", location_name: "sortBy"))
|
483
526
|
ListPackageVersionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListPackageVersionsMaxResults, location: "querystring", location_name: "max-results"))
|
484
527
|
ListPackageVersionsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location: "querystring", location_name: "next-token"))
|
528
|
+
ListPackageVersionsRequest.add_member(:origin_type, Shapes::ShapeRef.new(shape: PackageVersionOriginType, location: "querystring", location_name: "originType"))
|
485
529
|
ListPackageVersionsRequest.struct_class = Types::ListPackageVersionsRequest
|
486
530
|
|
487
531
|
ListPackageVersionsResult.add_member(:default_display_version, Shapes::ShapeRef.new(shape: PackageVersion, location_name: "defaultDisplayVersion"))
|
@@ -500,6 +544,8 @@ module Aws::CodeArtifact
|
|
500
544
|
ListPackagesRequest.add_member(:package_prefix, Shapes::ShapeRef.new(shape: PackageName, location: "querystring", location_name: "package-prefix"))
|
501
545
|
ListPackagesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListPackagesMaxResults, location: "querystring", location_name: "max-results"))
|
502
546
|
ListPackagesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location: "querystring", location_name: "next-token"))
|
547
|
+
ListPackagesRequest.add_member(:publish, Shapes::ShapeRef.new(shape: AllowPublish, location: "querystring", location_name: "publish"))
|
548
|
+
ListPackagesRequest.add_member(:upstream, Shapes::ShapeRef.new(shape: AllowUpstream, location: "querystring", location_name: "upstream"))
|
503
549
|
ListPackagesRequest.struct_class = Types::ListPackagesRequest
|
504
550
|
|
505
551
|
ListPackagesResult.add_member(:packages, Shapes::ShapeRef.new(shape: PackageSummaryList, location_name: "packages"))
|
@@ -541,9 +587,23 @@ module Aws::CodeArtifact
|
|
541
587
|
|
542
588
|
PackageDependencyList.member = Shapes::ShapeRef.new(shape: PackageDependency)
|
543
589
|
|
590
|
+
PackageDescription.add_member(:format, Shapes::ShapeRef.new(shape: PackageFormat, location_name: "format"))
|
591
|
+
PackageDescription.add_member(:namespace, Shapes::ShapeRef.new(shape: PackageNamespace, location_name: "namespace"))
|
592
|
+
PackageDescription.add_member(:name, Shapes::ShapeRef.new(shape: PackageName, location_name: "name"))
|
593
|
+
PackageDescription.add_member(:origin_configuration, Shapes::ShapeRef.new(shape: PackageOriginConfiguration, location_name: "originConfiguration"))
|
594
|
+
PackageDescription.struct_class = Types::PackageDescription
|
595
|
+
|
596
|
+
PackageOriginConfiguration.add_member(:restrictions, Shapes::ShapeRef.new(shape: PackageOriginRestrictions, location_name: "restrictions"))
|
597
|
+
PackageOriginConfiguration.struct_class = Types::PackageOriginConfiguration
|
598
|
+
|
599
|
+
PackageOriginRestrictions.add_member(:publish, Shapes::ShapeRef.new(shape: AllowPublish, required: true, location_name: "publish"))
|
600
|
+
PackageOriginRestrictions.add_member(:upstream, Shapes::ShapeRef.new(shape: AllowUpstream, required: true, location_name: "upstream"))
|
601
|
+
PackageOriginRestrictions.struct_class = Types::PackageOriginRestrictions
|
602
|
+
|
544
603
|
PackageSummary.add_member(:format, Shapes::ShapeRef.new(shape: PackageFormat, location_name: "format"))
|
545
604
|
PackageSummary.add_member(:namespace, Shapes::ShapeRef.new(shape: PackageNamespace, location_name: "namespace"))
|
546
605
|
PackageSummary.add_member(:package, Shapes::ShapeRef.new(shape: PackageName, location_name: "package"))
|
606
|
+
PackageSummary.add_member(:origin_configuration, Shapes::ShapeRef.new(shape: PackageOriginConfiguration, location_name: "originConfiguration"))
|
547
607
|
PackageSummary.struct_class = Types::PackageSummary
|
548
608
|
|
549
609
|
PackageSummaryList.member = Shapes::ShapeRef.new(shape: PackageSummary)
|
@@ -560,6 +620,7 @@ module Aws::CodeArtifact
|
|
560
620
|
PackageVersionDescription.add_member(:licenses, Shapes::ShapeRef.new(shape: LicenseInfoList, location_name: "licenses"))
|
561
621
|
PackageVersionDescription.add_member(:revision, Shapes::ShapeRef.new(shape: PackageVersionRevision, location_name: "revision"))
|
562
622
|
PackageVersionDescription.add_member(:status, Shapes::ShapeRef.new(shape: PackageVersionStatus, location_name: "status"))
|
623
|
+
PackageVersionDescription.add_member(:origin, Shapes::ShapeRef.new(shape: PackageVersionOrigin, location_name: "origin"))
|
563
624
|
PackageVersionDescription.struct_class = Types::PackageVersionDescription
|
564
625
|
|
565
626
|
PackageVersionError.add_member(:error_code, Shapes::ShapeRef.new(shape: PackageVersionErrorCode, location_name: "errorCode"))
|
@@ -571,16 +632,45 @@ module Aws::CodeArtifact
|
|
571
632
|
|
572
633
|
PackageVersionList.member = Shapes::ShapeRef.new(shape: PackageVersion)
|
573
634
|
|
635
|
+
PackageVersionOrigin.add_member(:domain_entry_point, Shapes::ShapeRef.new(shape: DomainEntryPoint, location_name: "domainEntryPoint"))
|
636
|
+
PackageVersionOrigin.add_member(:origin_type, Shapes::ShapeRef.new(shape: PackageVersionOriginType, location_name: "originType"))
|
637
|
+
PackageVersionOrigin.struct_class = Types::PackageVersionOrigin
|
638
|
+
|
574
639
|
PackageVersionRevisionMap.key = Shapes::ShapeRef.new(shape: PackageVersion)
|
575
640
|
PackageVersionRevisionMap.value = Shapes::ShapeRef.new(shape: PackageVersionRevision)
|
576
641
|
|
577
642
|
PackageVersionSummary.add_member(:version, Shapes::ShapeRef.new(shape: PackageVersion, required: true, location_name: "version"))
|
578
643
|
PackageVersionSummary.add_member(:revision, Shapes::ShapeRef.new(shape: PackageVersionRevision, location_name: "revision"))
|
579
644
|
PackageVersionSummary.add_member(:status, Shapes::ShapeRef.new(shape: PackageVersionStatus, required: true, location_name: "status"))
|
645
|
+
PackageVersionSummary.add_member(:origin, Shapes::ShapeRef.new(shape: PackageVersionOrigin, location_name: "origin"))
|
580
646
|
PackageVersionSummary.struct_class = Types::PackageVersionSummary
|
581
647
|
|
582
648
|
PackageVersionSummaryList.member = Shapes::ShapeRef.new(shape: PackageVersionSummary)
|
583
649
|
|
650
|
+
PublishPackageVersionRequest.add_member(:domain, Shapes::ShapeRef.new(shape: DomainName, required: true, location: "querystring", location_name: "domain"))
|
651
|
+
PublishPackageVersionRequest.add_member(:domain_owner, Shapes::ShapeRef.new(shape: AccountId, location: "querystring", location_name: "domain-owner"))
|
652
|
+
PublishPackageVersionRequest.add_member(:repository, Shapes::ShapeRef.new(shape: RepositoryName, required: true, location: "querystring", location_name: "repository"))
|
653
|
+
PublishPackageVersionRequest.add_member(:format, Shapes::ShapeRef.new(shape: PackageFormat, required: true, location: "querystring", location_name: "format"))
|
654
|
+
PublishPackageVersionRequest.add_member(:namespace, Shapes::ShapeRef.new(shape: PackageNamespace, location: "querystring", location_name: "namespace"))
|
655
|
+
PublishPackageVersionRequest.add_member(:package, Shapes::ShapeRef.new(shape: PackageName, required: true, location: "querystring", location_name: "package"))
|
656
|
+
PublishPackageVersionRequest.add_member(:package_version, Shapes::ShapeRef.new(shape: PackageVersion, required: true, location: "querystring", location_name: "version"))
|
657
|
+
PublishPackageVersionRequest.add_member(:asset_content, Shapes::ShapeRef.new(shape: Asset, required: true, location_name: "assetContent"))
|
658
|
+
PublishPackageVersionRequest.add_member(:asset_name, Shapes::ShapeRef.new(shape: AssetName, required: true, location: "querystring", location_name: "asset"))
|
659
|
+
PublishPackageVersionRequest.add_member(:asset_sha256, Shapes::ShapeRef.new(shape: SHA256, required: true, location: "header", location_name: "x-amz-content-sha256"))
|
660
|
+
PublishPackageVersionRequest.add_member(:unfinished, Shapes::ShapeRef.new(shape: BooleanOptional, location: "querystring", location_name: "unfinished"))
|
661
|
+
PublishPackageVersionRequest.struct_class = Types::PublishPackageVersionRequest
|
662
|
+
PublishPackageVersionRequest[:payload] = :asset_content
|
663
|
+
PublishPackageVersionRequest[:payload_member] = PublishPackageVersionRequest.member(:asset_content)
|
664
|
+
|
665
|
+
PublishPackageVersionResult.add_member(:format, Shapes::ShapeRef.new(shape: PackageFormat, location_name: "format"))
|
666
|
+
PublishPackageVersionResult.add_member(:namespace, Shapes::ShapeRef.new(shape: PackageNamespace, location_name: "namespace"))
|
667
|
+
PublishPackageVersionResult.add_member(:package, Shapes::ShapeRef.new(shape: PackageName, location_name: "package"))
|
668
|
+
PublishPackageVersionResult.add_member(:version, Shapes::ShapeRef.new(shape: PackageVersion, location_name: "version"))
|
669
|
+
PublishPackageVersionResult.add_member(:version_revision, Shapes::ShapeRef.new(shape: PackageVersionRevision, location_name: "versionRevision"))
|
670
|
+
PublishPackageVersionResult.add_member(:status, Shapes::ShapeRef.new(shape: PackageVersionStatus, location_name: "status"))
|
671
|
+
PublishPackageVersionResult.add_member(:asset, Shapes::ShapeRef.new(shape: AssetSummary, location_name: "asset"))
|
672
|
+
PublishPackageVersionResult.struct_class = Types::PublishPackageVersionResult
|
673
|
+
|
584
674
|
PutDomainPermissionsPolicyRequest.add_member(:domain, Shapes::ShapeRef.new(shape: DomainName, required: true, location_name: "domain"))
|
585
675
|
PutDomainPermissionsPolicyRequest.add_member(:domain_owner, Shapes::ShapeRef.new(shape: AccountId, location_name: "domainOwner"))
|
586
676
|
PutDomainPermissionsPolicyRequest.add_member(:policy_revision, Shapes::ShapeRef.new(shape: PolicyRevision, location_name: "policyRevision"))
|
@@ -590,6 +680,18 @@ module Aws::CodeArtifact
|
|
590
680
|
PutDomainPermissionsPolicyResult.add_member(:policy, Shapes::ShapeRef.new(shape: ResourcePolicy, location_name: "policy"))
|
591
681
|
PutDomainPermissionsPolicyResult.struct_class = Types::PutDomainPermissionsPolicyResult
|
592
682
|
|
683
|
+
PutPackageOriginConfigurationRequest.add_member(:domain, Shapes::ShapeRef.new(shape: DomainName, required: true, location: "querystring", location_name: "domain"))
|
684
|
+
PutPackageOriginConfigurationRequest.add_member(:domain_owner, Shapes::ShapeRef.new(shape: AccountId, location: "querystring", location_name: "domain-owner"))
|
685
|
+
PutPackageOriginConfigurationRequest.add_member(:repository, Shapes::ShapeRef.new(shape: RepositoryName, required: true, location: "querystring", location_name: "repository"))
|
686
|
+
PutPackageOriginConfigurationRequest.add_member(:format, Shapes::ShapeRef.new(shape: PackageFormat, required: true, location: "querystring", location_name: "format"))
|
687
|
+
PutPackageOriginConfigurationRequest.add_member(:namespace, Shapes::ShapeRef.new(shape: PackageNamespace, location: "querystring", location_name: "namespace"))
|
688
|
+
PutPackageOriginConfigurationRequest.add_member(:package, Shapes::ShapeRef.new(shape: PackageName, required: true, location: "querystring", location_name: "package"))
|
689
|
+
PutPackageOriginConfigurationRequest.add_member(:restrictions, Shapes::ShapeRef.new(shape: PackageOriginRestrictions, required: true, location_name: "restrictions"))
|
690
|
+
PutPackageOriginConfigurationRequest.struct_class = Types::PutPackageOriginConfigurationRequest
|
691
|
+
|
692
|
+
PutPackageOriginConfigurationResult.add_member(:origin_configuration, Shapes::ShapeRef.new(shape: PackageOriginConfiguration, location_name: "originConfiguration"))
|
693
|
+
PutPackageOriginConfigurationResult.struct_class = Types::PutPackageOriginConfigurationResult
|
694
|
+
|
593
695
|
PutRepositoryPermissionsPolicyRequest.add_member(:domain, Shapes::ShapeRef.new(shape: DomainName, required: true, location: "querystring", location_name: "domain"))
|
594
696
|
PutRepositoryPermissionsPolicyRequest.add_member(:domain_owner, Shapes::ShapeRef.new(shape: AccountId, location: "querystring", location_name: "domain-owner"))
|
595
697
|
PutRepositoryPermissionsPolicyRequest.add_member(:repository, Shapes::ShapeRef.new(shape: RepositoryName, required: true, location: "querystring", location_name: "repository"))
|
@@ -608,6 +710,7 @@ module Aws::CodeArtifact
|
|
608
710
|
RepositoryDescription.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
|
609
711
|
RepositoryDescription.add_member(:upstreams, Shapes::ShapeRef.new(shape: UpstreamRepositoryInfoList, location_name: "upstreams"))
|
610
712
|
RepositoryDescription.add_member(:external_connections, Shapes::ShapeRef.new(shape: RepositoryExternalConnectionInfoList, location_name: "externalConnections"))
|
713
|
+
RepositoryDescription.add_member(:created_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "createdTime"))
|
611
714
|
RepositoryDescription.struct_class = Types::RepositoryDescription
|
612
715
|
|
613
716
|
RepositoryExternalConnectionInfo.add_member(:external_connection_name, Shapes::ShapeRef.new(shape: ExternalConnectionName, location_name: "externalConnectionName"))
|
@@ -623,6 +726,7 @@ module Aws::CodeArtifact
|
|
623
726
|
RepositorySummary.add_member(:domain_owner, Shapes::ShapeRef.new(shape: AccountId, location_name: "domainOwner"))
|
624
727
|
RepositorySummary.add_member(:arn, Shapes::ShapeRef.new(shape: Arn, location_name: "arn"))
|
625
728
|
RepositorySummary.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
|
729
|
+
RepositorySummary.add_member(:created_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "createdTime"))
|
626
730
|
RepositorySummary.struct_class = Types::RepositorySummary
|
627
731
|
|
628
732
|
RepositorySummaryList.member = Shapes::ShapeRef.new(shape: RepositorySummary)
|
@@ -818,6 +922,20 @@ module Aws::CodeArtifact
|
|
818
922
|
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
819
923
|
end)
|
820
924
|
|
925
|
+
api.add_operation(:delete_package, Seahorse::Model::Operation.new.tap do |o|
|
926
|
+
o.name = "DeletePackage"
|
927
|
+
o.http_method = "DELETE"
|
928
|
+
o.http_request_uri = "/v1/package"
|
929
|
+
o.input = Shapes::ShapeRef.new(shape: DeletePackageRequest)
|
930
|
+
o.output = Shapes::ShapeRef.new(shape: DeletePackageResult)
|
931
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
932
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
933
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
934
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
935
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
936
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
937
|
+
end)
|
938
|
+
|
821
939
|
api.add_operation(:delete_package_versions, Seahorse::Model::Operation.new.tap do |o|
|
822
940
|
o.name = "DeletePackageVersions"
|
823
941
|
o.http_method = "POST"
|
@@ -873,6 +991,19 @@ module Aws::CodeArtifact
|
|
873
991
|
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
874
992
|
end)
|
875
993
|
|
994
|
+
api.add_operation(:describe_package, Seahorse::Model::Operation.new.tap do |o|
|
995
|
+
o.name = "DescribePackage"
|
996
|
+
o.http_method = "GET"
|
997
|
+
o.http_request_uri = "/v1/package"
|
998
|
+
o.input = Shapes::ShapeRef.new(shape: DescribePackageRequest)
|
999
|
+
o.output = Shapes::ShapeRef.new(shape: DescribePackageResult)
|
1000
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
1001
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
1002
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1003
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
1004
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
1005
|
+
end)
|
1006
|
+
|
876
1007
|
api.add_operation(:describe_package_version, Seahorse::Model::Operation.new.tap do |o|
|
877
1008
|
o.name = "DescribePackageVersion"
|
878
1009
|
o.http_method = "GET"
|
@@ -1145,6 +1276,21 @@ module Aws::CodeArtifact
|
|
1145
1276
|
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
1146
1277
|
end)
|
1147
1278
|
|
1279
|
+
api.add_operation(:publish_package_version, Seahorse::Model::Operation.new.tap do |o|
|
1280
|
+
o.name = "PublishPackageVersion"
|
1281
|
+
o.http_method = "POST"
|
1282
|
+
o.http_request_uri = "/v1/package/version/publish"
|
1283
|
+
o.input = Shapes::ShapeRef.new(shape: PublishPackageVersionRequest)
|
1284
|
+
o.output = Shapes::ShapeRef.new(shape: PublishPackageVersionResult)
|
1285
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
1286
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
1287
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
1288
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1289
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
1290
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
1291
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
1292
|
+
end)
|
1293
|
+
|
1148
1294
|
api.add_operation(:put_domain_permissions_policy, Seahorse::Model::Operation.new.tap do |o|
|
1149
1295
|
o.name = "PutDomainPermissionsPolicy"
|
1150
1296
|
o.http_method = "PUT"
|
@@ -1160,6 +1306,19 @@ module Aws::CodeArtifact
|
|
1160
1306
|
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
1161
1307
|
end)
|
1162
1308
|
|
1309
|
+
api.add_operation(:put_package_origin_configuration, Seahorse::Model::Operation.new.tap do |o|
|
1310
|
+
o.name = "PutPackageOriginConfiguration"
|
1311
|
+
o.http_method = "POST"
|
1312
|
+
o.http_request_uri = "/v1/package"
|
1313
|
+
o.input = Shapes::ShapeRef.new(shape: PutPackageOriginConfigurationRequest)
|
1314
|
+
o.output = Shapes::ShapeRef.new(shape: PutPackageOriginConfigurationResult)
|
1315
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
1316
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
1317
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1318
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
1319
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
1320
|
+
end)
|
1321
|
+
|
1163
1322
|
api.add_operation(:put_repository_permissions_policy, Seahorse::Model::Operation.new.tap do |o|
|
1164
1323
|
o.name = "PutRepositoryPermissionsPolicy"
|
1165
1324
|
o.http_method = "PUT"
|
@@ -0,0 +1,66 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::CodeArtifact
|
11
|
+
# Endpoint parameters used to influence endpoints per request.
|
12
|
+
#
|
13
|
+
# @!attribute region
|
14
|
+
# The AWS region used to dispatch the request.
|
15
|
+
#
|
16
|
+
# @return [String]
|
17
|
+
#
|
18
|
+
# @!attribute use_dual_stack
|
19
|
+
# When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
|
20
|
+
#
|
21
|
+
# @return [Boolean]
|
22
|
+
#
|
23
|
+
# @!attribute use_fips
|
24
|
+
# When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
|
25
|
+
#
|
26
|
+
# @return [Boolean]
|
27
|
+
#
|
28
|
+
# @!attribute endpoint
|
29
|
+
# Override the endpoint used to send this request
|
30
|
+
#
|
31
|
+
# @return [String]
|
32
|
+
#
|
33
|
+
EndpointParameters = Struct.new(
|
34
|
+
:region,
|
35
|
+
:use_dual_stack,
|
36
|
+
:use_fips,
|
37
|
+
:endpoint,
|
38
|
+
) do
|
39
|
+
include Aws::Structure
|
40
|
+
|
41
|
+
# @api private
|
42
|
+
class << self
|
43
|
+
PARAM_MAP = {
|
44
|
+
'Region' => :region,
|
45
|
+
'UseDualStack' => :use_dual_stack,
|
46
|
+
'UseFIPS' => :use_fips,
|
47
|
+
'Endpoint' => :endpoint,
|
48
|
+
}.freeze
|
49
|
+
end
|
50
|
+
|
51
|
+
def initialize(options = {})
|
52
|
+
self[:region] = options[:region]
|
53
|
+
self[:use_dual_stack] = options[:use_dual_stack]
|
54
|
+
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
55
|
+
if self[:use_dual_stack].nil?
|
56
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
|
57
|
+
end
|
58
|
+
self[:use_fips] = options[:use_fips]
|
59
|
+
self[:use_fips] = false if self[:use_fips].nil?
|
60
|
+
if self[:use_fips].nil?
|
61
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_fips"
|
62
|
+
end
|
63
|
+
self[:endpoint] = options[:endpoint]
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
@@ -0,0 +1,54 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::CodeArtifact
|
11
|
+
class EndpointProvider
|
12
|
+
def resolve_endpoint(parameters)
|
13
|
+
region = parameters.region
|
14
|
+
use_dual_stack = parameters.use_dual_stack
|
15
|
+
use_fips = parameters.use_fips
|
16
|
+
endpoint = parameters.endpoint
|
17
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
18
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
19
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
20
|
+
end
|
21
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
22
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
23
|
+
end
|
24
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
25
|
+
end
|
26
|
+
if Aws::Endpoints::Matchers.set?(region)
|
27
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
28
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
29
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
30
|
+
return Aws::Endpoints::Endpoint.new(url: "https://codeartifact-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
31
|
+
end
|
32
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
|
+
end
|
34
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
36
|
+
return Aws::Endpoints::Endpoint.new(url: "https://codeartifact-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
37
|
+
end
|
38
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
39
|
+
end
|
40
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
41
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
42
|
+
return Aws::Endpoints::Endpoint.new(url: "https://codeartifact.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
43
|
+
end
|
44
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
45
|
+
end
|
46
|
+
return Aws::Endpoints::Endpoint.new(url: "https://codeartifact.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
47
|
+
end
|
48
|
+
end
|
49
|
+
raise ArgumentError, "Invalid Configuration: Missing Region"
|
50
|
+
raise ArgumentError, 'No endpoint could be resolved'
|
51
|
+
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|