Cloud Resource Manager v3 API - Class ServiceCollectionExtensions (2.5.0)

public static class ServiceCollectionExtensions

Reference documentation and code samples for the Cloud Resource Manager v3 API class ServiceCollectionExtensions.

Static class to provide extension methods to configure API clients.

Inheritance

object > ServiceCollectionExtensions

Namespace

Microsoft.Extensions.DependencyInjection

Assembly

Google.Cloud.ResourceManager.V3.dll

Methods

AddFoldersClient(IServiceCollection, Action<FoldersClientBuilder>)

public static IServiceCollection AddFoldersClient(this IServiceCollection services, Action<FoldersClientBuilder> action = null)

Adds a singleton FoldersClient to services.

Parameters
Name Description
services IServiceCollection

The service collection to add the client to. The services are used to configure the client when requested.

action ActionFoldersClientBuilder

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
Type Description
IServiceCollection

AddFoldersClient(IServiceCollection, Action<IServiceProvider, FoldersClientBuilder>)

public static IServiceCollection AddFoldersClient(this IServiceCollection services, Action<IServiceProvider, FoldersClientBuilder> action)

Adds a singleton FoldersClient to services.

Parameters
Name Description
services IServiceCollection

The service collection to add the client to. The services are used to configure the client when requested.

action ActionIServiceProviderFoldersClientBuilder

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
Type Description
IServiceCollection

AddOrganizationsClient(IServiceCollection, Action<OrganizationsClientBuilder>)

public static IServiceCollection AddOrganizationsClient(this IServiceCollection services, Action<OrganizationsClientBuilder> action = null)

Adds a singleton OrganizationsClient to services.

Parameters
Name Description
services IServiceCollection

The service collection to add the client to. The services are used to configure the client when requested.

action ActionOrganizationsClientBuilder

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
Type Description
IServiceCollection

AddOrganizationsClient(IServiceCollection, Action<IServiceProvider, OrganizationsClientBuilder>)

public static IServiceCollection AddOrganizationsClient(this IServiceCollection services, Action<IServiceProvider, OrganizationsClientBuilder> action)

Adds a singleton OrganizationsClient to services.

Parameters
Name Description
services IServiceCollection

The service collection to add the client to. The services are used to configure the client when requested.

action ActionIServiceProviderOrganizationsClientBuilder

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
Type Description
IServiceCollection

AddProjectsClient(IServiceCollection, Action<ProjectsClientBuilder>)

public static IServiceCollection AddProjectsClient(this IServiceCollection services, Action<ProjectsClientBuilder> action = null)

Adds a singleton ProjectsClient to services.

Parameters
Name Description
services IServiceCollection

The service collection to add the client to. The services are used to configure the client when requested.

action ActionProjectsClientBuilder

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
Type Description
IServiceCollection

AddProjectsClient(IServiceCollection, Action<IServiceProvider, ProjectsClientBuilder>)

public static IServiceCollection AddProjectsClient(this IServiceCollection services, Action<IServiceProvider, ProjectsClientBuilder> action)

Adds a singleton ProjectsClient to services.

Parameters
Name Description
services IServiceCollection

The service collection to add the client to. The services are used to configure the client when requested.

action ActionIServiceProviderProjectsClientBuilder

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
Type Description
IServiceCollection

AddTagBindingsClient(IServiceCollection, Action<TagBindingsClientBuilder>)

public static IServiceCollection AddTagBindingsClient(this IServiceCollection services, Action<TagBindingsClientBuilder> action = null)

Adds a singleton TagBindingsClient to services.

Parameters
Name Description
services IServiceCollection

The service collection to add the client to. The services are used to configure the client when requested.

action ActionTagBindingsClientBuilder

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
Type Description
IServiceCollection

AddTagBindingsClient(IServiceCollection, Action<IServiceProvider, TagBindingsClientBuilder>)

public static IServiceCollection AddTagBindingsClient(this IServiceCollection services, Action<IServiceProvider, TagBindingsClientBuilder> action)

Adds a singleton TagBindingsClient to services.

Parameters
Name Description
services IServiceCollection

The service collection to add the client to. The services are used to configure the client when requested.

action ActionIServiceProviderTagBindingsClientBuilder

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
Type Description
IServiceCollection

AddTagHoldsClient(IServiceCollection, Action<TagHoldsClientBuilder>)

public static IServiceCollection AddTagHoldsClient(this IServiceCollection services, Action<TagHoldsClientBuilder> action = null)

Adds a singleton TagHoldsClient to services.

Parameters
Name Description
services IServiceCollection

The service collection to add the client to. The services are used to configure the client when requested.

action ActionTagHoldsClientBuilder

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
Type Description
IServiceCollection

AddTagHoldsClient(IServiceCollection, Action<IServiceProvider, TagHoldsClientBuilder>)

public static IServiceCollection AddTagHoldsClient(this IServiceCollection services, Action<IServiceProvider, TagHoldsClientBuilder> action)

Adds a singleton TagHoldsClient to services.

Parameters
Name Description
services IServiceCollection

The service collection to add the client to. The services are used to configure the client when requested.

action ActionIServiceProviderTagHoldsClientBuilder

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
Type Description
IServiceCollection

AddTagKeysClient(IServiceCollection, Action<TagKeysClientBuilder>)

public static IServiceCollection AddTagKeysClient(this IServiceCollection services, Action<TagKeysClientBuilder> action = null)

Adds a singleton TagKeysClient to services.

Parameters
Name Description
services IServiceCollection

The service collection to add the client to. The services are used to configure the client when requested.

action ActionTagKeysClientBuilder

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
Type Description
IServiceCollection

AddTagKeysClient(IServiceCollection, Action<IServiceProvider, TagKeysClientBuilder>)

public static IServiceCollection AddTagKeysClient(this IServiceCollection services, Action<IServiceProvider, TagKeysClientBuilder> action)

Adds a singleton TagKeysClient to services.

Parameters
Name Description
services IServiceCollection

The service collection to add the client to. The services are used to configure the client when requested.

action ActionIServiceProviderTagKeysClientBuilder

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
Type Description
IServiceCollection

AddTagValuesClient(IServiceCollection, Action<TagValuesClientBuilder>)

public static IServiceCollection AddTagValuesClient(this IServiceCollection services, Action<TagValuesClientBuilder> action = null)

Adds a singleton TagValuesClient to services.

Parameters
Name Description
services IServiceCollection

The service collection to add the client to. The services are used to configure the client when requested.

action ActionTagValuesClientBuilder

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
Type Description
IServiceCollection

AddTagValuesClient(IServiceCollection, Action<IServiceProvider, TagValuesClientBuilder>)

public static IServiceCollection AddTagValuesClient(this IServiceCollection services, Action<IServiceProvider, TagValuesClientBuilder> action)

Adds a singleton TagValuesClient to services.

Parameters
Name Description
services IServiceCollection

The service collection to add the client to. The services are used to configure the client when requested.

action ActionIServiceProviderTagValuesClientBuilder

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
Type Description
IServiceCollection