aws-sdk-ecr 1.9.0 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/aws-sdk-ecr.rb +1 -1
- data/lib/aws-sdk-ecr/client.rb +114 -10
- data/lib/aws-sdk-ecr/client_api.rb +82 -1
- data/lib/aws-sdk-ecr/types.rb +154 -13
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d1415f2954b5e973e6a1c5b3fa1aaac04bf6944a
|
4
|
+
data.tar.gz: 402c8d7920915bf144197819e309e732242534ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 880e988e9ed72e4724c8370cab0709115b212bf4116903063c8503fbce4b9ca13fd25654919ee76bf6014e9de70651c5201f84f2a55cee96c163f19455190a73
|
7
|
+
data.tar.gz: 46611c2139c753646e0c9492ad5fa5767f6d62f30f78ae9902eec32f85901a4c8807f02513f24188f64fd322a4ca90cff19382d2860e442bfd617851d5858521
|
data/lib/aws-sdk-ecr.rb
CHANGED
data/lib/aws-sdk-ecr/client.rb
CHANGED
@@ -522,6 +522,8 @@ module Aws::ECR
|
|
522
522
|
# with a namespace to group the repository into a category (such as
|
523
523
|
# `project-a/nginx-web-app`).
|
524
524
|
#
|
525
|
+
# @option params [Array<Types::Tag>] :tags
|
526
|
+
#
|
525
527
|
# @return [Types::CreateRepositoryResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
526
528
|
#
|
527
529
|
# * {Types::CreateRepositoryResponse#repository #repository} => Types::Repository
|
@@ -549,6 +551,12 @@ module Aws::ECR
|
|
549
551
|
#
|
550
552
|
# resp = client.create_repository({
|
551
553
|
# repository_name: "RepositoryName", # required
|
554
|
+
# tags: [
|
555
|
+
# {
|
556
|
+
# key: "TagKey",
|
557
|
+
# value: "TagValue",
|
558
|
+
# },
|
559
|
+
# ],
|
552
560
|
# })
|
553
561
|
#
|
554
562
|
# @example Response structure
|
@@ -743,8 +751,7 @@ module Aws::ECR
|
|
743
751
|
# registry, the default registry is assumed.
|
744
752
|
#
|
745
753
|
# @option params [required, String] :repository_name
|
746
|
-
# A list of repositories to describe.
|
747
|
-
# all repositories in a registry are described.
|
754
|
+
# A list of repositories to describe.
|
748
755
|
#
|
749
756
|
# @option params [Array<Types::ImageIdentifier>] :image_ids
|
750
757
|
# The list of image IDs for the requested repository.
|
@@ -763,7 +770,7 @@ module Aws::ECR
|
|
763
770
|
# only returns `maxResults` results in a single page along with a
|
764
771
|
# `nextToken` response element. The remaining results of the initial
|
765
772
|
# request can be seen by sending another `DescribeImages` request with
|
766
|
-
# the returned `nextToken` value. This value can be between 1 and
|
773
|
+
# the returned `nextToken` value. This value can be between 1 and 1000.
|
767
774
|
# If this parameter is not used, then `DescribeImages` returns up to 100
|
768
775
|
# results and a `nextToken` value, if applicable. This option cannot be
|
769
776
|
# used when you specify images with `imageIds`.
|
@@ -791,7 +798,7 @@ module Aws::ECR
|
|
791
798
|
# next_token: "NextToken",
|
792
799
|
# max_results: 1,
|
793
800
|
# filter: {
|
794
|
-
# tag_status: "TAGGED", # accepts TAGGED, UNTAGGED
|
801
|
+
# tag_status: "TAGGED", # accepts TAGGED, UNTAGGED, ANY
|
795
802
|
# },
|
796
803
|
# })
|
797
804
|
#
|
@@ -849,7 +856,7 @@ module Aws::ECR
|
|
849
856
|
# single page along with a `nextToken` response element. The remaining
|
850
857
|
# results of the initial request can be seen by sending another
|
851
858
|
# `DescribeRepositories` request with the returned `nextToken` value.
|
852
|
-
# This value can be between 1 and
|
859
|
+
# This value can be between 1 and 1000. If this parameter is not used,
|
853
860
|
# then `DescribeRepositories` returns up to 100 results and a
|
854
861
|
# `nextToken` value, if applicable. This option cannot be used when you
|
855
862
|
# specify repositories with `repositoryNames`.
|
@@ -1092,7 +1099,7 @@ module Aws::ECR
|
|
1092
1099
|
# response element. The remaining results of the initial request can be
|
1093
1100
|
# seen by sending
another `GetLifecyclePolicyPreviewRequest` request
|
1094
1101
|
# with the returned `nextToken`
value. This value can be between 1 and
|
1095
|
-
#
|
1102
|
+
# 1000. If this
parameter is not used, then
|
1096
1103
|
# `GetLifecyclePolicyPreviewRequest` returns up to
100 results and a
|
1097
1104
|
# `nextToken` value, if
applicable. This option cannot be used when you
|
1098
1105
|
# specify images with `imageIds`.
|
@@ -1125,7 +1132,7 @@ module Aws::ECR
|
|
1125
1132
|
# next_token: "NextToken",
|
1126
1133
|
# max_results: 1,
|
1127
1134
|
# filter: {
|
1128
|
-
# tag_status: "TAGGED", # accepts TAGGED, UNTAGGED
|
1135
|
+
# tag_status: "TAGGED", # accepts TAGGED, UNTAGGED, ANY
|
1129
1136
|
# },
|
1130
1137
|
# })
|
1131
1138
|
#
|
@@ -1286,7 +1293,7 @@ module Aws::ECR
|
|
1286
1293
|
# returns `maxResults` results in a single page along with a `nextToken`
|
1287
1294
|
# response element. The remaining results of the initial request can be
|
1288
1295
|
# seen by sending another `ListImages` request with the returned
|
1289
|
-
# `nextToken` value. This value can be between 1 and
|
1296
|
+
# `nextToken` value. This value can be between 1 and 1000. If this
|
1290
1297
|
# parameter is not used, then `ListImages` returns up to 100 results and
|
1291
1298
|
# a `nextToken` value, if applicable.
|
1292
1299
|
#
|
@@ -1326,7 +1333,7 @@ module Aws::ECR
|
|
1326
1333
|
# next_token: "NextToken",
|
1327
1334
|
# max_results: 1,
|
1328
1335
|
# filter: {
|
1329
|
-
# tag_status: "TAGGED", # accepts TAGGED, UNTAGGED
|
1336
|
+
# tag_status: "TAGGED", # accepts TAGGED, UNTAGGED, ANY
|
1330
1337
|
# },
|
1331
1338
|
# })
|
1332
1339
|
#
|
@@ -1346,6 +1353,38 @@ module Aws::ECR
|
|
1346
1353
|
req.send_request(options)
|
1347
1354
|
end
|
1348
1355
|
|
1356
|
+
# List the tags for an Amazon ECR resource.
|
1357
|
+
#
|
1358
|
+
# @option params [required, String] :resource_arn
|
1359
|
+
# The Amazon Resource Name (ARN) that identifies the resource for which
|
1360
|
+
# to list the tags. Currently, the only supported resource is an Amazon
|
1361
|
+
# ECR repository.
|
1362
|
+
#
|
1363
|
+
# @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1364
|
+
#
|
1365
|
+
# * {Types::ListTagsForResourceResponse#tags #tags} => Array<Types::Tag>
|
1366
|
+
#
|
1367
|
+
# @example Request syntax with placeholder values
|
1368
|
+
#
|
1369
|
+
# resp = client.list_tags_for_resource({
|
1370
|
+
# resource_arn: "Arn", # required
|
1371
|
+
# })
|
1372
|
+
#
|
1373
|
+
# @example Response structure
|
1374
|
+
#
|
1375
|
+
# resp.tags #=> Array
|
1376
|
+
# resp.tags[0].key #=> String
|
1377
|
+
# resp.tags[0].value #=> String
|
1378
|
+
#
|
1379
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/ListTagsForResource AWS API Documentation
|
1380
|
+
#
|
1381
|
+
# @overload list_tags_for_resource(params = {})
|
1382
|
+
# @param [Hash] params ({})
|
1383
|
+
def list_tags_for_resource(params = {}, options = {})
|
1384
|
+
req = build_request(:list_tags_for_resource, params)
|
1385
|
+
req.send_request(options)
|
1386
|
+
end
|
1387
|
+
|
1349
1388
|
# Creates or updates the image manifest and tags associated with an
|
1350
1389
|
# image.
|
1351
1390
|
#
|
@@ -1543,6 +1582,71 @@ module Aws::ECR
|
|
1543
1582
|
req.send_request(options)
|
1544
1583
|
end
|
1545
1584
|
|
1585
|
+
# Adds specified tags to a resource with the specified ARN. Existing
|
1586
|
+
# tags on a resource are not changed if they are not specified in the
|
1587
|
+
# request parameters.
|
1588
|
+
#
|
1589
|
+
# @option params [required, String] :resource_arn
|
1590
|
+
# The Amazon Resource Name (ARN) of the the resource to which to add
|
1591
|
+
# tags. Currently, the only supported resource is an Amazon ECR
|
1592
|
+
# repository.
|
1593
|
+
#
|
1594
|
+
# @option params [required, Array<Types::Tag>] :tags
|
1595
|
+
# The tags to add to the resource. A tag is an array of key-value pairs.
|
1596
|
+
# Tag keys can have a maximum character length of 128 characters, and
|
1597
|
+
# tag values can have a maximum length of 256 characters.
|
1598
|
+
#
|
1599
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1600
|
+
#
|
1601
|
+
# @example Request syntax with placeholder values
|
1602
|
+
#
|
1603
|
+
# resp = client.tag_resource({
|
1604
|
+
# resource_arn: "Arn", # required
|
1605
|
+
# tags: [ # required
|
1606
|
+
# {
|
1607
|
+
# key: "TagKey",
|
1608
|
+
# value: "TagValue",
|
1609
|
+
# },
|
1610
|
+
# ],
|
1611
|
+
# })
|
1612
|
+
#
|
1613
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/TagResource AWS API Documentation
|
1614
|
+
#
|
1615
|
+
# @overload tag_resource(params = {})
|
1616
|
+
# @param [Hash] params ({})
|
1617
|
+
def tag_resource(params = {}, options = {})
|
1618
|
+
req = build_request(:tag_resource, params)
|
1619
|
+
req.send_request(options)
|
1620
|
+
end
|
1621
|
+
|
1622
|
+
# Deletes specified tags from a resource.
|
1623
|
+
#
|
1624
|
+
# @option params [required, String] :resource_arn
|
1625
|
+
# The Amazon Resource Name (ARN) of the resource from which to remove
|
1626
|
+
# tags. Currently, the only supported resource is an Amazon ECR
|
1627
|
+
# repository.
|
1628
|
+
#
|
1629
|
+
# @option params [required, Array<String>] :tag_keys
|
1630
|
+
# The keys of the tags to be removed.
|
1631
|
+
#
|
1632
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1633
|
+
#
|
1634
|
+
# @example Request syntax with placeholder values
|
1635
|
+
#
|
1636
|
+
# resp = client.untag_resource({
|
1637
|
+
# resource_arn: "Arn", # required
|
1638
|
+
# tag_keys: ["TagKey"], # required
|
1639
|
+
# })
|
1640
|
+
#
|
1641
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/UntagResource AWS API Documentation
|
1642
|
+
#
|
1643
|
+
# @overload untag_resource(params = {})
|
1644
|
+
# @param [Hash] params ({})
|
1645
|
+
def untag_resource(params = {}, options = {})
|
1646
|
+
req = build_request(:untag_resource, params)
|
1647
|
+
req.send_request(options)
|
1648
|
+
end
|
1649
|
+
|
1546
1650
|
# Uploads an image layer part to Amazon ECR.
|
1547
1651
|
#
|
1548
1652
|
# <note markdown="1"> This operation is used by the Amazon ECR proxy, and it is not intended
|
@@ -1619,7 +1723,7 @@ module Aws::ECR
|
|
1619
1723
|
params: params,
|
1620
1724
|
config: config)
|
1621
1725
|
context[:gem_name] = 'aws-sdk-ecr'
|
1622
|
-
context[:gem_version] = '1.
|
1726
|
+
context[:gem_version] = '1.10.0'
|
1623
1727
|
Seahorse::Client::Request.new(handlers, context)
|
1624
1728
|
end
|
1625
1729
|
|
@@ -79,6 +79,7 @@ module Aws::ECR
|
|
79
79
|
InvalidLayerException = Shapes::StructureShape.new(name: 'InvalidLayerException')
|
80
80
|
InvalidLayerPartException = Shapes::StructureShape.new(name: 'InvalidLayerPartException')
|
81
81
|
InvalidParameterException = Shapes::StructureShape.new(name: 'InvalidParameterException')
|
82
|
+
InvalidTagParameterException = Shapes::StructureShape.new(name: 'InvalidTagParameterException')
|
82
83
|
Layer = Shapes::StructureShape.new(name: 'Layer')
|
83
84
|
LayerAlreadyExistsException = Shapes::StructureShape.new(name: 'LayerAlreadyExistsException')
|
84
85
|
LayerAvailability = Shapes::StringShape.new(name: 'LayerAvailability')
|
@@ -105,10 +106,13 @@ module Aws::ECR
|
|
105
106
|
LifecyclePolicyRuleAction = Shapes::StructureShape.new(name: 'LifecyclePolicyRuleAction')
|
106
107
|
LifecyclePolicyRulePriority = Shapes::IntegerShape.new(name: 'LifecyclePolicyRulePriority')
|
107
108
|
LifecyclePolicyText = Shapes::StringShape.new(name: 'LifecyclePolicyText')
|
109
|
+
LifecyclePreviewMaxResults = Shapes::IntegerShape.new(name: 'LifecyclePreviewMaxResults')
|
108
110
|
LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
|
109
111
|
ListImagesFilter = Shapes::StructureShape.new(name: 'ListImagesFilter')
|
110
112
|
ListImagesRequest = Shapes::StructureShape.new(name: 'ListImagesRequest')
|
111
113
|
ListImagesResponse = Shapes::StructureShape.new(name: 'ListImagesResponse')
|
114
|
+
ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
|
115
|
+
ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
|
112
116
|
MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
|
113
117
|
MediaType = Shapes::StringShape.new(name: 'MediaType')
|
114
118
|
MediaTypeList = Shapes::ListShape.new(name: 'MediaTypeList')
|
@@ -135,7 +139,17 @@ module Aws::ECR
|
|
135
139
|
SetRepositoryPolicyResponse = Shapes::StructureShape.new(name: 'SetRepositoryPolicyResponse')
|
136
140
|
StartLifecyclePolicyPreviewRequest = Shapes::StructureShape.new(name: 'StartLifecyclePolicyPreviewRequest')
|
137
141
|
StartLifecyclePolicyPreviewResponse = Shapes::StructureShape.new(name: 'StartLifecyclePolicyPreviewResponse')
|
142
|
+
Tag = Shapes::StructureShape.new(name: 'Tag')
|
143
|
+
TagKey = Shapes::StringShape.new(name: 'TagKey')
|
144
|
+
TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
|
145
|
+
TagList = Shapes::ListShape.new(name: 'TagList')
|
146
|
+
TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
|
147
|
+
TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
|
138
148
|
TagStatus = Shapes::StringShape.new(name: 'TagStatus')
|
149
|
+
TagValue = Shapes::StringShape.new(name: 'TagValue')
|
150
|
+
TooManyTagsException = Shapes::StructureShape.new(name: 'TooManyTagsException')
|
151
|
+
UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
|
152
|
+
UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
|
139
153
|
UploadId = Shapes::StringShape.new(name: 'UploadId')
|
140
154
|
UploadLayerPartRequest = Shapes::StructureShape.new(name: 'UploadLayerPartRequest')
|
141
155
|
UploadLayerPartResponse = Shapes::StructureShape.new(name: 'UploadLayerPartResponse')
|
@@ -192,6 +206,7 @@ module Aws::ECR
|
|
192
206
|
CompleteLayerUploadResponse.struct_class = Types::CompleteLayerUploadResponse
|
193
207
|
|
194
208
|
CreateRepositoryRequest.add_member(:repository_name, Shapes::ShapeRef.new(shape: RepositoryName, required: true, location_name: "repositoryName"))
|
209
|
+
CreateRepositoryRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
|
195
210
|
CreateRepositoryRequest.struct_class = Types::CreateRepositoryRequest
|
196
211
|
|
197
212
|
CreateRepositoryResponse.add_member(:repository, Shapes::ShapeRef.new(shape: Repository, location_name: "repository"))
|
@@ -270,7 +285,7 @@ module Aws::ECR
|
|
270
285
|
GetLifecyclePolicyPreviewRequest.add_member(:repository_name, Shapes::ShapeRef.new(shape: RepositoryName, required: true, location_name: "repositoryName"))
|
271
286
|
GetLifecyclePolicyPreviewRequest.add_member(:image_ids, Shapes::ShapeRef.new(shape: ImageIdentifierList, location_name: "imageIds"))
|
272
287
|
GetLifecyclePolicyPreviewRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
273
|
-
GetLifecyclePolicyPreviewRequest.add_member(:max_results, Shapes::ShapeRef.new(shape:
|
288
|
+
GetLifecyclePolicyPreviewRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: LifecyclePreviewMaxResults, location_name: "maxResults"))
|
274
289
|
GetLifecyclePolicyPreviewRequest.add_member(:filter, Shapes::ShapeRef.new(shape: LifecyclePolicyPreviewFilter, location_name: "filter"))
|
275
290
|
GetLifecyclePolicyPreviewRequest.struct_class = Types::GetLifecyclePolicyPreviewRequest
|
276
291
|
|
@@ -392,6 +407,12 @@ module Aws::ECR
|
|
392
407
|
ListImagesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
393
408
|
ListImagesResponse.struct_class = Types::ListImagesResponse
|
394
409
|
|
410
|
+
ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "resourceArn"))
|
411
|
+
ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
|
412
|
+
|
413
|
+
ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
|
414
|
+
ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
|
415
|
+
|
395
416
|
MediaTypeList.member = Shapes::ShapeRef.new(shape: MediaType)
|
396
417
|
|
397
418
|
PutImageRequest.add_member(:registry_id, Shapes::ShapeRef.new(shape: RegistryId, location_name: "registryId"))
|
@@ -446,6 +467,26 @@ module Aws::ECR
|
|
446
467
|
StartLifecyclePolicyPreviewResponse.add_member(:status, Shapes::ShapeRef.new(shape: LifecyclePolicyPreviewStatus, location_name: "status"))
|
447
468
|
StartLifecyclePolicyPreviewResponse.struct_class = Types::StartLifecyclePolicyPreviewResponse
|
448
469
|
|
470
|
+
Tag.add_member(:key, Shapes::ShapeRef.new(shape: TagKey, location_name: "Key"))
|
471
|
+
Tag.add_member(:value, Shapes::ShapeRef.new(shape: TagValue, location_name: "Value"))
|
472
|
+
Tag.struct_class = Types::Tag
|
473
|
+
|
474
|
+
TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
|
475
|
+
|
476
|
+
TagList.member = Shapes::ShapeRef.new(shape: Tag)
|
477
|
+
|
478
|
+
TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "resourceArn"))
|
479
|
+
TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, required: true, location_name: "tags"))
|
480
|
+
TagResourceRequest.struct_class = Types::TagResourceRequest
|
481
|
+
|
482
|
+
TagResourceResponse.struct_class = Types::TagResourceResponse
|
483
|
+
|
484
|
+
UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "resourceArn"))
|
485
|
+
UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location_name: "tagKeys"))
|
486
|
+
UntagResourceRequest.struct_class = Types::UntagResourceRequest
|
487
|
+
|
488
|
+
UntagResourceResponse.struct_class = Types::UntagResourceResponse
|
489
|
+
|
449
490
|
UploadLayerPartRequest.add_member(:registry_id, Shapes::ShapeRef.new(shape: RegistryId, location_name: "registryId"))
|
450
491
|
UploadLayerPartRequest.add_member(:repository_name, Shapes::ShapeRef.new(shape: RepositoryName, required: true, location_name: "repositoryName"))
|
451
492
|
UploadLayerPartRequest.add_member(:upload_id, Shapes::ShapeRef.new(shape: UploadId, required: true, location_name: "uploadId"))
|
@@ -473,6 +514,7 @@ module Aws::ECR
|
|
473
514
|
"protocol" => "json",
|
474
515
|
"serviceAbbreviation" => "Amazon ECR",
|
475
516
|
"serviceFullName" => "Amazon EC2 Container Registry",
|
517
|
+
"serviceId" => "ECR",
|
476
518
|
"signatureVersion" => "v4",
|
477
519
|
"targetPrefix" => "AmazonEC2ContainerRegistry_V20150921",
|
478
520
|
"uid" => "ecr-2015-09-21",
|
@@ -535,6 +577,8 @@ module Aws::ECR
|
|
535
577
|
o.output = Shapes::ShapeRef.new(shape: CreateRepositoryResponse)
|
536
578
|
o.errors << Shapes::ShapeRef.new(shape: ServerException)
|
537
579
|
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
580
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidTagParameterException)
|
581
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
|
538
582
|
o.errors << Shapes::ShapeRef.new(shape: RepositoryAlreadyExistsException)
|
539
583
|
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
540
584
|
end)
|
@@ -697,6 +741,17 @@ module Aws::ECR
|
|
697
741
|
)
|
698
742
|
end)
|
699
743
|
|
744
|
+
api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
|
745
|
+
o.name = "ListTagsForResource"
|
746
|
+
o.http_method = "POST"
|
747
|
+
o.http_request_uri = "/"
|
748
|
+
o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
|
749
|
+
o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
|
750
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
751
|
+
o.errors << Shapes::ShapeRef.new(shape: RepositoryNotFoundException)
|
752
|
+
o.errors << Shapes::ShapeRef.new(shape: ServerException)
|
753
|
+
end)
|
754
|
+
|
700
755
|
api.add_operation(:put_image, Seahorse::Model::Operation.new.tap do |o|
|
701
756
|
o.name = "PutImage"
|
702
757
|
o.http_method = "POST"
|
@@ -746,6 +801,32 @@ module Aws::ECR
|
|
746
801
|
o.errors << Shapes::ShapeRef.new(shape: LifecyclePolicyPreviewInProgressException)
|
747
802
|
end)
|
748
803
|
|
804
|
+
api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
|
805
|
+
o.name = "TagResource"
|
806
|
+
o.http_method = "POST"
|
807
|
+
o.http_request_uri = "/"
|
808
|
+
o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
|
809
|
+
o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
|
810
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
811
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidTagParameterException)
|
812
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
|
813
|
+
o.errors << Shapes::ShapeRef.new(shape: RepositoryNotFoundException)
|
814
|
+
o.errors << Shapes::ShapeRef.new(shape: ServerException)
|
815
|
+
end)
|
816
|
+
|
817
|
+
api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
|
818
|
+
o.name = "UntagResource"
|
819
|
+
o.http_method = "POST"
|
820
|
+
o.http_request_uri = "/"
|
821
|
+
o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
|
822
|
+
o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
|
823
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
824
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidTagParameterException)
|
825
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
|
826
|
+
o.errors << Shapes::ShapeRef.new(shape: RepositoryNotFoundException)
|
827
|
+
o.errors << Shapes::ShapeRef.new(shape: ServerException)
|
828
|
+
end)
|
829
|
+
|
749
830
|
api.add_operation(:upload_layer_part, Seahorse::Model::Operation.new.tap do |o|
|
750
831
|
o.name = "UploadLayerPart"
|
751
832
|
o.http_method = "POST"
|
data/lib/aws-sdk-ecr/types.rb
CHANGED
@@ -282,6 +282,12 @@ module Aws::ECR
|
|
282
282
|
#
|
283
283
|
# {
|
284
284
|
# repository_name: "RepositoryName", # required
|
285
|
+
# tags: [
|
286
|
+
# {
|
287
|
+
# key: "TagKey",
|
288
|
+
# value: "TagValue",
|
289
|
+
# },
|
290
|
+
# ],
|
285
291
|
# }
|
286
292
|
#
|
287
293
|
# @!attribute [rw] repository_name
|
@@ -291,10 +297,14 @@ module Aws::ECR
|
|
291
297
|
# (such as `project-a/nginx-web-app`).
|
292
298
|
# @return [String]
|
293
299
|
#
|
300
|
+
# @!attribute [rw] tags
|
301
|
+
# @return [Array<Types::Tag>]
|
302
|
+
#
|
294
303
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/CreateRepositoryRequest AWS API Documentation
|
295
304
|
#
|
296
305
|
class CreateRepositoryRequest < Struct.new(
|
297
|
-
:repository_name
|
306
|
+
:repository_name,
|
307
|
+
:tags)
|
298
308
|
include Aws::Structure
|
299
309
|
end
|
300
310
|
|
@@ -458,7 +468,7 @@ module Aws::ECR
|
|
458
468
|
# data as a hash:
|
459
469
|
#
|
460
470
|
# {
|
461
|
-
# tag_status: "TAGGED", # accepts TAGGED, UNTAGGED
|
471
|
+
# tag_status: "TAGGED", # accepts TAGGED, UNTAGGED, ANY
|
462
472
|
# }
|
463
473
|
#
|
464
474
|
# @!attribute [rw] tag_status
|
@@ -488,7 +498,7 @@ module Aws::ECR
|
|
488
498
|
# next_token: "NextToken",
|
489
499
|
# max_results: 1,
|
490
500
|
# filter: {
|
491
|
-
# tag_status: "TAGGED", # accepts TAGGED, UNTAGGED
|
501
|
+
# tag_status: "TAGGED", # accepts TAGGED, UNTAGGED, ANY
|
492
502
|
# },
|
493
503
|
# }
|
494
504
|
#
|
@@ -499,8 +509,7 @@ module Aws::ECR
|
|
499
509
|
# @return [String]
|
500
510
|
#
|
501
511
|
# @!attribute [rw] repository_name
|
502
|
-
# A list of repositories to describe.
|
503
|
-
# then all repositories in a registry are described.
|
512
|
+
# A list of repositories to describe.
|
504
513
|
# @return [String]
|
505
514
|
#
|
506
515
|
# @!attribute [rw] image_ids
|
@@ -523,7 +532,7 @@ module Aws::ECR
|
|
523
532
|
# along with a `nextToken` response element. The remaining results of
|
524
533
|
# the initial request can be seen by sending another `DescribeImages`
|
525
534
|
# request with the returned `nextToken` value. This value can be
|
526
|
-
# between 1 and
|
535
|
+
# between 1 and 1000. If this parameter is not used, then
|
527
536
|
# `DescribeImages` returns up to 100 results and a `nextToken` value,
|
528
537
|
# if applicable. This option cannot be used when you specify images
|
529
538
|
# with `imageIds`.
|
@@ -610,7 +619,7 @@ module Aws::ECR
|
|
610
619
|
# single page along with a `nextToken` response element. The remaining
|
611
620
|
# results of the initial request can be seen by sending another
|
612
621
|
# `DescribeRepositories` request with the returned `nextToken` value.
|
613
|
-
# This value can be between 1 and
|
622
|
+
# This value can be between 1 and 1000. If this parameter is not used,
|
614
623
|
# then `DescribeRepositories` returns up to 100 results and a
|
615
624
|
# `nextToken` value, if applicable. This option cannot be used when
|
616
625
|
# you specify repositories with `repositoryNames`.
|
@@ -742,7 +751,7 @@ module Aws::ECR
|
|
742
751
|
# next_token: "NextToken",
|
743
752
|
# max_results: 1,
|
744
753
|
# filter: {
|
745
|
-
# tag_status: "TAGGED", # accepts TAGGED, UNTAGGED
|
754
|
+
# tag_status: "TAGGED", # accepts TAGGED, UNTAGGED, ANY
|
746
755
|
# },
|
747
756
|
# }
|
748
757
|
#
|
@@ -778,7 +787,7 @@ module Aws::ECR
|
|
778
787
|
# response element. The remaining results of the initial request can
|
779
788
|
# be seen by sending
another `GetLifecyclePolicyPreviewRequest`
|
780
789
|
# request with the returned `nextToken`
value. This value can be
|
781
|
-
# between 1 and
|
790
|
+
# between 1 and 1000. If this
parameter is not used, then
|
782
791
|
# `GetLifecyclePolicyPreviewRequest` returns up to
100 results and a
|
783
792
|
# `nextToken` value, if
applicable. This option cannot be used when
|
784
793
|
# you specify images with `imageIds`.
|
@@ -1176,7 +1185,7 @@ module Aws::ECR
|
|
1176
1185
|
# data as a hash:
|
1177
1186
|
#
|
1178
1187
|
# {
|
1179
|
-
# tag_status: "TAGGED", # accepts TAGGED, UNTAGGED
|
1188
|
+
# tag_status: "TAGGED", # accepts TAGGED, UNTAGGED, ANY
|
1180
1189
|
# }
|
1181
1190
|
#
|
1182
1191
|
# @!attribute [rw] tag_status
|
@@ -1256,7 +1265,7 @@ module Aws::ECR
|
|
1256
1265
|
# data as a hash:
|
1257
1266
|
#
|
1258
1267
|
# {
|
1259
|
-
# tag_status: "TAGGED", # accepts TAGGED, UNTAGGED
|
1268
|
+
# tag_status: "TAGGED", # accepts TAGGED, UNTAGGED, ANY
|
1260
1269
|
# }
|
1261
1270
|
#
|
1262
1271
|
# @!attribute [rw] tag_status
|
@@ -1280,7 +1289,7 @@ module Aws::ECR
|
|
1280
1289
|
# next_token: "NextToken",
|
1281
1290
|
# max_results: 1,
|
1282
1291
|
# filter: {
|
1283
|
-
# tag_status: "TAGGED", # accepts TAGGED, UNTAGGED
|
1292
|
+
# tag_status: "TAGGED", # accepts TAGGED, UNTAGGED, ANY
|
1284
1293
|
# },
|
1285
1294
|
# }
|
1286
1295
|
#
|
@@ -1314,7 +1323,7 @@ module Aws::ECR
|
|
1314
1323
|
# returns `maxResults` results in a single page along with a
|
1315
1324
|
# `nextToken` response element. The remaining results of the initial
|
1316
1325
|
# request can be seen by sending another `ListImages` request with the
|
1317
|
-
# returned `nextToken` value. This value can be between 1 and
|
1326
|
+
# returned `nextToken` value. This value can be between 1 and 1000. If
|
1318
1327
|
# this parameter is not used, then `ListImages` returns up to 100
|
1319
1328
|
# results and a `nextToken` value, if applicable.
|
1320
1329
|
# @return [Integer]
|
@@ -1354,6 +1363,37 @@ module Aws::ECR
|
|
1354
1363
|
include Aws::Structure
|
1355
1364
|
end
|
1356
1365
|
|
1366
|
+
# @note When making an API call, you may pass ListTagsForResourceRequest
|
1367
|
+
# data as a hash:
|
1368
|
+
#
|
1369
|
+
# {
|
1370
|
+
# resource_arn: "Arn", # required
|
1371
|
+
# }
|
1372
|
+
#
|
1373
|
+
# @!attribute [rw] resource_arn
|
1374
|
+
# The Amazon Resource Name (ARN) that identifies the resource for
|
1375
|
+
# which to list the tags. Currently, the only supported resource is an
|
1376
|
+
# Amazon ECR repository.
|
1377
|
+
# @return [String]
|
1378
|
+
#
|
1379
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/ListTagsForResourceRequest AWS API Documentation
|
1380
|
+
#
|
1381
|
+
class ListTagsForResourceRequest < Struct.new(
|
1382
|
+
:resource_arn)
|
1383
|
+
include Aws::Structure
|
1384
|
+
end
|
1385
|
+
|
1386
|
+
# @!attribute [rw] tags
|
1387
|
+
# The tags for the resource.
|
1388
|
+
# @return [Array<Types::Tag>]
|
1389
|
+
#
|
1390
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/ListTagsForResourceResponse AWS API Documentation
|
1391
|
+
#
|
1392
|
+
class ListTagsForResourceResponse < Struct.new(
|
1393
|
+
:tags)
|
1394
|
+
include Aws::Structure
|
1395
|
+
end
|
1396
|
+
|
1357
1397
|
# @note When making an API call, you may pass PutImageRequest
|
1358
1398
|
# data as a hash:
|
1359
1399
|
#
|
@@ -1619,6 +1659,107 @@ module Aws::ECR
|
|
1619
1659
|
include Aws::Structure
|
1620
1660
|
end
|
1621
1661
|
|
1662
|
+
# The metadata that you apply to a resource to help you categorize and
|
1663
|
+
# organize them. Each tag consists of a key and an optional value, both
|
1664
|
+
# of which you define. Tag keys can have a maximum character length of
|
1665
|
+
# 128 characters, and tag values can have a maximum length of 256
|
1666
|
+
# characters.
|
1667
|
+
#
|
1668
|
+
# @note When making an API call, you may pass Tag
|
1669
|
+
# data as a hash:
|
1670
|
+
#
|
1671
|
+
# {
|
1672
|
+
# key: "TagKey",
|
1673
|
+
# value: "TagValue",
|
1674
|
+
# }
|
1675
|
+
#
|
1676
|
+
# @!attribute [rw] key
|
1677
|
+
# One part of a key-value pair that make up a tag. A `key` is a
|
1678
|
+
# general label that acts like a category for more specific tag
|
1679
|
+
# values.
|
1680
|
+
# @return [String]
|
1681
|
+
#
|
1682
|
+
# @!attribute [rw] value
|
1683
|
+
# The optional part of a key-value pair that make up a tag. A `value`
|
1684
|
+
# acts as a descriptor within a tag category (key).
|
1685
|
+
# @return [String]
|
1686
|
+
#
|
1687
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/Tag AWS API Documentation
|
1688
|
+
#
|
1689
|
+
class Tag < Struct.new(
|
1690
|
+
:key,
|
1691
|
+
:value)
|
1692
|
+
include Aws::Structure
|
1693
|
+
end
|
1694
|
+
|
1695
|
+
# @note When making an API call, you may pass TagResourceRequest
|
1696
|
+
# data as a hash:
|
1697
|
+
#
|
1698
|
+
# {
|
1699
|
+
# resource_arn: "Arn", # required
|
1700
|
+
# tags: [ # required
|
1701
|
+
# {
|
1702
|
+
# key: "TagKey",
|
1703
|
+
# value: "TagValue",
|
1704
|
+
# },
|
1705
|
+
# ],
|
1706
|
+
# }
|
1707
|
+
#
|
1708
|
+
# @!attribute [rw] resource_arn
|
1709
|
+
# The Amazon Resource Name (ARN) of the the resource to which to add
|
1710
|
+
# tags. Currently, the only supported resource is an Amazon ECR
|
1711
|
+
# repository.
|
1712
|
+
# @return [String]
|
1713
|
+
#
|
1714
|
+
# @!attribute [rw] tags
|
1715
|
+
# The tags to add to the resource. A tag is an array of key-value
|
1716
|
+
# pairs. Tag keys can have a maximum character length of 128
|
1717
|
+
# characters, and tag values can have a maximum length of 256
|
1718
|
+
# characters.
|
1719
|
+
# @return [Array<Types::Tag>]
|
1720
|
+
#
|
1721
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/TagResourceRequest AWS API Documentation
|
1722
|
+
#
|
1723
|
+
class TagResourceRequest < Struct.new(
|
1724
|
+
:resource_arn,
|
1725
|
+
:tags)
|
1726
|
+
include Aws::Structure
|
1727
|
+
end
|
1728
|
+
|
1729
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/TagResourceResponse AWS API Documentation
|
1730
|
+
#
|
1731
|
+
class TagResourceResponse < Aws::EmptyStructure; end
|
1732
|
+
|
1733
|
+
# @note When making an API call, you may pass UntagResourceRequest
|
1734
|
+
# data as a hash:
|
1735
|
+
#
|
1736
|
+
# {
|
1737
|
+
# resource_arn: "Arn", # required
|
1738
|
+
# tag_keys: ["TagKey"], # required
|
1739
|
+
# }
|
1740
|
+
#
|
1741
|
+
# @!attribute [rw] resource_arn
|
1742
|
+
# The Amazon Resource Name (ARN) of the resource from which to remove
|
1743
|
+
# tags. Currently, the only supported resource is an Amazon ECR
|
1744
|
+
# repository.
|
1745
|
+
# @return [String]
|
1746
|
+
#
|
1747
|
+
# @!attribute [rw] tag_keys
|
1748
|
+
# The keys of the tags to be removed.
|
1749
|
+
# @return [Array<String>]
|
1750
|
+
#
|
1751
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/UntagResourceRequest AWS API Documentation
|
1752
|
+
#
|
1753
|
+
class UntagResourceRequest < Struct.new(
|
1754
|
+
:resource_arn,
|
1755
|
+
:tag_keys)
|
1756
|
+
include Aws::Structure
|
1757
|
+
end
|
1758
|
+
|
1759
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/UntagResourceResponse AWS API Documentation
|
1760
|
+
#
|
1761
|
+
class UntagResourceResponse < Aws::EmptyStructure; end
|
1762
|
+
|
1622
1763
|
# @note When making an API call, you may pass UploadLayerPartRequest
|
1623
1764
|
# data as a hash:
|
1624
1765
|
#
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-ecr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-12-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|