Show / Hide Table of Contents

Class NamespacesResource.InstancesResource

The "instances" collection of methods.

Inheritance
object
NamespacesResource.InstancesResource
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 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 a 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 namespace in which the Instance should be created. Replace {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID

Returns
Type Description
NamespacesResource.InstancesResource.CreateRequest

Delete(string)

Delete a Instance.

Declaration
public virtual NamespacesResource.InstancesResource.DeleteRequest Delete(string name)
Parameters
Type Name Description
string name

Required. The name of the Instance to delete. Replace {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID

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 name of the Instance to retrieve. It takes the form namespaces/{namespace}/instances/{Instance_name} and the endpoint must be regional. Replace {namespace} with the project ID or number.

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 namespace from which the Instances should be listed. Replace {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID

Returns
Type Description
NamespacesResource.InstancesResource.ListRequest

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
In this article
Back to top Generated by DocFX