/* * 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 servicecatalog-appregistry-2020-06-24.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.AppRegistry.Model; using Amazon.AppRegistry.Model.Internal.MarshallTransformations; using Amazon.AppRegistry.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.AppRegistry { /// /// Implementation for accessing AppRegistry /// /// Amazon Web Services Service Catalog AppRegistry enables organizations to understand /// the application context of their Amazon Web Services resources. AppRegistry provides /// a repository of your applications, their resources, and the application metadata that /// you use within your enterprise. /// public partial class AmazonAppRegistryClient : AmazonServiceClient, IAmazonAppRegistry { private static IServiceMetadata serviceMetadata = new AmazonAppRegistryMetadata(); #region Constructors /// /// Constructs AmazonAppRegistryClient 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 AmazonAppRegistryClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonAppRegistryConfig()) { } /// /// Constructs AmazonAppRegistryClient 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 AmazonAppRegistryClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonAppRegistryConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonAppRegistryClient 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 AmazonAppRegistryClient Configuration Object public AmazonAppRegistryClient(AmazonAppRegistryConfig config) : base(FallbackCredentialsFactory.GetCredentials(config), config){} /// /// Constructs AmazonAppRegistryClient with AWS Credentials /// /// AWS Credentials public AmazonAppRegistryClient(AWSCredentials credentials) : this(credentials, new AmazonAppRegistryConfig()) { } /// /// Constructs AmazonAppRegistryClient with AWS Credentials /// /// AWS Credentials /// The region to connect. public AmazonAppRegistryClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonAppRegistryConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonAppRegistryClient with AWS Credentials and an /// AmazonAppRegistryClient Configuration object. /// /// AWS Credentials /// The AmazonAppRegistryClient Configuration Object public AmazonAppRegistryClient(AWSCredentials credentials, AmazonAppRegistryConfig clientConfig) : base(credentials, clientConfig) { } /// /// Constructs AmazonAppRegistryClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key public AmazonAppRegistryClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonAppRegistryConfig()) { } /// /// Constructs AmazonAppRegistryClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// The region to connect. public AmazonAppRegistryClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonAppRegistryConfig() {RegionEndpoint=region}) { } /// /// Constructs AmazonAppRegistryClient with AWS Access Key ID, AWS Secret Key and an /// AmazonAppRegistryClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// The AmazonAppRegistryClient Configuration Object public AmazonAppRegistryClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonAppRegistryConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// /// Constructs AmazonAppRegistryClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token public AmazonAppRegistryClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAppRegistryConfig()) { } /// /// Constructs AmazonAppRegistryClient 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 AmazonAppRegistryClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAppRegistryConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonAppRegistryClient with AWS Access Key ID, AWS Secret Key and an /// AmazonAppRegistryClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The AmazonAppRegistryClient Configuration Object public AmazonAppRegistryClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonAppRegistryConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #if AWS_ASYNC_ENUMERABLES_API private IAppRegistryPaginatorFactory _paginators; /// /// Paginators for the service /// public IAppRegistryPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new AppRegistryPaginatorFactory(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 AmazonAppRegistryEndpointResolver()); } /// /// 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 AssociateAttributeGroup internal virtual AssociateAttributeGroupResponse AssociateAttributeGroup(AssociateAttributeGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateAttributeGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateAttributeGroupResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Associates an attribute group with an application to augment the application's metadata /// with the group's attributes. This feature enables applications to be described with /// user-defined details that are machine-readable, such as third-party integrations. /// /// Container for the necessary parameters to execute the AssociateAttributeGroup service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the AssociateAttributeGroup service method, as returned by AppRegistry. /// /// There was a conflict when processing the request (for example, a resource with the /// given name already exists within the account). /// /// /// The service is experiencing internal problems. /// /// /// The specified resource does not exist. /// /// /// The maximum number of resources per account has been reached. /// /// /// The request has invalid or missing parameters. /// /// REST API Reference for AssociateAttributeGroup Operation public virtual Task AssociateAttributeGroupAsync(AssociateAttributeGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateAttributeGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateAttributeGroupResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region AssociateResource internal virtual AssociateResourceResponse AssociateResource(AssociateResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Associates a resource with an application. The resource can be specified by its ARN /// or name. The application can be specified by ARN, ID, or name. /// /// Container for the necessary parameters to execute the AssociateResource service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the AssociateResource service method, as returned by AppRegistry. /// /// There was a conflict when processing the request (for example, a resource with the /// given name already exists within the account). /// /// /// The service is experiencing internal problems. /// /// /// The specified resource does not exist. /// /// /// The maximum number of resources per account has been reached. /// /// /// The maximum number of API requests has been exceeded. /// /// /// The request has invalid or missing parameters. /// /// REST API Reference for AssociateResource Operation public virtual Task AssociateResourceAsync(AssociateResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateResourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateApplication internal virtual CreateApplicationResponse CreateApplication(CreateApplicationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateApplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateApplicationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a new application that is the top-level node in a hierarchy of related cloud /// resource abstractions. /// /// Container for the necessary parameters to execute the CreateApplication service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateApplication service method, as returned by AppRegistry. /// /// There was a conflict when processing the request (for example, a resource with the /// given name already exists within the account). /// /// /// The service is experiencing internal problems. /// /// /// The maximum number of resources per account has been reached. /// /// /// The maximum number of API requests has been exceeded. /// /// /// The request has invalid or missing parameters. /// /// REST API Reference for CreateApplication Operation public virtual Task CreateApplicationAsync(CreateApplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateApplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateApplicationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateAttributeGroup internal virtual CreateAttributeGroupResponse CreateAttributeGroup(CreateAttributeGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateAttributeGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateAttributeGroupResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a new attribute group as a container for user-defined attributes. This feature /// enables users to have full control over their cloud application's metadata in a rich /// machine-readable format to facilitate integration with automated workflows and third-party /// tools. /// /// Container for the necessary parameters to execute the CreateAttributeGroup service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateAttributeGroup service method, as returned by AppRegistry. /// /// There was a conflict when processing the request (for example, a resource with the /// given name already exists within the account). /// /// /// The service is experiencing internal problems. /// /// /// The maximum number of resources per account has been reached. /// /// /// The request has invalid or missing parameters. /// /// REST API Reference for CreateAttributeGroup Operation public virtual Task CreateAttributeGroupAsync(CreateAttributeGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateAttributeGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateAttributeGroupResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteApplication internal virtual DeleteApplicationResponse DeleteApplication(DeleteApplicationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteApplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteApplicationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes an application that is specified either by its application ID, name, or ARN. /// All associated attribute groups and resources must be disassociated from it before /// deleting an application. /// /// Container for the necessary parameters to execute the DeleteApplication service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteApplication service method, as returned by AppRegistry. /// /// The service is experiencing internal problems. /// /// /// The specified resource does not exist. /// /// /// The request has invalid or missing parameters. /// /// REST API Reference for DeleteApplication Operation public virtual Task DeleteApplicationAsync(DeleteApplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteApplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteApplicationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteAttributeGroup internal virtual DeleteAttributeGroupResponse DeleteAttributeGroup(DeleteAttributeGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAttributeGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAttributeGroupResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes an attribute group, specified either by its attribute group ID, name, or ARN. /// /// Container for the necessary parameters to execute the DeleteAttributeGroup service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteAttributeGroup service method, as returned by AppRegistry. /// /// The service is experiencing internal problems. /// /// /// The specified resource does not exist. /// /// /// The request has invalid or missing parameters. /// /// REST API Reference for DeleteAttributeGroup Operation public virtual Task DeleteAttributeGroupAsync(DeleteAttributeGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAttributeGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAttributeGroupResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DisassociateAttributeGroup internal virtual DisassociateAttributeGroupResponse DisassociateAttributeGroup(DisassociateAttributeGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateAttributeGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateAttributeGroupResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Disassociates an attribute group from an application to remove the extra attributes /// contained in the attribute group from the application's metadata. This operation reverts /// AssociateAttributeGroup. /// /// Container for the necessary parameters to execute the DisassociateAttributeGroup service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DisassociateAttributeGroup service method, as returned by AppRegistry. /// /// The service is experiencing internal problems. /// /// /// The specified resource does not exist. /// /// /// The request has invalid or missing parameters. /// /// REST API Reference for DisassociateAttributeGroup Operation public virtual Task DisassociateAttributeGroupAsync(DisassociateAttributeGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateAttributeGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateAttributeGroupResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DisassociateResource internal virtual DisassociateResourceResponse DisassociateResource(DisassociateResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Disassociates a resource from application. Both the resource and the application can /// be specified either by ID or name. /// /// Container for the necessary parameters to execute the DisassociateResource service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DisassociateResource service method, as returned by AppRegistry. /// /// The service is experiencing internal problems. /// /// /// The specified resource does not exist. /// /// /// The maximum number of API requests has been exceeded. /// /// /// The request has invalid or missing parameters. /// /// REST API Reference for DisassociateResource Operation public virtual Task DisassociateResourceAsync(DisassociateResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateResourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetApplication internal virtual GetApplicationResponse GetApplication(GetApplicationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetApplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetApplicationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieves metadata information about one of your applications. The application can /// be specified by its ARN, ID, or name (which is unique within one account in one region /// at a given point in time). Specify by ARN or ID in automated workflows if you want /// to make sure that the exact same application is returned or a ResourceNotFoundException /// is thrown, avoiding the ABA addressing problem. /// /// Container for the necessary parameters to execute the GetApplication service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetApplication service method, as returned by AppRegistry. /// /// There was a conflict when processing the request (for example, a resource with the /// given name already exists within the account). /// /// /// The service is experiencing internal problems. /// /// /// The specified resource does not exist. /// /// /// The request has invalid or missing parameters. /// /// REST API Reference for GetApplication Operation public virtual Task GetApplicationAsync(GetApplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetApplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetApplicationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetAssociatedResource internal virtual GetAssociatedResourceResponse GetAssociatedResource(GetAssociatedResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetAssociatedResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAssociatedResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets the resource associated with the application. /// /// Container for the necessary parameters to execute the GetAssociatedResource service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetAssociatedResource service method, as returned by AppRegistry. /// /// The service is experiencing internal problems. /// /// /// The specified resource does not exist. /// /// /// The request has invalid or missing parameters. /// /// REST API Reference for GetAssociatedResource Operation public virtual Task GetAssociatedResourceAsync(GetAssociatedResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetAssociatedResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAssociatedResourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetAttributeGroup internal virtual GetAttributeGroupResponse GetAttributeGroup(GetAttributeGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetAttributeGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAttributeGroupResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieves an attribute group by its ARN, ID, or name. The attribute group can be /// specified by its ARN, ID, or name. /// /// Container for the necessary parameters to execute the GetAttributeGroup service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetAttributeGroup service method, as returned by AppRegistry. /// /// There was a conflict when processing the request (for example, a resource with the /// given name already exists within the account). /// /// /// The service is experiencing internal problems. /// /// /// The specified resource does not exist. /// /// /// The request has invalid or missing parameters. /// /// REST API Reference for GetAttributeGroup Operation public virtual Task GetAttributeGroupAsync(GetAttributeGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetAttributeGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAttributeGroupResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetConfiguration internal virtual GetConfigurationResponse GetConfiguration(GetConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieves a TagKey configuration from an account. /// /// Container for the necessary parameters to execute the GetConfiguration service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetConfiguration service method, as returned by AppRegistry. /// /// The service is experiencing internal problems. /// /// REST API Reference for GetConfiguration Operation public virtual Task GetConfigurationAsync(GetConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetConfigurationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListApplications internal virtual ListApplicationsResponse ListApplications(ListApplicationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListApplicationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListApplicationsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieves a list of all of your applications. Results are paginated. /// /// Container for the necessary parameters to execute the ListApplications service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListApplications service method, as returned by AppRegistry. /// /// The service is experiencing internal problems. /// /// /// The request has invalid or missing parameters. /// /// REST API Reference for ListApplications Operation public virtual Task ListApplicationsAsync(ListApplicationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListApplicationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListApplicationsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListAssociatedAttributeGroups internal virtual ListAssociatedAttributeGroupsResponse ListAssociatedAttributeGroups(ListAssociatedAttributeGroupsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListAssociatedAttributeGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAssociatedAttributeGroupsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists all attribute groups that are associated with specified application. Results /// are paginated. /// /// Container for the necessary parameters to execute the ListAssociatedAttributeGroups service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListAssociatedAttributeGroups service method, as returned by AppRegistry. /// /// The service is experiencing internal problems. /// /// /// The specified resource does not exist. /// /// /// The request has invalid or missing parameters. /// /// REST API Reference for ListAssociatedAttributeGroups Operation public virtual Task ListAssociatedAttributeGroupsAsync(ListAssociatedAttributeGroupsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListAssociatedAttributeGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAssociatedAttributeGroupsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListAssociatedResources internal virtual ListAssociatedResourcesResponse ListAssociatedResources(ListAssociatedResourcesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListAssociatedResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAssociatedResourcesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists all of the resources that are associated with the specified application. Results /// are paginated. /// /// /// /// If you share an application, and a consumer account associates a tag query to the /// application, all of the users who can access the application can also view the tag /// values in all accounts that are associated with it using this API. /// /// /// /// Container for the necessary parameters to execute the ListAssociatedResources service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListAssociatedResources service method, as returned by AppRegistry. /// /// The service is experiencing internal problems. /// /// /// The specified resource does not exist. /// /// /// The request has invalid or missing parameters. /// /// REST API Reference for ListAssociatedResources Operation public virtual Task ListAssociatedResourcesAsync(ListAssociatedResourcesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListAssociatedResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAssociatedResourcesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListAttributeGroups internal virtual ListAttributeGroupsResponse ListAttributeGroups(ListAttributeGroupsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListAttributeGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAttributeGroupsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists all attribute groups which you have access to. Results are paginated. /// /// Container for the necessary parameters to execute the ListAttributeGroups service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListAttributeGroups service method, as returned by AppRegistry. /// /// The service is experiencing internal problems. /// /// /// The request has invalid or missing parameters. /// /// REST API Reference for ListAttributeGroups Operation public virtual Task ListAttributeGroupsAsync(ListAttributeGroupsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListAttributeGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAttributeGroupsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListAttributeGroupsForApplication internal virtual ListAttributeGroupsForApplicationResponse ListAttributeGroupsForApplication(ListAttributeGroupsForApplicationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListAttributeGroupsForApplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAttributeGroupsForApplicationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the details of all attribute groups associated with a specific application. /// The results display in pages. /// /// Container for the necessary parameters to execute the ListAttributeGroupsForApplication service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListAttributeGroupsForApplication service method, as returned by AppRegistry. /// /// The service is experiencing internal problems. /// /// /// The specified resource does not exist. /// /// /// The request has invalid or missing parameters. /// /// REST API Reference for ListAttributeGroupsForApplication Operation public virtual Task ListAttributeGroupsForApplicationAsync(ListAttributeGroupsForApplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListAttributeGroupsForApplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAttributeGroupsForApplicationResponseUnmarshaller.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 of the tags on the 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 AppRegistry. /// /// The service is experiencing internal problems. /// /// /// The specified resource does not exist. /// /// /// The request has invalid or missing parameters. /// /// 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 PutConfiguration internal virtual PutConfigurationResponse PutConfiguration(PutConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = PutConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Associates a TagKey configuration to an account. /// /// Container for the necessary parameters to execute the PutConfiguration service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the PutConfiguration service method, as returned by AppRegistry. /// /// There was a conflict when processing the request (for example, a resource with the /// given name already exists within the account). /// /// /// The service is experiencing internal problems. /// /// /// The request has invalid or missing parameters. /// /// REST API Reference for PutConfiguration Operation public virtual Task PutConfigurationAsync(PutConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = PutConfigurationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region SyncResource internal virtual SyncResourceResponse SyncResource(SyncResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SyncResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = SyncResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Syncs the resource with current AppRegistry records. /// /// /// /// Specifically, the resource’s AppRegistry system tags sync with its associated application. /// We remove the resource's AppRegistry system tags if it does not associate with the /// application. The caller must have permissions to read and update the resource. /// /// /// Container for the necessary parameters to execute the SyncResource service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the SyncResource service method, as returned by AppRegistry. /// /// There was a conflict when processing the request (for example, a resource with the /// given name already exists within the account). /// /// /// The service is experiencing internal problems. /// /// /// The specified resource does not exist. /// /// /// The maximum number of API requests has been exceeded. /// /// /// The request has invalid or missing parameters. /// /// REST API Reference for SyncResource Operation public virtual Task SyncResourceAsync(SyncResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = SyncResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = SyncResourceResponseUnmarshaller.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); } /// /// Assigns one or more tags (key-value pairs) to the specified resource. /// /// /// /// Each tag consists of a key and an optional value. If a tag with the same key is already /// associated with the resource, this action updates its value. /// /// /// /// This operation returns an empty response if the call was successful. /// /// /// 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 AppRegistry. /// /// The service is experiencing internal problems. /// /// /// The specified resource does not exist. /// /// /// The request has invalid or missing parameters. /// /// 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. /// /// /// /// This operation returns an empty response if the call was successful. /// /// /// 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 AppRegistry. /// /// The service is experiencing internal problems. /// /// /// The specified resource does not exist. /// /// /// The request has invalid or missing parameters. /// /// 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 UpdateApplication internal virtual UpdateApplicationResponse UpdateApplication(UpdateApplicationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateApplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateApplicationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates an existing application with new attributes. /// /// Container for the necessary parameters to execute the UpdateApplication service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateApplication service method, as returned by AppRegistry. /// /// There was a conflict when processing the request (for example, a resource with the /// given name already exists within the account). /// /// /// The service is experiencing internal problems. /// /// /// The specified resource does not exist. /// /// /// The maximum number of API requests has been exceeded. /// /// /// The request has invalid or missing parameters. /// /// REST API Reference for UpdateApplication Operation public virtual Task UpdateApplicationAsync(UpdateApplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateApplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateApplicationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateAttributeGroup internal virtual UpdateAttributeGroupResponse UpdateAttributeGroup(UpdateAttributeGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateAttributeGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateAttributeGroupResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates an existing attribute group with new details. /// /// Container for the necessary parameters to execute the UpdateAttributeGroup service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateAttributeGroup service method, as returned by AppRegistry. /// /// There was a conflict when processing the request (for example, a resource with the /// given name already exists within the account). /// /// /// The service is experiencing internal problems. /// /// /// The specified resource does not exist. /// /// /// The request has invalid or missing parameters. /// /// REST API Reference for UpdateAttributeGroup Operation public virtual Task UpdateAttributeGroupAsync(UpdateAttributeGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateAttributeGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateAttributeGroupResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion } }