Class: Google::Apis::GkehubV1beta::Fleet
- Inherits:
-
Object
- Object
- Google::Apis::GkehubV1beta::Fleet
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gkehub_v1beta/classes.rb,
lib/google/apis/gkehub_v1beta/representations.rb,
lib/google/apis/gkehub_v1beta/representations.rb
Overview
Fleet contains the Fleet-wide metadata and configuration.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#delete_time ⇒ String
Output only.
-
#display_name ⇒ String
Optional.
-
#name ⇒ String
Output only.
-
#state ⇒ Google::Apis::GkehubV1beta::FleetLifecycleState
FleetLifecycleState describes the state of a Fleet resource.
-
#uid ⇒ String
Output only.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Fleet
constructor
A new instance of Fleet.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Fleet
Returns a new instance of Fleet.
1675 1676 1677 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1675 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. When the Fleet was created.
Corresponds to the JSON property createTime
1636 1637 1638 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1636 def create_time @create_time end |
#delete_time ⇒ String
Output only. When the Fleet was deleted.
Corresponds to the JSON property deleteTime
1641 1642 1643 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1641 def delete_time @delete_time end |
#display_name ⇒ String
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
1649 1650 1651 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1649 def display_name @display_name end |
#name ⇒ String
Output only. The full, unique resource name of this fleet in the format of
projects/project/locations/location/fleets/fleet`. Each GCP project can
have at most one fleet resource, named "default".
Corresponds to the JSON propertyname`
1656 1657 1658 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1656 def name @name end |
#state ⇒ Google::Apis::GkehubV1beta::FleetLifecycleState
FleetLifecycleState describes the state of a Fleet resource.
Corresponds to the JSON property state
1661 1662 1663 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1661 def state @state end |
#uid ⇒ String
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
1668 1669 1670 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1668 def uid @uid end |
#update_time ⇒ String
Output only. When the Fleet was last updated.
Corresponds to the JSON property updateTime
1673 1674 1675 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1673 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1680 1681 1682 1683 1684 1685 1686 1687 1688 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1680 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 |