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.
-
#default_cluster_config ⇒ Google::Apis::GkehubV1beta::DefaultClusterConfig
DefaultClusterConfig describes the default cluster configurations to be applied to all clusters born-in-fleet.
-
#delete_time ⇒ String
Output only.
-
#display_name ⇒ String
Optional.
-
#labels ⇒ Hash<String,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.
2274 2275 2276 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 2274 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
2224 2225 2226 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 2224 def create_time @create_time end |
#default_cluster_config ⇒ Google::Apis::GkehubV1beta::DefaultClusterConfig
DefaultClusterConfig describes the default cluster configurations to be
applied to all clusters born-in-fleet.
Corresponds to the JSON property defaultClusterConfig
2230 2231 2232 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 2230 def default_cluster_config @default_cluster_config end |
#delete_time ⇒ String
Output only. When the Fleet was deleted.
Corresponds to the JSON property deleteTime
2235 2236 2237 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 2235 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
2243 2244 2245 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 2243 def display_name @display_name end |
#labels ⇒ Hash<String,String>
Optional. Labels for this Fleet.
Corresponds to the JSON property labels
2248 2249 2250 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 2248 def labels @labels end |
#name ⇒ String
Output only. The full, unique resource name of this fleet in the format of
projects/project/locations/location/fleets/fleet`. Each Google Cloud
project can have at most one fleet resource, named "default".
Corresponds to the JSON propertyname`
2255 2256 2257 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 2255 def name @name end |
#state ⇒ Google::Apis::GkehubV1beta::FleetLifecycleState
FleetLifecycleState describes the state of a Fleet resource.
Corresponds to the JSON property state
2260 2261 2262 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 2260 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
2267 2268 2269 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 2267 def uid @uid end |
#update_time ⇒ String
Output only. When the Fleet was last updated.
Corresponds to the JSON property updateTime
2272 2273 2274 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 2272 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 2279 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @default_cluster_config = args[:default_cluster_config] if args.key?(:default_cluster_config) @delete_time = args[:delete_time] if args.key?(:delete_time) @display_name = args[:display_name] if args.key?(:display_name) @labels = args[:labels] if args.key?(:labels) @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 |