Reference documentation and code samples for the Google Cloud Life Sciences V2beta Client class Network.
VM networking options.
Generated from protobuf messagegoogle.cloud.lifesciences.v2beta.Network
Namespace
Google \ Cloud \ LifeSciences \ V2beta
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ network
string
The network name to attach the VM's network interface to. The value will be prefixed withglobal/networks/unless it contains a/, in which case it is assumed to be a fully specified network resource URL. If unspecified, the global default network is used.
↳ use_private_address
bool
If set to true, do not attach a public IP address to the VM. Note that without a public IP address, additional configuration is required to allow the VM to access Google services. Seehttps://cloud.google.com/vpc/docs/configure-private-google-accessfor more information.
↳ subnetwork
string
If the specified network is configured for custom subnet creation, the name of the subnetwork to attach the instance to must be specified here. The value is prefixed withregions/*/subnetworks/unless it contains a/, in which case it is assumed to be a fully specified subnetwork resource URL. If the*character appears in the value, it is replaced with the region that the virtual machine has been allocated in.
getNetwork
The network name to attach the VM's network interface to. The value will
be prefixed withglobal/networks/unless it contains a/, in which
case it is assumed to be a fully specified network resource URL.
If unspecified, the global default network is used.
Returns
Type
Description
string
setNetwork
The network name to attach the VM's network interface to. The value will
be prefixed withglobal/networks/unless it contains a/, in which
case it is assumed to be a fully specified network resource URL.
If unspecified, the global default network is used.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getUsePrivateAddress
If set to true, do not attach a public IP address to the VM. Note that
without a public IP address, additional configuration is required to
allow the VM to access Google services.
If set to true, do not attach a public IP address to the VM. Note that
without a public IP address, additional configuration is required to
allow the VM to access Google services.
If the specified network is configured for custom subnet creation, the
name of the subnetwork to attach the instance to must be specified here.
The value is prefixed withregions/*/subnetworks/unless it contains a/, in which case it is assumed to be a fully specified subnetwork
resource URL.
If the*character appears in the value, it is replaced with the region
that the virtual machine has been allocated in.
Returns
Type
Description
string
setSubnetwork
If the specified network is configured for custom subnet creation, the
name of the subnetwork to attach the instance to must be specified here.
The value is prefixed withregions/*/subnetworks/unless it contains a/, in which case it is assumed to be a fully specified subnetwork
resource URL.
If the*character appears in the value, it is replaced with the region
that the virtual machine has been allocated in.
[[["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,["# Google Cloud Life Sciences V2beta Client - Class Network (0.7.3)\n\nVersion latestkeyboard_arrow_down\n\n- [0.7.3 (latest)](/php/docs/reference/cloud-life-sciences/latest/V2beta.Network)\n- [0.7.2](/php/docs/reference/cloud-life-sciences/0.7.2/V2beta.Network)\n- [0.6.8](/php/docs/reference/cloud-life-sciences/0.6.8/V2beta.Network)\n- [0.5.4](/php/docs/reference/cloud-life-sciences/0.5.4/V2beta.Network)\n- [0.4.0](/php/docs/reference/cloud-life-sciences/0.4.0/V2beta.Network)\n- [0.3.5](/php/docs/reference/cloud-life-sciences/0.3.5/V2beta.Network) \n| **Beta**\n|\n|\n| This library is covered by the [Pre-GA Offerings Terms](/terms/service-terms#1)\n| of the Terms of Service. Pre-GA libraries might have limited support,\n| and changes to pre-GA libraries might not be compatible with other pre-GA versions.\n| For more information, see the\n[launch stage descriptions](/products#product-launch-stages). \nReference documentation and code samples for the Google Cloud Life Sciences V2beta Client class Network.\n\nVM networking options.\n\nGenerated from protobuf message `google.cloud.lifesciences.v2beta.Network`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ LifeSciences \\\\ V2beta\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getNetwork\n\nThe network name to attach the VM's network interface to. The value will\nbe prefixed with `global/networks/` unless it contains a `/`, in which\ncase it is assumed to be a fully specified network resource URL.\n\nIf unspecified, the global default network is used.\n\n### setNetwork\n\nThe network name to attach the VM's network interface to. The value will\nbe prefixed with `global/networks/` unless it contains a `/`, in which\ncase it is assumed to be a fully specified network resource URL.\n\nIf unspecified, the global default network is used.\n\n### getUsePrivateAddress\n\nIf set to true, do not attach a public IP address to the VM. Note that\nwithout a public IP address, additional configuration is required to\nallow the VM to access Google services.\n\nSee \u003chttps://cloud.google.com/vpc/docs/configure-private-google-access\u003e\nfor more information.\n\n### setUsePrivateAddress\n\nIf set to true, do not attach a public IP address to the VM. Note that\nwithout a public IP address, additional configuration is required to\nallow the VM to access Google services.\n\nSee \u003chttps://cloud.google.com/vpc/docs/configure-private-google-access\u003e\nfor more information.\n\n### getSubnetwork\n\nIf the specified network is configured for custom subnet creation, the\nname of the subnetwork to attach the instance to must be specified here.\n\nThe value is prefixed with `regions/*/subnetworks/` unless it contains a\n`/`, in which case it is assumed to be a fully specified subnetwork\nresource URL.\nIf the `*` character appears in the value, it is replaced with the region\nthat the virtual machine has been allocated in.\n\n### setSubnetwork\n\nIf the specified network is configured for custom subnet creation, the\nname of the subnetwork to attach the instance to must be specified here.\n\nThe value is prefixed with `regions/*/subnetworks/` unless it contains a\n`/`, in which case it is assumed to be a fully specified subnetwork\nresource URL.\nIf the `*` character appears in the value, it is replaced with the region\nthat the virtual machine has been allocated in."]]