Service Usage v1 API - Class ServiceUsage (2.3.0)

public static class ServiceUsage

Reference documentation and code samples for the Service Usage v1 API class ServiceUsage.

Enables services that service consumers want to use on Google Cloud Platform, lists the available or enabled services, or disables services that service consumers no longer use.

See Service Usage API

Inheritance

object > ServiceUsage

Namespace

Google.Cloud.ServiceUsage.V1

Assembly

Google.Cloud.ServiceUsage.V1.dll

Methods

BindService(ServiceUsageBase)

public static ServerServiceDefinition BindService(ServiceUsage.ServiceUsageBase serviceImpl)

Creates service definition that can be registered with a server

Parameter
NameDescription
serviceImplServiceUsageServiceUsageBase

An object implementing the server-side handling logic.

Returns
TypeDescription
ServerServiceDefinition

BindService(ServiceBinderBase, ServiceUsageBase)

public static void BindService(ServiceBinderBase serviceBinder, ServiceUsage.ServiceUsageBase serviceImpl)

Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. Note: this method is part of an experimental API that can change or be removed without any prior notice.

Parameters
NameDescription
serviceBinderServiceBinderBase

Service methods will be bound by calling AddMethod on this object.

serviceImplServiceUsageServiceUsageBase

An object implementing the server-side handling logic.