public static class ServiceCollectionExtensionsReference documentation and code samples for the Identity and Access Management (IAM) v3 API class ServiceCollectionExtensions.
Static class to provide extension methods to configure API clients.
Namespace
Microsoft.Extensions.DependencyInjectionAssembly
Google.Cloud.Iam.V3.dll
Methods
AddPolicyBindingsClient(IServiceCollection, Action<PolicyBindingsClientBuilder>)
public static IServiceCollection AddPolicyBindingsClient(this IServiceCollection services, Action<PolicyBindingsClientBuilder> action = null)Adds a singleton PolicyBindingsClient to services.
| Parameters | |
|---|---|
| Name | Description |
services |
IServiceCollectionThe service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionPolicyBindingsClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddPolicyBindingsClient(IServiceCollection, Action<IServiceProvider, PolicyBindingsClientBuilder>)
public static IServiceCollection AddPolicyBindingsClient(this IServiceCollection services, Action<IServiceProvider, PolicyBindingsClientBuilder> action)Adds a singleton PolicyBindingsClient to services.
| Parameters | |
|---|---|
| Name | Description |
services |
IServiceCollectionThe service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionSystem.IServiceProviderPolicyBindingsClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddPrincipalAccessBoundaryPoliciesClient(IServiceCollection, Action<PrincipalAccessBoundaryPoliciesClientBuilder>)
public static IServiceCollection AddPrincipalAccessBoundaryPoliciesClient(this IServiceCollection services, Action<PrincipalAccessBoundaryPoliciesClientBuilder> action = null)Adds a singleton PrincipalAccessBoundaryPoliciesClient to services.
| Parameters | |
|---|---|
| Name | Description |
services |
IServiceCollectionThe service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionPrincipalAccessBoundaryPoliciesClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddPrincipalAccessBoundaryPoliciesClient(IServiceCollection, Action<IServiceProvider, PrincipalAccessBoundaryPoliciesClientBuilder>)
public static IServiceCollection AddPrincipalAccessBoundaryPoliciesClient(this IServiceCollection services, Action<IServiceProvider, PrincipalAccessBoundaryPoliciesClientBuilder> action)Adds a singleton PrincipalAccessBoundaryPoliciesClient to services.
| Parameters | |
|---|---|
| Name | Description |
services |
IServiceCollectionThe service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionSystem.IServiceProviderPrincipalAccessBoundaryPoliciesClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|