Network Management V1 API - Class Google::Cloud::NetworkManagement::V1::EffectiveVpcFlowLogsConfig (v2.6.0)

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
Returns

#aggregation_interval=

def aggregation_interval=(value) -> ::Google::Cloud::NetworkManagement::V1::VpcFlowLogsConfig::AggregationInterval
Parameter
Returns

#cross_project_metadata

def cross_project_metadata() -> ::Google::Cloud::NetworkManagement::V1::VpcFlowLogsConfig::CrossProjectMetadata
Returns

#cross_project_metadata=

def cross_project_metadata=(value) -> ::Google::Cloud::NetworkManagement::V1::VpcFlowLogsConfig::CrossProjectMetadata
Parameter
Returns

#filter_expr

def filter_expr() -> ::String
Returns
  • (::String) — Export filter used to define which VPC Flow Logs should be logged.

#filter_expr=

def filter_expr=(value) -> ::String
Parameter
  • value (::String) — Export filter used to define which VPC Flow Logs should be logged.
Returns
  • (::String) — Export filter used to define which VPC Flow Logs should be logged.

#flow_sampling

def flow_sampling() -> ::Float
Returns
  • (::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
Parameter
  • 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.
Returns
  • (::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
Returns
  • (::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
Parameter
  • 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.

Returns
  • (::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
Returns

#metadata=

def metadata=(value) -> ::Google::Cloud::NetworkManagement::V1::VpcFlowLogsConfig::Metadata
Parameter
Returns

#metadata_fields

def metadata_fields() -> ::Array<::String>
Returns
  • (::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>
Parameter
  • 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.
Returns
  • (::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
Returns
  • (::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
Parameter
  • 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}

Returns
  • (::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
Returns
  • (::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
Parameter
  • 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.

Returns
  • (::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
Returns

#scope=

def scope=(value) -> ::Google::Cloud::NetworkManagement::V1::EffectiveVpcFlowLogsConfig::Scope
Parameter
Returns

#state

def state() -> ::Google::Cloud::NetworkManagement::V1::VpcFlowLogsConfig::State
Returns

#state=

def state=(value) -> ::Google::Cloud::NetworkManagement::V1::VpcFlowLogsConfig::State
Parameter
Returns

#subnet

def subnet() -> ::String
Returns
  • (::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
Parameter
  • 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.

Returns
  • (::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
Returns
  • (::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
Parameter
  • 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.

Returns
  • (::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.