Class NamespacesResource.ServicesResource
The "services" collection of methods.
Inheritance
Inherited Members
Namespace: Google.Apis.CloudRun.v1alpha1
Assembly: Google.Apis.CloudRun.v1alpha1.dll
Syntax
public class ServicesResource
Constructors
ServicesResource(IClientService)
Constructs a new resource.
Declaration
public ServicesResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
Create(Service, String)
Rpc to create a service.
Declaration
public virtual NamespacesResource.ServicesResource.CreateRequest Create(Service body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| Service | body | The body of the request. |
| System.String | parent | The project ID or project number in which this service should be created. |
Returns
| Type | Description |
|---|---|
| NamespacesResource.ServicesResource.CreateRequest |
Delete(String)
Rpc to delete a service. This will cause the Service to stop serving traffic and will delete the child entities like Routes, Configurations and Revisions.
Declaration
public virtual NamespacesResource.ServicesResource.DeleteRequest Delete(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The name of the service being deleted. If needed, replace {namespace_id} with the project ID. |
Returns
| Type | Description |
|---|---|
| NamespacesResource.ServicesResource.DeleteRequest |
Get(String)
Rpc to get information about a service.
Declaration
public virtual NamespacesResource.ServicesResource.GetRequest Get(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The name of the service being retrieved. If needed, replace {namespace_id} with the project ID. |
Returns
| Type | Description |
|---|---|
| NamespacesResource.ServicesResource.GetRequest |
List(String)
Rpc to list services.
Declaration
public virtual NamespacesResource.ServicesResource.ListRequest List(string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | parent | The project ID or project number from which the services should be listed. |
Returns
| Type | Description |
|---|---|
| NamespacesResource.ServicesResource.ListRequest |
ReplaceService(Service, String)
Rpc to replace 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. |
| System.String | name | The name of the service being replaced. If needed, replace {namespace_id} with the project ID. |
Returns
| Type | Description |
|---|---|
| NamespacesResource.ServicesResource.ReplaceServiceRequest |