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.
Namespace
Google.Cloud.ServiceUsage.V1Assembly
Google.Cloud.ServiceUsage.V1.dll
Methods
BindService(ServiceUsage.ServiceUsageBase)
public static ServerServiceDefinition BindService(ServiceUsage.ServiceUsageBase serviceImpl)
Creates service definition that can be registered with a server
Parameter | |
---|---|
Name | Description |
serviceImpl | ServiceUsage.ServiceUsageBase An object implementing the server-side handling logic. |
Returns | |
---|---|
Type | Description |
ServerServiceDefinition |
BindService(ServiceBinderBase, ServiceUsage.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 | |
---|---|
Name | Description |
serviceBinder | ServiceBinderBase Service methods will be bound by calling |
serviceImpl | ServiceUsage.ServiceUsageBase An object implementing the server-side handling logic. |