/* * 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 braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Net; using Amazon.Braket.Model; using Amazon.Braket.Model.Internal.MarshallTransformations; using Amazon.Braket.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.Braket { /// /// Implementation for accessing Braket /// /// The Amazon Braket API Reference provides information about the operations and structures /// supported in Amazon Braket. /// /// /// /// Additional Resources: /// /// /// public partial class AmazonBraketClient : AmazonServiceClient, IAmazonBraket { private static IServiceMetadata serviceMetadata = new AmazonBraketMetadata(); #if BCL45 || AWS_ASYNC_ENUMERABLES_API private IBraketPaginatorFactory _paginators; /// /// Paginators for the service /// public IBraketPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new BraketPaginatorFactory(this); } return this._paginators; } } #endif #region Constructors /// /// Constructs AmazonBraketClient 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 AmazonBraketClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonBraketConfig()) { } /// /// Constructs AmazonBraketClient 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 AmazonBraketClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonBraketConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonBraketClient 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 AmazonBraketClient Configuration Object public AmazonBraketClient(AmazonBraketConfig config) : base(FallbackCredentialsFactory.GetCredentials(config), config){} /// /// Constructs AmazonBraketClient with AWS Credentials /// /// AWS Credentials public AmazonBraketClient(AWSCredentials credentials) : this(credentials, new AmazonBraketConfig()) { } /// /// Constructs AmazonBraketClient with AWS Credentials /// /// AWS Credentials /// The region to connect. public AmazonBraketClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonBraketConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonBraketClient with AWS Credentials and an /// AmazonBraketClient Configuration object. /// /// AWS Credentials /// The AmazonBraketClient Configuration Object public AmazonBraketClient(AWSCredentials credentials, AmazonBraketConfig clientConfig) : base(credentials, clientConfig) { } /// /// Constructs AmazonBraketClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key public AmazonBraketClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonBraketConfig()) { } /// /// Constructs AmazonBraketClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// The region to connect. public AmazonBraketClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonBraketConfig() {RegionEndpoint=region}) { } /// /// Constructs AmazonBraketClient with AWS Access Key ID, AWS Secret Key and an /// AmazonBraketClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// The AmazonBraketClient Configuration Object public AmazonBraketClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonBraketConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// /// Constructs AmazonBraketClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token public AmazonBraketClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonBraketConfig()) { } /// /// Constructs AmazonBraketClient 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 AmazonBraketClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonBraketConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonBraketClient with AWS Access Key ID, AWS Secret Key and an /// AmazonBraketClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The AmazonBraketClient Configuration Object public AmazonBraketClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonBraketConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #region Overrides /// /// Creates the signer for the service. /// protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// /// Customize the pipeline /// /// protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) { pipeline.RemoveHandler(); pipeline.AddHandlerAfter(new AmazonBraketEndpointResolver()); } /// /// 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 CancelJob /// /// Cancels an Amazon Braket job. /// /// Container for the necessary parameters to execute the CancelJob service method. /// /// The response from the CancelJob service method, as returned by Braket. /// /// You do not have sufficient access to perform this action. /// /// /// An error occurred due to a conflict. /// /// /// The request processing has failed because of an unknown error, exception, or failure. /// /// /// The specified resource was not found. /// /// /// The throttling rate limit is met. /// /// /// The input fails to satisfy the constraints specified by an AWS service. /// /// REST API Reference for CancelJob Operation public virtual CancelJobResponse CancelJob(CancelJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CancelJobRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the CancelJob operation. /// /// /// Container for the necessary parameters to execute the CancelJob operation on AmazonBraketClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCancelJob /// operation. /// REST API Reference for CancelJob Operation public virtual IAsyncResult BeginCancelJob(CancelJobRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CancelJobRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelJobResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the CancelJob operation. /// /// /// The IAsyncResult returned by the call to BeginCancelJob. /// /// Returns a CancelJobResult from Braket. /// REST API Reference for CancelJob Operation public virtual CancelJobResponse EndCancelJob(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region CancelQuantumTask /// /// Cancels the specified task. /// /// Container for the necessary parameters to execute the CancelQuantumTask service method. /// /// The response from the CancelQuantumTask service method, as returned by Braket. /// /// You do not have sufficient access to perform this action. /// /// /// An error occurred due to a conflict. /// /// /// The request processing has failed because of an unknown error, exception, or failure. /// /// /// The specified resource was not found. /// /// /// The throttling rate limit is met. /// /// /// The input fails to satisfy the constraints specified by an AWS service. /// /// REST API Reference for CancelQuantumTask Operation public virtual CancelQuantumTaskResponse CancelQuantumTask(CancelQuantumTaskRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CancelQuantumTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelQuantumTaskResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the CancelQuantumTask operation. /// /// /// Container for the necessary parameters to execute the CancelQuantumTask operation on AmazonBraketClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCancelQuantumTask /// operation. /// REST API Reference for CancelQuantumTask Operation public virtual IAsyncResult BeginCancelQuantumTask(CancelQuantumTaskRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CancelQuantumTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelQuantumTaskResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the CancelQuantumTask operation. /// /// /// The IAsyncResult returned by the call to BeginCancelQuantumTask. /// /// Returns a CancelQuantumTaskResult from Braket. /// REST API Reference for CancelQuantumTask Operation public virtual CancelQuantumTaskResponse EndCancelQuantumTask(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region CreateJob /// /// Creates an Amazon Braket job. /// /// Container for the necessary parameters to execute the CreateJob service method. /// /// The response from the CreateJob service method, as returned by Braket. /// /// You do not have sufficient access to perform this action. /// /// /// An error occurred due to a conflict. /// /// /// The specified device has been retired. /// /// /// The request processing has failed because of an unknown error, exception, or failure. /// /// /// The request failed because a service quota is exceeded. /// /// /// The throttling rate limit is met. /// /// /// The input fails to satisfy the constraints specified by an AWS service. /// /// REST API Reference for CreateJob Operation public virtual CreateJobResponse CreateJob(CreateJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateJobRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the CreateJob operation. /// /// /// Container for the necessary parameters to execute the CreateJob operation on AmazonBraketClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateJob /// operation. /// REST API Reference for CreateJob Operation public virtual IAsyncResult BeginCreateJob(CreateJobRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateJobRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateJobResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the CreateJob operation. /// /// /// The IAsyncResult returned by the call to BeginCreateJob. /// /// Returns a CreateJobResult from Braket. /// REST API Reference for CreateJob Operation public virtual CreateJobResponse EndCreateJob(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region CreateQuantumTask /// /// Creates a quantum task. /// /// Container for the necessary parameters to execute the CreateQuantumTask service method. /// /// The response from the CreateQuantumTask service method, as returned by Braket. /// /// You do not have sufficient access to perform this action. /// /// /// The specified device is currently offline. /// /// /// The specified device has been retired. /// /// /// The request processing has failed because of an unknown error, exception, or failure. /// /// /// The request failed because a service quota is exceeded. /// /// /// The throttling rate limit is met. /// /// /// The input fails to satisfy the constraints specified by an AWS service. /// /// REST API Reference for CreateQuantumTask Operation public virtual CreateQuantumTaskResponse CreateQuantumTask(CreateQuantumTaskRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateQuantumTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateQuantumTaskResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the CreateQuantumTask operation. /// /// /// Container for the necessary parameters to execute the CreateQuantumTask operation on AmazonBraketClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateQuantumTask /// operation. /// REST API Reference for CreateQuantumTask Operation public virtual IAsyncResult BeginCreateQuantumTask(CreateQuantumTaskRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateQuantumTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateQuantumTaskResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the CreateQuantumTask operation. /// /// /// The IAsyncResult returned by the call to BeginCreateQuantumTask. /// /// Returns a CreateQuantumTaskResult from Braket. /// REST API Reference for CreateQuantumTask Operation public virtual CreateQuantumTaskResponse EndCreateQuantumTask(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetDevice /// /// Retrieves the devices available in Amazon Braket. /// /// /// /// For backwards compatibility with older versions of BraketSchemas, OpenQASM information /// is omitted from GetDevice API calls. To get this information the user-agent needs /// to present a recent version of the BraketSchemas (1.8.0 or later). The Braket SDK /// automatically reports this for you. If you do not see OpenQASM results in the GetDevice /// response when using a Braket SDK, you may need to set AWS_EXECUTION_ENV environment /// variable to configure user-agent. See the code examples provided below for how to /// do this for the AWS CLI, Boto3, and the Go, Java, and JavaScript/TypeScript SDKs. /// /// /// /// Container for the necessary parameters to execute the GetDevice service method. /// /// The response from the GetDevice service method, as returned by Braket. /// /// You do not have sufficient access to perform this action. /// /// /// The request processing has failed because of an unknown error, exception, or failure. /// /// /// The specified resource was not found. /// /// /// The throttling rate limit is met. /// /// /// The input fails to satisfy the constraints specified by an AWS service. /// /// REST API Reference for GetDevice Operation public virtual GetDeviceResponse GetDevice(GetDeviceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetDeviceRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDeviceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetDevice operation. /// /// /// Container for the necessary parameters to execute the GetDevice operation on AmazonBraketClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetDevice /// operation. /// REST API Reference for GetDevice Operation public virtual IAsyncResult BeginGetDevice(GetDeviceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetDeviceRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDeviceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetDevice operation. /// /// /// The IAsyncResult returned by the call to BeginGetDevice. /// /// Returns a GetDeviceResult from Braket. /// REST API Reference for GetDevice Operation public virtual GetDeviceResponse EndGetDevice(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetJob /// /// Retrieves the specified Amazon Braket job. /// /// Container for the necessary parameters to execute the GetJob service method. /// /// The response from the GetJob service method, as returned by Braket. /// /// You do not have sufficient access to perform this action. /// /// /// The request processing has failed because of an unknown error, exception, or failure. /// /// /// The specified resource was not found. /// /// /// The throttling rate limit is met. /// /// /// The input fails to satisfy the constraints specified by an AWS service. /// /// REST API Reference for GetJob Operation public virtual GetJobResponse GetJob(GetJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetJobRequestMarshaller.Instance; options.ResponseUnmarshaller = GetJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetJob operation. /// /// /// Container for the necessary parameters to execute the GetJob operation on AmazonBraketClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetJob /// operation. /// REST API Reference for GetJob Operation public virtual IAsyncResult BeginGetJob(GetJobRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetJobRequestMarshaller.Instance; options.ResponseUnmarshaller = GetJobResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetJob operation. /// /// /// The IAsyncResult returned by the call to BeginGetJob. /// /// Returns a GetJobResult from Braket. /// REST API Reference for GetJob Operation public virtual GetJobResponse EndGetJob(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetQuantumTask /// /// Retrieves the specified quantum task. /// /// Container for the necessary parameters to execute the GetQuantumTask service method. /// /// The response from the GetQuantumTask service method, as returned by Braket. /// /// You do not have sufficient access to perform this action. /// /// /// The request processing has failed because of an unknown error, exception, or failure. /// /// /// The specified resource was not found. /// /// /// The throttling rate limit is met. /// /// /// The input fails to satisfy the constraints specified by an AWS service. /// /// REST API Reference for GetQuantumTask Operation public virtual GetQuantumTaskResponse GetQuantumTask(GetQuantumTaskRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetQuantumTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = GetQuantumTaskResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetQuantumTask operation. /// /// /// Container for the necessary parameters to execute the GetQuantumTask operation on AmazonBraketClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetQuantumTask /// operation. /// REST API Reference for GetQuantumTask Operation public virtual IAsyncResult BeginGetQuantumTask(GetQuantumTaskRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetQuantumTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = GetQuantumTaskResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetQuantumTask operation. /// /// /// The IAsyncResult returned by the call to BeginGetQuantumTask. /// /// Returns a GetQuantumTaskResult from Braket. /// REST API Reference for GetQuantumTask Operation public virtual GetQuantumTaskResponse EndGetQuantumTask(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListTagsForResource /// /// Shows the tags associated with this resource. /// /// Container for the necessary parameters to execute the ListTagsForResource service method. /// /// The response from the ListTagsForResource service method, as returned by Braket. /// /// The request processing has failed because of an unknown error, exception, or failure. /// /// /// The specified resource was not found. /// /// /// The input fails to satisfy the constraints specified by an AWS service. /// /// REST API Reference for ListTagsForResource Operation public virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListTagsForResource operation. /// /// /// Container for the necessary parameters to execute the ListTagsForResource operation on AmazonBraketClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTagsForResource /// operation. /// REST API Reference for ListTagsForResource Operation public virtual IAsyncResult BeginListTagsForResource(ListTagsForResourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListTagsForResource operation. /// /// /// The IAsyncResult returned by the call to BeginListTagsForResource. /// /// Returns a ListTagsForResourceResult from Braket. /// REST API Reference for ListTagsForResource Operation public virtual ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region SearchDevices /// /// Searches for devices using the specified filters. /// /// Container for the necessary parameters to execute the SearchDevices service method. /// /// The response from the SearchDevices service method, as returned by Braket. /// /// You do not have sufficient access to perform this action. /// /// /// The request processing has failed because of an unknown error, exception, or failure. /// /// /// The throttling rate limit is met. /// /// /// The input fails to satisfy the constraints specified by an AWS service. /// /// REST API Reference for SearchDevices Operation public virtual SearchDevicesResponse SearchDevices(SearchDevicesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SearchDevicesRequestMarshaller.Instance; options.ResponseUnmarshaller = SearchDevicesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the SearchDevices operation. /// /// /// Container for the necessary parameters to execute the SearchDevices operation on AmazonBraketClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndSearchDevices /// operation. /// REST API Reference for SearchDevices Operation public virtual IAsyncResult BeginSearchDevices(SearchDevicesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = SearchDevicesRequestMarshaller.Instance; options.ResponseUnmarshaller = SearchDevicesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the SearchDevices operation. /// /// /// The IAsyncResult returned by the call to BeginSearchDevices. /// /// Returns a SearchDevicesResult from Braket. /// REST API Reference for SearchDevices Operation public virtual SearchDevicesResponse EndSearchDevices(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region SearchJobs /// /// Searches for Amazon Braket jobs that match the specified filter values. /// /// Container for the necessary parameters to execute the SearchJobs service method. /// /// The response from the SearchJobs service method, as returned by Braket. /// /// You do not have sufficient access to perform this action. /// /// /// The request processing has failed because of an unknown error, exception, or failure. /// /// /// The throttling rate limit is met. /// /// /// The input fails to satisfy the constraints specified by an AWS service. /// /// REST API Reference for SearchJobs Operation public virtual SearchJobsResponse SearchJobs(SearchJobsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SearchJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = SearchJobsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the SearchJobs operation. /// /// /// Container for the necessary parameters to execute the SearchJobs operation on AmazonBraketClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndSearchJobs /// operation. /// REST API Reference for SearchJobs Operation public virtual IAsyncResult BeginSearchJobs(SearchJobsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = SearchJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = SearchJobsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the SearchJobs operation. /// /// /// The IAsyncResult returned by the call to BeginSearchJobs. /// /// Returns a SearchJobsResult from Braket. /// REST API Reference for SearchJobs Operation public virtual SearchJobsResponse EndSearchJobs(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region SearchQuantumTasks /// /// Searches for tasks that match the specified filter values. /// /// Container for the necessary parameters to execute the SearchQuantumTasks service method. /// /// The response from the SearchQuantumTasks service method, as returned by Braket. /// /// You do not have sufficient access to perform this action. /// /// /// The request processing has failed because of an unknown error, exception, or failure. /// /// /// The throttling rate limit is met. /// /// /// The input fails to satisfy the constraints specified by an AWS service. /// /// REST API Reference for SearchQuantumTasks Operation public virtual SearchQuantumTasksResponse SearchQuantumTasks(SearchQuantumTasksRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SearchQuantumTasksRequestMarshaller.Instance; options.ResponseUnmarshaller = SearchQuantumTasksResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the SearchQuantumTasks operation. /// /// /// Container for the necessary parameters to execute the SearchQuantumTasks operation on AmazonBraketClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndSearchQuantumTasks /// operation. /// REST API Reference for SearchQuantumTasks Operation public virtual IAsyncResult BeginSearchQuantumTasks(SearchQuantumTasksRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = SearchQuantumTasksRequestMarshaller.Instance; options.ResponseUnmarshaller = SearchQuantumTasksResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the SearchQuantumTasks operation. /// /// /// The IAsyncResult returned by the call to BeginSearchQuantumTasks. /// /// Returns a SearchQuantumTasksResult from Braket. /// REST API Reference for SearchQuantumTasks Operation public virtual SearchQuantumTasksResponse EndSearchQuantumTasks(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region TagResource /// /// Add a tag to the specified resource. /// /// Container for the necessary parameters to execute the TagResource service method. /// /// The response from the TagResource service method, as returned by Braket. /// /// The request processing has failed because of an unknown error, exception, or failure. /// /// /// The specified resource was not found. /// /// /// The input fails to satisfy the constraints specified by an AWS service. /// /// REST API Reference for TagResource Operation public virtual TagResourceResponse TagResource(TagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the TagResource operation. /// /// /// Container for the necessary parameters to execute the TagResource operation on AmazonBraketClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndTagResource /// operation. /// REST API Reference for TagResource Operation public virtual IAsyncResult BeginTagResource(TagResourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the TagResource operation. /// /// /// The IAsyncResult returned by the call to BeginTagResource. /// /// Returns a TagResourceResult from Braket. /// REST API Reference for TagResource Operation public virtual TagResourceResponse EndTagResource(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region UntagResource /// /// Remove tags from a resource. /// /// Container for the necessary parameters to execute the UntagResource service method. /// /// The response from the UntagResource service method, as returned by Braket. /// /// The request processing has failed because of an unknown error, exception, or failure. /// /// /// The specified resource was not found. /// /// /// The input fails to satisfy the constraints specified by an AWS service. /// /// REST API Reference for UntagResource Operation public virtual UntagResourceResponse UntagResource(UntagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the UntagResource operation. /// /// /// Container for the necessary parameters to execute the UntagResource operation on AmazonBraketClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUntagResource /// operation. /// REST API Reference for UntagResource Operation public virtual IAsyncResult BeginUntagResource(UntagResourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the UntagResource operation. /// /// /// The IAsyncResult returned by the call to BeginUntagResource. /// /// Returns a UntagResourceResult from Braket. /// REST API Reference for UntagResource Operation public virtual UntagResourceResponse EndUntagResource(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion } }