lib/hubspot/codegen/webhooks/api/settings_api.rb in hubspot-api-client-11.2.0 vs lib/hubspot/codegen/webhooks/api/settings_api.rb in hubspot-api-client-12.0.0
- old
+ new
@@ -18,23 +18,19 @@
attr_accessor :api_client
def initialize(api_client = ApiClient.default)
@api_client = api_client
end
- # Clear webhook settings
- # Resets webhook target URL to empty, and max concurrency limit to `0` for the given app. This will effectively pause all webhook subscriptions until new settings are provided.
- # @param app_id [Integer] The ID of the target app.
+ # @param app_id [Integer]
# @param [Hash] opts the optional parameters
# @return [nil]
def clear(app_id, opts = {})
clear_with_http_info(app_id, opts)
nil
end
- # Clear webhook settings
- # Resets webhook target URL to empty, and max concurrency limit to `0` for the given app. This will effectively pause all webhook subscriptions until new settings are provided.
- # @param app_id [Integer] The ID of the target app.
+ # @param app_id [Integer]
# @param [Hash] opts the optional parameters
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
def clear_with_http_info(app_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: SettingsApi.clear ...'
@@ -62,11 +58,11 @@
# return_type
return_type = opts[:return_type]
# auth_names
- auth_names = opts[:auth_names] || ['hapikey']
+ auth_names = opts[:auth_names] || ['developer_hapikey']
new_options = opts.merge(
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
@@ -80,25 +76,21 @@
@api_client.config.logger.debug "API called: SettingsApi#clear\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end
- # Configure webhook settings
- # Used to set the webhook target URL and max concurrency limit for the given app.
- # @param app_id [Integer] The ID of the target app.
- # @param settings_change_request [SettingsChangeRequest] Settings state to create new with or replace existing settings with.
+ # @param app_id [Integer]
+ # @param settings_change_request [SettingsChangeRequest]
# @param [Hash] opts the optional parameters
# @return [SettingsResponse]
def configure(app_id, settings_change_request, opts = {})
data, _status_code, _headers = configure_with_http_info(app_id, settings_change_request, opts)
data
end
- # Configure webhook settings
- # Used to set the webhook target URL and max concurrency limit for the given app.
- # @param app_id [Integer] The ID of the target app.
- # @param settings_change_request [SettingsChangeRequest] Settings state to create new with or replace existing settings with.
+ # @param app_id [Integer]
+ # @param settings_change_request [SettingsChangeRequest]
# @param [Hash] opts the optional parameters
# @return [Array<(SettingsResponse, Integer, Hash)>] SettingsResponse data, response status code and response headers
def configure_with_http_info(app_id, settings_change_request, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: SettingsApi.configure ...'
@@ -132,11 +124,11 @@
# return_type
return_type = opts[:return_type] || 'SettingsResponse'
# auth_names
- auth_names = opts[:auth_names] || ['hapikey']
+ auth_names = opts[:auth_names] || ['developer_hapikey']
new_options = opts.merge(
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
@@ -150,23 +142,19 @@
@api_client.config.logger.debug "API called: SettingsApi#configure\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end
- # Get webhook settings
- # Returns the current state of webhook settings for the given app. These settings include the app's configured target URL and max concurrency limit.
- # @param app_id [Integer] The ID of the target app.
+ # @param app_id [Integer]
# @param [Hash] opts the optional parameters
# @return [SettingsResponse]
def get_all(app_id, opts = {})
data, _status_code, _headers = get_all_with_http_info(app_id, opts)
data
end
- # Get webhook settings
- # Returns the current state of webhook settings for the given app. These settings include the app's configured target URL and max concurrency limit.
- # @param app_id [Integer] The ID of the target app.
+ # @param app_id [Integer]
# @param [Hash] opts the optional parameters
# @return [Array<(SettingsResponse, Integer, Hash)>] SettingsResponse data, response status code and response headers
def get_all_with_http_info(app_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: SettingsApi.get_all ...'
@@ -194,10 +182,10 @@
# return_type
return_type = opts[:return_type] || 'SettingsResponse'
# auth_names
- auth_names = opts[:auth_names] || ['hapikey']
+ auth_names = opts[:auth_names] || ['developer_hapikey']
new_options = opts.merge(
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,