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,143 @@ 
     | 
|
| 
      
 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 JobErrorAction
         
     | 
| 
      
 12 
     | 
    
         
            +
             
     | 
| 
      
 13 
     | 
    
         
            +
                  include MsRestAzure
         
     | 
| 
      
 14 
     | 
    
         
            +
             
     | 
| 
      
 15 
     | 
    
         
            +
                  # @return [JobActionType] Gets or sets the job error action type.
         
     | 
| 
      
 16 
     | 
    
         
            +
                  # Possible values include: 'Http', 'Https', 'StorageQueue',
         
     | 
| 
      
 17 
     | 
    
         
            +
                  # 'ServiceBusQueue', 'ServiceBusTopic'
         
     | 
| 
      
 18 
     | 
    
         
            +
                  attr_accessor :type
         
     | 
| 
      
 19 
     | 
    
         
            +
             
     | 
| 
      
 20 
     | 
    
         
            +
                  # @return [HttpRequest] Gets or sets the http requests.
         
     | 
| 
      
 21 
     | 
    
         
            +
                  attr_accessor :request
         
     | 
| 
      
 22 
     | 
    
         
            +
             
     | 
| 
      
 23 
     | 
    
         
            +
                  # @return [StorageQueueMessage] Gets or sets the storage queue message.
         
     | 
| 
      
 24 
     | 
    
         
            +
                  attr_accessor :queue_message
         
     | 
| 
      
 25 
     | 
    
         
            +
             
     | 
| 
      
 26 
     | 
    
         
            +
                  # @return [ServiceBusQueueMessage] Gets or sets the service bus queue
         
     | 
| 
      
 27 
     | 
    
         
            +
                  # message.
         
     | 
| 
      
 28 
     | 
    
         
            +
                  attr_accessor :service_bus_queue_message
         
     | 
| 
      
 29 
     | 
    
         
            +
             
     | 
| 
      
 30 
     | 
    
         
            +
                  # @return [ServiceBusTopicMessage] Gets or sets the service bus topic
         
     | 
| 
      
 31 
     | 
    
         
            +
                  # message.
         
     | 
| 
      
 32 
     | 
    
         
            +
                  attr_accessor :service_bus_topic_message
         
     | 
| 
      
 33 
     | 
    
         
            +
             
     | 
| 
      
 34 
     | 
    
         
            +
                  # @return [RetryPolicy] Gets or sets the retry policy.
         
     | 
| 
      
 35 
     | 
    
         
            +
                  attr_accessor :retry_policy
         
     | 
| 
      
 36 
     | 
    
         
            +
             
     | 
| 
      
 37 
     | 
    
         
            +
                  #
         
     | 
| 
      
 38 
     | 
    
         
            +
                  # Validate the object. Throws ValidationError if validation fails.
         
     | 
| 
      
 39 
     | 
    
         
            +
                  #
         
     | 
| 
      
 40 
     | 
    
         
            +
                  def validate
         
     | 
| 
      
 41 
     | 
    
         
            +
                    @request.validate unless @request.nil?
         
     | 
| 
      
 42 
     | 
    
         
            +
                    @queue_message.validate unless @queue_message.nil?
         
     | 
| 
      
 43 
     | 
    
         
            +
                    @service_bus_queue_message.validate unless @service_bus_queue_message.nil?
         
     | 
| 
      
 44 
     | 
    
         
            +
                    @service_bus_topic_message.validate unless @service_bus_topic_message.nil?
         
     | 
| 
      
 45 
     | 
    
         
            +
                    @retry_policy.validate unless @retry_policy.nil?
         
     | 
| 
      
 46 
     | 
    
         
            +
                  end
         
     | 
| 
      
 47 
     | 
    
         
            +
             
     | 
| 
      
 48 
     | 
    
         
            +
                  #
         
     | 
| 
      
 49 
     | 
    
         
            +
                  # Serializes given Model object into Ruby Hash.
         
     | 
| 
      
 50 
     | 
    
         
            +
                  # @param object Model object to serialize.
         
     | 
| 
      
 51 
     | 
    
         
            +
                  # @return [Hash] Serialized object in form of Ruby Hash.
         
     | 
| 
      
 52 
     | 
    
         
            +
                  #
         
     | 
| 
      
 53 
     | 
    
         
            +
                  def self.serialize_object(object)
         
     | 
| 
      
 54 
     | 
    
         
            +
                    object.validate
         
     | 
| 
      
 55 
     | 
    
         
            +
                    output_object = {}
         
     | 
| 
      
 56 
     | 
    
         
            +
             
     | 
| 
      
 57 
     | 
    
         
            +
                    serialized_property = object.type
         
     | 
