aws-sdk-codecommit 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: 8cff1eb0fc868f14a73f1ab7f0f976c73113fc75
4
- data.tar.gz: 463e8de223f77eec7a1a72ddaed9624e6563ca32
3
+ metadata.gz: f0bd5fc74c9c12ccb1ec7d70efa25c842dfbfba8
4
+ data.tar.gz: 0775160775b7fa730cbd3e404985dfb02bd6f369
5
5
  SHA512:
6
- metadata.gz: f48bba63b02a090986643e78858e8cf857afb7a12d2200de04119c9603c8074773e1375c415327f2113513f8895a8f9acb41432d8e0491c66646d77d439b4749
7
- data.tar.gz: 522b583d5527b18395095aac998af7ce0347cc09109466ae0cdd5d8548e1a41a8e2e0655f2dfe6ab8520f263d9e89419d2f0eb76c7521ba871b25b5d92ba1176
6
+ metadata.gz: 0f9a62d366d3163a922350636d7021d063520a1aec4c7493d83346e01480250b80406066c391a9d04231c3bc7fad8fc15ec1cb5098234174950bfe8ad861f87d
7
+ data.tar.gz: 42ee71d61d1da540f3acbf318120cd5501f1dac108d02c042a0a15d0bb769adcccd8a1fe18e5abfc0051f1b4a49d152f176eb6063e299c11e3486f4027f0445d
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-codecommit/customizations'
42
42
  # @service
43
43
  module Aws::CodeCommit
44
44
 
45
- GEM_VERSION = '1.0.0'
45
+ GEM_VERSION = '1.1.0'
46
46
 
47
47
  end
@@ -303,6 +303,40 @@ module Aws::CodeCommit
303
303
  req.send_request(options)
304
304
  end
305
305
 
306
+ # Deletes a branch from a repository, unless that branch is the default
307
+ # branch for the repository.
308
+ #
309
+ # @option params [required, String] :repository_name
310
+ # The name of the repository that contains the branch to be deleted.
311
+ #
312
+ # @option params [required, String] :branch_name
313
+ # The name of the branch to delete.
314
+ #
315
+ # @return [Types::DeleteBranchOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
316
+ #
317
+ # * {Types::DeleteBranchOutput#deleted_branch #deleted_branch} => Types::BranchInfo
318
+ #
319
+ # @example Request syntax with placeholder values
320
+ #
321
+ # resp = client.delete_branch({
322
+ # repository_name: "RepositoryName", # required
323
+ # branch_name: "BranchName", # required
324
+ # })
325
+ #
326
+ # @example Response structure
327
+ #
328
+ # resp.deleted_branch.branch_name #=> String
329
+ # resp.deleted_branch.commit_id #=> String
330
+ #
331
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteBranch AWS API Documentation
332
+ #
333
+ # @overload delete_branch(params = {})
334
+ # @param [Hash] params ({})
335
+ def delete_branch(params = {}, options = {})
336
+ req = build_request(:delete_branch, params)
337
+ req.send_request(options)
338
+ end
339
+
306
340
  # Deletes a repository. If a specified repository was already deleted, a
307
341
  # null repository ID will be returned.
308
342
  #
@@ -411,7 +445,7 @@ module Aws::CodeCommit
411
445
  # The name of the repository to which the commit was made.
412
446
  #
413
447
  # @option params [required, String] :commit_id
414
- # The commit ID.
448
+ # The commit ID. Commit IDs are the full SHA of the commit.
415
449
  #
416
450
  # @return [Types::GetCommitOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
417
451
  #
@@ -426,6 +460,7 @@ module Aws::CodeCommit
426
460
  #
427
461
  # @example Response structure
428
462
  #
463
+ # resp.commit.commit_id #=> String
429
464
  # resp.commit.tree_id #=> String
430
465
  # resp.commit.parents #=> Array
431
466
  # resp.commit.parents[0] #=> String
@@ -892,7 +927,7 @@ module Aws::CodeCommit
892
927
  params: params,
893
928
  config: config)
894
929
  context[:gem_name] = 'aws-sdk-codecommit'
