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,108 @@
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 ServiceBusQueueMessage < ServiceBusMessage
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Gets or sets the queue name.
16
+ attr_accessor :queue_name
17
+
18
+ #
19
+ # Validate the object. Throws ValidationError if validation fails.
20
+ #
21
+ def validate
22
+ # Nothing to validate
23
+ end
24
+
25
+ #
26
+ # Serializes given Model object into Ruby Hash.
27
+ # @param object Model object to serialize.
28
+ # @return [Hash] Serialized object in form of Ruby Hash.
29
+ #
30
+ def self.serialize_object(object)
31
+ object.validate
32
+ output_object = {}
33
+
34
+ serialized_property = object.authentication
35
+ unless serialized_property.nil?
36
+ serialized_property = ServiceBusAuthentication.serialize_object(serialized_property)
37
+ end
38
+ output_object['authentication'] = serialized_property unless serialized_property.nil?
39
+
40
+ serialized_property = object.brokered_message_properties
41
+ unless serialized_property.nil?
42
+ serialized_property = ServiceBusBrokeredMessageProperties.serialize_object(serialized_property)
43
+ end
44
+ output_object['brokeredMessageProperties'] = serialized_property unless serialized_property.nil?
45
+
46
+ serialized_property = object.custom_message_properties
47
+ output_object['customMessageProperties'] = serialized_property unless serialized_property.nil?
48
+
49
+ serialized_property = object.message
50
+ output_object['message'] = serialized_property unless serialized_property.nil?
51
+
52
+ serialized_property = object.namespace
53
+ output_object['namespace'] = serialized_property unless serialized_property.nil?
54
+
55
+ serialized_property = object.transport_type
56
+ output_object['transportType'] = serialized_property unless serialized_property.nil?
57
+
58
+ serialized_property = object.queue_name
59
+ output_object['queueName'] = serialized_property unless serialized_property.nil?
60
+
61
+ output_object
62
+ end
63
+
64
+ #
65
+ # Deserializes given Ruby Hash into Model object.
66
+ # @param object [Hash] Ruby Hash object to deserialize.
67
+ # @return [ServiceBusQueueMessage] Deserialized object.
68
+ #
69
+ def self.deserialize_object(object)
70
+ return if object.nil?
71
+ output_object = ServiceBusQueueMessage.new
72
+
73
+ deserialized_property = object['authentication']
74
+ unless deserialized_property.nil?
75
+ deserialized_property = ServiceBusAuthentication.deserialize_object(deserialized_property)
76
+ end
77
+ output_object.authentication = deserialized_property
78
+
79
+ deserialized_property = object['brokeredMessageProperties']
80
+ unless deserialized_property.nil?
81
+ deserialized_property = ServiceBusBrokeredMessageProperties.deserialize_object(deserialized_property)
82
+ end
83
+ output_object.brokered_message_properties = deserialized_property
84
+
85
+ deserialized_property = object['customMessageProperties']
86
+ output_object.custom_message_properties = deserialized_property
87
+
88
+ deserialized_property = object['message']
89
+ output_object.message = deserialized_property
90
+
91
+ deserialized_property = object['namespace']
92
+ output_object.namespace = deserialized_property
93
+
94
+ deserialized_property = object['transportType']
95
+ if (!deserialized_property.nil? && !deserialized_property.empty?)
96
+ enum_is_valid = ServiceBusTransportType.constants.any? { |e| ServiceBusTransportType.const_get(e).to_s.downcase == deserialized_property.downcase }
97
+ warn 'Enum ServiceBusTransportType does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
98
+ end
99
+ output_object.transport_type = deserialized_property
100
+
101
+ deserialized_property = object['queueName']
102
+ output_object.queue_name = deserialized_property
103
+
104
+ output_object
105
+ end
106
+ end
107
+ end
108
+ end
@@ -0,0 +1,108 @@
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 ServiceBusTopicMessage < ServiceBusMessage
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Gets or sets the topic path.
16
+ attr_accessor :topic_path
17
+
18
+ #
19
+ # Validate the object. Throws ValidationError if validation fails.
20
+ #
21
+ def validate
22
+ # Nothing to validate
23
+ end
24
+
25
+ #
26
+ # Serializes given Model object into Ruby Hash.
27
+ # @param object Model object to serialize.
28
+ # @return [Hash] Serialized object in form of Ruby Hash.
29
+ #
30
+ def self.serialize_object(object)
31
+ object.validate
32
+ output_object = {}
33
+
34
+ serialized_property = object.authentication
35
+ unless serialized_property.nil?
36
+ serialized_property = ServiceBusAuthentication.serialize_object(serialized_property)
37
+ end
38
+ output_object['authentication'] = serialized_property unless serialized_property.nil?
39
+
40
+ serialized_property = object.brokered_message_properties
41
+ unless serialized_property.nil?
42
+ serialized_property = ServiceBusBrokeredMessageProperties.serialize_object(serialized_property)
43
+ end
44
+ output_object['brokeredMessageProperties'] = serialized_property unless serialized_property.nil?
45
+
46
+ serialized_property = object.custom_message_properties
47
+ output_object['customMessageProperties'] = serialized_property unless serialized_property.nil?
48
+
49
+ serialized_property = object.message
50
+ output_object['message'] = serialized_property unless serialized_property.nil?
51
+
52
+ serialized_property = object.namespace
53
+ output_object['namespace'] = serialized_property unless serialized_property.nil?
54
+
55
+ serialized_property = object.transport_type
56
+ output_object['transportType'] = serialized_property unless serialized_property.nil?
57
+
58
+ serialized_property = object.topic_path
59
+ output_object['topicPath'] = serialized_property unless serialized_property.nil?
60
+
61
+ output_object
62
+ end
63
+
64
+ #
65
+ # Deserializes given Ruby Hash into Model object.
66
+ # @param object [Hash] Ruby Hash object to deserialize.
67
+ # @return [ServiceBusTopicMessage] Deserialized object.
68
+ #
69
+ def self.deserialize_object(object)
70
+ return if object.nil?
71
+ output_object = ServiceBusTopicMessage.new
72
+
73
+ deserialized_property = object['authentication']
74
+ unless deserialized_property.nil?
75
+ deserialized_property = ServiceBusAuthentication.deserialize_object(deserialized_property)
76
+ end
77
+ output_object.authentication = deserialized_property
78
+
79
+ deserialized_property = object['brokeredMessageProperties']
80
+ unless deserialized_property.nil?
81
+ deserialized_property = ServiceBusBrokeredMessageProperties.deserialize_object(deserialized_property)
82
+ end
83
+ output_object.brokered_message_properties = deserialized_property
84
+
85
+ deserialized_property = object['customMessageProperties']
86
+ output_object.custom_message_properties = deserialized_property
87
+
88
+ deserialized_property = object['message']
89
+ output_object.message = deserialized_property
90
+
91
+ deserialized_property = object['namespace']
92
+ output_object.namespace = deserialized_property
93
+
94
+ deserialized_property = object['transportType']
95
+ if (!deserialized_property.nil? && !deserialized_property.empty?)
96
+ enum_is_valid = ServiceBusTransportType.constants.any? { |e| ServiceBusTransportType.const_get(e).to_s.downcase == deserialized_property.downcase }
97
+ warn 'Enum ServiceBusTransportType does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
98
+ end
99
+ output_object.transport_type = deserialized_property
100
+
101
+ deserialized_property = object['topicPath']
102
+ output_object.topic_path = deserialized_property
103
+
104
+ output_object
105
+ end
106
+ end
107
+ end
108
+ end
@@ -0,0 +1,17 @@
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 ServiceBusTransportType
10
+ #
11
+ module ServiceBusTransportType
12
+ NotSpecified = "NotSpecified"
13
+ NetMessaging = "NetMessaging"
14
+ AMQP = "AMQP"
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,60 @@
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 Sku
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [SkuDefinition] Gets or set the SKU. Possible values include:
16
+ # 'Standard', 'Free', 'Premium'
17
+ attr_accessor :name
18
+
19
+ #
20
+ # Validate the object. Throws ValidationError if validation fails.
21
+ #
22
+ def validate
23
+ end
24
+
25
+ #
26
+ # Serializes given Model object into Ruby Hash.
27
+ # @param object Model object to serialize.
28
+ # @return [Hash] Serialized object in form of Ruby Hash.
29
+ #
30
+ def self.serialize_object(object)
31
+ object.validate
32
+ output_object = {}
33
+
34
+ serialized_property = object.name
35
+ output_object['name'] = serialized_property unless serialized_property.nil?
36
+
37
+ output_object
38
+ end
39
+
40
+ #
41
+ # Deserializes given Ruby Hash into Model object.
42
+ # @param object [Hash] Ruby Hash object to deserialize.
43
+ # @return [Sku] Deserialized object.
44
+ #
45
+ def self.deserialize_object(object)
46
+ return if object.nil?
47
+ output_object = Sku.new
48
+
49
+ deserialized_property = object['name']
50
+ if (!deserialized_property.nil? && !deserialized_property.empty?)
51
+ enum_is_valid = SkuDefinition.constants.any? { |e| SkuDefinition.const_get(e).to_s.downcase == deserialized_property.downcase }
52
+ warn 'Enum SkuDefinition does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
53
+ end
54
+ output_object.name = deserialized_property
55
+
56
+ output_object
57
+ end
58
+ end
59
+ end
60
+ end
@@ -0,0 +1,17 @@
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 SkuDefinition
10
+ #
11
+ module SkuDefinition
12
+ Standard = "Standard"
13
+ Free = "Free"
14
+ Premium = "Premium"
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,83 @@
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 StorageQueueMessage
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Gets or sets the storage account name.
16
+ attr_accessor :storage_account
17
+
18
+ # @return [String] Gets or sets the queue name.
19
+ attr_accessor :queue_name
20
+
21
+ # @return [String] Gets or sets the SAS key.
22
+ attr_accessor :sas_token
23
+
24
+ # @return [String] Gets or sets the message.
25
+ attr_accessor :message
26
+
27
+ #
28
+ # Validate the object. Throws ValidationError if validation fails.
29
+ #
30
+ def validate
31
+ # Nothing to validate
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.storage_account
44
+ output_object['storageAccount'] = serialized_property unless serialized_property.nil?
45
+
46
+ serialized_property = object.queue_name
47
+ output_object['queueName'] = serialized_property unless serialized_property.nil?
48
+
49
+ serialized_property = object.sas_token
50
+ output_object['sasToken'] = serialized_property unless serialized_property.nil?
51
+
52
+ serialized_property = object.message
53
+ output_object['message'] = 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 [StorageQueueMessage] Deserialized object.
62
+ #
63
+ def self.deserialize_object(object)
64
+ return if object.nil?
65
+ output_object = StorageQueueMessage.new
66
+
67
+ deserialized_property = object['storageAccount']
68
+ output_object.storage_account = deserialized_property
69
+
70
+ deserialized_property = object['queueName']
71
+ output_object.queue_name = deserialized_property
72
+
73
+ deserialized_property = object['sasToken']
74
+ output_object.sas_token = deserialized_property
75
+
76
+ deserialized_property = object['message']
77
+ output_object.message = deserialized_property
78
+
79
+ output_object
80
+ end
81
+ end
82
+ end
83
+ end
@@ -0,0 +1,8 @@
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 end
7
+ module Azure::ARM end
8
+ module Azure::ARM::Scheduler end
@@ -0,0 +1,70 @@
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
+ #
8
+ # A service client - single point of access to the REST API.
9
+ #
10
+ class SchedulerManagementClient < MsRestAzure::AzureServiceClient
11
+ include Azure::ARM::Scheduler::Models
12
+ include MsRestAzure
13
+
14
+ # @return [String] the base URI of the service.
15
+ attr_accessor :base_url
16
+
17
+ # @return Gets Azure subscription credentials.
18
+ attr_reader :credentials
19
+
20
+ # @return [String] The subscription id.
21
+ attr_accessor :subscription_id
22
+
23
+ # @return [String] The API version.
24
+ attr_reader :api_version
25
+
26
+ # @return [String] Gets or sets the preferred language for the response.
27
+ attr_accessor :accept_language
28
+
29
+ # @return [Integer] Gets or sets the retry timeout in seconds for Long
30
+ # Running Operations. Default value is 30.
31
+ attr_accessor :long_running_operation_retry_timeout
32
+
33
+ # @return [Boolean] When set to true a unique x-ms-client-request-id value
34
+ # is generated and included in each request. Default is true.
35
+ attr_accessor :generate_client_request_id
36
+
37
+ # @return Subscription credentials which uniquely identify client
38
+ # subscription.
39
+ attr_accessor :credentials
40
+
41
+ # @return job_collections
42
+ attr_reader :job_collections
43
+
44
+ # @return jobs
45
+ attr_reader :jobs
46
+
47
+ #
48
+ # Creates initializes a new instance of the SchedulerManagementClient class.
49
+ # @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
50
+ # @param base_url [String] the base URI of the service.
51
+ # @param options [Array] filters to be applied to the HTTP requests.
52
+ #
53
+ def initialize(credentials, base_url = nil, options = nil)
54
+ super(credentials, options)
55
+ @base_url = base_url || 'https://management.azure.com'
56
+
57
+ fail ArgumentError, 'credentials is nil' if credentials.nil?
58
+ fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials)
59
+ @credentials = credentials
60
+
61
+ @job_collections = JobCollections.new(self)
62
+ @jobs = Jobs.new(self)
63
+ @api_version = '2016-01-01'
64
+ @accept_language = 'en-US'
65
+ @long_running_operation_retry_timeout = 30
66
+ @generate_client_request_id = true
67
+ end
68
+
69
+ end
70
+ end