Struct google_drive2::api::Property
source · pub struct Property {
pub etag: Option<String>,
pub key: Option<String>,
pub kind: Option<String>,
pub self_link: Option<String>,
pub value: Option<String>,
pub visibility: Option<String>,
}
Expand description
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 Some resource methods (such as properties.update
) require a propertyKey
. Use the properties.list
method to retrieve the key for a property.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- get properties (response)
- insert properties (request|response)
- patch properties (request|response)
- update properties (request|response)
Fields§
§etag: Option<String>
Output only. ETag of the property.
key: Option<String>
The key of this property.
kind: Option<String>
Output only. This is always drive#property
.
self_link: Option<String>
Output only. The link back to this property.
value: Option<String>
The value of this property.
visibility: Option<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.