Class protos.google.cloud.compute.v1small.Operation (3.1.2)

Represents an Operation.

Package

@google-cloud/compute

Constructors

(constructor)(properties)

constructor(properties?: google.cloud.compute.v1small.IOperation);

Constructs a new Operation.

Parameter
NameDescription
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.

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.

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.

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.

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.

Parameter
NameDescription
properties IOperation

Properties to set

Returns
TypeDescription
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.

Parameters
NameDescription
reader ($protobuf.Reader|Uint8Array)

Reader or buffer to decode from

length number

Message length if known beforehand

Returns
TypeDescription
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.

Parameter
NameDescription
reader ($protobuf.Reader|Uint8Array)

Reader or buffer to decode from

Returns
TypeDescription
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.

Parameters
NameDescription
message IOperation

Operation message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
TypeDescription
$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.

Parameters
NameDescription
message IOperation

Operation message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
TypeDescription
$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.

Parameter
NameDescription
object { [k: string]: any }

Plain object

Returns
TypeDescription
google.cloud.compute.v1small.Operation

Operation

toJSON()

public toJSON(): { [k: string]: any };

Converts this Operation to JSON.

Returns
TypeDescription
{ [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.

Parameters
NameDescription
message google.cloud.compute.v1small.Operation

Operation

options $protobuf.IConversionOptions

Conversion options

Returns
TypeDescription
{ [k: string]: any }

Plain object

verify(message)

public static verify(message: { [k: string]: any }): (string|null);

Verifies an Operation message.

Parameter
NameDescription
message { [k: string]: any }

Plain object to verify

Returns
TypeDescription
(string|null)

null if valid, otherwise the reason why it is not