Compute Engine v1 API - Class ServiceCollectionExtensions (2.7.0)

public static class ServiceCollectionExtensions

Reference documentation and code samples for the Compute Engine v1 API class ServiceCollectionExtensions.

Static class to provide extension methods to configure API clients.

Inheritance

object > ServiceCollectionExtensions

Namespace

MicrosoftMicrosoft.ExtensionsDependencyInjection

Assembly

Google.Cloud.Compute.V1.dll

Methods

AddAcceleratorTypesClient(IServiceCollection, Action<AcceleratorTypesClientBuilder>)

public static IServiceCollection AddAcceleratorTypesClient(this IServiceCollection services, Action<AcceleratorTypesClientBuilder> action = null)

Adds a singleton AcceleratorTypesClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionAcceleratorTypesClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddAddressesClient(IServiceCollection, Action<AddressesClientBuilder>)

public static IServiceCollection AddAddressesClient(this IServiceCollection services, Action<AddressesClientBuilder> action = null)

Adds a singleton AddressesClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionAddressesClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddAutoscalersClient(IServiceCollection, Action<AutoscalersClientBuilder>)

public static IServiceCollection AddAutoscalersClient(this IServiceCollection services, Action<AutoscalersClientBuilder> action = null)

Adds a singleton AutoscalersClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionAutoscalersClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddBackendBucketsClient(IServiceCollection, Action<BackendBucketsClientBuilder>)

public static IServiceCollection AddBackendBucketsClient(this IServiceCollection services, Action<BackendBucketsClientBuilder> action = null)

Adds a singleton BackendBucketsClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionBackendBucketsClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddBackendServicesClient(IServiceCollection, Action<BackendServicesClientBuilder>)

public static IServiceCollection AddBackendServicesClient(this IServiceCollection services, Action<BackendServicesClientBuilder> action = null)

Adds a singleton BackendServicesClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionBackendServicesClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddDisksClient(IServiceCollection, Action<DisksClientBuilder>)

public static IServiceCollection AddDisksClient(this IServiceCollection services, Action<DisksClientBuilder> action = null)

Adds a singleton DisksClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionDisksClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddDiskTypesClient(IServiceCollection, Action<DiskTypesClientBuilder>)

public static IServiceCollection AddDiskTypesClient(this IServiceCollection services, Action<DiskTypesClientBuilder> action = null)

Adds a singleton DiskTypesClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionDiskTypesClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddExternalVpnGatewaysClient(IServiceCollection, Action<ExternalVpnGatewaysClientBuilder>)

public static IServiceCollection AddExternalVpnGatewaysClient(this IServiceCollection services, Action<ExternalVpnGatewaysClientBuilder> action = null)

Adds a singleton ExternalVpnGatewaysClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionExternalVpnGatewaysClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddFirewallPoliciesClient(IServiceCollection, Action<FirewallPoliciesClientBuilder>)

public static IServiceCollection AddFirewallPoliciesClient(this IServiceCollection services, Action<FirewallPoliciesClientBuilder> action = null)

Adds a singleton FirewallPoliciesClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionFirewallPoliciesClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddFirewallsClient(IServiceCollection, Action<FirewallsClientBuilder>)

public static IServiceCollection AddFirewallsClient(this IServiceCollection services, Action<FirewallsClientBuilder> action = null)

Adds a singleton FirewallsClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionFirewallsClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddForwardingRulesClient(IServiceCollection, Action<ForwardingRulesClientBuilder>)

public static IServiceCollection AddForwardingRulesClient(this IServiceCollection services, Action<ForwardingRulesClientBuilder> action = null)

Adds a singleton ForwardingRulesClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionForwardingRulesClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddGlobalAddressesClient(IServiceCollection, Action<GlobalAddressesClientBuilder>)

public static IServiceCollection AddGlobalAddressesClient(this IServiceCollection services, Action<GlobalAddressesClientBuilder> action = null)

Adds a singleton GlobalAddressesClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionGlobalAddressesClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddGlobalForwardingRulesClient(IServiceCollection, Action<GlobalForwardingRulesClientBuilder>)

