lib/fastly/api/logging_logshuttle_api.rb in fastly-6.0.2 vs lib/fastly/api/logging_logshuttle_api.rb in fastly-7.0.0
- old
+ new
@@ -21,13 +21,13 @@
# Create a Log Shuttle 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] :token The data authentication token associated with this endpoint.
# @option opts [String] :url The URL to stream logs to.
# @return [LoggingLogshuttleResponse]
def create_log_logshuttle(opts = {})
data, _status_code, _headers = create_log_logshuttle_with_http_info(opts)
@@ -38,13 +38,13 @@
# Create a Log Shuttle 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] :token The data authentication token associated with this endpoint.
# @option opts [String] :url The URL to stream logs to.
# @return [Array<(LoggingLogshuttleResponse, Integer, Hash)>] LoggingLogshuttleResponse data, response status code and response headers
def create_log_logshuttle_with_http_info(opts = {})
if @api_client.config.debugging
@@ -87,13 +87,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['token'] = opts[:'token'] if !opts[:'token'].nil?
form_params['url'] = opts[:'url'] if !opts[:'url'].nil?
# http body (model)
post_body = opts[:debug_body]
@@ -350,13 +350,13 @@
# @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] :logging_logshuttle_name The name for the real-time logging configuration. (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] :token The data authentication token associated with this endpoint.
# @option opts [String] :url The URL to stream logs to.
# @return [LoggingLogshuttleResponse]
def update_log_logshuttle(opts = {})
data, _status_code, _headers = update_log_logshuttle_with_http_info(opts)
@@ -368,13 +368,13 @@
# @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] :logging_logshuttle_name The name for the real-time logging configuration. (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] :token The data authentication token associated with this endpoint.
# @option opts [String] :url The URL to stream logs to.
# @return [Array<(LoggingLogshuttleResponse, Integer, Hash)>] LoggingLogshuttleResponse data, response status code and response headers
def update_log_logshuttle_with_http_info(opts = {})
if @api_client.config.debugging
@@ -422,12 +422,12 @@
# 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['token'] = opts[:'token'] if !opts[:'token'].nil?
form_params['url'] = opts[:'url'] if !opts[:'url'].nil?
# http body (model)
post_body = opts[:debug_body]