Reference documentation and code samples for the App Engine Admin V1 API class Google::Cloud::AppEngine::V1::Network.
Extra network settings.
Only applicable in the App Engine flexible environment.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#forwarded_ports
defforwarded_ports()->::Array<::String>
Returns
(::Array<::String>) — List of ports, or port pairs, to forward from the virtual machine to the
application container.
Only applicable in the App Engine flexible environment.
#forwarded_ports=
defforwarded_ports=(value)->::Array<::String>
Parameter
value (::Array<::String>) — List of ports, or port pairs, to forward from the virtual machine to the
application container.
Only applicable in the App Engine flexible environment.
Returns
(::Array<::String>) — List of ports, or port pairs, to forward from the virtual machine to the
application container.
Only applicable in the App Engine flexible environment.
#instance_tag
definstance_tag()->::String
Returns
(::String) — Tag to apply to the instance during creation.
Only applicable in the App Engine flexible environment.
#instance_tag=
definstance_tag=(value)->::String
Parameter
value (::String) — Tag to apply to the instance during creation.
Only applicable in the App Engine flexible environment.
Returns
(::String) — Tag to apply to the instance during creation.
Only applicable in the App Engine flexible environment.
#name
defname()->::String
Returns
(::String) — Google Compute Engine network where the virtual machines are created.
Specify the short name, not the resource path.
Defaults to default.
#name=
defname=(value)->::String
Parameter
value (::String) — Google Compute Engine network where the virtual machines are created.
Specify the short name, not the resource path.
Defaults to default.
Returns
(::String) — Google Compute Engine network where the virtual machines are created.
Specify the short name, not the resource path.
Defaults to default.
#session_affinity
defsession_affinity()->::Boolean
Returns
(::Boolean) — Enable session affinity.
Only applicable in the App Engine flexible environment.
#session_affinity=
defsession_affinity=(value)->::Boolean
Parameter
value (::Boolean) — Enable session affinity.
Only applicable in the App Engine flexible environment.
Returns
(::Boolean) — Enable session affinity.
Only applicable in the App Engine flexible environment.
#subnetwork_name
defsubnetwork_name()->::String
Returns
(::String) — Google Cloud Platform sub-network where the virtual machines are created.
Specify the short name, not the resource path.
If a subnetwork name is specified, a network name will also be required
unless it is for the default network.
If the network that the instance is being created in is a Legacy network,
then the IP address is allocated from the IPv4Range.
If the network that the instance is being created in is an auto Subnet
Mode Network, then only network name should be specified (not the
subnetwork_name) and the IP address is created from the IPCidrRange of the
subnetwork that exists in that zone for that network.
If the network that the instance is being created in is a custom Subnet
Mode Network, then the subnetwork_name must be specified and the
IP address is created from the IPCidrRange of the subnetwork.
If specified, the subnetwork must exist in the same region as the
App Engine flexible environment application.
#subnetwork_name=
defsubnetwork_name=(value)->::String
Parameter
value (::String) — Google Cloud Platform sub-network where the virtual machines are created.
Specify the short name, not the resource path.
If a subnetwork name is specified, a network name will also be required
unless it is for the default network.
If the network that the instance is being created in is a Legacy network,
then the IP address is allocated from the IPv4Range.
If the network that the instance is being created in is an auto Subnet
Mode Network, then only network name should be specified (not the
subnetwork_name) and the IP address is created from the IPCidrRange of the
subnetwork that exists in that zone for that network.
If the network that the instance is being created in is a custom Subnet
Mode Network, then the subnetwork_name must be specified and the
IP address is created from the IPCidrRange of the subnetwork.
If specified, the subnetwork must exist in the same region as the
App Engine flexible environment application.
Returns
(::String) — Google Cloud Platform sub-network where the virtual machines are created.
Specify the short name, not the resource path.
If a subnetwork name is specified, a network name will also be required
unless it is for the default network.
If the network that the instance is being created in is a Legacy network,
then the IP address is allocated from the IPv4Range.
If the network that the instance is being created in is an auto Subnet
Mode Network, then only network name should be specified (not the
subnetwork_name) and the IP address is created from the IPCidrRange of the
subnetwork that exists in that zone for that network.
If the network that the instance is being created in is a custom Subnet
Mode Network, then the subnetwork_name must be specified and the
IP address is created from the IPCidrRange of the subnetwork.
If specified, the subnetwork must exist in the same region as the
App Engine flexible environment application.
[[["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-04 UTC."],[],[],null,["# App Engine Admin V1 API - Class Google::Cloud::AppEngine::V1::Network (v1.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.3.0 (latest)](/ruby/docs/reference/google-cloud-app_engine-v1/latest/Google-Cloud-AppEngine-V1-Network)\n- [1.2.1](/ruby/docs/reference/google-cloud-app_engine-v1/1.2.1/Google-Cloud-AppEngine-V1-Network)\n- [1.1.0](/ruby/docs/reference/google-cloud-app_engine-v1/1.1.0/Google-Cloud-AppEngine-V1-Network)\n- [1.0.1](/ruby/docs/reference/google-cloud-app_engine-v1/1.0.1/Google-Cloud-AppEngine-V1-Network)\n- [0.10.0](/ruby/docs/reference/google-cloud-app_engine-v1/0.10.0/Google-Cloud-AppEngine-V1-Network)\n- [0.9.2](/ruby/docs/reference/google-cloud-app_engine-v1/0.9.2/Google-Cloud-AppEngine-V1-Network)\n- [0.8.0](/ruby/docs/reference/google-cloud-app_engine-v1/0.8.0/Google-Cloud-AppEngine-V1-Network)\n- [0.7.0](/ruby/docs/reference/google-cloud-app_engine-v1/0.7.0/Google-Cloud-AppEngine-V1-Network)\n- [0.6.1](/ruby/docs/reference/google-cloud-app_engine-v1/0.6.1/Google-Cloud-AppEngine-V1-Network)\n- [0.5.0](/ruby/docs/reference/google-cloud-app_engine-v1/0.5.0/Google-Cloud-AppEngine-V1-Network)\n- [0.4.0](/ruby/docs/reference/google-cloud-app_engine-v1/0.4.0/Google-Cloud-AppEngine-V1-Network)\n- [0.3.6](/ruby/docs/reference/google-cloud-app_engine-v1/0.3.6/Google-Cloud-AppEngine-V1-Network) \nReference documentation and code samples for the App Engine Admin V1 API class Google::Cloud::AppEngine::V1::Network.\n\nExtra network settings.\nOnly applicable in the App Engine flexible environment. \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### #forwarded_ports\n\n def forwarded_ports() -\u003e ::Array\u003c::String\u003e\n\n**Returns**\n\n- (::Array\\\u003c::String\\\u003e) --- List of ports, or port pairs, to forward from the virtual machine to the application container. Only applicable in the App Engine flexible environment.\n\n### #forwarded_ports=\n\n def forwarded_ports=(value) -\u003e ::Array\u003c::String\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c::String\\\u003e) --- List of ports, or port pairs, to forward from the virtual machine to the application container. Only applicable in the App Engine flexible environment. \n**Returns**\n\n- (::Array\\\u003c::String\\\u003e) --- List of ports, or port pairs, to forward from the virtual machine to the application container. Only applicable in the App Engine flexible environment.\n\n### #instance_tag\n\n def instance_tag() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Tag to apply to the instance during creation. Only applicable in the App Engine flexible environment.\n\n### #instance_tag=\n\n def instance_tag=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Tag to apply to the instance during creation. Only applicable in the App Engine flexible environment. \n**Returns**\n\n- (::String) --- Tag to apply to the instance during creation. Only applicable in the App Engine flexible environment.\n\n### #name\n\n def name() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Google Compute Engine network where the virtual machines are created. Specify the short name, not the resource path.\n\n Defaults to `default`.\n\n### #name=\n\n def name=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Google Compute Engine network where the virtual machines are created. Specify the short name, not the resource path.\n\n\nDefaults to `default`. \n**Returns**\n\n- (::String) --- Google Compute Engine network where the virtual machines are created. Specify the short name, not the resource path.\n\n Defaults to `default`.\n\n### #session_affinity\n\n def session_affinity() -\u003e ::Boolean\n\n**Returns**\n\n- (::Boolean) --- Enable session affinity. Only applicable in the App Engine flexible environment.\n\n### #session_affinity=\n\n def session_affinity=(value) -\u003e ::Boolean\n\n**Parameter**\n\n- **value** (::Boolean) --- Enable session affinity. Only applicable in the App Engine flexible environment. \n**Returns**\n\n- (::Boolean) --- Enable session affinity. Only applicable in the App Engine flexible environment.\n\n### #subnetwork_name\n\n def subnetwork_name() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Google Cloud Platform sub-network where the virtual machines are created. Specify the short name, not the resource path.\n\n If a subnetwork name is specified, a network name will also be required\n unless it is for the default network.\n - If the network that the instance is being created in is a Legacy network, then the IP address is allocated from the IPv4Range.\n - If the network that the instance is being created in is an auto Subnet Mode Network, then only network name should be specified (not the subnetwork_name) and the IP address is created from the IPCidrRange of the subnetwork that exists in that zone for that network.\n - If the network that the instance is being created in is a custom Subnet Mode Network, then the subnetwork_name must be specified and the IP address is created from the IPCidrRange of the subnetwork.\n\n If specified, the subnetwork must exist in the same region as the\n App Engine flexible environment application.\n\n### #subnetwork_name=\n\n def subnetwork_name=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Google Cloud Platform sub-network where the virtual machines are created. Specify the short name, not the resource path.\n\n\n If a subnetwork name is specified, a network name will also be required\n unless it is for the default network.\n - If the network that the instance is being created in is a Legacy network, then the IP address is allocated from the IPv4Range.\n - If the network that the instance is being created in is an auto Subnet Mode Network, then only network name should be specified (not the subnetwork_name) and the IP address is created from the IPCidrRange of the subnetwork that exists in that zone for that network.\n - If the network that the instance is being created in is a custom Subnet Mode Network, then the subnetwork_name must be specified and the IP address is created from the IPCidrRange of the subnetwork.\n\n If specified, the subnetwork must exist in the same region as the\nApp Engine flexible environment application. \n**Returns**\n\n- (::String) --- Google Cloud Platform sub-network where the virtual machines are created. Specify the short name, not the resource path.\n\n If a subnetwork name is specified, a network name will also be required\n unless it is for the default network.\n - If the network that the instance is being created in is a Legacy network, then the IP address is allocated from the IPv4Range.\n - If the network that the instance is being created in is an auto Subnet Mode Network, then only network name should be specified (not the subnetwork_name) and the IP address is created from the IPCidrRange of the subnetwork that exists in that zone for that network.\n - If the network that the instance is being created in is a custom Subnet Mode Network, then the subnetwork_name must be specified and the IP address is created from the IPCidrRange of the subnetwork.\n\n If specified, the subnetwork must exist in the same region as the\n App Engine flexible environment application."]]