vmsp-sdk 1.0.0 → 1.0.1
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 +28 -28
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 23b824ee5a77ac0652ebef02d56bb4c67419b55fd5677f78d732e7de3c5d58c7
|
|
4
|
+
data.tar.gz: 32f8ee16107e70d507ac16fb9287005ca88355f3a31472d3daafd2afbbcec6fd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d0ac8db3c7886ffadd2e54c2580595833361ff41cd4181edfd71613ef4d3444400bd1df4debfda4e816f5e8660196c60f11489198de6eb8fba642d81e781e32b
|
|
7
|
+
data.tar.gz: 39f647482441322d64c433261f4fb0c01f018c3ba8586a9acf965f2ff9a9864ab6957571cb9dd88852570376ad45455299ae1685b96f9e8d5c66051d3e12639c
|
data/README.md
CHANGED
|
@@ -16,16 +16,16 @@ eMobility VMSP OCPI APIs. This set of APIs are for North Americas Region. These
|
|
|
16
16
|
Install the gem from the command line:
|
|
17
17
|
|
|
18
18
|
```bash
|
|
19
|
-
gem install vmsp-sdk -v 1.0.
|
|
19
|
+
gem install vmsp-sdk -v 1.0.1
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
Or add the gem to your Gemfile and run `bundle`:
|
|
23
23
|
|
|
24
24
|
```ruby
|
|
25
|
-
gem 'vmsp-sdk', '1.0.
|
|
25
|
+
gem 'vmsp-sdk', '1.0.1'
|
|
26
26
|
```
|
|
27
27
|
|
|
28
|
-
For additional gem details, see the [RubyGems page for the vmsp-sdk gem](https://rubygems.org/gems/vmsp-sdk/versions/1.0.
|
|
28
|
+
For additional gem details, see the [RubyGems page for the vmsp-sdk gem](https://rubygems.org/gems/vmsp-sdk/versions/1.0.1).
|
|
29
29
|
|
|
30
30
|
## IRB Console Usage
|
|
31
31
|
|
|
@@ -64,14 +64,14 @@ ruby bin/console
|
|
|
64
64
|
|
|
65
65
|
## Initialize the API Client
|
|
66
66
|
|
|
67
|
-
**_Note:_** Documentation for the client can be found [here.](https://www.github.com/sdks-io/vmsp-sdk-ruby-sdk/tree/1.0.
|
|
67
|
+
**_Note:_** Documentation for the client can be found [here.](https://www.github.com/sdks-io/vmsp-sdk-ruby-sdk/tree/1.0.1/doc/client.md)
|
|
68
68
|
|
|
69
69
|
The following parameters are configurable for the API Client:
|
|
70
70
|
|
|
71
71
|
| Parameter | Type | Description |
|
|
72
72
|
| --- | --- | --- |
|
|
73
73
|
| url | `UrlEnum` | This variable specifies the type of environment. Environments:<br><br>* `api.shell.com/na/ev` - Production<br>* `api-test.shell.com/na/ev` - TEST<br>*Default*: `UrlEnum::ENUM_APITESTSHELLCOMNAEV` |
|
|
74
|
-
| environment | [`Environment`](https://www.github.com/sdks-io/vmsp-sdk-ruby-sdk/tree/1.0.
|
|
74
|
+
| environment | [`Environment`](https://www.github.com/sdks-io/vmsp-sdk-ruby-sdk/tree/1.0.1/README.md#environments) | The API environment. <br> **Default: `Environment.PRODUCTION`** |
|
|
75
75
|
| connection | `Faraday::Connection` | The Faraday connection object passed by the SDK user for making requests |
|
|
76
76
|
| adapter | `Faraday::Adapter` | The Faraday adapter object passed by the SDK user for performing http requests |
|
|
77
77
|
| timeout | `Float` | The value to use for connection timeout. <br> **Default: 60** |
|
|
@@ -81,9 +81,9 @@ The following parameters are configurable for the API Client:
|
|
|
81
81
|
| retry_statuses | `Array` | A list of HTTP statuses to retry. <br> **Default: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524]** |
|
|
82
82
|
| retry_methods | `Array` | A list of HTTP methods to retry. <br> **Default: %i[get put]** |
|
|
83
83
|
| http_callback | `HttpCallBack` | The Http CallBack allows defining callables for pre and post API calls. |
|
|
84
|
-
| proxy_settings | [`ProxySettings`](https://www.github.com/sdks-io/vmsp-sdk-ruby-sdk/tree/1.0.
|
|
85
|
-
| bearer_authorization_credentials | [`BearerAuthorizationCredentials`](https://www.github.com/sdks-io/vmsp-sdk-ruby-sdk/tree/1.0.
|
|
86
|
-
| ocpi_authorization_credentials | [`OcpiAuthorizationCredentials`](https://www.github.com/sdks-io/vmsp-sdk-ruby-sdk/tree/1.0.
|
|
84
|
+
| proxy_settings | [`ProxySettings`](https://www.github.com/sdks-io/vmsp-sdk-ruby-sdk/tree/1.0.1/doc/proxy-settings.md) | Optional proxy configuration to route HTTP requests through a proxy server. |
|
|
85
|
+
| bearer_authorization_credentials | [`BearerAuthorizationCredentials`](https://www.github.com/sdks-io/vmsp-sdk-ruby-sdk/tree/1.0.1/doc/auth/oauth-2-bearer-token.md) | The credential object for OAuth 2 Bearer token |
|
|
86
|
+
| ocpi_authorization_credentials | [`OcpiAuthorizationCredentials`](https://www.github.com/sdks-io/vmsp-sdk-ruby-sdk/tree/1.0.1/doc/auth/custom-header-signature.md) | The credential object for Custom Header Signature |
|
|
87
87
|
|
|
88
88
|
The API client can be initialized as follows:
|
|
89
89
|
|
|
@@ -115,7 +115,7 @@ include EMobilityVmspocpiapIs
|
|
|
115
115
|
client = Client.from_env
|
|
116
116
|
```
|
|
117
117
|
|
|
118
|
-
See the [`Environment-Based Client Initialization`](https://www.github.com/sdks-io/vmsp-sdk-ruby-sdk/tree/1.0.
|
|
118
|
+
See the [`Environment-Based Client Initialization`](https://www.github.com/sdks-io/vmsp-sdk-ruby-sdk/tree/1.0.1/doc/environment-based-client-initialization.md) section for details.
|
|
119
119
|
|
|
120
120
|
## Environments
|
|
121
121
|
|
|
@@ -131,37 +131,37 @@ The SDK can be configured to use a different environment for making API calls. A
|
|
|
131
131
|
|
|
132
132
|
This API uses the following authentication schemes.
|
|
133
133
|
|
|
134
|
-
* [`bearerAuthorization (OAuth 2 Bearer token)`](https://www.github.com/sdks-io/vmsp-sdk-ruby-sdk/tree/1.0.
|
|
135
|
-
* [`ocpiAuthorization (Custom Header Signature)`](https://www.github.com/sdks-io/vmsp-sdk-ruby-sdk/tree/1.0.
|
|
134
|
+
* [`bearerAuthorization (OAuth 2 Bearer token)`](https://www.github.com/sdks-io/vmsp-sdk-ruby-sdk/tree/1.0.1/doc/auth/oauth-2-bearer-token.md)
|
|
135
|
+
* [`ocpiAuthorization (Custom Header Signature)`](https://www.github.com/sdks-io/vmsp-sdk-ruby-sdk/tree/1.0.1/doc/auth/custom-header-signature.md)
|
|
136
136
|
|
|
137
137
|
## List of APIs
|
|
138
138
|
|
|
139
|
-
* [CD Rs PULL](https://www.github.com/sdks-io/vmsp-sdk-ruby-sdk/tree/1.0.
|
|
140
|
-
* [CD Rs PUSH](https://www.github.com/sdks-io/vmsp-sdk-ruby-sdk/tree/1.0.
|
|
141
|
-
* [Commands Callback](https://www.github.com/sdks-io/vmsp-sdk-ruby-sdk/tree/1.0.
|
|
142
|
-
* [Locations PULL](https://www.github.com/sdks-io/vmsp-sdk-ruby-sdk/tree/1.0.
|
|
143
|
-
* [Locations PUSH](https://www.github.com/sdks-io/vmsp-sdk-ruby-sdk/tree/1.0.
|
|
144
|
-
* [Sessions PULL](https://www.github.com/sdks-io/vmsp-sdk-ruby-sdk/tree/1.0.
|
|
145
|
-
* [Sessions PUSH](https://www.github.com/sdks-io/vmsp-sdk-ruby-sdk/tree/1.0.
|
|
146
|
-
* [Tariffs PULL](https://www.github.com/sdks-io/vmsp-sdk-ruby-sdk/tree/1.0.
|
|
147
|
-
* [Tariffs PUSH](https://www.github.com/sdks-io/vmsp-sdk-ruby-sdk/tree/1.0.
|
|
148
|
-
* [Account](https://www.github.com/sdks-io/vmsp-sdk-ruby-sdk/tree/1.0.
|
|
149
|
-
* [Commands](https://www.github.com/sdks-io/vmsp-sdk-ruby-sdk/tree/1.0.
|
|
139
|
+
* [CD Rs PULL](https://www.github.com/sdks-io/vmsp-sdk-ruby-sdk/tree/1.0.1/doc/controllers/cd-rs-pull.md)
|
|
140
|
+
* [CD Rs PUSH](https://www.github.com/sdks-io/vmsp-sdk-ruby-sdk/tree/1.0.1/doc/controllers/cd-rs-push.md)
|
|
141
|
+
* [Commands Callback](https://www.github.com/sdks-io/vmsp-sdk-ruby-sdk/tree/1.0.1/doc/controllers/commands-callback.md)
|
|
142
|
+
* [Locations PULL](https://www.github.com/sdks-io/vmsp-sdk-ruby-sdk/tree/1.0.1/doc/controllers/locations-pull.md)
|
|
143
|
+
* [Locations PUSH](https://www.github.com/sdks-io/vmsp-sdk-ruby-sdk/tree/1.0.1/doc/controllers/locations-push.md)
|
|
144
|
+
* [Sessions PULL](https://www.github.com/sdks-io/vmsp-sdk-ruby-sdk/tree/1.0.1/doc/controllers/sessions-pull.md)
|
|
145
|
+
* [Sessions PUSH](https://www.github.com/sdks-io/vmsp-sdk-ruby-sdk/tree/1.0.1/doc/controllers/sessions-push.md)
|
|
146
|
+
* [Tariffs PULL](https://www.github.com/sdks-io/vmsp-sdk-ruby-sdk/tree/1.0.1/doc/controllers/tariffs-pull.md)
|
|
147
|
+
* [Tariffs PUSH](https://www.github.com/sdks-io/vmsp-sdk-ruby-sdk/tree/1.0.1/doc/controllers/tariffs-push.md)
|
|
148
|
+
* [Account](https://www.github.com/sdks-io/vmsp-sdk-ruby-sdk/tree/1.0.1/doc/controllers/account.md)
|
|
149
|
+
* [Commands](https://www.github.com/sdks-io/vmsp-sdk-ruby-sdk/tree/1.0.1/doc/controllers/commands.md)
|
|
150
150
|
|
|
151
151
|
## SDK Infrastructure
|
|
152
152
|
|
|
153
153
|
### Configuration
|
|
154
154
|
|
|
155
|
-
* [ProxySettings](https://www.github.com/sdks-io/vmsp-sdk-ruby-sdk/tree/1.0.
|
|
156
|
-
* [Environment-Based Client Initialization](https://www.github.com/sdks-io/vmsp-sdk-ruby-sdk/tree/1.0.
|
|
155
|
+
* [ProxySettings](https://www.github.com/sdks-io/vmsp-sdk-ruby-sdk/tree/1.0.1/doc/proxy-settings.md)
|
|
156
|
+
* [Environment-Based Client Initialization](https://www.github.com/sdks-io/vmsp-sdk-ruby-sdk/tree/1.0.1/doc/environment-based-client-initialization.md)
|
|
157
157
|
|
|
158
158
|
### HTTP
|
|
159
159
|
|
|
160
|
-
* [HttpResponse](https://www.github.com/sdks-io/vmsp-sdk-ruby-sdk/tree/1.0.
|
|
161
|
-
* [HttpRequest](https://www.github.com/sdks-io/vmsp-sdk-ruby-sdk/tree/1.0.
|
|
160
|
+
* [HttpResponse](https://www.github.com/sdks-io/vmsp-sdk-ruby-sdk/tree/1.0.1/doc/http-response.md)
|
|
161
|
+
* [HttpRequest](https://www.github.com/sdks-io/vmsp-sdk-ruby-sdk/tree/1.0.1/doc/http-request.md)
|
|
162
162
|
|
|
163
163
|
### Utilities
|
|
164
164
|
|
|
165
|
-
* [ApiHelper](https://www.github.com/sdks-io/vmsp-sdk-ruby-sdk/tree/1.0.
|
|
166
|
-
* [DateTimeHelper](https://www.github.com/sdks-io/vmsp-sdk-ruby-sdk/tree/1.0.
|
|
165
|
+
* [ApiHelper](https://www.github.com/sdks-io/vmsp-sdk-ruby-sdk/tree/1.0.1/doc/api-helper.md)
|
|
166
|
+
* [DateTimeHelper](https://www.github.com/sdks-io/vmsp-sdk-ruby-sdk/tree/1.0.1/doc/date-time-helper.md)
|
|
167
167
|
|