Class: Google::Apis::ManagerV1beta2::NetworkInterface

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/manager_v1beta2/classes.rb,
generated/google/apis/manager_v1beta2/representations.rb,
generated/google/apis/manager_v1beta2/representations.rb

Overview

A Compute Engine NetworkInterface resource. Identical to the NetworkInterface on the corresponding Compute Engine resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ NetworkInterface

Returns a new instance of NetworkInterface



805
806
807
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 805

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#access_configsArray<Google::Apis::ManagerV1beta2::AccessConfig>

An array of configurations for this interface. This specifies how this interface is configured to interact with other network services Corresponds to the JSON property accessConfigs



786
787
788
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 786

def access_configs
  @access_configs
end

#nameString

Name of the interface. Corresponds to the JSON property name

Returns:

  • (String)


791
792
793
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 791

def name
  @name
end

#networkString

The name of the NetworkModule to which this interface applies. If not specified, or specified as 'default', this will use the 'default' network. Corresponds to the JSON property network

Returns:

  • (String)


797
798
799
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 797

def network
  @network
end

#network_ipString

An optional IPV4 internal network address to assign to the instance for this network interface. Corresponds to the JSON property networkIp

Returns:

  • (String)


803
804
805
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 803

def network_ip
  @network_ip
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



810
811
812
813
814
815
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 810

def update!(**args)
  @access_configs = args[:access_configs] if args.key?(:access_configs)
  @name = args[:name] if args.key?(:name)
  @network = args[:network] if args.key?(:network)
  @network_ip = args[:network_ip] if args.key?(:network_ip)
end