allq_rest 1.5.1 → 2.0.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.
Files changed (69) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +36 -97
  3. data/lib/allq_rest/client.rb +168 -0
  4. data/lib/allq_rest/configuration.rb +7 -192
  5. data/lib/allq_rest/errors.rb +17 -0
  6. data/lib/allq_rest/job.rb +10 -0
  7. data/lib/allq_rest/version.rb +2 -14
  8. data/lib/allq_rest.rb +21 -46
  9. data/swagger.yaml +706 -0
  10. metadata +32 -115
  11. data/Gemfile +0 -7
  12. data/Gemfile.lock +0 -42
  13. data/Rakefile +0 -8
  14. data/allq_rest-1.2.92.gem +0 -0
  15. data/allq_rest-1.2.93.gem +0 -0
  16. data/allq_rest-1.3.0.gem +0 -0
  17. data/allq_rest-1.4.0.gem +0 -0
  18. data/allq_rest-1.5.0.gem +0 -0
  19. data/allq_rest.gemspec +0 -28
  20. data/deploy.sh +0 -4
  21. data/docs/ActionsApi.md +0 -544
  22. data/docs/AdminApi.md +0 -98
  23. data/docs/BasicPayload.md +0 -11
  24. data/docs/BasicResponse.md +0 -8
  25. data/docs/JobRef.md +0 -8
  26. data/docs/JobResponse.md +0 -12
  27. data/docs/NewJob.md +0 -13
  28. data/docs/NewParentJob.md +0 -16
  29. data/docs/StatsInfo.md +0 -9
  30. data/docs/StatsResults.md +0 -10
  31. data/docs/StatsTube.md +0 -14
  32. data/docs/Throttle.md +0 -9
  33. data/docs/TubeRef.md +0 -8
  34. data/git_push.sh +0 -55
  35. data/lib/.DS_Store +0 -0
  36. data/lib/allq_rest/.DS_Store +0 -0
  37. data/lib/allq_rest/api/actions_api.rb +0 -763
  38. data/lib/allq_rest/api/admin_api.rb +0 -181
  39. data/lib/allq_rest/api_client.rb +0 -395
  40. data/lib/allq_rest/api_error.rb +0 -38
  41. data/lib/allq_rest/models/basic_payload.rb +0 -218
  42. data/lib/allq_rest/models/basic_response.rb +0 -188
  43. data/lib/allq_rest/models/job_ref.rb +0 -190
  44. data/lib/allq_rest/models/job_response.rb +0 -260
  45. data/lib/allq_rest/models/multiple_job_response.rb +0 -187
  46. data/lib/allq_rest/models/new_job.rb +0 -281
  47. data/lib/allq_rest/models/new_parent_job.rb +0 -302
  48. data/lib/allq_rest/models/stats_info.rb +0 -204
  49. data/lib/allq_rest/models/stats_results.rb +0 -254
  50. data/lib/allq_rest/models/stats_tube.rb +0 -306
  51. data/lib/allq_rest/models/throttle.rb +0 -209
  52. data/lib/allq_rest/models/tube_ref.rb +0 -190
  53. data/spec/.DS_Store +0 -0
  54. data/spec/api/actions_api_spec.rb +0 -600
  55. data/spec/api/admin_api_spec.rb +0 -58
  56. data/spec/api_client_spec.rb +0 -226
  57. data/spec/configuration_spec.rb +0 -42
  58. data/spec/models/basic_payload_spec.rb +0 -60
  59. data/spec/models/basic_response_spec.rb +0 -42
  60. data/spec/models/job_ref_spec.rb +0 -42
  61. data/spec/models/job_response_spec.rb +0 -66
  62. data/spec/models/new_job_spec.rb +0 -72
  63. data/spec/models/new_parent_job_spec.rb +0 -90
  64. data/spec/models/stats_info_spec.rb +0 -48
  65. data/spec/models/stats_results_spec.rb +0 -54
  66. data/spec/models/stats_tube_spec.rb +0 -78
  67. data/spec/models/throttle_spec.rb +0 -48
  68. data/spec/models/tube_ref_spec.rb +0 -42
  69. data/spec/spec_helper.rb +0 -113
data/docs/StatsResults.md DELETED
@@ -1,10 +0,0 @@
1
- # Allq::StatsResults
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **server_name** | **String** | ID of server |
7
- **stats** | [**Array<StatsTube>**](StatsTube.md) | Array of server instances |
8
- **action_count** | **Integer** | Total actions taken on server |
9
-
10
-
data/docs/StatsTube.md DELETED
@@ -1,14 +0,0 @@
1
- # Allq::StatsTube
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **ready** | **Integer** | Count of ready jobs | [default to 0]
7
- **delayed** | **Integer** | Count of delayed jobs | [default to 0]
8
- **reserved** | **Integer** | Count of reserved jobs | [default to 0]
9
- **buried** | **Integer** | Count of buried jobs | [default to 0]
10
- **parents** | **Integer** | Count of parent jobs | [default to 0]
11
- **throttle_size** | **Integer** | TPS of throttle | [optional]
12
- **tube** | **String** | Name of tube |
13
-
14
-
data/docs/Throttle.md DELETED
@@ -1,9 +0,0 @@
1
- # Allq::Throttle
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **tube** | **String** | Name of tube | [default to "default"]
7
- **tps** | **Integer** | Transactions per second | [default to 1000]
8
-
9
-
data/docs/TubeRef.md DELETED
@@ -1,8 +0,0 @@
1
- # Allq::TubeRef
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **tube** | **String** | Name of tube |
7
-
8
-
data/git_push.sh DELETED
@@ -1,55 +0,0 @@
1
- #!/bin/sh
2
- #
3
- # Generated by: https://github.com/swagger-api/swagger-codegen.git
4
- #
5
- # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
6
- #
7
- # Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
8
-
9
- git_user_id=$1
10
- git_repo_id=$2
11
- release_note=$3
12
-
13
- if [ "$git_user_id" = "" ]; then
14
- git_user_id=""
15
- echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
16
- fi
17
-
18
- if [ "$git_repo_id" = "" ]; then
19
- git_repo_id=""
20
- echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
21
- fi
22
-
23
- if [ "$release_note" = "" ]; then
24
- release_note=""
25
- echo "[INFO] No command line input provided. Set \$release_note to $release_note"
26
- fi
27
-
28
- # Initialize the local directory as a Git repository
29
- git init
30
-
31
- # Adds the files in the local repository and stages them for commit.
32
- git add .
33
-
34
- # Commits the tracked changes and prepares them to be pushed to a remote repository.
35
- git commit -m "$release_note"
36
-
37
- # Sets the new remote
38
- git_remote=`git remote`
39
- if [ "$git_remote" = "" ]; then # git remote not defined
40
-
41
- if [ "$GIT_TOKEN" = "" ]; then
42
- echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
43
- git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
44
- else
45
- git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
46
- fi
47
-
48
- fi
49
-
50
- git pull origin master
51
-
52
- # Pushes (Forces) the changes in the local repository up to the remote repository
53
- echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
54
- git push origin master 2>&1 | grep -v 'To https'
55
-
data/lib/.DS_Store DELETED
Binary file
Binary file