public static IServiceCollection AddGlobalForwardingRulesClient(this IServiceCollection services, Action<GlobalForwardingRulesClientBuilder> action = null)

Adds a singleton GlobalForwardingRulesClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionGlobalForwardingRulesClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddGlobalNetworkEndpointGroupsClient(IServiceCollection, Action<GlobalNetworkEndpointGroupsClientBuilder>)

public static IServiceCollection AddGlobalNetworkEndpointGroupsClient(this IServiceCollection services, Action<GlobalNetworkEndpointGroupsClientBuilder> action = null)

Adds a singleton GlobalNetworkEndpointGroupsClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionGlobalNetworkEndpointGroupsClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddGlobalOperationsClient(IServiceCollection, Action<GlobalOperationsClientBuilder>)

public static IServiceCollection AddGlobalOperationsClient(this IServiceCollection services, Action<GlobalOperationsClientBuilder> action = null)

Adds a singleton GlobalOperationsClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionGlobalOperationsClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddGlobalOrganizationOperationsClient(IServiceCollection, Action<GlobalOrganizationOperationsClientBuilder>)

public static IServiceCollection AddGlobalOrganizationOperationsClient(this IServiceCollection services, Action<GlobalOrganizationOperationsClientBuilder> action = null)

Adds a singleton GlobalOrganizationOperationsClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionGlobalOrganizationOperationsClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddGlobalPublicDelegatedPrefixesClient(IServiceCollection, Action<GlobalPublicDelegatedPrefixesClientBuilder>)

public static IServiceCollection AddGlobalPublicDelegatedPrefixesClient(this IServiceCollection services, Action<GlobalPublicDelegatedPrefixesClientBuilder> action = null)

Adds a singleton GlobalPublicDelegatedPrefixesClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionGlobalPublicDelegatedPrefixesClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddHealthChecksClient(IServiceCollection, Action<HealthChecksClientBuilder>)

public static IServiceCollection AddHealthChecksClient(this IServiceCollection services, Action<HealthChecksClientBuilder> action = null)

Adds a singleton HealthChecksClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionHealthChecksClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddImageFamilyViewsClient(IServiceCollection, Action<ImageFamilyViewsClientBuilder>)

public static IServiceCollection AddImageFamilyViewsClient(this IServiceCollection services, Action<ImageFamilyViewsClientBuilder> action = null)

Adds a singleton ImageFamilyViewsClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionImageFamilyViewsClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddImagesClient(IServiceCollection, Action<ImagesClientBuilder>)

public static IServiceCollection AddImagesClient(this IServiceCollection services, Action<ImagesClientBuilder> action = null)

Adds a singleton ImagesClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionImagesClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddInstanceGroupManagersClient(IServiceCollection, Action<InstanceGroupManagersClientBuilder>)

public static IServiceCollection AddInstanceGroupManagersClient(this IServiceCollection services, Action<InstanceGroupManagersClientBuilder> action = null)

Adds a singleton InstanceGroupManagersClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionInstanceGroupManagersClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddInstanceGroupsClient(IServiceCollection, Action<InstanceGroupsClientBuilder>)

public static IServiceCollection AddInstanceGroupsClient(this IServiceCollection services, Action<InstanceGroupsClientBuilder> action = null)

Adds a singleton InstanceGroupsClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionInstanceGroupsClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddInstancesClient(IServiceCollection, Action<InstancesClientBuilder>)

public static IServiceCollection AddInstancesClient(this IServiceCollection services, Action<InstancesClientBuilder> action = null)

Adds a singleton InstancesClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionInstancesClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddInstanceTemplatesClient(IServiceCollection, Action<InstanceTemplatesClientBuilder>)

public static IServiceCollection AddInstanceTemplatesClient(this IServiceCollection services, Action<InstanceTemplatesClientBuilder> action = null)

Adds a singleton InstanceTemplatesClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionInstanceTemplatesClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddInterconnectAttachmentsClient(IServiceCollection, Action<InterconnectAttachmentsClientBuilder>)

public static IServiceCollection AddInterconnectAttachmentsClient(this IServiceCollection services, Action<InterconnectAttachmentsClientBuilder> action = null)

