Class: Google::Apis::AutoscalerV1beta2::DeprecationStatus

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ DeprecationStatus

Returns a new instance of DeprecationStatus.



283
284
285
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 283

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

Instance Attribute Details

#deletedString

Corresponds to the JSON property deleted

Returns:

  • (String)


261
262
263
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 261

def deleted
  @deleted
end

#deprecatedString

Corresponds to the JSON property deprecated

Returns:

  • (String)


266
267
268
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 266

def deprecated
  @deprecated
end

#obsoleteString

Corresponds to the JSON property obsolete

Returns:

  • (String)


271
272
273
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 271

def obsolete
  @obsolete
end

#replacementString

Corresponds to the JSON property replacement

Returns:

  • (String)


276
277
278
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 276

def replacement
  @replacement
end

#stateString

Corresponds to the JSON property state

Returns:

  • (String)


281
282
283
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 281

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



288
289
290
291
292
293
294
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 288

def update!(**args)
  @deleted = args[:deleted] if args.key?(:deleted)
  @deprecated = args[:deprecated] if args.key?(:deprecated)
  @obsolete = args[:obsolete] if args.key?(:obsolete)
  @replacement = args[:replacement] if args.key?(:replacement)
  @state = args[:state] if args.key?(:state)
end