Reference documentation and code samples for the Managed Service for Apache Kafka V1 API class Google::Cloud::ManagedKafka::V1::NetworkConfig.
The configuration of a Virtual Private Cloud (VPC) network that can access
the Kafka cluster.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#subnet
defsubnet()->::String
Returns
(::String) — Required. Name of the VPC subnet in which to create Private Service Connect
(PSC) endpoints for the Kafka brokers and bootstrap address. Structured
like: projects/{project}/regions/{region}/subnetworks/{subnet_id}
The subnet must be located in the same region as the Kafka cluster. The
project may differ. Multiple subnets from the same parent network must not
be specified.
#subnet=
defsubnet=(value)->::String
Parameter
value (::String) — Required. Name of the VPC subnet in which to create Private Service Connect
(PSC) endpoints for the Kafka brokers and bootstrap address. Structured
like: projects/{project}/regions/{region}/subnetworks/{subnet_id}
The subnet must be located in the same region as the Kafka cluster. The
project may differ. Multiple subnets from the same parent network must not
be specified.
Returns
(::String) — Required. Name of the VPC subnet in which to create Private Service Connect
(PSC) endpoints for the Kafka brokers and bootstrap address. Structured
like: projects/{project}/regions/{region}/subnetworks/{subnet_id}
The subnet must be located in the same region as the Kafka cluster. The
project may differ. Multiple subnets from the same parent network must not
be specified.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Managed Service for Apache Kafka V1 API - Class Google::Cloud::ManagedKafka::V1::NetworkConfig (v1.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.0 (latest)](/ruby/docs/reference/google-cloud-managed_kafka-v1/latest/Google-Cloud-ManagedKafka-V1-NetworkConfig)\n- [1.3.0](/ruby/docs/reference/google-cloud-managed_kafka-v1/1.3.0/Google-Cloud-ManagedKafka-V1-NetworkConfig)\n- [1.2.0](/ruby/docs/reference/google-cloud-managed_kafka-v1/1.2.0/Google-Cloud-ManagedKafka-V1-NetworkConfig)\n- [1.1.2](/ruby/docs/reference/google-cloud-managed_kafka-v1/1.1.2/Google-Cloud-ManagedKafka-V1-NetworkConfig)\n- [1.0.1](/ruby/docs/reference/google-cloud-managed_kafka-v1/1.0.1/Google-Cloud-ManagedKafka-V1-NetworkConfig)\n- [0.5.0](/ruby/docs/reference/google-cloud-managed_kafka-v1/0.5.0/Google-Cloud-ManagedKafka-V1-NetworkConfig)\n- [0.4.0](/ruby/docs/reference/google-cloud-managed_kafka-v1/0.4.0/Google-Cloud-ManagedKafka-V1-NetworkConfig)\n- [0.3.0](/ruby/docs/reference/google-cloud-managed_kafka-v1/0.3.0/Google-Cloud-ManagedKafka-V1-NetworkConfig)\n- [0.2.0](/ruby/docs/reference/google-cloud-managed_kafka-v1/0.2.0/Google-Cloud-ManagedKafka-V1-NetworkConfig)\n- [0.1.3](/ruby/docs/reference/google-cloud-managed_kafka-v1/0.1.3/Google-Cloud-ManagedKafka-V1-NetworkConfig) \nReference documentation and code samples for the Managed Service for Apache Kafka V1 API class Google::Cloud::ManagedKafka::V1::NetworkConfig.\n\nThe configuration of a Virtual Private Cloud (VPC) network that can access\nthe Kafka cluster. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #subnet\n\n def subnet() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. Name of the VPC subnet in which to create Private Service Connect (PSC) endpoints for the Kafka brokers and bootstrap address. Structured like: projects/{project}/regions/{region}/subnetworks/{subnet_id}\n\n The subnet must be located in the same region as the Kafka cluster. The\n project may differ. Multiple subnets from the same parent network must not\n be specified.\n\n### #subnet=\n\n def subnet=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. Name of the VPC subnet in which to create Private Service Connect (PSC) endpoints for the Kafka brokers and bootstrap address. Structured like: projects/{project}/regions/{region}/subnetworks/{subnet_id}\n\n\n The subnet must be located in the same region as the Kafka cluster. The\n project may differ. Multiple subnets from the same parent network must not\nbe specified. \n**Returns**\n\n- (::String) --- Required. Name of the VPC subnet in which to create Private Service Connect (PSC) endpoints for the Kafka brokers and bootstrap address. Structured like: projects/{project}/regions/{region}/subnetworks/{subnet_id}\n\n The subnet must be located in the same region as the Kafka cluster. The\n project may differ. Multiple subnets from the same parent network must not\n be specified."]]