/*
* 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 iot-roborunner-2018-05-10.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.IoTRoboRunner.Model;
using Amazon.IoTRoboRunner.Model.Internal.MarshallTransformations;
using Amazon.IoTRoboRunner.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.IoTRoboRunner
{
///
/// Implementation for accessing IoTRoboRunner
///
/// An example service, deployed with the Octane Service creator, which will echo the
/// string
///
public partial class AmazonIoTRoboRunnerClient : AmazonServiceClient, IAmazonIoTRoboRunner
{
private static IServiceMetadata serviceMetadata = new AmazonIoTRoboRunnerMetadata();
#region Constructors
///
/// Constructs AmazonIoTRoboRunnerClient 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.
///
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
///
///
///
public AmazonIoTRoboRunnerClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonIoTRoboRunnerConfig()) { }
///
/// Constructs AmazonIoTRoboRunnerClient 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.
///
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
///
///
///
/// The region to connect.
public AmazonIoTRoboRunnerClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonIoTRoboRunnerConfig{RegionEndpoint = region}) { }
///
/// Constructs AmazonIoTRoboRunnerClient 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.
///
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
///
///
///
/// The AmazonIoTRoboRunnerClient Configuration Object
public AmazonIoTRoboRunnerClient(AmazonIoTRoboRunnerConfig config)
: base(FallbackCredentialsFactory.GetCredentials(config), config){}
///
/// Constructs AmazonIoTRoboRunnerClient with AWS Credentials
///
/// AWS Credentials
public AmazonIoTRoboRunnerClient(AWSCredentials credentials)
: this(credentials, new AmazonIoTRoboRunnerConfig())
{
}
///
/// Constructs AmazonIoTRoboRunnerClient with AWS Credentials
///
/// AWS Credentials
/// The region to connect.
public AmazonIoTRoboRunnerClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonIoTRoboRunnerConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonIoTRoboRunnerClient with AWS Credentials and an
/// AmazonIoTRoboRunnerClient Configuration object.
///
/// AWS Credentials
/// The AmazonIoTRoboRunnerClient Configuration Object
public AmazonIoTRoboRunnerClient(AWSCredentials credentials, AmazonIoTRoboRunnerConfig clientConfig)
: base(credentials, clientConfig)
{
}
///
/// Constructs AmazonIoTRoboRunnerClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
public AmazonIoTRoboRunnerClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonIoTRoboRunnerConfig())
{
}
///
/// Constructs AmazonIoTRoboRunnerClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The region to connect.
public AmazonIoTRoboRunnerClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonIoTRoboRunnerConfig() {RegionEndpoint=region})
{
}
///
/// Constructs AmazonIoTRoboRunnerClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonIoTRoboRunnerClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The AmazonIoTRoboRunnerClient Configuration Object
public AmazonIoTRoboRunnerClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonIoTRoboRunnerConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
///
/// Constructs AmazonIoTRoboRunnerClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
public AmazonIoTRoboRunnerClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonIoTRoboRunnerConfig())
{
}
///
/// Constructs AmazonIoTRoboRunnerClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
/// The region to connect.
public AmazonIoTRoboRunnerClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonIoTRoboRunnerConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonIoTRoboRunnerClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonIoTRoboRunnerClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
/// The AmazonIoTRoboRunnerClient Configuration Object
public AmazonIoTRoboRunnerClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonIoTRoboRunnerConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
#endregion
#if AWS_ASYNC_ENUMERABLES_API
private IIoTRoboRunnerPaginatorFactory _paginators;
///
/// Paginators for the service
///
public IIoTRoboRunnerPaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new IoTRoboRunnerPaginatorFactory(this);
}
return this._paginators;
}
}
#endif
#region Overrides
///
/// Creates the signer for the service.
///
protected override AbstractAWSSigner CreateSigner()
{
return new AWS4Signer();
}
///
/// Customizes the runtime pipeline.
///
/// Runtime pipeline for the current client.
protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
{
pipeline.RemoveHandler();
pipeline.AddHandlerAfter(new AmazonIoTRoboRunnerEndpointResolver());
}
///
/// Capture metadata for the service.
///
protected override IServiceMetadata ServiceMetadata
{
get
{
return serviceMetadata;
}
}
#endregion
#region Dispose
///
/// Disposes the service client.
///
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
}
#endregion
#region CreateDestination
internal virtual CreateDestinationResponse CreateDestination(CreateDestinationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateDestinationRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateDestinationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Grants permission to create a destination
///
/// Container for the necessary parameters to execute the CreateDestination service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateDestination service method, as returned by IoTRoboRunner.
///
/// User does not have sufficient access to perform this action.
///
///
/// Exception thrown if a resource in a create request already exists.
///
///
/// Exception thrown if something goes wrong within the service.
///
///
/// Exception thrown if a resource referenced in the request doesn't exist.
///
///
/// Exception thrown if the user's AWS account has reached a service limit and the operation
/// cannot proceed.
///
///
/// Exception thrown if the api has been called too quickly be the client.
///
///
/// Exception thrown if an invalid parameter is provided to an API.
///
/// REST API Reference for CreateDestination Operation
public virtual Task CreateDestinationAsync(CreateDestinationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateDestinationRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateDestinationResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateSite
internal virtual CreateSiteResponse CreateSite(CreateSiteRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateSiteRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateSiteResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Grants permission to create a site
///
/// Container for the necessary parameters to execute the CreateSite service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateSite service method, as returned by IoTRoboRunner.
///
/// User does not have sufficient access to perform this action.
///
///
/// Exception thrown if a resource in a create request already exists.
///
///
/// Exception thrown if something goes wrong within the service.
///
///
/// Exception thrown if the user's AWS account has reached a service limit and the operation
/// cannot proceed.
///
///
/// Exception thrown if the api has been called too quickly be the client.
///
///
/// Exception thrown if an invalid parameter is provided to an API.
///
/// REST API Reference for CreateSite Operation
public virtual Task CreateSiteAsync(CreateSiteRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateSiteRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateSiteResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateWorker
internal virtual CreateWorkerResponse CreateWorker(CreateWorkerRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateWorkerRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateWorkerResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Grants permission to create a worker
///
/// Container for the necessary parameters to execute the CreateWorker service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateWorker service method, as returned by IoTRoboRunner.
///
/// User does not have sufficient access to perform this action.
///
///
/// Exception thrown if a resource in a create request already exists.
///
///
/// Exception thrown if something goes wrong within the service.
///
///
/// Exception thrown if a resource referenced in the request doesn't exist.
///
///
/// Exception thrown if the user's AWS account has reached a service limit and the operation
/// cannot proceed.
///
///
/// Exception thrown if the api has been called too quickly be the client.
///
///
/// Exception thrown if an invalid parameter is provided to an API.
///
/// REST API Reference for CreateWorker Operation
public virtual Task CreateWorkerAsync(CreateWorkerRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateWorkerRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateWorkerResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateWorkerFleet
internal virtual CreateWorkerFleetResponse CreateWorkerFleet(CreateWorkerFleetRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateWorkerFleetRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateWorkerFleetResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Grants permission to create a worker fleet
///
/// Container for the necessary parameters to execute the CreateWorkerFleet service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateWorkerFleet service method, as returned by IoTRoboRunner.
///
/// User does not have sufficient access to perform this action.
///
///
/// Exception thrown if a resource in a create request already exists.
///
///
/// Exception thrown if something goes wrong within the service.
///
///
/// Exception thrown if a resource referenced in the request doesn't exist.
///
///
/// Exception thrown if the user's AWS account has reached a service limit and the operation
/// cannot proceed.
///
///
/// Exception thrown if the api has been called too quickly be the client.
///
///
/// Exception thrown if an invalid parameter is provided to an API.
///
/// REST API Reference for CreateWorkerFleet Operation
public virtual Task CreateWorkerFleetAsync(CreateWorkerFleetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateWorkerFleetRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateWorkerFleetResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteDestination
internal virtual DeleteDestinationResponse DeleteDestination(DeleteDestinationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteDestinationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteDestinationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Grants permission to delete a destination
///
/// Container for the necessary parameters to execute the DeleteDestination service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteDestination service method, as returned by IoTRoboRunner.
///
/// User does not have sufficient access to perform this action.
///
///
/// Exception thrown if a resource in a create request already exists.
///
///
/// Exception thrown if something goes wrong within the service.
///
///
/// Exception thrown if a resource referenced in the request doesn't exist.
///
///
/// Exception thrown if the api has been called too quickly be the client.
///
///
/// Exception thrown if an invalid parameter is provided to an API.
///
/// REST API Reference for DeleteDestination Operation
public virtual Task DeleteDestinationAsync(DeleteDestinationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteDestinationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteDestinationResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteSite
internal virtual DeleteSiteResponse DeleteSite(DeleteSiteRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteSiteRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteSiteResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Grants permission to delete a site
///
/// Container for the necessary parameters to execute the DeleteSite service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteSite service method, as returned by IoTRoboRunner.
///
/// User does not have sufficient access to perform this action.
///
///
/// Exception thrown if a resource in a create request already exists.
///
///
/// Exception thrown if something goes wrong within the service.
///
///
/// Exception thrown if a resource referenced in the request doesn't exist.
///
///
/// Exception thrown if the api has been called too quickly be the client.
///
///
/// Exception thrown if an invalid parameter is provided to an API.
///
/// REST API Reference for DeleteSite Operation
public virtual Task DeleteSiteAsync(DeleteSiteRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteSiteRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteSiteResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteWorker
internal virtual DeleteWorkerResponse DeleteWorker(DeleteWorkerRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteWorkerRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteWorkerResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Grants permission to delete a worker
///
/// Container for the necessary parameters to execute the DeleteWorker service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteWorker service method, as returned by IoTRoboRunner.
///
/// User does not have sufficient access to perform this action.
///
///
/// Exception thrown if a resource in a create request already exists.
///
///
/// Exception thrown if something goes wrong within the service.
///
///
/// Exception thrown if a resource referenced in the request doesn't exist.
///
///
/// Exception thrown if the api has been called too quickly be the client.
///
///
/// Exception thrown if an invalid parameter is provided to an API.
///
/// REST API Reference for DeleteWorker Operation
public virtual Task DeleteWorkerAsync(DeleteWorkerRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteWorkerRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteWorkerResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteWorkerFleet
internal virtual DeleteWorkerFleetResponse DeleteWorkerFleet(DeleteWorkerFleetRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteWorkerFleetRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteWorkerFleetResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Grants permission to delete a worker fleet
///
/// Container for the necessary parameters to execute the DeleteWorkerFleet service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteWorkerFleet service method, as returned by IoTRoboRunner.
///
/// User does not have sufficient access to perform this action.
///
///
/// Exception thrown if a resource in a create request already exists.
///
///
/// Exception thrown if something goes wrong within the service.
///
///
/// Exception thrown if a resource referenced in the request doesn't exist.
///
///
/// Exception thrown if the api has been called too quickly be the client.
///
///
/// Exception thrown if an invalid parameter is provided to an API.
///
/// REST API Reference for DeleteWorkerFleet Operation
public virtual Task DeleteWorkerFleetAsync(DeleteWorkerFleetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteWorkerFleetRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteWorkerFleetResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetDestination
internal virtual GetDestinationResponse GetDestination(GetDestinationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetDestinationRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetDestinationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Grants permission to get a destination
///
/// Container for the necessary parameters to execute the GetDestination service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetDestination service method, as returned by IoTRoboRunner.
///
/// User does not have sufficient access to perform this action.
///
///
/// Exception thrown if something goes wrong within the service.
///
///
/// Exception thrown if a resource referenced in the request doesn't exist.
///
///
/// Exception thrown if the api has been called too quickly be the client.
///
///
/// Exception thrown if an invalid parameter is provided to an API.
///
/// REST API Reference for GetDestination Operation
public virtual Task GetDestinationAsync(GetDestinationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetDestinationRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetDestinationResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetSite
internal virtual GetSiteResponse GetSite(GetSiteRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetSiteRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetSiteResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Grants permission to get a site
///
/// Container for the necessary parameters to execute the GetSite service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetSite service method, as returned by IoTRoboRunner.
///
/// User does not have sufficient access to perform this action.
///
///
/// Exception thrown if something goes wrong within the service.
///
///
/// Exception thrown if a resource referenced in the request doesn't exist.
///
///
/// Exception thrown if the api has been called too quickly be the client.
///
///
/// Exception thrown if an invalid parameter is provided to an API.
///
/// REST API Reference for GetSite Operation
public virtual Task GetSiteAsync(GetSiteRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetSiteRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetSiteResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetWorker
internal virtual GetWorkerResponse GetWorker(GetWorkerRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetWorkerRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetWorkerResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Grants permission to get a worker
///
/// Container for the necessary parameters to execute the GetWorker service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetWorker service method, as returned by IoTRoboRunner.
///
/// User does not have sufficient access to perform this action.
///
///
/// Exception thrown if something goes wrong within the service.
///
///
/// Exception thrown if a resource referenced in the request doesn't exist.
///
///
/// Exception thrown if the api has been called too quickly be the client.
///
///
/// Exception thrown if an invalid parameter is provided to an API.
///
/// REST API Reference for GetWorker Operation
public virtual Task GetWorkerAsync(GetWorkerRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetWorkerRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetWorkerResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetWorkerFleet
internal virtual GetWorkerFleetResponse GetWorkerFleet(GetWorkerFleetRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetWorkerFleetRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetWorkerFleetResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Grants permission to get a worker fleet
///
/// Container for the necessary parameters to execute the GetWorkerFleet service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetWorkerFleet service method, as returned by IoTRoboRunner.
///
/// User does not have sufficient access to perform this action.
///
///
/// Exception thrown if something goes wrong within the service.
///
///
/// Exception thrown if a resource referenced in the request doesn't exist.
///
///
/// Exception thrown if the api has been called too quickly be the client.
///
///
/// Exception thrown if an invalid parameter is provided to an API.
///
/// REST API Reference for GetWorkerFleet Operation
public virtual Task GetWorkerFleetAsync(GetWorkerFleetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetWorkerFleetRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetWorkerFleetResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListDestinations
internal virtual ListDestinationsResponse ListDestinations(ListDestinationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListDestinationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListDestinationsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Grants permission to list destinations
///
/// Container for the necessary parameters to execute the ListDestinations service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListDestinations service method, as returned by IoTRoboRunner.
///
/// User does not have sufficient access to perform this action.
///
///
/// Exception thrown if something goes wrong within the service.
///
///
/// Exception thrown if a resource referenced in the request doesn't exist.
///
///
/// Exception thrown if the api has been called too quickly be the client.
///
///
/// Exception thrown if an invalid parameter is provided to an API.
///
/// REST API Reference for ListDestinations Operation
public virtual Task ListDestinationsAsync(ListDestinationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListDestinationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListDestinationsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListSites
internal virtual ListSitesResponse ListSites(ListSitesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListSitesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListSitesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Grants permission to list sites
///
/// Container for the necessary parameters to execute the ListSites service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListSites service method, as returned by IoTRoboRunner.
///
/// User does not have sufficient access to perform this action.
///
///
/// Exception thrown if something goes wrong within the service.
///
///
/// Exception thrown if the api has been called too quickly be the client.
///
///
/// Exception thrown if an invalid parameter is provided to an API.
///
/// REST API Reference for ListSites Operation
public virtual Task ListSitesAsync(ListSitesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListSitesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListSitesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListWorkerFleets
internal virtual ListWorkerFleetsResponse ListWorkerFleets(ListWorkerFleetsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListWorkerFleetsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListWorkerFleetsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Grants permission to list worker fleets
///
/// Container for the necessary parameters to execute the ListWorkerFleets service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListWorkerFleets service method, as returned by IoTRoboRunner.
///
/// User does not have sufficient access to perform this action.
///
///
/// Exception thrown if something goes wrong within the service.
///
///
/// Exception thrown if a resource referenced in the request doesn't exist.
///
///
/// Exception thrown if the api has been called too quickly be the client.
///
///
/// Exception thrown if an invalid parameter is provided to an API.
///
/// REST API Reference for ListWorkerFleets Operation
public virtual Task ListWorkerFleetsAsync(ListWorkerFleetsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListWorkerFleetsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListWorkerFleetsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListWorkers
internal virtual ListWorkersResponse ListWorkers(ListWorkersRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListWorkersRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListWorkersResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Grants permission to list workers
///
/// Container for the necessary parameters to execute the ListWorkers service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListWorkers service method, as returned by IoTRoboRunner.
///
/// User does not have sufficient access to perform this action.
///
///
/// Exception thrown if something goes wrong within the service.
///
///
/// Exception thrown if a resource referenced in the request doesn't exist.
///
///
/// Exception thrown if the api has been called too quickly be the client.
///
///
/// Exception thrown if an invalid parameter is provided to an API.
///
/// REST API Reference for ListWorkers Operation
public virtual Task ListWorkersAsync(ListWorkersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListWorkersRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListWorkersResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UpdateDestination
internal virtual UpdateDestinationResponse UpdateDestination(UpdateDestinationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateDestinationRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateDestinationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Grants permission to update a destination
///
/// Container for the necessary parameters to execute the UpdateDestination service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateDestination service method, as returned by IoTRoboRunner.
///
/// User does not have sufficient access to perform this action.
///
///
/// Exception thrown if something goes wrong within the service.
///
///
/// Exception thrown if a resource referenced in the request doesn't exist.
///
///
/// Exception thrown if the api has been called too quickly be the client.
///
///
/// Exception thrown if an invalid parameter is provided to an API.
///
/// REST API Reference for UpdateDestination Operation
public virtual Task UpdateDestinationAsync(UpdateDestinationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateDestinationRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateDestinationResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UpdateSite
internal virtual UpdateSiteResponse UpdateSite(UpdateSiteRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateSiteRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateSiteResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Grants permission to update a site
///
/// Container for the necessary parameters to execute the UpdateSite service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateSite service method, as returned by IoTRoboRunner.
///
/// User does not have sufficient access to perform this action.
///
///
/// Exception thrown if something goes wrong within the service.
///
///
/// Exception thrown if a resource referenced in the request doesn't exist.
///
///
/// Exception thrown if the api has been called too quickly be the client.
///
///
/// Exception thrown if an invalid parameter is provided to an API.
///
/// REST API Reference for UpdateSite Operation
public virtual Task UpdateSiteAsync(UpdateSiteRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateSiteRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateSiteResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UpdateWorker
internal virtual UpdateWorkerResponse UpdateWorker(UpdateWorkerRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateWorkerRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateWorkerResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Grants permission to update a worker
///
/// Container for the necessary parameters to execute the UpdateWorker service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateWorker service method, as returned by IoTRoboRunner.
///
/// User does not have sufficient access to perform this action.
///
///
/// Exception thrown if something goes wrong within the service.
///
///
/// Exception thrown if a resource referenced in the request doesn't exist.
///
///
/// Exception thrown if the api has been called too quickly be the client.
///
///
/// Exception thrown if an invalid parameter is provided to an API.
///
/// REST API Reference for UpdateWorker Operation
public virtual Task UpdateWorkerAsync(UpdateWorkerRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateWorkerRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateWorkerResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UpdateWorkerFleet
internal virtual UpdateWorkerFleetResponse UpdateWorkerFleet(UpdateWorkerFleetRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateWorkerFleetRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateWorkerFleetResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Grants permission to update a worker fleet
///
/// Container for the necessary parameters to execute the UpdateWorkerFleet service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateWorkerFleet service method, as returned by IoTRoboRunner.
///
/// User does not have sufficient access to perform this action.
///
///
/// Exception thrown if something goes wrong within the service.
///
///
/// Exception thrown if a resource referenced in the request doesn't exist.
///
///
/// Exception thrown if the api has been called too quickly be the client.
///
///
/// Exception thrown if an invalid parameter is provided to an API.
///
/// REST API Reference for UpdateWorkerFleet Operation
public virtual Task UpdateWorkerFleetAsync(UpdateWorkerFleetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateWorkerFleetRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateWorkerFleetResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
}
}