Adds a singleton InterconnectAttachmentsClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionInterconnectAttachmentsClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddInterconnectLocationsClient(IServiceCollection, Action<InterconnectLocationsClientBuilder>)

public static IServiceCollection AddInterconnectLocationsClient(this IServiceCollection services, Action<InterconnectLocationsClientBuilder> action = null)

Adds a singleton InterconnectLocationsClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionInterconnectLocationsClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddInterconnectsClient(IServiceCollection, Action<InterconnectsClientBuilder>)

public static IServiceCollection AddInterconnectsClient(this IServiceCollection services, Action<InterconnectsClientBuilder> action = null)

Adds a singleton InterconnectsClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionInterconnectsClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddLicenseCodesClient(IServiceCollection, Action<LicenseCodesClientBuilder>)

public static IServiceCollection AddLicenseCodesClient(this IServiceCollection services, Action<LicenseCodesClientBuilder> action = null)

Adds a singleton LicenseCodesClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionLicenseCodesClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddLicensesClient(IServiceCollection, Action<LicensesClientBuilder>)

public static IServiceCollection AddLicensesClient(this IServiceCollection services, Action<LicensesClientBuilder> action = null)

Adds a singleton LicensesClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionLicensesClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddMachineImagesClient(IServiceCollection, Action<MachineImagesClientBuilder>)

public static IServiceCollection AddMachineImagesClient(this IServiceCollection services, Action<MachineImagesClientBuilder> action = null)

Adds a singleton MachineImagesClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionMachineImagesClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddMachineTypesClient(IServiceCollection, Action<MachineTypesClientBuilder>)

public static IServiceCollection AddMachineTypesClient(this IServiceCollection services, Action<MachineTypesClientBuilder> action = null)

Adds a singleton MachineTypesClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionMachineTypesClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddNetworkAttachmentsClient(IServiceCollection, Action<NetworkAttachmentsClientBuilder>)

public static IServiceCollection AddNetworkAttachmentsClient(this IServiceCollection services, Action<NetworkAttachmentsClientBuilder> action = null)

Adds a singleton NetworkAttachmentsClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionNetworkAttachmentsClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddNetworkEdgeSecurityServicesClient(IServiceCollection, Action<NetworkEdgeSecurityServicesClientBuilder>)

public static IServiceCollection AddNetworkEdgeSecurityServicesClient(this IServiceCollection services, Action<NetworkEdgeSecurityServicesClientBuilder> action = null)

Adds a singleton NetworkEdgeSecurityServicesClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionNetworkEdgeSecurityServicesClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddNetworkEndpointGroupsClient(IServiceCollection, Action<NetworkEndpointGroupsClientBuilder>)

public static IServiceCollection AddNetworkEndpointGroupsClient(this IServiceCollection services, Action<NetworkEndpointGroupsClientBuilder> action = null)

Adds a singleton NetworkEndpointGroupsClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionNetworkEndpointGroupsClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddNetworkFirewallPoliciesClient(IServiceCollection, Action<NetworkFirewallPoliciesClientBuilder>)

public static IServiceCollection AddNetworkFirewallPoliciesClient(this IServiceCollection services, Action<NetworkFirewallPoliciesClientBuilder> action = null)

Adds a singleton NetworkFirewallPoliciesClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionNetworkFirewallPoliciesClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddNetworksClient(IServiceCollection, Action<NetworksClientBuilder>)

public static IServiceCollection AddNetworksClient(this IServiceCollection services, Action<NetworksClientBuilder> action = null)

Adds a singleton NetworksClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionNetworksClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddNodeGroupsClient(IServiceCollection, Action<NodeGroupsClientBuilder>)

public static IServiceCollection AddNodeGroupsClient(this IServiceCollection services, Action<NodeGroupsClientBuilder> action = null)

Adds a singleton NodeGroupsClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionNodeGroupsClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddNodeTemplatesClient(IServiceCollection, Action<NodeTemplatesClientBuilder>)

