aws-sdk-ecr 1.0.0.rc6 → 1.0.0.rc7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 904b0e9ecc91706bc5856d9002dbb4b70a93b62e
4
- data.tar.gz: c2222b1433ed584a153c7ac7a3d674c6857e6afa
3
+ metadata.gz: 4c56e923d0d4138bc815c93bc1a7d61262d13e18
4
+ data.tar.gz: f5c6a5d8c9d53746e4800fa500726bc1b8d0dfa0
5
5
  SHA512:
6
- metadata.gz: 6dfc103e0b8ce444cd09ede8c897a048bf6b2b8bfd17f43b44708459d6abd20e3d8c60a41d132bc4e7279cf05d3bd80563f614f9119365d83ab0bceb60d2e6fa
7
- data.tar.gz: b5b83b7fab556742de4e9300fcfcacebbcaf66312f6bc24e7f675b7f9275deeb98f1ebe7faf0f566ce0b3af34c8ee942c6dcd131a89a11baeaf7a5a88468f352
6
+ metadata.gz: 019521344505bf1c7bf5a384278ecc90f632a80137381dca2faff8f1bbf0a854876a630c232d951c6a840db60ca906fe1966c19b0316bb0337dcb1b2e79f176c
7
+ data.tar.gz: f829ad5bb7e615489a424186c29713099d56fd04d68b236c870afb686e6e2b6a46b76ca6db99a527d489538fabbe9f3288ee9b8c75ff7f08e8a0d14115e720db
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-ecr/customizations'
42
42
  # @service
43
43
  module Aws::ECR
44
44
 
45
- GEM_VERSION = '1.0.0.rc6'
45
+ GEM_VERSION = '1.0.0.rc7'
46
46
 
47
47
  end
@@ -238,6 +238,32 @@ module Aws::ECR
238
238
  # * {Types::BatchDeleteImageResponse#image_ids #image_ids} => Array<Types::ImageIdentifier>
239
239
  # * {Types::BatchDeleteImageResponse#failures #failures} => Array<Types::ImageFailure>
240
240
  #
241
+ #
242
+ # @example Example: To delete multiple images
243
+ #
244
+ # # This example deletes images with the tags precise and trusty in a repository called ubuntu in the default registry for an account.
245
+ #
246
+ # resp = client.batch_delete_image({
247
+ # image_ids: [
248
+ # {
249
+ # image_tag: "precise",
250
+ # },
251
+ # ],
252
+ # repository_name: "ubuntu",
253
+ # })
254
+ #
255
+ # resp.to_h outputs the following:
256
+ # {
257
+ # failures: [
258
+ # ],
259
+ # image_ids: [
260
+ # {
261
+ # image_digest: "sha256:examplee6d1e504117a17000003d3753086354a38375961f2e665416ef4b1b2f",
262
+ # image_tag: "precise",
263
+ # },
264
+ # ],
265
+ # }
266
+ #
241
267
  # @example Request syntax with placeholder values
242
268
  #
243
269
  # resp = client.batch_delete_image({
@@ -300,6 +326,37 @@ module Aws::ECR
300
326
  # * {Types::BatchGetImageResponse#images #images} => Array<Types::Image>
301
327
  # * {Types::BatchGetImageResponse#failures #failures} => Array<Types::ImageFailure>
302
328
  #
329
+ #
330
+ # @example Example: To obtain multiple images in a single request
331
+ #
332
+ # # This example obtains information for an image with a specified image digest ID from the repository named ubuntu in the current account.
333
+ #
334
+ # resp = client.batch_get_image({
335
+ # image_ids: [
336
+ # {
337
+ # image_tag: "precise",
338
+ # },
339
+ # ],
340
+ # repository_name: "ubuntu",
341
+ # })
342
+ #
343
+ # resp.to_h outputs the following:
344
+ # {
345
+ # failures: [
346
+ # ],
347
+ # images: [
348
+ # {
349
+ # image_id: {
350
+ # image_digest: "sha256:example76bdff6d83a09ba2a818f0d00000063724a9ac3ba5019c56f74ebf42a",
351
+ # image_tag: "precise",
352
+ # },
353
+ # image_manifest: "{\n \"schemaVersion\": 1,\n \"name\": \"ubuntu\",\n \"tag\": \"precise\",\n...",
354
+ # registry_id: "244698725403",
355
+ # repository_name: "ubuntu",
356
+ # },
357
+ # ],
358
+ # }
359
+ #
303
360
  # @example Request syntax with placeholder values
304
361
  #
305
362
  # resp = client.batch_get_image({
@@ -407,6 +464,24 @@ module Aws::ECR
407
464
  #
408
465
  # * {Types::CreateRepositoryResponse#repository #repository} => Types::Repository
409
466
  #
467
+ #
468
+ # @example Example: To create a new repository
469
+ #
470
+ # # This example creates a repository called nginx-web-app inside the project-a namespace in the default registry for an account.
471
+ #
472
+ # resp = client.create_repository({
473
+ # repository_name: "project-a/nginx-web-app",
474
+ # })
475
+ #
476
+ # resp.to_h outputs the following:
477
+ # {
478
+ # repository: {
479
+ # registry_id: "012345678901",
480
+ # repository_arn: "arn:aws:ecr:us-west-2:012345678901:repository/project-a/nginx-web-app",
481
+ # repository_name: "project-a/nginx-web-app",
482
+ # },
483
+ # }
484
+ #
410
485
  # @example Request syntax with placeholder values
411
486
  #
412
487
  # resp = client.create_repository({
@@ -448,6 +523,25 @@ module Aws::ECR
448
523
  #
449
524
  # * {Types::DeleteRepositoryResponse#repository #repository} => Types::Repository
450
525
  #
526
+ #
527
+ # @example Example: To force delete a repository
528
+ #
529
+ # # This example force deletes a repository named ubuntu in the default registry for an account. The force parameter is required if the repository contains images.
530
+ #
531
+ # resp = client.delete_repository({
532
+ # force: true,
533
+ # repository_name: "ubuntu",
534
+ # })
535
+ #
536
+ # resp.to_h outputs the following:
537
+ # {
538
+ # repository: {
539
+ # registry_id: "012345678901",
540
+ # repository_arn: "arn:aws:ecr:us-west-2:012345678901:repository/ubuntu",
541
+ # repository_name: "ubuntu",
542
+ # },
543
+ # }
544
+ #
451
545
  # @example Request syntax with placeholder values
452
546
  #
453
547
  # resp = client.delete_repository({
@@ -490,6 +584,22 @@ module Aws::ECR
490
584
  # * {Types::DeleteRepositoryPolicyResponse#repository_name #repository_name} => String
491
585
  # * {Types::DeleteRepositoryPolicyResponse#policy_text #policy_text} => String
492
586
  #
587
+ #
588
+ # @example Example: To delete the policy associated with a repository
589
+ #
590
+ # # This example deletes the policy associated with the repository named ubuntu in the current account.
591
+ #
592
+ # resp = client.delete_repository_policy({
593
+ # repository_name: "ubuntu",
594
+ # })
595
+ #
596
+ # resp.to_h outputs the following:
597
+ # {
598
+ # policy_text: "{ ... }",
599
+ # registry_id: "012345678901",
600
+ # repository_name: "ubuntu",
601
+ # }
602
+ #
493
603
  # @example Request syntax with placeholder values
494
604
  #
495
605
  # resp = client.delete_repository_policy({
@@ -640,6 +750,30 @@ module Aws::ECR
640
750
  # * {Types::DescribeRepositoriesResponse#repositories #repositories} => Array<Types::Repository>
641
751
  # * {Types::DescribeRepositoriesResponse#next_token #next_token} => String
642
752
  #
753
+ #
754
+ # @example Example: To describe all repositories in the current account
755
+ #
756
+ # # The following example obtains a list and description of all repositories in the default registry to which the current user has access.
757
+ #
758
+ # resp = client.describe_repositories({
759
+ # })
760
+ #
761
+ # resp.to_h outputs the following:
762
+ # {
763
+ # repositories: [
764
+ # {
765
+ # registry_id: "012345678910",
766
+ # repository_arn: "arn:aws:ecr:us-west-2:012345678910:repository/ubuntu",
767
+ # repository_name: "ubuntu",
768
+ # },
769
+ # {
770
+ # registry_id: "012345678910",
771
+ # repository_arn: "arn:aws:ecr:us-west-2:012345678910:repository/test",
772
+ # repository_name: "test",
773
+ # },
774
+ # ],
775
+ # }
776
+ #
643
777
  # @example Request syntax with placeholder values
644
778
  #
645
779
  # resp = client.describe_repositories({