| 
      
 58 
     | 
    
         
            +
                    output_object['type'] = serialized_property unless serialized_property.nil?
         
     | 
| 
      
 59 
     | 
    
         
            +
             
     | 
| 
      
 60 
     | 
    
         
            +
                    serialized_property = object.request
         
     | 
| 
      
 61 
     | 
    
         
            +
                    unless serialized_property.nil?
         
     | 
| 
      
 62 
     | 
    
         
            +
                      serialized_property = HttpRequest.serialize_object(serialized_property)
         
     | 
| 
      
 63 
     | 
    
         
            +
                    end
         
     | 
| 
      
 64 
     | 
    
         
            +
                    output_object['request'] = serialized_property unless serialized_property.nil?
         
     | 
| 
      
 65 
     | 
    
         
            +
             
     | 
| 
      
 66 
     | 
    
         
            +
                    serialized_property = object.queue_message
         
     | 
| 
      
 67 
     | 
    
         
            +
                    unless serialized_property.nil?
         
     | 
| 
      
 68 
     | 
    
         
            +
                      serialized_property = StorageQueueMessage.serialize_object(serialized_property)
         
     | 
| 
      
 69 
     | 
    
         
            +
                    end
         
     | 
| 
      
 70 
     | 
    
         
            +
                    output_object['queueMessage'] = serialized_property unless serialized_property.nil?
         
     | 
| 
      
 71 
     | 
    
         
            +
             
     | 
| 
      
 72 
     | 
    
         
            +
                    serialized_property = object.service_bus_queue_message
         
     | 
| 
      
 73 
     | 
    
         
            +
                    unless serialized_property.nil?
         
     | 
| 
      
 74 
     | 
    
         
            +
                      serialized_property = ServiceBusQueueMessage.serialize_object(serialized_property)
         
     | 
| 
      
 75 
     | 
    
         
            +
                    end
         
     | 
| 
      
 76 
     | 
    
         
            +
                    output_object['serviceBusQueueMessage'] = serialized_property unless serialized_property.nil?
         
     | 
| 
      
 77 
     | 
    
         
            +
             
     | 
| 
      
 78 
     | 
    
         
            +
                    serialized_property = object.service_bus_topic_message
         
     | 
| 
      
 79 
     | 
    
         
            +
                    unless serialized_property.nil?
         
     | 
| 
      
 80 
     | 
    
         
            +
                      serialized_property = ServiceBusTopicMessage.serialize_object(serialized_property)
         
     | 
| 
      
 81 
     | 
    
         
            +
                    end
         
     | 
| 
      
 82 
     | 
    
         
            +
                    output_object['serviceBusTopicMessage'] = serialized_property unless serialized_property.nil?
         
     | 
| 
      
 83 
     | 
    
         
            +
             
     | 
| 
      
 84 
     | 
    
         
            +
                    serialized_property = object.retry_policy
         
     | 
| 
      
 85 
     | 
    
         
            +
                    unless serialized_property.nil?
         
     | 
| 
      
 86 
     | 
    
         
            +
                      serialized_property = RetryPolicy.serialize_object(serialized_property)
         
     | 
| 
      
 87 
     | 
    
         
            +
                    end
         
     | 
| 
      
 88 
     | 
    
         
            +
                    output_object['retryPolicy'] = serialized_property unless serialized_property.nil?
         
     | 
| 
      
 89 
     | 
    
         
            +
             
     | 
| 
      
 90 
     | 
    
         
            +
                    output_object
         
     | 
| 
      
 91 
     | 
    
         
            +
                  end
         
     | 
| 
      
 92 
     | 
    
         
            +
             
     | 
| 
      
 93 
     | 
    
         
            +
                  #
         
     | 
| 
      
 94 
     | 
    
         
            +
                  # Deserializes given Ruby Hash into Model object.
         
     | 
| 
      
 95 
     | 
    
         
            +
                  # @param object [Hash] Ruby Hash object to deserialize.
         
     | 
| 
      
 96 
     | 
    
         
            +
                  # @return [JobErrorAction] Deserialized object.
         
     | 
| 
      
 97 
     | 
    
         
            +
                  #
         
     | 
| 
      
 98 
     | 
    
         
            +
                  def self.deserialize_object(object)
         
     | 
| 
      
 99 
     | 
    
         
            +
                    return if object.nil?
         
     | 
| 
      
 100 
     | 
    
         
            +
                    output_object = JobErrorAction.new
         
     | 
| 
      
 101 
     | 
    
         
            +
             
     | 
| 
      
 102 
     | 
    
         
            +
                    deserialized_property = object['type']
         
     | 
| 
      
 103 
     | 
    
         
            +
                    if (!deserialized_property.nil? && !deserialized_property.empty?)
         
     | 
