lib/fastly/api/logging_kafka_api.rb in fastly-6.0.2 vs lib/fastly/api/logging_kafka_api.rb in fastly-7.0.0
- old
+ new
@@ -21,13 +21,13 @@
# Create a Kafka logging endpoint for a particular service and version.
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
# @option opts [Integer] :version_id Integer identifying a service version. (required)
# @option opts [String] :name The name for the real-time logging configuration.
# @option opts [String] :placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`.
- # @option opts [Integer] :format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (default to FORMAT_VERSION::v2)
# @option opts [String] :response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute.
# @option opts [String] :format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (default to '%h %l %u %t \"%r\" %>s %b')
+ # @option opts [Integer] :format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (default to FORMAT_VERSION::v2)
# @option opts [String] :tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (default to 'null')
# @option opts [String] :tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. (default to 'null')
# @option opts [String] :tls_client_key The client private key used to make authenticated requests. Must be in PEM format. (default to 'null')
# @option opts [String] :tls_hostname The hostname to verify the server's certificate. This should be one of the Subject Alternative Name (SAN) fields for the certificate. Common Names (CN) are not supported. (default to 'null')
# @option opts [String] :topic The Kafka topic to send logs to. Required.
@@ -38,11 +38,11 @@
# @option opts [Boolean] :parse_log_keyvals Enables parsing of key=value tuples from the beginning of a logline, turning them into [record headers](https://cwiki.apache.org/confluence/display/KAFKA/KIP-82+-+Add+Record+Headers).
# @option opts [String] :auth_method SASL authentication method.
# @option opts [String] :user SASL user.
# @option opts [String] :password SASL password.
# @option opts [LoggingUseTls] :use_tls (default to 0)
- # @return [LoggingKafkaResponse]
+ # @return [LoggingKafkaResponsePost]
def create_log_kafka(opts = {})
data, _status_code, _headers = create_log_kafka_with_http_info(opts)
data
end
@@ -50,13 +50,13 @@
# Create a Kafka logging endpoint for a particular service and version.
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
# @option opts [Integer] :version_id Integer identifying a service version. (required)
# @option opts [String] :name The name for the real-time logging configuration.
# @option opts [String] :placement Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`.
- # @option opts [Integer] :format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (default to FORMAT_VERSION::v2)
# @option opts [String] :response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute.
# @option opts [String] :format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (default to '%h %l %u %t \"%r\" %>s %b')
+ # @option opts [Integer] :format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (default to FORMAT_VERSION::v2)
# @option opts [String] :tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (default to 'null')
# @option opts [String] :tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. (default to 'null')
# @option opts [String] :tls_client_key The client private key used to make authenticated requests. Must be in PEM format. (default to 'null')
# @option opts [String] :tls_hostname The hostname to verify the server's certificate. This should be one of the Subject Alternative Name (SAN) fields for the certificate. Common Names (CN) are not supported. (default to 'null')
# @option opts [String] :topic The Kafka topic to send logs to. Required.
@@ -67,11 +67,11 @@
# @option opts [Boolean] :parse_log_keyvals Enables parsing of key=value tuples from the beginning of a logline, turning them into [record headers](https://cwiki.apache.org/confluence/display/KAFKA/KIP-82+-+Add+Record+Headers).
# @option opts [String] :auth_method SASL authentication method.
# @option opts [String] :user SASL user.
# @option opts [String] :password SASL password.
# @option opts [LoggingUseTls] :use_tls (default to 0)
- # @return [Array<(LoggingKafkaResponse, Integer, Hash)>] LoggingKafkaResponse data, response status code and response headers
+ # @return [Array<(LoggingKafkaResponsePost, Integer, Hash)>] LoggingKafkaResponsePost data, response status code and response headers
def create_log_kafka_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: LoggingKafkaApi.create_log_kafka ...'
end
# unbox the parameters from the hash
@@ -123,13 +123,13 @@
# form parameters
form_params = opts[:form_params] || {}
form_params['name'] = opts[:'name'] if !opts[:'name'].nil?
form_params['placement'] = opts[:'placement'] if !opts[:'placement'].nil?
- form_params['format_version'] = opts[:'format_version'] if !opts[:'format_version'].nil?
form_params['response_condition'] = opts[:'response_condition'] if !opts[:'response_condition'].nil?
form_params['format'] = opts[:'format'] if !opts[:'format'].nil?
+ form_params['format_version'] = opts[:'format_version'] if !opts[:'format_version'].nil?
form_params['tls_ca_cert'] = opts[:'tls_ca_cert'] if !opts[:'tls_ca_cert'].nil?
form_params['tls_client_cert'] = opts[:'tls_client_cert'] if !opts[:'tls_client_cert'].nil?
form_params['tls_client_key'] = opts[:'tls_client_key'] if !opts[:'tls_client_key'].nil?
form_params['tls_hostname'] = opts[:'tls_hostname'] if !opts[:'tls_hostname'].nil?
form_params['topic'] = opts[:'topic'] if !opts[:'topic'].nil?
@@ -145,10 +145,10 @@
# http body (model)
post_body = opts[:debug_body]
# return_type
- return_type = opts[:debug_return_type] || 'LoggingKafkaResponse'
+ return_type = opts[:debug_return_type] || 'LoggingKafkaResponsePost'
# auth_names
auth_names = opts[:debug_auth_names] || ['token']
new_options = opts.merge(