repo_name
stringlengths
1
52
repo_creator
stringclasses
6 values
programming_language
stringclasses
4 values
code
stringlengths
0
9.68M
num_lines
int64
1
234k
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backup-gateway-2021-01-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.BackupGateway.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BackupGateway.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ListGateways operation /// </summary> public class ListGatewaysResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { ListGatewaysResponse response = new ListGatewaysResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Gateways", targetDepth)) { var unmarshaller = new ListUnmarshaller<Gateway, GatewayUnmarshaller>(GatewayUnmarshaller.Instance); response.Gateways = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("NextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException")) { return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonBackupGatewayException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static ListGatewaysResponseUnmarshaller _instance = new ListGatewaysResponseUnmarshaller(); internal static ListGatewaysResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListGatewaysResponseUnmarshaller Instance { get { return _instance; } } } }
124
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backup-gateway-2021-01-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.BackupGateway.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BackupGateway.Model.Internal.MarshallTransformations { /// <summary> /// ListHypervisors Request Marshaller /// </summary> public class ListHypervisorsRequestMarshaller : IMarshaller<IRequest, ListHypervisorsRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((ListHypervisorsRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(ListHypervisorsRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.BackupGateway"); string target = "BackupOnPremises_v20210101.ListHypervisors"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.0"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-01-01"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetMaxResults()) { context.Writer.WritePropertyName("MaxResults"); context.Writer.Write(publicRequest.MaxResults); } if(publicRequest.IsSetNextToken()) { context.Writer.WritePropertyName("NextToken"); context.Writer.Write(publicRequest.NextToken); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static ListHypervisorsRequestMarshaller _instance = new ListHypervisorsRequestMarshaller(); internal static ListHypervisorsRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListHypervisorsRequestMarshaller Instance { get { return _instance; } } } }
109
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backup-gateway-2021-01-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.BackupGateway.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BackupGateway.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ListHypervisors operation /// </summary> public class ListHypervisorsResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { ListHypervisorsResponse response = new ListHypervisorsResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Hypervisors", targetDepth)) { var unmarshaller = new ListUnmarshaller<Hypervisor, HypervisorUnmarshaller>(HypervisorUnmarshaller.Instance); response.Hypervisors = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("NextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException")) { return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonBackupGatewayException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static ListHypervisorsResponseUnmarshaller _instance = new ListHypervisorsResponseUnmarshaller(); internal static ListHypervisorsResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListHypervisorsResponseUnmarshaller Instance { get { return _instance; } } } }
124
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backup-gateway-2021-01-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.BackupGateway.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BackupGateway.Model.Internal.MarshallTransformations { /// <summary> /// ListTagsForResource Request Marshaller /// </summary> public class ListTagsForResourceRequestMarshaller : IMarshaller<IRequest, ListTagsForResourceRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((ListTagsForResourceRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(ListTagsForResourceRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.BackupGateway"); string target = "BackupOnPremises_v20210101.ListTagsForResource"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.0"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-01-01"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetResourceArn()) { context.Writer.WritePropertyName("ResourceArn"); context.Writer.Write(publicRequest.ResourceArn); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static ListTagsForResourceRequestMarshaller _instance = new ListTagsForResourceRequestMarshaller(); internal static ListTagsForResourceRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListTagsForResourceRequestMarshaller Instance { get { return _instance; } } } }
103
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backup-gateway-2021-01-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.BackupGateway.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BackupGateway.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ListTagsForResource operation /// </summary> public class ListTagsForResourceResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { ListTagsForResourceResponse response = new ListTagsForResourceResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("ResourceArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ResourceArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Tags", targetDepth)) { var unmarshaller = new ListUnmarshaller<Tag, TagUnmarshaller>(TagUnmarshaller.Instance); response.Tags = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException")) { return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonBackupGatewayException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static ListTagsForResourceResponseUnmarshaller _instance = new ListTagsForResourceResponseUnmarshaller(); internal static ListTagsForResourceResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListTagsForResourceResponseUnmarshaller Instance { get { return _instance; } } } }
128
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backup-gateway-2021-01-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.BackupGateway.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BackupGateway.Model.Internal.MarshallTransformations { /// <summary> /// ListVirtualMachines Request Marshaller /// </summary> public class ListVirtualMachinesRequestMarshaller : IMarshaller<IRequest, ListVirtualMachinesRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((ListVirtualMachinesRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(ListVirtualMachinesRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.BackupGateway"); string target = "BackupOnPremises_v20210101.ListVirtualMachines"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.0"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-01-01"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetHypervisorArn()) { context.Writer.WritePropertyName("HypervisorArn"); context.Writer.Write(publicRequest.HypervisorArn); } if(publicRequest.IsSetMaxResults()) { context.Writer.WritePropertyName("MaxResults"); context.Writer.Write(publicRequest.MaxResults); } if(publicRequest.IsSetNextToken()) { context.Writer.WritePropertyName("NextToken"); context.Writer.Write(publicRequest.NextToken); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static ListVirtualMachinesRequestMarshaller _instance = new ListVirtualMachinesRequestMarshaller(); internal static ListVirtualMachinesRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListVirtualMachinesRequestMarshaller Instance { get { return _instance; } } } }
115
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backup-gateway-2021-01-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.BackupGateway.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BackupGateway.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ListVirtualMachines operation /// </summary> public class ListVirtualMachinesResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { ListVirtualMachinesResponse response = new ListVirtualMachinesResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("NextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("VirtualMachines", targetDepth)) { var unmarshaller = new ListUnmarshaller<VirtualMachine, VirtualMachineUnmarshaller>(VirtualMachineUnmarshaller.Instance); response.VirtualMachines = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException")) { return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonBackupGatewayException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static ListVirtualMachinesResponseUnmarshaller _instance = new ListVirtualMachinesResponseUnmarshaller(); internal static ListVirtualMachinesResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListVirtualMachinesResponseUnmarshaller Instance { get { return _instance; } } } }
124
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backup-gateway-2021-01-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.BackupGateway.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BackupGateway.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for MaintenanceStartTime Object /// </summary> public class MaintenanceStartTimeUnmarshaller : IUnmarshaller<MaintenanceStartTime, XmlUnmarshallerContext>, IUnmarshaller<MaintenanceStartTime, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> MaintenanceStartTime IUnmarshaller<MaintenanceStartTime, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public MaintenanceStartTime Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; MaintenanceStartTime unmarshalledObject = new MaintenanceStartTime(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("DayOfMonth", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.DayOfMonth = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DayOfWeek", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.DayOfWeek = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("HourOfDay", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.HourOfDay = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("MinuteOfHour", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.MinuteOfHour = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static MaintenanceStartTimeUnmarshaller _instance = new MaintenanceStartTimeUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static MaintenanceStartTimeUnmarshaller Instance { get { return _instance; } } } }
110
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backup-gateway-2021-01-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.BackupGateway.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BackupGateway.Model.Internal.MarshallTransformations { /// <summary> /// PutBandwidthRateLimitSchedule Request Marshaller /// </summary> public class PutBandwidthRateLimitScheduleRequestMarshaller : IMarshaller<IRequest, PutBandwidthRateLimitScheduleRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((PutBandwidthRateLimitScheduleRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(PutBandwidthRateLimitScheduleRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.BackupGateway"); string target = "BackupOnPremises_v20210101.PutBandwidthRateLimitSchedule"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.0"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-01-01"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetBandwidthRateLimitIntervals()) { context.Writer.WritePropertyName("BandwidthRateLimitIntervals"); context.Writer.WriteArrayStart(); foreach(var publicRequestBandwidthRateLimitIntervalsListValue in publicRequest.BandwidthRateLimitIntervals) { context.Writer.WriteObjectStart(); var marshaller = BandwidthRateLimitIntervalMarshaller.Instance; marshaller.Marshall(publicRequestBandwidthRateLimitIntervalsListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } if(publicRequest.IsSetGatewayArn()) { context.Writer.WritePropertyName("GatewayArn"); context.Writer.Write(publicRequest.GatewayArn); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static PutBandwidthRateLimitScheduleRequestMarshaller _instance = new PutBandwidthRateLimitScheduleRequestMarshaller(); internal static PutBandwidthRateLimitScheduleRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static PutBandwidthRateLimitScheduleRequestMarshaller Instance { get { return _instance; } } } }
119
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backup-gateway-2021-01-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.BackupGateway.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BackupGateway.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for PutBandwidthRateLimitSchedule operation /// </summary> public class PutBandwidthRateLimitScheduleResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { PutBandwidthRateLimitScheduleResponse response = new PutBandwidthRateLimitScheduleResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("GatewayArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.GatewayArn = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException")) { return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonBackupGatewayException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static PutBandwidthRateLimitScheduleResponseUnmarshaller _instance = new PutBandwidthRateLimitScheduleResponseUnmarshaller(); internal static PutBandwidthRateLimitScheduleResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static PutBandwidthRateLimitScheduleResponseUnmarshaller Instance { get { return _instance; } } } }
122
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backup-gateway-2021-01-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.BackupGateway.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BackupGateway.Model.Internal.MarshallTransformations { /// <summary> /// PutHypervisorPropertyMappings Request Marshaller /// </summary> public class PutHypervisorPropertyMappingsRequestMarshaller : IMarshaller<IRequest, PutHypervisorPropertyMappingsRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((PutHypervisorPropertyMappingsRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(PutHypervisorPropertyMappingsRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.BackupGateway"); string target = "BackupOnPremises_v20210101.PutHypervisorPropertyMappings"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.0"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-01-01"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetHypervisorArn()) { context.Writer.WritePropertyName("HypervisorArn"); context.Writer.Write(publicRequest.HypervisorArn); } if(publicRequest.IsSetIamRoleArn()) { context.Writer.WritePropertyName("IamRoleArn"); context.Writer.Write(publicRequest.IamRoleArn); } if(publicRequest.IsSetVmwareToAwsTagMappings()) { context.Writer.WritePropertyName("VmwareToAwsTagMappings"); context.Writer.WriteArrayStart(); foreach(var publicRequestVmwareToAwsTagMappingsListValue in publicRequest.VmwareToAwsTagMappings) { context.Writer.WriteObjectStart(); var marshaller = VmwareToAwsTagMappingMarshaller.Instance; marshaller.Marshall(publicRequestVmwareToAwsTagMappingsListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static PutHypervisorPropertyMappingsRequestMarshaller _instance = new PutHypervisorPropertyMappingsRequestMarshaller(); internal static PutHypervisorPropertyMappingsRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static PutHypervisorPropertyMappingsRequestMarshaller Instance { get { return _instance; } } } }
125
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backup-gateway-2021-01-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.BackupGateway.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BackupGateway.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for PutHypervisorPropertyMappings operation /// </summary> public class PutHypervisorPropertyMappingsResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { PutHypervisorPropertyMappingsResponse response = new PutHypervisorPropertyMappingsResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("HypervisorArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.HypervisorArn = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) { return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) { return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException")) { return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonBackupGatewayException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static PutHypervisorPropertyMappingsResponseUnmarshaller _instance = new PutHypervisorPropertyMappingsResponseUnmarshaller(); internal static PutHypervisorPropertyMappingsResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static PutHypervisorPropertyMappingsResponseUnmarshaller Instance { get { return _instance; } } } }
130
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backup-gateway-2021-01-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.BackupGateway.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BackupGateway.Model.Internal.MarshallTransformations { /// <summary> /// PutMaintenanceStartTime Request Marshaller /// </summary> public class PutMaintenanceStartTimeRequestMarshaller : IMarshaller<IRequest, PutMaintenanceStartTimeRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((PutMaintenanceStartTimeRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(PutMaintenanceStartTimeRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.BackupGateway"); string target = "BackupOnPremises_v20210101.PutMaintenanceStartTime"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.0"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-01-01"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetDayOfMonth()) { context.Writer.WritePropertyName("DayOfMonth"); context.Writer.Write(publicRequest.DayOfMonth); } if(publicRequest.IsSetDayOfWeek()) { context.Writer.WritePropertyName("DayOfWeek"); context.Writer.Write(publicRequest.DayOfWeek); } if(publicRequest.IsSetGatewayArn()) { context.Writer.WritePropertyName("GatewayArn"); context.Writer.Write(publicRequest.GatewayArn); } if(publicRequest.IsSetHourOfDay()) { context.Writer.WritePropertyName("HourOfDay"); context.Writer.Write(publicRequest.HourOfDay); } if(publicRequest.IsSetMinuteOfHour()) { context.Writer.WritePropertyName("MinuteOfHour"); context.Writer.Write(publicRequest.MinuteOfHour); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static PutMaintenanceStartTimeRequestMarshaller _instance = new PutMaintenanceStartTimeRequestMarshaller(); internal static PutMaintenanceStartTimeRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static PutMaintenanceStartTimeRequestMarshaller Instance { get { return _instance; } } } }
127
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backup-gateway-2021-01-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.BackupGateway.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BackupGateway.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for PutMaintenanceStartTime operation /// </summary> public class PutMaintenanceStartTimeResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { PutMaintenanceStartTimeResponse response = new PutMaintenanceStartTimeResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("GatewayArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.GatewayArn = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) { return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException")) { return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonBackupGatewayException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static PutMaintenanceStartTimeResponseUnmarshaller _instance = new PutMaintenanceStartTimeResponseUnmarshaller(); internal static PutMaintenanceStartTimeResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static PutMaintenanceStartTimeResponseUnmarshaller Instance { get { return _instance; } } } }
126
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backup-gateway-2021-01-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.BackupGateway.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BackupGateway.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ResourceNotFoundException Object /// </summary> public class ResourceNotFoundExceptionUnmarshaller : IErrorResponseUnmarshaller<ResourceNotFoundException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ResourceNotFoundException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public ResourceNotFoundException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); ResourceNotFoundException unmarshalledObject = new ResourceNotFoundException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("ErrorCode", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ErrorCode = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ResourceNotFoundExceptionUnmarshaller _instance = new ResourceNotFoundExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ResourceNotFoundExceptionUnmarshaller Instance { get { return _instance; } } } }
91
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backup-gateway-2021-01-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.BackupGateway.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BackupGateway.Model.Internal.MarshallTransformations { /// <summary> /// StartVirtualMachinesMetadataSync Request Marshaller /// </summary> public class StartVirtualMachinesMetadataSyncRequestMarshaller : IMarshaller<IRequest, StartVirtualMachinesMetadataSyncRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((StartVirtualMachinesMetadataSyncRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(StartVirtualMachinesMetadataSyncRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.BackupGateway"); string target = "BackupOnPremises_v20210101.StartVirtualMachinesMetadataSync"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.0"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-01-01"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetHypervisorArn()) { context.Writer.WritePropertyName("HypervisorArn"); context.Writer.Write(publicRequest.HypervisorArn); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static StartVirtualMachinesMetadataSyncRequestMarshaller _instance = new StartVirtualMachinesMetadataSyncRequestMarshaller(); internal static StartVirtualMachinesMetadataSyncRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static StartVirtualMachinesMetadataSyncRequestMarshaller Instance { get { return _instance; } } } }
103
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backup-gateway-2021-01-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.BackupGateway.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BackupGateway.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for StartVirtualMachinesMetadataSync operation /// </summary> public class StartVirtualMachinesMetadataSyncResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { StartVirtualMachinesMetadataSyncResponse response = new StartVirtualMachinesMetadataSyncResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("HypervisorArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.HypervisorArn = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) { return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException")) { return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonBackupGatewayException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static StartVirtualMachinesMetadataSyncResponseUnmarshaller _instance = new StartVirtualMachinesMetadataSyncResponseUnmarshaller(); internal static StartVirtualMachinesMetadataSyncResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static StartVirtualMachinesMetadataSyncResponseUnmarshaller Instance { get { return _instance; } } } }
126
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backup-gateway-2021-01-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.BackupGateway.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BackupGateway.Model.Internal.MarshallTransformations { /// <summary> /// Tag Marshaller /// </summary> public class TagMarshaller : IRequestMarshaller<Tag, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(Tag requestObject, JsonMarshallerContext context) { if(requestObject.IsSetKey()) { context.Writer.WritePropertyName("Key"); context.Writer.Write(requestObject.Key); } if(requestObject.IsSetValue()) { context.Writer.WritePropertyName("Value"); context.Writer.Write(requestObject.Value); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static TagMarshaller Instance = new TagMarshaller(); } }
68
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backup-gateway-2021-01-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.BackupGateway.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BackupGateway.Model.Internal.MarshallTransformations { /// <summary> /// TagResource Request Marshaller /// </summary> public class TagResourceRequestMarshaller : IMarshaller<IRequest, TagResourceRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((TagResourceRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(TagResourceRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.BackupGateway"); string target = "BackupOnPremises_v20210101.TagResource"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.0"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-01-01"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetResourceARN()) { context.Writer.WritePropertyName("ResourceARN"); context.Writer.Write(publicRequest.ResourceARN); } if(publicRequest.IsSetTags()) { context.Writer.WritePropertyName("Tags"); context.Writer.WriteArrayStart(); foreach(var publicRequestTagsListValue in publicRequest.Tags) { context.Writer.WriteObjectStart(); var marshaller = TagMarshaller.Instance; marshaller.Marshall(publicRequestTagsListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static TagResourceRequestMarshaller _instance = new TagResourceRequestMarshaller(); internal static TagResourceRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static TagResourceRequestMarshaller Instance { get { return _instance; } } } }
119
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backup-gateway-2021-01-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.BackupGateway.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BackupGateway.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for TagResource operation /// </summary> public class TagResourceResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { TagResourceResponse response = new TagResourceResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("ResourceARN", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ResourceARN = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException")) { return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonBackupGatewayException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static TagResourceResponseUnmarshaller _instance = new TagResourceResponseUnmarshaller(); internal static TagResourceResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static TagResourceResponseUnmarshaller Instance { get { return _instance; } } } }
122
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backup-gateway-2021-01-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.BackupGateway.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BackupGateway.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for Tag Object /// </summary> public class TagUnmarshaller : IUnmarshaller<Tag, XmlUnmarshallerContext>, IUnmarshaller<Tag, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> Tag IUnmarshaller<Tag, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public Tag Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; Tag unmarshalledObject = new Tag(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Key", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Key = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Value", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Value = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static TagUnmarshaller _instance = new TagUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static TagUnmarshaller Instance { get { return _instance; } } } }
98
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backup-gateway-2021-01-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.BackupGateway.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BackupGateway.Model.Internal.MarshallTransformations { /// <summary> /// TestHypervisorConfiguration Request Marshaller /// </summary> public class TestHypervisorConfigurationRequestMarshaller : IMarshaller<IRequest, TestHypervisorConfigurationRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((TestHypervisorConfigurationRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(TestHypervisorConfigurationRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.BackupGateway"); string target = "BackupOnPremises_v20210101.TestHypervisorConfiguration"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.0"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-01-01"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetGatewayArn()) { context.Writer.WritePropertyName("GatewayArn"); context.Writer.Write(publicRequest.GatewayArn); } if(publicRequest.IsSetHost()) { context.Writer.WritePropertyName("Host"); context.Writer.Write(publicRequest.Host); } if(publicRequest.IsSetPassword()) { context.Writer.WritePropertyName("Password"); context.Writer.Write(publicRequest.Password); } if(publicRequest.IsSetUsername()) { context.Writer.WritePropertyName("Username"); context.Writer.Write(publicRequest.Username); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static TestHypervisorConfigurationRequestMarshaller _instance = new TestHypervisorConfigurationRequestMarshaller(); internal static TestHypervisorConfigurationRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static TestHypervisorConfigurationRequestMarshaller Instance { get { return _instance; } } } }
121
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backup-gateway-2021-01-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.BackupGateway.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BackupGateway.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for TestHypervisorConfiguration operation /// </summary> public class TestHypervisorConfigurationResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { TestHypervisorConfigurationResponse response = new TestHypervisorConfigurationResponse(); return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) { return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException")) { return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonBackupGatewayException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static TestHypervisorConfigurationResponseUnmarshaller _instance = new TestHypervisorConfigurationResponseUnmarshaller(); internal static TestHypervisorConfigurationResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static TestHypervisorConfigurationResponseUnmarshaller Instance { get { return _instance; } } } }
115
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backup-gateway-2021-01-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.BackupGateway.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BackupGateway.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ThrottlingException Object /// </summary> public class ThrottlingExceptionUnmarshaller : IErrorResponseUnmarshaller<ThrottlingException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ThrottlingException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public ThrottlingException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); ThrottlingException unmarshalledObject = new ThrottlingException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("ErrorCode", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ErrorCode = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ThrottlingExceptionUnmarshaller _instance = new ThrottlingExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ThrottlingExceptionUnmarshaller Instance { get { return _instance; } } } }
91
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backup-gateway-2021-01-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.BackupGateway.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BackupGateway.Model.Internal.MarshallTransformations { /// <summary> /// UntagResource Request Marshaller /// </summary> public class UntagResourceRequestMarshaller : IMarshaller<IRequest, UntagResourceRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((UntagResourceRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UntagResourceRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.BackupGateway"); string target = "BackupOnPremises_v20210101.UntagResource"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.0"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-01-01"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetResourceARN()) { context.Writer.WritePropertyName("ResourceARN"); context.Writer.Write(publicRequest.ResourceARN); } if(publicRequest.IsSetTagKeys()) { context.Writer.WritePropertyName("TagKeys"); context.Writer.WriteArrayStart(); foreach(var publicRequestTagKeysListValue in publicRequest.TagKeys) { context.Writer.Write(publicRequestTagKeysListValue); } context.Writer.WriteArrayEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static UntagResourceRequestMarshaller _instance = new UntagResourceRequestMarshaller(); internal static UntagResourceRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UntagResourceRequestMarshaller Instance { get { return _instance; } } } }
114
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backup-gateway-2021-01-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.BackupGateway.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BackupGateway.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UntagResource operation /// </summary> public class UntagResourceResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { UntagResourceResponse response = new UntagResourceResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("ResourceARN", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ResourceARN = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException")) { return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonBackupGatewayException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static UntagResourceResponseUnmarshaller _instance = new UntagResourceResponseUnmarshaller(); internal static UntagResourceResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UntagResourceResponseUnmarshaller Instance { get { return _instance; } } } }
122
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backup-gateway-2021-01-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.BackupGateway.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BackupGateway.Model.Internal.MarshallTransformations { /// <summary> /// UpdateGatewayInformation Request Marshaller /// </summary> public class UpdateGatewayInformationRequestMarshaller : IMarshaller<IRequest, UpdateGatewayInformationRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((UpdateGatewayInformationRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UpdateGatewayInformationRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.BackupGateway"); string target = "BackupOnPremises_v20210101.UpdateGatewayInformation"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.0"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-01-01"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetGatewayArn()) { context.Writer.WritePropertyName("GatewayArn"); context.Writer.Write(publicRequest.GatewayArn); } if(publicRequest.IsSetGatewayDisplayName()) { context.Writer.WritePropertyName("GatewayDisplayName"); context.Writer.Write(publicRequest.GatewayDisplayName); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static UpdateGatewayInformationRequestMarshaller _instance = new UpdateGatewayInformationRequestMarshaller(); internal static UpdateGatewayInformationRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateGatewayInformationRequestMarshaller Instance { get { return _instance; } } } }
109
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backup-gateway-2021-01-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.BackupGateway.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BackupGateway.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UpdateGatewayInformation operation /// </summary> public class UpdateGatewayInformationResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { UpdateGatewayInformationResponse response = new UpdateGatewayInformationResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("GatewayArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.GatewayArn = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) { return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException")) { return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonBackupGatewayException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static UpdateGatewayInformationResponseUnmarshaller _instance = new UpdateGatewayInformationResponseUnmarshaller(); internal static UpdateGatewayInformationResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateGatewayInformationResponseUnmarshaller Instance { get { return _instance; } } } }
126
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backup-gateway-2021-01-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.BackupGateway.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BackupGateway.Model.Internal.MarshallTransformations { /// <summary> /// UpdateGatewaySoftwareNow Request Marshaller /// </summary> public class UpdateGatewaySoftwareNowRequestMarshaller : IMarshaller<IRequest, UpdateGatewaySoftwareNowRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((UpdateGatewaySoftwareNowRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UpdateGatewaySoftwareNowRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.BackupGateway"); string target = "BackupOnPremises_v20210101.UpdateGatewaySoftwareNow"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.0"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-01-01"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetGatewayArn()) { context.Writer.WritePropertyName("GatewayArn"); context.Writer.Write(publicRequest.GatewayArn); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static UpdateGatewaySoftwareNowRequestMarshaller _instance = new UpdateGatewaySoftwareNowRequestMarshaller(); internal static UpdateGatewaySoftwareNowRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateGatewaySoftwareNowRequestMarshaller Instance { get { return _instance; } } } }
103
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backup-gateway-2021-01-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.BackupGateway.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BackupGateway.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UpdateGatewaySoftwareNow operation /// </summary> public class UpdateGatewaySoftwareNowResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { UpdateGatewaySoftwareNowResponse response = new UpdateGatewaySoftwareNowResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("GatewayArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.GatewayArn = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException")) { return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonBackupGatewayException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static UpdateGatewaySoftwareNowResponseUnmarshaller _instance = new UpdateGatewaySoftwareNowResponseUnmarshaller(); internal static UpdateGatewaySoftwareNowResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateGatewaySoftwareNowResponseUnmarshaller Instance { get { return _instance; } } } }
122
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backup-gateway-2021-01-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.BackupGateway.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BackupGateway.Model.Internal.MarshallTransformations { /// <summary> /// UpdateHypervisor Request Marshaller /// </summary> public class UpdateHypervisorRequestMarshaller : IMarshaller<IRequest, UpdateHypervisorRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((UpdateHypervisorRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UpdateHypervisorRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.BackupGateway"); string target = "BackupOnPremises_v20210101.UpdateHypervisor"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.0"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-01-01"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetHost()) { context.Writer.WritePropertyName("Host"); context.Writer.Write(publicRequest.Host); } if(publicRequest.IsSetHypervisorArn()) { context.Writer.WritePropertyName("HypervisorArn"); context.Writer.Write(publicRequest.HypervisorArn); } if(publicRequest.IsSetLogGroupArn()) { context.Writer.WritePropertyName("LogGroupArn"); context.Writer.Write(publicRequest.LogGroupArn); } if(publicRequest.IsSetName()) { context.Writer.WritePropertyName("Name"); context.Writer.Write(publicRequest.Name); } if(publicRequest.IsSetPassword()) { context.Writer.WritePropertyName("Password"); context.Writer.Write(publicRequest.Password); } if(publicRequest.IsSetUsername()) { context.Writer.WritePropertyName("Username"); context.Writer.Write(publicRequest.Username); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static UpdateHypervisorRequestMarshaller _instance = new UpdateHypervisorRequestMarshaller(); internal static UpdateHypervisorRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateHypervisorRequestMarshaller Instance { get { return _instance; } } } }
133
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backup-gateway-2021-01-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.BackupGateway.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BackupGateway.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UpdateHypervisor operation /// </summary> public class UpdateHypervisorResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { UpdateHypervisorResponse response = new UpdateHypervisorResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("HypervisorArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.HypervisorArn = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) { return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) { return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException")) { return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonBackupGatewayException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static UpdateHypervisorResponseUnmarshaller _instance = new UpdateHypervisorResponseUnmarshaller(); internal static UpdateHypervisorResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateHypervisorResponseUnmarshaller Instance { get { return _instance; } } } }
130
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backup-gateway-2021-01-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.BackupGateway.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BackupGateway.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ValidationException Object /// </summary> public class ValidationExceptionUnmarshaller : IErrorResponseUnmarshaller<ValidationException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ValidationException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public ValidationException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); ValidationException unmarshalledObject = new ValidationException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("ErrorCode", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ErrorCode = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ValidationExceptionUnmarshaller _instance = new ValidationExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ValidationExceptionUnmarshaller Instance { get { return _instance; } } } }
91
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backup-gateway-2021-01-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.BackupGateway.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BackupGateway.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for VirtualMachineDetails Object /// </summary> public class VirtualMachineDetailsUnmarshaller : IUnmarshaller<VirtualMachineDetails, XmlUnmarshallerContext>, IUnmarshaller<VirtualMachineDetails, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> VirtualMachineDetails IUnmarshaller<VirtualMachineDetails, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public VirtualMachineDetails Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; VirtualMachineDetails unmarshalledObject = new VirtualMachineDetails(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("HostName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.HostName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("HypervisorId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.HypervisorId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LastBackupDate", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.LastBackupDate = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Path", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Path = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ResourceArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ResourceArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("VmwareTags", targetDepth)) { var unmarshaller = new ListUnmarshaller<VmwareTag, VmwareTagUnmarshaller>(VmwareTagUnmarshaller.Instance); unmarshalledObject.VmwareTags = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static VirtualMachineDetailsUnmarshaller _instance = new VirtualMachineDetailsUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static VirtualMachineDetailsUnmarshaller Instance { get { return _instance; } } } }
128
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backup-gateway-2021-01-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.BackupGateway.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BackupGateway.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for VirtualMachine Object /// </summary> public class VirtualMachineUnmarshaller : IUnmarshaller<VirtualMachine, XmlUnmarshallerContext>, IUnmarshaller<VirtualMachine, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> VirtualMachine IUnmarshaller<VirtualMachine, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public VirtualMachine Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; VirtualMachine unmarshalledObject = new VirtualMachine(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("HostName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.HostName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("HypervisorId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.HypervisorId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LastBackupDate", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.LastBackupDate = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Path", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Path = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ResourceArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ResourceArn = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static VirtualMachineUnmarshaller _instance = new VirtualMachineUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static VirtualMachineUnmarshaller Instance { get { return _instance; } } } }
122
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backup-gateway-2021-01-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.BackupGateway.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BackupGateway.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for VmwareTag Object /// </summary> public class VmwareTagUnmarshaller : IUnmarshaller<VmwareTag, XmlUnmarshallerContext>, IUnmarshaller<VmwareTag, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> VmwareTag IUnmarshaller<VmwareTag, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public VmwareTag Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; VmwareTag unmarshalledObject = new VmwareTag(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("VmwareCategory", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.VmwareCategory = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("VmwareTagDescription", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.VmwareTagDescription = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("VmwareTagName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.VmwareTagName = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static VmwareTagUnmarshaller _instance = new VmwareTagUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static VmwareTagUnmarshaller Instance { get { return _instance; } } } }
104
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backup-gateway-2021-01-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.BackupGateway.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BackupGateway.Model.Internal.MarshallTransformations { /// <summary> /// VmwareToAwsTagMapping Marshaller /// </summary> public class VmwareToAwsTagMappingMarshaller : IRequestMarshaller<VmwareToAwsTagMapping, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(VmwareToAwsTagMapping requestObject, JsonMarshallerContext context) { if(requestObject.IsSetAwsTagKey()) { context.Writer.WritePropertyName("AwsTagKey"); context.Writer.Write(requestObject.AwsTagKey); } if(requestObject.IsSetAwsTagValue()) { context.Writer.WritePropertyName("AwsTagValue"); context.Writer.Write(requestObject.AwsTagValue); } if(requestObject.IsSetVmwareCategory()) { context.Writer.WritePropertyName("VmwareCategory"); context.Writer.Write(requestObject.VmwareCategory); } if(requestObject.IsSetVmwareTagName()) { context.Writer.WritePropertyName("VmwareTagName"); context.Writer.Write(requestObject.VmwareTagName); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static VmwareToAwsTagMappingMarshaller Instance = new VmwareToAwsTagMappingMarshaller(); } }
80
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backup-gateway-2021-01-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.BackupGateway.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BackupGateway.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for VmwareToAwsTagMapping Object /// </summary> public class VmwareToAwsTagMappingUnmarshaller : IUnmarshaller<VmwareToAwsTagMapping, XmlUnmarshallerContext>, IUnmarshaller<VmwareToAwsTagMapping, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> VmwareToAwsTagMapping IUnmarshaller<VmwareToAwsTagMapping, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public VmwareToAwsTagMapping Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; VmwareToAwsTagMapping unmarshalledObject = new VmwareToAwsTagMapping(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("AwsTagKey", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AwsTagKey = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("AwsTagValue", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AwsTagValue = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("VmwareCategory", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.VmwareCategory = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("VmwareTagName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.VmwareTagName = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static VmwareToAwsTagMappingUnmarshaller _instance = new VmwareToAwsTagMappingUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static VmwareToAwsTagMappingUnmarshaller Instance { get { return _instance; } } } }
110
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backup-gateway-2021-01-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; namespace Amazon.BackupGateway.Model { /// <summary> /// Paginators for the BackupGateway service ///</summary> public class BackupGatewayPaginatorFactory : IBackupGatewayPaginatorFactory { private readonly IAmazonBackupGateway client; internal BackupGatewayPaginatorFactory(IAmazonBackupGateway client) { this.client = client; } /// <summary> /// Paginator for ListGateways operation ///</summary> public IListGatewaysPaginator ListGateways(ListGatewaysRequest request) { return new ListGatewaysPaginator(this.client, request); } /// <summary> /// Paginator for ListHypervisors operation ///</summary> public IListHypervisorsPaginator ListHypervisors(ListHypervisorsRequest request) { return new ListHypervisorsPaginator(this.client, request); } /// <summary> /// Paginator for ListVirtualMachines operation ///</summary> public IListVirtualMachinesPaginator ListVirtualMachines(ListVirtualMachinesRequest request) { return new ListVirtualMachinesPaginator(this.client, request); } } }
62
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backup-gateway-2021-01-01.normal.json service model. */ namespace Amazon.BackupGateway.Model { /// <summary> /// Paginators for the BackupGateway service ///</summary> public interface IBackupGatewayPaginatorFactory { /// <summary> /// Paginator for ListGateways operation ///</summary> IListGatewaysPaginator ListGateways(ListGatewaysRequest request); /// <summary> /// Paginator for ListHypervisors operation ///</summary> IListHypervisorsPaginator ListHypervisors(ListHypervisorsRequest request); /// <summary> /// Paginator for ListVirtualMachines operation ///</summary> IListVirtualMachinesPaginator ListVirtualMachines(ListVirtualMachinesRequest request); } }
43
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backup-gateway-2021-01-01.normal.json service model. */ using Amazon.Runtime; namespace Amazon.BackupGateway.Model { /// <summary> /// Paginator for the ListGateways operation ///</summary> public interface IListGatewaysPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListGatewaysResponse> Responses { get; } /// <summary> /// Enumerable containing all of the Gateways /// </summary> IPaginatedEnumerable<Gateway> Gateways { get; } } }
38
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backup-gateway-2021-01-01.normal.json service model. */ using Amazon.Runtime; namespace Amazon.BackupGateway.Model { /// <summary> /// Paginator for the ListHypervisors operation ///</summary> public interface IListHypervisorsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListHypervisorsResponse> Responses { get; } /// <summary> /// Enumerable containing all of the Hypervisors /// </summary> IPaginatedEnumerable<Hypervisor> Hypervisors { get; } } }
38
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backup-gateway-2021-01-01.normal.json service model. */ using Amazon.Runtime; namespace Amazon.BackupGateway.Model { /// <summary> /// Paginator for the ListVirtualMachines operation ///</summary> public interface IListVirtualMachinesPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListVirtualMachinesResponse> Responses { get; } /// <summary> /// Enumerable containing all of the VirtualMachines /// </summary> IPaginatedEnumerable<VirtualMachine> VirtualMachines { get; } } }
38
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backup-gateway-2021-01-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.BackupGateway.Model { /// <summary> /// Base class for ListGateways paginators. /// </summary> internal sealed partial class ListGatewaysPaginator : IPaginator<ListGatewaysResponse>, IListGatewaysPaginator { private readonly IAmazonBackupGateway _client; private readonly ListGatewaysRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListGatewaysResponse> Responses => new PaginatedResponse<ListGatewaysResponse>(this); /// <summary> /// Enumerable containing all of the Gateways /// </summary> public IPaginatedEnumerable<Gateway> Gateways => new PaginatedResultKeyResponse<ListGatewaysResponse, Gateway>(this, (i) => i.Gateways); internal ListGatewaysPaginator(IAmazonBackupGateway client, ListGatewaysRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListGatewaysResponse> IPaginator<ListGatewaysResponse>.Paginate() { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListGatewaysResponse response; do { _request.NextToken = nextToken; response = _client.ListGateways(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListGatewaysResponse> IPaginator<ListGatewaysResponse>.PaginateAsync(CancellationToken cancellationToken = default) { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListGatewaysResponse response; do { _request.NextToken = nextToken; response = await _client.ListGatewaysAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
97
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backup-gateway-2021-01-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.BackupGateway.Model { /// <summary> /// Base class for ListHypervisors paginators. /// </summary> internal sealed partial class ListHypervisorsPaginator : IPaginator<ListHypervisorsResponse>, IListHypervisorsPaginator { private readonly IAmazonBackupGateway _client; private readonly ListHypervisorsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListHypervisorsResponse> Responses => new PaginatedResponse<ListHypervisorsResponse>(this); /// <summary> /// Enumerable containing all of the Hypervisors /// </summary> public IPaginatedEnumerable<Hypervisor> Hypervisors => new PaginatedResultKeyResponse<ListHypervisorsResponse, Hypervisor>(this, (i) => i.Hypervisors); internal ListHypervisorsPaginator(IAmazonBackupGateway client, ListHypervisorsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListHypervisorsResponse> IPaginator<ListHypervisorsResponse>.Paginate() { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListHypervisorsResponse response; do { _request.NextToken = nextToken; response = _client.ListHypervisors(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListHypervisorsResponse> IPaginator<ListHypervisorsResponse>.PaginateAsync(CancellationToken cancellationToken = default) { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListHypervisorsResponse response; do { _request.NextToken = nextToken; response = await _client.ListHypervisorsAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
97
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backup-gateway-2021-01-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.BackupGateway.Model { /// <summary> /// Base class for ListVirtualMachines paginators. /// </summary> internal sealed partial class ListVirtualMachinesPaginator : IPaginator<ListVirtualMachinesResponse>, IListVirtualMachinesPaginator { private readonly IAmazonBackupGateway _client; private readonly ListVirtualMachinesRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListVirtualMachinesResponse> Responses => new PaginatedResponse<ListVirtualMachinesResponse>(this); /// <summary> /// Enumerable containing all of the VirtualMachines /// </summary> public IPaginatedEnumerable<VirtualMachine> VirtualMachines => new PaginatedResultKeyResponse<ListVirtualMachinesResponse, VirtualMachine>(this, (i) => i.VirtualMachines); internal ListVirtualMachinesPaginator(IAmazonBackupGateway client, ListVirtualMachinesRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListVirtualMachinesResponse> IPaginator<ListVirtualMachinesResponse>.Paginate() { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListVirtualMachinesResponse response; do { _request.NextToken = nextToken; response = _client.ListVirtualMachines(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListVirtualMachinesResponse> IPaginator<ListVirtualMachinesResponse>.PaginateAsync(CancellationToken cancellationToken = default) { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListVirtualMachinesResponse response; do { _request.NextToken = nextToken; response = await _client.ListVirtualMachinesAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
97
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backup-gateway-2021-01-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Net; using Amazon.BackupGateway.Model; using Amazon.BackupGateway.Model.Internal.MarshallTransformations; using Amazon.BackupGateway.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.BackupGateway { /// <summary> /// Implementation for accessing BackupGateway /// /// Backup gateway /// <para> /// Backup gateway connects Backup to your hypervisor, so you can create, store, and restore /// backups of your virtual machines (VMs) anywhere, whether on-premises or in the VMware /// Cloud (VMC) on Amazon Web Services. /// /// /// <para> /// Add on-premises resources by connecting to a hypervisor through a gateway. Backup /// will automatically discover the resources in your hypervisor. /// </para> /// /// <para> /// Use Backup to assign virtual or on-premises resources to a backup plan, or run on-demand /// backups. Once you have backed up your resources, you can view them and restore them /// like any resource supported by Backup. /// </para> /// /// <para> /// To download the Amazon Web Services software to get started, navigate to the Backup /// console, choose <b>Gateways</b>, then choose <b>Create gateway</b>. /// </para> /// /// </para> /// </summary> public partial class AmazonBackupGatewayClient : AmazonServiceClient, IAmazonBackupGateway { private static IServiceMetadata serviceMetadata = new AmazonBackupGatewayMetadata(); #if BCL45 || AWS_ASYNC_ENUMERABLES_API private IBackupGatewayPaginatorFactory _paginators; /// <summary> /// Paginators for the service /// </summary> public IBackupGatewayPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new BackupGatewayPaginatorFactory(this); } return this._paginators; } } #endif #region Constructors /// <summary> /// Constructs AmazonBackupGatewayClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> public AmazonBackupGatewayClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonBackupGatewayConfig()) { } /// <summary> /// Constructs AmazonBackupGatewayClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="region">The region to connect.</param> public AmazonBackupGatewayClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonBackupGatewayConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonBackupGatewayClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="config">The AmazonBackupGatewayClient Configuration Object</param> public AmazonBackupGatewayClient(AmazonBackupGatewayConfig config) : base(FallbackCredentialsFactory.GetCredentials(), config) { } /// <summary> /// Constructs AmazonBackupGatewayClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> public AmazonBackupGatewayClient(AWSCredentials credentials) : this(credentials, new AmazonBackupGatewayConfig()) { } /// <summary> /// Constructs AmazonBackupGatewayClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="region">The region to connect.</param> public AmazonBackupGatewayClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonBackupGatewayConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonBackupGatewayClient with AWS Credentials and an /// AmazonBackupGatewayClient Configuration object. /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="clientConfig">The AmazonBackupGatewayClient Configuration Object</param> public AmazonBackupGatewayClient(AWSCredentials credentials, AmazonBackupGatewayConfig clientConfig) : base(credentials, clientConfig) { } /// <summary> /// Constructs AmazonBackupGatewayClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> public AmazonBackupGatewayClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonBackupGatewayConfig()) { } /// <summary> /// Constructs AmazonBackupGatewayClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="region">The region to connect.</param> public AmazonBackupGatewayClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonBackupGatewayConfig() {RegionEndpoint=region}) { } /// <summary> /// Constructs AmazonBackupGatewayClient with AWS Access Key ID, AWS Secret Key and an /// AmazonBackupGatewayClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="clientConfig">The AmazonBackupGatewayClient Configuration Object</param> public AmazonBackupGatewayClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonBackupGatewayConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// <summary> /// Constructs AmazonBackupGatewayClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> public AmazonBackupGatewayClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonBackupGatewayConfig()) { } /// <summary> /// Constructs AmazonBackupGatewayClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> /// <param name="region">The region to connect.</param> public AmazonBackupGatewayClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonBackupGatewayConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonBackupGatewayClient with AWS Access Key ID, AWS Secret Key and an /// AmazonBackupGatewayClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> /// <param name="clientConfig">The AmazonBackupGatewayClient Configuration Object</param> public AmazonBackupGatewayClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonBackupGatewayConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #region Overrides /// <summary> /// Creates the signer for the service. /// </summary> protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// <summary> /// Customize the pipeline /// </summary> /// <param name="pipeline"></param> protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) { pipeline.RemoveHandler<Amazon.Runtime.Internal.EndpointResolver>(); pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new AmazonBackupGatewayEndpointResolver()); } /// <summary> /// Capture metadata for the service. /// </summary> protected override IServiceMetadata ServiceMetadata { get { return serviceMetadata; } } #endregion #region Dispose /// <summary> /// Disposes the service client. /// </summary> protected override void Dispose(bool disposing) { base.Dispose(disposing); } #endregion #region AssociateGatewayToServer /// <summary> /// Associates a backup gateway with your server. After you complete the association process, /// you can back up and restore your VMs through the gateway. /// </summary> /// <param name="request">Container for the necessary parameters to execute the AssociateGatewayToServer service method.</param> /// /// <returns>The response from the AssociateGatewayToServer service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/AssociateGatewayToServer">REST API Reference for AssociateGatewayToServer Operation</seealso> public virtual AssociateGatewayToServerResponse AssociateGatewayToServer(AssociateGatewayToServerRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateGatewayToServerRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateGatewayToServerResponseUnmarshaller.Instance; return Invoke<AssociateGatewayToServerResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the AssociateGatewayToServer operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the AssociateGatewayToServer operation on AmazonBackupGatewayClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndAssociateGatewayToServer /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/AssociateGatewayToServer">REST API Reference for AssociateGatewayToServer Operation</seealso> public virtual IAsyncResult BeginAssociateGatewayToServer(AssociateGatewayToServerRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateGatewayToServerRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateGatewayToServerResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the AssociateGatewayToServer operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginAssociateGatewayToServer.</param> /// /// <returns>Returns a AssociateGatewayToServerResult from BackupGateway.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/AssociateGatewayToServer">REST API Reference for AssociateGatewayToServer Operation</seealso> public virtual AssociateGatewayToServerResponse EndAssociateGatewayToServer(IAsyncResult asyncResult) { return EndInvoke<AssociateGatewayToServerResponse>(asyncResult); } #endregion #region CreateGateway /// <summary> /// Creates a backup gateway. After you create a gateway, you can associate it with a /// server using the <code>AssociateGatewayToServer</code> operation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateGateway service method.</param> /// /// <returns>The response from the CreateGateway service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/CreateGateway">REST API Reference for CreateGateway Operation</seealso> public virtual CreateGatewayResponse CreateGateway(CreateGatewayRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateGatewayRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateGatewayResponseUnmarshaller.Instance; return Invoke<CreateGatewayResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the CreateGateway operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateGateway operation on AmazonBackupGatewayClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateGateway /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/CreateGateway">REST API Reference for CreateGateway Operation</seealso> public virtual IAsyncResult BeginCreateGateway(CreateGatewayRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateGatewayRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateGatewayResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the CreateGateway operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateGateway.</param> /// /// <returns>Returns a CreateGatewayResult from BackupGateway.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/CreateGateway">REST API Reference for CreateGateway Operation</seealso> public virtual CreateGatewayResponse EndCreateGateway(IAsyncResult asyncResult) { return EndInvoke<CreateGatewayResponse>(asyncResult); } #endregion #region DeleteGateway /// <summary> /// Deletes a backup gateway. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteGateway service method.</param> /// /// <returns>The response from the DeleteGateway service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/DeleteGateway">REST API Reference for DeleteGateway Operation</seealso> public virtual DeleteGatewayResponse DeleteGateway(DeleteGatewayRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteGatewayRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteGatewayResponseUnmarshaller.Instance; return Invoke<DeleteGatewayResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeleteGateway operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteGateway operation on AmazonBackupGatewayClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteGateway /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/DeleteGateway">REST API Reference for DeleteGateway Operation</seealso> public virtual IAsyncResult BeginDeleteGateway(DeleteGatewayRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteGatewayRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteGatewayResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeleteGateway operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteGateway.</param> /// /// <returns>Returns a DeleteGatewayResult from BackupGateway.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/DeleteGateway">REST API Reference for DeleteGateway Operation</seealso> public virtual DeleteGatewayResponse EndDeleteGateway(IAsyncResult asyncResult) { return EndInvoke<DeleteGatewayResponse>(asyncResult); } #endregion #region DeleteHypervisor /// <summary> /// Deletes a hypervisor. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteHypervisor service method.</param> /// /// <returns>The response from the DeleteHypervisor service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.AccessDeniedException"> /// The operation cannot proceed because you have insufficient permissions. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/DeleteHypervisor">REST API Reference for DeleteHypervisor Operation</seealso> public virtual DeleteHypervisorResponse DeleteHypervisor(DeleteHypervisorRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteHypervisorRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteHypervisorResponseUnmarshaller.Instance; return Invoke<DeleteHypervisorResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeleteHypervisor operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteHypervisor operation on AmazonBackupGatewayClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteHypervisor /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/DeleteHypervisor">REST API Reference for DeleteHypervisor Operation</seealso> public virtual IAsyncResult BeginDeleteHypervisor(DeleteHypervisorRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteHypervisorRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteHypervisorResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeleteHypervisor operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteHypervisor.</param> /// /// <returns>Returns a DeleteHypervisorResult from BackupGateway.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/DeleteHypervisor">REST API Reference for DeleteHypervisor Operation</seealso> public virtual DeleteHypervisorResponse EndDeleteHypervisor(IAsyncResult asyncResult) { return EndInvoke<DeleteHypervisorResponse>(asyncResult); } #endregion #region DisassociateGatewayFromServer /// <summary> /// Disassociates a backup gateway from the specified server. After the disassociation /// process finishes, the gateway can no longer access the virtual machines on the server. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisassociateGatewayFromServer service method.</param> /// /// <returns>The response from the DisassociateGatewayFromServer service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/DisassociateGatewayFromServer">REST API Reference for DisassociateGatewayFromServer Operation</seealso> public virtual DisassociateGatewayFromServerResponse DisassociateGatewayFromServer(DisassociateGatewayFromServerRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateGatewayFromServerRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateGatewayFromServerResponseUnmarshaller.Instance; return Invoke<DisassociateGatewayFromServerResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DisassociateGatewayFromServer operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DisassociateGatewayFromServer operation on AmazonBackupGatewayClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDisassociateGatewayFromServer /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/DisassociateGatewayFromServer">REST API Reference for DisassociateGatewayFromServer Operation</seealso> public virtual IAsyncResult BeginDisassociateGatewayFromServer(DisassociateGatewayFromServerRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateGatewayFromServerRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateGatewayFromServerResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DisassociateGatewayFromServer operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDisassociateGatewayFromServer.</param> /// /// <returns>Returns a DisassociateGatewayFromServerResult from BackupGateway.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/DisassociateGatewayFromServer">REST API Reference for DisassociateGatewayFromServer Operation</seealso> public virtual DisassociateGatewayFromServerResponse EndDisassociateGatewayFromServer(IAsyncResult asyncResult) { return EndInvoke<DisassociateGatewayFromServerResponse>(asyncResult); } #endregion #region GetBandwidthRateLimitSchedule /// <summary> /// Retrieves the bandwidth rate limit schedule for a specified gateway. By default, gateways /// do not have bandwidth rate limit schedules, which means no bandwidth rate limiting /// is in effect. Use this to get a gateway's bandwidth rate limit schedule. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetBandwidthRateLimitSchedule service method.</param> /// /// <returns>The response from the GetBandwidthRateLimitSchedule service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetBandwidthRateLimitSchedule">REST API Reference for GetBandwidthRateLimitSchedule Operation</seealso> public virtual GetBandwidthRateLimitScheduleResponse GetBandwidthRateLimitSchedule(GetBandwidthRateLimitScheduleRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetBandwidthRateLimitScheduleRequestMarshaller.Instance; options.ResponseUnmarshaller = GetBandwidthRateLimitScheduleResponseUnmarshaller.Instance; return Invoke<GetBandwidthRateLimitScheduleResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetBandwidthRateLimitSchedule operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetBandwidthRateLimitSchedule operation on AmazonBackupGatewayClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetBandwidthRateLimitSchedule /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetBandwidthRateLimitSchedule">REST API Reference for GetBandwidthRateLimitSchedule Operation</seealso> public virtual IAsyncResult BeginGetBandwidthRateLimitSchedule(GetBandwidthRateLimitScheduleRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetBandwidthRateLimitScheduleRequestMarshaller.Instance; options.ResponseUnmarshaller = GetBandwidthRateLimitScheduleResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetBandwidthRateLimitSchedule operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetBandwidthRateLimitSchedule.</param> /// /// <returns>Returns a GetBandwidthRateLimitScheduleResult from BackupGateway.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetBandwidthRateLimitSchedule">REST API Reference for GetBandwidthRateLimitSchedule Operation</seealso> public virtual GetBandwidthRateLimitScheduleResponse EndGetBandwidthRateLimitSchedule(IAsyncResult asyncResult) { return EndInvoke<GetBandwidthRateLimitScheduleResponse>(asyncResult); } #endregion #region GetGateway /// <summary> /// By providing the ARN (Amazon Resource Name), this API returns the gateway. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetGateway service method.</param> /// /// <returns>The response from the GetGateway service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetGateway">REST API Reference for GetGateway Operation</seealso> public virtual GetGatewayResponse GetGateway(GetGatewayRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetGatewayRequestMarshaller.Instance; options.ResponseUnmarshaller = GetGatewayResponseUnmarshaller.Instance; return Invoke<GetGatewayResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetGateway operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetGateway operation on AmazonBackupGatewayClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetGateway /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetGateway">REST API Reference for GetGateway Operation</seealso> public virtual IAsyncResult BeginGetGateway(GetGatewayRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetGatewayRequestMarshaller.Instance; options.ResponseUnmarshaller = GetGatewayResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetGateway operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetGateway.</param> /// /// <returns>Returns a GetGatewayResult from BackupGateway.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetGateway">REST API Reference for GetGateway Operation</seealso> public virtual GetGatewayResponse EndGetGateway(IAsyncResult asyncResult) { return EndInvoke<GetGatewayResponse>(asyncResult); } #endregion #region GetHypervisor /// <summary> /// This action requests information about the specified hypervisor to which the gateway /// will connect. A hypervisor is hardware, software, or firmware that creates and manages /// virtual machines, and allocates resources to them. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetHypervisor service method.</param> /// /// <returns>The response from the GetHypervisor service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetHypervisor">REST API Reference for GetHypervisor Operation</seealso> public virtual GetHypervisorResponse GetHypervisor(GetHypervisorRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetHypervisorRequestMarshaller.Instance; options.ResponseUnmarshaller = GetHypervisorResponseUnmarshaller.Instance; return Invoke<GetHypervisorResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetHypervisor operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetHypervisor operation on AmazonBackupGatewayClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetHypervisor /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetHypervisor">REST API Reference for GetHypervisor Operation</seealso> public virtual IAsyncResult BeginGetHypervisor(GetHypervisorRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetHypervisorRequestMarshaller.Instance; options.ResponseUnmarshaller = GetHypervisorResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetHypervisor operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetHypervisor.</param> /// /// <returns>Returns a GetHypervisorResult from BackupGateway.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetHypervisor">REST API Reference for GetHypervisor Operation</seealso> public virtual GetHypervisorResponse EndGetHypervisor(IAsyncResult asyncResult) { return EndInvoke<GetHypervisorResponse>(asyncResult); } #endregion #region GetHypervisorPropertyMappings /// <summary> /// This action retrieves the property mappings for the specified hypervisor. A hypervisor /// property mapping displays the relationship of entity properties available from the /// on-premises hypervisor to the properties available in Amazon Web Services. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetHypervisorPropertyMappings service method.</param> /// /// <returns>The response from the GetHypervisorPropertyMappings service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetHypervisorPropertyMappings">REST API Reference for GetHypervisorPropertyMappings Operation</seealso> public virtual GetHypervisorPropertyMappingsResponse GetHypervisorPropertyMappings(GetHypervisorPropertyMappingsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetHypervisorPropertyMappingsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetHypervisorPropertyMappingsResponseUnmarshaller.Instance; return Invoke<GetHypervisorPropertyMappingsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetHypervisorPropertyMappings operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetHypervisorPropertyMappings operation on AmazonBackupGatewayClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetHypervisorPropertyMappings /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetHypervisorPropertyMappings">REST API Reference for GetHypervisorPropertyMappings Operation</seealso> public virtual IAsyncResult BeginGetHypervisorPropertyMappings(GetHypervisorPropertyMappingsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetHypervisorPropertyMappingsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetHypervisorPropertyMappingsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetHypervisorPropertyMappings operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetHypervisorPropertyMappings.</param> /// /// <returns>Returns a GetHypervisorPropertyMappingsResult from BackupGateway.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetHypervisorPropertyMappings">REST API Reference for GetHypervisorPropertyMappings Operation</seealso> public virtual GetHypervisorPropertyMappingsResponse EndGetHypervisorPropertyMappings(IAsyncResult asyncResult) { return EndInvoke<GetHypervisorPropertyMappingsResponse>(asyncResult); } #endregion #region GetVirtualMachine /// <summary> /// By providing the ARN (Amazon Resource Name), this API returns the virtual machine. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetVirtualMachine service method.</param> /// /// <returns>The response from the GetVirtualMachine service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetVirtualMachine">REST API Reference for GetVirtualMachine Operation</seealso> public virtual GetVirtualMachineResponse GetVirtualMachine(GetVirtualMachineRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetVirtualMachineRequestMarshaller.Instance; options.ResponseUnmarshaller = GetVirtualMachineResponseUnmarshaller.Instance; return Invoke<GetVirtualMachineResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetVirtualMachine operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetVirtualMachine operation on AmazonBackupGatewayClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetVirtualMachine /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetVirtualMachine">REST API Reference for GetVirtualMachine Operation</seealso> public virtual IAsyncResult BeginGetVirtualMachine(GetVirtualMachineRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetVirtualMachineRequestMarshaller.Instance; options.ResponseUnmarshaller = GetVirtualMachineResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetVirtualMachine operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetVirtualMachine.</param> /// /// <returns>Returns a GetVirtualMachineResult from BackupGateway.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetVirtualMachine">REST API Reference for GetVirtualMachine Operation</seealso> public virtual GetVirtualMachineResponse EndGetVirtualMachine(IAsyncResult asyncResult) { return EndInvoke<GetVirtualMachineResponse>(asyncResult); } #endregion #region ImportHypervisorConfiguration /// <summary> /// Connect to a hypervisor by importing its configuration. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ImportHypervisorConfiguration service method.</param> /// /// <returns>The response from the ImportHypervisorConfiguration service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.AccessDeniedException"> /// The operation cannot proceed because you have insufficient permissions. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ImportHypervisorConfiguration">REST API Reference for ImportHypervisorConfiguration Operation</seealso> public virtual ImportHypervisorConfigurationResponse ImportHypervisorConfiguration(ImportHypervisorConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ImportHypervisorConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = ImportHypervisorConfigurationResponseUnmarshaller.Instance; return Invoke<ImportHypervisorConfigurationResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ImportHypervisorConfiguration operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ImportHypervisorConfiguration operation on AmazonBackupGatewayClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndImportHypervisorConfiguration /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ImportHypervisorConfiguration">REST API Reference for ImportHypervisorConfiguration Operation</seealso> public virtual IAsyncResult BeginImportHypervisorConfiguration(ImportHypervisorConfigurationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ImportHypervisorConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = ImportHypervisorConfigurationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ImportHypervisorConfiguration operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginImportHypervisorConfiguration.</param> /// /// <returns>Returns a ImportHypervisorConfigurationResult from BackupGateway.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ImportHypervisorConfiguration">REST API Reference for ImportHypervisorConfiguration Operation</seealso> public virtual ImportHypervisorConfigurationResponse EndImportHypervisorConfiguration(IAsyncResult asyncResult) { return EndInvoke<ImportHypervisorConfigurationResponse>(asyncResult); } #endregion #region ListGateways /// <summary> /// Lists backup gateways owned by an Amazon Web Services account in an Amazon Web Services /// Region. The returned list is ordered by gateway Amazon Resource Name (ARN). /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListGateways service method.</param> /// /// <returns>The response from the ListGateways service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ListGateways">REST API Reference for ListGateways Operation</seealso> public virtual ListGatewaysResponse ListGateways(ListGatewaysRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListGatewaysRequestMarshaller.Instance; options.ResponseUnmarshaller = ListGatewaysResponseUnmarshaller.Instance; return Invoke<ListGatewaysResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListGateways operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListGateways operation on AmazonBackupGatewayClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListGateways /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ListGateways">REST API Reference for ListGateways Operation</seealso> public virtual IAsyncResult BeginListGateways(ListGatewaysRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListGatewaysRequestMarshaller.Instance; options.ResponseUnmarshaller = ListGatewaysResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListGateways operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListGateways.</param> /// /// <returns>Returns a ListGatewaysResult from BackupGateway.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ListGateways">REST API Reference for ListGateways Operation</seealso> public virtual ListGatewaysResponse EndListGateways(IAsyncResult asyncResult) { return EndInvoke<ListGatewaysResponse>(asyncResult); } #endregion #region ListHypervisors /// <summary> /// Lists your hypervisors. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListHypervisors service method.</param> /// /// <returns>The response from the ListHypervisors service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ListHypervisors">REST API Reference for ListHypervisors Operation</seealso> public virtual ListHypervisorsResponse ListHypervisors(ListHypervisorsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListHypervisorsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListHypervisorsResponseUnmarshaller.Instance; return Invoke<ListHypervisorsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListHypervisors operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListHypervisors operation on AmazonBackupGatewayClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListHypervisors /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ListHypervisors">REST API Reference for ListHypervisors Operation</seealso> public virtual IAsyncResult BeginListHypervisors(ListHypervisorsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListHypervisorsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListHypervisorsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListHypervisors operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListHypervisors.</param> /// /// <returns>Returns a ListHypervisorsResult from BackupGateway.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ListHypervisors">REST API Reference for ListHypervisors Operation</seealso> public virtual ListHypervisorsResponse EndListHypervisors(IAsyncResult asyncResult) { return EndInvoke<ListHypervisorsResponse>(asyncResult); } #endregion #region ListTagsForResource /// <summary> /// Lists the tags applied to the resource identified by its Amazon Resource Name (ARN). /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param> /// /// <returns>The response from the ListTagsForResource service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> public virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return Invoke<ListTagsForResourceResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListTagsForResource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListTagsForResource operation on AmazonBackupGatewayClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTagsForResource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> public virtual IAsyncResult BeginListTagsForResource(ListTagsForResourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListTagsForResource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListTagsForResource.</param> /// /// <returns>Returns a ListTagsForResourceResult from BackupGateway.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> public virtual ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult) { return EndInvoke<ListTagsForResourceResponse>(asyncResult); } #endregion #region ListVirtualMachines /// <summary> /// Lists your virtual machines. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListVirtualMachines service method.</param> /// /// <returns>The response from the ListVirtualMachines service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ListVirtualMachines">REST API Reference for ListVirtualMachines Operation</seealso> public virtual ListVirtualMachinesResponse ListVirtualMachines(ListVirtualMachinesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListVirtualMachinesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListVirtualMachinesResponseUnmarshaller.Instance; return Invoke<ListVirtualMachinesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListVirtualMachines operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListVirtualMachines operation on AmazonBackupGatewayClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListVirtualMachines /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ListVirtualMachines">REST API Reference for ListVirtualMachines Operation</seealso> public virtual IAsyncResult BeginListVirtualMachines(ListVirtualMachinesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListVirtualMachinesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListVirtualMachinesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListVirtualMachines operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListVirtualMachines.</param> /// /// <returns>Returns a ListVirtualMachinesResult from BackupGateway.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ListVirtualMachines">REST API Reference for ListVirtualMachines Operation</seealso> public virtual ListVirtualMachinesResponse EndListVirtualMachines(IAsyncResult asyncResult) { return EndInvoke<ListVirtualMachinesResponse>(asyncResult); } #endregion #region PutBandwidthRateLimitSchedule /// <summary> /// This action sets the bandwidth rate limit schedule for a specified gateway. By default, /// gateways do not have a bandwidth rate limit schedule, which means no bandwidth rate /// limiting is in effect. Use this to initiate a gateway's bandwidth rate limit schedule. /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutBandwidthRateLimitSchedule service method.</param> /// /// <returns>The response from the PutBandwidthRateLimitSchedule service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/PutBandwidthRateLimitSchedule">REST API Reference for PutBandwidthRateLimitSchedule Operation</seealso> public virtual PutBandwidthRateLimitScheduleResponse PutBandwidthRateLimitSchedule(PutBandwidthRateLimitScheduleRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutBandwidthRateLimitScheduleRequestMarshaller.Instance; options.ResponseUnmarshaller = PutBandwidthRateLimitScheduleResponseUnmarshaller.Instance; return Invoke<PutBandwidthRateLimitScheduleResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the PutBandwidthRateLimitSchedule operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the PutBandwidthRateLimitSchedule operation on AmazonBackupGatewayClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutBandwidthRateLimitSchedule /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/PutBandwidthRateLimitSchedule">REST API Reference for PutBandwidthRateLimitSchedule Operation</seealso> public virtual IAsyncResult BeginPutBandwidthRateLimitSchedule(PutBandwidthRateLimitScheduleRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = PutBandwidthRateLimitScheduleRequestMarshaller.Instance; options.ResponseUnmarshaller = PutBandwidthRateLimitScheduleResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the PutBandwidthRateLimitSchedule operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutBandwidthRateLimitSchedule.</param> /// /// <returns>Returns a PutBandwidthRateLimitScheduleResult from BackupGateway.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/PutBandwidthRateLimitSchedule">REST API Reference for PutBandwidthRateLimitSchedule Operation</seealso> public virtual PutBandwidthRateLimitScheduleResponse EndPutBandwidthRateLimitSchedule(IAsyncResult asyncResult) { return EndInvoke<PutBandwidthRateLimitScheduleResponse>(asyncResult); } #endregion #region PutHypervisorPropertyMappings /// <summary> /// This action sets the property mappings for the specified hypervisor. A hypervisor /// property mapping displays the relationship of entity properties available from the /// on-premises hypervisor to the properties available in Amazon Web Services. /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutHypervisorPropertyMappings service method.</param> /// /// <returns>The response from the PutHypervisorPropertyMappings service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.AccessDeniedException"> /// The operation cannot proceed because you have insufficient permissions. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/PutHypervisorPropertyMappings">REST API Reference for PutHypervisorPropertyMappings Operation</seealso> public virtual PutHypervisorPropertyMappingsResponse PutHypervisorPropertyMappings(PutHypervisorPropertyMappingsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutHypervisorPropertyMappingsRequestMarshaller.Instance; options.ResponseUnmarshaller = PutHypervisorPropertyMappingsResponseUnmarshaller.Instance; return Invoke<PutHypervisorPropertyMappingsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the PutHypervisorPropertyMappings operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the PutHypervisorPropertyMappings operation on AmazonBackupGatewayClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutHypervisorPropertyMappings /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/PutHypervisorPropertyMappings">REST API Reference for PutHypervisorPropertyMappings Operation</seealso> public virtual IAsyncResult BeginPutHypervisorPropertyMappings(PutHypervisorPropertyMappingsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = PutHypervisorPropertyMappingsRequestMarshaller.Instance; options.ResponseUnmarshaller = PutHypervisorPropertyMappingsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the PutHypervisorPropertyMappings operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutHypervisorPropertyMappings.</param> /// /// <returns>Returns a PutHypervisorPropertyMappingsResult from BackupGateway.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/PutHypervisorPropertyMappings">REST API Reference for PutHypervisorPropertyMappings Operation</seealso> public virtual PutHypervisorPropertyMappingsResponse EndPutHypervisorPropertyMappings(IAsyncResult asyncResult) { return EndInvoke<PutHypervisorPropertyMappingsResponse>(asyncResult); } #endregion #region PutMaintenanceStartTime /// <summary> /// Set the maintenance start time for a gateway. /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutMaintenanceStartTime service method.</param> /// /// <returns>The response from the PutMaintenanceStartTime service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/PutMaintenanceStartTime">REST API Reference for PutMaintenanceStartTime Operation</seealso> public virtual PutMaintenanceStartTimeResponse PutMaintenanceStartTime(PutMaintenanceStartTimeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutMaintenanceStartTimeRequestMarshaller.Instance; options.ResponseUnmarshaller = PutMaintenanceStartTimeResponseUnmarshaller.Instance; return Invoke<PutMaintenanceStartTimeResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the PutMaintenanceStartTime operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the PutMaintenanceStartTime operation on AmazonBackupGatewayClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutMaintenanceStartTime /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/PutMaintenanceStartTime">REST API Reference for PutMaintenanceStartTime Operation</seealso> public virtual IAsyncResult BeginPutMaintenanceStartTime(PutMaintenanceStartTimeRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = PutMaintenanceStartTimeRequestMarshaller.Instance; options.ResponseUnmarshaller = PutMaintenanceStartTimeResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the PutMaintenanceStartTime operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutMaintenanceStartTime.</param> /// /// <returns>Returns a PutMaintenanceStartTimeResult from BackupGateway.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/PutMaintenanceStartTime">REST API Reference for PutMaintenanceStartTime Operation</seealso> public virtual PutMaintenanceStartTimeResponse EndPutMaintenanceStartTime(IAsyncResult asyncResult) { return EndInvoke<PutMaintenanceStartTimeResponse>(asyncResult); } #endregion #region StartVirtualMachinesMetadataSync /// <summary> /// This action sends a request to sync metadata across the specified virtual machines. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartVirtualMachinesMetadataSync service method.</param> /// /// <returns>The response from the StartVirtualMachinesMetadataSync service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.AccessDeniedException"> /// The operation cannot proceed because you have insufficient permissions. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/StartVirtualMachinesMetadataSync">REST API Reference for StartVirtualMachinesMetadataSync Operation</seealso> public virtual StartVirtualMachinesMetadataSyncResponse StartVirtualMachinesMetadataSync(StartVirtualMachinesMetadataSyncRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartVirtualMachinesMetadataSyncRequestMarshaller.Instance; options.ResponseUnmarshaller = StartVirtualMachinesMetadataSyncResponseUnmarshaller.Instance; return Invoke<StartVirtualMachinesMetadataSyncResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the StartVirtualMachinesMetadataSync operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the StartVirtualMachinesMetadataSync operation on AmazonBackupGatewayClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStartVirtualMachinesMetadataSync /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/StartVirtualMachinesMetadataSync">REST API Reference for StartVirtualMachinesMetadataSync Operation</seealso> public virtual IAsyncResult BeginStartVirtualMachinesMetadataSync(StartVirtualMachinesMetadataSyncRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = StartVirtualMachinesMetadataSyncRequestMarshaller.Instance; options.ResponseUnmarshaller = StartVirtualMachinesMetadataSyncResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the StartVirtualMachinesMetadataSync operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginStartVirtualMachinesMetadataSync.</param> /// /// <returns>Returns a StartVirtualMachinesMetadataSyncResult from BackupGateway.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/StartVirtualMachinesMetadataSync">REST API Reference for StartVirtualMachinesMetadataSync Operation</seealso> public virtual StartVirtualMachinesMetadataSyncResponse EndStartVirtualMachinesMetadataSync(IAsyncResult asyncResult) { return EndInvoke<StartVirtualMachinesMetadataSyncResponse>(asyncResult); } #endregion #region TagResource /// <summary> /// Tag the resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param> /// /// <returns>The response from the TagResource service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/TagResource">REST API Reference for TagResource Operation</seealso> public virtual TagResourceResponse TagResource(TagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return Invoke<TagResourceResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the TagResource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the TagResource operation on AmazonBackupGatewayClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndTagResource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/TagResource">REST API Reference for TagResource Operation</seealso> public virtual IAsyncResult BeginTagResource(TagResourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the TagResource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginTagResource.</param> /// /// <returns>Returns a TagResourceResult from BackupGateway.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/TagResource">REST API Reference for TagResource Operation</seealso> public virtual TagResourceResponse EndTagResource(IAsyncResult asyncResult) { return EndInvoke<TagResourceResponse>(asyncResult); } #endregion #region TestHypervisorConfiguration /// <summary> /// Tests your hypervisor configuration to validate that backup gateway can connect with /// the hypervisor and its resources. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TestHypervisorConfiguration service method.</param> /// /// <returns>The response from the TestHypervisorConfiguration service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/TestHypervisorConfiguration">REST API Reference for TestHypervisorConfiguration Operation</seealso> public virtual TestHypervisorConfigurationResponse TestHypervisorConfiguration(TestHypervisorConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TestHypervisorConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = TestHypervisorConfigurationResponseUnmarshaller.Instance; return Invoke<TestHypervisorConfigurationResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the TestHypervisorConfiguration operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the TestHypervisorConfiguration operation on AmazonBackupGatewayClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndTestHypervisorConfiguration /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/TestHypervisorConfiguration">REST API Reference for TestHypervisorConfiguration Operation</seealso> public virtual IAsyncResult BeginTestHypervisorConfiguration(TestHypervisorConfigurationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = TestHypervisorConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = TestHypervisorConfigurationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the TestHypervisorConfiguration operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginTestHypervisorConfiguration.</param> /// /// <returns>Returns a TestHypervisorConfigurationResult from BackupGateway.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/TestHypervisorConfiguration">REST API Reference for TestHypervisorConfiguration Operation</seealso> public virtual TestHypervisorConfigurationResponse EndTestHypervisorConfiguration(IAsyncResult asyncResult) { return EndInvoke<TestHypervisorConfigurationResponse>(asyncResult); } #endregion #region UntagResource /// <summary> /// Removes tags from the resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param> /// /// <returns>The response from the UntagResource service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/UntagResource">REST API Reference for UntagResource Operation</seealso> public virtual UntagResourceResponse UntagResource(UntagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return Invoke<UntagResourceResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the UntagResource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UntagResource operation on AmazonBackupGatewayClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUntagResource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/UntagResource">REST API Reference for UntagResource Operation</seealso> public virtual IAsyncResult BeginUntagResource(UntagResourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the UntagResource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUntagResource.</param> /// /// <returns>Returns a UntagResourceResult from BackupGateway.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/UntagResource">REST API Reference for UntagResource Operation</seealso> public virtual UntagResourceResponse EndUntagResource(IAsyncResult asyncResult) { return EndInvoke<UntagResourceResponse>(asyncResult); } #endregion #region UpdateGatewayInformation /// <summary> /// Updates a gateway's name. Specify which gateway to update using the Amazon Resource /// Name (ARN) of the gateway in your request. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateGatewayInformation service method.</param> /// /// <returns>The response from the UpdateGatewayInformation service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/UpdateGatewayInformation">REST API Reference for UpdateGatewayInformation Operation</seealso> public virtual UpdateGatewayInformationResponse UpdateGatewayInformation(UpdateGatewayInformationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateGatewayInformationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateGatewayInformationResponseUnmarshaller.Instance; return Invoke<UpdateGatewayInformationResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the UpdateGatewayInformation operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateGatewayInformation operation on AmazonBackupGatewayClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateGatewayInformation /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/UpdateGatewayInformation">REST API Reference for UpdateGatewayInformation Operation</seealso> public virtual IAsyncResult BeginUpdateGatewayInformation(UpdateGatewayInformationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateGatewayInformationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateGatewayInformationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the UpdateGatewayInformation operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateGatewayInformation.</param> /// /// <returns>Returns a UpdateGatewayInformationResult from BackupGateway.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/UpdateGatewayInformation">REST API Reference for UpdateGatewayInformation Operation</seealso> public virtual UpdateGatewayInformationResponse EndUpdateGatewayInformation(IAsyncResult asyncResult) { return EndInvoke<UpdateGatewayInformationResponse>(asyncResult); } #endregion #region UpdateGatewaySoftwareNow /// <summary> /// Updates the gateway virtual machine (VM) software. The request immediately triggers /// the software update. /// /// <note> /// <para> /// When you make this request, you get a <code>200 OK</code> success response immediately. /// However, it might take some time for the update to complete. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateGatewaySoftwareNow service method.</param> /// /// <returns>The response from the UpdateGatewaySoftwareNow service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/UpdateGatewaySoftwareNow">REST API Reference for UpdateGatewaySoftwareNow Operation</seealso> public virtual UpdateGatewaySoftwareNowResponse UpdateGatewaySoftwareNow(UpdateGatewaySoftwareNowRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateGatewaySoftwareNowRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateGatewaySoftwareNowResponseUnmarshaller.Instance; return Invoke<UpdateGatewaySoftwareNowResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the UpdateGatewaySoftwareNow operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateGatewaySoftwareNow operation on AmazonBackupGatewayClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateGatewaySoftwareNow /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/UpdateGatewaySoftwareNow">REST API Reference for UpdateGatewaySoftwareNow Operation</seealso> public virtual IAsyncResult BeginUpdateGatewaySoftwareNow(UpdateGatewaySoftwareNowRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateGatewaySoftwareNowRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateGatewaySoftwareNowResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the UpdateGatewaySoftwareNow operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateGatewaySoftwareNow.</param> /// /// <returns>Returns a UpdateGatewaySoftwareNowResult from BackupGateway.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/UpdateGatewaySoftwareNow">REST API Reference for UpdateGatewaySoftwareNow Operation</seealso> public virtual UpdateGatewaySoftwareNowResponse EndUpdateGatewaySoftwareNow(IAsyncResult asyncResult) { return EndInvoke<UpdateGatewaySoftwareNowResponse>(asyncResult); } #endregion #region UpdateHypervisor /// <summary> /// Updates a hypervisor metadata, including its host, username, and password. Specify /// which hypervisor to update using the Amazon Resource Name (ARN) of the hypervisor /// in your request. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateHypervisor service method.</param> /// /// <returns>The response from the UpdateHypervisor service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.AccessDeniedException"> /// The operation cannot proceed because you have insufficient permissions. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/UpdateHypervisor">REST API Reference for UpdateHypervisor Operation</seealso> public virtual UpdateHypervisorResponse UpdateHypervisor(UpdateHypervisorRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateHypervisorRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateHypervisorResponseUnmarshaller.Instance; return Invoke<UpdateHypervisorResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the UpdateHypervisor operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateHypervisor operation on AmazonBackupGatewayClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateHypervisor /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/UpdateHypervisor">REST API Reference for UpdateHypervisor Operation</seealso> public virtual IAsyncResult BeginUpdateHypervisor(UpdateHypervisorRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateHypervisorRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateHypervisorResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the UpdateHypervisor operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateHypervisor.</param> /// /// <returns>Returns a UpdateHypervisorResult from BackupGateway.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/UpdateHypervisor">REST API Reference for UpdateHypervisor Operation</seealso> public virtual UpdateHypervisorResponse EndUpdateHypervisor(IAsyncResult asyncResult) { return EndInvoke<UpdateHypervisorResponse>(asyncResult); } #endregion } }
2,016
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backup-gateway-2021-01-01.normal.json service model. */ using System; using System.Collections.Generic; using Amazon.Runtime; using Amazon.BackupGateway.Model; namespace Amazon.BackupGateway { /// <summary> /// Interface for accessing BackupGateway /// /// Backup gateway /// <para> /// Backup gateway connects Backup to your hypervisor, so you can create, store, and restore /// backups of your virtual machines (VMs) anywhere, whether on-premises or in the VMware /// Cloud (VMC) on Amazon Web Services. /// /// /// <para> /// Add on-premises resources by connecting to a hypervisor through a gateway. Backup /// will automatically discover the resources in your hypervisor. /// </para> /// /// <para> /// Use Backup to assign virtual or on-premises resources to a backup plan, or run on-demand /// backups. Once you have backed up your resources, you can view them and restore them /// like any resource supported by Backup. /// </para> /// /// <para> /// To download the Amazon Web Services software to get started, navigate to the Backup /// console, choose <b>Gateways</b>, then choose <b>Create gateway</b>. /// </para> /// /// </para> /// </summary> public partial interface IAmazonBackupGateway : IAmazonService, IDisposable { #if BCL45 || AWS_ASYNC_ENUMERABLES_API /// <summary> /// Paginators for the service /// </summary> IBackupGatewayPaginatorFactory Paginators { get; } #endif #region AssociateGatewayToServer /// <summary> /// Associates a backup gateway with your server. After you complete the association process, /// you can back up and restore your VMs through the gateway. /// </summary> /// <param name="request">Container for the necessary parameters to execute the AssociateGatewayToServer service method.</param> /// /// <returns>The response from the AssociateGatewayToServer service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/AssociateGatewayToServer">REST API Reference for AssociateGatewayToServer Operation</seealso> AssociateGatewayToServerResponse AssociateGatewayToServer(AssociateGatewayToServerRequest request); /// <summary> /// Initiates the asynchronous execution of the AssociateGatewayToServer operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the AssociateGatewayToServer operation on AmazonBackupGatewayClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndAssociateGatewayToServer /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/AssociateGatewayToServer">REST API Reference for AssociateGatewayToServer Operation</seealso> IAsyncResult BeginAssociateGatewayToServer(AssociateGatewayToServerRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the AssociateGatewayToServer operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginAssociateGatewayToServer.</param> /// /// <returns>Returns a AssociateGatewayToServerResult from BackupGateway.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/AssociateGatewayToServer">REST API Reference for AssociateGatewayToServer Operation</seealso> AssociateGatewayToServerResponse EndAssociateGatewayToServer(IAsyncResult asyncResult); #endregion #region CreateGateway /// <summary> /// Creates a backup gateway. After you create a gateway, you can associate it with a /// server using the <code>AssociateGatewayToServer</code> operation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateGateway service method.</param> /// /// <returns>The response from the CreateGateway service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/CreateGateway">REST API Reference for CreateGateway Operation</seealso> CreateGatewayResponse CreateGateway(CreateGatewayRequest request); /// <summary> /// Initiates the asynchronous execution of the CreateGateway operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateGateway operation on AmazonBackupGatewayClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateGateway /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/CreateGateway">REST API Reference for CreateGateway Operation</seealso> IAsyncResult BeginCreateGateway(CreateGatewayRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CreateGateway operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateGateway.</param> /// /// <returns>Returns a CreateGatewayResult from BackupGateway.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/CreateGateway">REST API Reference for CreateGateway Operation</seealso> CreateGatewayResponse EndCreateGateway(IAsyncResult asyncResult); #endregion #region DeleteGateway /// <summary> /// Deletes a backup gateway. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteGateway service method.</param> /// /// <returns>The response from the DeleteGateway service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/DeleteGateway">REST API Reference for DeleteGateway Operation</seealso> DeleteGatewayResponse DeleteGateway(DeleteGatewayRequest request); /// <summary> /// Initiates the asynchronous execution of the DeleteGateway operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteGateway operation on AmazonBackupGatewayClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteGateway /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/DeleteGateway">REST API Reference for DeleteGateway Operation</seealso> IAsyncResult BeginDeleteGateway(DeleteGatewayRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeleteGateway operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteGateway.</param> /// /// <returns>Returns a DeleteGatewayResult from BackupGateway.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/DeleteGateway">REST API Reference for DeleteGateway Operation</seealso> DeleteGatewayResponse EndDeleteGateway(IAsyncResult asyncResult); #endregion #region DeleteHypervisor /// <summary> /// Deletes a hypervisor. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteHypervisor service method.</param> /// /// <returns>The response from the DeleteHypervisor service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.AccessDeniedException"> /// The operation cannot proceed because you have insufficient permissions. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/DeleteHypervisor">REST API Reference for DeleteHypervisor Operation</seealso> DeleteHypervisorResponse DeleteHypervisor(DeleteHypervisorRequest request); /// <summary> /// Initiates the asynchronous execution of the DeleteHypervisor operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteHypervisor operation on AmazonBackupGatewayClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteHypervisor /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/DeleteHypervisor">REST API Reference for DeleteHypervisor Operation</seealso> IAsyncResult BeginDeleteHypervisor(DeleteHypervisorRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeleteHypervisor operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteHypervisor.</param> /// /// <returns>Returns a DeleteHypervisorResult from BackupGateway.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/DeleteHypervisor">REST API Reference for DeleteHypervisor Operation</seealso> DeleteHypervisorResponse EndDeleteHypervisor(IAsyncResult asyncResult); #endregion #region DisassociateGatewayFromServer /// <summary> /// Disassociates a backup gateway from the specified server. After the disassociation /// process finishes, the gateway can no longer access the virtual machines on the server. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisassociateGatewayFromServer service method.</param> /// /// <returns>The response from the DisassociateGatewayFromServer service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/DisassociateGatewayFromServer">REST API Reference for DisassociateGatewayFromServer Operation</seealso> DisassociateGatewayFromServerResponse DisassociateGatewayFromServer(DisassociateGatewayFromServerRequest request); /// <summary> /// Initiates the asynchronous execution of the DisassociateGatewayFromServer operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DisassociateGatewayFromServer operation on AmazonBackupGatewayClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDisassociateGatewayFromServer /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/DisassociateGatewayFromServer">REST API Reference for DisassociateGatewayFromServer Operation</seealso> IAsyncResult BeginDisassociateGatewayFromServer(DisassociateGatewayFromServerRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DisassociateGatewayFromServer operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDisassociateGatewayFromServer.</param> /// /// <returns>Returns a DisassociateGatewayFromServerResult from BackupGateway.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/DisassociateGatewayFromServer">REST API Reference for DisassociateGatewayFromServer Operation</seealso> DisassociateGatewayFromServerResponse EndDisassociateGatewayFromServer(IAsyncResult asyncResult); #endregion #region GetBandwidthRateLimitSchedule /// <summary> /// Retrieves the bandwidth rate limit schedule for a specified gateway. By default, gateways /// do not have bandwidth rate limit schedules, which means no bandwidth rate limiting /// is in effect. Use this to get a gateway's bandwidth rate limit schedule. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetBandwidthRateLimitSchedule service method.</param> /// /// <returns>The response from the GetBandwidthRateLimitSchedule service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetBandwidthRateLimitSchedule">REST API Reference for GetBandwidthRateLimitSchedule Operation</seealso> GetBandwidthRateLimitScheduleResponse GetBandwidthRateLimitSchedule(GetBandwidthRateLimitScheduleRequest request); /// <summary> /// Initiates the asynchronous execution of the GetBandwidthRateLimitSchedule operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetBandwidthRateLimitSchedule operation on AmazonBackupGatewayClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetBandwidthRateLimitSchedule /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetBandwidthRateLimitSchedule">REST API Reference for GetBandwidthRateLimitSchedule Operation</seealso> IAsyncResult BeginGetBandwidthRateLimitSchedule(GetBandwidthRateLimitScheduleRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetBandwidthRateLimitSchedule operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetBandwidthRateLimitSchedule.</param> /// /// <returns>Returns a GetBandwidthRateLimitScheduleResult from BackupGateway.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetBandwidthRateLimitSchedule">REST API Reference for GetBandwidthRateLimitSchedule Operation</seealso> GetBandwidthRateLimitScheduleResponse EndGetBandwidthRateLimitSchedule(IAsyncResult asyncResult); #endregion #region GetGateway /// <summary> /// By providing the ARN (Amazon Resource Name), this API returns the gateway. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetGateway service method.</param> /// /// <returns>The response from the GetGateway service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetGateway">REST API Reference for GetGateway Operation</seealso> GetGatewayResponse GetGateway(GetGatewayRequest request); /// <summary> /// Initiates the asynchronous execution of the GetGateway operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetGateway operation on AmazonBackupGatewayClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetGateway /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetGateway">REST API Reference for GetGateway Operation</seealso> IAsyncResult BeginGetGateway(GetGatewayRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetGateway operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetGateway.</param> /// /// <returns>Returns a GetGatewayResult from BackupGateway.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetGateway">REST API Reference for GetGateway Operation</seealso> GetGatewayResponse EndGetGateway(IAsyncResult asyncResult); #endregion #region GetHypervisor /// <summary> /// This action requests information about the specified hypervisor to which the gateway /// will connect. A hypervisor is hardware, software, or firmware that creates and manages /// virtual machines, and allocates resources to them. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetHypervisor service method.</param> /// /// <returns>The response from the GetHypervisor service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetHypervisor">REST API Reference for GetHypervisor Operation</seealso> GetHypervisorResponse GetHypervisor(GetHypervisorRequest request); /// <summary> /// Initiates the asynchronous execution of the GetHypervisor operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetHypervisor operation on AmazonBackupGatewayClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetHypervisor /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetHypervisor">REST API Reference for GetHypervisor Operation</seealso> IAsyncResult BeginGetHypervisor(GetHypervisorRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetHypervisor operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetHypervisor.</param> /// /// <returns>Returns a GetHypervisorResult from BackupGateway.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetHypervisor">REST API Reference for GetHypervisor Operation</seealso> GetHypervisorResponse EndGetHypervisor(IAsyncResult asyncResult); #endregion #region GetHypervisorPropertyMappings /// <summary> /// This action retrieves the property mappings for the specified hypervisor. A hypervisor /// property mapping displays the relationship of entity properties available from the /// on-premises hypervisor to the properties available in Amazon Web Services. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetHypervisorPropertyMappings service method.</param> /// /// <returns>The response from the GetHypervisorPropertyMappings service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetHypervisorPropertyMappings">REST API Reference for GetHypervisorPropertyMappings Operation</seealso> GetHypervisorPropertyMappingsResponse GetHypervisorPropertyMappings(GetHypervisorPropertyMappingsRequest request); /// <summary> /// Initiates the asynchronous execution of the GetHypervisorPropertyMappings operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetHypervisorPropertyMappings operation on AmazonBackupGatewayClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetHypervisorPropertyMappings /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetHypervisorPropertyMappings">REST API Reference for GetHypervisorPropertyMappings Operation</seealso> IAsyncResult BeginGetHypervisorPropertyMappings(GetHypervisorPropertyMappingsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetHypervisorPropertyMappings operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetHypervisorPropertyMappings.</param> /// /// <returns>Returns a GetHypervisorPropertyMappingsResult from BackupGateway.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetHypervisorPropertyMappings">REST API Reference for GetHypervisorPropertyMappings Operation</seealso> GetHypervisorPropertyMappingsResponse EndGetHypervisorPropertyMappings(IAsyncResult asyncResult); #endregion #region GetVirtualMachine /// <summary> /// By providing the ARN (Amazon Resource Name), this API returns the virtual machine. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetVirtualMachine service method.</param> /// /// <returns>The response from the GetVirtualMachine service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetVirtualMachine">REST API Reference for GetVirtualMachine Operation</seealso> GetVirtualMachineResponse GetVirtualMachine(GetVirtualMachineRequest request); /// <summary> /// Initiates the asynchronous execution of the GetVirtualMachine operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetVirtualMachine operation on AmazonBackupGatewayClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetVirtualMachine /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetVirtualMachine">REST API Reference for GetVirtualMachine Operation</seealso> IAsyncResult BeginGetVirtualMachine(GetVirtualMachineRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetVirtualMachine operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetVirtualMachine.</param> /// /// <returns>Returns a GetVirtualMachineResult from BackupGateway.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetVirtualMachine">REST API Reference for GetVirtualMachine Operation</seealso> GetVirtualMachineResponse EndGetVirtualMachine(IAsyncResult asyncResult); #endregion #region ImportHypervisorConfiguration /// <summary> /// Connect to a hypervisor by importing its configuration. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ImportHypervisorConfiguration service method.</param> /// /// <returns>The response from the ImportHypervisorConfiguration service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.AccessDeniedException"> /// The operation cannot proceed because you have insufficient permissions. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ImportHypervisorConfiguration">REST API Reference for ImportHypervisorConfiguration Operation</seealso> ImportHypervisorConfigurationResponse ImportHypervisorConfiguration(ImportHypervisorConfigurationRequest request); /// <summary> /// Initiates the asynchronous execution of the ImportHypervisorConfiguration operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ImportHypervisorConfiguration operation on AmazonBackupGatewayClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndImportHypervisorConfiguration /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ImportHypervisorConfiguration">REST API Reference for ImportHypervisorConfiguration Operation</seealso> IAsyncResult BeginImportHypervisorConfiguration(ImportHypervisorConfigurationRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ImportHypervisorConfiguration operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginImportHypervisorConfiguration.</param> /// /// <returns>Returns a ImportHypervisorConfigurationResult from BackupGateway.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ImportHypervisorConfiguration">REST API Reference for ImportHypervisorConfiguration Operation</seealso> ImportHypervisorConfigurationResponse EndImportHypervisorConfiguration(IAsyncResult asyncResult); #endregion #region ListGateways /// <summary> /// Lists backup gateways owned by an Amazon Web Services account in an Amazon Web Services /// Region. The returned list is ordered by gateway Amazon Resource Name (ARN). /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListGateways service method.</param> /// /// <returns>The response from the ListGateways service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ListGateways">REST API Reference for ListGateways Operation</seealso> ListGatewaysResponse ListGateways(ListGatewaysRequest request); /// <summary> /// Initiates the asynchronous execution of the ListGateways operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListGateways operation on AmazonBackupGatewayClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListGateways /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ListGateways">REST API Reference for ListGateways Operation</seealso> IAsyncResult BeginListGateways(ListGatewaysRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListGateways operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListGateways.</param> /// /// <returns>Returns a ListGatewaysResult from BackupGateway.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ListGateways">REST API Reference for ListGateways Operation</seealso> ListGatewaysResponse EndListGateways(IAsyncResult asyncResult); #endregion #region ListHypervisors /// <summary> /// Lists your hypervisors. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListHypervisors service method.</param> /// /// <returns>The response from the ListHypervisors service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ListHypervisors">REST API Reference for ListHypervisors Operation</seealso> ListHypervisorsResponse ListHypervisors(ListHypervisorsRequest request); /// <summary> /// Initiates the asynchronous execution of the ListHypervisors operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListHypervisors operation on AmazonBackupGatewayClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListHypervisors /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ListHypervisors">REST API Reference for ListHypervisors Operation</seealso> IAsyncResult BeginListHypervisors(ListHypervisorsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListHypervisors operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListHypervisors.</param> /// /// <returns>Returns a ListHypervisorsResult from BackupGateway.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ListHypervisors">REST API Reference for ListHypervisors Operation</seealso> ListHypervisorsResponse EndListHypervisors(IAsyncResult asyncResult); #endregion #region ListTagsForResource /// <summary> /// Lists the tags applied to the resource identified by its Amazon Resource Name (ARN). /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param> /// /// <returns>The response from the ListTagsForResource service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request); /// <summary> /// Initiates the asynchronous execution of the ListTagsForResource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListTagsForResource operation on AmazonBackupGatewayClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTagsForResource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> IAsyncResult BeginListTagsForResource(ListTagsForResourceRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListTagsForResource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListTagsForResource.</param> /// /// <returns>Returns a ListTagsForResourceResult from BackupGateway.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult); #endregion #region ListVirtualMachines /// <summary> /// Lists your virtual machines. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListVirtualMachines service method.</param> /// /// <returns>The response from the ListVirtualMachines service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ListVirtualMachines">REST API Reference for ListVirtualMachines Operation</seealso> ListVirtualMachinesResponse ListVirtualMachines(ListVirtualMachinesRequest request); /// <summary> /// Initiates the asynchronous execution of the ListVirtualMachines operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListVirtualMachines operation on AmazonBackupGatewayClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListVirtualMachines /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ListVirtualMachines">REST API Reference for ListVirtualMachines Operation</seealso> IAsyncResult BeginListVirtualMachines(ListVirtualMachinesRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListVirtualMachines operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListVirtualMachines.</param> /// /// <returns>Returns a ListVirtualMachinesResult from BackupGateway.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ListVirtualMachines">REST API Reference for ListVirtualMachines Operation</seealso> ListVirtualMachinesResponse EndListVirtualMachines(IAsyncResult asyncResult); #endregion #region PutBandwidthRateLimitSchedule /// <summary> /// This action sets the bandwidth rate limit schedule for a specified gateway. By default, /// gateways do not have a bandwidth rate limit schedule, which means no bandwidth rate /// limiting is in effect. Use this to initiate a gateway's bandwidth rate limit schedule. /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutBandwidthRateLimitSchedule service method.</param> /// /// <returns>The response from the PutBandwidthRateLimitSchedule service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/PutBandwidthRateLimitSchedule">REST API Reference for PutBandwidthRateLimitSchedule Operation</seealso> PutBandwidthRateLimitScheduleResponse PutBandwidthRateLimitSchedule(PutBandwidthRateLimitScheduleRequest request); /// <summary> /// Initiates the asynchronous execution of the PutBandwidthRateLimitSchedule operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the PutBandwidthRateLimitSchedule operation on AmazonBackupGatewayClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutBandwidthRateLimitSchedule /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/PutBandwidthRateLimitSchedule">REST API Reference for PutBandwidthRateLimitSchedule Operation</seealso> IAsyncResult BeginPutBandwidthRateLimitSchedule(PutBandwidthRateLimitScheduleRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the PutBandwidthRateLimitSchedule operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutBandwidthRateLimitSchedule.</param> /// /// <returns>Returns a PutBandwidthRateLimitScheduleResult from BackupGateway.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/PutBandwidthRateLimitSchedule">REST API Reference for PutBandwidthRateLimitSchedule Operation</seealso> PutBandwidthRateLimitScheduleResponse EndPutBandwidthRateLimitSchedule(IAsyncResult asyncResult); #endregion #region PutHypervisorPropertyMappings /// <summary> /// This action sets the property mappings for the specified hypervisor. A hypervisor /// property mapping displays the relationship of entity properties available from the /// on-premises hypervisor to the properties available in Amazon Web Services. /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutHypervisorPropertyMappings service method.</param> /// /// <returns>The response from the PutHypervisorPropertyMappings service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.AccessDeniedException"> /// The operation cannot proceed because you have insufficient permissions. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/PutHypervisorPropertyMappings">REST API Reference for PutHypervisorPropertyMappings Operation</seealso> PutHypervisorPropertyMappingsResponse PutHypervisorPropertyMappings(PutHypervisorPropertyMappingsRequest request); /// <summary> /// Initiates the asynchronous execution of the PutHypervisorPropertyMappings operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the PutHypervisorPropertyMappings operation on AmazonBackupGatewayClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutHypervisorPropertyMappings /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/PutHypervisorPropertyMappings">REST API Reference for PutHypervisorPropertyMappings Operation</seealso> IAsyncResult BeginPutHypervisorPropertyMappings(PutHypervisorPropertyMappingsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the PutHypervisorPropertyMappings operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutHypervisorPropertyMappings.</param> /// /// <returns>Returns a PutHypervisorPropertyMappingsResult from BackupGateway.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/PutHypervisorPropertyMappings">REST API Reference for PutHypervisorPropertyMappings Operation</seealso> PutHypervisorPropertyMappingsResponse EndPutHypervisorPropertyMappings(IAsyncResult asyncResult); #endregion #region PutMaintenanceStartTime /// <summary> /// Set the maintenance start time for a gateway. /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutMaintenanceStartTime service method.</param> /// /// <returns>The response from the PutMaintenanceStartTime service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/PutMaintenanceStartTime">REST API Reference for PutMaintenanceStartTime Operation</seealso> PutMaintenanceStartTimeResponse PutMaintenanceStartTime(PutMaintenanceStartTimeRequest request); /// <summary> /// Initiates the asynchronous execution of the PutMaintenanceStartTime operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the PutMaintenanceStartTime operation on AmazonBackupGatewayClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutMaintenanceStartTime /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/PutMaintenanceStartTime">REST API Reference for PutMaintenanceStartTime Operation</seealso> IAsyncResult BeginPutMaintenanceStartTime(PutMaintenanceStartTimeRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the PutMaintenanceStartTime operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutMaintenanceStartTime.</param> /// /// <returns>Returns a PutMaintenanceStartTimeResult from BackupGateway.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/PutMaintenanceStartTime">REST API Reference for PutMaintenanceStartTime Operation</seealso> PutMaintenanceStartTimeResponse EndPutMaintenanceStartTime(IAsyncResult asyncResult); #endregion #region StartVirtualMachinesMetadataSync /// <summary> /// This action sends a request to sync metadata across the specified virtual machines. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartVirtualMachinesMetadataSync service method.</param> /// /// <returns>The response from the StartVirtualMachinesMetadataSync service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.AccessDeniedException"> /// The operation cannot proceed because you have insufficient permissions. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/StartVirtualMachinesMetadataSync">REST API Reference for StartVirtualMachinesMetadataSync Operation</seealso> StartVirtualMachinesMetadataSyncResponse StartVirtualMachinesMetadataSync(StartVirtualMachinesMetadataSyncRequest request); /// <summary> /// Initiates the asynchronous execution of the StartVirtualMachinesMetadataSync operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the StartVirtualMachinesMetadataSync operation on AmazonBackupGatewayClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStartVirtualMachinesMetadataSync /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/StartVirtualMachinesMetadataSync">REST API Reference for StartVirtualMachinesMetadataSync Operation</seealso> IAsyncResult BeginStartVirtualMachinesMetadataSync(StartVirtualMachinesMetadataSyncRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the StartVirtualMachinesMetadataSync operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginStartVirtualMachinesMetadataSync.</param> /// /// <returns>Returns a StartVirtualMachinesMetadataSyncResult from BackupGateway.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/StartVirtualMachinesMetadataSync">REST API Reference for StartVirtualMachinesMetadataSync Operation</seealso> StartVirtualMachinesMetadataSyncResponse EndStartVirtualMachinesMetadataSync(IAsyncResult asyncResult); #endregion #region TagResource /// <summary> /// Tag the resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param> /// /// <returns>The response from the TagResource service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/TagResource">REST API Reference for TagResource Operation</seealso> TagResourceResponse TagResource(TagResourceRequest request); /// <summary> /// Initiates the asynchronous execution of the TagResource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the TagResource operation on AmazonBackupGatewayClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndTagResource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/TagResource">REST API Reference for TagResource Operation</seealso> IAsyncResult BeginTagResource(TagResourceRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the TagResource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginTagResource.</param> /// /// <returns>Returns a TagResourceResult from BackupGateway.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/TagResource">REST API Reference for TagResource Operation</seealso> TagResourceResponse EndTagResource(IAsyncResult asyncResult); #endregion #region TestHypervisorConfiguration /// <summary> /// Tests your hypervisor configuration to validate that backup gateway can connect with /// the hypervisor and its resources. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TestHypervisorConfiguration service method.</param> /// /// <returns>The response from the TestHypervisorConfiguration service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/TestHypervisorConfiguration">REST API Reference for TestHypervisorConfiguration Operation</seealso> TestHypervisorConfigurationResponse TestHypervisorConfiguration(TestHypervisorConfigurationRequest request); /// <summary> /// Initiates the asynchronous execution of the TestHypervisorConfiguration operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the TestHypervisorConfiguration operation on AmazonBackupGatewayClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndTestHypervisorConfiguration /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/TestHypervisorConfiguration">REST API Reference for TestHypervisorConfiguration Operation</seealso> IAsyncResult BeginTestHypervisorConfiguration(TestHypervisorConfigurationRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the TestHypervisorConfiguration operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginTestHypervisorConfiguration.</param> /// /// <returns>Returns a TestHypervisorConfigurationResult from BackupGateway.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/TestHypervisorConfiguration">REST API Reference for TestHypervisorConfiguration Operation</seealso> TestHypervisorConfigurationResponse EndTestHypervisorConfiguration(IAsyncResult asyncResult); #endregion #region UntagResource /// <summary> /// Removes tags from the resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param> /// /// <returns>The response from the UntagResource service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/UntagResource">REST API Reference for UntagResource Operation</seealso> UntagResourceResponse UntagResource(UntagResourceRequest request); /// <summary> /// Initiates the asynchronous execution of the UntagResource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UntagResource operation on AmazonBackupGatewayClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUntagResource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/UntagResource">REST API Reference for UntagResource Operation</seealso> IAsyncResult BeginUntagResource(UntagResourceRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UntagResource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUntagResource.</param> /// /// <returns>Returns a UntagResourceResult from BackupGateway.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/UntagResource">REST API Reference for UntagResource Operation</seealso> UntagResourceResponse EndUntagResource(IAsyncResult asyncResult); #endregion #region UpdateGatewayInformation /// <summary> /// Updates a gateway's name. Specify which gateway to update using the Amazon Resource /// Name (ARN) of the gateway in your request. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateGatewayInformation service method.</param> /// /// <returns>The response from the UpdateGatewayInformation service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/UpdateGatewayInformation">REST API Reference for UpdateGatewayInformation Operation</seealso> UpdateGatewayInformationResponse UpdateGatewayInformation(UpdateGatewayInformationRequest request); /// <summary> /// Initiates the asynchronous execution of the UpdateGatewayInformation operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateGatewayInformation operation on AmazonBackupGatewayClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateGatewayInformation /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/UpdateGatewayInformation">REST API Reference for UpdateGatewayInformation Operation</seealso> IAsyncResult BeginUpdateGatewayInformation(UpdateGatewayInformationRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UpdateGatewayInformation operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateGatewayInformation.</param> /// /// <returns>Returns a UpdateGatewayInformationResult from BackupGateway.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/UpdateGatewayInformation">REST API Reference for UpdateGatewayInformation Operation</seealso> UpdateGatewayInformationResponse EndUpdateGatewayInformation(IAsyncResult asyncResult); #endregion #region UpdateGatewaySoftwareNow /// <summary> /// Updates the gateway virtual machine (VM) software. The request immediately triggers /// the software update. /// /// <note> /// <para> /// When you make this request, you get a <code>200 OK</code> success response immediately. /// However, it might take some time for the update to complete. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateGatewaySoftwareNow service method.</param> /// /// <returns>The response from the UpdateGatewaySoftwareNow service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/UpdateGatewaySoftwareNow">REST API Reference for UpdateGatewaySoftwareNow Operation</seealso> UpdateGatewaySoftwareNowResponse UpdateGatewaySoftwareNow(UpdateGatewaySoftwareNowRequest request); /// <summary> /// Initiates the asynchronous execution of the UpdateGatewaySoftwareNow operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateGatewaySoftwareNow operation on AmazonBackupGatewayClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateGatewaySoftwareNow /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/UpdateGatewaySoftwareNow">REST API Reference for UpdateGatewaySoftwareNow Operation</seealso> IAsyncResult BeginUpdateGatewaySoftwareNow(UpdateGatewaySoftwareNowRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UpdateGatewaySoftwareNow operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateGatewaySoftwareNow.</param> /// /// <returns>Returns a UpdateGatewaySoftwareNowResult from BackupGateway.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/UpdateGatewaySoftwareNow">REST API Reference for UpdateGatewaySoftwareNow Operation</seealso> UpdateGatewaySoftwareNowResponse EndUpdateGatewaySoftwareNow(IAsyncResult asyncResult); #endregion #region UpdateHypervisor /// <summary> /// Updates a hypervisor metadata, including its host, username, and password. Specify /// which hypervisor to update using the Amazon Resource Name (ARN) of the hypervisor /// in your request. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateHypervisor service method.</param> /// /// <returns>The response from the UpdateHypervisor service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.AccessDeniedException"> /// The operation cannot proceed because you have insufficient permissions. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/UpdateHypervisor">REST API Reference for UpdateHypervisor Operation</seealso> UpdateHypervisorResponse UpdateHypervisor(UpdateHypervisorRequest request); /// <summary> /// Initiates the asynchronous execution of the UpdateHypervisor operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateHypervisor operation on AmazonBackupGatewayClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateHypervisor /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/UpdateHypervisor">REST API Reference for UpdateHypervisor Operation</seealso> IAsyncResult BeginUpdateHypervisor(UpdateHypervisorRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UpdateHypervisor operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateHypervisor.</param> /// /// <returns>Returns a UpdateHypervisorResult from BackupGateway.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/UpdateHypervisor">REST API Reference for UpdateHypervisor Operation</seealso> UpdateHypervisorResponse EndUpdateHypervisor(IAsyncResult asyncResult); #endregion } }
1,446
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backup-gateway-2021-01-01.normal.json service model. */ using System; using System.Runtime.ExceptionServices; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using System.Net; using Amazon.BackupGateway.Model; using Amazon.BackupGateway.Model.Internal.MarshallTransformations; using Amazon.BackupGateway.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.BackupGateway { /// <summary> /// Implementation for accessing BackupGateway /// /// Backup gateway /// <para> /// Backup gateway connects Backup to your hypervisor, so you can create, store, and restore /// backups of your virtual machines (VMs) anywhere, whether on-premises or in the VMware /// Cloud (VMC) on Amazon Web Services. /// /// /// <para> /// Add on-premises resources by connecting to a hypervisor through a gateway. Backup /// will automatically discover the resources in your hypervisor. /// </para> /// /// <para> /// Use Backup to assign virtual or on-premises resources to a backup plan, or run on-demand /// backups. Once you have backed up your resources, you can view them and restore them /// like any resource supported by Backup. /// </para> /// /// <para> /// To download the Amazon Web Services software to get started, navigate to the Backup /// console, choose <b>Gateways</b>, then choose <b>Create gateway</b>. /// </para> /// /// </para> /// </summary> public partial class AmazonBackupGatewayClient : AmazonServiceClient, IAmazonBackupGateway { private static IServiceMetadata serviceMetadata = new AmazonBackupGatewayMetadata(); private IBackupGatewayPaginatorFactory _paginators; /// <summary> /// Paginators for the service /// </summary> public IBackupGatewayPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new BackupGatewayPaginatorFactory(this); } return this._paginators; } } #region Constructors /// <summary> /// Constructs AmazonBackupGatewayClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> public AmazonBackupGatewayClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonBackupGatewayConfig()) { } /// <summary> /// Constructs AmazonBackupGatewayClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="region">The region to connect.</param> public AmazonBackupGatewayClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonBackupGatewayConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonBackupGatewayClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="config">The AmazonBackupGatewayClient Configuration Object</param> public AmazonBackupGatewayClient(AmazonBackupGatewayConfig config) : base(FallbackCredentialsFactory.GetCredentials(), config) { } /// <summary> /// Constructs AmazonBackupGatewayClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> public AmazonBackupGatewayClient(AWSCredentials credentials) : this(credentials, new AmazonBackupGatewayConfig()) { } /// <summary> /// Constructs AmazonBackupGatewayClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="region">The region to connect.</param> public AmazonBackupGatewayClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonBackupGatewayConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonBackupGatewayClient with AWS Credentials and an /// AmazonBackupGatewayClient Configuration object. /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="clientConfig">The AmazonBackupGatewayClient Configuration Object</param> public AmazonBackupGatewayClient(AWSCredentials credentials, AmazonBackupGatewayConfig clientConfig) : base(credentials, clientConfig) { } /// <summary> /// Constructs AmazonBackupGatewayClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> public AmazonBackupGatewayClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonBackupGatewayConfig()) { } /// <summary> /// Constructs AmazonBackupGatewayClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="region">The region to connect.</param> public AmazonBackupGatewayClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonBackupGatewayConfig() {RegionEndpoint=region}) { } /// <summary> /// Constructs AmazonBackupGatewayClient with AWS Access Key ID, AWS Secret Key and an /// AmazonBackupGatewayClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="clientConfig">The AmazonBackupGatewayClient Configuration Object</param> public AmazonBackupGatewayClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonBackupGatewayConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// <summary> /// Constructs AmazonBackupGatewayClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> public AmazonBackupGatewayClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonBackupGatewayConfig()) { } /// <summary> /// Constructs AmazonBackupGatewayClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> /// <param name="region">The region to connect.</param> public AmazonBackupGatewayClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonBackupGatewayConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonBackupGatewayClient with AWS Access Key ID, AWS Secret Key and an /// AmazonBackupGatewayClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> /// <param name="clientConfig">The AmazonBackupGatewayClient Configuration Object</param> public AmazonBackupGatewayClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonBackupGatewayConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #region Overrides /// <summary> /// Creates the signer for the service. /// </summary> protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// <summary> /// Customize the pipeline /// </summary> /// <param name="pipeline"></param> protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) { pipeline.RemoveHandler<Amazon.Runtime.Internal.EndpointResolver>(); pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new AmazonBackupGatewayEndpointResolver()); } /// <summary> /// Capture metadata for the service. /// </summary> protected override IServiceMetadata ServiceMetadata { get { return serviceMetadata; } } #endregion #region Dispose /// <summary> /// Disposes the service client. /// </summary> protected override void Dispose(bool disposing) { base.Dispose(disposing); } #endregion #region AssociateGatewayToServer /// <summary> /// Associates a backup gateway with your server. After you complete the association process, /// you can back up and restore your VMs through the gateway. /// </summary> /// <param name="request">Container for the necessary parameters to execute the AssociateGatewayToServer service method.</param> /// /// <returns>The response from the AssociateGatewayToServer service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/AssociateGatewayToServer">REST API Reference for AssociateGatewayToServer Operation</seealso> public virtual AssociateGatewayToServerResponse AssociateGatewayToServer(AssociateGatewayToServerRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateGatewayToServerRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateGatewayToServerResponseUnmarshaller.Instance; return Invoke<AssociateGatewayToServerResponse>(request, options); } /// <summary> /// Associates a backup gateway with your server. After you complete the association process, /// you can back up and restore your VMs through the gateway. /// </summary> /// <param name="request">Container for the necessary parameters to execute the AssociateGatewayToServer service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the AssociateGatewayToServer service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/AssociateGatewayToServer">REST API Reference for AssociateGatewayToServer Operation</seealso> public virtual Task<AssociateGatewayToServerResponse> AssociateGatewayToServerAsync(AssociateGatewayToServerRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateGatewayToServerRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateGatewayToServerResponseUnmarshaller.Instance; return InvokeAsync<AssociateGatewayToServerResponse>(request, options, cancellationToken); } #endregion #region CreateGateway /// <summary> /// Creates a backup gateway. After you create a gateway, you can associate it with a /// server using the <code>AssociateGatewayToServer</code> operation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateGateway service method.</param> /// /// <returns>The response from the CreateGateway service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/CreateGateway">REST API Reference for CreateGateway Operation</seealso> public virtual CreateGatewayResponse CreateGateway(CreateGatewayRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateGatewayRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateGatewayResponseUnmarshaller.Instance; return Invoke<CreateGatewayResponse>(request, options); } /// <summary> /// Creates a backup gateway. After you create a gateway, you can associate it with a /// server using the <code>AssociateGatewayToServer</code> operation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateGateway service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateGateway service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/CreateGateway">REST API Reference for CreateGateway Operation</seealso> public virtual Task<CreateGatewayResponse> CreateGatewayAsync(CreateGatewayRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateGatewayRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateGatewayResponseUnmarshaller.Instance; return InvokeAsync<CreateGatewayResponse>(request, options, cancellationToken); } #endregion #region DeleteGateway /// <summary> /// Deletes a backup gateway. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteGateway service method.</param> /// /// <returns>The response from the DeleteGateway service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/DeleteGateway">REST API Reference for DeleteGateway Operation</seealso> public virtual DeleteGatewayResponse DeleteGateway(DeleteGatewayRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteGatewayRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteGatewayResponseUnmarshaller.Instance; return Invoke<DeleteGatewayResponse>(request, options); } /// <summary> /// Deletes a backup gateway. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteGateway service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteGateway service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/DeleteGateway">REST API Reference for DeleteGateway Operation</seealso> public virtual Task<DeleteGatewayResponse> DeleteGatewayAsync(DeleteGatewayRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteGatewayRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteGatewayResponseUnmarshaller.Instance; return InvokeAsync<DeleteGatewayResponse>(request, options, cancellationToken); } #endregion #region DeleteHypervisor /// <summary> /// Deletes a hypervisor. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteHypervisor service method.</param> /// /// <returns>The response from the DeleteHypervisor service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.AccessDeniedException"> /// The operation cannot proceed because you have insufficient permissions. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/DeleteHypervisor">REST API Reference for DeleteHypervisor Operation</seealso> public virtual DeleteHypervisorResponse DeleteHypervisor(DeleteHypervisorRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteHypervisorRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteHypervisorResponseUnmarshaller.Instance; return Invoke<DeleteHypervisorResponse>(request, options); } /// <summary> /// Deletes a hypervisor. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteHypervisor service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteHypervisor service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.AccessDeniedException"> /// The operation cannot proceed because you have insufficient permissions. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/DeleteHypervisor">REST API Reference for DeleteHypervisor Operation</seealso> public virtual Task<DeleteHypervisorResponse> DeleteHypervisorAsync(DeleteHypervisorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteHypervisorRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteHypervisorResponseUnmarshaller.Instance; return InvokeAsync<DeleteHypervisorResponse>(request, options, cancellationToken); } #endregion #region DisassociateGatewayFromServer /// <summary> /// Disassociates a backup gateway from the specified server. After the disassociation /// process finishes, the gateway can no longer access the virtual machines on the server. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisassociateGatewayFromServer service method.</param> /// /// <returns>The response from the DisassociateGatewayFromServer service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/DisassociateGatewayFromServer">REST API Reference for DisassociateGatewayFromServer Operation</seealso> public virtual DisassociateGatewayFromServerResponse DisassociateGatewayFromServer(DisassociateGatewayFromServerRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateGatewayFromServerRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateGatewayFromServerResponseUnmarshaller.Instance; return Invoke<DisassociateGatewayFromServerResponse>(request, options); } /// <summary> /// Disassociates a backup gateway from the specified server. After the disassociation /// process finishes, the gateway can no longer access the virtual machines on the server. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisassociateGatewayFromServer service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DisassociateGatewayFromServer service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/DisassociateGatewayFromServer">REST API Reference for DisassociateGatewayFromServer Operation</seealso> public virtual Task<DisassociateGatewayFromServerResponse> DisassociateGatewayFromServerAsync(DisassociateGatewayFromServerRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateGatewayFromServerRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateGatewayFromServerResponseUnmarshaller.Instance; return InvokeAsync<DisassociateGatewayFromServerResponse>(request, options, cancellationToken); } #endregion #region GetBandwidthRateLimitSchedule /// <summary> /// Retrieves the bandwidth rate limit schedule for a specified gateway. By default, gateways /// do not have bandwidth rate limit schedules, which means no bandwidth rate limiting /// is in effect. Use this to get a gateway's bandwidth rate limit schedule. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetBandwidthRateLimitSchedule service method.</param> /// /// <returns>The response from the GetBandwidthRateLimitSchedule service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetBandwidthRateLimitSchedule">REST API Reference for GetBandwidthRateLimitSchedule Operation</seealso> public virtual GetBandwidthRateLimitScheduleResponse GetBandwidthRateLimitSchedule(GetBandwidthRateLimitScheduleRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetBandwidthRateLimitScheduleRequestMarshaller.Instance; options.ResponseUnmarshaller = GetBandwidthRateLimitScheduleResponseUnmarshaller.Instance; return Invoke<GetBandwidthRateLimitScheduleResponse>(request, options); } /// <summary> /// Retrieves the bandwidth rate limit schedule for a specified gateway. By default, gateways /// do not have bandwidth rate limit schedules, which means no bandwidth rate limiting /// is in effect. Use this to get a gateway's bandwidth rate limit schedule. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetBandwidthRateLimitSchedule service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetBandwidthRateLimitSchedule service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetBandwidthRateLimitSchedule">REST API Reference for GetBandwidthRateLimitSchedule Operation</seealso> public virtual Task<GetBandwidthRateLimitScheduleResponse> GetBandwidthRateLimitScheduleAsync(GetBandwidthRateLimitScheduleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetBandwidthRateLimitScheduleRequestMarshaller.Instance; options.ResponseUnmarshaller = GetBandwidthRateLimitScheduleResponseUnmarshaller.Instance; return InvokeAsync<GetBandwidthRateLimitScheduleResponse>(request, options, cancellationToken); } #endregion #region GetGateway /// <summary> /// By providing the ARN (Amazon Resource Name), this API returns the gateway. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetGateway service method.</param> /// /// <returns>The response from the GetGateway service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetGateway">REST API Reference for GetGateway Operation</seealso> public virtual GetGatewayResponse GetGateway(GetGatewayRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetGatewayRequestMarshaller.Instance; options.ResponseUnmarshaller = GetGatewayResponseUnmarshaller.Instance; return Invoke<GetGatewayResponse>(request, options); } /// <summary> /// By providing the ARN (Amazon Resource Name), this API returns the gateway. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetGateway service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetGateway service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetGateway">REST API Reference for GetGateway Operation</seealso> public virtual Task<GetGatewayResponse> GetGatewayAsync(GetGatewayRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetGatewayRequestMarshaller.Instance; options.ResponseUnmarshaller = GetGatewayResponseUnmarshaller.Instance; return InvokeAsync<GetGatewayResponse>(request, options, cancellationToken); } #endregion #region GetHypervisor /// <summary> /// This action requests information about the specified hypervisor to which the gateway /// will connect. A hypervisor is hardware, software, or firmware that creates and manages /// virtual machines, and allocates resources to them. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetHypervisor service method.</param> /// /// <returns>The response from the GetHypervisor service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetHypervisor">REST API Reference for GetHypervisor Operation</seealso> public virtual GetHypervisorResponse GetHypervisor(GetHypervisorRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetHypervisorRequestMarshaller.Instance; options.ResponseUnmarshaller = GetHypervisorResponseUnmarshaller.Instance; return Invoke<GetHypervisorResponse>(request, options); } /// <summary> /// This action requests information about the specified hypervisor to which the gateway /// will connect. A hypervisor is hardware, software, or firmware that creates and manages /// virtual machines, and allocates resources to them. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetHypervisor service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetHypervisor service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetHypervisor">REST API Reference for GetHypervisor Operation</seealso> public virtual Task<GetHypervisorResponse> GetHypervisorAsync(GetHypervisorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetHypervisorRequestMarshaller.Instance; options.ResponseUnmarshaller = GetHypervisorResponseUnmarshaller.Instance; return InvokeAsync<GetHypervisorResponse>(request, options, cancellationToken); } #endregion #region GetHypervisorPropertyMappings /// <summary> /// This action retrieves the property mappings for the specified hypervisor. A hypervisor /// property mapping displays the relationship of entity properties available from the /// on-premises hypervisor to the properties available in Amazon Web Services. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetHypervisorPropertyMappings service method.</param> /// /// <returns>The response from the GetHypervisorPropertyMappings service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetHypervisorPropertyMappings">REST API Reference for GetHypervisorPropertyMappings Operation</seealso> public virtual GetHypervisorPropertyMappingsResponse GetHypervisorPropertyMappings(GetHypervisorPropertyMappingsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetHypervisorPropertyMappingsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetHypervisorPropertyMappingsResponseUnmarshaller.Instance; return Invoke<GetHypervisorPropertyMappingsResponse>(request, options); } /// <summary> /// This action retrieves the property mappings for the specified hypervisor. A hypervisor /// property mapping displays the relationship of entity properties available from the /// on-premises hypervisor to the properties available in Amazon Web Services. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetHypervisorPropertyMappings service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetHypervisorPropertyMappings service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetHypervisorPropertyMappings">REST API Reference for GetHypervisorPropertyMappings Operation</seealso> public virtual Task<GetHypervisorPropertyMappingsResponse> GetHypervisorPropertyMappingsAsync(GetHypervisorPropertyMappingsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetHypervisorPropertyMappingsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetHypervisorPropertyMappingsResponseUnmarshaller.Instance; return InvokeAsync<GetHypervisorPropertyMappingsResponse>(request, options, cancellationToken); } #endregion #region GetVirtualMachine /// <summary> /// By providing the ARN (Amazon Resource Name), this API returns the virtual machine. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetVirtualMachine service method.</param> /// /// <returns>The response from the GetVirtualMachine service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetVirtualMachine">REST API Reference for GetVirtualMachine Operation</seealso> public virtual GetVirtualMachineResponse GetVirtualMachine(GetVirtualMachineRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetVirtualMachineRequestMarshaller.Instance; options.ResponseUnmarshaller = GetVirtualMachineResponseUnmarshaller.Instance; return Invoke<GetVirtualMachineResponse>(request, options); } /// <summary> /// By providing the ARN (Amazon Resource Name), this API returns the virtual machine. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetVirtualMachine service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetVirtualMachine service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetVirtualMachine">REST API Reference for GetVirtualMachine Operation</seealso> public virtual Task<GetVirtualMachineResponse> GetVirtualMachineAsync(GetVirtualMachineRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetVirtualMachineRequestMarshaller.Instance; options.ResponseUnmarshaller = GetVirtualMachineResponseUnmarshaller.Instance; return InvokeAsync<GetVirtualMachineResponse>(request, options, cancellationToken); } #endregion #region ImportHypervisorConfiguration /// <summary> /// Connect to a hypervisor by importing its configuration. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ImportHypervisorConfiguration service method.</param> /// /// <returns>The response from the ImportHypervisorConfiguration service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.AccessDeniedException"> /// The operation cannot proceed because you have insufficient permissions. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ImportHypervisorConfiguration">REST API Reference for ImportHypervisorConfiguration Operation</seealso> public virtual ImportHypervisorConfigurationResponse ImportHypervisorConfiguration(ImportHypervisorConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ImportHypervisorConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = ImportHypervisorConfigurationResponseUnmarshaller.Instance; return Invoke<ImportHypervisorConfigurationResponse>(request, options); } /// <summary> /// Connect to a hypervisor by importing its configuration. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ImportHypervisorConfiguration service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ImportHypervisorConfiguration service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.AccessDeniedException"> /// The operation cannot proceed because you have insufficient permissions. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ImportHypervisorConfiguration">REST API Reference for ImportHypervisorConfiguration Operation</seealso> public virtual Task<ImportHypervisorConfigurationResponse> ImportHypervisorConfigurationAsync(ImportHypervisorConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ImportHypervisorConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = ImportHypervisorConfigurationResponseUnmarshaller.Instance; return InvokeAsync<ImportHypervisorConfigurationResponse>(request, options, cancellationToken); } #endregion #region ListGateways /// <summary> /// Lists backup gateways owned by an Amazon Web Services account in an Amazon Web Services /// Region. The returned list is ordered by gateway Amazon Resource Name (ARN). /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListGateways service method.</param> /// /// <returns>The response from the ListGateways service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ListGateways">REST API Reference for ListGateways Operation</seealso> public virtual ListGatewaysResponse ListGateways(ListGatewaysRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListGatewaysRequestMarshaller.Instance; options.ResponseUnmarshaller = ListGatewaysResponseUnmarshaller.Instance; return Invoke<ListGatewaysResponse>(request, options); } /// <summary> /// Lists backup gateways owned by an Amazon Web Services account in an Amazon Web Services /// Region. The returned list is ordered by gateway Amazon Resource Name (ARN). /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListGateways service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListGateways service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ListGateways">REST API Reference for ListGateways Operation</seealso> public virtual Task<ListGatewaysResponse> ListGatewaysAsync(ListGatewaysRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListGatewaysRequestMarshaller.Instance; options.ResponseUnmarshaller = ListGatewaysResponseUnmarshaller.Instance; return InvokeAsync<ListGatewaysResponse>(request, options, cancellationToken); } #endregion #region ListHypervisors /// <summary> /// Lists your hypervisors. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListHypervisors service method.</param> /// /// <returns>The response from the ListHypervisors service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ListHypervisors">REST API Reference for ListHypervisors Operation</seealso> public virtual ListHypervisorsResponse ListHypervisors(ListHypervisorsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListHypervisorsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListHypervisorsResponseUnmarshaller.Instance; return Invoke<ListHypervisorsResponse>(request, options); } /// <summary> /// Lists your hypervisors. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListHypervisors service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListHypervisors service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ListHypervisors">REST API Reference for ListHypervisors Operation</seealso> public virtual Task<ListHypervisorsResponse> ListHypervisorsAsync(ListHypervisorsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListHypervisorsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListHypervisorsResponseUnmarshaller.Instance; return InvokeAsync<ListHypervisorsResponse>(request, options, cancellationToken); } #endregion #region ListTagsForResource /// <summary> /// Lists the tags applied to the resource identified by its Amazon Resource Name (ARN). /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param> /// /// <returns>The response from the ListTagsForResource service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> public virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return Invoke<ListTagsForResourceResponse>(request, options); } /// <summary> /// Lists the tags applied to the resource identified by its Amazon Resource Name (ARN). /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListTagsForResource service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> public virtual Task<ListTagsForResourceResponse> ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return InvokeAsync<ListTagsForResourceResponse>(request, options, cancellationToken); } #endregion #region ListVirtualMachines /// <summary> /// Lists your virtual machines. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListVirtualMachines service method.</param> /// /// <returns>The response from the ListVirtualMachines service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ListVirtualMachines">REST API Reference for ListVirtualMachines Operation</seealso> public virtual ListVirtualMachinesResponse ListVirtualMachines(ListVirtualMachinesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListVirtualMachinesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListVirtualMachinesResponseUnmarshaller.Instance; return Invoke<ListVirtualMachinesResponse>(request, options); } /// <summary> /// Lists your virtual machines. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListVirtualMachines service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListVirtualMachines service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ListVirtualMachines">REST API Reference for ListVirtualMachines Operation</seealso> public virtual Task<ListVirtualMachinesResponse> ListVirtualMachinesAsync(ListVirtualMachinesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListVirtualMachinesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListVirtualMachinesResponseUnmarshaller.Instance; return InvokeAsync<ListVirtualMachinesResponse>(request, options, cancellationToken); } #endregion #region PutBandwidthRateLimitSchedule /// <summary> /// This action sets the bandwidth rate limit schedule for a specified gateway. By default, /// gateways do not have a bandwidth rate limit schedule, which means no bandwidth rate /// limiting is in effect. Use this to initiate a gateway's bandwidth rate limit schedule. /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutBandwidthRateLimitSchedule service method.</param> /// /// <returns>The response from the PutBandwidthRateLimitSchedule service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/PutBandwidthRateLimitSchedule">REST API Reference for PutBandwidthRateLimitSchedule Operation</seealso> public virtual PutBandwidthRateLimitScheduleResponse PutBandwidthRateLimitSchedule(PutBandwidthRateLimitScheduleRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutBandwidthRateLimitScheduleRequestMarshaller.Instance; options.ResponseUnmarshaller = PutBandwidthRateLimitScheduleResponseUnmarshaller.Instance; return Invoke<PutBandwidthRateLimitScheduleResponse>(request, options); } /// <summary> /// This action sets the bandwidth rate limit schedule for a specified gateway. By default, /// gateways do not have a bandwidth rate limit schedule, which means no bandwidth rate /// limiting is in effect. Use this to initiate a gateway's bandwidth rate limit schedule. /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutBandwidthRateLimitSchedule service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutBandwidthRateLimitSchedule service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/PutBandwidthRateLimitSchedule">REST API Reference for PutBandwidthRateLimitSchedule Operation</seealso> public virtual Task<PutBandwidthRateLimitScheduleResponse> PutBandwidthRateLimitScheduleAsync(PutBandwidthRateLimitScheduleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutBandwidthRateLimitScheduleRequestMarshaller.Instance; options.ResponseUnmarshaller = PutBandwidthRateLimitScheduleResponseUnmarshaller.Instance; return InvokeAsync<PutBandwidthRateLimitScheduleResponse>(request, options, cancellationToken); } #endregion #region PutHypervisorPropertyMappings /// <summary> /// This action sets the property mappings for the specified hypervisor. A hypervisor /// property mapping displays the relationship of entity properties available from the /// on-premises hypervisor to the properties available in Amazon Web Services. /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutHypervisorPropertyMappings service method.</param> /// /// <returns>The response from the PutHypervisorPropertyMappings service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.AccessDeniedException"> /// The operation cannot proceed because you have insufficient permissions. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/PutHypervisorPropertyMappings">REST API Reference for PutHypervisorPropertyMappings Operation</seealso> public virtual PutHypervisorPropertyMappingsResponse PutHypervisorPropertyMappings(PutHypervisorPropertyMappingsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutHypervisorPropertyMappingsRequestMarshaller.Instance; options.ResponseUnmarshaller = PutHypervisorPropertyMappingsResponseUnmarshaller.Instance; return Invoke<PutHypervisorPropertyMappingsResponse>(request, options); } /// <summary> /// This action sets the property mappings for the specified hypervisor. A hypervisor /// property mapping displays the relationship of entity properties available from the /// on-premises hypervisor to the properties available in Amazon Web Services. /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutHypervisorPropertyMappings service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutHypervisorPropertyMappings service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.AccessDeniedException"> /// The operation cannot proceed because you have insufficient permissions. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/PutHypervisorPropertyMappings">REST API Reference for PutHypervisorPropertyMappings Operation</seealso> public virtual Task<PutHypervisorPropertyMappingsResponse> PutHypervisorPropertyMappingsAsync(PutHypervisorPropertyMappingsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutHypervisorPropertyMappingsRequestMarshaller.Instance; options.ResponseUnmarshaller = PutHypervisorPropertyMappingsResponseUnmarshaller.Instance; return InvokeAsync<PutHypervisorPropertyMappingsResponse>(request, options, cancellationToken); } #endregion #region PutMaintenanceStartTime /// <summary> /// Set the maintenance start time for a gateway. /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutMaintenanceStartTime service method.</param> /// /// <returns>The response from the PutMaintenanceStartTime service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/PutMaintenanceStartTime">REST API Reference for PutMaintenanceStartTime Operation</seealso> public virtual PutMaintenanceStartTimeResponse PutMaintenanceStartTime(PutMaintenanceStartTimeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutMaintenanceStartTimeRequestMarshaller.Instance; options.ResponseUnmarshaller = PutMaintenanceStartTimeResponseUnmarshaller.Instance; return Invoke<PutMaintenanceStartTimeResponse>(request, options); } /// <summary> /// Set the maintenance start time for a gateway. /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutMaintenanceStartTime service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutMaintenanceStartTime service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/PutMaintenanceStartTime">REST API Reference for PutMaintenanceStartTime Operation</seealso> public virtual Task<PutMaintenanceStartTimeResponse> PutMaintenanceStartTimeAsync(PutMaintenanceStartTimeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutMaintenanceStartTimeRequestMarshaller.Instance; options.ResponseUnmarshaller = PutMaintenanceStartTimeResponseUnmarshaller.Instance; return InvokeAsync<PutMaintenanceStartTimeResponse>(request, options, cancellationToken); } #endregion #region StartVirtualMachinesMetadataSync /// <summary> /// This action sends a request to sync metadata across the specified virtual machines. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartVirtualMachinesMetadataSync service method.</param> /// /// <returns>The response from the StartVirtualMachinesMetadataSync service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.AccessDeniedException"> /// The operation cannot proceed because you have insufficient permissions. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/StartVirtualMachinesMetadataSync">REST API Reference for StartVirtualMachinesMetadataSync Operation</seealso> public virtual StartVirtualMachinesMetadataSyncResponse StartVirtualMachinesMetadataSync(StartVirtualMachinesMetadataSyncRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartVirtualMachinesMetadataSyncRequestMarshaller.Instance; options.ResponseUnmarshaller = StartVirtualMachinesMetadataSyncResponseUnmarshaller.Instance; return Invoke<StartVirtualMachinesMetadataSyncResponse>(request, options); } /// <summary> /// This action sends a request to sync metadata across the specified virtual machines. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartVirtualMachinesMetadataSync service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the StartVirtualMachinesMetadataSync service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.AccessDeniedException"> /// The operation cannot proceed because you have insufficient permissions. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/StartVirtualMachinesMetadataSync">REST API Reference for StartVirtualMachinesMetadataSync Operation</seealso> public virtual Task<StartVirtualMachinesMetadataSyncResponse> StartVirtualMachinesMetadataSyncAsync(StartVirtualMachinesMetadataSyncRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StartVirtualMachinesMetadataSyncRequestMarshaller.Instance; options.ResponseUnmarshaller = StartVirtualMachinesMetadataSyncResponseUnmarshaller.Instance; return InvokeAsync<StartVirtualMachinesMetadataSyncResponse>(request, options, cancellationToken); } #endregion #region TagResource /// <summary> /// Tag the resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param> /// /// <returns>The response from the TagResource service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/TagResource">REST API Reference for TagResource Operation</seealso> public virtual TagResourceResponse TagResource(TagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return Invoke<TagResourceResponse>(request, options); } /// <summary> /// Tag the resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the TagResource service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/TagResource">REST API Reference for TagResource Operation</seealso> public virtual Task<TagResourceResponse> TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return InvokeAsync<TagResourceResponse>(request, options, cancellationToken); } #endregion #region TestHypervisorConfiguration /// <summary> /// Tests your hypervisor configuration to validate that backup gateway can connect with /// the hypervisor and its resources. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TestHypervisorConfiguration service method.</param> /// /// <returns>The response from the TestHypervisorConfiguration service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/TestHypervisorConfiguration">REST API Reference for TestHypervisorConfiguration Operation</seealso> public virtual TestHypervisorConfigurationResponse TestHypervisorConfiguration(TestHypervisorConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TestHypervisorConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = TestHypervisorConfigurationResponseUnmarshaller.Instance; return Invoke<TestHypervisorConfigurationResponse>(request, options); } /// <summary> /// Tests your hypervisor configuration to validate that backup gateway can connect with /// the hypervisor and its resources. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TestHypervisorConfiguration service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the TestHypervisorConfiguration service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/TestHypervisorConfiguration">REST API Reference for TestHypervisorConfiguration Operation</seealso> public virtual Task<TestHypervisorConfigurationResponse> TestHypervisorConfigurationAsync(TestHypervisorConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = TestHypervisorConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = TestHypervisorConfigurationResponseUnmarshaller.Instance; return InvokeAsync<TestHypervisorConfigurationResponse>(request, options, cancellationToken); } #endregion #region UntagResource /// <summary> /// Removes tags from the resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param> /// /// <returns>The response from the UntagResource service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/UntagResource">REST API Reference for UntagResource Operation</seealso> public virtual UntagResourceResponse UntagResource(UntagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return Invoke<UntagResourceResponse>(request, options); } /// <summary> /// Removes tags from the resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UntagResource service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/UntagResource">REST API Reference for UntagResource Operation</seealso> public virtual Task<UntagResourceResponse> UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return InvokeAsync<UntagResourceResponse>(request, options, cancellationToken); } #endregion #region UpdateGatewayInformation /// <summary> /// Updates a gateway's name. Specify which gateway to update using the Amazon Resource /// Name (ARN) of the gateway in your request. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateGatewayInformation service method.</param> /// /// <returns>The response from the UpdateGatewayInformation service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/UpdateGatewayInformation">REST API Reference for UpdateGatewayInformation Operation</seealso> public virtual UpdateGatewayInformationResponse UpdateGatewayInformation(UpdateGatewayInformationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateGatewayInformationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateGatewayInformationResponseUnmarshaller.Instance; return Invoke<UpdateGatewayInformationResponse>(request, options); } /// <summary> /// Updates a gateway's name. Specify which gateway to update using the Amazon Resource /// Name (ARN) of the gateway in your request. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateGatewayInformation service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateGatewayInformation service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/UpdateGatewayInformation">REST API Reference for UpdateGatewayInformation Operation</seealso> public virtual Task<UpdateGatewayInformationResponse> UpdateGatewayInformationAsync(UpdateGatewayInformationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateGatewayInformationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateGatewayInformationResponseUnmarshaller.Instance; return InvokeAsync<UpdateGatewayInformationResponse>(request, options, cancellationToken); } #endregion #region UpdateGatewaySoftwareNow /// <summary> /// Updates the gateway virtual machine (VM) software. The request immediately triggers /// the software update. /// /// <note> /// <para> /// When you make this request, you get a <code>200 OK</code> success response immediately. /// However, it might take some time for the update to complete. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateGatewaySoftwareNow service method.</param> /// /// <returns>The response from the UpdateGatewaySoftwareNow service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/UpdateGatewaySoftwareNow">REST API Reference for UpdateGatewaySoftwareNow Operation</seealso> public virtual UpdateGatewaySoftwareNowResponse UpdateGatewaySoftwareNow(UpdateGatewaySoftwareNowRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateGatewaySoftwareNowRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateGatewaySoftwareNowResponseUnmarshaller.Instance; return Invoke<UpdateGatewaySoftwareNowResponse>(request, options); } /// <summary> /// Updates the gateway virtual machine (VM) software. The request immediately triggers /// the software update. /// /// <note> /// <para> /// When you make this request, you get a <code>200 OK</code> success response immediately. /// However, it might take some time for the update to complete. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateGatewaySoftwareNow service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateGatewaySoftwareNow service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/UpdateGatewaySoftwareNow">REST API Reference for UpdateGatewaySoftwareNow Operation</seealso> public virtual Task<UpdateGatewaySoftwareNowResponse> UpdateGatewaySoftwareNowAsync(UpdateGatewaySoftwareNowRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateGatewaySoftwareNowRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateGatewaySoftwareNowResponseUnmarshaller.Instance; return InvokeAsync<UpdateGatewaySoftwareNowResponse>(request, options, cancellationToken); } #endregion #region UpdateHypervisor /// <summary> /// Updates a hypervisor metadata, including its host, username, and password. Specify /// which hypervisor to update using the Amazon Resource Name (ARN) of the hypervisor /// in your request. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateHypervisor service method.</param> /// /// <returns>The response from the UpdateHypervisor service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.AccessDeniedException"> /// The operation cannot proceed because you have insufficient permissions. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/UpdateHypervisor">REST API Reference for UpdateHypervisor Operation</seealso> public virtual UpdateHypervisorResponse UpdateHypervisor(UpdateHypervisorRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateHypervisorRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateHypervisorResponseUnmarshaller.Instance; return Invoke<UpdateHypervisorResponse>(request, options); } /// <summary> /// Updates a hypervisor metadata, including its host, username, and password. Specify /// which hypervisor to update using the Amazon Resource Name (ARN) of the hypervisor /// in your request. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateHypervisor service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateHypervisor service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.AccessDeniedException"> /// The operation cannot proceed because you have insufficient permissions. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/UpdateHypervisor">REST API Reference for UpdateHypervisor Operation</seealso> public virtual Task<UpdateHypervisorResponse> UpdateHypervisorAsync(UpdateHypervisorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateHypervisorRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateHypervisorResponseUnmarshaller.Instance; return InvokeAsync<UpdateHypervisorResponse>(request, options, cancellationToken); } #endregion } }
2,065
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backup-gateway-2021-01-01.normal.json service model. */ using System; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using Amazon.Runtime; using Amazon.BackupGateway.Model; namespace Amazon.BackupGateway { /// <summary> /// Interface for accessing BackupGateway /// /// Backup gateway /// <para> /// Backup gateway connects Backup to your hypervisor, so you can create, store, and restore /// backups of your virtual machines (VMs) anywhere, whether on-premises or in the VMware /// Cloud (VMC) on Amazon Web Services. /// /// /// <para> /// Add on-premises resources by connecting to a hypervisor through a gateway. Backup /// will automatically discover the resources in your hypervisor. /// </para> /// /// <para> /// Use Backup to assign virtual or on-premises resources to a backup plan, or run on-demand /// backups. Once you have backed up your resources, you can view them and restore them /// like any resource supported by Backup. /// </para> /// /// <para> /// To download the Amazon Web Services software to get started, navigate to the Backup /// console, choose <b>Gateways</b>, then choose <b>Create gateway</b>. /// </para> /// /// </para> /// </summary> public partial interface IAmazonBackupGateway : IAmazonService, IDisposable { /// <summary> /// Paginators for the service /// </summary> IBackupGatewayPaginatorFactory Paginators { get; } #region AssociateGatewayToServer /// <summary> /// Associates a backup gateway with your server. After you complete the association process, /// you can back up and restore your VMs through the gateway. /// </summary> /// <param name="request">Container for the necessary parameters to execute the AssociateGatewayToServer service method.</param> /// /// <returns>The response from the AssociateGatewayToServer service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/AssociateGatewayToServer">REST API Reference for AssociateGatewayToServer Operation</seealso> AssociateGatewayToServerResponse AssociateGatewayToServer(AssociateGatewayToServerRequest request); /// <summary> /// Associates a backup gateway with your server. After you complete the association process, /// you can back up and restore your VMs through the gateway. /// </summary> /// <param name="request">Container for the necessary parameters to execute the AssociateGatewayToServer service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the AssociateGatewayToServer service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/AssociateGatewayToServer">REST API Reference for AssociateGatewayToServer Operation</seealso> Task<AssociateGatewayToServerResponse> AssociateGatewayToServerAsync(AssociateGatewayToServerRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateGateway /// <summary> /// Creates a backup gateway. After you create a gateway, you can associate it with a /// server using the <code>AssociateGatewayToServer</code> operation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateGateway service method.</param> /// /// <returns>The response from the CreateGateway service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/CreateGateway">REST API Reference for CreateGateway Operation</seealso> CreateGatewayResponse CreateGateway(CreateGatewayRequest request); /// <summary> /// Creates a backup gateway. After you create a gateway, you can associate it with a /// server using the <code>AssociateGatewayToServer</code> operation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateGateway service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateGateway service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/CreateGateway">REST API Reference for CreateGateway Operation</seealso> Task<CreateGatewayResponse> CreateGatewayAsync(CreateGatewayRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteGateway /// <summary> /// Deletes a backup gateway. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteGateway service method.</param> /// /// <returns>The response from the DeleteGateway service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/DeleteGateway">REST API Reference for DeleteGateway Operation</seealso> DeleteGatewayResponse DeleteGateway(DeleteGatewayRequest request); /// <summary> /// Deletes a backup gateway. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteGateway service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteGateway service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/DeleteGateway">REST API Reference for DeleteGateway Operation</seealso> Task<DeleteGatewayResponse> DeleteGatewayAsync(DeleteGatewayRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteHypervisor /// <summary> /// Deletes a hypervisor. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteHypervisor service method.</param> /// /// <returns>The response from the DeleteHypervisor service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.AccessDeniedException"> /// The operation cannot proceed because you have insufficient permissions. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/DeleteHypervisor">REST API Reference for DeleteHypervisor Operation</seealso> DeleteHypervisorResponse DeleteHypervisor(DeleteHypervisorRequest request); /// <summary> /// Deletes a hypervisor. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteHypervisor service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteHypervisor service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.AccessDeniedException"> /// The operation cannot proceed because you have insufficient permissions. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/DeleteHypervisor">REST API Reference for DeleteHypervisor Operation</seealso> Task<DeleteHypervisorResponse> DeleteHypervisorAsync(DeleteHypervisorRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DisassociateGatewayFromServer /// <summary> /// Disassociates a backup gateway from the specified server. After the disassociation /// process finishes, the gateway can no longer access the virtual machines on the server. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisassociateGatewayFromServer service method.</param> /// /// <returns>The response from the DisassociateGatewayFromServer service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/DisassociateGatewayFromServer">REST API Reference for DisassociateGatewayFromServer Operation</seealso> DisassociateGatewayFromServerResponse DisassociateGatewayFromServer(DisassociateGatewayFromServerRequest request); /// <summary> /// Disassociates a backup gateway from the specified server. After the disassociation /// process finishes, the gateway can no longer access the virtual machines on the server. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisassociateGatewayFromServer service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DisassociateGatewayFromServer service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/DisassociateGatewayFromServer">REST API Reference for DisassociateGatewayFromServer Operation</seealso> Task<DisassociateGatewayFromServerResponse> DisassociateGatewayFromServerAsync(DisassociateGatewayFromServerRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetBandwidthRateLimitSchedule /// <summary> /// Retrieves the bandwidth rate limit schedule for a specified gateway. By default, gateways /// do not have bandwidth rate limit schedules, which means no bandwidth rate limiting /// is in effect. Use this to get a gateway's bandwidth rate limit schedule. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetBandwidthRateLimitSchedule service method.</param> /// /// <returns>The response from the GetBandwidthRateLimitSchedule service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetBandwidthRateLimitSchedule">REST API Reference for GetBandwidthRateLimitSchedule Operation</seealso> GetBandwidthRateLimitScheduleResponse GetBandwidthRateLimitSchedule(GetBandwidthRateLimitScheduleRequest request); /// <summary> /// Retrieves the bandwidth rate limit schedule for a specified gateway. By default, gateways /// do not have bandwidth rate limit schedules, which means no bandwidth rate limiting /// is in effect. Use this to get a gateway's bandwidth rate limit schedule. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetBandwidthRateLimitSchedule service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetBandwidthRateLimitSchedule service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetBandwidthRateLimitSchedule">REST API Reference for GetBandwidthRateLimitSchedule Operation</seealso> Task<GetBandwidthRateLimitScheduleResponse> GetBandwidthRateLimitScheduleAsync(GetBandwidthRateLimitScheduleRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetGateway /// <summary> /// By providing the ARN (Amazon Resource Name), this API returns the gateway. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetGateway service method.</param> /// /// <returns>The response from the GetGateway service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetGateway">REST API Reference for GetGateway Operation</seealso> GetGatewayResponse GetGateway(GetGatewayRequest request); /// <summary> /// By providing the ARN (Amazon Resource Name), this API returns the gateway. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetGateway service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetGateway service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetGateway">REST API Reference for GetGateway Operation</seealso> Task<GetGatewayResponse> GetGatewayAsync(GetGatewayRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetHypervisor /// <summary> /// This action requests information about the specified hypervisor to which the gateway /// will connect. A hypervisor is hardware, software, or firmware that creates and manages /// virtual machines, and allocates resources to them. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetHypervisor service method.</param> /// /// <returns>The response from the GetHypervisor service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetHypervisor">REST API Reference for GetHypervisor Operation</seealso> GetHypervisorResponse GetHypervisor(GetHypervisorRequest request); /// <summary> /// This action requests information about the specified hypervisor to which the gateway /// will connect. A hypervisor is hardware, software, or firmware that creates and manages /// virtual machines, and allocates resources to them. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetHypervisor service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetHypervisor service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetHypervisor">REST API Reference for GetHypervisor Operation</seealso> Task<GetHypervisorResponse> GetHypervisorAsync(GetHypervisorRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetHypervisorPropertyMappings /// <summary> /// This action retrieves the property mappings for the specified hypervisor. A hypervisor /// property mapping displays the relationship of entity properties available from the /// on-premises hypervisor to the properties available in Amazon Web Services. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetHypervisorPropertyMappings service method.</param> /// /// <returns>The response from the GetHypervisorPropertyMappings service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetHypervisorPropertyMappings">REST API Reference for GetHypervisorPropertyMappings Operation</seealso> GetHypervisorPropertyMappingsResponse GetHypervisorPropertyMappings(GetHypervisorPropertyMappingsRequest request); /// <summary> /// This action retrieves the property mappings for the specified hypervisor. A hypervisor /// property mapping displays the relationship of entity properties available from the /// on-premises hypervisor to the properties available in Amazon Web Services. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetHypervisorPropertyMappings service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetHypervisorPropertyMappings service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetHypervisorPropertyMappings">REST API Reference for GetHypervisorPropertyMappings Operation</seealso> Task<GetHypervisorPropertyMappingsResponse> GetHypervisorPropertyMappingsAsync(GetHypervisorPropertyMappingsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetVirtualMachine /// <summary> /// By providing the ARN (Amazon Resource Name), this API returns the virtual machine. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetVirtualMachine service method.</param> /// /// <returns>The response from the GetVirtualMachine service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetVirtualMachine">REST API Reference for GetVirtualMachine Operation</seealso> GetVirtualMachineResponse GetVirtualMachine(GetVirtualMachineRequest request); /// <summary> /// By providing the ARN (Amazon Resource Name), this API returns the virtual machine. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetVirtualMachine service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetVirtualMachine service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetVirtualMachine">REST API Reference for GetVirtualMachine Operation</seealso> Task<GetVirtualMachineResponse> GetVirtualMachineAsync(GetVirtualMachineRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ImportHypervisorConfiguration /// <summary> /// Connect to a hypervisor by importing its configuration. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ImportHypervisorConfiguration service method.</param> /// /// <returns>The response from the ImportHypervisorConfiguration service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.AccessDeniedException"> /// The operation cannot proceed because you have insufficient permissions. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ImportHypervisorConfiguration">REST API Reference for ImportHypervisorConfiguration Operation</seealso> ImportHypervisorConfigurationResponse ImportHypervisorConfiguration(ImportHypervisorConfigurationRequest request); /// <summary> /// Connect to a hypervisor by importing its configuration. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ImportHypervisorConfiguration service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ImportHypervisorConfiguration service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.AccessDeniedException"> /// The operation cannot proceed because you have insufficient permissions. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ImportHypervisorConfiguration">REST API Reference for ImportHypervisorConfiguration Operation</seealso> Task<ImportHypervisorConfigurationResponse> ImportHypervisorConfigurationAsync(ImportHypervisorConfigurationRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListGateways /// <summary> /// Lists backup gateways owned by an Amazon Web Services account in an Amazon Web Services /// Region. The returned list is ordered by gateway Amazon Resource Name (ARN). /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListGateways service method.</param> /// /// <returns>The response from the ListGateways service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ListGateways">REST API Reference for ListGateways Operation</seealso> ListGatewaysResponse ListGateways(ListGatewaysRequest request); /// <summary> /// Lists backup gateways owned by an Amazon Web Services account in an Amazon Web Services /// Region. The returned list is ordered by gateway Amazon Resource Name (ARN). /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListGateways service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListGateways service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ListGateways">REST API Reference for ListGateways Operation</seealso> Task<ListGatewaysResponse> ListGatewaysAsync(ListGatewaysRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListHypervisors /// <summary> /// Lists your hypervisors. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListHypervisors service method.</param> /// /// <returns>The response from the ListHypervisors service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ListHypervisors">REST API Reference for ListHypervisors Operation</seealso> ListHypervisorsResponse ListHypervisors(ListHypervisorsRequest request); /// <summary> /// Lists your hypervisors. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListHypervisors service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListHypervisors service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ListHypervisors">REST API Reference for ListHypervisors Operation</seealso> Task<ListHypervisorsResponse> ListHypervisorsAsync(ListHypervisorsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListTagsForResource /// <summary> /// Lists the tags applied to the resource identified by its Amazon Resource Name (ARN). /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param> /// /// <returns>The response from the ListTagsForResource service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request); /// <summary> /// Lists the tags applied to the resource identified by its Amazon Resource Name (ARN). /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListTagsForResource service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> Task<ListTagsForResourceResponse> ListTagsForResourceAsync(ListTagsForResourceRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListVirtualMachines /// <summary> /// Lists your virtual machines. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListVirtualMachines service method.</param> /// /// <returns>The response from the ListVirtualMachines service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ListVirtualMachines">REST API Reference for ListVirtualMachines Operation</seealso> ListVirtualMachinesResponse ListVirtualMachines(ListVirtualMachinesRequest request); /// <summary> /// Lists your virtual machines. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListVirtualMachines service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListVirtualMachines service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ListVirtualMachines">REST API Reference for ListVirtualMachines Operation</seealso> Task<ListVirtualMachinesResponse> ListVirtualMachinesAsync(ListVirtualMachinesRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region PutBandwidthRateLimitSchedule /// <summary> /// This action sets the bandwidth rate limit schedule for a specified gateway. By default, /// gateways do not have a bandwidth rate limit schedule, which means no bandwidth rate /// limiting is in effect. Use this to initiate a gateway's bandwidth rate limit schedule. /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutBandwidthRateLimitSchedule service method.</param> /// /// <returns>The response from the PutBandwidthRateLimitSchedule service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/PutBandwidthRateLimitSchedule">REST API Reference for PutBandwidthRateLimitSchedule Operation</seealso> PutBandwidthRateLimitScheduleResponse PutBandwidthRateLimitSchedule(PutBandwidthRateLimitScheduleRequest request); /// <summary> /// This action sets the bandwidth rate limit schedule for a specified gateway. By default, /// gateways do not have a bandwidth rate limit schedule, which means no bandwidth rate /// limiting is in effect. Use this to initiate a gateway's bandwidth rate limit schedule. /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutBandwidthRateLimitSchedule service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutBandwidthRateLimitSchedule service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/PutBandwidthRateLimitSchedule">REST API Reference for PutBandwidthRateLimitSchedule Operation</seealso> Task<PutBandwidthRateLimitScheduleResponse> PutBandwidthRateLimitScheduleAsync(PutBandwidthRateLimitScheduleRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region PutHypervisorPropertyMappings /// <summary> /// This action sets the property mappings for the specified hypervisor. A hypervisor /// property mapping displays the relationship of entity properties available from the /// on-premises hypervisor to the properties available in Amazon Web Services. /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutHypervisorPropertyMappings service method.</param> /// /// <returns>The response from the PutHypervisorPropertyMappings service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.AccessDeniedException"> /// The operation cannot proceed because you have insufficient permissions. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/PutHypervisorPropertyMappings">REST API Reference for PutHypervisorPropertyMappings Operation</seealso> PutHypervisorPropertyMappingsResponse PutHypervisorPropertyMappings(PutHypervisorPropertyMappingsRequest request); /// <summary> /// This action sets the property mappings for the specified hypervisor. A hypervisor /// property mapping displays the relationship of entity properties available from the /// on-premises hypervisor to the properties available in Amazon Web Services. /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutHypervisorPropertyMappings service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutHypervisorPropertyMappings service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.AccessDeniedException"> /// The operation cannot proceed because you have insufficient permissions. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/PutHypervisorPropertyMappings">REST API Reference for PutHypervisorPropertyMappings Operation</seealso> Task<PutHypervisorPropertyMappingsResponse> PutHypervisorPropertyMappingsAsync(PutHypervisorPropertyMappingsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region PutMaintenanceStartTime /// <summary> /// Set the maintenance start time for a gateway. /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutMaintenanceStartTime service method.</param> /// /// <returns>The response from the PutMaintenanceStartTime service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/PutMaintenanceStartTime">REST API Reference for PutMaintenanceStartTime Operation</seealso> PutMaintenanceStartTimeResponse PutMaintenanceStartTime(PutMaintenanceStartTimeRequest request); /// <summary> /// Set the maintenance start time for a gateway. /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutMaintenanceStartTime service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutMaintenanceStartTime service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/PutMaintenanceStartTime">REST API Reference for PutMaintenanceStartTime Operation</seealso> Task<PutMaintenanceStartTimeResponse> PutMaintenanceStartTimeAsync(PutMaintenanceStartTimeRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region StartVirtualMachinesMetadataSync /// <summary> /// This action sends a request to sync metadata across the specified virtual machines. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartVirtualMachinesMetadataSync service method.</param> /// /// <returns>The response from the StartVirtualMachinesMetadataSync service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.AccessDeniedException"> /// The operation cannot proceed because you have insufficient permissions. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/StartVirtualMachinesMetadataSync">REST API Reference for StartVirtualMachinesMetadataSync Operation</seealso> StartVirtualMachinesMetadataSyncResponse StartVirtualMachinesMetadataSync(StartVirtualMachinesMetadataSyncRequest request); /// <summary> /// This action sends a request to sync metadata across the specified virtual machines. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartVirtualMachinesMetadataSync service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the StartVirtualMachinesMetadataSync service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.AccessDeniedException"> /// The operation cannot proceed because you have insufficient permissions. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/StartVirtualMachinesMetadataSync">REST API Reference for StartVirtualMachinesMetadataSync Operation</seealso> Task<StartVirtualMachinesMetadataSyncResponse> StartVirtualMachinesMetadataSyncAsync(StartVirtualMachinesMetadataSyncRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region TagResource /// <summary> /// Tag the resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param> /// /// <returns>The response from the TagResource service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/TagResource">REST API Reference for TagResource Operation</seealso> TagResourceResponse TagResource(TagResourceRequest request); /// <summary> /// Tag the resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the TagResource service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/TagResource">REST API Reference for TagResource Operation</seealso> Task<TagResourceResponse> TagResourceAsync(TagResourceRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region TestHypervisorConfiguration /// <summary> /// Tests your hypervisor configuration to validate that backup gateway can connect with /// the hypervisor and its resources. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TestHypervisorConfiguration service method.</param> /// /// <returns>The response from the TestHypervisorConfiguration service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/TestHypervisorConfiguration">REST API Reference for TestHypervisorConfiguration Operation</seealso> TestHypervisorConfigurationResponse TestHypervisorConfiguration(TestHypervisorConfigurationRequest request); /// <summary> /// Tests your hypervisor configuration to validate that backup gateway can connect with /// the hypervisor and its resources. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TestHypervisorConfiguration service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the TestHypervisorConfiguration service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/TestHypervisorConfiguration">REST API Reference for TestHypervisorConfiguration Operation</seealso> Task<TestHypervisorConfigurationResponse> TestHypervisorConfigurationAsync(TestHypervisorConfigurationRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UntagResource /// <summary> /// Removes tags from the resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param> /// /// <returns>The response from the UntagResource service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/UntagResource">REST API Reference for UntagResource Operation</seealso> UntagResourceResponse UntagResource(UntagResourceRequest request); /// <summary> /// Removes tags from the resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UntagResource service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/UntagResource">REST API Reference for UntagResource Operation</seealso> Task<UntagResourceResponse> UntagResourceAsync(UntagResourceRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateGatewayInformation /// <summary> /// Updates a gateway's name. Specify which gateway to update using the Amazon Resource /// Name (ARN) of the gateway in your request. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateGatewayInformation service method.</param> /// /// <returns>The response from the UpdateGatewayInformation service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/UpdateGatewayInformation">REST API Reference for UpdateGatewayInformation Operation</seealso> UpdateGatewayInformationResponse UpdateGatewayInformation(UpdateGatewayInformationRequest request); /// <summary> /// Updates a gateway's name. Specify which gateway to update using the Amazon Resource /// Name (ARN) of the gateway in your request. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateGatewayInformation service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateGatewayInformation service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/UpdateGatewayInformation">REST API Reference for UpdateGatewayInformation Operation</seealso> Task<UpdateGatewayInformationResponse> UpdateGatewayInformationAsync(UpdateGatewayInformationRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateGatewaySoftwareNow /// <summary> /// Updates the gateway virtual machine (VM) software. The request immediately triggers /// the software update. /// /// <note> /// <para> /// When you make this request, you get a <code>200 OK</code> success response immediately. /// However, it might take some time for the update to complete. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateGatewaySoftwareNow service method.</param> /// /// <returns>The response from the UpdateGatewaySoftwareNow service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/UpdateGatewaySoftwareNow">REST API Reference for UpdateGatewaySoftwareNow Operation</seealso> UpdateGatewaySoftwareNowResponse UpdateGatewaySoftwareNow(UpdateGatewaySoftwareNowRequest request); /// <summary> /// Updates the gateway virtual machine (VM) software. The request immediately triggers /// the software update. /// /// <note> /// <para> /// When you make this request, you get a <code>200 OK</code> success response immediately. /// However, it might take some time for the update to complete. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateGatewaySoftwareNow service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateGatewaySoftwareNow service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/UpdateGatewaySoftwareNow">REST API Reference for UpdateGatewaySoftwareNow Operation</seealso> Task<UpdateGatewaySoftwareNowResponse> UpdateGatewaySoftwareNowAsync(UpdateGatewaySoftwareNowRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateHypervisor /// <summary> /// Updates a hypervisor metadata, including its host, username, and password. Specify /// which hypervisor to update using the Amazon Resource Name (ARN) of the hypervisor /// in your request. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateHypervisor service method.</param> /// /// <returns>The response from the UpdateHypervisor service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.AccessDeniedException"> /// The operation cannot proceed because you have insufficient permissions. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/UpdateHypervisor">REST API Reference for UpdateHypervisor Operation</seealso> UpdateHypervisorResponse UpdateHypervisor(UpdateHypervisorRequest request); /// <summary> /// Updates a hypervisor metadata, including its host, username, and password. Specify /// which hypervisor to update using the Amazon Resource Name (ARN) of the hypervisor /// in your request. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateHypervisor service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateHypervisor service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.AccessDeniedException"> /// The operation cannot proceed because you have insufficient permissions. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/UpdateHypervisor">REST API Reference for UpdateHypervisor Operation</seealso> Task<UpdateHypervisorResponse> UpdateHypervisorAsync(UpdateHypervisorRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion } }
1,519
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backup-gateway-2021-01-01.normal.json service model. */ using System; using System.Runtime.ExceptionServices; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using System.Net; using Amazon.BackupGateway.Model; using Amazon.BackupGateway.Model.Internal.MarshallTransformations; using Amazon.BackupGateway.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.BackupGateway { /// <summary> /// Implementation for accessing BackupGateway /// /// Backup gateway /// <para> /// Backup gateway connects Backup to your hypervisor, so you can create, store, and restore /// backups of your virtual machines (VMs) anywhere, whether on-premises or in the VMware /// Cloud (VMC) on Amazon Web Services. /// /// /// <para> /// Add on-premises resources by connecting to a hypervisor through a gateway. Backup /// will automatically discover the resources in your hypervisor. /// </para> /// /// <para> /// Use Backup to assign virtual or on-premises resources to a backup plan, or run on-demand /// backups. Once you have backed up your resources, you can view them and restore them /// like any resource supported by Backup. /// </para> /// /// <para> /// To download the Amazon Web Services software to get started, navigate to the Backup /// console, choose <b>Gateways</b>, then choose <b>Create gateway</b>. /// </para> /// /// </para> /// </summary> public partial class AmazonBackupGatewayClient : AmazonServiceClient, IAmazonBackupGateway { private static IServiceMetadata serviceMetadata = new AmazonBackupGatewayMetadata(); #region Constructors /// <summary> /// Constructs AmazonBackupGatewayClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> public AmazonBackupGatewayClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonBackupGatewayConfig()) { } /// <summary> /// Constructs AmazonBackupGatewayClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="region">The region to connect.</param> public AmazonBackupGatewayClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonBackupGatewayConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonBackupGatewayClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="config">The AmazonBackupGatewayClient Configuration Object</param> public AmazonBackupGatewayClient(AmazonBackupGatewayConfig config) : base(FallbackCredentialsFactory.GetCredentials(), config) { } /// <summary> /// Constructs AmazonBackupGatewayClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> public AmazonBackupGatewayClient(AWSCredentials credentials) : this(credentials, new AmazonBackupGatewayConfig()) { } /// <summary> /// Constructs AmazonBackupGatewayClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="region">The region to connect.</param> public AmazonBackupGatewayClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonBackupGatewayConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonBackupGatewayClient with AWS Credentials and an /// AmazonBackupGatewayClient Configuration object. /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="clientConfig">The AmazonBackupGatewayClient Configuration Object</param> public AmazonBackupGatewayClient(AWSCredentials credentials, AmazonBackupGatewayConfig clientConfig) : base(credentials, clientConfig) { } /// <summary> /// Constructs AmazonBackupGatewayClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> public AmazonBackupGatewayClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonBackupGatewayConfig()) { } /// <summary> /// Constructs AmazonBackupGatewayClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="region">The region to connect.</param> public AmazonBackupGatewayClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonBackupGatewayConfig() {RegionEndpoint=region}) { } /// <summary> /// Constructs AmazonBackupGatewayClient with AWS Access Key ID, AWS Secret Key and an /// AmazonBackupGatewayClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="clientConfig">The AmazonBackupGatewayClient Configuration Object</param> public AmazonBackupGatewayClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonBackupGatewayConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// <summary> /// Constructs AmazonBackupGatewayClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> public AmazonBackupGatewayClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonBackupGatewayConfig()) { } /// <summary> /// Constructs AmazonBackupGatewayClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> /// <param name="region">The region to connect.</param> public AmazonBackupGatewayClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonBackupGatewayConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonBackupGatewayClient with AWS Access Key ID, AWS Secret Key and an /// AmazonBackupGatewayClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> /// <param name="clientConfig">The AmazonBackupGatewayClient Configuration Object</param> public AmazonBackupGatewayClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonBackupGatewayConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #if AWS_ASYNC_ENUMERABLES_API private IBackupGatewayPaginatorFactory _paginators; /// <summary> /// Paginators for the service /// </summary> public IBackupGatewayPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new BackupGatewayPaginatorFactory(this); } return this._paginators; } } #endif #region Overrides /// <summary> /// Creates the signer for the service. /// </summary> protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// <summary> /// Customizes the runtime pipeline. /// </summary> /// <param name="pipeline">Runtime pipeline for the current client.</param> protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) { pipeline.RemoveHandler<Amazon.Runtime.Internal.EndpointResolver>(); pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new AmazonBackupGatewayEndpointResolver()); } /// <summary> /// Capture metadata for the service. /// </summary> protected override IServiceMetadata ServiceMetadata { get { return serviceMetadata; } } #endregion #region Dispose /// <summary> /// Disposes the service client. /// </summary> protected override void Dispose(bool disposing) { base.Dispose(disposing); } #endregion #region AssociateGatewayToServer internal virtual AssociateGatewayToServerResponse AssociateGatewayToServer(AssociateGatewayToServerRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateGatewayToServerRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateGatewayToServerResponseUnmarshaller.Instance; return Invoke<AssociateGatewayToServerResponse>(request, options); } /// <summary> /// Associates a backup gateway with your server. After you complete the association process, /// you can back up and restore your VMs through the gateway. /// </summary> /// <param name="request">Container for the necessary parameters to execute the AssociateGatewayToServer service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the AssociateGatewayToServer service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/AssociateGatewayToServer">REST API Reference for AssociateGatewayToServer Operation</seealso> public virtual Task<AssociateGatewayToServerResponse> AssociateGatewayToServerAsync(AssociateGatewayToServerRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateGatewayToServerRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateGatewayToServerResponseUnmarshaller.Instance; return InvokeAsync<AssociateGatewayToServerResponse>(request, options, cancellationToken); } #endregion #region CreateGateway internal virtual CreateGatewayResponse CreateGateway(CreateGatewayRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateGatewayRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateGatewayResponseUnmarshaller.Instance; return Invoke<CreateGatewayResponse>(request, options); } /// <summary> /// Creates a backup gateway. After you create a gateway, you can associate it with a /// server using the <code>AssociateGatewayToServer</code> operation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateGateway service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateGateway service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/CreateGateway">REST API Reference for CreateGateway Operation</seealso> public virtual Task<CreateGatewayResponse> CreateGatewayAsync(CreateGatewayRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateGatewayRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateGatewayResponseUnmarshaller.Instance; return InvokeAsync<CreateGatewayResponse>(request, options, cancellationToken); } #endregion #region DeleteGateway internal virtual DeleteGatewayResponse DeleteGateway(DeleteGatewayRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteGatewayRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteGatewayResponseUnmarshaller.Instance; return Invoke<DeleteGatewayResponse>(request, options); } /// <summary> /// Deletes a backup gateway. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteGateway service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteGateway service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/DeleteGateway">REST API Reference for DeleteGateway Operation</seealso> public virtual Task<DeleteGatewayResponse> DeleteGatewayAsync(DeleteGatewayRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteGatewayRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteGatewayResponseUnmarshaller.Instance; return InvokeAsync<DeleteGatewayResponse>(request, options, cancellationToken); } #endregion #region DeleteHypervisor internal virtual DeleteHypervisorResponse DeleteHypervisor(DeleteHypervisorRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteHypervisorRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteHypervisorResponseUnmarshaller.Instance; return Invoke<DeleteHypervisorResponse>(request, options); } /// <summary> /// Deletes a hypervisor. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteHypervisor service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteHypervisor service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.AccessDeniedException"> /// The operation cannot proceed because you have insufficient permissions. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/DeleteHypervisor">REST API Reference for DeleteHypervisor Operation</seealso> public virtual Task<DeleteHypervisorResponse> DeleteHypervisorAsync(DeleteHypervisorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteHypervisorRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteHypervisorResponseUnmarshaller.Instance; return InvokeAsync<DeleteHypervisorResponse>(request, options, cancellationToken); } #endregion #region DisassociateGatewayFromServer internal virtual DisassociateGatewayFromServerResponse DisassociateGatewayFromServer(DisassociateGatewayFromServerRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateGatewayFromServerRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateGatewayFromServerResponseUnmarshaller.Instance; return Invoke<DisassociateGatewayFromServerResponse>(request, options); } /// <summary> /// Disassociates a backup gateway from the specified server. After the disassociation /// process finishes, the gateway can no longer access the virtual machines on the server. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisassociateGatewayFromServer service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DisassociateGatewayFromServer service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/DisassociateGatewayFromServer">REST API Reference for DisassociateGatewayFromServer Operation</seealso> public virtual Task<DisassociateGatewayFromServerResponse> DisassociateGatewayFromServerAsync(DisassociateGatewayFromServerRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateGatewayFromServerRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateGatewayFromServerResponseUnmarshaller.Instance; return InvokeAsync<DisassociateGatewayFromServerResponse>(request, options, cancellationToken); } #endregion #region GetBandwidthRateLimitSchedule internal virtual GetBandwidthRateLimitScheduleResponse GetBandwidthRateLimitSchedule(GetBandwidthRateLimitScheduleRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetBandwidthRateLimitScheduleRequestMarshaller.Instance; options.ResponseUnmarshaller = GetBandwidthRateLimitScheduleResponseUnmarshaller.Instance; return Invoke<GetBandwidthRateLimitScheduleResponse>(request, options); } /// <summary> /// Retrieves the bandwidth rate limit schedule for a specified gateway. By default, gateways /// do not have bandwidth rate limit schedules, which means no bandwidth rate limiting /// is in effect. Use this to get a gateway's bandwidth rate limit schedule. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetBandwidthRateLimitSchedule service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetBandwidthRateLimitSchedule service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetBandwidthRateLimitSchedule">REST API Reference for GetBandwidthRateLimitSchedule Operation</seealso> public virtual Task<GetBandwidthRateLimitScheduleResponse> GetBandwidthRateLimitScheduleAsync(GetBandwidthRateLimitScheduleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetBandwidthRateLimitScheduleRequestMarshaller.Instance; options.ResponseUnmarshaller = GetBandwidthRateLimitScheduleResponseUnmarshaller.Instance; return InvokeAsync<GetBandwidthRateLimitScheduleResponse>(request, options, cancellationToken); } #endregion #region GetGateway internal virtual GetGatewayResponse GetGateway(GetGatewayRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetGatewayRequestMarshaller.Instance; options.ResponseUnmarshaller = GetGatewayResponseUnmarshaller.Instance; return Invoke<GetGatewayResponse>(request, options); } /// <summary> /// By providing the ARN (Amazon Resource Name), this API returns the gateway. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetGateway service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetGateway service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetGateway">REST API Reference for GetGateway Operation</seealso> public virtual Task<GetGatewayResponse> GetGatewayAsync(GetGatewayRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetGatewayRequestMarshaller.Instance; options.ResponseUnmarshaller = GetGatewayResponseUnmarshaller.Instance; return InvokeAsync<GetGatewayResponse>(request, options, cancellationToken); } #endregion #region GetHypervisor internal virtual GetHypervisorResponse GetHypervisor(GetHypervisorRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetHypervisorRequestMarshaller.Instance; options.ResponseUnmarshaller = GetHypervisorResponseUnmarshaller.Instance; return Invoke<GetHypervisorResponse>(request, options); } /// <summary> /// This action requests information about the specified hypervisor to which the gateway /// will connect. A hypervisor is hardware, software, or firmware that creates and manages /// virtual machines, and allocates resources to them. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetHypervisor service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetHypervisor service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetHypervisor">REST API Reference for GetHypervisor Operation</seealso> public virtual Task<GetHypervisorResponse> GetHypervisorAsync(GetHypervisorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetHypervisorRequestMarshaller.Instance; options.ResponseUnmarshaller = GetHypervisorResponseUnmarshaller.Instance; return InvokeAsync<GetHypervisorResponse>(request, options, cancellationToken); } #endregion #region GetHypervisorPropertyMappings internal virtual GetHypervisorPropertyMappingsResponse GetHypervisorPropertyMappings(GetHypervisorPropertyMappingsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetHypervisorPropertyMappingsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetHypervisorPropertyMappingsResponseUnmarshaller.Instance; return Invoke<GetHypervisorPropertyMappingsResponse>(request, options); } /// <summary> /// This action retrieves the property mappings for the specified hypervisor. A hypervisor /// property mapping displays the relationship of entity properties available from the /// on-premises hypervisor to the properties available in Amazon Web Services. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetHypervisorPropertyMappings service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetHypervisorPropertyMappings service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetHypervisorPropertyMappings">REST API Reference for GetHypervisorPropertyMappings Operation</seealso> public virtual Task<GetHypervisorPropertyMappingsResponse> GetHypervisorPropertyMappingsAsync(GetHypervisorPropertyMappingsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetHypervisorPropertyMappingsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetHypervisorPropertyMappingsResponseUnmarshaller.Instance; return InvokeAsync<GetHypervisorPropertyMappingsResponse>(request, options, cancellationToken); } #endregion #region GetVirtualMachine internal virtual GetVirtualMachineResponse GetVirtualMachine(GetVirtualMachineRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetVirtualMachineRequestMarshaller.Instance; options.ResponseUnmarshaller = GetVirtualMachineResponseUnmarshaller.Instance; return Invoke<GetVirtualMachineResponse>(request, options); } /// <summary> /// By providing the ARN (Amazon Resource Name), this API returns the virtual machine. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetVirtualMachine service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetVirtualMachine service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetVirtualMachine">REST API Reference for GetVirtualMachine Operation</seealso> public virtual Task<GetVirtualMachineResponse> GetVirtualMachineAsync(GetVirtualMachineRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetVirtualMachineRequestMarshaller.Instance; options.ResponseUnmarshaller = GetVirtualMachineResponseUnmarshaller.Instance; return InvokeAsync<GetVirtualMachineResponse>(request, options, cancellationToken); } #endregion #region ImportHypervisorConfiguration internal virtual ImportHypervisorConfigurationResponse ImportHypervisorConfiguration(ImportHypervisorConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ImportHypervisorConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = ImportHypervisorConfigurationResponseUnmarshaller.Instance; return Invoke<ImportHypervisorConfigurationResponse>(request, options); } /// <summary> /// Connect to a hypervisor by importing its configuration. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ImportHypervisorConfiguration service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ImportHypervisorConfiguration service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.AccessDeniedException"> /// The operation cannot proceed because you have insufficient permissions. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ImportHypervisorConfiguration">REST API Reference for ImportHypervisorConfiguration Operation</seealso> public virtual Task<ImportHypervisorConfigurationResponse> ImportHypervisorConfigurationAsync(ImportHypervisorConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ImportHypervisorConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = ImportHypervisorConfigurationResponseUnmarshaller.Instance; return InvokeAsync<ImportHypervisorConfigurationResponse>(request, options, cancellationToken); } #endregion #region ListGateways internal virtual ListGatewaysResponse ListGateways(ListGatewaysRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListGatewaysRequestMarshaller.Instance; options.ResponseUnmarshaller = ListGatewaysResponseUnmarshaller.Instance; return Invoke<ListGatewaysResponse>(request, options); } /// <summary> /// Lists backup gateways owned by an Amazon Web Services account in an Amazon Web Services /// Region. The returned list is ordered by gateway Amazon Resource Name (ARN). /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListGateways service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListGateways service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ListGateways">REST API Reference for ListGateways Operation</seealso> public virtual Task<ListGatewaysResponse> ListGatewaysAsync(ListGatewaysRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListGatewaysRequestMarshaller.Instance; options.ResponseUnmarshaller = ListGatewaysResponseUnmarshaller.Instance; return InvokeAsync<ListGatewaysResponse>(request, options, cancellationToken); } #endregion #region ListHypervisors internal virtual ListHypervisorsResponse ListHypervisors(ListHypervisorsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListHypervisorsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListHypervisorsResponseUnmarshaller.Instance; return Invoke<ListHypervisorsResponse>(request, options); } /// <summary> /// Lists your hypervisors. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListHypervisors service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListHypervisors service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ListHypervisors">REST API Reference for ListHypervisors Operation</seealso> public virtual Task<ListHypervisorsResponse> ListHypervisorsAsync(ListHypervisorsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListHypervisorsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListHypervisorsResponseUnmarshaller.Instance; return InvokeAsync<ListHypervisorsResponse>(request, options, cancellationToken); } #endregion #region ListTagsForResource internal virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return Invoke<ListTagsForResourceResponse>(request, options); } /// <summary> /// Lists the tags applied to the resource identified by its Amazon Resource Name (ARN). /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListTagsForResource service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> public virtual Task<ListTagsForResourceResponse> ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return InvokeAsync<ListTagsForResourceResponse>(request, options, cancellationToken); } #endregion #region ListVirtualMachines internal virtual ListVirtualMachinesResponse ListVirtualMachines(ListVirtualMachinesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListVirtualMachinesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListVirtualMachinesResponseUnmarshaller.Instance; return Invoke<ListVirtualMachinesResponse>(request, options); } /// <summary> /// Lists your virtual machines. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListVirtualMachines service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListVirtualMachines service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ListVirtualMachines">REST API Reference for ListVirtualMachines Operation</seealso> public virtual Task<ListVirtualMachinesResponse> ListVirtualMachinesAsync(ListVirtualMachinesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListVirtualMachinesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListVirtualMachinesResponseUnmarshaller.Instance; return InvokeAsync<ListVirtualMachinesResponse>(request, options, cancellationToken); } #endregion #region PutBandwidthRateLimitSchedule internal virtual PutBandwidthRateLimitScheduleResponse PutBandwidthRateLimitSchedule(PutBandwidthRateLimitScheduleRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutBandwidthRateLimitScheduleRequestMarshaller.Instance; options.ResponseUnmarshaller = PutBandwidthRateLimitScheduleResponseUnmarshaller.Instance; return Invoke<PutBandwidthRateLimitScheduleResponse>(request, options); } /// <summary> /// This action sets the bandwidth rate limit schedule for a specified gateway. By default, /// gateways do not have a bandwidth rate limit schedule, which means no bandwidth rate /// limiting is in effect. Use this to initiate a gateway's bandwidth rate limit schedule. /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutBandwidthRateLimitSchedule service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutBandwidthRateLimitSchedule service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/PutBandwidthRateLimitSchedule">REST API Reference for PutBandwidthRateLimitSchedule Operation</seealso> public virtual Task<PutBandwidthRateLimitScheduleResponse> PutBandwidthRateLimitScheduleAsync(PutBandwidthRateLimitScheduleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutBandwidthRateLimitScheduleRequestMarshaller.Instance; options.ResponseUnmarshaller = PutBandwidthRateLimitScheduleResponseUnmarshaller.Instance; return InvokeAsync<PutBandwidthRateLimitScheduleResponse>(request, options, cancellationToken); } #endregion #region PutHypervisorPropertyMappings internal virtual PutHypervisorPropertyMappingsResponse PutHypervisorPropertyMappings(PutHypervisorPropertyMappingsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutHypervisorPropertyMappingsRequestMarshaller.Instance; options.ResponseUnmarshaller = PutHypervisorPropertyMappingsResponseUnmarshaller.Instance; return Invoke<PutHypervisorPropertyMappingsResponse>(request, options); } /// <summary> /// This action sets the property mappings for the specified hypervisor. A hypervisor /// property mapping displays the relationship of entity properties available from the /// on-premises hypervisor to the properties available in Amazon Web Services. /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutHypervisorPropertyMappings service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutHypervisorPropertyMappings service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.AccessDeniedException"> /// The operation cannot proceed because you have insufficient permissions. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/PutHypervisorPropertyMappings">REST API Reference for PutHypervisorPropertyMappings Operation</seealso> public virtual Task<PutHypervisorPropertyMappingsResponse> PutHypervisorPropertyMappingsAsync(PutHypervisorPropertyMappingsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutHypervisorPropertyMappingsRequestMarshaller.Instance; options.ResponseUnmarshaller = PutHypervisorPropertyMappingsResponseUnmarshaller.Instance; return InvokeAsync<PutHypervisorPropertyMappingsResponse>(request, options, cancellationToken); } #endregion #region PutMaintenanceStartTime internal virtual PutMaintenanceStartTimeResponse PutMaintenanceStartTime(PutMaintenanceStartTimeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutMaintenanceStartTimeRequestMarshaller.Instance; options.ResponseUnmarshaller = PutMaintenanceStartTimeResponseUnmarshaller.Instance; return Invoke<PutMaintenanceStartTimeResponse>(request, options); } /// <summary> /// Set the maintenance start time for a gateway. /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutMaintenanceStartTime service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutMaintenanceStartTime service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/PutMaintenanceStartTime">REST API Reference for PutMaintenanceStartTime Operation</seealso> public virtual Task<PutMaintenanceStartTimeResponse> PutMaintenanceStartTimeAsync(PutMaintenanceStartTimeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutMaintenanceStartTimeRequestMarshaller.Instance; options.ResponseUnmarshaller = PutMaintenanceStartTimeResponseUnmarshaller.Instance; return InvokeAsync<PutMaintenanceStartTimeResponse>(request, options, cancellationToken); } #endregion #region StartVirtualMachinesMetadataSync internal virtual StartVirtualMachinesMetadataSyncResponse StartVirtualMachinesMetadataSync(StartVirtualMachinesMetadataSyncRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartVirtualMachinesMetadataSyncRequestMarshaller.Instance; options.ResponseUnmarshaller = StartVirtualMachinesMetadataSyncResponseUnmarshaller.Instance; return Invoke<StartVirtualMachinesMetadataSyncResponse>(request, options); } /// <summary> /// This action sends a request to sync metadata across the specified virtual machines. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartVirtualMachinesMetadataSync service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the StartVirtualMachinesMetadataSync service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.AccessDeniedException"> /// The operation cannot proceed because you have insufficient permissions. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/StartVirtualMachinesMetadataSync">REST API Reference for StartVirtualMachinesMetadataSync Operation</seealso> public virtual Task<StartVirtualMachinesMetadataSyncResponse> StartVirtualMachinesMetadataSyncAsync(StartVirtualMachinesMetadataSyncRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StartVirtualMachinesMetadataSyncRequestMarshaller.Instance; options.ResponseUnmarshaller = StartVirtualMachinesMetadataSyncResponseUnmarshaller.Instance; return InvokeAsync<StartVirtualMachinesMetadataSyncResponse>(request, options, cancellationToken); } #endregion #region TagResource internal virtual TagResourceResponse TagResource(TagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return Invoke<TagResourceResponse>(request, options); } /// <summary> /// Tag the resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the TagResource service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/TagResource">REST API Reference for TagResource Operation</seealso> public virtual Task<TagResourceResponse> TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return InvokeAsync<TagResourceResponse>(request, options, cancellationToken); } #endregion #region TestHypervisorConfiguration internal virtual TestHypervisorConfigurationResponse TestHypervisorConfiguration(TestHypervisorConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TestHypervisorConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = TestHypervisorConfigurationResponseUnmarshaller.Instance; return Invoke<TestHypervisorConfigurationResponse>(request, options); } /// <summary> /// Tests your hypervisor configuration to validate that backup gateway can connect with /// the hypervisor and its resources. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TestHypervisorConfiguration service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the TestHypervisorConfiguration service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/TestHypervisorConfiguration">REST API Reference for TestHypervisorConfiguration Operation</seealso> public virtual Task<TestHypervisorConfigurationResponse> TestHypervisorConfigurationAsync(TestHypervisorConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = TestHypervisorConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = TestHypervisorConfigurationResponseUnmarshaller.Instance; return InvokeAsync<TestHypervisorConfigurationResponse>(request, options, cancellationToken); } #endregion #region UntagResource internal virtual UntagResourceResponse UntagResource(UntagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return Invoke<UntagResourceResponse>(request, options); } /// <summary> /// Removes tags from the resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UntagResource service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/UntagResource">REST API Reference for UntagResource Operation</seealso> public virtual Task<UntagResourceResponse> UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return InvokeAsync<UntagResourceResponse>(request, options, cancellationToken); } #endregion #region UpdateGatewayInformation internal virtual UpdateGatewayInformationResponse UpdateGatewayInformation(UpdateGatewayInformationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateGatewayInformationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateGatewayInformationResponseUnmarshaller.Instance; return Invoke<UpdateGatewayInformationResponse>(request, options); } /// <summary> /// Updates a gateway's name. Specify which gateway to update using the Amazon Resource /// Name (ARN) of the gateway in your request. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateGatewayInformation service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateGatewayInformation service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/UpdateGatewayInformation">REST API Reference for UpdateGatewayInformation Operation</seealso> public virtual Task<UpdateGatewayInformationResponse> UpdateGatewayInformationAsync(UpdateGatewayInformationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateGatewayInformationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateGatewayInformationResponseUnmarshaller.Instance; return InvokeAsync<UpdateGatewayInformationResponse>(request, options, cancellationToken); } #endregion #region UpdateGatewaySoftwareNow internal virtual UpdateGatewaySoftwareNowResponse UpdateGatewaySoftwareNow(UpdateGatewaySoftwareNowRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateGatewaySoftwareNowRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateGatewaySoftwareNowResponseUnmarshaller.Instance; return Invoke<UpdateGatewaySoftwareNowResponse>(request, options); } /// <summary> /// Updates the gateway virtual machine (VM) software. The request immediately triggers /// the software update. /// /// <note> /// <para> /// When you make this request, you get a <code>200 OK</code> success response immediately. /// However, it might take some time for the update to complete. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateGatewaySoftwareNow service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateGatewaySoftwareNow service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/UpdateGatewaySoftwareNow">REST API Reference for UpdateGatewaySoftwareNow Operation</seealso> public virtual Task<UpdateGatewaySoftwareNowResponse> UpdateGatewaySoftwareNowAsync(UpdateGatewaySoftwareNowRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateGatewaySoftwareNowRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateGatewaySoftwareNowResponseUnmarshaller.Instance; return InvokeAsync<UpdateGatewaySoftwareNowResponse>(request, options, cancellationToken); } #endregion #region UpdateHypervisor internal virtual UpdateHypervisorResponse UpdateHypervisor(UpdateHypervisorRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateHypervisorRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateHypervisorResponseUnmarshaller.Instance; return Invoke<UpdateHypervisorResponse>(request, options); } /// <summary> /// Updates a hypervisor metadata, including its host, username, and password. Specify /// which hypervisor to update using the Amazon Resource Name (ARN) of the hypervisor /// in your request. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateHypervisor service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateHypervisor service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.AccessDeniedException"> /// The operation cannot proceed because you have insufficient permissions. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/UpdateHypervisor">REST API Reference for UpdateHypervisor Operation</seealso> public virtual Task<UpdateHypervisorResponse> UpdateHypervisorAsync(UpdateHypervisorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateHypervisorRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateHypervisorResponseUnmarshaller.Instance; return InvokeAsync<UpdateHypervisorResponse>(request, options, cancellationToken); } #endregion } }
1,519
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backup-gateway-2021-01-01.normal.json service model. */ using System; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using Amazon.Runtime; using Amazon.BackupGateway.Model; namespace Amazon.BackupGateway { /// <summary> /// Interface for accessing BackupGateway /// /// Backup gateway /// <para> /// Backup gateway connects Backup to your hypervisor, so you can create, store, and restore /// backups of your virtual machines (VMs) anywhere, whether on-premises or in the VMware /// Cloud (VMC) on Amazon Web Services. /// /// /// <para> /// Add on-premises resources by connecting to a hypervisor through a gateway. Backup /// will automatically discover the resources in your hypervisor. /// </para> /// /// <para> /// Use Backup to assign virtual or on-premises resources to a backup plan, or run on-demand /// backups. Once you have backed up your resources, you can view them and restore them /// like any resource supported by Backup. /// </para> /// /// <para> /// To download the Amazon Web Services software to get started, navigate to the Backup /// console, choose <b>Gateways</b>, then choose <b>Create gateway</b>. /// </para> /// /// </para> /// </summary> public partial interface IAmazonBackupGateway : IAmazonService, IDisposable { #if AWS_ASYNC_ENUMERABLES_API /// <summary> /// Paginators for the service /// </summary> IBackupGatewayPaginatorFactory Paginators { get; } #endif #region AssociateGatewayToServer /// <summary> /// Associates a backup gateway with your server. After you complete the association process, /// you can back up and restore your VMs through the gateway. /// </summary> /// <param name="request">Container for the necessary parameters to execute the AssociateGatewayToServer service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the AssociateGatewayToServer service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/AssociateGatewayToServer">REST API Reference for AssociateGatewayToServer Operation</seealso> Task<AssociateGatewayToServerResponse> AssociateGatewayToServerAsync(AssociateGatewayToServerRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateGateway /// <summary> /// Creates a backup gateway. After you create a gateway, you can associate it with a /// server using the <code>AssociateGatewayToServer</code> operation. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateGateway service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateGateway service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/CreateGateway">REST API Reference for CreateGateway Operation</seealso> Task<CreateGatewayResponse> CreateGatewayAsync(CreateGatewayRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteGateway /// <summary> /// Deletes a backup gateway. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteGateway service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteGateway service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/DeleteGateway">REST API Reference for DeleteGateway Operation</seealso> Task<DeleteGatewayResponse> DeleteGatewayAsync(DeleteGatewayRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteHypervisor /// <summary> /// Deletes a hypervisor. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteHypervisor service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteHypervisor service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.AccessDeniedException"> /// The operation cannot proceed because you have insufficient permissions. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/DeleteHypervisor">REST API Reference for DeleteHypervisor Operation</seealso> Task<DeleteHypervisorResponse> DeleteHypervisorAsync(DeleteHypervisorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DisassociateGatewayFromServer /// <summary> /// Disassociates a backup gateway from the specified server. After the disassociation /// process finishes, the gateway can no longer access the virtual machines on the server. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisassociateGatewayFromServer service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DisassociateGatewayFromServer service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/DisassociateGatewayFromServer">REST API Reference for DisassociateGatewayFromServer Operation</seealso> Task<DisassociateGatewayFromServerResponse> DisassociateGatewayFromServerAsync(DisassociateGatewayFromServerRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetBandwidthRateLimitSchedule /// <summary> /// Retrieves the bandwidth rate limit schedule for a specified gateway. By default, gateways /// do not have bandwidth rate limit schedules, which means no bandwidth rate limiting /// is in effect. Use this to get a gateway's bandwidth rate limit schedule. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetBandwidthRateLimitSchedule service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetBandwidthRateLimitSchedule service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetBandwidthRateLimitSchedule">REST API Reference for GetBandwidthRateLimitSchedule Operation</seealso> Task<GetBandwidthRateLimitScheduleResponse> GetBandwidthRateLimitScheduleAsync(GetBandwidthRateLimitScheduleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetGateway /// <summary> /// By providing the ARN (Amazon Resource Name), this API returns the gateway. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetGateway service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetGateway service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetGateway">REST API Reference for GetGateway Operation</seealso> Task<GetGatewayResponse> GetGatewayAsync(GetGatewayRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetHypervisor /// <summary> /// This action requests information about the specified hypervisor to which the gateway /// will connect. A hypervisor is hardware, software, or firmware that creates and manages /// virtual machines, and allocates resources to them. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetHypervisor service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetHypervisor service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetHypervisor">REST API Reference for GetHypervisor Operation</seealso> Task<GetHypervisorResponse> GetHypervisorAsync(GetHypervisorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetHypervisorPropertyMappings /// <summary> /// This action retrieves the property mappings for the specified hypervisor. A hypervisor /// property mapping displays the relationship of entity properties available from the /// on-premises hypervisor to the properties available in Amazon Web Services. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetHypervisorPropertyMappings service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetHypervisorPropertyMappings service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetHypervisorPropertyMappings">REST API Reference for GetHypervisorPropertyMappings Operation</seealso> Task<GetHypervisorPropertyMappingsResponse> GetHypervisorPropertyMappingsAsync(GetHypervisorPropertyMappingsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetVirtualMachine /// <summary> /// By providing the ARN (Amazon Resource Name), this API returns the virtual machine. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetVirtualMachine service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetVirtualMachine service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetVirtualMachine">REST API Reference for GetVirtualMachine Operation</seealso> Task<GetVirtualMachineResponse> GetVirtualMachineAsync(GetVirtualMachineRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ImportHypervisorConfiguration /// <summary> /// Connect to a hypervisor by importing its configuration. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ImportHypervisorConfiguration service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ImportHypervisorConfiguration service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.AccessDeniedException"> /// The operation cannot proceed because you have insufficient permissions. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ImportHypervisorConfiguration">REST API Reference for ImportHypervisorConfiguration Operation</seealso> Task<ImportHypervisorConfigurationResponse> ImportHypervisorConfigurationAsync(ImportHypervisorConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListGateways /// <summary> /// Lists backup gateways owned by an Amazon Web Services account in an Amazon Web Services /// Region. The returned list is ordered by gateway Amazon Resource Name (ARN). /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListGateways service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListGateways service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ListGateways">REST API Reference for ListGateways Operation</seealso> Task<ListGatewaysResponse> ListGatewaysAsync(ListGatewaysRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListHypervisors /// <summary> /// Lists your hypervisors. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListHypervisors service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListHypervisors service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ListHypervisors">REST API Reference for ListHypervisors Operation</seealso> Task<ListHypervisorsResponse> ListHypervisorsAsync(ListHypervisorsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListTagsForResource /// <summary> /// Lists the tags applied to the resource identified by its Amazon Resource Name (ARN). /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListTagsForResource service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> Task<ListTagsForResourceResponse> ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListVirtualMachines /// <summary> /// Lists your virtual machines. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListVirtualMachines service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListVirtualMachines service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ListVirtualMachines">REST API Reference for ListVirtualMachines Operation</seealso> Task<ListVirtualMachinesResponse> ListVirtualMachinesAsync(ListVirtualMachinesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region PutBandwidthRateLimitSchedule /// <summary> /// This action sets the bandwidth rate limit schedule for a specified gateway. By default, /// gateways do not have a bandwidth rate limit schedule, which means no bandwidth rate /// limiting is in effect. Use this to initiate a gateway's bandwidth rate limit schedule. /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutBandwidthRateLimitSchedule service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutBandwidthRateLimitSchedule service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/PutBandwidthRateLimitSchedule">REST API Reference for PutBandwidthRateLimitSchedule Operation</seealso> Task<PutBandwidthRateLimitScheduleResponse> PutBandwidthRateLimitScheduleAsync(PutBandwidthRateLimitScheduleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region PutHypervisorPropertyMappings /// <summary> /// This action sets the property mappings for the specified hypervisor. A hypervisor /// property mapping displays the relationship of entity properties available from the /// on-premises hypervisor to the properties available in Amazon Web Services. /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutHypervisorPropertyMappings service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutHypervisorPropertyMappings service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.AccessDeniedException"> /// The operation cannot proceed because you have insufficient permissions. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/PutHypervisorPropertyMappings">REST API Reference for PutHypervisorPropertyMappings Operation</seealso> Task<PutHypervisorPropertyMappingsResponse> PutHypervisorPropertyMappingsAsync(PutHypervisorPropertyMappingsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region PutMaintenanceStartTime /// <summary> /// Set the maintenance start time for a gateway. /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutMaintenanceStartTime service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutMaintenanceStartTime service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/PutMaintenanceStartTime">REST API Reference for PutMaintenanceStartTime Operation</seealso> Task<PutMaintenanceStartTimeResponse> PutMaintenanceStartTimeAsync(PutMaintenanceStartTimeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region StartVirtualMachinesMetadataSync /// <summary> /// This action sends a request to sync metadata across the specified virtual machines. /// </summary> /// <param name="request">Container for the necessary parameters to execute the StartVirtualMachinesMetadataSync service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the StartVirtualMachinesMetadataSync service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.AccessDeniedException"> /// The operation cannot proceed because you have insufficient permissions. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/StartVirtualMachinesMetadataSync">REST API Reference for StartVirtualMachinesMetadataSync Operation</seealso> Task<StartVirtualMachinesMetadataSyncResponse> StartVirtualMachinesMetadataSyncAsync(StartVirtualMachinesMetadataSyncRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region TagResource /// <summary> /// Tag the resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the TagResource service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/TagResource">REST API Reference for TagResource Operation</seealso> Task<TagResourceResponse> TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region TestHypervisorConfiguration /// <summary> /// Tests your hypervisor configuration to validate that backup gateway can connect with /// the hypervisor and its resources. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TestHypervisorConfiguration service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the TestHypervisorConfiguration service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/TestHypervisorConfiguration">REST API Reference for TestHypervisorConfiguration Operation</seealso> Task<TestHypervisorConfigurationResponse> TestHypervisorConfigurationAsync(TestHypervisorConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UntagResource /// <summary> /// Removes tags from the resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UntagResource service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/UntagResource">REST API Reference for UntagResource Operation</seealso> Task<UntagResourceResponse> UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateGatewayInformation /// <summary> /// Updates a gateway's name. Specify which gateway to update using the Amazon Resource /// Name (ARN) of the gateway in your request. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateGatewayInformation service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateGatewayInformation service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/UpdateGatewayInformation">REST API Reference for UpdateGatewayInformation Operation</seealso> Task<UpdateGatewayInformationResponse> UpdateGatewayInformationAsync(UpdateGatewayInformationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateGatewaySoftwareNow /// <summary> /// Updates the gateway virtual machine (VM) software. The request immediately triggers /// the software update. /// /// <note> /// <para> /// When you make this request, you get a <code>200 OK</code> success response immediately. /// However, it might take some time for the update to complete. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateGatewaySoftwareNow service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateGatewaySoftwareNow service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/UpdateGatewaySoftwareNow">REST API Reference for UpdateGatewaySoftwareNow Operation</seealso> Task<UpdateGatewaySoftwareNowResponse> UpdateGatewaySoftwareNowAsync(UpdateGatewaySoftwareNowRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateHypervisor /// <summary> /// Updates a hypervisor metadata, including its host, username, and password. Specify /// which hypervisor to update using the Amazon Resource Name (ARN) of the hypervisor /// in your request. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateHypervisor service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateHypervisor service method, as returned by BackupGateway.</returns> /// <exception cref="Amazon.BackupGateway.Model.AccessDeniedException"> /// The operation cannot proceed because you have insufficient permissions. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ConflictException"> /// The operation cannot proceed because it is not supported. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.InternalServerException"> /// The operation did not succeed because an internal error occurred. Try again later. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ResourceNotFoundException"> /// A resource that is required for the action wasn't found. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ThrottlingException"> /// TPS has been limited to protect against intentional or unintentional high request /// volumes. /// </exception> /// <exception cref="Amazon.BackupGateway.Model.ValidationException"> /// The operation did not succeed because a validation error occurred. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/UpdateHypervisor">REST API Reference for UpdateHypervisor Operation</seealso> Task<UpdateHypervisorResponse> UpdateHypervisorAsync(UpdateHypervisorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion } }
894
aws-sdk-net
aws
C#
using System; using System.Reflection; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("AWSSDK.BackupGateway")] #if BCL35 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (3.5) - AWS Backup Gateway. Initial release of AWS Backup gateway which enables you to centralize and automate protection of on-premises VMware and VMware Cloud on AWS workloads using AWS Backup.")] #elif BCL45 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (4.5) - AWS Backup Gateway. Initial release of AWS Backup gateway which enables you to centralize and automate protection of on-premises VMware and VMware Cloud on AWS workloads using AWS Backup.")] #elif NETSTANDARD20 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (NetStandard 2.0) - AWS Backup Gateway. Initial release of AWS Backup gateway which enables you to centralize and automate protection of on-premises VMware and VMware Cloud on AWS workloads using AWS Backup.")] #elif NETCOREAPP3_1 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (.NET Core 3.1) - AWS Backup Gateway. Initial release of AWS Backup gateway which enables you to centralize and automate protection of on-premises VMware and VMware Cloud on AWS workloads using AWS Backup.")] #else #error Unknown platform constant - unable to set correct AssemblyDescription #endif [assembly: AssemblyConfiguration("")] [assembly: AssemblyProduct("Amazon Web Services SDK for .NET")] [assembly: AssemblyCompany("Amazon.com, Inc")] [assembly: AssemblyCopyright("Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("3.3")] [assembly: AssemblyFileVersion("3.7.101.110")] [assembly: System.CLSCompliant(true)] #if BCL [assembly: System.Security.AllowPartiallyTrustedCallers] #endif
51
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backupstorage-2018-04-10.normal.json service model. */ using System; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Util.Internal; using Amazon.BackupStorage.Internal; namespace Amazon.BackupStorage { /// <summary> /// Configuration for accessing Amazon BackupStorage service /// </summary> [AWSSignerType("v4")] public partial class AmazonBackupStorageConfig : ClientConfig { private static readonly string UserAgentString = InternalSDKUtils.BuildUserAgentString("3.7.100.147"); private string _userAgent = UserAgentString; /// <summary> /// Default constructor /// </summary> public AmazonBackupStorageConfig() : base(new Amazon.Runtime.Internal.DefaultConfigurationProvider(AmazonBackupStorageDefaultConfiguration.GetAllConfigurations())) { this.AuthenticationServiceName = "backup-storage"; this.EndpointProvider = new AmazonBackupStorageEndpointProvider(); } /// <summary> /// The constant used to lookup in the region hash the endpoint. /// </summary> public override string RegionEndpointServiceName { get { return "backupstorage"; } } /// <summary> /// Gets the ServiceVersion property. /// </summary> public override string ServiceVersion { get { return "2018-04-10"; } } /// <summary> /// Gets the value of UserAgent property. /// </summary> public override string UserAgent { get { return _userAgent; } } } }
83
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backupstorage-2018-04-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Collections.ObjectModel; using Amazon.Runtime; namespace Amazon.BackupStorage { /// <summary> /// Configuration for accessing Amazon BackupStorage service /// </summary> public static class AmazonBackupStorageDefaultConfiguration { /// <summary> /// Collection of all <see cref="DefaultConfiguration"/>s supported by /// BackupStorage /// </summary> public static ReadOnlyCollection<IDefaultConfiguration> GetAllConfigurations() { return new ReadOnlyCollection<IDefaultConfiguration>(new List<IDefaultConfiguration> { Standard, InRegion, CrossRegion, Mobile, Auto, Legacy }); } /// <summary> /// <p>The STANDARD mode provides the latest recommended default values that should be safe to run in most scenarios</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p> /// </summary> public static IDefaultConfiguration Standard {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.Standard, RetryMode = RequestRetryMode.Standard, StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, // 0:00:03.1 ConnectTimeout = TimeSpan.FromMilliseconds(3100L), // 0:00:03.1 TlsNegotiationTimeout = TimeSpan.FromMilliseconds(3100L), TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; /// <summary> /// <p>The IN_REGION mode builds on the standard mode and includes optimization tailored for applications which call AWS services from within the same AWS region</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p> /// </summary> public static IDefaultConfiguration InRegion {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.InRegion, RetryMode = RequestRetryMode.Standard, StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, // 0:00:01.1 ConnectTimeout = TimeSpan.FromMilliseconds(1100L), // 0:00:01.1 TlsNegotiationTimeout = TimeSpan.FromMilliseconds(1100L), TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; /// <summary> /// <p>The CROSS_REGION mode builds on the standard mode and includes optimization tailored for applications which call AWS services in a different region</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p> /// </summary> public static IDefaultConfiguration CrossRegion {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.CrossRegion, RetryMode = RequestRetryMode.Standard, StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, // 0:00:03.1 ConnectTimeout = TimeSpan.FromMilliseconds(3100L), // 0:00:03.1 TlsNegotiationTimeout = TimeSpan.FromMilliseconds(3100L), TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; /// <summary> /// <p>The MOBILE mode builds on the standard mode and includes optimization tailored for mobile applications</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p> /// </summary> public static IDefaultConfiguration Mobile {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.Mobile, RetryMode = RequestRetryMode.Standard, StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, // 0:00:30 ConnectTimeout = TimeSpan.FromMilliseconds(30000L), // 0:00:30 TlsNegotiationTimeout = TimeSpan.FromMilliseconds(30000L), TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; /// <summary> /// <p>The AUTO mode is an experimental mode that builds on the standard mode. The SDK will attempt to discover the execution environment to determine the appropriate settings automatically.</p><p>Note that the auto detection is heuristics-based and does not guarantee 100% accuracy. STANDARD mode will be used if the execution environment cannot be determined. The auto detection might query <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html">EC2 Instance Metadata service</a>, which might introduce latency. Therefore we recommend choosing an explicit defaults_mode instead if startup latency is critical to your application</p> /// </summary> public static IDefaultConfiguration Auto {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.Auto, RetryMode = RequestRetryMode.Standard, StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, // 0:00:01.1 ConnectTimeout = TimeSpan.FromMilliseconds(1100L), // 0:00:01.1 TlsNegotiationTimeout = TimeSpan.FromMilliseconds(1100L), TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; /// <summary> /// <p>The LEGACY mode provides default settings that vary per SDK and were used prior to establishment of defaults_mode</p> /// </summary> public static IDefaultConfiguration Legacy {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.Legacy, RetryMode = RequestRetryMode.Legacy, StsRegionalEndpoints = StsRegionalEndpointsValue.Legacy, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Legacy, ConnectTimeout = null, TlsNegotiationTimeout = null, TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; } }
146
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backupstorage-2018-04-10.normal.json service model. */ using Amazon.Runtime; using Amazon.Runtime.Endpoints; namespace Amazon.BackupStorage.Endpoints { /// <summary> /// Contains parameters used for resolving BackupStorage endpoints /// Parameters can be sourced from client config and service operations /// Used by internal BackupStorageEndpointProvider and BackupStorageEndpointResolver /// Can be used by custom EndpointProvider, see ClientConfig.EndpointProvider /// </summary> public class BackupStorageEndpointParameters : EndpointParameters { /// <summary> /// BackupStorageEndpointParameters constructor /// </summary> public BackupStorageEndpointParameters() { UseDualStack = false; UseFIPS = false; } /// <summary> /// Region parameter /// </summary> public string Region { get { return (string)this["Region"]; } set { this["Region"] = value; } } /// <summary> /// UseDualStack parameter /// </summary> public bool? UseDualStack { get { return (bool?)this["UseDualStack"]; } set { this["UseDualStack"] = value; } } /// <summary> /// UseFIPS parameter /// </summary> public bool? UseFIPS { get { return (bool?)this["UseFIPS"]; } set { this["UseFIPS"] = value; } } /// <summary> /// Endpoint parameter /// </summary> public string Endpoint { get { return (string)this["Endpoint"]; } set { this["Endpoint"] = value; } } } }
78
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backupstorage-2018-04-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Net; using System.Text; using Amazon.Runtime; namespace Amazon.BackupStorage { ///<summary> /// Common exception for the BackupStorage service. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class AmazonBackupStorageException : AmazonServiceException { /// <summary> /// Construct instance of AmazonBackupStorageException /// </summary> /// <param name="message"></param> public AmazonBackupStorageException(string message) : base(message) { } /// <summary> /// Construct instance of AmazonBackupStorageException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public AmazonBackupStorageException(string message, Exception innerException) : base(message, innerException) { } /// <summary> /// Construct instance of AmazonBackupStorageException /// </summary> /// <param name="innerException"></param> public AmazonBackupStorageException(Exception innerException) : base(innerException.Message, innerException) { } /// <summary> /// Construct instance of AmazonBackupStorageException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public AmazonBackupStorageException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) { } /// <summary> /// Construct instance of AmazonBackupStorageException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public AmazonBackupStorageException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) { } #if !NETSTANDARD /// <summary> /// Constructs a new instance of the AmazonBackupStorageException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected AmazonBackupStorageException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } #endif } }
105
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backupstorage-2018-04-10.normal.json service model. */ using System; using Amazon.Runtime; namespace Amazon.BackupStorage { /// <summary> /// Constants used for properties of type DataChecksumAlgorithm. /// </summary> public class DataChecksumAlgorithm : ConstantClass { /// <summary> /// Constant SHA256 for DataChecksumAlgorithm /// </summary> public static readonly DataChecksumAlgorithm SHA256 = new DataChecksumAlgorithm("SHA256"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public DataChecksumAlgorithm(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static DataChecksumAlgorithm FindValue(string value) { return FindValue<DataChecksumAlgorithm>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator DataChecksumAlgorithm(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type SummaryChecksumAlgorithm. /// </summary> public class SummaryChecksumAlgorithm : ConstantClass { /// <summary> /// Constant SUMMARY for SummaryChecksumAlgorithm /// </summary> public static readonly SummaryChecksumAlgorithm SUMMARY = new SummaryChecksumAlgorithm("SUMMARY"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public SummaryChecksumAlgorithm(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static SummaryChecksumAlgorithm FindValue(string value) { return FindValue<SummaryChecksumAlgorithm>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator SummaryChecksumAlgorithm(string value) { return FindValue(value); } } }
118
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backupstorage-2018-04-10.normal.json service model. */ using System; using System.Collections.Generic; using Amazon.Runtime; using Amazon.Runtime.Endpoints; using static Amazon.Runtime.Internal.Endpoints.StandardLibrary.Fn; namespace Amazon.BackupStorage.Internal { /// <summary> /// Amazon BackupStorage endpoint provider. /// Resolves endpoint for given set of BackupStorageEndpointParameters. /// Can throw AmazonClientException if endpoint resolution is unsuccessful. /// </summary> public class AmazonBackupStorageEndpointProvider : IEndpointProvider { /// <summary> /// Resolve endpoint for BackupStorageEndpointParameters /// </summary> public Endpoint ResolveEndpoint(EndpointParameters parameters) { if (parameters == null) throw new ArgumentNullException("parameters"); if (parameters["UseDualStack"] == null) throw new AmazonClientException("UseDualStack parameter must be set for endpoint resolution"); if (parameters["UseFIPS"] == null) throw new AmazonClientException("UseFIPS parameter must be set for endpoint resolution"); var refs = new Dictionary<string, object>() { ["Region"] = parameters["Region"], ["UseDualStack"] = parameters["UseDualStack"], ["UseFIPS"] = parameters["UseFIPS"], ["Endpoint"] = parameters["Endpoint"], }; if ((refs["PartitionResult"] = Partition((string)refs["Region"])) != null) { if (IsSet(refs["Endpoint"]) && (refs["url"] = ParseURL((string)refs["Endpoint"])) != null) { if (Equals(refs["UseFIPS"], true)) { throw new AmazonClientException("Invalid Configuration: FIPS and custom endpoint are not supported"); } if (Equals(refs["UseDualStack"], true)) { throw new AmazonClientException("Invalid Configuration: Dualstack and custom endpoint are not supported"); } return new Endpoint((string)refs["Endpoint"], InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } if (Equals(refs["UseFIPS"], true) && Equals(refs["UseDualStack"], true)) { if (Equals(true, GetAttr(refs["PartitionResult"], "supportsFIPS")) && Equals(true, GetAttr(refs["PartitionResult"], "supportsDualStack"))) { return new Endpoint(Interpolate(@"https://backupstorage-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("FIPS and DualStack are enabled, but this partition does not support one or both"); } if (Equals(refs["UseFIPS"], true)) { if (Equals(true, GetAttr(refs["PartitionResult"], "supportsFIPS"))) { return new Endpoint(Interpolate(@"https://backupstorage-fips.{Region}.{PartitionResult#dnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("FIPS is enabled but this partition does not support FIPS"); } if (Equals(refs["UseDualStack"], true)) { if (Equals(true, GetAttr(refs["PartitionResult"], "supportsDualStack"))) { return new Endpoint(Interpolate(@"https://backupstorage.{Region}.{PartitionResult#dualStackDnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("DualStack is enabled but this partition does not support DualStack"); } return new Endpoint(Interpolate(@"https://backupstorage.{Region}.{PartitionResult#dnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("Cannot resolve endpoint"); } } }
99
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backupstorage-2018-04-10.normal.json service model. */ using System; using Amazon.BackupStorage.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Endpoints; using Amazon.Util; using Amazon.BackupStorage.Endpoints; #pragma warning disable 1591 namespace Amazon.BackupStorage.Internal { /// <summary> /// Amazon BackupStorage endpoint resolver. /// Custom PipelineHandler responsible for resolving endpoint and setting authentication parameters for BackupStorage service requests. /// Collects values for BackupStorageEndpointParameters and then tries to resolve endpoint by calling /// ResolveEndpoint method on GlobalEndpoints.Provider if present, otherwise uses BackupStorageEndpointProvider. /// Responsible for setting authentication and http headers provided by resolved endpoint. /// </summary> public class AmazonBackupStorageEndpointResolver : BaseEndpointResolver { protected override void ServiceSpecificHandler(IExecutionContext executionContext, EndpointParameters parameters) { InjectHostPrefix(executionContext.RequestContext); } protected override EndpointParameters MapEndpointsParameters(IRequestContext requestContext) { var config = (AmazonBackupStorageConfig)requestContext.ClientConfig; var result = new BackupStorageEndpointParameters(); result.Region = config.RegionEndpoint?.SystemName; result.UseDualStack = config.UseDualstackEndpoint; result.UseFIPS = config.UseFIPSEndpoint; result.Endpoint = config.ServiceURL; // The region needs to be determined from the ServiceURL if not set. var regionEndpoint = config.RegionEndpoint; if (regionEndpoint == null && !string.IsNullOrEmpty(config.ServiceURL)) { var regionName = AWSSDKUtils.DetermineRegion(config.ServiceURL); result.Region = RegionEndpoint.GetBySystemName(regionName).SystemName; } // To support legacy endpoint overridding rules in the endpoints.json if (result.Region == "us-east-1-regional") { result.Region = "us-east-1"; } // Use AlternateEndpoint region override if set if (requestContext.Request.AlternateEndpoint != null) { result.Region = requestContext.Request.AlternateEndpoint.SystemName; } // Assign staticContextParams and contextParam per operation return result; } } }
83
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backupstorage-2018-04-10.normal.json service model. */ using Amazon.Runtime.Internal; namespace Amazon.BackupStorage.Internal { /// <summary> /// Service metadata for Amazon BackupStorage service /// </summary> public partial class AmazonBackupStorageMetadata : IServiceMetadata { /// <summary> /// Gets the value of the Service Id. /// </summary> public string ServiceId { get { return "BackupStorage"; } } /// <summary> /// Gets the dictionary that gives mapping of renamed operations /// </summary> public System.Collections.Generic.IDictionary<string, string> OperationNameMapping { get { return new System.Collections.Generic.Dictionary<string, string>(0) { }; } } } }
55
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backupstorage-2018-04-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BackupStorage.Model { /// <summary> /// /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class AccessDeniedException : AmazonBackupStorageException { /// <summary> /// Constructs a new AccessDeniedException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public AccessDeniedException(string message) : base(message) {} /// <summary> /// Construct instance of AccessDeniedException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public AccessDeniedException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of AccessDeniedException /// </summary> /// <param name="innerException"></param> public AccessDeniedException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of AccessDeniedException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public AccessDeniedException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of AccessDeniedException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public AccessDeniedException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the AccessDeniedException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected AccessDeniedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backupstorage-2018-04-10.normal.json service model. */ using Amazon.Runtime; namespace Amazon.BackupStorage { /// <summary> /// Base class for BackupStorage operation requests. /// </summary> public partial class AmazonBackupStorageRequest : AmazonWebServiceRequest { } }
30
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backupstorage-2018-04-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BackupStorage.Model { /// <summary> /// Object /// </summary> public partial class BackupObject { private long? _chunksCount; private string _metadataString; private string _name; private string _objectChecksum; private SummaryChecksumAlgorithm _objectChecksumAlgorithm; private string _objectToken; /// <summary> /// Gets and sets the property ChunksCount. Number of chunks in object /// </summary> public long ChunksCount { get { return this._chunksCount.GetValueOrDefault(); } set { this._chunksCount = value; } } // Check to see if ChunksCount property is set internal bool IsSetChunksCount() { return this._chunksCount.HasValue; } /// <summary> /// Gets and sets the property MetadataString. Metadata string associated with the Object /// </summary> public string MetadataString { get { return this._metadataString; } set { this._metadataString = value; } } // Check to see if MetadataString property is set internal bool IsSetMetadataString() { return this._metadataString != null; } /// <summary> /// Gets and sets the property Name. Object name /// </summary> [AWSProperty(Required=true)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// <summary> /// Gets and sets the property ObjectChecksum. Object checksum /// </summary> [AWSProperty(Required=true)] public string ObjectChecksum { get { return this._objectChecksum; } set { this._objectChecksum = value; } } // Check to see if ObjectChecksum property is set internal bool IsSetObjectChecksum() { return this._objectChecksum != null; } /// <summary> /// Gets and sets the property ObjectChecksumAlgorithm. Checksum algorithm /// </summary> [AWSProperty(Required=true)] public SummaryChecksumAlgorithm ObjectChecksumAlgorithm { get { return this._objectChecksumAlgorithm; } set { this._objectChecksumAlgorithm = value; } } // Check to see if ObjectChecksumAlgorithm property is set internal bool IsSetObjectChecksumAlgorithm() { return this._objectChecksumAlgorithm != null; } /// <summary> /// Gets and sets the property ObjectToken. Object token /// </summary> [AWSProperty(Required=true)] public string ObjectToken { get { return this._objectToken; } set { this._objectToken = value; } } // Check to see if ObjectToken property is set internal bool IsSetObjectToken() { return this._objectToken != null; } } }
138
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backupstorage-2018-04-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BackupStorage.Model { /// <summary> /// Chunk /// </summary> public partial class Chunk { private string _checksum; private DataChecksumAlgorithm _checksumAlgorithm; private string _chunkToken; private long? _index; private long? _length; /// <summary> /// Gets and sets the property Checksum. Chunk checksum /// </summary> [AWSProperty(Required=true)] public string Checksum { get { return this._checksum; } set { this._checksum = value; } } // Check to see if Checksum property is set internal bool IsSetChecksum() { return this._checksum != null; } /// <summary> /// Gets and sets the property ChecksumAlgorithm. Checksum algorithm /// </summary> [AWSProperty(Required=true)] public DataChecksumAlgorithm ChecksumAlgorithm { get { return this._checksumAlgorithm; } set { this._checksumAlgorithm = value; } } // Check to see if ChecksumAlgorithm property is set internal bool IsSetChecksumAlgorithm() { return this._checksumAlgorithm != null; } /// <summary> /// Gets and sets the property ChunkToken. Chunk token /// </summary> [AWSProperty(Required=true)] public string ChunkToken { get { return this._chunkToken; } set { this._chunkToken = value; } } // Check to see if ChunkToken property is set internal bool IsSetChunkToken() { return this._chunkToken != null; } /// <summary> /// Gets and sets the property Index. Chunk index /// </summary> [AWSProperty(Required=true)] public long Index { get { return this._index.GetValueOrDefault(); } set { this._index = value; } } // Check to see if Index property is set internal bool IsSetIndex() { return this._index.HasValue; } /// <summary> /// Gets and sets the property Length. Chunk length /// </summary> [AWSProperty(Required=true)] public long Length { get { return this._length.GetValueOrDefault(); } set { this._length = value; } } // Check to see if Length property is set internal bool IsSetLength() { return this._length.HasValue; } } }
123
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backupstorage-2018-04-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BackupStorage.Model { /// <summary> /// Non-retryable exception. Attempted to create already existing object or chunk. This /// message contains a checksum of already presented data. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class DataAlreadyExistsException : AmazonBackupStorageException { private string _checksum; private string _checksumAlgorithm; /// <summary> /// Constructs a new DataAlreadyExistsException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public DataAlreadyExistsException(string message) : base(message) {} /// <summary> /// Construct instance of DataAlreadyExistsException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public DataAlreadyExistsException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of DataAlreadyExistsException /// </summary> /// <param name="innerException"></param> public DataAlreadyExistsException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of DataAlreadyExistsException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public DataAlreadyExistsException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of DataAlreadyExistsException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public DataAlreadyExistsException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the DataAlreadyExistsException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected DataAlreadyExistsException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { this.Checksum = (string)info.GetValue("Checksum", typeof(string)); this.ChecksumAlgorithm = (string)info.GetValue("ChecksumAlgorithm", typeof(string)); } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); info.AddValue("Checksum", this.Checksum); info.AddValue("ChecksumAlgorithm", this.ChecksumAlgorithm); } #endif /// <summary> /// Gets and sets the property Checksum. Data checksum used /// </summary> public string Checksum { get { return this._checksum; } set { this._checksum = value; } } // Check to see if Checksum property is set internal bool IsSetChecksum() { return this._checksum != null; } /// <summary> /// Gets and sets the property ChecksumAlgorithm. Checksum algorithm used /// </summary> public string ChecksumAlgorithm { get { return this._checksumAlgorithm; } set { this._checksumAlgorithm = value; } } // Check to see if ChecksumAlgorithm property is set internal bool IsSetChecksumAlgorithm() { return this._checksumAlgorithm != null; } } }
161
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backupstorage-2018-04-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BackupStorage.Model { /// <summary> /// Container for the parameters to the DeleteObject operation. /// Delete Object from the incremental base Backup. /// </summary> public partial class DeleteObjectRequest : AmazonBackupStorageRequest { private string _backupJobId; private string _objectName; /// <summary> /// Gets and sets the property BackupJobId. Backup job Id for the in-progress backup. /// </summary> [AWSProperty(Required=true)] public string BackupJobId { get { return this._backupJobId; } set { this._backupJobId = value; } } // Check to see if BackupJobId property is set internal bool IsSetBackupJobId() { return this._backupJobId != null; } /// <summary> /// Gets and sets the property ObjectName. The name of the Object. /// </summary> [AWSProperty(Required=true)] public string ObjectName { get { return this._objectName; } set { this._objectName = value; } } // Check to see if ObjectName property is set internal bool IsSetObjectName() { return this._objectName != null; } } }
73
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backupstorage-2018-04-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BackupStorage.Model { /// <summary> /// This is the response object from the DeleteObject operation. /// </summary> public partial class DeleteObjectResponse : AmazonWebServiceResponse { } }
38
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backupstorage-2018-04-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BackupStorage.Model { /// <summary> /// Container for the parameters to the GetChunk operation. /// Gets the specified object's chunk. /// </summary> public partial class GetChunkRequest : AmazonBackupStorageRequest { private string _chunkToken; private string _storageJobId; /// <summary> /// Gets and sets the property ChunkToken. Chunk token /// </summary> [AWSProperty(Required=true)] public string ChunkToken { get { return this._chunkToken; } set { this._chunkToken = value; } } // Check to see if ChunkToken property is set internal bool IsSetChunkToken() { return this._chunkToken != null; } /// <summary> /// Gets and sets the property StorageJobId. Storage job id /// </summary> [AWSProperty(Required=true)] public string StorageJobId { get { return this._storageJobId; } set { this._storageJobId = value; } } // Check to see if StorageJobId property is set internal bool IsSetStorageJobId() { return this._storageJobId != null; } } }
73
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backupstorage-2018-04-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BackupStorage.Model { /// <summary> /// This is the response object from the GetChunk operation. /// </summary> public partial class GetChunkResponse : AmazonWebServiceResponse, IDisposable { private string _checksum; private DataChecksumAlgorithm _checksumAlgorithm; private Stream _data; private long? _length; /// <summary> /// Gets and sets the property Checksum. Data checksum /// </summary> [AWSProperty(Required=true)] public string Checksum { get { return this._checksum; } set { this._checksum = value; } } // Check to see if Checksum property is set internal bool IsSetChecksum() { return this._checksum != null; } /// <summary> /// Gets and sets the property ChecksumAlgorithm. Checksum algorithm /// </summary> [AWSProperty(Required=true)] public DataChecksumAlgorithm ChecksumAlgorithm { get { return this._checksumAlgorithm; } set { this._checksumAlgorithm = value; } } // Check to see if ChecksumAlgorithm property is set internal bool IsSetChecksumAlgorithm() { return this._checksumAlgorithm != null; } /// <summary> /// Gets and sets the property Data. Chunk data /// </summary> [AWSProperty(Required=true)] public Stream Data { get { return this._data; } set { this._data = value; } } // Check to see if Data property is set internal bool IsSetData() { return this._data != null; } /// <summary> /// Gets and sets the property Length. Data length /// </summary> [AWSProperty(Required=true)] public long Length { get { return this._length.GetValueOrDefault(); } set { this._length = value; } } // Check to see if Length property is set internal bool IsSetLength() { return this._length.HasValue; } #region Dispose Pattern private bool _disposed; /// <summary> /// Disposes of all managed and unmanaged resources. /// </summary> public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } protected virtual void Dispose(bool disposing) { if (_disposed) return; if (disposing) { this._data?.Dispose(); this._data = null; } this._disposed = true; } #endregion } }
134
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backupstorage-2018-04-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BackupStorage.Model { /// <summary> /// Container for the parameters to the GetObjectMetadata operation. /// Get metadata associated with an Object. /// </summary> public partial class GetObjectMetadataRequest : AmazonBackupStorageRequest { private string _objectToken; private string _storageJobId; /// <summary> /// Gets and sets the property ObjectToken. Object token. /// </summary> [AWSProperty(Required=true)] public string ObjectToken { get { return this._objectToken; } set { this._objectToken = value; } } // Check to see if ObjectToken property is set internal bool IsSetObjectToken() { return this._objectToken != null; } /// <summary> /// Gets and sets the property StorageJobId. Backup job id for the in-progress backup. /// </summary> [AWSProperty(Required=true)] public string StorageJobId { get { return this._storageJobId; } set { this._storageJobId = value; } } // Check to see if StorageJobId property is set internal bool IsSetStorageJobId() { return this._storageJobId != null; } } }
73
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backupstorage-2018-04-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BackupStorage.Model { /// <summary> /// This is the response object from the GetObjectMetadata operation. /// </summary> public partial class GetObjectMetadataResponse : AmazonWebServiceResponse, IDisposable { private Stream _metadataBlob; private string _metadataBlobChecksum; private DataChecksumAlgorithm _metadataBlobChecksumAlgorithm; private long? _metadataBlobLength; private string _metadataString; /// <summary> /// Gets and sets the property MetadataBlob. Metadata blob. /// </summary> public Stream MetadataBlob { get { return this._metadataBlob; } set { this._metadataBlob = value; } } // Check to see if MetadataBlob property is set internal bool IsSetMetadataBlob() { return this._metadataBlob != null; } /// <summary> /// Gets and sets the property MetadataBlobChecksum. MetadataBlob checksum. /// </summary> public string MetadataBlobChecksum { get { return this._metadataBlobChecksum; } set { this._metadataBlobChecksum = value; } } // Check to see if MetadataBlobChecksum property is set internal bool IsSetMetadataBlobChecksum() { return this._metadataBlobChecksum != null; } /// <summary> /// Gets and sets the property MetadataBlobChecksumAlgorithm. Checksum algorithm. /// </summary> public DataChecksumAlgorithm MetadataBlobChecksumAlgorithm { get { return this._metadataBlobChecksumAlgorithm; } set { this._metadataBlobChecksumAlgorithm = value; } } // Check to see if MetadataBlobChecksumAlgorithm property is set internal bool IsSetMetadataBlobChecksumAlgorithm() { return this._metadataBlobChecksumAlgorithm != null; } /// <summary> /// Gets and sets the property MetadataBlobLength. The size of MetadataBlob. /// </summary> public long MetadataBlobLength { get { return this._metadataBlobLength.GetValueOrDefault(); } set { this._metadataBlobLength = value; } } // Check to see if MetadataBlobLength property is set internal bool IsSetMetadataBlobLength() { return this._metadataBlobLength.HasValue; } /// <summary> /// Gets and sets the property MetadataString. Metadata string. /// </summary> public string MetadataString { get { return this._metadataString; } set { this._metadataString = value; } } // Check to see if MetadataString property is set internal bool IsSetMetadataString() { return this._metadataString != null; } #region Dispose Pattern private bool _disposed; /// <summary> /// Disposes of all managed and unmanaged resources. /// </summary> public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } protected virtual void Dispose(bool disposing) { if (_disposed) return; if (disposing) { this._metadataBlob?.Dispose(); this._metadataBlob = null; } this._disposed = true; } #endregion } }
146
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backupstorage-2018-04-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BackupStorage.Model { /// <summary> /// Non-retryable exception, indicates client error (wrong argument passed to API). See /// exception message for details. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class IllegalArgumentException : AmazonBackupStorageException { /// <summary> /// Constructs a new IllegalArgumentException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public IllegalArgumentException(string message) : base(message) {} /// <summary> /// Construct instance of IllegalArgumentException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public IllegalArgumentException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of IllegalArgumentException /// </summary> /// <param name="innerException"></param> public IllegalArgumentException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of IllegalArgumentException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public IllegalArgumentException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of IllegalArgumentException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public IllegalArgumentException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the IllegalArgumentException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected IllegalArgumentException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
125
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backupstorage-2018-04-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BackupStorage.Model { /// <summary> /// Non-retryable exception. Indicates the KMS key usage is incorrect. See exception message /// for details. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class KMSInvalidKeyUsageException : AmazonBackupStorageException { /// <summary> /// Constructs a new KMSInvalidKeyUsageException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public KMSInvalidKeyUsageException(string message) : base(message) {} /// <summary> /// Construct instance of KMSInvalidKeyUsageException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public KMSInvalidKeyUsageException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of KMSInvalidKeyUsageException /// </summary> /// <param name="innerException"></param> public KMSInvalidKeyUsageException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of KMSInvalidKeyUsageException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public KMSInvalidKeyUsageException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of KMSInvalidKeyUsageException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public KMSInvalidKeyUsageException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the KMSInvalidKeyUsageException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected KMSInvalidKeyUsageException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
125
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backupstorage-2018-04-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BackupStorage.Model { /// <summary> /// Container for the parameters to the ListChunks operation. /// List chunks in a given Object /// </summary> public partial class ListChunksRequest : AmazonBackupStorageRequest { private int? _maxResults; private string _nextToken; private string _objectToken; private string _storageJobId; /// <summary> /// Gets and sets the property MaxResults. Maximum number of chunks /// </summary> [AWSProperty(Min=1, Max=100)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// <summary> /// Gets and sets the property NextToken. Pagination token /// </summary> public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } /// <summary> /// Gets and sets the property ObjectToken. Object token /// </summary> [AWSProperty(Required=true)] public string ObjectToken { get { return this._objectToken; } set { this._objectToken = value; } } // Check to see if ObjectToken property is set internal bool IsSetObjectToken() { return this._objectToken != null; } /// <summary> /// Gets and sets the property StorageJobId. Storage job id /// </summary> [AWSProperty(Required=true)] public string StorageJobId { get { return this._storageJobId; } set { this._storageJobId = value; } } // Check to see if StorageJobId property is set internal bool IsSetStorageJobId() { return this._storageJobId != null; } } }
106
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backupstorage-2018-04-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BackupStorage.Model { /// <summary> /// This is the response object from the ListChunks operation. /// </summary> public partial class ListChunksResponse : AmazonWebServiceResponse { private List<Chunk> _chunkList = new List<Chunk>(); private string _nextToken; /// <summary> /// Gets and sets the property ChunkList. List of chunks /// </summary> [AWSProperty(Required=true)] public List<Chunk> ChunkList { get { return this._chunkList; } set { this._chunkList = value; } } // Check to see if ChunkList property is set internal bool IsSetChunkList() { return this._chunkList != null && this._chunkList.Count > 0; } /// <summary> /// Gets and sets the property NextToken. Pagination token /// </summary> public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
71
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backupstorage-2018-04-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BackupStorage.Model { /// <summary> /// Container for the parameters to the ListObjects operation. /// List all Objects in a given Backup. /// </summary> public partial class ListObjectsRequest : AmazonBackupStorageRequest { private DateTime? _createdAfter; private DateTime? _createdBefore; private int? _maxResults; private string _nextToken; private string _startingObjectName; private string _startingObjectPrefix; private string _storageJobId; /// <summary> /// Gets and sets the property CreatedAfter. (Optional) Created after filter /// </summary> public DateTime CreatedAfter { get { return this._createdAfter.GetValueOrDefault(); } set { this._createdAfter = value; } } // Check to see if CreatedAfter property is set internal bool IsSetCreatedAfter() { return this._createdAfter.HasValue; } /// <summary> /// Gets and sets the property CreatedBefore. (Optional) Created before filter /// </summary> public DateTime CreatedBefore { get { return this._createdBefore.GetValueOrDefault(); } set { this._createdBefore = value; } } // Check to see if CreatedBefore property is set internal bool IsSetCreatedBefore() { return this._createdBefore.HasValue; } /// <summary> /// Gets and sets the property MaxResults. Maximum objects count /// </summary> [AWSProperty(Min=1, Max=100)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// <summary> /// Gets and sets the property NextToken. Pagination token /// </summary> public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } /// <summary> /// Gets and sets the property StartingObjectName. Optional, specifies the starting Object /// name to list from. Ignored if NextToken is not NULL /// </summary> public string StartingObjectName { get { return this._startingObjectName; } set { this._startingObjectName = value; } } // Check to see if StartingObjectName property is set internal bool IsSetStartingObjectName() { return this._startingObjectName != null; } /// <summary> /// Gets and sets the property StartingObjectPrefix. Optional, specifies the starting /// Object prefix to list from. Ignored if NextToken is not NULL /// </summary> public string StartingObjectPrefix { get { return this._startingObjectPrefix; } set { this._startingObjectPrefix = value; } } // Check to see if StartingObjectPrefix property is set internal bool IsSetStartingObjectPrefix() { return this._startingObjectPrefix != null; } /// <summary> /// Gets and sets the property StorageJobId. Storage job id /// </summary> [AWSProperty(Required=true)] public string StorageJobId { get { return this._storageJobId; } set { this._storageJobId = value; } } // Check to see if StorageJobId property is set internal bool IsSetStorageJobId() { return this._storageJobId != null; } } }
155
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backupstorage-2018-04-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BackupStorage.Model { /// <summary> /// This is the response object from the ListObjects operation. /// </summary> public partial class ListObjectsResponse : AmazonWebServiceResponse { private string _nextToken; private List<BackupObject> _objectList = new List<BackupObject>(); /// <summary> /// Gets and sets the property NextToken. Pagination token /// </summary> public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } /// <summary> /// Gets and sets the property ObjectList. Object list /// </summary> [AWSProperty(Required=true)] public List<BackupObject> ObjectList { get { return this._objectList; } set { this._objectList = value; } } // Check to see if ObjectList property is set internal bool IsSetObjectList() { return this._objectList != null && this._objectList.Count > 0; } } }
71
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backupstorage-2018-04-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; namespace Amazon.BackupStorage.Model { /// <summary> /// Container for the parameters to the NotifyObjectComplete operation. /// Complete upload /// </summary> public partial class NotifyObjectCompleteRequest : AmazonBackupStorageRequest { private string _backupJobId; private Stream _metadataBlob; private string _metadataBlobChecksum; private DataChecksumAlgorithm _metadataBlobChecksumAlgorithm; private long? _metadataBlobLength; private string _metadataString; private string _objectChecksum; private SummaryChecksumAlgorithm _objectChecksumAlgorithm; private string _uploadId; /// <summary> /// Gets and sets the property BackupJobId. Backup job Id for the in-progress backup /// </summary> [AWSProperty(Required=true)] public string BackupJobId { get { return this._backupJobId; } set { this._backupJobId = value; } } // Check to see if BackupJobId property is set internal bool IsSetBackupJobId() { return this._backupJobId != null; } /// <summary> /// Gets and sets the property MetadataBlob. Optional metadata associated with an Object. /// Maximum length is 4MB. /// </summary> public Stream MetadataBlob { get { return this._metadataBlob; } set { this._metadataBlob = value; } } // Check to see if MetadataBlob property is set internal bool IsSetMetadataBlob() { return this._metadataBlob != null; } /// <summary> /// Gets and sets the property MetadataBlobChecksum. Checksum of MetadataBlob. /// </summary> public string MetadataBlobChecksum { get { return this._metadataBlobChecksum; } set { this._metadataBlobChecksum = value; } } // Check to see if MetadataBlobChecksum property is set internal bool IsSetMetadataBlobChecksum() { return this._metadataBlobChecksum != null; } /// <summary> /// Gets and sets the property MetadataBlobChecksumAlgorithm. Checksum algorithm. /// </summary> public DataChecksumAlgorithm MetadataBlobChecksumAlgorithm { get { return this._metadataBlobChecksumAlgorithm; } set { this._metadataBlobChecksumAlgorithm = value; } } // Check to see if MetadataBlobChecksumAlgorithm property is set internal bool IsSetMetadataBlobChecksumAlgorithm() { return this._metadataBlobChecksumAlgorithm != null; } /// <summary> /// Gets and sets the property MetadataBlobLength. The size of MetadataBlob. /// </summary> public long MetadataBlobLength { get { return this._metadataBlobLength.GetValueOrDefault(); } set { this._metadataBlobLength = value; } } // Check to see if MetadataBlobLength property is set internal bool IsSetMetadataBlobLength() { return this._metadataBlobLength.HasValue; } /// <summary> /// Gets and sets the property MetadataString. Optional metadata associated with an Object. /// Maximum string length is 256 bytes. /// </summary> public string MetadataString { get { return this._metadataString; } set { this._metadataString = value; } } // Check to see if MetadataString property is set internal bool IsSetMetadataString() { return this._metadataString != null; } /// <summary> /// Gets and sets the property ObjectChecksum. Object checksum /// </summary> [AWSProperty(Required=true)] public string ObjectChecksum { get { return this._objectChecksum; } set { this._objectChecksum = value; } } // Check to see if ObjectChecksum property is set internal bool IsSetObjectChecksum() { return this._objectChecksum != null; } /// <summary> /// Gets and sets the property ObjectChecksumAlgorithm. Checksum algorithm /// </summary> [AWSProperty(Required=true)] public SummaryChecksumAlgorithm ObjectChecksumAlgorithm { get { return this._objectChecksumAlgorithm; } set { this._objectChecksumAlgorithm = value; } } // Check to see if ObjectChecksumAlgorithm property is set internal bool IsSetObjectChecksumAlgorithm() { return this._objectChecksumAlgorithm != null; } /// <summary> /// Gets and sets the property UploadId. Upload Id for the in-progress upload /// </summary> [AWSProperty(Required=true)] public string UploadId { get { return this._uploadId; } set { this._uploadId = value; } } // Check to see if UploadId property is set internal bool IsSetUploadId() { return this._uploadId != null; } /// <summary> /// Get the signer to use for this request. /// </summary> /// <returns>A signer for this request.</returns> override protected AbstractAWSSigner CreateSigner() { return new AWS4Signer(false); } } }
198
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backupstorage-2018-04-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BackupStorage.Model { /// <summary> /// This is the response object from the NotifyObjectComplete operation. /// </summary> public partial class NotifyObjectCompleteResponse : AmazonWebServiceResponse { private string _objectChecksum; private SummaryChecksumAlgorithm _objectChecksumAlgorithm; /// <summary> /// Gets and sets the property ObjectChecksum. Object checksum /// </summary> [AWSProperty(Required=true)] public string ObjectChecksum { get { return this._objectChecksum; } set { this._objectChecksum = value; } } // Check to see if ObjectChecksum property is set internal bool IsSetObjectChecksum() { return this._objectChecksum != null; } /// <summary> /// Gets and sets the property ObjectChecksumAlgorithm. Checksum algorithm /// </summary> [AWSProperty(Required=true)] public SummaryChecksumAlgorithm ObjectChecksumAlgorithm { get { return this._objectChecksumAlgorithm; } set { this._objectChecksumAlgorithm = value; } } // Check to see if ObjectChecksumAlgorithm property is set internal bool IsSetObjectChecksumAlgorithm() { return this._objectChecksumAlgorithm != null; } } }
72
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backupstorage-2018-04-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BackupStorage.Model { /// <summary> /// Retryalble exception. Indicated issues while reading an input stream due to the networking /// issues or connection drop on the client side. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class NotReadableInputStreamException : AmazonBackupStorageException { /// <summary> /// Constructs a new NotReadableInputStreamException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public NotReadableInputStreamException(string message) : base(message) {} /// <summary> /// Construct instance of NotReadableInputStreamException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public NotReadableInputStreamException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of NotReadableInputStreamException /// </summary> /// <param name="innerException"></param> public NotReadableInputStreamException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of NotReadableInputStreamException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public NotReadableInputStreamException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of NotReadableInputStreamException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public NotReadableInputStreamException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the NotReadableInputStreamException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected NotReadableInputStreamException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
125
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backupstorage-2018-04-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; namespace Amazon.BackupStorage.Model { /// <summary> /// Container for the parameters to the PutChunk operation. /// Upload chunk. /// </summary> public partial class PutChunkRequest : AmazonBackupStorageRequest { private string _backupJobId; private string _checksum; private DataChecksumAlgorithm _checksumAlgorithm; private long? _chunkIndex; private Stream _data; private long? _length; private string _uploadId; /// <summary> /// Gets and sets the property BackupJobId. Backup job Id for the in-progress backup. /// </summary> [AWSProperty(Required=true)] public string BackupJobId { get { return this._backupJobId; } set { this._backupJobId = value; } } // Check to see if BackupJobId property is set internal bool IsSetBackupJobId() { return this._backupJobId != null; } /// <summary> /// Gets and sets the property Checksum. Data checksum /// </summary> [AWSProperty(Required=true)] public string Checksum { get { return this._checksum; } set { this._checksum = value; } } // Check to see if Checksum property is set internal bool IsSetChecksum() { return this._checksum != null; } /// <summary> /// Gets and sets the property ChecksumAlgorithm. Checksum algorithm /// </summary> [AWSProperty(Required=true)] public DataChecksumAlgorithm ChecksumAlgorithm { get { return this._checksumAlgorithm; } set { this._checksumAlgorithm = value; } } // Check to see if ChecksumAlgorithm property is set internal bool IsSetChecksumAlgorithm() { return this._checksumAlgorithm != null; } /// <summary> /// Gets and sets the property ChunkIndex. Describes this chunk's position relative to /// the other chunks /// </summary> [AWSProperty(Required=true)] public long ChunkIndex { get { return this._chunkIndex.GetValueOrDefault(); } set { this._chunkIndex = value; } } // Check to see if ChunkIndex property is set internal bool IsSetChunkIndex() { return this._chunkIndex.HasValue; } /// <summary> /// Gets and sets the property Data. Data to be uploaded /// </summary> [AWSProperty(Required=true)] public Stream Data { get { return this._data; } set { this._data = value; } } // Check to see if Data property is set internal bool IsSetData() { return this._data != null; } /// <summary> /// Gets and sets the property Length. Data length /// </summary> [AWSProperty(Required=true)] public long Length { get { return this._length.GetValueOrDefault(); } set { this._length = value; } } // Check to see if Length property is set internal bool IsSetLength() { return this._length.HasValue; } /// <summary> /// Gets and sets the property UploadId. Upload Id for the in-progress upload. /// </summary> [AWSProperty(Required=true)] public string UploadId { get { return this._uploadId; } set { this._uploadId = value; } } // Check to see if UploadId property is set internal bool IsSetUploadId() { return this._uploadId != null; } /// <summary> /// Get the signer to use for this request. /// </summary> /// <returns>A signer for this request.</returns> override protected AbstractAWSSigner CreateSigner() { return new AWS4Signer(false); } } }
168
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backupstorage-2018-04-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BackupStorage.Model { /// <summary> /// This is the response object from the PutChunk operation. /// </summary> public partial class PutChunkResponse : AmazonWebServiceResponse { private string _chunkChecksum; private DataChecksumAlgorithm _chunkChecksumAlgorithm; /// <summary> /// Gets and sets the property ChunkChecksum. Chunk checksum /// </summary> [AWSProperty(Required=true)] public string ChunkChecksum { get { return this._chunkChecksum; } set { this._chunkChecksum = value; } } // Check to see if ChunkChecksum property is set internal bool IsSetChunkChecksum() { return this._chunkChecksum != null; } /// <summary> /// Gets and sets the property ChunkChecksumAlgorithm. Checksum algorithm /// </summary> [AWSProperty(Required=true)] public DataChecksumAlgorithm ChunkChecksumAlgorithm { get { return this._chunkChecksumAlgorithm; } set { this._chunkChecksumAlgorithm = value; } } // Check to see if ChunkChecksumAlgorithm property is set internal bool IsSetChunkChecksumAlgorithm() { return this._chunkChecksumAlgorithm != null; } } }
72
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backupstorage-2018-04-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; namespace Amazon.BackupStorage.Model { /// <summary> /// Container for the parameters to the PutObject operation. /// Upload object that can store object metadata String and data blob in single API call /// using inline chunk field. /// </summary> public partial class PutObjectRequest : AmazonBackupStorageRequest { private string _backupJobId; private Stream _inlineChunk; private string _inlineChunkChecksum; private string _inlineChunkChecksumAlgorithm; private long? _inlineChunkLength; private string _metadataString; private string _objectChecksum; private SummaryChecksumAlgorithm _objectChecksumAlgorithm; private string _objectName; private bool? _throwOnDuplicate; /// <summary> /// Gets and sets the property BackupJobId. Backup job Id for the in-progress backup. /// </summary> [AWSProperty(Required=true)] public string BackupJobId { get { return this._backupJobId; } set { this._backupJobId = value; } } // Check to see if BackupJobId property is set internal bool IsSetBackupJobId() { return this._backupJobId != null; } /// <summary> /// Gets and sets the property InlineChunk. Inline chunk data to be uploaded. /// </summary> public Stream InlineChunk { get { return this._inlineChunk; } set { this._inlineChunk = value; } } // Check to see if InlineChunk property is set internal bool IsSetInlineChunk() { return this._inlineChunk != null; } /// <summary> /// Gets and sets the property InlineChunkChecksum. Inline chunk checksum /// </summary> public string InlineChunkChecksum { get { return this._inlineChunkChecksum; } set { this._inlineChunkChecksum = value; } } // Check to see if InlineChunkChecksum property is set internal bool IsSetInlineChunkChecksum() { return this._inlineChunkChecksum != null; } /// <summary> /// Gets and sets the property InlineChunkChecksumAlgorithm. Inline chunk checksum algorithm /// </summary> public string InlineChunkChecksumAlgorithm { get { return this._inlineChunkChecksumAlgorithm; } set { this._inlineChunkChecksumAlgorithm = value; } } // Check to see if InlineChunkChecksumAlgorithm property is set internal bool IsSetInlineChunkChecksumAlgorithm() { return this._inlineChunkChecksumAlgorithm != null; } /// <summary> /// Gets and sets the property InlineChunkLength. Length of the inline chunk data. /// </summary> public long InlineChunkLength { get { return this._inlineChunkLength.GetValueOrDefault(); } set { this._inlineChunkLength = value; } } // Check to see if InlineChunkLength property is set internal bool IsSetInlineChunkLength() { return this._inlineChunkLength.HasValue; } /// <summary> /// Gets and sets the property MetadataString. Store user defined metadata like backup /// checksum, disk ids, restore metadata etc. /// </summary> public string MetadataString { get { return this._metadataString; } set { this._metadataString = value; } } // Check to see if MetadataString property is set internal bool IsSetMetadataString() { return this._metadataString != null; } /// <summary> /// Gets and sets the property ObjectChecksum. object checksum /// </summary> public string ObjectChecksum { get { return this._objectChecksum; } set { this._objectChecksum = value; } } // Check to see if ObjectChecksum property is set internal bool IsSetObjectChecksum() { return this._objectChecksum != null; } /// <summary> /// Gets and sets the property ObjectChecksumAlgorithm. object checksum algorithm /// </summary> public SummaryChecksumAlgorithm ObjectChecksumAlgorithm { get { return this._objectChecksumAlgorithm; } set { this._objectChecksumAlgorithm = value; } } // Check to see if ObjectChecksumAlgorithm property is set internal bool IsSetObjectChecksumAlgorithm() { return this._objectChecksumAlgorithm != null; } /// <summary> /// Gets and sets the property ObjectName. The name of the Object to be uploaded. /// </summary> [AWSProperty(Required=true)] public string ObjectName { get { return this._objectName; } set { this._objectName = value; } } // Check to see if ObjectName property is set internal bool IsSetObjectName() { return this._objectName != null; } /// <summary> /// Gets and sets the property ThrowOnDuplicate. Throw an exception if Object name is /// already exist. /// </summary> public bool ThrowOnDuplicate { get { return this._throwOnDuplicate.GetValueOrDefault(); } set { this._throwOnDuplicate = value; } } // Check to see if ThrowOnDuplicate property is set internal bool IsSetThrowOnDuplicate() { return this._throwOnDuplicate.HasValue; } /// <summary> /// Get the signer to use for this request. /// </summary> /// <returns>A signer for this request.</returns> override protected AbstractAWSSigner CreateSigner() { return new AWS4Signer(false); } } }
213
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backupstorage-2018-04-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BackupStorage.Model { /// <summary> /// This is the response object from the PutObject operation. /// </summary> public partial class PutObjectResponse : AmazonWebServiceResponse { private string _inlineChunkChecksum; private DataChecksumAlgorithm _inlineChunkChecksumAlgorithm; private string _objectChecksum; private SummaryChecksumAlgorithm _objectChecksumAlgorithm; /// <summary> /// Gets and sets the property InlineChunkChecksum. Inline chunk checksum /// </summary> [AWSProperty(Required=true)] public string InlineChunkChecksum { get { return this._inlineChunkChecksum; } set { this._inlineChunkChecksum = value; } } // Check to see if InlineChunkChecksum property is set internal bool IsSetInlineChunkChecksum() { return this._inlineChunkChecksum != null; } /// <summary> /// Gets and sets the property InlineChunkChecksumAlgorithm. Inline chunk checksum algorithm /// </summary> [AWSProperty(Required=true)] public DataChecksumAlgorithm InlineChunkChecksumAlgorithm { get { return this._inlineChunkChecksumAlgorithm; } set { this._inlineChunkChecksumAlgorithm = value; } } // Check to see if InlineChunkChecksumAlgorithm property is set internal bool IsSetInlineChunkChecksumAlgorithm() { return this._inlineChunkChecksumAlgorithm != null; } /// <summary> /// Gets and sets the property ObjectChecksum. object checksum /// </summary> [AWSProperty(Required=true)] public string ObjectChecksum { get { return this._objectChecksum; } set { this._objectChecksum = value; } } // Check to see if ObjectChecksum property is set internal bool IsSetObjectChecksum() { return this._objectChecksum != null; } /// <summary> /// Gets and sets the property ObjectChecksumAlgorithm. object checksum algorithm /// </summary> [AWSProperty(Required=true)] public SummaryChecksumAlgorithm ObjectChecksumAlgorithm { get { return this._objectChecksumAlgorithm; } set { this._objectChecksumAlgorithm = value; } } // Check to see if ObjectChecksumAlgorithm property is set internal bool IsSetObjectChecksumAlgorithm() { return this._objectChecksumAlgorithm != null; } } }
106
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backupstorage-2018-04-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BackupStorage.Model { /// <summary> /// Non-retryable exception. Attempted to make an operation on non-existing or expired /// resource. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ResourceNotFoundException : AmazonBackupStorageException { /// <summary> /// Constructs a new ResourceNotFoundException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ResourceNotFoundException(string message) : base(message) {} /// <summary> /// Construct instance of ResourceNotFoundException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ResourceNotFoundException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ResourceNotFoundException /// </summary> /// <param name="innerException"></param> public ResourceNotFoundException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ResourceNotFoundException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ResourceNotFoundException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ResourceNotFoundException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ResourceNotFoundException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the ResourceNotFoundException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected ResourceNotFoundException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
125
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backupstorage-2018-04-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BackupStorage.Model { /// <summary> /// Retryable exception. In general indicates internal failure that can be fixed by retry. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class RetryableException : AmazonBackupStorageException { /// <summary> /// Constructs a new RetryableException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public RetryableException(string message) : base(message) {} /// <summary> /// Construct instance of RetryableException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public RetryableException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of RetryableException /// </summary> /// <param name="innerException"></param> public RetryableException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of RetryableException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public RetryableException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of RetryableException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public RetryableException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the RetryableException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected RetryableException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backupstorage-2018-04-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BackupStorage.Model { /// <summary> /// Deprecated. To be removed from the model. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ServiceInternalException : AmazonBackupStorageException { /// <summary> /// Constructs a new ServiceInternalException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ServiceInternalException(string message) : base(message) {} /// <summary> /// Construct instance of ServiceInternalException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ServiceInternalException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ServiceInternalException /// </summary> /// <param name="innerException"></param> public ServiceInternalException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ServiceInternalException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ServiceInternalException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ServiceInternalException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ServiceInternalException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the ServiceInternalException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected ServiceInternalException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backupstorage-2018-04-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BackupStorage.Model { /// <summary> /// Retryable exception, indicates internal server error. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ServiceUnavailableException : AmazonBackupStorageException { /// <summary> /// Constructs a new ServiceUnavailableException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ServiceUnavailableException(string message) : base(message) {} /// <summary> /// Construct instance of ServiceUnavailableException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ServiceUnavailableException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ServiceUnavailableException /// </summary> /// <param name="innerException"></param> public ServiceUnavailableException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ServiceUnavailableException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ServiceUnavailableException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ServiceUnavailableException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ServiceUnavailableException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the ServiceUnavailableException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected ServiceUnavailableException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backupstorage-2018-04-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BackupStorage.Model { /// <summary> /// Container for the parameters to the StartObject operation. /// Start upload containing one or many chunks. /// </summary> public partial class StartObjectRequest : AmazonBackupStorageRequest { private string _backupJobId; private string _objectName; private bool? _throwOnDuplicate; /// <summary> /// Gets and sets the property BackupJobId. Backup job Id for the in-progress backup /// </summary> [AWSProperty(Required=true)] public string BackupJobId { get { return this._backupJobId; } set { this._backupJobId = value; } } // Check to see if BackupJobId property is set internal bool IsSetBackupJobId() { return this._backupJobId != null; } /// <summary> /// Gets and sets the property ObjectName. Name for the object. /// </summary> [AWSProperty(Required=true)] public string ObjectName { get { return this._objectName; } set { this._objectName = value; } } // Check to see if ObjectName property is set internal bool IsSetObjectName() { return this._objectName != null; } /// <summary> /// Gets and sets the property ThrowOnDuplicate. Throw an exception if Object name is /// already exist. /// </summary> public bool ThrowOnDuplicate { get { return this._throwOnDuplicate.GetValueOrDefault(); } set { this._throwOnDuplicate = value; } } // Check to see if ThrowOnDuplicate property is set internal bool IsSetThrowOnDuplicate() { return this._throwOnDuplicate.HasValue; } } }
90
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backupstorage-2018-04-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BackupStorage.Model { /// <summary> /// This is the response object from the StartObject operation. /// </summary> public partial class StartObjectResponse : AmazonWebServiceResponse { private string _uploadId; /// <summary> /// Gets and sets the property UploadId. Upload Id for a given upload. /// </summary> [AWSProperty(Required=true)] public string UploadId { get { return this._uploadId; } set { this._uploadId = value; } } // Check to see if UploadId property is set internal bool IsSetUploadId() { return this._uploadId != null; } } }
55
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backupstorage-2018-04-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.BackupStorage.Model { /// <summary> /// Increased rate over throttling limits. Can be retried with exponential backoff. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ThrottlingException : AmazonBackupStorageException { /// <summary> /// Constructs a new ThrottlingException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ThrottlingException(string message) : base(message) {} /// <summary> /// Construct instance of ThrottlingException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ThrottlingException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ThrottlingException /// </summary> /// <param name="innerException"></param> public ThrottlingException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ThrottlingException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ThrottlingException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ThrottlingException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ThrottlingException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the ThrottlingException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected ThrottlingException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backupstorage-2018-04-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.BackupStorage.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BackupStorage.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AccessDeniedException Object /// </summary> public class AccessDeniedExceptionUnmarshaller : IErrorResponseUnmarshaller<AccessDeniedException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public AccessDeniedException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public AccessDeniedException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); AccessDeniedException unmarshalledObject = new AccessDeniedException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static AccessDeniedExceptionUnmarshaller _instance = new AccessDeniedExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AccessDeniedExceptionUnmarshaller Instance { get { return _instance; } } } }
85
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backupstorage-2018-04-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.BackupStorage.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BackupStorage.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for BackupObject Object /// </summary> public class BackupObjectUnmarshaller : IUnmarshaller<BackupObject, XmlUnmarshallerContext>, IUnmarshaller<BackupObject, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> BackupObject IUnmarshaller<BackupObject, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public BackupObject Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; BackupObject unmarshalledObject = new BackupObject(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("ChunksCount", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.ChunksCount = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("MetadataString", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.MetadataString = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ObjectChecksum", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ObjectChecksum = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ObjectChecksumAlgorithm", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ObjectChecksumAlgorithm = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ObjectToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ObjectToken = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static BackupObjectUnmarshaller _instance = new BackupObjectUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static BackupObjectUnmarshaller Instance { get { return _instance; } } } }
122
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backupstorage-2018-04-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.BackupStorage.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BackupStorage.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for Chunk Object /// </summary> public class ChunkUnmarshaller : IUnmarshaller<Chunk, XmlUnmarshallerContext>, IUnmarshaller<Chunk, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> Chunk IUnmarshaller<Chunk, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public Chunk Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; Chunk unmarshalledObject = new Chunk(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Checksum", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Checksum = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ChecksumAlgorithm", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ChecksumAlgorithm = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ChunkToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ChunkToken = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Index", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.Index = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Length", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.Length = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ChunkUnmarshaller _instance = new ChunkUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ChunkUnmarshaller Instance { get { return _instance; } } } }
116
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backupstorage-2018-04-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.BackupStorage.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BackupStorage.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DataAlreadyExistsException Object /// </summary> public class DataAlreadyExistsExceptionUnmarshaller : IErrorResponseUnmarshaller<DataAlreadyExistsException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public DataAlreadyExistsException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public DataAlreadyExistsException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); DataAlreadyExistsException unmarshalledObject = new DataAlreadyExistsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Checksum", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Checksum = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ChecksumAlgorithm", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ChecksumAlgorithm = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static DataAlreadyExistsExceptionUnmarshaller _instance = new DataAlreadyExistsExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static DataAlreadyExistsExceptionUnmarshaller Instance { get { return _instance; } } } }
97
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backupstorage-2018-04-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.BackupStorage.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BackupStorage.Model.Internal.MarshallTransformations { /// <summary> /// DeleteObject Request Marshaller /// </summary> public class DeleteObjectRequestMarshaller : IMarshaller<IRequest, DeleteObjectRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((DeleteObjectRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DeleteObjectRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.BackupStorage"); request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2018-04-10"; request.HttpMethod = "DELETE"; if (!publicRequest.IsSetBackupJobId()) throw new AmazonBackupStorageException("Request object does not have required field BackupJobId set"); request.AddPathResource("{jobId}", StringUtils.FromString(publicRequest.BackupJobId)); if (!publicRequest.IsSetObjectName()) throw new AmazonBackupStorageException("Request object does not have required field ObjectName set"); request.AddPathResource("{objectName}", StringUtils.FromString(publicRequest.ObjectName)); request.ResourcePath = "/backup-jobs/{jobId}/object/{objectName}"; return request; } private static DeleteObjectRequestMarshaller _instance = new DeleteObjectRequestMarshaller(); internal static DeleteObjectRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteObjectRequestMarshaller Instance { get { return _instance; } } } }
90
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backupstorage-2018-04-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.BackupStorage.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BackupStorage.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DeleteObject operation /// </summary> public class DeleteObjectResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DeleteObjectResponse response = new DeleteObjectResponse(); return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) { return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("IllegalArgumentException")) { return IllegalArgumentExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("RetryableException")) { return RetryableExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceInternalException")) { return ServiceInternalExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceUnavailableException")) { return ServiceUnavailableExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonBackupStorageException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DeleteObjectResponseUnmarshaller _instance = new DeleteObjectResponseUnmarshaller(); internal static DeleteObjectResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteObjectResponseUnmarshaller Instance { get { return _instance; } } } }
123
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backupstorage-2018-04-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.BackupStorage.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BackupStorage.Model.Internal.MarshallTransformations { /// <summary> /// GetChunk Request Marshaller /// </summary> public class GetChunkRequestMarshaller : IMarshaller<IRequest, GetChunkRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((GetChunkRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(GetChunkRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.BackupStorage"); request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2018-04-10"; request.HttpMethod = "GET"; if (!publicRequest.IsSetChunkToken()) throw new AmazonBackupStorageException("Request object does not have required field ChunkToken set"); request.AddPathResource("{chunkToken}", StringUtils.FromString(publicRequest.ChunkToken)); if (!publicRequest.IsSetStorageJobId()) throw new AmazonBackupStorageException("Request object does not have required field StorageJobId set"); request.AddPathResource("{jobId}", StringUtils.FromString(publicRequest.StorageJobId)); request.ResourcePath = "/restore-jobs/{jobId}/chunk/{chunkToken}"; return request; } private static GetChunkRequestMarshaller _instance = new GetChunkRequestMarshaller(); internal static GetChunkRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static GetChunkRequestMarshaller Instance { get { return _instance; } } } }
90
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backupstorage-2018-04-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.BackupStorage.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.BackupStorage.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for GetChunk operation /// </summary> public class GetChunkResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { GetChunkResponse response = new GetChunkResponse(); response.Data = context.Stream; if (context.ResponseData.IsHeaderPresent("x-amz-checksum")) response.Checksum = context.ResponseData.GetHeaderValue("x-amz-checksum"); if (context.ResponseData.IsHeaderPresent("x-amz-checksum-algorithm")) response.ChecksumAlgorithm = context.ResponseData.GetHeaderValue("x-amz-checksum-algorithm"); if (context.ResponseData.IsHeaderPresent("x-amz-data-length")) response.Length = long.Parse(context.ResponseData.GetHeaderValue("x-amz-data-length"), CultureInfo.InvariantCulture); return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) { return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("IllegalArgumentException")) { return IllegalArgumentExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("KMSInvalidKeyUsageException")) { return KMSInvalidKeyUsageExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("RetryableException")) { return RetryableExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceInternalException")) { return ServiceInternalExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonBackupStorageException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } /// <summary> /// Overriden to return true indicating the response contains streaming data. /// </summary> public override bool HasStreamingProperty { get { return true; } } private static GetChunkResponseUnmarshaller _instance = new GetChunkResponseUnmarshaller(); internal static GetChunkResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static GetChunkResponseUnmarshaller Instance { get { return _instance; } } } }
141