Represents a MachineImage.
Package
@google-cloud/computeConstructors
(constructor)(properties)
constructor(properties?: google.cloud.compute.v1.IMachineImage);Constructs a new MachineImage.
| Parameter | |
|---|---|
| Name | Description |
properties |
IMachineImage
Properties to set |
Properties
_creationTimestamp
public _creationTimestamp?: "creationTimestamp";MachineImage _creationTimestamp.
_description
public _description?: "description";MachineImage _description.
_guestFlush
public _guestFlush?: "guestFlush";MachineImage _guestFlush.
_id
public _id?: "id";MachineImage _id.
_instanceProperties
public _instanceProperties?: "instanceProperties";MachineImage _instanceProperties.
_kind
public _kind?: "kind";MachineImage _kind.
_machineImageEncryptionKey
public _machineImageEncryptionKey?: "machineImageEncryptionKey";MachineImage _machineImageEncryptionKey.
_name
public _name?: "name";MachineImage _name.
_satisfiesPzi
public _satisfiesPzi?: "satisfiesPzi";MachineImage _satisfiesPzi.
_satisfiesPzs
public _satisfiesPzs?: "satisfiesPzs";MachineImage _satisfiesPzs.
_selfLink
public _selfLink?: "selfLink";MachineImage _selfLink.
_sourceInstance
public _sourceInstance?: "sourceInstance";MachineImage _sourceInstance.
_sourceInstanceProperties
public _sourceInstanceProperties?: "sourceInstanceProperties";MachineImage _sourceInstanceProperties.
_status
public _status?: "status";MachineImage _status.
_totalStorageBytes
public _totalStorageBytes?: "totalStorageBytes";MachineImage _totalStorageBytes.
creationTimestamp
public creationTimestamp?: (string|null);MachineImage creationTimestamp.
description
public description?: (string|null);MachineImage description.
guestFlush
public guestFlush?: (boolean|null);MachineImage guestFlush.
id
public id?: (number|Long|string|null);MachineImage id.
instanceProperties
public instanceProperties?: (google.cloud.compute.v1.IInstanceProperties|null);MachineImage instanceProperties.
kind
public kind?: (string|null);MachineImage kind.
machineImageEncryptionKey
public machineImageEncryptionKey?: (google.cloud.compute.v1.ICustomerEncryptionKey|null);MachineImage machineImageEncryptionKey.
name
public name?: (string|null);MachineImage name.
satisfiesPzi
public satisfiesPzi?: (boolean|null);MachineImage satisfiesPzi.
satisfiesPzs
public satisfiesPzs?: (boolean|null);MachineImage satisfiesPzs.
savedDisks
public savedDisks: google.cloud.compute.v1.ISavedDisk[];MachineImage savedDisks.
selfLink
public selfLink?: (string|null);MachineImage selfLink.
sourceDiskEncryptionKeys
public sourceDiskEncryptionKeys: google.cloud.compute.v1.ISourceDiskEncryptionKey[];MachineImage sourceDiskEncryptionKeys.
sourceInstance
public sourceInstance?: (string|null);MachineImage sourceInstance.
sourceInstanceProperties
public sourceInstanceProperties?: (google.cloud.compute.v1.ISourceInstanceProperties|null);MachineImage sourceInstanceProperties.
status
public status?: (string|null);MachineImage status.
storageLocations
public storageLocations: string[];MachineImage storageLocations.
totalStorageBytes
public totalStorageBytes?: (number|Long|string|null);MachineImage totalStorageBytes.
Methods
create(properties)
public static create(properties?: google.cloud.compute.v1.IMachineImage): google.cloud.compute.v1.MachineImage;Creates a new MachineImage instance using the specified properties.
| Parameter | |
|---|---|
| Name | Description |
properties |
IMachineImage
Properties to set |
| Returns | |
|---|---|
| Type | Description |
MachineImage |
MachineImage instance |
decode(reader, length)
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.MachineImage;Decodes a MachineImage message from the specified reader or buffer.
| Parameters | |
|---|---|
| Name | Description |
reader |
(Reader|Uint8Array)
Reader or buffer to decode from |
length |
number
Message length if known beforehand |
| Returns | |
|---|---|
| Type | Description |
MachineImage |
MachineImage |
decodeDelimited(reader)
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.MachineImage;Decodes a MachineImage message from the specified reader or buffer, length delimited.
| Parameter | |
|---|---|
| Name | Description |
reader |
(Reader|Uint8Array)
Reader or buffer to decode from |
| Returns | |
|---|---|
| Type | Description |
MachineImage |
MachineImage |
encode(message, writer)
public static encode(message: google.cloud.compute.v1.IMachineImage, writer?: $protobuf.Writer): $protobuf.Writer;Encodes the specified MachineImage message. Does not implicitly messages.
| Parameters | |
|---|---|
| Name | Description |
message |
IMachineImage
MachineImage message or plain object to encode |
writer |
$protobuf.Writer
Writer to encode to |
| Returns | |
|---|---|
| Type | Description |
$protobuf.Writer |
Writer |
encodeDelimited(message, writer)
public static encodeDelimited(message: google.cloud.compute.v1.IMachineImage, writer?: $protobuf.Writer): $protobuf.Writer;Encodes the specified MachineImage message, length delimited. Does not implicitly messages.
| Parameters | |
|---|---|
| Name | Description |
message |
IMachineImage
MachineImage message or plain object to encode |
writer |
$protobuf.Writer
Writer to encode to |
| Returns | |
|---|---|
| Type | Description |
$protobuf.Writer |
Writer |
fromObject(object)
public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.MachineImage;Creates a MachineImage message from a plain object. Also converts values to their respective internal types.
| Parameter | |
|---|---|
| Name | Description |
object |
{ [k: string]: any }
Plain object |
| Returns | |
|---|---|
| Type | Description |
MachineImage |
MachineImage |
getTypeUrl(typeUrlPrefix)
public static getTypeUrl(typeUrlPrefix?: string): string;Gets the default type url for MachineImage
| Parameter | |
|---|---|
| Name | Description |
typeUrlPrefix |
string
your custom typeUrlPrefix(default "type.googleapis.com") |
| Returns | |
|---|---|
| Type | Description |
string |
The default type url |
toJSON()
public toJSON(): { [k: string]: any };Converts this MachineImage to JSON.
| Returns | |
|---|---|
| Type | Description |
{ [k: string]: any } |
JSON object |
toObject(message, options)
public static toObject(message: google.cloud.compute.v1.MachineImage, options?: $protobuf.IConversionOptions): { [k: string]: any };Creates a plain object from a MachineImage message. Also converts values to other types if specified.
| Parameters | |
|---|---|
| Name | Description |
message |
MachineImage
MachineImage |
options |
$protobuf.IConversionOptions
Conversion options |
| Returns | |
|---|---|
| Type | Description |
{ [k: string]: any } |
Plain object |
verify(message)
public static verify(message: { [k: string]: any }): (string|null);Verifies a MachineImage message.
| Parameter | |
|---|---|
| Name | Description |
message |
{ [k: string]: any }
Plain object to verify |
| Returns | |
|---|---|
| Type | Description |
(string|null) |
|