lib/fastly/api/snippet_api.rb in fastly-5.1.0 vs lib/fastly/api/snippet_api.rb in fastly-5.1.1
- old
+ new
@@ -23,11 +23,11 @@
# @option opts [Integer] :version_id Integer identifying a service version. (required)
# @option opts [String] :name The name for the snippet.
# @option opts [Integer] :dynamic Sets the snippet version.
# @option opts [String] :type The location in generated VCL where the snippet should be placed.
# @option opts [String] :content The VCL code that specifies exactly what the snippet does.
- # @option opts [Integer] :priority Priority determines execution order. Lower numbers execute first. (default to 100)
+ # @option opts [String] :priority Priority determines execution order. Lower numbers execute first. (default to '100')
# @return [SnippetResponse]
def create_snippet(opts = {})
data, _status_code, _headers = create_snippet_with_http_info(opts)
data
end
@@ -38,11 +38,11 @@
# @option opts [Integer] :version_id Integer identifying a service version. (required)
# @option opts [String] :name The name for the snippet.
# @option opts [Integer] :dynamic Sets the snippet version.
# @option opts [String] :type The location in generated VCL where the snippet should be placed.
# @option opts [String] :content The VCL code that specifies exactly what the snippet does.
- # @option opts [Integer] :priority Priority determines execution order. Lower numbers execute first. (default to 100)
+ # @option opts [String] :priority Priority determines execution order. Lower numbers execute first. (default to '100')
# @return [Array<(SnippetResponse, Integer, Hash)>] SnippetResponse data, response status code and response headers
def create_snippet_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: SnippetApi.create_snippet ...'
end
@@ -415,11 +415,11 @@
# @option opts [String] :snippet_id Alphanumeric string identifying a VCL Snippet. (required)
# @option opts [String] :name The name for the snippet.
# @option opts [Integer] :dynamic Sets the snippet version.
# @option opts [String] :type The location in generated VCL where the snippet should be placed.
# @option opts [String] :content The VCL code that specifies exactly what the snippet does.
- # @option opts [Integer] :priority Priority determines execution order. Lower numbers execute first. (default to 100)
+ # @option opts [String] :priority Priority determines execution order. Lower numbers execute first. (default to '100')
# @return [SnippetResponse]
def update_snippet_dynamic(opts = {})
data, _status_code, _headers = update_snippet_dynamic_with_http_info(opts)
data
end
@@ -430,10 +430,10 @@
# @option opts [String] :snippet_id Alphanumeric string identifying a VCL Snippet. (required)
# @option opts [String] :name The name for the snippet.
# @option opts [Integer] :dynamic Sets the snippet version.
# @option opts [String] :type The location in generated VCL where the snippet should be placed.
# @option opts [String] :content The VCL code that specifies exactly what the snippet does.
- # @option opts [Integer] :priority Priority determines execution order. Lower numbers execute first. (default to 100)
+ # @option opts [String] :priority Priority determines execution order. Lower numbers execute first. (default to '100')
# @return [Array<(SnippetResponse, Integer, Hash)>] SnippetResponse data, response status code and response headers
def update_snippet_dynamic_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: SnippetApi.update_snippet_dynamic ...'
end