StartAvailabilityMonitorTestResponse
Namespace:
AWSSDK.StorageGateway
We found 10 examples in language CSharp for this search.
You will see 27 fragments of code.
Other methods
Other methods
Project:aws-sdk-net
File:StartAvailabilityMonitorTestResponseUnmarshaller.cs
Examples:3
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
StartAvailabilityMonitorTestResponse response = new StartAvailabilityMonitorTestResponse();
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("InternalServerError"))
{
return InternalServerErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidGatewayRequestException"))
{
return InvalidGatewayRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonStorageGatewayException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
internal static StartAvailabilityMonitorTestResponseUnmarshaller GetInstance()
{
return _instance;
}
Project:aws-sdk-net
File:StartAvailabilityMonitorTestResponse.cs
Examples:1
// Check to see if GatewayARN property is set
internal bool IsSetGatewayARN()
{
return this._gatewayARN != null;
}
Project:awssdks
File:StartAvailabilityMonitorTestResponse.cs
Examples:1
// Check to see if GatewayARN property is set
internal bool IsSetGatewayARN()
{
return this._gatewayARN != null;
}
Project:aws-sdk-net-xamarin
File:StartAvailabilityMonitorTestResponse.cs
Examples:1
// Check to see if GatewayARN property is set
internal bool IsSetGatewayARN()
{
return this._gatewayARN != null;
}
Project:aws-sdk-net
File:StartAvailabilityMonitorTestResponse.cs
Examples:1
// Check to see if GatewayARN property is set
internal bool IsSetGatewayARN()
{
return this._gatewayARN != null;
}
Project:myawskendra
File:StartAvailabilityMonitorTestResponse.cs
Examples:1
// Check to see if GatewayARN property is set
internal bool IsSetGatewayARN()
{
return this._gatewayARN != null;
}
Project:aws-sdk-net
File:StartAvailabilityMonitorTestResponse.cs
Examples:1
// Check to see if GatewayARN property is set
internal bool IsSetGatewayARN()
{
return this._gatewayARN != null;
}
Project:myawskendra
File:AmazonStorageGatewayClient.cs
Examples:6
#endregion
#region Overrides
/// <summary>
/// Creates the signer for the service.
/// </summary>
protected override AbstractAWSSigner CreateSigner()
{
return new AWS4Signer();
}
#endregion
#region Dispose
/// <summary>
/// Disposes the service client.
/// </summary>
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
}
#endregion
#region ActivateGateway
internal virtual ActivateGatewayResponse ActivateGateway(ActivateGatewayRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ActivateGatewayRequestMarshaller.Instance;
options.ResponseUnmarshaller = ActivateGatewayResponseUnmarshaller.Instance;
return Invoke<ActivateGatewayResponse>(request, options);
}
/// <summary>
/// Activates the gateway you previously deployed on your host. In the activation process,
/// you specify information such as the AWS Region that you want to use for storing snapshots
/// or tapes, the time zone for scheduled snapshots the gateway snapshot schedule window,
/// an activation key, and a name for your gateway. The activation process also associates
/// your gateway with your account; for more information, see <a>UpdateGatewayInformation</a>.
///
/// <note>
/// <para>
/// You must turn on the gateway VM before you can activate your gateway.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ActivateGateway 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 ActivateGateway service method, as returned by StorageGateway.</returns>
/// <exception cref="Amazon.StorageGateway.Model.InternalServerErrorException">
/// An internal server error has occurred during the request. For more information, see
/// the error and message fields.
/// </exception>
/// <exception cref="Amazon.StorageGateway.Model.InvalidGatewayRequestException">
/// An exception occurred because an invalid gateway request was issued to the service.
/// For more information, see the error and message fields.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ActivateGateway">REST API Reference for ActivateGateway Operation</seealso>
public virtual Task<ActivateGatewayResponse> ActivateGatewayAsync(ActivateGatewayRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ActivateGatewayRequestMarshaller.Instance;
options.ResponseUnmarshaller = ActivateGatewayResponseUnmarshaller.Instance;
return InvokeAsync<ActivateGatewayResponse>(request, options, cancellationToken);
}
#endregion
#region AddCache
internal virtual AddCacheResponse AddCache(AddCacheRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = AddCacheRequestMarshaller.Instance;
options.ResponseUnmarshaller = AddCacheResponseUnmarshaller.Instance;
return Invoke<AddCacheResponse>(request, options);
}
/// <summary>
/// Configures one or more gateway local disks as cache for a gateway. This operation
/// is only supported in the cached volume, tape and file gateway type (see <a href="https://docs.aws.amazon.com/storagegateway/latest/userguide/StorageGatewayConcepts.html">Storage
/// Gateway Concepts</a>).
///
///
/// <para>
/// In the request, you specify the gateway Amazon Resource Name (ARN) to which you want
/// to add cache, and one or more disk IDs that you want to configure as cache.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the AddCache 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 AddCache service method, as returned by StorageGateway.</returns>
/// <exception cref="Amazon.StorageGateway.Model.InternalServerErrorException">
/// An internal server error has occurred during the request. For more information, see
/// the error and message fields.
/// </exception>
/// <exception cref="Amazon.StorageGateway.Model.InvalidGatewayRequestException">
/// An exception occurred because an invalid gateway request was issued to the service.
/// For more information, see the error and message fields.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/AddCache">REST API Reference for AddCache Operation</seealso>
public virtual Task<AddCacheResponse> AddCacheAsync(AddCacheRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = AddCacheRequestMarshaller.Instance;
options.ResponseUnmarshaller = AddCacheResponseUnmarshaller.Instance;
return InvokeAsync<AddCacheResponse>(request, options, cancellationToken);
}
Project:awssdks
File:AmazonStorageGatewayClient.cs
Examples:6
#endregion
#if AWS_ASYNC_ENUMERABLES_API
private IStorageGatewayPaginatorFactory _paginators;
/// <summary>
/// Paginators for the service
/// </summary>
public IStorageGatewayPaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new StorageGatewayPaginatorFactory(this);
}
return this._paginators;
}
}
#endif
#region Overrides
/// <summary>
/// Creates the signer for the service.
/// </summary>
protected override AbstractAWSSigner CreateSigner()
{
return new AWS4Signer();
}
#endregion
#region Dispose
/// <summary>
/// Disposes the service client.
/// </summary>
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
}
#endregion
#region ActivateGateway
internal virtual ActivateGatewayResponse ActivateGateway(ActivateGatewayRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ActivateGatewayRequestMarshaller.Instance;
options.ResponseUnmarshaller = ActivateGatewayResponseUnmarshaller.Instance;
return Invoke<ActivateGatewayResponse>(request, options);
}
/// <summary>
/// Activates the gateway you previously deployed on your host. In the activation process,
/// you specify information such as the AWS Region that you want to use for storing snapshots
/// or tapes, the time zone for scheduled snapshots the gateway snapshot schedule window,
/// an activation key, and a name for your gateway. The activation process also associates
/// your gateway with your account. For more information, see <a>UpdateGatewayInformation</a>.
///
/// <note>
/// <para>
/// You must turn on the gateway VM before you can activate your gateway.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ActivateGateway 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 ActivateGateway service method, as returned by StorageGateway.</returns>
/// <exception cref="Amazon.StorageGateway.Model.InternalServerErrorException">
/// An internal server error has occurred during the request. For more information, see
/// the error and message fields.
/// </exception>
/// <exception cref="Amazon.StorageGateway.Model.InvalidGatewayRequestException">
/// An exception occurred because an invalid gateway request was issued to the service.
/// For more information, see the error and message fields.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ActivateGateway">REST API Reference for ActivateGateway Operation</seealso>
public virtual Task<ActivateGatewayResponse> ActivateGatewayAsync(ActivateGatewayRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ActivateGatewayRequestMarshaller.Instance;
options.ResponseUnmarshaller = ActivateGatewayResponseUnmarshaller.Instance;
return InvokeAsync<ActivateGatewayResponse>(request, options, cancellationToken);
}
#endregion
#region AddCache
internal virtual AddCacheResponse AddCache(AddCacheRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = AddCacheRequestMarshaller.Instance;
options.ResponseUnmarshaller = AddCacheResponseUnmarshaller.Instance;
return Invoke<AddCacheResponse>(request, options);
}
/// <summary>
/// Configures one or more gateway local disks as cache for a gateway. This operation
/// is only supported in the cached volume, tape, and file gateway type (see <a href="https://docs.aws.amazon.com/storagegateway/latest/userguide/StorageGatewayConcepts.html">How
/// AWS Storage Gateway works (architecture)</a>.
///
///
/// <para>
/// In the request, you specify the gateway Amazon Resource Name (ARN) to which you want
/// to add cache, and one or more disk IDs that you want to configure as cache.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the AddCache 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 AddCache service method, as returned by StorageGateway.</returns>
/// <exception cref="Amazon.StorageGateway.Model.InternalServerErrorException">
/// An internal server error has occurred during the request. For more information, see
/// the error and message fields.
/// </exception>
/// <exception cref="Amazon.StorageGateway.Model.InvalidGatewayRequestException">
/// An exception occurred because an invalid gateway request was issued to the service.
/// For more information, see the error and message fields.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/AddCache">REST API Reference for AddCache Operation</seealso>
public virtual Task<AddCacheResponse> AddCacheAsync(AddCacheRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = AddCacheRequestMarshaller.Instance;
options.ResponseUnmarshaller = AddCacheResponseUnmarshaller.Instance;
return InvokeAsync<AddCacheResponse>(request, options, cancellationToken);
}
Project:aws-sdk-net-xamarin
File:AmazonStorageGatewayClient.cs
Examples:6
#endregion
#if AWS_ASYNC_ENUMERABLES_API
private IStorageGatewayPaginatorFactory _paginators;
/// <summary>
/// Paginators for the service
/// </summary>
public IStorageGatewayPaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new StorageGatewayPaginatorFactory(this);
}
return this._paginators;
}
}
#endif
#region Overrides
/// <summary>
/// Creates the signer for the service.
/// </summary>
protected override AbstractAWSSigner CreateSigner()
{
return new AWS4Signer();
}
#endregion
#region Dispose
/// <summary>
/// Disposes the service client.
/// </summary>
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
}
#endregion
#region ActivateGateway
internal virtual ActivateGatewayResponse ActivateGateway(ActivateGatewayRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ActivateGatewayRequestMarshaller.Instance;
options.ResponseUnmarshaller = ActivateGatewayResponseUnmarshaller.Instance;
return Invoke<ActivateGatewayResponse>(request, options);
}
/// <summary>
/// Activates the gateway you previously deployed on your host. In the activation process,
/// you specify information such as the AWS Region that you want to use for storing snapshots
/// or tapes, the time zone for scheduled snapshots the gateway snapshot schedule window,
/// an activation key, and a name for your gateway. The activation process also associates
/// your gateway with your account. For more information, see <a>UpdateGatewayInformation</a>.
///
/// <note>
/// <para>
/// You must turn on the gateway VM before you can activate your gateway.
/// </para>
/// </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ActivateGateway 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 ActivateGateway service method, as returned by StorageGateway.</returns>
/// <exception cref="Amazon.StorageGateway.Model.InternalServerErrorException">
/// An internal server error has occurred during the request. For more information, see
/// the error and message fields.
/// </exception>
/// <exception cref="Amazon.StorageGateway.Model.InvalidGatewayRequestException">
/// An exception occurred because an invalid gateway request was issued to the service.
/// For more information, see the error and message fields.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ActivateGateway">REST API Reference for ActivateGateway Operation</seealso>
public virtual Task<ActivateGatewayResponse> ActivateGatewayAsync(ActivateGatewayRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ActivateGatewayRequestMarshaller.Instance;
options.ResponseUnmarshaller = ActivateGatewayResponseUnmarshaller.Instance;
return InvokeAsync<ActivateGatewayResponse>(request, options, cancellationToken);
}
#endregion
#region AddCache
internal virtual AddCacheResponse AddCache(AddCacheRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = AddCacheRequestMarshaller.Instance;
options.ResponseUnmarshaller = AddCacheResponseUnmarshaller.Instance;
return Invoke<AddCacheResponse>(request, options);
}
/// <summary>
/// Configures one or more gateway local disks as cache for a gateway. This operation
/// is only supported in the cached volume, tape, and file gateway type (see <a href="https://docs.aws.amazon.com/storagegateway/latest/userguide/StorageGatewayConcepts.html">How
/// AWS Storage Gateway works (architecture)</a>.
///
///
/// <para>
/// In the request, you specify the gateway Amazon Resource Name (ARN) to which you want
/// to add cache, and one or more disk IDs that you want to configure as cache.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the AddCache 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 AddCache service method, as returned by StorageGateway.</returns>
/// <exception cref="Amazon.StorageGateway.Model.InternalServerErrorException">
/// An internal server error has occurred during the request. For more information, see
/// the error and message fields.
/// </exception>
/// <exception cref="Amazon.StorageGateway.Model.InvalidGatewayRequestException">
/// An exception occurred because an invalid gateway request was issued to the service.
/// For more information, see the error and message fields.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/AddCache">REST API Reference for AddCache Operation</seealso>
public virtual Task<AddCacheResponse> AddCacheAsync(AddCacheRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = AddCacheRequestMarshaller.Instance;
options.ResponseUnmarshaller = AddCacheResponseUnmarshaller.Instance;
return InvokeAsync<AddCacheResponse>(request, options, cancellationToken);
}
Amazon.StorageGateway.Model.StartAvailabilityMonitorTestResponse : AmazonWebServiceResponse
Constructors :
public StartAvailabilityMonitorTestResponse()Methods :
public String get_GatewayARN()public Void set_GatewayARN(String value = )
public ResponseMetadata get_ResponseMetadata()
public Void set_ResponseMetadata(ResponseMetadata value = )
public Int64 get_ContentLength()
public Void set_ContentLength(Int64 value = )
public HttpStatusCode get_HttpStatusCode()
public Void set_HttpStatusCode(HttpStatusCode value = )
public Type GetType()
public String ToString()
public Boolean Equals(Object obj = )
public Int32 GetHashCode()