aws-sdk-codeartifact 1.1.0 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-codeartifact.rb +3 -2
- data/lib/aws-sdk-codeartifact/client.rb +253 -42
- data/lib/aws-sdk-codeartifact/client_api.rb +78 -1
- data/lib/aws-sdk-codeartifact/types.rb +266 -18
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7829a813b8045f82a5b23c00cd334ef7919b4bdb8dea4a8502a9afa0c8bc007d
|
4
|
+
data.tar.gz: 624fa94ccbf9f4818ac41fb2b82468b4e9f3d0bff4a3d2bd6c77e097dfc2f4da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 21d52f9cd59d8f70e7b92ea84da93fcdc8ecf9fc3050e01da22c7e45b8abe4e6b3d24c1d44c4bd20fe8ef70e5c695ffdd8e0e9a69b4789c9091af29545fd8cb7
|
7
|
+
data.tar.gz: 44a1e15efd5e61531d0bf9a20154287e349f9c8fc44f5eb749764be270f1dbd69d2ea139b7ca49072c3a1d25218594b250c0333bc91a2bd019944f7aecea0d35
|
data/lib/aws-sdk-codeartifact.rb
CHANGED
@@ -7,6 +7,7 @@
|
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
10
|
+
|
10
11
|
require 'aws-sdk-core'
|
11
12
|
require 'aws-sigv4'
|
12
13
|
|
@@ -44,9 +45,9 @@ require_relative 'aws-sdk-codeartifact/customizations'
|
|
44
45
|
#
|
45
46
|
# See {Errors} for more information.
|
46
47
|
#
|
47
|
-
#
|
48
|
+
# @!group service
|
48
49
|
module Aws::CodeArtifact
|
49
50
|
|
50
|
-
GEM_VERSION = '1.
|
51
|
+
GEM_VERSION = '1.6.0'
|
51
52
|
|
52
53
|
end
|
@@ -85,13 +85,28 @@ module Aws::CodeArtifact
|
|
85
85
|
# * `Aws::Credentials` - Used for configuring static, non-refreshing
|
86
86
|
# credentials.
|
87
87
|
#
|
88
|
+
# * `Aws::SharedCredentials` - Used for loading static credentials from a
|
89
|
+
# shared file, such as `~/.aws/config`.
|
90
|
+
#
|
91
|
+
# * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
|
92
|
+
#
|
93
|
+
# * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
|
94
|
+
# assume a role after providing credentials via the web.
|
95
|
+
#
|
96
|
+
# * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
|
97
|
+
# access token generated from `aws login`.
|
98
|
+
#
|
99
|
+
# * `Aws::ProcessCredentials` - Used for loading credentials from a
|
100
|
+
# process that outputs to stdout.
|
101
|
+
#
|
88
102
|
# * `Aws::InstanceProfileCredentials` - Used for loading credentials
|
89
103
|
# from an EC2 IMDS on an EC2 instance.
|
90
104
|
#
|
91
|
-
# * `Aws::
|
92
|
-
#
|
105
|
+
# * `Aws::ECSCredentials` - Used for loading credentials from
|
106
|
+
# instances running in ECS.
|
93
107
|
#
|
94
|
-
# * `Aws::
|
108
|
+
# * `Aws::CognitoIdentityCredentials` - Used for loading credentials
|
109
|
+
# from the Cognito Identity service.
|
95
110
|
#
|
96
111
|
# When `:credentials` are not configured directly, the following
|
97
112
|
# locations will be searched for credentials:
|
@@ -101,10 +116,10 @@ module Aws::CodeArtifact
|
|
101
116
|
# * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
|
102
117
|
# * `~/.aws/credentials`
|
103
118
|
# * `~/.aws/config`
|
104
|
-
# * EC2 IMDS instance profile - When used by default, the timeouts
|
105
|
-
# very aggressive. Construct and pass an instance of
|
106
|
-
# `Aws::InstanceProfileCredentails`
|
107
|
-
# timeouts.
|
119
|
+
# * EC2/ECS IMDS instance profile - When used by default, the timeouts
|
120
|
+
# are very aggressive. Construct and pass an instance of
|
121
|
+
# `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
|
122
|
+
# enable retries and extended timeouts.
|
108
123
|
#
|
109
124
|
# @option options [required, String] :region
|
110
125
|
# The AWS region to connect to. The configured `:region` is
|
@@ -346,6 +361,8 @@ module Aws::CodeArtifact
|
|
346
361
|
#
|
347
362
|
# * `public:maven-commonsware` - for the CommonsWare Android repository.
|
348
363
|
#
|
364
|
+
# * `public:nuget-org` - for the NuGet Gallery.
|
365
|
+
#
|
349
366
|
# @return [Types::AssociateExternalConnectionResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
350
367
|
#
|
351
368
|
# * {Types::AssociateExternalConnectionResult#repository #repository} => Types::RepositoryDescription
|
@@ -371,7 +388,7 @@ module Aws::CodeArtifact
|
|
371
388
|
# resp.repository.upstreams[0].repository_name #=> String
|
372
389
|
# resp.repository.external_connections #=> Array
|
373
390
|
# resp.repository.external_connections[0].external_connection_name #=> String
|
374
|
-
# resp.repository.external_connections[0].package_format #=> String, one of "npm", "pypi", "maven"
|
391
|
+
# resp.repository.external_connections[0].package_format #=> String, one of "npm", "pypi", "maven", "nuget"
|
375
392
|
# resp.repository.external_connections[0].status #=> String, one of "Available"
|
376
393
|
#
|
377
394
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/AssociateExternalConnection AWS API Documentation
|
@@ -415,6 +432,8 @@ module Aws::CodeArtifact
|
|
415
432
|
# * `maven`\: A Maven package that contains compiled code in a
|
416
433
|
# distributable format, such as a JAR file.
|
417
434
|
#
|
435
|
+
# * `nuget`\: A NuGet package.
|
436
|
+
#
|
418
437
|
# @option params [String] :namespace
|
419
438
|
# The namespace of the package. The package component that specifies its
|
420
439
|
# namespace depends on its type. For example:
|
@@ -426,6 +445,9 @@ module Aws::CodeArtifact
|
|
426
445
|
# * A Python package does not contain a corresponding component, so
|
427
446
|
# Python packages do not have a namespace.
|
428
447
|
#
|
448
|
+
# * A NuGet package does not contain a corresponding component, so NuGet
|
449
|
+
# packages do not have a namespace.
|
450
|
+
#
|
429
451
|
# @option params [required, String] :package
|
430
452
|
# The name of the package that is copied.
|
431
453
|
#
|
@@ -477,7 +499,7 @@ module Aws::CodeArtifact
|
|
477
499
|
# domain_owner: "AccountId",
|
478
500
|
# source_repository: "RepositoryName", # required
|
479
501
|
# destination_repository: "RepositoryName", # required
|
480
|
-
# format: "npm", # required, accepts npm, pypi, maven
|
502
|
+
# format: "npm", # required, accepts npm, pypi, maven, nuget
|
481
503
|
# namespace: "PackageNamespace",
|
482
504
|
# package: "PackageName", # required
|
483
505
|
# versions: ["PackageVersion"],
|
@@ -545,6 +567,9 @@ module Aws::CodeArtifact
|
|
545
567
|
# [2]: https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html
|
546
568
|
# [3]: https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html
|
547
569
|
#
|
570
|
+
# @option params [Array<Types::Tag>] :tags
|
571
|
+
# One or more tag key-value pairs for the domain.
|
572
|
+
#
|
548
573
|
# @return [Types::CreateDomainResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
549
574
|
#
|
550
575
|
# * {Types::CreateDomainResult#domain #domain} => Types::DomainDescription
|
@@ -554,6 +579,12 @@ module Aws::CodeArtifact
|
|
554
579
|
# resp = client.create_domain({
|
555
580
|
# domain: "DomainName", # required
|
556
581
|
# encryption_key: "Arn",
|
582
|
+
# tags: [
|
583
|
+
# {
|
584
|
+
# key: "TagKey", # required
|
585
|
+
# value: "TagValue", # required
|
586
|
+
# },
|
587
|
+
# ],
|
557
588
|
# })
|
558
589
|
#
|
559
590
|
# @example Response structure
|
@@ -566,6 +597,7 @@ module Aws::CodeArtifact
|
|
566
597
|
# resp.domain.encryption_key #=> String
|
567
598
|
# resp.domain.repository_count #=> Integer
|
568
599
|
# resp.domain.asset_size_bytes #=> Integer
|
600
|
+
# resp.domain.s3_bucket_arn #=> String
|
569
601
|
#
|
570
602
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/CreateDomain AWS API Documentation
|
571
603
|
#
|
@@ -602,6 +634,9 @@ module Aws::CodeArtifact
|
|
602
634
|
#
|
603
635
|
# [1]: https://docs.aws.amazon.com/codeartifact/latest/ug/repos-upstream.html
|
604
636
|
#
|
637
|
+
# @option params [Array<Types::Tag>] :tags
|
638
|
+
# One or more tag key-value pairs for the repository.
|
639
|
+
#
|
605
640
|
# @return [Types::CreateRepositoryResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
606
641
|
#
|
607
642
|
# * {Types::CreateRepositoryResult#repository #repository} => Types::RepositoryDescription
|
@@ -618,6 +653,12 @@ module Aws::CodeArtifact
|
|
618
653
|
# repository_name: "RepositoryName", # required
|
619
654
|
# },
|
620
655
|
# ],
|
656
|
+
# tags: [
|
657
|
+
# {
|
658
|
+
# key: "TagKey", # required
|
659
|
+
# value: "TagValue", # required
|
660
|
+
# },
|
661
|
+
# ],
|
621
662
|
# })
|
622
663
|
#
|
623
664
|
# @example Response structure
|
@@ -632,7 +673,7 @@ module Aws::CodeArtifact
|
|
632
673
|
# resp.repository.upstreams[0].repository_name #=> String
|
633
674
|
# resp.repository.external_connections #=> Array
|
634
675
|
# resp.repository.external_connections[0].external_connection_name #=> String
|
635
|
-
# resp.repository.external_connections[0].package_format #=> String, one of "npm", "pypi", "maven"
|
676
|
+
# resp.repository.external_connections[0].package_format #=> String, one of "npm", "pypi", "maven", "nuget"
|
636
677
|
# resp.repository.external_connections[0].status #=> String, one of "Available"
|
637
678
|
#
|
638
679
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/CreateRepository AWS API Documentation
|
@@ -676,6 +717,7 @@ module Aws::CodeArtifact
|
|
676
717
|
# resp.domain.encryption_key #=> String
|
677
718
|
# resp.domain.repository_count #=> Integer
|
678
719
|
# resp.domain.asset_size_bytes #=> Integer
|
720
|
+
# resp.domain.s3_bucket_arn #=> String
|
679
721
|
#
|
680
722
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DeleteDomain AWS API Documentation
|
681
723
|
#
|
@@ -756,6 +798,8 @@ module Aws::CodeArtifact
|
|
756
798
|
#
|
757
799
|
# * `maven`
|
758
800
|
#
|
801
|
+
# * `nuget`
|
802
|
+
#
|
759
803
|
# @option params [String] :namespace
|
760
804
|
# The namespace of the package. The package component that specifies its
|
761
805
|
# namespace depends on its type. For example:
|
@@ -767,6 +811,9 @@ module Aws::CodeArtifact
|
|
767
811
|
# * A Python package does not contain a corresponding component, so
|
768
812
|
# Python packages do not have a namespace.
|
769
813
|
#
|
814
|
+
# * A NuGet package does not contain a corresponding component, so NuGet
|
815
|
+
# packages do not have a namespace.
|
816
|
+
#
|
770
817
|
# @option params [required, String] :package
|
771
818
|
# The name of the package with the versions to delete.
|
772
819
|
#
|
@@ -799,7 +846,7 @@ module Aws::CodeArtifact
|
|
799
846
|
# domain: "DomainName", # required
|
800
847
|
# domain_owner: "AccountId",
|
801
848
|
# repository: "RepositoryName", # required
|
802
|
-
# format: "npm", # required, accepts npm, pypi, maven
|
849
|
+
# format: "npm", # required, accepts npm, pypi, maven, nuget
|
803
850
|
# namespace: "PackageNamespace",
|
804
851
|
# package: "PackageName", # required
|
805
852
|
# versions: ["PackageVersion"], # required
|
@@ -860,7 +907,7 @@ module Aws::CodeArtifact
|
|
860
907
|
# resp.repository.upstreams[0].repository_name #=> String
|
861
908
|
# resp.repository.external_connections #=> Array
|
862
909
|
# resp.repository.external_connections[0].external_connection_name #=> String
|
863
|
-
# resp.repository.external_connections[0].package_format #=> String, one of "npm", "pypi", "maven"
|
910
|
+
# resp.repository.external_connections[0].package_format #=> String, one of "npm", "pypi", "maven", "nuget"
|
864
911
|
# resp.repository.external_connections[0].status #=> String, one of "Available"
|
865
912
|
#
|
866
913
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DeleteRepository AWS API Documentation
|
@@ -962,6 +1009,7 @@ module Aws::CodeArtifact
|
|
962
1009
|
# resp.domain.encryption_key #=> String
|
963
1010
|
# resp.domain.repository_count #=> Integer
|
964
1011
|
# resp.domain.asset_size_bytes #=> Integer
|
1012
|
+
# resp.domain.s3_bucket_arn #=> String
|
965
1013
|
#
|
966
1014
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DescribeDomain AWS API Documentation
|
967
1015
|
#
|
@@ -1000,6 +1048,8 @@ module Aws::CodeArtifact
|
|
1000
1048
|
#
|
1001
1049
|
# * `maven`
|
1002
1050
|
#
|
1051
|
+
# * `nuget`
|
1052
|
+
#
|
1003
1053
|
# @option params [String] :namespace
|
1004
1054
|
# The namespace of the package. The package component that specifies its
|
1005
1055
|
# namespace depends on its type. For example:
|
@@ -1011,6 +1061,9 @@ module Aws::CodeArtifact
|
|
1011
1061
|
# * A Python package does not contain a corresponding component, so
|
1012
1062
|
# Python packages do not have a namespace.
|
1013
1063
|
#
|
1064
|
+
# * A NuGet package does not contain a corresponding component, so NuGet
|
1065
|
+
# packages do not have a namespace.
|
1066
|
+
#
|
1014
1067
|
# @option params [required, String] :package
|
1015
1068
|
# The name of the requested package version.
|
1016
1069
|
#
|
@@ -1027,7 +1080,7 @@ module Aws::CodeArtifact
|
|
1027
1080
|
# domain: "DomainName", # required
|
1028
1081
|
# domain_owner: "AccountId",
|
1029
1082
|
# repository: "RepositoryName", # required
|
1030
|
-
# format: "npm", # required, accepts npm, pypi, maven
|
1083
|
+
# format: "npm", # required, accepts npm, pypi, maven, nuget
|
1031
1084
|
# namespace: "PackageNamespace",
|
1032
1085
|
# package: "PackageName", # required
|
1033
1086
|
# package_version: "PackageVersion", # required
|
@@ -1035,7 +1088,7 @@ module Aws::CodeArtifact
|
|
1035
1088
|
#
|
1036
1089
|
# @example Response structure
|
1037
1090
|
#
|
1038
|
-
# resp.package_version.format #=> String, one of "npm", "pypi", "maven"
|
1091
|
+
# resp.package_version.format #=> String, one of "npm", "pypi", "maven", "nuget"
|
1039
1092
|
# resp.package_version.namespace #=> String
|
1040
1093
|
# resp.package_version.package_name #=> String
|
1041
1094
|
# resp.package_version.display_name #=> String
|
@@ -1096,7 +1149,7 @@ module Aws::CodeArtifact
|
|
1096
1149
|
# resp.repository.upstreams[0].repository_name #=> String
|
1097
1150
|
# resp.repository.external_connections #=> Array
|
1098
1151
|
# resp.repository.external_connections[0].external_connection_name #=> String
|
1099
|
-
# resp.repository.external_connections[0].package_format #=> String, one of "npm", "pypi", "maven"
|
1152
|
+
# resp.repository.external_connections[0].package_format #=> String, one of "npm", "pypi", "maven", "nuget"
|
1100
1153
|
# resp.repository.external_connections[0].status #=> String, one of "Available"
|
1101
1154
|
#
|
1102
1155
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DescribeRepository AWS API Documentation
|
@@ -1150,7 +1203,7 @@ module Aws::CodeArtifact
|
|
1150
1203
|
# resp.repository.upstreams[0].repository_name #=> String
|
1151
1204
|
# resp.repository.external_connections #=> Array
|
1152
1205
|
# resp.repository.external_connections[0].external_connection_name #=> String
|
1153
|
-
# resp.repository.external_connections[0].package_format #=> String, one of "npm", "pypi", "maven"
|
1206
|
+
# resp.repository.external_connections[0].package_format #=> String, one of "npm", "pypi", "maven", "nuget"
|
1154
1207
|
# resp.repository.external_connections[0].status #=> String, one of "Available"
|
1155
1208
|
#
|
1156
1209
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DisassociateExternalConnection AWS API Documentation
|
@@ -1166,11 +1219,18 @@ module Aws::CodeArtifact
|
|
1166
1219
|
# status to `Disposed`. A disposed package version cannot be restored in
|
1167
1220
|
# your repository because its assets are deleted.
|
1168
1221
|
#
|
1169
|
-
# To view all disposed package versions in a repository, use
|
1170
|
-
#
|
1222
|
+
# To view all disposed package versions in a repository, use [
|
1223
|
+
# `ListPackageVersions` ][1] and set the [ `status` ][2] parameter to
|
1224
|
+
# `Disposed`.
|
1171
1225
|
#
|
1172
|
-
# To view information about a disposed package version, use
|
1173
|
-
#
|
1226
|
+
# To view information about a disposed package version, use [
|
1227
|
+
# `DescribePackageVersion` ][3]..
|
1228
|
+
#
|
1229
|
+
#
|
1230
|
+
#
|
1231
|
+
# [1]: https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListPackageVersions.html
|
1232
|
+
# [2]: https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListPackageVersions.html#API_ListPackageVersions_RequestSyntax
|
1233
|
+
# [3]: https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_DescribePackageVersion.html
|
1174
1234
|
#
|
1175
1235
|
# @option params [required, String] :domain
|
1176
1236
|
# The name of the domain that contains the repository you want to
|
@@ -1194,6 +1254,8 @@ module Aws::CodeArtifact
|
|
1194
1254
|
#
|
1195
1255
|
# * `maven`
|
1196
1256
|
#
|
1257
|
+
# * `nuget`
|
1258
|
+
#
|
1197
1259
|
# @option params [String] :namespace
|
1198
1260
|
# The namespace of the package. The package component that specifies its
|
1199
1261
|
# namespace depends on its type. For example:
|
@@ -1205,6 +1267,9 @@ module Aws::CodeArtifact
|
|
1205
1267
|
# * A Python package does not contain a corresponding component, so
|
1206
1268
|
# Python packages do not have a namespace.
|
1207
1269
|
#
|
1270
|
+
# * A NuGet package does not contain a corresponding component, so NuGet
|
1271
|
+
# packages do not have a namespace.
|
1272
|
+
#
|
1208
1273
|
# @option params [required, String] :package
|
1209
1274
|
# The name of the package with the versions you want to dispose.
|
1210
1275
|
#
|
@@ -1239,7 +1304,7 @@ module Aws::CodeArtifact
|
|
1239
1304
|
# domain: "DomainName", # required
|
1240
1305
|
# domain_owner: "AccountId",
|
1241
1306
|
# repository: "RepositoryName", # required
|
1242
|
-
# format: "npm", # required, accepts npm, pypi, maven
|
1307
|
+
# format: "npm", # required, accepts npm, pypi, maven, nuget
|
1243
1308
|
# namespace: "PackageNamespace",
|
1244
1309
|
# package: "PackageName", # required
|
1245
1310
|
# versions: ["PackageVersion"], # required
|
@@ -1267,10 +1332,11 @@ module Aws::CodeArtifact
|
|
1267
1332
|
req.send_request(options)
|
1268
1333
|
end
|
1269
1334
|
|
1270
|
-
# Generates a temporary
|
1335
|
+
# Generates a temporary authorization token for accessing repositories
|
1271
1336
|
# in the domain. This API requires the
|
1272
1337
|
# `codeartifact:GetAuthorizationToken` and `sts:GetServiceBearerToken`
|
1273
|
-
# permissions.
|
1338
|
+
# permissions. For more information about authorization tokens, see [AWS
|
1339
|
+
# CodeArtifact authentication and tokens][1].
|
1274
1340
|
#
|
1275
1341
|
# <note markdown="1"> CodeArtifact authorization tokens are valid for a period of 12 hours
|
1276
1342
|
# when created with the `login` command. You can call `login`
|
@@ -1288,14 +1354,15 @@ module Aws::CodeArtifact
|
|
1288
1354
|
# token, the token will be valid for the full authorization period even
|
1289
1355
|
# though this is longer than the 15-minute session duration.
|
1290
1356
|
#
|
1291
|
-
# See [Using IAM Roles][
|
1357
|
+
# See [Using IAM Roles][2] for more information on controlling session
|
1292
1358
|
# duration.
|
1293
1359
|
#
|
1294
1360
|
# </note>
|
1295
1361
|
#
|
1296
1362
|
#
|
1297
1363
|
#
|
1298
|
-
# [1]: https://docs.aws.amazon.com/
|
1364
|
+
# [1]: https://docs.aws.amazon.com/codeartifact/latest/ug/tokens-authentication.html
|
1365
|
+
# [2]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use.html
|
1299
1366
|
#
|
1300
1367
|
# @option params [required, String] :domain
|
1301
1368
|
# The name of the domain that is in scope for the generated
|
@@ -1307,6 +1374,10 @@ module Aws::CodeArtifact
|
|
1307
1374
|
#
|
1308
1375
|
# @option params [Integer] :duration_seconds
|
1309
1376
|
# The time, in seconds, that the generated authorization token is valid.
|
1377
|
+
# Valid values are `0` and any number between `900` (15 minutes) and
|
1378
|
+
# `43200` (12 hours). A value of `0` will set the expiration of the
|
1379
|
+
# authorization token to the same expiration of the user's role's
|
1380
|
+
# temporary credentials.
|
1310
1381
|
#
|
1311
1382
|
# @return [Types::GetAuthorizationTokenResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1312
1383
|
#
|
@@ -1406,6 +1477,8 @@ module Aws::CodeArtifact
|
|
1406
1477
|
#
|
1407
1478
|
# * `maven`
|
1408
1479
|
#
|
1480
|
+
# * `nuget`
|
1481
|
+
#
|
1409
1482
|
# @option params [String] :namespace
|
1410
1483
|
# The namespace of the package. The package component that specifies its
|
1411
1484
|
# namespace depends on its type. For example:
|
@@ -1417,6 +1490,9 @@ module Aws::CodeArtifact
|
|
1417
1490
|
# * A Python package does not contain a corresponding component, so
|
1418
1491
|
# Python packages do not have a namespace.
|
1419
1492
|
#
|
1493
|
+
# * A NuGet package does not contain a corresponding component, so NuGet
|
1494
|
+
# packages do not have a namespace.
|
1495
|
+
#
|
1420
1496
|
# @option params [required, String] :package
|
1421
1497
|
# The name of the package that contains the requested asset.
|
1422
1498
|
#
|
@@ -1443,7 +1519,7 @@ module Aws::CodeArtifact
|
|
1443
1519
|
# domain: "DomainName", # required
|
1444
1520
|
# domain_owner: "AccountId",
|
1445
1521
|
# repository: "RepositoryName", # required
|
1446
|
-
# format: "npm", # required, accepts npm, pypi, maven
|
1522
|
+
# format: "npm", # required, accepts npm, pypi, maven, nuget
|
1447
1523
|
# namespace: "PackageNamespace",
|
1448
1524
|
# package: "PackageName", # required
|
1449
1525
|
# package_version: "PackageVersion", # required
|
@@ -1497,6 +1573,8 @@ module Aws::CodeArtifact
|
|
1497
1573
|
#
|
1498
1574
|
# * `maven`
|
1499
1575
|
#
|
1576
|
+
# * `nuget`
|
1577
|
+
#
|
1500
1578
|
# @option params [String] :namespace
|
1501
1579
|
# The namespace of the package. The package component that specifies its
|
1502
1580
|
# namespace depends on its type. For example:
|
@@ -1508,6 +1586,9 @@ module Aws::CodeArtifact
|
|
1508
1586
|
# * A Python package does not contain a corresponding component, so
|
1509
1587
|
# Python packages do not have a namespace.
|
1510
1588
|
#
|
1589
|
+
# * A NuGet package does not contain a corresponding component, so NuGet
|
1590
|
+
# packages do not have a namespace.
|
1591
|
+
#
|
1511
1592
|
# @option params [required, String] :package
|
1512
1593
|
# The name of the package version that contains the requested readme
|
1513
1594
|
# file.
|
@@ -1530,7 +1611,7 @@ module Aws::CodeArtifact
|
|
1530
1611
|
# domain: "DomainName", # required
|
1531
1612
|
# domain_owner: "AccountId",
|
1532
1613
|
# repository: "RepositoryName", # required
|
1533
|
-
# format: "npm", # required, accepts npm, pypi, maven
|
1614
|
+
# format: "npm", # required, accepts npm, pypi, maven, nuget
|
1534
1615
|
# namespace: "PackageNamespace",
|
1535
1616
|
# package: "PackageName", # required
|
1536
1617
|
# package_version: "PackageVersion", # required
|
@@ -1538,7 +1619,7 @@ module Aws::CodeArtifact
|
|
1538
1619
|
#
|
1539
1620
|
# @example Response structure
|
1540
1621
|
#
|
1541
|
-
# resp.format #=> String, one of "npm", "pypi", "maven"
|
1622
|
+
# resp.format #=> String, one of "npm", "pypi", "maven", "nuget"
|
1542
1623
|
# resp.namespace #=> String
|
1543
1624
|
# resp.package #=> String
|
1544
1625
|
# resp.version #=> String
|
@@ -1563,6 +1644,8 @@ module Aws::CodeArtifact
|
|
1563
1644
|
#
|
1564
1645
|
# * `maven`
|
1565
1646
|
#
|
1647
|
+
# * `nuget`
|
1648
|
+
#
|
1566
1649
|
# @option params [required, String] :domain
|
1567
1650
|
# The name of the domain that contains the repository.
|
1568
1651
|
#
|
@@ -1583,6 +1666,8 @@ module Aws::CodeArtifact
|
|
1583
1666
|
#
|
1584
1667
|
# * `maven`
|
1585
1668
|
#
|
1669
|
+
# * `nuget`
|
1670
|
+
#
|
1586
1671
|
# @return [Types::GetRepositoryEndpointResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1587
1672
|
#
|
1588
1673
|
# * {Types::GetRepositoryEndpointResult#repository_endpoint #repository_endpoint} => String
|
@@ -1593,7 +1678,7 @@ module Aws::CodeArtifact
|
|
1593
1678
|
# domain: "DomainName", # required
|
1594
1679
|
# domain_owner: "AccountId",
|
1595
1680
|
# repository: "RepositoryName", # required
|
1596
|
-
# format: "npm", # required, accepts npm, pypi, maven
|
1681
|
+
# format: "npm", # required, accepts npm, pypi, maven, nuget
|
1597
1682
|
# })
|
1598
1683
|
#
|
1599
1684
|
# @example Response structure
|
@@ -1726,6 +1811,8 @@ module Aws::CodeArtifact
|
|
1726
1811
|
# * `maven`\: A Maven package that contains compiled code in a
|
1727
1812
|
# distributable format, such as a JAR file.
|
1728
1813
|
#
|
1814
|
+
# * `nuget`\: A NuGet package.
|
1815
|
+
#
|
1729
1816
|
# @option params [String] :namespace
|
1730
1817
|
# The namespace of the package. The package component that specifies its
|
1731
1818
|
# namespace depends on its type. For example:
|
@@ -1737,6 +1824,9 @@ module Aws::CodeArtifact
|
|
1737
1824
|
# * A Python package does not contain a corresponding component, so
|
1738
1825
|
# Python packages do not have a namespace.
|
1739
1826
|
#
|
1827
|
+
# * A NuGet package does not contain a corresponding component, so NuGet
|
1828
|
+
# packages do not have a namespace.
|
1829
|
+
#
|
1740
1830
|
# @option params [required, String] :package
|
1741
1831
|
# The name of the package that contains the returned package version
|
1742
1832
|
# assets.
|
@@ -1770,7 +1860,7 @@ module Aws::CodeArtifact
|
|
1770
1860
|
# domain: "DomainName", # required
|
1771
1861
|
# domain_owner: "AccountId",
|
1772
1862
|
# repository: "RepositoryName", # required
|
1773
|
-
# format: "npm", # required, accepts npm, pypi, maven
|
1863
|
+
# format: "npm", # required, accepts npm, pypi, maven, nuget
|
1774
1864
|
# namespace: "PackageNamespace",
|
1775
1865
|
# package: "PackageName", # required
|
1776
1866
|
# package_version: "PackageVersion", # required
|
@@ -1780,7 +1870,7 @@ module Aws::CodeArtifact
|
|
1780
1870
|
#
|
1781
1871
|
# @example Response structure
|
1782
1872
|
#
|
1783
|
-
# resp.format #=> String, one of "npm", "pypi", "maven"
|
1873
|
+
# resp.format #=> String, one of "npm", "pypi", "maven", "nuget"
|
1784
1874
|
# resp.namespace #=> String
|
1785
1875
|
# resp.package #=> String
|
1786
1876
|
# resp.version #=> String
|
@@ -1836,6 +1926,8 @@ module Aws::CodeArtifact
|
|
1836
1926
|
# * `maven`\: A Maven package that contains compiled code in a
|
1837
1927
|
# distributable format, such as a JAR file.
|
1838
1928
|
#
|
1929
|
+
# * `nuget`\: A NuGet package.
|
1930
|
+
#
|
1839
1931
|
# @option params [String] :namespace
|
1840
1932
|
# The namespace of the package. The package component that specifies its
|
1841
1933
|
# namespace depends on its type. For example:
|
@@ -1847,6 +1939,9 @@ module Aws::CodeArtifact
|
|
1847
1939
|
# * A Python package does not contain a corresponding component, so
|
1848
1940
|
# Python packages do not have a namespace.
|
1849
1941
|
#
|
1942
|
+
# * A NuGet package does not contain a corresponding component, so NuGet
|
1943
|
+
# packages do not have a namespace.
|
1944
|
+
#
|
1850
1945
|
# @option params [required, String] :package
|
1851
1946
|
# The name of the package versions' package.
|
1852
1947
|
#
|
@@ -1874,7 +1969,7 @@ module Aws::CodeArtifact
|
|
1874
1969
|
# domain: "DomainName", # required
|
1875
1970
|
# domain_owner: "AccountId",
|
1876
1971
|
# repository: "RepositoryName", # required
|
1877
|
-
# format: "npm", # required, accepts npm, pypi, maven
|
1972
|
+
# format: "npm", # required, accepts npm, pypi, maven, nuget
|
1878
1973
|
# namespace: "PackageNamespace",
|
1879
1974
|
# package: "PackageName", # required
|
1880
1975
|
# package_version: "PackageVersion", # required
|
@@ -1883,7 +1978,7 @@ module Aws::CodeArtifact
|
|
1883
1978
|
#
|
1884
1979
|
# @example Response structure
|
1885
1980
|
#
|
1886
|
-
# resp.format #=> String, one of "npm", "pypi", "maven"
|
1981
|
+
# resp.format #=> String, one of "npm", "pypi", "maven", "nuget"
|
1887
1982
|
# resp.namespace #=> String
|
1888
1983
|
# resp.package #=> String
|
1889
1984
|
# resp.version #=> String
|
@@ -1932,6 +2027,8 @@ module Aws::CodeArtifact
|
|
1932
2027
|
# * `maven`\: A Maven package that contains compiled code in a
|
1933
2028
|
# distributable format, such as a JAR file.
|
1934
2029
|
#
|
2030
|
+
# * `nuget`\: A NuGet package.
|
2031
|
+
#
|
1935
2032
|
# @option params [String] :namespace
|
1936
2033
|
# The namespace of the package. The package component that specifies its
|
1937
2034
|
# namespace depends on its type. For example:
|
@@ -1943,6 +2040,9 @@ module Aws::CodeArtifact
|
|
1943
2040
|
# * A Python package does not contain a corresponding component, so
|
1944
2041
|
# Python packages do not have a namespace.
|
1945
2042
|
#
|
2043
|
+
# * A NuGet package does not contain a corresponding component, so NuGet
|
2044
|
+
# packages do not have a namespace.
|
2045
|
+
#
|
1946
2046
|
# @option params [required, String] :package
|
1947
2047
|
# The name of the package for which you want to return a list of package
|
1948
2048
|
# versions.
|
@@ -1989,7 +2089,7 @@ module Aws::CodeArtifact
|
|
1989
2089
|
# domain: "DomainName", # required
|
1990
2090
|
# domain_owner: "AccountId",
|
1991
2091
|
# repository: "RepositoryName", # required
|
1992
|
-
# format: "npm", # required, accepts npm, pypi, maven
|
2092
|
+
# format: "npm", # required, accepts npm, pypi, maven, nuget
|
1993
2093
|
# namespace: "PackageNamespace",
|
1994
2094
|
# package: "PackageName", # required
|
1995
2095
|
# status: "Published", # accepts Published, Unfinished, Unlisted, Archived, Disposed, Deleted
|
@@ -2001,7 +2101,7 @@ module Aws::CodeArtifact
|
|
2001
2101
|
# @example Response structure
|
2002
2102
|
#
|
2003
2103
|
# resp.default_display_version #=> String
|
2004
|
-
# resp.format #=> String, one of "npm", "pypi", "maven"
|
2104
|
+
# resp.format #=> String, one of "npm", "pypi", "maven", "nuget"
|
2005
2105
|
# resp.namespace #=> String
|
2006
2106
|
# resp.package #=> String
|
2007
2107
|
# resp.versions #=> Array
|
@@ -2047,6 +2147,8 @@ module Aws::CodeArtifact
|
|
2047
2147
|
# * `maven`\: A Maven package that contains compiled code in a
|
2048
2148
|
# distributable format, such as a JAR file.
|
2049
2149
|
#
|
2150
|
+
# * `nuget`\: A NuGet package.
|
2151
|
+
#
|
2050
2152
|
# @option params [String] :namespace
|
2051
2153
|
# The namespace of the package. The package component that specifies its
|
2052
2154
|
# namespace depends on its type. For example:
|
@@ -2058,9 +2160,12 @@ module Aws::CodeArtifact
|
|
2058
2160
|
# * A Python package does not contain a corresponding component, so
|
2059
2161
|
# Python packages do not have a namespace.
|
2060
2162
|
#
|
2163
|
+
# * A NuGet package does not contain a corresponding component, so NuGet
|
2164
|
+
# packages do not have a namespace.
|
2165
|
+
#
|
2061
2166
|
# @option params [String] :package_prefix
|
2062
|
-
# A prefix used to filter returned
|
2063
|
-
#
|
2167
|
+
# A prefix used to filter returned packages. Only packages with names
|
2168
|
+
# that start with `packagePrefix` are returned.
|
2064
2169
|
#
|
2065
2170
|
# @option params [Integer] :max_results
|
2066
2171
|
# The maximum number of results to return per page.
|
@@ -2083,7 +2188,7 @@ module Aws::CodeArtifact
|
|
2083
2188
|
# domain: "DomainName", # required
|
2084
2189
|
# domain_owner: "AccountId",
|
2085
2190
|
# repository: "RepositoryName", # required
|
2086
|
-
# format: "npm", # accepts npm, pypi, maven
|
2191
|
+
# format: "npm", # accepts npm, pypi, maven, nuget
|
2087
2192
|
# namespace: "PackageNamespace",
|
2088
2193
|
# package_prefix: "PackageName",
|
2089
2194
|
# max_results: 1,
|
@@ -2093,7 +2198,7 @@ module Aws::CodeArtifact
|
|
2093
2198
|
# @example Response structure
|
2094
2199
|
#
|
2095
2200
|
# resp.packages #=> Array
|
2096
|
-
# resp.packages[0].format #=> String, one of "npm", "pypi", "maven"
|
2201
|
+
# resp.packages[0].format #=> String, one of "npm", "pypi", "maven", "nuget"
|
2097
2202
|
# resp.packages[0].namespace #=> String
|
2098
2203
|
# resp.packages[0].package #=> String
|
2099
2204
|
# resp.next_token #=> String
|
@@ -2232,9 +2337,45 @@ module Aws::CodeArtifact
|
|
2232
2337
|
req.send_request(options)
|
2233
2338
|
end
|
2234
2339
|
|
2340
|
+
# Gets information about AWS tags for a specified Amazon Resource Name
|
2341
|
+
# (ARN) in AWS CodeArtifact.
|
2342
|
+
#
|
2343
|
+
# @option params [required, String] :resource_arn
|
2344
|
+
# The Amazon Resource Name (ARN) of the resource to get tags for.
|
2345
|
+
#
|
2346
|
+
# @return [Types::ListTagsForResourceResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2347
|
+
#
|
2348
|
+
# * {Types::ListTagsForResourceResult#tags #tags} => Array<Types::Tag>
|
2349
|
+
#
|
2350
|
+
# @example Request syntax with placeholder values
|
2351
|
+
#
|
2352
|
+
# resp = client.list_tags_for_resource({
|
2353
|
+
# resource_arn: "Arn", # required
|
2354
|
+
# })
|
2355
|
+
#
|
2356
|
+
# @example Response structure
|
2357
|
+
#
|
2358
|
+
# resp.tags #=> Array
|
2359
|
+
# resp.tags[0].key #=> String
|
2360
|
+
# resp.tags[0].value #=> String
|
2361
|
+
#
|
2362
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/ListTagsForResource AWS API Documentation
|
2363
|
+
#
|
2364
|
+
# @overload list_tags_for_resource(params = {})
|
2365
|
+
# @param [Hash] params ({})
|
2366
|
+
def list_tags_for_resource(params = {}, options = {})
|
2367
|
+
req = build_request(:list_tags_for_resource, params)
|
2368
|
+
req.send_request(options)
|
2369
|
+
end
|
2370
|
+
|
2235
2371
|
# Sets a resource policy on a domain that specifies permissions to
|
2236
2372
|
# access it.
|
2237
2373
|
#
|
2374
|
+
# When you call `PutDomainPermissionsPolicy`, the resource policy on the
|
2375
|
+
# domain is ignored when evaluting permissions. This ensures that the
|
2376
|
+
# owner of a domain cannot lock themselves out of the domain, which
|
2377
|
+
# would prevent them from being able to update the resource policy.
|
2378
|
+
#
|
2238
2379
|
# @option params [required, String] :domain
|
2239
2380
|
# The name of the domain on which to set the resource policy.
|
2240
2381
|
#
|
@@ -2282,6 +2423,12 @@ module Aws::CodeArtifact
|
|
2282
2423
|
# Sets the resource policy on a repository that specifies permissions to
|
2283
2424
|
# access it.
|
2284
2425
|
#
|
2426
|
+
# When you call `PutRepositoryPermissionsPolicy`, the resource policy on
|
2427
|
+
# the repository is ignored when evaluting permissions. This ensures
|
2428
|
+
# that the owner of a repository cannot lock themselves out of the
|
2429
|
+
# repository, which would prevent them from being able to update the
|
2430
|
+
# resource policy.
|
2431
|
+
#
|
2285
2432
|
# @option params [required, String] :domain
|
2286
2433
|
# The name of the domain containing the repository to set the resource
|
2287
2434
|
# policy on.
|
@@ -2332,6 +2479,65 @@ module Aws::CodeArtifact
|
|
2332
2479
|
req.send_request(options)
|
2333
2480
|
end
|
2334
2481
|
|
2482
|
+
# Adds or updates tags for a resource in AWS CodeArtifact.
|
2483
|
+
#
|
2484
|
+
# @option params [required, String] :resource_arn
|
2485
|
+
# The Amazon Resource Name (ARN) of the resource that you want to add or
|
2486
|
+
# update tags for.
|
2487
|
+
#
|
2488
|
+
# @option params [required, Array<Types::Tag>] :tags
|
2489
|
+
# The tags you want to modify or add to the resource.
|
2490
|
+
#
|
2491
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
2492
|
+
#
|
2493
|
+
# @example Request syntax with placeholder values
|
2494
|
+
#
|
2495
|
+
# resp = client.tag_resource({
|
2496
|
+
# resource_arn: "Arn", # required
|
2497
|
+
# tags: [ # required
|
2498
|
+
# {
|
2499
|
+
# key: "TagKey", # required
|
2500
|
+
# value: "TagValue", # required
|
2501
|
+
# },
|
2502
|
+
# ],
|
2503
|
+
# })
|
2504
|
+
#
|
2505
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/TagResource AWS API Documentation
|
2506
|
+
#
|
2507
|
+
# @overload tag_resource(params = {})
|
2508
|
+
# @param [Hash] params ({})
|
2509
|
+
def tag_resource(params = {}, options = {})
|
2510
|
+
req = build_request(:tag_resource, params)
|
2511
|
+
req.send_request(options)
|
2512
|
+
end
|
2513
|
+
|
2514
|
+
# Removes tags from a resource in AWS CodeArtifact.
|
2515
|
+
#
|
2516
|
+
# @option params [required, String] :resource_arn
|
2517
|
+
# The Amazon Resource Name (ARN) of the resource that you want to remove
|
2518
|
+
# tags from.
|
2519
|
+
#
|
2520
|
+
# @option params [required, Array<String>] :tag_keys
|
2521
|
+
# The tag key for each tag that you want to remove from the resource.
|
2522
|
+
#
|
2523
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
2524
|
+
#
|
2525
|
+
# @example Request syntax with placeholder values
|
2526
|
+
#
|
2527
|
+
# resp = client.untag_resource({
|
2528
|
+
# resource_arn: "Arn", # required
|
2529
|
+
# tag_keys: ["TagKey"], # required
|
2530
|
+
# })
|
2531
|
+
#
|
2532
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/UntagResource AWS API Documentation
|
2533
|
+
#
|
2534
|
+
# @overload untag_resource(params = {})
|
2535
|
+
# @param [Hash] params ({})
|
2536
|
+
def untag_resource(params = {}, options = {})
|
2537
|
+
req = build_request(:untag_resource, params)
|
2538
|
+
req.send_request(options)
|
2539
|
+
end
|
2540
|
+
|
2335
2541
|
# Updates the status of one or more versions of a package.
|
2336
2542
|
#
|
2337
2543
|
# @option params [required, String] :domain
|
@@ -2356,6 +2562,8 @@ module Aws::CodeArtifact
|
|
2356
2562
|
#
|
2357
2563
|
# * `maven`
|
2358
2564
|
#
|
2565
|
+
# * `nuget`
|
2566
|
+
#
|
2359
2567
|
# @option params [String] :namespace
|
2360
2568
|
# The namespace of the package. The package component that specifies its
|
2361
2569
|
# namespace depends on its type. For example:
|
@@ -2367,6 +2575,9 @@ module Aws::CodeArtifact
|
|
2367
2575
|
# * A Python package does not contain a corresponding component, so
|
2368
2576
|
# Python packages do not have a namespace.
|
2369
2577
|
#
|
2578
|
+
# * A NuGet package does not contain a corresponding component, so NuGet
|
2579
|
+
# packages do not have a namespace.
|
2580
|
+
#
|
2370
2581
|
# @option params [required, String] :package
|
2371
2582
|
# The name of the package with the version statuses to update.
|
2372
2583
|
#
|
@@ -2399,7 +2610,7 @@ module Aws::CodeArtifact
|
|
2399
2610
|
# domain: "DomainName", # required
|
2400
2611
|
# domain_owner: "AccountId",
|
2401
2612
|
# repository: "RepositoryName", # required
|
2402
|
-
# format: "npm", # required, accepts npm, pypi, maven
|
2613
|
+
# format: "npm", # required, accepts npm, pypi, maven, nuget
|
2403
2614
|
# namespace: "PackageNamespace",
|
2404
2615
|
# package: "PackageName", # required
|
2405
2616
|
# versions: ["PackageVersion"], # required
|
@@ -2484,7 +2695,7 @@ module Aws::CodeArtifact
|
|
2484
2695
|
# resp.repository.upstreams[0].repository_name #=> String
|
2485
2696
|
# resp.repository.external_connections #=> Array
|
2486
2697
|
# resp.repository.external_connections[0].external_connection_name #=> String
|
2487
|
-
# resp.repository.external_connections[0].package_format #=> String, one of "npm", "pypi", "maven"
|
2698
|
+
# resp.repository.external_connections[0].package_format #=> String, one of "npm", "pypi", "maven", "nuget"
|
2488
2699
|
# resp.repository.external_connections[0].status #=> String, one of "Available"
|
2489
2700
|
#
|
2490
2701
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/UpdateRepository AWS API Documentation
|
@@ -2509,7 +2720,7 @@ module Aws::CodeArtifact
|
|
2509
2720
|
params: params,
|
2510
2721
|
config: config)
|
2511
2722
|
context[:gem_name] = 'aws-sdk-codeartifact'
|
2512
|
-
context[:gem_version] = '1.
|
2723
|
+
context[:gem_version] = '1.6.0'
|
2513
2724
|
Seahorse::Client::Request.new(handlers, context)
|
2514
2725
|
end
|
2515
2726
|
|