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
@@ -23,7 +23,7 @@ module SparteraApiSdk
|
|
23
23
|
# @param provider_id [String]
|
24
24
|
# @param engine_id [String]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
|
-
# @return [
|
26
|
+
# @return [CompaniesCompanyIdApiKeysGet200Response]
|
27
27
|
def cloud_providers_provider_id_storage_engines_engine_id_get(provider_id, engine_id, opts = {})
|
28
28
|
data, _status_code, _headers = cloud_providers_provider_id_storage_engines_engine_id_get_with_http_info(provider_id, engine_id, opts)
|
29
29
|
data
|
@@ -33,7 +33,7 @@ module SparteraApiSdk
|
|
33
33
|
# @param provider_id [String]
|
34
34
|
# @param engine_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 cloud_providers_provider_id_storage_engines_engine_id_get_with_http_info(provider_id, engine_id, opts = {})
|
38
38
|
if @api_client.config.debugging
|
39
39
|
@api_client.config.logger.debug 'Calling API: StorageEnginesApi.cloud_providers_provider_id_storage_engines_engine_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']
|
@@ -89,7 +89,7 @@ module SparteraApiSdk
|
|
89
89
|
# Get a list of all storage engines
|
90
90
|
# @param provider_id [String]
|
91
91
|
# @param [Hash] opts the optional parameters
|
92
|
-
# @return [
|
92
|
+
# @return [CompaniesCompanyIdApiKeysGet200Response]
|
93
93
|
def cloud_providers_provider_id_storage_engines_get(provider_id, opts = {})
|
94
94
|
data, _status_code, _headers = cloud_providers_provider_id_storage_engines_get_with_http_info(provider_id, opts)
|
95
95
|
data
|
@@ -98,7 +98,7 @@ module SparteraApiSdk
|
|
98
98
|
# Get a list of all storage engines
|
99
99
|
# @param provider_id [String]
|
100
100
|
# @param [Hash] opts the optional parameters
|
101
|
-
# @return [Array<(
|
101
|
+
# @return [Array<(CompaniesCompanyIdApiKeysGet200Response, Integer, Hash)>] CompaniesCompanyIdApiKeysGet200Response data, response status code and response headers
|
102
102
|
def cloud_providers_provider_id_storage_engines_get_with_http_info(provider_id, opts = {})
|
103
103
|
if @api_client.config.debugging
|
104
104
|
@api_client.config.logger.debug 'Calling API: StorageEnginesApi.cloud_providers_provider_id_storage_engines_get ...'
|
@@ -125,7 +125,7 @@ module SparteraApiSdk
|
|
125
125
|
post_body = opts[:debug_body]
|
126
126
|
|
127
127
|
# return_type
|
128
|
-
return_type = opts[:debug_return_type] || '
|
128
|
+
return_type = opts[:debug_return_type] || 'CompaniesCompanyIdApiKeysGet200Response'
|
129
129
|
|
130
130
|
# auth_names
|
131
131
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
@@ -22,7 +22,7 @@ module SparteraApiSdk
|
|
22
22
|
# Get a list of all users in a company
|
23
23
|
# @param company_id [String]
|
24
24
|
# @param [Hash] opts the optional parameters
|
25
|
-
# @return [
|
25
|
+
# @return [CompaniesCompanyIdUsersGet200Response]
|
26
26
|
def companies_company_id_users_get(company_id, opts = {})
|
27
27
|
data, _status_code, _headers = companies_company_id_users_get_with_http_info(company_id, opts)
|
28
28
|
data
|
@@ -31,7 +31,7 @@ module SparteraApiSdk
|
|
31
31
|
# Get a list of all users in a company
|
32
32
|
# @param company_id [String]
|
33
33
|
# @param [Hash] opts the optional parameters
|
34
|
-
# @return [Array<(
|
34
|
+
# @return [Array<(CompaniesCompanyIdUsersGet200Response, Integer, Hash)>] CompaniesCompanyIdUsersGet200Response data, response status code and response headers
|
35
35
|
def companies_company_id_users_get_with_http_info(company_id, opts = {})
|
36
36
|
if @api_client.config.debugging
|
37
37
|
@api_client.config.logger.debug 'Calling API: UsersApi.companies_company_id_users_get ...'
|
@@ -58,7 +58,7 @@ module SparteraApiSdk
|
|
58
58
|
post_body = opts[:debug_body]
|
59
59
|
|
60
60
|
# return_type
|
61
|
-
return_type = opts[:debug_return_type] || '
|
61
|
+
return_type = opts[:debug_return_type] || 'CompaniesCompanyIdUsersGet200Response'
|
62
62
|
|
63
63
|
# auth_names
|
64
64
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
@@ -84,7 +84,7 @@ module SparteraApiSdk
|
|
84
84
|
# @param company_id [String]
|
85
85
|
# @param user [User]
|
86
86
|
# @param [Hash] opts the optional parameters
|
87
|
-
# @return [
|
87
|
+
# @return [CompaniesCompanyIdUsersPost200Response]
|
88
88
|
def companies_company_id_users_post(company_id, user, opts = {})
|
89
89
|
data, _status_code, _headers = companies_company_id_users_post_with_http_info(company_id, user, opts)
|
90
90
|
data
|
@@ -94,7 +94,7 @@ module SparteraApiSdk
|
|
94
94
|
# @param company_id [String]
|
95
95
|
# @param user [User]
|
96
96
|
# @param [Hash] opts the optional parameters
|
97
|
-
# @return [Array<(
|
97
|
+
# @return [Array<(CompaniesCompanyIdUsersPost200Response, Integer, Hash)>] CompaniesCompanyIdUsersPost200Response data, response status code and response headers
|
98
98
|
def companies_company_id_users_post_with_http_info(company_id, user, opts = {})
|
99
99
|
if @api_client.config.debugging
|
100
100
|
@api_client.config.logger.debug 'Calling API: UsersApi.companies_company_id_users_post ...'
|
@@ -130,7 +130,7 @@ module SparteraApiSdk
|
|
130
130
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(user)
|
131
131
|
|
132
132
|
# return_type
|
133
|
-
return_type = opts[:debug_return_type] || '
|
133
|
+
return_type = opts[:debug_return_type] || 'CompaniesCompanyIdUsersPost200Response'
|
134
134
|
|
135
135
|
# auth_names
|
136
136
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
@@ -156,7 +156,7 @@ module SparteraApiSdk
|
|
156
156
|
# @param company_id [String]
|
157
157
|
# @param user_id [String]
|
158
158
|
# @param [Hash] opts the optional parameters
|
159
|
-
# @return [
|
159
|
+
# @return [CompaniesCompanyIdUsersUserIdDelete200Response]
|
160
160
|
def companies_company_id_users_user_id_delete(company_id, user_id, opts = {})
|
161
161
|
data, _status_code, _headers = companies_company_id_users_user_id_delete_with_http_info(company_id, user_id, opts)
|
162
162
|
data
|
@@ -166,7 +166,7 @@ module SparteraApiSdk
|
|
166
166
|
# @param company_id [String]
|
167
167
|
# @param user_id [String]
|
168
168
|
# @param [Hash] opts the optional parameters
|
169
|
-
# @return [Array<(
|
169
|
+
# @return [Array<(CompaniesCompanyIdUsersUserIdDelete200Response, Integer, Hash)>] CompaniesCompanyIdUsersUserIdDelete200Response data, response status code and response headers
|
170
170
|
def companies_company_id_users_user_id_delete_with_http_info(company_id, user_id, opts = {})
|
171
171
|
if @api_client.config.debugging
|
172
172
|
@api_client.config.logger.debug 'Calling API: UsersApi.companies_company_id_users_user_id_delete ...'
|
@@ -197,7 +197,7 @@ module SparteraApiSdk
|
|
197
197
|
post_body = opts[:debug_body]
|
198
198
|
|
199
199
|
# return_type
|
200
|
-
return_type = opts[:debug_return_type] || '
|
200
|
+
return_type = opts[:debug_return_type] || 'CompaniesCompanyIdUsersUserIdDelete200Response'
|
201
201
|
|
202
202
|
# auth_names
|
203
203
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
@@ -223,7 +223,7 @@ module SparteraApiSdk
|
|
223
223
|
# @param company_id [String]
|
224
224
|
# @param user_id [String]
|
225
225
|
# @param [Hash] opts the optional parameters
|
226
|
-
# @return [
|
226
|
+
# @return [CompaniesCompanyIdUsersUserIdGet200Response]
|
227
227
|
def companies_company_id_users_user_id_get(company_id, user_id, opts = {})
|
228
228
|
data, _status_code, _headers = companies_company_id_users_user_id_get_with_http_info(company_id, user_id, opts)
|
229
229
|
data
|
@@ -233,7 +233,7 @@ module SparteraApiSdk
|
|
233
233
|
# @param company_id [String]
|
234
234
|
# @param user_id [String]
|
235
235
|
# @param [Hash] opts the optional parameters
|
236
|
-
# @return [Array<(
|
236
|
+
# @return [Array<(CompaniesCompanyIdUsersUserIdGet200Response, Integer, Hash)>] CompaniesCompanyIdUsersUserIdGet200Response data, response status code and response headers
|
237
237
|
def companies_company_id_users_user_id_get_with_http_info(company_id, user_id, opts = {})
|
238
238
|
if @api_client.config.debugging
|
239
239
|
@api_client.config.logger.debug 'Calling API: UsersApi.companies_company_id_users_user_id_get ...'
|
@@ -264,7 +264,7 @@ module SparteraApiSdk
|
|
264
264
|
post_body = opts[:debug_body]
|
265
265
|
|
266
266
|
# return_type
|
267
|
-
return_type = opts[:debug_return_type] || '
|
267
|
+
return_type = opts[:debug_return_type] || 'CompaniesCompanyIdUsersUserIdGet200Response'
|
268
268
|
|
269
269
|
# auth_names
|
270
270
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
@@ -291,7 +291,7 @@ module SparteraApiSdk
|
|
291
291
|
# @param user_id [String]
|
292
292
|
# @param user [User]
|
293
293
|
# @param [Hash] opts the optional parameters
|
294
|
-
# @return [
|
294
|
+
# @return [CompaniesCompanyIdUsersUserIdPatch200Response]
|
295
295
|
def companies_company_id_users_user_id_patch(company_id, user_id, user, opts = {})
|
296
296
|
data, _status_code, _headers = companies_company_id_users_user_id_patch_with_http_info(company_id, user_id, user, opts)
|
297
297
|
data
|
@@ -302,7 +302,7 @@ module SparteraApiSdk
|
|
302
302
|
# @param user_id [String]
|
303
303
|
# @param user [User]
|
304
304
|
# @param [Hash] opts the optional parameters
|
305
|
-
# @return [Array<(
|
305
|
+
# @return [Array<(CompaniesCompanyIdUsersUserIdPatch200Response, Integer, Hash)>] CompaniesCompanyIdUsersUserIdPatch200Response data, response status code and response headers
|
306
306
|
def companies_company_id_users_user_id_patch_with_http_info(company_id, user_id, user, opts = {})
|
307
307
|
if @api_client.config.debugging
|
308
308
|
@api_client.config.logger.debug 'Calling API: UsersApi.companies_company_id_users_user_id_patch ...'
|
@@ -342,7 +342,7 @@ module SparteraApiSdk
|
|
342
342
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(user)
|
343
343
|
|
344
344
|
# return_type
|
345
|
-
return_type = opts[:debug_return_type] || '
|
345
|
+
return_type = opts[:debug_return_type] || 'CompaniesCompanyIdUsersUserIdPatch200Response'
|
346
346
|
|
347
347
|
# auth_names
|
348
348
|
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
@@ -363,5 +363,60 @@ module SparteraApiSdk
|
|
363
363
|
end
|
364
364
|
return data, status_code, headers
|
365
365
|
end
|
366
|
+
|
367
|
+
# Get current authenticated user's profile information. Returns: JSON response with user profile data from database
|
368
|
+
# @param [Hash] opts the optional parameters
|
369
|
+
# @return [MeGet200Response]
|
370
|
+
def me_get(opts = {})
|
371
|
+
data, _status_code, _headers = me_get_with_http_info(opts)
|
372
|
+
data
|
373
|
+
end
|
374
|
+
|
375
|
+
# Get current authenticated user's profile information. Returns: JSON response with user profile data from database
|
376
|
+
# @param [Hash] opts the optional parameters
|
377
|
+
# @return [Array<(MeGet200Response, Integer, Hash)>] MeGet200Response data, response status code and response headers
|
378
|
+
def me_get_with_http_info(opts = {})
|
379
|
+
if @api_client.config.debugging
|
380
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.me_get ...'
|
381
|
+
end
|
382
|
+
# resource path
|
383
|
+
local_var_path = '/me'
|
384
|
+
|
385
|
+
# query parameters
|
386
|
+
query_params = opts[:query_params] || {}
|
387
|
+
|
388
|
+
# header parameters
|
389
|
+
header_params = opts[:header_params] || {}
|
390
|
+
# HTTP header 'Accept' (if needed)
|
391
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
392
|
+
|
393
|
+
# form parameters
|
394
|
+
form_params = opts[:form_params] || {}
|
395
|
+
|
396
|
+
# http body (model)
|
397
|
+
post_body = opts[:debug_body]
|
398
|
+
|
399
|
+
# return_type
|
400
|
+
return_type = opts[:debug_return_type] || 'MeGet200Response'
|
401
|
+
|
402
|
+
# auth_names
|
403
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
404
|
+
|
405
|
+
new_options = opts.merge(
|
406
|
+
:operation => :"UsersApi.me_get",
|
407
|
+
:header_params => header_params,
|
408
|
+
:query_params => query_params,
|
409
|
+
:form_params => form_params,
|
410
|
+
:body => post_body,
|
411
|
+
:auth_names => auth_names,
|
412
|
+
:return_type => return_type
|
413
|
+
)
|
414
|
+
|
415
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
416
|
+
if @api_client.config.debugging
|
417
|
+
@api_client.config.logger.debug "API called: UsersApi#me_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
418
|
+
end
|
419
|
+
return data, status_code, headers
|
420
|
+
end
|
366
421
|
end
|
367
422
|
end
|
@@ -0,0 +1,248 @@
|
|
1
|
+
=begin
|
2
|
+
#Spartera API Documentation
|
3
|
+
|
4
|
+
#Auto-generated API documentation for REST services of the Spartera platform
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 0.0.0
|
7
|
+
Contact: support@spartera.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.13.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module SparteraApiSdk
|
17
|
+
class CompaniesCompanyIdApiKeysGet200Response
|
18
|
+
# Response status message
|
19
|
+
attr_accessor :message
|
20
|
+
|
21
|
+
# Response data
|
22
|
+
attr_accessor :data
|
23
|
+
|
24
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
25
|
+
def self.attribute_map
|
26
|
+
{
|
27
|
+
:'message' => :'message',
|
28
|
+
:'data' => :'data'
|
29
|
+
}
|
30
|
+
end
|
31
|
+
|
32
|
+
# Returns attribute mapping this model knows about
|
33
|
+
def self.acceptable_attribute_map
|
34
|
+
attribute_map
|
35
|
+
end
|
36
|
+
|
37
|
+
# Returns all the JSON keys this model knows about
|
38
|
+
def self.acceptable_attributes
|
39
|
+
acceptable_attribute_map.values
|
40
|
+
end
|
41
|
+
|
42
|
+
# Attribute type mapping.
|
43
|
+
def self.openapi_types
|
44
|
+
{
|
45
|
+
:'message' => :'String',
|
46
|
+
:'data' => :'Object'
|
47
|
+
}
|
48
|
+
end
|
49
|
+
|
50
|
+
# List of attributes with nullable: true
|
51
|
+
def self.openapi_nullable
|
52
|
+
Set.new([
|
53
|
+
])
|
54
|
+
end
|
55
|
+
|
56
|
+
# Initializes the object
|
57
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
58
|
+
def initialize(attributes = {})
|
59
|
+
if (!attributes.is_a?(Hash))
|
60
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SparteraApiSdk::CompaniesCompanyIdApiKeysGet200Response` initialize method"
|
61
|
+
end
|
62
|
+
|
63
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
64
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
65
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
66
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
67
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SparteraApiSdk::CompaniesCompanyIdApiKeysGet200Response`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
68
|
+
end
|
69
|
+
h[k.to_sym] = v
|
70
|
+
}
|
71
|
+
|
72
|
+
if attributes.key?(:'message')
|
73
|
+
self.message = attributes[:'message']
|
74
|
+
else
|
75
|
+
self.message = nil
|
76
|
+
end
|
77
|
+
|
78
|
+
if attributes.key?(:'data')
|
79
|
+
self.data = attributes[:'data']
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
84
|
+
# @return Array for valid properties with the reasons
|
85
|
+
def list_invalid_properties
|
86
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
87
|
+
invalid_properties = Array.new
|
88
|
+
if @message.nil?
|
89
|
+
invalid_properties.push('invalid value for "message", message cannot be nil.')
|
90
|
+
end
|
91
|
+
|
92
|
+
invalid_properties
|
93
|
+
end
|
94
|
+
|
95
|
+
# Check to see if the all the properties in the model are valid
|
96
|
+
# @return true if the model is valid
|
97
|
+
def valid?
|
98
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
99
|
+
return false if @message.nil?
|
100
|
+
true
|
101
|
+
end
|
102
|
+
|
103
|
+
# Custom attribute writer method with validation
|
104
|
+
# @param [Object] message Value to be assigned
|
105
|
+
def message=(message)
|
106
|
+
if message.nil?
|
107
|
+
fail ArgumentError, 'message cannot be nil'
|
108
|
+
end
|
109
|
+
|
110
|
+
@message = message
|
111
|
+
end
|
112
|
+
|
113
|
+
# Checks equality by comparing each attribute.
|
114
|
+
# @param [Object] Object to be compared
|
115
|
+
def ==(o)
|
116
|
+
return true if self.equal?(o)
|
117
|
+
self.class == o.class &&
|
118
|
+
message == o.message &&
|
119
|
+
data == o.data
|
120
|
+
end
|
121
|
+
|
122
|
+
# @see the `==` method
|
123
|
+
# @param [Object] Object to be compared
|
124
|
+
def eql?(o)
|
125
|
+
self == o
|
126
|
+
end
|
127
|
+
|
128
|
+
# Calculates hash code according to all attributes.
|
129
|
+
# @return [Integer] Hash code
|
130
|
+
def hash
|
131
|
+
[message, data].hash
|
132
|
+
end
|
133
|
+
|
134
|
+
# Builds the object from hash
|
135
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
136
|
+
# @return [Object] Returns the model itself
|
137
|
+
def self.build_from_hash(attributes)
|
138
|
+
return nil unless attributes.is_a?(Hash)
|
139
|
+
attributes = attributes.transform_keys(&:to_sym)
|
140
|
+
transformed_hash = {}
|
141
|
+
openapi_types.each_pair do |key, type|
|
142
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
143
|
+
transformed_hash["#{key}"] = nil
|
144
|
+
elsif type =~ /\AArray<(.*)>/i
|
145
|
+
# check to ensure the input is an array given that the attribute
|
146
|
+
# is documented as an array but the input is not
|
147
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
148
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
149
|
+
end
|
150
|
+
elsif !attributes[attribute_map[key]].nil?
|
151
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
152
|
+
end
|
153
|
+
end
|
154
|
+
new(transformed_hash)
|
155
|
+
end
|
156
|
+
|
157
|
+
# Deserializes the data based on type
|
158
|
+
# @param string type Data type
|
159
|
+
# @param string value Value to be deserialized
|
160
|
+
# @return [Object] Deserialized data
|
161
|
+
def self._deserialize(type, value)
|
162
|
+
case type.to_sym
|
163
|
+
when :Time
|
164
|
+
Time.parse(value)
|
165
|
+
when :Date
|
166
|
+
Date.parse(value)
|
167
|
+
when :String
|
168
|
+
value.to_s
|
169
|
+
when :Integer
|
170
|
+
value.to_i
|
171
|
+
when :Float
|
172
|
+
value.to_f
|
173
|
+
when :Boolean
|
174
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
175
|
+
true
|
176
|
+
else
|
177
|
+
false
|
178
|
+
end
|
179
|
+
when :Object
|
180
|
+
# generic object (usually a Hash), return directly
|
181
|
+
value
|
182
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
183
|
+
inner_type = Regexp.last_match[:inner_type]
|
184
|
+
value.map { |v| _deserialize(inner_type, v) }
|
185
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
186
|
+
k_type = Regexp.last_match[:k_type]
|
187
|
+
v_type = Regexp.last_match[:v_type]
|
188
|
+
{}.tap do |hash|
|
189
|
+
value.each do |k, v|
|
190
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
191
|
+
end
|
192
|
+
end
|
193
|
+
else # model
|
194
|
+
# models (e.g. Pet) or oneOf
|
195
|
+
klass = SparteraApiSdk.const_get(type)
|
196
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
197
|
+
end
|
198
|
+
end
|
199
|
+
|
200
|
+
# Returns the string representation of the object
|
201
|
+
# @return [String] String presentation of the object
|
202
|
+
def to_s
|
203
|
+
to_hash.to_s
|
204
|
+
end
|
205
|
+
|
206
|
+
# to_body is an alias to to_hash (backward compatibility)
|
207
|
+
# @return [Hash] Returns the object in the form of hash
|
208
|
+
def to_body
|
209
|
+
to_hash
|
210
|
+
end
|
211
|
+
|
212
|
+
# Returns the object in the form of hash
|
213
|
+
# @return [Hash] Returns the object in the form of hash
|
214
|
+
def to_hash
|
215
|
+
hash = {}
|
216
|
+
self.class.attribute_map.each_pair do |attr, param|
|
217
|
+
value = self.send(attr)
|
218
|
+
if value.nil?
|
219
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
220
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
221
|
+
end
|
222
|
+
|
223
|
+
hash[param] = _to_hash(value)
|
224
|
+
end
|
225
|
+
hash
|
226
|
+
end
|
227
|
+
|
228
|
+
# Outputs non-array value in the form of hash
|
229
|
+
# For object, use to_hash. Otherwise, just return the value
|
230
|
+
# @param [Object] value Any valid value
|
231
|
+
# @return [Hash] Returns the value in the form of hash
|
232
|
+
def _to_hash(value)
|
233
|
+
if value.is_a?(Array)
|
234
|
+
value.compact.map { |v| _to_hash(v) }
|
235
|
+
elsif value.is_a?(Hash)
|
236
|
+
{}.tap do |hash|
|
237
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
238
|
+
end
|
239
|
+
elsif value.respond_to? :to_hash
|
240
|
+
value.to_hash
|
241
|
+
else
|
242
|
+
value
|
243
|
+
end
|
244
|
+
end
|
245
|
+
|
246
|
+
end
|
247
|
+
|
248
|
+
end
|