iron_functions 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +201 -0
  3. data/README.md +109 -0
  4. data/VERSION +1 -0
  5. data/docs/App.md +8 -0
  6. data/docs/AppWrapper.md +8 -0
  7. data/docs/AppsApi.md +197 -0
  8. data/docs/AppsWrapper.md +8 -0
  9. data/docs/Error.md +8 -0
  10. data/docs/ErrorBody.md +9 -0
  11. data/docs/NewTasksWrapper.md +8 -0
  12. data/docs/Route.md +11 -0
  13. data/docs/RouteWrapper.md +8 -0
  14. data/docs/RoutesApi.md +208 -0
  15. data/docs/RoutesWrapper.md +10 -0
  16. data/docs/Task.md +16 -0
  17. data/docs/TaskWrapper.md +8 -0
  18. data/docs/TasksApi.md +57 -0
  19. data/docs/TasksWrapper.md +10 -0
  20. data/git_push.sh +67 -0
  21. data/iron_functions.gemspec +55 -0
  22. data/lib/iron_functions/api/apps_api.rb +262 -0
  23. data/lib/iron_functions/api/routes_api.rb +273 -0
  24. data/lib/iron_functions/api/tasks_api.rb +90 -0
  25. data/lib/iron_functions/api_client.rb +378 -0
  26. data/lib/iron_functions/api_error.rb +47 -0
  27. data/lib/iron_functions/configuration.rb +207 -0
  28. data/lib/iron_functions/models/app.rb +200 -0
  29. data/lib/iron_functions/models/app_wrapper.rb +200 -0
  30. data/lib/iron_functions/models/apps_wrapper.rb +202 -0
  31. data/lib/iron_functions/models/error.rb +199 -0
  32. data/lib/iron_functions/models/error_body.rb +208 -0
  33. data/lib/iron_functions/models/new_tasks_wrapper.rb +202 -0
  34. data/lib/iron_functions/models/route.rb +230 -0
  35. data/lib/iron_functions/models/route_wrapper.rb +200 -0
  36. data/lib/iron_functions/models/routes_wrapper.rb +221 -0
  37. data/lib/iron_functions/models/task.rb +315 -0
  38. data/lib/iron_functions/models/task_wrapper.rb +200 -0
  39. data/lib/iron_functions/models/tasks_wrapper.rb +221 -0
  40. data/lib/iron_functions/version.rb +26 -0
  41. data/lib/iron_functions.rb +65 -0
  42. data/spec/api/apps_api_spec.rb +94 -0
  43. data/spec/api/routes_api_spec.rb +97 -0
  44. data/spec/api/tasks_api_spec.rb +58 -0
  45. data/spec/api_client_spec.rb +237 -0
  46. data/spec/configuration_spec.rb +53 -0
  47. data/spec/models/app_spec.rb +53 -0
  48. data/spec/models/app_wrapper_spec.rb +53 -0
  49. data/spec/models/apps_wrapper_spec.rb +53 -0
  50. data/spec/models/error_body_spec.rb +59 -0
  51. data/spec/models/error_spec.rb +53 -0
  52. data/spec/models/new_tasks_wrapper_spec.rb +53 -0
  53. data/spec/models/route_spec.rb +71 -0
  54. data/spec/models/route_wrapper_spec.rb +53 -0
  55. data/spec/models/routes_wrapper_spec.rb +65 -0
  56. data/spec/models/task_spec.rb +105 -0
  57. data/spec/models/task_wrapper_spec.rb +53 -0
  58. data/spec/models/tasks_wrapper_spec.rb +65 -0
  59. data/spec/spec_helper.rb +122 -0
  60. metadata +300 -0
