Class Drive
Representation of a shared drive. Some resource methods (such as drives.update
) require a driveId
. Use the
drives.list
method to retrieve the ID for a shared drive.
Implements
Inherited Members
Namespace: Google.Apis.Drive.v2.Data
Assembly: Google.Apis.Drive.v2.dll
Syntax
public class Drive : IDirectResponseSchema
Properties
BackgroundImageFile
An image file and cropping parameters from which a background image for this shared drive is set. This is a
write only field; it can only be set on drive.drives.update
requests that don't set themeId
. When
specified, all fields of the backgroundImageFile
must be set.
Declaration
[JsonProperty("backgroundImageFile")]
public virtual Drive.BackgroundImageFileData BackgroundImageFile { get; set; }
Property Value
Type | Description |
---|---|
Drive.BackgroundImageFileData |
BackgroundImageLink
Output only. A short-lived link to this shared drive's background image.
Declaration
[JsonProperty("backgroundImageLink")]
public virtual string BackgroundImageLink { get; set; }
Property Value
Type | Description |
---|---|
string |
Capabilities
Output only. Capabilities the current user has on this shared drive.
Declaration
[JsonProperty("capabilities")]
public virtual Drive.CapabilitiesData Capabilities { get; set; }
Property Value
Type | Description |
---|---|
Drive.CapabilitiesData |
ColorRgb
The color of this shared drive as an RGB hex string. It can only be set on a drive.drives.update
request
that does not set themeId
.
Declaration
[JsonProperty("colorRgb")]
public virtual string ColorRgb { get; set; }
Property Value
Type | Description |
---|---|
string |
CreatedDate
DateTime representation of CreatedDateRaw.
Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use CreatedDateDateTimeOffset instead.")]
public virtual DateTime? CreatedDate { get; set; }
Property Value
Type | Description |
---|---|
DateTime? |
CreatedDateDateTimeOffset
DateTimeOffset representation of CreatedDateRaw.
Declaration
[JsonIgnore]
public virtual DateTimeOffset? CreatedDateDateTimeOffset { get; set; }
Property Value
Type | Description |
---|---|
DateTimeOffset? |
CreatedDateRaw
The time at which the shared drive was created (RFC 3339 date-time).
Declaration
[JsonProperty("createdDate")]
public virtual string CreatedDateRaw { get; set; }
Property Value
Type | Description |
---|---|
string |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
Hidden
Whether the shared drive is hidden from default view.
Declaration
[JsonProperty("hidden")]
public virtual bool? Hidden { get; set; }
Property Value
Type | Description |
---|---|
bool? |
Id
Output only. The ID of this shared drive which is also the ID of the top level folder of this shared drive.
Declaration
[JsonProperty("id")]
public virtual string Id { get; set; }
Property Value
Type | Description |
---|---|
string |
Kind
Output only. This is always drive#drive
Declaration
[JsonProperty("kind")]
public virtual string Kind { get; set; }
Property Value
Type | Description |
---|---|
string |
Name
The name of this shared drive.
Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
OrgUnitId
Output only. The organizational unit of this shared drive. This field is only populated on drives.list
responses when the useDomainAdminAccess
parameter is set to true
.
Declaration
[JsonProperty("orgUnitId")]
public virtual string OrgUnitId { get; set; }
Property Value
Type | Description |
---|---|
string |
Restrictions
A set of restrictions that apply to this shared drive or items inside this shared drive.
Declaration
[JsonProperty("restrictions")]
public virtual Drive.RestrictionsData Restrictions { get; set; }
Property Value
Type | Description |
---|---|
Drive.RestrictionsData |
ThemeId
The ID of the theme from which the background image and color will be set. The set of possible driveThemes
can be retrieved from a drive.about.get
response. When not specified on a drive.drives.insert
request, a
random theme is chosen from which the background image and color are set. This is a write-only field; it can
only be set on requests that don't set colorRgb
or backgroundImageFile
.
Declaration
[JsonProperty("themeId")]
public virtual string ThemeId { get; set; }
Property Value
Type | Description |
---|---|
string |