batchly_api 0.6.6 → 0.6.7

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.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +44 -0
  3. data/lib/batchly_api.rb +21 -11
  4. data/lib/batchly_api/api_exception.rb +5 -11
  5. data/lib/batchly_api/api_helper.rb +1 -1
  6. data/lib/batchly_api/configuration.rb +1 -1
  7. data/lib/batchly_api/controllers/{account_controller.rb → accounts_controller.rb} +38 -37
  8. data/lib/batchly_api/controllers/{data_source_controller.rb → data_sources_controller.rb} +5 -5
  9. data/lib/batchly_api/controllers/{job_controller.rb → jobs_controller.rb} +62 -14
  10. data/lib/batchly_api/controllers/processors_controller.rb +225 -0
  11. data/lib/batchly_api/controllers/{project_controller.rb → projects_controller.rb} +46 -46
  12. data/lib/batchly_api/controllers/{run_controller.rb → runs_controller.rb} +23 -59
  13. data/lib/batchly_api/models/add_aws_account_request.rb +1 -1
  14. data/lib/batchly_api/models/add_parameter_group_request.rb +34 -0
  15. data/lib/batchly_api/models/add_processor_request.rb +74 -0
  16. data/lib/batchly_api/models/add_s_3_data_source_request.rb +1 -1
  17. data/lib/batchly_api/models/base_string_enum.rb +25 -0
  18. data/lib/batchly_api/models/create_job_request.rb +6 -11
  19. data/lib/batchly_api/models/create_project_request.rb +1 -1
  20. data/lib/batchly_api/models/custom_image.rb +39 -0
  21. data/lib/batchly_api/models/execute_job_request.rb +8 -8
  22. data/lib/batchly_api/models/key_value_pair_string_string.rb +34 -0
  23. data/lib/batchly_api/models/language_enum.rb +30 -0
  24. data/lib/batchly_api/models/operating_system_enum.rb +24 -0
  25. data/lib/batchly_api/models/parameter.rb +29 -0
  26. data/lib/batchly_api/models/request_type_enum.rb +24 -0
  27. data/lib/batchly_api/models/response_type_enum.rb +21 -0
  28. data/lib/batchly_api/models/update_project_request.rb +1 -1
  29. data/lib/batchly_api/models/vpc_details.rb +1 -1
  30. metadata +22 -12
  31. data/lib/batchly_api/models/job_schedule.rb +0 -36
@@ -1,4 +1,4 @@
1
- # This file was automatically generated for support.batchly.net by APIMATIC BETA v2.0 on 11/26/2015
1
+ # This file was automatically generated for support.batchly.net by APIMATIC BETA v2.0 on 12/05/2015
2
2
 
3
3
  module BatchlyApi
4
4
  class AddAwsAccountRequest
@@ -0,0 +1,34 @@
1
+ # This file was automatically generated for support.batchly.net by APIMATIC BETA v2.0 on 12/05/2015
2
+
3
+ module BatchlyApi
4
+ class AddParameterGroupRequest
5
+
6
+ # TODO: Write general description for this method
7
+ # @return [String]
8
+ attr_accessor :name
9
+
10
+ # TODO: Write general description for this method
11
+ # @return [Array<KeyValuePairStringString>]
12
+ attr_accessor :parameter_values
13
+
14
+
15
+ def method_missing (method_name)
16
+ puts "there's no method called '#{method_name}'"
17
+ end
18
+
19
+ # Creates JSON of the curent object
20
+ def to_json
21
+ hash = self.key_map()
22
+ hash.to_json
23
+ end
24
+
25
+ # Defines the key map for json serialization
26
+ def key_map
27
+ hash = {}
28
+ hash['Name'] = self.name
29
+ hash['ParameterValues'] = self.parameter_values
30
+ hash
31
+ end
32
+
33
+ end
34
+ end
@@ -0,0 +1,74 @@
1
+ # This file was automatically generated for support.batchly.net by APIMATIC BETA v2.0 on 12/05/2015
2
+
3
+ module BatchlyApi
4
+ class AddProcessorRequest
5
+
6
+ # TODO: Write general description for this method
7
+ # @return [String]
8
+ attr_accessor :account_id
9
+
10
+ # TODO: Write general description for this method
11
+ # @return [OperatingSystemEnum]
12
+ attr_accessor :operating_system
13
+
14
+ # TODO: Write general description for this method
15
+ # @return [LanguageEnum]
16
+ attr_accessor :language
17
+
18
+ # TODO: Write general description for this method
19
+ # @return [String]
20
+ attr_accessor :file_name
21
+
22
+ # TODO: Write general description for this method
23
+ # @return [String]
24
+ attr_accessor :class_name
25
+
26
+ # TODO: Write general description for this method
27
+ # @return [RequestTypeEnum]
28
+ attr_accessor :request_type
29
+
30
+ # TODO: Write general description for this method
31
+ # @return [ResponseTypeEnum]
32
+ attr_accessor :response_type
33
+
34
+ # TODO: Write general description for this method
35
+ # @return [String]
36
+ attr_accessor :package_location
37
+
38
+ # TODO: Write general description for this method
39
+ # @return [Array<Parameter>]
40
+ attr_accessor :parameters
41
+
42
+ # TODO: Write general description for this method
43
+ # @return [CustomImage]
44
+ attr_accessor :custom_image
45
+
46
+
47
+ def method_missing (method_name)
48
+ puts "there's no method called '#{method_name}'"
49
+ end
50
+
51
+ # Creates JSON of the curent object
52
+ def to_json
53
+ hash = self.key_map()
54
+ hash.to_json
55
+ end
56
+
57
+ # Defines the key map for json serialization
58
+ def key_map
59
+ hash = {}
60
+ hash['AccountId'] = self.account_id
61
+ hash['OperatingSystem'] = self.operating_system
62
+ hash['Language'] = self.language
63
+ hash['FileName'] = self.file_name
64
+ hash['ClassName'] = self.class_name
65
+ hash['RequestType'] = self.request_type
66
+ hash['ResponseType'] = self.response_type
67
+ hash['PackageLocation'] = self.package_location
68
+ hash['Parameters'] = self.parameters
69
+ hash['CustomImage'] = self.custom_image
70
+ hash
71
+ end
72
+
73
+ end
74
+ end
@@ -1,4 +1,4 @@
1
- # This file was automatically generated for support.batchly.net by APIMATIC BETA v2.0 on 11/26/2015
1
+ # This file was automatically generated for support.batchly.net by APIMATIC BETA v2.0 on 12/05/2015
2
2
 
3
3
  module BatchlyApi
4
4
  class AddS3DataSourceRequest
@@ -0,0 +1,25 @@
1
+ # Extracted from Remote API gem (https://github.com/cstrahan/rapi).
2
+
3
+ module BatchlyApi
4
+ class BaseStringEnum
5
+
6
+ private
7
+ def self.enum_attr(name, val)
8
+ name = name.to_s
9
+
10
+ define_method(name + '?') do
11
+ @attrs == val
12
+ end
13
+ end
14
+
15
+ public
16
+ def initialize(attrs = '')
17
+ @attrs = attrs
18
+ end
19
+
20
+ def to_s
21
+ @attrs
22
+ end
23
+
24
+ end
25
+ end
@@ -1,4 +1,4 @@
1
- # This file was automatically generated for support.batchly.net by APIMATIC BETA v2.0 on 11/26/2015
1
+ # This file was automatically generated for support.batchly.net by APIMATIC BETA v2.0 on 12/05/2015
2
2
 
3
3
  module BatchlyApi
4
4
  class CreateJobRequest
@@ -19,14 +19,14 @@ module BatchlyApi
19
19
  # @return [String]
20
20
  attr_accessor :data_source_id
21
21
 
22
+ # Identifier of the Parameter Group that contains the key-value pairs
23
+ # @return [String]
24
+ attr_accessor :parameter_group_id
25
+
22
26
  # Identifier fo the DataSource into which processed data is sent
23
27
  # @return [String]
24
28
  attr_accessor :destination_id
25
29
 
26
- # Schedule information of Job if it should be managed by Scheduler
27
- # @return [JobSchedule]
28
- attr_accessor :schedule
29
-
30
30
  # Default Region in which the job should execute. You can change region for each run when calling "Execute" endpoint.
31
31
  # @return [String]
32
32
  attr_accessor :region
@@ -35,10 +35,6 @@ module BatchlyApi
35
35
  # @return [Double]
36
36
  attr_accessor :sla
37
37
 
38
- # Parameter name and values that should be sent to the processor. The values can be changed for each run when calling the "Execute" endpoint.
39
- # @return [mixed]
40
- attr_accessor :parameters
41
-
42
38
 
43
39
  def method_missing (method_name)
44
40
  puts "there's no method called '#{method_name}'"
@@ -57,11 +53,10 @@ module BatchlyApi
57
53
  hash['ProjectId'] = self.project_id
58
54
  hash['ProcessorId'] = self.processor_id
59
55
  hash['DataSourceId'] = self.data_source_id
56
+ hash['ParameterGroupId'] = self.parameter_group_id
60
57
  hash['DestinationId'] = self.destination_id
61
- hash['Schedule'] = self.schedule
62
58
  hash['Region'] = self.region
63
59
  hash['SLA'] = self.sla
64
- hash['Parameters'] = self.parameters
65
60
  hash
66
61
  end
67
62
 
@@ -1,4 +1,4 @@
1
- # This file was automatically generated for support.batchly.net by APIMATIC BETA v2.0 on 11/26/2015
1
+ # This file was automatically generated for support.batchly.net by APIMATIC BETA v2.0 on 12/05/2015
2
2
 
3
3
  module BatchlyApi
4
4
  class CreateProjectRequest
@@ -0,0 +1,39 @@
1
+ # This file was automatically generated for support.batchly.net by APIMATIC BETA v2.0 on 12/05/2015
2
+
3
+ module BatchlyApi
4
+ class CustomImage
5
+
6
+ # TODO: Write general description for this method
7
+ # @return [Boolean]
8
+ attr_accessor :enabled
9
+
10
+ # TODO: Write general description for this method
11
+ # @return [String]
12
+ attr_accessor :image_id
13
+
14
+ # TODO: Write general description for this method
15
+ # @return [String]
16
+ attr_accessor :region
17
+
18
+
19
+ def method_missing (method_name)
20
+ puts "there's no method called '#{method_name}'"
21
+ end
22
+
23
+ # Creates JSON of the curent object
24
+ def to_json
25
+ hash = self.key_map()
26
+ hash.to_json
27
+ end
28
+
29
+ # Defines the key map for json serialization
30
+ def key_map
31
+ hash = {}
32
+ hash['Enabled'] = self.enabled
33
+ hash['ImageId'] = self.image_id
34
+ hash['Region'] = self.region
35
+ hash
36
+ end
37
+
38
+ end
39
+ end
@@ -1,20 +1,20 @@
1
- # This file was automatically generated for support.batchly.net by APIMATIC BETA v2.0 on 11/26/2015
1
+ # This file was automatically generated for support.batchly.net by APIMATIC BETA v2.0 on 12/05/2015
2
2
 
3
3
  module BatchlyApi
4
4
  class ExecuteJobRequest
5
5
 
6
- # Job Identifier
7
- # @return [String]
8
- attr_accessor :job_id
9
-
10
- # SLA for the run
6
+ # TODO: Write general description for this method
11
7
  # @return [Double]
12
8
  attr_accessor :sla
13
9
 
14
- # Region in which the job should execute
10
+ # TODO: Write general description for this method
15
11
  # @return [String]
16
12
  attr_accessor :region
17
13
 
14
+ # TODO: Write general description for this method
15
+ # @return [String]
16
+ attr_accessor :parameter_group_id
17
+
18
18
 
19
19
  def method_missing (method_name)
20
20
  puts "there's no method called '#{method_name}'"
@@ -29,9 +29,9 @@ module BatchlyApi
29
29
  # Defines the key map for json serialization
30
30
  def key_map
31
31
  hash = {}
32
- hash['JobId'] = self.job_id
33
32
  hash['SLA'] = self.sla
34
33
  hash['Region'] = self.region
34
+ hash['ParameterGroupId'] = self.parameter_group_id
35
35
  hash
36
36
  end
37
37
 
