/* * 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 cloud9-2017-09-23.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.Cloud9.Model; using Amazon.Cloud9.Model.Internal.MarshallTransformations; using Amazon.Cloud9.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.Cloud9 { /// /// Implementation for accessing Cloud9 /// /// Cloud9 /// /// Cloud9 is a collection of tools that you can use to code, build, run, test, debug, /// and release software in the cloud. /// /// /// /// For more information about Cloud9, see the Cloud9 /// User Guide. /// /// /// /// Cloud9 supports these operations: /// /// /// public partial class AmazonCloud9Client : AmazonServiceClient, IAmazonCloud9 { private static IServiceMetadata serviceMetadata = new AmazonCloud9Metadata(); #region Constructors /// /// Constructs AmazonCloud9Client 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 AmazonCloud9Client() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonCloud9Config()) { } /// /// Constructs AmazonCloud9Client 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 AmazonCloud9Client(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonCloud9Config{RegionEndpoint = region}) { } /// /// Constructs AmazonCloud9Client 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 AmazonCloud9Client Configuration Object public AmazonCloud9Client(AmazonCloud9Config config) : base(FallbackCredentialsFactory.GetCredentials(config), config){} /// /// Constructs AmazonCloud9Client with AWS Credentials /// /// AWS Credentials public AmazonCloud9Client(AWSCredentials credentials) : this(credentials, new AmazonCloud9Config()) { } /// /// Constructs AmazonCloud9Client with AWS Credentials /// /// AWS Credentials /// The region to connect. public AmazonCloud9Client(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonCloud9Config{RegionEndpoint = region}) { } /// /// Constructs AmazonCloud9Client with AWS Credentials and an /// AmazonCloud9Client Configuration object. /// /// AWS Credentials /// The AmazonCloud9Client Configuration Object public AmazonCloud9Client(AWSCredentials credentials, AmazonCloud9Config clientConfig) : base(credentials, clientConfig) { } /// /// Constructs AmazonCloud9Client with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key public AmazonCloud9Client(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCloud9Config()) { } /// /// Constructs AmazonCloud9Client with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// The region to connect. public AmazonCloud9Client(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCloud9Config() {RegionEndpoint=region}) { } /// /// Constructs AmazonCloud9Client with AWS Access Key ID, AWS Secret Key and an /// AmazonCloud9Client Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// The AmazonCloud9Client Configuration Object public AmazonCloud9Client(string awsAccessKeyId, string awsSecretAccessKey, AmazonCloud9Config clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// /// Constructs AmazonCloud9Client with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token public AmazonCloud9Client(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCloud9Config()) { } /// /// Constructs AmazonCloud9Client 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 AmazonCloud9Client(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCloud9Config{RegionEndpoint = region}) { } /// /// Constructs AmazonCloud9Client with AWS Access Key ID, AWS Secret Key and an /// AmazonCloud9Client Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The AmazonCloud9Client Configuration Object public AmazonCloud9Client(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonCloud9Config clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #if AWS_ASYNC_ENUMERABLES_API private ICloud9PaginatorFactory _paginators; /// /// Paginators for the service /// public ICloud9PaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new Cloud9PaginatorFactory(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 AmazonCloud9EndpointResolver()); } /// /// 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 CreateEnvironmentEC2 internal virtual CreateEnvironmentEC2Response CreateEnvironmentEC2(CreateEnvironmentEC2Request request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateEnvironmentEC2RequestMarshaller.Instance; options.ResponseUnmarshaller = CreateEnvironmentEC2ResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates an Cloud9 development environment, launches an Amazon Elastic Compute Cloud /// (Amazon EC2) instance, and then connects from the instance to the environment. /// /// Container for the necessary parameters to execute the CreateEnvironmentEC2 service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateEnvironmentEC2 service method, as returned by Cloud9. /// /// The target request is invalid. /// /// /// A conflict occurred. /// /// /// An access permissions issue occurred. /// /// /// An internal server error occurred. /// /// /// A service limit was exceeded. /// /// /// The target resource cannot be found. /// /// /// Too many service requests were made over the given time period. /// /// REST API Reference for CreateEnvironmentEC2 Operation public virtual Task CreateEnvironmentEC2Async(CreateEnvironmentEC2Request request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateEnvironmentEC2RequestMarshaller.Instance; options.ResponseUnmarshaller = CreateEnvironmentEC2ResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateEnvironmentMembership internal virtual CreateEnvironmentMembershipResponse CreateEnvironmentMembership(CreateEnvironmentMembershipRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateEnvironmentMembershipRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateEnvironmentMembershipResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Adds an environment member to an Cloud9 development environment. /// /// Container for the necessary parameters to execute the CreateEnvironmentMembership service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateEnvironmentMembership service method, as returned by Cloud9. /// /// The target request is invalid. /// /// /// A conflict occurred. /// /// /// An access permissions issue occurred. /// /// /// An internal server error occurred. /// /// /// A service limit was exceeded. /// /// /// The target resource cannot be found. /// /// /// Too many service requests were made over the given time period. /// /// REST API Reference for CreateEnvironmentMembership Operation public virtual Task CreateEnvironmentMembershipAsync(CreateEnvironmentMembershipRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateEnvironmentMembershipRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateEnvironmentMembershipResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteEnvironment internal virtual DeleteEnvironmentResponse DeleteEnvironment(DeleteEnvironmentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteEnvironmentRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteEnvironmentResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes an Cloud9 development environment. If an Amazon EC2 instance is connected /// to the environment, also terminates the instance. /// /// Container for the necessary parameters to execute the DeleteEnvironment service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteEnvironment service method, as returned by Cloud9. /// /// The target request is invalid. /// /// /// A conflict occurred. /// /// /// An access permissions issue occurred. /// /// /// An internal server error occurred. /// /// /// A service limit was exceeded. /// /// /// The target resource cannot be found. /// /// /// Too many service requests were made over the given time period. /// /// REST API Reference for DeleteEnvironment Operation public virtual Task DeleteEnvironmentAsync(DeleteEnvironmentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteEnvironmentRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteEnvironmentResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteEnvironmentMembership internal virtual DeleteEnvironmentMembershipResponse DeleteEnvironmentMembership(DeleteEnvironmentMembershipRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteEnvironmentMembershipRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteEnvironmentMembershipResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes an environment member from a development environment. /// /// Container for the necessary parameters to execute the DeleteEnvironmentMembership service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteEnvironmentMembership service method, as returned by Cloud9. /// /// The target request is invalid. /// /// /// A conflict occurred. /// /// /// An access permissions issue occurred. /// /// /// An internal server error occurred. /// /// /// A service limit was exceeded. /// /// /// The target resource cannot be found. /// /// /// Too many service requests were made over the given time period. /// /// REST API Reference for DeleteEnvironmentMembership Operation public virtual Task DeleteEnvironmentMembershipAsync(DeleteEnvironmentMembershipRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteEnvironmentMembershipRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteEnvironmentMembershipResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeEnvironmentMemberships internal virtual DescribeEnvironmentMembershipsResponse DescribeEnvironmentMemberships(DescribeEnvironmentMembershipsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeEnvironmentMembershipsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeEnvironmentMembershipsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets information about environment members for an Cloud9 development environment. /// /// Container for the necessary parameters to execute the DescribeEnvironmentMemberships service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeEnvironmentMemberships service method, as returned by Cloud9. /// /// The target request is invalid. /// /// /// A conflict occurred. /// /// /// An access permissions issue occurred. /// /// /// An internal server error occurred. /// /// /// A service limit was exceeded. /// /// /// The target resource cannot be found. /// /// /// Too many service requests were made over the given time period. /// /// REST API Reference for DescribeEnvironmentMemberships Operation public virtual Task DescribeEnvironmentMembershipsAsync(DescribeEnvironmentMembershipsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeEnvironmentMembershipsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeEnvironmentMembershipsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeEnvironments internal virtual DescribeEnvironmentsResponse DescribeEnvironments(DescribeEnvironmentsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeEnvironmentsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeEnvironmentsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets information about Cloud9 development environments. /// /// Container for the necessary parameters to execute the DescribeEnvironments service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeEnvironments service method, as returned by Cloud9. /// /// The target request is invalid. /// /// /// A conflict occurred. /// /// /// An access permissions issue occurred. /// /// /// An internal server error occurred. /// /// /// A service limit was exceeded. /// /// /// The target resource cannot be found. /// /// /// Too many service requests were made over the given time period. /// /// REST API Reference for DescribeEnvironments Operation public virtual Task DescribeEnvironmentsAsync(DescribeEnvironmentsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeEnvironmentsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeEnvironmentsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeEnvironmentStatus internal virtual DescribeEnvironmentStatusResponse DescribeEnvironmentStatus(DescribeEnvironmentStatusRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeEnvironmentStatusRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeEnvironmentStatusResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets status information for an Cloud9 development environment. /// /// Container for the necessary parameters to execute the DescribeEnvironmentStatus service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeEnvironmentStatus service method, as returned by Cloud9. /// /// The target request is invalid. /// /// /// A conflict occurred. /// /// /// An access permissions issue occurred. /// /// /// An internal server error occurred. /// /// /// A service limit was exceeded. /// /// /// The target resource cannot be found. /// /// /// Too many service requests were made over the given time period. /// /// REST API Reference for DescribeEnvironmentStatus Operation public virtual Task DescribeEnvironmentStatusAsync(DescribeEnvironmentStatusRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeEnvironmentStatusRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeEnvironmentStatusResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListEnvironments internal virtual ListEnvironmentsResponse ListEnvironments(ListEnvironmentsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListEnvironmentsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListEnvironmentsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets a list of Cloud9 development environment identifiers. /// /// Container for the necessary parameters to execute the ListEnvironments service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListEnvironments service method, as returned by Cloud9. /// /// The target request is invalid. /// /// /// A conflict occurred. /// /// /// An access permissions issue occurred. /// /// /// An internal server error occurred. /// /// /// A service limit was exceeded. /// /// /// The target resource cannot be found. /// /// /// Too many service requests were made over the given time period. /// /// REST API Reference for ListEnvironments Operation public virtual Task ListEnvironmentsAsync(ListEnvironmentsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListEnvironmentsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListEnvironmentsResponseUnmarshaller.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); } /// /// Gets a list of the tags associated with an Cloud9 development environment. /// /// 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 Cloud9. /// /// The target request is invalid. /// /// /// An internal server error occurred. /// /// /// The target resource cannot be 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 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 an Cloud9 development environment. /// /// /// /// Tags that you add to an Cloud9 environment by using this method will NOT be automatically /// propagated to underlying resources. /// /// /// /// 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 Cloud9. /// /// The target request is invalid. /// /// /// A concurrent access issue occurred. /// /// /// An internal server error occurred. /// /// /// The target resource cannot be found. /// /// 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 an Cloud9 development environment. /// /// 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 Cloud9. /// /// The target request is invalid. /// /// /// A concurrent access issue occurred. /// /// /// An internal server error occurred. /// /// /// The target resource cannot be 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 UpdateEnvironment internal virtual UpdateEnvironmentResponse UpdateEnvironment(UpdateEnvironmentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateEnvironmentRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateEnvironmentResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Changes the settings of an existing Cloud9 development environment. /// /// Container for the necessary parameters to execute the UpdateEnvironment service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateEnvironment service method, as returned by Cloud9. /// /// The target request is invalid. /// /// /// A conflict occurred. /// /// /// An access permissions issue occurred. /// /// /// An internal server error occurred. /// /// /// A service limit was exceeded. /// /// /// The target resource cannot be found. /// /// /// Too many service requests were made over the given time period. /// /// REST API Reference for UpdateEnvironment Operation public virtual Task UpdateEnvironmentAsync(UpdateEnvironmentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateEnvironmentRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateEnvironmentResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateEnvironmentMembership internal virtual UpdateEnvironmentMembershipResponse UpdateEnvironmentMembership(UpdateEnvironmentMembershipRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateEnvironmentMembershipRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateEnvironmentMembershipResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Changes the settings of an existing environment member for an Cloud9 development environment. /// /// Container for the necessary parameters to execute the UpdateEnvironmentMembership service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateEnvironmentMembership service method, as returned by Cloud9. /// /// The target request is invalid. /// /// /// A conflict occurred. /// /// /// An access permissions issue occurred. /// /// /// An internal server error occurred. /// /// /// A service limit was exceeded. /// /// /// The target resource cannot be found. /// /// /// Too many service requests were made over the given time period. /// /// REST API Reference for UpdateEnvironmentMembership Operation public virtual Task UpdateEnvironmentMembershipAsync(UpdateEnvironmentMembershipRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateEnvironmentMembershipRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateEnvironmentMembershipResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion } }