class GoogleDrive::File
- GoogleDrive::File
 - Reference
 - Object
 
Overview
The metadata for a file.
Included Modules
- JSON::Serializable
 - JSON::Serializable::Unmapped
 - OpenApi::Json
 - OpenApi::Validatable
 
Defined in:
google_drive/models/file.crConstructors
- .new(pull : JSON::PullParser)
 - 
        .new(*, app_properties : Hash(String, String) | Nil = nil, capabilities : GoogleDrive::FileCapabilities | Nil = nil, content_hints : GoogleDrive::FileContentHints | Nil = nil, content_restrictions : Array(GoogleDrive::ContentRestriction) | Nil = nil, copy_requires_writer_permission : Bool | Nil = nil, created_time : Time | Nil = nil, description : String | Nil = nil, drive_id : String | Nil = nil, explicitly_trashed : Bool | Nil = nil, export_links : Hash(String, String) | Nil = nil, file_extension : String | Nil = nil, folder_color_rgb : String | Nil = nil, full_file_extension : String | Nil = nil, has_augmented_permissions : Bool | Nil = nil, has_thumbnail : Bool | Nil = nil, head_revision_id : String | Nil = nil, icon_link : String | Nil = nil, id : String | Nil = nil, image_media_metadata : GoogleDrive::FileImageMediaMetadata | Nil = nil, is_app_authorized : Bool | Nil = nil, kind : String | Nil = "drive#file", label_info : GoogleDrive::FileLabelInfo | Nil = nil, last_modifying_user : GoogleDrive::User | Nil = nil, link_share_metadata : GoogleDrive::FileLinkShareMetadata | Nil = nil, md5_checksum : String | Nil = nil, mime_type : String | Nil = nil, modified_by_me : Bool | Nil = nil, modified_by_me_time : Time | Nil = nil, modified_time : Time | Nil = nil, name : String | Nil = nil, original_filename : String | Nil = nil, owned_by_me : Bool | Nil = nil, owners : Array(GoogleDrive::User) | Nil = nil, parents : Array(String) | Nil = nil, permission_ids : Array(String) | Nil = nil, permissions : Array(GoogleDrive::Permission) | Nil = nil, properties : Hash(String, String) | Nil = nil, quota_bytes_used : String | Nil = nil, resource_key : String | Nil = nil, sha1_checksum : String | Nil = nil, sha256_checksum : String | Nil = nil, shared : Bool | Nil = nil, shared_with_me_time : Time | Nil = nil, sharing_user : GoogleDrive::User | Nil = nil, shortcut_details : GoogleDrive::FileShortcutDetails | Nil = nil, size : String | Nil = nil, spaces : Array(String) | Nil = nil, starred : Bool | Nil = nil, team_drive_id : String | Nil = nil, thumbnail_link : String | Nil = nil, thumbnail_version : String | Nil = nil, trashed : Bool | Nil = nil, trashed_time : Time | Nil = nil, trashing_user : GoogleDrive::User | Nil = nil, version : String | Nil = nil, video_media_metadata : GoogleDrive::FileVideoMediaMetadata | Nil = nil, viewed_by_me : Bool | Nil = nil, viewed_by_me_time : Time | Nil = nil, viewers_can_copy_content : Bool | Nil = nil, web_content_link : String | Nil = nil, web_view_link : String | Nil = nil, writers_can_share : Bool | Nil = nil)
        
          
Initializes the object @param [Hash] attributes Model attributes in the form of hash
 
