Show / Hide Table of Contents

Class ProjectsResource.LocationsResource.InstancesResource

The "instances" collection of methods.

Inheritance
object
ProjectsResource.LocationsResource.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.v2
Assembly: Google.Apis.CloudRun.v2.dll
Syntax
public class ProjectsResource.LocationsResource.InstancesResource

Constructors

InstancesResource(IClientService)

Constructs a new resource.

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

Methods

Create(GoogleCloudRunV2Instance, string)

Creates an Instance.

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

The body of the request.

string parent

null

Returns
Type Description
ProjectsResource.LocationsResource.InstancesResource.CreateRequest

Delete(string)

Deletes a Instance

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

null

Returns
Type Description
ProjectsResource.LocationsResource.InstancesResource.DeleteRequest

Get(string)

Gets a Instance

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

null

Returns
Type Description
ProjectsResource.LocationsResource.InstancesResource.GetRequest

GetIamPolicy(string)

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

Declaration
public virtual ProjectsResource.LocationsResource.InstancesResource.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.InstancesResource.GetIamPolicyRequest

List(string)

Lists Instances. Results are sorted by creation time, descending.

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

Required. The location and project to list resources on. Format: projects/{project}/locations/{location}, where {project} can be project id or number.

Returns
Type Description
ProjectsResource.LocationsResource.InstancesResource.ListRequest

Patch(GoogleCloudRunV2Instance, string)

Updates an Instance.

Declaration
public virtual ProjectsResource.LocationsResource.InstancesResource.PatchRequest Patch(GoogleCloudRunV2Instance body, string name)
Parameters
Type Name Description
GoogleCloudRunV2Instance body

The body of the request.

string name

The fully qualified name of this Instance. In CreateInstanceRequest, this field is ignored, and instead composed from CreateInstanceRequest.parent and CreateInstanceRequest.instance_id. Format: projects/{project}/locations/{location}/instances/{instance_id}

Returns
Type Description
ProjectsResource.LocationsResource.InstancesResource.PatchRequest

SetIamPolicy(GoogleIamV1SetIamPolicyRequest, string)

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

Declaration
public virtual ProjectsResource.LocationsResource.InstancesResource.SetIamPolicyRequest SetIamPolicy(GoogleIamV1SetIamPolicyRequest body, string resource)
Parameters
Type Name Description
GoogleIamV1SetIamPolicyRequest 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.InstancesResource.SetIamPolicyRequest

Start(GoogleCloudRunV2StartInstanceRequest, string)

Starts an Instance.

Declaration
public virtual ProjectsResource.LocationsResource.InstancesResource.StartRequest Start(GoogleCloudRunV2StartInstanceRequest body, string name)
Parameters
Type Name Description
GoogleCloudRunV2StartInstanceRequest body

The body of the request.

string name

Required. The name of the Instance to stop. Format: projects/{project}/locations/{location}/instances/{instance}, where {project} can be project id or number.

Returns
Type Description
ProjectsResource.LocationsResource.InstancesResource.StartRequest

Stop(GoogleCloudRunV2StopInstanceRequest, string)

Stops an Instance.

Declaration
public virtual ProjectsResource.LocationsResource.InstancesResource.StopRequest Stop(GoogleCloudRunV2StopInstanceRequest body, string name)
Parameters
Type Name Description
GoogleCloudRunV2StopInstanceRequest body

The body of the request.

string name

Required. The name of the Instance to stop. Format: projects/{project}/locations/{location}/instances/{instance}, where {project} can be project id or number.

Returns
Type Description
ProjectsResource.LocationsResource.InstancesResource.StopRequest

TestIamPermissions(GoogleIamV1TestIamPermissionsRequest, 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.InstancesResource.TestIamPermissionsRequest TestIamPermissions(GoogleIamV1TestIamPermissionsRequest body, string resource)
Parameters
Type Name Description
GoogleIamV1TestIamPermissionsRequest 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.InstancesResource.TestIamPermissionsRequest
In this article
Back to top Generated by DocFX