spartera_api_sdk 1.0.68 → 1.0.72
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/docs/APIKeysApi.md +20 -20
- data/docs/AlertsApi.md +28 -28
- data/docs/AssetPriceHistoryApi.md +32 -32
- data/docs/AssetsApi.md +52 -52
- data/docs/CloudProvidersApi.md +8 -8
- data/docs/CompaniesApi.md +36 -36
- data/docs/CompaniesCompanyIdApiKeysGet200Response.md +20 -0
- data/docs/CompaniesCompanyIdAssetsAssetIdDelete200Response.md +20 -0
- data/docs/CompaniesCompanyIdAssetsAssetIdDelete200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdAssetsAssetIdGet200Response.md +20 -0
- data/docs/CompaniesCompanyIdAssetsAssetIdPatch200Response.md +20 -0
- data/docs/CompaniesCompanyIdAssetsAssetIdPatch200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdAssetsGet200Response.md +20 -0
- data/docs/CompaniesCompanyIdAssetsPost200Response.md +20 -0
- data/docs/CompaniesCompanyIdAssetsPost200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdConnectionsConnectionIdDelete200Response.md +20 -0
- data/docs/CompaniesCompanyIdConnectionsConnectionIdDelete200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdConnectionsConnectionIdGet200Response.md +20 -0
- data/docs/CompaniesCompanyIdConnectionsConnectionIdPatch200Response.md +20 -0
- data/docs/CompaniesCompanyIdConnectionsConnectionIdPatch200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdConnectionsGet200Response.md +20 -0
- data/docs/CompaniesCompanyIdConnectionsPost200Response.md +20 -0
- data/docs/CompaniesCompanyIdConnectionsPost200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdUsersGet200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersPost200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersPost200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdUsersUserIdAlertsAlertIdDelete200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersUserIdAlertsAlertIdDelete200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdUsersUserIdAlertsAlertIdGet200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersUserIdAlertsAlertIdPatch200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersUserIdAlertsAlertIdPatch200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdUsersUserIdAlertsGet200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersUserIdAlertsPost200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersUserIdAlertsPost200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdUsersUserIdDelete200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersUserIdDelete200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdUsersUserIdFavoritesFavoriteIdDelete200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersUserIdFavoritesFavoriteIdDelete200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdUsersUserIdFavoritesFavoriteIdGet200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersUserIdFavoritesFavoriteIdPatch200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersUserIdFavoritesFavoriteIdPatch200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdUsersUserIdFavoritesGet200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersUserIdFavoritesPost200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersUserIdFavoritesPost200ResponseData.md +18 -0
- data/docs/CompaniesCompanyIdUsersUserIdGet200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersUserIdPatch200Response.md +20 -0
- data/docs/CompaniesCompanyIdUsersUserIdPatch200ResponseData.md +18 -0
- data/docs/ConnectionsApi.md +28 -28
- data/docs/FavoritesApi.md +32 -32
- data/docs/MeGet200Response.md +36 -0
- data/docs/MeGet200ResponseApiKeyInfo.md +20 -0
- data/docs/MeGet200ResponseProfile.md +36 -0
- data/docs/MeGet200ResponseTokenMetadata.md +24 -0
- data/docs/StorageEnginesApi.md +8 -8
- data/docs/UsersApi.md +87 -20
- data/lib/spartera_api_sdk/api/alerts_api.rb +21 -21
- data/lib/spartera_api_sdk/api/api_keys_api.rb +15 -15
- data/lib/spartera_api_sdk/api/asset_price_history_api.rb +24 -24
- data/lib/spartera_api_sdk/api/assets_api.rb +46 -46
- data/lib/spartera_api_sdk/api/cloud_providers_api.rb +6 -6
- data/lib/spartera_api_sdk/api/companies_api.rb +27 -27
- data/lib/spartera_api_sdk/api/connections_api.rb +21 -21
- data/lib/spartera_api_sdk/api/favorites_api.rb +24 -24
- data/lib/spartera_api_sdk/api/storage_engines_api.rb +6 -6
- data/lib/spartera_api_sdk/api/users_api.rb +70 -15
- data/lib/spartera_api_sdk/models/companies_company_id_api_keys_get200_response.rb +248 -0
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_delete200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_delete200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_get200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_patch200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_assets_asset_id_patch200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_assets_get200_response.rb +266 -0
- data/lib/spartera_api_sdk/models/companies_company_id_assets_post200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_assets_post200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_connections_connection_id_delete200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_connections_connection_id_delete200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_connections_connection_id_get200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_connections_connection_id_patch200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_connections_connection_id_patch200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_connections_get200_response.rb +266 -0
- data/lib/spartera_api_sdk/models/companies_company_id_connections_post200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_connections_post200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_get200_response.rb +266 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_post200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_post200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_alert_id_delete200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_alert_id_delete200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_alert_id_get200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_alert_id_patch200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_alert_id_patch200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_get200_response.rb +266 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_post200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_alerts_post200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_delete200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_delete200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_favorite_id_delete200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_favorite_id_delete200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_favorite_id_get200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_favorite_id_patch200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_favorite_id_patch200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_get200_response.rb +266 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_post200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_favorites_post200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_get200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_patch200_response.rb +264 -0
- data/lib/spartera_api_sdk/models/companies_company_id_users_user_id_patch200_response_data.rb +238 -0
- data/lib/spartera_api_sdk/models/me_get200_response.rb +417 -0
- data/lib/spartera_api_sdk/models/me_get200_response_api_key_info.rb +232 -0
- data/lib/spartera_api_sdk/models/me_get200_response_profile.rb +345 -0
- data/lib/spartera_api_sdk/models/me_get200_response_token_metadata.rb +252 -0
- data/lib/spartera_api_sdk/version.rb +1 -13
- data/lib/spartera_api_sdk.rb +45 -0
- data/spec/api/alerts_api_spec.rb +7 -7
- data/spec/api/api_keys_api_spec.rb +5 -5
- data/spec/api/asset_price_history_api_spec.rb +8 -8
- data/spec/api/assets_api_spec.rb +13 -13
- data/spec/api/cloud_providers_api_spec.rb +2 -2
- data/spec/api/companies_api_spec.rb +9 -9
- data/spec/api/connections_api_spec.rb +7 -7
- data/spec/api/favorites_api_spec.rb +8 -8
- data/spec/api/storage_engines_api_spec.rb +2 -2
- data/spec/api/users_api_spec.rb +15 -5
- data/spec/models/companies_company_id_api_keys_get200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_assets_asset_id_delete200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_assets_asset_id_delete200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_assets_asset_id_get200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_assets_asset_id_patch200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_assets_asset_id_patch200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_assets_get200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_assets_post200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_assets_post200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_connections_connection_id_delete200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_connections_connection_id_delete200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_connections_connection_id_get200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_connections_connection_id_patch200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_connections_connection_id_patch200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_connections_get200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_connections_post200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_connections_post200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_get200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_post200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_users_post200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_user_id_alerts_alert_id_delete200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_users_user_id_alerts_alert_id_delete200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_user_id_alerts_alert_id_get200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_user_id_alerts_alert_id_patch200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_users_user_id_alerts_alert_id_patch200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_user_id_alerts_get200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_user_id_alerts_post200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_users_user_id_alerts_post200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_user_id_delete200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_users_user_id_delete200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_user_id_favorites_favorite_id_delete200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_users_user_id_favorites_favorite_id_delete200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_user_id_favorites_favorite_id_get200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_user_id_favorites_favorite_id_patch200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_users_user_id_favorites_favorite_id_patch200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_user_id_favorites_get200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_user_id_favorites_post200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_users_user_id_favorites_post200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_user_id_get200_response_spec.rb +42 -0
- data/spec/models/companies_company_id_users_user_id_patch200_response_data_spec.rb +36 -0
- data/spec/models/companies_company_id_users_user_id_patch200_response_spec.rb +42 -0
- data/spec/models/me_get200_response_api_key_info_spec.rb +42 -0
- data/spec/models/me_get200_response_profile_spec.rb +94 -0
- data/spec/models/me_get200_response_spec.rb +94 -0
- data/spec/models/me_get200_response_token_metadata_spec.rb +54 -0
- metadata +212 -20
- data/Gemfile +0 -11
- data/Rakefile +0 -10
- data/config.json +0 -10
- data/git_push.sh +0 -57
- data/spartera_api_sdk.gemspec +0 -28
- data/test.sh +0 -42
data/docs/StorageEnginesApi.md
CHANGED
@@ -10,7 +10,7 @@ All URIs are relative to *https://api.spartera.com*
|
|
10
10
|
|
11
11
|
## cloud_providers_provider_id_storage_engines_engine_id_get
|
12
12
|
|
13
|
-
>
|
13
|
+
> <CompaniesCompanyIdApiKeysGet200Response> cloud_providers_provider_id_storage_engines_engine_id_get(provider_id, engine_id)
|
14
14
|
|
15
15
|
Get single storage engine by ID
|
16
16
|
|
@@ -44,7 +44,7 @@ end
|
|
44
44
|
|
45
45
|
This returns an Array which contains the response data, status code and headers.
|
46
46
|
|
47
|
-
> <Array(
|
47
|
+
> <Array(<CompaniesCompanyIdApiKeysGet200Response>, Integer, Hash)> cloud_providers_provider_id_storage_engines_engine_id_get_with_http_info(provider_id, engine_id)
|
48
48
|
|
49
49
|
```ruby
|
50
50
|
begin
|
@@ -52,7 +52,7 @@ begin
|
|
52
52
|
data, status_code, headers = api_instance.cloud_providers_provider_id_storage_engines_engine_id_get_with_http_info(provider_id, engine_id)
|
53
53
|
p status_code # => 2xx
|
54
54
|
p headers # => { ... }
|
55
|
-
p data # =>
|
55
|
+
p data # => <CompaniesCompanyIdApiKeysGet200Response>
|
56
56
|
rescue SparteraApiSdk::ApiError => e
|
57
57
|
puts "Error when calling StorageEnginesApi->cloud_providers_provider_id_storage_engines_engine_id_get_with_http_info: #{e}"
|
58
58
|
end
|
@@ -67,7 +67,7 @@ end
|
|
67
67
|
|
68
68
|
### Return type
|
69
69
|
|
70
|
-
**
|
70
|
+
[**CompaniesCompanyIdApiKeysGet200Response**](CompaniesCompanyIdApiKeysGet200Response.md)
|
71
71
|
|
72
72
|
### Authorization
|
73
73
|
|
@@ -81,7 +81,7 @@ end
|
|
81
81
|
|
82
82
|
## cloud_providers_provider_id_storage_engines_get
|
83
83
|
|
84
|
-
>
|
84
|
+
> <CompaniesCompanyIdApiKeysGet200Response> cloud_providers_provider_id_storage_engines_get(provider_id)
|
85
85
|
|
86
86
|
Get a list of all storage engines
|
87
87
|
|
@@ -114,7 +114,7 @@ end
|
|
114
114
|
|
115
115
|
This returns an Array which contains the response data, status code and headers.
|
116
116
|
|
117
|
-
> <Array(
|
117
|
+
> <Array(<CompaniesCompanyIdApiKeysGet200Response>, Integer, Hash)> cloud_providers_provider_id_storage_engines_get_with_http_info(provider_id)
|
118
118
|
|
119
119
|
```ruby
|
120
120
|
begin
|
@@ -122,7 +122,7 @@ begin
|
|
122
122
|
data, status_code, headers = api_instance.cloud_providers_provider_id_storage_engines_get_with_http_info(provider_id)
|
123
123
|
p status_code # => 2xx
|
124
124
|
p headers # => { ... }
|
125
|
-
p data # =>
|
125
|
+
p data # => <CompaniesCompanyIdApiKeysGet200Response>
|
126
126
|
rescue SparteraApiSdk::ApiError => e
|
127
127
|
puts "Error when calling StorageEnginesApi->cloud_providers_provider_id_storage_engines_get_with_http_info: #{e}"
|
128
128
|
end
|
@@ -136,7 +136,7 @@ end
|
|
136
136
|
|
137
137
|
### Return type
|
138
138
|
|
139
|
-
**
|
139
|
+
[**CompaniesCompanyIdApiKeysGet200Response**](CompaniesCompanyIdApiKeysGet200Response.md)
|
140
140
|
|
141
141
|
### Authorization
|
142
142
|
|
data/docs/UsersApi.md
CHANGED
@@ -9,11 +9,12 @@ All URIs are relative to *https://api.spartera.com*
|
|
9
9
|
| [**companies_company_id_users_user_id_delete**](UsersApi.md#companies_company_id_users_user_id_delete) | **DELETE** /companies/{company_id}/users/{user_id} | Delete single user by ID |
|
10
10
|
| [**companies_company_id_users_user_id_get**](UsersApi.md#companies_company_id_users_user_id_get) | **GET** /companies/{company_id}/users/{user_id} | Get single user by ID |
|
11
11
|
| [**companies_company_id_users_user_id_patch**](UsersApi.md#companies_company_id_users_user_id_patch) | **PATCH** /companies/{company_id}/users/{user_id} | Update an existing user by ID |
|
12
|
+
| [**me_get**](UsersApi.md#me_get) | **GET** /me | Get current authenticated user's profile information. Returns: JSON response with user profile data from database |
|
12
13
|
|
13
14
|
|
14
15
|
## companies_company_id_users_get
|
15
16
|
|
16
|
-
>
|
17
|
+
> <CompaniesCompanyIdUsersGet200Response> companies_company_id_users_get(company_id)
|
17
18
|
|
18
19
|
Get a list of all users in a company
|
19
20
|
|
@@ -46,7 +47,7 @@ end
|
|
46
47
|
|
47
48
|
This returns an Array which contains the response data, status code and headers.
|
48
49
|
|
49
|
-
> <Array(
|
50
|
+
> <Array(<CompaniesCompanyIdUsersGet200Response>, Integer, Hash)> companies_company_id_users_get_with_http_info(company_id)
|
50
51
|
|
51
52
|
```ruby
|
52
53
|
begin
|
@@ -54,7 +55,7 @@ begin
|
|
54
55
|
data, status_code, headers = api_instance.companies_company_id_users_get_with_http_info(company_id)
|
55
56
|
p status_code # => 2xx
|
56
57
|
p headers # => { ... }
|
57
|
-
p data # =>
|
58
|
+
p data # => <CompaniesCompanyIdUsersGet200Response>
|
58
59
|
rescue SparteraApiSdk::ApiError => e
|
59
60
|
puts "Error when calling UsersApi->companies_company_id_users_get_with_http_info: #{e}"
|
60
61
|
end
|
@@ -68,7 +69,7 @@ end
|
|
68
69
|
|
69
70
|
### Return type
|
70
71
|
|
71
|
-
**
|
72
|
+
[**CompaniesCompanyIdUsersGet200Response**](CompaniesCompanyIdUsersGet200Response.md)
|
72
73
|
|
73
74
|
### Authorization
|
74
75
|
|
@@ -82,7 +83,7 @@ end
|
|
82
83
|
|
83
84
|
## companies_company_id_users_post
|
84
85
|
|
85
|
-
>
|
86
|
+
> <CompaniesCompanyIdUsersPost200Response> companies_company_id_users_post(company_id, user)
|
86
87
|
|
87
88
|
Create a new user
|
88
89
|
|
@@ -116,7 +117,7 @@ end
|
|
116
117
|
|
117
118
|
This returns an Array which contains the response data, status code and headers.
|
118
119
|
|
119
|
-
> <Array(
|
120
|
+
> <Array(<CompaniesCompanyIdUsersPost200Response>, Integer, Hash)> companies_company_id_users_post_with_http_info(company_id, user)
|
120
121
|
|
121
122
|
```ruby
|
122
123
|
begin
|
@@ -124,7 +125,7 @@ begin
|
|
124
125
|
data, status_code, headers = api_instance.companies_company_id_users_post_with_http_info(company_id, user)
|
125
126
|
p status_code # => 2xx
|
126
127
|
p headers # => { ... }
|
127
|
-
p data # =>
|
128
|
+
p data # => <CompaniesCompanyIdUsersPost200Response>
|
128
129
|
rescue SparteraApiSdk::ApiError => e
|
129
130
|
puts "Error when calling UsersApi->companies_company_id_users_post_with_http_info: #{e}"
|
130
131
|
end
|
@@ -139,7 +140,7 @@ end
|
|
139
140
|
|
140
141
|
### Return type
|
141
142
|
|
142
|
-
**
|
143
|
+
[**CompaniesCompanyIdUsersPost200Response**](CompaniesCompanyIdUsersPost200Response.md)
|
143
144
|
|
144
145
|
### Authorization
|
145
146
|
|
@@ -153,7 +154,7 @@ end
|
|
153
154
|
|
154
155
|
## companies_company_id_users_user_id_delete
|
155
156
|
|
156
|
-
>
|
157
|
+
> <CompaniesCompanyIdUsersUserIdDelete200Response> companies_company_id_users_user_id_delete(company_id, user_id)
|
157
158
|
|
158
159
|
Delete single user by ID
|
159
160
|
|
@@ -187,7 +188,7 @@ end
|
|
187
188
|
|
188
189
|
This returns an Array which contains the response data, status code and headers.
|
189
190
|
|
190
|
-
> <Array(
|
191
|
+
> <Array(<CompaniesCompanyIdUsersUserIdDelete200Response>, Integer, Hash)> companies_company_id_users_user_id_delete_with_http_info(company_id, user_id)
|
191
192
|
|
192
193
|
```ruby
|
193
194
|
begin
|
@@ -195,7 +196,7 @@ begin
|
|
195
196
|
data, status_code, headers = api_instance.companies_company_id_users_user_id_delete_with_http_info(company_id, user_id)
|
196
197
|
p status_code # => 2xx
|
197
198
|
p headers # => { ... }
|
198
|
-
p data # =>
|
199
|
+
p data # => <CompaniesCompanyIdUsersUserIdDelete200Response>
|
199
200
|
rescue SparteraApiSdk::ApiError => e
|
200
201
|
puts "Error when calling UsersApi->companies_company_id_users_user_id_delete_with_http_info: #{e}"
|
201
202
|
end
|
@@ -210,7 +211,7 @@ end
|
|
210
211
|
|
211
212
|
### Return type
|
212
213
|
|
213
|
-
**
|
214
|
+
[**CompaniesCompanyIdUsersUserIdDelete200Response**](CompaniesCompanyIdUsersUserIdDelete200Response.md)
|
214
215
|
|
215
216
|
### Authorization
|
216
217
|
|
@@ -224,7 +225,7 @@ end
|
|
224
225
|
|
225
226
|
## companies_company_id_users_user_id_get
|
226
227
|
|
227
|
-
>
|
228
|
+
> <CompaniesCompanyIdUsersUserIdGet200Response> companies_company_id_users_user_id_get(company_id, user_id)
|
228
229
|
|
229
230
|
Get single user by ID
|
230
231
|
|
@@ -258,7 +259,7 @@ end
|
|
258
259
|
|
259
260
|
This returns an Array which contains the response data, status code and headers.
|
260
261
|
|
261
|
-
> <Array(
|
262
|
+
> <Array(<CompaniesCompanyIdUsersUserIdGet200Response>, Integer, Hash)> companies_company_id_users_user_id_get_with_http_info(company_id, user_id)
|
262
263
|
|
263
264
|
```ruby
|
264
265
|
begin
|
@@ -266,7 +267,7 @@ begin
|
|
266
267
|
data, status_code, headers = api_instance.companies_company_id_users_user_id_get_with_http_info(company_id, user_id)
|
267
268
|
p status_code # => 2xx
|
268
269
|
p headers # => { ... }
|
269
|
-
p data # =>
|
270
|
+
p data # => <CompaniesCompanyIdUsersUserIdGet200Response>
|
270
271
|
rescue SparteraApiSdk::ApiError => e
|
271
272
|
puts "Error when calling UsersApi->companies_company_id_users_user_id_get_with_http_info: #{e}"
|
272
273
|
end
|
@@ -281,7 +282,7 @@ end
|
|
281
282
|
|
282
283
|
### Return type
|
283
284
|
|
284
|
-
**
|
285
|
+
[**CompaniesCompanyIdUsersUserIdGet200Response**](CompaniesCompanyIdUsersUserIdGet200Response.md)
|
285
286
|
|
286
287
|
### Authorization
|
287
288
|
|
@@ -295,7 +296,7 @@ end
|
|
295
296
|
|
296
297
|
## companies_company_id_users_user_id_patch
|
297
298
|
|
298
|
-
>
|
299
|
+
> <CompaniesCompanyIdUsersUserIdPatch200Response> companies_company_id_users_user_id_patch(company_id, user_id, user)
|
299
300
|
|
300
301
|
Update an existing user by ID
|
301
302
|
|
@@ -330,7 +331,7 @@ end
|
|
330
331
|
|
331
332
|
This returns an Array which contains the response data, status code and headers.
|
332
333
|
|
333
|
-
> <Array(
|
334
|
+
> <Array(<CompaniesCompanyIdUsersUserIdPatch200Response>, Integer, Hash)> companies_company_id_users_user_id_patch_with_http_info(company_id, user_id, user)
|
334
335
|
|
335
336
|
```ruby
|
336
337
|
begin
|
@@ -338,7 +339,7 @@ begin
|
|
338
339
|
data, status_code, headers = api_instance.companies_company_id_users_user_id_patch_with_http_info(company_id, user_id, user)
|
339
340
|
p status_code # => 2xx
|
340
341
|
p headers # => { ... }
|
341
|
-
p data # =>
|
342
|
+
p data # => <CompaniesCompanyIdUsersUserIdPatch200Response>
|
342
343
|
rescue SparteraApiSdk::ApiError => e
|
343
344
|
puts "Error when calling UsersApi->companies_company_id_users_user_id_patch_with_http_info: #{e}"
|
344
345
|
end
|
@@ -354,7 +355,7 @@ end
|
|
354
355
|
|
355
356
|
### Return type
|
356
357
|
|
357
|
-
**
|
358
|
+
[**CompaniesCompanyIdUsersUserIdPatch200Response**](CompaniesCompanyIdUsersUserIdPatch200Response.md)
|
358
359
|
|
359
360
|
### Authorization
|
360
361
|
|
@@ -365,3 +366,69 @@ end
|
|
365
366
|
- **Content-Type**: application/json
|
366
367
|
- **Accept**: application/json
|
367
368
|
|
369
|
+
|
370
|
+
## me_get
|
371
|
+
|
372
|
+
> <MeGet200Response> me_get
|
373
|
+
|
374
|
+
Get current authenticated user's profile information. Returns: JSON response with user profile data from database
|
375
|
+
|
376
|
+
### Examples
|
377
|
+
|
378
|
+
```ruby
|
379
|
+
require 'time'
|
380
|
+
require 'spartera_api_sdk'
|
381
|
+
# setup authorization
|
382
|
+
SparteraApiSdk.configure do |config|
|
383
|
+
# Configure API key authorization: ApiKeyAuth
|
384
|
+
config.api_key['x-api-key'] = 'YOUR API KEY'
|
385
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
386
|
+
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
387
|
+
end
|
388
|
+
|
389
|
+
api_instance = SparteraApiSdk::UsersApi.new
|
390
|
+
|
391
|
+
begin
|
392
|
+
# Get current authenticated user's profile information. Returns: JSON response with user profile data from database
|
393
|
+
result = api_instance.me_get
|
394
|
+
p result
|
395
|
+
rescue SparteraApiSdk::ApiError => e
|
396
|
+
puts "Error when calling UsersApi->me_get: #{e}"
|
397
|
+
end
|
398
|
+
```
|
399
|
+
|
400
|
+
#### Using the me_get_with_http_info variant
|
401
|
+
|
402
|
+
This returns an Array which contains the response data, status code and headers.
|
403
|
+
|
404
|
+
> <Array(<MeGet200Response>, Integer, Hash)> me_get_with_http_info
|
405
|
+
|
406
|
+
```ruby
|
407
|
+
begin
|
408
|
+
# Get current authenticated user's profile information. Returns: JSON response with user profile data from database
|
409
|
+
data, status_code, headers = api_instance.me_get_with_http_info
|
410
|
+
p status_code # => 2xx
|
411
|
+
p headers # => { ... }
|
412
|
+
p data # => <MeGet200Response>
|
413
|
+
rescue SparteraApiSdk::ApiError => e
|
414
|
+
puts "Error when calling UsersApi->me_get_with_http_info: #{e}"
|
415
|
+
end
|
416
|
+
```
|
417
|
+
|
418
|
+
### Parameters
|
419
|
+
|
420
|
+
This endpoint does not need any parameter.
|
421
|
+
|
422
|
+
### Return type
|
423
|
+
|
424
|
+
[**MeGet200Response**](MeGet200Response.md)
|
425
|
+
|
426
|
+
### Authorization
|
427
|
+
|
428
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
429
|
+
|
430
|
+
### HTTP request headers
|
431
|
+
|
432
|
+
- **Content-Type**: Not defined
|
433
|
+
- **Accept**: application/json
|
434
|
+
|
@@ -24,7 +24,7 @@ module SparteraApiSdk
|
|
24
24
|
# @param user_id [String]
|
25
25
|
# @param alert_id [String]
|
26
26
|
# @param [Hash] opts the optional parameters
|
27
|
-
# @return [
|
27
|
+
# @return [CompaniesCompanyIdUsersUserIdAlertsAlertIdDelete200Response]
|
28
28
|
def companies_company_id_users_user_id_alerts_alert_id_delete(company_id, user_id, alert_id, opts = {})
|
29
29
|
data, _status_code, _headers = companies_company_id_users_user_id_alerts_alert_id_delete_with_http_info(company_id, user_id, alert_id, opts)
|
30
30
|
data
|
@@ -35,7 +35,7 @@ module SparteraApiSdk
|
|
35
35
|
# @param user_id [String]
|
36
36
|
# @param alert_id [String]
|
37
37
|
# @param [Hash] opts the optional parameters
|
38
|
-
# @return [Array<(
|
38
|
+
# @return [Array<(CompaniesCompanyIdUsersUserIdAlertsAlertIdDelete200Response, Integer, Hash)>] CompaniesCompanyIdUsersUserIdAlertsAlertIdDelete200Response data, response status code and response headers
|
39
39
|
def companies_company_id_users_user_id_alerts_alert_id_delete_with_http_info(company_id, user_id, alert_id, opts = {})
|
40
40
|
if @api_client.config.debugging
|
41
41
|
@api_client.config.logger.debug 'Calling API: AlertsApi.companies_company_id_users_user_id_alerts_alert_id_delete ...'
|
@@ -70,7 +70,7 @@ module SparteraApiSdk
|
|
70
70
|
post_body = opts[:debug_body]
|
71
71
|
|
72
72
|
# return_type
|
73
|
-
return_type = opts[:debug_return_type] || '
|
73
|
+
return_type = opts[:debug_return_type] || 'CompaniesCompanyIdUsersUserIdAlertsAlertIdDelete200Response'
|
74
74
|
|
75
75
|
# auth_names
|
76
76
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
@@ -97,7 +97,7 @@ module SparteraApiSdk
|
|
97
97
|
# @param user_id [String]
|
98
98
|
# @param alert_id [String]
|
99
99
|
# @param [Hash] opts the optional parameters
|
100
|
-
# @return [
|
100
|
+
# @return [CompaniesCompanyIdUsersUserIdAlertsAlertIdGet200Response]
|
101
101
|
def companies_company_id_users_user_id_alerts_alert_id_get(company_id, user_id, alert_id, opts = {})
|
102
102
|
data, _status_code, _headers = companies_company_id_users_user_id_alerts_alert_id_get_with_http_info(company_id, user_id, alert_id, opts)
|
103
103
|
data
|
@@ -108,7 +108,7 @@ module SparteraApiSdk
|
|
108
108
|
# @param user_id [String]
|
109
109
|
# @param alert_id [String]
|
110
110
|
# @param [Hash] opts the optional parameters
|
111
|
-
# @return [Array<(
|
111
|
+
# @return [Array<(CompaniesCompanyIdUsersUserIdAlertsAlertIdGet200Response, Integer, Hash)>] CompaniesCompanyIdUsersUserIdAlertsAlertIdGet200Response data, response status code and response headers
|
112
112
|
def companies_company_id_users_user_id_alerts_alert_id_get_with_http_info(company_id, user_id, alert_id, opts = {})
|
113
113
|
if @api_client.config.debugging
|
114
114
|
@api_client.config.logger.debug 'Calling API: AlertsApi.companies_company_id_users_user_id_alerts_alert_id_get ...'
|
@@ -143,7 +143,7 @@ module SparteraApiSdk
|
|
143
143
|
post_body = opts[:debug_body]
|
144
144
|
|
145
145
|
# return_type
|
146
|
-
return_type = opts[:debug_return_type] || '
|
146
|
+
return_type = opts[:debug_return_type] || 'CompaniesCompanyIdUsersUserIdAlertsAlertIdGet200Response'
|
147
147
|
|
148
148
|
# auth_names
|
149
149
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
@@ -171,7 +171,7 @@ module SparteraApiSdk
|
|
171
171
|
# @param alert_id [String]
|
172
172
|
# @param alert [Alert]
|
173
173
|
# @param [Hash] opts the optional parameters
|
174
|
-
# @return [
|
174
|
+
# @return [CompaniesCompanyIdUsersUserIdAlertsAlertIdPatch200Response]
|
175
175
|
def companies_company_id_users_user_id_alerts_alert_id_patch(company_id, user_id, alert_id, alert, opts = {})
|
176
176
|
data, _status_code, _headers = companies_company_id_users_user_id_alerts_alert_id_patch_with_http_info(company_id, user_id, alert_id, alert, opts)
|
177
177
|
data
|
@@ -183,7 +183,7 @@ module SparteraApiSdk
|
|
183
183
|
# @param alert_id [String]
|
184
184
|
# @param alert [Alert]
|
185
185
|
# @param [Hash] opts the optional parameters
|
186
|
-
# @return [Array<(
|
186
|
+
# @return [Array<(CompaniesCompanyIdUsersUserIdAlertsAlertIdPatch200Response, Integer, Hash)>] CompaniesCompanyIdUsersUserIdAlertsAlertIdPatch200Response data, response status code and response headers
|
187
187
|
def companies_company_id_users_user_id_alerts_alert_id_patch_with_http_info(company_id, user_id, alert_id, alert, opts = {})
|
188
188
|
if @api_client.config.debugging
|
189
189
|
@api_client.config.logger.debug 'Calling API: AlertsApi.companies_company_id_users_user_id_alerts_alert_id_patch ...'
|
@@ -227,7 +227,7 @@ module SparteraApiSdk
|
|
227
227
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(alert)
|
228
228
|
|
229
229
|
# return_type
|
230
|
-
return_type = opts[:debug_return_type] || '
|
230
|
+
return_type = opts[:debug_return_type] || 'CompaniesCompanyIdUsersUserIdAlertsAlertIdPatch200Response'
|
231
231
|
|
232
232
|
# auth_names
|
233
233
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
@@ -254,7 +254,7 @@ module SparteraApiSdk
|
|
254
254
|
# @param user_id [String]
|
255
255
|
# @param asset_id [String]
|
256
256
|
# @param [Hash] opts the optional parameters
|
257
|
-
# @return [
|
257
|
+
# @return [CompaniesCompanyIdUsersUserIdAlertsGet200Response]
|
258
258
|
def companies_company_id_users_user_id_alerts_asset_asset_id_all_get(company_id, user_id, asset_id, opts = {})
|
259
259
|
data, _status_code, _headers = companies_company_id_users_user_id_alerts_asset_asset_id_all_get_with_http_info(company_id, user_id, asset_id, opts)
|
260
260
|
data
|
@@ -265,7 +265,7 @@ module SparteraApiSdk
|
|
265
265
|
# @param user_id [String]
|
266
266
|
# @param asset_id [String]
|
267
267
|
# @param [Hash] opts the optional parameters
|
268
|
-
# @return [Array<(
|
268
|
+
# @return [Array<(CompaniesCompanyIdUsersUserIdAlertsGet200Response, Integer, Hash)>] CompaniesCompanyIdUsersUserIdAlertsGet200Response data, response status code and response headers
|
269
269
|
def companies_company_id_users_user_id_alerts_asset_asset_id_all_get_with_http_info(company_id, user_id, asset_id, opts = {})
|
270
270
|
if @api_client.config.debugging
|
271
271
|
@api_client.config.logger.debug 'Calling API: AlertsApi.companies_company_id_users_user_id_alerts_asset_asset_id_all_get ...'
|
@@ -300,7 +300,7 @@ module SparteraApiSdk
|
|
300
300
|
post_body = opts[:debug_body]
|
301
301
|
|
302
302
|
# return_type
|
303
|
-
return_type = opts[:debug_return_type] || '
|
303
|
+
return_type = opts[:debug_return_type] || 'CompaniesCompanyIdUsersUserIdAlertsGet200Response'
|
304
304
|
|
305
305
|
# auth_names
|
306
306
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
@@ -327,7 +327,7 @@ module SparteraApiSdk
|
|
327
327
|
# @param user_id [String]
|
328
328
|
# @param asset_id [String]
|
329
329
|
# @param [Hash] opts the optional parameters
|
330
|
-
# @return [
|
330
|
+
# @return [CompaniesCompanyIdUsersUserIdAlertsAlertIdGet200Response]
|
331
331
|
def companies_company_id_users_user_id_alerts_asset_asset_id_get(company_id, user_id, asset_id, opts = {})
|
332
332
|
data, _status_code, _headers = companies_company_id_users_user_id_alerts_asset_asset_id_get_with_http_info(company_id, user_id, asset_id, opts)
|
333
333
|
data
|
@@ -338,7 +338,7 @@ module SparteraApiSdk
|
|
338
338
|
# @param user_id [String]
|
339
339
|
# @param asset_id [String]
|
340
340
|
# @param [Hash] opts the optional parameters
|
341
|
-
# @return [Array<(
|
341
|
+
# @return [Array<(CompaniesCompanyIdUsersUserIdAlertsAlertIdGet200Response, Integer, Hash)>] CompaniesCompanyIdUsersUserIdAlertsAlertIdGet200Response data, response status code and response headers
|
342
342
|
def companies_company_id_users_user_id_alerts_asset_asset_id_get_with_http_info(company_id, user_id, asset_id, opts = {})
|
343
343
|
if @api_client.config.debugging
|
344
344
|
@api_client.config.logger.debug 'Calling API: AlertsApi.companies_company_id_users_user_id_alerts_asset_asset_id_get ...'
|
@@ -373,7 +373,7 @@ module SparteraApiSdk
|
|
373
373
|
post_body = opts[:debug_body]
|
374
374
|
|
375
375
|
# return_type
|
376
|
-
return_type = opts[:debug_return_type] || '
|
376
|
+
return_type = opts[:debug_return_type] || 'CompaniesCompanyIdUsersUserIdAlertsAlertIdGet200Response'
|
377
377
|
|
378
378
|
# auth_names
|
379
379
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
@@ -399,7 +399,7 @@ module SparteraApiSdk
|
|
399
399
|
# @param company_id [String]
|
400
400
|
# @param user_id [String]
|
401
401
|
# @param [Hash] opts the optional parameters
|
402
|
-
# @return [
|
402
|
+
# @return [CompaniesCompanyIdUsersUserIdAlertsGet200Response]
|
403
403
|
def companies_company_id_users_user_id_alerts_get(company_id, user_id, opts = {})
|
404
404
|
data, _status_code, _headers = companies_company_id_users_user_id_alerts_get_with_http_info(company_id, user_id, opts)
|
405
405
|
data
|
@@ -409,7 +409,7 @@ module SparteraApiSdk
|
|
409
409
|
# @param company_id [String]
|
410
410
|
# @param user_id [String]
|
411
411
|
# @param [Hash] opts the optional parameters
|
412
|
-
# @return [Array<(
|
412
|
+
# @return [Array<(CompaniesCompanyIdUsersUserIdAlertsGet200Response, Integer, Hash)>] CompaniesCompanyIdUsersUserIdAlertsGet200Response data, response status code and response headers
|
413
413
|
def companies_company_id_users_user_id_alerts_get_with_http_info(company_id, user_id, opts = {})
|
414
414
|
if @api_client.config.debugging
|
415
415
|
@api_client.config.logger.debug 'Calling API: AlertsApi.companies_company_id_users_user_id_alerts_get ...'
|
@@ -440,7 +440,7 @@ module SparteraApiSdk
|
|
440
440
|
post_body = opts[:debug_body]
|
441
441
|
|
442
442
|
# return_type
|
443
|
-
return_type = opts[:debug_return_type] || '
|
443
|
+
return_type = opts[:debug_return_type] || 'CompaniesCompanyIdUsersUserIdAlertsGet200Response'
|
444
444
|
|
445
445
|
# auth_names
|
446
446
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
@@ -467,7 +467,7 @@ module SparteraApiSdk
|
|
467
467
|
# @param user_id [String]
|
468
468
|
# @param alert [Alert]
|
469
469
|
# @param [Hash] opts the optional parameters
|
470
|
-
# @return [
|
470
|
+
# @return [CompaniesCompanyIdUsersUserIdAlertsPost200Response]
|
471
471
|
def companies_company_id_users_user_id_alerts_post(company_id, user_id, alert, opts = {})
|
472
472
|
data, _status_code, _headers = companies_company_id_users_user_id_alerts_post_with_http_info(company_id, user_id, alert, opts)
|
473
473
|
data
|
@@ -478,7 +478,7 @@ module SparteraApiSdk
|
|
478
478
|
# @param user_id [String]
|
479
479
|
# @param alert [Alert]
|
480
480
|
# @param [Hash] opts the optional parameters
|
481
|
-
# @return [Array<(
|
481
|
+
# @return [Array<(CompaniesCompanyIdUsersUserIdAlertsPost200Response, Integer, Hash)>] CompaniesCompanyIdUsersUserIdAlertsPost200Response data, response status code and response headers
|
482
482
|
def companies_company_id_users_user_id_alerts_post_with_http_info(company_id, user_id, alert, opts = {})
|
483
483
|
if @api_client.config.debugging
|
484
484
|
@api_client.config.logger.debug 'Calling API: AlertsApi.companies_company_id_users_user_id_alerts_post ...'
|
@@ -518,7 +518,7 @@ module SparteraApiSdk
|
|
518
518
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(alert)
|
519
519
|
|
520
520
|
# return_type
|
521
|
-
return_type = opts[:debug_return_type] || '
|
521
|
+
return_type = opts[:debug_return_type] || 'CompaniesCompanyIdUsersUserIdAlertsPost200Response'
|
522
522
|
|
523
523
|
# auth_names
|
524
524
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
@@ -23,7 +23,7 @@ module SparteraApiSdk
|
|
23
23
|
# @param company_id [String]
|
24
24
|
# @param api_key_id [String]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
|
-
# @return [
|
26
|
+
# @return [CompaniesCompanyIdApiKeysGet200Response]
|
27
27
|
def companies_company_id_api_keys_api_key_id_get(company_id, api_key_id, opts = {})
|
28
28
|
data, _status_code, _headers = companies_company_id_api_keys_api_key_id_get_with_http_info(company_id, api_key_id, opts)
|
29
29
|
data
|
@@ -33,7 +33,7 @@ module SparteraApiSdk
|
|
33
33
|
# @param company_id [String]
|
34
34
|
# @param api_key_id [String]
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
|
-
# @return [Array<(
|
36
|
+
# @return [Array<(CompaniesCompanyIdApiKeysGet200Response, Integer, Hash)>] CompaniesCompanyIdApiKeysGet200Response data, response status code and response headers
|
37
37
|
def companies_company_id_api_keys_api_key_id_get_with_http_info(company_id, api_key_id, opts = {})
|
38
38
|
if @api_client.config.debugging
|
39
39
|
@api_client.config.logger.debug 'Calling API: APIKeysApi.companies_company_id_api_keys_api_key_id_get ...'
|
@@ -64,7 +64,7 @@ module SparteraApiSdk
|
|
64
64
|
post_body = opts[:debug_body]
|
65
65
|
|
66
66
|
# return_type
|
67
|
-
return_type = opts[:debug_return_type] || '
|
67
|
+
return_type = opts[:debug_return_type] || 'CompaniesCompanyIdApiKeysGet200Response'
|
68
68
|
|
69
69
|
# auth_names
|
70
70
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
@@ -90,7 +90,7 @@ module SparteraApiSdk
|
|
90
90
|
# @param company_id [String]
|
91
91
|
# @param api_key_id [String]
|
92
92
|
# @param [Hash] opts the optional parameters
|
93
|
-
# @return [
|
93
|
+
# @return [CompaniesCompanyIdApiKeysGet200Response]
|
94
94
|
def companies_company_id_api_keys_api_key_id_patch(company_id, api_key_id, opts = {})
|
95
95
|
data, _status_code, _headers = companies_company_id_api_keys_api_key_id_patch_with_http_info(company_id, api_key_id, opts)
|
96
96
|
data
|
@@ -100,7 +100,7 @@ module SparteraApiSdk
|
|
100
100
|
# @param company_id [String]
|
101
101
|
# @param api_key_id [String]
|
102
102
|
# @param [Hash] opts the optional parameters
|
103
|
-
# @return [Array<(
|
103
|
+
# @return [Array<(CompaniesCompanyIdApiKeysGet200Response, Integer, Hash)>] CompaniesCompanyIdApiKeysGet200Response data, response status code and response headers
|
104
104
|
def companies_company_id_api_keys_api_key_id_patch_with_http_info(company_id, api_key_id, opts = {})
|
105
105
|
if @api_client.config.debugging
|
106
106
|
@api_client.config.logger.debug 'Calling API: APIKeysApi.companies_company_id_api_keys_api_key_id_patch ...'
|
@@ -131,7 +131,7 @@ module SparteraApiSdk
|
|
131
131
|
post_body = opts[:debug_body]
|
132
132
|
|
133
133
|
# return_type
|
134
|
-
return_type = opts[:debug_return_type] || '
|
134
|
+
return_type = opts[:debug_return_type] || 'CompaniesCompanyIdApiKeysGet200Response'
|
135
135
|
|
136
136
|
# auth_names
|
137
137
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
@@ -156,7 +156,7 @@ module SparteraApiSdk
|
|
156
156
|
# Get all API keys
|
157
157
|
# @param company_id [String]
|
158
158
|
# @param [Hash] opts the optional parameters
|
159
|
-
# @return [
|
159
|
+
# @return [CompaniesCompanyIdApiKeysGet200Response]
|
160
160
|
def companies_company_id_api_keys_get(company_id, opts = {})
|
161
161
|
data, _status_code, _headers = companies_company_id_api_keys_get_with_http_info(company_id, opts)
|
162
162
|
data
|
@@ -165,7 +165,7 @@ module SparteraApiSdk
|
|
165
165
|
# Get all API keys
|
166
166
|
# @param company_id [String]
|
167
167
|
# @param [Hash] opts the optional parameters
|
168
|
-
# @return [Array<(
|
168
|
+
# @return [Array<(CompaniesCompanyIdApiKeysGet200Response, Integer, Hash)>] CompaniesCompanyIdApiKeysGet200Response data, response status code and response headers
|
169
169
|
def companies_company_id_api_keys_get_with_http_info(company_id, opts = {})
|
170
170
|
if @api_client.config.debugging
|
171
171
|
@api_client.config.logger.debug 'Calling API: APIKeysApi.companies_company_id_api_keys_get ...'
|
@@ -192,7 +192,7 @@ module SparteraApiSdk
|
|
192
192
|
post_body = opts[:debug_body]
|
193
193
|
|
194
194
|
# return_type
|
195
|
-
return_type = opts[:debug_return_type] || '
|
195
|
+
return_type = opts[:debug_return_type] || 'CompaniesCompanyIdApiKeysGet200Response'
|
196
196
|
|
197
197
|
# auth_names
|
198
198
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
@@ -217,7 +217,7 @@ module SparteraApiSdk
|
|
217
217
|
# Create single API key
|
218
218
|
# @param company_id [String]
|
219
219
|
# @param [Hash] opts the optional parameters
|
220
|
-
# @return [
|
220
|
+
# @return [CompaniesCompanyIdApiKeysGet200Response]
|
221
221
|
def companies_company_id_api_keys_post(company_id, opts = {})
|
222
222
|
data, _status_code, _headers = companies_company_id_api_keys_post_with_http_info(company_id, opts)
|
223
223
|
data
|
@@ -226,7 +226,7 @@ module SparteraApiSdk
|
|
226
226
|
# Create single API key
|
227
227
|
# @param company_id [String]
|
228
228
|
# @param [Hash] opts the optional parameters
|
229
|
-
# @return [Array<(
|
229
|
+
# @return [Array<(CompaniesCompanyIdApiKeysGet200Response, Integer, Hash)>] CompaniesCompanyIdApiKeysGet200Response data, response status code and response headers
|
230
230
|
def companies_company_id_api_keys_post_with_http_info(company_id, opts = {})
|
231
231
|
if @api_client.config.debugging
|
232
232
|
@api_client.config.logger.debug 'Calling API: APIKeysApi.companies_company_id_api_keys_post ...'
|
@@ -253,7 +253,7 @@ module SparteraApiSdk
|
|
253
253
|
post_body = opts[:debug_body]
|
254
254
|
|
255
255
|
# return_type
|
256
|
-
return_type = opts[:debug_return_type] || '
|
256
|
+
return_type = opts[:debug_return_type] || 'CompaniesCompanyIdApiKeysGet200Response'
|
257
257
|
|
258
258
|
# auth_names
|
259
259
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
@@ -279,7 +279,7 @@ module SparteraApiSdk
|
|
279
279
|
# @param company_id [String]
|
280
280
|
# @param token [String]
|
281
281
|
# @param [Hash] opts the optional parameters
|
282
|
-
# @return [
|
282
|
+
# @return [CompaniesCompanyIdApiKeysGet200Response]
|
283
283
|
def companies_company_id_api_keys_token_delete(company_id, token, opts = {})
|
284
284
|
data, _status_code, _headers = companies_company_id_api_keys_token_delete_with_http_info(company_id, token, opts)
|
285
285
|
data
|
@@ -289,7 +289,7 @@ module SparteraApiSdk
|
|
289
289
|
# @param company_id [String]
|
290
290
|
# @param token [String]
|
291
291
|
# @param [Hash] opts the optional parameters
|
292
|
-
# @return [Array<(
|
292
|
+
# @return [Array<(CompaniesCompanyIdApiKeysGet200Response, Integer, Hash)>] CompaniesCompanyIdApiKeysGet200Response data, response status code and response headers
|
293
293
|
def companies_company_id_api_keys_token_delete_with_http_info(company_id, token, opts = {})
|
294
294
|
if @api_client.config.debugging
|
295
295
|
@api_client.config.logger.debug 'Calling API: APIKeysApi.companies_company_id_api_keys_token_delete ...'
|
@@ -320,7 +320,7 @@ module SparteraApiSdk
|
|
320
320
|
post_body = opts[:debug_body]
|
321
321
|
|
322
322
|
# return_type
|
323
|
-
return_type = opts[:debug_return_type] || '
|
323
|
+
return_type = opts[:debug_return_type] || 'CompaniesCompanyIdApiKeysGet200Response'
|
324
324
|
|
325
325
|
# auth_names
|
326
326
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|