895
- context[:gem_version] = '1.0.0'
930
+ context[:gem_version] = '1.1.0'
896
931
  Seahorse::Client::Request.new(handlers, context)
897
932
  end
898
933
 
@@ -40,6 +40,9 @@ module Aws::CodeCommit
40
40
  CreateRepositoryOutput = Shapes::StructureShape.new(name: 'CreateRepositoryOutput')
41
41
  CreationDate = Shapes::TimestampShape.new(name: 'CreationDate')
42
42
  Date = Shapes::StringShape.new(name: 'Date')
43
+ DefaultBranchCannotBeDeletedException = Shapes::StructureShape.new(name: 'DefaultBranchCannotBeDeletedException')
44
+ DeleteBranchInput = Shapes::StructureShape.new(name: 'DeleteBranchInput')
45
+ DeleteBranchOutput = Shapes::StructureShape.new(name: 'DeleteBranchOutput')
43
46
  DeleteRepositoryInput = Shapes::StructureShape.new(name: 'DeleteRepositoryInput')
44
47
  DeleteRepositoryOutput = Shapes::StructureShape.new(name: 'DeleteRepositoryOutput')
45
48
  Difference = Shapes::StructureShape.new(name: 'Difference')
@@ -157,6 +160,7 @@ module Aws::CodeCommit
157
160
 
158
161
  BranchNameList.member = Shapes::ShapeRef.new(shape: BranchName)
159
162
 
163
+ Commit.add_member(:commit_id, Shapes::ShapeRef.new(shape: ObjectId, location_name: "commitId"))
160
164
  Commit.add_member(:tree_id, Shapes::ShapeRef.new(shape: ObjectId, location_name: "treeId"))
161
165
  Commit.add_member(:parents, Shapes::ShapeRef.new(shape: ParentList, location_name: "parents"))
162
166
  Commit.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "message"))
@@ -177,6 +181,13 @@ module Aws::CodeCommit
177
181
  CreateRepositoryOutput.add_member(:repository_metadata, Shapes::ShapeRef.new(shape: RepositoryMetadata, location_name: "repositoryMetadata"))
178
182
  CreateRepositoryOutput.struct_class = Types::CreateRepositoryOutput
179
183
 
184
+ DeleteBranchInput.add_member(:repository_name, Shapes::ShapeRef.new(shape: RepositoryName, required: true, location_name: "repositoryName"))
185
+ DeleteBranchInput.add_member(:branch_name, Shapes::ShapeRef.new(shape: BranchName, required: true, location_name: "branchName"))
186
+ DeleteBranchInput.struct_class = Types::DeleteBranchInput
187
+
188
+ DeleteBranchOutput.add_member(:deleted_branch, Shapes::ShapeRef.new(shape: BranchInfo, location_name: "deletedBranch"))
189
+ DeleteBranchOutput.struct_class = Types::DeleteBranchOutput
190
+
180
191
  DeleteRepositoryInput.add_member(:repository_name, Shapes::ShapeRef.new(shape: RepositoryName, required: true, location_name: "repositoryName"))
181
192
  DeleteRepositoryInput.struct_class = Types::DeleteRepositoryInput
182
193
 
@@ -402,6 +413,25 @@ module Aws::CodeCommit
402
413
  o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyUnavailableException)
403
414
  end)
404
415
 
