Skip to content

Commit d202890

Browse files
author
Martin Madsen
committed
Run openapi-generator-cli 6.2.1 against (patched) API version 1.3
https://cdn.emnify.net/api/doc/swagger.html#/SIM/SimByIdPatch specified all fields as optional, but are required in the YAML file. Behavior is that they are indeed optional. The request returns 204 if no fields are passed and fails if empty objects are passed.
1 parent dd2548a commit d202890

File tree

372 files changed

+11232
-4953
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

372 files changed

+11232
-4953
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
/target/
22
**/*.rs.bk
33
Cargo.lock
4+
git_push.sh
5+
enterprise.yaml
6+
.travis.yml
7+
.openapi-generator*

Cargo.toml

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,27 @@
11
[package]
22
name = "emnify"
3-
version = "1.0.0"
3+
version = "2.0.0"
44
authors = ["OpenAPI Generator team and contributors"]
5+
description = "Rest API resources of the EMnify System."
6+
# Override this license by providing a License Object in the OpenAPI.
7+
license = "Unlicense"
58
edition = "2018"
69

710
[dependencies]
811
serde = "^1.0"
912
serde_derive = "^1.0"
13+
serde_with = "^2.0"
1014
serde_json = "^1.0"
11-
url = "2.2"
15+
url = "^2.2"
16+
uuid = { version = "^1.0", features = ["serde"] }
1217

1318
[dependencies.reqwest]
1419
version = "^0.11"
1520
default-features = false
16-
features = ["json"]
21+
features = ["json", "multipart"]
1722

1823
[features]
1924
default = ["rustls-tls"]
2025

2126
rustls-tls = ["reqwest/rustls-tls"]
2227
native-tls = ["reqwest/native-tls"]
23-

README.md

+259-184
Large diffs are not rendered by default.

docs/ActionOnExhaustion.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**id** | **f32** | |
8-
**description** | Option<[**crate::models::OneOfstring**](oneOf<string>.md)> | | [optional]
9-
**peak_throughput** | **f32** | |
7+
**id** | **i32** | |
8+
**description** | Option<**String**> | | [optional]
9+
**peak_throughput** | Option<**i32**> | | [optional]
1010

1111
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1212

docs/ActivateBatch.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# ActivateBatch
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**sim_status** | Option<[**crate::models::Status**](Status.md)> | | [optional]
8+
9+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
10+
11+

docs/ActivateMfaKeyRequest.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**status** | Option<[**crate::models::ApiV1UserMfaKeyIdStatus**](_api_v1_user_mfa_key_id_status.md)> | | [optional]
7+
**status** | Option<[**crate::models::ActivateMfaKeyRequestStatus**](Activate_MFA_Key_Request_status.md)> | | [optional]
88

99
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1010

docs/ApiV1UserMfaKeyIdStatus.md docs/ActivateMfaKeyRequestStatus.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ApiV1UserMfaKeyIdStatus
1+
# ActivateMfaKeyRequestStatus
22

33
## Properties
44

docs/ApiV1DataStreamApiCallback.md

-20
This file was deleted.

docs/ApiV1DataStreamApiType1.md

-17
This file was deleted.

docs/ApiV1SimSimIdStatsLastMonth.md

-12
This file was deleted.

docs/ApplicationTokensApi.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ All URIs are relative to *https://cdn.emnify.net*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------
7-
[**application_token_by_id_patch**](ApplicationTokensApi.md#application_token_by_id_patch) | **patch** /api/v1/application_token/{app_token_id} | Update Application Token
8-
[**application_token_get**](ApplicationTokensApi.md#application_token_get) | **get** /api/v1/application_token | List Application Tokens
9-
[**application_token_post**](ApplicationTokensApi.md#application_token_post) | **post** /api/v1/application_token | Create Application Token
7+
[**application_token_by_id_patch**](ApplicationTokensApi.md#application_token_by_id_patch) | **PATCH** /api/v1/application_token/{app_token_id} | Update Application Token
8+
[**application_token_get**](ApplicationTokensApi.md#application_token_get) | **GET** /api/v1/application_token | List Application Tokens
9+
[**application_token_post**](ApplicationTokensApi.md#application_token_post) | **POST** /api/v1/application_token | Create Application Token
1010

1111

1212

docs/InlineResponse201.md docs/AssignRatezoneInclusiveVolume201Response.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# InlineResponse201
1+
# AssignRatezoneInclusiveVolume201Response
22

33
## Properties
44

docs/InlineObject3.md docs/AssignRatezoneInclusiveVolumeRequest.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# InlineObject3
1+
# AssignRatezoneInclusiveVolumeRequest
22

33
## Properties
44

docs/InlineResponse404.md docs/Authenticate404Response.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# InlineResponse404
1+
# Authenticate404Response
22

33
## Properties
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**error_code** | Option<**f32**> | | [optional]
7+
**error_code** | Option<**i32**> | | [optional]
88
**error_token** | Option<**String**> | | [optional]
99
**message** | Option<**String**> | | [optional]
1010

docs/Authentication.md

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Authentication
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**application_token** | Option<**String**> | | [optional]
8+
**username** | Option<**String**> | | [optional]
9+
**password** | Option<**String**> | | [optional]
10+
**refresh_token** | Option<**String**> | | [optional]
11+
12+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
13+
14+

docs/AuthenticationApi.md

+13-13
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@ All URIs are relative to *https://cdn.emnify.net*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------
7-
[**authenticate**](AuthenticationApi.md#authenticate) | **post** /api/v1/authenticate | Retrieve Authentication Token
8-
[**post_mfa**](AuthenticationApi.md#post_mfa) | **post** /api/v1/user/mfa | Create an MFA key
9-
[**user_mfa_by_id_patch**](AuthenticationApi.md#user_mfa_by_id_patch) | **patch** /api/v1/user/mfa/{key_id} | Activate MFA key
10-
[**user_mfa_by_user_id_and_key_id_delete**](AuthenticationApi.md#user_mfa_by_user_id_and_key_id_delete) | **delete** /api/v1/user/{user_id}/mfa/{key_id} | Delete an MFA key
11-
[**user_mfa_status_get**](AuthenticationApi.md#user_mfa_status_get) | **get** /api/v1/user/mfa/status | List MFA key Statuses
12-
[**user_mfa_trusted_device_by_user_id_and_device_id_delete**](AuthenticationApi.md#user_mfa_trusted_device_by_user_id_and_device_id_delete) | **delete** /api/v1/user/{user_id}/mfa/trusted_device/{device_id} | Delete a Trusted Device
13-
[**user_mfa_trusted_device_by_user_id_get**](AuthenticationApi.md#user_mfa_trusted_device_by_user_id_get) | **get** /api/v1/user/{user_id}/mfa/trusted_device | List Trusted Devices
14-
[**user_mfa_type_get**](AuthenticationApi.md#user_mfa_type_get) | **get** /api/v1/user/mfa/type | List MFA key types
7+
[**authenticate**](AuthenticationApi.md#authenticate) | **POST** /api/v1/authenticate | Retrieve Authentication Token
8+
[**post_mfa**](AuthenticationApi.md#post_mfa) | **POST** /api/v1/user/mfa | Create an MFA key
9+
[**user_mfa_by_id_patch**](AuthenticationApi.md#user_mfa_by_id_patch) | **PATCH** /api/v1/user/mfa/{key_id} | Activate MFA key
10+
[**user_mfa_by_user_id_and_key_id_delete**](AuthenticationApi.md#user_mfa_by_user_id_and_key_id_delete) | **DELETE** /api/v1/user/{user_id}/mfa/{key_id} | Delete an MFA key
11+
[**user_mfa_status_get**](AuthenticationApi.md#user_mfa_status_get) | **GET** /api/v1/user/mfa/status | List MFA key Statuses
12+
[**user_mfa_trusted_device_by_user_id_and_device_id_delete**](AuthenticationApi.md#user_mfa_trusted_device_by_user_id_and_device_id_delete) | **DELETE** /api/v1/user/{user_id}/mfa/trusted_device/{device_id} | Delete a Trusted Device
13+
[**user_mfa_trusted_device_by_user_id_get**](AuthenticationApi.md#user_mfa_trusted_device_by_user_id_get) | **GET** /api/v1/user/{user_id}/mfa/trusted_device | List Trusted Devices
14+
[**user_mfa_type_get**](AuthenticationApi.md#user_mfa_type_get) | **GET** /api/v1/user/mfa/type | List MFA key types
1515

1616

1717

1818
## authenticate
1919

20-
> crate::models::OneOfobjectobject authenticate(UNKNOWN_BASE_TYPE)
20+
> crate::models::AuthenticationResponse authenticate(authentication)
2121
Retrieve Authentication Token
2222

2323
This entrypoint returns a JWT `auth_token` for authenticating further requests to the API.
@@ -27,11 +27,11 @@ This entrypoint returns a JWT `auth_token` for authenticating further requests t
2727

2828
Name | Type | Description | Required | Notes
2929
------------- | ------------- | ------------- | ------------- | -------------
30-
**UNKNOWN_BASE_TYPE** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md) | Authentication using Application Tokens or user/password combination | [required] |
30+
**authentication** | [**Authentication**](Authentication.md) | Authentication using Application Tokens or user/password combination | [required] |
3131

3232
### Return type
3333

34-
[**crate::models::OneOfobjectobject**](oneOf<object,object>.md)
34+
[**crate::models::AuthenticationResponse**](AuthenticationResponse.md)
3535

3636
### Authorization
3737

@@ -47,7 +47,7 @@ No authorization required
4747

4848
## post_mfa
4949

50-
> crate::models::CreateMfaKeyResponse post_mfa(inline_object)
50+
> crate::models::CreateMfaKeyResponse post_mfa(post_mfa_request)
5151
Create an MFA key
5252

5353
Generate and store a MFA key for the requesting user. The MFA key will have the status `activation pending` after this call and must be activated through a separate call (`/api/v1/user/mfa/{id}`). You must provide following fields with this request: * `type` (Object required) - id (Number) * `password` (String required) - User password The **MFA key** object returned by the server contains the following properties: * `id` (Integer) - The unique ID of this MFA key * `status` (Object) ID (Integer) - Id of status of this MFA key - `description` (String) - description of the status * `type` (Object) ID (Integer) - Id of type of this MFA key - `description` (String) - description of the type * `secret_key` (String) - Secret key (encoded in Base32) for this MFA key, will be displayed only on creation * `otpauth` (String) - Secret key as a URI encoded for QR codes, will be displayed only on creation * `creation_date` (Timestamp) - Timestamp when this MFA key was created - type: ISO 8601 timestamp format * `activation_date` (Timestamp) - Timestamp when this MFA key was activated - type: ISO 8601 timestamp format
@@ -57,7 +57,7 @@ Generate and store a MFA key for the requesting user. The MFA key will have the
5757

5858
Name | Type | Description | Required | Notes
5959
------------- | ------------- | ------------- | ------------- | -------------
60-
**inline_object** | [**InlineObject**](InlineObject.md) | | [required] |
60+
**post_mfa_request** | [**PostMfaRequest**](PostMfaRequest.md) | | [required] |
6161

6262
### Return type
6363

docs/AuthenticationResponse.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# AuthenticationResponse
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**auth_token** | Option<**String**> | | [optional]
8+
**refresh_token** | Option<**String**> | | [optional]
9+
10+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11+
12+

docs/ChangePassword422response.md docs/ChangePassword422Error.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ChangePassword422response
1+
# ChangePassword422Error
22

33
## Properties
44

docs/ChangeQuota422Error.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# ChangeQuota422Error
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**message** | Option<**String**> | | [optional]
8+
9+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
10+
11+

0 commit comments

Comments
 (0)