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