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.



1524
1525
1526
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1524

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)


1481
1482
1483
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1481

def create_time
  @create_time
end

#delete_timeString

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

Returns:

  • (String)


1486
1487
1488
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1486

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)


1494
1495
1496
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1494

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)


1503
1504
1505
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1503

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)


1510
1511
1512
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1510

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)


1517
1518
1519
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1517

def uid
  @uid
end

#update_timeString

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

Returns:

  • (String)


1522
1523
1524
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1522

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1529
1530
1531
1532
1533
1534
1535
1536
1537
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1529

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