Beispiel #1
0
        /// <summary>
        /// Removes the Grafana Enterprise license from a workspace.
        /// </summary>
        /// <param name="request">Container for the necessary parameters to execute the DisassociateLicense service method.</param>
        /// <param name="cancellationToken">
        ///     A cancellation token that can be used by other objects or threads to receive notice of cancellation.
        /// </param>
        ///
        /// <returns>The response from the DisassociateLicense service method, as returned by ManagedGrafana.</returns>
        /// <exception cref="Amazon.ManagedGrafana.Model.AccessDeniedException">
        /// You do not have sufficient permissions to perform this action.
        /// </exception>
        /// <exception cref="Amazon.ManagedGrafana.Model.InternalServerException">
        /// Unexpected error while processing the request. Retry the request.
        /// </exception>
        /// <exception cref="Amazon.ManagedGrafana.Model.ResourceNotFoundException">
        /// The request references a resource that does not exist.
        /// </exception>
        /// <exception cref="Amazon.ManagedGrafana.Model.ThrottlingException">
        /// The request was denied because of request throttling. Retry the request.
        /// </exception>
        /// <exception cref="Amazon.ManagedGrafana.Model.ValidationException">
        /// The value of a parameter in the request caused an error.
        /// </exception>
        /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/grafana-2020-08-18/DisassociateLicense">REST API Reference for DisassociateLicense Operation</seealso>
        public virtual Task <DisassociateLicenseResponse> DisassociateLicenseAsync(DisassociateLicenseRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var options = new InvokeOptions();

            options.RequestMarshaller    = DisassociateLicenseRequestMarshaller.Instance;
            options.ResponseUnmarshaller = DisassociateLicenseResponseUnmarshaller.Instance;

            return(InvokeAsync <DisassociateLicenseResponse>(request, options, cancellationToken));
        }
Beispiel #2
0
        internal virtual DisassociateLicenseResponse DisassociateLicense(DisassociateLicenseRequest request)
        {
            var options = new InvokeOptions();

            options.RequestMarshaller    = DisassociateLicenseRequestMarshaller.Instance;
            options.ResponseUnmarshaller = DisassociateLicenseResponseUnmarshaller.Instance;

            return(Invoke <DisassociateLicenseResponse>(request, options));
        }