Class: Google::Apis::LifesciencesV2beta::Network
- Inherits:
-
Object
- Object
- Google::Apis::LifesciencesV2beta::Network
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/lifesciences_v2beta/classes.rb,
generated/google/apis/lifesciences_v2beta/representations.rb,
generated/google/apis/lifesciences_v2beta/representations.rb
Overview
VM networking options.
Instance Attribute Summary collapse
-
#network ⇒ String
The network name to attach the VM's network interface to.
-
#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.
-
#use_private_address ⇒ Boolean
(also: #use_private_address?)
If set to true, do not attach a public IP address to the VM.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Network
constructor
A new instance of Network.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Network
Returns a new instance of Network.
800 801 802 |
# File 'generated/google/apis/lifesciences_v2beta/classes.rb', line 800 def initialize(**args) update!(**args) end |
Instance Attribute Details
#network ⇒ String
The network name to attach the VM's network interface to. The value will
be prefixed with global/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.
Corresponds to the JSON property network
777 778 779 |
# File 'generated/google/apis/lifesciences_v2beta/classes.rb', line 777 def network @network end |
#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 with regions/*/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.
Corresponds to the JSON property subnetwork
788 789 790 |
# File 'generated/google/apis/lifesciences_v2beta/classes.rb', line 788 def subnetwork @subnetwork end |
#use_private_address ⇒ Boolean Also known as: use_private_address?
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.
See https://cloud.google.com/vpc/docs/configure-private-google-access
for more information.
Corresponds to the JSON property usePrivateAddress
797 798 799 |
# File 'generated/google/apis/lifesciences_v2beta/classes.rb', line 797 def use_private_address @use_private_address end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
805 806 807 808 809 |
# File 'generated/google/apis/lifesciences_v2beta/classes.rb', line 805 def update!(**args) @network = args[:network] if args.key?(:network) @subnetwork = args[:subnetwork] if args.key?(:subnetwork) @use_private_address = args[:use_private_address] if args.key?(:use_private_address) end |