aws-sdk-schemas 1.6.0 → 1.11.0

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
  SHA256:
3
- metadata.gz: 6dc03c134977ebf2da0d485201dc37d4d005c8bd6540516e3fd6d67dd1f8901b
4
- data.tar.gz: 4ebb0b7803850c26a2f5b46e72966e7b815c14b5d57445258be59aa2013353c9
3
+ metadata.gz: 56dda863bca4c86629b47add0933c2bb351da883092f7a573dd84d1bbb025ee3
4
+ data.tar.gz: f06d2464f0243b48fb1a9604a93273f6716e8b9acc7fe68da356a21f27cbc441
5
5
  SHA512:
6
- metadata.gz: 49caa46cd05033b48567456b73b3bffc8a128aab5392a6578ff55dd1f60b3d2b8a9c7b186aa1b90fd13163e5158b31e4596bad6087d2c3971f59e437a628a479
7
- data.tar.gz: 5b5c17f4533f6b93de4b9c53ee00ce75cd28349eb2dcd921a9016f8113e94b28239fcedc421b6e5548fc1e2b7e18a6c1e0c14d36aee07e66de8d8b5325558e84
6
+ metadata.gz: 1b696f62db3b829d86bf8548ca2e5f99b8f1614d9617ea951e8908048fe3d3d264d0bbd8f581c364a3f6741b5bd0467d931fcb514e77250b025089a75fb34e17
7
+ data.tar.gz: 342b35aa3f61a928a930450ccedd5afe7753aaf960eacb05f1a9e101b089ae25b27f1f94f290eccd670d34a92724f6a1f9fa1dfd65edbf8b36fadbe1b08e63a8
@@ -7,6 +7,7 @@
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
10
+
10
11
  require 'aws-sdk-core'
11
12
  require 'aws-sigv4'
12
13
 
@@ -45,9 +46,9 @@ require_relative 'aws-sdk-schemas/customizations'
45
46
  #
46
47
  # See {Errors} for more information.
47
48
  #
48
- # @service
49
+ # @!group service
49
50
  module Aws::Schemas
50
51
 
51
- GEM_VERSION = '1.6.0'
52
+ GEM_VERSION = '1.11.0'
52
53
 
53
54
  end
@@ -85,13 +85,28 @@ module Aws::Schemas
85
85
  # * `Aws::Credentials` - Used for configuring static, non-refreshing
86
86
  # credentials.
87
87
  #
88
+ # * `Aws::SharedCredentials` - Used for loading static credentials from a
89
+ # shared file, such as `~/.aws/config`.
90
+ #
91
+ # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
92
+ #
93
+ # * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
94
+ # assume a role after providing credentials via the web.
95
+ #
96
+ # * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
97
+ # access token generated from `aws login`.
98
+ #
99
+ # * `Aws::ProcessCredentials` - Used for loading credentials from a
100
+ # process that outputs to stdout.
101
+ #
88
102
  # * `Aws::InstanceProfileCredentials` - Used for loading credentials
89
103
  # from an EC2 IMDS on an EC2 instance.
90
104
  #
91
- # * `Aws::SharedCredentials` - Used for loading credentials from a
92
- # shared file, such as `~/.aws/config`.
105
+ # * `Aws::ECSCredentials` - Used for loading credentials from
106
+ # instances running in ECS.
93
107
  #
94
- # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
108
+ # * `Aws::CognitoIdentityCredentials` - Used for loading credentials
109
+ # from the Cognito Identity service.
95
110
  #
96
111
  # When `:credentials` are not configured directly, the following
97
112
  # locations will be searched for credentials:
@@ -101,10 +116,10 @@ module Aws::Schemas
101
116
  # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
102
117
  # * `~/.aws/credentials`
103
118
  # * `~/.aws/config`
104
- # * EC2 IMDS instance profile - When used by default, the timeouts are
105
- # very aggressive. Construct and pass an instance of
106
- # `Aws::InstanceProfileCredentails` to enable retries and extended
107
- # timeouts.
119
+ # * EC2/ECS IMDS instance profile - When used by default, the timeouts
120
+ # are very aggressive. Construct and pass an instance of
121
+ # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
122
+ # enable retries and extended timeouts.
108
123
  #
109
124
  # @option options [required, String] :region
110
125
  # The AWS region to connect to. The configured `:region` is
@@ -967,6 +982,7 @@ module Aws::Schemas
967
982
  # resp.schema_versions[0].schema_arn #=> String
968
983
  # resp.schema_versions[0].schema_name #=> String
969
984
  # resp.schema_versions[0].schema_version #=> String
985
+ # resp.schema_versions[0].type #=> String
970
986
  #
