Class: Google::Apis::GkehubV2::MembershipFeature
- Inherits:
-
Object
- Object
- Google::Apis::GkehubV2::MembershipFeature
- 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
-
#create_time ⇒ String
Output only.
-
#delete_time ⇒ String
Output only.
-
#feature_config_ref ⇒ Google::Apis::GkehubV2::FeatureConfigRef
Information of the FeatureConfig applied on the MembershipFeature.
-
#labels ⇒ Hash<String,String>
GCP labels for this MembershipFeature.
-
#lifecycle_state ⇒ Google::Apis::GkehubV2::LifecycleState
LifecycleState describes the state of a MembershipFeature resource in the GkeHub API.
-
#name ⇒ String
Output only.
-
#spec ⇒ Google::Apis::GkehubV2::FeatureSpec
FeatureSpec contains user input per-feature spec information.
-
#state ⇒ Google::Apis::GkehubV2::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.
2421 2422 2423 |
# File 'lib/google/apis/gkehub_v2/classes.rb', line 2421 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
2373 2374 2375 |
# File 'lib/google/apis/gkehub_v2/classes.rb', line 2373 def create_time @create_time end |
#delete_time ⇒ String
Output only. When the MembershipFeature resource was deleted.
Corresponds to the JSON property deleteTime
2378 2379 2380 |
# File 'lib/google/apis/gkehub_v2/classes.rb', line 2378 def delete_time @delete_time end |
#feature_config_ref ⇒ Google::Apis::GkehubV2::FeatureConfigRef
Information of the FeatureConfig applied on the MembershipFeature.
Corresponds to the JSON property featureConfigRef
2383 2384 2385 |
# File 'lib/google/apis/gkehub_v2/classes.rb', line 2383 def feature_config_ref @feature_config_ref end |
#labels ⇒ Hash<String,String>
GCP labels for this MembershipFeature.
Corresponds to the JSON property labels
2388 2389 2390 |
# File 'lib/google/apis/gkehub_v2/classes.rb', line 2388 def labels @labels end |
#lifecycle_state ⇒ Google::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
2395 2396 2397 |
# File 'lib/google/apis/gkehub_v2/classes.rb', line 2395 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 that
membershipFeaturesis shortened to
featuresin the
resource name. (see http://go/aip/122#collection-identifiers)
Corresponds to the JSON property
name`
2403 2404 2405 |
# File 'lib/google/apis/gkehub_v2/classes.rb', line 2403 def name @name end |
#spec ⇒ Google::Apis::GkehubV2::FeatureSpec
FeatureSpec contains user input per-feature spec information.
Corresponds to the JSON property spec
2408 2409 2410 |
# File 'lib/google/apis/gkehub_v2/classes.rb', line 2408 def spec @spec end |
#state ⇒ Google::Apis::GkehubV2::FeatureState
FeatureState contains high-level state information and per-feature state
information for this MembershipFeature.
Corresponds to the JSON property state
2414 2415 2416 |
# File 'lib/google/apis/gkehub_v2/classes.rb', line 2414 def state @state end |
#update_time ⇒ String
Output only. When the MembershipFeature resource was last updated.
Corresponds to the JSON property updateTime
2419 2420 2421 |
# File 'lib/google/apis/gkehub_v2/classes.rb', line 2419 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 |
# File 'lib/google/apis/gkehub_v2/classes.rb', line 2426 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 |