Show / Hide Table of Contents

Class ProjectsResource.LocationsResource.ServicesResource

The "services" collection of methods.

Inheritance
object
ProjectsResource.LocationsResource.ServicesResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.CloudRun.v1
Assembly: Google.Apis.CloudRun.v1.dll
Syntax
public class ProjectsResource.LocationsResource.ServicesResource

Constructors

ServicesResource(IClientService)

Constructs a new resource.

Declaration
public ServicesResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

Create(Service, string)

Creates a new Service. Service creation will trigger a new deployment. Use GetService, and check service.status to determine if the Service is ready.

Declaration
public virtual ProjectsResource.LocationsResource.ServicesResource.CreateRequest Create(Service body, string parent)
Parameters
Type Name Description
Service body

The body of the request.

string parent

Required. The resource's parent. In Cloud Run, it may be one of the following: * {project_id_or_number} * namespaces/{project_id_or_number} * namespaces/{project_id_or_number}/services * projects/{project_id_or_number}/locations/{region}

  • projects/{project_id_or_number}/regions/{region}
Returns
Type Description
ProjectsResource.LocationsResource.ServicesResource.CreateRequest

Delete(string)

Deletes the provided service. This will cause the Service to stop serving traffic and will delete all associated Revisions.

Declaration
public virtual ProjectsResource.LocationsResource.ServicesResource.DeleteRequest Delete(string name)
Parameters
Type Name Description
string name

Required. The fully qualified name of the service to delete. It can be any of the following forms: * namespaces/{project_id_or_number}/services/{service_name} (only when the endpoint is regional) * projects/{project_id_or_number}/locations/{region}/services/{service_name} * projects/{project_id_or_number}/regions/{region}/services/{service_name}

Returns
Type Description
ProjectsResource.LocationsResource.ServicesResource.DeleteRequest

Get(string)

Gets information about a service.

Declaration
public virtual ProjectsResource.LocationsResource.ServicesResource.GetRequest Get(string name)
Parameters
Type Name Description
string name

Required. The fully qualified name of the service to retrieve. It can be any of the following forms:

  • namespaces/{project_id_or_number}/services/{service_name} (only when the endpoint is regional)
  • projects/{project_id_or_number}/locations/{region}/services/{service_name} * projects/{project_id_or_number}/regions/{region}/services/{service_name}
Returns
Type Description
ProjectsResource.LocationsResource.ServicesResource.GetRequest

GetIamPolicy(string)

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

Declaration
public virtual ProjectsResource.LocationsResource.ServicesResource.GetIamPolicyRequest GetIamPolicy(string resource)
Parameters
Type Name Description
string resource

REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.

Returns
Type Description
ProjectsResource.LocationsResource.ServicesResource.GetIamPolicyRequest

List(string)

Lists services for the given project and region. Results are sorted by creation time, descending.

Declaration
public virtual ProjectsResource.LocationsResource.ServicesResource.ListRequest List(string parent)
Parameters
Type Name Description
string parent

Required. The parent from where the resources should be listed. In Cloud Run, it may be one of the following: * {project_id_or_number} * namespaces/{project_id_or_number} * namespaces/{project_id_or_number}/services * projects/{project_id_or_number}/locations/{region}

  • projects/{project_id_or_number}/regions/{region}
Returns
Type Description
ProjectsResource.LocationsResource.ServicesResource.ListRequest

ReplaceService(Service, string)

Replaces a service. Only the spec and metadata labels and annotations are modifiable. After the Update request, Cloud Run will work to make the 'status' match the requested 'spec'. May provide metadata.resourceVersion to enforce update from last read for optimistic concurrency control.

Declaration
public virtual ProjectsResource.LocationsResource.ServicesResource.ReplaceServiceRequest ReplaceService(Service body, string name)
Parameters
Type Name Description
Service body

The body of the request.

string name

Required. The fully qualified name of the service to replace. It can be any of the following forms:

  • namespaces/{project_id_or_number}/services/{service_name} (only when the endpoint is regional)
  • projects/{project_id_or_number}/locations/{region}/services/{service_name} * projects/{project_id_or_number}/regions/{region}/services/{service_name}
Returns
Type Description
ProjectsResource.LocationsResource.ServicesResource.ReplaceServiceRequest

SetIamPolicy(SetIamPolicyRequest, string)

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

Declaration
public virtual ProjectsResource.LocationsResource.ServicesResource.SetIamPolicyRequest SetIamPolicy(SetIamPolicyRequest body, string resource)
Parameters
Type Name Description
SetIamPolicyRequest body

The body of the request.

string resource

REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.

Returns
Type Description
ProjectsResource.LocationsResource.ServicesResource.SetIamPolicyRequest

TestIamPermissions(TestIamPermissionsRequest, string)

Returns permissions that a caller has on the specified Project. There are no permissions required for making this API call.

Declaration
public virtual ProjectsResource.LocationsResource.ServicesResource.TestIamPermissionsRequest TestIamPermissions(TestIamPermissionsRequest body, string resource)
Parameters
Type Name Description
TestIamPermissionsRequest body

The body of the request.

string resource

REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.

Returns
Type Description
ProjectsResource.LocationsResource.ServicesResource.TestIamPermissionsRequest
In this article
Back to top Generated by DocFX