971
987
  # @see http://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/ListSchemaVersions AWS API Documentation
972
988
  #
@@ -1167,6 +1183,7 @@ module Aws::Schemas
1167
1183
  # resp.schemas[0].schema_versions #=> Array
1168
1184
  # resp.schemas[0].schema_versions[0].created_date #=> Time
1169
1185
  # resp.schemas[0].schema_versions[0].schema_version #=> String
1186
+ # resp.schemas[0].schema_versions[0].type #=> String
1170
1187
  #
1171
1188
  # @see http://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/SearchSchemas AWS API Documentation
1172
1189
  #
@@ -1427,6 +1444,50 @@ module Aws::Schemas
1427
1444
  req.send_request(options)
1428
1445
  end
1429
1446
 
1447
+ # Exports a schema to a different specification.
1448
+ #
1449
+ # @option params [required, String] :registry_name
1450
+ #
1451
+ # @option params [required, String] :schema_name
1452
+ #
1453
+ # @option params [String] :schema_version
1454
+ #
1455
+ # @option params [required, String] :type
1456
+ #
1457
+ # @return [Types::ExportSchemaResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1458
+ #
1459
+ # * {Types::ExportSchemaResponse#content #content} => String
1460
+ # * {Types::ExportSchemaResponse#schema_arn #schema_arn} => String
1461
+ # * {Types::ExportSchemaResponse#schema_name #schema_name} => String
1462
+ # * {Types::ExportSchemaResponse#schema_version #schema_version} => String
1463
+ # * {Types::ExportSchemaResponse#type #type} => String
1464
+ #
1465
+ # @example Request syntax with placeholder values
1466
+ #
1467
+ # resp = client.export_schema({
1468
+ # registry_name: "__string", # required
1469
+ # schema_name: "__string", # required
1470
+ # schema_version: "__string",
1471
+ # type: "__string", # required
1472
+ # })
1473
+ #
1474
+ # @example Response structure
1475
+ #
1476
+ # resp.content #=> String
1477
+ # resp.schema_arn #=> String
1478
+ # resp.schema_name #=> String
1479
+ # resp.schema_version #=> String
1480
+ # resp.type #=> String
1481
+ #
1482
+ # @see http://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/ExportSchema AWS API Documentation
1483
+ #
1484
+ # @overload export_schema(params = {})
1485
+ # @param [Hash] params ({})
1486
+ def export_schema(params = {}, options = {})
1487
+ req = build_request(:export_schema, params)
1488
+ req.send_request(options)
1489
+ end
1490
+
1430
1491
  # @!endgroup
1431
1492
 
1432
1493
  # @param params ({})
@@ -1440,7 +1501,7 @@ module Aws::Schemas
1440
1501
  params: params,
1441
1502
  config: config)
1442
1503
  context[:gem_name] = 'aws-sdk-schemas'
1443
- context[:gem_version] = '1.6.0'
1504
+ context[:gem_version] = '1.11.0'
1444
1505
  Seahorse::Client::Request.new(handlers, context)
1445
1506
  end
1446
1507
 
@@ -46,6 +46,9 @@ module Aws::Schemas
46
46
  DiscovererStateOutput = Shapes::StructureShape.new(name: 'DiscovererStateOutput')
47
47
  DiscovererSummary = Shapes::StructureShape.new(name: 'DiscovererSummary')
48
48
  ErrorOutput = Shapes::StructureShape.new(name: 'ErrorOutput')
49
+ ExportSchemaOutput = Shapes::StructureShape.new(name: 'ExportSchemaOutput')
50
+ ExportSchemaRequest = Shapes::StructureShape.new(name: 'ExportSchemaRequest')
51
+ ExportSchemaResponse = Shapes::StructureShape.new(name: 'ExportSchemaResponse')
49
52
  ForbiddenException = Shapes::StructureShape.new(name: 'ForbiddenException')
50
53
  GetCodeBindingSourceOutput = Shapes::StringShape.new(name: 'GetCodeBindingSourceOutput')
51
54
  GetCodeBindingSourceRequest = Shapes::StructureShape.new(name: 'GetCodeBindingSourceRequest')
@@ -315,6 +318,26 @@ module Aws::Schemas
315
318
  ErrorOutput.add_member(:message, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "Message"))
316
319
  ErrorOutput.struct_class = Types::ErrorOutput
317
320
 