416
+ api.add_operation(:delete_branch, Seahorse::Model::Operation.new.tap do |o|
417
+ o.name = "DeleteBranch"
418
+ o.http_method = "POST"
419
+ o.http_request_uri = "/"
420
+ o.input = Shapes::ShapeRef.new(shape: DeleteBranchInput)
421
+ o.output = Shapes::ShapeRef.new(shape: DeleteBranchOutput)
422
+ o.errors << Shapes::ShapeRef.new(shape: RepositoryNameRequiredException)
423
+ o.errors << Shapes::ShapeRef.new(shape: RepositoryDoesNotExistException)
424
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRepositoryNameException)
425
+ o.errors << Shapes::ShapeRef.new(shape: BranchNameRequiredException)
426
+ o.errors << Shapes::ShapeRef.new(shape: InvalidBranchNameException)
427
+ o.errors << Shapes::ShapeRef.new(shape: DefaultBranchCannotBeDeletedException)
428
+ o.errors << Shapes::ShapeRef.new(shape: EncryptionIntegrityChecksFailedException)
429
+ o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyAccessDeniedException)
430
+ o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyDisabledException)
431
+ o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyNotFoundException)
432
+ o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyUnavailableException)
433
+ end)
434
+
405
435
  api.add_operation(:delete_repository, Seahorse::Model::Operation.new.tap do |o|
406
436
  o.name = "DeleteRepository"
407
437
  o.http_method = "POST"
@@ -100,6 +100,10 @@ module Aws::CodeCommit
100
100
 
101
101
  # Returns information about a specific commit.
102
102
  #
103
+ # @!attribute [rw] commit_id
104
+ # The full SHA of the specified commit.
105
+ # @return [String]
106
+ #
103
107
  # @!attribute [rw] tree_id
104
108
  # Tree information for the specified commit.
105
109
  # @return [String]
@@ -141,6 +145,7 @@ module Aws::CodeCommit
141
145
  # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/Commit AWS API Documentation
142
146
  #
143
147
  class Commit < Struct.new(
148
+ :commit_id,
144
149
  :tree_id,
145
150
  :parents,
146
151
  :message,
@@ -244,6 +249,46 @@ module Aws::CodeCommit
244
249
  include Aws::Structure
245
250
  end
246
251
 
252
+ # Represents the input of a delete branch operation.
253
+ #
254
+ # @note When making an API call, you may pass DeleteBranchInput
255
+ # data as a hash:
256
+ #
257
+ # {
258
+ # repository_name: "RepositoryName", # required
259
+ # branch_name: "BranchName", # required
260
+ # }
261
+ #
262
+ # @!attribute [rw] repository_name
263
+ # The name of the repository that contains the branch to be deleted.
264
+ # @return [String]
265
+ #
266
+ # @!attribute [rw] branch_name
267
+ # The name of the branch to delete.
268
+ # @return [String]
269
+ #
270
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteBranchInput AWS API Documentation
271
+ #
272
+ class DeleteBranchInput < Struct.new(
273
+ :repository_name,
274
+ :branch_name)
275
+ include Aws::Structure
276
+ end
277
+
278
+ # Represents the output of a delete branch operation.
279
+ #
280
+ # @!attribute [rw] deleted_branch
281
+ # Information about the branch deleted by the operation, including the
282
+ # branch name and the commit ID that was the tip of the branch.
283
+ # @return [Types::BranchInfo]
284
+ #
285
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteBranchOutput AWS API Documentation
286
+ #
287
+ class DeleteBranchOutput < Struct.new(
288
+ :deleted_branch)
289
+ include Aws::Structure
290
+ end
291
+
247
292
  # Represents the input of a delete repository operation.
248
293
  #
249
294
  # @note When making an API call, you may pass DeleteRepositoryInput
@@ -397,7 +442,7 @@ module Aws::CodeCommit
397
442
  # @return [String]
398
443
  #
399
444
  # @!attribute [rw] commit_id
400
- # The commit ID.
445
+ # The commit ID. Commit IDs are the full SHA of the commit.
401
446
  # @return [String]
402
447
  #
403
448
  # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetCommitInput AWS API Documentation
@@ -835,7 +880,12 @@ module Aws::CodeCommit
835
880
  #
836
881
  # @!attribute [rw] branches
837
882
  # The branches that will be included in the trigger configuration. If
838
- # no branches are specified, the trigger will apply to all branches.
883
+ # you specify an empty array, the trigger will apply to all branches.
884
+ #
885
+ # <note markdown="1"> While no content is required in the array, you must include the
886
+ # array itself.
887
+ #
888
+ # </note>
839
889
  # @return [Array<String>]
840
890
  #
841
891
  # @!attribute [rw] events
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-codecommit
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-10-12 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-codecommit
61
+ changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/master/gems/aws-sdk-codecommit/CHANGELOG.md
60
62
  post_install_message:
61
63
  rdoc_options: []
62
64
  require_paths: