Represents a PublicDelegatedPrefix.
Implements
Package
@google-cloud/computeConstructors
(constructor)(properties)
constructor(properties?: google.cloud.compute.v1beta.IPublicDelegatedPrefix);Constructs a new PublicDelegatedPrefix.
| Parameter | |
|---|---|
| Name | Description |
properties |
IPublicDelegatedPrefix
Properties to set |
Properties
allocatablePrefixLength
public allocatablePrefixLength?: (number|null);PublicDelegatedPrefix allocatablePrefixLength.
byoipApiVersion
public byoipApiVersion?: (string|null);PublicDelegatedPrefix byoipApiVersion.
creationTimestamp
public creationTimestamp?: (string|null);PublicDelegatedPrefix creationTimestamp.
description
public description?: (string|null);PublicDelegatedPrefix description.
enableEnhancedIpv4Allocation
public enableEnhancedIpv4Allocation?: (boolean|null);PublicDelegatedPrefix enableEnhancedIpv4Allocation.
fingerprint
public fingerprint?: (string|null);PublicDelegatedPrefix fingerprint.
id
public id?: (number|Long|string|null);PublicDelegatedPrefix id.
ipCidrRange
public ipCidrRange?: (string|null);PublicDelegatedPrefix ipCidrRange.
ipv6AccessType
public ipv6AccessType?: (string|null);PublicDelegatedPrefix ipv6AccessType.
isLiveMigration
public isLiveMigration?: (boolean|null);PublicDelegatedPrefix isLiveMigration.
kind
public kind?: (string|null);PublicDelegatedPrefix kind.
mode
public mode?: (string|null);PublicDelegatedPrefix mode.
name
public name?: (string|null);PublicDelegatedPrefix name.
parentPrefix
public parentPrefix?: (string|null);PublicDelegatedPrefix parentPrefix.
publicDelegatedSubPrefixs
public publicDelegatedSubPrefixs: google.cloud.compute.v1beta.IPublicDelegatedPrefixPublicDelegatedSubPrefix[];PublicDelegatedPrefix publicDelegatedSubPrefixs.
purpose
public purpose?: (string|null);PublicDelegatedPrefix purpose.
region
public region?: (string|null);PublicDelegatedPrefix region.
selfLink
public selfLink?: (string|null);PublicDelegatedPrefix selfLink.
status
public status?: (string|null);PublicDelegatedPrefix status.
Methods
create(properties)
public static create(properties?: google.cloud.compute.v1beta.IPublicDelegatedPrefix): google.cloud.compute.v1beta.PublicDelegatedPrefix;Creates a new PublicDelegatedPrefix instance using the specified properties.
| Parameter | |
|---|---|
| Name | Description |
properties |
IPublicDelegatedPrefix
Properties to set |
| Returns | |
|---|---|
| Type | Description |
PublicDelegatedPrefix |
PublicDelegatedPrefix instance |
decode(reader, length)
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1beta.PublicDelegatedPrefix;Decodes a PublicDelegatedPrefix 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 |
PublicDelegatedPrefix |
PublicDelegatedPrefix |
decodeDelimited(reader)
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1beta.PublicDelegatedPrefix;Decodes a PublicDelegatedPrefix message from the specified reader or buffer, length delimited.
| Parameter | |
|---|---|
| Name | Description |
reader |
(Reader|Uint8Array)
Reader or buffer to decode from |
| Returns | |
|---|---|
| Type | Description |
PublicDelegatedPrefix |
PublicDelegatedPrefix |
encode(message, writer)
public static encode(message: google.cloud.compute.v1beta.IPublicDelegatedPrefix, writer?: $protobuf.Writer): $protobuf.Writer;Encodes the specified PublicDelegatedPrefix message. Does not implicitly messages.
| Parameters | |
|---|---|
| Name | Description |
message |
IPublicDelegatedPrefix
PublicDelegatedPrefix 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.v1beta.IPublicDelegatedPrefix, writer?: $protobuf.Writer): $protobuf.Writer;Encodes the specified PublicDelegatedPrefix message, length delimited. Does not implicitly messages.
| Parameters | |
|---|---|
| Name | Description |
message |
IPublicDelegatedPrefix
PublicDelegatedPrefix 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.v1beta.PublicDelegatedPrefix;Creates a PublicDelegatedPrefix 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 |
PublicDelegatedPrefix |
PublicDelegatedPrefix |
getTypeUrl(typeUrlPrefix)
public static getTypeUrl(typeUrlPrefix?: string): string;Gets the default type url for PublicDelegatedPrefix
| 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 PublicDelegatedPrefix to JSON.
| Returns | |
|---|---|
| Type | Description |
{ [k: string]: any } |
JSON object |
toObject(message, options)
public static toObject(message: google.cloud.compute.v1beta.PublicDelegatedPrefix, options?: $protobuf.IConversionOptions): { [k: string]: any };Creates a plain object from a PublicDelegatedPrefix message. Also converts values to other types if specified.
| Parameters | |
|---|---|
| Name | Description |
message |
PublicDelegatedPrefix
PublicDelegatedPrefix |
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 PublicDelegatedPrefix message.
| Parameter | |
|---|---|
| Name | Description |
message |
{ [k: string]: any }
Plain object to verify |
| Returns | |
|---|---|
| Type | Description |
(string|null) |
|