aws-sdk-codestar 1.0.0 → 1.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2a342e772b0992dd15cd415983ca276f1f9984fe
4
- data.tar.gz: 5e8b70f928d0e83c8dc1de8569727f5b958999c6
3
+ metadata.gz: d540d368989c82e62f847badf77fb3918838c08b
4
+ data.tar.gz: 734a7ba91ac7598ba332d6946dd399938ebfdcf7
5
5
  SHA512:
6
- metadata.gz: 4f74bbfdd108e1efca910a5a1c0c1f3e01270b54f037e2200968b81eccddd865553b3995329181302f58fa82c7759987f30956be05280b87a3113b39c485cd83
7
- data.tar.gz: 0c925f16281831ef34446361365e7726f2959aa6e662fde013c83a36cbc3e398b4fb614456a4107391ab97ff7f164dfb60019ada8e79c5af72c7b55b85784f80
6
+ metadata.gz: 7fcc4e8b04a2b30fb0da52f3448f3dfb5edc79492929cd9b0c9b3d2efb6ba76802be202a6f0f3c798bbc0704f843d3a5160b2fa6fda462cbf49140e5e6cdbf0d
7
+ data.tar.gz: 63dce18a9630c7788f71d45fa199907c795e4190a5561b72bef889068a40f6cd8db2015af432dbfaefa2f47dd529394eeecad73b9aad2c41073617e961ed849a
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-codestar/customizations'
42
42
  # @service
43
43
  module Aws::CodeStar
44
44
 
45
- GEM_VERSION = '1.0.0'
45
+ GEM_VERSION = '1.1.0'
46
46
 
47
47
  end
@@ -550,7 +550,7 @@ module Aws::CodeStar
550
550
  # cannot be returned in one response.
551
551
  #
552
552
  # @option params [Integer] :max_results
553
- # he maximum amount of data that can be contained in a single set of
553
+ # The maximum amount of data that can be contained in a single set of
554
554
  # results.
555
555
  #
556
556
  # @return [Types::ListResourcesResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
@@ -581,6 +581,45 @@ module Aws::CodeStar
581
581
  req.send_request(options)
582
582
  end
583
583
 
584
+ # Gets the tags for a project.
585
+ #
586
+ # @option params [required, String] :id
587
+ # The ID of the project to get tags for.
588
+ #
589
+ # @option params [String] :next_token
590
+ # Reserved for future use.
591
+ #
592
+ # @option params [Integer] :max_results
593
+ # Reserved for future use.
594
+ #
595
+ # @return [Types::ListTagsForProjectResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
596
+ #
597
+ # * {Types::ListTagsForProjectResult#tags #tags} => Hash<String,String>
598
+ # * {Types::ListTagsForProjectResult#next_token #next_token} => String
599
+ #
600
+ # @example Request syntax with placeholder values
601
+ #
602
+ # resp = client.list_tags_for_project({
603
+ # id: "ProjectId", # required
604
+ # next_token: "PaginationToken",
605
+ # max_results: 1,
606
+ # })
607
+ #
608
+ # @example Response structure
609
+ #
610
+ # resp.tags #=> Hash
611
+ # resp.tags["TagKey"] #=> String
612
+ # resp.next_token #=> String
613
+ #
614
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/ListTagsForProject AWS API Documentation
615
+ #
616
+ # @overload list_tags_for_project(params = {})
617
+ # @param [Hash] params ({})
618
+ def list_tags_for_project(params = {}, options = {})
619
+ req = build_request(:list_tags_for_project, params)
620
+ req.send_request(options)
621
+ end
622
+
584
623
  # Lists all team members associated with a project.
585
624
  #
586
625
  # @option params [required, String] :project_id
@@ -663,6 +702,67 @@ module Aws::CodeStar
663
702
  req.send_request(options)
664
703
  end
665
704
 
