aws-sdk-backupgateway 1.5.0 → 1.7.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.
@@ -17,11 +17,15 @@ module Aws::BackupGateway
17
17
  ActivationKey = Shapes::StringShape.new(name: 'ActivationKey')
18
18
  AssociateGatewayToServerInput = Shapes::StructureShape.new(name: 'AssociateGatewayToServerInput')
19
19
  AssociateGatewayToServerOutput = Shapes::StructureShape.new(name: 'AssociateGatewayToServerOutput')
20
+ AverageUploadRateLimit = Shapes::IntegerShape.new(name: 'AverageUploadRateLimit')
21
+ BandwidthRateLimitInterval = Shapes::StructureShape.new(name: 'BandwidthRateLimitInterval')
22
+ BandwidthRateLimitIntervals = Shapes::ListShape.new(name: 'BandwidthRateLimitIntervals')
20
23
  ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
21
24
  CreateGatewayInput = Shapes::StructureShape.new(name: 'CreateGatewayInput')
22
25
  CreateGatewayOutput = Shapes::StructureShape.new(name: 'CreateGatewayOutput')
23
26
  DayOfMonth = Shapes::IntegerShape.new(name: 'DayOfMonth')
24
27
  DayOfWeek = Shapes::IntegerShape.new(name: 'DayOfWeek')
28
+ DaysOfWeek = Shapes::ListShape.new(name: 'DaysOfWeek')
25
29
  DeleteGatewayInput = Shapes::StructureShape.new(name: 'DeleteGatewayInput')
26
30
  DeleteGatewayOutput = Shapes::StructureShape.new(name: 'DeleteGatewayOutput')
27
31
  DeleteHypervisorInput = Shapes::StructureShape.new(name: 'DeleteHypervisorInput')
@@ -33,16 +37,24 @@ module Aws::BackupGateway
33
37
  GatewayDetails = Shapes::StructureShape.new(name: 'GatewayDetails')
34
38
  GatewayType = Shapes::StringShape.new(name: 'GatewayType')
35
39
  Gateways = Shapes::ListShape.new(name: 'Gateways')
40
+ GetBandwidthRateLimitScheduleInput = Shapes::StructureShape.new(name: 'GetBandwidthRateLimitScheduleInput')
41
+ GetBandwidthRateLimitScheduleOutput = Shapes::StructureShape.new(name: 'GetBandwidthRateLimitScheduleOutput')
36
42
  GetGatewayInput = Shapes::StructureShape.new(name: 'GetGatewayInput')
37
43
  GetGatewayOutput = Shapes::StructureShape.new(name: 'GetGatewayOutput')
44
+ GetHypervisorInput = Shapes::StructureShape.new(name: 'GetHypervisorInput')
45
+ GetHypervisorOutput = Shapes::StructureShape.new(name: 'GetHypervisorOutput')
46
+ GetHypervisorPropertyMappingsInput = Shapes::StructureShape.new(name: 'GetHypervisorPropertyMappingsInput')
47
+ GetHypervisorPropertyMappingsOutput = Shapes::StructureShape.new(name: 'GetHypervisorPropertyMappingsOutput')
38
48
  GetVirtualMachineInput = Shapes::StructureShape.new(name: 'GetVirtualMachineInput')
39
49
  GetVirtualMachineOutput = Shapes::StructureShape.new(name: 'GetVirtualMachineOutput')
40
50
  Host = Shapes::StringShape.new(name: 'Host')
41
51
  HourOfDay = Shapes::IntegerShape.new(name: 'HourOfDay')
42
52
  Hypervisor = Shapes::StructureShape.new(name: 'Hypervisor')
53
+ HypervisorDetails = Shapes::StructureShape.new(name: 'HypervisorDetails')
43
54
  HypervisorId = Shapes::StringShape.new(name: 'HypervisorId')
44
55
  HypervisorState = Shapes::StringShape.new(name: 'HypervisorState')
45
56
  Hypervisors = Shapes::ListShape.new(name: 'Hypervisors')