public static IServiceCollection AddNodeTemplatesClient(this IServiceCollection services, Action<NodeTemplatesClientBuilder> action = null)

Adds a singleton NodeTemplatesClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionNodeTemplatesClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddNodeTypesClient(IServiceCollection, Action<NodeTypesClientBuilder>)

public static IServiceCollection AddNodeTypesClient(this IServiceCollection services, Action<NodeTypesClientBuilder> action = null)

Adds a singleton NodeTypesClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionNodeTypesClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddPacketMirroringsClient(IServiceCollection, Action<PacketMirroringsClientBuilder>)

public static IServiceCollection AddPacketMirroringsClient(this IServiceCollection services, Action<PacketMirroringsClientBuilder> action = null)

Adds a singleton PacketMirroringsClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionPacketMirroringsClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddProjectsClient(IServiceCollection, Action<ProjectsClientBuilder>)

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

Adds a singleton ProjectsClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionProjectsClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddPublicAdvertisedPrefixesClient(IServiceCollection, Action<PublicAdvertisedPrefixesClientBuilder>)

public static IServiceCollection AddPublicAdvertisedPrefixesClient(this IServiceCollection services, Action<PublicAdvertisedPrefixesClientBuilder> action = null)

Adds a singleton PublicAdvertisedPrefixesClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionPublicAdvertisedPrefixesClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddPublicDelegatedPrefixesClient(IServiceCollection, Action<PublicDelegatedPrefixesClientBuilder>)

public static IServiceCollection AddPublicDelegatedPrefixesClient(this IServiceCollection services, Action<PublicDelegatedPrefixesClientBuilder> action = null)

Adds a singleton PublicDelegatedPrefixesClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionPublicDelegatedPrefixesClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddRegionAutoscalersClient(IServiceCollection, Action<RegionAutoscalersClientBuilder>)

public static IServiceCollection AddRegionAutoscalersClient(this IServiceCollection services, Action<RegionAutoscalersClientBuilder> action = null)

Adds a singleton RegionAutoscalersClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionRegionAutoscalersClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddRegionBackendServicesClient(IServiceCollection, Action<RegionBackendServicesClientBuilder>)

public static IServiceCollection AddRegionBackendServicesClient(this IServiceCollection services, Action<RegionBackendServicesClientBuilder> action = null)

Adds a singleton RegionBackendServicesClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionRegionBackendServicesClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddRegionCommitmentsClient(IServiceCollection, Action<RegionCommitmentsClientBuilder>)

public static IServiceCollection AddRegionCommitmentsClient(this IServiceCollection services, Action<RegionCommitmentsClientBuilder> action = null)

Adds a singleton RegionCommitmentsClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionRegionCommitmentsClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddRegionDisksClient(IServiceCollection, Action<RegionDisksClientBuilder>)

public static IServiceCollection AddRegionDisksClient(this IServiceCollection services, Action<RegionDisksClientBuilder> action = null)

Adds a singleton RegionDisksClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionRegionDisksClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddRegionDiskTypesClient(IServiceCollection, Action<RegionDiskTypesClientBuilder>)

public static IServiceCollection AddRegionDiskTypesClient(this IServiceCollection services, Action<RegionDiskTypesClientBuilder> action = null)

Adds a singleton RegionDiskTypesClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionRegionDiskTypesClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddRegionHealthChecksClient(IServiceCollection, Action<RegionHealthChecksClientBuilder>)

public static IServiceCollection AddRegionHealthChecksClient(this IServiceCollection services, Action<RegionHealthChecksClientBuilder> action = null)

Adds a singleton RegionHealthChecksClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionRegionHealthChecksClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddRegionHealthCheckServicesClient(IServiceCollection, Action<RegionHealthCheckServicesClientBuilder>)

public static IServiceCollection AddRegionHealthCheckServicesClient(this IServiceCollection services, Action<RegionHealthCheckServicesClientBuilder> action = null)

Adds a singleton RegionHealthCheckServicesClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionRegionHealthCheckServicesClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddRegionInstanceGroupManagersClient(IServiceCollection, Action<RegionInstanceGroupManagersClientBuilder>)