321
+ ExportSchemaOutput.add_member(:content, Shapes::ShapeRef.new(shape: __string, location_name: "Content"))
322
+ ExportSchemaOutput.add_member(:schema_arn, Shapes::ShapeRef.new(shape: __string, location_name: "SchemaArn"))
323
+ ExportSchemaOutput.add_member(:schema_name, Shapes::ShapeRef.new(shape: __string, location_name: "SchemaName"))
324
+ ExportSchemaOutput.add_member(:schema_version, Shapes::ShapeRef.new(shape: __string, location_name: "SchemaVersion"))
325
+ ExportSchemaOutput.add_member(:type, Shapes::ShapeRef.new(shape: __string, location_name: "Type"))
326
+ ExportSchemaOutput.struct_class = Types::ExportSchemaOutput
327
+
328
+ ExportSchemaRequest.add_member(:registry_name, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "registryName"))
329
+ ExportSchemaRequest.add_member(:schema_name, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "schemaName"))
330
+ ExportSchemaRequest.add_member(:schema_version, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "schemaVersion"))
331
+ ExportSchemaRequest.add_member(:type, Shapes::ShapeRef.new(shape: __string, required: true, location: "querystring", location_name: "type"))
332
+ ExportSchemaRequest.struct_class = Types::ExportSchemaRequest
333
+
334
+ ExportSchemaResponse.add_member(:content, Shapes::ShapeRef.new(shape: __string, location_name: "Content"))
335
+ ExportSchemaResponse.add_member(:schema_arn, Shapes::ShapeRef.new(shape: __string, location_name: "SchemaArn"))
336
+ ExportSchemaResponse.add_member(:schema_name, Shapes::ShapeRef.new(shape: __string, location_name: "SchemaName"))
337
+ ExportSchemaResponse.add_member(:schema_version, Shapes::ShapeRef.new(shape: __string, location_name: "SchemaVersion"))
338
+ ExportSchemaResponse.add_member(:type, Shapes::ShapeRef.new(shape: __string, location_name: "Type"))
339
+ ExportSchemaResponse.struct_class = Types::ExportSchemaResponse
340
+
318
341
  ForbiddenException.add_member(:code, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "Code"))
319
342
  ForbiddenException.add_member(:message, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "Message"))
320
343
  ForbiddenException.struct_class = Types::ForbiddenException
@@ -514,6 +537,7 @@ module Aws::Schemas
514
537
  SchemaVersionSummary.add_member(:schema_arn, Shapes::ShapeRef.new(shape: __string, location_name: "SchemaArn"))
515
538
  SchemaVersionSummary.add_member(:schema_name, Shapes::ShapeRef.new(shape: __string, location_name: "SchemaName"))
516
539
  SchemaVersionSummary.add_member(:schema_version, Shapes::ShapeRef.new(shape: __string, location_name: "SchemaVersion"))
540
+ SchemaVersionSummary.add_member(:type, Shapes::ShapeRef.new(shape: __string, location_name: "Type"))
517
541
  SchemaVersionSummary.struct_class = Types::SchemaVersionSummary
518
542
 
519
543
  SearchSchemaSummary.add_member(:registry_name, Shapes::ShapeRef.new(shape: __string, location_name: "RegistryName"))
@@ -524,6 +548,7 @@ module Aws::Schemas
524
548
 
525
549
  SearchSchemaVersionSummary.add_member(:created_date, Shapes::ShapeRef.new(shape: __timestampIso8601, location_name: "CreatedDate"))
526
550
  SearchSchemaVersionSummary.add_member(:schema_version, Shapes::ShapeRef.new(shape: __string, location_name: "SchemaVersion"))
551
+ SearchSchemaVersionSummary.add_member(:type, Shapes::ShapeRef.new(shape: __string, location_name: "Type"))
527
552
  SearchSchemaVersionSummary.struct_class = Types::SearchSchemaVersionSummary
528
553
 
529
554
  SearchSchemasOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location_name: "NextToken"))
@@ -1111,6 +1136,21 @@ module Aws::Schemas
1111
1136
  o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
1112
1137
  o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
1113
1138
  end)
1139
+
1140
+ api.add_operation(:export_schema, Seahorse::Model::Operation.new.tap do |o|
1141
+ o.name = "ExportSchema"
1142
+ o.http_method = "GET"
1143
+ o.http_request_uri = "/v1/registries/name/{registryName}/schemas/name/{schemaName}/export"
1144
+ o.input = Shapes::ShapeRef.new(shape: ExportSchemaRequest)
1145
+ o.output = Shapes::ShapeRef.new(shape: ExportSchemaResponse)
1146
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1147
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
1148
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
1149
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
1150
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
1151
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
1152
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
1153
+ end)
1114
1154
  end
1115
1155
 
1116
1156
  end
@@ -1714,12 +1714,16 @@ module Aws::Schemas
1714
1714
  # The version number of the schema.
1715
1715
  # @return [String]