| 
      
 104 
     | 
    
         
            +
                      enum_is_valid = JobActionType.constants.any? { |e| JobActionType.const_get(e).to_s.downcase == deserialized_property.downcase }
         
     | 
| 
      
 105 
     | 
    
         
            +
                      warn 'Enum JobActionType does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
         
     | 
| 
      
 106 
     | 
    
         
            +
                    end
         
     | 
| 
      
 107 
     | 
    
         
            +
                    output_object.type = deserialized_property
         
     | 
| 
      
 108 
     | 
    
         
            +
             
     | 
| 
      
 109 
     | 
    
         
            +
                    deserialized_property = object['request']
         
     | 
| 
      
 110 
     | 
    
         
            +
                    unless deserialized_property.nil?
         
     | 
| 
      
 111 
     | 
    
         
            +
                      deserialized_property = HttpRequest.deserialize_object(deserialized_property)
         
     | 
| 
      
 112 
     | 
    
         
            +
                    end
         
     | 
| 
      
 113 
     | 
    
         
            +
                    output_object.request = deserialized_property
         
     | 
| 
      
 114 
     | 
    
         
            +
             
     | 
| 
      
 115 
     | 
    
         
            +
                    deserialized_property = object['queueMessage']
         
     | 
| 
      
 116 
     | 
    
         
            +
                    unless deserialized_property.nil?
         
     | 
| 
      
 117 
     | 
    
         
            +
                      deserialized_property = StorageQueueMessage.deserialize_object(deserialized_property)
         
     | 
| 
      
 118 
     | 
    
         
            +
                    end
         
     | 
| 
      
 119 
     | 
    
         
            +
                    output_object.queue_message = deserialized_property
         
     | 
| 
      
 120 
     | 
    
         
            +
             
     | 
| 
      
 121 
     | 
    
         
            +
                    deserialized_property = object['serviceBusQueueMessage']
         
     | 
| 
      
 122 
     | 
    
         
            +
                    unless deserialized_property.nil?
         
     | 
| 
      
 123 
     | 
    
         
            +
                      deserialized_property = ServiceBusQueueMessage.deserialize_object(deserialized_property)
         
     | 
| 
      
 124 
     | 
    
         
            +
                    end
         
     | 
| 
      
 125 
     | 
    
         
            +
                    output_object.service_bus_queue_message = deserialized_property
         
     | 
| 
      
 126 
     | 
    
         
            +
             
     | 
| 
      
 127 
     | 
    
         
            +
                    deserialized_property = object['serviceBusTopicMessage']
         
     | 
| 
      
 128 
     | 
    
         
            +
                    unless deserialized_property.nil?
         
     | 
| 
      
 129 
     | 
    
         
            +
                      deserialized_property = ServiceBusTopicMessage.deserialize_object(deserialized_property)
         
     | 
| 
      
 130 
     | 
    
         
            +
                    end
         
     | 
| 
      
 131 
     | 
    
         
            +
                    output_object.service_bus_topic_message = deserialized_property
         
     | 
| 
      
 132 
     | 
    
         
            +
             
     | 
| 
      
 133 
     | 
    
         
            +
                    deserialized_property = object['retryPolicy']
         
     | 
| 
      
 134 
     | 
    
         
            +
                    unless deserialized_property.nil?
         
     | 
| 
      
 135 
     | 
    
         
            +
                      deserialized_property = RetryPolicy.deserialize_object(deserialized_property)
         
     | 
| 
      
 136 
     | 
    
         
            +
                    end
         
     | 
| 
      
 137 
     | 
    
         
            +
                    output_object.retry_policy = deserialized_property
         
     | 
| 
      
 138 
     | 
    
         
            +
             
     | 
| 
      
 139 
     | 
    
         
            +
                    output_object
         
     | 
| 
      
 140 
     | 
    
         
            +
                  end
         
     | 
| 
      
 141 
     | 
    
         
            +
                end
         
     | 
| 
      
 142 
     | 
    
         
            +
              end
         
     | 
| 
      
 143 
     | 
    
         
            +
            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 JobExecutionStatus
         
     | 
| 
      
 10 
     | 
    
         
            +
                #
         
     | 
| 
      
 11 
     | 
    
         
            +
                module JobExecutionStatus
         
     | 
| 
      
 12 
     | 
    
         
            +
                  Completed = "Completed"
         
     | 
| 
      
 13 
     | 
    
         
            +
                  Failed = "Failed"
         
     | 
| 
      
 14 
     | 
    
         
            +
                  Postponed = "Postponed"
         
     | 
| 
      
 15 
     | 
    
         
            +
                end
         
     | 
| 
      
 16 
     | 
    
         
            +
              end
         
     | 
