Class: Google::Apis::GkehubV1::Fleet

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

Overview

Fleet contains the Fleet-wide metadata and configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Fleet

Returns a new instance of Fleet.



2213
2214
2215
# File 'lib/google/apis/gkehub_v1/classes.rb', line 2213

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

Instance Attribute Details

#create_timeString

Output only. When the Fleet was created. Corresponds to the JSON property createTime

Returns:

  • (String)


2163
2164
2165
# File 'lib/google/apis/gkehub_v1/classes.rb', line 2163

def create_time
  @create_time
end

#default_cluster_configGoogle::Apis::GkehubV1::DefaultClusterConfig

DefaultClusterConfig describes the default cluster configurations to be applied to all clusters born-in-fleet. Corresponds to the JSON property defaultClusterConfig



2169
2170
2171
# File 'lib/google/apis/gkehub_v1/classes.rb', line 2169

def default_cluster_config
  @default_cluster_config
end

#delete_timeString

Output only. When the Fleet was deleted. Corresponds to the JSON property deleteTime

Returns:

  • (String)


2174
2175
2176
# File 'lib/google/apis/gkehub_v1/classes.rb', line 2174

def delete_time
  @delete_time
end

#display_nameString

Optional. A user-assigned display name of the Fleet. When present, it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, single-quote, double-quote, space, and exclamation point. Example: Production Fleet Corresponds to the JSON property displayName

Returns:

  • (String)


2182
2183
2184
# File 'lib/google/apis/gkehub_v1/classes.rb', line 2182

def display_name
  @display_name
end

#labelsHash<String,String>

Optional. Labels for this Fleet. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


2187
2188
2189
# File 'lib/google/apis/gkehub_v1/classes.rb', line 2187

def labels
  @labels
end

#nameString

Output only. The full, unique resource name of this fleet in the format of projects/project/locations/location/fleets/fleet`. Each Google Cloud project can have at most one fleet resource, named "default". Corresponds to the JSON propertyname`

Returns:

  • (String)


2194
2195
2196
# File 'lib/google/apis/gkehub_v1/classes.rb', line 2194

def name
  @name
end

#stateGoogle::Apis::GkehubV1::FleetLifecycleState

FleetLifecycleState describes the state of a Fleet resource. Corresponds to the JSON property state



2199
2200
2201
# File 'lib/google/apis/gkehub_v1/classes.rb', line 2199

def state
  @state
end

#uidString

Output only. Google-generated UUID for this resource. This is unique across all Fleet resources. If a Fleet resource is deleted and another resource with the same name is created, it gets a different uid. Corresponds to the JSON property uid

Returns:

  • (String)


2206
2207
2208
# File 'lib/google/apis/gkehub_v1/classes.rb', line 2206

def uid
  @uid
end

#update_timeString

Output only. When the Fleet was last updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


2211
2212
2213
# File 'lib/google/apis/gkehub_v1/classes.rb', line 2211

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
# File 'lib/google/apis/gkehub_v1/classes.rb', line 2218

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @default_cluster_config = args[:default_cluster_config] if args.key?(:default_cluster_config)
  @delete_time = args[:delete_time] if args.key?(:delete_time)
  @display_name = args[:display_name] if args.key?(:display_name)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @state = args[:state] if args.key?(:state)
  @uid = args[:uid] if args.key?(:uid)
  @update_time = args[:update_time] if args.key?(:update_time)
end