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.



1450
1451
1452
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1450

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


1443
1444
1445
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1443

def cluster
  @cluster
end

#last_updatedString

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

Returns:

  • (String)


1448
1449
1450
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1448

def last_updated
  @last_updated
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1455
1456
1457
1458
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1455

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