aws-sdk-backupgateway 1.0.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.
@@ -0,0 +1,483 @@
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
+ # @api private
12
+ module ClientApi
13
+
14
+ include Seahorse::Model
15
+
16
+ AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
17
+ ActivationKey = Shapes::StringShape.new(name: 'ActivationKey')
18
+ AssociateGatewayToServerInput = Shapes::StructureShape.new(name: 'AssociateGatewayToServerInput')
19
+ AssociateGatewayToServerOutput = Shapes::StructureShape.new(name: 'AssociateGatewayToServerOutput')
20
+ ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
21
+ CreateGatewayInput = Shapes::StructureShape.new(name: 'CreateGatewayInput')
22
+ CreateGatewayOutput = Shapes::StructureShape.new(name: 'CreateGatewayOutput')
23
+ DayOfMonth = Shapes::IntegerShape.new(name: 'DayOfMonth')
24
+ DayOfWeek = Shapes::IntegerShape.new(name: 'DayOfWeek')
25
+ DeleteGatewayInput = Shapes::StructureShape.new(name: 'DeleteGatewayInput')
26
+ DeleteGatewayOutput = Shapes::StructureShape.new(name: 'DeleteGatewayOutput')
27
+ DeleteHypervisorInput = Shapes::StructureShape.new(name: 'DeleteHypervisorInput')
28
+ DeleteHypervisorOutput = Shapes::StructureShape.new(name: 'DeleteHypervisorOutput')
29
+ DisassociateGatewayFromServerInput = Shapes::StructureShape.new(name: 'DisassociateGatewayFromServerInput')
30
+ DisassociateGatewayFromServerOutput = Shapes::StructureShape.new(name: 'DisassociateGatewayFromServerOutput')
31
+ Gateway = Shapes::StructureShape.new(name: 'Gateway')
32
+ GatewayArn = Shapes::StringShape.new(name: 'GatewayArn')
33
+ GatewayType = Shapes::StringShape.new(name: 'GatewayType')
34
+ Gateways = Shapes::ListShape.new(name: 'Gateways')
35
+ Host = Shapes::StringShape.new(name: 'Host')
36
+ HourOfDay = Shapes::IntegerShape.new(name: 'HourOfDay')
37
+ Hypervisor = Shapes::StructureShape.new(name: 'Hypervisor')
38
+ HypervisorId = Shapes::StringShape.new(name: 'HypervisorId')
39
+ HypervisorState = Shapes::StringShape.new(name: 'HypervisorState')
40
+ Hypervisors = Shapes::ListShape.new(name: 'Hypervisors')
41
+ ImportHypervisorConfigurationInput = Shapes::StructureShape.new(name: 'ImportHypervisorConfigurationInput')
42
+ ImportHypervisorConfigurationOutput = Shapes::StructureShape.new(name: 'ImportHypervisorConfigurationOutput')
43
+ InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
44
+ KmsKeyArn = Shapes::StringShape.new(name: 'KmsKeyArn')
45
+ ListGatewaysInput = Shapes::StructureShape.new(name: 'ListGatewaysInput')
46
+ ListGatewaysOutput = Shapes::StructureShape.new(name: 'ListGatewaysOutput')
47
+ ListHypervisorsInput = Shapes::StructureShape.new(name: 'ListHypervisorsInput')
48
+ ListHypervisorsOutput = Shapes::StructureShape.new(name: 'ListHypervisorsOutput')
49
+ ListTagsForResourceInput = Shapes::StructureShape.new(name: 'ListTagsForResourceInput')
50
+ ListTagsForResourceOutput = Shapes::StructureShape.new(name: 'ListTagsForResourceOutput')
51
+ ListVirtualMachinesInput = Shapes::StructureShape.new(name: 'ListVirtualMachinesInput')
52
+ ListVirtualMachinesOutput = Shapes::StructureShape.new(name: 'ListVirtualMachinesOutput')
53
+ MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
54
+ MinuteOfHour = Shapes::IntegerShape.new(name: 'MinuteOfHour')
55
+ Name = Shapes::StringShape.new(name: 'Name')
56
+ NextToken = Shapes::StringShape.new(name: 'NextToken')
57
+ Password = Shapes::StringShape.new(name: 'Password')
58
+ Path = Shapes::StringShape.new(name: 'Path')
59
+ PutMaintenanceStartTimeInput = Shapes::StructureShape.new(name: 'PutMaintenanceStartTimeInput')
60
+ PutMaintenanceStartTimeOutput = Shapes::StructureShape.new(name: 'PutMaintenanceStartTimeOutput')
61
+ ResourceArn = Shapes::StringShape.new(name: 'ResourceArn')
62
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
63
+ ServerArn = Shapes::StringShape.new(name: 'ServerArn')
64
+ Tag = Shapes::StructureShape.new(name: 'Tag')
65
+ TagKey = Shapes::StringShape.new(name: 'TagKey')
66
+ TagKeys = Shapes::ListShape.new(name: 'TagKeys')
67
+ TagResourceInput = Shapes::StructureShape.new(name: 'TagResourceInput')
68
+ TagResourceOutput = Shapes::StructureShape.new(name: 'TagResourceOutput')
69
+ TagValue = Shapes::StringShape.new(name: 'TagValue')
70
+ Tags = Shapes::ListShape.new(name: 'Tags')
71
+ TestHypervisorConfigurationInput = Shapes::StructureShape.new(name: 'TestHypervisorConfigurationInput')
72
+ TestHypervisorConfigurationOutput = Shapes::StructureShape.new(name: 'TestHypervisorConfigurationOutput')
73
+ Time = Shapes::TimestampShape.new(name: 'Time')
74
+ UntagResourceInput = Shapes::StructureShape.new(name: 'UntagResourceInput')
75
+ UntagResourceOutput = Shapes::StructureShape.new(name: 'UntagResourceOutput')
76
+ UpdateGatewayInformationInput = Shapes::StructureShape.new(name: 'UpdateGatewayInformationInput')
77
+ UpdateGatewayInformationOutput = Shapes::StructureShape.new(name: 'UpdateGatewayInformationOutput')
78
+ UpdateHypervisorInput = Shapes::StructureShape.new(name: 'UpdateHypervisorInput')
79
+ UpdateHypervisorOutput = Shapes::StructureShape.new(name: 'UpdateHypervisorOutput')
80
+ Username = Shapes::StringShape.new(name: 'Username')
81
+ ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
82
+ VirtualMachine = Shapes::StructureShape.new(name: 'VirtualMachine')
83
+ VirtualMachines = Shapes::ListShape.new(name: 'VirtualMachines')
84
+ string = Shapes::StringShape.new(name: 'string')
85
+
86
+ AccessDeniedException.add_member(:error_code, Shapes::ShapeRef.new(shape: string, required: true, location_name: "ErrorCode"))
87
+ AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "Message"))
88
+ AccessDeniedException.struct_class = Types::AccessDeniedException
89
+
90
+ AssociateGatewayToServerInput.add_member(:gateway_arn, Shapes::ShapeRef.new(shape: GatewayArn, required: true, location_name: "GatewayArn"))
91
+ AssociateGatewayToServerInput.add_member(:server_arn, Shapes::ShapeRef.new(shape: ServerArn, required: true, location_name: "ServerArn"))
92
+ AssociateGatewayToServerInput.struct_class = Types::AssociateGatewayToServerInput
93
+
94
+ AssociateGatewayToServerOutput.add_member(:gateway_arn, Shapes::ShapeRef.new(shape: GatewayArn, location_name: "GatewayArn"))
95
+ AssociateGatewayToServerOutput.struct_class = Types::AssociateGatewayToServerOutput
96
+
97
+ ConflictException.add_member(:error_code, Shapes::ShapeRef.new(shape: string, required: true, location_name: "ErrorCode"))
98
+ ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "Message"))
99
+ ConflictException.struct_class = Types::ConflictException
100
+
101
+ CreateGatewayInput.add_member(:activation_key, Shapes::ShapeRef.new(shape: ActivationKey, required: true, location_name: "ActivationKey"))
102
+ CreateGatewayInput.add_member(:gateway_display_name, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "GatewayDisplayName"))
103
+ CreateGatewayInput.add_member(:gateway_type, Shapes::ShapeRef.new(shape: GatewayType, required: true, location_name: "GatewayType"))
104
+ CreateGatewayInput.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
105
+ CreateGatewayInput.struct_class = Types::CreateGatewayInput
106
+
107
+ CreateGatewayOutput.add_member(:gateway_arn, Shapes::ShapeRef.new(shape: GatewayArn, location_name: "GatewayArn"))
108
+ CreateGatewayOutput.struct_class = Types::CreateGatewayOutput
109
+
110
+ DeleteGatewayInput.add_member(:gateway_arn, Shapes::ShapeRef.new(shape: GatewayArn, required: true, location_name: "GatewayArn"))
111
+ DeleteGatewayInput.struct_class = Types::DeleteGatewayInput
112
+
113
+ DeleteGatewayOutput.add_member(:gateway_arn, Shapes::ShapeRef.new(shape: GatewayArn, location_name: "GatewayArn"))
114
+ DeleteGatewayOutput.struct_class = Types::DeleteGatewayOutput
115
+
116
+ DeleteHypervisorInput.add_member(:hypervisor_arn, Shapes::ShapeRef.new(shape: ServerArn, required: true, location_name: "HypervisorArn"))
117
+ DeleteHypervisorInput.struct_class = Types::DeleteHypervisorInput
118
+
119
+ DeleteHypervisorOutput.add_member(:hypervisor_arn, Shapes::ShapeRef.new(shape: ServerArn, location_name: "HypervisorArn"))
120
+ DeleteHypervisorOutput.struct_class = Types::DeleteHypervisorOutput
121
+
122
+ DisassociateGatewayFromServerInput.add_member(:gateway_arn, Shapes::ShapeRef.new(shape: GatewayArn, required: true, location_name: "GatewayArn"))
123
+ DisassociateGatewayFromServerInput.struct_class = Types::DisassociateGatewayFromServerInput
124
+
125
+ DisassociateGatewayFromServerOutput.add_member(:gateway_arn, Shapes::ShapeRef.new(shape: GatewayArn, location_name: "GatewayArn"))
126
+ DisassociateGatewayFromServerOutput.struct_class = Types::DisassociateGatewayFromServerOutput
127
+
128
+ Gateway.add_member(:gateway_arn, Shapes::ShapeRef.new(shape: GatewayArn, location_name: "GatewayArn"))
129
+ Gateway.add_member(:gateway_display_name, Shapes::ShapeRef.new(shape: Name, location_name: "GatewayDisplayName"))
130
+ Gateway.add_member(:gateway_type, Shapes::ShapeRef.new(shape: GatewayType, location_name: "GatewayType"))
131
+ Gateway.add_member(:hypervisor_id, Shapes::ShapeRef.new(shape: HypervisorId, location_name: "HypervisorId"))
132
+ Gateway.add_member(:last_seen_time, Shapes::ShapeRef.new(shape: Time, location_name: "LastSeenTime"))
133
+ Gateway.struct_class = Types::Gateway
134
+
135
+ Gateways.member = Shapes::ShapeRef.new(shape: Gateway)
136
+
137
+ Hypervisor.add_member(:host, Shapes::ShapeRef.new(shape: Host, location_name: "Host"))
138
+ Hypervisor.add_member(:hypervisor_arn, Shapes::ShapeRef.new(shape: ServerArn, location_name: "HypervisorArn"))
139
+ Hypervisor.add_member(:kms_key_arn, Shapes::ShapeRef.new(shape: KmsKeyArn, location_name: "KmsKeyArn"))
140
+ Hypervisor.add_member(:name, Shapes::ShapeRef.new(shape: Name, location_name: "Name"))
141
+ Hypervisor.add_member(:state, Shapes::ShapeRef.new(shape: HypervisorState, location_name: "State"))
142
+ Hypervisor.struct_class = Types::Hypervisor
143
+
144
+ Hypervisors.member = Shapes::ShapeRef.new(shape: Hypervisor)
145
+
146
+ ImportHypervisorConfigurationInput.add_member(:host, Shapes::ShapeRef.new(shape: Host, required: true, location_name: "Host"))
147
+ ImportHypervisorConfigurationInput.add_member(:kms_key_arn, Shapes::ShapeRef.new(shape: KmsKeyArn, location_name: "KmsKeyArn"))
148
+ ImportHypervisorConfigurationInput.add_member(:name, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "Name"))
149
+ ImportHypervisorConfigurationInput.add_member(:password, Shapes::ShapeRef.new(shape: Password, location_name: "Password"))
150
+ ImportHypervisorConfigurationInput.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
151
+ ImportHypervisorConfigurationInput.add_member(:username, Shapes::ShapeRef.new(shape: Username, location_name: "Username"))
152
+ ImportHypervisorConfigurationInput.struct_class = Types::ImportHypervisorConfigurationInput
153
+
154
+ ImportHypervisorConfigurationOutput.add_member(:hypervisor_arn, Shapes::ShapeRef.new(shape: ServerArn, location_name: "HypervisorArn"))
155
+ ImportHypervisorConfigurationOutput.struct_class = Types::ImportHypervisorConfigurationOutput
156
+
157
+ InternalServerException.add_member(:error_code, Shapes::ShapeRef.new(shape: string, location_name: "ErrorCode"))
158
+ InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "Message"))
159
+ InternalServerException.struct_class = Types::InternalServerException
160
+
161
+ ListGatewaysInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
162
+ ListGatewaysInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
163
+ ListGatewaysInput.struct_class = Types::ListGatewaysInput
164
+
165
+ ListGatewaysOutput.add_member(:gateways, Shapes::ShapeRef.new(shape: Gateways, location_name: "Gateways"))
166
+ ListGatewaysOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
167
+ ListGatewaysOutput.struct_class = Types::ListGatewaysOutput
168
+
169
+ ListHypervisorsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
170
+ ListHypervisorsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
171
+ ListHypervisorsInput.struct_class = Types::ListHypervisorsInput
172
+
173
+ ListHypervisorsOutput.add_member(:hypervisors, Shapes::ShapeRef.new(shape: Hypervisors, location_name: "Hypervisors"))
174
+ ListHypervisorsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
175
+ ListHypervisorsOutput.struct_class = Types::ListHypervisorsOutput
176
+
177
+ ListTagsForResourceInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "ResourceArn"))
178
+ ListTagsForResourceInput.struct_class = Types::ListTagsForResourceInput
179
+
180
+ ListTagsForResourceOutput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, location_name: "ResourceArn"))
181
+ ListTagsForResourceOutput.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
182
+ ListTagsForResourceOutput.struct_class = Types::ListTagsForResourceOutput
183
+
184
+ ListVirtualMachinesInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
185
+ ListVirtualMachinesInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
186
+ ListVirtualMachinesInput.struct_class = Types::ListVirtualMachinesInput
187
+
188
+ ListVirtualMachinesOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
189
+ ListVirtualMachinesOutput.add_member(:virtual_machines, Shapes::ShapeRef.new(shape: VirtualMachines, location_name: "VirtualMachines"))
190
+ ListVirtualMachinesOutput.struct_class = Types::ListVirtualMachinesOutput
191
+
192
+ PutMaintenanceStartTimeInput.add_member(:day_of_month, Shapes::ShapeRef.new(shape: DayOfMonth, location_name: "DayOfMonth"))
193
+ PutMaintenanceStartTimeInput.add_member(:day_of_week, Shapes::ShapeRef.new(shape: DayOfWeek, location_name: "DayOfWeek"))
194
+ PutMaintenanceStartTimeInput.add_member(:gateway_arn, Shapes::ShapeRef.new(shape: GatewayArn, required: true, location_name: "GatewayArn"))
195
+ PutMaintenanceStartTimeInput.add_member(:hour_of_day, Shapes::ShapeRef.new(shape: HourOfDay, required: true, location_name: "HourOfDay"))
196
+ PutMaintenanceStartTimeInput.add_member(:minute_of_hour, Shapes::ShapeRef.new(shape: MinuteOfHour, required: true, location_name: "MinuteOfHour"))
197
+ PutMaintenanceStartTimeInput.struct_class = Types::PutMaintenanceStartTimeInput
198
+
199
+ PutMaintenanceStartTimeOutput.add_member(:gateway_arn, Shapes::ShapeRef.new(shape: GatewayArn, location_name: "GatewayArn"))
200
+ PutMaintenanceStartTimeOutput.struct_class = Types::PutMaintenanceStartTimeOutput
201
+
202
+ ResourceNotFoundException.add_member(:error_code, Shapes::ShapeRef.new(shape: string, location_name: "ErrorCode"))
203
+ ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "Message"))
204
+ ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
205
+
206
+ Tag.add_member(:key, Shapes::ShapeRef.new(shape: TagKey, required: true, location_name: "Key"))
207
+ Tag.add_member(:value, Shapes::ShapeRef.new(shape: TagValue, required: true, location_name: "Value"))
208
+ Tag.struct_class = Types::Tag
209
+
210
+ TagKeys.member = Shapes::ShapeRef.new(shape: TagKey)
211
+
212
+ TagResourceInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "ResourceARN"))
213
+ TagResourceInput.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, required: true, location_name: "Tags"))
214
+ TagResourceInput.struct_class = Types::TagResourceInput
215
+
216
+ TagResourceOutput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, location_name: "ResourceARN"))
217
+ TagResourceOutput.struct_class = Types::TagResourceOutput
218
+
219
+ Tags.member = Shapes::ShapeRef.new(shape: Tag)
220
+
221
+ TestHypervisorConfigurationInput.add_member(:gateway_arn, Shapes::ShapeRef.new(shape: GatewayArn, required: true, location_name: "GatewayArn"))
222
+ TestHypervisorConfigurationInput.add_member(:host, Shapes::ShapeRef.new(shape: Host, required: true, location_name: "Host"))
223
+ TestHypervisorConfigurationInput.add_member(:password, Shapes::ShapeRef.new(shape: Password, location_name: "Password"))
224
+ TestHypervisorConfigurationInput.add_member(:username, Shapes::ShapeRef.new(shape: Username, location_name: "Username"))
225
+ TestHypervisorConfigurationInput.struct_class = Types::TestHypervisorConfigurationInput
226
+
227
+ TestHypervisorConfigurationOutput.struct_class = Types::TestHypervisorConfigurationOutput
228
+
229
+ UntagResourceInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "ResourceARN"))
230
+ UntagResourceInput.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeys, required: true, location_name: "TagKeys"))
231
+ UntagResourceInput.struct_class = Types::UntagResourceInput
232
+
233
+ UntagResourceOutput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, location_name: "ResourceARN"))
234
+ UntagResourceOutput.struct_class = Types::UntagResourceOutput
235
+
236
+ UpdateGatewayInformationInput.add_member(:gateway_arn, Shapes::ShapeRef.new(shape: GatewayArn, required: true, location_name: "GatewayArn"))
237
+ UpdateGatewayInformationInput.add_member(:gateway_display_name, Shapes::ShapeRef.new(shape: Name, location_name: "GatewayDisplayName"))
238
+ UpdateGatewayInformationInput.struct_class = Types::UpdateGatewayInformationInput
239
+
240
+ UpdateGatewayInformationOutput.add_member(:gateway_arn, Shapes::ShapeRef.new(shape: GatewayArn, location_name: "GatewayArn"))
241
+ UpdateGatewayInformationOutput.struct_class = Types::UpdateGatewayInformationOutput
242
+
243
+ UpdateHypervisorInput.add_member(:host, Shapes::ShapeRef.new(shape: Host, location_name: "Host"))
244
+ UpdateHypervisorInput.add_member(:hypervisor_arn, Shapes::ShapeRef.new(shape: ServerArn, required: true, location_name: "HypervisorArn"))
245
+ UpdateHypervisorInput.add_member(:password, Shapes::ShapeRef.new(shape: Password, location_name: "Password"))
246
+ UpdateHypervisorInput.add_member(:username, Shapes::ShapeRef.new(shape: Username, location_name: "Username"))
247
+ UpdateHypervisorInput.struct_class = Types::UpdateHypervisorInput
248
+
249
+ UpdateHypervisorOutput.add_member(:hypervisor_arn, Shapes::ShapeRef.new(shape: ServerArn, location_name: "HypervisorArn"))
250
+ UpdateHypervisorOutput.struct_class = Types::UpdateHypervisorOutput
251
+
252
+ ValidationException.add_member(:error_code, Shapes::ShapeRef.new(shape: string, location_name: "ErrorCode"))
253
+ ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "Message"))
254
+ ValidationException.struct_class = Types::ValidationException
255
+
256
+ VirtualMachine.add_member(:host_name, Shapes::ShapeRef.new(shape: Name, location_name: "HostName"))
257
+ VirtualMachine.add_member(:hypervisor_id, Shapes::ShapeRef.new(shape: string, location_name: "HypervisorId"))
258
+ VirtualMachine.add_member(:last_backup_date, Shapes::ShapeRef.new(shape: Time, location_name: "LastBackupDate"))
259
+ VirtualMachine.add_member(:name, Shapes::ShapeRef.new(shape: Name, location_name: "Name"))
260
+ VirtualMachine.add_member(:path, Shapes::ShapeRef.new(shape: Path, location_name: "Path"))
261
+ VirtualMachine.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, location_name: "ResourceArn"))
262
+ VirtualMachine.struct_class = Types::VirtualMachine
263
+
264
+ VirtualMachines.member = Shapes::ShapeRef.new(shape: VirtualMachine)
265
+
266
+
267
+ # @api private
268
+ API = Seahorse::Model::Api.new.tap do |api|
269
+
270
+ api.version = "2021-01-01"
271
+
272
+ api.metadata = {
273
+ "apiVersion" => "2021-01-01",
274
+ "endpointPrefix" => "backup-gateway",
275
+ "jsonVersion" => "1.0",
276
+ "protocol" => "json",
277
+ "serviceFullName" => "AWS Backup Gateway",
278
+ "serviceId" => "Backup Gateway",
279
+ "signatureVersion" => "v4",
280
+ "signingName" => "backup-gateway",
281
+ "targetPrefix" => "BackupOnPremises_v20210101",
282
+ "uid" => "backup-gateway-2021-01-01",
283
+ }
284
+
285
+ api.add_operation(:associate_gateway_to_server, Seahorse::Model::Operation.new.tap do |o|
286
+ o.name = "AssociateGatewayToServer"
287
+ o.http_method = "POST"
288
+ o.http_request_uri = "/"
289
+ o.input = Shapes::ShapeRef.new(shape: AssociateGatewayToServerInput)
290
+ o.output = Shapes::ShapeRef.new(shape: AssociateGatewayToServerOutput)
291
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
292
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
293
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
294
+ end)
295
+
296
+ api.add_operation(:create_gateway, Seahorse::Model::Operation.new.tap do |o|
297
+ o.name = "CreateGateway"
298
+ o.http_method = "POST"
299
+ o.http_request_uri = "/"
300
+ o.input = Shapes::ShapeRef.new(shape: CreateGatewayInput)
301
+ o.output = Shapes::ShapeRef.new(shape: CreateGatewayOutput)
302
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
303
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
304
+ end)
305
+
306
+ api.add_operation(:delete_gateway, Seahorse::Model::Operation.new.tap do |o|
307
+ o.name = "DeleteGateway"
308
+ o.http_method = "POST"
309
+ o.http_request_uri = "/"
310
+ o.input = Shapes::ShapeRef.new(shape: DeleteGatewayInput)
311
+ o.output = Shapes::ShapeRef.new(shape: DeleteGatewayOutput)
312
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
313
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
314
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
315
+ end)
316
+
317
+ api.add_operation(:delete_hypervisor, Seahorse::Model::Operation.new.tap do |o|
318
+ o.name = "DeleteHypervisor"
319
+ o.http_method = "POST"
320
+ o.http_request_uri = "/"
321
+ o.input = Shapes::ShapeRef.new(shape: DeleteHypervisorInput)
322
+ o.output = Shapes::ShapeRef.new(shape: DeleteHypervisorOutput)
323
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
324
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
325
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
326
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
327
+ end)
328
+
329
+ api.add_operation(:disassociate_gateway_from_server, Seahorse::Model::Operation.new.tap do |o|
330
+ o.name = "DisassociateGatewayFromServer"
331
+ o.http_method = "POST"
332
+ o.http_request_uri = "/"
333
+ o.input = Shapes::ShapeRef.new(shape: DisassociateGatewayFromServerInput)
334
+ o.output = Shapes::ShapeRef.new(shape: DisassociateGatewayFromServerOutput)
335
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
336
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
337
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
338
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
339
+ end)
340
+
341
+ api.add_operation(:import_hypervisor_configuration, Seahorse::Model::Operation.new.tap do |o|
342
+ o.name = "ImportHypervisorConfiguration"
343
+ o.http_method = "POST"
344
+ o.http_request_uri = "/"
345
+ o.input = Shapes::ShapeRef.new(shape: ImportHypervisorConfigurationInput)
346
+ o.output = Shapes::ShapeRef.new(shape: ImportHypervisorConfigurationOutput)
347
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
348
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
349
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
350
+ end)
351
+
352
+ api.add_operation(:list_gateways, Seahorse::Model::Operation.new.tap do |o|
353
+ o.name = "ListGateways"
354
+ o.http_method = "POST"
355
+ o.http_request_uri = "/"
356
+ o.input = Shapes::ShapeRef.new(shape: ListGatewaysInput)
357
+ o.output = Shapes::ShapeRef.new(shape: ListGatewaysOutput)
358
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
359
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
360
+ o[:pager] = Aws::Pager.new(
361
+ limit_key: "max_results",
362
+ tokens: {
363
+ "next_token" => "next_token"
364
+ }
365
+ )
366
+ end)
367
+
368
+ api.add_operation(:list_hypervisors, Seahorse::Model::Operation.new.tap do |o|
369
+ o.name = "ListHypervisors"
370
+ o.http_method = "POST"
371
+ o.http_request_uri = "/"
372
+ o.input = Shapes::ShapeRef.new(shape: ListHypervisorsInput)
373
+ o.output = Shapes::ShapeRef.new(shape: ListHypervisorsOutput)
374
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
375
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
376
+ o[:pager] = Aws::Pager.new(
377
+ limit_key: "max_results",
378
+ tokens: {
379
+ "next_token" => "next_token"
380
+ }
381
+ )
382
+ end)
383
+
384
+ api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
385
+ o.name = "ListTagsForResource"
386
+ o.http_method = "POST"
387
+ o.http_request_uri = "/"
388
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceInput)
389
+ o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceOutput)
390
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
391
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
392
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
393
+ end)
394
+
395
+ api.add_operation(:list_virtual_machines, Seahorse::Model::Operation.new.tap do |o|
396
+ o.name = "ListVirtualMachines"
397
+ o.http_method = "POST"
398
+ o.http_request_uri = "/"
399
+ o.input = Shapes::ShapeRef.new(shape: ListVirtualMachinesInput)
400
+ o.output = Shapes::ShapeRef.new(shape: ListVirtualMachinesOutput)
401
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
402
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
403
+ o[:pager] = Aws::Pager.new(
404
+ limit_key: "max_results",
405
+ tokens: {
406
+ "next_token" => "next_token"
407
+ }
408
+ )
409
+ end)
410
+
411
+ api.add_operation(:put_maintenance_start_time, Seahorse::Model::Operation.new.tap do |o|
412
+ o.name = "PutMaintenanceStartTime"
413
+ o.http_method = "POST"
414
+ o.http_request_uri = "/"
415
+ o.input = Shapes::ShapeRef.new(shape: PutMaintenanceStartTimeInput)
416
+ o.output = Shapes::ShapeRef.new(shape: PutMaintenanceStartTimeOutput)
417
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
418
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
419
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
420
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
421
+ end)
422
+
423
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
424
+ o.name = "TagResource"
425
+ o.http_method = "POST"
426
+ o.http_request_uri = "/"
427
+ o.input = Shapes::ShapeRef.new(shape: TagResourceInput)
428
+ o.output = Shapes::ShapeRef.new(shape: TagResourceOutput)
429
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
430
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
431
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
432
+ end)
433
+
434
+ api.add_operation(:test_hypervisor_configuration, Seahorse::Model::Operation.new.tap do |o|
435
+ o.name = "TestHypervisorConfiguration"
436
+ o.http_method = "POST"
437
+ o.http_request_uri = "/"
438
+ o.input = Shapes::ShapeRef.new(shape: TestHypervisorConfigurationInput)
439
+ o.output = Shapes::ShapeRef.new(shape: TestHypervisorConfigurationOutput)
440
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
441
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
442
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
443
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
444
+ end)
445
+
446
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
447
+ o.name = "UntagResource"
448
+ o.http_method = "POST"
449
+ o.http_request_uri = "/"
450
+ o.input = Shapes::ShapeRef.new(shape: UntagResourceInput)
451
+ o.output = Shapes::ShapeRef.new(shape: UntagResourceOutput)
452
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
453
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
454
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
455
+ end)
456
+
457
+ api.add_operation(:update_gateway_information, Seahorse::Model::Operation.new.tap do |o|
458
+ o.name = "UpdateGatewayInformation"
459
+ o.http_method = "POST"
460
+ o.http_request_uri = "/"
461
+ o.input = Shapes::ShapeRef.new(shape: UpdateGatewayInformationInput)
462
+ o.output = Shapes::ShapeRef.new(shape: UpdateGatewayInformationOutput)
463
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
464
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
465
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
466
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
467
+ end)
468
+
469
+ api.add_operation(:update_hypervisor, Seahorse::Model::Operation.new.tap do |o|
470
+ o.name = "UpdateHypervisor"
471
+ o.http_method = "POST"
472
+ o.http_request_uri = "/"
473
+ o.input = Shapes::ShapeRef.new(shape: UpdateHypervisorInput)
474
+ o.output = Shapes::ShapeRef.new(shape: UpdateHypervisorOutput)
475
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
476
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
477
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
478
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
479
+ end)
480
+ end
481
+
482
+ end
483
+ end
File without changes
@@ -0,0 +1,143 @@
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
+
12
+ # When BackupGateway returns an error response, the Ruby SDK constructs and raises an error.
13
+ # These errors all extend Aws::BackupGateway::Errors::ServiceError < {Aws::Errors::ServiceError}
14
+ #
15
+ # You can rescue all BackupGateway errors using ServiceError:
16
+ #
17
+ # begin
18
+ # # do stuff
19
+ # rescue Aws::BackupGateway::Errors::ServiceError
20
+ # # rescues all BackupGateway API errors
21
+ # end
22
+ #
23
+ #
24
+ # ## Request Context
25
+ # ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
26
+ # information about the request that generated the error.
27
+ # See {Seahorse::Client::RequestContext} for more information.
28
+ #
29
+ # ## Error Classes
30
+ # * {AccessDeniedException}
31
+ # * {ConflictException}
32
+ # * {InternalServerException}
33
+ # * {ResourceNotFoundException}
34
+ # * {ValidationException}
35
+ #
36
+ # Additionally, error classes are dynamically generated for service errors based on the error code
37
+ # if they are not defined above.
38
+ module Errors
39
+
40
+ extend Aws::Errors::DynamicErrors
41
+
42
+ class AccessDeniedException < ServiceError
43
+
44
+ # @param [Seahorse::Client::RequestContext] context
45
+ # @param [String] message
46
+ # @param [Aws::BackupGateway::Types::AccessDeniedException] data
47
+ def initialize(context, message, data = Aws::EmptyStructure.new)
48
+ super(context, message, data)
49
+ end
50
+
51
+ # @return [String]
52
+ def error_code
53
+ @data[:error_code]
54
+ end
55
+
56
+ # @return [String]
57
+ def message
58
+ @message || @data[:message]
59
+ end
60
+ end
61
+
62
+ class ConflictException < ServiceError
63
+
64
+ # @param [Seahorse::Client::RequestContext] context
65
+ # @param [String] message
66
+ # @param [Aws::BackupGateway::Types::ConflictException] data
67
+ def initialize(context, message, data = Aws::EmptyStructure.new)
68
+ super(context, message, data)
69
+ end
70
+
71
+ # @return [String]
72
+ def error_code
73
+ @data[:error_code]
74
+ end
75
+
76
+ # @return [String]
77
+ def message
78
+ @message || @data[:message]
79
+ end
80
+ end
81
+
82
+ class InternalServerException < ServiceError
83
+
84
+ # @param [Seahorse::Client::RequestContext] context
85
+ # @param [String] message
86
+ # @param [Aws::BackupGateway::Types::InternalServerException] data
87
+ def initialize(context, message, data = Aws::EmptyStructure.new)
88
+ super(context, message, data)
89
+ end
90
+
91
+ # @return [String]
92
+ def error_code
93
+ @data[:error_code]
94
+ end
95
+
96
+ # @return [String]
97
+ def message
98
+ @message || @data[:message]
99
+ end
100
+ end
101
+
102
+ class ResourceNotFoundException < ServiceError
103
+
104
+ # @param [Seahorse::Client::RequestContext] context
105
+ # @param [String] message
106
+ # @param [Aws::BackupGateway::Types::ResourceNotFoundException] data
107
+ def initialize(context, message, data = Aws::EmptyStructure.new)
108
+ super(context, message, data)
109
+ end
110
+
111
+ # @return [String]
112
+ def error_code
113
+ @data[:error_code]
114
+ end
115
+
116
+ # @return [String]
117
+ def message
118
+ @message || @data[:message]
119
+ end
120
+ end
121
+
122
+ class ValidationException < ServiceError
123
+
124
+ # @param [Seahorse::Client::RequestContext] context
125
+ # @param [String] message
126
+ # @param [Aws::BackupGateway::Types::ValidationException] data
127
+ def initialize(context, message, data = Aws::EmptyStructure.new)
128
+ super(context, message, data)
129
+ end
130
+
131
+ # @return [String]
132
+ def error_code
133
+ @data[:error_code]
134
+ end
135
+
136
+ # @return [String]
137
+ def message
138
+ @message || @data[:message]
139
+ end
140
+ end
141
+
142
+ end
143
+ end
@@ -0,0 +1,26 @@
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
+
12
+ class Resource
13
+
14
+ # @param options ({})
15
+ # @option options [Client] :client
16
+ def initialize(options = {})
17
+ @client = options[:client] || Client.new(options)
18
+ end
19
+
20
+ # @return [Client]
21
+ def client
22
+ @client
23
+ end
24
+
25
+ end
26
+ end