| 
      
 17 
     | 
    
         
            +
            end
         
     | 
| 
         @@ -0,0 +1,16 @@ 
     | 
|
| 
      
 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 JobHistoryActionName
         
     | 
| 
      
 10 
     | 
    
         
            +
                #
         
     | 
| 
      
 11 
     | 
    
         
            +
                module JobHistoryActionName
         
     | 
| 
      
 12 
     | 
    
         
            +
                  MainAction = "MainAction"
         
     | 
| 
      
 13 
     | 
    
         
            +
                  ErrorAction = "ErrorAction"
         
     | 
| 
      
 14 
     | 
    
         
            +
                end
         
     | 
| 
      
 15 
     | 
    
         
            +
              end
         
     | 
| 
      
 16 
     | 
    
         
            +
            end
         
     | 
| 
         @@ -0,0 +1,90 @@ 
     | 
|
| 
      
 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 JobHistoryDefinition
         
     | 
| 
      
 12 
     | 
    
         
            +
             
     | 
| 
      
 13 
     | 
    
         
            +
                  include MsRestAzure
         
     | 
| 
      
 14 
     | 
    
         
            +
             
     | 
| 
      
 15 
     | 
    
         
            +
                  # @return [String] Gets the job history identifier.
         
     | 
| 
      
 16 
     | 
    
         
            +
                  attr_accessor :id
         
     | 
| 
      
 17 
     | 
    
         
            +
             
     | 
| 
      
 18 
     | 
    
         
            +
                  # @return [String] Gets the job history resource type.
         
     | 
| 
      
 19 
     | 
    
         
            +
                  attr_accessor :type
         
     | 
| 
      
 20 
     | 
    
         
            +
             
     | 
| 
      
 21 
     | 
    
         
            +
                  # @return [String] Gets the job history name.
         
     | 
| 
      
 22 
     | 
    
         
            +
                  attr_accessor :name
         
     | 
| 
      
 23 
     | 
    
         
            +
             
     | 
| 
      
 24 
     | 
    
         
            +
                  # @return [JobHistoryDefinitionProperties] Gets or sets the job history
         
     | 
| 
      
 25 
     | 
    
         
            +
                  # properties.
         
     | 
| 
      
 26 
     | 
    
         
            +
                  attr_accessor :properties
         
     | 
| 
      
 27 
     | 
    
         
            +
             
     | 
| 
      
 28 
     | 
    
         
            +
                  #
         
     | 
| 
      
 29 
     | 
    
         
            +
                  # Validate the object. Throws ValidationError if validation fails.
         
     | 
| 
      
 30 
     | 
    
         
            +
                  #
         
     | 
| 
      
 31 
     | 
    
         
            +
                  def validate
         
     | 
| 
      
 32 
     | 
    
         
            +
                    @properties.validate unless @properties.nil?
         
     | 
| 
      
 33 
     | 
    
         
            +
                  end
         
     | 
| 
      
 34 
     | 
    
         
            +
             
     | 
| 
      
 35 
     | 
    
         
            +
                  #
         
     | 
| 
      
 36 
     | 
    
         
            +
                  # Serializes given Model object into Ruby Hash.
         
     | 
| 
      
 37 
     | 
    
         
            +
                  # @param object Model object to serialize.
         
     | 
| 
      
 38 
     | 
    
         
            +
                  # @return [Hash] Serialized object in form of Ruby Hash.
         
     | 
| 
      
 39 
     | 
    
         
            +
                  #
         
     | 
| 
      
 40 
     | 
    
         
            +
                  def self.serialize_object(object)
         
     | 
| 
      
 41 
     | 
    
         
            +
                    object.validate
         
     | 
| 
      
 42 
     | 
    
         
            +
                    output_object = {}
         
     | 
| 
      
 43 
     | 
    
         
            +
             
     | 
| 
      
 44 
     | 
    
         
            +
                    serialized_property = object.id
         
     | 
| 
      
 45 
     | 
    
         
            +
                    output_object['id'] = serialized_property unless serialized_property.nil?
         
     | 
| 
      
 46 
     | 
    
         
            +
             
     | 
| 
      
 47 
     | 
    
         
            +
                    serialized_property = object.type
         
     | 
| 
      
 48 
     | 
    
         
            +
                    output_object['type'] = serialized_property unless serialized_property.nil?
         
     | 
| 
      
 49 
     | 
    
         
            +
             
     | 
| 
      
 50 
     | 
    
         
            +
                    serialized_property = object.name
         
     | 
| 
      
 51 
     | 
    
         
            +
                    output_object['name'] = serialized_property unless serialized_property.nil?
         
     | 
| 
      
 52 
     | 
    
         
            +
             
     | 
