16
16
#include < aws/backup-gateway/model/DeleteGatewayResult.h>
17
17
#include < aws/backup-gateway/model/DeleteHypervisorResult.h>
18
18
#include < aws/backup-gateway/model/DisassociateGatewayFromServerResult.h>
19
+ #include < aws/backup-gateway/model/GetGatewayResult.h>
19
20
#include < aws/backup-gateway/model/ImportHypervisorConfigurationResult.h>
20
21
#include < aws/backup-gateway/model/ListGatewaysResult.h>
21
22
#include < aws/backup-gateway/model/ListHypervisorsResult.h>
26
27
#include < aws/backup-gateway/model/TestHypervisorConfigurationResult.h>
27
28
#include < aws/backup-gateway/model/UntagResourceResult.h>
28
29
#include < aws/backup-gateway/model/UpdateGatewayInformationResult.h>
30
+ #include < aws/backup-gateway/model/UpdateGatewaySoftwareNowResult.h>
29
31
#include < aws/backup-gateway/model/UpdateHypervisorResult.h>
30
32
#include < aws/core/client/AsyncCallerContext.h>
31
33
#include < aws/core/http/HttpTypes.h>
@@ -71,6 +73,7 @@ namespace Model
71
73
class DeleteGatewayRequest ;
72
74
class DeleteHypervisorRequest ;
73
75
class DisassociateGatewayFromServerRequest ;
76
+ class GetGatewayRequest ;
74
77
class ImportHypervisorConfigurationRequest ;
75
78
class ListGatewaysRequest ;
76
79
class ListHypervisorsRequest ;
@@ -81,13 +84,15 @@ namespace Model
81
84
class TestHypervisorConfigurationRequest ;
82
85
class UntagResourceRequest ;
83
86
class UpdateGatewayInformationRequest ;
87
+ class UpdateGatewaySoftwareNowRequest ;
84
88
class UpdateHypervisorRequest ;
85
89
86
90
typedef Aws::Utils::Outcome<AssociateGatewayToServerResult, BackupGatewayError> AssociateGatewayToServerOutcome;
87
91
typedef Aws::Utils::Outcome<CreateGatewayResult, BackupGatewayError> CreateGatewayOutcome;
88
92
typedef Aws::Utils::Outcome<DeleteGatewayResult, BackupGatewayError> DeleteGatewayOutcome;
89
93
typedef Aws::Utils::Outcome<DeleteHypervisorResult, BackupGatewayError> DeleteHypervisorOutcome;
90
94
typedef Aws::Utils::Outcome<DisassociateGatewayFromServerResult, BackupGatewayError> DisassociateGatewayFromServerOutcome;
95
+ typedef Aws::Utils::Outcome<GetGatewayResult, BackupGatewayError> GetGatewayOutcome;
91
96
typedef Aws::Utils::Outcome<ImportHypervisorConfigurationResult, BackupGatewayError> ImportHypervisorConfigurationOutcome;
92
97
typedef Aws::Utils::Outcome<ListGatewaysResult, BackupGatewayError> ListGatewaysOutcome;
93
98
typedef Aws::Utils::Outcome<ListHypervisorsResult, BackupGatewayError> ListHypervisorsOutcome;
@@ -98,13 +103,15 @@ namespace Model
98
103
typedef Aws::Utils::Outcome<TestHypervisorConfigurationResult, BackupGatewayError> TestHypervisorConfigurationOutcome;
99
104
typedef Aws::Utils::Outcome<UntagResourceResult, BackupGatewayError> UntagResourceOutcome;
100
105
typedef Aws::Utils::Outcome<UpdateGatewayInformationResult, BackupGatewayError> UpdateGatewayInformationOutcome;
106
+ typedef Aws::Utils::Outcome<UpdateGatewaySoftwareNowResult, BackupGatewayError> UpdateGatewaySoftwareNowOutcome;
101
107
typedef Aws::Utils::Outcome<UpdateHypervisorResult, BackupGatewayError> UpdateHypervisorOutcome;
102
108
103
109
typedef std::future<AssociateGatewayToServerOutcome> AssociateGatewayToServerOutcomeCallable;
104
110
typedef std::future<CreateGatewayOutcome> CreateGatewayOutcomeCallable;
105
111
typedef std::future<DeleteGatewayOutcome> DeleteGatewayOutcomeCallable;
106
112
typedef std::future<DeleteHypervisorOutcome> DeleteHypervisorOutcomeCallable;
107
113
typedef std::future<DisassociateGatewayFromServerOutcome> DisassociateGatewayFromServerOutcomeCallable;
114
+ typedef std::future<GetGatewayOutcome> GetGatewayOutcomeCallable;
108
115
typedef std::future<ImportHypervisorConfigurationOutcome> ImportHypervisorConfigurationOutcomeCallable;
109
116
typedef std::future<ListGatewaysOutcome> ListGatewaysOutcomeCallable;
110
117
typedef std::future<ListHypervisorsOutcome> ListHypervisorsOutcomeCallable;
@@ -115,6 +122,7 @@ namespace Model
115
122
typedef std::future<TestHypervisorConfigurationOutcome> TestHypervisorConfigurationOutcomeCallable;
116
123
typedef std::future<UntagResourceOutcome> UntagResourceOutcomeCallable;
117
124
typedef std::future<UpdateGatewayInformationOutcome> UpdateGatewayInformationOutcomeCallable;
125
+ typedef std::future<UpdateGatewaySoftwareNowOutcome> UpdateGatewaySoftwareNowOutcomeCallable;
118
126
typedef std::future<UpdateHypervisorOutcome> UpdateHypervisorOutcomeCallable;
119
127
} // namespace Model
120
128
@@ -125,6 +133,7 @@ namespace Model
125
133
typedef std::function<void (const BackupGatewayClient*, const Model::DeleteGatewayRequest&, const Model::DeleteGatewayOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DeleteGatewayResponseReceivedHandler;
126
134
typedef std::function<void (const BackupGatewayClient*, const Model::DeleteHypervisorRequest&, const Model::DeleteHypervisorOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DeleteHypervisorResponseReceivedHandler;
127
135
typedef std::function<void (const BackupGatewayClient*, const Model::DisassociateGatewayFromServerRequest&, const Model::DisassociateGatewayFromServerOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DisassociateGatewayFromServerResponseReceivedHandler;
136
+ typedef std::function<void (const BackupGatewayClient*, const Model::GetGatewayRequest&, const Model::GetGatewayOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > GetGatewayResponseReceivedHandler;
128
137
typedef std::function<void (const BackupGatewayClient*, const Model::ImportHypervisorConfigurationRequest&, const Model::ImportHypervisorConfigurationOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ImportHypervisorConfigurationResponseReceivedHandler;
129
138
typedef std::function<void (const BackupGatewayClient*, const Model::ListGatewaysRequest&, const Model::ListGatewaysOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ListGatewaysResponseReceivedHandler;
130
139
typedef std::function<void (const BackupGatewayClient*, const Model::ListHypervisorsRequest&, const Model::ListHypervisorsOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ListHypervisorsResponseReceivedHandler;
@@ -135,6 +144,7 @@ namespace Model
135
144
typedef std::function<void (const BackupGatewayClient*, const Model::TestHypervisorConfigurationRequest&, const Model::TestHypervisorConfigurationOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > TestHypervisorConfigurationResponseReceivedHandler;
136
145
typedef std::function<void (const BackupGatewayClient*, const Model::UntagResourceRequest&, const Model::UntagResourceOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > UntagResourceResponseReceivedHandler;
137
146
typedef std::function<void (const BackupGatewayClient*, const Model::UpdateGatewayInformationRequest&, const Model::UpdateGatewayInformationOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > UpdateGatewayInformationResponseReceivedHandler;
147
+ typedef std::function<void (const BackupGatewayClient*, const Model::UpdateGatewaySoftwareNowRequest&, const Model::UpdateGatewaySoftwareNowOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > UpdateGatewaySoftwareNowResponseReceivedHandler;
138
148
typedef std::function<void (const BackupGatewayClient*, const Model::UpdateHypervisorRequest&, const Model::UpdateHypervisorOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > UpdateHypervisorResponseReceivedHandler;
139
149
140
150
/* *
@@ -268,6 +278,24 @@ namespace Model
268
278
*/
269
279
virtual void DisassociateGatewayFromServerAsync (const Model::DisassociateGatewayFromServerRequest& request, const DisassociateGatewayFromServerResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr ) const ;
270
280
281
+ /* *
282
+ * <p>By providing the ARN (Amazon Resource Name), this API returns the
283
+ * gateway.</p><p><h3>See Also:</h3> <a
284
+ * href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetGateway">AWS
285
+ * API Reference</a></p>
286
+ */
287
+ virtual Model::GetGatewayOutcome GetGateway (const Model::GetGatewayRequest& request) const ;
288
+
289
+ /* *
290
+ * A Callable wrapper for GetGateway that returns a future to the operation so that it can be executed in parallel to other requests.
291
+ */
292
+ virtual Model::GetGatewayOutcomeCallable GetGatewayCallable (const Model::GetGatewayRequest& request) const ;
293
+
294
+ /* *
295
+ * An Async wrapper for GetGateway that queues the request into a thread executor and triggers associated callback when operation has finished.
296
+ */
297
+ virtual void GetGatewayAsync (const Model::GetGatewayRequest& request, const GetGatewayResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr ) const ;
298
+
271
299
/* *
272
300
* <p>Connect to a hypervisor by importing its configuration.</p><p><h3>See
273
301
* Also:</h3> <a
@@ -445,6 +473,26 @@ namespace Model
445
473
*/
446
474
virtual void UpdateGatewayInformationAsync (const Model::UpdateGatewayInformationRequest& request, const UpdateGatewayInformationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr ) const ;
447
475
476
+ /* *
477
+ * <p>Updates the gateway virtual machine (VM) software. The request immediately
478
+ * triggers the software update.</p> <p>When you make this request, you get
479
+ * a <code>200 OK</code> success response immediately. However, it might take some
480
+ * time for the update to complete.</p> <p><h3>See Also:</h3> <a
481
+ * href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/UpdateGatewaySoftwareNow">AWS
482
+ * API Reference</a></p>
483
+ */
484
+ virtual Model::UpdateGatewaySoftwareNowOutcome UpdateGatewaySoftwareNow (const Model::UpdateGatewaySoftwareNowRequest& request) const ;
485
+
486
+ /* *
487
+ * A Callable wrapper for UpdateGatewaySoftwareNow that returns a future to the operation so that it can be executed in parallel to other requests.
488
+ */
489
+ virtual Model::UpdateGatewaySoftwareNowOutcomeCallable UpdateGatewaySoftwareNowCallable (const Model::UpdateGatewaySoftwareNowRequest& request) const ;
490
+
491
+ /* *
492
+ * An Async wrapper for UpdateGatewaySoftwareNow that queues the request into a thread executor and triggers associated callback when operation has finished.
493
+ */
494
+ virtual void UpdateGatewaySoftwareNowAsync (const Model::UpdateGatewaySoftwareNowRequest& request, const UpdateGatewaySoftwareNowResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr ) const ;
495
+
448
496
/* *
449
497
* <p>Updates a hypervisor metadata, including its host, username, and password.
450
498
* Specify which hypervisor to update using the Amazon Resource Name (ARN) of the
@@ -473,6 +521,7 @@ namespace Model
473
521
void DeleteGatewayAsyncHelper (const Model::DeleteGatewayRequest& request, const DeleteGatewayResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const ;
474
522
void DeleteHypervisorAsyncHelper (const Model::DeleteHypervisorRequest& request, const DeleteHypervisorResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const ;
475
523
void DisassociateGatewayFromServerAsyncHelper (const Model::DisassociateGatewayFromServerRequest& request, const DisassociateGatewayFromServerResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const ;
524
+ void GetGatewayAsyncHelper (const Model::GetGatewayRequest& request, const GetGatewayResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const ;
476
525
void ImportHypervisorConfigurationAsyncHelper (const Model::ImportHypervisorConfigurationRequest& request, const ImportHypervisorConfigurationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const ;
477
526
void ListGatewaysAsyncHelper (const Model::ListGatewaysRequest& request, const ListGatewaysResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const ;
478
527
void ListHypervisorsAsyncHelper (const Model::ListHypervisorsRequest& request, const ListHypervisorsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const ;
@@ -483,6 +532,7 @@ namespace Model
483
532
void TestHypervisorConfigurationAsyncHelper (const Model::TestHypervisorConfigurationRequest& request, const TestHypervisorConfigurationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const ;
484
533
void UntagResourceAsyncHelper (const Model::UntagResourceRequest& request, const UntagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const ;
485
534
void UpdateGatewayInformationAsyncHelper (const Model::UpdateGatewayInformationRequest& request, const UpdateGatewayInformationResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const ;
535
+ void UpdateGatewaySoftwareNowAsyncHelper (const Model::UpdateGatewaySoftwareNowRequest& request, const UpdateGatewaySoftwareNowResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const ;
486
536
void UpdateHypervisorAsyncHelper (const Model::UpdateHypervisorRequest& request, const UpdateHypervisorResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const ;
487
537
488
538
Aws::String m_uri;
0 commit comments