/* * 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 iottwinmaker-2021-11-29.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.IoTTwinMaker.Model; using Amazon.IoTTwinMaker.Model.Internal.MarshallTransformations; using Amazon.IoTTwinMaker.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.IoTTwinMaker { /// /// Implementation for accessing IoTTwinMaker /// /// IoT TwinMaker is a service with which you can build operational digital twins of physical /// systems. IoT TwinMaker overlays measurements and analysis from real-world sensors, /// cameras, and enterprise applications so you can create data visualizations to monitor /// your physical factory, building, or industrial plant. You can use this real-world /// data to monitor operations and diagnose and repair errors. /// public partial class AmazonIoTTwinMakerClient : AmazonServiceClient, IAmazonIoTTwinMaker { private static IServiceMetadata serviceMetadata = new AmazonIoTTwinMakerMetadata(); #region Constructors /// /// Constructs AmazonIoTTwinMakerClient 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 AmazonIoTTwinMakerClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonIoTTwinMakerConfig()) { } /// /// Constructs AmazonIoTTwinMakerClient 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 AmazonIoTTwinMakerClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonIoTTwinMakerConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonIoTTwinMakerClient 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 AmazonIoTTwinMakerClient Configuration Object public AmazonIoTTwinMakerClient(AmazonIoTTwinMakerConfig config) : base(FallbackCredentialsFactory.GetCredentials(config), config){} /// /// Constructs AmazonIoTTwinMakerClient with AWS Credentials /// /// AWS Credentials public AmazonIoTTwinMakerClient(AWSCredentials credentials) : this(credentials, new AmazonIoTTwinMakerConfig()) { } /// /// Constructs AmazonIoTTwinMakerClient with AWS Credentials /// /// AWS Credentials /// The region to connect. public AmazonIoTTwinMakerClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonIoTTwinMakerConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonIoTTwinMakerClient with AWS Credentials and an /// AmazonIoTTwinMakerClient Configuration object. /// /// AWS Credentials /// The AmazonIoTTwinMakerClient Configuration Object public AmazonIoTTwinMakerClient(AWSCredentials credentials, AmazonIoTTwinMakerConfig clientConfig) : base(credentials, clientConfig) { } /// /// Constructs AmazonIoTTwinMakerClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key public AmazonIoTTwinMakerClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonIoTTwinMakerConfig()) { } /// /// Constructs AmazonIoTTwinMakerClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// The region to connect. public AmazonIoTTwinMakerClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonIoTTwinMakerConfig() {RegionEndpoint=region}) { } /// /// Constructs AmazonIoTTwinMakerClient with AWS Access Key ID, AWS Secret Key and an /// AmazonIoTTwinMakerClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// The AmazonIoTTwinMakerClient Configuration Object public AmazonIoTTwinMakerClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonIoTTwinMakerConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// /// Constructs AmazonIoTTwinMakerClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token public AmazonIoTTwinMakerClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonIoTTwinMakerConfig()) { } /// /// Constructs AmazonIoTTwinMakerClient 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 AmazonIoTTwinMakerClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonIoTTwinMakerConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonIoTTwinMakerClient with AWS Access Key ID, AWS Secret Key and an /// AmazonIoTTwinMakerClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The AmazonIoTTwinMakerClient Configuration Object public AmazonIoTTwinMakerClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonIoTTwinMakerConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #if AWS_ASYNC_ENUMERABLES_API private IIoTTwinMakerPaginatorFactory _paginators; /// /// Paginators for the service /// public IIoTTwinMakerPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new IoTTwinMakerPaginatorFactory(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 AmazonIoTTwinMakerEndpointResolver()); } /// /// 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 BatchPutPropertyValues internal virtual BatchPutPropertyValuesResponse BatchPutPropertyValues(BatchPutPropertyValuesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchPutPropertyValuesRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchPutPropertyValuesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Sets values for multiple time series properties. /// /// Container for the necessary parameters to execute the BatchPutPropertyValues service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the BatchPutPropertyValues service method, as returned by IoTTwinMaker. /// /// An unexpected error has occurred. /// /// /// The resource wasn't found. /// /// /// The rate exceeds the limit. /// /// /// Failed /// /// REST API Reference for BatchPutPropertyValues Operation public virtual Task BatchPutPropertyValuesAsync(BatchPutPropertyValuesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BatchPutPropertyValuesRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchPutPropertyValuesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateComponentType internal virtual CreateComponentTypeResponse CreateComponentType(CreateComponentTypeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateComponentTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateComponentTypeResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a component type. /// /// Container for the necessary parameters to execute the CreateComponentType service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateComponentType service method, as returned by IoTTwinMaker. /// /// Access is denied. /// /// /// A conflict occurred. /// /// /// An unexpected error has occurred. /// /// /// The service quota was exceeded. /// /// /// The rate exceeds the limit. /// /// /// Failed /// /// REST API Reference for CreateComponentType Operation public virtual Task CreateComponentTypeAsync(CreateComponentTypeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateComponentTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateComponentTypeResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateEntity internal virtual CreateEntityResponse CreateEntity(CreateEntityRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateEntityRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateEntityResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates an entity. /// /// Container for the necessary parameters to execute the CreateEntity service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateEntity service method, as returned by IoTTwinMaker. /// /// Access is denied. /// /// /// A conflict occurred. /// /// /// An unexpected error has occurred. /// /// /// The service quota was exceeded. /// /// /// The rate exceeds the limit. /// /// /// Failed /// /// REST API Reference for CreateEntity Operation public virtual Task CreateEntityAsync(CreateEntityRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateEntityRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateEntityResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateScene internal virtual CreateSceneResponse CreateScene(CreateSceneRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateSceneRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateSceneResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a scene. /// /// Container for the necessary parameters to execute the CreateScene service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateScene service method, as returned by IoTTwinMaker. /// /// Access is denied. /// /// /// A conflict occurred. /// /// /// An unexpected error has occurred. /// /// /// The service quota was exceeded. /// /// /// The rate exceeds the limit. /// /// /// Failed /// /// REST API Reference for CreateScene Operation public virtual Task CreateSceneAsync(CreateSceneRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateSceneRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateSceneResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateSyncJob internal virtual CreateSyncJobResponse CreateSyncJob(CreateSyncJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateSyncJobRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateSyncJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// This action creates a SyncJob. /// /// Container for the necessary parameters to execute the CreateSyncJob service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateSyncJob service method, as returned by IoTTwinMaker. /// /// Access is denied. /// /// /// A conflict occurred. /// /// /// An unexpected error has occurred. /// /// /// The service quota was exceeded. /// /// /// The rate exceeds the limit. /// /// /// Failed /// /// REST API Reference for CreateSyncJob Operation public virtual Task CreateSyncJobAsync(CreateSyncJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateSyncJobRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateSyncJobResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateWorkspace internal virtual CreateWorkspaceResponse CreateWorkspace(CreateWorkspaceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateWorkspaceRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateWorkspaceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a workplace. /// /// Container for the necessary parameters to execute the CreateWorkspace service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateWorkspace service method, as returned by IoTTwinMaker. /// /// Access is denied. /// /// /// A conflict occurred. /// /// /// An unexpected error has occurred. /// /// /// The service quota was exceeded. /// /// /// The rate exceeds the limit. /// /// /// Failed /// /// REST API Reference for CreateWorkspace Operation public virtual Task CreateWorkspaceAsync(CreateWorkspaceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateWorkspaceRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateWorkspaceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteComponentType internal virtual DeleteComponentTypeResponse DeleteComponentType(DeleteComponentTypeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteComponentTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteComponentTypeResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a component type. /// /// Container for the necessary parameters to execute the DeleteComponentType service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteComponentType service method, as returned by IoTTwinMaker. /// /// Access is denied. /// /// /// An unexpected error has occurred. /// /// /// The resource wasn't found. /// /// /// The rate exceeds the limit. /// /// /// Failed /// /// REST API Reference for DeleteComponentType Operation public virtual Task DeleteComponentTypeAsync(DeleteComponentTypeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteComponentTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteComponentTypeResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteEntity internal virtual DeleteEntityResponse DeleteEntity(DeleteEntityRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteEntityRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteEntityResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes an entity. /// /// Container for the necessary parameters to execute the DeleteEntity service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteEntity service method, as returned by IoTTwinMaker. /// /// An unexpected error has occurred. /// /// /// The resource wasn't found. /// /// /// The service quota was exceeded. /// /// /// The rate exceeds the limit. /// /// /// Failed /// /// REST API Reference for DeleteEntity Operation public virtual Task DeleteEntityAsync(DeleteEntityRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteEntityRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteEntityResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteScene internal virtual DeleteSceneResponse DeleteScene(DeleteSceneRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteSceneRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteSceneResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a scene. /// /// Container for the necessary parameters to execute the DeleteScene service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteScene service method, as returned by IoTTwinMaker. /// /// Access is denied. /// /// /// An unexpected error has occurred. /// /// /// The resource wasn't found. /// /// /// The rate exceeds the limit. /// /// /// Failed /// /// REST API Reference for DeleteScene Operation public virtual Task DeleteSceneAsync(DeleteSceneRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteSceneRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteSceneResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteSyncJob internal virtual DeleteSyncJobResponse DeleteSyncJob(DeleteSyncJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteSyncJobRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteSyncJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Delete the SyncJob. /// /// Container for the necessary parameters to execute the DeleteSyncJob service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteSyncJob service method, as returned by IoTTwinMaker. /// /// Access is denied. /// /// /// An unexpected error has occurred. /// /// /// The resource wasn't found. /// /// /// The service quota was exceeded. /// /// /// The rate exceeds the limit. /// /// /// Failed /// /// REST API Reference for DeleteSyncJob Operation public virtual Task DeleteSyncJobAsync(DeleteSyncJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteSyncJobRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteSyncJobResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteWorkspace internal virtual DeleteWorkspaceResponse DeleteWorkspace(DeleteWorkspaceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteWorkspaceRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteWorkspaceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a workspace. /// /// Container for the necessary parameters to execute the DeleteWorkspace service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteWorkspace service method, as returned by IoTTwinMaker. /// /// Access is denied. /// /// /// An unexpected error has occurred. /// /// /// The resource wasn't found. /// /// /// The rate exceeds the limit. /// /// /// Failed /// /// REST API Reference for DeleteWorkspace Operation public virtual Task DeleteWorkspaceAsync(DeleteWorkspaceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteWorkspaceRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteWorkspaceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ExecuteQuery internal virtual ExecuteQueryResponse ExecuteQuery(ExecuteQueryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ExecuteQueryRequestMarshaller.Instance; options.ResponseUnmarshaller = ExecuteQueryResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Run queries to access information from your knowledge graph of entities within individual /// workspaces. /// /// Container for the necessary parameters to execute the ExecuteQuery service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ExecuteQuery service method, as returned by IoTTwinMaker. /// /// Access is denied. /// /// /// An unexpected error has occurred. /// /// /// The query timeout exception. /// /// /// The service quota was exceeded. /// /// /// The rate exceeds the limit. /// /// /// Failed /// /// REST API Reference for ExecuteQuery Operation public virtual Task ExecuteQueryAsync(ExecuteQueryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ExecuteQueryRequestMarshaller.Instance; options.ResponseUnmarshaller = ExecuteQueryResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetComponentType internal virtual GetComponentTypeResponse GetComponentType(GetComponentTypeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetComponentTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = GetComponentTypeResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieves information about a component type. /// /// Container for the necessary parameters to execute the GetComponentType service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetComponentType service method, as returned by IoTTwinMaker. /// /// Access is denied. /// /// /// An unexpected error has occurred. /// /// /// The resource wasn't found. /// /// /// The rate exceeds the limit. /// /// /// Failed /// /// REST API Reference for GetComponentType Operation public virtual Task GetComponentTypeAsync(GetComponentTypeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetComponentTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = GetComponentTypeResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetEntity internal virtual GetEntityResponse GetEntity(GetEntityRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetEntityRequestMarshaller.Instance; options.ResponseUnmarshaller = GetEntityResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieves information about an entity. /// /// Container for the necessary parameters to execute the GetEntity service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetEntity service method, as returned by IoTTwinMaker. /// /// An unexpected error has occurred. /// /// /// The resource wasn't found. /// /// /// The service quota was exceeded. /// /// /// The rate exceeds the limit. /// /// /// Failed /// /// REST API Reference for GetEntity Operation public virtual Task GetEntityAsync(GetEntityRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetEntityRequestMarshaller.Instance; options.ResponseUnmarshaller = GetEntityResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetPricingPlan internal virtual GetPricingPlanResponse GetPricingPlan(GetPricingPlanRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetPricingPlanRequestMarshaller.Instance; options.ResponseUnmarshaller = GetPricingPlanResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets the pricing plan. /// /// Container for the necessary parameters to execute the GetPricingPlan service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetPricingPlan service method, as returned by IoTTwinMaker. /// /// Access is denied. /// /// /// An unexpected error has occurred. /// /// /// The rate exceeds the limit. /// /// /// Failed /// /// REST API Reference for GetPricingPlan Operation public virtual Task GetPricingPlanAsync(GetPricingPlanRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetPricingPlanRequestMarshaller.Instance; options.ResponseUnmarshaller = GetPricingPlanResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetPropertyValue internal virtual GetPropertyValueResponse GetPropertyValue(GetPropertyValueRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetPropertyValueRequestMarshaller.Instance; options.ResponseUnmarshaller = GetPropertyValueResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets the property values for a component, component type, entity, or workspace. /// /// /// /// You must specify a value for either componentName, componentTypeId, /// entityId, or workspaceId. /// /// /// Container for the necessary parameters to execute the GetPropertyValue service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetPropertyValue service method, as returned by IoTTwinMaker. /// /// Access is denied. /// /// /// The connector failed. /// /// /// The connector timed out. /// /// /// An unexpected error has occurred. /// /// /// The resource wasn't found. /// /// /// The rate exceeds the limit. /// /// /// Failed /// /// REST API Reference for GetPropertyValue Operation public virtual Task GetPropertyValueAsync(GetPropertyValueRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetPropertyValueRequestMarshaller.Instance; options.ResponseUnmarshaller = GetPropertyValueResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetPropertyValueHistory internal virtual GetPropertyValueHistoryResponse GetPropertyValueHistory(GetPropertyValueHistoryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetPropertyValueHistoryRequestMarshaller.Instance; options.ResponseUnmarshaller = GetPropertyValueHistoryResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieves information about the history of a time series property value for a component, /// component type, entity, or workspace. /// /// /// /// You must specify a value for workspaceId. For entity-specific queries, /// specify values for componentName and entityId. For cross-entity /// quries, specify a value for componentTypeId. /// /// /// Container for the necessary parameters to execute the GetPropertyValueHistory service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetPropertyValueHistory service method, as returned by IoTTwinMaker. /// /// Access is denied. /// /// /// The connector failed. /// /// /// The connector timed out. /// /// /// An unexpected error has occurred. /// /// /// The resource wasn't found. /// /// /// The rate exceeds the limit. /// /// /// Failed /// /// REST API Reference for GetPropertyValueHistory Operation public virtual Task GetPropertyValueHistoryAsync(GetPropertyValueHistoryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetPropertyValueHistoryRequestMarshaller.Instance; options.ResponseUnmarshaller = GetPropertyValueHistoryResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetScene internal virtual GetSceneResponse GetScene(GetSceneRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetSceneRequestMarshaller.Instance; options.ResponseUnmarshaller = GetSceneResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieves information about a scene. /// /// Container for the necessary parameters to execute the GetScene service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetScene service method, as returned by IoTTwinMaker. /// /// Access is denied. /// /// /// An unexpected error has occurred. /// /// /// The resource wasn't found. /// /// /// The rate exceeds the limit. /// /// /// Failed /// /// REST API Reference for GetScene Operation public virtual Task GetSceneAsync(GetSceneRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetSceneRequestMarshaller.Instance; options.ResponseUnmarshaller = GetSceneResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetSyncJob internal virtual GetSyncJobResponse GetSyncJob(GetSyncJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetSyncJobRequestMarshaller.Instance; options.ResponseUnmarshaller = GetSyncJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets the SyncJob. /// /// Container for the necessary parameters to execute the GetSyncJob service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetSyncJob service method, as returned by IoTTwinMaker. /// /// Access is denied. /// /// /// An unexpected error has occurred. /// /// /// The resource wasn't found. /// /// /// The service quota was exceeded. /// /// /// The rate exceeds the limit. /// /// /// Failed /// /// REST API Reference for GetSyncJob Operation public virtual Task GetSyncJobAsync(GetSyncJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetSyncJobRequestMarshaller.Instance; options.ResponseUnmarshaller = GetSyncJobResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetWorkspace internal virtual GetWorkspaceResponse GetWorkspace(GetWorkspaceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetWorkspaceRequestMarshaller.Instance; options.ResponseUnmarshaller = GetWorkspaceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieves information about a workspace. /// /// Container for the necessary parameters to execute the GetWorkspace service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetWorkspace service method, as returned by IoTTwinMaker. /// /// An unexpected error has occurred. /// /// /// The resource wasn't found. /// /// /// The service quota was exceeded. /// /// /// The rate exceeds the limit. /// /// /// Failed /// /// REST API Reference for GetWorkspace Operation public virtual Task GetWorkspaceAsync(GetWorkspaceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetWorkspaceRequestMarshaller.Instance; options.ResponseUnmarshaller = GetWorkspaceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListComponentTypes internal virtual ListComponentTypesResponse ListComponentTypes(ListComponentTypesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListComponentTypesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListComponentTypesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists all component types in a workspace. /// /// Container for the necessary parameters to execute the ListComponentTypes service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListComponentTypes service method, as returned by IoTTwinMaker. /// /// Access is denied. /// /// /// An unexpected error has occurred. /// /// /// The rate exceeds the limit. /// /// /// Failed /// /// REST API Reference for ListComponentTypes Operation public virtual Task ListComponentTypesAsync(ListComponentTypesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListComponentTypesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListComponentTypesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListEntities internal virtual ListEntitiesResponse ListEntities(ListEntitiesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListEntitiesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListEntitiesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists all entities in a workspace. /// /// Container for the necessary parameters to execute the ListEntities service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListEntities service method, as returned by IoTTwinMaker. /// /// An unexpected error has occurred. /// /// /// The service quota was exceeded. /// /// /// The rate exceeds the limit. /// /// /// Failed /// /// REST API Reference for ListEntities Operation public virtual Task ListEntitiesAsync(ListEntitiesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListEntitiesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListEntitiesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListScenes internal virtual ListScenesResponse ListScenes(ListScenesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListScenesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListScenesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists all scenes in a workspace. /// /// Container for the necessary parameters to execute the ListScenes service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListScenes service method, as returned by IoTTwinMaker. /// /// Access is denied. /// /// /// An unexpected error has occurred. /// /// /// The rate exceeds the limit. /// /// /// Failed /// /// REST API Reference for ListScenes Operation public virtual Task ListScenesAsync(ListScenesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListScenesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListScenesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListSyncJobs internal virtual ListSyncJobsResponse ListSyncJobs(ListSyncJobsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListSyncJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListSyncJobsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// List all SyncJobs. /// /// Container for the necessary parameters to execute the ListSyncJobs service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListSyncJobs service method, as returned by IoTTwinMaker. /// /// Access is denied. /// /// /// An unexpected error has occurred. /// /// /// The service quota was exceeded. /// /// /// The rate exceeds the limit. /// /// /// Failed /// /// REST API Reference for ListSyncJobs Operation public virtual Task ListSyncJobsAsync(ListSyncJobsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListSyncJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListSyncJobsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListSyncResources internal virtual ListSyncResourcesResponse ListSyncResources(ListSyncResourcesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListSyncResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListSyncResourcesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the sync resources. /// /// Container for the necessary parameters to execute the ListSyncResources service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListSyncResources service method, as returned by IoTTwinMaker. /// /// Access is denied. /// /// /// An unexpected error has occurred. /// /// /// The service quota was exceeded. /// /// /// The rate exceeds the limit. /// /// /// Failed /// /// REST API Reference for ListSyncResources Operation public virtual Task ListSyncResourcesAsync(ListSyncResourcesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListSyncResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListSyncResourcesResponseUnmarshaller.Instance; return InvokeAsync(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(request, options); } /// /// Lists all tags associated with a resource. /// /// Container for the necessary parameters to execute the ListTagsForResource service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListTagsForResource service method, as returned by IoTTwinMaker. /// /// Access is denied. /// /// /// The resource wasn't found. /// /// REST API Reference for ListTagsForResource Operation public virtual Task ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListWorkspaces internal virtual ListWorkspacesResponse ListWorkspaces(ListWorkspacesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListWorkspacesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListWorkspacesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieves information about workspaces in the current account. /// /// Container for the necessary parameters to execute the ListWorkspaces service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListWorkspaces service method, as returned by IoTTwinMaker. /// /// An unexpected error has occurred. /// /// /// The service quota was exceeded. /// /// /// The rate exceeds the limit. /// /// /// Failed /// /// REST API Reference for ListWorkspaces Operation public virtual Task ListWorkspacesAsync(ListWorkspacesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListWorkspacesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListWorkspacesResponseUnmarshaller.Instance; return InvokeAsync(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(request, options); } /// /// Adds tags to a resource. /// /// Container for the necessary parameters to execute the TagResource service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the TagResource service method, as returned by IoTTwinMaker. /// /// Access is denied. /// /// /// The resource wasn't found. /// /// /// The number of tags exceeds the limit. /// /// REST API Reference for TagResource Operation public virtual Task TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return InvokeAsync(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(request, options); } /// /// Removes tags from a resource. /// /// Container for the necessary parameters to execute the UntagResource service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UntagResource service method, as returned by IoTTwinMaker. /// /// Access is denied. /// /// /// The resource wasn't found. /// /// REST API Reference for UntagResource Operation public virtual Task UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateComponentType internal virtual UpdateComponentTypeResponse UpdateComponentType(UpdateComponentTypeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateComponentTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateComponentTypeResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates information in a component type. /// /// Container for the necessary parameters to execute the UpdateComponentType service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateComponentType service method, as returned by IoTTwinMaker. /// /// Access is denied. /// /// /// An unexpected error has occurred. /// /// /// The resource wasn't found. /// /// /// The service quota was exceeded. /// /// /// The rate exceeds the limit. /// /// /// Failed /// /// REST API Reference for UpdateComponentType Operation public virtual Task UpdateComponentTypeAsync(UpdateComponentTypeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateComponentTypeRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateComponentTypeResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateEntity internal virtual UpdateEntityResponse UpdateEntity(UpdateEntityRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateEntityRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateEntityResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates an entity. /// /// Container for the necessary parameters to execute the UpdateEntity service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateEntity service method, as returned by IoTTwinMaker. /// /// Access is denied. /// /// /// A conflict occurred. /// /// /// An unexpected error has occurred. /// /// /// The resource wasn't found. /// /// /// The service quota was exceeded. /// /// /// The rate exceeds the limit. /// /// /// Failed /// /// REST API Reference for UpdateEntity Operation public virtual Task UpdateEntityAsync(UpdateEntityRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateEntityRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateEntityResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdatePricingPlan internal virtual UpdatePricingPlanResponse UpdatePricingPlan(UpdatePricingPlanRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdatePricingPlanRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdatePricingPlanResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Update the pricing plan. /// /// Container for the necessary parameters to execute the UpdatePricingPlan service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdatePricingPlan service method, as returned by IoTTwinMaker. /// /// Access is denied. /// /// /// An unexpected error has occurred. /// /// /// The rate exceeds the limit. /// /// /// Failed /// /// REST API Reference for UpdatePricingPlan Operation public virtual Task UpdatePricingPlanAsync(UpdatePricingPlanRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdatePricingPlanRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdatePricingPlanResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateScene internal virtual UpdateSceneResponse UpdateScene(UpdateSceneRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateSceneRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateSceneResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates a scene. /// /// Container for the necessary parameters to execute the UpdateScene service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateScene service method, as returned by IoTTwinMaker. /// /// Access is denied. /// /// /// An unexpected error has occurred. /// /// /// The resource wasn't found. /// /// /// The rate exceeds the limit. /// /// /// Failed /// /// REST API Reference for UpdateScene Operation public virtual Task UpdateSceneAsync(UpdateSceneRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateSceneRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateSceneResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateWorkspace internal virtual UpdateWorkspaceResponse UpdateWorkspace(UpdateWorkspaceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateWorkspaceRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateWorkspaceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates a workspace. /// /// Container for the necessary parameters to execute the UpdateWorkspace service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateWorkspace service method, as returned by IoTTwinMaker. /// /// Access is denied. /// /// /// An unexpected error has occurred. /// /// /// The resource wasn't found. /// /// /// The service quota was exceeded. /// /// /// The rate exceeds the limit. /// /// /// Failed /// /// REST API Reference for UpdateWorkspace Operation public virtual Task UpdateWorkspaceAsync(UpdateWorkspaceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateWorkspaceRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateWorkspaceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion } }