[BindServiceMethod(typeof(Services), "BindService")]
public abstract class Services.ServicesBaseReference documentation and code samples for the Cloud Run Admin v2 API class Services.ServicesBase.
Base class for server-side implementations of Services
Namespace
Google.Cloud.Run.V2Assembly
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 | |
|---|---|
| Name | Description |
request |
CreateServiceRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
DeleteServiceRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
GetIamPolicyRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
GetServiceRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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. Results are sorted by creation time, descending.
| Parameters | |
|---|---|
| Name | Description |
request |
ListServicesRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
SetIamPolicyRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
TestIamPermissionsRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
request |
UpdateServiceRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |