Class: Google::Compute::Data::InstaGroupNamedPortsApi

Inherits:
InstaGroupNamedPorts show all
Defined in:
lib/google/compute/property/instancegroup_named_ports.rb

Overview

Manages a InstaGroupNamedPorts nested object Data is coming from the GCP API

Instance Attribute Summary

Attributes inherited from InstaGroupNamedPorts

#name, #port

Instance Method Summary collapse

Methods inherited from InstaGroupNamedPorts

#<=>, #==, #to_json, #to_s

Constructor Details

#initialize(args) ⇒ InstaGroupNamedPortsApi

Returns a new instance of InstaGroupNamedPortsApi.



87
88
89
90
# File 'lib/google/compute/property/instancegroup_named_ports.rb', line 87

def initialize(args)
  @name = Google::Compute::Property::String.api_munge(args['name'])
  @port = Google::Compute::Property::Integer.api_munge(args['port'])
end