public static IServiceCollection AddRegionInstanceGroupManagersClient(this IServiceCollection services, Action<RegionInstanceGroupManagersClientBuilder> action = null)

Adds a singleton RegionInstanceGroupManagersClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionRegionInstanceGroupManagersClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddRegionInstanceGroupsClient(IServiceCollection, Action<RegionInstanceGroupsClientBuilder>)

public static IServiceCollection AddRegionInstanceGroupsClient(this IServiceCollection services, Action<RegionInstanceGroupsClientBuilder> action = null)

Adds a singleton RegionInstanceGroupsClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionRegionInstanceGroupsClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddRegionInstancesClient(IServiceCollection, Action<RegionInstancesClientBuilder>)

public static IServiceCollection AddRegionInstancesClient(this IServiceCollection services, Action<RegionInstancesClientBuilder> action = null)

Adds a singleton RegionInstancesClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionRegionInstancesClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddRegionNetworkEndpointGroupsClient(IServiceCollection, Action<RegionNetworkEndpointGroupsClientBuilder>)

public static IServiceCollection AddRegionNetworkEndpointGroupsClient(this IServiceCollection services, Action<RegionNetworkEndpointGroupsClientBuilder> action = null)

Adds a singleton RegionNetworkEndpointGroupsClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionRegionNetworkEndpointGroupsClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddRegionNetworkFirewallPoliciesClient(IServiceCollection, Action<RegionNetworkFirewallPoliciesClientBuilder>)

public static IServiceCollection AddRegionNetworkFirewallPoliciesClient(this IServiceCollection services, Action<RegionNetworkFirewallPoliciesClientBuilder> action = null)

Adds a singleton RegionNetworkFirewallPoliciesClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionRegionNetworkFirewallPoliciesClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddRegionNotificationEndpointsClient(IServiceCollection, Action<RegionNotificationEndpointsClientBuilder>)

public static IServiceCollection AddRegionNotificationEndpointsClient(this IServiceCollection services, Action<RegionNotificationEndpointsClientBuilder> action = null)

Adds a singleton RegionNotificationEndpointsClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionRegionNotificationEndpointsClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddRegionOperationsClient(IServiceCollection, Action<RegionOperationsClientBuilder>)

public static IServiceCollection AddRegionOperationsClient(this IServiceCollection services, Action<RegionOperationsClientBuilder> action = null)

Adds a singleton RegionOperationsClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionRegionOperationsClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddRegionsClient(IServiceCollection, Action<RegionsClientBuilder>)

public static IServiceCollection AddRegionsClient(this IServiceCollection services, Action<RegionsClientBuilder> action = null)

Adds a singleton RegionsClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionRegionsClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddRegionSecurityPoliciesClient(IServiceCollection, Action<RegionSecurityPoliciesClientBuilder>)

public static IServiceCollection AddRegionSecurityPoliciesClient(this IServiceCollection services, Action<RegionSecurityPoliciesClientBuilder> action = null)

Adds a singleton RegionSecurityPoliciesClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionRegionSecurityPoliciesClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddRegionSslCertificatesClient(IServiceCollection, Action<RegionSslCertificatesClientBuilder>)

public static IServiceCollection AddRegionSslCertificatesClient(this IServiceCollection services, Action<RegionSslCertificatesClientBuilder> action = null)

Adds a singleton RegionSslCertificatesClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionRegionSslCertificatesClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddRegionSslPoliciesClient(IServiceCollection, Action<RegionSslPoliciesClientBuilder>)

public static IServiceCollection AddRegionSslPoliciesClient(this IServiceCollection services, Action<RegionSslPoliciesClientBuilder> action = null)

Adds a singleton RegionSslPoliciesClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionRegionSslPoliciesClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddRegionTargetHttpProxiesClient(IServiceCollection, Action<RegionTargetHttpProxiesClientBuilder>)

public static IServiceCollection AddRegionTargetHttpProxiesClient(this IServiceCollection services, Action<RegionTargetHttpProxiesClientBuilder> action = null)

Adds a singleton RegionTargetHttpProxiesClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionRegionTargetHttpProxiesClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddRegionTargetHttpsProxiesClient(IServiceCollection, Action<RegionTargetHttpsProxiesClientBuilder>)

public static IServiceCollection AddRegionTargetHttpsProxiesClient(this IServiceCollection services, Action<RegionTargetHttpsProxiesClientBuilder> action = null)

Adds a singleton RegionTargetHttpsProxiesClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionRegionTargetHttpsProxiesClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddRegionTargetTcpProxiesClient(IServiceCollection, Action<RegionTargetTcpProxiesClientBuilder>)

public static IServiceCollection AddRegionTargetTcpProxiesClient(this IServiceCollection services, Action<RegionTargetTcpProxiesClientBuilder> action = null)

Adds a singleton RegionTargetTcpProxiesClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionRegionTargetTcpProxiesClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddRegionUrlMapsClient(IServiceCollection, Action<RegionUrlMapsClientBuilder>)

public static IServiceCollection AddRegionUrlMapsClient(this IServiceCollection services, Action<RegionUrlMapsClientBuilder> action = null)

Adds a singleton RegionUrlMapsClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionRegionUrlMapsClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddReservationsClient(IServiceCollection, Action<ReservationsClientBuilder>)

public static IServiceCollection AddReservationsClient(this IServiceCollection services, Action<ReservationsClientBuilder> action = null)

Adds a singleton ReservationsClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionReservationsClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddResourcePoliciesClient(IServiceCollection, Action<ResourcePoliciesClientBuilder>)

public static IServiceCollection AddResourcePoliciesClient(this IServiceCollection services, Action<ResourcePoliciesClientBuilder> action = null)

Adds a singleton ResourcePoliciesClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionResourcePoliciesClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddRoutersClient(IServiceCollection, Action<RoutersClientBuilder>)

public static IServiceCollection AddRoutersClient(this IServiceCollection services, Action<RoutersClientBuilder> action = null)

Adds a singleton RoutersClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionRoutersClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddRoutesClient(IServiceCollection, Action<RoutesClientBuilder>)

public static IServiceCollection AddRoutesClient(this IServiceCollection services, Action<RoutesClientBuilder> action = null)

Adds a singleton RoutesClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionRoutesClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddSecurityPoliciesClient(IServiceCollection, Action<SecurityPoliciesClientBuilder>)

public static IServiceCollection AddSecurityPoliciesClient(this IServiceCollection services, Action<SecurityPoliciesClientBuilder> action = null)

Adds a singleton SecurityPoliciesClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionSecurityPoliciesClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddServiceAttachmentsClient(IServiceCollection, Action<ServiceAttachmentsClientBuilder>)

public static IServiceCollection AddServiceAttachmentsClient(this IServiceCollection services, Action<ServiceAttachmentsClientBuilder> action = null)

Adds a singleton ServiceAttachmentsClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionServiceAttachmentsClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddSnapshotsClient(IServiceCollection, Action<SnapshotsClientBuilder>)

public static IServiceCollection AddSnapshotsClient(this IServiceCollection services, Action<SnapshotsClientBuilder> action = null)

Adds a singleton SnapshotsClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionSnapshotsClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddSslCertificatesClient(IServiceCollection, Action<SslCertificatesClientBuilder>)

public static IServiceCollection AddSslCertificatesClient(this IServiceCollection services, Action<SslCertificatesClientBuilder> action = null)

Adds a singleton SslCertificatesClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionSslCertificatesClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddSslPoliciesClient(IServiceCollection, Action<SslPoliciesClientBuilder>)

public static IServiceCollection AddSslPoliciesClient(this IServiceCollection services, Action<SslPoliciesClientBuilder> action = null)

Adds a singleton SslPoliciesClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionSslPoliciesClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddSubnetworksClient(IServiceCollection, Action<SubnetworksClientBuilder>)

public static IServiceCollection AddSubnetworksClient(this IServiceCollection services, Action<SubnetworksClientBuilder> action = null)

Adds a singleton SubnetworksClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionSubnetworksClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddTargetGrpcProxiesClient(IServiceCollection, Action<TargetGrpcProxiesClientBuilder>)

