lib/fastly/api/vcl_api.rb in fastly-5.3.0 vs lib/fastly/api/vcl_api.rb in fastly-5.3.1

- old
+ new

@@ -400,21 +400,21 @@ # Get the generated VCL with syntax highlighting # Display the content of generated VCL with HTML syntax highlighting. Include line numbers by sending `lineno=true` as a request parameter. # @option opts [String] :service_id Alphanumeric string identifying the service. (required) # @option opts [Integer] :version_id Integer identifying a service version. (required) - # @return [nil] + # @return [VclSyntaxHighlightingResponse] def get_custom_vcl_generated_highlighted(opts = {}) - get_custom_vcl_generated_highlighted_with_http_info(opts) - nil + data, _status_code, _headers = get_custom_vcl_generated_highlighted_with_http_info(opts) + data end # Get the generated VCL with syntax highlighting # Display the content of generated VCL with HTML syntax highlighting. Include line numbers by sending &#x60;lineno&#x3D;true&#x60; as a request parameter. # @option opts [String] :service_id Alphanumeric string identifying the service. (required) # @option opts [Integer] :version_id Integer identifying a service version. (required) - # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers + # @return [Array<(VclSyntaxHighlightingResponse, Integer, Hash)>] VclSyntaxHighlightingResponse data, response status code and response headers def get_custom_vcl_generated_highlighted_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: VclApi.get_custom_vcl_generated_highlighted ...' end # unbox the parameters from the hash @@ -444,11 +444,11 @@ # http body (model) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] + return_type = opts[:debug_return_type] || 'VclSyntaxHighlightingResponse' # auth_names auth_names = opts[:debug_auth_names] || ['token'] new_options = opts.merge( @@ -471,22 +471,22 @@ # Get a custom VCL file with syntax highlighting # Get the uploaded VCL for a particular service and version with HTML syntax highlighting. Include line numbers by sending `lineno=true` as a request parameter. # @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] :vcl_name The name of this VCL. (required) - # @return [nil] + # @return [VclSyntaxHighlightingResponse] def get_custom_vcl_highlighted(opts = {}) - get_custom_vcl_highlighted_with_http_info(opts) - nil + data, _status_code, _headers = get_custom_vcl_highlighted_with_http_info(opts) + data end # Get a custom VCL file with syntax highlighting # Get the uploaded VCL for a particular service and version with HTML syntax highlighting. Include line numbers by sending &#x60;lineno&#x3D;true&#x60; as a request parameter. # @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] :vcl_name The name of this VCL. (required) - # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers + # @return [Array<(VclSyntaxHighlightingResponse, Integer, Hash)>] VclSyntaxHighlightingResponse data, response status code and response headers def get_custom_vcl_highlighted_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: VclApi.get_custom_vcl_highlighted ...' end # unbox the parameters from the hash @@ -521,10 +521,10 @@ # http body (model) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] + return_type = opts[:debug_return_type] || 'VclSyntaxHighlightingResponse' # auth_names auth_names = opts[:debug_auth_names] || ['token'] new_options = opts.merge(