authress-sdk 2.0.33.0 → 2.0.35.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -5
  3. data/lib/{authress_sdk → authress-sdk}/api/access_records_api.rb +46 -46
  4. data/lib/{authress_sdk → authress-sdk}/api/accounts_api.rb +18 -18
  5. data/lib/authress-sdk/api/login_api.rb +46 -0
  6. data/lib/{authress_sdk → authress-sdk}/api/metadata_api.rb +13 -13
  7. data/lib/{authress_sdk → authress-sdk}/api/resource_permissions_api.rb +20 -20
  8. data/lib/{authress_sdk → authress-sdk}/api/roles_api.rb +21 -21
  9. data/lib/{authress_sdk → authress-sdk}/api/service_clients_api.rb +36 -36
  10. data/lib/{authress_sdk → authress-sdk}/api/user_permissions_api.rb +30 -30
  11. data/lib/{authress_sdk → authress-sdk}/authress_client.rb +2 -1
  12. data/lib/{authress_sdk.rb → authress-sdk.rb} +2 -3
  13. metadata +76 -75
  14. /data/lib/{authress_sdk → authress-sdk}/api_error.rb +0 -0
  15. /data/lib/{authress_sdk → authress-sdk}/constant_token_provider.rb +0 -0
  16. /data/lib/{authress_sdk → authress-sdk}/models/access_record.rb +0 -0
  17. /data/lib/{authress_sdk → authress-sdk}/models/access_record_collection.rb +0 -0
  18. /data/lib/{authress_sdk → authress-sdk}/models/account.rb +0 -0
  19. /data/lib/{authress_sdk → authress-sdk}/models/account_collection.rb +0 -0
  20. /data/lib/{authress_sdk → authress-sdk}/models/account_collection_accounts.rb +0 -0
  21. /data/lib/{authress_sdk → authress-sdk}/models/claim_request.rb +0 -0
  22. /data/lib/{authress_sdk → authress-sdk}/models/claim_response.rb +0 -0
  23. /data/lib/{authress_sdk → authress-sdk}/models/client.rb +0 -0
  24. /data/lib/{authress_sdk → authress-sdk}/models/client_access_key.rb +0 -0
  25. /data/lib/{authress_sdk → authress-sdk}/models/client_collection.rb +0 -0
  26. /data/lib/{authress_sdk → authress-sdk}/models/client_collection_clients.rb +0 -0
  27. /data/lib/{authress_sdk → authress-sdk}/models/identity.rb +0 -0
  28. /data/lib/{authress_sdk → authress-sdk}/models/identity_collection.rb +0 -0
  29. /data/lib/{authress_sdk → authress-sdk}/models/identity_collection_identities.rb +0 -0
  30. /data/lib/{authress_sdk → authress-sdk}/models/identity_request.rb +0 -0
  31. /data/lib/{authress_sdk → authress-sdk}/models/inline_response_200.rb +0 -0
  32. /data/lib/{authress_sdk → authress-sdk}/models/inline_response_200_1.rb +0 -0
  33. /data/lib/{authress_sdk → authress-sdk}/models/inline_response_200_10.rb +0 -0
  34. /data/lib/{authress_sdk → authress-sdk}/models/inline_response_200_11.rb +0 -0
  35. /data/lib/{authress_sdk → authress-sdk}/models/inline_response_200_12.rb +0 -0
  36. /data/lib/{authress_sdk → authress-sdk}/models/inline_response_200_13.rb +0 -0
  37. /data/lib/{authress_sdk → authress-sdk}/models/inline_response_200_14.rb +0 -0
  38. /data/lib/{authress_sdk → authress-sdk}/models/inline_response_200_15.rb +0 -0
  39. /data/lib/{authress_sdk → authress-sdk}/models/inline_response_200_2.rb +0 -0
  40. /data/lib/{authress_sdk → authress-sdk}/models/inline_response_200_3.rb +0 -0
  41. /data/lib/{authress_sdk → authress-sdk}/models/inline_response_200_4.rb +0 -0
  42. /data/lib/{authress_sdk → authress-sdk}/models/inline_response_200_5.rb +0 -0
  43. /data/lib/{authress_sdk → authress-sdk}/models/inline_response_200_6.rb +0 -0
  44. /data/lib/{authress_sdk → authress-sdk}/models/inline_response_200_7.rb +0 -0
  45. /data/lib/{authress_sdk → authress-sdk}/models/inline_response_200_9.rb +0 -0
  46. /data/lib/{authress_sdk → authress-sdk}/models/invite.rb +0 -0
  47. /data/lib/{authress_sdk → authress-sdk}/models/link.rb +0 -0
  48. /data/lib/{authress_sdk → authress-sdk}/models/metadata_object.rb +0 -0
  49. /data/lib/{authress_sdk → authress-sdk}/models/permission_object.rb +0 -0
  50. /data/lib/{authress_sdk → authress-sdk}/models/permission_response.rb +0 -0
  51. /data/lib/{authress_sdk → authress-sdk}/models/resource_permission.rb +0 -0
  52. /data/lib/{authress_sdk → authress-sdk}/models/resource_permission_collection.rb +0 -0
  53. /data/lib/{authress_sdk → authress-sdk}/models/resource_permission_collection_links.rb +0 -0
  54. /data/lib/{authress_sdk → authress-sdk}/models/resource_permission_collection_links_next.rb +0 -0
  55. /data/lib/{authress_sdk → authress-sdk}/models/resource_permission_collection_resources.rb +0 -0
  56. /data/lib/{authress_sdk → authress-sdk}/models/resource_users_collection.rb +0 -0
  57. /data/lib/{authress_sdk → authress-sdk}/models/role.rb +0 -0
  58. /data/lib/{authress_sdk → authress-sdk}/models/statement.rb +0 -0
  59. /data/lib/{authress_sdk → authress-sdk}/models/token_request.rb +0 -0
  60. /data/lib/{authress_sdk → authress-sdk}/models/user.rb +0 -0
  61. /data/lib/{authress_sdk → authress-sdk}/models/user_resources.rb +0 -0
  62. /data/lib/{authress_sdk → authress-sdk}/models/user_resources_resources.rb +0 -0
  63. /data/lib/{authress_sdk → authress-sdk}/models/user_token.rb +0 -0
  64. /data/lib/{authress_sdk → authress-sdk}/models/user_token_links.rb +0 -0
  65. /data/lib/{authress_sdk → authress-sdk}/models/user_token_links_self.rb +0 -0
  66. /data/lib/{authress_sdk → authress-sdk}/models/v1clients_options.rb +0 -0
  67. /data/lib/{authress_sdk → authress-sdk}/models/v1records_account.rb +0 -0
  68. /data/lib/{authress_sdk → authress-sdk}/models/v1records_links.rb +0 -0
  69. /data/lib/{authress_sdk → authress-sdk}/models/v1records_links_self.rb +0 -0
  70. /data/lib/{authress_sdk → authress-sdk}/models/v1records_users.rb +0 -0
  71. /data/lib/{authress_sdk → authress-sdk}/models/v1resourcesresource_uri_permissions.rb +0 -0
  72. /data/lib/{authress_sdk → authress-sdk}/models/v1roles_permissions.rb +0 -0
  73. /data/lib/{authress_sdk → authress-sdk}/models/v1usersuser_idresourcesresource_urimetadata_account.rb +0 -0
  74. /data/lib/{authress_sdk → authress-sdk}/models/v1usersuser_idtokens_resources.rb +0 -0
  75. /data/lib/{authress_sdk → authress-sdk}/models/v1usersuser_idtokens_statements.rb +0 -0
  76. /data/lib/{authress_sdk → authress-sdk}/service_client_token_provider.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.debugging
