Class: Google::Apis::GkehubV1alpha::Fleet

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Fleet

Returns a new instance of Fleet.



1634
1635
1636
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1634

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)


1591
1592
1593
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1591

def create_time
  @create_time
end

#delete_timeString

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

Returns:

  • (String)


1596
1597
1598
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1596

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)


1604
1605
1606
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1604

def display_name
  @display_name
end

#fleet_nameString

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

Returns:

  • (String)


1613
1614
1615
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1613

def fleet_name
  @fleet_name
end

#nameString

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`

Returns:

  • (String)


1620
1621
1622
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1620

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


1627
1628
1629
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1627

def uid
  @uid
end

#update_timeString

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

Returns:

  • (String)


1632
1633
1634
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1632

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1639
1640
1641
1642
1643
1644
1645
1646
1647
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1639

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