@vantage-sh/vantage-client 0.1.0 → 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.
- package/README.md +201 -80
- package/dist/index.d.mts +20895 -0
- package/dist/index.d.ts +20895 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +38 -43
- package/.swagger-codegen/VERSION +0 -1
- package/.swagger-codegen-ignore +0 -23
- package/.travis.yml +0 -4
- package/babel.config.json +0 -10
- package/docs/Cost.md +0 -11
- package/docs/Costs.md +0 -11
- package/docs/CostsApi.md +0 -168
- package/docs/PingApi.md +0 -51
- package/docs/Price.md +0 -14
- package/docs/Prices.md +0 -9
- package/docs/PricesApi.md +0 -328
- package/docs/Product.md +0 -13
- package/docs/Products.md +0 -9
- package/docs/Provider.md +0 -10
- package/docs/Providers.md +0 -9
- package/docs/Report.md +0 -13
- package/docs/Reports.md +0 -9
- package/docs/Service.md +0 -11
- package/docs/Services.md +0 -9
- package/lib/Vantage/ApiClient.js +0 -645
- package/lib/Vantage/Vantage/CostsApi.js +0 -183
- package/lib/Vantage/Vantage/PingApi.js +0 -71
- package/lib/Vantage/Vantage/PricesApi.js +0 -325
- package/lib/Vantage/index.js +0 -133
- package/lib/Vantage/model/Cost.js +0 -81
- package/lib/Vantage/model/Costs.js +0 -82
- package/lib/Vantage/model/Price.js +0 -102
- package/lib/Vantage/model/Prices.js +0 -68
- package/lib/Vantage/model/Product.js +0 -95
- package/lib/Vantage/model/Products.js +0 -68
- package/lib/Vantage/model/Provider.js +0 -73
- package/lib/Vantage/model/Providers.js +0 -68
- package/lib/Vantage/model/Report.js +0 -95
- package/lib/Vantage/model/Reports.js +0 -68
- package/lib/Vantage/model/Service.js +0 -80
- package/lib/Vantage/model/Services.js +0 -68
- package/mocha.opts +0 -1
- package/test/Vantage/Vantage/CostsApi.spec.js +0 -164
- package/test/Vantage/Vantage/PingApi.spec.js +0 -61
- package/test/Vantage/Vantage/PricesApi.spec.js +0 -280
- package/test/Vantage/model/Cost.spec.js +0 -71
- package/test/Vantage/model/Costs.spec.js +0 -71
- package/test/Vantage/model/Price.spec.js +0 -89
- package/test/Vantage/model/Prices.spec.js +0 -59
- package/test/Vantage/model/Product.spec.js +0 -83
- package/test/Vantage/model/Products.spec.js +0 -59
- package/test/Vantage/model/Provider.spec.js +0 -65
- package/test/Vantage/model/Providers.spec.js +0 -59
- package/test/Vantage/model/Report.spec.js +0 -83
- package/test/Vantage/model/Reports.spec.js +0 -59
- package/test/Vantage/model/Service.spec.js +0 -71
- package/test/Vantage/model/Services.spec.js +0 -59
- package/test/assert-equals.js +0 -81
- package/vantage-sh-vantage-client-0.1.0-beta7.tgz +0 -0
|
@@ -1,280 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Vantage
|
|
3
|
-
* Vantage API
|
|
4
|
-
*
|
|
5
|
-
* OpenAPI spec version: 1.0.0
|
|
6
|
-
* Contact: support@vantage.sh
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
9
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
10
|
-
*
|
|
11
|
-
* Swagger Codegen version: 2.4.21
|
|
12
|
-
*
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
(function(root, factory) {
|
|
18
|
-
if (typeof define === 'function' && define.amd) {
|
|
19
|
-
// AMD.
|
|
20
|
-
define(['expect.js', '../../../src/Vantage/index'], factory);
|
|
21
|
-
} else if (typeof module === 'object' && module.exports) {
|
|
22
|
-
// CommonJS-like environments that support module.exports, like Node.
|
|
23
|
-
factory(require('expect.js'), require('../../../src/Vantage/index'));
|
|
24
|
-
} else {
|
|
25
|
-
// Browser globals (root is window)
|
|
26
|
-
factory(root.expect, root.Vantage);
|
|
27
|
-
}
|
|
28
|
-
}(this, function(expect, Vantage) {
|
|
29
|
-
'use strict';
|
|
30
|
-
|
|
31
|
-
var instance;
|
|
32
|
-
|
|
33
|
-
beforeEach(function() {
|
|
34
|
-
instance = new Vantage.PricesApi();
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
describe('Vantage', function() {
|
|
38
|
-
describe('PricesApi', function() {
|
|
39
|
-
describe('getPrice', function() {
|
|
40
|
-
it('should call getPrice successfully', function(done) {
|
|
41
|
-
// TODO: uncomment, update parameter values for getPrice call and complete the assertions
|
|
42
|
-
/*
|
|
43
|
-
var productId = "productId_example";
|
|
44
|
-
var id = "id_example";
|
|
45
|
-
|
|
46
|
-
instance.getPrice(productId, id).then(function(data) {
|
|
47
|
-
// TODO: update response assertions
|
|
48
|
-
expect(data).to.be.a(Vantage.Price);
|
|
49
|
-
expect(data.id).to.be.a('string');
|
|
50
|
-
// expect(data.id).to.be("");
|
|
51
|
-
expect(data.unit).to.be.a('string');
|
|
52
|
-
// expect(data.unit).to.be("hour");
|
|
53
|
-
expect(data.region).to.be.a('string');
|
|
54
|
-
// expect(data.region).to.be("us-east-1");
|
|
55
|
-
expect(data.rateType).to.be.a('string');
|
|
56
|
-
// expect(data.rateType).to.be("compute");
|
|
57
|
-
expect(data.currency).to.be.a('string');
|
|
58
|
-
// expect(data.currency).to.be("USD");
|
|
59
|
-
expect(data.amount).to.be.a('number');
|
|
60
|
-
// expect(data.amount).to.be(1.324);
|
|
61
|
-
expect(data.details).to.be.a(Object);
|
|
62
|
-
// expect(data.details).to.be({"platform":"linux-enterprise","lifecycle":"on-demand"});
|
|
63
|
-
|
|
64
|
-
done();
|
|
65
|
-
}, function(error) {
|
|
66
|
-
done(error);
|
|
67
|
-
});
|
|
68
|
-
*/
|
|
69
|
-
// TODO: uncomment and complete method invocation above, then delete this line and the next:
|
|
70
|
-
done();
|
|
71
|
-
});
|
|
72
|
-
});
|
|
73
|
-
describe('getPrices', function() {
|
|
74
|
-
it('should call getPrices successfully', function(done) {
|
|
75
|
-
// TODO: uncomment, update parameter values for getPrices call and complete the assertions
|
|
76
|
-
/*
|
|
77
|
-
var productId = "productId_example";
|
|
78
|
-
var opts = {};
|
|
79
|
-
opts.page = 56;
|
|
80
|
-
opts.limit = 56;
|
|
81
|
-
|
|
82
|
-
instance.getPrices(productId, opts).then(function(data) {
|
|
83
|
-
// TODO: update response assertions
|
|
84
|
-
expect(data).to.be.a(Vantage.Prices);
|
|
85
|
-
expect(data.links).to.be.a(Object);
|
|
86
|
-
// expect(data.links).to.be();
|
|
87
|
-
{
|
|
88
|
-
let dataCtr = data.prices;
|
|
89
|
-
expect(dataCtr).to.be.an(Array);
|
|
90
|
-
expect(dataCtr).to.not.be.empty();
|
|
91
|
-
for (let p in dataCtr) {
|
|
92
|
-
let data = dataCtr[p];
|
|
93
|
-
expect(data).to.be.a(Vantage.Price);
|
|
94
|
-
expect(data.id).to.be.a('string');
|
|
95
|
-
// expect(data.id).to.be("");
|
|
96
|
-
expect(data.unit).to.be.a('string');
|
|
97
|
-
// expect(data.unit).to.be("hour");
|
|
98
|
-
expect(data.region).to.be.a('string');
|
|
99
|
-
// expect(data.region).to.be("us-east-1");
|
|
100
|
-
expect(data.rateType).to.be.a('string');
|
|
101
|
-
// expect(data.rateType).to.be("compute");
|
|
102
|
-
expect(data.currency).to.be.a('string');
|
|
103
|
-
// expect(data.currency).to.be("USD");
|
|
104
|
-
expect(data.amount).to.be.a('number');
|
|
105
|
-
// expect(data.amount).to.be(1.324);
|
|
106
|
-
expect(data.details).to.be.a(Object);
|
|
107
|
-
// expect(data.details).to.be({"platform":"linux-enterprise","lifecycle":"on-demand"});
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
done();
|
|
112
|
-
}, function(error) {
|
|
113
|
-
done(error);
|
|
114
|
-
});
|
|
115
|
-
*/
|
|
116
|
-
// TODO: uncomment and complete method invocation above, then delete this line and the next:
|
|
117
|
-
done();
|
|
118
|
-
});
|
|
119
|
-
});
|
|
120
|
-
describe('getProduct', function() {
|
|
121
|
-
it('should call getProduct successfully', function(done) {
|
|
122
|
-
// TODO: uncomment, update parameter values for getProduct call and complete the assertions
|
|
123
|
-
/*
|
|
124
|
-
var id = "id_example";
|
|
125
|
-
|
|
126
|
-
instance.getProduct(id).then(function(data) {
|
|
127
|
-
// TODO: update response assertions
|
|
128
|
-
expect(data).to.be.a(Vantage.Product);
|
|
129
|
-
expect(data.id).to.be.a('string');
|
|
130
|
-
// expect(data.id).to.be("");
|
|
131
|
-
expect(data.category).to.be.a('string');
|
|
132
|
-
// expect(data.category).to.be("compute");
|
|
133
|
-
expect(data.name).to.be.a('string');
|
|
134
|
-
// expect(data.name).to.be("EC2");
|
|
135
|
-
expect(data.serviceId).to.be.a('string');
|
|
136
|
-
// expect(data.serviceId).to.be("aws-ec2");
|
|
137
|
-
expect(data.providerId).to.be.a('string');
|
|
138
|
-
// expect(data.providerId).to.be("aws");
|
|
139
|
-
expect(data.details).to.be.a(Object);
|
|
140
|
-
// expect(data.details).to.be({"gpu":0,"name":"M5 General Purpose 16xlarge","vcpu":64,"memory":256,"clock_speed_ghz":3.1,"physical_processor_description":"Intel Xeon Platinum 8175 (Skylake)","network_performance_description":"20 Gigabit"});
|
|
141
|
-
|
|
142
|
-
done();
|
|
143
|
-
}, function(error) {
|
|
144
|
-
done(error);
|
|
145
|
-
});
|
|
146
|
-
*/
|
|
147
|
-
// TODO: uncomment and complete method invocation above, then delete this line and the next:
|
|
148
|
-
done();
|
|
149
|
-
});
|
|
150
|
-
});
|
|
151
|
-
describe('getProducts', function() {
|
|
152
|
-
it('should call getProducts successfully', function(done) {
|
|
153
|
-
// TODO: uncomment, update parameter values for getProducts call and complete the assertions
|
|
154
|
-
/*
|
|
155
|
-
var opts = {};
|
|
156
|
-
opts.providerId = "providerId_example";
|
|
157
|
-
opts.serviceId = "serviceId_example";
|
|
158
|
-
opts.name = "name_example";
|
|
159
|
-
opts.page = 56;
|
|
160
|
-
opts.limit = 56;
|
|
161
|
-
|
|
162
|
-
instance.getProducts(opts).then(function(data) {
|
|
163
|
-
// TODO: update response assertions
|
|
164
|
-
expect(data).to.be.a(Vantage.Products);
|
|
165
|
-
expect(data.links).to.be.a(Object);
|
|
166
|
-
// expect(data.links).to.be();
|
|
167
|
-
{
|
|
168
|
-
let dataCtr = data.products;
|
|
169
|
-
expect(dataCtr).to.be.an(Array);
|
|
170
|
-
expect(dataCtr).to.not.be.empty();
|
|
171
|
-
for (let p in dataCtr) {
|
|
172
|
-
let data = dataCtr[p];
|
|
173
|
-
expect(data).to.be.a(Vantage.Product);
|
|
174
|
-
expect(data.id).to.be.a('string');
|
|
175
|
-
// expect(data.id).to.be("");
|
|
176
|
-
expect(data.category).to.be.a('string');
|
|
177
|
-
// expect(data.category).to.be("compute");
|
|
178
|
-
expect(data.name).to.be.a('string');
|
|
179
|
-
// expect(data.name).to.be("EC2");
|
|
180
|
-
expect(data.serviceId).to.be.a('string');
|
|
181
|
-
// expect(data.serviceId).to.be("aws-ec2");
|
|
182
|
-
expect(data.providerId).to.be.a('string');
|
|
183
|
-
// expect(data.providerId).to.be("aws");
|
|
184
|
-
expect(data.details).to.be.a(Object);
|
|
185
|
-
// expect(data.details).to.be({"gpu":0,"name":"M5 General Purpose 16xlarge","vcpu":64,"memory":256,"clock_speed_ghz":3.1,"physical_processor_description":"Intel Xeon Platinum 8175 (Skylake)","network_performance_description":"20 Gigabit"});
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
done();
|
|
190
|
-
}, function(error) {
|
|
191
|
-
done(error);
|
|
192
|
-
});
|
|
193
|
-
*/
|
|
194
|
-
// TODO: uncomment and complete method invocation above, then delete this line and the next:
|
|
195
|
-
done();
|
|
196
|
-
});
|
|
197
|
-
});
|
|
198
|
-
describe('getProviders', function() {
|
|
199
|
-
it('should call getProviders successfully', function(done) {
|
|
200
|
-
// TODO: uncomment, update parameter values for getProviders call and complete the assertions
|
|
201
|
-
/*
|
|
202
|
-
var opts = {};
|
|
203
|
-
opts.page = 56;
|
|
204
|
-
opts.limit = 56;
|
|
205
|
-
|
|
206
|
-
instance.getProviders(opts).then(function(data) {
|
|
207
|
-
// TODO: update response assertions
|
|
208
|
-
expect(data).to.be.a(Vantage.Providers);
|
|
209
|
-
expect(data.links).to.be.a(Object);
|
|
210
|
-
// expect(data.links).to.be();
|
|
211
|
-
{
|
|
212
|
-
let dataCtr = data.providers;
|
|
213
|
-
expect(dataCtr).to.be.an(Array);
|
|
214
|
-
expect(dataCtr).to.not.be.empty();
|
|
215
|
-
for (let p in dataCtr) {
|
|
216
|
-
let data = dataCtr[p];
|
|
217
|
-
expect(data).to.be.a(Vantage.Provider);
|
|
218
|
-
expect(data.id).to.be.a('string');
|
|
219
|
-
// expect(data.id).to.be("");
|
|
220
|
-
expect(data.name).to.be.a('string');
|
|
221
|
-
// expect(data.name).to.be("AWS");
|
|
222
|
-
expect(data.description).to.be.a('string');
|
|
223
|
-
// expect(data.description).to.be("Amazon Web Services");
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
done();
|
|
228
|
-
}, function(error) {
|
|
229
|
-
done(error);
|
|
230
|
-
});
|
|
231
|
-
*/
|
|
232
|
-
// TODO: uncomment and complete method invocation above, then delete this line and the next:
|
|
233
|
-
done();
|
|
234
|
-
});
|
|
235
|
-
});
|
|
236
|
-
describe('getServices', function() {
|
|
237
|
-
it('should call getServices successfully', function(done) {
|
|
238
|
-
// TODO: uncomment, update parameter values for getServices call and complete the assertions
|
|
239
|
-
/*
|
|
240
|
-
var opts = {};
|
|
241
|
-
opts.providerId = "providerId_example";
|
|
242
|
-
opts.page = 56;
|
|
243
|
-
opts.limit = 56;
|
|
244
|
-
|
|
245
|
-
instance.getServices(opts).then(function(data) {
|
|
246
|
-
// TODO: update response assertions
|
|
247
|
-
expect(data).to.be.a(Vantage.Services);
|
|
248
|
-
expect(data.links).to.be.a(Object);
|
|
249
|
-
// expect(data.links).to.be();
|
|
250
|
-
{
|
|
251
|
-
let dataCtr = data.services;
|
|
252
|
-
expect(dataCtr).to.be.an(Array);
|
|
253
|
-
expect(dataCtr).to.not.be.empty();
|
|
254
|
-
for (let p in dataCtr) {
|
|
255
|
-
let data = dataCtr[p];
|
|
256
|
-
expect(data).to.be.a(Vantage.Service);
|
|
257
|
-
expect(data.id).to.be.a('string');
|
|
258
|
-
// expect(data.id).to.be("");
|
|
259
|
-
expect(data.category).to.be.a('string');
|
|
260
|
-
// expect(data.category).to.be("compute");
|
|
261
|
-
expect(data.name).to.be.a('string');
|
|
262
|
-
// expect(data.name).to.be("EC2");
|
|
263
|
-
expect(data.description).to.be.a('string');
|
|
264
|
-
// expect(data.description).to.be("Elastic Compute Cloud");
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
done();
|
|
269
|
-
}, function(error) {
|
|
270
|
-
done(error);
|
|
271
|
-
});
|
|
272
|
-
*/
|
|
273
|
-
// TODO: uncomment and complete method invocation above, then delete this line and the next:
|
|
274
|
-
done();
|
|
275
|
-
});
|
|
276
|
-
});
|
|
277
|
-
});
|
|
278
|
-
});
|
|
279
|
-
|
|
280
|
-
}));
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Vantage
|
|
3
|
-
* Vantage API
|
|
4
|
-
*
|
|
5
|
-
* OpenAPI spec version: 1.0.0
|
|
6
|
-
* Contact: support@vantage.sh
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
9
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
10
|
-
*
|
|
11
|
-
* Swagger Codegen version: 2.4.21
|
|
12
|
-
*
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
(function(root, factory) {
|
|
18
|
-
if (typeof define === 'function' && define.amd) {
|
|
19
|
-
// AMD.
|
|
20
|
-
define(['expect.js', '../../../src/Vantage/index'], factory);
|
|
21
|
-
} else if (typeof module === 'object' && module.exports) {
|
|
22
|
-
// CommonJS-like environments that support module.exports, like Node.
|
|
23
|
-
factory(require('expect.js'), require('../../../src/Vantage/index'));
|
|
24
|
-
} else {
|
|
25
|
-
// Browser globals (root is window)
|
|
26
|
-
factory(root.expect, root.Vantage);
|
|
27
|
-
}
|
|
28
|
-
}(this, function(expect, Vantage) {
|
|
29
|
-
'use strict';
|
|
30
|
-
|
|
31
|
-
var instance;
|
|
32
|
-
|
|
33
|
-
describe('Vantage', function() {
|
|
34
|
-
describe('Cost', function() {
|
|
35
|
-
beforeEach(function() {
|
|
36
|
-
instance = new Vantage.Cost();
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
it('should create an instance of Cost', function() {
|
|
40
|
-
// TODO: update the code to test Cost
|
|
41
|
-
expect(instance).to.be.a(Vantage.Cost);
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
it('should have the property accruedAt (base name: "accrued_at")', function() {
|
|
45
|
-
// TODO: update the code to test the property accruedAt
|
|
46
|
-
expect(instance).to.have.property('accruedAt');
|
|
47
|
-
// expect(instance.accruedAt).to.be(expectedValueLiteral);
|
|
48
|
-
});
|
|
49
|
-
|
|
50
|
-
it('should have the property amount (base name: "amount")', function() {
|
|
51
|
-
// TODO: update the code to test the property amount
|
|
52
|
-
expect(instance).to.have.property('amount');
|
|
53
|
-
// expect(instance.amount).to.be(expectedValueLiteral);
|
|
54
|
-
});
|
|
55
|
-
|
|
56
|
-
it('should have the property provider (base name: "provider")', function() {
|
|
57
|
-
// TODO: update the code to test the property provider
|
|
58
|
-
expect(instance).to.have.property('provider');
|
|
59
|
-
// expect(instance.provider).to.be(expectedValueLiteral);
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
it('should have the property service (base name: "service")', function() {
|
|
63
|
-
// TODO: update the code to test the property service
|
|
64
|
-
expect(instance).to.have.property('service');
|
|
65
|
-
// expect(instance.service).to.be(expectedValueLiteral);
|
|
66
|
-
});
|
|
67
|
-
|
|
68
|
-
});
|
|
69
|
-
});
|
|
70
|
-
|
|
71
|
-
}));
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Vantage
|
|
3
|
-
* Vantage API
|
|
4
|
-
*
|
|
5
|
-
* OpenAPI spec version: 1.0.0
|
|
6
|
-
* Contact: support@vantage.sh
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
9
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
10
|
-
*
|
|
11
|
-
* Swagger Codegen version: 2.4.21
|
|
12
|
-
*
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
(function(root, factory) {
|
|
18
|
-
if (typeof define === 'function' && define.amd) {
|
|
19
|
-
// AMD.
|
|
20
|
-
define(['expect.js', '../../../src/Vantage/index'], factory);
|
|
21
|
-
} else if (typeof module === 'object' && module.exports) {
|
|
22
|
-
// CommonJS-like environments that support module.exports, like Node.
|
|
23
|
-
factory(require('expect.js'), require('../../../src/Vantage/index'));
|
|
24
|
-
} else {
|
|
25
|
-
// Browser globals (root is window)
|
|
26
|
-
factory(root.expect, root.Vantage);
|
|
27
|
-
}
|
|
28
|
-
}(this, function(expect, Vantage) {
|
|
29
|
-
'use strict';
|
|
30
|
-
|
|
31
|
-
var instance;
|
|
32
|
-
|
|
33
|
-
describe('Vantage', function() {
|
|
34
|
-
describe('Costs', function() {
|
|
35
|
-
beforeEach(function() {
|
|
36
|
-
instance = new Vantage.Costs();
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
it('should create an instance of Costs', function() {
|
|
40
|
-
// TODO: update the code to test Costs
|
|
41
|
-
expect(instance).to.be.a(Vantage.Costs);
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
it('should have the property links (base name: "links")', function() {
|
|
45
|
-
// TODO: update the code to test the property links
|
|
46
|
-
expect(instance).to.have.property('links');
|
|
47
|
-
// expect(instance.links).to.be(expectedValueLiteral);
|
|
48
|
-
});
|
|
49
|
-
|
|
50
|
-
it('should have the property total (base name: "total")', function() {
|
|
51
|
-
// TODO: update the code to test the property total
|
|
52
|
-
expect(instance).to.have.property('total');
|
|
53
|
-
// expect(instance.total).to.be(expectedValueLiteral);
|
|
54
|
-
});
|
|
55
|
-
|
|
56
|
-
it('should have the property currency (base name: "currency")', function() {
|
|
57
|
-
// TODO: update the code to test the property currency
|
|
58
|
-
expect(instance).to.have.property('currency');
|
|
59
|
-
// expect(instance.currency).to.be(expectedValueLiteral);
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
it('should have the property costs (base name: "costs")', function() {
|
|
63
|
-
// TODO: update the code to test the property costs
|
|
64
|
-
expect(instance).to.have.property('costs');
|
|
65
|
-
// expect(instance.costs).to.be(expectedValueLiteral);
|
|
66
|
-
});
|
|
67
|
-
|
|
68
|
-
});
|
|
69
|
-
});
|
|
70
|
-
|
|
71
|
-
}));
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Vantage
|
|
3
|
-
* Vantage API
|
|
4
|
-
*
|
|
5
|
-
* OpenAPI spec version: 1.0.0
|
|
6
|
-
* Contact: support@vantage.sh
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
9
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
10
|
-
*
|
|
11
|
-
* Swagger Codegen version: 2.4.21
|
|
12
|
-
*
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
(function(root, factory) {
|
|
18
|
-
if (typeof define === 'function' && define.amd) {
|
|
19
|
-
// AMD.
|
|
20
|
-
define(['expect.js', '../../../src/Vantage/index'], factory);
|
|
21
|
-
} else if (typeof module === 'object' && module.exports) {
|
|
22
|
-
// CommonJS-like environments that support module.exports, like Node.
|
|
23
|
-
factory(require('expect.js'), require('../../../src/Vantage/index'));
|
|
24
|
-
} else {
|
|
25
|
-
// Browser globals (root is window)
|
|
26
|
-
factory(root.expect, root.Vantage);
|
|
27
|
-
}
|
|
28
|
-
}(this, function(expect, Vantage) {
|
|
29
|
-
'use strict';
|
|
30
|
-
|
|
31
|
-
var instance;
|
|
32
|
-
|
|
33
|
-
describe('Vantage', function() {
|
|
34
|
-
describe('Price', function() {
|
|
35
|
-
beforeEach(function() {
|
|
36
|
-
instance = new Vantage.Price();
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
it('should create an instance of Price', function() {
|
|
40
|
-
// TODO: update the code to test Price
|
|
41
|
-
expect(instance).to.be.a(Vantage.Price);
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
it('should have the property id (base name: "id")', function() {
|
|
45
|
-
// TODO: update the code to test the property id
|
|
46
|
-
expect(instance).to.have.property('id');
|
|
47
|
-
// expect(instance.id).to.be(expectedValueLiteral);
|
|
48
|
-
});
|
|
49
|
-
|
|
50
|
-
it('should have the property unit (base name: "unit")', function() {
|
|
51
|
-
// TODO: update the code to test the property unit
|
|
52
|
-
expect(instance).to.have.property('unit');
|
|
53
|
-
// expect(instance.unit).to.be(expectedValueLiteral);
|
|
54
|
-
});
|
|
55
|
-
|
|
56
|
-
it('should have the property region (base name: "region")', function() {
|
|
57
|
-
// TODO: update the code to test the property region
|
|
58
|
-
expect(instance).to.have.property('region');
|
|
59
|
-
// expect(instance.region).to.be(expectedValueLiteral);
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
it('should have the property rateType (base name: "rate_type")', function() {
|
|
63
|
-
// TODO: update the code to test the property rateType
|
|
64
|
-
expect(instance).to.have.property('rateType');
|
|
65
|
-
// expect(instance.rateType).to.be(expectedValueLiteral);
|
|
66
|
-
});
|
|
67
|
-
|
|
68
|
-
it('should have the property currency (base name: "currency")', function() {
|
|
69
|
-
// TODO: update the code to test the property currency
|
|
70
|
-
expect(instance).to.have.property('currency');
|
|
71
|
-
// expect(instance.currency).to.be(expectedValueLiteral);
|
|
72
|
-
});
|
|
73
|
-
|
|
74
|
-
it('should have the property amount (base name: "amount")', function() {
|
|
75
|
-
// TODO: update the code to test the property amount
|
|
76
|
-
expect(instance).to.have.property('amount');
|
|
77
|
-
// expect(instance.amount).to.be(expectedValueLiteral);
|
|
78
|
-
});
|
|
79
|
-
|
|
80
|
-
it('should have the property details (base name: "details")', function() {
|
|
81
|
-
// TODO: update the code to test the property details
|
|
82
|
-
expect(instance).to.have.property('details');
|
|
83
|
-
// expect(instance.details).to.be(expectedValueLiteral);
|
|
84
|
-
});
|
|
85
|
-
|
|
86
|
-
});
|
|
87
|
-
});
|
|
88
|
-
|
|
89
|
-
}));
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Vantage
|
|
3
|
-
* Vantage API
|
|
4
|
-
*
|
|
5
|
-
* OpenAPI spec version: 1.0.0
|
|
6
|
-
* Contact: support@vantage.sh
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
9
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
10
|
-
*
|
|
11
|
-
* Swagger Codegen version: 2.4.21
|
|
12
|
-
*
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
(function(root, factory) {
|
|
18
|
-
if (typeof define === 'function' && define.amd) {
|
|
19
|
-
// AMD.
|
|
20
|
-
define(['expect.js', '../../../src/Vantage/index'], factory);
|
|
21
|
-
} else if (typeof module === 'object' && module.exports) {
|
|
22
|
-
// CommonJS-like environments that support module.exports, like Node.
|
|
23
|
-
factory(require('expect.js'), require('../../../src/Vantage/index'));
|
|
24
|
-
} else {
|
|
25
|
-
// Browser globals (root is window)
|
|
26
|
-
factory(root.expect, root.Vantage);
|
|
27
|
-
}
|
|
28
|
-
}(this, function(expect, Vantage) {
|
|
29
|
-
'use strict';
|
|
30
|
-
|
|
31
|
-
var instance;
|
|
32
|
-
|
|
33
|
-
describe('Vantage', function() {
|
|
34
|
-
describe('Prices', function() {
|
|
35
|
-
beforeEach(function() {
|
|
36
|
-
instance = new Vantage.Prices();
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
it('should create an instance of Prices', function() {
|
|
40
|
-
// TODO: update the code to test Prices
|
|
41
|
-
expect(instance).to.be.a(Vantage.Prices);
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
it('should have the property links (base name: "links")', function() {
|
|
45
|
-
// TODO: update the code to test the property links
|
|
46
|
-
expect(instance).to.have.property('links');
|
|
47
|
-
// expect(instance.links).to.be(expectedValueLiteral);
|
|
48
|
-
});
|
|
49
|
-
|
|
50
|
-
it('should have the property prices (base name: "prices")', function() {
|
|
51
|
-
// TODO: update the code to test the property prices
|
|
52
|
-
expect(instance).to.have.property('prices');
|
|
53
|
-
// expect(instance.prices).to.be(expectedValueLiteral);
|
|
54
|
-
});
|
|
55
|
-
|
|
56
|
-
});
|
|
57
|
-
});
|
|
58
|
-
|
|
59
|
-
}));
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Vantage
|
|
3
|
-
* Vantage API
|
|
4
|
-
*
|
|
5
|
-
* OpenAPI spec version: 1.0.0
|
|
6
|
-
* Contact: support@vantage.sh
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
9
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
10
|
-
*
|
|
11
|
-
* Swagger Codegen version: 2.4.21
|
|
12
|
-
*
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
(function(root, factory) {
|
|
18
|
-
if (typeof define === 'function' && define.amd) {
|
|
19
|
-
// AMD.
|
|
20
|
-
define(['expect.js', '../../../src/Vantage/index'], factory);
|
|
21
|
-
} else if (typeof module === 'object' && module.exports) {
|
|
22
|
-
// CommonJS-like environments that support module.exports, like Node.
|
|
23
|
-
factory(require('expect.js'), require('../../../src/Vantage/index'));
|
|
24
|
-
} else {
|
|
25
|
-
// Browser globals (root is window)
|
|
26
|
-
factory(root.expect, root.Vantage);
|
|
27
|
-
}
|
|
28
|
-
}(this, function(expect, Vantage) {
|
|
29
|
-
'use strict';
|
|
30
|
-
|
|
31
|
-
var instance;
|
|
32
|
-
|
|
33
|
-
describe('Vantage', function() {
|
|
34
|
-
describe('Product', function() {
|
|
35
|
-
beforeEach(function() {
|
|
36
|
-
instance = new Vantage.Product();
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
it('should create an instance of Product', function() {
|
|
40
|
-
// TODO: update the code to test Product
|
|
41
|
-
expect(instance).to.be.a(Vantage.Product);
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
it('should have the property id (base name: "id")', function() {
|
|
45
|
-
// TODO: update the code to test the property id
|
|
46
|
-
expect(instance).to.have.property('id');
|
|
47
|
-
// expect(instance.id).to.be(expectedValueLiteral);
|
|
48
|
-
});
|
|
49
|
-
|
|
50
|
-
it('should have the property category (base name: "category")', function() {
|
|
51
|
-
// TODO: update the code to test the property category
|
|
52
|
-
expect(instance).to.have.property('category');
|
|
53
|
-
// expect(instance.category).to.be(expectedValueLiteral);
|
|
54
|
-
});
|
|
55
|
-
|
|
56
|
-
it('should have the property name (base name: "name")', function() {
|
|
57
|
-
// TODO: update the code to test the property name
|
|
58
|
-
expect(instance).to.have.property('name');
|
|
59
|
-
// expect(instance.name).to.be(expectedValueLiteral);
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
it('should have the property serviceId (base name: "service_id")', function() {
|
|
63
|
-
// TODO: update the code to test the property serviceId
|
|
64
|
-
expect(instance).to.have.property('serviceId');
|
|
65
|
-
// expect(instance.serviceId).to.be(expectedValueLiteral);
|
|
66
|
-
});
|
|
67
|
-
|
|
68
|
-
it('should have the property providerId (base name: "provider_id")', function() {
|
|
69
|
-
// TODO: update the code to test the property providerId
|
|
70
|
-
expect(instance).to.have.property('providerId');
|
|
71
|
-
// expect(instance.providerId).to.be(expectedValueLiteral);
|
|
72
|
-
});
|
|
73
|
-
|
|
74
|
-
it('should have the property details (base name: "details")', function() {
|
|
75
|
-
// TODO: update the code to test the property details
|
|
76
|
-
expect(instance).to.have.property('details');
|
|
77
|
-
// expect(instance.details).to.be(expectedValueLiteral);
|
|
78
|
-
});
|
|
79
|
-
|
|
80
|
-
});
|
|
81
|
-
});
|
|
82
|
-
|
|
83
|
-
}));
|