Represents an Images
Inheritance
$protobuf.rpc.Service > protos.google.cloud.compute.v1.ImagesPackage
@google-cloud/computeConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new Images 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): Images;
Creates new Images 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 |
Images |
RPC service. Useful where requests and/or responses are streamed. |
delete(request, callback)
public delete(request: google.cloud.compute.v1.IDeleteImageRequest, callback: google.cloud.compute.v1.Images.DeleteCallback): void;
Calls Delete.
Parameters | |
---|---|
Name | Description |
request |
IDeleteImageRequest
DeleteImageRequest message or plain object |
callback |
DeleteCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
delete(request)
public delete(request: google.cloud.compute.v1.IDeleteImageRequest): Promise<google.cloud.compute.v1.Operation>;
Calls Delete.
Parameter | |
---|---|
Name | Description |
request |
IDeleteImageRequest
DeleteImageRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.Operation> |
Promise |
deprecate(request, callback)
public deprecate(request: google.cloud.compute.v1.IDeprecateImageRequest, callback: google.cloud.compute.v1.Images.DeprecateCallback): void;
Calls Deprecate.
Parameters | |
---|---|
Name | Description |
request |
IDeprecateImageRequest
DeprecateImageRequest message or plain object |
callback |
DeprecateCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
deprecate(request)
public deprecate(request: google.cloud.compute.v1.IDeprecateImageRequest): Promise<google.cloud.compute.v1.Operation>;
Calls Deprecate.
Parameter | |
---|---|
Name | Description |
request |
IDeprecateImageRequest
DeprecateImageRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.Operation> |
Promise |
get(request, callback)
public get(request: google.cloud.compute.v1.IGetImageRequest, callback: google.cloud.compute.v1.Images.GetCallback): void;
Calls Get.
Parameters | |
---|---|
Name | Description |
request |
IGetImageRequest
GetImageRequest message or plain object |
callback |
GetCallback
Node-style callback called with the error, if any, and Image |
Returns | |
---|---|
Type | Description |
void |
get(request)
public get(request: google.cloud.compute.v1.IGetImageRequest): Promise<google.cloud.compute.v1.Image>;
Calls Get.
Parameter | |
---|---|
Name | Description |
request |
IGetImageRequest
GetImageRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.Image> |
Promise |
getFromFamily(request, callback)
public getFromFamily(request: google.cloud.compute.v1.IGetFromFamilyImageRequest, callback: google.cloud.compute.v1.Images.GetFromFamilyCallback): void;
Calls GetFromFamily.
Parameters | |
---|---|
Name | Description |
request |
IGetFromFamilyImageRequest
GetFromFamilyImageRequest message or plain object |
callback |
GetFromFamilyCallback
Node-style callback called with the error, if any, and Image |
Returns | |
---|---|
Type | Description |
void |
getFromFamily(request)
public getFromFamily(request: google.cloud.compute.v1.IGetFromFamilyImageRequest): Promise<google.cloud.compute.v1.Image>;
Calls GetFromFamily.
Parameter | |
---|---|
Name | Description |
request |
IGetFromFamilyImageRequest
GetFromFamilyImageRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.Image> |
Promise |
getIamPolicy(request, callback)
public getIamPolicy(request: google.cloud.compute.v1.IGetIamPolicyImageRequest, callback: google.cloud.compute.v1.Images.GetIamPolicyCallback): void;
Calls GetIamPolicy.
Parameters | |
---|---|
Name | Description |
request |
IGetIamPolicyImageRequest
GetIamPolicyImageRequest message or plain object |
callback |
GetIamPolicyCallback
Node-style callback called with the error, if any, and Policy |
Returns | |
---|---|
Type | Description |
void |
getIamPolicy(request)
public getIamPolicy(request: google.cloud.compute.v1.IGetIamPolicyImageRequest): Promise<google.cloud.compute.v1.Policy>;
Calls GetIamPolicy.
Parameter | |
---|---|
Name | Description |
request |
IGetIamPolicyImageRequest
GetIamPolicyImageRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.Policy> |
Promise |
insert(request, callback)
public insert(request: google.cloud.compute.v1.IInsertImageRequest, callback: google.cloud.compute.v1.Images.InsertCallback): void;
Calls Insert.
Parameters | |
---|---|
Name | Description |
request |
IInsertImageRequest
InsertImageRequest message or plain object |
callback |
InsertCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
insert(request)
public insert(request: google.cloud.compute.v1.IInsertImageRequest): Promise<google.cloud.compute.v1.Operation>;
Calls Insert.
Parameter | |
---|---|
Name | Description |
request |
IInsertImageRequest
InsertImageRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.Operation> |
Promise |
list(request, callback)
public list(request: google.cloud.compute.v1.IListImagesRequest, callback: google.cloud.compute.v1.Images.ListCallback): void;
Calls List.
Parameters | |
---|---|
Name | Description |
request |
IListImagesRequest
ListImagesRequest message or plain object |
callback |
ListCallback
Node-style callback called with the error, if any, and ImageList |
Returns | |
---|---|
Type | Description |
void |
list(request)
public list(request: google.cloud.compute.v1.IListImagesRequest): Promise<google.cloud.compute.v1.ImageList>;
Calls List.
Parameter | |
---|---|
Name | Description |
request |
IListImagesRequest
ListImagesRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.ImageList> |
Promise |
patch(request, callback)
public patch(request: google.cloud.compute.v1.IPatchImageRequest, callback: google.cloud.compute.v1.Images.PatchCallback): void;
Calls Patch.
Parameters | |
---|---|
Name | Description |
request |
IPatchImageRequest
PatchImageRequest message or plain object |
callback |
PatchCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
patch(request)
public patch(request: google.cloud.compute.v1.IPatchImageRequest): Promise<google.cloud.compute.v1.Operation>;
Calls Patch.
Parameter | |
---|---|
Name | Description |
request |
IPatchImageRequest
PatchImageRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.Operation> |
Promise |
setIamPolicy(request, callback)
public setIamPolicy(request: google.cloud.compute.v1.ISetIamPolicyImageRequest, callback: google.cloud.compute.v1.Images.SetIamPolicyCallback): void;
Calls SetIamPolicy.
Parameters | |
---|---|
Name | Description |
request |
ISetIamPolicyImageRequest
SetIamPolicyImageRequest message or plain object |
callback |
SetIamPolicyCallback
Node-style callback called with the error, if any, and Policy |
Returns | |
---|---|
Type | Description |
void |
setIamPolicy(request)
public setIamPolicy(request: google.cloud.compute.v1.ISetIamPolicyImageRequest): Promise<google.cloud.compute.v1.Policy>;
Calls SetIamPolicy.
Parameter | |
---|---|
Name | Description |
request |
ISetIamPolicyImageRequest
SetIamPolicyImageRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.Policy> |
Promise |
setLabels(request, callback)
public setLabels(request: google.cloud.compute.v1.ISetLabelsImageRequest, callback: google.cloud.compute.v1.Images.SetLabelsCallback): void;
Calls SetLabels.
Parameters | |
---|---|
Name | Description |
request |
ISetLabelsImageRequest
SetLabelsImageRequest message or plain object |
callback |
SetLabelsCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
setLabels(request)
public setLabels(request: google.cloud.compute.v1.ISetLabelsImageRequest): Promise<google.cloud.compute.v1.Operation>;
Calls SetLabels.
Parameter | |
---|---|
Name | Description |
request |
ISetLabelsImageRequest
SetLabelsImageRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.Operation> |
Promise |
testIamPermissions(request, callback)
public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsImageRequest, callback: google.cloud.compute.v1.Images.TestIamPermissionsCallback): void;
Calls TestIamPermissions.
Parameters | |
---|---|
Name | Description |
request |
ITestIamPermissionsImageRequest
TestIamPermissionsImageRequest message or plain object |
callback |
TestIamPermissionsCallback
Node-style callback called with the error, if any, and TestPermissionsResponse |
Returns | |
---|---|
Type | Description |
void |
testIamPermissions(request)
public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsImageRequest): Promise<google.cloud.compute.v1.TestPermissionsResponse>;
Calls TestIamPermissions.
Parameter | |
---|---|
Name | Description |
request |
ITestIamPermissionsImageRequest
TestIamPermissionsImageRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.TestPermissionsResponse> |
Promise |