Represents a PacketMirroring.
Package
@google-cloud/computeConstructors
(constructor)(properties)
constructor(properties?: google.cloud.compute.v1.IPacketMirroring);
Constructs a new PacketMirroring.
Parameter | |
---|---|
Name | Description |
properties |
IPacketMirroring
Properties to set |
Properties
_collectorIlb
public _collectorIlb?: "collectorIlb";
PacketMirroring _collectorIlb.
_creationTimestamp
public _creationTimestamp?: "creationTimestamp";
PacketMirroring _creationTimestamp.
_description
public _description?: "description";
PacketMirroring _description.
_enable
public _enable?: "enable";
PacketMirroring _enable.
_filter
public _filter?: "filter";
PacketMirroring _filter.
_id
public _id?: "id";
PacketMirroring _id.
_kind
public _kind?: "kind";
PacketMirroring _kind.
_mirroredResources
public _mirroredResources?: "mirroredResources";
PacketMirroring _mirroredResources.
_name
public _name?: "name";
PacketMirroring _name.
_network
public _network?: "network";
PacketMirroring _network.
_priority
public _priority?: "priority";
PacketMirroring _priority.
_region
public _region?: "region";
PacketMirroring _region.
_selfLink
public _selfLink?: "selfLink";
PacketMirroring _selfLink.
collectorIlb
public collectorIlb?: (google.cloud.compute.v1.IPacketMirroringForwardingRuleInfo|null);
PacketMirroring collectorIlb.
creationTimestamp
public creationTimestamp?: (string|null);
PacketMirroring creationTimestamp.
description
public description?: (string|null);
PacketMirroring description.
enable
public enable?: (string|null);
PacketMirroring enable.
filter
public filter?: (google.cloud.compute.v1.IPacketMirroringFilter|null);
PacketMirroring filter.
id
public id?: (number|Long|string|null);
PacketMirroring id.
kind
public kind?: (string|null);
PacketMirroring kind.
mirroredResources
public mirroredResources?: (google.cloud.compute.v1.IPacketMirroringMirroredResourceInfo|null);
PacketMirroring mirroredResources.
name
public name?: (string|null);
PacketMirroring name.
network
public network?: (google.cloud.compute.v1.IPacketMirroringNetworkInfo|null);
PacketMirroring network.
priority
public priority?: (number|null);
PacketMirroring priority.
region
public region?: (string|null);
PacketMirroring region.
selfLink
public selfLink?: (string|null);
PacketMirroring selfLink.
Methods
create(properties)
public static create(properties?: google.cloud.compute.v1.IPacketMirroring): google.cloud.compute.v1.PacketMirroring;
Creates a new PacketMirroring instance using the specified properties.
Parameter | |
---|---|
Name | Description |
properties |
IPacketMirroring
Properties to set |
Returns | |
---|---|
Type | Description |
PacketMirroring |
PacketMirroring instance |
decode(reader, length)
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.PacketMirroring;
Decodes a PacketMirroring 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 |
PacketMirroring |
PacketMirroring |
decodeDelimited(reader)
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.PacketMirroring;
Decodes a PacketMirroring message from the specified reader or buffer, length delimited.
Parameter | |
---|---|
Name | Description |
reader |
(Reader|Uint8Array)
Reader or buffer to decode from |
Returns | |
---|---|
Type | Description |
PacketMirroring |
PacketMirroring |
encode(message, writer)
public static encode(message: google.cloud.compute.v1.IPacketMirroring, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified PacketMirroring message. Does not implicitly messages.
Parameters | |
---|---|
Name | Description |
message |
IPacketMirroring
PacketMirroring 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.IPacketMirroring, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified PacketMirroring message, length delimited. Does not implicitly messages.
Parameters | |
---|---|
Name | Description |
message |
IPacketMirroring
PacketMirroring 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.PacketMirroring;
Creates a PacketMirroring 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 |
PacketMirroring |
PacketMirroring |
getTypeUrl(typeUrlPrefix)
public static getTypeUrl(typeUrlPrefix?: string): string;
Gets the default type url for PacketMirroring
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 PacketMirroring to JSON.
Returns | |
---|---|
Type | Description |
{ [k: string]: any } |
JSON object |
toObject(message, options)
public static toObject(message: google.cloud.compute.v1.PacketMirroring, options?: $protobuf.IConversionOptions): { [k: string]: any };
Creates a plain object from a PacketMirroring message. Also converts values to other types if specified.
Parameters | |
---|---|
Name | Description |
message |
PacketMirroring
PacketMirroring |
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 PacketMirroring message.
Parameter | |
---|---|
Name | Description |
message |
{ [k: string]: any }
Plain object to verify |
Returns | |
---|---|
Type | Description |
(string|null) |
|