Class protos.google.cloud.compute.v1.Projects (4.6.0)

Represents a Projects

Inheritance

$protobuf.rpc.Service > protos.google.cloud.compute.v1.Projects

Package

@google-cloud/compute

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new Projects service.

Parameters
Name Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Projects;

Creates new Projects service using the specified rpc implementation.

Parameters
Name Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
Type Description
Projects

RPC service. Useful where requests and/or responses are streamed.

disableXpnHost(request, callback)

public disableXpnHost(request: google.cloud.compute.v1.IDisableXpnHostProjectRequest, callback: google.cloud.compute.v1.Projects.DisableXpnHostCallback): void;

Calls DisableXpnHost.

Parameters
Name Description
request IDisableXpnHostProjectRequest

DisableXpnHostProjectRequest message or plain object

callback DisableXpnHostCallback

Node-style callback called with the error, if any, and Operation

Returns
Type Description
void

disableXpnHost(request)

public disableXpnHost(request: google.cloud.compute.v1.IDisableXpnHostProjectRequest): Promise<google.cloud.compute.v1.Operation>;

Calls DisableXpnHost.

Parameter
Name Description
request IDisableXpnHostProjectRequest

DisableXpnHostProjectRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.Operation>

Promise

disableXpnResource(request, callback)

public disableXpnResource(request: google.cloud.compute.v1.IDisableXpnResourceProjectRequest, callback: google.cloud.compute.v1.Projects.DisableXpnResourceCallback): void;

Calls DisableXpnResource.

Parameters
Name Description
request IDisableXpnResourceProjectRequest

DisableXpnResourceProjectRequest message or plain object

callback DisableXpnResourceCallback

Node-style callback called with the error, if any, and Operation

Returns
Type Description
void

disableXpnResource(request)

public disableXpnResource(request: google.cloud.compute.v1.IDisableXpnResourceProjectRequest): Promise<google.cloud.compute.v1.Operation>;

Calls DisableXpnResource.

Parameter
Name Description
request IDisableXpnResourceProjectRequest

DisableXpnResourceProjectRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.Operation>

Promise

enableXpnHost(request, callback)

public enableXpnHost(request: google.cloud.compute.v1.IEnableXpnHostProjectRequest, callback: google.cloud.compute.v1.Projects.EnableXpnHostCallback): void;

Calls EnableXpnHost.

Parameters
Name Description
request IEnableXpnHostProjectRequest

EnableXpnHostProjectRequest message or plain object

callback EnableXpnHostCallback

Node-style callback called with the error, if any, and Operation

Returns
Type Description
void

enableXpnHost(request)

public enableXpnHost(request: google.cloud.compute.v1.IEnableXpnHostProjectRequest): Promise<google.cloud.compute.v1.Operation>;

Calls EnableXpnHost.

Parameter
Name Description
request IEnableXpnHostProjectRequest

EnableXpnHostProjectRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.Operation>

Promise

enableXpnResource(request, callback)

public enableXpnResource(request: google.cloud.compute.v1.IEnableXpnResourceProjectRequest, callback: google.cloud.compute.v1.Projects.EnableXpnResourceCallback): void;

Calls EnableXpnResource.

Parameters
Name Description
request IEnableXpnResourceProjectRequest

EnableXpnResourceProjectRequest message or plain object

callback EnableXpnResourceCallback

Node-style callback called with the error, if any, and Operation

Returns
Type Description
void

enableXpnResource(request)

public enableXpnResource(request: google.cloud.compute.v1.IEnableXpnResourceProjectRequest): Promise<google.cloud.compute.v1.Operation>;

Calls EnableXpnResource.

Parameter
Name Description
request IEnableXpnResourceProjectRequest

EnableXpnResourceProjectRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.Operation>

Promise

get(request, callback)

public get(request: google.cloud.compute.v1.IGetProjectRequest, callback: google.cloud.compute.v1.Projects.GetCallback): void;

Calls Get.

Parameters
Name Description
request IGetProjectRequest

GetProjectRequest message or plain object

callback GetCallback

