Class: Google::Apis::TrafficdirectorV2::StaticCluster

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/trafficdirector_v2/classes.rb,
generated/google/apis/trafficdirector_v2/representations.rb,
generated/google/apis/trafficdirector_v2/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.



1097
1098
1099
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 1097

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


1090
1091
1092
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 1090

def cluster
  @cluster
end

#last_updatedString

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

Returns:

  • (String)


1095
1096
1097
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 1095

def last_updated
  @last_updated
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1102
1103
1104
1105
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 1102

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