aws-sdk-backupgateway 1.3.0 → 1.4.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
  SHA256:
3
- metadata.gz: e0dd4a4e0418e3927f2c56d22f106efc6e3b90a233285de830054fe72e559cfc
4
- data.tar.gz: d147dcdc944e59c44bb39e07f7054c30b3ba365eb3978df9e3c54008a5e9cd5f
3
+ metadata.gz: fb2ed7e0e3674332eb19e5ebd2f0b9cb68aeb05a016117ee8adfd833b925450d
4
+ data.tar.gz: '080046744cf9383207b9854bacd576fd02a28d05315808663e50e017848fe590'
5
5
  SHA512:
6
- metadata.gz: acc3a79d9c55fdc4ec0d0b453724233de291f6c510aa175f788f7f35484244bbaacb3e2bb03714fd89e063138bae74c2193b41ea02e8b153e6a7f14df7d92600
7
- data.tar.gz: ff1a32bc241b1da3121a8124198f0e43b1761e06cf928de6e2bc55185af0e5badbe2af6a279fad6497812623803533d1ec22a0d1c8a3da31530feba19e950042
6
+ metadata.gz: f19188617e218d484c2eadaf917827e8520fb3e925f518bc15fe1788dad1b6aa0d43a04484c3ac04b3541fef70708bb05a6f8651ba3926377b751e1db567aed0
7
+ data.tar.gz: f004dfdfcbdf3e0b0692392983191ab8b6035a9737ce7b57aef663918d9f67cf12c9bf198bc15f9dbeaecef28eccca3e70b443e2370087865b0c05c02602e66c
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.4.0 (2022-06-01)
5
+ ------------------
6
+
7
+ * Feature - Adds GetGateway and UpdateGatewaySoftwareNow API and adds hypervisor name to UpdateHypervisor API
8
+
4
9
  1.3.0 (2022-02-24)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.0
1
+ 1.4.0
@@ -532,6 +532,41 @@ module Aws::BackupGateway
532
532
  req.send_request(options)
533
533
  end
534
534
 
535
+ # By providing the ARN (Amazon Resource Name), this API returns the
536
+ # gateway.
537
+ #
538
+ # @option params [required, String] :gateway_arn
539
+ # The Amazon Resource Name (ARN) of the gateway.
540
+ #
541
+ # @return [Types::GetGatewayOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
542
+ #
543
+ # * {Types::GetGatewayOutput#gateway #gateway} => Types::GatewayDetails
544
+ #
545
+ # @example Request syntax with placeholder values
546
+ #
547
+ # resp = client.get_gateway({
548
+ # gateway_arn: "GatewayArn", # required
549
+ # })
550
+ #
551
+ # @example Response structure
552
+ #
553
+ # resp.gateway.gateway_arn #=> String
554
+ # resp.gateway.gateway_display_name #=> String
555
+ # resp.gateway.gateway_type #=> String, one of "BACKUP_VM"
556
+ # resp.gateway.hypervisor_id #=> String
557
+ # resp.gateway.last_seen_time #=> Time
558
+ # resp.gateway.next_update_availability_time #=> Time
559
+ # resp.gateway.vpc_endpoint #=> String
560
+ #
561
+ # @see http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetGateway AWS API Documentation
562
+ #
563
+ # @overload get_gateway(params = {})
564
+ # @param [Hash] params ({})
565
+ def get_gateway(params = {}, options = {})
566
+ req = build_request(:get_gateway, params)
567
+ req.send_request(options)
568
+ end
569
+
535
570
  # Connect to a hypervisor by importing its configuration.
536
571
  #
537
572
  # @option params [required, String] :host
@@ -941,6 +976,41 @@ module Aws::BackupGateway
941
976
  req.send_request(options)
942
977
  end
943
978
 
