Send feedback
Class v1.RegionDisksClient (3.0.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 3.0.0 keyboard_arrow_down
Package
@google-cloud/compute
Constructors
(constructor)(opts)
constructor ( opts ?: ClientOptions );
Construct an instance of RegionDisksClient.
Parameter
Name Description opts
ClientOptions
Properties
apiEndpoint
static get apiEndpoint () : string ;
The DNS address for this API service - same as servicePath(), exists for compatibility reasons.
auth
descriptors
descriptors : Descriptors ;
innerApiCalls
innerApiCalls : {
[ name : string ] : Function ;
};
port
static get port () : number ;
The port for this API service.
regionDisksStub
regionDisksStub ?: Promise <{
[ name : string ] : Function ;
}>;
scopes
static get scopes () : string [];
The scopes needed to make gRPC calls for every method defined in this service.
servicePath
static get servicePath () : string ;
The DNS address for this API service.
warn
warn : ( code : string , message : string , warnType ?: string ) = > void ;
Methods
addResourcePolicies(request, options)
addResourcePolicies ( request ?: protos . google . cloud . compute . v1 . IAddResourcePoliciesRegionDiskRequest , options ?: CallOptions ) : Promise <[
LROperation<protos . google . cloud . compute . v1 . IOperation , null >,
protos . google . cloud . compute . v1 . IOperation | undefined ,
{} | undefined
]>;
Parameters
Name Description request
protos.google.cloud.compute.v1.IAddResourcePoliciesRegionDiskRequest
options
CallOptions
Returns
Type Description Promise <[
LROperation <protos.google.cloud.compute.v1.IOperation , null>,
protos.google.cloud.compute.v1.IOperation | undefined,
{} | undefined
]>
addResourcePolicies(request, options, callback)
addResourcePolicies ( request : protos . google . cloud . compute . v1 . IAddResourcePoliciesRegionDiskRequest , options : CallOptions , callback : Callback<protos . google . cloud . compute . v1 . IOperation , protos . google . cloud . compute . v1 . IAddResourcePoliciesRegionDiskRequest | null | undefined , {} | null | undefined >) : void ;
Parameters
Name Description request
protos.google.cloud.compute.v1.IAddResourcePoliciesRegionDiskRequest
options
CallOptions
callback
Callback <protos.google.cloud.compute.v1.IOperation , protos.google.cloud.compute.v1.IAddResourcePoliciesRegionDiskRequest | null | undefined, {} | null | undefined>
Returns
addResourcePolicies(request, callback)
addResourcePolicies ( request : protos . google . cloud . compute . v1 . IAddResourcePoliciesRegionDiskRequest , callback : Callback<protos . google . cloud . compute . v1 . IOperation , protos . google . cloud . compute . v1 . IAddResourcePoliciesRegionDiskRequest | null | undefined , {} | null | undefined >) : void ;
Parameters
Name Description request
protos.google.cloud.compute.v1.IAddResourcePoliciesRegionDiskRequest
callback
Callback <protos.google.cloud.compute.v1.IOperation , protos.google.cloud.compute.v1.IAddResourcePoliciesRegionDiskRequest | null | undefined, {} | null | undefined>
Returns
close()
Terminate the gRPC channel and close the client.
The client will no longer be usable and all future behavior is undefined.
Returns
Type Description Promise <void>{Promise} A promise that resolves when the client is closed.
createSnapshot(request, options)
createSnapshot ( request ?: protos . google . cloud . compute . v1 . ICreateSnapshotRegionDiskRequest , options ?: CallOptions ) : Promise <[
LROperation<protos . google . cloud . compute . v1 . IOperation , null >,
protos . google . cloud . compute . v1 . IOperation | undefined ,
{} | undefined
]>;
Parameters
Name Description request
protos.google.cloud.compute.v1.ICreateSnapshotRegionDiskRequest
options
CallOptions
Returns
Type Description Promise <[
LROperation <protos.google.cloud.compute.v1.IOperation , null>,
protos.google.cloud.compute.v1.IOperation | undefined,
{} | undefined
]>
createSnapshot(request, options, callback)
createSnapshot ( request : protos . google . cloud . compute . v1 . ICreateSnapshotRegionDiskRequest , options : CallOptions , callback : Callback<protos . google . cloud . compute . v1 . IOperation , protos . google . cloud . compute . v1 . ICreateSnapshotRegionDiskRequest | null | undefined , {} | null | undefined >) : void ;
Parameters
Name Description request
protos.google.cloud.compute.v1.ICreateSnapshotRegionDiskRequest
options
CallOptions
callback
Callback <protos.google.cloud.compute.v1.IOperation , protos.google.cloud.compute.v1.ICreateSnapshotRegionDiskRequest | null | undefined, {} | null | undefined>
Returns
createSnapshot(request, callback)
createSnapshot ( request : protos . google . cloud . compute . v1 . ICreateSnapshotRegionDiskRequest , callback : Callback<protos . google . cloud . compute . v1 . IOperation , protos . google . cloud . compute . v1 . ICreateSnapshotRegionDiskRequest | null | undefined , {} | null | undefined >) : void ;
Parameters
Name Description request
protos.google.cloud.compute.v1.ICreateSnapshotRegionDiskRequest
callback
Callback <protos.google.cloud.compute.v1.IOperation , protos.google.cloud.compute.v1.ICreateSnapshotRegionDiskRequest | null | undefined, {} | null | undefined>
Returns
delete(request, options)
delete ( request ?: protos . google . cloud . compute . v1 . IDeleteRegionDiskRequest , options ?: CallOptions ) : Promise <[
LROperation<protos . google . cloud . compute . v1 . IOperation , null >,
protos . google . cloud . compute . v1 . IOperation | undefined ,
{} | undefined
]>;
Parameters
Name Description request
protos.google.cloud.compute.v1.IDeleteRegionDiskRequest
options
CallOptions
Returns
Type Description Promise <[
LROperation <protos.google.cloud.compute.v1.IOperation , null>,
protos.google.cloud.compute.v1.IOperation | undefined,
{} | undefined
]>
delete(request, options, callback)
delete ( request : protos . google . cloud . compute . v1 . IDeleteRegionDiskRequest , options : CallOptions , callback : Callback<protos . google . cloud . compute . v1 . IOperation , protos . google . cloud . compute . v1 . IDeleteRegionDiskRequest | null | undefined , {} | null | undefined >) : void ;
Parameters
Name Description request
protos.google.cloud.compute.v1.IDeleteRegionDiskRequest
options
CallOptions
callback
Callback <protos.google.cloud.compute.v1.IOperation , protos.google.cloud.compute.v1.IDeleteRegionDiskRequest | null | undefined, {} | null | undefined>
Returns
delete(request, callback)
delete ( request : protos . google . cloud . compute . v1 . IDeleteRegionDiskRequest , callback : Callback<protos . google . cloud . compute . v1 . IOperation , protos . google . cloud . compute . v1 . IDeleteRegionDiskRequest | null | undefined , {} | null | undefined >) : void ;
Parameters
Name Description request
protos.google.cloud.compute.v1.IDeleteRegionDiskRequest
callback
Callback <protos.google.cloud.compute.v1.IOperation , protos.google.cloud.compute.v1.IDeleteRegionDiskRequest | null | undefined, {} | null | undefined>
Returns
get(request, options)
get ( request ?: protos . google . cloud . compute . v1 . IGetRegionDiskRequest , options ?: CallOptions ) : Promise <[
protos . google . cloud . compute . v1 . IDisk ,
protos . google . cloud . compute . v1 . IGetRegionDiskRequest | undefined ,
{} | undefined
]>;
Parameters
Name Description request
protos.google.cloud.compute.v1.IGetRegionDiskRequest
options
CallOptions
Returns
Type Description Promise <[
protos.google.cloud.compute.v1.IDisk ,
protos.google.cloud.compute.v1.IGetRegionDiskRequest | undefined,
{} | undefined
]>
get(request, options, callback)
get ( request : protos . google . cloud . compute . v1 . IGetRegionDiskRequest , options : CallOptions , callback : Callback<protos . google . cloud . compute . v1 . IDisk , protos . google . cloud . compute . v1 . IGetRegionDiskRequest | null | undefined , {} | null | undefined >) : void ;
Parameters
Name Description request
protos.google.cloud.compute.v1.IGetRegionDiskRequest
options
CallOptions
callback
Callback <protos.google.cloud.compute.v1.IDisk , protos.google.cloud.compute.v1.IGetRegionDiskRequest | null | undefined, {} | null | undefined>
Returns
get(request, callback)
get ( request : protos . google . cloud . compute . v1 . IGetRegionDiskRequest , callback : Callback<protos . google . cloud . compute . v1 . IDisk , protos . google . cloud . compute . v1 . IGetRegionDiskRequest | null | undefined , {} | null | undefined >) : void ;
Parameters
Name Description request
protos.google.cloud.compute.v1.IGetRegionDiskRequest
callback
Callback <protos.google.cloud.compute.v1.IDisk , protos.google.cloud.compute.v1.IGetRegionDiskRequest | null | undefined, {} | null | undefined>
Returns
getIamPolicy(request, options)
getIamPolicy ( request ?: protos . google . cloud . compute . v1 . IGetIamPolicyRegionDiskRequest , options ?: CallOptions ) : Promise <[
protos . google . cloud . compute . v1 . IPolicy ,
protos . google . cloud . compute . v1 . IGetIamPolicyRegionDiskRequest | undefined ,
{} | undefined
]>;
Parameters
Name Description request
protos.google.cloud.compute.v1.IGetIamPolicyRegionDiskRequest
options
CallOptions
Returns
Type Description Promise <[
protos.google.cloud.compute.v1.IPolicy ,
protos.google.cloud.compute.v1.IGetIamPolicyRegionDiskRequest | undefined,
{} | undefined
]>
getIamPolicy(request, options, callback)
getIamPolicy ( request : protos . google . cloud . compute . v1 . IGetIamPolicyRegionDiskRequest , options : CallOptions , callback : Callback<protos . google . cloud . compute . v1 . IPolicy , protos . google . cloud . compute . v1 . IGetIamPolicyRegionDiskRequest | null | undefined , {} | null | undefined >) : void ;
Parameters
Name Description request
protos.google.cloud.compute.v1.IGetIamPolicyRegionDiskRequest
options
CallOptions
callback
Callback <protos.google.cloud.compute.v1.IPolicy , protos.google.cloud.compute.v1.IGetIamPolicyRegionDiskRequest | null | undefined, {} | null | undefined>
Returns
getIamPolicy(request, callback)
getIamPolicy ( request : protos . google . cloud . compute . v1 . IGetIamPolicyRegionDiskRequest , callback : Callback<protos . google . cloud . compute . v1 . IPolicy , protos . google . cloud . compute . v1 . IGetIamPolicyRegionDiskRequest | null | undefined , {} | null | undefined >) : void ;
Parameters
Name Description request
protos.google.cloud.compute.v1.IGetIamPolicyRegionDiskRequest
callback
Callback <protos.google.cloud.compute.v1.IPolicy , protos.google.cloud.compute.v1.IGetIamPolicyRegionDiskRequest | null | undefined, {} | null | undefined>
Returns
getProjectId()
getProjectId () : Promise<string> ;
Returns
Type Description Promise <string>
getProjectId(callback)
getProjectId ( callback : Callback<string , undefined , undefined >) : void ;
Parameter
Name Description callback
Callback <string, undefined, undefined>
Returns
initialize()
initialize () : Promise <{
[ name : string ] : Function ;
}>;
Initialize the client. Performs asynchronous operations (such as authentication) and prepares the client. This function will be called automatically when any class method is called for the first time, but if you need to initialize it before calling an actual method, feel free to call initialize() directly.
You can await on this method if you want to make sure the client is initialized.
Returns
Type Description Promise <{
[name: string]: Function ;
}>{Promise} A promise that resolves to an authenticated service stub.
insert(request, options)
insert ( request ?: protos . google . cloud . compute . v1 . IInsertRegionDiskRequest , options ?: CallOptions ) : Promise <[
LROperation<protos . google . cloud . compute . v1 . IOperation , null >,
protos . google . cloud . compute . v1 . IOperation | undefined ,
{} | undefined
]>;
Parameters
Name Description request
protos.google.cloud.compute.v1.IInsertRegionDiskRequest
options
CallOptions
Returns
Type Description Promise <[
LROperation <protos.google.cloud.compute.v1.IOperation , null>,
protos.google.cloud.compute.v1.IOperation | undefined,
{} | undefined
]>
insert(request, options, callback)
insert ( request : protos . google . cloud . compute . v1 . IInsertRegionDiskRequest , options : CallOptions , callback : Callback<protos . google . cloud . compute . v1 . IOperation , protos . google . cloud . compute . v1 . IInsertRegionDiskRequest | null | undefined , {} | null | undefined >) : void ;
Parameters
Name Description request
protos.google.cloud.compute.v1.IInsertRegionDiskRequest
options
CallOptions
callback
Callback <protos.google.cloud.compute.v1.IOperation , protos.google.cloud.compute.v1.IInsertRegionDiskRequest | null | undefined, {} | null | undefined>
Returns
insert(request, callback)
insert ( request : protos . google . cloud . compute . v1 . IInsertRegionDiskRequest , callback : Callback<protos . google . cloud . compute . v1 . IOperation , protos . google . cloud . compute . v1 . IInsertRegionDiskRequest | null | undefined , {} | null | undefined >) : void ;
Parameters
Name Description request
protos.google.cloud.compute.v1.IInsertRegionDiskRequest
callback
Callback <protos.google.cloud.compute.v1.IOperation , protos.google.cloud.compute.v1.IInsertRegionDiskRequest | null | undefined, {} | null | undefined>
Returns
list(request, options)
list ( request ?: protos . google . cloud . compute . v1 . IListRegionDisksRequest , options ?: CallOptions ) : Promise <[
protos . google . cloud . compute . v1 . IDisk [],
protos . google . cloud . compute . v1 . IListRegionDisksRequest | null ,
protos . google . cloud . compute . v1 . IDiskList
]>;
Parameters
Name Description request
protos.google.cloud.compute.v1.IListRegionDisksRequest
options
CallOptions
Returns
Type Description Promise <[
protos.google.cloud.compute.v1.IDisk [],
protos.google.cloud.compute.v1.IListRegionDisksRequest | null,
protos.google.cloud.compute.v1.IDiskList
]>
list(request, options, callback)
list ( request : protos . google . cloud . compute . v1 . IListRegionDisksRequest , options : CallOptions , callback : PaginationCallback<protos . google . cloud . compute . v1 . IListRegionDisksRequest , protos . google . cloud . compute . v1 . IDiskList | null | undefined , protos . google . cloud . compute . v1 . IDisk >) : void ;
Parameters
Name Description request
protos.google.cloud.compute.v1.IListRegionDisksRequest
options
CallOptions
callback
PaginationCallback <protos.google.cloud.compute.v1.IListRegionDisksRequest , protos.google.cloud.compute.v1.IDiskList | null | undefined, protos.google.cloud.compute.v1.IDisk >
Returns
list(request, callback)
list ( request : protos . google . cloud . compute . v1 . IListRegionDisksRequest , callback : PaginationCallback<protos . google . cloud . compute . v1 . IListRegionDisksRequest , protos . google . cloud . compute . v1 . IDiskList | null | undefined , protos . google . cloud . compute . v1 . IDisk >) : void ;
Parameters
Name Description request
protos.google.cloud.compute.v1.IListRegionDisksRequest
callback
PaginationCallback <protos.google.cloud.compute.v1.IListRegionDisksRequest , protos.google.cloud.compute.v1.IDiskList | null | undefined, protos.google.cloud.compute.v1.IDisk >
Returns
listAsync(request, options)
listAsync ( request ?: protos . google . cloud . compute . v1 . IListRegionDisksRequest , options ?: CallOptions ) : AsyncIterable<protos . google . cloud . compute . v1 . IDisk >;
Equivalent to list
, but returns an iterable object.
for
-await
-of
syntax is used with the iterable to get response elements on-demand.
Parameters
Name Description request
protos.google.cloud.compute.v1.IListRegionDisksRequest
The request object that will be sent.
options
CallOptions
Call options. See CallOptions for more details.
Returns
Type Description AsyncIterable <protos.google.cloud.compute.v1.IDisk >{Object} An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). When you iterate the returned iterable, each element will be an object representing [Disk]. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) for more details and examples.
Example
const iterable = client . listAsync ( request );
for await ( const response of iterable ) {
// process response
}
listStream(request, options)
listStream ( request ?: protos . google . cloud . compute . v1 . IListRegionDisksRequest , options ?: CallOptions ) : Transform ;
Equivalent to method.name.toCamelCase()
, but returns a NodeJS Stream object.
Parameters
Name Description request
protos.google.cloud.compute.v1.IListRegionDisksRequest
The request object that will be sent.
options
CallOptions
Call options. See CallOptions for more details.
Returns
Type Description Transform {Stream} An object stream which emits an object representing [Disk] on 'data' event. The client library will perform auto-pagination by default: it will call the API as many times as needed. Note that it can affect your quota. We recommend using listAsync()
method described below for async iteration which you can stop as needed. Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) for more details and examples.
removeResourcePolicies(request, options)
removeResourcePolicies ( request ?: protos . google . cloud . compute . v1 . IRemoveResourcePoliciesRegionDiskRequest , options ?: CallOptions ) : Promise <[
LROperation<protos . google . cloud . compute . v1 . IOperation , null >,
protos . google . cloud . compute . v1 . IOperation | undefined ,
{} | undefined
]>;
Parameters
Name Description request
protos.google.cloud.compute.v1.IRemoveResourcePoliciesRegionDiskRequest
options
CallOptions
Returns
Type Description Promise <[
LROperation <protos.google.cloud.compute.v1.IOperation , null>,
protos.google.cloud.compute.v1.IOperation | undefined,
{} | undefined
]>
removeResourcePolicies(request, options, callback)
removeResourcePolicies ( request : protos . google . cloud . compute . v1 . IRemoveResourcePoliciesRegionDiskRequest , options : CallOptions , callback : Callback<protos . google . cloud . compute . v1 . IOperation , protos . google . cloud . compute . v1 . IRemoveResourcePoliciesRegionDiskRequest | null | undefined , {} | null | undefined >) : void ;
Parameters
Name Description request
protos.google.cloud.compute.v1.IRemoveResourcePoliciesRegionDiskRequest
options
CallOptions
callback
Callback <protos.google.cloud.compute.v1.IOperation , protos.google.cloud.compute.v1.IRemoveResourcePoliciesRegionDiskRequest | null | undefined, {} | null | undefined>
Returns
removeResourcePolicies(request, callback)
removeResourcePolicies ( request : protos . google . cloud . compute . v1 . IRemoveResourcePoliciesRegionDiskRequest , callback : Callback<protos . google . cloud . compute . v1 . IOperation , protos . google . cloud . compute . v1 . IRemoveResourcePoliciesRegionDiskRequest | null | undefined , {} | null | undefined >) : void ;
Parameters
Name Description request
protos.google.cloud.compute.v1.IRemoveResourcePoliciesRegionDiskRequest
callback
Callback <protos.google.cloud.compute.v1.IOperation , protos.google.cloud.compute.v1.IRemoveResourcePoliciesRegionDiskRequest | null | undefined, {} | null | undefined>
Returns
resize(request, options)
resize ( request ?: protos . google . cloud . compute . v1 . IResizeRegionDiskRequest , options ?: CallOptions ) : Promise <[
LROperation<protos . google . cloud . compute . v1 . IOperation , null >,
protos . google . cloud . compute . v1 . IOperation | undefined ,
{} | undefined
]>;
Parameters
Name Description request
protos.google.cloud.compute.v1.IResizeRegionDiskRequest
options
CallOptions
Returns
Type Description Promise <[
LROperation <protos.google.cloud.compute.v1.IOperation , null>,
protos.google.cloud.compute.v1.IOperation | undefined,
{} | undefined
]>
resize(request, options, callback)
resize ( request : protos . google . cloud . compute . v1 . IResizeRegionDiskRequest , options : CallOptions , callback : Callback<protos . google . cloud . compute . v1 . IOperation , protos . google . cloud . compute . v1 . IResizeRegionDiskRequest | null | undefined , {} | null | undefined >) : void ;
Parameters
Name Description request
protos.google.cloud.compute.v1.IResizeRegionDiskRequest
options
CallOptions
callback
Callback <protos.google.cloud.compute.v1.IOperation , protos.google.cloud.compute.v1.IResizeRegionDiskRequest | null | undefined, {} | null | undefined>
Returns
resize(request, callback)
resize ( request : protos . google . cloud . compute . v1 . IResizeRegionDiskRequest , callback : Callback<protos . google . cloud . compute . v1 . IOperation , protos . google . cloud . compute . v1 . IResizeRegionDiskRequest | null | undefined , {} | null | undefined >) : void ;
Parameters
Name Description request
protos.google.cloud.compute.v1.IResizeRegionDiskRequest
callback
Callback <protos.google.cloud.compute.v1.IOperation , protos.google.cloud.compute.v1.IResizeRegionDiskRequest | null | undefined, {} | null | undefined>
Returns
setIamPolicy(request, options)
setIamPolicy ( request ?: protos . google . cloud . compute . v1 . ISetIamPolicyRegionDiskRequest , options ?: CallOptions ) : Promise <[
protos . google . cloud . compute . v1 . IPolicy ,
protos . google . cloud . compute . v1 . ISetIamPolicyRegionDiskRequest | undefined ,
{} | undefined
]>;
Parameters
Name Description request
protos.google.cloud.compute.v1.ISetIamPolicyRegionDiskRequest
options
CallOptions
Returns
Type Description Promise <[
protos.google.cloud.compute.v1.IPolicy ,
protos.google.cloud.compute.v1.ISetIamPolicyRegionDiskRequest | undefined,
{} | undefined
]>
setIamPolicy(request, options, callback)
setIamPolicy ( request : protos . google . cloud . compute . v1 . ISetIamPolicyRegionDiskRequest , options : CallOptions , callback : Callback<protos . google . cloud . compute . v1 . IPolicy , protos . google . cloud . compute . v1 . ISetIamPolicyRegionDiskRequest | null | undefined , {} | null | undefined >) : void ;
Parameters
Name Description request
protos.google.cloud.compute.v1.ISetIamPolicyRegionDiskRequest
options
CallOptions
callback
Callback <protos.google.cloud.compute.v1.IPolicy , protos.google.cloud.compute.v1.ISetIamPolicyRegionDiskRequest | null | undefined, {} | null | undefined>
Returns
setIamPolicy(request, callback)
setIamPolicy ( request : protos . google . cloud . compute . v1 . ISetIamPolicyRegionDiskRequest , callback : Callback<protos . google . cloud . compute . v1 . IPolicy , protos . google . cloud . compute . v1 . ISetIamPolicyRegionDiskRequest | null | undefined , {} | null | undefined >) : void ;
Parameters
Name Description request
protos.google.cloud.compute.v1.ISetIamPolicyRegionDiskRequest
callback
Callback <protos.google.cloud.compute.v1.IPolicy , protos.google.cloud.compute.v1.ISetIamPolicyRegionDiskRequest | null | undefined, {} | null | undefined>
Returns
setLabels(request, options)
setLabels ( request ?: protos . google . cloud . compute . v1 . ISetLabelsRegionDiskRequest , options ?: CallOptions ) : Promise <[
LROperation<protos . google . cloud . compute . v1 . IOperation , null >,
protos . google . cloud . compute . v1 . IOperation | undefined ,
{} | undefined
]>;
Parameters
Name Description request
protos.google.cloud.compute.v1.ISetLabelsRegionDiskRequest
options
CallOptions
Returns
Type Description Promise <[
LROperation <protos.google.cloud.compute.v1.IOperation , null>,
protos.google.cloud.compute.v1.IOperation | undefined,
{} | undefined
]>
setLabels(request, options, callback)
setLabels ( request : protos . google . cloud . compute . v1 . ISetLabelsRegionDiskRequest , options : CallOptions , callback : Callback<protos . google . cloud . compute . v1 . IOperation , protos . google . cloud . compute . v1 . ISetLabelsRegionDiskRequest | null | undefined , {} | null | undefined >) : void ;
Parameters
Name Description request
protos.google.cloud.compute.v1.ISetLabelsRegionDiskRequest
options
CallOptions
callback
Callback <protos.google.cloud.compute.v1.IOperation , protos.google.cloud.compute.v1.ISetLabelsRegionDiskRequest | null | undefined, {} | null | undefined>
Returns
setLabels(request, callback)
setLabels ( request : protos . google . cloud . compute . v1 . ISetLabelsRegionDiskRequest , callback : Callback<protos . google . cloud . compute . v1 . IOperation , protos . google . cloud . compute . v1 . ISetLabelsRegionDiskRequest | null | undefined , {} | null | undefined >) : void ;
Parameters
Name Description request
protos.google.cloud.compute.v1.ISetLabelsRegionDiskRequest
callback
Callback <protos.google.cloud.compute.v1.IOperation , protos.google.cloud.compute.v1.ISetLabelsRegionDiskRequest | null | undefined, {} | null | undefined>
Returns
testIamPermissions(request, options)
testIamPermissions ( request ?: protos . google . cloud . compute . v1 . ITestIamPermissionsRegionDiskRequest , options ?: CallOptions ) : Promise <[
protos . google . cloud . compute . v1 . ITestPermissionsResponse ,
( protos . google . cloud . compute . v1 . ITestIamPermissionsRegionDiskRequest | undefined ),
{} | undefined
]>;
Parameters
Name Description request
protos.google.cloud.compute.v1.ITestIamPermissionsRegionDiskRequest
options
CallOptions
Returns
Type Description Promise <[
protos.google.cloud.compute.v1.ITestPermissionsResponse ,
(protos.google.cloud.compute.v1.ITestIamPermissionsRegionDiskRequest | undefined),
{} | undefined
]>
testIamPermissions(request, options, callback)
testIamPermissions ( request : protos . google . cloud . compute . v1 . ITestIamPermissionsRegionDiskRequest , options : CallOptions , callback : Callback<protos . google . cloud . compute . v1 . ITestPermissionsResponse , protos . google . cloud . compute . v1 . ITestIamPermissionsRegionDiskRequest | null | undefined , {} | null | undefined >) : void ;
Parameters
Name Description request
protos.google.cloud.compute.v1.ITestIamPermissionsRegionDiskRequest
options
CallOptions
callback
Callback <protos.google.cloud.compute.v1.ITestPermissionsResponse , protos.google.cloud.compute.v1.ITestIamPermissionsRegionDiskRequest | null | undefined, {} | null | undefined>
Returns
testIamPermissions(request, callback)
testIamPermissions ( request : protos . google . cloud . compute . v1 . ITestIamPermissionsRegionDiskRequest , callback : Callback<protos . google . cloud . compute . v1 . ITestPermissionsResponse , protos . google . cloud . compute . v1 . ITestIamPermissionsRegionDiskRequest | null | undefined , {} | null | undefined >) : void ;
Parameters
Name Description request
protos.google.cloud.compute.v1.ITestIamPermissionsRegionDiskRequest
callback
Callback <protos.google.cloud.compute.v1.ITestPermissionsResponse , protos.google.cloud.compute.v1.ITestIamPermissionsRegionDiskRequest | null | undefined, {} | null | undefined>
Returns
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-08 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-08 UTC."],[],[]]