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.



1723
1724
1725
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1723

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)


1684
1685
1686
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1684

def create_time
  @create_time
end

#delete_timeString

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

Returns:

  • (String)


1689
1690
1691
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1689

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)


1697
1698
1699
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1697

def display_name
  @display_name
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)


1704
1705
1706
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1704

def name
  @name
end

#stateGoogle::Apis::GkehubV1::FleetLifecycleState

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



1709
1710
1711
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1709

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)


1716
1717
1718
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1716

def uid
  @uid
end

#update_timeString

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

Returns:

  • (String)


1721
1722
1723
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1721

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1728
1729
1730
1731
1732
1733
1734
1735
1736
# File 'lib/google/apis/gkehub_v1/classes.rb', line 1728

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @delete_time = args[:delete_time] if args.key?(:delete_time)
  @display_name = args[:display_name] if args.key?(:display_name)
  @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