979
+ # Updates the gateway virtual machine (VM) software. The request
980
+ # immediately triggers the software update.
981
+ #
982
+ # <note markdown="1"> When you make this request, you get a `200 OK` success response
983
+ # immediately. However, it might take some time for the update to
984
+ # complete.
985
+ #
986
+ # </note>
987
+ #
988
+ # @option params [required, String] :gateway_arn
989
+ # The Amazon Resource Name (ARN) of the gateway to be updated.
990
+ #
991
+ # @return [Types::UpdateGatewaySoftwareNowOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
992
+ #
993
+ # * {Types::UpdateGatewaySoftwareNowOutput#gateway_arn #gateway_arn} => String
994
+ #
995
+ # @example Request syntax with placeholder values
996
+ #
997
+ # resp = client.update_gateway_software_now({
998
+ # gateway_arn: "GatewayArn", # required
999
+ # })
1000
+ #
1001
+ # @example Response structure
1002
+ #
1003
+ # resp.gateway_arn #=> String
1004
+ #
1005
+ # @see http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/UpdateGatewaySoftwareNow AWS API Documentation
1006
+ #
1007
+ # @overload update_gateway_software_now(params = {})
1008
+ # @param [Hash] params ({})
1009
+ def update_gateway_software_now(params = {}, options = {})
1010
+ req = build_request(:update_gateway_software_now, params)
1011
+ req.send_request(options)
1012
+ end
1013
+
944
1014
  # Updates a hypervisor metadata, including its host, username, and
945
1015
  # password. Specify which hypervisor to update using the Amazon Resource
946
1016
  # Name (ARN) of the hypervisor in your request.
@@ -952,6 +1022,9 @@ module Aws::BackupGateway
952
1022
  # @option params [required, String] :hypervisor_arn
953
1023
  # The Amazon Resource Name (ARN) of the hypervisor to update.
954
1024
  #
1025
+ # @option params [String] :name
1026
+ # The updated name for the hypervisor
1027
+ #
955
1028
  # @option params [String] :password
956
1029
  # The updated password for the hypervisor.
957
1030
  #
@@ -967,6 +1040,7 @@ module Aws::BackupGateway
967
1040
  # resp = client.update_hypervisor({
968
1041
  # host: "Host",
969
1042
  # hypervisor_arn: "ServerArn", # required
1043
+ # name: "Name",
970
1044
  # password: "Password",
971
1045
  # username: "Username",
972
1046
  # })
@@ -997,7 +1071,7 @@ module Aws::BackupGateway
997
1071
  params: params,
998
1072
  config: config)
999
1073
  context[:gem_name] = 'aws-sdk-backupgateway'
1000
- context[:gem_version] = '1.3.0'
1074
+ context[:gem_version] = '1.4.0'
1001
1075
  Seahorse::Client::Request.new(handlers, context)
1002
1076
  end
1003
1077
 
@@ -30,8 +30,11 @@ module Aws::BackupGateway
30
30
  DisassociateGatewayFromServerOutput = Shapes::StructureShape.new(name: 'DisassociateGatewayFromServerOutput')
31
31
  Gateway = Shapes::StructureShape.new(name: 'Gateway')
32
32
  GatewayArn = Shapes::StringShape.new(name: 'GatewayArn')
33
+ GatewayDetails = Shapes::StructureShape.new(name: 'GatewayDetails')
33
34
  GatewayType = Shapes::StringShape.new(name: 'GatewayType')
34
35
  Gateways = Shapes::ListShape.new(name: 'Gateways')
36
+ GetGatewayInput = Shapes::StructureShape.new(name: 'GetGatewayInput')
37
+ GetGatewayOutput = Shapes::StructureShape.new(name: 'GetGatewayOutput')
35
38
  Host = Shapes::StringShape.new(name: 'Host')
36
39
  HourOfDay = Shapes::IntegerShape.new(name: 'HourOfDay')
37
40
  Hypervisor = Shapes::StructureShape.new(name: 'Hypervisor')
@@ -75,12 +78,15 @@ module Aws::BackupGateway
75
78
  UntagResourceOutput = Shapes::StructureShape.new(name: 'UntagResourceOutput')
76
79
  UpdateGatewayInformationInput = Shapes::StructureShape.new(name: 'UpdateGatewayInformationInput')
77
80
  UpdateGatewayInformationOutput = Shapes::StructureShape.new(name: 'UpdateGatewayInformationOutput')
81
+ UpdateGatewaySoftwareNowInput = Shapes::StructureShape.new(name: 'UpdateGatewaySoftwareNowInput')
82
+ UpdateGatewaySoftwareNowOutput = Shapes::StructureShape.new(name: 'UpdateGatewaySoftwareNowOutput')
78
83
  UpdateHypervisorInput = Shapes::StructureShape.new(name: 'UpdateHypervisorInput')
79
84
  UpdateHypervisorOutput = Shapes::StructureShape.new(name: 'UpdateHypervisorOutput')
80
85
  Username = Shapes::StringShape.new(name: 'Username')
81
86
  ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
82
87
  VirtualMachine = Shapes::StructureShape.new(name: 'VirtualMachine')
