kinde_sdk 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- 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
@@ -19,7 +19,7 @@ module KindeApi
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
# Create
|
22
|
+
# Create Role
|
23
23
|
# Create role.
|
24
24
|
# @param [Hash] opts the optional parameters
|
25
25
|
# @option opts [CreateRoleRequest] :create_role_request Role details.
|
@@ -29,7 +29,7 @@ module KindeApi
|
|
29
29
|
data
|
30
30
|
end
|
31
31
|
|
32
|
-
# Create
|
32
|
+
# Create Role
|
33
33
|
# Create role.
|
34
34
|
# @param [Hash] opts the optional parameters
|
35
35
|
# @option opts [CreateRoleRequest] :create_role_request Role details.
|
@@ -51,7 +51,7 @@ module KindeApi
|
|
51
51
|
# HTTP header 'Content-Type'
|
52
52
|
content_type = @api_client.select_header_content_type(['application/json'])
|
53
53
|
if !content_type.nil?
|
54
|
-
|
54
|
+
header_params['Content-Type'] = content_type
|
55
55
|
end
|
56
56
|
|
57
57
|
# form parameters
|
@@ -83,13 +83,152 @@ module KindeApi
|
|
83
83
|
return data, status_code, headers
|
84
84
|
end
|
85
85
|
|
86
|
+
# Delete Role
|
87
|
+
# Delete role
|
88
|
+
# @param role_id [String] The identifier for the role.
|
89
|
+
# @param [Hash] opts the optional parameters
|
90
|
+
# @return [SuccessResponse]
|
91
|
+
def delete_role(role_id, opts = {})
|
92
|
+
data, _status_code, _headers = delete_role_with_http_info(role_id, opts)
|
93
|
+
data
|
94
|
+
end
|
95
|
+
|
96
|
+
# Delete Role
|
97
|
+
# Delete role
|
98
|
+
# @param role_id [String] The identifier for the role.
|
99
|
+
# @param [Hash] opts the optional parameters
|
100
|
+
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
101
|
+
def delete_role_with_http_info(role_id, opts = {})
|
102
|
+
if @api_client.config.debugging
|
103
|
+
@api_client.config.logger.debug 'Calling API: RolesApi.delete_role ...'
|
104
|
+
end
|
105
|
+
# verify the required parameter 'role_id' is set
|
106
|
+
if @api_client.config.client_side_validation && role_id.nil?
|
107
|
+
fail ArgumentError, "Missing the required parameter 'role_id' when calling RolesApi.delete_role"
|
108
|
+
end
|
109
|
+
# resource path
|
110
|
+
local_var_path = '/api/v1/roles/{role_id}'.sub('{' + 'role_id' + '}', CGI.escape(role_id.to_s))
|
111
|
+
|
112
|
+
# query parameters
|
113
|
+
query_params = opts[:query_params] || {}
|
114
|
+
|
115
|
+
# header parameters
|
116
|
+
header_params = opts[:header_params] || {}
|
117
|
+
# HTTP header 'Accept' (if needed)
|
118
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
119
|
+
|
120
|
+
# form parameters
|
121
|
+
form_params = opts[:form_params] || {}
|
122
|
+
|
123
|
+
# http body (model)
|
124
|
+
post_body = opts[:debug_body]
|
125
|
+
|
126
|
+
# return_type
|
127
|
+
return_type = opts[:debug_return_type] || 'SuccessResponse'
|
128
|
+
|
129
|
+
# auth_names
|
130
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
131
|
+
|
132
|
+
new_options = opts.merge(
|
133
|
+
:operation => :"RolesApi.delete_role",
|
134
|
+
:header_params => header_params,
|
135
|
+
:query_params => query_params,
|
136
|
+
:form_params => form_params,
|
137
|
+
:body => post_body,
|
138
|
+
:auth_names => auth_names,
|
139
|
+
:return_type => return_type
|
140
|
+
)
|
141
|
+
|
142
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
143
|
+
if @api_client.config.debugging
|
144
|
+
@api_client.config.logger.debug "API called: RolesApi#delete_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
145
|
+
end
|
146
|
+
return data, status_code, headers
|
147
|
+
end
|
148
|
+
|
149
|
+
# Get Role Permissions
|
150
|
+
# Get permissions for a role.
|
151
|
+
# @param role_id [String] The role's public id.
|
152
|
+
# @param [Hash] opts the optional parameters
|
153
|
+
# @option opts [String] :sort Field and order to sort the result by.
|
154
|
+
# @option opts [Integer] :page_size Number of results per page. Defaults to 10 if parameter not sent.
|
155
|
+
# @option opts [String] :next_token A string to get the next page of results if there are more results.
|
156
|
+
# @return [Array<RolesPermissionResponseInner>]
|
157
|
+
def get_role_permission(role_id, opts = {})
|
158
|
+
data, _status_code, _headers = get_role_permission_with_http_info(role_id, opts)
|
159
|
+
data
|
160
|
+
end
|
161
|
+
|
162
|
+
# Get Role Permissions
|
163
|
+
# Get permissions for a role.
|
164
|
+
# @param role_id [String] The role's public id.
|
165
|
+
# @param [Hash] opts the optional parameters
|
166
|
+
# @option opts [String] :sort Field and order to sort the result by.
|
167
|
+
# @option opts [Integer] :page_size Number of results per page. Defaults to 10 if parameter not sent.
|
168
|
+
# @option opts [String] :next_token A string to get the next page of results if there are more results.
|
169
|
+
# @return [Array<(Array<RolesPermissionResponseInner>, Integer, Hash)>] Array<RolesPermissionResponseInner> data, response status code and response headers
|
170
|
+
def get_role_permission_with_http_info(role_id, opts = {})
|
171
|
+
if @api_client.config.debugging
|
172
|
+
@api_client.config.logger.debug 'Calling API: RolesApi.get_role_permission ...'
|
173
|
+
end
|
174
|
+
# verify the required parameter 'role_id' is set
|
175
|
+
if @api_client.config.client_side_validation && role_id.nil?
|
176
|
+
fail ArgumentError, "Missing the required parameter 'role_id' when calling RolesApi.get_role_permission"
|
177
|
+
end
|
178
|
+
allowable_values = ["name_asc", "name_desc", "id_asc", "id_desc"]
|
179
|
+
if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
|
180
|
+
fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
181
|
+
end
|
182
|
+
# resource path
|
183
|
+
local_var_path = '/api/v1/roles/{role_id}/permissions'.sub('{' + 'role_id' + '}', CGI.escape(role_id.to_s))
|
184
|
+
|
185
|
+
# query parameters
|
186
|
+
query_params = opts[:query_params] || {}
|
187
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
188
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
189
|
+
query_params[:'next_token'] = opts[:'next_token'] if !opts[:'next_token'].nil?
|
190
|
+
|
191
|
+
# header parameters
|
192
|
+
header_params = opts[:header_params] || {}
|
193
|
+
# HTTP header 'Accept' (if needed)
|
194
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
195
|
+
|
196
|
+
# form parameters
|
197
|
+
form_params = opts[:form_params] || {}
|
198
|
+
|
199
|
+
# http body (model)
|
200
|
+
post_body = opts[:debug_body]
|
201
|
+
|
202
|
+
# return_type
|
203
|
+
return_type = opts[:debug_return_type] || 'Array<RolesPermissionResponseInner>'
|
204
|
+
|
205
|
+
# auth_names
|
206
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
207
|
+
|
208
|
+
new_options = opts.merge(
|
209
|
+
:operation => :"RolesApi.get_role_permission",
|
210
|
+
:header_params => header_params,
|
211
|
+
:query_params => query_params,
|
212
|
+
:form_params => form_params,
|
213
|
+
:body => post_body,
|
214
|
+
:auth_names => auth_names,
|
215
|
+
:return_type => return_type
|
216
|
+
)
|
217
|
+
|
218
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
219
|
+
if @api_client.config.debugging
|
220
|
+
@api_client.config.logger.debug "API called: RolesApi#get_role_permission\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
221
|
+
end
|
222
|
+
return data, status_code, headers
|
223
|
+
end
|
224
|
+
|
86
225
|
# List Roles
|
87
226
|
# The returned list can be sorted by role name or role ID in ascending or descending order. The number of records to return at a time can also be controlled using the `page_size` query string parameter.
|
88
227
|
# @param [Hash] opts the optional parameters
|
89
228
|
# @option opts [String] :sort Field and order to sort the result by.
|
90
229
|
# @option opts [Integer] :page_size Number of results per page. Defaults to 10 if parameter not sent.
|
91
230
|
# @option opts [String] :next_token A string to get the next page of results if there are more results.
|
92
|
-
# @return [
|
231
|
+
# @return [GetRolesResponse]
|
93
232
|
def get_roles(opts = {})
|
94
233
|
data, _status_code, _headers = get_roles_with_http_info(opts)
|
95
234
|
data
|
@@ -101,7 +240,7 @@ module KindeApi
|
|
101
240
|
# @option opts [String] :sort Field and order to sort the result by.
|
102
241
|
# @option opts [Integer] :page_size Number of results per page. Defaults to 10 if parameter not sent.
|
103
242
|
# @option opts [String] :next_token A string to get the next page of results if there are more results.
|
104
|
-
# @return [Array<(
|
243
|
+
# @return [Array<(GetRolesResponse, Integer, Hash)>] GetRolesResponse data, response status code and response headers
|
105
244
|
def get_roles_with_http_info(opts = {})
|
106
245
|
if @api_client.config.debugging
|
107
246
|
@api_client.config.logger.debug 'Calling API: RolesApi.get_roles ...'
|
@@ -122,7 +261,7 @@ module KindeApi
|
|
122
261
|
# header parameters
|
123
262
|
header_params = opts[:header_params] || {}
|
124
263
|
# HTTP header 'Accept' (if needed)
|
125
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
264
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
126
265
|
|
127
266
|
# form parameters
|
128
267
|
form_params = opts[:form_params] || {}
|
@@ -131,7 +270,7 @@ module KindeApi
|
|
131
270
|
post_body = opts[:debug_body]
|
132
271
|
|
133
272
|
# return_type
|
134
|
-
return_type = opts[:debug_return_type] || '
|
273
|
+
return_type = opts[:debug_return_type] || 'GetRolesResponse'
|
135
274
|
|
136
275
|
# auth_names
|
137
276
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
@@ -153,22 +292,165 @@ module KindeApi
|
|
153
292
|
return data, status_code, headers
|
154
293
|
end
|
155
294
|
|
295
|
+
# Remove Role Permission
|
296
|
+
# Remove a permission from a role.
|
297
|
+
# @param role_id [String] The role's public id.
|
298
|
+
# @param permission_id [String] The permission's public id.
|
299
|
+
# @param [Hash] opts the optional parameters
|
300
|
+
# @return [SuccessResponse]
|
301
|
+
def remove_role_permission(role_id, permission_id, opts = {})
|
302
|
+
data, _status_code, _headers = remove_role_permission_with_http_info(role_id, permission_id, opts)
|
303
|
+
data
|
304
|
+
end
|
305
|
+
|
306
|
+
# Remove Role Permission
|
307
|
+
# Remove a permission from a role.
|
308
|
+
# @param role_id [String] The role's public id.
|
309
|
+
# @param permission_id [String] The permission's public id.
|
310
|
+
# @param [Hash] opts the optional parameters
|
311
|
+
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
312
|
+
def remove_role_permission_with_http_info(role_id, permission_id, opts = {})
|
313
|
+
if @api_client.config.debugging
|
314
|
+
@api_client.config.logger.debug 'Calling API: RolesApi.remove_role_permission ...'
|
315
|
+
end
|
316
|
+
# verify the required parameter 'role_id' is set
|
317
|
+
if @api_client.config.client_side_validation && role_id.nil?
|
318
|
+
fail ArgumentError, "Missing the required parameter 'role_id' when calling RolesApi.remove_role_permission"
|
319
|
+
end
|
320
|
+
# verify the required parameter 'permission_id' is set
|
321
|
+
if @api_client.config.client_side_validation && permission_id.nil?
|
322
|
+
fail ArgumentError, "Missing the required parameter 'permission_id' when calling RolesApi.remove_role_permission"
|
323
|
+
end
|
324
|
+
# resource path
|
325
|
+
local_var_path = '/api/v1/roles/{role_id}/permissions/{permission_id}'.sub('{' + 'role_id' + '}', CGI.escape(role_id.to_s)).sub('{' + 'permission_id' + '}', CGI.escape(permission_id.to_s))
|
326
|
+
|
327
|
+
# query parameters
|
328
|
+
query_params = opts[:query_params] || {}
|
329
|
+
|
330
|
+
# header parameters
|
331
|
+
header_params = opts[:header_params] || {}
|
332
|
+
# HTTP header 'Accept' (if needed)
|
333
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
334
|
+
|
335
|
+
# form parameters
|
336
|
+
form_params = opts[:form_params] || {}
|
337
|
+
|
338
|
+
# http body (model)
|
339
|
+
post_body = opts[:debug_body]
|
340
|
+
|
341
|
+
# return_type
|
342
|
+
return_type = opts[:debug_return_type] || 'SuccessResponse'
|
343
|
+
|
344
|
+
# auth_names
|
345
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
346
|
+
|
347
|
+
new_options = opts.merge(
|
348
|
+
:operation => :"RolesApi.remove_role_permission",
|
349
|
+
:header_params => header_params,
|
350
|
+
:query_params => query_params,
|
351
|
+
:form_params => form_params,
|
352
|
+
:body => post_body,
|
353
|
+
:auth_names => auth_names,
|
354
|
+
:return_type => return_type
|
355
|
+
)
|
356
|
+
|
357
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
358
|
+
if @api_client.config.debugging
|
359
|
+
@api_client.config.logger.debug "API called: RolesApi#remove_role_permission\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
360
|
+
end
|
361
|
+
return data, status_code, headers
|
362
|
+
end
|
363
|
+
|
364
|
+
# Update Role Permissions
|
365
|
+
# Update role permissions.
|
366
|
+
# @param role_id [String] The identifier for the role.
|
367
|
+
# @param update_role_permissions_request [UpdateRolePermissionsRequest]
|
368
|
+
# @param [Hash] opts the optional parameters
|
369
|
+
# @return [UpdateRolePermissionsResponse]
|
370
|
+
def update_role_permissions(role_id, update_role_permissions_request, opts = {})
|
371
|
+
data, _status_code, _headers = update_role_permissions_with_http_info(role_id, update_role_permissions_request, opts)
|
372
|
+
data
|
373
|
+
end
|
374
|
+
|
375
|
+
# Update Role Permissions
|
376
|
+
# Update role permissions.
|
377
|
+
# @param role_id [String] The identifier for the role.
|
378
|
+
# @param update_role_permissions_request [UpdateRolePermissionsRequest]
|
379
|
+
# @param [Hash] opts the optional parameters
|
380
|
+
# @return [Array<(UpdateRolePermissionsResponse, Integer, Hash)>] UpdateRolePermissionsResponse data, response status code and response headers
|
381
|
+
def update_role_permissions_with_http_info(role_id, update_role_permissions_request, opts = {})
|
382
|
+
if @api_client.config.debugging
|
383
|
+
@api_client.config.logger.debug 'Calling API: RolesApi.update_role_permissions ...'
|
384
|
+
end
|
385
|
+
# verify the required parameter 'role_id' is set
|
386
|
+
if @api_client.config.client_side_validation && role_id.nil?
|
387
|
+
fail ArgumentError, "Missing the required parameter 'role_id' when calling RolesApi.update_role_permissions"
|
388
|
+
end
|
389
|
+
# verify the required parameter 'update_role_permissions_request' is set
|
390
|
+
if @api_client.config.client_side_validation && update_role_permissions_request.nil?
|
391
|
+
fail ArgumentError, "Missing the required parameter 'update_role_permissions_request' when calling RolesApi.update_role_permissions"
|
392
|
+
end
|
393
|
+
# resource path
|
394
|
+
local_var_path = '/api/v1/roles/{role_id}/permissions'.sub('{' + 'role_id' + '}', CGI.escape(role_id.to_s))
|
395
|
+
|
396
|
+
# query parameters
|
397
|
+
query_params = opts[:query_params] || {}
|
398
|
+
|
399
|
+
# header parameters
|
400
|
+
header_params = opts[:header_params] || {}
|
401
|
+
# HTTP header 'Accept' (if needed)
|
402
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
403
|
+
# HTTP header 'Content-Type'
|
404
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
405
|
+
if !content_type.nil?
|
406
|
+
header_params['Content-Type'] = content_type
|
407
|
+
end
|
408
|
+
|
409
|
+
# form parameters
|
410
|
+
form_params = opts[:form_params] || {}
|
411
|
+
|
412
|
+
# http body (model)
|
413
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_role_permissions_request)
|
414
|
+
|
415
|
+
# return_type
|
416
|
+
return_type = opts[:debug_return_type] || 'UpdateRolePermissionsResponse'
|
417
|
+
|
418
|
+
# auth_names
|
419
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
420
|
+
|
421
|
+
new_options = opts.merge(
|
422
|
+
:operation => :"RolesApi.update_role_permissions",
|
423
|
+
:header_params => header_params,
|
424
|
+
:query_params => query_params,
|
425
|
+
:form_params => form_params,
|
426
|
+
:body => post_body,
|
427
|
+
:auth_names => auth_names,
|
428
|
+
:return_type => return_type
|
429
|
+
)
|
430
|
+
|
431
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
432
|
+
if @api_client.config.debugging
|
433
|
+
@api_client.config.logger.debug "API called: RolesApi#update_role_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
434
|
+
end
|
435
|
+
return data, status_code, headers
|
436
|
+
end
|
437
|
+
|
438
|
+
# Update Role
|
156
439
|
# Update a role
|
157
|
-
#
|
158
|
-
# @param role_id [Integer] The identifier for the role.
|
440
|
+
# @param role_id [String] The identifier for the role.
|
159
441
|
# @param [Hash] opts the optional parameters
|
160
|
-
# @option opts [
|
442
|
+
# @option opts [UpdateRolesRequest] :update_roles_request Role details.
|
161
443
|
# @return [SuccessResponse]
|
162
444
|
def update_roles(role_id, opts = {})
|
163
445
|
data, _status_code, _headers = update_roles_with_http_info(role_id, opts)
|
164
446
|
data
|
165
447
|
end
|
166
448
|
|
449
|
+
# Update Role
|
167
450
|
# Update a role
|
168
|
-
#
|
169
|
-
# @param role_id [Integer] The identifier for the role.
|
451
|
+
# @param role_id [String] The identifier for the role.
|
170
452
|
# @param [Hash] opts the optional parameters
|
171
|
-
# @option opts [
|
453
|
+
# @option opts [UpdateRolesRequest] :update_roles_request Role details.
|
172
454
|
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
173
455
|
def update_roles_with_http_info(role_id, opts = {})
|
174
456
|
if @api_client.config.debugging
|
@@ -191,14 +473,14 @@ module KindeApi
|
|
191
473
|
# HTTP header 'Content-Type'
|
192
474
|
content_type = @api_client.select_header_content_type(['application/json'])
|
193
475
|
if !content_type.nil?
|
194
|
-
|
476
|
+
header_params['Content-Type'] = content_type
|
195
477
|
end
|
196
478
|
|
197
479
|
# form parameters
|
198
480
|
form_params = opts[:form_params] || {}
|
199
481
|
|
200
482
|
# http body (model)
|
201
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'
|
483
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'update_roles_request'])
|
202
484
|
|
203
485
|
# return_type
|
204
486
|
return_type = opts[:debug_return_type] || 'SuccessResponse'
|
@@ -19,7 +19,7 @@ module KindeApi
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
# Create
|
22
|
+
# Create Subscriber
|
23
23
|
# Create subscriber.
|
24
24
|
# @param first_name [String] Subscriber's first name.
|
25
25
|
# @param last_name [String] Subscriber's last name.
|
@@ -31,7 +31,7 @@ module KindeApi
|
|
31
31
|
data
|
32
32
|
end
|
33
33
|
|
34
|
-
# Create
|
34
|
+
# Create Subscriber
|
35
35
|
# Create subscriber.
|
36
36
|
# @param first_name [String] Subscriber's first name.
|
37
37
|
# @param last_name [String] Subscriber's last name.
|
@@ -93,7 +93,7 @@ module KindeApi
|
|
93
93
|
# Retrieve a subscriber record.
|
94
94
|
# @param subscriber_id [String] The subscriber's id.
|
95
95
|
# @param [Hash] opts the optional parameters
|
96
|
-
# @return [
|
96
|
+
# @return [GetSubscriberResponse]
|
97
97
|
def get_subscriber(subscriber_id, opts = {})
|
98
98
|
data, _status_code, _headers = get_subscriber_with_http_info(subscriber_id, opts)
|
99
99
|
data
|
@@ -103,7 +103,7 @@ module KindeApi
|
|
103
103
|
# Retrieve a subscriber record.
|
104
104
|
# @param subscriber_id [String] The subscriber's id.
|
105
105
|
# @param [Hash] opts the optional parameters
|
106
|
-
# @return [Array<(
|
106
|
+
# @return [Array<(GetSubscriberResponse, Integer, Hash)>] GetSubscriberResponse data, response status code and response headers
|
107
107
|
def get_subscriber_with_http_info(subscriber_id, opts = {})
|
108
108
|
if @api_client.config.debugging
|
109
109
|
@api_client.config.logger.debug 'Calling API: SubscribersApi.get_subscriber ...'
|
@@ -130,7 +130,7 @@ module KindeApi
|
|
130
130
|
post_body = opts[:debug_body]
|
131
131
|
|
132
132
|
# return_type
|
133
|
-
return_type = opts[:debug_return_type] || '
|
133
|
+
return_type = opts[:debug_return_type] || 'GetSubscriberResponse'
|
134
134
|
|
135
135
|
# auth_names
|
136
136
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
@@ -157,9 +157,8 @@ module KindeApi
|
|
157
157
|
# @param [Hash] opts the optional parameters
|
158
158
|
# @option opts [String] :sort Field and order to sort the result by.
|
159
159
|
# @option opts [Integer] :page_size Number of results per page. Defaults to 10 if parameter not sent.
|
160
|
-
# @option opts [Integer] :subscriber_id ID of the subscriber to filter by.
|
161
160
|
# @option opts [String] :next_token A string to get the next page of results if there are more results.
|
162
|
-
# @return [
|
161
|
+
# @return [GetSubscribersResponse]
|
163
162
|
def get_subscribers(opts = {})
|
164
163
|
data, _status_code, _headers = get_subscribers_with_http_info(opts)
|
165
164
|
data
|
@@ -170,9 +169,8 @@ module KindeApi
|
|
170
169
|
# @param [Hash] opts the optional parameters
|
171
170
|
# @option opts [String] :sort Field and order to sort the result by.
|
172
171
|
# @option opts [Integer] :page_size Number of results per page. Defaults to 10 if parameter not sent.
|
173
|
-
# @option opts [Integer] :subscriber_id ID of the subscriber to filter by.
|
174
172
|
# @option opts [String] :next_token A string to get the next page of results if there are more results.
|
175
|
-
# @return [Array<(
|
173
|
+
# @return [Array<(GetSubscribersResponse, Integer, Hash)>] GetSubscribersResponse data, response status code and response headers
|
176
174
|
def get_subscribers_with_http_info(opts = {})
|
177
175
|
if @api_client.config.debugging
|
178
176
|
@api_client.config.logger.debug 'Calling API: SubscribersApi.get_subscribers ...'
|
@@ -188,7 +186,6 @@ module KindeApi
|
|
188
186
|
query_params = opts[:query_params] || {}
|
189
187
|
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
190
188
|
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
191
|
-
query_params[:'subscriber_id'] = opts[:'subscriber_id'] if !opts[:'subscriber_id'].nil?
|
192
189
|
query_params[:'next_token'] = opts[:'next_token'] if !opts[:'next_token'].nil?
|
193
190
|
|
194
191
|
# header parameters
|
@@ -203,7 +200,7 @@ module KindeApi
|
|
203
200
|
post_body = opts[:debug_body]
|
204
201
|
|
205
202
|
# return_type
|
206
|
-
return_type = opts[:debug_return_type] || '
|
203
|
+
return_type = opts[:debug_return_type] || 'GetSubscribersResponse'
|
207
204
|
|
208
205
|
# auth_names
|
209
206
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
@@ -0,0 +1,85 @@
|
|
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 TimezonesApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# List timezones and timezone IDs.
|
23
|
+
# Get a list of timezones and associated timezone keys.
|
24
|
+
# @param [Hash] opts the optional parameters
|
25
|
+
# @option opts [String] :timezone_key Timezone Key.
|
26
|
+
# @option opts [String] :name Timezone.
|
27
|
+
# @return [SuccessResponse]
|
28
|
+
def get_timezones(opts = {})
|
29
|
+
data, _status_code, _headers = get_timezones_with_http_info(opts)
|
30
|
+
data
|
31
|
+
end
|
32
|
+
|
33
|
+
# List timezones and timezone IDs.
|
34
|
+
# Get a list of timezones and associated timezone keys.
|
35
|
+
# @param [Hash] opts the optional parameters
|
36
|
+
# @option opts [String] :timezone_key Timezone Key.
|
37
|
+
# @option opts [String] :name Timezone.
|
38
|
+
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
39
|
+
def get_timezones_with_http_info(opts = {})
|
40
|
+
if @api_client.config.debugging
|
41
|
+
@api_client.config.logger.debug 'Calling API: TimezonesApi.get_timezones ...'
|
42
|
+
end
|
43
|
+
# resource path
|
44
|
+
local_var_path = '/api/v1/timezones'
|
45
|
+
|
46
|
+
# query parameters
|
47
|
+
query_params = opts[:query_params] || {}
|
48
|
+
query_params[:'timezone_key'] = opts[:'timezone_key'] if !opts[:'timezone_key'].nil?
|
49
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
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'])
|
55
|
+
|
56
|
+
# form parameters
|
57
|
+
form_params = opts[:form_params] || {}
|
58
|
+
|
59
|
+
# http body (model)
|
60
|
+
post_body = opts[:debug_body]
|
61
|
+
|
62
|
+
# return_type
|
63
|
+
return_type = opts[:debug_return_type] || 'SuccessResponse'
|
64
|
+
|
65
|
+
# auth_names
|
66
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
67
|
+
|
68
|
+
new_options = opts.merge(
|
69
|
+
:operation => :"TimezonesApi.get_timezones",
|
70
|
+
:header_params => header_params,
|
71
|
+
:query_params => query_params,
|
72
|
+
:form_params => form_params,
|
73
|
+
:body => post_body,
|
74
|
+
:auth_names => auth_names,
|
75
|
+
:return_type => return_type
|
76
|
+
)
|
77
|
+
|
78
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
79
|
+
if @api_client.config.debugging
|
80
|
+
@api_client.config.logger.debug "API called: TimezonesApi#get_timezones\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
81
|
+
end
|
82
|
+
return data, status_code, headers
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|