lib/purecloudplatformclientv2/api/license_api.rb in purecloudplatformclientv2-8.0.0 vs lib/purecloudplatformclientv2/api/license_api.rb in purecloudplatformclientv2-9.0.0
- old
+ new
@@ -41,12 +41,19 @@
# @return [Array<(LicenseDefinition, Fixnum, Hash)>] LicenseDefinition data, response status code and response headers
def get_license_definition_with_http_info(license_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: LicenseApi.get_license_definition ..."
end
+
+
# verify the required parameter 'license_id' is set
fail ArgumentError, "Missing the required parameter 'license_id' when calling LicenseApi.get_license_definition" if license_id.nil?
+
+
+
+
+
# resource path
local_var_path = "/api/v2/license/definitions/{licenseId}".sub('{format}','json').sub('{' + 'licenseId' + '}', license_id.to_s)
# query parameters
query_params = {}
@@ -65,11 +72,12 @@
# form parameters
form_params = {}
# http body (model)
post_body = nil
- auth_names = ['PureCloud Auth']
+
+ auth_names = ['PureCloud Auth']
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,
@@ -96,10 +104,11 @@
# @return [Array<(LicenseDefinitionListing, Fixnum, Hash)>] LicenseDefinitionListing data, response status code and response headers
def get_license_definitions_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: LicenseApi.get_license_definitions ..."
end
+
# resource path
local_var_path = "/api/v2/license/definitions".sub('{format}','json')
# query parameters
query_params = {}
@@ -118,11 +127,12 @@
# form parameters
form_params = {}
# http body (model)
post_body = nil
- auth_names = ['PureCloud Auth']
+
+ auth_names = ['PureCloud Auth']
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,
@@ -149,10 +159,11 @@
# @return [Array<(LicenseOrganization, Fixnum, Hash)>] LicenseOrganization data, response status code and response headers
def get_license_organization_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: LicenseApi.get_license_organization ..."
end
+
# resource path
local_var_path = "/api/v2/license/organization".sub('{format}','json')
# query parameters
query_params = {}
@@ -171,11 +182,12 @@
# form parameters
form_params = {}
# http body (model)
post_body = nil
- auth_names = ['PureCloud Auth']
+
+ auth_names = ['PureCloud Auth']
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,
@@ -204,12 +216,19 @@
# @return [Array<(LicenseUser, Fixnum, Hash)>] LicenseUser data, response status code and response headers
def get_license_user_with_http_info(user_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: LicenseApi.get_license_user ..."
end
+
+
# verify the required parameter 'user_id' is set
fail ArgumentError, "Missing the required parameter 'user_id' when calling LicenseApi.get_license_user" if user_id.nil?
+
+
+
+
+
# resource path
local_var_path = "/api/v2/license/users/{userId}".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s)
# query parameters
query_params = {}
@@ -228,11 +247,12 @@
# form parameters
form_params = {}
# http body (model)
post_body = nil
- auth_names = ['PureCloud Auth']
+
+ auth_names = ['PureCloud Auth']
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,
@@ -261,10 +281,17 @@
# @return [Array<(LicenseUpdateResponse, Fixnum, Hash)>] LicenseUpdateResponse data, response status code and response headers
def post_license_organization_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: LicenseApi.post_license_organization ..."
end
+
+
+
+
+
+
+
# resource path
local_var_path = "/api/v2/license/organization".sub('{format}','json')
# query parameters
query_params = {}
@@ -283,10 +310,11 @@
# form parameters
form_params = {}
# http body (model)
post_body = @api_client.object_to_http_body(opts[:'body'])
+
auth_names = ['PureCloud Auth']
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
@@ -316,10 +344,17 @@
# @return [Array<(Hash<String, Object>, Fixnum, Hash)>] Hash<String, Object> data, response status code and response headers
def post_license_users_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: LicenseApi.post_license_users ..."
end
+
+
+
+
+
+
+
# resource path
local_var_path = "/api/v2/license/users".sub('{format}','json')
# query parameters
query_params = {}
@@ -338,9 +373,10 @@
# form parameters
form_params = {}
# http body (model)
post_body = @api_client.object_to_http_body(opts[:'body'])
+
auth_names = ['PureCloud Auth']
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,