NAME
Google::Cloud::Networkmanagement::V1::VpcFlowLogsConfig - Compiled Protocol Buffers messages for google/cloud/networkmanagement/v1/vpc_flow_logs_config.proto
SYNOPSIS
use Google::Cloud::Networkmanagement::V1::VpcFlowLogsConfig;
my $msg = Google::Cloud::Networkmanagement::V1::VpcFlowLogsConfig::VpcFlowLogsConfig->new({
name => $name,
description => $description,
state => $state,
aggregation_interval => $aggregation_interval,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Networkmanagement::V1::VpcFlowLogsConfig::VpcFlowLogsConfig->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/networkmanagement/v1/vpc_flow_logs_config.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Networkmanagement::V1::VpcFlowLogsConfig::VpcFlowLogsConfig
A configuration to generate VPC Flow Logs.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringIdentifier. Unique name of the configuration. The name can have one of the following forms:
- For project-level configurations: `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
- For organization-level configurations: `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
$msg->description()/$msg->description($value)Type:
StringOptional. The user-supplied description of the VPC Flow Logs configuration. Maximum of 512 characters.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Networkmanagement::V1::VpcFlowLogsConfig::State)Optional. The state of the VPC Flow Log configuration. Default value is ENABLED. When creating a new configuration, it must be enabled. Setting state=DISABLED will pause the log generation for this config.
$msg->aggregation_interval()/$msg->aggregation_interval($value)Type:
Enum(Google::Cloud::Networkmanagement::V1::VpcFlowLogsConfig::AggregationInterval)Optional. The aggregation interval for the logs. Default value is INTERVAL_5_SEC.
$msg->flow_sampling()/$msg->flow_sampling($value)Type:
FloatOptional. The value of the field must be in (0, 1]. The sampling rate of VPC Flow Logs where 1.0 means all collected logs are reported. Setting the sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs, use the state field instead. Default value is 1.0.
$msg->metadata()/$msg->metadata($value)Type:
Enum(Google::Cloud::Networkmanagement::V1::VpcFlowLogsConfig::Metadata)Optional. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default value is INCLUDE_ALL_METADATA.
$msg->metadata_fields()/$msg->metadata_fields($value)Type:
StringOptional. Custom metadata fields to include in the reported VPC flow logs. Can only be specified if "metadata" was set to CUSTOM_METADATA.
$msg->filter_expr()/$msg->filter_expr($value)Type:
StringOptional. Export filter used to define which VPC Flow Logs should be logged.
$msg->cross_project_metadata()/$msg->cross_project_metadata($value)Type:
Enum(Google::Cloud::Networkmanagement::V1::VpcFlowLogsConfig::CrossProjectMetadata)Optional. Determines whether to include cross project annotations in the logs. This field is available only for organization configurations. If not specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
$msg->target_resource_state()/$msg->target_resource_state($value)Type:
Enum(Google::Cloud::Networkmanagement::V1::VpcFlowLogsConfig::TargetResourceState)Output only. Describes the state of the configured target resource for diagnostic purposes.
$msg->network()/$msg->network($value)Type:
StringTraffic will be logged from VMs, VPN tunnels and Interconnect Attachments within the network. Format: projects/{project_id}/global/networks/{name}
$msg->subnet()/$msg->subnet($value)Type:
StringTraffic will be logged from VMs within the subnetwork. Format: projects/{project_id}/regions/{region}/subnetworks/{name}
$msg->interconnect_attachment()/$msg->interconnect_attachment($value)Type:
StringTraffic will be logged from the Interconnect Attachment. Format: projects/{project_id}/regions/{region}/interconnectAttachments/{name}
$msg->vpn_tunnel()/$msg->vpn_tunnel($value)Type:
StringTraffic will be logged from the VPN Tunnel. Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
$msg->labels()/$msg->labels($value)Type:
Message(Google::Cloud::Networkmanagement::V1::VpcFlowLogsConfig::VpcFlowLogsConfig::LabelsEntry)Optional. Resource labels to represent user-provided metadata.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time the config was created.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time the config was updated.
Enum: VpcFlowLogsConfig::State
STATE_UNSPECIFIED=>0ENABLED=>1DISABLED=>2
Enum: VpcFlowLogsConfig::AggregationInterval
AGGREGATION_INTERVAL_UNSPECIFIED=>0INTERVAL_5_SEC=>1INTERVAL_30_SEC=>2INTERVAL_1_MIN=>3INTERVAL_5_MIN=>4INTERVAL_10_MIN=>5INTERVAL_15_MIN=>6
Enum: VpcFlowLogsConfig::Metadata
METADATA_UNSPECIFIED=>0INCLUDE_ALL_METADATA=>1EXCLUDE_ALL_METADATA=>2CUSTOM_METADATA=>3
Enum: VpcFlowLogsConfig::CrossProjectMetadata
CROSS_PROJECT_METADATA_UNSPECIFIED=>0CROSS_PROJECT_METADATA_ENABLED=>1CROSS_PROJECT_METADATA_DISABLED=>2
Enum: VpcFlowLogsConfig::TargetResourceState
TARGET_RESOURCE_STATE_UNSPECIFIED=>0TARGET_RESOURCE_EXISTS=>1TARGET_RESOURCE_DOES_NOT_EXIST=>2
Google::Cloud::Networkmanagement::V1::VpcFlowLogsConfig::EffectiveVpcFlowLogsConfig
A configuration to generate a response for GetEffectiveVpcFlowLogsConfig request.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringUnique name of the configuration. The name can have one of the following forms:
- For project-level configurations: `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
- For organization-level configurations: `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`
- For a Compute config, the name will be the path of the subnet: `projects/{project_id}/regions/{region}/subnetworks/{subnet_id}`
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Networkmanagement::V1::VpcFlowLogsConfig::State)The state of the VPC Flow Log configuration. Default value is ENABLED. When creating a new configuration, it must be enabled. Setting state=DISABLED will pause the log generation for this config.
$msg->aggregation_interval()/$msg->aggregation_interval($value)Type:
Enum(Google::Cloud::Networkmanagement::V1::VpcFlowLogsConfig::AggregationInterval)The aggregation interval for the logs. Default value is INTERVAL_5_SEC.
$msg->flow_sampling()/$msg->flow_sampling($value)Type:
FloatThe value of the field must be in (0, 1]. The sampling rate of VPC Flow Logs where 1.0 means all collected logs are reported. Setting the sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs, use the state field instead. Default value is 1.0.
$msg->metadata()/$msg->metadata($value)Type:
Enum(Google::Cloud::Networkmanagement::V1::VpcFlowLogsConfig::Metadata)Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default value is INCLUDE_ALL_METADATA.
$msg->metadata_fields()/$msg->metadata_fields($value)Type:
StringCustom metadata fields to include in the reported VPC flow logs. Can only be specified if "metadata" was set to CUSTOM_METADATA.
$msg->filter_expr()/$msg->filter_expr($value)Type:
StringExport filter used to define which VPC Flow Logs should be logged.
$msg->cross_project_metadata()/$msg->cross_project_metadata($value)Type:
Enum(Google::Cloud::Networkmanagement::V1::VpcFlowLogsConfig::CrossProjectMetadata)Determines whether to include cross project annotations in the logs. This field is available only for organization configurations. If not specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.
$msg->network()/$msg->network($value)Type:
StringTraffic will be logged from VMs, VPN tunnels and Interconnect Attachments within the network. Format: projects/{project_id}/global/networks/{name}
$msg->subnet()/$msg->subnet($value)Type:
StringTraffic will be logged from VMs within the subnetwork. Format: projects/{project_id}/regions/{region}/subnetworks/{name}
$msg->interconnect_attachment()/$msg->interconnect_attachment($value)Type:
StringTraffic will be logged from the Interconnect Attachment. Format: projects/{project_id}/regions/{region}/interconnectAttachments/{name}
$msg->vpn_tunnel()/$msg->vpn_tunnel($value)Type:
StringTraffic will be logged from the VPN Tunnel. Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
$msg->scope()/$msg->scope($value)Type:
Enum(Google::Cloud::Networkmanagement::V1::EffectiveVpcFlowLogsConfig::Scope)Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..).
Enum: EffectiveVpcFlowLogsConfig::Scope
SCOPE_UNSPECIFIED=>0SUBNET=>1COMPUTE_API_SUBNET=>2NETWORK=>3VPN_TUNNEL=>4INTERCONNECT_ATTACHMENT=>5ORGANIZATION=>6
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Networkmanagement::V1::VpcFlowLogsConfig::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.