Class: Google::Apis::VmwareengineV1::Cluster

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

Overview

A cluster in a private cloud.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Cluster

Returns a new instance of Cluster.



248
249
250
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 248

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

Instance Attribute Details

#create_timeString

Output only. Creation time of this resource. Corresponds to the JSON property createTime

Returns:

  • (String)


204
205
206
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 204

def create_time
  @create_time
end

#managementBoolean Also known as: management?

Output only. True if the cluster is a management cluster; false otherwise. There can only be one management cluster in a private cloud and it has to be the first one. Corresponds to the JSON property management

Returns:

  • (Boolean)


211
212
213
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 211

def management
  @management
end

#nameString

Output only. The resource name of this cluster. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/ resource_names. For example: projects/my-project/locations/us-central1-a/ privateClouds/my-cloud/clusters/my-cluster Corresponds to the JSON property name

Returns:

  • (String)


220
221
222
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 220

def name
  @name
end

#node_type_configsHash<String,Google::Apis::VmwareengineV1::NodeTypeConfig>

Required. The map of cluster node types in this cluster, where the key is canonical identifier of the node type (corresponds to the NodeType). Corresponds to the JSON property nodeTypeConfigs



226
227
228
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 226

def node_type_configs
  @node_type_configs
end

#stateString

Output only. State of the resource. Corresponds to the JSON property state

Returns:

  • (String)


231
232
233
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 231

def state
  @state
end

#stretched_cluster_configGoogle::Apis::VmwareengineV1::StretchedClusterConfig

Configuration of a stretched cluster. Corresponds to the JSON property stretchedClusterConfig



236
237
238
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 236

def stretched_cluster_config
  @stretched_cluster_config
end

#uidString

Output only. System-generated unique identifier for the resource. Corresponds to the JSON property uid

Returns:

  • (String)


241
242
243
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 241

def uid
  @uid
end

#update_timeString

Output only. Last update time of this resource. Corresponds to the JSON property updateTime

Returns:

  • (String)


246
247
248
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 246

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



253
254
255
256
257
258
259
260
261
262
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 253

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @management = args[:management] if args.key?(:management)
  @name = args[:name] if args.key?(:name)
  @node_type_configs = args[:node_type_configs] if args.key?(:node_type_configs)
  @state = args[:state] if args.key?(:state)
  @stretched_cluster_config = args[:stretched_cluster_config] if args.key?(:stretched_cluster_config)
  @uid = args[:uid] if args.key?(:uid)
  @update_time = args[:update_time] if args.key?(:update_time)
end