vantage-client 0.0.6 → 0.1.0.beta.2

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 (52) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +70 -0
  3. data/README.md +121 -61
  4. data/docs/Cost.md +11 -0
  5. data/docs/Costs.md +11 -0
  6. data/docs/CostsApi.md +177 -0
  7. data/docs/PingApi.md +5 -4
  8. data/docs/PricesApi.md +30 -7
  9. data/docs/Report.md +13 -0
  10. data/docs/Reports.md +9 -0
  11. data/lib/vantage-client.rb +6 -1
  12. data/lib/vantage-client/api/costs_api.rb +185 -0
  13. data/lib/vantage-client/api/ping_api.rb +9 -8
  14. data/lib/vantage-client/api/prices_api.rb +25 -1
  15. data/lib/vantage-client/api_client.rb +1 -1
  16. data/lib/vantage-client/api_error.rb +1 -1
  17. data/lib/vantage-client/configuration.rb +1 -1
  18. data/lib/vantage-client/models/cost.rb +215 -0
  19. data/lib/vantage-client/models/costs.rb +216 -0
  20. data/lib/vantage-client/models/price.rb +1 -1
  21. data/lib/vantage-client/models/prices.rb +1 -1
  22. data/lib/vantage-client/models/product.rb +1 -1
  23. data/lib/vantage-client/models/products.rb +1 -1
  24. data/lib/vantage-client/models/provider.rb +1 -1
  25. data/lib/vantage-client/models/providers.rb +1 -1
  26. data/lib/vantage-client/models/report.rb +235 -0
  27. data/lib/vantage-client/models/reports.rb +196 -0
  28. data/lib/vantage-client/models/service.rb +1 -1
  29. data/lib/vantage-client/models/services.rb +1 -1
  30. data/lib/vantage-client/version.rb +2 -2
  31. data/spec/.DS_Store +0 -0
  32. data/spec/api/costs_api_spec.rb +73 -0
  33. data/spec/api/ping_api_spec.rb +3 -3
  34. data/spec/api/prices_api_spec.rb +9 -1
  35. data/spec/api_client_spec.rb +1 -1
  36. data/spec/configuration_spec.rb +1 -1
  37. data/spec/models/cost_spec.rb +59 -0
  38. data/spec/models/costs_spec.rb +59 -0
  39. data/spec/models/price_spec.rb +1 -1
  40. data/spec/models/prices_spec.rb +1 -1
  41. data/spec/models/product_spec.rb +1 -1
  42. data/spec/models/products_spec.rb +1 -1
  43. data/spec/models/provider_spec.rb +1 -1
  44. data/spec/models/providers_spec.rb +1 -1
  45. data/spec/models/report_spec.rb +71 -0
  46. data/spec/models/reports_spec.rb +47 -0
  47. data/spec/models/service_spec.rb +1 -1
  48. data/spec/models/services_spec.rb +1 -1
  49. data/spec/spec_helper.rb +1 -1
  50. data/vantage-client-0.1.0.beta.1.gem +0 -0
  51. data/vantage-client.gemspec +1 -1
  52. metadata +27 -4
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 1.0.0
7
7
  Contact: support@vantage.sh
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.19
9
+ Swagger Codegen version: 2.4.21
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 1.0.0
7
7
  Contact: support@vantage.sh
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.19
9
+ Swagger Codegen version: 2.4.21
10
10
 
11
11
  =end
12
12
 
@@ -6,10 +6,10 @@
6
6
  OpenAPI spec version: 1.0.0
7
7
  Contact: support@vantage.sh
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.19
9
+ Swagger Codegen version: 2.4.21
10
10
 
11
11
  =end
12
12
 
13
13
  module Vantage
14
- VERSION = '0.0.6'
14
+ VERSION = '0.1.0.beta.2'
15
15
  end
