vantage-client 0.0.5 → 0.0.6
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 +4 -4
- data/README.md +4 -4
- data/docs/PricesApi.md +6 -6
- data/docs/Product.md +1 -0
- data/lib/vantage-client/api/prices_api.rb +6 -6
- data/lib/vantage-client/models/product.rb +14 -4
- data/lib/vantage-client/version.rb +1 -1
- data/spec/api/prices_api_spec.rb +3 -3
- data/spec/models/product_spec.rb +6 -0
- metadata +1 -7
- data/vantage-client-0.0.1.beta.1.gem +0 -0
- data/vantage-client-0.0.1.gem +0 -0
- data/vantage-client-0.0.1.pre.gem +0 -0
- data/vantage-client-0.0.2.gem +0 -0
- data/vantage-client-0.0.3.gem +0 -0
- data/vantage-client-0.0.4.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 243fe9208fe7924d332f6f03b25564d991e66b3d039408005493ac4c7dbfe107
|
4
|
+
data.tar.gz: 5fc8d08e8ea14bb6653733e7fea7e8628ee41949923e4f64d1615e73284fdf77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3792d480fac0f037811c53328b460da141a7c6f98b00b0d234a65e013d6bab9e36e9b933fbd2612b825e35e7a2a53b8e74562b287d46f1a46d7fead501fd57c3
|
7
|
+
data.tar.gz: 24dc77ecc924688bbd0a807339157acd02eceade6e43304ca67cf20d92b9c0d1579b8b7f94ca56466498eadc8a1f63423c22526d4783ab28916f3537b3e1b864
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ Vantage API
|
|
7
7
|
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
8
8
|
|
9
9
|
- API version: 1.0.0
|
10
|
-
- Package version: 0.0.
|
10
|
+
- Package version: 0.0.6
|
11
11
|
- Build package: io.swagger.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [https://www.vantage.sh](https://www.vantage.sh)
|
13
13
|
|
@@ -24,15 +24,15 @@ gem build vantage-client.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./vantage-client-0.0.
|
27
|
+
gem install ./vantage-client-0.0.6.gem
|
28
28
|
```
|
29
|
-
(for development, run `gem install --dev ./vantage-client-0.0.
|
29
|
+
(for development, run `gem install --dev ./vantage-client-0.0.6.gem` to install the development dependencies)
|
30
30
|
|
31
31
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
32
32
|
|
33
33
|
Finally add this to the Gemfile:
|
34
34
|
|
35
|
-
gem 'vantage-client', '~> 0.0.
|
35
|
+
gem 'vantage-client', '~> 0.0.6'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
data/docs/PricesApi.md
CHANGED
@@ -33,7 +33,7 @@ api_instance = Vantage::PricesApi.new
|
|
33
33
|
|
34
34
|
product_id = 'product_id_example' # String |
|
35
35
|
|
36
|
-
id = 'id_example' # String |
|
36
|
+
id = 'id_example' # String |
|
37
37
|
|
38
38
|
|
39
39
|
begin
|
@@ -49,7 +49,7 @@ end
|
|
49
49
|
Name | Type | Description | Notes
|
50
50
|
------------- | ------------- | ------------- | -------------
|
51
51
|
**product_id** | **String**| |
|
52
|
-
**id** | **String**|
|
52
|
+
**id** | **String**| |
|
53
53
|
|
54
54
|
### Return type
|
55
55
|
|
@@ -85,7 +85,7 @@ end
|
|
85
85
|
|
86
86
|
api_instance = Vantage::PricesApi.new
|
87
87
|
|
88
|
-
product_id = 'product_id_example' # String |
|
88
|
+
product_id = 'product_id_example' # String |
|
89
89
|
|
90
90
|
|
91
91
|
begin
|
@@ -100,7 +100,7 @@ end
|
|
100
100
|
|
101
101
|
Name | Type | Description | Notes
|
102
102
|
------------- | ------------- | ------------- | -------------
|
103
|
-
**product_id** | **String**|
|
103
|
+
**product_id** | **String**| |
|
104
104
|
|
105
105
|
### Return type
|
106
106
|
|
@@ -136,7 +136,7 @@ end
|
|
136
136
|
|
137
137
|
api_instance = Vantage::PricesApi.new
|
138
138
|
|
139
|
-
id = 'id_example' # String |
|
139
|
+
id = 'id_example' # String |
|
140
140
|
|
141
141
|
|
142
142
|
begin
|
@@ -151,7 +151,7 @@ end
|
|
151
151
|
|
152
152
|
Name | Type | Description | Notes
|
153
153
|
------------- | ------------- | ------------- | -------------
|
154
|
-
**id** | **String**|
|
154
|
+
**id** | **String**| |
|
155
155
|
|
156
156
|
### Return type
|
157
157
|
|
data/docs/Product.md
CHANGED
@@ -8,5 +8,6 @@ Name | Type | Description | Notes
|
|
8
8
|
**name** | **String** | The common name of the product. | [optional]
|
9
9
|
**service_id** | **String** | A unique slug for the service the product belongs to. | [optional]
|
10
10
|
**provider_id** | **String** | A unique slug for the provider the product belongs to. | [optional]
|
11
|
+
**details** | **Object** | An object of metadata about the product. | [optional]
|
11
12
|
|
12
13
|
|
@@ -21,7 +21,7 @@ module Vantage
|
|
21
21
|
end
|
22
22
|
# Returns a price
|
23
23
|
# @param product_id
|
24
|
-
# @param id
|
24
|
+
# @param id
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
26
|
# @return [Price]
|
27
27
|
def get_price(product_id, id, opts = {})
|
@@ -31,7 +31,7 @@ module Vantage
|
|
31
31
|
|
32
32
|
# Returns a price
|
33
33
|
# @param product_id
|
34
|
-
# @param id
|
34
|
+
# @param id
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
36
|
# @return [Array<(Price, Fixnum, Hash)>] Price data, response status code and response headers
|
37
37
|
def get_price_with_http_info(product_id, id, opts = {})
|
@@ -76,7 +76,7 @@ module Vantage
|
|
76
76
|
return data, status_code, headers
|
77
77
|
end
|
78
78
|
# Return available Prices across all Regions for a Product.
|
79
|
-
# @param product_id
|
79
|
+
# @param product_id
|
80
80
|
# @param [Hash] opts the optional parameters
|
81
81
|
# @return [Prices]
|
82
82
|
def get_prices(product_id, opts = {})
|
@@ -85,7 +85,7 @@ module Vantage
|
|
85
85
|
end
|
86
86
|
|
87
87
|
# Return available Prices across all Regions for a Product.
|
88
|
-
# @param product_id
|
88
|
+
# @param product_id
|
89
89
|
# @param [Hash] opts the optional parameters
|
90
90
|
# @return [Array<(Prices, Fixnum, Hash)>] Prices data, response status code and response headers
|
91
91
|
def get_prices_with_http_info(product_id, opts = {})
|
@@ -126,7 +126,7 @@ module Vantage
|
|
126
126
|
return data, status_code, headers
|
127
127
|
end
|
128
128
|
# Return a product
|
129
|
-
# @param id
|
129
|
+
# @param id
|
130
130
|
# @param [Hash] opts the optional parameters
|
131
131
|
# @return [Product]
|
132
132
|
def get_product(id, opts = {})
|
@@ -135,7 +135,7 @@ module Vantage
|
|
135
135
|
end
|
136
136
|
|
137
137
|
# Return a product
|
138
|
-
# @param id
|
138
|
+
# @param id
|
139
139
|
# @param [Hash] opts the optional parameters
|
140
140
|
# @return [Array<(Product, Fixnum, Hash)>] Product data, response status code and response headers
|
141
141
|
def get_product_with_http_info(id, opts = {})
|
@@ -29,6 +29,9 @@ module Vantage
|
|
29
29
|
# A unique slug for the provider the product belongs to.
|
30
30
|
attr_accessor :provider_id
|
31
31
|
|
32
|
+
# An object of metadata about the product.
|
33
|
+
attr_accessor :details
|
34
|
+
|
32
35
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
36
|
def self.attribute_map
|
34
37
|
{
|
@@ -36,7 +39,8 @@ module Vantage
|
|
36
39
|
:'category' => :'category',
|
37
40
|
:'name' => :'name',
|
38
41
|
:'service_id' => :'service_id',
|
39
|
-
:'provider_id' => :'provider_id'
|
42
|
+
:'provider_id' => :'provider_id',
|
43
|
+
:'details' => :'details'
|
40
44
|
}
|
41
45
|
end
|
42
46
|
|
@@ -47,7 +51,8 @@ module Vantage
|
|
47
51
|
:'category' => :'String',
|
48
52
|
:'name' => :'String',
|
49
53
|
:'service_id' => :'String',
|
50
|
-
:'provider_id' => :'String'
|
54
|
+
:'provider_id' => :'String',
|
55
|
+
:'details' => :'Object'
|
51
56
|
}
|
52
57
|
end
|
53
58
|
|
@@ -78,6 +83,10 @@ module Vantage
|
|
78
83
|
if attributes.has_key?(:'provider_id')
|
79
84
|
self.provider_id = attributes[:'provider_id']
|
80
85
|
end
|
86
|
+
|
87
|
+
if attributes.has_key?(:'details')
|
88
|
+
self.details = attributes[:'details']
|
89
|
+
end
|
81
90
|
end
|
82
91
|
|
83
92
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -102,7 +111,8 @@ module Vantage
|
|
102
111
|
category == o.category &&
|
103
112
|
name == o.name &&
|
104
113
|
service_id == o.service_id &&
|
105
|
-
provider_id == o.provider_id
|
114
|
+
provider_id == o.provider_id &&
|
115
|
+
details == o.details
|
106
116
|
end
|
107
117
|
|
108
118
|
# @see the `==` method
|
@@ -114,7 +124,7 @@ module Vantage
|
|
114
124
|
# Calculates hash code according to all attributes.
|
115
125
|
# @return [Fixnum] Hash code
|
116
126
|
def hash
|
117
|
-
[id, category, name, service_id, provider_id].hash
|
127
|
+
[id, category, name, service_id, provider_id, details].hash
|
118
128
|
end
|
119
129
|
|
120
130
|
# Builds the object from hash
|
data/spec/api/prices_api_spec.rb
CHANGED
@@ -35,7 +35,7 @@ describe 'PricesApi' do
|
|
35
35
|
# unit tests for get_price
|
36
36
|
# Returns a price
|
37
37
|
# @param product_id
|
38
|
-
# @param id
|
38
|
+
# @param id
|
39
39
|
# @param [Hash] opts the optional parameters
|
40
40
|
# @return [Price]
|
41
41
|
describe 'get_price test' do
|
@@ -46,7 +46,7 @@ describe 'PricesApi' do
|
|
46
46
|
|
47
47
|
# unit tests for get_prices
|
48
48
|
# Return available Prices across all Regions for a Product.
|
49
|
-
# @param product_id
|
49
|
+
# @param product_id
|
50
50
|
# @param [Hash] opts the optional parameters
|
51
51
|
# @return [Prices]
|
52
52
|
describe 'get_prices test' do
|
@@ -57,7 +57,7 @@ describe 'PricesApi' do
|
|
57
57
|
|
58
58
|
# unit tests for get_product
|
59
59
|
# Return a product
|
60
|
-
# @param id
|
60
|
+
# @param id
|
61
61
|
# @param [Hash] opts the optional parameters
|
62
62
|
# @return [Product]
|
63
63
|
describe 'get_product test' do
|
data/spec/models/product_spec.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vantage-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ''
|
@@ -259,12 +259,6 @@ files:
|
|
259
259
|
- spec/models/service_spec.rb
|
260
260
|
- spec/models/services_spec.rb
|
261
261
|
- spec/spec_helper.rb
|
262
|
-
- vantage-client-0.0.1.beta.1.gem
|
263
|
-
- vantage-client-0.0.1.gem
|
264
|
-
- vantage-client-0.0.1.pre.gem
|
265
|
-
- vantage-client-0.0.2.gem
|
266
|
-
- vantage-client-0.0.3.gem
|
267
|
-
- vantage-client-0.0.4.gem
|
268
262
|
- vantage-client.gemspec
|
269
263
|
homepage: https://vantage.sh
|
270
264
|
licenses:
|
Binary file
|
data/vantage-client-0.0.1.gem
DELETED
Binary file
|
Binary file
|
data/vantage-client-0.0.2.gem
DELETED
Binary file
|
data/vantage-client-0.0.3.gem
DELETED
Binary file
|
data/vantage-client-0.0.4.gem
DELETED
Binary file
|