Class: Google::Apis::TrafficdirectorV3::StaticCluster

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

Overview

Describes a statically loaded cluster.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ StaticCluster

Returns a new instance of StaticCluster.



1423
1424
1425
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1423

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

Instance Attribute Details

#clusterHash<String,Object>

The cluster config. Corresponds to the JSON property cluster

Returns:

  • (Hash<String,Object>)


1416
1417
1418
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1416

def cluster
  @cluster
end

#last_updatedString

The timestamp when the Cluster was last updated. Corresponds to the JSON property lastUpdated

Returns:

  • (String)


1421
1422
1423
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1421

def last_updated
  @last_updated
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1428
1429
1430
1431
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1428

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