azure_mgmt_scheduler 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.rspec +3 -0
- data/LICENSE.txt +21 -0
- data/Rakefile +5 -0
- data/azure_mgmt_scheduler.gemspec +35 -0
- data/lib/azure_mgmt_scheduler.rb +73 -0
- data/lib/azure_mgmt_scheduler/job_collections.rb +642 -0
- data/lib/azure_mgmt_scheduler/jobs.rb +616 -0
- data/lib/azure_mgmt_scheduler/models/basic_authentication.rb +75 -0
- data/lib/azure_mgmt_scheduler/models/client_cert_authentication.rb +104 -0
- data/lib/azure_mgmt_scheduler/models/day_of_week.rb +21 -0
- data/lib/azure_mgmt_scheduler/models/http_authentication.rb +61 -0
- data/lib/azure_mgmt_scheduler/models/http_authentication_type.rb +18 -0
- data/lib/azure_mgmt_scheduler/models/http_request.rb +99 -0
- data/lib/azure_mgmt_scheduler/models/job_action.rb +159 -0
- data/lib/azure_mgmt_scheduler/models/job_action_type.rb +19 -0
- data/lib/azure_mgmt_scheduler/models/job_collection_definition.rb +109 -0
- data/lib/azure_mgmt_scheduler/models/job_collection_list_result.rb +86 -0
- data/lib/azure_mgmt_scheduler/models/job_collection_properties.rb +92 -0
- data/lib/azure_mgmt_scheduler/models/job_collection_quota.rb +82 -0
- data/lib/azure_mgmt_scheduler/models/job_collection_state.rb +18 -0
- data/lib/azure_mgmt_scheduler/models/job_definition.rb +89 -0
- data/lib/azure_mgmt_scheduler/models/job_error_action.rb +143 -0
- data/lib/azure_mgmt_scheduler/models/job_execution_status.rb +17 -0
- data/lib/azure_mgmt_scheduler/models/job_history_action_name.rb +16 -0
- data/lib/azure_mgmt_scheduler/models/job_history_definition.rb +90 -0
- data/lib/azure_mgmt_scheduler/models/job_history_definition_properties.rb +136 -0
- data/lib/azure_mgmt_scheduler/models/job_history_filter.rb +60 -0
- data/lib/azure_mgmt_scheduler/models/job_history_list_result.rb +87 -0
- data/lib/azure_mgmt_scheduler/models/job_list_result.rb +86 -0
- data/lib/azure_mgmt_scheduler/models/job_max_recurrence.rb +71 -0
- data/lib/azure_mgmt_scheduler/models/job_properties.rb +119 -0
- data/lib/azure_mgmt_scheduler/models/job_recurrence.rb +110 -0
- data/lib/azure_mgmt_scheduler/models/job_recurrence_schedule.rb +156 -0
- data/lib/azure_mgmt_scheduler/models/job_recurrence_schedule_monthly_occurrence.rb +73 -0
- data/lib/azure_mgmt_scheduler/models/job_schedule_day.rb +21 -0
- data/lib/azure_mgmt_scheduler/models/job_state.rb +18 -0
- data/lib/azure_mgmt_scheduler/models/job_state_filter.rb +60 -0
- data/lib/azure_mgmt_scheduler/models/job_status.rb +103 -0
- data/lib/azure_mgmt_scheduler/models/oauth_authentication.rb +93 -0
- data/lib/azure_mgmt_scheduler/models/recurrence_frequency.rb +19 -0
- data/lib/azure_mgmt_scheduler/models/retry_policy.rb +80 -0
- data/lib/azure_mgmt_scheduler/models/retry_type.rb +16 -0
- data/lib/azure_mgmt_scheduler/models/service_bus_authentication.rb +78 -0
- data/lib/azure_mgmt_scheduler/models/service_bus_authentication_type.rb +16 -0
- data/lib/azure_mgmt_scheduler/models/service_bus_brokered_message_properties.rb +168 -0
- data/lib/azure_mgmt_scheduler/models/service_bus_message.rb +122 -0
- data/lib/azure_mgmt_scheduler/models/service_bus_queue_message.rb +108 -0
- data/lib/azure_mgmt_scheduler/models/service_bus_topic_message.rb +108 -0
- data/lib/azure_mgmt_scheduler/models/service_bus_transport_type.rb +17 -0
- data/lib/azure_mgmt_scheduler/models/sku.rb +60 -0
- data/lib/azure_mgmt_scheduler/models/sku_definition.rb +17 -0
- data/lib/azure_mgmt_scheduler/models/storage_queue_message.rb +83 -0
- data/lib/azure_mgmt_scheduler/module_definition.rb +8 -0
- data/lib/azure_mgmt_scheduler/scheduler_management_client.rb +70 -0
- data/lib/azure_mgmt_scheduler/version.rb +8 -0
- metadata +183 -0
@@ -0,0 +1,87 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Scheduler
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Model object.
|
10
|
+
#
|
11
|
+
class JobHistoryListResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<JobHistoryDefinition>] Gets or sets the job histories
|
16
|
+
# under job.
|
17
|
+
attr_accessor :value
|
18
|
+
|
19
|
+
# @return [String] Gets or sets the URL to get the next set of job
|
20
|
+
# histories.
|
21
|
+
attr_accessor :next_link
|
22
|
+
|
23
|
+
#
|
24
|
+
# Validate the object. Throws ValidationError if validation fails.
|
25
|
+
#
|
26
|
+
def validate
|
27
|
+
@value.each{ |e| e.validate if e.respond_to?(:validate) } unless @value.nil?
|
28
|
+
end
|
29
|
+
|
30
|
+
#
|
31
|
+
# Serializes given Model object into Ruby Hash.
|
32
|
+
# @param object Model object to serialize.
|
33
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
34
|
+
#
|
35
|
+
def self.serialize_object(object)
|
36
|
+
object.validate
|
37
|
+
output_object = {}
|
38
|
+
|
39
|
+
serialized_property = object.value
|
40
|
+
unless serialized_property.nil?
|
41
|
+
serializedArray = []
|
42
|
+
serialized_property.each do |element|
|
43
|
+
unless element.nil?
|
44
|
+
element = JobHistoryDefinition.serialize_object(element)
|
45
|
+
end
|
46
|
+
serializedArray.push(element)
|
47
|
+
end
|
48
|
+
serialized_property = serializedArray
|
49
|
+
end
|
50
|
+
output_object['value'] = serialized_property unless serialized_property.nil?
|
51
|
+
|
52
|
+
serialized_property = object.next_link
|
53
|
+
output_object['nextLink'] = serialized_property unless serialized_property.nil?
|
54
|
+
|
55
|
+
output_object
|
56
|
+
end
|
57
|
+
|
58
|
+
#
|
59
|
+
# Deserializes given Ruby Hash into Model object.
|
60
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
61
|
+
# @return [JobHistoryListResult] Deserialized object.
|
62
|
+
#
|
63
|
+
def self.deserialize_object(object)
|
64
|
+
return if object.nil?
|
65
|
+
output_object = JobHistoryListResult.new
|
66
|
+
|
67
|
+
deserialized_property = object['value']
|
68
|
+
unless deserialized_property.nil?
|
69
|
+
deserialized_array = []
|
70
|
+
deserialized_property.each do |element1|
|
71
|
+
unless element1.nil?
|
72
|
+
element1 = JobHistoryDefinition.deserialize_object(element1)
|
73
|
+
end
|
74
|
+
deserialized_array.push(element1)
|
75
|
+
end
|
76
|
+
deserialized_property = deserialized_array
|
77
|
+
end
|
78
|
+
output_object.value = deserialized_property
|
79
|
+
|
80
|
+
deserialized_property = object['nextLink']
|
81
|
+
output_object.next_link = deserialized_property
|
82
|
+
|
83
|
+
output_object
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
@@ -0,0 +1,86 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Scheduler
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Model object.
|
10
|
+
#
|
11
|
+
class JobListResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<JobDefinition>] Gets or sets all jobs under job
|
16
|
+
# collection.
|
17
|
+
attr_accessor :value
|
18
|
+
|
19
|
+
# @return [String] Gets or sets the URL to get the next set of jobs.
|
20
|
+
attr_accessor :next_link
|
21
|
+
|
22
|
+
#
|
23
|
+
# Validate the object. Throws ValidationError if validation fails.
|
24
|
+
#
|
25
|
+
def validate
|
26
|
+
@value.each{ |e| e.validate if e.respond_to?(:validate) } unless @value.nil?
|
27
|
+
end
|
28
|
+
|
29
|
+
#
|
30
|
+
# Serializes given Model object into Ruby Hash.
|
31
|
+
# @param object Model object to serialize.
|
32
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
33
|
+
#
|
34
|
+
def self.serialize_object(object)
|
35
|
+
object.validate
|
36
|
+
output_object = {}
|
37
|
+
|
38
|
+
serialized_property = object.value
|
39
|
+
unless serialized_property.nil?
|
40
|
+
serializedArray = []
|
41
|
+
serialized_property.each do |element|
|
42
|
+
unless element.nil?
|
43
|
+
element = JobDefinition.serialize_object(element)
|
44
|
+
end
|
45
|
+
serializedArray.push(element)
|
46
|
+
end
|
47
|
+
serialized_property = serializedArray
|
48
|
+
end
|
49
|
+
output_object['value'] = serialized_property unless serialized_property.nil?
|
50
|
+
|
51
|
+
serialized_property = object.next_link
|
52
|
+
output_object['nextLink'] = serialized_property unless serialized_property.nil?
|
53
|
+
|
54
|
+
output_object
|
55
|
+
end
|
56
|
+
|
57
|
+
#
|
58
|
+
# Deserializes given Ruby Hash into Model object.
|
59
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
60
|
+
# @return [JobListResult] Deserialized object.
|
61
|
+
#
|
62
|
+
def self.deserialize_object(object)
|
63
|
+
return if object.nil?
|
64
|
+
output_object = JobListResult.new
|
65
|
+
|
66
|
+
deserialized_property = object['value']
|
67
|
+
unless deserialized_property.nil?
|
68
|
+
deserialized_array = []
|
69
|
+
deserialized_property.each do |element1|
|
70
|
+
unless element1.nil?
|
71
|
+
element1 = JobDefinition.deserialize_object(element1)
|
72
|
+
end
|
73
|
+
deserialized_array.push(element1)
|
74
|
+
end
|
75
|
+
deserialized_property = deserialized_array
|
76
|
+
end
|
77
|
+
output_object.value = deserialized_property
|
78
|
+
|
79
|
+
deserialized_property = object['nextLink']
|
80
|
+
output_object.next_link = deserialized_property
|
81
|
+
|
82
|
+
output_object
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
@@ -0,0 +1,71 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Scheduler
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Model object.
|
10
|
+
#
|
11
|
+
class JobMaxRecurrence
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [RecurrenceFrequency] Gets or sets the frequency of recurrence
|
16
|
+
# (second, minute, hour, day, week, month). Possible values include:
|
17
|
+
# 'Minute', 'Hour', 'Day', 'Week', 'Month'
|
18
|
+
attr_accessor :frequency
|
19
|
+
|
20
|
+
# @return [Integer] Gets or sets the interval between retries.
|
21
|
+
attr_accessor :interval
|
22
|
+
|
23
|
+
#
|
24
|
+
# Validate the object. Throws ValidationError if validation fails.
|
25
|
+
#
|
26
|
+
def validate
|
27
|
+
end
|
28
|
+
|
29
|
+
#
|
30
|
+
# Serializes given Model object into Ruby Hash.
|
31
|
+
# @param object Model object to serialize.
|
32
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
33
|
+
#
|
34
|
+
def self.serialize_object(object)
|
35
|
+
object.validate
|
36
|
+
output_object = {}
|
37
|
+
|
38
|
+
serialized_property = object.frequency
|
39
|
+
output_object['frequency'] = serialized_property unless serialized_property.nil?
|
40
|
+
|
41
|
+
serialized_property = object.interval
|
42
|
+
output_object['interval'] = serialized_property unless serialized_property.nil?
|
43
|
+
|
44
|
+
output_object
|
45
|
+
end
|
46
|
+
|
47
|
+
#
|
48
|
+
# Deserializes given Ruby Hash into Model object.
|
49
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
50
|
+
# @return [JobMaxRecurrence] Deserialized object.
|
51
|
+
#
|
52
|
+
def self.deserialize_object(object)
|
53
|
+
return if object.nil?
|
54
|
+
output_object = JobMaxRecurrence.new
|
55
|
+
|
56
|
+
deserialized_property = object['frequency']
|
57
|
+
if (!deserialized_property.nil? && !deserialized_property.empty?)
|
58
|
+
enum_is_valid = RecurrenceFrequency.constants.any? { |e| RecurrenceFrequency.const_get(e).to_s.downcase == deserialized_property.downcase }
|
59
|
+
warn 'Enum RecurrenceFrequency does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
|
60
|
+
end
|
61
|
+
output_object.frequency = deserialized_property
|
62
|
+
|
63
|
+
deserialized_property = object['interval']
|
64
|
+
deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
|
65
|
+
output_object.interval = deserialized_property
|
66
|
+
|
67
|
+
output_object
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
@@ -0,0 +1,119 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Scheduler
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Model object.
|
10
|
+
#
|
11
|
+
class JobProperties
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [DateTime] Gets or sets the job start time.
|
16
|
+
attr_accessor :start_time
|
17
|
+
|
18
|
+
# @return [JobAction] Gets or sets the job action.
|
19
|
+
attr_accessor :action
|
20
|
+
|
21
|
+
# @return [JobRecurrence] Gets or sets the job recurrence.
|
22
|
+
attr_accessor :recurrence
|
23
|
+
|
24
|
+
# @return [JobState] Gets or set the job state. Possible values include:
|
25
|
+
# 'Enabled', 'Disabled', 'Faulted', 'Completed'
|
26
|
+
attr_accessor :state
|
27
|
+
|
28
|
+
# @return [JobStatus] Gets the job status.
|
29
|
+
attr_accessor :status
|
30
|
+
|
31
|
+
#
|
32
|
+
# Validate the object. Throws ValidationError if validation fails.
|
33
|
+
#
|
34
|
+
def validate
|
35
|
+
@action.validate unless @action.nil?
|
36
|
+
@recurrence.validate unless @recurrence.nil?
|
37
|
+
@status.validate unless @status.nil?
|
38
|
+
end
|
39
|
+
|
40
|
+
#
|
41
|
+
# Serializes given Model object into Ruby Hash.
|
42
|
+
# @param object Model object to serialize.
|
43
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
44
|
+
#
|
45
|
+
def self.serialize_object(object)
|
46
|
+
object.validate
|
47
|
+
output_object = {}
|
48
|
+
|
49
|
+
serialized_property = object.start_time
|
50
|
+
serialized_property = serialized_property.new_offset(0).strftime('%FT%TZ')
|
51
|
+
output_object['startTime'] = serialized_property unless serialized_property.nil?
|
52
|
+
|
53
|
+
serialized_property = object.action
|
54
|
+
unless serialized_property.nil?
|
55
|
+
serialized_property = JobAction.serialize_object(serialized_property)
|
56
|
+
end
|
57
|
+
output_object['action'] = serialized_property unless serialized_property.nil?
|
58
|
+
|
59
|
+
serialized_property = object.recurrence
|
60
|
+
unless serialized_property.nil?
|
61
|
+
serialized_property = JobRecurrence.serialize_object(serialized_property)
|
62
|
+
end
|
63
|
+
output_object['recurrence'] = serialized_property unless serialized_property.nil?
|
64
|
+
|
65
|
+
serialized_property = object.state
|
66
|
+
output_object['state'] = serialized_property unless serialized_property.nil?
|
67
|
+
|
68
|
+
serialized_property = object.status
|
69
|
+
unless serialized_property.nil?
|
70
|
+
serialized_property = JobStatus.serialize_object(serialized_property)
|
71
|
+
end
|
72
|
+
output_object['status'] = serialized_property unless serialized_property.nil?
|
73
|
+
|
74
|
+
output_object
|
75
|
+
end
|
76
|
+
|
77
|
+
#
|
78
|
+
# Deserializes given Ruby Hash into Model object.
|
79
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
80
|
+
# @return [JobProperties] Deserialized object.
|
81
|
+
#
|
82
|
+
def self.deserialize_object(object)
|
83
|
+
return if object.nil?
|
84
|
+
output_object = JobProperties.new
|
85
|
+
|
86
|
+
deserialized_property = object['startTime']
|
87
|
+
deserialized_property = DateTime.parse(deserialized_property) unless deserialized_property.to_s.empty?
|
88
|
+
output_object.start_time = deserialized_property
|
89
|
+
|
90
|
+
deserialized_property = object['action']
|
91
|
+
unless deserialized_property.nil?
|
92
|
+
deserialized_property = JobAction.deserialize_object(deserialized_property)
|
93
|
+
end
|
94
|
+
output_object.action = deserialized_property
|
95
|
+
|
96
|
+
deserialized_property = object['recurrence']
|
97
|
+
unless deserialized_property.nil?
|
98
|
+
deserialized_property = JobRecurrence.deserialize_object(deserialized_property)
|
99
|
+
end
|
100
|
+
output_object.recurrence = deserialized_property
|
101
|
+
|
102
|
+
deserialized_property = object['state']
|
103
|
+
if (!deserialized_property.nil? && !deserialized_property.empty?)
|
104
|
+
enum_is_valid = JobState.constants.any? { |e| JobState.const_get(e).to_s.downcase == deserialized_property.downcase }
|
105
|
+
warn 'Enum JobState does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
|
106
|
+
end
|
107
|
+
output_object.state = deserialized_property
|
108
|
+
|
109
|
+
deserialized_property = object['status']
|
110
|
+
unless deserialized_property.nil?
|
111
|
+
deserialized_property = JobStatus.deserialize_object(deserialized_property)
|
112
|
+
end
|
113
|
+
output_object.status = deserialized_property
|
114
|
+
|
115
|
+
output_object
|
116
|
+
end
|
117
|
+
end
|
118
|
+
end
|
119
|
+
end
|
@@ -0,0 +1,110 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Scheduler
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Model object.
|
10
|
+
#
|
11
|
+
class JobRecurrence
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [RecurrenceFrequency] Gets or sets the frequency of recurrence
|
16
|
+
# (second, minute, hour, day, week, month). Possible values include:
|
17
|
+
# 'Minute', 'Hour', 'Day', 'Week', 'Month'
|
18
|
+
attr_accessor :frequency
|
19
|
+
|
20
|
+
# @return [Integer] Gets or sets the interval between retries.
|
21
|
+
attr_accessor :interval
|
22
|
+
|
23
|
+
# @return [Integer] Gets or sets the maximum number of times that the
|
24
|
+
# job should run.
|
25
|
+
attr_accessor :count
|
26
|
+
|
27
|
+
# @return [DateTime] Gets or sets the time at which the job will
|
28
|
+
# complete.
|
29
|
+
attr_accessor :end_time
|
30
|
+
|
31
|
+
# @return [JobRecurrenceSchedule]
|
32
|
+
attr_accessor :schedule
|
33
|
+
|
34
|
+
#
|
35
|
+
# Validate the object. Throws ValidationError if validation fails.
|
36
|
+
#
|
37
|
+
def validate
|
38
|
+
@schedule.validate unless @schedule.nil?
|
39
|
+
end
|
40
|
+
|
41
|
+
#
|
42
|
+
# Serializes given Model object into Ruby Hash.
|
43
|
+
# @param object Model object to serialize.
|
44
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
45
|
+
#
|
46
|
+
def self.serialize_object(object)
|
47
|
+
object.validate
|
48
|
+
output_object = {}
|
49
|
+
|
50
|
+
serialized_property = object.frequency
|
51
|
+
output_object['frequency'] = serialized_property unless serialized_property.nil?
|
52
|
+
|
53
|
+
serialized_property = object.interval
|
54
|
+
output_object['interval'] = serialized_property unless serialized_property.nil?
|
55
|
+
|
56
|
+
serialized_property = object.count
|
57
|
+
output_object['count'] = serialized_property unless serialized_property.nil?
|
58
|
+
|
59
|
+
serialized_property = object.end_time
|
60
|
+
serialized_property = serialized_property.new_offset(0).strftime('%FT%TZ')
|
61
|
+
output_object['endTime'] = serialized_property unless serialized_property.nil?
|
62
|
+
|
63
|
+
serialized_property = object.schedule
|
64
|
+
unless serialized_property.nil?
|
65
|
+
serialized_property = JobRecurrenceSchedule.serialize_object(serialized_property)
|
66
|
+
end
|
67
|
+
output_object['schedule'] = serialized_property unless serialized_property.nil?
|
68
|
+
|
69
|
+
output_object
|
70
|
+
end
|
71
|
+
|
72
|
+
#
|
73
|
+
# Deserializes given Ruby Hash into Model object.
|
74
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
75
|
+
# @return [JobRecurrence] Deserialized object.
|
76
|
+
#
|
77
|
+
def self.deserialize_object(object)
|
78
|
+
return if object.nil?
|
79
|
+
output_object = JobRecurrence.new
|
80
|
+
|
81
|
+
deserialized_property = object['frequency']
|
82
|
+
if (!deserialized_property.nil? && !deserialized_property.empty?)
|
83
|
+
enum_is_valid = RecurrenceFrequency.constants.any? { |e| RecurrenceFrequency.const_get(e).to_s.downcase == deserialized_property.downcase }
|
84
|
+
warn 'Enum RecurrenceFrequency does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
|
85
|
+
end
|
86
|
+
output_object.frequency = deserialized_property
|
87
|
+
|
88
|
+
deserialized_property = object['interval']
|
89
|
+
deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
|
90
|
+
output_object.interval = deserialized_property
|
91
|
+
|
92
|
+
deserialized_property = object['count']
|
93
|
+
deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
|
94
|
+
output_object.count = deserialized_property
|
95
|
+
|
96
|
+
deserialized_property = object['endTime']
|
97
|
+
deserialized_property = DateTime.parse(deserialized_property) unless deserialized_property.to_s.empty?
|
98
|
+
output_object.end_time = deserialized_property
|
99
|
+
|
100
|
+
deserialized_property = object['schedule']
|
101
|
+
unless deserialized_property.nil?
|
102
|
+
deserialized_property = JobRecurrenceSchedule.deserialize_object(deserialized_property)
|
103
|
+
end
|
104
|
+
output_object.schedule = deserialized_property
|
105
|
+
|
106
|
+
output_object
|
107
|
+
end
|
108
|
+
end
|
109
|
+
end
|
110
|
+
end
|