test-pack-1 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +28 -0
- data/README.md +872 -0
- data/lib/test_pack_1.rb +63 -0
- data/lib/test_pack_1/api_helper.rb +275 -0
- data/lib/test_pack_1/configuration.rb +63 -0
- data/lib/test_pack_1/controllers/alerts_controller.rb +381 -0
- data/lib/test_pack_1/controllers/assets_controller.rb +227 -0
- data/lib/test_pack_1/controllers/base_controller.rb +51 -0
- data/lib/test_pack_1/controllers/configuration_data_controller.rb +76 -0
- data/lib/test_pack_1/controllers/data_controller.rb +349 -0
- data/lib/test_pack_1/controllers/statuses_controller.rb +215 -0
- data/lib/test_pack_1/exceptions/api_exception.rb +20 -0
- data/lib/test_pack_1/http/auth/custom_query_auth.rb +16 -0
- data/lib/test_pack_1/http/faraday_client.rb +64 -0
- data/lib/test_pack_1/http/http_call_back.rb +24 -0
- data/lib/test_pack_1/http/http_client.rb +104 -0
- data/lib/test_pack_1/http/http_context.rb +20 -0
- data/lib/test_pack_1/http/http_method_enum.rb +13 -0
- data/lib/test_pack_1/http/http_request.rb +50 -0
- data/lib/test_pack_1/http/http_response.rb +23 -0
- data/lib/test_pack_1/models/aggregate_mode_enum.rb +23 -0
- data/lib/test_pack_1/models/alert_item.rb +104 -0
- data/lib/test_pack_1/models/base_model.rb +36 -0
- data/lib/test_pack_1/models/calculation_mode_enum.rb +20 -0
- data/lib/test_pack_1/models/client_configuration.rb +62 -0
- data/lib/test_pack_1/models/configuration_item.rb +55 -0
- data/lib/test_pack_1/models/data_item.rb +92 -0
- data/lib/test_pack_1/models/data_per_category_item.rb +82 -0
- data/lib/test_pack_1/models/data_per_category_response.rb +63 -0
- data/lib/test_pack_1/models/data_real_time_item.rb +83 -0
- data/lib/test_pack_1/models/data_signal.rb +53 -0
- data/lib/test_pack_1/models/data_signal_configuration.rb +66 -0
- data/lib/test_pack_1/models/data_signal_item.rb +62 -0
- data/lib/test_pack_1/models/device.rb +208 -0
- data/lib/test_pack_1/models/device_model.rb +53 -0
- data/lib/test_pack_1/models/metadata_field.rb +44 -0
- data/lib/test_pack_1/models/power_curve.rb +60 -0
- data/lib/test_pack_1/models/power_curve_value.rb +44 -0
- data/lib/test_pack_1/models/resolution_enum.rb +41 -0
- data/lib/test_pack_1/models/site.rb +44 -0
- data/lib/test_pack_1/models/site_with_data.rb +78 -0
- data/lib/test_pack_1/models/status_category_enum.rb +26 -0
- data/lib/test_pack_1/models/status_item.rb +161 -0
- data/lib/test_pack_1/models/time_zone_configuration.rb +76 -0
- data/lib/test_pack_1/models/turbine_type.rb +89 -0
- data/lib/test_pack_1/test_pack1_client.rb +51 -0
- data/test/controllers/controller_test_base.rb +33 -0
- data/test/controllers/test_assets_controller.rb +46 -0
- data/test/controllers/test_configuration_data_controller.rb +44 -0
- data/test/http_response_catcher.rb +20 -0
- data/test/test_helper.rb +99 -0
- metadata +219 -0
metadata
ADDED
@@ -0,0 +1,219 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: test-pack-1
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- APIMatic SDK Generator
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-09-12 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: logging
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '2.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: faraday
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0.10'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0.10'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: faraday_middleware
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 0.13.1
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.13.1
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: test-unit
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.1'
|
62
|
+
- - ">="
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: 3.1.5
|
65
|
+
type: :runtime
|
66
|
+
prerelease: false
|
67
|
+
version_requirements: !ruby/object:Gem::Requirement
|
68
|
+
requirements:
|
69
|
+
- - "~>"
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: '3.1'
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: 3.1.5
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: certifi
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - "~>"
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '2016'
|
82
|
+
type: :runtime
|
83
|
+
prerelease: false
|
84
|
+
version_requirements: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - "~>"
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '2016'
|
89
|
+
- !ruby/object:Gem::Dependency
|
90
|
+
name: faraday-http-cache
|
91
|
+
requirement: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - "~>"
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '1.2'
|
96
|
+
- - ">="
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: 1.2.2
|
99
|
+
type: :runtime
|
100
|
+
prerelease: false
|
101
|
+
version_requirements: !ruby/object:Gem::Requirement
|
102
|
+
requirements:
|
103
|
+
- - "~>"
|
104
|
+
- !ruby/object:Gem::Version
|
105
|
+
version: '1.2'
|
106
|
+
- - ">="
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: 1.2.2
|
109
|
+
description: 'This is the public API for the Greenbyte Platform. **Note that this
|
110
|
+
is the beta version of the API,** containing new features that might change. This
|
111
|
+
means that any SDKs downloaded for this version might have minor incompatibilities
|
112
|
+
in the future. If you want to view the latest stable API specification, use the
|
113
|
+
version selection dropdown in the top right of the page. # What''s new ## 2020-06-08
|
114
|
+
– Data endpoint aggregation by group If you have divided you sites into groups of
|
115
|
+
assets, you can now aggregate your data by those groups when calling the Data, Real
|
116
|
+
Time Data, and Data Per Category endpoints. The new `deviceLevel` aggregation mode
|
117
|
+
(`aggregate` parameter) aggregates data based on the hierarchy level directly below
|
118
|
+
site. ## 2020-04-27 – Data signal permissions It is now possible to set permissions
|
119
|
+
for individual data signals for API keys (**Share** > **API Keys** in the Greenbyte
|
120
|
+
Platform). When adding/editing an API key, there is a new option to select authorized
|
121
|
+
data signals in addition to the device selection. Leaving the signal selection blank
|
122
|
+
(nothing selected) gives permission to all current and future data signals, just
|
123
|
+
like previously created API keys. API endpoints affected by data signal permissions:
|
124
|
+
* `datasignals.json`: filters returned data signals based on permissions. * `data.json`,
|
125
|
+
`realtimedata.json`, `datapercategory.json`: gives *401 Unauthorized* error for
|
126
|
+
data signals without permission. * `status.json`, `activestatus.json`: may omit
|
127
|
+
lost production values (in the `lostProduction` field) based on data signal permissions. ##
|
128
|
+
2020-03-30 – Data Per Category endpoint We have added a new endpoint to the Greenbyte
|
129
|
+
Platform to make it possible to extract Lost Production data per contract category
|
130
|
+
from the API. You can find more information about this endpoint here: [Data Per
|
131
|
+
Category](#/http/api-endpoints/data/get-data-per-category). # General notes regarding
|
132
|
+
endpoints * Endpoints that take `page` and `pageSize` parameters return a `Link`
|
133
|
+
header as defined in [RFC 8288](https://tools.ietf.org/html/rfc8288). * Some endpoints
|
134
|
+
return data in your local time zone. This time zone can be fetched from the `configuration.json`
|
135
|
+
endpoint. * All endpoints can also be reached using the POST method, with a JSON
|
136
|
+
request body instead of query parameters. * All endpoints implement rate limiting.
|
137
|
+
More information is available under the *429* error response description for each
|
138
|
+
endpoint. '
|
139
|
+
email: support@apimatic.io
|
140
|
+
executables: []
|
141
|
+
extensions: []
|
142
|
+
extra_rdoc_files: []
|
143
|
+
files:
|
144
|
+
- LICENSE
|
145
|
+
- README.md
|
146
|
+
- lib/test_pack_1.rb
|
147
|
+
- lib/test_pack_1/api_helper.rb
|
148
|
+
- lib/test_pack_1/configuration.rb
|
149
|
+
- lib/test_pack_1/controllers/alerts_controller.rb
|
150
|
+
- lib/test_pack_1/controllers/assets_controller.rb
|
151
|
+
- lib/test_pack_1/controllers/base_controller.rb
|
152
|
+
- lib/test_pack_1/controllers/configuration_data_controller.rb
|
153
|
+
- lib/test_pack_1/controllers/data_controller.rb
|
154
|
+
- lib/test_pack_1/controllers/statuses_controller.rb
|
155
|
+
- lib/test_pack_1/exceptions/api_exception.rb
|
156
|
+
- lib/test_pack_1/http/auth/custom_query_auth.rb
|
157
|
+
- lib/test_pack_1/http/faraday_client.rb
|
158
|
+
- lib/test_pack_1/http/http_call_back.rb
|
159
|
+
- lib/test_pack_1/http/http_client.rb
|
160
|
+
- lib/test_pack_1/http/http_context.rb
|
161
|
+
- lib/test_pack_1/http/http_method_enum.rb
|
162
|
+
- lib/test_pack_1/http/http_request.rb
|
163
|
+
- lib/test_pack_1/http/http_response.rb
|
164
|
+
- lib/test_pack_1/models/aggregate_mode_enum.rb
|
165
|
+
- lib/test_pack_1/models/alert_item.rb
|
166
|
+
- lib/test_pack_1/models/base_model.rb
|
167
|
+
- lib/test_pack_1/models/calculation_mode_enum.rb
|
168
|
+
- lib/test_pack_1/models/client_configuration.rb
|
169
|
+
- lib/test_pack_1/models/configuration_item.rb
|
170
|
+
- lib/test_pack_1/models/data_item.rb
|
171
|
+
- lib/test_pack_1/models/data_per_category_item.rb
|
172
|
+
- lib/test_pack_1/models/data_per_category_response.rb
|
173
|
+
- lib/test_pack_1/models/data_real_time_item.rb
|
174
|
+
- lib/test_pack_1/models/data_signal.rb
|
175
|
+
- lib/test_pack_1/models/data_signal_configuration.rb
|
176
|
+
- lib/test_pack_1/models/data_signal_item.rb
|
177
|
+
- lib/test_pack_1/models/device.rb
|
178
|
+
- lib/test_pack_1/models/device_model.rb
|
179
|
+
- lib/test_pack_1/models/metadata_field.rb
|
180
|
+
- lib/test_pack_1/models/power_curve.rb
|
181
|
+
- lib/test_pack_1/models/power_curve_value.rb
|
182
|
+
- lib/test_pack_1/models/resolution_enum.rb
|
183
|
+
- lib/test_pack_1/models/site.rb
|
184
|
+
- lib/test_pack_1/models/site_with_data.rb
|
185
|
+
- lib/test_pack_1/models/status_category_enum.rb
|
186
|
+
- lib/test_pack_1/models/status_item.rb
|
187
|
+
- lib/test_pack_1/models/time_zone_configuration.rb
|
188
|
+
- lib/test_pack_1/models/turbine_type.rb
|
189
|
+
- lib/test_pack_1/test_pack1_client.rb
|
190
|
+
- test/controllers/controller_test_base.rb
|
191
|
+
- test/controllers/test_assets_controller.rb
|
192
|
+
- test/controllers/test_configuration_data_controller.rb
|
193
|
+
- test/http_response_catcher.rb
|
194
|
+
- test/test_helper.rb
|
195
|
+
homepage: https://apimatic.io
|
196
|
+
licenses:
|
197
|
+
- MIT
|
198
|
+
metadata: {}
|
199
|
+
post_install_message:
|
200
|
+
rdoc_options: []
|
201
|
+
require_paths:
|
202
|
+
- lib
|
203
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
204
|
+
requirements:
|
205
|
+
- - "~>"
|
206
|
+
- !ruby/object:Gem::Version
|
207
|
+
version: '2.0'
|
208
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
209
|
+
requirements:
|
210
|
+
- - ">="
|
211
|
+
- !ruby/object:Gem::Version
|
212
|
+
version: '0'
|
213
|
+
requirements: []
|
214
|
+
rubyforge_project:
|
215
|
+
rubygems_version: 2.7.6
|
216
|
+
signing_key:
|
217
|
+
specification_version: 4
|
218
|
+
summary: test_pack_1
|
219
|
+
test_files: []
|