public static IServiceCollection AddTargetGrpcProxiesClient(this IServiceCollection services, Action<TargetGrpcProxiesClientBuilder> action = null)

Adds a singleton TargetGrpcProxiesClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionTargetGrpcProxiesClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddTargetHttpProxiesClient(IServiceCollection, Action<TargetHttpProxiesClientBuilder>)

public static IServiceCollection AddTargetHttpProxiesClient(this IServiceCollection services, Action<TargetHttpProxiesClientBuilder> action = null)

Adds a singleton TargetHttpProxiesClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionTargetHttpProxiesClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddTargetHttpsProxiesClient(IServiceCollection, Action<TargetHttpsProxiesClientBuilder>)

public static IServiceCollection AddTargetHttpsProxiesClient(this IServiceCollection services, Action<TargetHttpsProxiesClientBuilder> action = null)

Adds a singleton TargetHttpsProxiesClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionTargetHttpsProxiesClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddTargetInstancesClient(IServiceCollection, Action<TargetInstancesClientBuilder>)

public static IServiceCollection AddTargetInstancesClient(this IServiceCollection services, Action<TargetInstancesClientBuilder> action = null)

Adds a singleton TargetInstancesClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionTargetInstancesClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddTargetPoolsClient(IServiceCollection, Action<TargetPoolsClientBuilder>)

public static IServiceCollection AddTargetPoolsClient(this IServiceCollection services, Action<TargetPoolsClientBuilder> action = null)

Adds a singleton TargetPoolsClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionTargetPoolsClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddTargetSslProxiesClient(IServiceCollection, Action<TargetSslProxiesClientBuilder>)

public static IServiceCollection AddTargetSslProxiesClient(this IServiceCollection services, Action<TargetSslProxiesClientBuilder> action = null)

Adds a singleton TargetSslProxiesClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionTargetSslProxiesClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddTargetTcpProxiesClient(IServiceCollection, Action<TargetTcpProxiesClientBuilder>)

public static IServiceCollection AddTargetTcpProxiesClient(this IServiceCollection services, Action<TargetTcpProxiesClientBuilder> action = null)

Adds a singleton TargetTcpProxiesClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionTargetTcpProxiesClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddTargetVpnGatewaysClient(IServiceCollection, Action<TargetVpnGatewaysClientBuilder>)

public static IServiceCollection AddTargetVpnGatewaysClient(this IServiceCollection services, Action<TargetVpnGatewaysClientBuilder> action = null)

Adds a singleton TargetVpnGatewaysClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionTargetVpnGatewaysClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddUrlMapsClient(IServiceCollection, Action<UrlMapsClientBuilder>)

public static IServiceCollection AddUrlMapsClient(this IServiceCollection services, Action<UrlMapsClientBuilder> action = null)

Adds a singleton UrlMapsClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionUrlMapsClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddVpnGatewaysClient(IServiceCollection, Action<VpnGatewaysClientBuilder>)

public static IServiceCollection AddVpnGatewaysClient(this IServiceCollection services, Action<VpnGatewaysClientBuilder> action = null)

Adds a singleton VpnGatewaysClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionVpnGatewaysClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddVpnTunnelsClient(IServiceCollection, Action<VpnTunnelsClientBuilder>)

public static IServiceCollection AddVpnTunnelsClient(this IServiceCollection services, Action<VpnTunnelsClientBuilder> action = null)

Adds a singleton VpnTunnelsClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionVpnTunnelsClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddZoneOperationsClient(IServiceCollection, Action<ZoneOperationsClientBuilder>)

public static IServiceCollection AddZoneOperationsClient(this IServiceCollection services, Action<ZoneOperationsClientBuilder> action = null)

Adds a singleton ZoneOperationsClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionZoneOperationsClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddZonesClient(IServiceCollection, Action<ZonesClientBuilder>)

public static IServiceCollection AddZonesClient(this IServiceCollection services, Action<ZonesClientBuilder> action = null)

Adds a singleton ZonesClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionZonesClientBuilder

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

Returns
TypeDescription
IServiceCollection