require "uri" module PureCloud class ArchitectApi attr_accessor :api_client def initialize(api_client = ApiClient.default) @api_client = api_client end # Gets architect-data-service audit entries. # # @param [Hash] opts the optional parameters # @option opts [CommonAuditRequest] :body AuditSearchRequest # @return [AuditSearchResult] def post_audits(opts = {}) data, status_code, headers = post_audits_with_http_info(opts) return data end # Gets architect-data-service audit entries. # # @param [Hash] opts the optional parameters # @option opts [CommonAuditRequest] :body AuditSearchRequest # @return [Array<(AuditSearchResult, Fixnum, Hash)>] AuditSearchResult data, response status code and response headers def post_audits_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi#post_audits ..." end # resource path path = "/api/v1/architect/audits".sub('{format}','json') # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # 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, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'AuditSearchResult') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#post_audits\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Get IVR configs. # # @param [Hash] opts the optional parameters # @option opts [Integer] :page_number Page number # @option opts [Integer] :page_size Page size # @option opts [String] :sort_by Sort by # @option opts [String] :sort_order Sort order # @return [IVREntityListing] def get_ivrs(opts = {}) data, status_code, headers = get_ivrs_with_http_info(opts) return data end # Get IVR configs. # # @param [Hash] opts the optional parameters # @option opts [Integer] :page_number Page number # @option opts [Integer] :page_size Page size # @option opts [String] :sort_by Sort by # @option opts [String] :sort_order Sort order # @return [Array<(IVREntityListing, Fixnum, Hash)>] IVREntityListing data, response status code and response headers def get_ivrs_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi#get_ivrs ..." end # resource path path = "/api/v1/architect/ivrs".sub('{format}','json') # query parameters query_params = {} query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number'] query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size'] query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by'] query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:GET, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'IVREntityListing') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_ivrs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Create IVR config. # # @param [Hash] opts the optional parameters # @option opts [IVR] :body # @return [IVR] def post_ivrs(opts = {}) data, status_code, headers = post_ivrs_with_http_info(opts) return data end # Create IVR config. # # @param [Hash] opts the optional parameters # @option opts [IVR] :body # @return [Array<(IVR, Fixnum, Hash)>] IVR data, response status code and response headers def post_ivrs_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi#post_ivrs ..." end # resource path path = "/api/v1/architect/ivrs".sub('{format}','json') # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # 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, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'IVR') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#post_ivrs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Publish an IVR config. # # @param id # @param [Hash] opts the optional parameters # @return [IVR] def post_ivrs_actions_publish(id, opts = {}) data, status_code, headers = post_ivrs_actions_publish_with_http_info(id, opts) return data end # Publish an IVR config. # # @param id # @param [Hash] opts the optional parameters # @return [Array<(IVR, Fixnum, Hash)>] IVR data, response status code and response headers def post_ivrs_actions_publish_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi#post_ivrs_actions_publish ..." end # verify the required parameter 'id' is set fail "Missing the required parameter 'id' when calling post_ivrs_actions_publish" if id.nil? # resource path path = "/api/v1/architect/ivrs/actions/publish".sub('{format}','json') # query parameters query_params = {} query_params[:'id'] = id # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:POST, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'IVR') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#post_ivrs_actions_publish\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Get an IVR config. # # @param ivr_id IVR id # @param [Hash] opts the optional parameters # @return [IVR] def get_ivrs_ivr_id(ivr_id, opts = {}) data, status_code, headers = get_ivrs_ivr_id_with_http_info(ivr_id, opts) return data end # Get an IVR config. # # @param ivr_id IVR id # @param [Hash] opts the optional parameters # @return [Array<(IVR, Fixnum, Hash)>] IVR data, response status code and response headers def get_ivrs_ivr_id_with_http_info(ivr_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi#get_ivrs_ivr_id ..." end # verify the required parameter 'ivr_id' is set fail "Missing the required parameter 'ivr_id' when calling get_ivrs_ivr_id" if ivr_id.nil? # resource path path = "/api/v1/architect/ivrs/{ivrId}".sub('{format}','json').sub('{' + 'ivrId' + '}', ivr_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:GET, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'IVR') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_ivrs_ivr_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Update an IVR Config. # # @param ivr_id IVR id # @param [Hash] opts the optional parameters # @option opts [IVR] :body # @return [IVR] def put_ivrs_ivr_id(ivr_id, opts = {}) data, status_code, headers = put_ivrs_ivr_id_with_http_info(ivr_id, opts) return data end # Update an IVR Config. # # @param ivr_id IVR id # @param [Hash] opts the optional parameters # @option opts [IVR] :body # @return [Array<(IVR, Fixnum, Hash)>] IVR data, response status code and response headers def put_ivrs_ivr_id_with_http_info(ivr_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi#put_ivrs_ivr_id ..." end # verify the required parameter 'ivr_id' is set fail "Missing the required parameter 'ivr_id' when calling put_ivrs_ivr_id" if ivr_id.nil? # resource path path = "/api/v1/architect/ivrs/{ivrId}".sub('{format}','json').sub('{' + 'ivrId' + '}', ivr_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # 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(:PUT, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'IVR') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#put_ivrs_ivr_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Delete an IVR Config. # # @param ivr_id IVR id # @param [Hash] opts the optional parameters # @return [String] def delete_ivrs_ivr_id(ivr_id, opts = {}) data, status_code, headers = delete_ivrs_ivr_id_with_http_info(ivr_id, opts) return data end # Delete an IVR Config. # # @param ivr_id IVR id # @param [Hash] opts the optional parameters # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers def delete_ivrs_ivr_id_with_http_info(ivr_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi#delete_ivrs_ivr_id ..." end # verify the required parameter 'ivr_id' is set fail "Missing the required parameter 'ivr_id' when calling delete_ivrs_ivr_id" if ivr_id.nil? # resource path path = "/api/v1/architect/ivrs/{ivrId}".sub('{format}','json').sub('{' + 'ivrId' + '}', ivr_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:DELETE, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'String') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#delete_ivrs_ivr_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Get a pageable list of user prompts # The returned list is pageable, and query parameters can be used for filtering. Multiple names can be specified, in which case all matching prompts will be returned, and no other filters will be evaluated. # @param [Hash] opts the optional parameters # @option opts [Integer] :page_number Page number # @option opts [Integer] :page_size Page size # @option opts [String] :name Name # @option opts [String] :description Description # @option opts [String] :name_or_description Name or description # @return [PromptEntityListing] def get_prompts(opts = {}) data, status_code, headers = get_prompts_with_http_info(opts) return data end # Get a pageable list of user prompts # The returned list is pageable, and query parameters can be used for filtering. Multiple names can be specified, in which case all matching prompts will be returned, and no other filters will be evaluated. # @param [Hash] opts the optional parameters # @option opts [Integer] :page_number Page number # @option opts [Integer] :page_size Page size # @option opts [String] :name Name # @option opts [String] :description Description # @option opts [String] :name_or_description Name or description # @return [Array<(PromptEntityListing, Fixnum, Hash)>] PromptEntityListing data, response status code and response headers def get_prompts_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi#get_prompts ..." end # resource path path = "/api/v1/architect/prompts".sub('{format}','json') # query parameters query_params = {} query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number'] query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size'] query_params[:'name'] = opts[:'name'] if opts[:'name'] query_params[:'description'] = opts[:'description'] if opts[:'description'] query_params[:'nameOrDescription'] = opts[:'name_or_description'] if opts[:'name_or_description'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:GET, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'PromptEntityListing') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_prompts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Create a new user prompt # # @param [Hash] opts the optional parameters # @option opts [Prompt] :body # @return [Prompt] def post_prompts(opts = {}) data, status_code, headers = post_prompts_with_http_info(opts) return data end # Create a new user prompt # # @param [Hash] opts the optional parameters # @option opts [Prompt] :body # @return [Array<(Prompt, Fixnum, Hash)>] Prompt data, response status code and response headers def post_prompts_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi#post_prompts ..." end # resource path path = "/api/v1/architect/prompts".sub('{format}','json') # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # 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, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Prompt') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#post_prompts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Batch-delete a list of prompts # Multiple IDs can be specified, in which case all specified prompts will be deleted. # @param id List of Prompt IDs # @param [Hash] opts the optional parameters # @option opts [BOOLEAN] :ignore_dependencies Ignore Dependencies # @return [nil] def delete_prompts(id, opts = {}) delete_prompts_with_http_info(id, opts) return nil end # Batch-delete a list of prompts # Multiple IDs can be specified, in which case all specified prompts will be deleted. # @param id List of Prompt IDs # @param [Hash] opts the optional parameters # @option opts [BOOLEAN] :ignore_dependencies Ignore Dependencies # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def delete_prompts_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi#delete_prompts ..." end # verify the required parameter 'id' is set fail "Missing the required parameter 'id' when calling delete_prompts" if id.nil? # resource path path = "/api/v1/architect/prompts".sub('{format}','json') # query parameters query_params = {} query_params[:'id'] = @api_client.build_collection_param(id, :multi) query_params[:'ignoreDependencies'] = opts[:'ignore_dependencies'] if opts[:'ignore_dependencies'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:DELETE, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#delete_prompts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Get specified user prompt # # @param prompt_id Prompt ID # @param [Hash] opts the optional parameters # @return [Prompt] def get_prompts_prompt_id(prompt_id, opts = {}) data, status_code, headers = get_prompts_prompt_id_with_http_info(prompt_id, opts) return data end # Get specified user prompt # # @param prompt_id Prompt ID # @param [Hash] opts the optional parameters # @return [Array<(Prompt, Fixnum, Hash)>] Prompt data, response status code and response headers def get_prompts_prompt_id_with_http_info(prompt_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi#get_prompts_prompt_id ..." end # verify the required parameter 'prompt_id' is set fail "Missing the required parameter 'prompt_id' when calling get_prompts_prompt_id" if prompt_id.nil? # resource path path = "/api/v1/architect/prompts/{promptId}".sub('{format}','json').sub('{' + 'promptId' + '}', prompt_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:GET, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Prompt') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_prompts_prompt_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Update specified user prompt # # @param prompt_id Prompt ID # @param [Hash] opts the optional parameters # @option opts [Prompt] :body # @return [Prompt] def put_prompts_prompt_id(prompt_id, opts = {}) data, status_code, headers = put_prompts_prompt_id_with_http_info(prompt_id, opts) return data end # Update specified user prompt # # @param prompt_id Prompt ID # @param [Hash] opts the optional parameters # @option opts [Prompt] :body # @return [Array<(Prompt, Fixnum, Hash)>] Prompt data, response status code and response headers def put_prompts_prompt_id_with_http_info(prompt_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi#put_prompts_prompt_id ..." end # verify the required parameter 'prompt_id' is set fail "Missing the required parameter 'prompt_id' when calling put_prompts_prompt_id" if prompt_id.nil? # resource path path = "/api/v1/architect/prompts/{promptId}".sub('{format}','json').sub('{' + 'promptId' + '}', prompt_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # 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(:PUT, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Prompt') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#put_prompts_prompt_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Delete specified user prompt # # @param prompt_id Prompt ID # @param [Hash] opts the optional parameters # @return [nil] def delete_prompts_prompt_id(prompt_id, opts = {}) delete_prompts_prompt_id_with_http_info(prompt_id, opts) return nil end # Delete specified user prompt # # @param prompt_id Prompt ID # @param [Hash] opts the optional parameters # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def delete_prompts_prompt_id_with_http_info(prompt_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi#delete_prompts_prompt_id ..." end # verify the required parameter 'prompt_id' is set fail "Missing the required parameter 'prompt_id' when calling delete_prompts_prompt_id" if prompt_id.nil? # resource path path = "/api/v1/architect/prompts/{promptId}".sub('{format}','json').sub('{' + 'promptId' + '}', prompt_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:DELETE, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#delete_prompts_prompt_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Get a pageable list of user prompt resources # The returned list is pageable, and query paramaters can be used for filtering. # @param prompt_id Prompt ID # @param [Hash] opts the optional parameters # @option opts [Integer] :page_number Page number # @option opts [Integer] :page_size Page size # @return [PromptAssetEntityListing] def get_prompts_prompt_id_resources(prompt_id, opts = {}) data, status_code, headers = get_prompts_prompt_id_resources_with_http_info(prompt_id, opts) return data end # Get a pageable list of user prompt resources # The returned list is pageable, and query paramaters can be used for filtering. # @param prompt_id Prompt ID # @param [Hash] opts the optional parameters # @option opts [Integer] :page_number Page number # @option opts [Integer] :page_size Page size # @return [Array<(PromptAssetEntityListing, Fixnum, Hash)>] PromptAssetEntityListing data, response status code and response headers def get_prompts_prompt_id_resources_with_http_info(prompt_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi#get_prompts_prompt_id_resources ..." end # verify the required parameter 'prompt_id' is set fail "Missing the required parameter 'prompt_id' when calling get_prompts_prompt_id_resources" if prompt_id.nil? # resource path path = "/api/v1/architect/prompts/{promptId}/resources".sub('{format}','json').sub('{' + 'promptId' + '}', prompt_id.to_s) # query parameters query_params = {} query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number'] query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:GET, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'PromptAssetEntityListing') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_prompts_prompt_id_resources\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Create a new user prompt resource. # # @param prompt_id Prompt ID # @param [Hash] opts the optional parameters # @option opts [PromptAsset] :body # @return [PromptAsset] def post_prompts_prompt_id_resources(prompt_id, opts = {}) data, status_code, headers = post_prompts_prompt_id_resources_with_http_info(prompt_id, opts) return data end # Create a new user prompt resource. # # @param prompt_id Prompt ID # @param [Hash] opts the optional parameters # @option opts [PromptAsset] :body # @return [Array<(PromptAsset, Fixnum, Hash)>] PromptAsset data, response status code and response headers def post_prompts_prompt_id_resources_with_http_info(prompt_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi#post_prompts_prompt_id_resources ..." end # verify the required parameter 'prompt_id' is set fail "Missing the required parameter 'prompt_id' when calling post_prompts_prompt_id_resources" if prompt_id.nil? # resource path path = "/api/v1/architect/prompts/{promptId}/resources".sub('{format}','json').sub('{' + 'promptId' + '}', prompt_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # 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, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'PromptAsset') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#post_prompts_prompt_id_resources\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Get specified user prompt resource # # @param prompt_id Prompt ID # @param language Language # @param [Hash] opts the optional parameters # @return [PromptAsset] def get_prompts_prompt_id_resources_language(prompt_id, language, opts = {}) data, status_code, headers = get_prompts_prompt_id_resources_language_with_http_info(prompt_id, language, opts) return data end # Get specified user prompt resource # # @param prompt_id Prompt ID # @param language Language # @param [Hash] opts the optional parameters # @return [Array<(PromptAsset, Fixnum, Hash)>] PromptAsset data, response status code and response headers def get_prompts_prompt_id_resources_language_with_http_info(prompt_id, language, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi#get_prompts_prompt_id_resources_language ..." end # verify the required parameter 'prompt_id' is set fail "Missing the required parameter 'prompt_id' when calling get_prompts_prompt_id_resources_language" if prompt_id.nil? # verify the required parameter 'language' is set fail "Missing the required parameter 'language' when calling get_prompts_prompt_id_resources_language" if language.nil? # resource path path = "/api/v1/architect/prompts/{promptId}/resources/{language}".sub('{format}','json').sub('{' + 'promptId' + '}', prompt_id.to_s).sub('{' + 'language' + '}', language.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:GET, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'PromptAsset') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_prompts_prompt_id_resources_language\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Update specified user prompt resource # # @param prompt_id Prompt ID # @param language Language # @param [Hash] opts the optional parameters # @option opts [PromptAsset] :body # @return [PromptAsset] def put_prompts_prompt_id_resources_language(prompt_id, language, opts = {}) data, status_code, headers = put_prompts_prompt_id_resources_language_with_http_info(prompt_id, language, opts) return data end # Update specified user prompt resource # # @param prompt_id Prompt ID # @param language Language # @param [Hash] opts the optional parameters # @option opts [PromptAsset] :body # @return [Array<(PromptAsset, Fixnum, Hash)>] PromptAsset data, response status code and response headers def put_prompts_prompt_id_resources_language_with_http_info(prompt_id, language, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi#put_prompts_prompt_id_resources_language ..." end # verify the required parameter 'prompt_id' is set fail "Missing the required parameter 'prompt_id' when calling put_prompts_prompt_id_resources_language" if prompt_id.nil? # verify the required parameter 'language' is set fail "Missing the required parameter 'language' when calling put_prompts_prompt_id_resources_language" if language.nil? # resource path path = "/api/v1/architect/prompts/{promptId}/resources/{language}".sub('{format}','json').sub('{' + 'promptId' + '}', prompt_id.to_s).sub('{' + 'language' + '}', language.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # 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(:PUT, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'PromptAsset') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#put_prompts_prompt_id_resources_language\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Delete specified user prompt resource # # @param prompt_id Prompt ID # @param language Language # @param [Hash] opts the optional parameters # @return [nil] def delete_prompts_prompt_id_resources_language(prompt_id, language, opts = {}) delete_prompts_prompt_id_resources_language_with_http_info(prompt_id, language, opts) return nil end # Delete specified user prompt resource # # @param prompt_id Prompt ID # @param language Language # @param [Hash] opts the optional parameters # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def delete_prompts_prompt_id_resources_language_with_http_info(prompt_id, language, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi#delete_prompts_prompt_id_resources_language ..." end # verify the required parameter 'prompt_id' is set fail "Missing the required parameter 'prompt_id' when calling delete_prompts_prompt_id_resources_language" if prompt_id.nil? # verify the required parameter 'language' is set fail "Missing the required parameter 'language' when calling delete_prompts_prompt_id_resources_language" if language.nil? # resource path path = "/api/v1/architect/prompts/{promptId}/resources/{language}".sub('{format}','json').sub('{' + 'promptId' + '}', prompt_id.to_s).sub('{' + 'language' + '}', language.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:DELETE, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#delete_prompts_prompt_id_resources_language\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Get a list of schedule groups. # # @param [Hash] opts the optional parameters # @option opts [Integer] :page_number Page number # @option opts [Integer] :page_size Page size # @option opts [String] :sort_by Sort by # @option opts [String] :sort_order Sort order # @return [ScheduleGroupEntityListing] def get_schedulegroups(opts = {}) data, status_code, headers = get_schedulegroups_with_http_info(opts) return data end # Get a list of schedule groups. # # @param [Hash] opts the optional parameters # @option opts [Integer] :page_number Page number # @option opts [Integer] :page_size Page size # @option opts [String] :sort_by Sort by # @option opts [String] :sort_order Sort order # @return [Array<(ScheduleGroupEntityListing, Fixnum, Hash)>] ScheduleGroupEntityListing data, response status code and response headers def get_schedulegroups_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi#get_schedulegroups ..." end # resource path path = "/api/v1/architect/schedulegroups".sub('{format}','json') # query parameters query_params = {} query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number'] query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size'] query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by'] query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:GET, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ScheduleGroupEntityListing') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_schedulegroups\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Creates a new schedule group # # @param [Hash] opts the optional parameters # @option opts [ScheduleGroup] :body # @return [ScheduleGroup] def post_schedulegroups(opts = {}) data, status_code, headers = post_schedulegroups_with_http_info(opts) return data end # Creates a new schedule group # # @param [Hash] opts the optional parameters # @option opts [ScheduleGroup] :body # @return [Array<(ScheduleGroup, Fixnum, Hash)>] ScheduleGroup data, response status code and response headers def post_schedulegroups_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi#post_schedulegroups ..." end # resource path path = "/api/v1/architect/schedulegroups".sub('{format}','json') # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # 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, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ScheduleGroup') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#post_schedulegroups\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Gets a schedule group by ID # # @param schedule_group_id Schedule group ID # @param [Hash] opts the optional parameters # @return [ScheduleGroup] def get_schedulegroups_schedulegroup_id(schedule_group_id, opts = {}) data, status_code, headers = get_schedulegroups_schedulegroup_id_with_http_info(schedule_group_id, opts) return data end # Gets a schedule group by ID # # @param schedule_group_id Schedule group ID # @param [Hash] opts the optional parameters # @return [Array<(ScheduleGroup, Fixnum, Hash)>] ScheduleGroup data, response status code and response headers def get_schedulegroups_schedulegroup_id_with_http_info(schedule_group_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi#get_schedulegroups_schedulegroup_id ..." end # verify the required parameter 'schedule_group_id' is set fail "Missing the required parameter 'schedule_group_id' when calling get_schedulegroups_schedulegroup_id" if schedule_group_id.nil? # resource path path = "/api/v1/architect/schedulegroups/{scheduleGroupId}".sub('{format}','json').sub('{' + 'scheduleGroupId' + '}', schedule_group_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:GET, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ScheduleGroup') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_schedulegroups_schedulegroup_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Updates a schedule group by ID # # @param schedule_group_id Schedule group ID # @param [Hash] opts the optional parameters # @option opts [ScheduleGroup] :body # @return [ScheduleGroup] def put_schedulegroups_schedulegroup_id(schedule_group_id, opts = {}) data, status_code, headers = put_schedulegroups_schedulegroup_id_with_http_info(schedule_group_id, opts) return data end # Updates a schedule group by ID # # @param schedule_group_id Schedule group ID # @param [Hash] opts the optional parameters # @option opts [ScheduleGroup] :body # @return [Array<(ScheduleGroup, Fixnum, Hash)>] ScheduleGroup data, response status code and response headers def put_schedulegroups_schedulegroup_id_with_http_info(schedule_group_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi#put_schedulegroups_schedulegroup_id ..." end # verify the required parameter 'schedule_group_id' is set fail "Missing the required parameter 'schedule_group_id' when calling put_schedulegroups_schedulegroup_id" if schedule_group_id.nil? # resource path path = "/api/v1/architect/schedulegroups/{scheduleGroupId}".sub('{format}','json').sub('{' + 'scheduleGroupId' + '}', schedule_group_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # 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(:PUT, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ScheduleGroup') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#put_schedulegroups_schedulegroup_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Deletes a schedule group by ID # # @param schedule_group_id Schedule group ID # @param [Hash] opts the optional parameters # @return [String] def delete_schedulegroups_schedulegroup_id(schedule_group_id, opts = {}) data, status_code, headers = delete_schedulegroups_schedulegroup_id_with_http_info(schedule_group_id, opts) return data end # Deletes a schedule group by ID # # @param schedule_group_id Schedule group ID # @param [Hash] opts the optional parameters # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers def delete_schedulegroups_schedulegroup_id_with_http_info(schedule_group_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi#delete_schedulegroups_schedulegroup_id ..." end # verify the required parameter 'schedule_group_id' is set fail "Missing the required parameter 'schedule_group_id' when calling delete_schedulegroups_schedulegroup_id" if schedule_group_id.nil? # resource path path = "/api/v1/architect/schedulegroups/{scheduleGroupId}".sub('{format}','json').sub('{' + 'scheduleGroupId' + '}', schedule_group_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:DELETE, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'String') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#delete_schedulegroups_schedulegroup_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Get a list of schedules. # # @param [Hash] opts the optional parameters # @option opts [Integer] :page_number Page number # @option opts [Integer] :page_size Page size # @option opts [String] :sort_by Sort by # @option opts [String] :sort_order Sort order # @return [ScheduleEntityListing] def get_schedules(opts = {}) data, status_code, headers = get_schedules_with_http_info(opts) return data end # Get a list of schedules. # # @param [Hash] opts the optional parameters # @option opts [Integer] :page_number Page number # @option opts [Integer] :page_size Page size # @option opts [String] :sort_by Sort by # @option opts [String] :sort_order Sort order # @return [Array<(ScheduleEntityListing, Fixnum, Hash)>] ScheduleEntityListing data, response status code and response headers def get_schedules_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi#get_schedules ..." end # resource path path = "/api/v1/architect/schedules".sub('{format}','json') # query parameters query_params = {} query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number'] query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size'] query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by'] query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:GET, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ScheduleEntityListing') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_schedules\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Create a new schedule. # # @param [Hash] opts the optional parameters # @option opts [Schedule] :body # @return [Schedule] def post_schedules(opts = {}) data, status_code, headers = post_schedules_with_http_info(opts) return data end # Create a new schedule. # # @param [Hash] opts the optional parameters # @option opts [Schedule] :body # @return [Array<(Schedule, Fixnum, Hash)>] Schedule data, response status code and response headers def post_schedules_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi#post_schedules ..." end # resource path path = "/api/v1/architect/schedules".sub('{format}','json') # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # 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, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Schedule') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#post_schedules\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Get a schedule by ID # # @param schedule_id Schedule ID # @param [Hash] opts the optional parameters # @return [Schedule] def get_schedules_schedule_id(schedule_id, opts = {}) data, status_code, headers = get_schedules_schedule_id_with_http_info(schedule_id, opts) return data end # Get a schedule by ID # # @param schedule_id Schedule ID # @param [Hash] opts the optional parameters # @return [Array<(Schedule, Fixnum, Hash)>] Schedule data, response status code and response headers def get_schedules_schedule_id_with_http_info(schedule_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi#get_schedules_schedule_id ..." end # verify the required parameter 'schedule_id' is set fail "Missing the required parameter 'schedule_id' when calling get_schedules_schedule_id" if schedule_id.nil? # resource path path = "/api/v1/architect/schedules/{scheduleId}".sub('{format}','json').sub('{' + 'scheduleId' + '}', schedule_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:GET, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Schedule') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_schedules_schedule_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Update schedule by ID # # @param schedule_id Schedule ID # @param [Hash] opts the optional parameters # @option opts [Schedule] :body # @return [Schedule] def put_schedules_schedule_id(schedule_id, opts = {}) data, status_code, headers = put_schedules_schedule_id_with_http_info(schedule_id, opts) return data end # Update schedule by ID # # @param schedule_id Schedule ID # @param [Hash] opts the optional parameters # @option opts [Schedule] :body # @return [Array<(Schedule, Fixnum, Hash)>] Schedule data, response status code and response headers def put_schedules_schedule_id_with_http_info(schedule_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi#put_schedules_schedule_id ..." end # verify the required parameter 'schedule_id' is set fail "Missing the required parameter 'schedule_id' when calling put_schedules_schedule_id" if schedule_id.nil? # resource path path = "/api/v1/architect/schedules/{scheduleId}".sub('{format}','json').sub('{' + 'scheduleId' + '}', schedule_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # 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(:PUT, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Schedule') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#put_schedules_schedule_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Delete a schedule by id # # @param schedule_id Schedule ID # @param [Hash] opts the optional parameters # @return [String] def delete_schedules_schedule_id(schedule_id, opts = {}) data, status_code, headers = delete_schedules_schedule_id_with_http_info(schedule_id, opts) return data end # Delete a schedule by id # # @param schedule_id Schedule ID # @param [Hash] opts the optional parameters # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers def delete_schedules_schedule_id_with_http_info(schedule_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi#delete_schedules_schedule_id ..." end # verify the required parameter 'schedule_id' is set fail "Missing the required parameter 'schedule_id' when calling delete_schedules_schedule_id" if schedule_id.nil? # resource path path = "/api/v1/architect/schedules/{scheduleId}".sub('{format}','json').sub('{' + 'scheduleId' + '}', schedule_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:DELETE, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'String') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#delete_schedules_schedule_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Get System Prompts. # # @param [Hash] opts the optional parameters # @option opts [Integer] :page_number Page number # @option opts [Integer] :page_size Page size # @option opts [String] :sort_by Sort by # @option opts [String] :sort_order Sort order # @option opts [String] :name Name # @option opts [String] :description Description # @option opts [String] :name_or_description Name or description # @return [SystemPromptEntityListing] def get_systemprompts(opts = {}) data, status_code, headers = get_systemprompts_with_http_info(opts) return data end # Get System Prompts. # # @param [Hash] opts the optional parameters # @option opts [Integer] :page_number Page number # @option opts [Integer] :page_size Page size # @option opts [String] :sort_by Sort by # @option opts [String] :sort_order Sort order # @option opts [String] :name Name # @option opts [String] :description Description # @option opts [String] :name_or_description Name or description # @return [Array<(SystemPromptEntityListing, Fixnum, Hash)>] SystemPromptEntityListing data, response status code and response headers def get_systemprompts_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi#get_systemprompts ..." end # resource path path = "/api/v1/architect/systemprompts".sub('{format}','json') # query parameters query_params = {} query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number'] query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size'] query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by'] query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order'] query_params[:'name'] = opts[:'name'] if opts[:'name'] query_params[:'description'] = opts[:'description'] if opts[:'description'] query_params[:'nameOrDescription'] = opts[:'name_or_description'] if opts[:'name_or_description'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:GET, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'SystemPromptEntityListing') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_systemprompts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Get IVR system prompt. # # @param prompt_id # @param [Hash] opts the optional parameters # @return [SystemPrompt] def get_systemprompts_prompt_id(prompt_id, opts = {}) data, status_code, headers = get_systemprompts_prompt_id_with_http_info(prompt_id, opts) return data end # Get IVR system prompt. # # @param prompt_id # @param [Hash] opts the optional parameters # @return [Array<(SystemPrompt, Fixnum, Hash)>] SystemPrompt data, response status code and response headers def get_systemprompts_prompt_id_with_http_info(prompt_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi#get_systemprompts_prompt_id ..." end # verify the required parameter 'prompt_id' is set fail "Missing the required parameter 'prompt_id' when calling get_systemprompts_prompt_id" if prompt_id.nil? # resource path path = "/api/v1/architect/systemprompts/{promptId}".sub('{format}','json').sub('{' + 'promptId' + '}', prompt_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:GET, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'SystemPrompt') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_systemprompts_prompt_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Get IVR System Prompt resources. # # @param prompt_id Prompt ID # @param [Hash] opts the optional parameters # @option opts [Integer] :page_number Page number # @option opts [Integer] :page_size Page size # @option opts [String] :sort_by Sort by # @option opts [String] :sort_order Sort order # @return [SystemPromptAssetEntityListing] def get_systemprompts_prompt_id_resources(prompt_id, opts = {}) data, status_code, headers = get_systemprompts_prompt_id_resources_with_http_info(prompt_id, opts) return data end # Get IVR System Prompt resources. # # @param prompt_id Prompt ID # @param [Hash] opts the optional parameters # @option opts [Integer] :page_number Page number # @option opts [Integer] :page_size Page size # @option opts [String] :sort_by Sort by # @option opts [String] :sort_order Sort order # @return [Array<(SystemPromptAssetEntityListing, Fixnum, Hash)>] SystemPromptAssetEntityListing data, response status code and response headers def get_systemprompts_prompt_id_resources_with_http_info(prompt_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi#get_systemprompts_prompt_id_resources ..." end # verify the required parameter 'prompt_id' is set fail "Missing the required parameter 'prompt_id' when calling get_systemprompts_prompt_id_resources" if prompt_id.nil? # resource path path = "/api/v1/architect/systemprompts/{promptId}/resources".sub('{format}','json').sub('{' + 'promptId' + '}', prompt_id.to_s) # query parameters query_params = {} query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number'] query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size'] query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by'] query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:GET, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'SystemPromptAssetEntityListing') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_systemprompts_prompt_id_resources\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Create system prompt resource override. # # @param prompt_id Prompt ID # @param [Hash] opts the optional parameters # @option opts [SystemPromptAsset] :body # @return [SystemPromptAsset] def post_systemprompts_prompt_id_resources(prompt_id, opts = {}) data, status_code, headers = post_systemprompts_prompt_id_resources_with_http_info(prompt_id, opts) return data end # Create system prompt resource override. # # @param prompt_id Prompt ID # @param [Hash] opts the optional parameters # @option opts [SystemPromptAsset] :body # @return [Array<(SystemPromptAsset, Fixnum, Hash)>] SystemPromptAsset data, response status code and response headers def post_systemprompts_prompt_id_resources_with_http_info(prompt_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi#post_systemprompts_prompt_id_resources ..." end # verify the required parameter 'prompt_id' is set fail "Missing the required parameter 'prompt_id' when calling post_systemprompts_prompt_id_resources" if prompt_id.nil? # resource path path = "/api/v1/architect/systemprompts/{promptId}/resources".sub('{format}','json').sub('{' + 'promptId' + '}', prompt_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # 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, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'SystemPromptAsset') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#post_systemprompts_prompt_id_resources\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Get a system prompt resource. # # @param prompt_id Prompt ID # @param language Language # @param [Hash] opts the optional parameters # @return [SystemPromptAsset] def get_systemprompts_prompt_id_resources_language(prompt_id, language, opts = {}) data, status_code, headers = get_systemprompts_prompt_id_resources_language_with_http_info(prompt_id, language, opts) return data end # Get a system prompt resource. # # @param prompt_id Prompt ID # @param language Language # @param [Hash] opts the optional parameters # @return [Array<(SystemPromptAsset, Fixnum, Hash)>] SystemPromptAsset data, response status code and response headers def get_systemprompts_prompt_id_resources_language_with_http_info(prompt_id, language, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi#get_systemprompts_prompt_id_resources_language ..." end # verify the required parameter 'prompt_id' is set fail "Missing the required parameter 'prompt_id' when calling get_systemprompts_prompt_id_resources_language" if prompt_id.nil? # verify the required parameter 'language' is set fail "Missing the required parameter 'language' when calling get_systemprompts_prompt_id_resources_language" if language.nil? # resource path path = "/api/v1/architect/systemprompts/{promptId}/resources/{language}".sub('{format}','json').sub('{' + 'promptId' + '}', prompt_id.to_s).sub('{' + 'language' + '}', language.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:GET, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'SystemPromptAsset') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_systemprompts_prompt_id_resources_language\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Delete a system prompt resource override. # # @param prompt_id Prompt ID # @param language Language # @param [Hash] opts the optional parameters # @return [String] def delete_systemprompts_prompt_id_resources_language(prompt_id, language, opts = {}) data, status_code, headers = delete_systemprompts_prompt_id_resources_language_with_http_info(prompt_id, language, opts) return data end # Delete a system prompt resource override. # # @param prompt_id Prompt ID # @param language Language # @param [Hash] opts the optional parameters # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers def delete_systemprompts_prompt_id_resources_language_with_http_info(prompt_id, language, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi#delete_systemprompts_prompt_id_resources_language ..." end # verify the required parameter 'prompt_id' is set fail "Missing the required parameter 'prompt_id' when calling delete_systemprompts_prompt_id_resources_language" if prompt_id.nil? # verify the required parameter 'language' is set fail "Missing the required parameter 'language' when calling delete_systemprompts_prompt_id_resources_language" if language.nil? # resource path path = "/api/v1/architect/systemprompts/{promptId}/resources/{language}".sub('{format}','json').sub('{' + 'promptId' + '}', prompt_id.to_s).sub('{' + 'language' + '}', language.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:DELETE, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'String') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#delete_systemprompts_prompt_id_resources_language\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Get a pageable list of flows, filtered by query parameters # Multiple IDs can be specified, in which case all matching flows will be returned, and no other parameters will be evaluated. # @param [Hash] opts the optional parameters # @option opts [String] :type Type # @option opts [Integer] :page_number Page number # @option opts [Integer] :page_size Page size # @option opts [String] :sort_by Sort by # @option opts [String] :sort_order Sort order # @option opts [Array] :id ID # @option opts [String] :name Name # @option opts [String] :description Description # @option opts [String] :name_or_description Name or description # @option opts [String] :publish_version_id Publish version ID # @option opts [String] :editable_by Editable by # @option opts [String] :locked_by Locked by # @option opts [BOOLEAN] :deleted Include deleted # @return [FlowEntityListing] def get_flows(opts = {}) data, status_code, headers = get_flows_with_http_info(opts) return data end # Get a pageable list of flows, filtered by query parameters # Multiple IDs can be specified, in which case all matching flows will be returned, and no other parameters will be evaluated. # @param [Hash] opts the optional parameters # @option opts [String] :type Type # @option opts [Integer] :page_number Page number # @option opts [Integer] :page_size Page size # @option opts [String] :sort_by Sort by # @option opts [String] :sort_order Sort order # @option opts [Array] :id ID # @option opts [String] :name Name # @option opts [String] :description Description # @option opts [String] :name_or_description Name or description # @option opts [String] :publish_version_id Publish version ID # @option opts [String] :editable_by Editable by # @option opts [String] :locked_by Locked by # @option opts [BOOLEAN] :deleted Include deleted # @return [Array<(FlowEntityListing, Fixnum, Hash)>] FlowEntityListing data, response status code and response headers def get_flows_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi#get_flows ..." end # resource path path = "/api/v1/flows".sub('{format}','json') # query parameters query_params = {} query_params[:'type'] = opts[:'type'] if opts[:'type'] query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number'] query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size'] query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by'] query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order'] query_params[:'id'] = @api_client.build_collection_param(opts[:'id'], :multi) if opts[:'id'] query_params[:'name'] = opts[:'name'] if opts[:'name'] query_params[:'description'] = opts[:'description'] if opts[:'description'] query_params[:'nameOrDescription'] = opts[:'name_or_description'] if opts[:'name_or_description'] query_params[:'publishVersionId'] = opts[:'publish_version_id'] if opts[:'publish_version_id'] query_params[:'editableBy'] = opts[:'editable_by'] if opts[:'editable_by'] query_params[:'lockedBy'] = opts[:'locked_by'] if opts[:'locked_by'] query_params[:'deleted'] = opts[:'deleted'] if opts[:'deleted'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:GET, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'FlowEntityListing') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_flows\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Create flow # # @param [Hash] opts the optional parameters # @option opts [Flow] :body # @return [Flow] def post_flows(opts = {}) data, status_code, headers = post_flows_with_http_info(opts) return data end # Create flow # # @param [Hash] opts the optional parameters # @option opts [Flow] :body # @return [Array<(Flow, Fixnum, Hash)>] Flow data, response status code and response headers def post_flows_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi#post_flows ..." end # resource path path = "/api/v1/flows".sub('{format}','json') # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # 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, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Flow') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#post_flows\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Batch-delete a list of flows # Multiple IDs can be specified, in which case all specified flows will be deleted. # @param id List of Flow IDs # @param [Hash] opts the optional parameters # @option opts [BOOLEAN] :ignore_dependencies Ignore Dependencies # @return [nil] def delete_flows(id, opts = {}) delete_flows_with_http_info(id, opts) return nil end # Batch-delete a list of flows # Multiple IDs can be specified, in which case all specified flows will be deleted. # @param id List of Flow IDs # @param [Hash] opts the optional parameters # @option opts [BOOLEAN] :ignore_dependencies Ignore Dependencies # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def delete_flows_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi#delete_flows ..." end # verify the required parameter 'id' is set fail "Missing the required parameter 'id' when calling delete_flows" if id.nil? # resource path path = "/api/v1/flows".sub('{format}','json') # query parameters query_params = {} query_params[:'id'] = @api_client.build_collection_param(id, :multi) query_params[:'ignoreDependencies'] = opts[:'ignore_dependencies'] if opts[:'ignore_dependencies'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:DELETE, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#delete_flows\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Check-in flow # # @param [Hash] opts the optional parameters # @option opts [String] :flow Flow # @return [Flow] def post_actions_checkin(opts = {}) data, status_code, headers = post_actions_checkin_with_http_info(opts) return data end # Check-in flow # # @param [Hash] opts the optional parameters # @option opts [String] :flow Flow # @return [Array<(Flow, Fixnum, Hash)>] Flow data, response status code and response headers def post_actions_checkin_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi#post_actions_checkin ..." end # resource path path = "/api/v1/flows/actions/checkin".sub('{format}','json') # query parameters query_params = {} query_params[:'flow'] = opts[:'flow'] if opts[:'flow'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:POST, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Flow') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#post_actions_checkin\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Check-out flow # # @param [Hash] opts the optional parameters # @option opts [String] :flow Flow # @return [Flow] def post_actions_checkout(opts = {}) data, status_code, headers = post_actions_checkout_with_http_info(opts) return data end # Check-out flow # # @param [Hash] opts the optional parameters # @option opts [String] :flow Flow # @return [Array<(Flow, Fixnum, Hash)>] Flow data, response status code and response headers def post_actions_checkout_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi#post_actions_checkout ..." end # resource path path = "/api/v1/flows/actions/checkout".sub('{format}','json') # query parameters query_params = {} query_params[:'flow'] = opts[:'flow'] if opts[:'flow'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:POST, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Flow') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#post_actions_checkout\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Deactivate flow # # @param [Hash] opts the optional parameters # @option opts [String] :flow Flow # @return [Flow] def post_actions_deactivate(opts = {}) data, status_code, headers = post_actions_deactivate_with_http_info(opts) return data end # Deactivate flow # # @param [Hash] opts the optional parameters # @option opts [String] :flow Flow # @return [Array<(Flow, Fixnum, Hash)>] Flow data, response status code and response headers def post_actions_deactivate_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi#post_actions_deactivate ..." end # resource path path = "/api/v1/flows/actions/deactivate".sub('{format}','json') # query parameters query_params = {} query_params[:'flow'] = opts[:'flow'] if opts[:'flow'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:POST, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Flow') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#post_actions_deactivate\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Debug flow # # @param version # @param [Hash] opts the optional parameters # @option opts [String] :flow Flow # @return [nil] def post_actions_debug(version, opts = {}) post_actions_debug_with_http_info(version, opts) return nil end # Debug flow # # @param version # @param [Hash] opts the optional parameters # @option opts [String] :flow Flow # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def post_actions_debug_with_http_info(version, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi#post_actions_debug ..." end # verify the required parameter 'version' is set fail "Missing the required parameter 'version' when calling post_actions_debug" if version.nil? # resource path path = "/api/v1/flows/actions/debug".sub('{format}','json') # query parameters query_params = {} query_params[:'version'] = version query_params[:'flow'] = opts[:'flow'] if opts[:'flow'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:POST, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#post_actions_debug\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Revert flow # # @param [Hash] opts the optional parameters # @option opts [String] :flow Flow # @return [Flow] def post_actions_revert(opts = {}) data, status_code, headers = post_actions_revert_with_http_info(opts) return data end # Revert flow # # @param [Hash] opts the optional parameters # @option opts [String] :flow Flow # @return [Array<(Flow, Fixnum, Hash)>] Flow data, response status code and response headers def post_actions_revert_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi#post_actions_revert ..." end # resource path path = "/api/v1/flows/actions/revert".sub('{format}','json') # query parameters query_params = {} query_params[:'flow'] = opts[:'flow'] if opts[:'flow'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:POST, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Flow') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#post_actions_revert\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Get flow. # # @param flow_id Flow ID # @param [Hash] opts the optional parameters # @option opts [String] :deleted Deleted # @return [Flow] def get_flow_id(flow_id, opts = {}) data, status_code, headers = get_flow_id_with_http_info(flow_id, opts) return data end # Get flow. # # @param flow_id Flow ID # @param [Hash] opts the optional parameters # @option opts [String] :deleted Deleted # @return [Array<(Flow, Fixnum, Hash)>] Flow data, response status code and response headers def get_flow_id_with_http_info(flow_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi#get_flow_id ..." end # verify the required parameter 'flow_id' is set fail "Missing the required parameter 'flow_id' when calling get_flow_id" if flow_id.nil? # resource path path = "/api/v1/flows/{flowId}".sub('{format}','json').sub('{' + 'flowId' + '}', flow_id.to_s) # query parameters query_params = {} query_params[:'deleted'] = opts[:'deleted'] if opts[:'deleted'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:GET, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Flow') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_flow_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Update flow. # # @param flow_id Flow ID # @param [Hash] opts the optional parameters # @option opts [Flow] :body # @return [Flow] def put_flow_id(flow_id, opts = {}) data, status_code, headers = put_flow_id_with_http_info(flow_id, opts) return data end # Update flow. # # @param flow_id Flow ID # @param [Hash] opts the optional parameters # @option opts [Flow] :body # @return [Array<(Flow, Fixnum, Hash)>] Flow data, response status code and response headers def put_flow_id_with_http_info(flow_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi#put_flow_id ..." end # verify the required parameter 'flow_id' is set fail "Missing the required parameter 'flow_id' when calling put_flow_id" if flow_id.nil? # resource path path = "/api/v1/flows/{flowId}".sub('{format}','json').sub('{' + 'flowId' + '}', flow_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # 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(:PUT, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Flow') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#put_flow_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Delete flow. # # @param flow_id Flow ID # @param [Hash] opts the optional parameters # @return [nil] def delete_flow_id(flow_id, opts = {}) delete_flow_id_with_http_info(flow_id, opts) return nil end # Delete flow. # # @param flow_id Flow ID # @param [Hash] opts the optional parameters # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def delete_flow_id_with_http_info(flow_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi#delete_flow_id ..." end # verify the required parameter 'flow_id' is set fail "Missing the required parameter 'flow_id' when calling delete_flow_id" if flow_id.nil? # resource path path = "/api/v1/flows/{flowId}".sub('{format}','json').sub('{' + 'flowId' + '}', flow_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:DELETE, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#delete_flow_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Get the latest configuration for flow. # # @param flow_id Flow ID # @param [Hash] opts the optional parameters # @option opts [String] :deleted Deleted # @return [inline_response_200] def get_flow_id_latestconfiguration(flow_id, opts = {}) data, status_code, headers = get_flow_id_latestconfiguration_with_http_info(flow_id, opts) return data end # Get the latest configuration for flow. # # @param flow_id Flow ID # @param [Hash] opts the optional parameters # @option opts [String] :deleted Deleted # @return [Array<(inline_response_200, Fixnum, Hash)>] inline_response_200 data, response status code and response headers def get_flow_id_latestconfiguration_with_http_info(flow_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi#get_flow_id_latestconfiguration ..." end # verify the required parameter 'flow_id' is set fail "Missing the required parameter 'flow_id' when calling get_flow_id_latestconfiguration" if flow_id.nil? # resource path path = "/api/v1/flows/{flowId}/latestconfiguration".sub('{format}','json').sub('{' + 'flowId' + '}', flow_id.to_s) # query parameters query_params = {} query_params[:'deleted'] = opts[:'deleted'] if opts[:'deleted'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:GET, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'inline_response_200') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_flow_id_latestconfiguration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Get generation result. # # @param flow_id Flow ID # @param id Publish Result ID # @param [Hash] opts the optional parameters # @return [PublishedResult] def get_flow_id_publishedresults_id(flow_id, id, opts = {}) data, status_code, headers = get_flow_id_publishedresults_id_with_http_info(flow_id, id, opts) return data end # Get generation result. # # @param flow_id Flow ID # @param id Publish Result ID # @param [Hash] opts the optional parameters # @return [Array<(PublishedResult, Fixnum, Hash)>] PublishedResult data, response status code and response headers def get_flow_id_publishedresults_id_with_http_info(flow_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi#get_flow_id_publishedresults_id ..." end # verify the required parameter 'flow_id' is set fail "Missing the required parameter 'flow_id' when calling get_flow_id_publishedresults_id" if flow_id.nil? # verify the required parameter 'id' is set fail "Missing the required parameter 'id' when calling get_flow_id_publishedresults_id" if id.nil? # resource path path = "/api/v1/flows/{flowId}/publishedresults/{id}".sub('{format}','json').sub('{' + 'flowId' + '}', flow_id.to_s).sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:GET, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'PublishedResult') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_flow_id_publishedresults_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Get flow version list # # @param flow_id Flow ID # @param [Hash] opts the optional parameters # @option opts [Integer] :page_number Page number # @option opts [Integer] :page_size Page size # @option opts [String] :deleted Deleted # @return [FlowVersionEntityListing] def get_flow_id_versions(flow_id, opts = {}) data, status_code, headers = get_flow_id_versions_with_http_info(flow_id, opts) return data end # Get flow version list # # @param flow_id Flow ID # @param [Hash] opts the optional parameters # @option opts [Integer] :page_number Page number # @option opts [Integer] :page_size Page size # @option opts [String] :deleted Deleted # @return [Array<(FlowVersionEntityListing, Fixnum, Hash)>] FlowVersionEntityListing data, response status code and response headers def get_flow_id_versions_with_http_info(flow_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi#get_flow_id_versions ..." end # verify the required parameter 'flow_id' is set fail "Missing the required parameter 'flow_id' when calling get_flow_id_versions" if flow_id.nil? # resource path path = "/api/v1/flows/{flowId}/versions".sub('{format}','json').sub('{' + 'flowId' + '}', flow_id.to_s) # query parameters query_params = {} query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number'] query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size'] query_params[:'deleted'] = opts[:'deleted'] if opts[:'deleted'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:GET, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'FlowVersionEntityListing') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_flow_id_versions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Create flow version # # @param flow_id Flow ID # @param [Hash] opts the optional parameters # @option opts [Body] :body # @return [FlowVersion] def post_flow_id_versions(flow_id, opts = {}) data, status_code, headers = post_flow_id_versions_with_http_info(flow_id, opts) return data end # Create flow version # # @param flow_id Flow ID # @param [Hash] opts the optional parameters # @option opts [Body] :body # @return [Array<(FlowVersion, Fixnum, Hash)>] FlowVersion data, response status code and response headers def post_flow_id_versions_with_http_info(flow_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi#post_flow_id_versions ..." end # verify the required parameter 'flow_id' is set fail "Missing the required parameter 'flow_id' when calling post_flow_id_versions" if flow_id.nil? # resource path path = "/api/v1/flows/{flowId}/versions".sub('{format}','json').sub('{' + 'flowId' + '}', flow_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # 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, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'FlowVersion') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#post_flow_id_versions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Get flow version # # @param flow_id Flow ID # @param version_id Version ID # @param [Hash] opts the optional parameters # @option opts [String] :deleted Deleted # @return [FlowVersion] def get_flow_id_versions_version_id(flow_id, version_id, opts = {}) data, status_code, headers = get_flow_id_versions_version_id_with_http_info(flow_id, version_id, opts) return data end # Get flow version # # @param flow_id Flow ID # @param version_id Version ID # @param [Hash] opts the optional parameters # @option opts [String] :deleted Deleted # @return [Array<(FlowVersion, Fixnum, Hash)>] FlowVersion data, response status code and response headers def get_flow_id_versions_version_id_with_http_info(flow_id, version_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi#get_flow_id_versions_version_id ..." end # verify the required parameter 'flow_id' is set fail "Missing the required parameter 'flow_id' when calling get_flow_id_versions_version_id" if flow_id.nil? # verify the required parameter 'version_id' is set fail "Missing the required parameter 'version_id' when calling get_flow_id_versions_version_id" if version_id.nil? # resource path path = "/api/v1/flows/{flowId}/versions/{versionId}".sub('{format}','json').sub('{' + 'flowId' + '}', flow_id.to_s).sub('{' + 'versionId' + '}', version_id.to_s) # query parameters query_params = {} query_params[:'deleted'] = opts[:'deleted'] if opts[:'deleted'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:GET, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'FlowVersion') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_flow_id_versions_version_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end # Create flow version configuration # # @param flow_id Flow ID # @param version_id Version ID # @param [Hash] opts the optional parameters # @option opts [String] :deleted Deleted # @return [inline_response_200] def get_flow_id_versions_version_id_configuration(flow_id, version_id, opts = {}) data, status_code, headers = get_flow_id_versions_version_id_configuration_with_http_info(flow_id, version_id, opts) return data end # Create flow version configuration # # @param flow_id Flow ID # @param version_id Version ID # @param [Hash] opts the optional parameters # @option opts [String] :deleted Deleted # @return [Array<(inline_response_200, Fixnum, Hash)>] inline_response_200 data, response status code and response headers def get_flow_id_versions_version_id_configuration_with_http_info(flow_id, version_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi#get_flow_id_versions_version_id_configuration ..." end # verify the required parameter 'flow_id' is set fail "Missing the required parameter 'flow_id' when calling get_flow_id_versions_version_id_configuration" if flow_id.nil? # verify the required parameter 'version_id' is set fail "Missing the required parameter 'version_id' when calling get_flow_id_versions_version_id_configuration" if version_id.nil? # resource path path = "/api/v1/flows/{flowId}/versions/{versionId}/configuration".sub('{format}','json').sub('{' + 'flowId' + '}', flow_id.to_s).sub('{' + 'versionId' + '}', version_id.to_s) # query parameters query_params = {} query_params[:'deleted'] = opts[:'deleted'] if opts[:'deleted'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud Auth'] data, status_code, headers = @api_client.call_api(:GET, path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'inline_response_200') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_flow_id_versions_version_id_configuration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end end end