aws-sdk-core 2.1.3 → 2.1.4
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/apis/codecommit/2015-04-13/api-2.json +885 -0
- data/apis/codecommit/2015-04-13/paginators-1.json +14 -0
- data/apis/codepipeline/2015-07-09/api-2.json +1640 -0
- data/apis/ecs/2014-11-13/api-2.json +2 -1
- data/apis/email/2010-12-01/api-2.json +163 -2
- data/apis/iam/2010-05-08/api-2.json +346 -17
- data/apis/sts/2011-06-15/api-2.json +2 -2
- data/lib/aws-sdk-core.rb +4 -8
- data/lib/aws-sdk-core/api/builder.rb +8 -0
- data/lib/aws-sdk-core/api/shape_map.rb +10 -8
- data/lib/aws-sdk-core/codecommit.rb +5 -0
- data/lib/aws-sdk-core/codepipeline.rb +4 -0
- data/lib/aws-sdk-core/type_builder.rb +14 -0
- data/lib/aws-sdk-core/version.rb +1 -1
- metadata +8 -2
@@ -275,7 +275,7 @@
|
|
275
275
|
"PrincipalArn":{"shape":"arnType"},
|
276
276
|
"SAMLAssertion":{"shape":"SAMLAssertionType"},
|
277
277
|
"Policy":{"shape":"sessionPolicyDocumentType"},
|
278
|
-
"DurationSeconds":{"shape":"
|
278
|
+
"DurationSeconds":{"shape":"roleDurationSecondsType"}
|
279
279
|
}
|
280
280
|
},
|
281
281
|
"AssumeRoleWithSAMLResponse":{
|
@@ -304,7 +304,7 @@
|
|
304
304
|
"WebIdentityToken":{"shape":"clientTokenType"},
|
305
305
|
"ProviderId":{"shape":"urlType"},
|
306
306
|
"Policy":{"shape":"sessionPolicyDocumentType"},
|
307
|
-
"DurationSeconds":{"shape":"
|
307
|
+
"DurationSeconds":{"shape":"roleDurationSecondsType"}
|
308
308
|
}
|
309
309
|
},
|
310
310
|
"AssumeRoleWithWebIdentityResponse":{
|
data/lib/aws-sdk-core.rb
CHANGED
@@ -26,7 +26,9 @@ module Aws
|
|
26
26
|
CloudTrail
|
27
27
|
CloudWatch
|
28
28
|
CloudWatchLogs
|
29
|
+
CodeCommit
|
29
30
|
CodeDeploy
|
31
|
+
CodePipeline
|
30
32
|
CognitoIdentity
|
31
33
|
CognitoSync
|
32
34
|
ConfigService
|
@@ -99,6 +101,7 @@ module Aws
|
|
99
101
|
autoload :SharedCredentials, 'aws-sdk-core/shared_credentials'
|
100
102
|
autoload :Structure, 'aws-sdk-core/structure'
|
101
103
|
autoload :TreeHash, 'aws-sdk-core/tree_hash'
|
104
|
+
autoload :TypeBuilder, 'aws-sdk-core/type_builder'
|
102
105
|
autoload :VERSION, 'aws-sdk-core/version'
|
103
106
|
|
104
107
|
# @api private
|
@@ -347,18 +350,11 @@ module Aws
|
|
347
350
|
|
348
351
|
# build service client classes
|
349
352
|
service_added do |name, svc_module, options|
|
353
|
+
options[:type_builder] ||= TypeBuilder.new(svc_module)
|
350
354
|
svc_module.const_set(:Client, Client.define(name, options))
|
351
355
|
svc_module.const_set(:Errors, Module.new { extend Errors::DynamicErrors })
|
352
356
|
end
|
353
357
|
|
354
|
-
# define a struct class for each client data type
|
355
|
-
service_added do |name, svc_module, options|
|
356
|
-
svc_module.const_set(:Types, Module.new)
|
357
|
-
svc_module::Client.api.metadata['shapes'].each_structure do |shape|
|
358
|
-
svc_module::Types.const_set(shape.name, shape[:struct_class])
|
359
|
-
end
|
360
|
-
end
|
361
|
-
|
362
358
|
# enable response paging
|
363
359
|
service_added do |name, svc_module, options|
|
364
360
|
if paginators = options[:paginators]
|
@@ -38,6 +38,7 @@ module Aws
|
|
38
38
|
api = build_api(definition)
|
39
39
|
shapes = build_shape_map(definition, api, docs)
|
40
40
|
build_operations(definition, api, shapes, docs)
|
41
|
+
build_struct_classes(shapes, options)
|
41
42
|
api
|
42
43
|
end
|
43
44
|
|
@@ -86,6 +87,13 @@ module Aws
|
|
86
87
|
op
|
87
88
|
end
|
88
89
|
|
90
|
+
def build_struct_classes(shapes, options)
|
91
|
+
type_builder = options[:type_builder] || TypeBuilder.new(Module.new)
|
92
|
+
shapes.each_structure do |shape|
|
93
|
+
shape[:struct_class] = type_builder.build_type(shape, shapes)
|
94
|
+
end
|
95
|
+
end
|
96
|
+
|
89
97
|
def underscore(str)
|
90
98
|
Seahorse::Util.underscore(str).to_sym
|
91
99
|
end
|
@@ -4,12 +4,6 @@ module Aws
|
|
4
4
|
|
5
5
|
include Seahorse::Model::Shapes
|
6
6
|
|
7
|
-
EMPTY_REF = begin
|
8
|
-
shape = StructureShape.new
|
9
|
-
shape[:struct_class] = Aws::EmptyStructure
|
10
|
-
ShapeRef.new(shape: shape)
|
11
|
-
end
|
12
|
-
|
13
7
|
SHAPE_CLASSES = {
|
14
8
|
'blob' => BlobShape,
|
15
9
|
'byte' => StringShape,
|
@@ -70,7 +64,7 @@ module Aws
|
|
70
64
|
documentation: documentation,
|
71
65
|
metadata: meta)
|
72
66
|
else
|
73
|
-
|
67
|
+
empty_ref
|
74
68
|
end
|
75
69
|
end
|
76
70
|
|
@@ -102,7 +96,6 @@ module Aws
|
|
102
96
|
target: "#{shape.name}$#{member_name}",
|
103
97
|
))
|
104
98
|
end
|
105
|
-
shape[:struct_class] = Structure.new(*shape.member_names)
|
106
99
|
when ListShape
|
107
100
|
shape.member = shape_ref(
|
108
101
|
traits.delete('member'),
|
@@ -131,6 +124,15 @@ module Aws
|
|
131
124
|
end
|
132
125
|
end
|
133
126
|
|
127
|
+
def empty_ref
|
128
|
+
@empty_ref ||= begin
|
129
|
+
shape = StructureShape.new
|
130
|
+
shape.name = 'EmptyStructure'
|
131
|
+
@shapes['EmptyStructure'] = shape
|
132
|
+
ShapeRef.new(shape: shape)
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
134
136
|
def underscore(str)
|
135
137
|
Seahorse::Util.underscore(str).to_sym
|
136
138
|
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module Aws
|
2
|
+
# @api private
|
3
|
+
class TypeBuilder
|
4
|
+
|
5
|
+
def initialize(svc_module)
|
6
|
+
@types_module = svc_module.const_set(:Types, Module.new)
|
7
|
+
end
|
8
|
+
|
9
|
+
def build_type(shape, shapes)
|
10
|
+
@types_module.const_set(shape.name, Structure.new(*shape.member_names))
|
11
|
+
end
|
12
|
+
|
13
|
+
end
|
14
|
+
end
|
data/lib/aws-sdk-core/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.4
|
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: 2015-07-
|
11
|
+
date: 2015-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jmespath
|
@@ -48,8 +48,11 @@ files:
|
|
48
48
|
- apis/cloudsearchdomain/2013-01-01/api-2.json
|
49
49
|
- apis/cloudtrail/2013-11-01/api-2.json
|
50
50
|
- apis/cloudtrail/2013-11-01/paginators-1.json
|
51
|
+
- apis/codecommit/2015-04-13/api-2.json
|
52
|
+
- apis/codecommit/2015-04-13/paginators-1.json
|
51
53
|
- apis/codedeploy/2014-10-06/api-2.json
|
52
54
|
- apis/codedeploy/2014-10-06/paginators-1.json
|
55
|
+
- apis/codepipeline/2015-07-09/api-2.json
|
53
56
|
- apis/cognito-identity/2014-06-30/api-2.json
|
54
57
|
- apis/cognito-sync/2014-06-30/api-2.json
|
55
58
|
- apis/config/2014-11-12/api-2.json
|
@@ -177,7 +180,9 @@ files:
|
|
177
180
|
- lib/aws-sdk-core/cloudtrail.rb
|
178
181
|
- lib/aws-sdk-core/cloudwatch.rb
|
179
182
|
- lib/aws-sdk-core/cloudwatchlogs.rb
|
183
|
+
- lib/aws-sdk-core/codecommit.rb
|
180
184
|
- lib/aws-sdk-core/codedeploy.rb
|
185
|
+
- lib/aws-sdk-core/codepipeline.rb
|
181
186
|
- lib/aws-sdk-core/cognitoidentity.rb
|
182
187
|
- lib/aws-sdk-core/cognitosync.rb
|
183
188
|
- lib/aws-sdk-core/configservice.rb
|
@@ -308,6 +313,7 @@ files:
|
|
308
313
|
- lib/aws-sdk-core/support.rb
|
309
314
|
- lib/aws-sdk-core/swf.rb
|
310
315
|
- lib/aws-sdk-core/tree_hash.rb
|
316
|
+
- lib/aws-sdk-core/type_builder.rb
|
311
317
|
- lib/aws-sdk-core/version.rb
|
312
318
|
- lib/aws-sdk-core/waiters/errors.rb
|
313
319
|
- lib/aws-sdk-core/waiters/null_provider.rb
|