705
+ # Adds tags to a project.
706
+ #
707
+ # @option params [required, String] :id
708
+ # The ID of the project you want to add a tag to.
709
+ #
710
+ # @option params [required, Hash<String,String>] :tags
711
+ # The tags you want to add to the project.
712
+ #
713
+ # @return [Types::TagProjectResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
714
+ #
715
+ # * {Types::TagProjectResult#tags #tags} => Hash&lt;String,String&gt;
716
+ #
717
+ # @example Request syntax with placeholder values
718
+ #
719
+ # resp = client.tag_project({
720
+ # id: "ProjectId", # required
721
+ # tags: { # required
722
+ # "TagKey" => "TagValue",
723
+ # },
724
+ # })
725
+ #
726
+ # @example Response structure
727
+ #
728
+ # resp.tags #=> Hash
729
+ # resp.tags["TagKey"] #=> String
730
+ #
731
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/TagProject AWS API Documentation
732
+ #
733
+ # @overload tag_project(params = {})
734
+ # @param [Hash] params ({})
735
+ def tag_project(params = {}, options = {})
736
+ req = build_request(:tag_project, params)
737
+ req.send_request(options)
738
+ end
739
+
740
+ # Removes tags from a project.
741
+ #
742
+ # @option params [required, String] :id
743
+ # The ID of the project to remove tags from.
744
+ #
745
+ # @option params [required, Array<String>] :tags
746
+ # The tags to remove from the project.
747
+ #
748
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
749
+ #
750
+ # @example Request syntax with placeholder values
751
+ #
752
+ # resp = client.untag_project({
753
+ # id: "ProjectId", # required
754
+ # tags: ["TagKey"], # required
755
+ # })
756
+ #
757
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/UntagProject AWS API Documentation
758
+ #
759
+ # @overload untag_project(params = {})
760
+ # @param [Hash] params ({})
761
+ def untag_project(params = {}, options = {})
762
+ req = build_request(:untag_project, params)
763
+ req.send_request(options)
764
+ end
765
+
666
766
  # Updates a project in AWS CodeStar.
667
767
  #
668
768
  # @option params [required, String] :id
@@ -707,7 +807,7 @@ module Aws::CodeStar
707
807
  # @option params [String] :project_role
708
808
  # The role assigned to the user in the project. Project roles have
709
809
  # different levels of access. For more information, see [Working with
710
- # Teams][1] in the AWS CodeStar User Guide.
810
+ # Teams][1] in the *AWS CodeStar User Guide*.
711
811
  #
712
812
  #
713
813
  #
@@ -821,7 +921,7 @@ module Aws::CodeStar
821
921
  params: params,
822
922
  config: config)
823
923
  context[:gem_name] = 'aws-sdk-codestar'
824
- context[:gem_version] = '1.0.0'
924
+ context[:gem_version] = '1.1.0'
825
925
  Seahorse::Client::Request.new(handlers, context)
826
926
  end
827
927
 
@@ -40,6 +40,8 @@ module Aws::CodeStar
40
40
  ListProjectsResult = Shapes::StructureShape.new(name: 'ListProjectsResult')
41
41
  ListResourcesRequest = Shapes::StructureShape.new(name: 'ListResourcesRequest')
42
42
  ListResourcesResult = Shapes::StructureShape.new(name: 'ListResourcesResult')
43
+ ListTagsForProjectRequest = Shapes::StructureShape.new(name: 'ListTagsForProjectRequest')
44
+ ListTagsForProjectResult = Shapes::StructureShape.new(name: 'ListTagsForProjectResult')
43
45
  ListTeamMembersRequest = Shapes::StructureShape.new(name: 'ListTeamMembersRequest')
44
46
  ListTeamMembersResult = Shapes::StructureShape.new(name: 'ListTeamMembersResult')
45
47
  ListUserProfilesRequest = Shapes::StructureShape.new(name: 'ListUserProfilesRequest')
@@ -64,10 +66,18 @@ module Aws::CodeStar
64
66
  Role = Shapes::StringShape.new(name: 'Role')
65
67
  SshPublicKey = Shapes::StringShape.new(name: 'SshPublicKey')
66
68
  StackId = Shapes::StringShape.new(name: 'StackId')
69
+ TagKey = Shapes::StringShape.new(name: 'TagKey')
70
+ TagKeys = Shapes::ListShape.new(name: 'TagKeys')
71
+ TagProjectRequest = Shapes::StructureShape.new(name: 'TagProjectRequest')
72
+ TagProjectResult = Shapes::StructureShape.new(name: 'TagProjectResult')
73
+ TagValue = Shapes::StringShape.new(name: 'TagValue')
74
+ Tags = Shapes::MapShape.new(name: 'Tags')
67
75
  TeamMember = Shapes::StructureShape.new(name: 'TeamMember')
68
76
  TeamMemberAlreadyAssociatedException = Shapes::StructureShape.new(name: 'TeamMemberAlreadyAssociatedException')
69
77
  TeamMemberNotFoundException = Shapes::StructureShape.new(name: 'TeamMemberNotFoundException')
70
78
  TeamMemberResult = Shapes::ListShape.new(name: 'TeamMemberResult')
79
+ UntagProjectRequest = Shapes::StructureShape.new(name: 'UntagProjectRequest')
80
+ UntagProjectResult = Shapes::StructureShape.new(name: 'UntagProjectResult')
71
81
  UpdateProjectRequest = Shapes::StructureShape.new(name: 'UpdateProjectRequest')
72
82
  UpdateProjectResult = Shapes::StructureShape.new(name: 'UpdateProjectResult')
73
83
  UpdateTeamMemberRequest = Shapes::StructureShape.new(name: 'UpdateTeamMemberRequest')
@@ -180,6 +190,15 @@ module Aws::CodeStar
180
190
  ListResourcesResult.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
181
191
  ListResourcesResult.struct_class = Types::ListResourcesResult
182
192
 
193
+ ListTagsForProjectRequest.add_member(:id, Shapes::ShapeRef.new(shape: ProjectId, required: true, location_name: "id"))
194
+ ListTagsForProjectRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
195
+ ListTagsForProjectRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults", metadata: {"box"=>true}))
196
+ ListTagsForProjectRequest.struct_class = Types::ListTagsForProjectRequest
197
+
198
+ ListTagsForProjectResult.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
199
+ ListTagsForProjectResult.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
200
+ ListTagsForProjectResult.struct_class = Types::ListTagsForProjectResult
201
+
183
202
  ListTeamMembersRequest.add_member(:project_id, Shapes::ShapeRef.new(shape: ProjectId, required: true, location_name: "projectId"))
184
203
  ListTeamMembersRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
185
204
  ListTeamMembersRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults", metadata: {"box"=>true}))
@@ -208,6 +227,18 @@ module Aws::CodeStar
208
227
 
209
228
  ResourcesResult.member = Shapes::ShapeRef.new(shape: Resource)
210
229
 
230
+ TagKeys.member = Shapes::ShapeRef.new(shape: TagKey)
231
+
232
+ TagProjectRequest.add_member(:id, Shapes::ShapeRef.new(shape: ProjectId, required: true, location_name: "id"))
233
+ TagProjectRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, required: true, location_name: "tags"))
234
+ TagProjectRequest.struct_class = Types::TagProjectRequest
235
+
236
+ TagProjectResult.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
237
+ TagProjectResult.struct_class = Types::TagProjectResult
238
+
239
+ Tags.key = Shapes::ShapeRef.new(shape: TagKey)
240
+ Tags.value = Shapes::ShapeRef.new(shape: TagValue)
241
+
211
242
  TeamMember.add_member(:user_arn, Shapes::ShapeRef.new(shape: UserArn, required: true, location_name: "userArn"))
212
243
  TeamMember.add_member(:project_role, Shapes::ShapeRef.new(shape: Role, required: true, location_name: "projectRole"))
213
244
  TeamMember.add_member(:remote_access_allowed, Shapes::ShapeRef.new(shape: RemoteAccessAllowed, location_name: "remoteAccessAllowed", metadata: {"box"=>true}))
@@ -215,6 +246,12 @@ module Aws::CodeStar
215
246
 
216
247
  TeamMemberResult.member = Shapes::ShapeRef.new(shape: TeamMember)
217
248
 
249
+ UntagProjectRequest.add_member(:id, Shapes::ShapeRef.new(shape: ProjectId, required: true, location_name: "id"))
250
+ UntagProjectRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagKeys, required: true, location_name: "tags"))
251
+ UntagProjectRequest.struct_class = Types::UntagProjectRequest
252
+
253
+ UntagProjectResult.struct_class = Types::UntagProjectResult
254
+
218
255
  UpdateProjectRequest.add_member(:id, Shapes::ShapeRef.new(shape: ProjectId, required: true, location_name: "id"))
