Reference documentation and code samples for the Network Management V1 API class Google::Cloud::NetworkManagement::V1::EffectiveVpcFlowLogsConfig.
A configuration to generate a response for GetEffectiveVpcFlowLogsConfig request.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#aggregation_interval
def aggregation_interval() -> ::Google::Cloud::NetworkManagement::V1::VpcFlowLogsConfig::AggregationInterval- (::Google::Cloud::NetworkManagement::V1::VpcFlowLogsConfig::AggregationInterval) — The aggregation interval for the logs. Default value is INTERVAL_5_SEC.
#aggregation_interval=
def aggregation_interval=(value) -> ::Google::Cloud::NetworkManagement::V1::VpcFlowLogsConfig::AggregationInterval- value (::Google::Cloud::NetworkManagement::V1::VpcFlowLogsConfig::AggregationInterval) — The aggregation interval for the logs. Default value is INTERVAL_5_SEC.
- (::Google::Cloud::NetworkManagement::V1::VpcFlowLogsConfig::AggregationInterval) — The aggregation interval for the logs. Default value is INTERVAL_5_SEC.
#cross_project_metadata
def cross_project_metadata() -> ::Google::Cloud::NetworkManagement::V1::VpcFlowLogsConfig::CrossProjectMetadata- (::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.
#cross_project_metadata=
def cross_project_metadata=(value) -> ::Google::Cloud::NetworkManagement::V1::VpcFlowLogsConfig::CrossProjectMetadata- value (::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.
- (::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.
#filter_expr
def filter_expr() -> ::String- (::String) — Export filter used to define which VPC Flow Logs should be logged.
#filter_expr=
def filter_expr=(value) -> ::String- value (::String) — Export filter used to define which VPC Flow Logs should be logged.
- (::String) — Export filter used to define which VPC Flow Logs should be logged.
#flow_sampling
def flow_sampling() -> ::Float- (::Float) — 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.
#flow_sampling=
def flow_sampling=(value) -> ::Float- value (::Float) — 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.
- (::Float) — 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.
#interconnect_attachment
def interconnect_attachment() -> ::String-
(::String) — Traffic will be logged from the Interconnect Attachment.
Format:
projects/{project_id}/regions/{region}/interconnectAttachments/{name}
Note: The following fields are mutually exclusive:
interconnect_attachment,network,subnet,vpn_tunnel. If a field in that set is populated, all other fields in the set will automatically be cleared.
#interconnect_attachment=
def interconnect_attachment=(value) -> ::String-
value (::String) — Traffic will be logged from the Interconnect Attachment.
Format:
projects/{project_id}/regions/{region}/interconnectAttachments/{name}
Note: The following fields are mutually exclusive:
interconnect_attachment,network,subnet,vpn_tunnel. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::String) — Traffic will be logged from the Interconnect Attachment.
Format:
projects/{project_id}/regions/{region}/interconnectAttachments/{name}
Note: The following fields are mutually exclusive:
interconnect_attachment,network,subnet,vpn_tunnel. If a field in that set is populated, all other fields in the set will automatically be cleared.
#metadata
def metadata() -> ::Google::Cloud::NetworkManagement::V1::VpcFlowLogsConfig::Metadata- (::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.
#metadata=
def metadata=(value) -> ::Google::Cloud::NetworkManagement::V1::VpcFlowLogsConfig::Metadata- value (::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.
- (::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.
#metadata_fields
def metadata_fields() -> ::Array<::String>- (::Array<::String>) — Custom metadata fields to include in the reported VPC flow logs. Can only be specified if "metadata" was set to CUSTOM_METADATA.
#metadata_fields=
def metadata_fields=(value) -> ::Array<::String>- value (::Array<::String>) — Custom metadata fields to include in the reported VPC flow logs. Can only be specified if "metadata" was set to CUSTOM_METADATA.
- (::Array<::String>) — Custom metadata fields to include in the reported VPC flow logs. Can only be specified if "metadata" was set to CUSTOM_METADATA.
#name
def name() -> ::String-
(::String) —
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}For a Compute config, the name will be the path of the subnet:
projects/{project_id}/regions/{region}/subnetworks/{subnet_id}
#name=
def name=(value) -> ::String-
value (::String) —
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}For a Compute config, the name will be the path of the subnet:
projects/{project_id}/regions/{region}/subnetworks/{subnet_id}
-
(::String) —
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}For a Compute config, the name will be the path of the subnet:
projects/{project_id}/regions/{region}/subnetworks/{subnet_id}
#network
def network() -> ::String-
(::String) — Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments
within the network.
Format: projects/{project_id}/global/networks/{name}
Note: The following fields are mutually exclusive:
network,subnet,interconnect_attachment,vpn_tunnel. If a field in that set is populated, all other fields in the set will automatically be cleared.
#network=
def network=(value) -> ::String-
value (::String) — Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments
within the network.
Format: projects/{project_id}/global/networks/{name}
Note: The following fields are mutually exclusive:
network,subnet,interconnect_attachment,vpn_tunnel. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::String) — Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments
within the network.
Format: projects/{project_id}/global/networks/{name}
Note: The following fields are mutually exclusive:
network,subnet,interconnect_attachment,vpn_tunnel. If a field in that set is populated, all other fields in the set will automatically be cleared.
#scope
def scope() -> ::Google::Cloud::NetworkManagement::V1::EffectiveVpcFlowLogsConfig::Scope- (::Google::Cloud::NetworkManagement::V1::EffectiveVpcFlowLogsConfig::Scope) — Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..).
#scope=
def scope=(value) -> ::Google::Cloud::NetworkManagement::V1::EffectiveVpcFlowLogsConfig::Scope- value (::Google::Cloud::NetworkManagement::V1::EffectiveVpcFlowLogsConfig::Scope) — Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..).
- (::Google::Cloud::NetworkManagement::V1::EffectiveVpcFlowLogsConfig::Scope) — Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..).
#state
def state() -> ::Google::Cloud::NetworkManagement::V1::VpcFlowLogsConfig::State- (::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.
#state=
def state=(value) -> ::Google::Cloud::NetworkManagement::V1::VpcFlowLogsConfig::State- value (::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.
- (::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.
#subnet
def subnet() -> ::String-
(::String) — Traffic will be logged from VMs within the subnetwork.
Format: projects/{project_id}/regions/{region}/subnetworks/{name}
Note: The following fields are mutually exclusive:
subnet,network,interconnect_attachment,vpn_tunnel. If a field in that set is populated, all other fields in the set will automatically be cleared.
#subnet=
def subnet=(value) -> ::String-
value (::String) — Traffic will be logged from VMs within the subnetwork.
Format: projects/{project_id}/regions/{region}/subnetworks/{name}
Note: The following fields are mutually exclusive:
subnet,network,interconnect_attachment,vpn_tunnel. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::String) — Traffic will be logged from VMs within the subnetwork.
Format: projects/{project_id}/regions/{region}/subnetworks/{name}
Note: The following fields are mutually exclusive:
subnet,network,interconnect_attachment,vpn_tunnel. If a field in that set is populated, all other fields in the set will automatically be cleared.
#vpn_tunnel
def vpn_tunnel() -> ::String-
(::String) — Traffic will be logged from the VPN Tunnel.
Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
Note: The following fields are mutually exclusive:
vpn_tunnel,network,subnet,interconnect_attachment. If a field in that set is populated, all other fields in the set will automatically be cleared.
#vpn_tunnel=
def vpn_tunnel=(value) -> ::String-
value (::String) — Traffic will be logged from the VPN Tunnel.
Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
Note: The following fields are mutually exclusive:
vpn_tunnel,network,subnet,interconnect_attachment. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::String) — Traffic will be logged from the VPN Tunnel.
Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}
Note: The following fields are mutually exclusive:
vpn_tunnel,network,subnet,interconnect_attachment. If a field in that set is populated, all other fields in the set will automatically be cleared.