Class: Google::Apis::ContainerV1beta1::Fleet
- Inherits:
-
Object
- Object
- Google::Apis::ContainerV1beta1::Fleet
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/container_v1beta1/classes.rb,
lib/google/apis/container_v1beta1/representations.rb,
lib/google/apis/container_v1beta1/representations.rb
Overview
Fleet is the fleet configuration for the cluster.
Instance Attribute Summary collapse
-
#membership ⇒ String
[Output only] The full resource name of the registered fleet membership of the cluster, in the format
//gkehub.googleapis.com/projects/*/locations/*/ memberships/*. -
#pre_registered ⇒ Boolean
(also: #pre_registered?)
[Output only] Whether the cluster has been registered through the fleet API.
-
#project ⇒ String
The Fleet host project(project ID or project number) where this cluster will be registered to.
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.
2391 2392 2393 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 2391 def initialize(**args) update!(**args) end |
Instance Attribute Details
#membership ⇒ String
[Output only] The full resource name of the registered fleet membership of the
cluster, in the format //gkehub.googleapis.com/projects/*/locations/*/
memberships/*.
Corresponds to the JSON property membership
2376 2377 2378 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 2376 def membership @membership end |
#pre_registered ⇒ Boolean Also known as: pre_registered?
[Output only] Whether the cluster has been registered through the fleet API.
Corresponds to the JSON property preRegistered
2381 2382 2383 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 2381 def pre_registered @pre_registered end |
#project ⇒ String
The Fleet host project(project ID or project number) where this cluster will
be registered to. This field cannot be changed after the cluster has been
registered.
Corresponds to the JSON property project
2389 2390 2391 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 2389 def project @project end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2396 2397 2398 2399 2400 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 2396 def update!(**args) @membership = args[:membership] if args.key?(:membership) @pre_registered = args[:pre_registered] if args.key?(:pre_registered) @project = args[:project] if args.key?(:project) end |