Class: Google::Apis::DriveV2::Property
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::DriveV2::Property
 
 
- Includes:
 - Core::Hashable, Core::JsonObjectSupport
 
- Defined in:
 - generated/google/apis/drive_v2/classes.rb,
generated/google/apis/drive_v2/representations.rb,
generated/google/apis/drive_v2/representations.rb 
Overview
A key-value pair attached to a file that is either public or private to an application. The following limits apply to file properties:
- Maximum of 100 properties total per file
 - Maximum of 30 private properties per app
 - Maximum of 30 public properties
 - Maximum of 124 bytes size limit on (key + value) string in UTF-8 encoding for a single property.
 
Instance Attribute Summary collapse
- 
  
    
      #etag  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
ETag of the property.
 - 
  
    
      #key  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The key of this property.
 - 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
This is always drive#property.
 - 
  
    
      #self_link  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The link back to this property.
 - 
  
    
      #value  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The value of this property.
 - 
  
    
      #visibility  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The visibility of this property.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Property 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of Property.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Property
Returns a new instance of Property
      2762 2763 2764  | 
    
      # File 'generated/google/apis/drive_v2/classes.rb', line 2762 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#etag ⇒ String
ETag of the property.
Corresponds to the JSON property etag
      2734 2735 2736  | 
    
      # File 'generated/google/apis/drive_v2/classes.rb', line 2734 def etag @etag end  | 
  
#key ⇒ String
The key of this property.
Corresponds to the JSON property key
      2739 2740 2741  | 
    
      # File 'generated/google/apis/drive_v2/classes.rb', line 2739 def key @key end  | 
  
#kind ⇒ String
This is always drive#property.
Corresponds to the JSON property kind
      2744 2745 2746  | 
    
      # File 'generated/google/apis/drive_v2/classes.rb', line 2744 def kind @kind end  | 
  
#self_link ⇒ String
The link back to this property.
Corresponds to the JSON property selfLink
      2749 2750 2751  | 
    
      # File 'generated/google/apis/drive_v2/classes.rb', line 2749 def self_link @self_link end  | 
  
#value ⇒ String
The value of this property.
Corresponds to the JSON property value
      2754 2755 2756  | 
    
      # File 'generated/google/apis/drive_v2/classes.rb', line 2754 def value @value end  | 
  
#visibility ⇒ String
The visibility of this property. Allowed values are PRIVATE and PUBLIC. (
Default: PRIVATE)
Corresponds to the JSON property visibility
      2760 2761 2762  | 
    
      # File 'generated/google/apis/drive_v2/classes.rb', line 2760 def visibility @visibility end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      2767 2768 2769 2770 2771 2772 2773 2774  | 
    
      # File 'generated/google/apis/drive_v2/classes.rb', line 2767 def update!(**args) @etag = args[:etag] if args.key?(:etag) @key = args[:key] if args.key?(:key) @kind = args[:kind] if args.key?(:kind) @self_link = args[:self_link] if args.key?(:self_link) @value = args[:value] if args.key?(:value) @visibility = args[:visibility] if args.key?(:visibility) end  |