aws-sdk-schemas 1.8.0 → 1.9.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: 5faf0e80c4ff53e7ec13b7a75c11d70e791829fab1f451d93443b381aec0e3b3
4
- data.tar.gz: ad7e49554f7b96c25456b694613f8fc71ed58fbfa84cad4bf8412bfd35781b22
3
+ metadata.gz: ca4acb21e23300b51a76959d34026961568280a9e6118c13623372ba88021c83
4
+ data.tar.gz: 98ec2ae0657b05af7e77d5c5075e5e55e5f870c8b22b8df6994b3d45c9015470
5
5
  SHA512:
6
- metadata.gz: c17605131da0c7e4e076da7c148c90484e3964c7788e7487e7296f6594d938af3d57c7e9bedaac7e428b4f2e4dc1cd5be91556315a7354da65321f2a71a3bb1b
7
- data.tar.gz: 60a5b3fb6a86bc30c5977876c735d0aaf43431d63fbd1b475d6659146a8a1999dbb3fab075f1fb28c85228b215be7ed809d64ac2cd122141e85556ee3afdcc4a
6
+ metadata.gz: 290d2ee5fce756301e38218086796868e8bdf540e2243e7258392d93fed49481a356b82a129e3f2eae7e4c1af4295a758121273e8bc3e4db0637bf776a5bd7fb
7
+ data.tar.gz: d5b264e4d5e0112d25b0d2df3c4765d4e5e8e873460c00e682b3dabd993b85b248b3aff3366619931125d2725976aae5b3fcf50e4779e174a62b4a523b9bfea1
@@ -49,6 +49,6 @@ require_relative 'aws-sdk-schemas/customizations'
49
49
  # @!group service
50
50
  module Aws::Schemas
51
51
 
52
- GEM_VERSION = '1.8.0'
52
+ GEM_VERSION = '1.9.0'
53
53
 
54
54
  end
@@ -982,6 +982,7 @@ module Aws::Schemas
982
982
  # resp.schema_versions[0].schema_arn #=> String
983
983
  # resp.schema_versions[0].schema_name #=> String
984
984
  # resp.schema_versions[0].schema_version #=> String
985
+ # resp.schema_versions[0].type #=> String
985
986
  #
986
987
  # @see http://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/ListSchemaVersions AWS API Documentation
987
988
  #
@@ -1182,6 +1183,7 @@ module Aws::Schemas
1182
1183
  # resp.schemas[0].schema_versions #=> Array
1183
1184
  # resp.schemas[0].schema_versions[0].created_date #=> Time
1184
1185
  # resp.schemas[0].schema_versions[0].schema_version #=> String
1186
+ # resp.schemas[0].schema_versions[0].type #=> String
1185
1187
  #
1186
1188
  # @see http://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/SearchSchemas AWS API Documentation
1187
1189
  #
@@ -1442,6 +1444,50 @@ module Aws::Schemas
1442
1444
  req.send_request(options)
1443
1445
  end
1444
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
+
1445
1491
  # @!endgroup
1446
1492
 
1447
1493
  # @param params ({})
@@ -1455,7 +1501,7 @@ module Aws::Schemas
1455
1501
  params: params,
1456
1502
  config: config)
1457
1503
  context[:gem_name] = 'aws-sdk-schemas'
1458
- context[:gem_version] = '1.8.0'
1504
+ context[:gem_version] = '1.9.0'
1459
1505
  Seahorse::Client::Request.new(handlers, context)
1460
1506
  end
1461
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.8.0
4
+ version: 1.9.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-09-15 00:00:00.000000000 Z
11
+ date: 2020-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core