219
256
  UpdateProjectRequest.add_member(:name, Shapes::ShapeRef.new(shape: ProjectName, location_name: "name"))
220
257
  UpdateProjectRequest.add_member(:description, Shapes::ShapeRef.new(shape: ProjectDescription, location_name: "description"))
@@ -386,6 +423,17 @@ module Aws::CodeStar
386
423
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
387
424
  end)
388
425
 
426
+ api.add_operation(:list_tags_for_project, Seahorse::Model::Operation.new.tap do |o|
427
+ o.name = "ListTagsForProject"
428
+ o.http_method = "POST"
429
+ o.http_request_uri = "/"
430
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForProjectRequest)
431
+ o.output = Shapes::ShapeRef.new(shape: ListTagsForProjectResult)
432
+ o.errors << Shapes::ShapeRef.new(shape: ProjectNotFoundException)
433
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
434
+ o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
435
+ end)
436
+
389
437
  api.add_operation(:list_team_members, Seahorse::Model::Operation.new.tap do |o|
390
438
  o.name = "ListTeamMembers"
391
439
  o.http_method = "POST"
@@ -407,6 +455,30 @@ module Aws::CodeStar
407
455
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
408
456
  end)
409
457
 
458
+ api.add_operation(:tag_project, Seahorse::Model::Operation.new.tap do |o|
459
+ o.name = "TagProject"
460
+ o.http_method = "POST"
461
+ o.http_request_uri = "/"
462
+ o.input = Shapes::ShapeRef.new(shape: TagProjectRequest)
463
+ o.output = Shapes::ShapeRef.new(shape: TagProjectResult)
464
+ o.errors << Shapes::ShapeRef.new(shape: ProjectNotFoundException)
465
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
466
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
467
+ o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
468
+ end)
469
+
470
+ api.add_operation(:untag_project, Seahorse::Model::Operation.new.tap do |o|
471
+ o.name = "UntagProject"
472
+ o.http_method = "POST"
473
+ o.http_request_uri = "/"
474
+ o.input = Shapes::ShapeRef.new(shape: UntagProjectRequest)
475
+ o.output = Shapes::ShapeRef.new(shape: UntagProjectResult)
476
+ o.errors << Shapes::ShapeRef.new(shape: ProjectNotFoundException)
477
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
478
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
479
+ o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
480
+ end)
481
+
410
482
  api.add_operation(:update_project, Seahorse::Model::Operation.new.tap do |o|
411
483
  o.name = "UpdateProject"
412
484
  o.http_method = "POST"
@@ -526,7 +526,7 @@ module Aws::CodeStar
526
526
  # @return [String]
527
527
  #
528
528
  # @!attribute [rw] max_results
529
- # he maximum amount of data that can be contained in a single set of
529
+ # The maximum amount of data that can be contained in a single set of
530
530
  # results.
531
531
  # @return [Integer]
532
532
  #
@@ -556,6 +556,52 @@ module Aws::CodeStar
556
556
  include Aws::Structure
557
557
  end
558
558
 
559
+ # @note When making an API call, you may pass ListTagsForProjectRequest
560
+ # data as a hash:
561
+ #
562
+ # {
563
+ # id: "ProjectId", # required
564
+ # next_token: "PaginationToken",
565
+ # max_results: 1,
566
+ # }
567
+ #
568
+ # @!attribute [rw] id
569
+ # The ID of the project to get tags for.
570
+ # @return [String]
571
+ #
572
+ # @!attribute [rw] next_token
573
+ # Reserved for future use.
574
+ # @return [String]
575
+ #
576
+ # @!attribute [rw] max_results
577
+ # Reserved for future use.
578
+ # @return [Integer]
579
+ #
580
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/ListTagsForProjectRequest AWS API Documentation
581
+ #
582
+ class ListTagsForProjectRequest < Struct.new(
583
+ :id,
584
+ :next_token,
585
+ :max_results)
586
+ include Aws::Structure
587
+ end
588
+
589
+ # @!attribute [rw] tags
590
+ # The tags for the project.
591
+ # @return [Hash<String,String>]
592
+ #
593
+ # @!attribute [rw] next_token
594
+ # Reserved for future use.
595
+ # @return [String]
596
+ #
597
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/ListTagsForProjectResult AWS API Documentation
598
+ #
599
+ class ListTagsForProjectResult < Struct.new(
600
+ :tags,
601
+ :next_token)
602
+ include Aws::Structure
603
+ end
604
+
559
605
  # @note When making an API call, you may pass ListTeamMembersRequest
560
606
  # data as a hash:
561
607
  #
@@ -677,6 +723,43 @@ module Aws::CodeStar
677
723
  include Aws::Structure
678
724
  end
679
725
 
726
+ # @note When making an API call, you may pass TagProjectRequest
727
+ # data as a hash:
728
+ #
729
+ # {
730
+ # id: "ProjectId", # required
731
+ # tags: { # required
732
+ # "TagKey" => "TagValue",
733
+ # },
734
+ # }
735
+ #
736
+ # @!attribute [rw] id
737
+ # The ID of the project you want to add a tag to.
738
+ # @return [String]
739
+ #
740
+ # @!attribute [rw] tags
741
+ # The tags you want to add to the project.
742
+ # @return [Hash<String,String>]
743
+ #
744
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/TagProjectRequest AWS API Documentation
745
+ #
746
+ class TagProjectRequest < Struct.new(
747
+ :id,
748
+ :tags)
749
+ include Aws::Structure
750
+ end
751
+
752
+ # @!attribute [rw] tags
753
+ # The tags for the project.
754
+ # @return [Hash<String,String>]
755
+ #
756
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/TagProjectResult AWS API Documentation
757
+ #
758
+ class TagProjectResult < Struct.new(
759
+ :tags)
760
+ include Aws::Structure
761
+ end
762
+
680
763
  # Information about a team member in a project.
681
764
  #
682
765
  # @!attribute [rw] user_arn
@@ -686,7 +769,7 @@ module Aws::CodeStar
686
769
  # @!attribute [rw] project_role
687
770
  # The role assigned to the user in the project. Project roles have
688
771
  # different levels of access. For more information, see [Working with
689
- # Teams][1] in the AWS CodeStar User Guide.
772
+ # Teams][1] in the *AWS CodeStar User Guide*.
690
773
  #
691
774
  #
692
775
  #
@@ -707,6 +790,34 @@ module Aws::CodeStar
707
790
  include Aws::Structure
708
791
  end
709
792
 
793
+ # @note When making an API call, you may pass UntagProjectRequest
794
+ # data as a hash:
795
+ #
796
+ # {
797
+ # id: "ProjectId", # required
798
+ # tags: ["TagKey"], # required
799
+ # }
800
+ #
801
+ # @!attribute [rw] id
802
+ # The ID of the project to remove tags from.
803
+ # @return [String]
804
+ #
805
+ # @!attribute [rw] tags
806
+ # The tags to remove from the project.
807
+ # @return [Array<String>]
808
+ #
809
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/UntagProjectRequest AWS API Documentation
810
+ #
811
+ class UntagProjectRequest < Struct.new(
812
+ :id,
813
+ :tags)
814
+ include Aws::Structure
815
+ end
816
+
817
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/UntagProjectResult AWS API Documentation
818
+ #
819
+ class UntagProjectResult < Aws::EmptyStructure; end
820
+
710
821
  # @note When making an API call, you may pass UpdateProjectRequest
711
822
  # data as a hash:
712
823
  #
@@ -763,7 +874,7 @@ module Aws::CodeStar
763
874
  # @!attribute [rw] project_role
764
875
  # The role assigned to the user in the project. Project roles have
765
876
  # different levels of access. For more information, see [Working with
766
- # Teams][1] in the AWS CodeStar User Guide.
877
+ # Teams][1] in the *AWS CodeStar User Guide*.
767
878
  #
768
879
  #
769
880
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-codestar
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.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: 2017-08-29 00:00:00.000000000 Z
11
+ date: 2017-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -56,7 +56,9 @@ files:
56
56
  homepage: http://github.com/aws/aws-sdk-ruby
57
57
  licenses:
58
58
  - Apache-2.0
59
- metadata: {}
59
+ metadata:
60
+ source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/master/gems/aws-sdk-codestar
61
+ changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/master/gems/aws-sdk-codestar/CHANGELOG.md
60
62
  post_install_message:
61
63
  rdoc_options: []
62
64
  require_paths: