azure_mgmt_scheduler 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +7 -0
  2. data/.rspec +3 -0
  3. data/LICENSE.txt +21 -0
  4. data/Rakefile +5 -0
  5. data/azure_mgmt_scheduler.gemspec +35 -0
  6. data/lib/azure_mgmt_scheduler.rb +73 -0
  7. data/lib/azure_mgmt_scheduler/job_collections.rb +642 -0
  8. data/lib/azure_mgmt_scheduler/jobs.rb +616 -0
  9. data/lib/azure_mgmt_scheduler/models/basic_authentication.rb +75 -0
  10. data/lib/azure_mgmt_scheduler/models/client_cert_authentication.rb +104 -0
  11. data/lib/azure_mgmt_scheduler/models/day_of_week.rb +21 -0
  12. data/lib/azure_mgmt_scheduler/models/http_authentication.rb +61 -0
  13. data/lib/azure_mgmt_scheduler/models/http_authentication_type.rb +18 -0
  14. data/lib/azure_mgmt_scheduler/models/http_request.rb +99 -0
  15. data/lib/azure_mgmt_scheduler/models/job_action.rb +159 -0
  16. data/lib/azure_mgmt_scheduler/models/job_action_type.rb +19 -0
  17. data/lib/azure_mgmt_scheduler/models/job_collection_definition.rb +109 -0
  18. data/lib/azure_mgmt_scheduler/models/job_collection_list_result.rb +86 -0
  19. data/lib/azure_mgmt_scheduler/models/job_collection_properties.rb +92 -0
  20. data/lib/azure_mgmt_scheduler/models/job_collection_quota.rb +82 -0
  21. data/lib/azure_mgmt_scheduler/models/job_collection_state.rb +18 -0
  22. data/lib/azure_mgmt_scheduler/models/job_definition.rb +89 -0
  23. data/lib/azure_mgmt_scheduler/models/job_error_action.rb +143 -0
  24. data/lib/azure_mgmt_scheduler/models/job_execution_status.rb +17 -0
  25. data/lib/azure_mgmt_scheduler/models/job_history_action_name.rb +16 -0
  26. data/lib/azure_mgmt_scheduler/models/job_history_definition.rb +90 -0
  27. data/lib/azure_mgmt_scheduler/models/job_history_definition_properties.rb +136 -0
  28. data/lib/azure_mgmt_scheduler/models/job_history_filter.rb +60 -0
  29. data/lib/azure_mgmt_scheduler/models/job_history_list_result.rb +87 -0
  30. data/lib/azure_mgmt_scheduler/models/job_list_result.rb +86 -0
  31. data/lib/azure_mgmt_scheduler/models/job_max_recurrence.rb +71 -0
  32. data/lib/azure_mgmt_scheduler/models/job_properties.rb +119 -0
  33. data/lib/azure_mgmt_scheduler/models/job_recurrence.rb +110 -0
  34. data/lib/azure_mgmt_scheduler/models/job_recurrence_schedule.rb +156 -0
  35. data/lib/azure_mgmt_scheduler/models/job_recurrence_schedule_monthly_occurrence.rb +73 -0
  36. data/lib/azure_mgmt_scheduler/models/job_schedule_day.rb +21 -0
  37. data/lib/azure_mgmt_scheduler/models/job_state.rb +18 -0
  38. data/lib/azure_mgmt_scheduler/models/job_state_filter.rb +60 -0
  39. data/lib/azure_mgmt_scheduler/models/job_status.rb +103 -0
  40. data/lib/azure_mgmt_scheduler/models/oauth_authentication.rb +93 -0
  41. data/lib/azure_mgmt_scheduler/models/recurrence_frequency.rb +19 -0
  42. data/lib/azure_mgmt_scheduler/models/retry_policy.rb +80 -0
  43. data/lib/azure_mgmt_scheduler/models/retry_type.rb +16 -0
  44. data/lib/azure_mgmt_scheduler/models/service_bus_authentication.rb +78 -0
  45. data/lib/azure_mgmt_scheduler/models/service_bus_authentication_type.rb +16 -0
  46. data/lib/azure_mgmt_scheduler/models/service_bus_brokered_message_properties.rb +168 -0
  47. data/lib/azure_mgmt_scheduler/models/service_bus_message.rb +122 -0
  48. data/lib/azure_mgmt_scheduler/models/service_bus_queue_message.rb +108 -0
  49. data/lib/azure_mgmt_scheduler/models/service_bus_topic_message.rb +108 -0
  50. data/lib/azure_mgmt_scheduler/models/service_bus_transport_type.rb +17 -0
  51. data/lib/azure_mgmt_scheduler/models/sku.rb +60 -0
  52. data/lib/azure_mgmt_scheduler/models/sku_definition.rb +17 -0
  53. data/lib/azure_mgmt_scheduler/models/storage_queue_message.rb +83 -0
  54. data/lib/azure_mgmt_scheduler/module_definition.rb +8 -0
  55. data/lib/azure_mgmt_scheduler/scheduler_management_client.rb +70 -0
  56. data/lib/azure_mgmt_scheduler/version.rb +8 -0
  57. metadata +183 -0