@@ -0,0 +1,53 @@
1
+ =begin
2
+ #IronFunctions
3
+
4
+ #null
5
+
6
+ OpenAPI spec version: 0.0.5
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ Licensed under the Apache License, Version 2.0 (the "License");
11
+ you may not use this file except in compliance with the License.
12
+ You may obtain a copy of the License at
13
+
14
+ http://www.apache.org/licenses/LICENSE-2.0
15
+
16
+ Unless required by applicable law or agreed to in writing, software
17
+ distributed under the License is distributed on an "AS IS" BASIS,
18
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ See the License for the specific language governing permissions and
20
+ limitations under the License.
21
+
22
+ =end
23
+
24
+ require 'spec_helper'
25
+ require 'json'
26
+ require 'date'
27
+
28
+ # Unit tests for IronFunctions::RouteWrapper
29
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
30
+ # Please update as you see appropriate
31
+ describe 'RouteWrapper' do
32
+ before do
33
+ # run before each test
34
+ @instance = IronFunctions::RouteWrapper.new
35
+ end
36
+
37
+ after do
38
+ # run after each test
39
+ end
40
+
41
+ describe 'test an instance of RouteWrapper' do
42
+ it 'should create an instact of RouteWrapper' do
43
+ expect(@instance).to be_instance_of(IronFunctions::RouteWrapper)
44
+ end
45
+ end
46
+ describe 'test attribute "route"' do
47
+ it 'should work' do
48
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
49
+ end
50
+ end
51
+
52
+ end
53
+
@@ -0,0 +1,65 @@
1
+ =begin
2
+ #IronFunctions
3
+
4
+ #null
5
+
6
+ OpenAPI spec version: 0.0.5
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ Licensed under the Apache License, Version 2.0 (the "License");
11
+ you may not use this file except in compliance with the License.
12
+ You may obtain a copy of the License at
13
+
14
+ http://www.apache.org/licenses/LICENSE-2.0
15
+
16
+ Unless required by applicable law or agreed to in writing, software
17
+ distributed under the License is distributed on an "AS IS" BASIS,
18
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ See the License for the specific language governing permissions and
20
+ limitations under the License.
21
+
22
+ =end
23
+
24
+ require 'spec_helper'
25
+ require 'json'
26
+ require 'date'
27
+
28
+ # Unit tests for IronFunctions::RoutesWrapper
29
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
30
+ # Please update as you see appropriate
31
+ describe 'RoutesWrapper' do
32
+ before do
33
+ # run before each test
34
+ @instance = IronFunctions::RoutesWrapper.new
35
+ end
36
+
37
+ after do
38
+ # run after each test
39
+ end
40
+
41
+ describe 'test an instance of RoutesWrapper' do
42
+ it 'should create an instact of RoutesWrapper' do
43
+ expect(@instance).to be_instance_of(IronFunctions::RoutesWrapper)
44
+ end
45
+ end
46
+ describe 'test attribute "routes"' do
47
+ it 'should work' do
48
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
49
+ end
50
+ end
51
+
52
+ describe 'test attribute "cursor"' do
53
+ it 'should work' do
54
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
55
+ end
56
+ end
57
+
58
+ describe 'test attribute "error"' do
59
+ it 'should work' do
60
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
61
+ end
62
+ end
63
+
64
+ end
65
+
@@ -0,0 +1,105 @@
1
+ =begin
2
+ #IronFunctions
3
+
4
+ #null
5
+
6
+ OpenAPI spec version: 0.0.5
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ Licensed under the Apache License, Version 2.0 (the "License");
11
+ you may not use this file except in compliance with the License.
12
+ You may obtain a copy of the License at
13
+
14
+ http://www.apache.org/licenses/LICENSE-2.0
15
+
16
+ Unless required by applicable law or agreed to in writing, software
17
+ distributed under the License is distributed on an "AS IS" BASIS,
18
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ See the License for the specific language governing permissions and
20
+ limitations under the License.
21
+
22
+ =end
23
+
24
+ require 'spec_helper'
25
+ require 'json'
26
+ require 'date'
27
+
28
+ # Unit tests for IronFunctions::Task
29
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
30
+ # Please update as you see appropriate
31
+ describe 'Task' do
32
+ before do
33
+ # run before each test
34
+ @instance = IronFunctions::Task.new
35
+ end
36
+
37
+ after do
38
+ # run after each test
39
+ end
40
+
41
+ describe 'test an instance of Task' do
42
+ it 'should create an instact of Task' do
43
+ expect(@instance).to be_instance_of(IronFunctions::Task)
44
+ end
45
+ end
46
+ describe 'test attribute "group_name"' do
47
+ it 'should work' do
48
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
49
+ end
50
+ end
51
+
52
+ describe 'test attribute "error"' do
53
+ it 'should work' do
54
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
55
+ end
56
+ end
57
+
58
+ describe 'test attribute "reason"' do
59
+ it 'should work' do
60
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
61
+ #validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["timeout", "killed", "bad_exit", "client_request"])
62
+ #validator.allowable_values.each do |value|
63
+ # expect { @instance.reason = value }.not_to raise_error
64
+ #end
65
+ end
66
+ end
67
+
68
+ describe 'test attribute "created_at"' do
69
+ it 'should work' do
70
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
71
+ end
72
+ end
73
+
74
+ describe 'test attribute "started_at"' do
75
+ it 'should work' do
76
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
77
+ end
78
+ end
79
+
80
+ describe 'test attribute "completed_at"' do
81
+ it 'should work' do
82
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
83
+ end
84
+ end
85
+
86
+ describe 'test attribute "retry_of"' do
87
+ it 'should work' do
88
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
89
+ end
90
+ end
91
+
92
+ describe 'test attribute "retry_at"' do
93
+ it 'should work' do
94
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
95
+ end
96
+ end
97
+
98
+ describe 'test attribute "env_vars"' do
99
+ it 'should work' do
100
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
101
+ end
102
+ end
103
+
104
+ end
105
+
@@ -0,0 +1,53 @@
1
+ =begin
2
+ #IronFunctions
3
+
4
+ #null
5
+
6
+ OpenAPI spec version: 0.0.5
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ Licensed under the Apache License, Version 2.0 (the "License");
11
+ you may not use this file except in compliance with the License.
12
+ You may obtain a copy of the License at
13
+
14
+ http://www.apache.org/licenses/LICENSE-2.0
15
+
16
+ Unless required by applicable law or agreed to in writing, software
17
+ distributed under the License is distributed on an "AS IS" BASIS,
18
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ See the License for the specific language governing permissions and
20
+ limitations under the License.
21
+
22
+ =end
23
+
24
+ require 'spec_helper'
25
+ require 'json'
26
+ require 'date'
27
+
28
+ # Unit tests for IronFunctions::TaskWrapper
29
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
30
+ # Please update as you see appropriate
31
+ describe 'TaskWrapper' do
32
+ before do
33
+ # run before each test
34
+ @instance = IronFunctions::TaskWrapper.new
35
+ end
36
+
37
+ after do
38
+ # run after each test
39
+ end
40
+
41
+ describe 'test an instance of TaskWrapper' do
42
+ it 'should create an instact of TaskWrapper' do
43
+ expect(@instance).to be_instance_of(IronFunctions::TaskWrapper)
44
+ end
45
+ end
46
+ describe 'test attribute "task"' do
47
+ it 'should work' do
48
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
49
+ end
50
+ end
51
+
52
+ end
53
+
@@ -0,0 +1,65 @@
1
+ =begin
2
+ #IronFunctions
3
+
4
+ #null
5
+
6
+ OpenAPI spec version: 0.0.5
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ Licensed under the Apache License, Version 2.0 (the "License");
11
+ you may not use this file except in compliance with the License.
12
+ You may obtain a copy of the License at
13
+
14
+ http://www.apache.org/licenses/LICENSE-2.0
15
+
16
+ Unless required by applicable law or agreed to in writing, software
17
+ distributed under the License is distributed on an "AS IS" BASIS,
18
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ See the License for the specific language governing permissions and
20
+ limitations under the License.
21
+
22
+ =end
23
+
24
+ require 'spec_helper'
25
+ require 'json'
26
+ require 'date'
27
+
28
+ # Unit tests for IronFunctions::TasksWrapper
29
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
30
+ # Please update as you see appropriate
31
+ describe 'TasksWrapper' do
32
+ before do
33
+ # run before each test
34
+ @instance = IronFunctions::TasksWrapper.new
35
+ end
36
+
37
+ after do
38
+ # run after each test
39
+ end
40
+
41
+ describe 'test an instance of TasksWrapper' do
42
+ it 'should create an instact of TasksWrapper' do
43
+ expect(@instance).to be_instance_of(IronFunctions::TasksWrapper)
44
+ end
45
+ end
46
+ describe 'test attribute "tasks"' do
47
+ it 'should work' do
48
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
49
+ end
50
+ end
51
+
52
+ describe 'test attribute "cursor"' do
53
+ it 'should work' do
54
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
55
+ end
56
+ end
57
+
58
+ describe 'test attribute "error"' do
59
+ it 'should work' do
60
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
61
+ end
62
+ end
63
+
64
+ end
65
+
@@ -0,0 +1,122 @@
1
+ =begin
2
+ #IronFunctions
3
+
4
+ #null
5
+
6
+ OpenAPI spec version: 0.0.5
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ Licensed under the Apache License, Version 2.0 (the "License");
11
+ you may not use this file except in compliance with the License.
12
+ You may obtain a copy of the License at
13
+
14
+ http://www.apache.org/licenses/LICENSE-2.0
15
+
16
+ Unless required by applicable law or agreed to in writing, software
17
+ distributed under the License is distributed on an "AS IS" BASIS,
18
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ See the License for the specific language governing permissions and
20
+ limitations under the License.
21
+
22
+ =end
23
+
24
+ # load the gem
25
+ require 'iron_functions'
26
+
27
+ # The following was generated by the `rspec --init` command. Conventionally, all
28
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
29
+ # The generated `.rspec` file contains `--require spec_helper` which will cause
30
+ # this file to always be loaded, without a need to explicitly require it in any
31
+ # files.
32
+ #
33
+ # Given that it is always loaded, you are encouraged to keep this file as
34
+ # light-weight as possible. Requiring heavyweight dependencies from this file
35
+ # will add to the boot time of your test suite on EVERY test run, even for an
36
+ # individual file that may not need all of that loaded. Instead, consider making
37
+ # a separate helper file that requires the additional dependencies and performs
38
+ # the additional setup, and require it from the spec files that actually need
39
+ # it.
40
+ #
41
+ # The `.rspec` file also contains a few flags that are not defaults but that
42
+ # users commonly want.
43
+ #
44
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
45
+ RSpec.configure do |config|
46
+ # rspec-expectations config goes here. You can use an alternate
47
+ # assertion/expectation library such as wrong or the stdlib/minitest
48
+ # assertions if you prefer.
49
+ config.expect_with :rspec do |expectations|
50
+ # This option will default to `true` in RSpec 4. It makes the `description`
51
+ # and `failure_message` of custom matchers include text for helper methods
52
+ # defined using `chain`, e.g.:
53
+ # be_bigger_than(2).and_smaller_than(4).description
54
+ # # => "be bigger than 2 and smaller than 4"
55
+ # ...rather than:
56
+ # # => "be bigger than 2"
57
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
58
+ end
59
+
60
+ # rspec-mocks config goes here. You can use an alternate test double
61
+ # library (such as bogus or mocha) by changing the `mock_with` option here.
62
+ config.mock_with :rspec do |mocks|
63
+ # Prevents you from mocking or stubbing a method that does not exist on
64
+ # a real object. This is generally recommended, and will default to
65
+ # `true` in RSpec 4.
66
+ mocks.verify_partial_doubles = true
67
+ end
68
+
69
+ # The settings below are suggested to provide a good initial experience
70
+ # with RSpec, but feel free to customize to your heart's content.
71
+ =begin
72
+ # These two settings work together to allow you to limit a spec run
73
+ # to individual examples or groups you care about by tagging them with
74
+ # `:focus` metadata. When nothing is tagged with `:focus`, all examples
75
+ # get run.
76
+ config.filter_run :focus
77
+ config.run_all_when_everything_filtered = true
78
+
79
+ # Allows RSpec to persist some state between runs in order to support
80
+ # the `--only-failures` and `--next-failure` CLI options. We recommend
81
+ # you configure your source control system to ignore this file.
82
+ config.example_status_persistence_file_path = "spec/examples.txt"
83
+
84
+ # Limits the available syntax to the non-monkey patched syntax that is
85
+ # recommended. For more details, see:
86
+ # - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/
87
+ # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
88
+ # - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode
89
+ config.disable_monkey_patching!
90
+
91
+ # This setting enables warnings. It's recommended, but in some cases may
92
+ # be too noisy due to issues in dependencies.
93
+ config.warnings = true
94
+
95
+ # Many RSpec users commonly either run the entire suite or an individual
96
+ # file, and it's useful to allow more verbose output when running an
97
+ # individual spec file.
98
+ if config.files_to_run.one?
99
+ # Use the documentation formatter for detailed output,
100
+ # unless a formatter has already been configured
101
+ # (e.g. via a command-line flag).
102
+ config.default_formatter = 'doc'
103
+ end
104
+
105
+ # Print the 10 slowest examples and example groups at the
106
+ # end of the spec run, to help surface which specs are running
107
+ # particularly slow.
108
+ config.profile_examples = 10
109
+
110
+ # Run specs in random order to surface order dependencies. If you find an
111
+ # order dependency and want to debug it, you can fix the order by providing
112
+ # the seed, which is printed after each run.
113
+ # --seed 1234
114
+ config.order = :random
115
+
116
+ # Seed global randomization in this process using the `--seed` CLI option.
117
+ # Setting this allows you to use `--seed` to deterministically reproduce
118
+ # test failures related to randomization by passing the same `--seed` value
119
+ # as the one that triggered the failure.
120
+ Kernel.srand config.seed
121
+ =end
122
+ end