Represents a StoragePoolDisk.
Package
@google-cloud/computeConstructors
(constructor)(properties)
constructor(properties?: google.cloud.compute.v1.IStoragePoolDisk);Constructs a new StoragePoolDisk.
| Parameter | |
|---|---|
| Name | Description |
properties |
IStoragePoolDisk
Properties to set |
Properties
_creationTimestamp
public _creationTimestamp?: "creationTimestamp";StoragePoolDisk _creationTimestamp.
_disk
public _disk?: "disk";StoragePoolDisk _disk.
_name
public _name?: "name";StoragePoolDisk _name.
_provisionedIops
public _provisionedIops?: "provisionedIops";StoragePoolDisk _provisionedIops.
_provisionedThroughput
public _provisionedThroughput?: "provisionedThroughput";StoragePoolDisk _provisionedThroughput.
_sizeGb
public _sizeGb?: "sizeGb";StoragePoolDisk _sizeGb.
_status
public _status?: "status";StoragePoolDisk _status.
_type
public _type?: "type";StoragePoolDisk _type.
_usedBytes
public _usedBytes?: "usedBytes";StoragePoolDisk _usedBytes.
attachedInstances
public attachedInstances: string[];StoragePoolDisk attachedInstances.
creationTimestamp
public creationTimestamp?: (string|null);StoragePoolDisk creationTimestamp.
disk
public disk?: (string|null);StoragePoolDisk disk.
name
public name?: (string|null);StoragePoolDisk name.
provisionedIops
public provisionedIops?: (number|Long|string|null);StoragePoolDisk provisionedIops.
provisionedThroughput
public provisionedThroughput?: (number|Long|string|null);StoragePoolDisk provisionedThroughput.
resourcePolicies
public resourcePolicies: string[];StoragePoolDisk resourcePolicies.
sizeGb
public sizeGb?: (number|Long|string|null);StoragePoolDisk sizeGb.
status
public status?: (string|null);StoragePoolDisk status.
type
public type?: (string|null);StoragePoolDisk type.
usedBytes
public usedBytes?: (number|Long|string|null);StoragePoolDisk usedBytes.
Methods
create(properties)
public static create(properties?: google.cloud.compute.v1.IStoragePoolDisk): google.cloud.compute.v1.StoragePoolDisk;Creates a new StoragePoolDisk instance using the specified properties.
| Parameter | |
|---|---|
| Name | Description |
properties |
IStoragePoolDisk
Properties to set |
| Returns | |
|---|---|
| Type | Description |
StoragePoolDisk |
StoragePoolDisk instance |
decode(reader, length)
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.StoragePoolDisk;Decodes a StoragePoolDisk 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 |
StoragePoolDisk |
StoragePoolDisk |
decodeDelimited(reader)
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.StoragePoolDisk;Decodes a StoragePoolDisk message from the specified reader or buffer, length delimited.
| Parameter | |
|---|---|
| Name | Description |
reader |
(Reader|Uint8Array)
Reader or buffer to decode from |
| Returns | |
|---|---|
| Type | Description |
StoragePoolDisk |
StoragePoolDisk |
encode(message, writer)
public static encode(message: google.cloud.compute.v1.IStoragePoolDisk, writer?: $protobuf.Writer): $protobuf.Writer;Encodes the specified StoragePoolDisk message. Does not implicitly messages.
| Parameters | |
|---|---|
| Name | Description |
message |
IStoragePoolDisk
StoragePoolDisk 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.IStoragePoolDisk, writer?: $protobuf.Writer): $protobuf.Writer;Encodes the specified StoragePoolDisk message, length delimited. Does not implicitly messages.
| Parameters | |
|---|---|
| Name | Description |
message |
IStoragePoolDisk
StoragePoolDisk 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.StoragePoolDisk;Creates a StoragePoolDisk 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 |
StoragePoolDisk |
StoragePoolDisk |
getTypeUrl(typeUrlPrefix)
public static getTypeUrl(typeUrlPrefix?: string): string;Gets the default type url for StoragePoolDisk
| 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 StoragePoolDisk to JSON.
| Returns | |
|---|---|
| Type | Description |
{ [k: string]: any } |
JSON object |
toObject(message, options)
public static toObject(message: google.cloud.compute.v1.StoragePoolDisk, options?: $protobuf.IConversionOptions): { [k: string]: any };Creates a plain object from a StoragePoolDisk message. Also converts values to other types if specified.
| Parameters | |
|---|---|
| Name | Description |
message |
StoragePoolDisk
StoragePoolDisk |
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 StoragePoolDisk message.
| Parameter | |
|---|---|
| Name | Description |
message |
{ [k: string]: any }
Plain object to verify |
| Returns | |
|---|---|
| Type | Description |
(string|null) |
|