data/spec/.DS_Store ADDED
Binary file
@@ -0,0 +1,73 @@
1
+ =begin
2
+ #Vantage
3
+
4
+ #Vantage API
5
+
6
+ OpenAPI spec version: 1.0.0
7
+ Contact: support@vantage.sh
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.21
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for Vantage::CostsApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'CostsApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = Vantage::CostsApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of CostsApi' do
30
+ it 'should create an instance of CostsApi' do
31
+ expect(@instance).to be_instance_of(Vantage::CostsApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for get_costs
36
+ # Return available Costs for the specified Cost Report and optional time period. If no time period is specified it will return all available costs for the report.
37
+ # @param report_id
38
+ # @param [Hash] opts the optional parameters
39
+ # @option opts [String] :start_date Query costs by the first date you would like to filter from. ISO 8601 Formatted - 2021-07-15 or 2021-07-15T19:20:48+00:00.
40
+ # @option opts [String] :end_date Query costs by the last date you would like to filter to. ISO 8601 Formatted - 2021-07-15 or 2021-07-15T19:20:48+00:00.
41
+ # @option opts [Integer] :page The page of results to return.
42
+ # @option opts [Integer] :limit The amount of results to return. The maximum is 1000
43
+ # @return [Costs]
44
+ describe 'get_costs test' do
45
+ it 'should work' do
46
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
47
+ end
48
+ end
49
+
50
+ # unit tests for get_report
51
+ # Return a Cost Report.
52
+ # @param report_id
53
+ # @param [Hash] opts the optional parameters
54
+ # @return [Report]
55
+ describe 'get_report test' do
56
+ it 'should work' do
57
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
58
+ end
59
+ end
60
+
61
+ # unit tests for get_reports
62
+ # Return all Cost Reports.
63
+ # @param [Hash] opts the optional parameters
64
+ # @option opts [Integer] :page The page of results to return.
65
+ # @option opts [Integer] :limit The amount of results to return. The maximum is 1000
66
+ # @return [Reports]
67
+ describe 'get_reports test' do
68
+ it 'should work' do
69
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
70
+ end
71
+ end
72
+
73
+ end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 1.0.0
7
7
  Contact: support@vantage.sh
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.19
9
+ Swagger Codegen version: 2.4.21
10
10
 
11
11
  =end
12
12
 
@@ -33,9 +33,9 @@ describe 'PingApi' do
33
33
  end
34
34
 
35
35
  # unit tests for ping
36
- # This is a health check endpoint that can be used to determine Vantage API healthiness. It will return a 200 success with the raw text of \"pong\" if everything is running smoothly.
36
+ # This is a health check endpoint that can be used to determine Vantage API healthiness. It will return 200 if everything is running smoothly.
37
37
  # @param [Hash] opts the optional parameters
38
- # @return [nil]
38
+ # @return [Object]
39
39
  describe 'ping test' do
40
40
  it 'should work' do
41
41
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 1.0.0
7
7
  Contact: support@vantage.sh
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.19
9
+ Swagger Codegen version: 2.4.21
10
10
 
11
11
  =end
12
12
 
@@ -48,6 +48,8 @@ describe 'PricesApi' do
48
48
  # Return available Prices across all Regions for a Product.
49
49
  # @param product_id
50
50
  # @param [Hash] opts the optional parameters
51
+ # @option opts [Integer] :page The page of results to return.
52
+ # @option opts [Integer] :limit The amount of results to return. The maximum is 1000
51
53
  # @return [Prices]
52
54
  describe 'get_prices test' do
53
55
  it 'should work' do
@@ -72,6 +74,8 @@ describe 'PricesApi' do
72
74
  # @option opts [String] :provider_id Query by Provider to list all Products across all Services for a Provider. e.g. aws
73
75
  # @option opts [String] :service_id Query by Service to list all Products for a specific provider service. e.g. aws-ec2
74
76
  # @option opts [String] :name Query by name of the Product to see a list of products which match that name. e.g. m5a.16xlarge
77
+ # @option opts [Integer] :page The page of results to return.
78
+ # @option opts [Integer] :limit The amount of results to return. The maximum is 1000
75
79
  # @return [Products]
76
80
  describe 'get_products test' do
77
81
  it 'should work' do
@@ -82,6 +86,8 @@ describe 'PricesApi' do
82
86
  # unit tests for get_providers
83
87
  # Providers are cloud infrastructure and service providers from which all cloud prices are derived. You can think of example Providers as being AWS, GCP, Cloudflare or Datadog. Currently, Vantage only supports a single provider of AWS but over time more will be added. Use this endpoint to retrieve a provider id for other API calls.
84
88
  # @param [Hash] opts the optional parameters
89
+ # @option opts [Integer] :page The page of results to return.
90
+ # @option opts [Integer] :limit The amount of results to return. The maximum is 1000
85
91
  # @return [Providers]
86
92
  describe 'get_providers test' do
87
93
  it 'should work' do
@@ -93,6 +99,8 @@ describe 'PricesApi' do
93
99
  # Return all Services. Examples of Services are EC2 for AWS. This endpoint will return all Services by default but you have the ability to filter Services by Provider using the optional query parameter documented below.
94
100
  # @param [Hash] opts the optional parameters
95
101
  # @option opts [String] :provider_id Query services for a specific provider. e.g. aws
102
+ # @option opts [Integer] :page The page of results to return.
103
+ # @option opts [Integer] :limit The amount of results to return. The maximum is 1000
96
104
  # @return [Services]
97
105
  describe 'get_services test' do
98
106
  it 'should work' do
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 1.0.0
7
7
  Contact: support@vantage.sh
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.19
9
+ Swagger Codegen version: 2.4.21
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 1.0.0
7
7
  Contact: support@vantage.sh
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.19
9
+ Swagger Codegen version: 2.4.21
10
10
 
11
11
  =end
12
12
 
@@ -0,0 +1,59 @@
1
+ =begin
2
+ #Vantage
3
+
4
+ #Vantage API
5
+
6
+ OpenAPI spec version: 1.0.0
7
+ Contact: support@vantage.sh
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.21
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for Vantage::Cost
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'Cost' do
21
+ before do
22
+ # run before each test
23
+ @instance = Vantage::Cost.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of Cost' do
31
+ it 'should create an instance of Cost' do
32
+ expect(@instance).to be_instance_of(Vantage::Cost)
33
+ end
34
+ end
35
+ describe 'test attribute "accrued_at"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "amount"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ describe 'test attribute "provider"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
53
+ describe 'test attribute "service"' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
59
+ end
@@ -0,0 +1,59 @@
1
+ =begin
2
+ #Vantage
3
+
4
+ #Vantage API
5
+
6
+ OpenAPI spec version: 1.0.0
7
+ Contact: support@vantage.sh
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.21
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for Vantage::Costs
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'Costs' do
21
+ before do
22
+ # run before each test
23
+ @instance = Vantage::Costs.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of Costs' do
31
+ it 'should create an instance of Costs' do
32
+ expect(@instance).to be_instance_of(Vantage::Costs)
33
+ end
34
+ end
35
+ describe 'test attribute "links"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "total"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ describe 'test attribute "currency"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
53
+ describe 'test attribute "costs"' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
59
+ end
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 1.0.0
7
7
  Contact: support@vantage.sh
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.19
9
+ Swagger Codegen version: 2.4.21
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 1.0.0
7
7
  Contact: support@vantage.sh
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.19
9
+ Swagger Codegen version: 2.4.21
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 1.0.0
7
7
  Contact: support@vantage.sh
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.19
9
+ Swagger Codegen version: 2.4.21
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 1.0.0
7
7
  Contact: support@vantage.sh
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.19
9
+ Swagger Codegen version: 2.4.21
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 1.0.0
7
7
  Contact: support@vantage.sh
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.19
9
+ Swagger Codegen version: 2.4.21
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 1.0.0
7
7
  Contact: support@vantage.sh
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.19
9
+ Swagger Codegen version: 2.4.21
10
10
 
11
11
  =end
12
12
 
@@ -0,0 +1,71 @@
1
+ =begin
2
+ #Vantage
3
+
4
+ #Vantage API
5
+
6
+ OpenAPI spec version: 1.0.0
7
+ Contact: support@vantage.sh
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.21
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for Vantage::Report
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'Report' do
21
+ before do
22
+ # run before each test
23
+ @instance = Vantage::Report.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of Report' do
31
+ it 'should create an instance of Report' do
32
+ expect(@instance).to be_instance_of(Vantage::Report)
33
+ end
34
+ end
35
+ describe 'test attribute "id"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "title"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ describe 'test attribute "earliest_cost_date"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
53
+ describe 'test attribute "latest_cost_date"' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
59
+ describe 'test attribute "created_at"' do
60
+ it 'should work' do
61
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
+ end
63
+ end
64
+
65
+ describe 'test attribute "workspace"' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ end
69
+ end
70
+
71
+ end