Class: Google::Apis::ComputeAlpha::GroupMaintenanceInfo

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

Overview

Maintenance Info for ReservationBlocks.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GroupMaintenanceInfo

Returns a new instance of GroupMaintenanceInfo.



13415
13416
13417
# File 'lib/google/apis/compute_alpha/classes.rb', line 13415

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

Instance Attribute Details

#enable_opportunistic_maintenanceBoolean Also known as: enable_opportunistic_maintenance?

This setting enables or disables opportunistic maintenance. If enabled, maintenance is performed on unused reservations whenever possible. Corresponds to the JSON property enableOpportunisticMaintenance

Returns:

  • (Boolean)


13390
13391
13392
# File 'lib/google/apis/compute_alpha/classes.rb', line 13390

def enable_opportunistic_maintenance
  @enable_opportunistic_maintenance
end

#maintenance_ongoing_countFixnum

Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the block that have ongoing maintenance. Corresponds to the JSON property maintenanceOngoingCount

Returns:

  • (Fixnum)


13397
13398
13399
# File 'lib/google/apis/compute_alpha/classes.rb', line 13397

def maintenance_ongoing_count
  @maintenance_ongoing_count
end

#maintenance_pending_countFixnum

Progress for ongoing maintenance for this group of VMs/hosts. Describes number of hosts in the block that have pending maintenance. Corresponds to the JSON property maintenancePendingCount

Returns:

  • (Fixnum)


13403
13404
13405
# File 'lib/google/apis/compute_alpha/classes.rb', line 13403

def maintenance_pending_count
  @maintenance_pending_count
end

#scheduling_typeString

The type of maintenance for the reservation. Corresponds to the JSON property schedulingType

Returns:

  • (String)


13408
13409
13410
# File 'lib/google/apis/compute_alpha/classes.rb', line 13408

def scheduling_type
  @scheduling_type
end

#upcoming_group_maintenanceGoogle::Apis::ComputeAlpha::UpcomingMaintenance

Upcoming Maintenance notification information. Corresponds to the JSON property upcomingGroupMaintenance



13413
13414
13415
# File 'lib/google/apis/compute_alpha/classes.rb', line 13413

def upcoming_group_maintenance
  @upcoming_group_maintenance
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13420
13421
13422
13423
13424
13425
13426
# File 'lib/google/apis/compute_alpha/classes.rb', line 13420

def update!(**args)
  @enable_opportunistic_maintenance = args[:enable_opportunistic_maintenance] if args.key?(:enable_opportunistic_maintenance)
  @maintenance_ongoing_count = args[:maintenance_ongoing_count] if args.key?(:maintenance_ongoing_count)
  @maintenance_pending_count = args[:maintenance_pending_count] if args.key?(:maintenance_pending_count)
  @scheduling_type = args[:scheduling_type] if args.key?(:scheduling_type)
  @upcoming_group_maintenance = args[:upcoming_group_maintenance] if args.key?(:upcoming_group_maintenance)
end