57
+ IamRoleArn = Shapes::StringShape.new(name: 'IamRoleArn')
46
58
  ImportHypervisorConfigurationInput = Shapes::StructureShape.new(name: 'ImportHypervisorConfigurationInput')
47
59
  ImportHypervisorConfigurationOutput = Shapes::StructureShape.new(name: 'ImportHypervisorConfigurationOutput')
48
60
  InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
@@ -55,6 +67,7 @@ module Aws::BackupGateway
55
67
  ListTagsForResourceOutput = Shapes::StructureShape.new(name: 'ListTagsForResourceOutput')
56
68
  ListVirtualMachinesInput = Shapes::StructureShape.new(name: 'ListVirtualMachinesInput')
57
69
  ListVirtualMachinesOutput = Shapes::StructureShape.new(name: 'ListVirtualMachinesOutput')
70
+ LogGroupArn = Shapes::StringShape.new(name: 'LogGroupArn')
58
71
  MaintenanceStartTime = Shapes::StructureShape.new(name: 'MaintenanceStartTime')
59
72
  MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
60
73
  MinuteOfHour = Shapes::IntegerShape.new(name: 'MinuteOfHour')
@@ -62,11 +75,18 @@ module Aws::BackupGateway
62
75
  NextToken = Shapes::StringShape.new(name: 'NextToken')
63
76
  Password = Shapes::StringShape.new(name: 'Password')
64
77
  Path = Shapes::StringShape.new(name: 'Path')
78
+ PutBandwidthRateLimitScheduleInput = Shapes::StructureShape.new(name: 'PutBandwidthRateLimitScheduleInput')
79
+ PutBandwidthRateLimitScheduleOutput = Shapes::StructureShape.new(name: 'PutBandwidthRateLimitScheduleOutput')
80
+ PutHypervisorPropertyMappingsInput = Shapes::StructureShape.new(name: 'PutHypervisorPropertyMappingsInput')
81
+ PutHypervisorPropertyMappingsOutput = Shapes::StructureShape.new(name: 'PutHypervisorPropertyMappingsOutput')
65
82
  PutMaintenanceStartTimeInput = Shapes::StructureShape.new(name: 'PutMaintenanceStartTimeInput')
66
83
  PutMaintenanceStartTimeOutput = Shapes::StructureShape.new(name: 'PutMaintenanceStartTimeOutput')
67
84
  ResourceArn = Shapes::StringShape.new(name: 'ResourceArn')
68
85
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
69
86
  ServerArn = Shapes::StringShape.new(name: 'ServerArn')
87
+ StartVirtualMachinesMetadataSyncInput = Shapes::StructureShape.new(name: 'StartVirtualMachinesMetadataSyncInput')
88
+ StartVirtualMachinesMetadataSyncOutput = Shapes::StructureShape.new(name: 'StartVirtualMachinesMetadataSyncOutput')
89
+ SyncMetadataStatus = Shapes::StringShape.new(name: 'SyncMetadataStatus')
70
90
  Tag = Shapes::StructureShape.new(name: 'Tag')
71
91
  TagKey = Shapes::StringShape.new(name: 'TagKey')
72
92
  TagKeys = Shapes::ListShape.new(name: 'TagKeys')
@@ -91,6 +111,12 @@ module Aws::BackupGateway
91
111
  VirtualMachine = Shapes::StructureShape.new(name: 'VirtualMachine')
92
112
  VirtualMachineDetails = Shapes::StructureShape.new(name: 'VirtualMachineDetails')
93
113
  VirtualMachines = Shapes::ListShape.new(name: 'VirtualMachines')
114
+ VmwareCategory = Shapes::StringShape.new(name: 'VmwareCategory')
115
+ VmwareTag = Shapes::StructureShape.new(name: 'VmwareTag')
116
+ VmwareTagName = Shapes::StringShape.new(name: 'VmwareTagName')
117
+ VmwareTags = Shapes::ListShape.new(name: 'VmwareTags')
118
+ VmwareToAwsTagMapping = Shapes::StructureShape.new(name: 'VmwareToAwsTagMapping')
119
+ VmwareToAwsTagMappings = Shapes::ListShape.new(name: 'VmwareToAwsTagMappings')
94
120
  VpcEndpoint = Shapes::StringShape.new(name: 'VpcEndpoint')