| 
      
 53 
     | 
    
         
            +
                    serialized_property = object.properties
         
     | 
| 
      
 54 
     | 
    
         
            +
                    unless serialized_property.nil?
         
     | 
| 
      
 55 
     | 
    
         
            +
                      serialized_property = JobHistoryDefinitionProperties.serialize_object(serialized_property)
         
     | 
| 
      
 56 
     | 
    
         
            +
                    end
         
     | 
| 
      
 57 
     | 
    
         
            +
                    output_object['properties'] = serialized_property unless serialized_property.nil?
         
     | 
| 
      
 58 
     | 
    
         
            +
             
     | 
| 
      
 59 
     | 
    
         
            +
                    output_object
         
     | 
| 
      
 60 
     | 
    
         
            +
                  end
         
     | 
| 
      
 61 
     | 
    
         
            +
             
     | 
| 
      
 62 
     | 
    
         
            +
                  #
         
     | 
| 
      
 63 
     | 
    
         
            +
                  # Deserializes given Ruby Hash into Model object.
         
     | 
| 
      
 64 
     | 
    
         
            +
                  # @param object [Hash] Ruby Hash object to deserialize.
         
     | 
| 
      
 65 
     | 
    
         
            +
                  # @return [JobHistoryDefinition] Deserialized object.
         
     | 
| 
      
 66 
     | 
    
         
            +
                  #
         
     | 
| 
      
 67 
     | 
    
         
            +
                  def self.deserialize_object(object)
         
     | 
| 
      
 68 
     | 
    
         
            +
                    return if object.nil?
         
     | 
| 
      
 69 
     | 
    
         
            +
                    output_object = JobHistoryDefinition.new
         
     | 
| 
      
 70 
     | 
    
         
            +
             
     | 
| 
      
 71 
     | 
    
         
            +
                    deserialized_property = object['id']
         
     | 
| 
      
 72 
     | 
    
         
            +
                    output_object.id = deserialized_property
         
     | 
| 
      
 73 
     | 
    
         
            +
             
     | 
| 
      
 74 
     | 
    
         
            +
                    deserialized_property = object['type']
         
     | 
| 
      
 75 
     | 
    
         
            +
                    output_object.type = deserialized_property
         
     | 
| 
      
 76 
     | 
    
         
            +
             
     | 
| 
      
 77 
     | 
    
         
            +
                    deserialized_property = object['name']
         
     | 
| 
      
 78 
     | 
    
         
            +
                    output_object.name = deserialized_property
         
     | 
| 
      
 79 
     | 
    
         
            +
             
     | 
| 
      
 80 
     | 
    
         
            +
                    deserialized_property = object['properties']
         
     | 
| 
      
 81 
     | 
    
         
            +
                    unless deserialized_property.nil?
         
     | 
| 
      
 82 
     | 
    
         
            +
                      deserialized_property = JobHistoryDefinitionProperties.deserialize_object(deserialized_property)
         
     | 
| 
      
 83 
     | 
    
         
            +
                    end
         
     | 
| 
      
 84 
     | 
    
         
            +
                    output_object.properties = deserialized_property
         
     | 
| 
      
 85 
     | 
    
         
            +
             
     | 
| 
      
 86 
     | 
    
         
            +
                    output_object
         
     | 
| 
      
 87 
     | 
    
         
            +
                  end
         
     | 
| 
      
 88 
     | 
    
         
            +
                end
         
     | 
| 
      
 89 
     | 
    
         
            +
              end
         
     | 
| 
      
 90 
     | 
    
         
            +
            end
         
     | 
| 
         @@ -0,0 +1,136 @@ 
     | 
|
| 
      
 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 JobHistoryDefinitionProperties
         
     | 
| 
      
 12 
     | 
    
         
            +
             
     | 
| 
      
 13 
     | 
    
         
            +
                  include MsRestAzure
         
     | 
| 
      
 14 
     | 
    
         
            +
             
     | 
| 
      
 15 
     | 
    
         
            +
                  # @return [DateTime] Gets the start time for this job.
         
     | 
| 
      
 16 
     | 
    
         
            +
                  attr_accessor :start_time
         
     | 
| 
      
 17 
     | 
    
         
            +
             
     | 
| 
      
 18 
     | 
    
         
            +
                  # @return [DateTime] Gets the end time for this job.
         
     | 
| 
      
 19 
     | 
    
         
            +
                  attr_accessor :end_time
         
     | 
| 
      
 20 
     | 
    
         
            +
             
     | 
| 
      
 21 
     | 
    
         
            +
                  # @return [DateTime] Gets the expected execution time for this job.
         
     | 
