Cloud Run Admin v2 API - Class Services.ServicesBase (2.7.0)

[BindServiceMethod(typeof(Services), "BindService")]
public abstract class Services.ServicesBase

Reference documentation and code samples for the Cloud Run Admin v2 API class Services.ServicesBase.

Base class for server-side implementations of Services

Inheritance

object > Services.ServicesBase

Namespace

Google.Cloud.Run.V2

Assembly

Google.Cloud.Run.V2.dll

Methods

CreateService(CreateServiceRequest, ServerCallContext)

public virtual Task<Operation> CreateService(CreateServiceRequest request, ServerCallContext context)

Creates a new Service in a given project and location.

Parameters
NameDescription
requestCreateServiceRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).

DeleteService(DeleteServiceRequest, ServerCallContext)

public virtual Task<Operation> DeleteService(DeleteServiceRequest request, ServerCallContext context)

Deletes a Service. This will cause the Service to stop serving traffic and will delete all revisions.

Parameters
NameDescription
requestDeleteServiceRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).

GetIamPolicy(GetIamPolicyRequest, ServerCallContext)

public virtual Task<Policy> GetIamPolicy(GetIamPolicyRequest request, ServerCallContext context)

Gets the IAM Access Control policy currently in effect for the given Cloud Run Service. This result does not include any inherited policies.

Parameters
NameDescription
requestGetIamPolicyRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskPolicy

The response to send back to the client (wrapped by a task).

GetService(GetServiceRequest, ServerCallContext)

public virtual Task<Service> GetService(GetServiceRequest request, ServerCallContext context)

Gets information about a Service.

Parameters
NameDescription
requestGetServiceRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskService

The response to send back to the client (wrapped by a task).

ListServices(ListServicesRequest, ServerCallContext)

public virtual Task<ListServicesResponse> ListServices(ListServicesRequest request, ServerCallContext context)

Lists Services.

Parameters
NameDescription
requestListServicesRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskListServicesResponse

The response to send back to the client (wrapped by a task).

SetIamPolicy(SetIamPolicyRequest, ServerCallContext)

public virtual Task<Policy> SetIamPolicy(SetIamPolicyRequest request, ServerCallContext context)

Sets the IAM Access control policy for the specified Service. Overwrites any existing policy.

Parameters
NameDescription
requestSetIamPolicyRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskPolicy

The response to send back to the client (wrapped by a task).

TestIamPermissions(TestIamPermissionsRequest, ServerCallContext)

public virtual Task<TestIamPermissionsResponse> TestIamPermissions(TestIamPermissionsRequest request, ServerCallContext context)

Returns permissions that a caller has on the specified Project.

There are no permissions required for making this API call.

Parameters
NameDescription
requestTestIamPermissionsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskTestIamPermissionsResponse

The response to send back to the client (wrapped by a task).

UpdateService(UpdateServiceRequest, ServerCallContext)

public virtual Task<Operation> UpdateService(UpdateServiceRequest request, ServerCallContext context)

Updates a Service.

Parameters
NameDescription
requestUpdateServiceRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).