Class: Google::Apis::GkehubV2alpha::FeatureConfig
- Inherits:
-
Object
- Object
- Google::Apis::GkehubV2alpha::FeatureConfig
- 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
FeatureConfig contains configurations for a Fleet feature. FeatureConfig can be applied to MembershipFeature(s) to setup per-membership FeatureSpec.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#delete_time ⇒ String
Output only.
-
#labels ⇒ Hash<String,String>
GCP labels for this FeatureConfig.
-
#name ⇒ String
Output only.
-
#spec ⇒ Google::Apis::GkehubV2alpha::FeatureSpec
FeatureSpec contains user input per-feature spec information.
-
#state ⇒ Google::Apis::GkehubV2alpha::FeatureConfigState
FeatureConfigState describes the state of a FeatureConfig resource.
-
#unique_id ⇒ String
Output only.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FeatureConfig
constructor
A new instance of FeatureConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ FeatureConfig
Returns a new instance of FeatureConfig.
103 104 105 |
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 103 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. When the FeatureConfig resource was created.
Corresponds to the JSON property createTime
63 64 65 |
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 63 def create_time @create_time end |
#delete_time ⇒ String
Output only. When the FeatureConfig resource was deleted.
Corresponds to the JSON property deleteTime
68 69 70 |
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 68 def delete_time @delete_time end |
#labels ⇒ Hash<String,String>
GCP labels for this FeatureConfig.
Corresponds to the JSON property labels
73 74 75 |
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 73 def labels @labels end |
#name ⇒ String
Output only. Resource name of this FeatureConfig, in the format: projects/
project/locations/global/FeatureConfigs/feature_type/feature_config`
Corresponds to the JSON propertyname`
79 80 81 |
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 79 def name @name end |
#spec ⇒ Google::Apis::GkehubV2alpha::FeatureSpec
FeatureSpec contains user input per-feature spec information.
Corresponds to the JSON property spec
84 85 86 |
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 84 def spec @spec end |
#state ⇒ Google::Apis::GkehubV2alpha::FeatureConfigState
FeatureConfigState describes the state of a FeatureConfig resource.
Corresponds to the JSON property state
89 90 91 |
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 89 def state @state end |
#unique_id ⇒ String
Output only. Google-generated UUID for this resource. This is unique across
all FeatureConfig resources. If a Membership resource is deleted and another
resource with the same name is created, it gets a different unique_id.
Corresponds to the JSON property uniqueId
96 97 98 |
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 96 def unique_id @unique_id end |
#update_time ⇒ String
Output only. When the FeatureConfig resource was last updated.
Corresponds to the JSON property updateTime
101 102 103 |
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 101 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
108 109 110 111 112 113 114 115 116 117 |
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 108 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) @name = args[:name] if args.key?(:name) @spec = args[:spec] if args.key?(:spec) @state = args[:state] if args.key?(:state) @unique_id = args[:unique_id] if args.key?(:unique_id) @update_time = args[:update_time] if args.key?(:update_time) end |