Class: Google::Compute::Data::InstancNetworkInterfaApi

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 GCP API

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) ⇒ InstancNetworkInterfaApi

rubocop:disable Metrics/MethodLength



108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
# File 'lib/google/compute/property/instance_network_interfaces.rb', line 108

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