lib/purecloudplatformclientv2/api/users_api.rb in purecloudplatformclientv2-84.0.0 vs lib/purecloudplatformclientv2/api/users_api.rb in purecloudplatformclientv2-85.0.0
- old
+ new
@@ -976,94 +976,9 @@
@api_client.config.logger.debug "API called: UsersApi#get_authorization_divisionspermitted_paged_subject_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end
- # Returns which divisions the specified user has the given permission in.
- # This route is deprecated, use authorization/divisionspermitted/paged/{subjectId} instead.
- # @param subject_id Subject ID (user or group)
- # @param permission The permission string, including the object to access, e.g. routing:queue:view
- # @param [Hash] opts the optional parameters
- # @option opts [String] :name Search term to filter by division name
- # @return [Array<AuthzDivision>]
- def get_authorization_divisionspermitted_subject_id(subject_id, permission, opts = {})
- data, _status_code, _headers = get_authorization_divisionspermitted_subject_id_with_http_info(subject_id, permission, opts)
- return data
- end
-
- # Returns which divisions the specified user has the given permission in.
- # This route is deprecated, use authorization/divisionspermitted/paged/{subjectId} instead.
- # @param subject_id Subject ID (user or group)
- # @param permission The permission string, including the object to access, e.g. routing:queue:view
- # @param [Hash] opts the optional parameters
- # @option opts [String] :name Search term to filter by division name
- # @return [Array<(Array<AuthzDivision>, Fixnum, Hash)>] Array<AuthzDivision> data, response status code and response headers
- def get_authorization_divisionspermitted_subject_id_with_http_info(subject_id, permission, opts = {})
- if @api_client.config.debugging
- @api_client.config.logger.debug "Calling API: UsersApi.get_authorization_divisionspermitted_subject_id ..."
- end
-
-
- # verify the required parameter 'subject_id' is set
- fail ArgumentError, "Missing the required parameter 'subject_id' when calling UsersApi.get_authorization_divisionspermitted_subject_id" if subject_id.nil?
-
-
-
-
-
-
- # verify the required parameter 'permission' is set
- fail ArgumentError, "Missing the required parameter 'permission' when calling UsersApi.get_authorization_divisionspermitted_subject_id" if permission.nil?
-
-
-
-
-
-
-
-
-
-
-
- # resource path
- local_var_path = "/api/v2/authorization/divisionspermitted/{subjectId}".sub('{format}','json').sub('{' + 'subjectId' + '}', subject_id.to_s)
-
- # query parameters
- query_params = {}
- query_params[:'permission'] = permission
- query_params[:'name'] = opts[:'name'] if opts[:'name']
-
- # header parameters
- header_params = {}
-
- # HTTP header 'Accept' (if needed)
- local_header_accept = ['application/json']
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
-
- # HTTP header 'Content-Type'
- local_header_content_type = ['application/json']
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
-
- # form parameters
- form_params = {}
-
- # http body (model)
- post_body = nil
-
- auth_names = ['PureCloud OAuth']
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
- :header_params => header_params,
- :query_params => query_params,
- :form_params => form_params,
- :body => post_body,
- :auth_names => auth_names,
- :return_type => 'Array<AuthzDivision>')
- if @api_client.config.debugging
- @api_client.config.logger.debug "API called: UsersApi#get_authorization_divisionspermitted_subject_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
- end
- return data, status_code, headers
- end
-
# Returns a listing of roles and permissions for a user.
#
# @param subject_id Subject ID (user or group)
# @param [Hash] opts the optional parameters
# @return [AuthzSubject]