[−][src]Module dropbox_sdk::file_properties
This namespace contains helpers for property and template metadata endpoints.
These endpoints enable you to tag arbitrary key/value data to Dropbox files.
The most basic unit in this namespace is the PropertyField
. These fields
encapsulate the actual key/value data.
Fields are added to a Dropbox file using a PropertyGroup
. Property groups
contain a reference to a Dropbox file and a PropertyGroupTemplate
.
Property groups are uniquely identified by the combination of their associated Dropbox file and
template.
The PropertyGroupTemplate
is a way of restricting the possible key
names and value types of the data within a property group. The possible key names and value
types are explicitly enumerated using PropertyFieldTemplate
objects.
You can think of a property group template as a class definition for a particular key/value metadata object, and the property groups themselves as the instantiations of these objects.
Templates are owned either by a user/app pair or team/app pair. Templates and their associated properties can't be accessed by any app other than the app that created them, and even then, only when the app is linked with the owner of the template (either a user or team).
User-owned templates are accessed via the user-auth file_properties/templates/_for_user endpoints, while team-owned templates are accessed via the team-auth file_properties/templates/_for_team endpoints. Properties associated with either type of template can be accessed via the user-auth properties/* endpoints.
Finally, properties can be accessed from a number of endpoints that return metadata, including
files/get_metadata
, and files/list_folder
. Properties can also be added during upload, using
files/upload
.
Structs
AddPropertiesArg | |
AddTemplateArg | |
AddTemplateResult | |
GetTemplateArg | |
GetTemplateResult | |
ListTemplateResult | |
OverwritePropertyGroupArg | |
PropertiesSearchArg | |
PropertiesSearchContinueArg | |
PropertiesSearchMatch | |
PropertiesSearchQuery | |
PropertiesSearchResult | |
PropertyField | Raw key/value data to be associated with a Dropbox file. Property fields are added to Dropbox
files as a |
PropertyFieldTemplate | Defines how a single property field may be structured. Used exclusively by
|
PropertyGroup | A subset of the property fields described by the corresponding
|
PropertyGroupTemplate | Defines how a property group may be structured. |
PropertyGroupUpdate | |
RemovePropertiesArg | |
RemoveTemplateArg | |
UpdatePropertiesArg | |
UpdateTemplateArg | |
UpdateTemplateResult |
Enums
AddPropertiesError | |
InvalidPropertyGroupError | |
LogicalOperator | Logical operator to join search queries together. |
LookUpPropertiesError | |
LookupError | |
ModifyTemplateError | |
PropertiesError | |
PropertiesSearchContinueError | |
PropertiesSearchError | |
PropertiesSearchMode | |
PropertyType | Data type of the given property field added. |
RemovePropertiesError | |
TemplateError | |
TemplateFilter | |
TemplateFilterBase | |
TemplateOwnerType | |
UpdatePropertiesError |
Functions
properties_add | Add property groups to a Dropbox file. See |
properties_overwrite | Overwrite property groups associated with a file. This endpoint should be used instead of
|
properties_remove | Permanently removes the specified property group from the file. To remove specific property
field key value pairs, see |
properties_search | Search across property templates for particular property field values. |
properties_search_continue | Once a cursor has been retrieved from |
properties_update | Add, update or remove properties associated with the supplied file and templates. This endpoint
should be used instead of |
templates_add_for_team | Add a template associated with a team. See |
templates_add_for_user | Add a template associated with a user. See |
templates_get_for_team | Get the schema for a specified template. |
templates_get_for_user | Get the schema for a specified template. This endpoint can't be called on a team member or admin's behalf. |
templates_list_for_team | Get the template identifiers for a team. To get the schema of each template use
|
templates_list_for_user | Get the template identifiers for a team. To get the schema of each template use
|
templates_remove_for_team | Permanently removes the specified template created from
|
templates_remove_for_user | Permanently removes the specified template created from
|
templates_update_for_team | Update a template associated with a team. This route can update the template name, the template description and add optional properties to templates. |
templates_update_for_user | Update a template associated with a user. This route can update the template name, the template description and add optional properties to templates. This endpoint can't be called on a team member or admin's behalf. |
Type Definitions
Id | |
PathOrId | |
PropertiesSearchCursor | |
TemplateId |