Sha256: 55ddac3446df9482adb3e612494ba3c28d7e62d48bb352c81dd04e088630de6f

Contents?: true

Size: 1.05 KB

Versions: 19

Compression:

Stored size: 1.05 KB

Contents

class Fastly
  # VCL Snippets are blocks of VCL logic inserted into your service's configuration that don't require custom VCL.
  class Snippet < BelongsToServiceAndVersion
    attr_accessor :id, :service_id, :name, :dynamic, :type, :content, :priority
    ##
    # :attr: id
    #
    # The id of the snippet (useful for dynamic snippet reference)
    #

    ##
    # :attr: service_id
    #
    # The id of the service this belongs to.
    #

    ##
    # :attr: name
    #
    # The name of the uploaded VCL snippet.
    #

    ##
    # :attr: version
    #
    # The number of the version this belongs to.
    #

    ##
    # :attr: dynamic
    #
    # Sets the snippet version to regular (0) or dynamic (1).
    #

    ##
    # :attr: type
    #
    # The location in generated VCL where the snippet should be placed.
    #

    ##
    # :attr: content
    #
    # The VCL code that specifies exactly what the snippet does
    #

    ##
    # :attr: priority
    #
    # Priority determines the ordering for multiple snippets. Lower numbers execute first.
    #
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
fastly-3.0.2 lib/fastly/snippet.rb
fastly-3.0.1 lib/fastly/snippet.rb
fastly-3.0.0 lib/fastly/snippet.rb
fastly-2.5.3 lib/fastly/snippet.rb
fastly-2.5.2 lib/fastly/snippet.rb
fastly-2.5.1 lib/fastly/snippet.rb
fastly-2.5.0 lib/fastly/snippet.rb
fastly-2.4.0 lib/fastly/snippet.rb
fastly-2.3.1 lib/fastly/snippet.rb
fastly-2.3.0 lib/fastly/snippet.rb
fastly-2.2.0 lib/fastly/snippet.rb
fastly-2.1.0 lib/fastly/snippet.rb
fastly-2.0.0 lib/fastly/snippet.rb
fastly-1.15.0 lib/fastly/snippet.rb
fastly-1.14.0 lib/fastly/snippet.rb
fastly-1.13.2 lib/fastly/snippet.rb
fastly-1.13.1 lib/fastly/snippet.rb
fastly-1.13.0 lib/fastly/snippet.rb
fastly-1.12.0 lib/fastly/snippet.rb