Class: Google::Apis::GkehubV2alpha::FeatureConfig

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_timeString

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

Returns:

  • (String)


63
64
65
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 63

def create_time
  @create_time
end

#delete_timeString

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

Returns:

  • (String)


68
69
70
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 68

def delete_time
  @delete_time
end

#labelsHash<String,String>

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

Returns:

  • (Hash<String,String>)


73
74
75
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 73

def labels
  @labels
end

#nameString

Output only. Resource name of this FeatureConfig, in the format: projects/ project/locations/global/FeatureConfigs/feature_type/feature_config` Corresponds to the JSON propertyname`

Returns:

  • (String)


79
80
81
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 79

def name
  @name
end

#specGoogle::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

#stateGoogle::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_idString

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

Returns:

  • (String)


96
97
98
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 96

def unique_id
  @unique_id
end

#update_timeString

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

Returns:

  • (String)


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