lib/smooch-api/api/integration_api.rb in smooch-api-4.1.0 vs lib/smooch-api/api/integration_api.rb in smooch-api-4.2.0
- old
+ new
@@ -1,11 +1,11 @@
=begin
#Smooch
#The Smooch API is a unified interface for powering messaging in your customer experiences across every channel. Our API speeds access to new markets, reduces time to ship, eliminates complexity, and helps you build the best experiences for your customers. For more information, visit our [official documentation](https://docs.smooch.io).
-OpenAPI spec version: 4.1
+OpenAPI spec version: 4.2
Generated by: https://github.com/swagger-api/swagger-codegen.git
Swagger Codegen version: 2.2.3-SNAPSHOT
=end
@@ -20,39 +20,39 @@
@api_client = api_client
end
#
# Create an integration for the specified app.
- # @param app_id Identifies the app.
- # @param integration_create_body Body for a createIntegration request. Additional arguments are necessary based on integration type. For detailed instructions, visit our [official docs](https://docs.smooch.io/rest/#create-integration)
+ # @param appId Identifies the app.
+ # @param integrationCreateBody Body for a createIntegration request. Additional arguments are necessary based on integration type. For detailed instructions, visit our [official docs](https://docs.smooch.io/rest/#create-integration)
# @param [Hash] opts the optional parameters
# @return [IntegrationResponse]
- def create_integration(app_id, integration_create_body, opts = {})
- data, _status_code, _headers = create_integration_with_http_info(app_id, integration_create_body, opts)
+ def create_integration(appId, integrationCreateBody, opts = {})
+ data, _status_code, _headers = create_integration_with_http_info(appId, integrationCreateBody, opts)
return data
end
#
# Create an integration for the specified app.
- # @param app_id Identifies the app.
- # @param integration_create_body Body for a createIntegration request. Additional arguments are necessary based on integration type. For detailed instructions, visit our [official docs](https://docs.smooch.io/rest/#create-integration)
+ # @param appId Identifies the app.
+ # @param integrationCreateBody Body for a createIntegration request. Additional arguments are necessary based on integration type. For detailed instructions, visit our [official docs](https://docs.smooch.io/rest/#create-integration)
# @param [Hash] opts the optional parameters
# @return [Array<(IntegrationResponse, Fixnum, Hash)>] IntegrationResponse data, response status code and response headers
- def create_integration_with_http_info(app_id, integration_create_body, opts = {})
+ def create_integration_with_http_info(appId, integrationCreateBody, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: IntegrationApi.create_integration ..."
end
- # verify the required parameter 'app_id' is set
- if @api_client.config.client_side_validation && app_id.nil?
- fail ArgumentError, "Missing the required parameter 'app_id' when calling IntegrationApi.create_integration"
+ # verify the required parameter 'appId' is set
+ if @api_client.config.client_side_validation && appId.nil?
+ fail ArgumentError, "Missing the required parameter 'appId' when calling IntegrationApi.create_integration"
end
- # verify the required parameter 'integration_create_body' is set
- if @api_client.config.client_side_validation && integration_create_body.nil?
- fail ArgumentError, "Missing the required parameter 'integration_create_body' when calling IntegrationApi.create_integration"
+ # verify the required parameter 'integrationCreateBody' is set
+ if @api_client.config.client_side_validation && integrationCreateBody.nil?
+ fail ArgumentError, "Missing the required parameter 'integrationCreateBody' when calling IntegrationApi.create_integration"
end
# resource path
- local_var_path = "/v1.1/apps/{appId}/integrations".sub('{' + 'appId' + '}', app_id.to_s)
+ local_var_path = "/v1.1/apps/{appId}/integrations".sub('{' + 'appId' + '}', appId.to_s)
# query parameters
query_params = {}
# header parameters
@@ -64,11 +64,11 @@
# form parameters
form_params = {}
# http body (model)
- post_body = @api_client.object_to_http_body(integration_create_body)
+ post_body = @api_client.object_to_http_body(integrationCreateBody)
auth_names = ['jwt']
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
@@ -81,45 +81,45 @@
return data, status_code, headers
end
#
# Create the specified integration’s menu, overriding the app menu if configured.
- # @param app_id Identifies the app.
- # @param integration_id Identifies the integration.
- # @param menu_create_body Body for a createMenu request.
+ # @param appId Identifies the app.
+ # @param integrationId Identifies the integration.
+ # @param menuCreateBody Body for a createMenu request.
# @param [Hash] opts the optional parameters
# @return [MenuResponse]
- def create_integration_menu(app_id, integration_id, menu_create_body, opts = {})
- data, _status_code, _headers = create_integration_menu_with_http_info(app_id, integration_id, menu_create_body, opts)
+ def create_integration_menu(appId, integrationId, menuCreateBody, opts = {})
+ data, _status_code, _headers = create_integration_menu_with_http_info(appId, integrationId, menuCreateBody, opts)
return data
end
#
# Create the specified integration’s menu, overriding the app menu if configured.
- # @param app_id Identifies the app.
- # @param integration_id Identifies the integration.
- # @param menu_create_body Body for a createMenu request.
+ # @param appId Identifies the app.
+ # @param integrationId Identifies the integration.
+ # @param menuCreateBody Body for a createMenu request.
# @param [Hash] opts the optional parameters
# @return [Array<(MenuResponse, Fixnum, Hash)>] MenuResponse data, response status code and response headers
- def create_integration_menu_with_http_info(app_id, integration_id, menu_create_body, opts = {})
+ def create_integration_menu_with_http_info(appId, integrationId, menuCreateBody, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: IntegrationApi.create_integration_menu ..."
end
- # verify the required parameter 'app_id' is set
- if @api_client.config.client_side_validation && app_id.nil?
- fail ArgumentError, "Missing the required parameter 'app_id' when calling IntegrationApi.create_integration_menu"
+ # verify the required parameter 'appId' is set
+ if @api_client.config.client_side_validation && appId.nil?
+ fail ArgumentError, "Missing the required parameter 'appId' when calling IntegrationApi.create_integration_menu"
end
- # verify the required parameter 'integration_id' is set
- if @api_client.config.client_side_validation && integration_id.nil?
- fail ArgumentError, "Missing the required parameter 'integration_id' when calling IntegrationApi.create_integration_menu"
+ # verify the required parameter 'integrationId' is set
+ if @api_client.config.client_side_validation && integrationId.nil?
+ fail ArgumentError, "Missing the required parameter 'integrationId' when calling IntegrationApi.create_integration_menu"
end
- # verify the required parameter 'menu_create_body' is set
- if @api_client.config.client_side_validation && menu_create_body.nil?
- fail ArgumentError, "Missing the required parameter 'menu_create_body' when calling IntegrationApi.create_integration_menu"
+ # verify the required parameter 'menuCreateBody' is set
+ if @api_client.config.client_side_validation && menuCreateBody.nil?
+ fail ArgumentError, "Missing the required parameter 'menuCreateBody' when calling IntegrationApi.create_integration_menu"
end
# resource path
- local_var_path = "/v1.1/apps/{appId}/integrations/{integrationId}/menu".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'integrationId' + '}', integration_id.to_s)
+ local_var_path = "/v1.1/apps/{appId}/integrations/{integrationId}/menu".sub('{' + 'appId' + '}', appId.to_s).sub('{' + 'integrationId' + '}', integrationId.to_s)
# query parameters
query_params = {}
# header parameters
@@ -131,11 +131,11 @@
# form parameters
form_params = {}
# http body (model)
- post_body = @api_client.object_to_http_body(menu_create_body)
+ post_body = @api_client.object_to_http_body(menuCreateBody)
auth_names = ['jwt']
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
@@ -148,39 +148,39 @@
return data, status_code, headers
end
#
# Delete the specified integration.
- # @param app_id Identifies the app.
- # @param integration_id Identifies the integration.
+ # @param appId Identifies the app.
+ # @param integrationId Identifies the integration.
# @param [Hash] opts the optional parameters
# @return [nil]
- def delete_integration(app_id, integration_id, opts = {})
- delete_integration_with_http_info(app_id, integration_id, opts)
+ def delete_integration(appId, integrationId, opts = {})
+ delete_integration_with_http_info(appId, integrationId, opts)
return nil
end
#
# Delete the specified integration.
- # @param app_id Identifies the app.
- # @param integration_id Identifies the integration.
+ # @param appId Identifies the app.
+ # @param integrationId Identifies the integration.
# @param [Hash] opts the optional parameters
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
- def delete_integration_with_http_info(app_id, integration_id, opts = {})
+ def delete_integration_with_http_info(appId, integrationId, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: IntegrationApi.delete_integration ..."
end
- # verify the required parameter 'app_id' is set
- if @api_client.config.client_side_validation && app_id.nil?
- fail ArgumentError, "Missing the required parameter 'app_id' when calling IntegrationApi.delete_integration"
+ # verify the required parameter 'appId' is set
+ if @api_client.config.client_side_validation && appId.nil?
+ fail ArgumentError, "Missing the required parameter 'appId' when calling IntegrationApi.delete_integration"
end
- # verify the required parameter 'integration_id' is set
- if @api_client.config.client_side_validation && integration_id.nil?
- fail ArgumentError, "Missing the required parameter 'integration_id' when calling IntegrationApi.delete_integration"
+ # verify the required parameter 'integrationId' is set
+ if @api_client.config.client_side_validation && integrationId.nil?
+ fail ArgumentError, "Missing the required parameter 'integrationId' when calling IntegrationApi.delete_integration"
end
# resource path
- local_var_path = "/v1.1/apps/{appId}/integrations/{integrationId}".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'integrationId' + '}', integration_id.to_s)
+ local_var_path = "/v1.1/apps/{appId}/integrations/{integrationId}".sub('{' + 'appId' + '}', appId.to_s).sub('{' + 'integrationId' + '}', integrationId.to_s)
# query parameters
query_params = {}
# header parameters
@@ -208,39 +208,39 @@
return data, status_code, headers
end
#
# Delete the specified integration’s menu.
- # @param app_id Identifies the app.
- # @param integration_id Identifies the integration.
+ # @param appId Identifies the app.
+ # @param integrationId Identifies the integration.
# @param [Hash] opts the optional parameters
# @return [nil]
- def delete_integration_menu(app_id, integration_id, opts = {})
- delete_integration_menu_with_http_info(app_id, integration_id, opts)
+ def delete_integration_menu(appId, integrationId, opts = {})
+ delete_integration_menu_with_http_info(appId, integrationId, opts)
return nil
end
#
# Delete the specified integration’s menu.
- # @param app_id Identifies the app.
- # @param integration_id Identifies the integration.
+ # @param appId Identifies the app.
+ # @param integrationId Identifies the integration.
# @param [Hash] opts the optional parameters
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
- def delete_integration_menu_with_http_info(app_id, integration_id, opts = {})
+ def delete_integration_menu_with_http_info(appId, integrationId, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: IntegrationApi.delete_integration_menu ..."
end
- # verify the required parameter 'app_id' is set
- if @api_client.config.client_side_validation && app_id.nil?
- fail ArgumentError, "Missing the required parameter 'app_id' when calling IntegrationApi.delete_integration_menu"
+ # verify the required parameter 'appId' is set
+ if @api_client.config.client_side_validation && appId.nil?
+ fail ArgumentError, "Missing the required parameter 'appId' when calling IntegrationApi.delete_integration_menu"
end
- # verify the required parameter 'integration_id' is set
- if @api_client.config.client_side_validation && integration_id.nil?
- fail ArgumentError, "Missing the required parameter 'integration_id' when calling IntegrationApi.delete_integration_menu"
+ # verify the required parameter 'integrationId' is set
+ if @api_client.config.client_side_validation && integrationId.nil?
+ fail ArgumentError, "Missing the required parameter 'integrationId' when calling IntegrationApi.delete_integration_menu"
end
# resource path
- local_var_path = "/v1.1/apps/{appId}/integrations/{integrationId}/menu".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'integrationId' + '}', integration_id.to_s)
+ local_var_path = "/v1.1/apps/{appId}/integrations/{integrationId}/menu".sub('{' + 'appId' + '}', appId.to_s).sub('{' + 'integrationId' + '}', integrationId.to_s)
# query parameters
query_params = {}
# header parameters
@@ -268,39 +268,39 @@
return data, status_code, headers
end
#
# Get the specified integration.
- # @param app_id Identifies the app.
- # @param integration_id Identifies the integration.
+ # @param appId Identifies the app.
+ # @param integrationId Identifies the integration.
# @param [Hash] opts the optional parameters
# @return [IntegrationResponse]
- def get_integration(app_id, integration_id, opts = {})
- data, _status_code, _headers = get_integration_with_http_info(app_id, integration_id, opts)
+ def get_integration(appId, integrationId, opts = {})
+ data, _status_code, _headers = get_integration_with_http_info(appId, integrationId, opts)
return data
end
#
# Get the specified integration.
- # @param app_id Identifies the app.
- # @param integration_id Identifies the integration.
+ # @param appId Identifies the app.
+ # @param integrationId Identifies the integration.
# @param [Hash] opts the optional parameters
# @return [Array<(IntegrationResponse, Fixnum, Hash)>] IntegrationResponse data, response status code and response headers
- def get_integration_with_http_info(app_id, integration_id, opts = {})
+ def get_integration_with_http_info(appId, integrationId, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: IntegrationApi.get_integration ..."
end
- # verify the required parameter 'app_id' is set
- if @api_client.config.client_side_validation && app_id.nil?
- fail ArgumentError, "Missing the required parameter 'app_id' when calling IntegrationApi.get_integration"
+ # verify the required parameter 'appId' is set
+ if @api_client.config.client_side_validation && appId.nil?
+ fail ArgumentError, "Missing the required parameter 'appId' when calling IntegrationApi.get_integration"
end
- # verify the required parameter 'integration_id' is set
- if @api_client.config.client_side_validation && integration_id.nil?
- fail ArgumentError, "Missing the required parameter 'integration_id' when calling IntegrationApi.get_integration"
+ # verify the required parameter 'integrationId' is set
+ if @api_client.config.client_side_validation && integrationId.nil?
+ fail ArgumentError, "Missing the required parameter 'integrationId' when calling IntegrationApi.get_integration"
end
# resource path
- local_var_path = "/v1.1/apps/{appId}/integrations/{integrationId}".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'integrationId' + '}', integration_id.to_s)
+ local_var_path = "/v1.1/apps/{appId}/integrations/{integrationId}".sub('{' + 'appId' + '}', appId.to_s).sub('{' + 'integrationId' + '}', integrationId.to_s)
# query parameters
query_params = {}
# header parameters
@@ -329,39 +329,39 @@
return data, status_code, headers
end
#
# Get the specified integration's menu.
- # @param app_id Identifies the app.
- # @param integration_id Identifies the integration.
+ # @param appId Identifies the app.
+ # @param integrationId Identifies the integration.
# @param [Hash] opts the optional parameters
# @return [MenuResponse]
- def get_integration_menu(app_id, integration_id, opts = {})
- data, _status_code, _headers = get_integration_menu_with_http_info(app_id, integration_id, opts)
+ def get_integration_menu(appId, integrationId, opts = {})
+ data, _status_code, _headers = get_integration_menu_with_http_info(appId, integrationId, opts)
return data
end
#
# Get the specified integration's menu.
- # @param app_id Identifies the app.
- # @param integration_id Identifies the integration.
+ # @param appId Identifies the app.
+ # @param integrationId Identifies the integration.
# @param [Hash] opts the optional parameters
# @return [Array<(MenuResponse, Fixnum, Hash)>] MenuResponse data, response status code and response headers
- def get_integration_menu_with_http_info(app_id, integration_id, opts = {})
+ def get_integration_menu_with_http_info(appId, integrationId, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: IntegrationApi.get_integration_menu ..."
end
- # verify the required parameter 'app_id' is set
- if @api_client.config.client_side_validation && app_id.nil?
- fail ArgumentError, "Missing the required parameter 'app_id' when calling IntegrationApi.get_integration_menu"
+ # verify the required parameter 'appId' is set
+ if @api_client.config.client_side_validation && appId.nil?
+ fail ArgumentError, "Missing the required parameter 'appId' when calling IntegrationApi.get_integration_menu"
end
- # verify the required parameter 'integration_id' is set
- if @api_client.config.client_side_validation && integration_id.nil?
- fail ArgumentError, "Missing the required parameter 'integration_id' when calling IntegrationApi.get_integration_menu"
+ # verify the required parameter 'integrationId' is set
+ if @api_client.config.client_side_validation && integrationId.nil?
+ fail ArgumentError, "Missing the required parameter 'integrationId' when calling IntegrationApi.get_integration_menu"
end
# resource path
- local_var_path = "/v1.1/apps/{appId}/integrations/{integrationId}/menu".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'integrationId' + '}', integration_id.to_s)
+ local_var_path = "/v1.1/apps/{appId}/integrations/{integrationId}/menu".sub('{' + 'appId' + '}', appId.to_s).sub('{' + 'integrationId' + '}', integrationId.to_s)
# query parameters
query_params = {}
# header parameters
@@ -390,35 +390,35 @@
return data, status_code, headers
end
#
# List integrations for the specified app.
- # @param app_id Identifies the app.
+ # @param appId Identifies the app.
# @param [Hash] opts the optional parameters
# @option opts [String] :types List of types to filter the query by. More than one value can be specified through comma separation e.g. ?types=*twilio*,*line*.
# @return [ListIntegrationsResponse]
- def list_integrations(app_id, opts = {})
- data, _status_code, _headers = list_integrations_with_http_info(app_id, opts)
+ def list_integrations(appId, opts = {})
+ data, _status_code, _headers = list_integrations_with_http_info(appId, opts)
return data
end
#
# List integrations for the specified app.
- # @param app_id Identifies the app.
+ # @param appId Identifies the app.
# @param [Hash] opts the optional parameters
# @option opts [String] :types List of types to filter the query by. More than one value can be specified through comma separation e.g. ?types=*twilio*,*line*.
# @return [Array<(ListIntegrationsResponse, Fixnum, Hash)>] ListIntegrationsResponse data, response status code and response headers
- def list_integrations_with_http_info(app_id, opts = {})
+ def list_integrations_with_http_info(appId, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: IntegrationApi.list_integrations ..."
end
- # verify the required parameter 'app_id' is set
- if @api_client.config.client_side_validation && app_id.nil?
- fail ArgumentError, "Missing the required parameter 'app_id' when calling IntegrationApi.list_integrations"
+ # verify the required parameter 'appId' is set
+ if @api_client.config.client_side_validation && appId.nil?
+ fail ArgumentError, "Missing the required parameter 'appId' when calling IntegrationApi.list_integrations"
end
# resource path
- local_var_path = "/v1.1/apps/{appId}/integrations".sub('{' + 'appId' + '}', app_id.to_s)
+ local_var_path = "/v1.1/apps/{appId}/integrations".sub('{' + 'appId' + '}', appId.to_s)
# query parameters
query_params = {}
query_params[:'types'] = opts[:'types'] if !opts[:'types'].nil?
@@ -448,45 +448,45 @@
return data, status_code, headers
end
#
# Update the specified integration.
- # @param app_id Identifies the app.
- # @param integration_id Identifies the integration.
- # @param integration_update_body Body for a updateIntegration request. Additional arguments are necessary based on integration type. For detailed instructions, visit our [official docs](https://docs.smooch.io/rest/#create-integration)
+ # @param appId Identifies the app.
+ # @param integrationId Identifies the integration.
+ # @param integrationUpdateBody Body for a updateIntegration request. Additional arguments are necessary based on integration type. For detailed instructions, visit our [official docs](https://docs.smooch.io/rest/#create-integration)
# @param [Hash] opts the optional parameters
# @return [IntegrationResponse]
- def update_integration(app_id, integration_id, integration_update_body, opts = {})
- data, _status_code, _headers = update_integration_with_http_info(app_id, integration_id, integration_update_body, opts)
+ def update_integration(appId, integrationId, integrationUpdateBody, opts = {})
+ data, _status_code, _headers = update_integration_with_http_info(appId, integrationId, integrationUpdateBody, opts)
return data
end
#
# Update the specified integration.
- # @param app_id Identifies the app.
- # @param integration_id Identifies the integration.
- # @param integration_update_body Body for a updateIntegration request. Additional arguments are necessary based on integration type. For detailed instructions, visit our [official docs](https://docs.smooch.io/rest/#create-integration)
+ # @param appId Identifies the app.
+ # @param integrationId Identifies the integration.
+ # @param integrationUpdateBody Body for a updateIntegration request. Additional arguments are necessary based on integration type. For detailed instructions, visit our [official docs](https://docs.smooch.io/rest/#create-integration)
# @param [Hash] opts the optional parameters
# @return [Array<(IntegrationResponse, Fixnum, Hash)>] IntegrationResponse data, response status code and response headers
- def update_integration_with_http_info(app_id, integration_id, integration_update_body, opts = {})
+ def update_integration_with_http_info(appId, integrationId, integrationUpdateBody, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: IntegrationApi.update_integration ..."
end
- # verify the required parameter 'app_id' is set
- if @api_client.config.client_side_validation && app_id.nil?
- fail ArgumentError, "Missing the required parameter 'app_id' when calling IntegrationApi.update_integration"
+ # verify the required parameter 'appId' is set
+ if @api_client.config.client_side_validation && appId.nil?
+ fail ArgumentError, "Missing the required parameter 'appId' when calling IntegrationApi.update_integration"
end
- # verify the required parameter 'integration_id' is set
- if @api_client.config.client_side_validation && integration_id.nil?
- fail ArgumentError, "Missing the required parameter 'integration_id' when calling IntegrationApi.update_integration"
+ # verify the required parameter 'integrationId' is set
+ if @api_client.config.client_side_validation && integrationId.nil?
+ fail ArgumentError, "Missing the required parameter 'integrationId' when calling IntegrationApi.update_integration"
end
- # verify the required parameter 'integration_update_body' is set
- if @api_client.config.client_side_validation && integration_update_body.nil?
- fail ArgumentError, "Missing the required parameter 'integration_update_body' when calling IntegrationApi.update_integration"
+ # verify the required parameter 'integrationUpdateBody' is set
+ if @api_client.config.client_side_validation && integrationUpdateBody.nil?
+ fail ArgumentError, "Missing the required parameter 'integrationUpdateBody' when calling IntegrationApi.update_integration"
end
# resource path
- local_var_path = "/v1.1/apps/{appId}/integrations/{integrationId}".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'integrationId' + '}', integration_id.to_s)
+ local_var_path = "/v1.1/apps/{appId}/integrations/{integrationId}".sub('{' + 'appId' + '}', appId.to_s).sub('{' + 'integrationId' + '}', integrationId.to_s)
# query parameters
query_params = {}
# header parameters
@@ -498,11 +498,11 @@
# form parameters
form_params = {}
# http body (model)
- post_body = @api_client.object_to_http_body(integration_update_body)
+ post_body = @api_client.object_to_http_body(integrationUpdateBody)
auth_names = ['jwt']
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
@@ -515,45 +515,45 @@
return data, status_code, headers
end
#
# Update the specified integration’s menu.
- # @param app_id Identifies the app.
- # @param integration_id Identifies the integration.
- # @param menu_update_body Body for a updateMenu request.
+ # @param appId Identifies the app.
+ # @param integrationId Identifies the integration.
+ # @param menuUpdateBody Body for a updateMenu request.
# @param [Hash] opts the optional parameters
# @return [MenuResponse]
- def update_integration_menu(app_id, integration_id, menu_update_body, opts = {})
- data, _status_code, _headers = update_integration_menu_with_http_info(app_id, integration_id, menu_update_body, opts)
+ def update_integration_menu(appId, integrationId, menuUpdateBody, opts = {})
+ data, _status_code, _headers = update_integration_menu_with_http_info(appId, integrationId, menuUpdateBody, opts)
return data
end
#
# Update the specified integration’s menu.
- # @param app_id Identifies the app.
- # @param integration_id Identifies the integration.
- # @param menu_update_body Body for a updateMenu request.
+ # @param appId Identifies the app.
+ # @param integrationId Identifies the integration.
+ # @param menuUpdateBody Body for a updateMenu request.
# @param [Hash] opts the optional parameters
# @return [Array<(MenuResponse, Fixnum, Hash)>] MenuResponse data, response status code and response headers
- def update_integration_menu_with_http_info(app_id, integration_id, menu_update_body, opts = {})
+ def update_integration_menu_with_http_info(appId, integrationId, menuUpdateBody, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: IntegrationApi.update_integration_menu ..."
end
- # verify the required parameter 'app_id' is set
- if @api_client.config.client_side_validation && app_id.nil?
- fail ArgumentError, "Missing the required parameter 'app_id' when calling IntegrationApi.update_integration_menu"
+ # verify the required parameter 'appId' is set
+ if @api_client.config.client_side_validation && appId.nil?
+ fail ArgumentError, "Missing the required parameter 'appId' when calling IntegrationApi.update_integration_menu"
end
- # verify the required parameter 'integration_id' is set
- if @api_client.config.client_side_validation && integration_id.nil?
- fail ArgumentError, "Missing the required parameter 'integration_id' when calling IntegrationApi.update_integration_menu"
+ # verify the required parameter 'integrationId' is set
+ if @api_client.config.client_side_validation && integrationId.nil?
+ fail ArgumentError, "Missing the required parameter 'integrationId' when calling IntegrationApi.update_integration_menu"
end
- # verify the required parameter 'menu_update_body' is set
- if @api_client.config.client_side_validation && menu_update_body.nil?
- fail ArgumentError, "Missing the required parameter 'menu_update_body' when calling IntegrationApi.update_integration_menu"
+ # verify the required parameter 'menuUpdateBody' is set
+ if @api_client.config.client_side_validation && menuUpdateBody.nil?
+ fail ArgumentError, "Missing the required parameter 'menuUpdateBody' when calling IntegrationApi.update_integration_menu"
end
# resource path
- local_var_path = "/v1.1/apps/{appId}/integrations/{integrationId}/menu".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'integrationId' + '}', integration_id.to_s)
+ local_var_path = "/v1.1/apps/{appId}/integrations/{integrationId}/menu".sub('{' + 'appId' + '}', appId.to_s).sub('{' + 'integrationId' + '}', integrationId.to_s)
# query parameters
query_params = {}
# header parameters
@@ -565,11 +565,11 @@
# form parameters
form_params = {}
# http body (model)
- post_body = @api_client.object_to_http_body(menu_update_body)
+ post_body = @api_client.object_to_http_body(menuUpdateBody)
auth_names = ['jwt']
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
@@ -582,45 +582,45 @@
return data, status_code, headers
end
#
# Update the specified integration’s profile.
- # @param app_id Identifies the app.
- # @param integration_id Identifies the integration.
- # @param integration_profile_body Body for a profileUpdate request.
+ # @param appId Identifies the app.
+ # @param integrationId Identifies the integration.
+ # @param integrationProfileBody Body for a profileUpdate request.
# @param [Hash] opts the optional parameters
# @return [nil]
- def update_integration_profile(app_id, integration_id, integration_profile_body, opts = {})
- update_integration_profile_with_http_info(app_id, integration_id, integration_profile_body, opts)
+ def update_integration_profile(appId, integrationId, integrationProfileBody, opts = {})
+ update_integration_profile_with_http_info(appId, integrationId, integrationProfileBody, opts)
return nil
end
#
# Update the specified integration’s profile.
- # @param app_id Identifies the app.
- # @param integration_id Identifies the integration.
- # @param integration_profile_body Body for a profileUpdate request.
+ # @param appId Identifies the app.
+ # @param integrationId Identifies the integration.
+ # @param integrationProfileBody Body for a profileUpdate request.
# @param [Hash] opts the optional parameters
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
- def update_integration_profile_with_http_info(app_id, integration_id, integration_profile_body, opts = {})
+ def update_integration_profile_with_http_info(appId, integrationId, integrationProfileBody, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: IntegrationApi.update_integration_profile ..."
end
- # verify the required parameter 'app_id' is set
- if @api_client.config.client_side_validation && app_id.nil?
- fail ArgumentError, "Missing the required parameter 'app_id' when calling IntegrationApi.update_integration_profile"
+ # verify the required parameter 'appId' is set
+ if @api_client.config.client_side_validation && appId.nil?
+ fail ArgumentError, "Missing the required parameter 'appId' when calling IntegrationApi.update_integration_profile"
end
- # verify the required parameter 'integration_id' is set
- if @api_client.config.client_side_validation && integration_id.nil?
- fail ArgumentError, "Missing the required parameter 'integration_id' when calling IntegrationApi.update_integration_profile"
+ # verify the required parameter 'integrationId' is set
+ if @api_client.config.client_side_validation && integrationId.nil?
+ fail ArgumentError, "Missing the required parameter 'integrationId' when calling IntegrationApi.update_integration_profile"
end
- # verify the required parameter 'integration_profile_body' is set
- if @api_client.config.client_side_validation && integration_profile_body.nil?
- fail ArgumentError, "Missing the required parameter 'integration_profile_body' when calling IntegrationApi.update_integration_profile"
+ # verify the required parameter 'integrationProfileBody' is set
+ if @api_client.config.client_side_validation && integrationProfileBody.nil?
+ fail ArgumentError, "Missing the required parameter 'integrationProfileBody' when calling IntegrationApi.update_integration_profile"
end
# resource path
- local_var_path = "/v1.1/apps/{appId}/integrations/{integrationId}/profile".sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'integrationId' + '}', integration_id.to_s)
+ local_var_path = "/v1.1/apps/{appId}/integrations/{integrationId}/profile".sub('{' + 'appId' + '}', appId.to_s).sub('{' + 'integrationId' + '}', integrationId.to_s)
# query parameters
query_params = {}
# header parameters
@@ -632,10 +632,10 @@
# form parameters
form_params = {}
# http body (model)
- post_body = @api_client.object_to_http_body(integration_profile_body)
+ post_body = @api_client.object_to_http_body(integrationProfileBody)
auth_names = ['jwt']
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,