lib/purecloudplatformclientv2/api/scripts_api.rb in purecloudplatformclientv2-8.0.0 vs lib/purecloudplatformclientv2/api/scripts_api.rb in purecloudplatformclientv2-9.0.0

- old
+ new

@@ -41,12 +41,19 @@ # @return [Array<(Script, Fixnum, Hash)>] Script data, response status code and response headers def get_script_with_http_info(script_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ScriptsApi.get_script ..." end + + # verify the required parameter 'script_id' is set fail ArgumentError, "Missing the required parameter 'script_id' when calling ScriptsApi.get_script" if script_id.nil? + + + + + # resource path local_var_path = "/api/v2/scripts/{scriptId}".sub('{format}','json').sub('{' + 'scriptId' + '}', script_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, @@ -100,14 +108,27 @@ # @return [Array<(Page, Fixnum, Hash)>] Page data, response status code and response headers def get_script_page_with_http_info(script_id, page_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ScriptsApi.get_script_page ..." end + + # verify the required parameter 'script_id' is set fail ArgumentError, "Missing the required parameter 'script_id' when calling ScriptsApi.get_script_page" if script_id.nil? + + + + + + # verify the required parameter 'page_id' is set fail ArgumentError, "Missing the required parameter 'page_id' when calling ScriptsApi.get_script_page" if page_id.nil? + + + + + # resource path local_var_path = "/api/v2/scripts/{scriptId}/pages/{pageId}".sub('{format}','json').sub('{' + 'scriptId' + '}', script_id.to_s).sub('{' + 'pageId' + '}', page_id.to_s) # query parameters query_params = {} @@ -126,11 +147,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, @@ -159,12 +181,19 @@ # @return [Array<(Array<Page>, Fixnum, Hash)>] Array<Page> data, response status code and response headers def get_script_pages_with_http_info(script_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ScriptsApi.get_script_pages ..." end + + # verify the required parameter 'script_id' is set fail ArgumentError, "Missing the required parameter 'script_id' when calling ScriptsApi.get_script_pages" if script_id.nil? + + + + + # resource path local_var_path = "/api/v2/scripts/{scriptId}/pages".sub('{format}','json').sub('{' + 'scriptId' + '}', script_id.to_s) # query parameters query_params = {} @@ -183,11 +212,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, @@ -230,16 +260,67 @@ # @return [Array<(ScriptEntityListing, Fixnum, Hash)>] ScriptEntityListing data, response status code and response headers def get_scripts_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ScriptsApi.get_scripts ..." end + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + if opts[:'sort_by'] && !['modifiedDate', 'createdDate'].include?(opts[:'sort_by']) fail ArgumentError, 'invalid value for "sort_by", must be one of modifiedDate, createdDate' end + + + + + + + if opts[:'sort_order'] && !['ascending', 'descending'].include?(opts[:'sort_order']) fail ArgumentError, 'invalid value for "sort_order", must be one of ascending, descending' end + + + + # resource path local_var_path = "/api/v2/scripts".sub('{format}','json') # query parameters query_params = {} @@ -266,11 +347,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, @@ -309,10 +391,47 @@ # @return [Array<(ScriptEntityListing, Fixnum, Hash)>] ScriptEntityListing data, response status code and response headers def get_scripts_published_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ScriptsApi.get_scripts_published ..." end + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + # resource path local_var_path = "/api/v2/scripts/published".sub('{format}','json') # query parameters query_params = {} @@ -337,11 +456,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, @@ -370,12 +490,19 @@ # @return [Array<(Script, Fixnum, Hash)>] Script data, response status code and response headers def get_scripts_published_script_id_with_http_info(script_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ScriptsApi.get_scripts_published_script_id ..." end + + # verify the required parameter 'script_id' is set fail ArgumentError, "Missing the required parameter 'script_id' when calling ScriptsApi.get_scripts_published_script_id" if script_id.nil? + + + + + # resource path local_var_path = "/api/v2/scripts/published/{scriptId}".sub('{format}','json').sub('{' + 'scriptId' + '}', script_id.to_s) # query parameters query_params = {} @@ -394,11 +521,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, @@ -429,14 +557,27 @@ # @return [Array<(Page, Fixnum, Hash)>] Page data, response status code and response headers def get_scripts_published_script_id_page_with_http_info(script_id, page_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ScriptsApi.get_scripts_published_script_id_page ..." end + + # verify the required parameter 'script_id' is set fail ArgumentError, "Missing the required parameter 'script_id' when calling ScriptsApi.get_scripts_published_script_id_page" if script_id.nil? + + + + + + # verify the required parameter 'page_id' is set fail ArgumentError, "Missing the required parameter 'page_id' when calling ScriptsApi.get_scripts_published_script_id_page" if page_id.nil? + + + + + # resource path local_var_path = "/api/v2/scripts/published/{scriptId}/pages/{pageId}".sub('{format}','json').sub('{' + 'scriptId' + '}', script_id.to_s).sub('{' + 'pageId' + '}', page_id.to_s) # query parameters query_params = {} @@ -455,11 +596,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, @@ -488,12 +630,19 @@ # @return [Array<(Array<Page>, Fixnum, Hash)>] Array<Page> data, response status code and response headers def get_scripts_published_script_id_pages_with_http_info(script_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ScriptsApi.get_scripts_published_script_id_pages ..." end + + # verify the required parameter 'script_id' is set fail ArgumentError, "Missing the required parameter 'script_id' when calling ScriptsApi.get_scripts_published_script_id_pages" if script_id.nil? + + + + + # resource path local_var_path = "/api/v2/scripts/published/{scriptId}/pages".sub('{format}','json').sub('{' + 'scriptId' + '}', script_id.to_s) # query parameters query_params = {} @@ -512,11 +661,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, @@ -551,12 +701,37 @@ # @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers def get_scripts_published_script_id_variables_with_http_info(script_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ScriptsApi.get_scripts_published_script_id_variables ..." end + + # verify the required parameter 'script_id' is set fail ArgumentError, "Missing the required parameter 'script_id' when calling ScriptsApi.get_scripts_published_script_id_variables" if script_id.nil? + + + + + + + + + + + + + + + + + + + + + + + # resource path local_var_path = "/api/v2/scripts/published/{scriptId}/variables".sub('{format}','json').sub('{' + 'scriptId' + '}', script_id.to_s) # query parameters query_params = {} @@ -578,10 +753,11 @@ # 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,