95
121
  string = Shapes::StringShape.new(name: 'string')
96
122
 
@@ -105,6 +131,16 @@ module Aws::BackupGateway
105
131
  AssociateGatewayToServerOutput.add_member(:gateway_arn, Shapes::ShapeRef.new(shape: GatewayArn, location_name: "GatewayArn"))
106
132
  AssociateGatewayToServerOutput.struct_class = Types::AssociateGatewayToServerOutput
107
133
 
134
+ BandwidthRateLimitInterval.add_member(:average_upload_rate_limit_in_bits_per_sec, Shapes::ShapeRef.new(shape: AverageUploadRateLimit, location_name: "AverageUploadRateLimitInBitsPerSec"))
135
+ BandwidthRateLimitInterval.add_member(:days_of_week, Shapes::ShapeRef.new(shape: DaysOfWeek, required: true, location_name: "DaysOfWeek"))
136
+ BandwidthRateLimitInterval.add_member(:end_hour_of_day, Shapes::ShapeRef.new(shape: HourOfDay, required: true, location_name: "EndHourOfDay"))
137
+ BandwidthRateLimitInterval.add_member(:end_minute_of_hour, Shapes::ShapeRef.new(shape: MinuteOfHour, required: true, location_name: "EndMinuteOfHour"))
138
+ BandwidthRateLimitInterval.add_member(:start_hour_of_day, Shapes::ShapeRef.new(shape: HourOfDay, required: true, location_name: "StartHourOfDay"))
139
+ BandwidthRateLimitInterval.add_member(:start_minute_of_hour, Shapes::ShapeRef.new(shape: MinuteOfHour, required: true, location_name: "StartMinuteOfHour"))
140
+ BandwidthRateLimitInterval.struct_class = Types::BandwidthRateLimitInterval
141
+
142
+ BandwidthRateLimitIntervals.member = Shapes::ShapeRef.new(shape: BandwidthRateLimitInterval)
143
+
108
144
  ConflictException.add_member(:error_code, Shapes::ShapeRef.new(shape: string, required: true, location_name: "ErrorCode"))
109
145
  ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "Message"))
110
146
  ConflictException.struct_class = Types::ConflictException
@@ -118,6 +154,8 @@ module Aws::BackupGateway
118
154
  CreateGatewayOutput.add_member(:gateway_arn, Shapes::ShapeRef.new(shape: GatewayArn, location_name: "GatewayArn"))
119
155
  CreateGatewayOutput.struct_class = Types::CreateGatewayOutput
120
156
 
157
+ DaysOfWeek.member = Shapes::ShapeRef.new(shape: DayOfWeek)
158
+
121
159
  DeleteGatewayInput.add_member(:gateway_arn, Shapes::ShapeRef.new(shape: GatewayArn, required: true, location_name: "GatewayArn"))
122
160
  DeleteGatewayInput.struct_class = Types::DeleteGatewayInput
123
161
 
@@ -155,12 +193,33 @@ module Aws::BackupGateway
155
193
 
156
194
  Gateways.member = Shapes::ShapeRef.new(shape: Gateway)
157
195
 
196
+ GetBandwidthRateLimitScheduleInput.add_member(:gateway_arn, Shapes::ShapeRef.new(shape: GatewayArn, required: true, location_name: "GatewayArn"))
197
+ GetBandwidthRateLimitScheduleInput.struct_class = Types::GetBandwidthRateLimitScheduleInput
198
+
199
+ GetBandwidthRateLimitScheduleOutput.add_member(:bandwidth_rate_limit_intervals, Shapes::ShapeRef.new(shape: BandwidthRateLimitIntervals, location_name: "BandwidthRateLimitIntervals"))
200
+ GetBandwidthRateLimitScheduleOutput.add_member(:gateway_arn, Shapes::ShapeRef.new(shape: GatewayArn, location_name: "GatewayArn"))
201
+ GetBandwidthRateLimitScheduleOutput.struct_class = Types::GetBandwidthRateLimitScheduleOutput
202
+
158
203
  GetGatewayInput.add_member(:gateway_arn, Shapes::ShapeRef.new(shape: GatewayArn, required: true, location_name: "GatewayArn"))