83
88
  VirtualMachines = Shapes::ListShape.new(name: 'VirtualMachines')
89
+ VpcEndpoint = Shapes::StringShape.new(name: 'VpcEndpoint')
84
90
  string = Shapes::StringShape.new(name: 'string')
85
91
 
86
92
  AccessDeniedException.add_member(:error_code, Shapes::ShapeRef.new(shape: string, required: true, location_name: "ErrorCode"))
@@ -132,8 +138,23 @@ module Aws::BackupGateway
132
138
  Gateway.add_member(:last_seen_time, Shapes::ShapeRef.new(shape: Time, location_name: "LastSeenTime"))
133
139
  Gateway.struct_class = Types::Gateway
134
140
 
141
+ GatewayDetails.add_member(:gateway_arn, Shapes::ShapeRef.new(shape: GatewayArn, location_name: "GatewayArn"))
142
+ GatewayDetails.add_member(:gateway_display_name, Shapes::ShapeRef.new(shape: Name, location_name: "GatewayDisplayName"))
143
+ GatewayDetails.add_member(:gateway_type, Shapes::ShapeRef.new(shape: GatewayType, location_name: "GatewayType"))
144
+ GatewayDetails.add_member(:hypervisor_id, Shapes::ShapeRef.new(shape: HypervisorId, location_name: "HypervisorId"))
145
+ GatewayDetails.add_member(:last_seen_time, Shapes::ShapeRef.new(shape: Time, location_name: "LastSeenTime"))
146
+ GatewayDetails.add_member(:next_update_availability_time, Shapes::ShapeRef.new(shape: Time, location_name: "NextUpdateAvailabilityTime"))
147
+ GatewayDetails.add_member(:vpc_endpoint, Shapes::ShapeRef.new(shape: VpcEndpoint, location_name: "VpcEndpoint"))
148
+ GatewayDetails.struct_class = Types::GatewayDetails
149
+
135
150
  Gateways.member = Shapes::ShapeRef.new(shape: Gateway)
136
151
 
152
+ GetGatewayInput.add_member(:gateway_arn, Shapes::ShapeRef.new(shape: GatewayArn, required: true, location_name: "GatewayArn"))
153
+ GetGatewayInput.struct_class = Types::GetGatewayInput
154
+
155
+ GetGatewayOutput.add_member(:gateway, Shapes::ShapeRef.new(shape: GatewayDetails, location_name: "Gateway"))
156
+ GetGatewayOutput.struct_class = Types::GetGatewayOutput
157
+
137
158
  Hypervisor.add_member(:host, Shapes::ShapeRef.new(shape: Host, location_name: "Host"))
138
159
  Hypervisor.add_member(:hypervisor_arn, Shapes::ShapeRef.new(shape: ServerArn, location_name: "HypervisorArn"))
139
160
  Hypervisor.add_member(:kms_key_arn, Shapes::ShapeRef.new(shape: KmsKeyArn, location_name: "KmsKeyArn"))
@@ -240,8 +261,15 @@ module Aws::BackupGateway
240
261
  UpdateGatewayInformationOutput.add_member(:gateway_arn, Shapes::ShapeRef.new(shape: GatewayArn, location_name: "GatewayArn"))
241
262
  UpdateGatewayInformationOutput.struct_class = Types::UpdateGatewayInformationOutput
242
263
 
264
+ UpdateGatewaySoftwareNowInput.add_member(:gateway_arn, Shapes::ShapeRef.new(shape: GatewayArn, required: true, location_name: "GatewayArn"))
265
+ UpdateGatewaySoftwareNowInput.struct_class = Types::UpdateGatewaySoftwareNowInput
266
+
267
+ UpdateGatewaySoftwareNowOutput.add_member(:gateway_arn, Shapes::ShapeRef.new(shape: GatewayArn, location_name: "GatewayArn"))
268
+ UpdateGatewaySoftwareNowOutput.struct_class = Types::UpdateGatewaySoftwareNowOutput
269
+
243
270
  UpdateHypervisorInput.add_member(:host, Shapes::ShapeRef.new(shape: Host, location_name: "Host"))
244
271
  UpdateHypervisorInput.add_member(:hypervisor_arn, Shapes::ShapeRef.new(shape: ServerArn, required: true, location_name: "HypervisorArn"))
272
+ UpdateHypervisorInput.add_member(:name, Shapes::ShapeRef.new(shape: Name, location_name: "Name"))
245
273
  UpdateHypervisorInput.add_member(:password, Shapes::ShapeRef.new(shape: Password, location_name: "Password"))
