authress-sdk 2.0.31.0 → 2.0.35.0
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/README.md +8 -5
- data/lib/{authress_sdk → authress-sdk}/api/access_records_api.rb +46 -46
- data/lib/{authress_sdk → authress-sdk}/api/accounts_api.rb +18 -18
- data/lib/authress-sdk/api/login_api.rb +46 -0
- data/lib/{authress_sdk → authress-sdk}/api/metadata_api.rb +13 -13
- data/lib/{authress_sdk → authress-sdk}/api/resource_permissions_api.rb +20 -20
- data/lib/{authress_sdk → authress-sdk}/api/roles_api.rb +21 -21
- data/lib/{authress_sdk → authress-sdk}/api/service_clients_api.rb +36 -36
- data/lib/{authress_sdk → authress-sdk}/api/user_permissions_api.rb +30 -30
- data/lib/{authress_sdk → authress-sdk}/authress_client.rb +2 -21
- data/lib/{authress_sdk → authress-sdk}/constant_token_provider.rb +0 -2
- data/lib/{authress_sdk → authress-sdk}/service_client_token_provider.rb +0 -2
- data/lib/{authress_sdk.rb → authress-sdk.rb} +2 -3
- metadata +78 -77
- /data/lib/{authress_sdk → authress-sdk}/api_error.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/access_record.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/access_record_collection.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/account.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/account_collection.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/account_collection_accounts.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/claim_request.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/claim_response.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/client.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/client_access_key.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/client_collection.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/client_collection_clients.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/identity.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/identity_collection.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/identity_collection_identities.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/identity_request.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/inline_response_200.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/inline_response_200_1.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/inline_response_200_10.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/inline_response_200_11.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/inline_response_200_12.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/inline_response_200_13.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/inline_response_200_14.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/inline_response_200_15.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/inline_response_200_2.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/inline_response_200_3.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/inline_response_200_4.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/inline_response_200_5.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/inline_response_200_6.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/inline_response_200_7.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/inline_response_200_9.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/invite.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/link.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/metadata_object.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/permission_object.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/permission_response.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/resource_permission.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/resource_permission_collection.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/resource_permission_collection_links.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/resource_permission_collection_links_next.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/resource_permission_collection_resources.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/resource_users_collection.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/role.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/statement.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/token_request.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/user.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/user_resources.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/user_resources_resources.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/user_token.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/user_token_links.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/user_token_links_self.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/v1clients_options.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/v1records_account.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/v1records_links.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/v1records_links_self.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/v1records_users.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/v1resourcesresource_uri_permissions.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/v1roles_permissions.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/v1usersuser_idresourcesresource_urimetadata_account.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/v1usersuser_idtokens_resources.rb +0 -0
- /data/lib/{authress_sdk → authress-sdk}/models/v1usersuser_idtokens_statements.rb +0 -0
|
@@ -25,11 +25,11 @@ module AuthressSdk
|
|
|
25
25
|
# @param [Hash] opts the optional parameters
|
|
26
26
|
# @return [Array<(InlineResponse20010, Integer, Hash)>] InlineResponse20010 data, response status code and response headers
|
|
27
27
|
def create_role_with_http_info(body, opts = {})
|
|
28
|
-
if @authress_client.config
|
|
29
|
-
@authress_client.config
|
|
28
|
+
if @authress_client.config[:debugging]
|
|
29
|
+
@authress_client.config[:logger].debug 'Calling API: RolesApi.create_role ...'
|
|
30
30
|
end
|
|
31
31
|
# verify the required parameter 'body' is set
|
|
32
|
-
if @authress_client.config
|
|
32
|
+
if @authress_client.config[:client_side_validation] && body.nil?
|
|
33
33
|
fail ArgumentError, "Missing the required parameter 'body' when calling RolesApi.create_role"
|
|
34
34
|
end
|
|
35
35
|
# resource path
|
|
@@ -62,8 +62,8 @@ module AuthressSdk
|
|
|
62
62
|
:auth_names => auth_names,
|
|
63
63
|
:return_type => return_type)
|
|
64
64
|
|
|
65
|
-
if @authress_client.config
|
|
66
|
-
@authress_client.config
|
|
65
|
+
if @authress_client.config[:debugging]
|
|
66
|
+
@authress_client.config[:logger].debug "API called: RolesApi#create_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
67
67
|
end
|
|
68
68
|
return data, status_code, headers
|
|
69
69
|
end
|
|
@@ -83,11 +83,11 @@ module AuthressSdk
|
|
|
83
83
|
# @param [Hash] opts the optional parameters
|
|
84
84
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
85
85
|
def delete_role_with_http_info(role_id, opts = {})
|
|
86
|
-
if @authress_client.config
|
|
87
|
-
@authress_client.config
|
|
86
|
+
if @authress_client.config[:debugging]
|
|
87
|
+
@authress_client.config[:logger].debug 'Calling API: RolesApi.delete_role ...'
|
|
88
88
|
end
|
|
89
89
|
# verify the required parameter 'role_id' is set
|
|
90
|
-
if @authress_client.config
|
|
90
|
+
if @authress_client.config[:client_side_validation] && role_id.nil?
|
|
91
91
|
fail ArgumentError, "Missing the required parameter 'role_id' when calling RolesApi.delete_role"
|
|
92
92
|
end
|
|
93
93
|
# resource path
|
|
@@ -116,8 +116,8 @@ module AuthressSdk
|
|
|
116
116
|
:auth_names => auth_names,
|
|
117
117
|
:return_type => return_type)
|
|
118
118
|
|
|
119
|
-
if @authress_client.config
|
|
120
|
-
@authress_client.config
|
|
119
|
+
if @authress_client.config[:debugging]
|
|
120
|
+
@authress_client.config[:logger].debug "API called: RolesApi#delete_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
121
121
|
end
|
|
122
122
|
return data, status_code, headers
|
|
123
123
|
end
|
|
@@ -137,11 +137,11 @@ module AuthressSdk
|
|
|
137
137
|
# @param [Hash] opts the optional parameters
|
|
138
138
|
# @return [Array<(InlineResponse20010, Integer, Hash)>] InlineResponse20010 data, response status code and response headers
|
|
139
139
|
def get_role_with_http_info(role_id, opts = {})
|
|
140
|
-
if @authress_client.config
|
|
141
|
-
@authress_client.config
|
|
140
|
+
if @authress_client.config[:debugging]
|
|
141
|
+
@authress_client.config[:logger].debug 'Calling API: RolesApi.get_role ...'
|
|
142
142
|
end
|
|
143
143
|
# verify the required parameter 'role_id' is set
|
|
144
|
-
if @authress_client.config
|
|
144
|
+
if @authress_client.config[:client_side_validation] && role_id.nil?
|
|
145
145
|
fail ArgumentError, "Missing the required parameter 'role_id' when calling RolesApi.get_role"
|
|
146
146
|
end
|
|
147
147
|
# resource path
|
|
@@ -172,8 +172,8 @@ module AuthressSdk
|
|
|
172
172
|
:auth_names => auth_names,
|
|
173
173
|
:return_type => return_type)
|
|
174
174
|
|
|
175
|
-
if @authress_client.config
|
|
176
|
-
@authress_client.config
|
|
175
|
+
if @authress_client.config[:debugging]
|
|
176
|
+
@authress_client.config[:logger].debug "API called: RolesApi#get_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
177
177
|
end
|
|
178
178
|
return data, status_code, headers
|
|
179
179
|
end
|
|
@@ -195,15 +195,15 @@ module AuthressSdk
|
|
|
195
195
|
# @param [Hash] opts the optional parameters
|
|
196
196
|
# @return [Array<(InlineResponse20010, Integer, Hash)>] InlineResponse20010 data, response status code and response headers
|
|
197
197
|
def update_role_with_http_info(body, role_id, opts = {})
|
|
198
|
-
if @authress_client.config
|
|
199
|
-
@authress_client.config
|
|
198
|
+
if @authress_client.config[:debugging]
|
|
199
|
+
@authress_client.config[:logger].debug 'Calling API: RolesApi.update_role ...'
|
|
200
200
|
end
|
|
201
201
|
# verify the required parameter 'body' is set
|
|
202
|
-
if @authress_client.config
|
|
202
|
+
if @authress_client.config[:client_side_validation] && body.nil?
|
|
203
203
|
fail ArgumentError, "Missing the required parameter 'body' when calling RolesApi.update_role"
|
|
204
204
|
end
|
|
205
205
|
# verify the required parameter 'role_id' is set
|
|
206
|
-
if @authress_client.config
|
|
206
|
+
if @authress_client.config[:client_side_validation] && role_id.nil?
|
|
207
207
|
fail ArgumentError, "Missing the required parameter 'role_id' when calling RolesApi.update_role"
|
|
208
208
|
end
|
|
209
209
|
# resource path
|
|
@@ -236,8 +236,8 @@ module AuthressSdk
|
|
|
236
236
|
:auth_names => auth_names,
|
|
237
237
|
:return_type => return_type)
|
|
238
238
|
|
|
239
|
-
if @authress_client.config
|
|
240
|
-
@authress_client.config
|
|
239
|
+
if @authress_client.config[:debugging]
|
|
240
|
+
@authress_client.config[:logger].debug "API called: RolesApi#update_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
241
241
|
end
|
|
242
242
|
return data, status_code, headers
|
|
243
243
|
end
|
|
@@ -25,11 +25,11 @@ module AuthressSdk
|
|
|
25
25
|
# @param [Hash] opts the optional parameters
|
|
26
26
|
# @return [Array<(InlineResponse20014, Integer, Hash)>] InlineResponse20014 data, response status code and response headers
|
|
27
27
|
def create_client_with_http_info(body, opts = {})
|
|
28
|
-
if @authress_client.config
|
|
29
|
-
@authress_client.config
|
|
28
|
+
if @authress_client.config[:debugging]
|
|
29
|
+
@authress_client.config[:logger].debug 'Calling API: ServiceClientsApi.create_client ...'
|
|
30
30
|
end
|
|
31
31
|
# verify the required parameter 'body' is set
|
|
32
|
-
if @authress_client.config
|
|
32
|
+
if @authress_client.config[:client_side_validation] && body.nil?
|
|
33
33
|
fail ArgumentError, "Missing the required parameter 'body' when calling ServiceClientsApi.create_client"
|
|
34
34
|
end
|
|
35
35
|
# resource path
|
|
@@ -62,8 +62,8 @@ module AuthressSdk
|
|
|
62
62
|
:auth_names => auth_names,
|
|
63
63
|
:return_type => return_type)
|
|
64
64
|
|
|
65
|
-
if @authress_client.config
|
|
66
|
-
@authress_client.config
|
|
65
|
+
if @authress_client.config[:debugging]
|
|
66
|
+
@authress_client.config[:logger].debug "API called: ServiceClientsApi#create_client\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
67
67
|
end
|
|
68
68
|
return data, status_code, headers
|
|
69
69
|
end
|
|
@@ -85,15 +85,15 @@ module AuthressSdk
|
|
|
85
85
|
# @param [Hash] opts the optional parameters
|
|
86
86
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
87
87
|
def delete_access_key_with_http_info(client_id, key_id, opts = {})
|
|
88
|
-
if @authress_client.config
|
|
89
|
-
@authress_client.config
|
|
88
|
+
if @authress_client.config[:debugging]
|
|
89
|
+
@authress_client.config[:logger].debug 'Calling API: ServiceClientsApi.delete_access_key ...'
|
|
90
90
|
end
|
|
91
91
|
# verify the required parameter 'client_id' is set
|
|
92
|
-
if @authress_client.config
|
|
92
|
+
if @authress_client.config[:client_side_validation] && client_id.nil?
|
|
93
93
|
fail ArgumentError, "Missing the required parameter 'client_id' when calling ServiceClientsApi.delete_access_key"
|
|
94
94
|
end
|
|
95
95
|
# verify the required parameter 'key_id' is set
|
|
96
|
-
if @authress_client.config
|
|
96
|
+
if @authress_client.config[:client_side_validation] && key_id.nil?
|
|
97
97
|
fail ArgumentError, "Missing the required parameter 'key_id' when calling ServiceClientsApi.delete_access_key"
|
|
98
98
|
end
|
|
99
99
|
# resource path
|
|
@@ -122,8 +122,8 @@ module AuthressSdk
|
|
|
122
122
|
:auth_names => auth_names,
|
|
123
123
|
:return_type => return_type)
|
|
124
124
|
|
|
125
|
-
if @authress_client.config
|
|
126
|
-
@authress_client.config
|
|
125
|
+
if @authress_client.config[:debugging]
|
|
126
|
+
@authress_client.config[:logger].debug "API called: ServiceClientsApi#delete_access_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
127
127
|
end
|
|
128
128
|
return data, status_code, headers
|
|
129
129
|
end
|
|
@@ -143,11 +143,11 @@ module AuthressSdk
|
|
|
143
143
|
# @param [Hash] opts the optional parameters
|
|
144
144
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
145
145
|
def delete_client_with_http_info(client_id, opts = {})
|
|
146
|
-
if @authress_client.config
|
|
147
|
-
@authress_client.config
|
|
146
|
+
if @authress_client.config[:debugging]
|
|
147
|
+
@authress_client.config[:logger].debug 'Calling API: ServiceClientsApi.delete_client ...'
|
|
148
148
|
end
|
|
149
149
|
# verify the required parameter 'client_id' is set
|
|
150
|
-
if @authress_client.config
|
|
150
|
+
if @authress_client.config[:client_side_validation] && client_id.nil?
|
|
151
151
|
fail ArgumentError, "Missing the required parameter 'client_id' when calling ServiceClientsApi.delete_client"
|
|
152
152
|
end
|
|
153
153
|
# resource path
|
|
@@ -176,8 +176,8 @@ module AuthressSdk
|
|
|
176
176
|
:auth_names => auth_names,
|
|
177
177
|
:return_type => return_type)
|
|
178
178
|
|
|
179
|
-
if @authress_client.config
|
|
180
|
-
@authress_client.config
|
|
179
|
+
if @authress_client.config[:debugging]
|
|
180
|
+
@authress_client.config[:logger].debug "API called: ServiceClientsApi#delete_client\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
181
181
|
end
|
|
182
182
|
return data, status_code, headers
|
|
183
183
|
end
|
|
@@ -197,11 +197,11 @@ module AuthressSdk
|
|
|
197
197
|
# @param [Hash] opts the optional parameters
|
|
198
198
|
# @return [Array<(InlineResponse20014, Integer, Hash)>] InlineResponse20014 data, response status code and response headers
|
|
199
199
|
def get_client_with_http_info(client_id, opts = {})
|
|
200
|
-
if @authress_client.config
|
|
201
|
-
@authress_client.config
|
|
200
|
+
if @authress_client.config[:debugging]
|
|
201
|
+
@authress_client.config[:logger].debug 'Calling API: ServiceClientsApi.get_client ...'
|
|
202
202
|
end
|
|
203
203
|
# verify the required parameter 'client_id' is set
|
|
204
|
-
if @authress_client.config
|
|
204
|
+
if @authress_client.config[:client_side_validation] && client_id.nil?
|
|
205
205
|
fail ArgumentError, "Missing the required parameter 'client_id' when calling ServiceClientsApi.get_client"
|
|
206
206
|
end
|
|
207
207
|
# resource path
|
|
@@ -232,8 +232,8 @@ module AuthressSdk
|
|
|
232
232
|
:auth_names => auth_names,
|
|
233
233
|
:return_type => return_type)
|
|
234
234
|
|
|
235
|
-
if @authress_client.config
|
|
236
|
-
@authress_client.config
|
|
235
|
+
if @authress_client.config[:debugging]
|
|
236
|
+
@authress_client.config[:logger].debug "API called: ServiceClientsApi#get_client\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
237
237
|
end
|
|
238
238
|
return data, status_code, headers
|
|
239
239
|
end
|
|
@@ -251,8 +251,8 @@ module AuthressSdk
|
|
|
251
251
|
# @param [Hash] opts the optional parameters
|
|
252
252
|
# @return [Array<(InlineResponse20013, Integer, Hash)>] InlineResponse20013 data, response status code and response headers
|
|
253
253
|
def get_clients_with_http_info(opts = {})
|
|
254
|
-
if @authress_client.config
|
|
255
|
-
@authress_client.config
|
|
254
|
+
if @authress_client.config[:debugging]
|
|
255
|
+
@authress_client.config[:logger].debug 'Calling API: ServiceClientsApi.get_clients ...'
|
|
256
256
|
end
|
|
257
257
|
# resource path
|
|
258
258
|
local_var_path = '/v1/clients'
|
|
@@ -282,8 +282,8 @@ module AuthressSdk
|
|
|
282
282
|
:auth_names => auth_names,
|
|
283
283
|
:return_type => return_type)
|
|
284
284
|
|
|
285
|
-
if @authress_client.config
|
|
286
|
-
@authress_client.config
|
|
285
|
+
if @authress_client.config[:debugging]
|
|
286
|
+
@authress_client.config[:logger].debug "API called: ServiceClientsApi#get_clients\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
287
287
|
end
|
|
288
288
|
return data, status_code, headers
|
|
289
289
|
end
|
|
@@ -303,11 +303,11 @@ module AuthressSdk
|
|
|
303
303
|
# @param [Hash] opts the optional parameters
|
|
304
304
|
# @return [Array<(InlineResponse20015, Integer, Hash)>] InlineResponse20015 data, response status code and response headers
|
|
305
305
|
def request_access_key_with_http_info(client_id, opts = {})
|
|
306
|
-
if @authress_client.config
|
|
307
|
-
@authress_client.config
|
|
306
|
+
if @authress_client.config[:debugging]
|
|
307
|
+
@authress_client.config[:logger].debug 'Calling API: ServiceClientsApi.request_access_key ...'
|
|
308
308
|
end
|
|
309
309
|
# verify the required parameter 'client_id' is set
|
|
310
|
-
if @authress_client.config
|
|
310
|
+
if @authress_client.config[:client_side_validation] && client_id.nil?
|
|
311
311
|
fail ArgumentError, "Missing the required parameter 'client_id' when calling ServiceClientsApi.request_access_key"
|
|
312
312
|
end
|
|
313
313
|
# resource path
|
|
@@ -338,8 +338,8 @@ module AuthressSdk
|
|
|
338
338
|
:auth_names => auth_names,
|
|
339
339
|
:return_type => return_type)
|
|
340
340
|
|
|
341
|
-
if @authress_client.config
|
|
342
|
-
@authress_client.config
|
|
341
|
+
if @authress_client.config[:debugging]
|
|
342
|
+
@authress_client.config[:logger].debug "API called: ServiceClientsApi#request_access_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
343
343
|
end
|
|
344
344
|
return data, status_code, headers
|
|
345
345
|
end
|
|
@@ -361,15 +361,15 @@ module AuthressSdk
|
|
|
361
361
|
# @param [Hash] opts the optional parameters
|
|
362
362
|
# @return [Array<(InlineResponse20014, Integer, Hash)>] InlineResponse20014 data, response status code and response headers
|
|
363
363
|
def update_client_with_http_info(body, client_id, opts = {})
|
|
364
|
-
if @authress_client.config
|
|
365
|
-
@authress_client.config
|
|
364
|
+
if @authress_client.config[:debugging]
|
|
365
|
+
@authress_client.config[:logger].debug 'Calling API: ServiceClientsApi.update_client ...'
|
|
366
366
|
end
|
|
367
367
|
# verify the required parameter 'body' is set
|
|
368
|
-
if @authress_client.config
|
|
368
|
+
if @authress_client.config[:client_side_validation] && body.nil?
|
|
369
369
|
fail ArgumentError, "Missing the required parameter 'body' when calling ServiceClientsApi.update_client"
|
|
370
370
|
end
|
|
371
371
|
# verify the required parameter 'client_id' is set
|
|
372
|
-
if @authress_client.config
|
|
372
|
+
if @authress_client.config[:client_side_validation] && client_id.nil?
|
|
373
373
|
fail ArgumentError, "Missing the required parameter 'client_id' when calling ServiceClientsApi.update_client"
|
|
374
374
|
end
|
|
375
375
|
# resource path
|
|
@@ -402,8 +402,8 @@ module AuthressSdk
|
|
|
402
402
|
:auth_names => auth_names,
|
|
403
403
|
:return_type => return_type)
|
|
404
404
|
|
|
405
|
-
if @authress_client.config
|
|
406
|
-
@authress_client.config
|
|
405
|
+
if @authress_client.config[:debugging]
|
|
406
|
+
@authress_client.config[:logger].debug "API called: ServiceClientsApi#update_client\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
407
407
|
end
|
|
408
408
|
return data, status_code, headers
|
|
409
409
|
end
|
|
@@ -29,19 +29,19 @@ module AuthressSdk
|
|
|
29
29
|
# @param [Hash] opts the optional parameters
|
|
30
30
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
31
31
|
def authorize_user_with_http_info(user_id, resource_uri, permission, opts = {})
|
|
32
|
-
if @authress_client.config
|
|
33
|
-
@authress_client.config
|
|
32
|
+
if @authress_client.config[:debugging]
|
|
33
|
+
@authress_client.config[:logger].debug 'Calling API: UserPermissionsApi.authorize_user ...'
|
|
34
34
|
end
|
|
35
35
|
# verify the required parameter 'user_id' is set
|
|
36
|
-
if @authress_client.config
|
|
36
|
+
if @authress_client.config[:client_side_validation] && user_id.nil?
|
|
37
37
|
fail ArgumentError, "Missing the required parameter 'user_id' when calling UserPermissionsApi.authorize_user"
|
|
38
38
|
end
|
|
39
39
|
# verify the required parameter 'resource_uri' is set
|
|
40
|
-
if @authress_client.config
|
|
40
|
+
if @authress_client.config[:client_side_validation] && resource_uri.nil?
|
|
41
41
|
fail ArgumentError, "Missing the required parameter 'resource_uri' when calling UserPermissionsApi.authorize_user"
|
|
42
42
|
end
|
|
43
43
|
# verify the required parameter 'permission' is set
|
|
44
|
-
if @authress_client.config
|
|
44
|
+
if @authress_client.config[:client_side_validation] && permission.nil?
|
|
45
45
|
fail ArgumentError, "Missing the required parameter 'permission' when calling UserPermissionsApi.authorize_user"
|
|
46
46
|
end
|
|
47
47
|
# resource path
|
|
@@ -70,8 +70,8 @@ module AuthressSdk
|
|
|
70
70
|
:auth_names => auth_names,
|
|
71
71
|
:return_type => return_type)
|
|
72
72
|
|
|
73
|
-
if @authress_client.config
|
|
74
|
-
@authress_client.config
|
|
73
|
+
if @authress_client.config[:debugging]
|
|
74
|
+
@authress_client.config[:logger].debug "API called: UserPermissionsApi#authorize_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
75
75
|
end
|
|
76
76
|
return data, status_code, headers
|
|
77
77
|
end
|
|
@@ -93,15 +93,15 @@ module AuthressSdk
|
|
|
93
93
|
# @param [Hash] opts the optional parameters
|
|
94
94
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
95
95
|
def disable_user_token_with_http_info(user_id, token_id, opts = {})
|
|
96
|
-
if @authress_client.config
|
|
97
|
-
@authress_client.config
|
|
96
|
+
if @authress_client.config[:debugging]
|
|
97
|
+
@authress_client.config[:logger].debug 'Calling API: UserPermissionsApi.disable_user_token ...'
|
|
98
98
|
end
|
|
99
99
|
# verify the required parameter 'user_id' is set
|
|
100
|
-
if @authress_client.config
|
|
100
|
+
if @authress_client.config[:client_side_validation] && user_id.nil?
|
|
101
101
|
fail ArgumentError, "Missing the required parameter 'user_id' when calling UserPermissionsApi.disable_user_token"
|
|
102
102
|
end
|
|
103
103
|
# verify the required parameter 'token_id' is set
|
|
104
|
-
if @authress_client.config
|
|
104
|
+
if @authress_client.config[:client_side_validation] && token_id.nil?
|
|
105
105
|
fail ArgumentError, "Missing the required parameter 'token_id' when calling UserPermissionsApi.disable_user_token"
|
|
106
106
|
end
|
|
107
107
|
# resource path
|
|
@@ -130,8 +130,8 @@ module AuthressSdk
|
|
|
130
130
|
:auth_names => auth_names,
|
|
131
131
|
:return_type => return_type)
|
|
132
132
|
|
|
133
|
-
if @authress_client.config
|
|
134
|
-
@authress_client.config
|
|
133
|
+
if @authress_client.config[:debugging]
|
|
134
|
+
@authress_client.config[:logger].debug "API called: UserPermissionsApi#disable_user_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
135
135
|
end
|
|
136
136
|
return data, status_code, headers
|
|
137
137
|
end
|
|
@@ -153,15 +153,15 @@ module AuthressSdk
|
|
|
153
153
|
# @param [Hash] opts the optional parameters
|
|
154
154
|
# @return [Array<(InlineResponse2002, Integer, Hash)>] InlineResponse2002 data, response status code and response headers
|
|
155
155
|
def get_user_permissions_for_resource_with_http_info(user_id, resource_uri, opts = {})
|
|
156
|
-
if @authress_client.config
|
|
157
|
-
@authress_client.config
|
|
156
|
+
if @authress_client.config[:debugging]
|
|
157
|
+
@authress_client.config[:logger].debug 'Calling API: UserPermissionsApi.get_user_permissions_for_resource ...'
|
|
158
158
|
end
|
|
159
159
|
# verify the required parameter 'user_id' is set
|
|
160
|
-
if @authress_client.config
|
|
160
|
+
if @authress_client.config[:client_side_validation] && user_id.nil?
|
|
161
161
|
fail ArgumentError, "Missing the required parameter 'user_id' when calling UserPermissionsApi.get_user_permissions_for_resource"
|
|
162
162
|
end
|
|
163
163
|
# verify the required parameter 'resource_uri' is set
|
|
164
|
-
if @authress_client.config
|
|
164
|
+
if @authress_client.config[:client_side_validation] && resource_uri.nil?
|
|
165
165
|
fail ArgumentError, "Missing the required parameter 'resource_uri' when calling UserPermissionsApi.get_user_permissions_for_resource"
|
|
166
166
|
end
|
|
167
167
|
# resource path
|
|
@@ -192,8 +192,8 @@ module AuthressSdk
|
|
|
192
192
|
:auth_names => auth_names,
|
|
193
193
|
:return_type => return_type)
|
|
194
194
|
|
|
195
|
-
if @authress_client.config
|
|
196
|
-
@authress_client.config
|
|
195
|
+
if @authress_client.config[:debugging]
|
|
196
|
+
@authress_client.config[:logger].debug "API called: UserPermissionsApi#get_user_permissions_for_resource\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
197
197
|
end
|
|
198
198
|
return data, status_code, headers
|
|
199
199
|
end
|
|
@@ -221,11 +221,11 @@ module AuthressSdk
|
|
|
221
221
|
# @option opts [String] :cursor Continuation cursor for paging (will automatically be set)
|
|
222
222
|
# @return [Array<(InlineResponse200, Integer, Hash)>] InlineResponse200 data, response status code and response headers
|
|
223
223
|
def get_user_resources_with_http_info(user_id, opts = {})
|
|
224
|
-
if @authress_client.config
|
|
225
|
-
@authress_client.config
|
|
224
|
+
if @authress_client.config[:debugging]
|
|
225
|
+
@authress_client.config[:logger].debug 'Calling API: UserPermissionsApi.get_user_resources ...'
|
|
226
226
|
end
|
|
227
227
|
# verify the required parameter 'user_id' is set
|
|
228
|
-
if @authress_client.config
|
|
228
|
+
if @authress_client.config[:client_side_validation] && user_id.nil?
|
|
229
229
|
fail ArgumentError, "Missing the required parameter 'user_id' when calling UserPermissionsApi.get_user_resources"
|
|
230
230
|
end
|
|
231
231
|
# resource path
|
|
@@ -260,8 +260,8 @@ module AuthressSdk
|
|
|
260
260
|
:auth_names => auth_names,
|
|
261
261
|
:return_type => return_type)
|
|
262
262
|
|
|
263
|
-
if @authress_client.config
|
|
264
|
-
@authress_client.config
|
|
263
|
+
if @authress_client.config[:debugging]
|
|
264
|
+
@authress_client.config[:logger].debug "API called: UserPermissionsApi#get_user_resources\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
265
265
|
end
|
|
266
266
|
return data, status_code, headers
|
|
267
267
|
end
|
|
@@ -283,15 +283,15 @@ module AuthressSdk
|
|
|
283
283
|
# @param [Hash] opts the optional parameters
|
|
284
284
|
# @return [Array<(InlineResponse2003, Integer, Hash)>] InlineResponse2003 data, response status code and response headers
|
|
285
285
|
def request_user_token_with_http_info(body, user_id, opts = {})
|
|
286
|
-
if @authress_client.config
|
|
287
|
-
@authress_client.config
|
|
286
|
+
if @authress_client.config[:debugging]
|
|
287
|
+
@authress_client.config[:logger].debug 'Calling API: UserPermissionsApi.request_user_token ...'
|
|
288
288
|
end
|
|
289
289
|
# verify the required parameter 'body' is set
|
|
290
|
-
if @authress_client.config
|
|
290
|
+
if @authress_client.config[:client_side_validation] && body.nil?
|
|
291
291
|
fail ArgumentError, "Missing the required parameter 'body' when calling UserPermissionsApi.request_user_token"
|
|
292
292
|
end
|
|
293
293
|
# verify the required parameter 'user_id' is set
|
|
294
|
-
if @authress_client.config
|
|
294
|
+
if @authress_client.config[:client_side_validation] && user_id.nil?
|
|
295
295
|
fail ArgumentError, "Missing the required parameter 'user_id' when calling UserPermissionsApi.request_user_token"
|
|
296
296
|
end
|
|
297
297
|
# resource path
|
|
@@ -324,8 +324,8 @@ module AuthressSdk
|
|
|
324
324
|
:auth_names => auth_names,
|
|
325
325
|
:return_type => return_type)
|
|
326
326
|
|
|
327
|
-
if @authress_client.config
|
|
328
|
-
@authress_client.config
|
|
327
|
+
if @authress_client.config[:debugging]
|
|
328
|
+
@authress_client.config[:logger].debug "API called: UserPermissionsApi#request_user_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
329
329
|
end
|
|
330
330
|
return data, status_code, headers
|
|
331
331
|
end
|
|
@@ -103,7 +103,7 @@ module AuthressSdk
|
|
|
103
103
|
:headers => header_params,
|
|
104
104
|
:params => query_params,
|
|
105
105
|
:ssl_verifypeer => true,
|
|
106
|
-
:ssl_verifyhost =>
|
|
106
|
+
:ssl_verifyhost => _verify_ssl_host,
|
|
107
107
|
:verbose => false
|
|
108
108
|
}
|
|
109
109
|
|
|
@@ -242,6 +242,7 @@ module AuthressSdk
|
|
|
242
242
|
def build_request_url(path)
|
|
243
243
|
# Add leading and trailing slashes to path
|
|
244
244
|
path = "/#{path}".gsub(/\/+/, '/')
|
|
245
|
+
puts self.base_url
|
|
245
246
|
@base_url + path
|
|
246
247
|
end
|
|
247
248
|
|
|
@@ -290,25 +291,5 @@ module AuthressSdk
|
|
|
290
291
|
obj
|
|
291
292
|
end
|
|
292
293
|
end
|
|
293
|
-
|
|
294
|
-
# Build parameter value according to the given collection format.
|
|
295
|
-
# @param [String] collection_format one of :csv, :ssv, :tsv, :pipes and :multi
|
|
296
|
-
def build_collection_param(param, collection_format)
|
|
297
|
-
case collection_format
|
|
298
|
-
when :csv
|
|
299
|
-
param.join(',')
|
|
300
|
-
when :ssv
|
|
301
|
-
param.join(' ')
|
|
302
|
-
when :tsv
|
|
303
|
-
param.join("\t")
|
|
304
|
-
when :pipes
|
|
305
|
-
param.join('|')
|
|
306
|
-
when :multi
|
|
307
|
-
# return the array directly as typhoeus will handle it as expected
|
|
308
|
-
param
|
|
309
|
-
else
|
|
310
|
-
fail "unknown collection format: #{collection_format.inspect}"
|
|
311
|
-
end
|
|
312
|
-
end
|
|
313
294
|
end
|
|
314
295
|
end
|
|
@@ -8,11 +8,10 @@ module AuthressSdk
|
|
|
8
8
|
class << self
|
|
9
9
|
# Customize default settings for the SDK using block.
|
|
10
10
|
# AuthressSdk.configure do |config|
|
|
11
|
-
# config.
|
|
12
|
-
# config.password = "xxx"
|
|
11
|
+
# config.base_url = "xxx"
|
|
13
12
|
# end
|
|
14
13
|
def configure
|
|
15
|
-
AuthressClient.default
|
|
14
|
+
yield AuthressClient.default
|
|
16
15
|
end
|
|
17
16
|
end
|
|
18
17
|
end
|