Represents an Operation.
Package
@google-cloud/computeConstructors
(constructor)(properties)
constructor(properties?: google.cloud.compute.v1small.IOperation);
Constructs a new Operation.
Name | Description |
properties |
IOperation
Properties to set |
Properties
_clientOperationId
public _clientOperationId?: "clientOperationId";
Operation _clientOperationId.
_creationTimestamp
public _creationTimestamp?: "creationTimestamp";
Operation _creationTimestamp.
_description
public _description?: "description";
Operation _description.
_endTime
public _endTime?: "endTime";
Operation _endTime.
_error
public _error?: "error";
Operation _error.
_httpErrorMessage
public _httpErrorMessage?: "httpErrorMessage";
Operation _httpErrorMessage.
_httpErrorStatusCode
public _httpErrorStatusCode?: "httpErrorStatusCode";
Operation _httpErrorStatusCode.
_id
public _id?: "id";
Operation _id.
_insertTime
public _insertTime?: "insertTime";
Operation _insertTime.
_kind
public _kind?: "kind";
Operation _kind.
_name
public _name?: "name";
Operation _name.
_operationType
public _operationType?: "operationType";
Operation _operationType.
_progress
public _progress?: "progress";
Operation _progress.
_region
public _region?: "region";
Operation _region.
_selfLink
public _selfLink?: "selfLink";
Operation _selfLink.
_startTime
public _startTime?: "startTime";
Operation _startTime.
_status
public _status?: "status";
Operation _status.
_statusMessage
public _statusMessage?: "statusMessage";
Operation _statusMessage.
_targetId
public _targetId?: "targetId";
Operation _targetId.
_targetLink
public _targetLink?: "targetLink";
Operation _targetLink.
_user
public _user?: "user";
Operation _user.
_zone
public _zone?: "zone";
Operation _zone.
clientOperationId
public clientOperationId?: (string|null);
Operation clientOperationId.
creationTimestamp
public creationTimestamp?: (string|null);
Operation creationTimestamp.
description
public description?: (string|null);
Operation description.
endTime
public endTime?: (string|null);
Operation endTime.
error
public error?: (google.cloud.compute.v1small.IError|null);
Operation error.
httpErrorMessage
public httpErrorMessage?: (string|null);
Operation httpErrorMessage.
httpErrorStatusCode
public httpErrorStatusCode?: (number|null);
Operation httpErrorStatusCode.
id
public id?: (number|Long|string|null);
Operation id.
insertTime
public insertTime?: (string|null);
Operation insertTime.
kind
public kind?: (string|null);
Operation kind.
name
public name?: (string|null);
Operation name.
operationType
public operationType?: (string|null);
Operation operationType.
progress
public progress?: (number|null);
Operation progress.
region
public region?: (string|null);
Operation region.
selfLink
public selfLink?: (string|null);
Operation selfLink.
startTime
public startTime?: (string|null);
Operation startTime.
status
public status?: (google.cloud.compute.v1small.Operation.Status|keyof typeof google.cloud.compute.v1small.Operation.Status|null);
Operation status.
statusMessage
public statusMessage?: (string|null);
Operation statusMessage.
targetId
public targetId?: (number|Long|string|null);
Operation targetId.
targetLink
public targetLink?: (string|null);
Operation targetLink.
user
public user?: (string|null);
Operation user.
warnings
public warnings: google.cloud.compute.v1small.IWarnings[];
Operation warnings.
zone
public zone?: (string|null);
Operation zone.
Methods
create(properties)
public static create(properties?: google.cloud.compute.v1small.IOperation): google.cloud.compute.v1small.Operation;
Creates a new Operation instance using the specified properties.
Name | Description |
properties |
IOperation
Properties to set |
Type | Description |
google.cloud.compute.v1small.Operation | Operation instance |
decode(reader, length)
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1small.Operation;
Decodes an Operation message from the specified reader or buffer.
Name | Description |
reader |
($protobuf.Reader|Uint8Array)
Reader or buffer to decode from |
length |
number
Message length if known beforehand |
Type | Description |
google.cloud.compute.v1small.Operation | Operation |
decodeDelimited(reader)
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1small.Operation;
Decodes an Operation message from the specified reader or buffer, length delimited.
Name | Description |
reader |
($protobuf.Reader|Uint8Array)
Reader or buffer to decode from |
Type | Description |
google.cloud.compute.v1small.Operation | Operation |
encode(message, writer)
public static encode(message: google.cloud.compute.v1small.IOperation, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified Operation message. Does not implicitly messages.
Name | Description |
message |
IOperation
Operation message or plain object to encode |
writer |
$protobuf.Writer
Writer to encode to |
Type | Description |
$protobuf.Writer | Writer |
encodeDelimited(message, writer)
public static encodeDelimited(message: google.cloud.compute.v1small.IOperation, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified Operation message, length delimited. Does not implicitly messages.
Name | Description |
message |
IOperation
Operation message or plain object to encode |
writer |
$protobuf.Writer
Writer to encode to |
Type | Description |
$protobuf.Writer | Writer |
fromObject(object)
public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1small.Operation;
Creates an Operation message from a plain object. Also converts values to their respective internal types.
Name | Description |
object |
{ [k: string]: any }
Plain object |
Type | Description |
google.cloud.compute.v1small.Operation | Operation |
toJSON()
public toJSON(): { [k: string]: any };
Converts this Operation to JSON.
Type | Description |
{ [k: string]: any } | JSON object |
toObject(message, options)
public static toObject(message: google.cloud.compute.v1small.Operation, options?: $protobuf.IConversionOptions): { [k: string]: any };
Creates a plain object from an Operation message. Also converts values to other types if specified.
Name | Description |
message |
google.cloud.compute.v1small.Operation
Operation |
options |
$protobuf.IConversionOptions
Conversion options |
Type | Description |
{ [k: string]: any } | Plain object |
verify(message)
public static verify(message: { [k: string]: any }): (string|null);
Verifies an Operation message.
Name | Description |
message |
{ [k: string]: any }
Plain object to verify |
Type | Description |
(string|null) |
|