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.



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

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


1435
1436
1437
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1435

def cluster
  @cluster
end

#last_updatedString

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

Returns:

  • (String)


1440
1441
1442
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1440

def last_updated
  @last_updated
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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