Class: Google::Apis::ReplicapoolV1beta1::NetworkInterface

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/replicapool_v1beta1/classes.rb,
generated/google/apis/replicapool_v1beta1/representations.rb,
generated/google/apis/replicapool_v1beta1/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



353
354
355
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 353

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

Instance Attribute Details

#access_configsArray<Google::Apis::ReplicapoolV1beta1::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



340
341
342
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 340

def access_configs
  @access_configs
end

#networkString

Name the Network resource to which this interface applies. Corresponds to the JSON property network

Returns:

  • (String)


345
346
347
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 345

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)


351
352
353
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 351

def network_ip
  @network_ip
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



358
359
360
361
362
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 358

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