Class: Google::Apis::MlV1::GoogleCloudMlV1Location

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

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

Returns a new instance of GoogleCloudMlV1Location



551
552
553
# File 'generated/google/apis/ml_v1/classes.rb', line 551

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

Instance Attribute Details

#capabilitiesArray<Google::Apis::MlV1::GoogleCloudMlV1Capability>

Capabilities available in the location. Corresponds to the JSON property capabilities



544
545
546
# File 'generated/google/apis/ml_v1/classes.rb', line 544

def capabilities
  @capabilities
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


549
550
551
# File 'generated/google/apis/ml_v1/classes.rb', line 549

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



556
557
558
559
# File 'generated/google/apis/ml_v1/classes.rb', line 556

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