Class: Google::Apis::GkehubV1alpha::Fleet
- Inherits:
-
Object
- Object
- Google::Apis::GkehubV1alpha::Fleet
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gkehub_v1alpha/classes.rb,
lib/google/apis/gkehub_v1alpha/representations.rb,
lib/google/apis/gkehub_v1alpha/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.
-
#fleet_name ⇒ String
The name for the fleet.
-
#name ⇒ String
Output only.
-
#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.
1600 1601 1602 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1600 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
1557 1558 1559 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1557 def create_time @create_time end |
#delete_time ⇒ String
Output only. When the Fleet was deleted.
Corresponds to the JSON property deleteTime
1562 1563 1564 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1562 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
1570 1571 1572 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1570 def display_name @display_name end |
#fleet_name ⇒ String
The name for the fleet. The name must meet the following constraints: + The
name of a fleet should be unique within the organization; + It must consist of
lower case alphanumeric characters or -; + The length of the name must be
less than or equal to 63; + Unicode names must be expressed in Punycode format
(rfc3492). Examples: + prod-fleet + xn--wlq33vhyw9jb (Punycode form for "生产环境")
Corresponds to the JSON property fleetName
1579 1580 1581 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1579 def fleet_name @fleet_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`
1586 1587 1588 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1586 def name @name 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
1593 1594 1595 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1593 def uid @uid end |
#update_time ⇒ String
Output only. When the Fleet was last updated.
Corresponds to the JSON property updateTime
1598 1599 1600 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1598 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1605 1606 1607 1608 1609 1610 1611 1612 1613 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1605 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) @fleet_name = args[:fleet_name] if args.key?(:fleet_name) @name = args[:name] if args.key?(:name) @uid = args[:uid] if args.key?(:uid) @update_time = args[:update_time] if args.key?(:update_time) end |