Class: Google::Compute::Data::InstancNetworkInterfaCatalog

Inherits:
InstancNetworkInterfa show all
Defined in:
lib/google/compute/property/instance_network_interfaces.rb

Overview

Manages a InstancNetworkInterfa nested object Data is coming from the Puppet manifest

Instance Attribute Summary

Attributes inherited from InstancNetworkInterfa

#access_configs, #alias_ip_ranges, #name, #network, #network_ip, #subnetwork

Instance Method Summary collapse

Methods inherited from InstancNetworkInterfa

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

Constructor Details

#initialize(args) ⇒ InstancNetworkInterfaCatalog

rubocop:disable Metrics/MethodLength



134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
# File 'lib/google/compute/property/instance_network_interfaces.rb', line 134

def initialize(args)
  @access_configs =
    Google::Compute::Property::InstancAccessConfigsArray.unsafe_munge(
      args['access_configs']
    )
  @alias_ip_ranges =
    Google::Compute::Property::InstaAliasIpRangeArray.unsafe_munge(
      args['alias_ip_ranges']
    )
  @name = Google::Compute::Property::String.unsafe_munge(args['name'])
  @network = Google::Compute::Property::NetwoSelfLinkRef.unsafe_munge(
    args['network']
  )
  @network_ip =
    Google::Compute::Property::String.unsafe_munge(args['network_ip'])
  @subnetwork =
    Google::Compute::Property::SubneSelfLinkRef.unsafe_munge(
      args['subnetwork']
    )
end