159
204
  GetGatewayInput.struct_class = Types::GetGatewayInput
160
205
 
161
206
  GetGatewayOutput.add_member(:gateway, Shapes::ShapeRef.new(shape: GatewayDetails, location_name: "Gateway"))
162
207
  GetGatewayOutput.struct_class = Types::GetGatewayOutput
163
208
 
209
+ GetHypervisorInput.add_member(:hypervisor_arn, Shapes::ShapeRef.new(shape: ServerArn, required: true, location_name: "HypervisorArn"))
210
+ GetHypervisorInput.struct_class = Types::GetHypervisorInput
211
+
212
+ GetHypervisorOutput.add_member(:hypervisor, Shapes::ShapeRef.new(shape: HypervisorDetails, location_name: "Hypervisor"))
213
+ GetHypervisorOutput.struct_class = Types::GetHypervisorOutput
214
+
215
+ GetHypervisorPropertyMappingsInput.add_member(:hypervisor_arn, Shapes::ShapeRef.new(shape: ServerArn, required: true, location_name: "HypervisorArn"))
216
+ GetHypervisorPropertyMappingsInput.struct_class = Types::GetHypervisorPropertyMappingsInput
217
+
218
+ GetHypervisorPropertyMappingsOutput.add_member(:hypervisor_arn, Shapes::ShapeRef.new(shape: ServerArn, location_name: "HypervisorArn"))
219
+ GetHypervisorPropertyMappingsOutput.add_member(:iam_role_arn, Shapes::ShapeRef.new(shape: IamRoleArn, location_name: "IamRoleArn"))
220
+ GetHypervisorPropertyMappingsOutput.add_member(:vmware_to_aws_tag_mappings, Shapes::ShapeRef.new(shape: VmwareToAwsTagMappings, location_name: "VmwareToAwsTagMappings"))
221
+ GetHypervisorPropertyMappingsOutput.struct_class = Types::GetHypervisorPropertyMappingsOutput
222
+
164
223
  GetVirtualMachineInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "ResourceArn"))
165
224
  GetVirtualMachineInput.struct_class = Types::GetVirtualMachineInput
166
225
 
@@ -174,6 +233,17 @@ module Aws::BackupGateway
174
233
  Hypervisor.add_member(:state, Shapes::ShapeRef.new(shape: HypervisorState, location_name: "State"))
175
234
  Hypervisor.struct_class = Types::Hypervisor
176
235
 
236
+ HypervisorDetails.add_member(:host, Shapes::ShapeRef.new(shape: Host, location_name: "Host"))
237
+ HypervisorDetails.add_member(:hypervisor_arn, Shapes::ShapeRef.new(shape: ServerArn, location_name: "HypervisorArn"))
238
+ HypervisorDetails.add_member(:kms_key_arn, Shapes::ShapeRef.new(shape: KmsKeyArn, location_name: "KmsKeyArn"))
239
+ HypervisorDetails.add_member(:last_successful_metadata_sync_time, Shapes::ShapeRef.new(shape: Time, location_name: "LastSuccessfulMetadataSyncTime"))
240
+ HypervisorDetails.add_member(:latest_metadata_sync_status, Shapes::ShapeRef.new(shape: SyncMetadataStatus, location_name: "LatestMetadataSyncStatus"))
241
+ HypervisorDetails.add_member(:latest_metadata_sync_status_message, Shapes::ShapeRef.new(shape: string, location_name: "LatestMetadataSyncStatusMessage"))
242
+ HypervisorDetails.add_member(:log_group_arn, Shapes::ShapeRef.new(shape: LogGroupArn, location_name: "LogGroupArn"))
243
+ HypervisorDetails.add_member(:name, Shapes::ShapeRef.new(shape: Name, location_name: "Name"))
244
+ HypervisorDetails.add_member(:state, Shapes::ShapeRef.new(shape: HypervisorState, location_name: "State"))
245
+ HypervisorDetails.struct_class = Types::HypervisorDetails
246
+
177
247
  Hypervisors.member = Shapes::ShapeRef.new(shape: Hypervisor)