1716
1716
  #
1717
+ # @!attribute [rw] type
1718
+ # @return [String]
1719
+ #
1717
1720
  # @see http://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/SchemaVersionSummary AWS API Documentation
1718
1721
  #
1719
1722
  class SchemaVersionSummary < Struct.new(
1720
1723
  :schema_arn,
1721
1724
  :schema_name,
1722
- :schema_version)
1725
+ :schema_version,
1726
+ :type)
1723
1727
  SENSITIVE = []
1724
1728
  include Aws::Structure
1725
1729
  end
@@ -1759,11 +1763,15 @@ module Aws::Schemas
1759
1763
  # The version number of the schema
1760
1764
  # @return [String]
1761
1765
  #
1766
+ # @!attribute [rw] type
1767
+ # @return [String]
1768
+ #
1762
1769
  # @see http://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/SearchSchemaVersionSummary AWS API Documentation
1763
1770
  #
1764
1771
  class SearchSchemaVersionSummary < Struct.new(
1765
1772
  :created_date,
1766
- :schema_version)
1773
+ :schema_version,
1774
+ :type)
1767
1775
  SENSITIVE = []
1768
1776
  include Aws::Structure
1769
1777
  end
@@ -2274,5 +2282,97 @@ module Aws::Schemas
2274
2282
  include Aws::Structure
2275
2283
  end
2276
2284
 
2285
+ # @!attribute [rw] content
2286
+ # The content of the schema.
2287
+ # @return [String]
2288
+ #
2289
+ # @!attribute [rw] schema_arn
2290
+ # The ARN of the schema to export.
2291
+ # @return [String]
2292
+ #
2293
+ # @!attribute [rw] schema_name
2294
+ # The name of the schema to export.
2295
+ # @return [String]
2296
+ #
2297
+ # @!attribute [rw] schema_version
2298
+ # The version of the schema to export.
2299
+ # @return [String]
2300
+ #
2301
+ # @!attribute [rw] type
2302
+ # The type of schema to export.
2303
+ # @return [String]
2304
+ #
2305
+ # @see http://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/ExportSchemaOutput AWS API Documentation
2306
+ #
2307
+ class ExportSchemaOutput < Struct.new(
2308
+ :content,
2309
+ :schema_arn,
2310
+ :schema_name,
2311
+ :schema_version,
2312
+ :type)
2313
+ SENSITIVE = []
2314
+ include Aws::Structure
2315
+ end
2316
+
2317
+ # @note When making an API call, you may pass ExportSchemaRequest
2318
+ # data as a hash:
2319
+ #
2320
+ # {
2321
+ # registry_name: "__string", # required
2322
+ # schema_name: "__string", # required
2323
+ # schema_version: "__string",
2324
+ # type: "__string", # required
2325
+ # }
2326
+ #
2327
+ # @!attribute [rw] registry_name
2328
+ # @return [String]
2329
+ #
2330
+ # @!attribute [rw] schema_name
2331
+ # @return [String]
2332
+ #
2333
+ # @!attribute [rw] schema_version
2334
+ # @return [String]
2335
+ #
2336
+ # @!attribute [rw] type
2337
+ # @return [String]
2338
+ #
2339
+ # @see http://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/ExportSchemaRequest AWS API Documentation
2340
+ #
2341
+ class ExportSchemaRequest < Struct.new(
2342
+ :registry_name,
2343
+ :schema_name,
2344
+ :schema_version,
2345
+ :type)
2346
+ SENSITIVE = []
2347
+ include Aws::Structure
2348
+ end
2349
+
2350
+ # @!attribute [rw] content
2351
+ # @return [String]
2352
+ #
2353
+ # @!attribute [rw] schema_arn
2354
+ # @return [String]
2355
+ #
2356
+ # @!attribute [rw] schema_name
2357
+ # @return [String]
2358
+ #
2359
+ # @!attribute [rw] schema_version
2360
+ # @return [String]
2361
+ #
2362
+ # @!attribute [rw] type
2363
+ # @return [String]
2364
+ #
2365
+ # @see http://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/ExportSchemaResponse AWS API Documentation
2366
+ #
2367
+ class ExportSchemaResponse < Struct.new(
2368
+ :content,
2369
+ :schema_arn,
2370
+ :schema_name,
2371
+ :schema_version,
2372
+ :type)
2373
+ SENSITIVE = []
2374
+ include Aws::Structure
2375
+ end
2376
+
2277
2377
  end
2278
2378
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-schemas
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.11.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: 2020-06-23 00:00:00.000000000 Z
11
+ date: 2021-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.99.0
22
+ version: 3.112.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.99.0
32
+ version: 3.112.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement