Class: Google::Apis::ContainerV1::Fleet

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/container_v1/classes.rb,
lib/google/apis/container_v1/representations.rb,
lib/google/apis/container_v1/representations.rb

Overview

Fleet is the fleet configuration for the cluster.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Fleet

Returns a new instance of Fleet.



2119
2120
2121
# File 'lib/google/apis/container_v1/classes.rb', line 2119

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#membershipString

[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

Returns:

  • (String)


2104
2105
2106
# File 'lib/google/apis/container_v1/classes.rb', line 2104

def membership
  @membership
end

#pre_registeredBoolean Also known as: pre_registered?

[Output only] Whether the cluster has been registered through the fleet API. Corresponds to the JSON property preRegistered

Returns:

  • (Boolean)


2109
2110
2111
# File 'lib/google/apis/container_v1/classes.rb', line 2109

def pre_registered
  @pre_registered
end

#projectString

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

Returns:

  • (String)


2117
2118
2119
# File 'lib/google/apis/container_v1/classes.rb', line 2117

def project
  @project
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2124
2125
2126
2127
2128
# File 'lib/google/apis/container_v1/classes.rb', line 2124

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