Node-style callback called with the error, if any, and Project

Returns
Type Description
void

get(request)

public get(request: google.cloud.compute.v1.IGetProjectRequest): Promise<google.cloud.compute.v1.Project>;

Calls Get.

Parameter
Name Description
request IGetProjectRequest

GetProjectRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.Project>

Promise

getXpnHost(request, callback)

public getXpnHost(request: google.cloud.compute.v1.IGetXpnHostProjectRequest, callback: google.cloud.compute.v1.Projects.GetXpnHostCallback): void;

Calls GetXpnHost.

Parameters
Name Description
request IGetXpnHostProjectRequest

GetXpnHostProjectRequest message or plain object

callback GetXpnHostCallback

Node-style callback called with the error, if any, and Project

Returns
Type Description
void

getXpnHost(request)

public getXpnHost(request: google.cloud.compute.v1.IGetXpnHostProjectRequest): Promise<google.cloud.compute.v1.Project>;

Calls GetXpnHost.

Parameter
Name Description
request IGetXpnHostProjectRequest

GetXpnHostProjectRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.Project>

Promise

getXpnResources(request, callback)

public getXpnResources(request: google.cloud.compute.v1.IGetXpnResourcesProjectsRequest, callback: google.cloud.compute.v1.Projects.GetXpnResourcesCallback): void;

Calls GetXpnResources.

Parameters
Name Description
request IGetXpnResourcesProjectsRequest

GetXpnResourcesProjectsRequest message or plain object

callback GetXpnResourcesCallback

Node-style callback called with the error, if any, and ProjectsGetXpnResources

Returns
Type Description
void

getXpnResources(request)

public getXpnResources(request: google.cloud.compute.v1.IGetXpnResourcesProjectsRequest): Promise<google.cloud.compute.v1.ProjectsGetXpnResources>;

Calls GetXpnResources.

Parameter
Name Description
request IGetXpnResourcesProjectsRequest

GetXpnResourcesProjectsRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.ProjectsGetXpnResources>

Promise

listXpnHosts(request, callback)

public listXpnHosts(request: google.cloud.compute.v1.IListXpnHostsProjectsRequest, callback: google.cloud.compute.v1.Projects.ListXpnHostsCallback): void;

Calls ListXpnHosts.

Parameters
Name Description
request IListXpnHostsProjectsRequest

ListXpnHostsProjectsRequest message or plain object

callback ListXpnHostsCallback

Node-style callback called with the error, if any, and XpnHostList

Returns
Type Description
void

listXpnHosts(request)

public listXpnHosts(request: google.cloud.compute.v1.IListXpnHostsProjectsRequest): Promise<google.cloud.compute.v1.XpnHostList>;

Calls ListXpnHosts.

Parameter
Name Description
request IListXpnHostsProjectsRequest

ListXpnHostsProjectsRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.XpnHostList>

Promise

moveDisk(request, callback)

public moveDisk(request: google.cloud.compute.v1.IMoveDiskProjectRequest, callback: google.cloud.compute.v1.Projects.MoveDiskCallback): void;

Calls MoveDisk.

Parameters
Name Description
request IMoveDiskProjectRequest

MoveDiskProjectRequest message or plain object

callback MoveDiskCallback

Node-style callback called with the error, if any, and Operation

Returns
Type Description
void

moveDisk(request)

public moveDisk(request: google.cloud.compute.v1.IMoveDiskProjectRequest): Promise<google.cloud.compute.v1.Operation>;

Calls MoveDisk.

Parameter
Name Description
request IMoveDiskProjectRequest

MoveDiskProjectRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.Operation>

Promise

moveInstance(request, callback)

public moveInstance(request: google.cloud.compute.v1.IMoveInstanceProjectRequest, callback: google.cloud.compute.v1.Projects.MoveInstanceCallback): void;

Calls MoveInstance.

Parameters
Name Description
request IMoveInstanceProjectRequest

MoveInstanceProjectRequest message or plain object

callback MoveInstanceCallback

Node-style callback called with the error, if any, and Operation

Returns
Type Description
void

