Class: Google::Apis::AppengineV1beta4::Network
- Inherits:
-
Object
- Object
- Google::Apis::AppengineV1beta4::Network
- 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
-
#forwarded_ports ⇒ Array<String>
A list of ports (or port pairs) to forward from the VM into the app container.
-
#instance_tag ⇒ String
A tag to apply to the VM instance during creation.
-
#name ⇒ String
The Google Compute Engine network where the VMs will be created.
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::Hashable
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_ports ⇒ Array<String>
A list of ports (or port pairs) to forward from the VM into the app container.
Corresponds to the JSON property forwardedPorts
599 600 601 |
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 599 def forwarded_ports @forwarded_ports end |
#instance_tag ⇒ String
A tag to apply to the VM instance during creation.
Corresponds to the JSON property instanceTag
604 605 606 |
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 604 def instance_tag @instance_tag end |
#name ⇒ String
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
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 |