Represents a StoragePoolType.
Package
@google-cloud/computeConstructors
(constructor)(properties)
constructor(properties?: google.cloud.compute.v1.IStoragePoolType);
Constructs a new StoragePoolType.
Parameter | |
---|---|
Name | Description |
properties |
IStoragePoolType
Properties to set |
Properties
_creationTimestamp
public _creationTimestamp?: "creationTimestamp";
StoragePoolType _creationTimestamp.
_deprecated
public _deprecated?: "deprecated";
StoragePoolType _deprecated.
_description
public _description?: "description";
StoragePoolType _description.
_id
public _id?: "id";
StoragePoolType _id.
_kind
public _kind?: "kind";
StoragePoolType _kind.
_maxPoolProvisionedCapacityGb
public _maxPoolProvisionedCapacityGb?: "maxPoolProvisionedCapacityGb";
StoragePoolType _maxPoolProvisionedCapacityGb.
_maxPoolProvisionedIops
public _maxPoolProvisionedIops?: "maxPoolProvisionedIops";
StoragePoolType _maxPoolProvisionedIops.
_maxPoolProvisionedThroughput
public _maxPoolProvisionedThroughput?: "maxPoolProvisionedThroughput";
StoragePoolType _maxPoolProvisionedThroughput.
_minPoolProvisionedCapacityGb
public _minPoolProvisionedCapacityGb?: "minPoolProvisionedCapacityGb";
StoragePoolType _minPoolProvisionedCapacityGb.
_minPoolProvisionedIops
public _minPoolProvisionedIops?: "minPoolProvisionedIops";
StoragePoolType _minPoolProvisionedIops.
_minPoolProvisionedThroughput
public _minPoolProvisionedThroughput?: "minPoolProvisionedThroughput";
StoragePoolType _minPoolProvisionedThroughput.
_minSizeGb
public _minSizeGb?: "minSizeGb";
StoragePoolType _minSizeGb.
_name
public _name?: "name";
StoragePoolType _name.
_selfLink
public _selfLink?: "selfLink";
StoragePoolType _selfLink.
_selfLinkWithId
public _selfLinkWithId?: "selfLinkWithId";
StoragePoolType _selfLinkWithId.
_zone
public _zone?: "zone";
StoragePoolType _zone.
creationTimestamp
public creationTimestamp?: (string|null);
StoragePoolType creationTimestamp.
deprecated
public deprecated?: (google.cloud.compute.v1.IDeprecationStatus|null);
StoragePoolType deprecated.
description
public description?: (string|null);
StoragePoolType description.
id
public id?: (number|Long|string|null);
StoragePoolType id.
kind
public kind?: (string|null);
StoragePoolType kind.
maxPoolProvisionedCapacityGb
public maxPoolProvisionedCapacityGb?: (number|Long|string|null);
StoragePoolType maxPoolProvisionedCapacityGb.
maxPoolProvisionedIops
public maxPoolProvisionedIops?: (number|Long|string|null);
StoragePoolType maxPoolProvisionedIops.
maxPoolProvisionedThroughput
public maxPoolProvisionedThroughput?: (number|Long|string|null);
StoragePoolType maxPoolProvisionedThroughput.
minPoolProvisionedCapacityGb
public minPoolProvisionedCapacityGb?: (number|Long|string|null);
StoragePoolType minPoolProvisionedCapacityGb.
minPoolProvisionedIops
public minPoolProvisionedIops?: (number|Long|string|null);
StoragePoolType minPoolProvisionedIops.
minPoolProvisionedThroughput
public minPoolProvisionedThroughput?: (number|Long|string|null);
StoragePoolType minPoolProvisionedThroughput.
minSizeGb
public minSizeGb?: (number|Long|string|null);
StoragePoolType minSizeGb.
name
public name?: (string|null);
StoragePoolType name.
selfLink
public selfLink?: (string|null);
StoragePoolType selfLink.
selfLinkWithId
public selfLinkWithId?: (string|null);
StoragePoolType selfLinkWithId.
supportedDiskTypes
public supportedDiskTypes: string[];
StoragePoolType supportedDiskTypes.
zone
public zone?: (string|null);
StoragePoolType zone.
Methods
create(properties)
public static create(properties?: google.cloud.compute.v1.IStoragePoolType): google.cloud.compute.v1.StoragePoolType;
Creates a new StoragePoolType instance using the specified properties.
Parameter | |
---|---|
Name | Description |
properties |
IStoragePoolType
Properties to set |
Returns | |
---|---|
Type | Description |
StoragePoolType |
StoragePoolType instance |
decode(reader, length)
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.StoragePoolType;
Decodes a StoragePoolType 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 |
StoragePoolType |
StoragePoolType |
decodeDelimited(reader)
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.StoragePoolType;
Decodes a StoragePoolType message from the specified reader or buffer, length delimited.
Parameter | |
---|---|
Name | Description |
reader |
(Reader|Uint8Array)
Reader or buffer to decode from |
Returns | |
---|---|
Type | Description |
StoragePoolType |
StoragePoolType |
encode(message, writer)
public static encode(message: google.cloud.compute.v1.IStoragePoolType, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified StoragePoolType message. Does not implicitly messages.
Parameters | |
---|---|
Name | Description |
message |
IStoragePoolType
StoragePoolType 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.IStoragePoolType, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified StoragePoolType message, length delimited. Does not implicitly messages.
Parameters | |
---|---|
Name | Description |
message |
IStoragePoolType
StoragePoolType 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.StoragePoolType;
Creates a StoragePoolType 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 |
StoragePoolType |
StoragePoolType |
getTypeUrl(typeUrlPrefix)
public static getTypeUrl(typeUrlPrefix?: string): string;
Gets the default type url for StoragePoolType
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 StoragePoolType to JSON.
Returns | |
---|---|
Type | Description |
{ [k: string]: any } |
JSON object |
toObject(message, options)
public static toObject(message: google.cloud.compute.v1.StoragePoolType, options?: $protobuf.IConversionOptions): { [k: string]: any };
Creates a plain object from a StoragePoolType message. Also converts values to other types if specified.
Parameters | |
---|---|
Name | Description |
message |
StoragePoolType
StoragePoolType |
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 StoragePoolType message.
Parameter | |
---|---|
Name | Description |
message |
{ [k: string]: any }
Plain object to verify |
Returns | |
---|---|
Type | Description |
(string|null) |
|