Sha256: 5b1e25fa2b65311e122deca8008a19ac7a7ada66a7e0d65957c126a0be128539

Contents?: true

Size: 1.29 KB

Versions: 2

Compression:

Stored size: 1.29 KB

Contents

module KineticSdk
  class Task

    # Export all structure definitions to `export_directory`.
    #
    # Exports the following items:
    #
    # * sources
    # * trees
    # * routines
    # * handlers
    # * groups
    # * policy rules
    # * categories
    # * access keys
    #
    # @param headers [Hash] hash of headers to send, default is basic authentication
    # @return nil
    def export(headers=header_basic_auth)
      export_sources(headers)
      export_trees(nil,headers) # Includes routines when nil passed
      export_handlers(headers)
      export_groups(headers)
      export_policy_rules(headers)
      export_categories(headers)
      export_access_keys(headers)
    end


    # Export all structure definitions except trees and routines to `export_directory`.
    #
    # Exports the following items:
    #
    # * sources
    # * handlers
    # * groups
    # * policy rules
    # * categories
    # * access keys
    #
    # @param headers [Hash] hash of headers to send, default is basic authentication
    # @rbuneturn nil
    def export_all_except_trees(headers=header_basic_auth)
      export_sources(headers)
      export_handlers(headers)
      export_groups(headers)
      export_policy_rules(headers)
      export_categories(headers)
      export_access_keys(headers)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
kinetic_sdk-5.0.21 lib/kinetic_sdk/task/lib/export.rb
kinetic_sdk-5.0.20 lib/kinetic_sdk/task/lib/export.rb