Class: Google::Apis::DriveV2::Property
- Inherits:
-
Object
- Object
- Google::Apis::DriveV2::Property
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/drive_v2/classes.rb,
lib/google/apis/drive_v2/representations.rb,
lib/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
Output only.
-
#key ⇒ String
The key of this property.
-
#kind ⇒ String
Output only.
-
#self_link ⇒ String
Output only.
-
#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.
Constructor Details
#initialize(**args) ⇒ Property
Returns a new instance of Property.
3883 3884 3885 |
# File 'lib/google/apis/drive_v2/classes.rb', line 3883 def initialize(**args) update!(**args) end |
Instance Attribute Details
#etag ⇒ String
Output only. ETag of the property.
Corresponds to the JSON property etag
3853 3854 3855 |
# File 'lib/google/apis/drive_v2/classes.rb', line 3853 def etag @etag end |
#key ⇒ String
The key of this property.
Corresponds to the JSON property key
3858 3859 3860 |
# File 'lib/google/apis/drive_v2/classes.rb', line 3858 def key @key end |
#kind ⇒ String
Output only. This is always drive#property.
Corresponds to the JSON property kind
3863 3864 3865 |
# File 'lib/google/apis/drive_v2/classes.rb', line 3863 def kind @kind end |
#self_link ⇒ String
Output only. The link back to this property.
Corresponds to the JSON property selfLink
3868 3869 3870 |
# File 'lib/google/apis/drive_v2/classes.rb', line 3868 def self_link @self_link end |
#value ⇒ String
The value of this property.
Corresponds to the JSON property value
3873 3874 3875 |
# File 'lib/google/apis/drive_v2/classes.rb', line 3873 def value @value end |
#visibility ⇒ String
The visibility of this property. Allowed values are PRIVATE (default) and
PUBLIC. 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
3881 3882 3883 |
# File 'lib/google/apis/drive_v2/classes.rb', line 3881 def visibility @visibility end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3888 3889 3890 3891 3892 3893 3894 3895 |
# File 'lib/google/apis/drive_v2/classes.rb', line 3888 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 |