@@ -687,6 +821,25 @@ module Aws::ECR
687
821
  #
688
822
  # * {Types::GetAuthorizationTokenResponse#authorization_data #authorization_data} => Array<Types::AuthorizationData>
689
823
  #
824
+ #
825
+ # @example Example: To obtain an authorization token
826
+ #
827
+ # # This example gets an authorization token for your default registry.
828
+ #
829
+ # resp = client.get_authorization_token({
830
+ # })
831
+ #
832
+ # resp.to_h outputs the following:
833
+ # {
834
+ # authorization_data: [
835
+ # {
836
+ # authorization_token: "QVdTOkN...",
837
+ # expires_at: Time.parse("1470951892432"),
838
+ # proxy_endpoint: "https://012345678901.dkr.ecr.us-west-2.amazonaws.com",
839
+ # },
840
+ # ],
841
+ # }
842
+ #
690
843
  # @example Request syntax with placeholder values
691
844
  #
692
845
  # resp = client.get_authorization_token({
@@ -774,6 +927,22 @@ module Aws::ECR
774
927
  # * {Types::GetRepositoryPolicyResponse#repository_name #repository_name} => String
775
928
  # * {Types::GetRepositoryPolicyResponse#policy_text #policy_text} => String
776
929
  #
930
+ #
931
+ # @example Example: To get the current policy for a repository
932
+ #
933
+ # # This example obtains the repository policy for the repository named ubuntu.
934
+ #
935
+ # resp = client.get_repository_policy({
936
+ # repository_name: "ubuntu",
937
+ # })
938
+ #
939
+ # resp.to_h outputs the following:
940
+ # {
941
+ # policy_text: "{\n \"Version\" : \"2008-10-17\",\n \"Statement\" : [ {\n \"Sid\" : \"new statement\",\n \"Effect\" : \"Allow\",\n \"Principal\" : {\n \"AWS\" : \"arn:aws:iam::012345678901:role/CodeDeployDemo\"\n },\n\"Action\" : [ \"ecr:GetDownloadUrlForLayer\", \"ecr:BatchGetImage\", \"ecr:BatchCheckLayerAvailability\" ]\n } ]\n}",
942
+ # registry_id: "012345678901",
943
+ # repository_name: "ubuntu",
944
+ # }
945
+ #
777
946
  # @example Request syntax with placeholder values
778
947
  #
779
948
  # resp = client.get_repository_policy({
@@ -887,6 +1056,25 @@ module Aws::ECR
887
1056
  # * {Types::ListImagesResponse#image_ids #image_ids} => Array<Types::ImageIdentifier>
888
1057
  # * {Types::ListImagesResponse#next_token #next_token} => String
889
1058
  #
1059
+ #
1060
+ # @example Example: To list all images in a repository
1061
+ #
1062
+ # # This example lists all of the images in the repository named ubuntu in the default registry in the current account.
1063
+ #
1064
+ # resp = client.list_images({
1065
+ # repository_name: "ubuntu",
1066
+ # })
1067
+ #
1068
+ # resp.to_h outputs the following:
1069
+ # {
1070
+ # image_ids: [
1071
+ # {
1072
+ # image_digest: "sha256:764f63476bdff6d83a09ba2a818f0d35757063724a9ac3ba5019c56f74ebf42a",
1073
+ # image_tag: "precise",
1074
+ # },
1075
+ # ],
1076
+ # }
1077
+ #
890
1078
  # @example Request syntax with placeholder values
891
1079
  #
892
1080
  # resp = client.list_images({
@@ -1095,7 +1283,7 @@ module Aws::ECR
1095
1283
  params: params,
1096
1284
  config: config)
1097
1285
  context[:gem_name] = 'aws-sdk-ecr'
1098
- context[:gem_version] = '1.0.0.rc6'
1286
+ context[:gem_version] = '1.0.0.rc7'
1099
1287
  Seahorse::Client::Request.new(handlers, context)
1100
1288
  end
1101
1289
 
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.0.0.rc6
4
+ version: 1.0.0.rc7
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: 2017-05-23 00:00:00.000000000 Z
11
+ date: 2017-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 3.0.0.rc12
19
+ version: 3.0.0.rc14
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 3.0.0.rc12
26
+ version: 3.0.0.rc14
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: aws-sigv4
29
29
  requirement: !ruby/object:Gem::Requirement