class Google::Apis::DriveV2::Property
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.
Attributes
ETag of the property. Corresponds to the JSON property `etag` @return [String]
The key of this property. Corresponds to the JSON property `key` @return [String]
This is always drive#property. Corresponds to the JSON property `kind` @return [String]
The link back to this property. Corresponds to the JSON property `selfLink` @return [String]
The value of this property. Corresponds to the JSON property `value` @return [String]
The visibility of this property. Corresponds to the JSON property `visibility` @return [String]
Public Class Methods
# File generated/google/apis/drive_v2/classes.rb, line 2279 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/drive_v2/classes.rb, line 2284 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