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.



1891
1892
1893
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1891

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)


1848
1849
1850
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1848

def create_time
  @create_time
end

#delete_timeString

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

Returns:

  • (String)


1853
1854
1855
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1853

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)


1861
1862
1863
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1861

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)


1870
1871
1872
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1870

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)


1877
1878
1879
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1877

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)


1884
1885
1886
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1884

def uid
  @uid
end

#update_timeString

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

Returns:

  • (String)


1889
1890
1891
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1889

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1896
1897
1898
1899
1900
1901
1902
1903
1904
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 1896

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