Class: Google::Apis::ContainerV1::MaintenanceExclusionOptions

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

Overview

Represents the Maintenance exclusion option.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MaintenanceExclusionOptions

Returns a new instance of MaintenanceExclusionOptions.



4698
4699
4700
# File 'lib/google/apis/container_v1/classes.rb', line 4698

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

Instance Attribute Details

#end_time_behaviorString

EndTimeBehavior specifies the behavior of the exclusion end time. Corresponds to the JSON property endTimeBehavior

Returns:

  • (String)


4691
4692
4693
# File 'lib/google/apis/container_v1/classes.rb', line 4691

def end_time_behavior
  @end_time_behavior
end

#scopeString

Scope specifies the upgrade scope which upgrades are blocked by the exclusion. Corresponds to the JSON property scope

Returns:

  • (String)


4696
4697
4698
# File 'lib/google/apis/container_v1/classes.rb', line 4696

def scope
  @scope
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4703
4704
4705
4706
# File 'lib/google/apis/container_v1/classes.rb', line 4703

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