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:

for a single property.

Attributes

etag[RW]

ETag of the property. Corresponds to the JSON property `etag` @return [String]

key[RW]

The key of this property. Corresponds to the JSON property `key` @return [String]

kind[RW]

This is always drive#property. Corresponds to the JSON property `kind` @return [String]

value[RW]

The value of this property. Corresponds to the JSON property `value` @return [String]

visibility[RW]

The visibility of this property. Allowed values are PRIVATE and PUBLIC. ( Default: PRIVATE). Private properties can only be retrieved using an authenticated request. An authenticated request uses an access token obtained with a OAuth 2 client ID. You cannot use an API key to retrieve private properties. Corresponds to the JSON property `visibility` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/drive_v2/classes.rb, line 3494
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/drive_v2/classes.rb, line 3499
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