Instance Method Summary
- 
        #==(other : self)
        
          
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes.
 - #app_properties : Hash(String, String) | Nil
 - 
        #app_properties=(new_value : Hash(String, String) | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #capabilities : GoogleDrive::FileCapabilities | Nil
 - 
        #capabilities=(new_value : GoogleDrive::FileCapabilities | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #content_hints : GoogleDrive::FileContentHints | Nil
 - 
        #content_hints=(new_value : GoogleDrive::FileContentHints | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #content_restrictions : Array(GoogleDrive::ContentRestriction) | Nil
 - 
        #content_restrictions=(new_value : Array(GoogleDrive::ContentRestriction) | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #copy_requires_writer_permission : Bool | Nil
 - 
        #copy_requires_writer_permission=(new_value : Bool | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #created_time : Time | Nil
 - 
        #created_time=(new_value : Time | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #description : String | Nil
 - 
        #description=(new_value : String | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #drive_id : String | Nil
 - 
        #drive_id=(new_value : String | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #explicitly_trashed : Bool | Nil
 - 
        #explicitly_trashed=(new_value : Bool | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #export_links : Hash(String, String) | Nil
 - 
        #export_links=(new_value : Hash(String, String) | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #file_extension : String | Nil
 - 
        #file_extension=(new_value : String | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #folder_color_rgb : String | Nil
 - 
        #folder_color_rgb=(new_value : String | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #full_file_extension : String | Nil
 - 
        #full_file_extension=(new_value : String | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #has_augmented_permissions : Bool | Nil
 - 
        #has_augmented_permissions=(new_value : Bool | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #has_thumbnail : Bool | Nil
 - 
        #has_thumbnail=(new_value : Bool | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - 
        #hash(hasher)
        
          
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes.
 - #head_revision_id : String | Nil
 - 
        #head_revision_id=(new_value : String | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #icon_link : String | Nil
 - 
        #icon_link=(new_value : String | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #id : String | Nil
 - 
        #id=(new_value : String | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #image_media_metadata : GoogleDrive::FileImageMediaMetadata | Nil
 - 
        #image_media_metadata=(new_value : GoogleDrive::FileImageMediaMetadata | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #is_app_authorized : Bool | Nil
 - 
        #is_app_authorized=(new_value : Bool | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #kind : String | Nil
 - 
        #kind=(new_value : String | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #label_info : GoogleDrive::FileLabelInfo | Nil
 - 
        #label_info=(new_value : GoogleDrive::FileLabelInfo | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #last_modifying_user : GoogleDrive::User | Nil
 - 
        #last_modifying_user=(new_value : GoogleDrive::User | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #link_share_metadata : GoogleDrive::FileLinkShareMetadata | Nil
 - 
        #link_share_metadata=(new_value : GoogleDrive::FileLinkShareMetadata | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - 
        #list_invalid_properties : Array(String)
        
          
Show invalid properties with the reasons.
 - #md5_checksum : String | Nil
 - 
        #md5_checksum=(new_value : String | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #mime_type : String | Nil
 - 
        #mime_type=(new_value : String | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #modified_by_me : Bool | Nil
 - 
        #modified_by_me=(new_value : Bool | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #modified_by_me_time : Time | Nil
 - 
        #modified_by_me_time=(new_value : Time | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #modified_time : Time | Nil
 - 
        #modified_time=(new_value : Time | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #name : String | Nil
 - 
        #name=(new_value : String | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #original_filename : String | Nil
 - 
        #original_filename=(new_value : String | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #owned_by_me : Bool | Nil
 - 
        #owned_by_me=(new_value : Bool | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #owners : Array(GoogleDrive::User) | Nil
 - 
        #owners=(new_value : Array(GoogleDrive::User) | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #parents : Array(String) | Nil
 - 
        #parents=(new_value : Array(String) | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #permission_ids : Array(String) | Nil
 - 
        #permission_ids=(new_value : Array(String) | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #permissions : Array(GoogleDrive::Permission) | Nil
 - 
        #permissions=(new_value : Array(GoogleDrive::Permission) | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #properties : Hash(String, String) | Nil
 - 
        #properties=(new_value : Hash(String, String) | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #quota_bytes_used : String | Nil
 - 
        #quota_bytes_used=(new_value : String | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #resource_key : String | Nil
 - 
        #resource_key=(new_value : String | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #sha1_checksum : String | Nil
 - 
        #sha1_checksum=(new_value : String | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #sha256_checksum : String | Nil
 - 
        #sha256_checksum=(new_value : String | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #shared : Bool | Nil
 - 
        #shared=(new_value : Bool | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #shared_with_me_time : Time | Nil
 - 
        #shared_with_me_time=(new_value : Time | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #sharing_user : GoogleDrive::User | Nil
 - 
        #sharing_user=(new_value : GoogleDrive::User | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #shortcut_details : GoogleDrive::FileShortcutDetails | Nil
 - 
        #shortcut_details=(new_value : GoogleDrive::FileShortcutDetails | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #size : String | Nil
 - 
        #size=(new_value : String | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #spaces : Array(String) | Nil
 - 
        #spaces=(new_value : Array(String) | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #starred : Bool | Nil
 - 
        #starred=(new_value : Bool | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #team_drive_id : String | Nil
 - 
        #team_drive_id=(new_value : String | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #thumbnail_link : String | Nil
 - 
        #thumbnail_link=(new_value : String | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #thumbnail_version : String | Nil
 - 
        #thumbnail_version=(new_value : String | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #trashed : Bool | Nil
 - 
        #trashed=(new_value : Bool | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #trashed_time : Time | Nil
 - 
        #trashed_time=(new_value : Time | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #trashing_user : GoogleDrive::User | Nil
 - 
        #trashing_user=(new_value : GoogleDrive::User | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - 
        #valid? : Bool
        
          
