kinde_sdk 1.2.1 → 1.2.2
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/Gemfile.lock +128 -0
- data/README.md +12 -434
- data/kinde_api/README.md +98 -27
- data/kinde_api/docs/APIsApi.md +356 -0
- data/kinde_api/docs/AddAPIsRequest.md +20 -0
- data/kinde_api/docs/Api.md +28 -0
- data/kinde_api/docs/ApiApplicationsInner.md +24 -0
- data/kinde_api/docs/Apis.md +24 -0
- data/kinde_api/docs/Applications.md +22 -0
- data/kinde_api/docs/ApplicationsApi.md +368 -0
- data/kinde_api/docs/BusinessApi.md +183 -0
- data/kinde_api/docs/CallbacksApi.md +385 -25
- data/kinde_api/docs/CreateApplicationRequest.md +20 -0
- data/kinde_api/docs/CreateApplicationResponse.md +22 -0
- data/kinde_api/docs/CreateApplicationResponseApplication.md +22 -0
- data/kinde_api/docs/CreateFeatureFlagRequest.md +28 -0
- data/kinde_api/docs/CreateOrganizationRequest.md +3 -1
- data/kinde_api/docs/CreateOrganizationUserPermissionRequest.md +18 -0
- data/kinde_api/docs/EnvironmentsApi.md +23 -23
- data/kinde_api/docs/FeatureFlagsApi.md +19 -29
- data/kinde_api/docs/GetApplicationResponse.md +22 -0
- data/kinde_api/docs/GetApplicationResponseApplication.md +26 -0
- data/kinde_api/docs/GetApplicationsResponse.md +2 -2
- data/kinde_api/docs/{GetOrganizationsUsersResponse.md → GetOrganizationUsersResponse.md} +2 -2
- data/kinde_api/docs/GetOrganizationsUserPermissionsResponse.md +22 -0
- data/kinde_api/docs/GetPermissionsResponse.md +24 -0
- data/kinde_api/docs/GetRolesResponse.md +24 -0
- data/kinde_api/docs/GetSubscriberResponse.md +22 -0
- data/kinde_api/docs/GetSubscribersResponse.md +24 -0
- data/kinde_api/docs/IndustriesApi.md +81 -0
- data/kinde_api/docs/LogoutRedirectUrls.md +18 -0
- data/kinde_api/docs/OAuthApi.md +153 -4
- data/kinde_api/docs/Organization.md +3 -1
- data/kinde_api/docs/OrganizationUserPermission.md +26 -0
- data/kinde_api/docs/OrganizationUserPermissionRolesInner.md +20 -0
- data/kinde_api/docs/OrganizationUserRolePermissions.md +22 -0
- data/kinde_api/docs/OrganizationUserRolePermissionsPermissions.md +18 -0
- data/kinde_api/docs/OrganizationsApi.md +328 -32
- data/kinde_api/docs/PermissionsApi.md +84 -14
- data/kinde_api/docs/ReplaceLogoutRedirectURLsRequest.md +18 -0
- data/kinde_api/docs/ReplaceRedirectCallbackURLsRequest.md +18 -0
- data/kinde_api/docs/Role.md +24 -0
- data/kinde_api/docs/Roles.md +2 -0
- data/kinde_api/docs/RolesApi.md +309 -17
- data/kinde_api/docs/RolesPermissionResponseInner.md +24 -0
- data/kinde_api/docs/Subscriber.md +24 -0
- data/kinde_api/docs/SubscribersApi.md +12 -14
- data/kinde_api/docs/SubscribersSubscriber.md +26 -0
- data/kinde_api/docs/TimezonesApi.md +81 -0
- data/kinde_api/docs/TokenErrorResponse.md +20 -0
- data/kinde_api/docs/TokenIntrospect.md +26 -0
- data/kinde_api/docs/UpdateAPIApplicationsRequest.md +18 -0
- data/kinde_api/docs/UpdateAPIApplicationsRequestApplicationsInner.md +20 -0
- data/kinde_api/docs/UpdateApplicationRequest.md +24 -0
- data/kinde_api/docs/UpdateEnvironementFeatureFlagOverrideRequest.md +18 -0
- data/kinde_api/docs/UpdateOrganizationRequest.md +3 -1
- data/kinde_api/docs/UpdateOrganizationUsersRequest.md +1 -1
- data/kinde_api/docs/UpdateRolePermissionsRequest.md +18 -0
- data/kinde_api/docs/UpdateRolePermissionsRequestPermissionsInner.md +20 -0
- data/kinde_api/docs/UpdateRolePermissionsResponse.md +24 -0
- data/kinde_api/docs/UpdateRolesRequest.md +24 -0
- data/kinde_api/docs/UpdateUserResponse.md +30 -0
- data/kinde_api/docs/User.md +7 -7
- data/kinde_api/docs/UserIdentitiesInner.md +20 -0
- data/kinde_api/docs/UsersApi.md +93 -15
- data/kinde_api/docs/UsersResponse.md +1 -1
- data/kinde_api/docs/UsersResponseUsersInner.md +42 -0
- data/kinde_api/lib/kinde_api/api/apis_api.rb +347 -0
- data/kinde_api/lib/kinde_api/api/applications_api.rb +352 -0
- data/kinde_api/lib/kinde_api/api/business_api.rb +210 -0
- data/kinde_api/lib/kinde_api/api/callbacks_api.rb +394 -31
- data/kinde_api/lib/kinde_api/api/environments_api.rb +22 -18
- data/kinde_api/lib/kinde_api/api/feature_flags_api.rb +20 -61
- data/kinde_api/lib/kinde_api/api/industries_api.rb +85 -0
- data/kinde_api/lib/kinde_api/api/o_auth_api.rb +141 -2
- data/kinde_api/lib/kinde_api/api/organizations_api.rb +318 -25
- data/kinde_api/lib/kinde_api/api/permissions_api.rb +75 -12
- data/kinde_api/lib/kinde_api/api/roles_api.rb +297 -15
- data/kinde_api/lib/kinde_api/api/subscribers_api.rb +8 -11
- data/kinde_api/lib/kinde_api/api/timezones_api.rb +85 -0
- data/kinde_api/lib/kinde_api/api/users_api.rb +87 -11
- data/kinde_api/lib/kinde_api/api_client.rb +14 -7
- data/kinde_api/lib/kinde_api/configuration.rb +81 -5
- data/kinde_api/lib/kinde_api/models/add_apis_request.rb +238 -0
- data/kinde_api/lib/kinde_api/models/add_organization_users_request.rb +2 -0
- data/kinde_api/lib/kinde_api/models/add_organization_users_request_users_inner.rb +2 -0
- data/kinde_api/lib/kinde_api/models/add_organization_users_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/api.rb +271 -0
- data/kinde_api/lib/kinde_api/models/api_applications_inner.rb +246 -0
- data/kinde_api/lib/kinde_api/models/api_result.rb +2 -0
- data/kinde_api/lib/kinde_api/models/apis.rb +250 -0
- data/kinde_api/lib/kinde_api/models/applications.rb +237 -0
- data/kinde_api/lib/kinde_api/models/connected_apps_access_token.rb +2 -0
- data/kinde_api/lib/kinde_api/models/connected_apps_auth_url.rb +2 -0
- data/kinde_api/lib/kinde_api/models/create_application_request.rb +264 -0
- data/kinde_api/lib/kinde_api/models/create_application_response.rb +239 -0
- data/kinde_api/lib/kinde_api/models/create_application_response_application.rb +240 -0
- data/kinde_api/lib/kinde_api/models/create_feature_flag_request.rb +336 -0
- data/kinde_api/lib/kinde_api/models/create_organization_request.rb +16 -4
- data/kinde_api/lib/kinde_api/models/create_organization_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/create_organization_response_organization.rb +2 -0
- data/kinde_api/lib/kinde_api/models/{application.rb → create_organization_user_permission_request.rb} +13 -19
- data/kinde_api/lib/kinde_api/models/create_organization_user_role_request.rb +2 -0
- data/kinde_api/lib/kinde_api/models/create_permission_request.rb +2 -0
- data/kinde_api/lib/kinde_api/models/create_role_request.rb +2 -0
- data/kinde_api/lib/kinde_api/models/create_subscriber_success_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/create_subscriber_success_response_subscriber.rb +2 -0
- data/kinde_api/lib/kinde_api/models/create_user_request.rb +2 -0
- data/kinde_api/lib/kinde_api/models/create_user_request_identities_inner.rb +2 -0
- data/kinde_api/lib/kinde_api/models/create_user_request_identities_inner_details.rb +2 -0
- data/kinde_api/lib/kinde_api/models/create_user_request_profile.rb +2 -0
- data/kinde_api/lib/kinde_api/models/create_user_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/error.rb +2 -0
- data/kinde_api/lib/kinde_api/models/error_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/get_application_response.rb +239 -0
- data/kinde_api/lib/kinde_api/models/get_application_response_application.rb +260 -0
- data/kinde_api/lib/kinde_api/models/get_applications_response.rb +10 -8
- data/kinde_api/lib/kinde_api/models/get_environment_feature_flags_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/get_organization_feature_flags_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/get_organization_feature_flags_response_feature_flags_value.rb +2 -0
- data/kinde_api/lib/kinde_api/models/{get_organizations_users_response.rb → get_organization_users_response.rb} +5 -3
- data/kinde_api/lib/kinde_api/models/get_organizations_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/get_organizations_user_permissions_response.rb +241 -0
- data/kinde_api/lib/kinde_api/models/get_organizations_user_roles_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/get_permissions_response.rb +251 -0
- data/kinde_api/lib/kinde_api/models/get_redirect_callback_urls_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/get_roles_response.rb +251 -0
- data/kinde_api/lib/kinde_api/models/get_subscriber_response.rb +241 -0
- data/kinde_api/lib/kinde_api/models/get_subscribers_response.rb +251 -0
- data/kinde_api/lib/kinde_api/models/logout_redirect_urls.rb +222 -0
- data/kinde_api/lib/kinde_api/models/organization.rb +15 -4
- data/kinde_api/lib/kinde_api/models/organization_user.rb +2 -0
- data/kinde_api/lib/kinde_api/models/organization_user_permission.rb +257 -0
- data/kinde_api/lib/kinde_api/models/organization_user_permission_roles_inner.rb +228 -0
- data/kinde_api/lib/kinde_api/models/organization_user_role.rb +2 -0
- data/kinde_api/lib/kinde_api/models/organization_user_role_permissions.rb +237 -0
- data/kinde_api/lib/kinde_api/models/organization_user_role_permissions_permissions.rb +219 -0
- data/kinde_api/lib/kinde_api/models/permissions.rb +2 -0
- data/kinde_api/lib/kinde_api/models/redirect_callback_urls.rb +2 -0
- data/kinde_api/lib/kinde_api/models/replace_logout_redirect_urls_request.rb +222 -0
- data/kinde_api/lib/kinde_api/models/replace_redirect_callback_urls_request.rb +222 -0
- data/kinde_api/lib/kinde_api/models/role.rb +246 -0
- data/kinde_api/lib/kinde_api/models/roles.rb +13 -1
- data/kinde_api/lib/kinde_api/models/roles_permission_response_inner.rb +246 -0
- data/kinde_api/lib/kinde_api/models/subscriber.rb +246 -0
- data/kinde_api/lib/kinde_api/models/subscribers_subscriber.rb +255 -0
- data/kinde_api/lib/kinde_api/models/success_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/token_error_response.rb +230 -0
- data/kinde_api/lib/kinde_api/models/token_introspect.rb +262 -0
- data/kinde_api/lib/kinde_api/models/update_api_applications_request.rb +226 -0
- data/kinde_api/lib/kinde_api/models/update_api_applications_request_applications_inner.rb +235 -0
- data/kinde_api/lib/kinde_api/models/update_application_request.rb +254 -0
- data/kinde_api/lib/kinde_api/models/update_environement_feature_flag_override_request.rb +225 -0
- data/kinde_api/lib/kinde_api/models/update_organization_request.rb +16 -4
- data/kinde_api/lib/kinde_api/models/update_organization_users_request.rb +3 -1
- data/kinde_api/lib/kinde_api/models/update_organization_users_request_users_inner.rb +2 -0
- data/kinde_api/lib/kinde_api/models/update_organization_users_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/update_role_permissions_request.rb +222 -0
- data/kinde_api/lib/kinde_api/models/update_role_permissions_request_permissions_inner.rb +230 -0
- data/kinde_api/lib/kinde_api/models/update_role_permissions_response.rb +250 -0
- data/kinde_api/lib/kinde_api/models/update_roles_request.rb +260 -0
- data/kinde_api/lib/kinde_api/models/update_user_request.rb +2 -0
- data/kinde_api/lib/kinde_api/models/update_user_response.rb +280 -0
- data/kinde_api/lib/kinde_api/models/user.rb +37 -32
- data/kinde_api/lib/kinde_api/models/user_identities_inner.rb +228 -0
- data/kinde_api/lib/kinde_api/models/user_identity.rb +2 -0
- data/kinde_api/lib/kinde_api/models/user_identity_result.rb +2 -0
- data/kinde_api/lib/kinde_api/models/user_profile.rb +2 -0
- data/kinde_api/lib/kinde_api/models/user_profile_v2.rb +2 -0
- data/kinde_api/lib/kinde_api/models/users_response.rb +3 -1
- data/kinde_api/lib/kinde_api/models/users_response_users_inner.rb +348 -0
- data/kinde_api/lib/kinde_api.rb +47 -2
- data/kinde_api/spec/api/apis_api_spec.rb +95 -0
- data/kinde_api/spec/api/applications_api_spec.rb +98 -0
- data/kinde_api/spec/api/business_api_spec.rb +75 -0
- data/kinde_api/spec/api/callbacks_api_spec.rb +69 -5
- data/kinde_api/spec/api/environments_api_spec.rb +5 -5
- data/kinde_api/spec/api/feature_flags_api_spec.rb +4 -9
- data/kinde_api/spec/api/industries_api_spec.rb +48 -0
- data/kinde_api/spec/api/o_auth_api_spec.rb +28 -1
- data/kinde_api/spec/api/organizations_api_spec.rb +63 -8
- data/kinde_api/spec/api/permissions_api_spec.rb +16 -4
- data/kinde_api/spec/api/roles_api_spec.rb +57 -4
- data/kinde_api/spec/api/subscribers_api_spec.rb +3 -4
- data/kinde_api/spec/api/timezones_api_spec.rb +48 -0
- data/kinde_api/spec/api/users_api_spec.rb +17 -2
- data/kinde_api/spec/api_client_spec.rb +13 -2
- data/kinde_api/spec/models/{application_spec.rb → add_apis_request_spec.rb} +8 -8
- data/kinde_api/spec/models/api_applications_inner_spec.rb +52 -0
- data/kinde_api/spec/models/api_spec.rb +64 -0
- data/kinde_api/spec/models/apis_spec.rb +52 -0
- data/kinde_api/spec/models/applications_spec.rb +46 -0
- data/kinde_api/spec/models/create_application_request_spec.rb +44 -0
- data/kinde_api/spec/models/create_application_response_application_spec.rb +46 -0
- data/kinde_api/spec/models/create_application_response_spec.rb +46 -0
- data/kinde_api/spec/models/create_feature_flag_request_spec.rb +72 -0
- data/kinde_api/spec/models/create_organization_request_spec.rb +6 -0
- data/kinde_api/spec/models/create_organization_user_permission_request_spec.rb +34 -0
- data/kinde_api/spec/models/get_application_response_application_spec.rb +58 -0
- data/kinde_api/spec/models/get_application_response_spec.rb +46 -0
- data/kinde_api/spec/models/get_applications_response_spec.rb +1 -1
- data/kinde_api/spec/models/{get_organizations_users_response_spec.rb → get_organization_users_response_spec.rb} +6 -6
- data/kinde_api/spec/models/get_organizations_user_permissions_response_spec.rb +46 -0
- data/kinde_api/spec/models/get_permissions_response_spec.rb +52 -0
- data/kinde_api/spec/models/get_roles_response_spec.rb +52 -0
- data/kinde_api/spec/models/get_subscriber_response_spec.rb +46 -0
- data/kinde_api/spec/models/get_subscribers_response_spec.rb +52 -0
- data/kinde_api/spec/models/logout_redirect_urls_spec.rb +34 -0
- data/kinde_api/spec/models/organization_spec.rb +6 -0
- data/kinde_api/spec/models/organization_user_permission_roles_inner_spec.rb +40 -0
- data/kinde_api/spec/models/organization_user_permission_spec.rb +58 -0
- data/kinde_api/spec/models/organization_user_role_permissions_permissions_spec.rb +34 -0
- data/kinde_api/spec/models/organization_user_role_permissions_spec.rb +46 -0
- data/kinde_api/spec/models/replace_logout_redirect_urls_request_spec.rb +34 -0
- data/kinde_api/spec/models/replace_redirect_callback_urls_request_spec.rb +34 -0
- data/kinde_api/spec/models/role_spec.rb +52 -0
- data/kinde_api/spec/models/roles_permission_response_inner_spec.rb +52 -0
- data/kinde_api/spec/models/roles_spec.rb +6 -0
- data/kinde_api/spec/models/subscriber_spec.rb +52 -0
- data/kinde_api/spec/models/subscribers_subscriber_spec.rb +58 -0
- data/kinde_api/spec/models/token_error_response_spec.rb +40 -0
- data/kinde_api/spec/models/token_introspect_spec.rb +58 -0
- data/kinde_api/spec/models/update_api_applications_request_applications_inner_spec.rb +40 -0
- data/kinde_api/spec/models/update_api_applications_request_spec.rb +34 -0
- data/kinde_api/spec/models/update_application_request_spec.rb +52 -0
- data/kinde_api/spec/models/update_environement_feature_flag_override_request_spec.rb +34 -0
- data/kinde_api/spec/models/update_organization_request_spec.rb +6 -0
- data/kinde_api/spec/models/update_role_permissions_request_permissions_inner_spec.rb +40 -0
- data/kinde_api/spec/models/update_role_permissions_request_spec.rb +34 -0
- data/kinde_api/spec/models/update_role_permissions_response_spec.rb +52 -0
- data/kinde_api/spec/models/update_roles_request_spec.rb +52 -0
- data/kinde_api/spec/models/update_user_response_spec.rb +70 -0
- data/kinde_api/spec/models/user_identities_inner_spec.rb +40 -0
- data/kinde_api/spec/models/user_spec.rb +9 -9
- data/kinde_api/spec/models/users_response_users_inner_spec.rb +106 -0
- data/kinde_sdk.gemspec +1 -1
- data/lib/kinde_sdk/version.rb +1 -1
- data/spec/kinde_sdk_spec.rb +0 -46
- metadata +193 -12
- data/kinde_api/docs/Application.md +0 -20
data/kinde_api/docs/UsersApi.md
CHANGED
|
@@ -8,6 +8,7 @@ All URIs are relative to *https://app.kinde.com*
|
|
|
8
8
|
| [**delete_user**](UsersApi.md#delete_user) | **DELETE** /api/v1/user | Delete User |
|
|
9
9
|
| [**get_user_data**](UsersApi.md#get_user_data) | **GET** /api/v1/user | Get User |
|
|
10
10
|
| [**get_users**](UsersApi.md#get_users) | **GET** /api/v1/users | List Users |
|
|
11
|
+
| [**refresh_user_claims**](UsersApi.md#refresh_user_claims) | **POST** /api/v1/users/{user_id}/refresh_claims | Refresh User Claims and Invalidate Cache |
|
|
11
12
|
| [**update_user**](UsersApi.md#update_user) | **PATCH** /api/v1/user | Update User |
|
|
12
13
|
|
|
13
14
|
|
|
@@ -84,7 +85,7 @@ end
|
|
|
84
85
|
|
|
85
86
|
## delete_user
|
|
86
87
|
|
|
87
|
-
> <SuccessResponse> delete_user(opts)
|
|
88
|
+
> <SuccessResponse> delete_user(id, opts)
|
|
88
89
|
|
|
89
90
|
Delete User
|
|
90
91
|
|
|
@@ -102,13 +103,14 @@ KindeApi.configure do |config|
|
|
|
102
103
|
end
|
|
103
104
|
|
|
104
105
|
api_instance = KindeApi::UsersApi.new
|
|
106
|
+
id = 'id_example' # String | The user's id.
|
|
105
107
|
opts = {
|
|
106
|
-
|
|
108
|
+
is_delete_profile: true # Boolean | Delete all data and remove the user's profile from all of Kinde, including the subscriber list
|
|
107
109
|
}
|
|
108
110
|
|
|
109
111
|
begin
|
|
110
112
|
# Delete User
|
|
111
|
-
result = api_instance.delete_user(opts)
|
|
113
|
+
result = api_instance.delete_user(id, opts)
|
|
112
114
|
p result
|
|
113
115
|
rescue KindeApi::ApiError => e
|
|
114
116
|
puts "Error when calling UsersApi->delete_user: #{e}"
|
|
@@ -119,12 +121,12 @@ end
|
|
|
119
121
|
|
|
120
122
|
This returns an Array which contains the response data, status code and headers.
|
|
121
123
|
|
|
122
|
-
> <Array(<SuccessResponse>, Integer, Hash)> delete_user_with_http_info(opts)
|
|
124
|
+
> <Array(<SuccessResponse>, Integer, Hash)> delete_user_with_http_info(id, opts)
|
|
123
125
|
|
|
124
126
|
```ruby
|
|
125
127
|
begin
|
|
126
128
|
# Delete User
|
|
127
|
-
data, status_code, headers = api_instance.delete_user_with_http_info(opts)
|
|
129
|
+
data, status_code, headers = api_instance.delete_user_with_http_info(id, opts)
|
|
128
130
|
p status_code # => 2xx
|
|
129
131
|
p headers # => { ... }
|
|
130
132
|
p data # => <SuccessResponse>
|
|
@@ -137,7 +139,8 @@ end
|
|
|
137
139
|
|
|
138
140
|
| Name | Type | Description | Notes |
|
|
139
141
|
| ---- | ---- | ----------- | ----- |
|
|
140
|
-
| **id** | **String** | The user's id. |
|
|
142
|
+
| **id** | **String** | The user's id. | |
|
|
143
|
+
| **is_delete_profile** | **Boolean** | Delete all data and remove the user's profile from all of Kinde, including the subscriber list | [optional] |
|
|
141
144
|
|
|
142
145
|
### Return type
|
|
143
146
|
|
|
@@ -155,7 +158,7 @@ end
|
|
|
155
158
|
|
|
156
159
|
## get_user_data
|
|
157
160
|
|
|
158
|
-
> <User> get_user_data(id)
|
|
161
|
+
> <User> get_user_data(id, opts)
|
|
159
162
|
|
|
160
163
|
Get User
|
|
161
164
|
|
|
@@ -174,10 +177,13 @@ end
|
|
|
174
177
|
|
|
175
178
|
api_instance = KindeApi::UsersApi.new
|
|
176
179
|
id = 'id_example' # String | The user's id.
|
|
180
|
+
opts = {
|
|
181
|
+
expand: 'expand_example' # String | Specify additional data to retrieve. Use \"organizations\" and/or \"identities\".
|
|
182
|
+
}
|
|
177
183
|
|
|
178
184
|
begin
|
|
179
185
|
# Get User
|
|
180
|
-
result = api_instance.get_user_data(id)
|
|
186
|
+
result = api_instance.get_user_data(id, opts)
|
|
181
187
|
p result
|
|
182
188
|
rescue KindeApi::ApiError => e
|
|
183
189
|
puts "Error when calling UsersApi->get_user_data: #{e}"
|
|
@@ -188,12 +194,12 @@ end
|
|
|
188
194
|
|
|
189
195
|
This returns an Array which contains the response data, status code and headers.
|
|
190
196
|
|
|
191
|
-
> <Array(<User>, Integer, Hash)> get_user_data_with_http_info(id)
|
|
197
|
+
> <Array(<User>, Integer, Hash)> get_user_data_with_http_info(id, opts)
|
|
192
198
|
|
|
193
199
|
```ruby
|
|
194
200
|
begin
|
|
195
201
|
# Get User
|
|
196
|
-
data, status_code, headers = api_instance.get_user_data_with_http_info(id)
|
|
202
|
+
data, status_code, headers = api_instance.get_user_data_with_http_info(id, opts)
|
|
197
203
|
p status_code # => 2xx
|
|
198
204
|
p headers # => { ... }
|
|
199
205
|
p data # => <User>
|
|
@@ -207,6 +213,7 @@ end
|
|
|
207
213
|
| Name | Type | Description | Notes |
|
|
208
214
|
| ---- | ---- | ----------- | ----- |
|
|
209
215
|
| **id** | **String** | The user's id. | |
|
|
216
|
+
| **expand** | **String** | Specify additional data to retrieve. Use \"organizations\" and/or \"identities\". | [optional] |
|
|
210
217
|
|
|
211
218
|
### Return type
|
|
212
219
|
|
|
@@ -247,7 +254,8 @@ opts = {
|
|
|
247
254
|
page_size: 56, # Integer | Number of results per page. Defaults to 10 if parameter not sent.
|
|
248
255
|
user_id: 'user_id_example', # String | ID of the user to filter by.
|
|
249
256
|
next_token: 'next_token_example', # String | A string to get the next page of results if there are more results.
|
|
250
|
-
email: 'email_example' # String | Filter the results by email address. The query string should be comma separated and url encoded.
|
|
257
|
+
email: 'email_example', # String | Filter the results by email address. The query string should be comma separated and url encoded.
|
|
258
|
+
expand: 'expand_example' # String | Specify additional data to retrieve. Use \"organizations\" and/or \"identities\".
|
|
251
259
|
}
|
|
252
260
|
|
|
253
261
|
begin
|
|
@@ -286,6 +294,7 @@ end
|
|
|
286
294
|
| **user_id** | **String** | ID of the user to filter by. | [optional] |
|
|
287
295
|
| **next_token** | **String** | A string to get the next page of results if there are more results. | [optional] |
|
|
288
296
|
| **email** | **String** | Filter the results by email address. The query string should be comma separated and url encoded. | [optional] |
|
|
297
|
+
| **expand** | **String** | Specify additional data to retrieve. Use \"organizations\" and/or \"identities\". | [optional] |
|
|
289
298
|
|
|
290
299
|
### Return type
|
|
291
300
|
|
|
@@ -301,9 +310,78 @@ end
|
|
|
301
310
|
- **Accept**: application/json, application/json; charset=utf-8
|
|
302
311
|
|
|
303
312
|
|
|
313
|
+
## refresh_user_claims
|
|
314
|
+
|
|
315
|
+
> <SuccessResponse> refresh_user_claims(user_id)
|
|
316
|
+
|
|
317
|
+
Refresh User Claims and Invalidate Cache
|
|
318
|
+
|
|
319
|
+
Refreshes the user's claims and invalidates the current cache.
|
|
320
|
+
|
|
321
|
+
### Examples
|
|
322
|
+
|
|
323
|
+
```ruby
|
|
324
|
+
require 'time'
|
|
325
|
+
require 'kinde_api'
|
|
326
|
+
# setup authorization
|
|
327
|
+
KindeApi.configure do |config|
|
|
328
|
+
# Configure Bearer authorization (JWT): kindeBearerAuth
|
|
329
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
330
|
+
end
|
|
331
|
+
|
|
332
|
+
api_instance = KindeApi::UsersApi.new
|
|
333
|
+
user_id = 'user_id_example' # String | The id of the user whose claims needs to be updated.
|
|
334
|
+
|
|
335
|
+
begin
|
|
336
|
+
# Refresh User Claims and Invalidate Cache
|
|
337
|
+
result = api_instance.refresh_user_claims(user_id)
|
|
338
|
+
p result
|
|
339
|
+
rescue KindeApi::ApiError => e
|
|
340
|
+
puts "Error when calling UsersApi->refresh_user_claims: #{e}"
|
|
341
|
+
end
|
|
342
|
+
```
|
|
343
|
+
|
|
344
|
+
#### Using the refresh_user_claims_with_http_info variant
|
|
345
|
+
|
|
346
|
+
This returns an Array which contains the response data, status code and headers.
|
|
347
|
+
|
|
348
|
+
> <Array(<SuccessResponse>, Integer, Hash)> refresh_user_claims_with_http_info(user_id)
|
|
349
|
+
|
|
350
|
+
```ruby
|
|
351
|
+
begin
|
|
352
|
+
# Refresh User Claims and Invalidate Cache
|
|
353
|
+
data, status_code, headers = api_instance.refresh_user_claims_with_http_info(user_id)
|
|
354
|
+
p status_code # => 2xx
|
|
355
|
+
p headers # => { ... }
|
|
356
|
+
p data # => <SuccessResponse>
|
|
357
|
+
rescue KindeApi::ApiError => e
|
|
358
|
+
puts "Error when calling UsersApi->refresh_user_claims_with_http_info: #{e}"
|
|
359
|
+
end
|
|
360
|
+
```
|
|
361
|
+
|
|
362
|
+
### Parameters
|
|
363
|
+
|
|
364
|
+
| Name | Type | Description | Notes |
|
|
365
|
+
| ---- | ---- | ----------- | ----- |
|
|
366
|
+
| **user_id** | **String** | The id of the user whose claims needs to be updated. | |
|
|
367
|
+
|
|
368
|
+
### Return type
|
|
369
|
+
|
|
370
|
+
[**SuccessResponse**](SuccessResponse.md)
|
|
371
|
+
|
|
372
|
+
### Authorization
|
|
373
|
+
|
|
374
|
+
[kindeBearerAuth](../README.md#kindeBearerAuth)
|
|
375
|
+
|
|
376
|
+
### HTTP request headers
|
|
377
|
+
|
|
378
|
+
- **Content-Type**: Not defined
|
|
379
|
+
- **Accept**: application/json; charset=utf-8, application/json
|
|
380
|
+
|
|
381
|
+
|
|
304
382
|
## update_user
|
|
305
383
|
|
|
306
|
-
> <
|
|
384
|
+
> <UpdateUserResponse> update_user(update_user_request, opts)
|
|
307
385
|
|
|
308
386
|
Update User
|
|
309
387
|
|
|
@@ -339,7 +417,7 @@ end
|
|
|
339
417
|
|
|
340
418
|
This returns an Array which contains the response data, status code and headers.
|
|
341
419
|
|
|
342
|
-
> <Array(<
|
|
420
|
+
> <Array(<UpdateUserResponse>, Integer, Hash)> update_user_with_http_info(update_user_request, opts)
|
|
343
421
|
|
|
344
422
|
```ruby
|
|
345
423
|
begin
|
|
@@ -347,7 +425,7 @@ begin
|
|
|
347
425
|
data, status_code, headers = api_instance.update_user_with_http_info(update_user_request, opts)
|
|
348
426
|
p status_code # => 2xx
|
|
349
427
|
p headers # => { ... }
|
|
350
|
-
p data # => <
|
|
428
|
+
p data # => <UpdateUserResponse>
|
|
351
429
|
rescue KindeApi::ApiError => e
|
|
352
430
|
puts "Error when calling UsersApi->update_user_with_http_info: #{e}"
|
|
353
431
|
end
|
|
@@ -362,7 +440,7 @@ end
|
|
|
362
440
|
|
|
363
441
|
### Return type
|
|
364
442
|
|
|
365
|
-
[**
|
|
443
|
+
[**UpdateUserResponse**](UpdateUserResponse.md)
|
|
366
444
|
|
|
367
445
|
### Authorization
|
|
368
446
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **code** | **String** | Response code. | [optional] |
|
|
8
8
|
| **message** | **String** | Response message. | [optional] |
|
|
9
|
-
| **users** | [**Array<
|
|
9
|
+
| **users** | [**Array<UsersResponseUsersInner>**](UsersResponseUsersInner.md) | | [optional] |
|
|
10
10
|
| **next_token** | **String** | Pagination token. | [optional] |
|
|
11
11
|
|
|
12
12
|
## Example
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# KindeApi::UsersResponseUsersInner
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id** | **String** | Unique id of the user in Kinde. | [optional] |
|
|
8
|
+
| **provided_id** | **String** | External id for user. | [optional] |
|
|
9
|
+
| **email** | **String** | Default email address of the user in Kinde. | [optional] |
|
|
10
|
+
| **last_name** | **String** | User's last name. | [optional] |
|
|
11
|
+
| **first_name** | **String** | User's first name. | [optional] |
|
|
12
|
+
| **is_suspended** | **Boolean** | Whether the user is currently suspended or not. | [optional] |
|
|
13
|
+
| **picture** | **String** | User's profile picture URL. | [optional] |
|
|
14
|
+
| **total_sign_ins** | **Integer** | Total number of user sign ins. | [optional] |
|
|
15
|
+
| **failed_sign_ins** | **Integer** | Number of consecutive failed user sign ins. | [optional] |
|
|
16
|
+
| **last_signed_in** | **String** | Last sign in date in ISO 8601 format. | [optional] |
|
|
17
|
+
| **created_on** | **String** | Date of user creation in ISO 8601 format. | [optional] |
|
|
18
|
+
| **organizations** | **Array<String>** | Array of organizations a user belongs to. | [optional] |
|
|
19
|
+
| **identities** | [**Array<UserIdentitiesInner>**](UserIdentitiesInner.md) | Array of identities belonging to the user. | [optional] |
|
|
20
|
+
|
|
21
|
+
## Example
|
|
22
|
+
|
|
23
|
+
```ruby
|
|
24
|
+
require 'kinde_api'
|
|
25
|
+
|
|
26
|
+
instance = KindeApi::UsersResponseUsersInner.new(
|
|
27
|
+
id: null,
|
|
28
|
+
provided_id: null,
|
|
29
|
+
email: null,
|
|
30
|
+
last_name: null,
|
|
31
|
+
first_name: null,
|
|
32
|
+
is_suspended: null,
|
|
33
|
+
picture: null,
|
|
34
|
+
total_sign_ins: null,
|
|
35
|
+
failed_sign_ins: null,
|
|
36
|
+
last_signed_in: null,
|
|
37
|
+
created_on: null,
|
|
38
|
+
organizations: null,
|
|
39
|
+
identities: null
|
|
40
|
+
)
|
|
41
|
+
```
|
|
42
|
+
|
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Kinde Management API
|
|
3
|
+
|
|
4
|
+
#Provides endpoints to manage your Kinde Businesses
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1
|
|
7
|
+
Contact: support@kinde.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 6.4.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module KindeApi
|
|
16
|
+
class APIsApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Add APIs
|
|
23
|
+
# Add APIs.
|
|
24
|
+
# @param add_apis_request [AddAPIsRequest] API details.
|
|
25
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @return [SuccessResponse]
|
|
27
|
+
def add_apis(add_apis_request, opts = {})
|
|
28
|
+
data, _status_code, _headers = add_apis_with_http_info(add_apis_request, opts)
|
|
29
|
+
data
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Add APIs
|
|
33
|
+
# Add APIs.
|
|
34
|
+
# @param add_apis_request [AddAPIsRequest] API details.
|
|
35
|
+
# @param [Hash] opts the optional parameters
|
|
36
|
+
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
|
37
|
+
def add_apis_with_http_info(add_apis_request, opts = {})
|
|
38
|
+
if @api_client.config.debugging
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: APIsApi.add_apis ...'
|
|
40
|
+
end
|
|
41
|
+
# verify the required parameter 'add_apis_request' is set
|
|
42
|
+
if @api_client.config.client_side_validation && add_apis_request.nil?
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'add_apis_request' when calling APIsApi.add_apis"
|
|
44
|
+
end
|
|
45
|
+
# resource path
|
|
46
|
+
local_var_path = '/api/v1/apis'
|
|
47
|
+
|
|
48
|
+
# query parameters
|
|
49
|
+
query_params = opts[:query_params] || {}
|
|
50
|
+
|
|
51
|
+
# header parameters
|
|
52
|
+
header_params = opts[:header_params] || {}
|
|
53
|
+
# HTTP header 'Accept' (if needed)
|
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8', 'application/json'])
|
|
55
|
+
# HTTP header 'Content-Type'
|
|
56
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
57
|
+
if !content_type.nil?
|
|
58
|
+
header_params['Content-Type'] = content_type
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# form parameters
|
|
62
|
+
form_params = opts[:form_params] || {}
|
|
63
|
+
|
|
64
|
+
# http body (model)
|
|
65
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(add_apis_request)
|
|
66
|
+
|
|
67
|
+
# return_type
|
|
68
|
+
return_type = opts[:debug_return_type] || 'SuccessResponse'
|
|
69
|
+
|
|
70
|
+
# auth_names
|
|
71
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
|
72
|
+
|
|
73
|
+
new_options = opts.merge(
|
|
74
|
+
:operation => :"APIsApi.add_apis",
|
|
75
|
+
:header_params => header_params,
|
|
76
|
+
:query_params => query_params,
|
|
77
|
+
:form_params => form_params,
|
|
78
|
+
:body => post_body,
|
|
79
|
+
:auth_names => auth_names,
|
|
80
|
+
:return_type => return_type
|
|
81
|
+
)
|
|
82
|
+
|
|
83
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
84
|
+
if @api_client.config.debugging
|
|
85
|
+
@api_client.config.logger.debug "API called: APIsApi#add_apis\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
86
|
+
end
|
|
87
|
+
return data, status_code, headers
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Delete API
|
|
91
|
+
# Deletes API.
|
|
92
|
+
# @param api_id [String] The API's id.
|
|
93
|
+
# @param [Hash] opts the optional parameters
|
|
94
|
+
# @return [SuccessResponse]
|
|
95
|
+
def delete_api(api_id, opts = {})
|
|
96
|
+
data, _status_code, _headers = delete_api_with_http_info(api_id, opts)
|
|
97
|
+
data
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# Delete API
|
|
101
|
+
# Deletes API.
|
|
102
|
+
# @param api_id [String] The API's id.
|
|
103
|
+
# @param [Hash] opts the optional parameters
|
|
104
|
+
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
|
105
|
+
def delete_api_with_http_info(api_id, opts = {})
|
|
106
|
+
if @api_client.config.debugging
|
|
107
|
+
@api_client.config.logger.debug 'Calling API: APIsApi.delete_api ...'
|
|
108
|
+
end
|
|
109
|
+
# verify the required parameter 'api_id' is set
|
|
110
|
+
if @api_client.config.client_side_validation && api_id.nil?
|
|
111
|
+
fail ArgumentError, "Missing the required parameter 'api_id' when calling APIsApi.delete_api"
|
|
112
|
+
end
|
|
113
|
+
# resource path
|
|
114
|
+
local_var_path = '/api/v1/apis/{api_id}'.sub('{' + 'api_id' + '}', CGI.escape(api_id.to_s))
|
|
115
|
+
|
|
116
|
+
# query parameters
|
|
117
|
+
query_params = opts[:query_params] || {}
|
|
118
|
+
|
|
119
|
+
# header parameters
|
|
120
|
+
header_params = opts[:header_params] || {}
|
|
121
|
+
# HTTP header 'Accept' (if needed)
|
|
122
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8', 'application/json'])
|
|
123
|
+
|
|
124
|
+
# form parameters
|
|
125
|
+
form_params = opts[:form_params] || {}
|
|
126
|
+
|
|
127
|
+
# http body (model)
|
|
128
|
+
post_body = opts[:debug_body]
|
|
129
|
+
|
|
130
|
+
# return_type
|
|
131
|
+
return_type = opts[:debug_return_type] || 'SuccessResponse'
|
|
132
|
+
|
|
133
|
+
# auth_names
|
|
134
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
|
135
|
+
|
|
136
|
+
new_options = opts.merge(
|
|
137
|
+
:operation => :"APIsApi.delete_api",
|
|
138
|
+
:header_params => header_params,
|
|
139
|
+
:query_params => query_params,
|
|
140
|
+
:form_params => form_params,
|
|
141
|
+
:body => post_body,
|
|
142
|
+
:auth_names => auth_names,
|
|
143
|
+
:return_type => return_type
|
|
144
|
+
)
|
|
145
|
+
|
|
146
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
147
|
+
if @api_client.config.debugging
|
|
148
|
+
@api_client.config.logger.debug "API called: APIsApi#delete_api\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
149
|
+
end
|
|
150
|
+
return data, status_code, headers
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
# List API details
|
|
154
|
+
# Returns the details of the API.
|
|
155
|
+
# @param api_id [String] The API's id.
|
|
156
|
+
# @param [Hash] opts the optional parameters
|
|
157
|
+
# @return [Api]
|
|
158
|
+
def get_api(api_id, opts = {})
|
|
159
|
+
data, _status_code, _headers = get_api_with_http_info(api_id, opts)
|
|
160
|
+
data
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
# List API details
|
|
164
|
+
# Returns the details of the API.
|
|
165
|
+
# @param api_id [String] The API's id.
|
|
166
|
+
# @param [Hash] opts the optional parameters
|
|
167
|
+
# @return [Array<(Api, Integer, Hash)>] Api data, response status code and response headers
|
|
168
|
+
def get_api_with_http_info(api_id, opts = {})
|
|
169
|
+
if @api_client.config.debugging
|
|
170
|
+
@api_client.config.logger.debug 'Calling API: APIsApi.get_api ...'
|
|
171
|
+
end
|
|
172
|
+
# verify the required parameter 'api_id' is set
|
|
173
|
+
if @api_client.config.client_side_validation && api_id.nil?
|
|
174
|
+
fail ArgumentError, "Missing the required parameter 'api_id' when calling APIsApi.get_api"
|
|
175
|
+
end
|
|
176
|
+
# resource path
|
|
177
|
+
local_var_path = '/api/v1/apis/{api_id}'.sub('{' + 'api_id' + '}', CGI.escape(api_id.to_s))
|
|
178
|
+
|
|
179
|
+
# query parameters
|
|
180
|
+
query_params = opts[:query_params] || {}
|
|
181
|
+
|
|
182
|
+
# header parameters
|
|
183
|
+
header_params = opts[:header_params] || {}
|
|
184
|
+
# HTTP header 'Accept' (if needed)
|
|
185
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8', 'application/json'])
|
|
186
|
+
|
|
187
|
+
# form parameters
|
|
188
|
+
form_params = opts[:form_params] || {}
|
|
189
|
+
|
|
190
|
+
# http body (model)
|
|
191
|
+
post_body = opts[:debug_body]
|
|
192
|
+
|
|
193
|
+
# return_type
|
|
194
|
+
return_type = opts[:debug_return_type] || 'Api'
|
|
195
|
+
|
|
196
|
+
# auth_names
|
|
197
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
|
198
|
+
|
|
199
|
+
new_options = opts.merge(
|
|
200
|
+
:operation => :"APIsApi.get_api",
|
|
201
|
+
:header_params => header_params,
|
|
202
|
+
:query_params => query_params,
|
|
203
|
+
:form_params => form_params,
|
|
204
|
+
:body => post_body,
|
|
205
|
+
:auth_names => auth_names,
|
|
206
|
+
:return_type => return_type
|
|
207
|
+
)
|
|
208
|
+
|
|
209
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
210
|
+
if @api_client.config.debugging
|
|
211
|
+
@api_client.config.logger.debug "API called: APIsApi#get_api\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
212
|
+
end
|
|
213
|
+
return data, status_code, headers
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
# List APIs
|
|
217
|
+
# Returns a list of APIs.
|
|
218
|
+
# @param [Hash] opts the optional parameters
|
|
219
|
+
# @return [Apis]
|
|
220
|
+
def get_apis(opts = {})
|
|
221
|
+
data, _status_code, _headers = get_apis_with_http_info(opts)
|
|
222
|
+
data
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
# List APIs
|
|
226
|
+
# Returns a list of APIs.
|
|
227
|
+
# @param [Hash] opts the optional parameters
|
|
228
|
+
# @return [Array<(Apis, Integer, Hash)>] Apis data, response status code and response headers
|
|
229
|
+
def get_apis_with_http_info(opts = {})
|
|
230
|
+
if @api_client.config.debugging
|
|
231
|
+
@api_client.config.logger.debug 'Calling API: APIsApi.get_apis ...'
|
|
232
|
+
end
|
|
233
|
+
# resource path
|
|
234
|
+
local_var_path = '/api/v1/apis'
|
|
235
|
+
|
|
236
|
+
# query parameters
|
|
237
|
+
query_params = opts[:query_params] || {}
|
|
238
|
+
|
|
239
|
+
# header parameters
|
|
240
|
+
header_params = opts[:header_params] || {}
|
|
241
|
+
# HTTP header 'Accept' (if needed)
|
|
242
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8', 'application/json'])
|
|
243
|
+
|
|
244
|
+
# form parameters
|
|
245
|
+
form_params = opts[:form_params] || {}
|
|
246
|
+
|
|
247
|
+
# http body (model)
|
|
248
|
+
post_body = opts[:debug_body]
|
|
249
|
+
|
|
250
|
+
# return_type
|
|
251
|
+
return_type = opts[:debug_return_type] || 'Apis'
|
|
252
|
+
|
|
253
|
+
# auth_names
|
|
254
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
|
255
|
+
|
|
256
|
+
new_options = opts.merge(
|
|
257
|
+
:operation => :"APIsApi.get_apis",
|
|
258
|
+
:header_params => header_params,
|
|
259
|
+
:query_params => query_params,
|
|
260
|
+
:form_params => form_params,
|
|
261
|
+
:body => post_body,
|
|
262
|
+
:auth_names => auth_names,
|
|
263
|
+
:return_type => return_type
|
|
264
|
+
)
|
|
265
|
+
|
|
266
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
267
|
+
if @api_client.config.debugging
|
|
268
|
+
@api_client.config.logger.debug "API called: APIsApi#get_apis\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
269
|
+
end
|
|
270
|
+
return data, status_code, headers
|
|
271
|
+
end
|
|
272
|
+
|
|
273
|
+
# Update API Applications
|
|
274
|
+
# Update the applications under that API.
|
|
275
|
+
# @param api_id [String] The identifier for the API.
|
|
276
|
+
# @param update_api_applications_request [UpdateAPIApplicationsRequest] The applications you want to connect or disconnect.
|
|
277
|
+
# @param [Hash] opts the optional parameters
|
|
278
|
+
# @return [SuccessResponse]
|
|
279
|
+
def update_api_applications(api_id, update_api_applications_request, opts = {})
|
|
280
|
+
data, _status_code, _headers = update_api_applications_with_http_info(api_id, update_api_applications_request, opts)
|
|
281
|
+
data
|
|
282
|
+
end
|
|
283
|
+
|
|
284
|
+
# Update API Applications
|
|
285
|
+
# Update the applications under that API.
|
|
286
|
+
# @param api_id [String] The identifier for the API.
|
|
287
|
+
# @param update_api_applications_request [UpdateAPIApplicationsRequest] The applications you want to connect or disconnect.
|
|
288
|
+
# @param [Hash] opts the optional parameters
|
|
289
|
+
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
|
290
|
+
def update_api_applications_with_http_info(api_id, update_api_applications_request, opts = {})
|
|
291
|
+
if @api_client.config.debugging
|
|
292
|
+
@api_client.config.logger.debug 'Calling API: APIsApi.update_api_applications ...'
|
|
293
|
+
end
|
|
294
|
+
# verify the required parameter 'api_id' is set
|
|
295
|
+
if @api_client.config.client_side_validation && api_id.nil?
|
|
296
|
+
fail ArgumentError, "Missing the required parameter 'api_id' when calling APIsApi.update_api_applications"
|
|
297
|
+
end
|
|
298
|
+
# verify the required parameter 'update_api_applications_request' is set
|
|
299
|
+
if @api_client.config.client_side_validation && update_api_applications_request.nil?
|
|
300
|
+
fail ArgumentError, "Missing the required parameter 'update_api_applications_request' when calling APIsApi.update_api_applications"
|
|
301
|
+
end
|
|
302
|
+
# resource path
|
|
303
|
+
local_var_path = '/api/v1/apis/{api_id}/applications'.sub('{' + 'api_id' + '}', CGI.escape(api_id.to_s))
|
|
304
|
+
|
|
305
|
+
# query parameters
|
|
306
|
+
query_params = opts[:query_params] || {}
|
|
307
|
+
|
|
308
|
+
# header parameters
|
|
309
|
+
header_params = opts[:header_params] || {}
|
|
310
|
+
# HTTP header 'Accept' (if needed)
|
|
311
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8', 'application/json'])
|
|
312
|
+
# HTTP header 'Content-Type'
|
|
313
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
314
|
+
if !content_type.nil?
|
|
315
|
+
header_params['Content-Type'] = content_type
|
|
316
|
+
end
|
|
317
|
+
|
|
318
|
+
# form parameters
|
|
319
|
+
form_params = opts[:form_params] || {}
|
|
320
|
+
|
|
321
|
+
# http body (model)
|
|
322
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_api_applications_request)
|
|
323
|
+
|
|
324
|
+
# return_type
|
|
325
|
+
return_type = opts[:debug_return_type] || 'SuccessResponse'
|
|
326
|
+
|
|
327
|
+
# auth_names
|
|
328
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
|
329
|
+
|
|
330
|
+
new_options = opts.merge(
|
|
331
|
+
:operation => :"APIsApi.update_api_applications",
|
|
332
|
+
:header_params => header_params,
|
|
333
|
+
:query_params => query_params,
|
|
334
|
+
:form_params => form_params,
|
|
335
|
+
:body => post_body,
|
|
336
|
+
:auth_names => auth_names,
|
|
337
|
+
:return_type => return_type
|
|
338
|
+
)
|
|
339
|
+
|
|
340
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
341
|
+
if @api_client.config.debugging
|
|
342
|
+
@api_client.config.logger.debug "API called: APIsApi#update_api_applications\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
343
|
+
end
|
|
344
|
+
return data, status_code, headers
|
|
345
|
+
end
|
|
346
|
+
end
|
|
347
|
+
end
|