Class: Softlayer::Network::Storage::Schedule

Inherits:
Entity
  • Object
show all
Defined in:
lib/softlayer/network/storage/schedule.rb,
lib/softlayer/network/storage/schedule/type.rb,
lib/softlayer/network/storage/schedule/property.rb,
lib/softlayer/network/storage/schedule/property/type.rb

Defined Under Namespace

Classes: Property, Representer, Type

Constant Summary collapse

SERVICE =
'SoftLayer_Network_Storage_Schedule'

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Model

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

Methods included from Model::Operations

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

Instance Attribute Details

#activeObject

Returns the value of attribute active.



8
9
10
# File 'lib/softlayer/network/storage/schedule.rb', line 8

def active
  @active
end

#create_dateObject

Returns the value of attribute create_date.



9
10
11
# File 'lib/softlayer/network/storage/schedule.rb', line 9

def create_date
  @create_date
end

#day_of_monthObject

Returns the value of attribute day_of_month.



19
20
21
# File 'lib/softlayer/network/storage/schedule.rb', line 19

def day_of_month
  @day_of_month
end

#day_of_weekObject

Returns the value of attribute day_of_week.



20
21
22
# File 'lib/softlayer/network/storage/schedule.rb', line 20

def day_of_week
  @day_of_week
end

#event_countObject

Returns the value of attribute event_count.



16
17
18
# File 'lib/softlayer/network/storage/schedule.rb', line 16

def event_count
  @event_count
end

#eventsObject

Returns the value of attribute events.



21
22
23
# File 'lib/softlayer/network/storage/schedule.rb', line 21

def events
  @events
end

#hourObject

Returns the value of attribute hour.



22
23
24
# File 'lib/softlayer/network/storage/schedule.rb', line 22

def hour
  @hour
end

#idObject

Returns the value of attribute id.



10
11
12
# File 'lib/softlayer/network/storage/schedule.rb', line 10

def id
  @id
end

#minuteObject

Returns the value of attribute minute.



23
24
25
# File 'lib/softlayer/network/storage/schedule.rb', line 23

def minute
  @minute
end

#modify_dateObject

Returns the value of attribute modify_date.



11
12
13
# File 'lib/softlayer/network/storage/schedule.rb', line 11

def modify_date
  @modify_date
end

#month_of_yearObject

Returns the value of attribute month_of_year.



24
25
26
# File 'lib/softlayer/network/storage/schedule.rb', line 24

def month_of_year
  @month_of_year
end

#nameObject

Returns the value of attribute name.



12
13
14
# File 'lib/softlayer/network/storage/schedule.rb', line 12

def name
  @name
end

#partnershipObject

Returns the value of attribute partnership.



25
26
27
# File 'lib/softlayer/network/storage/schedule.rb', line 25

def partnership
  @partnership
end

#partnership_idObject

Returns the value of attribute partnership_id.



13
14
15
# File 'lib/softlayer/network/storage/schedule.rb', line 13

def partnership_id
  @partnership_id
end

#propertiesObject

Returns the value of attribute properties.



26
27
28
# File 'lib/softlayer/network/storage/schedule.rb', line 26

def properties
  @properties
end

#property_countObject

Returns the value of attribute property_count.



17
18
19
# File 'lib/softlayer/network/storage/schedule.rb', line 17

def property_count
  @property_count
end

#retention_countObject

Returns the value of attribute retention_count.



27
28
29
# File 'lib/softlayer/network/storage/schedule.rb', line 27

def retention_count
  @retention_count
end

#snapshot_countObject

Returns the value of attribute snapshot_count.



18
19
20
# File 'lib/softlayer/network/storage/schedule.rb', line 18

def snapshot_count
  @snapshot_count
end

#snapshotsObject

Returns the value of attribute snapshots.



28
29
30
# File 'lib/softlayer/network/storage/schedule.rb', line 28

def snapshots
  @snapshots
end

#typeObject

Returns the value of attribute type.



29
30
31
# File 'lib/softlayer/network/storage/schedule.rb', line 29

def type
  @type
end

#type_idObject

Returns the value of attribute type_id.



14
15
16
# File 'lib/softlayer/network/storage/schedule.rb', line 14

def type_id
  @type_id
end

#volumeObject

Returns the value of attribute volume.



30
31
32
# File 'lib/softlayer/network/storage/schedule.rb', line 30

def volume
  @volume
end

#volume_idObject

Returns the value of attribute volume_id.



15
16
17
# File 'lib/softlayer/network/storage/schedule.rb', line 15

def volume_id
  @volume_id
end

Class Method Details

.create_object(message) ⇒ Object

template_object



33
34
35
# File 'lib/softlayer/network/storage/schedule.rb', line 33

def self.create_object(message)
  request(:create_object, Softlayer::Network::Storage::Schedule, message)
end

Instance Method Details

#delete_objectObject



37
38
39
# File 'lib/softlayer/network/storage/schedule.rb', line 37

def delete_object
  request(:delete_object, Boolean)
end

#edit_object(message) ⇒ Object

template_object



42
43
44
# File 'lib/softlayer/network/storage/schedule.rb', line 42

def edit_object(message)
  request(:edit_object, Boolean, message)
end

#get_day_of_monthObject



46
47
48
# File 'lib/softlayer/network/storage/schedule.rb', line 46

def get_day_of_month
  request(:get_day_of_month, String)
end

#get_day_of_weekObject



50
51
52
# File 'lib/softlayer/network/storage/schedule.rb', line 50

def get_day_of_week
  request(:get_day_of_week, String)
end

#get_eventsObject



54
55
56
# File 'lib/softlayer/network/storage/schedule.rb', line 54

def get_events
  request(:get_events, Array[Softlayer::Network::Storage::Event])
end

#get_hourObject



58
59
60
# File 'lib/softlayer/network/storage/schedule.rb', line 58

def get_hour
  request(:get_hour, String)
end

#get_minuteObject



62
63
64
# File 'lib/softlayer/network/storage/schedule.rb', line 62

def get_minute
  request(:get_minute, String)
end

#get_month_of_yearObject



66
67
68
# File 'lib/softlayer/network/storage/schedule.rb', line 66

def get_month_of_year
  request(:get_month_of_year, String)
end

#get_objectObject



70
71
72
# File 'lib/softlayer/network/storage/schedule.rb', line 70

def get_object
  request(:get_object, Softlayer::Network::Storage::Schedule)
end

#get_partnershipObject



74
75
76
# File 'lib/softlayer/network/storage/schedule.rb', line 74

def get_partnership
  request(:get_partnership, Softlayer::Network::Storage::Partnership)
end

#get_propertiesObject



78
79
80
# File 'lib/softlayer/network/storage/schedule.rb', line 78

def get_properties
  request(:get_properties, Array[Softlayer::Network::Storage::Schedule::Property])
end

#get_retention_countObject



82
83
84
# File 'lib/softlayer/network/storage/schedule.rb', line 82

def get_retention_count
  request(:get_retention_count, String)
end

#get_snapshotsObject



86
87
88
# File 'lib/softlayer/network/storage/schedule.rb', line 86

def get_snapshots
  request(:get_snapshots, Array[Softlayer::Network::Storage])
end

#get_typeObject



90
91
92
# File 'lib/softlayer/network/storage/schedule.rb', line 90

def get_type
  request(:get_type, Softlayer::Network::Storage::Schedule::Type)
end

#get_volumeObject



94
95
96
# File 'lib/softlayer/network/storage/schedule.rb', line 94

def get_volume
  request(:get_volume, Softlayer::Network::Storage)
end