lib/purecloudplatformclientv2/api/license_api.rb in purecloudplatformclientv2-52.0.0 vs lib/purecloudplatformclientv2/api/license_api.rb in purecloudplatformclientv2-53.0.0
- old
+ new
@@ -5,14 +5,14 @@
OpenAPI spec version: v2
Contact: DeveloperEvangelists@genesys.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
-License: ININ
-http://www.inin.com
+License: UNLICENSED
+https://help.mypurecloud.com/articles/terms-and-conditions/
-Terms of Service: https://developer.mypurecloud.com/tos
+Terms of Service: https://help.mypurecloud.com/articles/terms-and-conditions/
=end
require "uri"
@@ -323,9 +323,82 @@
:body => post_body,
:auth_names => auth_names,
:return_type => 'LicenseUser')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: LicenseApi#get_license_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
+ end
+ return data, status_code, headers
+ end
+
+ # Get a page of users and their licenses
+ # Retrieve a page of users in an organization along with the licenses they possess.
+ # @param [Hash] opts the optional parameters
+ # @option opts [Integer] :page_size Page size (default to 25)
+ # @option opts [Integer] :page_number Page number (default to 1)
+ # @return [UserLicensesEntityListing]
+ def get_license_users(opts = {})
+ data, _status_code, _headers = get_license_users_with_http_info(opts)
+ return data
+ end
+
+ # Get a page of users and their licenses
+ # Retrieve a page of users in an organization along with the licenses they possess.
+ # @param [Hash] opts the optional parameters
+ # @option opts [Integer] :page_size Page size
+ # @option opts [Integer] :page_number Page number
+ # @return [Array<(UserLicensesEntityListing, Fixnum, Hash)>] UserLicensesEntityListing data, response status code and response headers
+ def get_license_users_with_http_info(opts = {})
+ if @api_client.config.debugging
+ @api_client.config.logger.debug "Calling API: LicenseApi.get_license_users ..."
+ end
+
+
+
+
+
+
+
+
+
+
+
+
+
+ # resource path
+ local_var_path = "/api/v2/license/users".sub('{format}','json')
+
+ # query parameters
+ query_params = {}
+ query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
+ query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
+
+ # 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 => 'UserLicensesEntityListing')
+ if @api_client.config.debugging
+ @api_client.config.logger.debug "API called: LicenseApi#get_license_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end
# Update the organization's license assignments in a batch.