@@ -0,0 +1,34 @@
1
+ # This file was automatically generated for support.batchly.net by APIMATIC BETA v2.0 on 12/05/2015
2
+
3
+ module BatchlyApi
4
+ class KeyValuePairStringString
5
+
6
+ # TODO: Write general description for this method
7
+ # @return [String]
8
+ attr_accessor :key
9
+
10
+ # TODO: Write general description for this method
11
+ # @return [String]
12
+ attr_accessor :value
13
+
14
+
15
+ def method_missing (method_name)
16
+ puts "there's no method called '#{method_name}'"
17
+ end
18
+
19
+ # Creates JSON of the curent object
20
+ def to_json
21
+ hash = self.key_map()
22
+ hash.to_json
23
+ end
24
+
25
+ # Defines the key map for json serialization
26
+ def key_map
27
+ hash = {}
28
+ hash['key'] = self.key
29
+ hash['value'] = self.value
30
+ hash
31
+ end
32
+
33
+ end
34
+ end
@@ -0,0 +1,30 @@
1
+ # This file was automatically generated for support.batchly.net by APIMATIC BETA v2.0 on 12/05/2015
2
+
3
+ require 'batchly_api/models/base_string_enum'
4
+
5
+ module BatchlyApi
6
+ class LanguageEnum < BaseStringEnum
7
+
8
+ # TODO: Write general description for this element
9
+ enum_attr :NONE, 'None'
10
+
11
+ # TODO: Write general description for this element
12
+ enum_attr :DOTNET, 'DotNet'
13
+
14
+ # TODO: Write general description for this element
15
+ enum_attr :MONO, 'Mono'
16
+
17
+ # TODO: Write general description for this element
18
+ enum_attr :JAVA, 'Java'
19
+
20
+ # TODO: Write general description for this element
21
+ enum_attr :PYTHON, 'Python'
22
+
23
+ # TODO: Write general description for this element
24
+ enum_attr :PHP, 'PHP'
25
+
26
+ # TODO: Write general description for this element
27
+ enum_attr :RUBY, 'Ruby'
28
+
29
+ end
30
+ end
@@ -0,0 +1,24 @@
1
+ # This file was automatically generated for support.batchly.net by APIMATIC BETA v2.0 on 12/05/2015
2
+
3
+ require 'batchly_api/models/base_string_enum'
4
+
5
+ module BatchlyApi
6
+ class OperatingSystemEnum < BaseStringEnum
7
+
8
+ # TODO: Write general description for this element
9
+ enum_attr :NONE, 'None'
10
+
11
+ # TODO: Write general description for this element
12
+ enum_attr :WINDOWS, 'Windows'
13
+
14
+ # TODO: Write general description for this element
15
+ enum_attr :UBUNTU, 'Ubuntu'
16
+
17
+ # TODO: Write general description for this element
18
+ enum_attr :CENTOS, 'CentOS'
19
+
20
+ # TODO: Write general description for this element
21
+ enum_attr :RHEL, 'RHEL'
22
+
23
+ end
24
+ end
@@ -0,0 +1,29 @@
1
+ # This file was automatically generated for support.batchly.net by APIMATIC BETA v2.0 on 12/05/2015
2
+
3
+ module BatchlyApi
4
+ class Parameter
5
+
6
+ # TODO: Write general description for this method
7
+ # @return [String]
8
+ attr_accessor :name
9
+
10
+
11
+ def method_missing (method_name)
12
+ puts "there's no method called '#{method_name}'"
13
+ end
14
+
15
+ # Creates JSON of the curent object
16
+ def to_json
17
+ hash = self.key_map()
18
+ hash.to_json
19
+ end
20
+
21
+ # Defines the key map for json serialization
22
+ def key_map
23
+ hash = {}
24
+ hash['Name'] = self.name
25
+ hash
26
+ end
27
+
28
+ end
29
+ end
@@ -0,0 +1,24 @@
1
+ # This file was automatically generated for support.batchly.net by APIMATIC BETA v2.0 on 12/05/2015
2
+
3
+ require 'batchly_api/models/base_string_enum'
4
+
5
+ module BatchlyApi
6
+ class RequestTypeEnum < BaseStringEnum
7
+
8
+ # TODO: Write general description for this element
9
+ enum_attr :CSV, 'CSV'
10
+
11
+ # TODO: Write general description for this element
12
+ enum_attr :DB, 'Db'
13
+
14
+ # TODO: Write general description for this element
15
+ enum_attr :FILE, 'File'
16
+
17
+ # TODO: Write general description for this element
18
+ enum_attr :NONE, 'None'
19
+
20
+ # TODO: Write general description for this element
21
+ enum_attr :QUEUE, 'Queue'
22
+
23
+ end
24
+ end
@@ -0,0 +1,21 @@
1
+ # This file was automatically generated for support.batchly.net by APIMATIC BETA v2.0 on 12/05/2015
2
+
3
+ require 'batchly_api/models/base_string_enum'
4
+
5
+ module BatchlyApi
6
+ class ResponseTypeEnum < BaseStringEnum
7
+
8
+ # TODO: Write general description for this element
9
+ enum_attr :DB, 'Db'
10
+
11
+ # TODO: Write general description for this element
12
+ enum_attr :DEFAULT, 'Default'
13
+
14
+ # TODO: Write general description for this element
15
+ enum_attr :FILE, 'File'
16
+
17
+ # TODO: Write general description for this element
18
+ enum_attr :NONE, 'None'
19
+
20
+ end
21
+ end