Class: Google::Compute::Data::InstGrouManaNamePortApi

Inherits:
InstGrouManaNamePort show all
Defined in:
lib/google/compute/property/instancegroupmanager_named_ports.rb

Overview

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

Instance Attribute Summary

Attributes inherited from InstGrouManaNamePort

#name, #port

Instance Method Summary collapse

Methods inherited from InstGrouManaNamePort

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

Constructor Details

#initialize(args) ⇒ InstGrouManaNamePortApi

Returns a new instance of InstGrouManaNamePortApi.



87
88
89
90
# File 'lib/google/compute/property/instancegroupmanager_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