| 
      
 22 
     | 
    
         
            +
                  attr_accessor :expected_execution_time
         
     | 
| 
      
 23 
     | 
    
         
            +
             
     | 
| 
      
 24 
     | 
    
         
            +
                  # @return [JobHistoryActionName] Gets the job history action name.
         
     | 
| 
      
 25 
     | 
    
         
            +
                  # Possible values include: 'MainAction', 'ErrorAction'
         
     | 
| 
      
 26 
     | 
    
         
            +
                  attr_accessor :action_name
         
     | 
| 
      
 27 
     | 
    
         
            +
             
     | 
| 
      
 28 
     | 
    
         
            +
                  # @return [JobExecutionStatus] Gets the job history status. Possible
         
     | 
| 
      
 29 
     | 
    
         
            +
                  # values include: 'Completed', 'Failed', 'Postponed'
         
     | 
| 
      
 30 
     | 
    
         
            +
                  attr_accessor :status
         
     | 
| 
      
 31 
     | 
    
         
            +
             
     | 
| 
      
 32 
     | 
    
         
            +
                  # @return [String] Gets the message for the job history.
         
     | 
| 
      
 33 
     | 
    
         
            +
                  attr_accessor :message
         
     | 
| 
      
 34 
     | 
    
         
            +
             
     | 
| 
      
 35 
     | 
    
         
            +
                  # @return [Integer] Gets the retry count for job.
         
     | 
| 
      
 36 
     | 
    
         
            +
                  attr_accessor :retry_count
         
     | 
| 
      
 37 
     | 
    
         
            +
             
     | 
| 
      
 38 
     | 
    
         
            +
                  # @return [Integer] Gets the repeat count for the job.
         
     | 
| 
      
 39 
     | 
    
         
            +
                  attr_accessor :repeat_count
         
     | 
| 
      
 40 
     | 
    
         
            +
             
     | 
| 
      
 41 
     | 
    
         
            +
                  #
         
     | 
| 
      
 42 
     | 
    
         
            +
                  # Validate the object. Throws ValidationError if validation fails.
         
     | 
| 
      
 43 
     | 
    
         
            +
                  #
         
     | 
| 
      
 44 
     | 
    
         
            +
                  def validate
         
     | 
| 
      
 45 
     | 
    
         
            +
                  end
         
     | 
| 
      
 46 
     | 
    
         
            +
             
     | 
| 
      
 47 
     | 
    
         
            +
                  #
         
     | 
| 
      
 48 
     | 
    
         
            +
                  # Serializes given Model object into Ruby Hash.
         
     | 
| 
      
 49 
     | 
    
         
            +
                  # @param object Model object to serialize.
         
     | 
| 
      
 50 
     | 
    
         
            +
                  # @return [Hash] Serialized object in form of Ruby Hash.
         
     | 
| 
      
 51 
     | 
    
         
            +
                  #
         
     | 
| 
      
 52 
     | 
    
         
            +
                  def self.serialize_object(object)
         
     | 
| 
      
 53 
     | 
    
         
            +
                    object.validate
         
     | 
| 
      
 54 
     | 
    
         
            +
                    output_object = {}
         
     | 
| 
      
 55 
     | 
    
         
            +
             
     | 
| 
      
 56 
     | 
    
         
            +
                    serialized_property = object.start_time
         
     | 
| 
      
 57 
     | 
    
         
            +
                    serialized_property = serialized_property.new_offset(0).strftime('%FT%TZ')
         
     | 
| 
      
 58 
     | 
    
         
            +
                    output_object['startTime'] = serialized_property unless serialized_property.nil?
         
     | 
| 
      
 59 
     | 
    
         
            +
             
     | 
| 
      
 60 
     | 
    
         
            +
                    serialized_property = object.end_time
         
     | 
| 
      
 61 
     | 
    
         
            +
                    serialized_property = serialized_property.new_offset(0).strftime('%FT%TZ')
         
     | 
| 
      
 62 
     | 
    
         
            +
                    output_object['endTime'] = serialized_property unless serialized_property.nil?
         
     | 
| 
      
 63 
     | 
    
         
            +
             
     | 
| 
      
 64 
     | 
    
         
            +
                    serialized_property = object.expected_execution_time
         
     | 
| 
      
 65 
     | 
    
         
            +
                    serialized_property = serialized_property.new_offset(0).strftime('%FT%TZ')
         
     | 
| 
      
 66 
     | 
    
         
            +
                    output_object['expectedExecutionTime'] = serialized_property unless serialized_property.nil?
         
     | 
| 
      
 67 
     | 
    
         
            +
             
     | 
| 
      
 68 
     | 
    
         
            +
                    serialized_property = object.action_name
         
     | 