178
248
 
179
249
  ImportHypervisorConfigurationInput.add_member(:host, Shapes::ShapeRef.new(shape: Host, required: true, location_name: "Host"))
@@ -229,6 +299,21 @@ module Aws::BackupGateway
229
299
  MaintenanceStartTime.add_member(:minute_of_hour, Shapes::ShapeRef.new(shape: MinuteOfHour, required: true, location_name: "MinuteOfHour"))
230
300
  MaintenanceStartTime.struct_class = Types::MaintenanceStartTime
231
301
 
302
+ PutBandwidthRateLimitScheduleInput.add_member(:bandwidth_rate_limit_intervals, Shapes::ShapeRef.new(shape: BandwidthRateLimitIntervals, required: true, location_name: "BandwidthRateLimitIntervals"))
303
+ PutBandwidthRateLimitScheduleInput.add_member(:gateway_arn, Shapes::ShapeRef.new(shape: GatewayArn, required: true, location_name: "GatewayArn"))
304
+ PutBandwidthRateLimitScheduleInput.struct_class = Types::PutBandwidthRateLimitScheduleInput
305
+
306
+ PutBandwidthRateLimitScheduleOutput.add_member(:gateway_arn, Shapes::ShapeRef.new(shape: GatewayArn, location_name: "GatewayArn"))
307
+ PutBandwidthRateLimitScheduleOutput.struct_class = Types::PutBandwidthRateLimitScheduleOutput
308
+
309
+ PutHypervisorPropertyMappingsInput.add_member(:hypervisor_arn, Shapes::ShapeRef.new(shape: ServerArn, required: true, location_name: "HypervisorArn"))
310
+ PutHypervisorPropertyMappingsInput.add_member(:iam_role_arn, Shapes::ShapeRef.new(shape: IamRoleArn, required: true, location_name: "IamRoleArn"))
311
+ PutHypervisorPropertyMappingsInput.add_member(:vmware_to_aws_tag_mappings, Shapes::ShapeRef.new(shape: VmwareToAwsTagMappings, required: true, location_name: "VmwareToAwsTagMappings"))
312
+ PutHypervisorPropertyMappingsInput.struct_class = Types::PutHypervisorPropertyMappingsInput
313
+
314
+ PutHypervisorPropertyMappingsOutput.add_member(:hypervisor_arn, Shapes::ShapeRef.new(shape: ServerArn, location_name: "HypervisorArn"))
315
+ PutHypervisorPropertyMappingsOutput.struct_class = Types::PutHypervisorPropertyMappingsOutput
316
+
232
317
  PutMaintenanceStartTimeInput.add_member(:day_of_month, Shapes::ShapeRef.new(shape: DayOfMonth, location_name: "DayOfMonth"))
233
318
  PutMaintenanceStartTimeInput.add_member(:day_of_week, Shapes::ShapeRef.new(shape: DayOfWeek, location_name: "DayOfWeek"))
234
319
  PutMaintenanceStartTimeInput.add_member(:gateway_arn, Shapes::ShapeRef.new(shape: GatewayArn, required: true, location_name: "GatewayArn"))
@@ -243,6 +328,12 @@ module Aws::BackupGateway
243
328
  ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "Message"))
244
329
  ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
245
330
 
331
+ StartVirtualMachinesMetadataSyncInput.add_member(:hypervisor_arn, Shapes::ShapeRef.new(shape: ServerArn, required: true, location_name: "HypervisorArn"))
332
+ StartVirtualMachinesMetadataSyncInput.struct_class = Types::StartVirtualMachinesMetadataSyncInput
333
+
334
+ StartVirtualMachinesMetadataSyncOutput.add_member(:hypervisor_arn, Shapes::ShapeRef.new(shape: ServerArn, location_name: "HypervisorArn"))
335
+ StartVirtualMachinesMetadataSyncOutput.struct_class = Types::StartVirtualMachinesMetadataSyncOutput
336
+
246
337
  Tag.add_member(:key, Shapes::ShapeRef.new(shape: TagKey, required: true, location_name: "Key"))
