Class: Google::Apis::AppengineV1beta4::Network

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable
Defined in:
generated/google/apis/appengine_v1beta4/classes.rb,
generated/google/apis/appengine_v1beta4/representations.rb,
generated/google/apis/appengine_v1beta4/representations.rb

Overview

Used to specify extra network settings (for VM runtimes only).

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Network

Returns a new instance of Network.



613
614
615
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 613

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#forwarded_portsArray<String>

A list of ports (or port pairs) to forward from the VM into the app container. Corresponds to the JSON property forwardedPorts

Returns:

  • (Array<String>)


599
600
601
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 599

def forwarded_ports
  @forwarded_ports
end

#instance_tagString

A tag to apply to the VM instance during creation. Corresponds to the JSON property instanceTag

Returns:

  • (String)


604
605
606
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 604

def instance_tag
  @instance_tag
end

#nameString

The Google Compute Engine network where the VMs will be created. If not specified, or empty, the network named "default" will be used. (The short name should be specified, not the resource path.) Corresponds to the JSON property name

Returns:

  • (String)


611
612
613
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 611

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



618
619
620
621
622
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 618

def update!(**args)
  @forwarded_ports = args[:forwarded_ports] if args.key?(:forwarded_ports)
  @instance_tag = args[:instance_tag] if args.key?(:instance_tag)
  @name = args[:name] if args.key?(:name)
end