Class: Google::Apis::GkehubV2alpha::MembershipFeature
- Inherits:
-
Object
- Object
- Google::Apis::GkehubV2alpha::MembershipFeature
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gkehub_v2alpha/classes.rb,
lib/google/apis/gkehub_v2alpha/representations.rb,
lib/google/apis/gkehub_v2alpha/representations.rb
Overview
MembershipFeature represents the settings and status of a Fleet Feature enabled on a single Fleet Membership.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#delete_time ⇒ String
Output only.
-
#labels ⇒ Hash<String,String>
GCP labels for this MembershipFeature.
-
#lifecycle_state ⇒ Google::Apis::GkehubV2alpha::LifecycleState
LifecycleState describes the state of a MembershipFeature resource in the GkeHub API.
-
#name ⇒ String
Output only.
-
#spec ⇒ Google::Apis::GkehubV2alpha::FeatureSpec
FeatureSpec contains user input per-feature spec information.
-
#state ⇒ Google::Apis::GkehubV2alpha::FeatureState
FeatureState contains high-level state information and per-feature state information for this MembershipFeature.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MembershipFeature
constructor
A new instance of MembershipFeature.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MembershipFeature
Returns a new instance of MembershipFeature.
2492 2493 2494 |
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 2492 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. When the MembershipFeature resource was created.
Corresponds to the JSON property createTime
2449 2450 2451 |
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 2449 def create_time @create_time end |
#delete_time ⇒ String
Output only. When the MembershipFeature resource was deleted.
Corresponds to the JSON property deleteTime
2454 2455 2456 |
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 2454 def delete_time @delete_time end |
#labels ⇒ Hash<String,String>
GCP labels for this MembershipFeature.
Corresponds to the JSON property labels
2459 2460 2461 |
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 2459 def labels @labels end |
#lifecycle_state ⇒ Google::Apis::GkehubV2alpha::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
2466 2467 2468 |
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 2466 def lifecycle_state @lifecycle_state end |
#name ⇒ String
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`
2474 2475 2476 |
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 2474 def name @name end |
#spec ⇒ Google::Apis::GkehubV2alpha::FeatureSpec
FeatureSpec contains user input per-feature spec information.
Corresponds to the JSON property spec
2479 2480 2481 |
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 2479 def spec @spec end |
#state ⇒ Google::Apis::GkehubV2alpha::FeatureState
FeatureState contains high-level state information and per-feature state
information for this MembershipFeature.
Corresponds to the JSON property state
2485 2486 2487 |
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 2485 def state @state end |
#update_time ⇒ String
Output only. When the MembershipFeature resource was last updated.
Corresponds to the JSON property updateTime
2490 2491 2492 |
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 2490 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 |
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 2497 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @delete_time = args[:delete_time] if args.key?(:delete_time) @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 |