247
338
  Tag.add_member(:value, Shapes::ShapeRef.new(shape: TagValue, required: true, location_name: "Value"))
248
339
  Tag.struct_class = Types::Tag
@@ -292,6 +383,7 @@ module Aws::BackupGateway
292
383
 
293
384
  UpdateHypervisorInput.add_member(:host, Shapes::ShapeRef.new(shape: Host, location_name: "Host"))
294
385
  UpdateHypervisorInput.add_member(:hypervisor_arn, Shapes::ShapeRef.new(shape: ServerArn, required: true, location_name: "HypervisorArn"))
386
+ UpdateHypervisorInput.add_member(:log_group_arn, Shapes::ShapeRef.new(shape: LogGroupArn, location_name: "LogGroupArn"))
295
387
  UpdateHypervisorInput.add_member(:name, Shapes::ShapeRef.new(shape: Name, location_name: "Name"))
296
388
  UpdateHypervisorInput.add_member(:password, Shapes::ShapeRef.new(shape: Password, location_name: "Password"))
297
389
  UpdateHypervisorInput.add_member(:username, Shapes::ShapeRef.new(shape: Username, location_name: "Username"))
@@ -318,10 +410,26 @@ module Aws::BackupGateway
318
410
  VirtualMachineDetails.add_member(:name, Shapes::ShapeRef.new(shape: Name, location_name: "Name"))
319
411
  VirtualMachineDetails.add_member(:path, Shapes::ShapeRef.new(shape: Path, location_name: "Path"))
320
412
  VirtualMachineDetails.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, location_name: "ResourceArn"))
413
+ VirtualMachineDetails.add_member(:vmware_tags, Shapes::ShapeRef.new(shape: VmwareTags, location_name: "VmwareTags"))
321
414
  VirtualMachineDetails.struct_class = Types::VirtualMachineDetails
322
415
 
323
416
  VirtualMachines.member = Shapes::ShapeRef.new(shape: VirtualMachine)
324
417
 
418
+ VmwareTag.add_member(:vmware_category, Shapes::ShapeRef.new(shape: VmwareCategory, location_name: "VmwareCategory"))
419
+ VmwareTag.add_member(:vmware_tag_description, Shapes::ShapeRef.new(shape: string, location_name: "VmwareTagDescription"))
420
+ VmwareTag.add_member(:vmware_tag_name, Shapes::ShapeRef.new(shape: VmwareTagName, location_name: "VmwareTagName"))
421
+ VmwareTag.struct_class = Types::VmwareTag
422
+
423
+ VmwareTags.member = Shapes::ShapeRef.new(shape: VmwareTag)
424
+
425
+ VmwareToAwsTagMapping.add_member(:aws_tag_key, Shapes::ShapeRef.new(shape: TagKey, required: true, location_name: "AwsTagKey"))
426
+ VmwareToAwsTagMapping.add_member(:aws_tag_value, Shapes::ShapeRef.new(shape: TagValue, required: true, location_name: "AwsTagValue"))
427
+ VmwareToAwsTagMapping.add_member(:vmware_category, Shapes::ShapeRef.new(shape: VmwareCategory, required: true, location_name: "VmwareCategory"))
428
+ VmwareToAwsTagMapping.add_member(:vmware_tag_name, Shapes::ShapeRef.new(shape: VmwareTagName, required: true, location_name: "VmwareTagName"))
429
+ VmwareToAwsTagMapping.struct_class = Types::VmwareToAwsTagMapping
430
+
431
+ VmwareToAwsTagMappings.member = Shapes::ShapeRef.new(shape: VmwareToAwsTagMapping)
432
+
325
433
 
326
434
  # @api private
327
435
  API = Seahorse::Model::Api.new.tap do |api|
@@ -383,6 +491,7 @@ module Aws::BackupGateway
383
491
  o.input = Shapes::ShapeRef.new(shape: DeleteHypervisorInput)
