Пример #1
0
        internal virtual ImportSourceCredentialsResponse ImportSourceCredentials(ImportSourceCredentialsRequest request)
        {
            var marshaller   = ImportSourceCredentialsRequestMarshaller.Instance;
            var unmarshaller = ImportSourceCredentialsResponseUnmarshaller.Instance;

            return(Invoke <ImportSourceCredentialsRequest, ImportSourceCredentialsResponse>(request, marshaller, unmarshaller));
        }
        internal virtual ImportSourceCredentialsResponse ImportSourceCredentials(ImportSourceCredentialsRequest request)
        {
            var options = new InvokeOptions();

            options.RequestMarshaller    = ImportSourceCredentialsRequestMarshaller.Instance;
            options.ResponseUnmarshaller = ImportSourceCredentialsResponseUnmarshaller.Instance;

            return(Invoke <ImportSourceCredentialsResponse>(request, options));
        }
Пример #3
0
        /// <summary>
        /// Initiates the asynchronous execution of the ImportSourceCredentials operation.
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the ImportSourceCredentials operation.</param>
        /// <param name="cancellationToken">
        ///     A cancellation token that can be used by other objects or threads to receive notice of cancellation.
        /// </param>
        /// <returns>The task object representing the asynchronous operation.</returns>
        /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ImportSourceCredentials">REST API Reference for ImportSourceCredentials Operation</seealso>
        public virtual Task <ImportSourceCredentialsResponse> ImportSourceCredentialsAsync(ImportSourceCredentialsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller   = ImportSourceCredentialsRequestMarshaller.Instance;
            var unmarshaller = ImportSourceCredentialsResponseUnmarshaller.Instance;

            return(InvokeAsync <ImportSourceCredentialsRequest, ImportSourceCredentialsResponse>(request, marshaller,
                                                                                                 unmarshaller, cancellationToken));
        }