Class: Softlayer::Provisioning::Maintenance::Window

Inherits:
Model
  • Object
show all
Defined in:
lib/softlayer/provisioning/maintenance/window.rb

Defined Under Namespace

Classes: Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Provisioning_Maintenance_Window'

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Model

all, all_request_for, create, find, #init_headers, parse, request, #request, service_name, #to_hash

Methods included from Model::Operations

extended, #filter, included, #limit, #mask, #request_headers

Instance Attribute Details

#begin_dateObject

Returns the value of attribute begin_date.



6
7
8
# File 'lib/softlayer/provisioning/maintenance/window.rb', line 6

def begin_date
  @begin_date
end

#day_of_weekObject

Returns the value of attribute day_of_week.



7
8
9
# File 'lib/softlayer/provisioning/maintenance/window.rb', line 7

def day_of_week
  @day_of_week
end

#end_dateObject

Returns the value of attribute end_date.



8
9
10
# File 'lib/softlayer/provisioning/maintenance/window.rb', line 8

def end_date
  @end_date
end

#idObject

Returns the value of attribute id.



9
10
11
# File 'lib/softlayer/provisioning/maintenance/window.rb', line 9

def id
  @id
end

#location_idObject

Returns the value of attribute location_id.



10
11
12
# File 'lib/softlayer/provisioning/maintenance/window.rb', line 10

def location_id
  @location_id
end

#portal_tz_idObject

Returns the value of attribute portal_tz_id.



11
12
13
# File 'lib/softlayer/provisioning/maintenance/window.rb', line 11

def portal_tz_id
  @portal_tz_id
end

Class Method Details

.add_customer_upgrade_window(customer_upgrade_window = nil) ⇒ Object



13
14
15
16
# File 'lib/softlayer/provisioning/maintenance/window.rb', line 13

def self.add_customer_upgrade_window(customer_upgrade_window = nil)
  message = {customer_upgrade_window: customer_upgrade_window}
  request(:add_customer_upgrade_window, Boolean, message)
end

.get_maintenance_classificationsObject



18
19
20
# File 'lib/softlayer/provisioning/maintenance/window.rb', line 18

def self.get_maintenance_classifications
  request(:get_maintenance_classifications, Array[Softlayer::Provisioning::Maintenance::Classification])
end

.get_maintenance_start_end_time(ticket_id = nil) ⇒ Object



22
23
24
25
# File 'lib/softlayer/provisioning/maintenance/window.rb', line 22

def self.get_maintenance_start_end_time(ticket_id = nil)
  message = {ticket_id: ticket_id}
  request(:get_maintenance_start_end_time, Softlayer::Provisioning::Maintenance::Window, message)
end

.get_maintenance_window_for_ticket(maintenance_window_id = nil) ⇒ Object



27
28
29
30
# File 'lib/softlayer/provisioning/maintenance/window.rb', line 27

def self.get_maintenance_window_for_ticket(maintenance_window_id = nil)
  message = {maintenance_window_id: maintenance_window_id}
  request(:get_maintenance_window_for_ticket, Array[Softlayer::Provisioning::Maintenance::Window], message)
end

.get_maintenance_window_tickets_by_ticket_id(ticket_id = nil) ⇒ Object



32
33
34
35
# File 'lib/softlayer/provisioning/maintenance/window.rb', line 32

def self.get_maintenance_window_tickets_by_ticket_id(ticket_id = nil)
  message = {ticket_id: ticket_id}
  request(:get_maintenance_window_tickets_by_ticket_id, Array[Softlayer::Provisioning::Maintenance::Ticket], message)
end

.get_maintenance_windows(begin_date = nil, end_date = nil, location_id = nil, slots_needed = nil) ⇒ Object



37
38
39
40
# File 'lib/softlayer/provisioning/maintenance/window.rb', line 37

def self.get_maintenance_windows(begin_date = nil, end_date = nil, location_id = nil, slots_needed = nil)
  message = {begin_date: begin_date, end_date: end_date, location_id: location_id, slots_needed: slots_needed}
  request(:get_maintenance_windows, Array[Softlayer::Provisioning::Maintenance::Window], message)
end

.get_maintence_windows(begin_date = nil, end_date = nil, location_id = nil, slots_needed = nil) ⇒ Object



42
43
44
45
# File 'lib/softlayer/provisioning/maintenance/window.rb', line 42

def self.get_maintence_windows(begin_date = nil, end_date = nil, location_id = nil, slots_needed = nil)
  message = {begin_date: begin_date, end_date: end_date, location_id: location_id, slots_needed: slots_needed}
  request(:get_maintence_windows, Array[Softlayer::Provisioning::Maintenance::Window], message)
end

.update_customer_upgrade_window(maintenance_start_time = nil, new_maintenance_window_id = nil, ticket_id = nil) ⇒ Object



47
48
49
50
# File 'lib/softlayer/provisioning/maintenance/window.rb', line 47

def self.update_customer_upgrade_window(maintenance_start_time = nil, new_maintenance_window_id = nil, ticket_id = nil)
  message = {maintenance_start_time: maintenance_start_time, new_maintenance_window_id: new_maintenance_window_id, ticket_id: ticket_id}
  request(:update_customer_upgrade_window, Boolean, message)
end