Class NamespacesResource.ServicesResource
The "services" collection of methods.
Inherited Members
Namespace: Google.Apis.CloudRun.v1
Assembly: Google.Apis.CloudRun.v1.dll
Syntax
public class NamespacesResource.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 NamespacesResource.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: *
|
Returns
Type | Description |
---|---|
NamespacesResource.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 NamespacesResource.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: *
|
Returns
Type | Description |
---|---|
NamespacesResource.ServicesResource.DeleteRequest |
Get(string)
Gets information about a service.
Declaration
public virtual NamespacesResource.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: *
|
Returns
Type | Description |
---|---|
NamespacesResource.ServicesResource.GetRequest |
List(string)
Lists services for the given project and region. Results are sorted by creation time, descending.
Declaration
public virtual NamespacesResource.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: * |
Returns
Type | Description |
---|---|
NamespacesResource.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 NamespacesResource.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: *
|
Returns
Type | Description |
---|---|
NamespacesResource.ServicesResource.ReplaceServiceRequest |