moveInstance(request)

public moveInstance(request: google.cloud.compute.v1.IMoveInstanceProjectRequest): Promise<google.cloud.compute.v1.Operation>;

Calls MoveInstance.

Parameter
Name Description
request IMoveInstanceProjectRequest

MoveInstanceProjectRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.Operation>

Promise

setCloudArmorTier(request, callback)

public setCloudArmorTier(request: google.cloud.compute.v1.ISetCloudArmorTierProjectRequest, callback: google.cloud.compute.v1.Projects.SetCloudArmorTierCallback): void;

Calls SetCloudArmorTier.

Parameters
Name Description
request ISetCloudArmorTierProjectRequest

SetCloudArmorTierProjectRequest message or plain object

callback SetCloudArmorTierCallback

Node-style callback called with the error, if any, and Operation

Returns
Type Description
void

setCloudArmorTier(request)

public setCloudArmorTier(request: google.cloud.compute.v1.ISetCloudArmorTierProjectRequest): Promise<google.cloud.compute.v1.Operation>;

Calls SetCloudArmorTier.

Parameter
Name Description
request ISetCloudArmorTierProjectRequest

SetCloudArmorTierProjectRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.Operation>

Promise

setCommonInstanceMetadata(request, callback)

public setCommonInstanceMetadata(request: google.cloud.compute.v1.ISetCommonInstanceMetadataProjectRequest, callback: google.cloud.compute.v1.Projects.SetCommonInstanceMetadataCallback): void;

Calls SetCommonInstanceMetadata.

Parameters
Name Description
request ISetCommonInstanceMetadataProjectRequest

SetCommonInstanceMetadataProjectRequest message or plain object

callback SetCommonInstanceMetadataCallback

Node-style callback called with the error, if any, and Operation

Returns
Type Description
void

setCommonInstanceMetadata(request)

public setCommonInstanceMetadata(request: google.cloud.compute.v1.ISetCommonInstanceMetadataProjectRequest): Promise<google.cloud.compute.v1.Operation>;

Calls SetCommonInstanceMetadata.

Parameter
Name Description
request ISetCommonInstanceMetadataProjectRequest

SetCommonInstanceMetadataProjectRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.Operation>

Promise

setDefaultNetworkTier(request, callback)

public setDefaultNetworkTier(request: google.cloud.compute.v1.ISetDefaultNetworkTierProjectRequest, callback: google.cloud.compute.v1.Projects.SetDefaultNetworkTierCallback): void;

Calls SetDefaultNetworkTier.

Parameters
Name Description
request ISetDefaultNetworkTierProjectRequest

SetDefaultNetworkTierProjectRequest message or plain object

callback SetDefaultNetworkTierCallback

Node-style callback called with the error, if any, and Operation

Returns
Type Description
void

setDefaultNetworkTier(request)

public setDefaultNetworkTier(request: google.cloud.compute.v1.ISetDefaultNetworkTierProjectRequest): Promise<google.cloud.compute.v1.Operation>;

Calls SetDefaultNetworkTier.

Parameter
Name Description
request ISetDefaultNetworkTierProjectRequest

SetDefaultNetworkTierProjectRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.Operation>

Promise

setUsageExportBucket(request, callback)

public setUsageExportBucket(request: google.cloud.compute.v1.ISetUsageExportBucketProjectRequest, callback: google.cloud.compute.v1.Projects.SetUsageExportBucketCallback): void;

Calls SetUsageExportBucket.

Parameters
Name Description
request ISetUsageExportBucketProjectRequest

SetUsageExportBucketProjectRequest message or plain object

callback SetUsageExportBucketCallback

Node-style callback called with the error, if any, and Operation

Returns
Type Description
void

setUsageExportBucket(request)

public setUsageExportBucket(request: google.cloud.compute.v1.ISetUsageExportBucketProjectRequest): Promise<google.cloud.compute.v1.Operation>;

Calls SetUsageExportBucket.

Parameter
Name Description
request ISetUsageExportBucketProjectRequest

SetUsageExportBucketProjectRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.Operation>

Promise