ObjFileSource
Struct for object file source data in a add object with files call.
Set type and the member of data that matches it, for example
OBJ_FILE_SOURCE_TYPE_FILE_CONTENT with data.file_content. Leave the whole message unset for an
object without files. See
AddObjectWithFiles for what each type
requires.
| Full name | MFiles.ObjFileSource |
|---|---|
| Proto file | mfiles/structs.proto |
Fields
| Field | Type | Number | Description |
|---|---|---|---|
type | ObjFileSourceType | 1 | Which member of data is used. Must match the member that is set.Values: OBJ_FILE_SOURCE_TYPE_UNDEFINED (0), OBJ_FILE_SOURCE_TYPE_BLANK_TEMPLATE (1), OBJ_FILE_SOURCE_TYPE_USER_DEFINED_TEMPLATE (2), OBJ_FILE_SOURCE_TYPE_UPLOADED_FILE (3), OBJ_FILE_SOURCE_TYPE_UPLOADED_FILES (4), OBJ_FILE_SOURCE_TYPE_EMPTY_FILES (5), OBJ_FILE_SOURCE_TYPE_FILE_CONTENT (6). |
data | ObjFileSourceUnion | 2 | The source data; set the member that matches type. |
Used by methods
- IRPCObjectOperations.AddObjectWithFiles -- Creates a new object, optionally with its files, and optionally checks it in.
- IRPCObjectOperations.AddObjectWithFilesWithPropertyMetadata -- Creates a new object with files, storing metadata about each property value (who or what set it, why, and with what confidence).
Used in fields
AddObjectWithFilesRequest.files-- Where the files of the new object come from. Unset for an object without files.AddObjectWithFilesWithPropertyMetadataRequest.files-- File source.