Represents a VpcFlowLogsConfig.
Package
@google-cloud/network-managementConstructors
(constructor)(properties)
constructor(properties?: google.cloud.networkmanagement.v1beta1.IVpcFlowLogsConfig);
Constructs a new VpcFlowLogsConfig.
Parameter | |
---|---|
Name | Description |
properties |
IVpcFlowLogsConfig
Properties to set |
Properties
_aggregationInterval
public _aggregationInterval?: "aggregationInterval";
VpcFlowLogsConfig _aggregationInterval.
_description
public _description?: "description";
VpcFlowLogsConfig _description.
_filterExpr
public _filterExpr?: "filterExpr";
VpcFlowLogsConfig _filterExpr.
_flowSampling
public _flowSampling?: "flowSampling";
VpcFlowLogsConfig _flowSampling.
_metadata
public _metadata?: "metadata";
VpcFlowLogsConfig _metadata.
_state
public _state?: "state";
VpcFlowLogsConfig _state.
aggregationInterval
public aggregationInterval?: (google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval|keyof typeof google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.AggregationInterval|null);
VpcFlowLogsConfig aggregationInterval.
createTime
public createTime?: (google.protobuf.ITimestamp|null);
VpcFlowLogsConfig createTime.
description
public description?: (string|null);
VpcFlowLogsConfig description.
filterExpr
public filterExpr?: (string|null);
VpcFlowLogsConfig filterExpr.
flowSampling
public flowSampling?: (number|null);
VpcFlowLogsConfig flowSampling.
interconnectAttachment
public interconnectAttachment?: (string|null);
VpcFlowLogsConfig interconnectAttachment.
labels
public labels: { [k: string]: string };
VpcFlowLogsConfig labels.
metadata
public metadata?: (google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Metadata|keyof typeof google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.Metadata|null);
VpcFlowLogsConfig metadata.
metadataFields
public metadataFields: string[];
VpcFlowLogsConfig metadataFields.
name
public name: string;
VpcFlowLogsConfig name.
state
public state?: (google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.State|keyof typeof google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig.State|null);
VpcFlowLogsConfig state.
targetResource
public targetResource?: ("interconnectAttachment"|"vpnTunnel");
VpcFlowLogsConfig targetResource.
updateTime
public updateTime?: (google.protobuf.ITimestamp|null);
VpcFlowLogsConfig updateTime.
vpnTunnel
public vpnTunnel?: (string|null);
VpcFlowLogsConfig vpnTunnel.
Methods
create(properties)
public static create(properties?: google.cloud.networkmanagement.v1beta1.IVpcFlowLogsConfig): google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig;
Creates a new VpcFlowLogsConfig instance using the specified properties.
Parameter | |
---|---|
Name | Description |
properties |
IVpcFlowLogsConfig
Properties to set |
Returns | |
---|---|
Type | Description |
VpcFlowLogsConfig |
VpcFlowLogsConfig instance |
decode(reader, length)
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig;
Decodes a VpcFlowLogsConfig 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 |
VpcFlowLogsConfig |
VpcFlowLogsConfig |
decodeDelimited(reader)
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig;
Decodes a VpcFlowLogsConfig message from the specified reader or buffer, length delimited.
Parameter | |
---|---|
Name | Description |
reader |
(Reader|Uint8Array)
Reader or buffer to decode from |
Returns | |
---|---|
Type | Description |
VpcFlowLogsConfig |
VpcFlowLogsConfig |
encode(message, writer)
public static encode(message: google.cloud.networkmanagement.v1beta1.IVpcFlowLogsConfig, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified VpcFlowLogsConfig message. Does not implicitly messages.
Parameters | |
---|---|
Name | Description |
message |
IVpcFlowLogsConfig
VpcFlowLogsConfig 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.networkmanagement.v1beta1.IVpcFlowLogsConfig, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified VpcFlowLogsConfig message, length delimited. Does not implicitly messages.
Parameters | |
---|---|
Name | Description |
message |
IVpcFlowLogsConfig
VpcFlowLogsConfig 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.networkmanagement.v1beta1.VpcFlowLogsConfig;
Creates a VpcFlowLogsConfig 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 |
VpcFlowLogsConfig |
VpcFlowLogsConfig |
getTypeUrl(typeUrlPrefix)
public static getTypeUrl(typeUrlPrefix?: string): string;
Gets the default type url for VpcFlowLogsConfig
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 VpcFlowLogsConfig to JSON.
Returns | |
---|---|
Type | Description |
{ [k: string]: any } |
JSON object |
toObject(message, options)
public static toObject(message: google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
Creates a plain object from a VpcFlowLogsConfig message. Also converts values to other types if specified.
Parameters | |
---|---|
Name | Description |
message |
VpcFlowLogsConfig
VpcFlowLogsConfig |
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 VpcFlowLogsConfig message.
Parameter | |
---|---|
Name | Description |
message |
{ [k: string]: any }
Plain object to verify |
Returns | |
---|---|
Type | Description |
(string|null) |
|