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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2513eac97ae12ec110841960770c2099928093a5347606d4923fd67d29b53031
4
- data.tar.gz: e96aa1889bc616ea4083dcfe7640af2509602e1d025f900506591b4e13aea4d5
3
+ metadata.gz: 243fe9208fe7924d332f6f03b25564d991e66b3d039408005493ac4c7dbfe107
4
+ data.tar.gz: 5fc8d08e8ea14bb6653733e7fea7e8628ee41949923e4f64d1615e73284fdf77
5
5
  SHA512:
6
- metadata.gz: 8a0f3b6ae1e7ca00ecf440d4a27ff11929b4cb7c68af137bdba465a00e6ff7bc698e0da42da9d3b12a9a7cb2dd7c72087f7580ab79d4bd273e002678d3b5427f
7
- data.tar.gz: 51d3771bcda00cd360725c76c75dd4f7fab326686bafbdf8e5b14f9773c4bed31603a9aa5d90574aeab3cd7aea63fc5e8e701e328ccd683b5dc8403ca8cb8d7e
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.5
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.5.gem
27
+ gem install ./vantage-client-0.0.6.gem
28
28
  ```
29
- (for development, run `gem install --dev ./vantage-client-0.0.5.gem` to install the development dependencies)
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.5'
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 | Unique identifier of the price e.g. aws-ec2-m5d_16xlarge-eu_central_1-on_demand-linux_enterprise
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**| Unique identifier of the price e.g. aws-ec2-m5d_16xlarge-eu_central_1-on_demand-linux_enterprise |
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 | The Product ID that you wish to query prices for.
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**| The Product ID that you wish to query prices for. |
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 | Unique identifier of the product e.g. aws-ec2-m5d_16xlarge
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**| Unique identifier of the product e.g. aws-ec2-m5d_16xlarge |
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 Unique identifier of the price e.g. aws-ec2-m5d_16xlarge-eu_central_1-on_demand-linux_enterprise
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 Unique identifier of the price e.g. aws-ec2-m5d_16xlarge-eu_central_1-on_demand-linux_enterprise
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 The Product ID that you wish to query prices for.
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 The Product ID that you wish to query prices for.
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 Unique identifier of the product e.g. aws-ec2-m5d_16xlarge
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 Unique identifier of the product e.g. aws-ec2-m5d_16xlarge
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
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.19
11
11
  =end
12
12
 
13
13
  module Vantage
14
- VERSION = '0.0.5'
14
+ VERSION = '0.0.6'
15
15
  end
@@ -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 Unique identifier of the price e.g. aws-ec2-m5d_16xlarge-eu_central_1-on_demand-linux_enterprise
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 The Product ID that you wish to query prices for.
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 Unique identifier of the product e.g. aws-ec2-m5d_16xlarge
60
+ # @param id
61
61
  # @param [Hash] opts the optional parameters
62
62
  # @return [Product]
63
63
  describe 'get_product test' do
@@ -62,4 +62,10 @@ describe 'Product' do
62
62
  end
63
63
  end
64
64
 
65
+ describe 'test attribute "details"' 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
+
65
71
  end
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.5
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
Binary file
Binary file
Binary file
Binary file
Binary file