Class: Google::Apis::ContainerV1::AutoUpgradeOptions

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

Overview

AutoUpgradeOptions defines the set of options for the user to control how the Auto Upgrades will proceed.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AutoUpgradeOptions

Returns a new instance of AutoUpgradeOptions



112
113
114
# File 'generated/google/apis/container_v1/classes.rb', line 112

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

Instance Attribute Details

#auto_upgrade_start_timeString

[Output only] This field is set when upgrades are about to commence with the approximate start time for the upgrades, in RFC3339 text format. Corresponds to the JSON property autoUpgradeStartTime

Returns:

  • (String)


104
105
106
# File 'generated/google/apis/container_v1/classes.rb', line 104

def auto_upgrade_start_time
  @auto_upgrade_start_time
end

#descriptionString

[Output only] This field is set when upgrades are about to commence with the description of the upgrade. Corresponds to the JSON property description

Returns:

  • (String)


110
111
112
# File 'generated/google/apis/container_v1/classes.rb', line 110

def description
  @description
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



117
118
119
120
# File 'generated/google/apis/container_v1/classes.rb', line 117

def update!(**args)
  @auto_upgrade_start_time = args[:auto_upgrade_start_time] if args.key?(:auto_upgrade_start_time)
  @description = args[:description] if args.key?(:description)
end