Class ProjectsResource.LocationsResource.ClustersResource.InstancesResource
The "instances" collection of methods.
Inherited Members
Namespace: Google.Apis.CloudAlloyDBAdmin.v1alpha
Assembly: Google.Apis.CloudAlloyDBAdmin.v1alpha.dll
Syntax
public class ProjectsResource.LocationsResource.ClustersResource.InstancesResourceConstructors
InstancesResource(IClientService)
Constructs a new resource.
Declaration
public InstancesResource(IClientService service)Parameters
| Type | Name | Description | 
|---|---|---|
| IClientService | service | 
Methods
Create(Instance, string)
Creates a new Instance in a given project and location.
Declaration
public virtual ProjectsResource.LocationsResource.ClustersResource.InstancesResource.CreateRequest Create(Instance body, string parent)Parameters
| Type | Name | Description | 
|---|---|---|
| Instance | body | The body of the request. | 
| string | parent | Required. The name of the parent resource. For the required format, see the comment on the Instance.name field. | 
Returns
| Type | Description | 
|---|---|
| ProjectsResource.LocationsResource.ClustersResource.InstancesResource.CreateRequest | 
Createsecondary(Instance, string)
Creates a new SECONDARY Instance in a given project and location.
Declaration
public virtual ProjectsResource.LocationsResource.ClustersResource.InstancesResource.CreatesecondaryRequest Createsecondary(Instance body, string parent)Parameters
| Type | Name | Description | 
|---|---|---|
| Instance | body | The body of the request. | 
| string | parent | Required. The name of the parent resource. For the required format, see the comment on the Instance.name field. | 
Returns
| Type | Description | 
|---|---|
| ProjectsResource.LocationsResource.ClustersResource.InstancesResource.CreatesecondaryRequest | 
Delete(string)
Deletes a single Instance.
Declaration
public virtual ProjectsResource.LocationsResource.ClustersResource.InstancesResource.DeleteRequest Delete(string name)Parameters
| Type | Name | Description | 
|---|---|---|
| string | name | Required. The name of the resource. For the required format, see the comment on the Instance.name field. | 
Returns
| Type | Description | 
|---|---|
| ProjectsResource.LocationsResource.ClustersResource.InstancesResource.DeleteRequest | 
Failover(FailoverInstanceRequest, string)
Forces a Failover for a highly available instance. Failover promotes the HA standby instance as the new primary. Imperative only.
Declaration
public virtual ProjectsResource.LocationsResource.ClustersResource.InstancesResource.FailoverRequest Failover(FailoverInstanceRequest body, string name)Parameters
| Type | Name | Description | 
|---|---|---|
| FailoverInstanceRequest | body | The body of the request. | 
| string | name | Required. The name of the resource. For the required format, see the comment on the Instance.name field. | 
Returns
| Type | Description | 
|---|---|
| ProjectsResource.LocationsResource.ClustersResource.InstancesResource.FailoverRequest | 
Get(string)
Gets details of a single Instance.
Declaration
public virtual ProjectsResource.LocationsResource.ClustersResource.InstancesResource.GetRequest Get(string name)Parameters
| Type | Name | Description | 
|---|---|---|
| string | name | Required. The name of the resource. For the required format, see the comment on the Instance.name field. | 
Returns
| Type | Description | 
|---|---|
| ProjectsResource.LocationsResource.ClustersResource.InstancesResource.GetRequest | 
GetConnectionInfo(string)
Get instance metadata used for a connection.
Declaration
public virtual ProjectsResource.LocationsResource.ClustersResource.InstancesResource.GetConnectionInfoRequest GetConnectionInfo(string parent)Parameters
| Type | Name | Description | 
|---|---|---|
| string | parent | Required. The name of the parent resource. The required format is: projects/{project}/locations/{location}/clusters/{cluster}/instances/{instance} | 
Returns
| Type | Description | 
|---|---|
| ProjectsResource.LocationsResource.ClustersResource.InstancesResource.GetConnectionInfoRequest | 
InjectFault(InjectFaultRequest, string)
Injects fault in an instance. Imperative only.
Declaration
public virtual ProjectsResource.LocationsResource.ClustersResource.InstancesResource.InjectFaultRequest InjectFault(InjectFaultRequest body, string name)Parameters
| Type | Name | Description | 
|---|---|---|
| InjectFaultRequest | body | The body of the request. | 
| string | name | Required. The name of the resource. For the required format, see the comment on the Instance.name field. | 
Returns
| Type | Description | 
|---|---|
| ProjectsResource.LocationsResource.ClustersResource.InstancesResource.InjectFaultRequest | 
List(string)
Lists Instances in a given project and location.
Declaration
public virtual ProjectsResource.LocationsResource.ClustersResource.InstancesResource.ListRequest List(string parent)Parameters
| Type | Name | Description | 
|---|---|---|
| string | parent | Required. The name of the parent resource. For the required format, see the comment on the Instance.name field. Additionally, you can perform an aggregated list operation by specifying a value with one of the following formats: * projects/{project}/locations/-/clusters/- * projects/{project}/locations/{region}/clusters/- | 
Returns
| Type | Description | 
|---|---|
| ProjectsResource.LocationsResource.ClustersResource.InstancesResource.ListRequest | 
Patch(Instance, string)
Updates the parameters of a single Instance.
Declaration
public virtual ProjectsResource.LocationsResource.ClustersResource.InstancesResource.PatchRequest Patch(Instance body, string name)Parameters
| Type | Name | Description | 
|---|---|---|
| Instance | body | The body of the request. | 
| string | name | Output only. The name of the instance resource with the format: *
projects/{project}/locations/{region}/clusters/{cluster_id}/instances/{instance_id} where the
cluster and instance ID segments should satisfy the regex expression
 | 
Returns
| Type | Description | 
|---|---|
| ProjectsResource.LocationsResource.ClustersResource.InstancesResource.PatchRequest | 
Restart(RestartInstanceRequest, string)
Restart an Instance in a cluster. Imperative only.
Declaration
public virtual ProjectsResource.LocationsResource.ClustersResource.InstancesResource.RestartRequest Restart(RestartInstanceRequest body, string name)Parameters
| Type | Name | Description | 
|---|---|---|
| RestartInstanceRequest | body | The body of the request. | 
| string | name | Required. The name of the resource. For the required format, see the comment on the Instance.name field. | 
Returns
| Type | Description | 
|---|---|
| ProjectsResource.LocationsResource.ClustersResource.InstancesResource.RestartRequest |