Class NamespacesResource.InstancesResource
The "instances" collection of methods.
Inherited Members
Namespace: Google.Apis.CloudRun.v1
Assembly: Google.Apis.CloudRun.v1.dll
Syntax
public class NamespacesResource.InstancesResource
Constructors
InstancesResource(IClientService)
Constructs a new resource.
Declaration
public InstancesResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
Create(Instance, string)
Create an Instance.
Declaration
public virtual NamespacesResource.InstancesResource.CreateRequest Create(Instance body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| Instance | 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.InstancesResource.CreateRequest |
Delete(string)
Delete an Instance.
Declaration
public virtual NamespacesResource.InstancesResource.DeleteRequest Delete(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. The fully qualified name of the Instance to delete. It can be any of the following forms: *
|
Returns
| Type | Description |
|---|---|
| NamespacesResource.InstancesResource.DeleteRequest |
Get(string)
Get an Instance.
Declaration
public virtual NamespacesResource.InstancesResource.GetRequest Get(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. The fully qualified name of the Instance to retrieve. It can be any of the following forms: *
|
Returns
| Type | Description |
|---|---|
| NamespacesResource.InstancesResource.GetRequest |
List(string)
List Instances. Results are sorted by creation time, descending.
Declaration
public virtual NamespacesResource.InstancesResource.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.InstancesResource.ListRequest |
ReplaceInstance(Instance, string)
Replace an Instance.
Declaration
public virtual NamespacesResource.InstancesResource.ReplaceInstanceRequest ReplaceInstance(Instance body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| Instance | body | The body of the request. |
| string | name | Required. The fully qualified name of the Instance being replaced. It can be any of the following forms:
|
Returns
| Type | Description |
|---|---|
| NamespacesResource.InstancesResource.ReplaceInstanceRequest |
Start(StartInstanceRequest, string)
Start an Instance which has been stopped.
Declaration
public virtual NamespacesResource.InstancesResource.StartRequest Start(StartInstanceRequest body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| StartInstanceRequest | body | The body of the request. |
| string | name | Required. The name of the Instance to run. Replace {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID |
Returns
| Type | Description |
|---|---|
| NamespacesResource.InstancesResource.StartRequest |
Stop(StopInstanceRequest, string)
Stop an Instance that is running.
Declaration
public virtual NamespacesResource.InstancesResource.StopRequest Stop(StopInstanceRequest body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| StopInstanceRequest | body | The body of the request. |
| string | name | Required. The name of the Instance to run. Replace {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID |
Returns
| Type | Description |
|---|---|
| NamespacesResource.InstancesResource.StopRequest |