384
492
  o.output = Shapes::ShapeRef.new(shape: DeleteHypervisorOutput)
385
493
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
494
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
386
495
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
387
496
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
388
497
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
@@ -402,6 +511,18 @@ module Aws::BackupGateway
402
511
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
403
512
  end)
404
513
 
514
+ api.add_operation(:get_bandwidth_rate_limit_schedule, Seahorse::Model::Operation.new.tap do |o|
515
+ o.name = "GetBandwidthRateLimitSchedule"
516
+ o.http_method = "POST"
517
+ o.http_request_uri = "/"
518
+ o.input = Shapes::ShapeRef.new(shape: GetBandwidthRateLimitScheduleInput)
519
+ o.output = Shapes::ShapeRef.new(shape: GetBandwidthRateLimitScheduleOutput)
520
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
521
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
522
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
523
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
524
+ end)
525
+
405
526
  api.add_operation(:get_gateway, Seahorse::Model::Operation.new.tap do |o|
406
527
  o.name = "GetGateway"
407
528
  o.http_method = "POST"
@@ -414,6 +535,30 @@ module Aws::BackupGateway
414
535
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
415
536
  end)
416
537
 
538
+ api.add_operation(:get_hypervisor, Seahorse::Model::Operation.new.tap do |o|
539
+ o.name = "GetHypervisor"
540
+ o.http_method = "POST"
541
+ o.http_request_uri = "/"
542
+ o.input = Shapes::ShapeRef.new(shape: GetHypervisorInput)
543
+ o.output = Shapes::ShapeRef.new(shape: GetHypervisorOutput)
544
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
545
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
546
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
547
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
548
+ end)
549
+
550
+ api.add_operation(:get_hypervisor_property_mappings, Seahorse::Model::Operation.new.tap do |o|
551
+ o.name = "GetHypervisorPropertyMappings"
552
+ o.http_method = "POST"
553
+ o.http_request_uri = "/"
554
+ o.input = Shapes::ShapeRef.new(shape: GetHypervisorPropertyMappingsInput)
555
+ o.output = Shapes::ShapeRef.new(shape: GetHypervisorPropertyMappingsOutput)
556
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
557
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
558
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
559
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
560
+ end)
561
+
417
562
  api.add_operation(:get_virtual_machine, Seahorse::Model::Operation.new.tap do |o|
418
563
  o.name = "GetVirtualMachine"
419
564
  o.http_method = "POST"
@@ -433,6 +578,7 @@ module Aws::BackupGateway
433
578
  o.input = Shapes::ShapeRef.new(shape: ImportHypervisorConfigurationInput)
434
579
  o.output = Shapes::ShapeRef.new(shape: ImportHypervisorConfigurationOutput)
435
580
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
581
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
436
582
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
437
583
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
438
584
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
@@ -501,6 +647,32 @@ module Aws::BackupGateway
501
647
  )
502
648
  end)
503
649
 
650
+ api.add_operation(:put_bandwidth_rate_limit_schedule, Seahorse::Model::Operation.new.tap do |o|
651
+ o.name = "PutBandwidthRateLimitSchedule"
652
+ o.http_method = "POST"
653
+ o.http_request_uri = "/"
654
+ o.input = Shapes::ShapeRef.new(shape: PutBandwidthRateLimitScheduleInput)
655
+ o.output = Shapes::ShapeRef.new(shape: PutBandwidthRateLimitScheduleOutput)
656
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
657
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
658
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
659
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
660
+ end)
661
+
662
+ api.add_operation(:put_hypervisor_property_mappings, Seahorse::Model::Operation.new.tap do |o|
663
+ o.name = "PutHypervisorPropertyMappings"
664
+ o.http_method = "POST"
665
+ o.http_request_uri = "/"
666
+ o.input = Shapes::ShapeRef.new(shape: PutHypervisorPropertyMappingsInput)
667
+ o.output = Shapes::ShapeRef.new(shape: PutHypervisorPropertyMappingsOutput)
668
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
669
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
670
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
671
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
672
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
673
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
674
+ end)
675
+
504
676
  api.add_operation(:put_maintenance_start_time, Seahorse::Model::Operation.new.tap do |o|
505
677
  o.name = "PutMaintenanceStartTime"
506
678
  o.http_method = "POST"
@@ -514,6 +686,19 @@ module Aws::BackupGateway
514
686
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
515
687
  end)