| 
      
 69 
     | 
    
         
            +
                    output_object['actionName'] = serialized_property unless serialized_property.nil?
         
     | 
| 
      
 70 
     | 
    
         
            +
             
     | 
| 
      
 71 
     | 
    
         
            +
                    serialized_property = object.status
         
     | 
| 
      
 72 
     | 
    
         
            +
                    output_object['status'] = serialized_property unless serialized_property.nil?
         
     | 
| 
      
 73 
     | 
    
         
            +
             
     | 
| 
      
 74 
     | 
    
         
            +
                    serialized_property = object.message
         
     | 
| 
      
 75 
     | 
    
         
            +
                    output_object['message'] = serialized_property unless serialized_property.nil?
         
     | 
| 
      
 76 
     | 
    
         
            +
             
     | 
| 
      
 77 
     | 
    
         
            +
                    serialized_property = object.retry_count
         
     | 
| 
      
 78 
     | 
    
         
            +
                    output_object['retryCount'] = serialized_property unless serialized_property.nil?
         
     | 
| 
      
 79 
     | 
    
         
            +
             
     | 
| 
      
 80 
     | 
    
         
            +
                    serialized_property = object.repeat_count
         
     | 
| 
      
 81 
     | 
    
         
            +
                    output_object['repeatCount'] = serialized_property unless serialized_property.nil?
         
     | 
| 
      
 82 
     | 
    
         
            +
             
     | 
| 
      
 83 
     | 
    
         
            +
                    output_object
         
     | 
| 
      
 84 
     | 
    
         
            +
                  end
         
     | 
| 
      
 85 
     | 
    
         
            +
             
     | 
| 
      
 86 
     | 
    
         
            +
                  #
         
     | 
| 
      
 87 
     | 
    
         
            +
                  # Deserializes given Ruby Hash into Model object.
         
     | 
| 
      
 88 
     | 
    
         
            +
                  # @param object [Hash] Ruby Hash object to deserialize.
         
     | 
| 
      
 89 
     | 
    
         
            +
                  # @return [JobHistoryDefinitionProperties] Deserialized object.
         
     | 
| 
      
 90 
     | 
    
         
            +
                  #
         
     | 
| 
      
 91 
     | 
    
         
            +
                  def self.deserialize_object(object)
         
     | 
| 
      
 92 
     | 
    
         
            +
                    return if object.nil?
         
     | 
| 
      
 93 
     | 
    
         
            +
                    output_object = JobHistoryDefinitionProperties.new
         
     | 
| 
      
 94 
     | 
    
         
            +
             
     | 
| 
      
 95 
     | 
    
         
            +
                    deserialized_property = object['startTime']
         
     | 
| 
      
 96 
     | 
    
         
            +
                    deserialized_property = DateTime.parse(deserialized_property) unless deserialized_property.to_s.empty?
         
     | 
| 
      
 97 
     | 
    
         
            +
                    output_object.start_time = deserialized_property
         
     | 
| 
      
 98 
     | 
    
         
            +
             
     | 
| 
      
 99 
     | 
    
         
            +
                    deserialized_property = object['endTime']
         
     | 
| 
      
 100 
     | 
    
         
            +
                    deserialized_property = DateTime.parse(deserialized_property) unless deserialized_property.to_s.empty?
         
     | 
| 
      
 101 
     | 
    
         
            +
                    output_object.end_time = deserialized_property
         
     | 
| 
      
 102 
     | 
    
         
            +
             
     | 
| 
      
 103 
     | 
    
         
            +
                    deserialized_property = object['expectedExecutionTime']
         
     | 
| 
      
 104 
     | 
    
         
            +
                    deserialized_property = DateTime.parse(deserialized_property) unless deserialized_property.to_s.empty?
         
     | 
| 
      
 105 
     | 
    
         
            +
                    output_object.expected_execution_time = deserialized_property
         
     | 
| 
      
 106 
     | 
    
         
            +
             
     | 
| 
      
 107 
     | 
    
         
            +
                    deserialized_property = object['actionName']
         
     | 
| 
      
 108 
     | 
    
         
            +
                    if (!deserialized_property.nil? && !deserialized_property.empty?)
         
     | 
| 
      
 109 
     | 
    
         
            +
                      enum_is_valid = JobHistoryActionName.constants.any? { |e| JobHistoryActionName.const_get(e).to_s.downcase == deserialized_property.downcase }
         
     | 
| 
      
 110 
     | 
    
         
            +
                      warn 'Enum JobHistoryActionName does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
         
     | 
| 
      
 111 
     | 
    
         
            +
                    end
         
     | 
| 
      
 112 
     | 
    
         
            +
                    output_object.action_name = deserialized_property
         
     | 