Check to see if the all the properties in the model are valid @return true if the model is valid
 - #version : String | Nil
 - 
        #version=(new_value : String | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #video_media_metadata : GoogleDrive::FileVideoMediaMetadata | Nil
 - 
        #video_media_metadata=(new_value : GoogleDrive::FileVideoMediaMetadata | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #viewed_by_me : Bool | Nil
 - 
        #viewed_by_me=(new_value : Bool | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #viewed_by_me_time : Time | Nil
 - 
        #viewed_by_me_time=(new_value : Time | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #viewers_can_copy_content : Bool | Nil
 - 
        #viewers_can_copy_content=(new_value : Bool | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #web_content_link : String | Nil
 - 
        #web_content_link=(new_value : String | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #web_view_link : String | Nil
 - 
        #web_view_link=(new_value : String | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 - #writers_can_share : Bool | Nil
 - 
        #writers_can_share=(new_value : Bool | Nil)
        
          
Custom attribute writer method checking allowed values (enum).
 
Instance methods inherited from module OpenApi::Json
  
  
    
      after_initialize
    after_initialize, 
    
  
    
      eql?(o : self)
    eql?, 
    
  
    
      to_hash : Hash(String, JSON::Any)
    to_hash, 
    
  
    
      to_json_any : JSON::Any
    to_json_any
    
  
    
    
  Class methods inherited from module OpenApi::Json
  
  
    
      build_from_hash(hash : Hash)
    build_from_hash, 
    
  
    
      build_from_json_any(json_any : JSON::Any)
    build_from_json_any
    
  
  
    
  Instance methods inherited from module OpenApi::Validatable
  
  
    
      list_invalid_properties : Array(String)
    list_invalid_properties, 
    
  
    
      list_invalid_properties_for(key : String) : Array(String)
    list_invalid_properties_for, 
    
  
    
      valid? : Bool
    valid?, 
    
  
    
      validate : Nil
    validate
    
  
    
    
  
    
    
    
  
    
  Instance methods inherited from module JSON::Serializable
  
  
    
      to_hash : JSON::Any
    to_hash
    
  
    
    
  Class methods inherited from module JSON::Serializable
  
  
    
      build_from_hash(hash : JSON::Any)
    build_from_hash
    
  
  
    
    
    
  
    
    
    
  
Constructor Detail
Instance Method Detail
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code
Custom attribute writer method checking allowed values (enum). @param [Object] app_properties Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] capabilities Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] content_hints Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] content_restrictions Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] copy_requires_writer_permission Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] created_time Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] description Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] drive_id Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] explicitly_trashed Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] export_links Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] file_extension Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] folder_color_rgb Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] full_file_extension Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] has_augmented_permissions Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] has_thumbnail Object to be assigned
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code
Custom attribute writer method checking allowed values (enum). @param [Object] head_revision_id Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] icon_link Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] id Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] image_media_metadata Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] is_app_authorized Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] kind Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] label_info Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] last_modifying_user Object to be assigned
Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons
Custom attribute writer method checking allowed values (enum). @param [Object] md5_checksum Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] mime_type Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] modified_by_me Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] modified_by_me_time Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] modified_time Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] name Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] original_filename Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] owned_by_me Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] owners Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] parents Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] permission_ids Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] permissions Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] properties Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] quota_bytes_used Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] resource_key Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] sha1_checksum Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] sha256_checksum Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] sharing_user Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] shortcut_details Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] size Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] spaces Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] starred Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] team_drive_id Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] thumbnail_link Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] thumbnail_version Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] trashed Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] trashed_time Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] trashing_user Object to be assigned
Check to see if the all the properties in the model are valid @return true if the model is valid
Custom attribute writer method checking allowed values (enum). @param [Object] version Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] video_media_metadata Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] viewed_by_me Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] viewed_by_me_time Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] viewers_can_copy_content Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] web_content_link Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] web_view_link Object to be assigned