Class: Google::Apis::GkehubV2::MembershipFeature

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

Overview

MembershipFeature represents the settings and status of a Fleet Feature enabled on a single Fleet Membership.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MembershipFeature

Returns a new instance of MembershipFeature.



2414
2415
2416
# File 'lib/google/apis/gkehub_v2/classes.rb', line 2414

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

Instance Attribute Details

#create_timeString

Output only. When the MembershipFeature resource was created. Corresponds to the JSON property createTime

Returns:

  • (String)


2366
2367
2368
# File 'lib/google/apis/gkehub_v2/classes.rb', line 2366

def create_time
  @create_time
end

#delete_timeString

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

Returns:

  • (String)


2371
2372
2373
# File 'lib/google/apis/gkehub_v2/classes.rb', line 2371

def delete_time
  @delete_time
end

#feature_config_refGoogle::Apis::GkehubV2::FeatureConfigRef

Information of the FeatureConfig applied on the MembershipFeature. Corresponds to the JSON property featureConfigRef



2376
2377
2378
# File 'lib/google/apis/gkehub_v2/classes.rb', line 2376

def feature_config_ref
  @feature_config_ref
end

#labelsHash<String,String>

GCP labels for this MembershipFeature. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


2381
2382
2383
# File 'lib/google/apis/gkehub_v2/classes.rb', line 2381

def labels
  @labels
end

#lifecycle_stateGoogle::Apis::GkehubV2::LifecycleState

LifecycleState describes the state of a MembershipFeature resource in the GkeHub API. See FeatureState for the "running state" of the MembershipFeature. Corresponds to the JSON property lifecycleState



2388
2389
2390
# File 'lib/google/apis/gkehub_v2/classes.rb', line 2388

def lifecycle_state
  @lifecycle_state
end

#nameString

Output only. The resource name of the membershipFeature, in the format: projects/project/locations/location/memberships/membership/features/ feature`. Note thatmembershipFeaturesis shortened tofeaturesin the resource name. (see http://go/aip/122#collection-identifiers) Corresponds to the JSON propertyname`

Returns:

  • (String)


2396
2397
2398
# File 'lib/google/apis/gkehub_v2/classes.rb', line 2396

def name
  @name
end

#specGoogle::Apis::GkehubV2::FeatureSpec

FeatureSpec contains user input per-feature spec information. Corresponds to the JSON property spec



2401
2402
2403
# File 'lib/google/apis/gkehub_v2/classes.rb', line 2401

def spec
  @spec
end

#stateGoogle::Apis::GkehubV2::FeatureState

FeatureState contains high-level state information and per-feature state information for this MembershipFeature. Corresponds to the JSON property state



2407
2408
2409
# File 'lib/google/apis/gkehub_v2/classes.rb', line 2407

def state
  @state
end

#update_timeString

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

Returns:

  • (String)


2412
2413
2414
# File 'lib/google/apis/gkehub_v2/classes.rb', line 2412

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
# File 'lib/google/apis/gkehub_v2/classes.rb', line 2419

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @delete_time = args[:delete_time] if args.key?(:delete_time)
  @feature_config_ref = args[:feature_config_ref] if args.key?(:feature_config_ref)
  @labels = args[:labels] if args.key?(:labels)
  @lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
  @name = args[:name] if args.key?(:name)
  @spec = args[:spec] if args.key?(:spec)
  @state = args[:state] if args.key?(:state)
  @update_time = args[:update_time] if args.key?(:update_time)
end