516
688
 
689
+ api.add_operation(:start_virtual_machines_metadata_sync, Seahorse::Model::Operation.new.tap do |o|
690
+ o.name = "StartVirtualMachinesMetadataSync"
691
+ o.http_method = "POST"
692
+ o.http_request_uri = "/"
693
+ o.input = Shapes::ShapeRef.new(shape: StartVirtualMachinesMetadataSyncInput)
694
+ o.output = Shapes::ShapeRef.new(shape: StartVirtualMachinesMetadataSyncOutput)
695
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
696
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
697
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
698
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
699
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
700
+ end)
701
+
517
702
  api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
518
703
  o.name = "TagResource"
519
704
  o.http_method = "POST"
@@ -583,6 +768,7 @@ module Aws::BackupGateway
583
768
  o.input = Shapes::ShapeRef.new(shape: UpdateHypervisorInput)
584
769
  o.output = Shapes::ShapeRef.new(shape: UpdateHypervisorOutput)
585
770
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
771
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
586
772
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
587
773
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
588
774
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
@@ -0,0 +1,69 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::BackupGateway
11
+ # Endpoint parameters used to influence endpoints per request.
12
+ #
13
+ # @!attribute region
14
+ # The AWS region used to dispatch the request.
15
+ #
16
+ # @return [String]
17
+ #
18
+ # @!attribute use_dual_stack
19
+ # When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
20
+ #
21
+ # @return [Boolean]
22
+ #
23
+ # @!attribute use_fips
24
+ # When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
25
+ #
26
+ # @return [Boolean]
27
+ #
28
+ # @!attribute endpoint
29
+ # Override the endpoint used to send this request
30
+ #
31
+ # @return [String]
32
+ #
33
+ EndpointParameters = Struct.new(
34
+ :region,
35
+ :use_dual_stack,
36
+ :use_fips,
37
+ :endpoint,
38
+ ) do
39
+ include Aws::Structure
40
+
41
+ # @api private
42
+ class << self
43
+ PARAM_MAP = {
44
+ 'Region' => :region,
45
+ 'UseDualStack' => :use_dual_stack,
46
+ 'UseFIPS' => :use_fips,
47
+ 'Endpoint' => :endpoint,
48
+ }.freeze
49
+ end
50
+
51
+ def initialize(options = {})
52
+ self[:region] = options[:region]
53
+ if self[:region].nil?
54
+ raise ArgumentError, "Missing required EndpointParameter: :region"
55
+ end
56
+ self[:use_dual_stack] = options[:use_dual_stack]
57
+ self[:use_dual_stack] = false if self[:use_dual_stack].nil?
58
+ if self[:use_dual_stack].nil?
59
+ raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
60
+ end
61
+ self[:use_fips] = options[:use_fips]
62
+ self[:use_fips] = false if self[:use_fips].nil?
63
+ if self[:use_fips].nil?
64
+ raise ArgumentError, "Missing required EndpointParameter: :use_fips"
65
+ end
66
+ self[:endpoint] = options[:endpoint]
67
+ end
68
+ end
69
+ end
@@ -0,0 +1,111 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::BackupGateway
11
+ class EndpointProvider
12
+ def initialize(rule_set = nil)
13
+ @@rule_set ||= begin
14
+ endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
15
+ Aws::Endpoints::RuleSet.new(
16
+ version: endpoint_rules['version'],
17
+ service_id: endpoint_rules['serviceId'],
18
+ parameters: endpoint_rules['parameters'],
19
+ rules: endpoint_rules['rules']
20
+ )
21
+ end
22
+ @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
+ end
24
+
25
+ def resolve_endpoint(parameters)
26
+ @provider.resolve_endpoint(parameters)
27
+ end
28
+
29
+ # @api private
30
+ RULES = <<-JSON
31
+ eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
32
+ bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOnRyd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