@@ -0,0 +1,19 @@
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
+ # Defines values for JobActionType
10
+ #
11
+ module JobActionType
12
+ Http = "Http"
13
+ Https = "Https"
14
+ StorageQueue = "StorageQueue"
15
+ ServiceBusQueue = "ServiceBusQueue"
16
+ ServiceBusTopic = "ServiceBusTopic"
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,109 @@
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 JobCollectionDefinition
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Gets the job collection resource identifier.
16
+ attr_accessor :id
17
+
18
+ # @return [String] Gets the job collection resource type.
19
+ attr_accessor :type
20
+
21
+ # @return [String] Gets or sets the job collection resource name.
22
+ attr_accessor :name
23
+
24
+ # @return [String] Gets or sets the storage account location.
25
+ attr_accessor :location
26
+
27
+ # @return [Hash{String => String}] Gets or sets the tags.
28
+ attr_accessor :tags
29
+
30
+ # @return [JobCollectionProperties] Gets or sets the job collection
31
+ # properties.
32
+ attr_accessor :properties
33
+
34
+ #
35
+ # Validate the object. Throws ValidationError if validation fails.
36
+ #
37
+ def validate
38
+ @tags.each{ |e| e.validate if e.respond_to?(:validate) } unless @tags.nil?
39
+ @properties.validate unless @properties.nil?
40
+ end
41
+
42
+ #
43
+ # Serializes given Model object into Ruby Hash.
44
+ # @param object Model object to serialize.
45
+ # @return [Hash] Serialized object in form of Ruby Hash.
46
+ #
47
+ def self.serialize_object(object)
48
+ object.validate
49
+ output_object = {}
50
+
51
+ serialized_property = object.id
52
+ output_object['id'] = serialized_property unless serialized_property.nil?
53
+
54
+ serialized_property = object.type
55
+ output_object['type'] = serialized_property unless serialized_property.nil?
56
+
57
+ serialized_property = object.name
58
+ output_object['name'] = serialized_property unless serialized_property.nil?
59
+
60
+ serialized_property = object.location
61
+ output_object['location'] = serialized_property unless serialized_property.nil?
62
+
63
+ serialized_property = object.tags
64
+ output_object['tags'] = serialized_property unless serialized_property.nil?
65
+
66
+ serialized_property = object.properties
67
+ unless serialized_property.nil?
68
+ serialized_property = JobCollectionProperties.serialize_object(serialized_property)
69
+ end
70
+ output_object['properties'] = serialized_property unless serialized_property.nil?
71
+
72
+ output_object
73
+ end
74
+
75
+ #
76
+ # Deserializes given Ruby Hash into Model object.
77
+ # @param object [Hash] Ruby Hash object to deserialize.
78
+ # @return [JobCollectionDefinition] Deserialized object.
79
+ #
80
+ def self.deserialize_object(object)
81
+ return if object.nil?
82
+ output_object = JobCollectionDefinition.new
83
+
84
+ deserialized_property = object['id']
85
+ output_object.id = deserialized_property
86
+
87
+ deserialized_property = object['type']
88
+ output_object.type = deserialized_property
89
+
90
+ deserialized_property = object['name']
91
+ output_object.name = deserialized_property
92
+
93
+ deserialized_property = object['location']
94
+ output_object.location = deserialized_property
95
+
96
+ deserialized_property = object['tags']
97
+ output_object.tags = deserialized_property
98
+
99
+ deserialized_property = object['properties']
100
+ unless deserialized_property.nil?
101
+ deserialized_property = JobCollectionProperties.deserialize_object(deserialized_property)
102
+ end
103
+ output_object.properties = deserialized_property
104
+
105
+ output_object
106
+ end
107
+ end
108
+ end
109
+ 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 JobCollectionListResult
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<JobCollectionDefinition>] Gets the job collections.
16
+ attr_accessor :value
17
+
18
+ # @return [String] Gets or sets the URL to get the next set of job
19
+ # collections.
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 = JobCollectionDefinition.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 [JobCollectionListResult] Deserialized object.
61
+ #
62
+ def self.deserialize_object(object)
63
+ return if object.nil?
64
+ output_object = JobCollectionListResult.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 = JobCollectionDefinition.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,92 @@
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 JobCollectionProperties
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Sku] Gets or sets the SKU.
16
+ attr_accessor :sku
17
+
18
+ # @return [JobCollectionState] Gets or sets the state. Possible values
19
+ # include: 'Enabled', 'Disabled', 'Suspended', 'Deleted'
20
+ attr_accessor :state
21
+
22
+ # @return [JobCollectionQuota] Gets or sets the job collection quota.
23
+ attr_accessor :quota
24
+
25
+ #
26
+ # Validate the object. Throws ValidationError if validation fails.
27
+ #
28
+ def validate
29
+ @sku.validate unless @sku.nil?
30
+ @quota.validate unless @quota.nil?
31
+ end
32
+
33
+ #
34
+ # Serializes given Model object into Ruby Hash.
35
+ # @param object Model object to serialize.
36
+ # @return [Hash] Serialized object in form of Ruby Hash.
37
+ #
38
+ def self.serialize_object(object)
39
+ object.validate
40
+ output_object = {}
41
+
42
+ serialized_property = object.sku
43
+ unless serialized_property.nil?
44
+ serialized_property = Sku.serialize_object(serialized_property)
45
+ end
46
+ output_object['sku'] = serialized_property unless serialized_property.nil?
47
+
48
+ serialized_property = object.state
49
+ output_object['state'] = serialized_property unless serialized_property.nil?
50
+
51
+ serialized_property = object.quota
52
+ unless serialized_property.nil?
53
+ serialized_property = JobCollectionQuota.serialize_object(serialized_property)
54
+ end
55
+ output_object['quota'] = serialized_property unless serialized_property.nil?
56
+
57
+ output_object
58
+ end
59
+
60
+ #
61
+ # Deserializes given Ruby Hash into Model object.
62
+ # @param object [Hash] Ruby Hash object to deserialize.
63
+ # @return [JobCollectionProperties] Deserialized object.
64
+ #
65
+ def self.deserialize_object(object)
66
+ return if object.nil?
67
+ output_object = JobCollectionProperties.new
68
+
69
+ deserialized_property = object['sku']
70
+ unless deserialized_property.nil?
71
+ deserialized_property = Sku.deserialize_object(deserialized_property)
72
+ end
73
+ output_object.sku = deserialized_property
74
+
75
+ deserialized_property = object['state']
76
+ if (!deserialized_property.nil? && !deserialized_property.empty?)
77
+ enum_is_valid = JobCollectionState.constants.any? { |e| JobCollectionState.const_get(e).to_s.downcase == deserialized_property.downcase }
78
+ warn 'Enum JobCollectionState does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
79
+ end
80
+ output_object.state = deserialized_property
81
+
82
+ deserialized_property = object['quota']
83
+ unless deserialized_property.nil?
84
+ deserialized_property = JobCollectionQuota.deserialize_object(deserialized_property)
85
+ end
86
+ output_object.quota = deserialized_property
87
+
88
+ output_object
89
+ end
90
+ end
91
+ end
92
+ end
@@ -0,0 +1,82 @@
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 JobCollectionQuota
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Integer] Gets or set the maximum job count.
16
+ attr_accessor :max_job_count
17
+
18
+ # @return [Integer] Gets or sets the maximum job occurrence.
19
+ attr_accessor :max_job_occurrence
20
+
21
+ # @return [JobMaxRecurrence] Gets or set the maximum recurrence.
22
+ attr_accessor :max_recurrence
23
+
24
+ #
25
+ # Validate the object. Throws ValidationError if validation fails.
26
+ #
27
+ def validate
28
+ @max_recurrence.validate unless @max_recurrence.nil?
29
+ end
30
+
31
+ #
32
+ # Serializes given Model object into Ruby Hash.
33
+ # @param object Model object to serialize.
34
+ # @return [Hash] Serialized object in form of Ruby Hash.
35
+ #
36
+ def self.serialize_object(object)
37
+ object.validate
38
+ output_object = {}
39
+
40
+ serialized_property = object.max_job_count
41
+ output_object['maxJobCount'] = serialized_property unless serialized_property.nil?
42
+
43
+ serialized_property = object.max_job_occurrence
44
+ output_object['maxJobOccurrence'] = serialized_property unless serialized_property.nil?
45
+
46
+ serialized_property = object.max_recurrence
47
+ unless serialized_property.nil?
48
+ serialized_property = JobMaxRecurrence.serialize_object(serialized_property)
49
+ end
50
+ output_object['maxRecurrence'] = serialized_property unless serialized_property.nil?
51
+
52
+ output_object
53
+ end
54
+
55
+ #
56
+ # Deserializes given Ruby Hash into Model object.
57
+ # @param object [Hash] Ruby Hash object to deserialize.
58
+ # @return [JobCollectionQuota] Deserialized object.
59
+ #
60
+ def self.deserialize_object(object)
61
+ return if object.nil?
62
+ output_object = JobCollectionQuota.new
63
+
64
+ deserialized_property = object['maxJobCount']
65
+ deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
66
+ output_object.max_job_count = deserialized_property
67
+
68
+ deserialized_property = object['maxJobOccurrence']
69
+ deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
70
+ output_object.max_job_occurrence = deserialized_property
71
+
72
+ deserialized_property = object['maxRecurrence']
73
+ unless deserialized_property.nil?
74
+ deserialized_property = JobMaxRecurrence.deserialize_object(deserialized_property)
75
+ end
76
+ output_object.max_recurrence = deserialized_property
77
+
78
+ output_object
79
+ end
80
+ end
81
+ end
82
+ end
@@ -0,0 +1,18 @@
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
+ # Defines values for JobCollectionState
10
+ #
11
+ module JobCollectionState
12
+ Enabled = "Enabled"
13
+ Disabled = "Disabled"
14
+ Suspended = "Suspended"
15
+ Deleted = "Deleted"
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,89 @@
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 JobDefinition
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Gets the job resource identifier.
16
+ attr_accessor :id
17
+
18
+ # @return [String] Gets the job resource type.
19
+ attr_accessor :type
20
+
21
+ # @return [String] Gets the job resource name.
22
+ attr_accessor :name
23
+
24
+ # @return [JobProperties] Gets or sets the job properties.
25
+ attr_accessor :properties
26
+
27
+ #
28
+ # Validate the object. Throws ValidationError if validation fails.
29
+ #
30
+ def validate
31
+ @properties.validate unless @properties.nil?
32
+ end
33
+
34
+ #
35
+ # Serializes given Model object into Ruby Hash.
36
+ # @param object Model object to serialize.
37
+ # @return [Hash] Serialized object in form of Ruby Hash.
38
+ #
39
+ def self.serialize_object(object)
40
+ object.validate
41
+ output_object = {}
42
+
43
+ serialized_property = object.id
44
+ output_object['id'] = serialized_property unless serialized_property.nil?
45
+
46
+ serialized_property = object.type
47
+ output_object['type'] = serialized_property unless serialized_property.nil?
48
+
49
+ serialized_property = object.name
50
+ output_object['name'] = serialized_property unless serialized_property.nil?
51
+
52
+ serialized_property = object.properties
53
+ unless serialized_property.nil?
54
+ serialized_property = JobProperties.serialize_object(serialized_property)
55
+ end
56
+ output_object['properties'] = serialized_property unless serialized_property.nil?
57
+
58
+ output_object
59
+ end
60
+
61
+ #
62
+ # Deserializes given Ruby Hash into Model object.
63
+ # @param object [Hash] Ruby Hash object to deserialize.
64
+ # @return [JobDefinition] Deserialized object.
65
+ #
66
+ def self.deserialize_object(object)
67
+ return if object.nil?
68
+ output_object = JobDefinition.new
69
+
70
+ deserialized_property = object['id']
71
+ output_object.id = deserialized_property
72
+
73
+ deserialized_property = object['type']
74
+ output_object.type = deserialized_property
75
+
76
+ deserialized_property = object['name']
77
+ output_object.name = deserialized_property
78
+
79
+ deserialized_property = object['properties']
80
+ unless deserialized_property.nil?
81
+ deserialized_property = JobProperties.deserialize_object(deserialized_property)
82
+ end
83
+ output_object.properties = deserialized_property
84
+
85
+ output_object
86
+ end
87
+ end
88
+ end
89
+ end