lib/purecloudplatformclientv2/api/architect_api.rb in purecloudplatformclientv2-45.0.0 vs lib/purecloudplatformclientv2/api/architect_api.rb in purecloudplatformclientv2-46.0.0
- old
+ new
@@ -3854,12 +3854,12 @@
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 type Type
# @param [Hash] opts the optional parameters
+ # @option opts [Array<String>] :type Type
# @option opts [Integer] :page_number Page number (default to 1)
# @option opts [Integer] :page_size Page size (default to 25)
# @option opts [String] :sort_by Sort by (default to id)
# @option opts [String] :sort_order Sort order (default to asc)
# @option opts [Array<String>] :id ID
@@ -3874,19 +3874,19 @@
# @option opts [BOOLEAN] :include_schemas Include variable schemas (default to false)
# @option opts [String] :published_after Published after
# @option opts [String] :published_before Published before
# @option opts [Array<String>] :division_id division ID(s)
# @return [FlowEntityListing]
- def get_flows(type, opts = {})
- data, _status_code, _headers = get_flows_with_http_info(type, opts)
+ 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 type Type
# @param [Hash] opts the optional parameters
+ # @option opts [Array<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<String>] :id ID
@@ -3901,23 +3901,17 @@
# @option opts [BOOLEAN] :include_schemas Include variable schemas
# @option opts [String] :published_after Published after
# @option opts [String] :published_before Published before
# @option opts [Array<String>] :division_id division ID(s)
# @return [Array<(FlowEntityListing, Fixnum, Hash)>] FlowEntityListing data, response status code and response headers
- def get_flows_with_http_info(type, opts = {})
+ def get_flows_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: ArchitectApi.get_flows ..."
end
- # verify the required parameter 'type' is set
- fail ArgumentError, "Missing the required parameter 'type' when calling ArchitectApi.get_flows" if type.nil?
- # verify enum value
- unless ['inboundcall', 'inboundemail', 'inboundshortmessage', 'outboundcall', 'inqueuecall', 'speech', 'securecall', 'surveyinvite', 'workflow'].include?(type)
- fail ArgumentError, "invalid value for 'type', must be one of inboundcall, inboundemail, inboundshortmessage, outboundcall, inqueuecall, speech, securecall, surveyinvite, workflow"
- end
@@ -3987,11 +3981,10 @@
-
if opts[:'secure'] && !['any', 'checkedin', 'published'].include?(opts[:'secure'])
fail ArgumentError, 'invalid value for "secure", must be one of any, checkedin, published'
end
@@ -4030,11 +4023,11 @@
# resource path
local_var_path = "/api/v2/flows".sub('{format}','json')
# query parameters
query_params = {}
- query_params[:'type'] = type
+ query_params[:'type'] = @api_client.build_collection_param(opts[:'type'], :multi) 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']
@@ -4444,12 +4437,12 @@
return data, status_code, headers
end
# Get a pageable list of basic flow information objects filterable by query parameters.
# This returns a simplified version of /flow consisting of name and type.
- # @param type Type
# @param [Hash] opts the optional parameters
+ # @option opts [Array<String>] :type Type
# @option opts [Integer] :page_number Page number (default to 1)
# @option opts [Integer] :page_size Page size (default to 25)
# @option opts [String] :sort_by Sort by (default to id)
# @option opts [String] :sort_order Sort order (default to asc)
# @option opts [Array<String>] :id ID
@@ -4457,19 +4450,19 @@
# @option opts [String] :publish_version_id Publish version ID
# @option opts [String] :published_after Published after
# @option opts [String] :published_before Published before
# @option opts [Array<String>] :division_id division ID(s)
# @return [FlowDivisionViewEntityListing]
- def get_flows_divisionviews(type, opts = {})
- data, _status_code, _headers = get_flows_divisionviews_with_http_info(type, opts)
+ def get_flows_divisionviews(opts = {})
+ data, _status_code, _headers = get_flows_divisionviews_with_http_info(opts)
return data
end
# Get a pageable list of basic flow information objects filterable by query parameters.
# This returns a simplified version of /flow consisting of name and type.
- # @param type Type
# @param [Hash] opts the optional parameters
+ # @option opts [Array<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<String>] :id ID
@@ -4477,23 +4470,17 @@
# @option opts [String] :publish_version_id Publish version ID
# @option opts [String] :published_after Published after
# @option opts [String] :published_before Published before
# @option opts [Array<String>] :division_id division ID(s)
# @return [Array<(FlowDivisionViewEntityListing, Fixnum, Hash)>] FlowDivisionViewEntityListing data, response status code and response headers
- def get_flows_divisionviews_with_http_info(type, opts = {})
+ def get_flows_divisionviews_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: ArchitectApi.get_flows_divisionviews ..."
end
- # verify the required parameter 'type' is set
- fail ArgumentError, "Missing the required parameter 'type' when calling ArchitectApi.get_flows_divisionviews" if type.nil?
- # verify enum value
- unless ['inboundcall', 'inboundemail', 'inboundshortmessage', 'outboundcall', 'inqueuecall', 'speech', 'securecall', 'surveyinvite', 'workflow'].include?(type)
- fail ArgumentError, "invalid value for 'type', must be one of inboundcall, inboundemail, inboundshortmessage, outboundcall, inqueuecall, speech, securecall, surveyinvite, workflow"
- end
@@ -4554,16 +4541,15 @@
-
# resource path
local_var_path = "/api/v2/flows/divisionviews".sub('{format}','json')
# query parameters
query_params = {}
- query_params[:'type'] = type
+ query_params[:'type'] = @api_client.build_collection_param(opts[:'type'], :multi) 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']