| 
      
 113 
     | 
    
         
            +
             
     | 
| 
      
 114 
     | 
    
         
            +
                    deserialized_property = object['status']
         
     | 
| 
      
 115 
     | 
    
         
            +
                    if (!deserialized_property.nil? && !deserialized_property.empty?)
         
     | 
| 
      
 116 
     | 
    
         
            +
                      enum_is_valid = JobExecutionStatus.constants.any? { |e| JobExecutionStatus.const_get(e).to_s.downcase == deserialized_property.downcase }
         
     | 
| 
      
 117 
     | 
    
         
            +
                      warn 'Enum JobExecutionStatus does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
         
     | 
| 
      
 118 
     | 
    
         
            +
                    end
         
     | 
| 
      
 119 
     | 
    
         
            +
                    output_object.status = deserialized_property
         
     | 
| 
      
 120 
     | 
    
         
            +
             
     | 
| 
      
 121 
     | 
    
         
            +
                    deserialized_property = object['message']
         
     | 
| 
      
 122 
     | 
    
         
            +
                    output_object.message = deserialized_property
         
     | 
| 
      
 123 
     | 
    
         
            +
             
     | 
| 
      
 124 
     | 
    
         
            +
                    deserialized_property = object['retryCount']
         
     | 
| 
      
 125 
     | 
    
         
            +
                    deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
         
     | 
| 
      
 126 
     | 
    
         
            +
                    output_object.retry_count = deserialized_property
         
     | 
| 
      
 127 
     | 
    
         
            +
             
     | 
| 
      
 128 
     | 
    
         
            +
                    deserialized_property = object['repeatCount']
         
     | 
| 
      
 129 
     | 
    
         
            +
                    deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
         
     | 
| 
      
 130 
     | 
    
         
            +
                    output_object.repeat_count = deserialized_property
         
     | 
| 
      
 131 
     | 
    
         
            +
             
     | 
| 
      
 132 
     | 
    
         
            +
                    output_object
         
     | 
| 
      
 133 
     | 
    
         
            +
                  end
         
     | 
| 
      
 134 
     | 
    
         
            +
                end
         
     | 
| 
      
 135 
     | 
    
         
            +
              end
         
     | 
| 
      
 136 
     | 
    
         
            +
            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 JobHistoryFilter
         
     | 
| 
      
 12 
     | 
    
         
            +
             
     | 
| 
      
 13 
     | 
    
         
            +
                  include MsRestAzure
         
     | 
| 
      
 14 
     | 
    
         
            +
             
     | 
| 
      
 15 
     | 
    
         
            +
                  # @return [JobExecutionStatus] Gets or sets the job execution status.
         
     | 
| 
      
 16 
     | 
    
         
            +
                  # Possible values include: 'Completed', 'Failed', 'Postponed'
         
     | 
| 
      
 17 
     | 
    
         
            +
                  attr_accessor :status
         
     | 
| 
      
 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.status
         
     | 
| 
      
 35 
     | 
    
         
            +
                    output_object['status'] = 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 [JobHistoryFilter] Deserialized object.
         
     | 
| 
      
 44 
     | 
    
         
            +
                  #
         
     | 
| 
      
 45 
     | 
    
         
            +
                  def self.deserialize_object(object)
         
     | 
| 
      
 46 
     | 
    
         
            +
                    return if object.nil?
         
     | 
| 
      
 47 
     | 
    
         
            +
                    output_object = JobHistoryFilter.new
         
     | 
| 
      
 48 
     | 
    
         
            +
             
     | 
| 
      
 49 
     | 
    
         
            +
                    deserialized_property = object['status']
         
     | 
| 
      
 50 
     | 
    
         
            +
                    if (!deserialized_property.nil? && !deserialized_property.empty?)
         
     | 
| 
      
 51 
     | 
    
         
            +
                      enum_is_valid = JobExecutionStatus.constants.any? { |e| JobExecutionStatus.const_get(e).to_s.downcase == deserialized_property.downcase }
         
     | 
| 
      
 52 
     | 
    
         
            +
                      warn 'Enum JobExecutionStatus does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
         
     | 
| 
      
 53 
     | 
    
         
            +
                    end
         
     | 
| 
      
 54 
     | 
    
         
            +
                    output_object.status = deserialized_property
         
     | 
| 
      
 55 
     | 
    
         
            +
             
     | 
| 
      
 56 
     | 
    
         
            +
                    output_object
         
     | 
| 
      
 57 
     | 
    
         
            +
                  end
         
     | 
| 
      
 58 
     | 
    
         
            +
                end
         
     | 
| 
      
 59 
     | 
    
         
            +
              end
         
     | 
| 
      
 60 
     | 
    
         
            +
            end
         
     |