Class: Google::Apis::ConnectorsV2::MaintenanceSchedule

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

Overview

Maintenance schedule which is exposed to customer and potentially end user, indicating published upcoming future maintenance schedule

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MaintenanceSchedule

Returns a new instance of MaintenanceSchedule.



1079
1080
1081
# File 'lib/google/apis/connectors_v2/classes.rb', line 1079

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

Instance Attribute Details

#can_rescheduleBoolean Also known as: can_reschedule?

This field is deprecated, and will be always set to true since reschedule can happen multiple times now. This field should not be removed until all service producers remove this for their customers. Corresponds to the JSON property canReschedule

Returns:

  • (Boolean)


1051
1052
1053
# File 'lib/google/apis/connectors_v2/classes.rb', line 1051

def can_reschedule
  @can_reschedule
end

#end_timeString

The scheduled end time for the maintenance. Corresponds to the JSON property endTime

Returns:

  • (String)


1057
1058
1059
# File 'lib/google/apis/connectors_v2/classes.rb', line 1057

def end_time
  @end_time
end

#rollout_management_policyString

The rollout management policy this maintenance schedule is associated with. When doing reschedule update request, the reschedule should be against this given policy. Corresponds to the JSON property rolloutManagementPolicy

Returns:

  • (String)


1064
1065
1066
# File 'lib/google/apis/connectors_v2/classes.rb', line 1064

def rollout_management_policy
  @rollout_management_policy
end

#schedule_deadline_timeString

schedule_deadline_time is the time deadline any schedule start time cannot go beyond, including reschedule. It's normally the initial schedule start time plus maintenance window length (1 day or 1 week). Maintenance cannot be scheduled to start beyond this deadline. Corresponds to the JSON property scheduleDeadlineTime

Returns:

  • (String)


1072
1073
1074
# File 'lib/google/apis/connectors_v2/classes.rb', line 1072

def schedule_deadline_time
  @schedule_deadline_time
end

#start_timeString

The scheduled start time for the maintenance. Corresponds to the JSON property startTime

Returns:

  • (String)


1077
1078
1079
# File 'lib/google/apis/connectors_v2/classes.rb', line 1077

def start_time
  @start_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1084
1085
1086
1087
1088
1089
1090
# File 'lib/google/apis/connectors_v2/classes.rb', line 1084

def update!(**args)
  @can_reschedule = args[:can_reschedule] if args.key?(:can_reschedule)
  @end_time = args[:end_time] if args.key?(:end_time)
  @rollout_management_policy = args[:rollout_management_policy] if args.key?(:rollout_management_policy)
  @schedule_deadline_time = args[:schedule_deadline_time] if args.key?(:schedule_deadline_time)
  @start_time = args[:start_time] if args.key?(:start_time)
end