29
- @authress_client.config.logger.debug 'Calling API: RolesApi.create_role ...'
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.client_side_validation && body.nil?
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.debugging
66
- @authress_client.config.logger.debug "API called: RolesApi#create_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
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.debugging
87
- @authress_client.config.logger.debug 'Calling API: RolesApi.delete_role ...'
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.client_side_validation && role_id.nil?
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.debugging
120
- @authress_client.config.logger.debug "API called: RolesApi#delete_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
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.debugging
141
- @authress_client.config.logger.debug 'Calling API: RolesApi.get_role ...'
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.client_side_validation && role_id.nil?
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.debugging
176
- @authress_client.config.logger.debug "API called: RolesApi#get_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
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.debugging
199
- @authress_client.config.logger.debug 'Calling API: RolesApi.update_role ...'
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.client_side_validation && body.nil?
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.client_side_validation && role_id.nil?
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.debugging
240
- @authress_client.config.logger.debug "API called: RolesApi#update_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
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.debugging
29
- @authress_client.config.logger.debug 'Calling API: ServiceClientsApi.create_client ...'
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.client_side_validation && body.nil?
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.debugging
66
- @authress_client.config.logger.debug "API called: ServiceClientsApi#create_client\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
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.debugging
89
- @authress_client.config.logger.debug 'Calling API: ServiceClientsApi.delete_access_key ...'
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.client_side_validation && client_id.nil?
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.client_side_validation && key_id.nil?
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.debugging
126
- @authress_client.config.logger.debug "API called: ServiceClientsApi#delete_access_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
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.debugging
147
- @authress_client.config.logger.debug 'Calling API: ServiceClientsApi.delete_client ...'
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.client_side_validation && client_id.nil?
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.debugging
180
- @authress_client.config.logger.debug "API called: ServiceClientsApi#delete_client\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
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.debugging
201
- @authress_client.config.logger.debug 'Calling API: ServiceClientsApi.get_client ...'
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.client_side_validation && client_id.nil?
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.debugging
236
- @authress_client.config.logger.debug "API called: ServiceClientsApi#get_client\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
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.debugging
255
- @authress_client.config.logger.debug 'Calling API: ServiceClientsApi.get_clients ...'
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.debugging
286
- @authress_client.config.logger.debug "API called: ServiceClientsApi#get_clients\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
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.debugging
307
- @authress_client.config.logger.debug 'Calling API: ServiceClientsApi.request_access_key ...'
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.client_side_validation && client_id.nil?
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.debugging
342
- @authress_client.config.logger.debug "API called: ServiceClientsApi#request_access_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
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.debugging
365
- @authress_client.config.logger.debug 'Calling API: ServiceClientsApi.update_client ...'
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.client_side_validation && body.nil?
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.client_side_validation && client_id.nil?
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.debugging
406
- @authress_client.config.logger.debug "API called: ServiceClientsApi#update_client\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
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.debugging
33
- @authress_client.config.logger.debug 'Calling API: UserPermissionsApi.authorize_user ...'
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.client_side_validation && user_id.nil?
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.client_side_validation && resource_uri.nil?
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.client_side_validation && permission.nil?
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.debugging
74
- @authress_client.config.logger.debug "API called: UserPermissionsApi#authorize_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
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.debugging
97
- @authress_client.config.logger.debug 'Calling API: UserPermissionsApi.disable_user_token ...'
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.client_side_validation && user_id.nil?
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.client_side_validation && token_id.nil?
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.debugging
134
- @authress_client.config.logger.debug "API called: UserPermissionsApi#disable_user_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
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.debugging
157
- @authress_client.config.logger.debug 'Calling API: UserPermissionsApi.get_user_permissions_for_resource ...'
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.client_side_validation && user_id.nil?
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.client_side_validation && resource_uri.nil?
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.debugging
196
- @authress_client.config.logger.debug "API called: UserPermissionsApi#get_user_permissions_for_resource\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
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.debugging
225
- @authress_client.config.logger.debug 'Calling API: UserPermissionsApi.get_user_resources ...'
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.client_side_validation && user_id.nil?
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.debugging
264
- @authress_client.config.logger.debug "API called: UserPermissionsApi#get_user_resources\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
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.debugging
287
- @authress_client.config.logger.debug 'Calling API: UserPermissionsApi.request_user_token ...'
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.client_side_validation && body.nil?
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.client_side_validation && user_id.nil?
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.debugging
328
- @authress_client.config.logger.debug "API called: UserPermissionsApi#request_user_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
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 => true,
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
 
@@ -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.username = "xxx"
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