files.com 1.1.121 → 1.1.122
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
 - data/_VERSION +1 -1
 - data/docs/file.md +2 -0
 - data/docs/folder.md +1 -0
 - data/lib/files.com/models/file.rb +4 -0
 - data/lib/files.com/models/folder.rb +2 -0
 - data/lib/files.com/version.rb +1 -1
 - metadata +1 -1
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: a1a53a2c59353753b7e4dd055551fcfd38dc92cff2ab062e73acc5f7c081c7db
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: c02c359ea3171f4b49ffe87d3a8a49f1824f226a09dacee8217076e4b929a517
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 6d6bdbb9a2d5fb65e50ee1e1e8ecb72c404556dce96080be39d4d71a3d39430ef2649e0625a74f5bf14e73c9da7e307cef0f9d6c915a6d759165405c97267453
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 920ae0bd2aa5fbf5a10af55e98d5a73f20108f78bff0ddeba3c1c6ad1b1f5b14c25e583b9f55ba11b1bc2355d0578459410a67397067ebbd3836db02c768951d
         
     | 
    
        data/_VERSION
    CHANGED
    
    | 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            1.1. 
     | 
| 
      
 1 
     | 
    
         
            +
            1.1.122
         
     | 
    
        data/docs/file.md
    CHANGED
    
    | 
         @@ -113,6 +113,7 @@ Files::File.download(path, 
     | 
|
| 
       113 
113 
     | 
    
         
             
            * `preview_size` (string): Request a preview size.  Can be `small` (default), `large`, `xlarge`, or `pdf`.
         
     | 
| 
       114 
114 
     | 
    
         
             
            * `with_previews` (boolean): Include file preview information?
         
     | 
| 
       115 
115 
     | 
    
         
             
            * `with_priority_color` (boolean): Include file priority color information?
         
     | 
| 
      
 116 
     | 
    
         
            +
            * `point_in_time` (string): Point in time to view the folder. Available only on remote server mounts for S3 with versioned buckets.
         
     | 
| 
       116 
117 
     | 
    
         | 
| 
       117 
118 
     | 
    
         | 
| 
       118 
119 
     | 
    
         
             
            ---
         
     | 
| 
         @@ -291,6 +292,7 @@ file.download( 
     | 
|
| 
       291 
292 
     | 
    
         
             
            * `preview_size` (string): Request a preview size.  Can be `small` (default), `large`, `xlarge`, or `pdf`.
         
     | 
| 
       292 
293 
     | 
    
         
             
            * `with_previews` (boolean): Include file preview information?
         
     | 
| 
       293 
294 
     | 
    
         
             
            * `with_priority_color` (boolean): Include file priority color information?
         
     | 
| 
      
 295 
     | 
    
         
            +
            * `point_in_time` (string): Point in time to view the folder. Available only on remote server mounts for S3 with versioned buckets.
         
     | 
| 
       294 
296 
     | 
    
         | 
| 
       295 
297 
     | 
    
         | 
| 
       296 
298 
     | 
    
         
             
            ---
         
     | 
    
        data/docs/folder.md
    CHANGED
    
    | 
         @@ -113,6 +113,7 @@ Files::Folder.list_for(path, 
     | 
|
| 
       113 
113 
     | 
    
         
             
            * `search_all` (boolean): Search entire site?  If set, we will ignore the folder path provided and search the entire site.  This is the same API used by the search bar in the UI.  Search results are a best effort, not real time, and not guaranteed to match every file.  This field should only be used for ad-hoc (human) searching, and not as part of an automated process.
         
     | 
| 
       114 
114 
     | 
    
         
             
            * `with_previews` (boolean): Include file previews?
         
     | 
| 
       115 
115 
     | 
    
         
             
            * `with_priority_color` (boolean): Include file priority color information?
         
     | 
| 
      
 116 
     | 
    
         
            +
            * `point_in_time` (string): Point in time to view the folder. Available only on remote server mounts for S3 with versioned buckets.
         
     | 
| 
       116 
117 
     | 
    
         | 
| 
       117 
118 
     | 
    
         | 
| 
       118 
119 
     | 
    
         
             
            ---
         
     | 
| 
         @@ -947,6 +947,7 @@ module Files 
     | 
|
| 
       947 
947 
     | 
    
         
             
                #   preview_size - string - Request a preview size.  Can be `small` (default), `large`, `xlarge`, or `pdf`.
         
     | 
| 
       948 
948 
     | 
    
         
             
                #   with_previews - boolean - Include file preview information?
         
     | 
| 
       949 
949 
     | 
    
         
             
                #   with_priority_color - boolean - Include file priority color information?
         
     | 
| 
      
 950 
     | 
    
         
            +
                #   point_in_time - string - Point in time to view the folder. Available only on remote server mounts for S3 with versioned buckets.
         
     | 
| 
       950 
951 
     | 
    
         
             
                def download(params = {})
         
     | 
| 
       951 
952 
     | 
    
         
             
                  params ||= {}
         
     | 
| 
       952 
953 
     | 
    
         
             
                  params[:path] = @attributes[:path]
         
     | 
| 
         @@ -954,6 +955,7 @@ module Files 
     | 
|
| 
       954 
955 
     | 
    
         
             
                  raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
         
     | 
| 
       955 
956 
     | 
    
         
             
                  raise InvalidParameterError.new("Bad parameter: action must be an String") if params[:action] and !params[:action].is_a?(String)
         
     | 
| 
       956 
957 
     | 
    
         
             
                  raise InvalidParameterError.new("Bad parameter: preview_size must be an String") if params[:preview_size] and !params[:preview_size].is_a?(String)
         
     | 
| 
      
 958 
     | 
    
         
            +
                  raise InvalidParameterError.new("Bad parameter: point_in_time must be an String") if params[:point_in_time] and !params[:point_in_time].is_a?(String)
         
     | 
| 
       957 
959 
     | 
    
         
             
                  raise MissingParameterError.new("Parameter missing: path") unless params[:path]
         
     | 
| 
       958 
960 
     | 
    
         | 
| 
       959 
961 
     | 
    
         
             
                  Api.send_request("/files/#{@attributes[:path]}", :get, params, @options)
         
     | 
| 
         @@ -1065,12 +1067,14 @@ module Files 
     | 
|
| 
       1065 
1067 
     | 
    
         
             
                #   preview_size - string - Request a preview size.  Can be `small` (default), `large`, `xlarge`, or `pdf`.
         
     | 
| 
       1066 
1068 
     | 
    
         
             
                #   with_previews - boolean - Include file preview information?
         
     | 
| 
       1067 
1069 
     | 
    
         
             
                #   with_priority_color - boolean - Include file priority color information?
         
     | 
| 
      
 1070 
     | 
    
         
            +
                #   point_in_time - string - Point in time to view the folder. Available only on remote server mounts for S3 with versioned buckets.
         
     | 
| 
       1068 
1071 
     | 
    
         
             
                def self.download(path, params = {}, options = {})
         
     | 
| 
       1069 
1072 
     | 
    
         
             
                  params ||= {}
         
     | 
| 
       1070 
1073 
     | 
    
         
             
                  params[:path] = path
         
     | 
| 
       1071 
1074 
     | 
    
         
             
                  raise InvalidParameterError.new("Bad parameter: path must be an String") if params[:path] and !params[:path].is_a?(String)
         
     | 
| 
       1072 
1075 
     | 
    
         
             
                  raise InvalidParameterError.new("Bad parameter: action must be an String") if params[:action] and !params[:action].is_a?(String)
         
     | 
| 
       1073 
1076 
     | 
    
         
             
                  raise InvalidParameterError.new("Bad parameter: preview_size must be an String") if params[:preview_size] and !params[:preview_size].is_a?(String)
         
     | 
| 
      
 1077 
     | 
    
         
            +
                  raise InvalidParameterError.new("Bad parameter: point_in_time must be an String") if params[:point_in_time] and !params[:point_in_time].is_a?(String)
         
     | 
| 
       1074 
1078 
     | 
    
         
             
                  raise MissingParameterError.new("Parameter missing: path") unless params[:path]
         
     | 
| 
       1075 
1079 
     | 
    
         | 
| 
       1076 
1080 
     | 
    
         
             
                  response, options = Api.send_request("/files/#{params[:path]}", :get, params, options)
         
     | 
| 
         @@ -469,6 +469,7 @@ module Files 
     | 
|
| 
       469 
469 
     | 
    
         
             
                #   search_all - boolean - Search entire site?  If set, we will ignore the folder path provided and search the entire site.  This is the same API used by the search bar in the UI.  Search results are a best effort, not real time, and not guaranteed to match every file.  This field should only be used for ad-hoc (human) searching, and not as part of an automated process.
         
     | 
| 
       470 
470 
     | 
    
         
             
                #   with_previews - boolean - Include file previews?
         
     | 
| 
       471 
471 
     | 
    
         
             
                #   with_priority_color - boolean - Include file priority color information?
         
     | 
| 
      
 472 
     | 
    
         
            +
                #   point_in_time - string - Point in time to view the folder. Available only on remote server mounts for S3 with versioned buckets.
         
     | 
| 
       472 
473 
     | 
    
         
             
                def self.list_for(path, params = {}, options = {})
         
     | 
| 
       473 
474 
     | 
    
         
             
                  params ||= {}
         
     | 
| 
       474 
475 
     | 
    
         
             
                  params[:path] = path
         
     | 
| 
         @@ -479,6 +480,7 @@ module Files 
     | 
|
| 
       479 
480 
     | 
    
         
             
                  raise InvalidParameterError.new("Bad parameter: preview_size must be an String") if params[:preview_size] and !params[:preview_size].is_a?(String)
         
     | 
| 
       480 
481 
     | 
    
         
             
                  raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params[:sort_by] and !params[:sort_by].is_a?(Hash)
         
     | 
| 
       481 
482 
     | 
    
         
             
                  raise InvalidParameterError.new("Bad parameter: search must be an String") if params[:search] and !params[:search].is_a?(String)
         
     | 
| 
      
 483 
     | 
    
         
            +
                  raise InvalidParameterError.new("Bad parameter: point_in_time must be an String") if params[:point_in_time] and !params[:point_in_time].is_a?(String)
         
     | 
| 
       482 
484 
     | 
    
         
             
                  raise MissingParameterError.new("Parameter missing: path") unless params[:path]
         
     | 
| 
       483 
485 
     | 
    
         | 
| 
       484 
486 
     | 
    
         
             
                  List.new(File, params) do
         
     | 
    
        data/lib/files.com/version.rb
    CHANGED