Class: Google::Apis::TpuV2alpha1::AccessConfig

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

Overview

An access config attached to the TPU worker.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AccessConfig

Returns a new instance of AccessConfig.



103
104
105
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 103

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

Instance Attribute Details

#external_ipString

Output only. An external IP address associated with the TPU worker. Corresponds to the JSON property externalIp

Returns:

  • (String)


101
102
103
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 101

def external_ip
  @external_ip
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



108
109
110
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 108

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