246
274
  UpdateHypervisorInput.add_member(:username, Shapes::ShapeRef.new(shape: Username, location_name: "Username"))
247
275
  UpdateHypervisorInput.struct_class = Types::UpdateHypervisorInput
@@ -338,6 +366,17 @@ module Aws::BackupGateway
338
366
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
339
367
  end)
340
368
 
369
+ api.add_operation(:get_gateway, Seahorse::Model::Operation.new.tap do |o|
370
+ o.name = "GetGateway"
371
+ o.http_method = "POST"
372
+ o.http_request_uri = "/"
373
+ o.input = Shapes::ShapeRef.new(shape: GetGatewayInput)
374
+ o.output = Shapes::ShapeRef.new(shape: GetGatewayOutput)
375
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
376
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
377
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
378
+ end)
379
+
341
380
  api.add_operation(:import_hypervisor_configuration, Seahorse::Model::Operation.new.tap do |o|
342
381
  o.name = "ImportHypervisorConfiguration"
343
382
  o.http_method = "POST"
@@ -466,6 +505,17 @@ module Aws::BackupGateway
466
505
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
467
506
  end)
468
507
 
508
+ api.add_operation(:update_gateway_software_now, Seahorse::Model::Operation.new.tap do |o|
509
+ o.name = "UpdateGatewaySoftwareNow"
510
+ o.http_method = "POST"
511
+ o.http_request_uri = "/"
512
+ o.input = Shapes::ShapeRef.new(shape: UpdateGatewaySoftwareNowInput)
513
+ o.output = Shapes::ShapeRef.new(shape: UpdateGatewaySoftwareNowOutput)
514
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
515
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
516
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
517
+ end)
518
+
469
519
  api.add_operation(:update_hypervisor, Seahorse::Model::Operation.new.tap do |o|
470
520
  o.name = "UpdateHypervisor"
471
521
  o.http_method = "POST"
@@ -274,6 +274,86 @@ module Aws::BackupGateway
274
274
  include Aws::Structure
275
275
  end
276
276
 
277
+ # The details of gateway.
278
+ #
279
+ # @!attribute [rw] gateway_arn
280
+ # The Amazon Resource Name (ARN) of the gateway. Use the
281
+ # `ListGateways` operation to return a list of gateways for your
282
+ # account and Amazon Web Services Region.
283
+ # @return [String]
284
+ #
285
+ # @!attribute [rw] gateway_display_name
286
+ # The display name of the gateway.
287
+ # @return [String]
288
+ #
289
+ # @!attribute [rw] gateway_type
290
+ # The type of the gateway type.
291
+ # @return [String]
292
+ #
293
+ # @!attribute [rw] hypervisor_id
294
+ # The hypervisor ID of the gateway.
295
+ # @return [String]
296
+ #
297
+ # @!attribute [rw] last_seen_time
298
+ # Details showing the last time Backup gateway communicated with the
299
+ # cloud, in Unix format and UTC time.
300
+ # @return [Time]
301
+ #
302
+ # @!attribute [rw] next_update_availability_time
303
+ # Details showing the next update availability time of the gateway.
304
+ # @return [Time]
305
+ #
306
+ # @!attribute [rw] vpc_endpoint
307
+ # The DNS name for the virtual private cloud (VPC) endpoint the
308
+ # gateway uses to connect to the cloud for backup gateway.
309
+ # @return [String]
310
+ #
311
+ # @see http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GatewayDetails AWS API Documentation
312
+ #
313
+ class GatewayDetails < Struct.new(
314
+ :gateway_arn,
315
+ :gateway_display_name,
316
+ :gateway_type,
317
+ :hypervisor_id,
318
+ :last_seen_time,
319
+ :next_update_availability_time,
320
+ :vpc_endpoint)
321
+ SENSITIVE = []
322
+ include Aws::Structure
323
+ end
324
+
325
+ # @note When making an API call, you may pass GetGatewayInput
326
+ # data as a hash:
327
+ #
328
+ # {
329
+ # gateway_arn: "GatewayArn", # required
330
+ # }
331
+ #
332
+ # @!attribute [rw] gateway_arn
333
+ # The Amazon Resource Name (ARN) of the gateway.
334
+ # @return [String]
335
+ #
336
+ # @see http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetGatewayInput AWS API Documentation
337
+ #
338
+ class GetGatewayInput < Struct.new(
339
+ :gateway_arn)
340
+ SENSITIVE = []
341
+ include Aws::Structure
342
+ end
343
+
344
+ # @!attribute [rw] gateway
345
+ # By providing the ARN (Amazon Resource Name), this API returns the
346
+ # gateway.
347
+ # @return [Types::GatewayDetails]
348
+ #
349
+ # @see http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetGatewayOutput AWS API Documentation
350
+ #
351
+ class GetGatewayOutput < Struct.new(
352
+ :gateway)
353
+ SENSITIVE = []
354
+ include Aws::Structure
355
+ end
356
+
277
357
  # Represents the hypervisor's permissions to which the gateway will
278
358
  # connect.
279
359
  #
@@ -678,7 +758,7 @@ module Aws::BackupGateway
678
758
  # @return [String]
679
759
  #
680
760
  # @!attribute [rw] value
681
- # The key part of a value's key-value pair.
761
+ # The value part of a tag's key-value pair.
682
762
  # @return [String]
683
763
  #
684
764
  # @see http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/Tag AWS API Documentation
@@ -851,12 +931,44 @@ module Aws::BackupGateway
851
931
  include Aws::Structure
852
932
  end
853
933
 
934
+ # @note When making an API call, you may pass UpdateGatewaySoftwareNowInput
935
+ # data as a hash:
936
+ #
937
+ # {
938
+ # gateway_arn: "GatewayArn", # required
939
+ # }
940
+ #
941
+ # @!attribute [rw] gateway_arn
942
+ # The Amazon Resource Name (ARN) of the gateway to be updated.
943
+ # @return [String]
944
+ #
945
+ # @see http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/UpdateGatewaySoftwareNowInput AWS API Documentation
946
+ #
947
+ class UpdateGatewaySoftwareNowInput < Struct.new(
948
+ :gateway_arn)
949
+ SENSITIVE = []
950
+ include Aws::Structure
951
+ end
952
+
953
+ # @!attribute [rw] gateway_arn
954
+ # The Amazon Resource Name (ARN) of the gateway you updated.
955
+ # @return [String]
956
+ #
957
+ # @see http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/UpdateGatewaySoftwareNowOutput AWS API Documentation
958
+ #
959
+ class UpdateGatewaySoftwareNowOutput < Struct.new(
960
+ :gateway_arn)
961
+ SENSITIVE = []
962
+ include Aws::Structure
963
+ end
964
+
854
965
  # @note When making an API call, you may pass UpdateHypervisorInput
855
966
  # data as a hash:
856
967
  #
857
968
  # {
858
969
  # host: "Host",
859
970
  # hypervisor_arn: "ServerArn", # required
971
+ # name: "Name",
860
972
  # password: "Password",
861
973
  # username: "Username",
862
974
  # }
@@ -870,6 +982,10 @@ module Aws::BackupGateway
870
982
  # The Amazon Resource Name (ARN) of the hypervisor to update.
871
983
  # @return [String]
872
984
  #
985
+ # @!attribute [rw] name
986
+ # The updated name for the hypervisor
987
+ # @return [String]
988
+ #
873
989
  # @!attribute [rw] password
874
990
  # The updated password for the hypervisor.
875
991
  # @return [String]
@@ -883,6 +999,7 @@ module Aws::BackupGateway
883
999
  class UpdateHypervisorInput < Struct.new(
884
1000
  :host,
885
1001
  :hypervisor_arn,
1002
+ :name,
886
1003
  :password,
887
1004
  :username)
888
1005
  SENSITIVE = [:password, :username]
@@ -943,7 +1060,8 @@ module Aws::BackupGateway
943
1060
  # @return [String]
944
1061
  #
945
1062
  # @!attribute [rw] resource_arn
946
- # The Amazon Resource Name (ARN) of the virtual machine.
1063
+ # The Amazon Resource Name (ARN) of the virtual machine. For example,
1064
+ # `arn:aws:backup-gateway:us-west-1:0000000000000:vm/vm-0000ABCDEFGIJKL`.
947
1065
  # @return [String]
948
1066
  #
949
1067
  # @see http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/VirtualMachine AWS API Documentation
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-backupgateway/customizations'
48
48
  # @!group service
49
49
  module Aws::BackupGateway
50
50
 
51
- GEM_VERSION = '1.3.0'
51
+ GEM_VERSION = '1.4.0'
52
52
 
53
53
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-backupgateway
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.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: 2022-02-24 00:00:00.000000000 Z
11
+ date: 2022-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core