vendor: update all dependencies to latest versions
This commit is contained in:
+70
-12
@@ -1,11 +1,11 @@
|
||||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/DCrAVU-W3UzljIhuRMkT-kOc_P8\"",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/minc5niM2cggYvQjv8BHfkvoMV8\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "drive:v2",
|
||||
"name": "drive",
|
||||
"version": "v2",
|
||||
"revision": "20170825",
|
||||
"revision": "20180105",
|
||||
"title": "Drive API",
|
||||
"description": "Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions.",
|
||||
"ownerDomain": "google.com",
|
||||
@@ -1327,7 +1327,7 @@
|
||||
},
|
||||
"parents": {
|
||||
"type": "array",
|
||||
"description": "Collection of parent folders which contain this file.\nSetting this field will put the file in all of the provided folders. On insert, if no folders are provided, the file will be placed in the default root folder.",
|
||||
"description": "Collection of parent folders which contain this file.\nIf not specified as part of an insert request, the file will be placed directly in the user's My Drive folder. If not specified as part of a copy request, the file will inherit any discoverable parents of the source file. Update requests can also use the addParents and removeParents parameters to modify the parents list.",
|
||||
"items": {
|
||||
"$ref": "ParentReference"
|
||||
}
|
||||
@@ -2049,6 +2049,11 @@
|
||||
"type": "string",
|
||||
"description": "The color of this Team Drive as an RGB hex string. It can only be set on a drive.teamdrives.update request that does not set themeId."
|
||||
},
|
||||
"createdDate": {
|
||||
"type": "string",
|
||||
"description": "The time at which the Team Drive was created (RFC 3339 date-time).",
|
||||
"format": "date-time"
|
||||
},
|
||||
"id": {
|
||||
"type": "string",
|
||||
"description": "The ID of this Team Drive which is also the ID of the top level folder for this Team Drive."
|
||||
@@ -2141,7 +2146,7 @@
|
||||
"parameters": {
|
||||
"includeSubscribed": {
|
||||
"type": "boolean",
|
||||
"description": "When calculating the number of remaining change IDs, whether to include public files the user has opened and shared files. When set to false, this counts only change IDs for owned files and any shared or public files that the user has explicitly added to a folder they own.",
|
||||
"description": "Whether to count changes outside the My Drive hierarchy. When set to false, changes to files such as those in the Application Data folder or shared files which have not been added to My Drive will be omitted from the maxChangeIdCount.",
|
||||
"default": "true",
|
||||
"location": "query"
|
||||
},
|
||||
@@ -2244,7 +2249,7 @@
|
||||
"id": "drive.changes.get",
|
||||
"path": "changes/{changeId}",
|
||||
"httpMethod": "GET",
|
||||
"description": "Gets a specific change.",
|
||||
"description": "Deprecated - Use changes.getStartPageToken and changes.list to retrieve recent changes.",
|
||||
"parameters": {
|
||||
"changeId": {
|
||||
"type": "string",
|
||||
@@ -2333,7 +2338,7 @@
|
||||
},
|
||||
"includeSubscribed": {
|
||||
"type": "boolean",
|
||||
"description": "Whether to include public files the user has opened and shared files. When set to false, the list only includes owned files plus any shared or public files the user has explicitly added to a folder they own.",
|
||||
"description": "Whether to include changes outside the My Drive hierarchy in the result. When set to false, changes to files such as those in the Application Data folder or shared files which have not been added to My Drive will be omitted from the result.",
|
||||
"default": "true",
|
||||
"location": "query"
|
||||
},
|
||||
@@ -2363,7 +2368,7 @@
|
||||
},
|
||||
"startChangeId": {
|
||||
"type": "string",
|
||||
"description": "Change ID to start listing changes from.",
|
||||
"description": "Deprecated - use pageToken instead.",
|
||||
"format": "int64",
|
||||
"location": "query"
|
||||
},
|
||||
@@ -2414,7 +2419,7 @@
|
||||
},
|
||||
"includeSubscribed": {
|
||||
"type": "boolean",
|
||||
"description": "Whether to include public files the user has opened and shared files. When set to false, the list only includes owned files plus any shared or public files the user has explicitly added to a folder they own.",
|
||||
"description": "Whether to include changes outside the My Drive hierarchy in the result. When set to false, changes to files such as those in the Application Data folder or shared files which have not been added to My Drive will be omitted from the result.",
|
||||
"default": "true",
|
||||
"location": "query"
|
||||
},
|
||||
@@ -2444,7 +2449,7 @@
|
||||
},
|
||||
"startChangeId": {
|
||||
"type": "string",
|
||||
"description": "Change ID to start listing changes from.",
|
||||
"description": "Deprecated - use pageToken instead.",
|
||||
"format": "int64",
|
||||
"location": "query"
|
||||
},
|
||||
@@ -3393,7 +3398,7 @@
|
||||
},
|
||||
"setModifiedDate": {
|
||||
"type": "boolean",
|
||||
"description": "Whether to set the modified date with the supplied modified date.",
|
||||
"description": "Whether to set the modified date using the value supplied in the request body. Setting this field to true is equivalent to modifiedDateBehavior=fromBodyOrNow, and false is equivalent to modifiedDateBehavior=now. To prevent any changes to the modified date set modifiedDateBehavior=noChange.",
|
||||
"default": "false",
|
||||
"location": "query"
|
||||
},
|
||||
@@ -3615,7 +3620,7 @@
|
||||
},
|
||||
"setModifiedDate": {
|
||||
"type": "boolean",
|
||||
"description": "Whether to set the modified date with the supplied modified date.",
|
||||
"description": "Whether to set the modified date using the value supplied in the request body. Setting this field to true is equivalent to modifiedDateBehavior=fromBodyOrNow, and false is equivalent to modifiedDateBehavior=now. To prevent any changes to the modified date set modifiedDateBehavior=noChange.",
|
||||
"default": "false",
|
||||
"location": "query"
|
||||
},
|
||||
@@ -3913,6 +3918,12 @@
|
||||
"description": "Whether the requesting application supports Team Drives.",
|
||||
"default": "false",
|
||||
"location": "query"
|
||||
},
|
||||
"useDomainAdminAccess": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the request should be treated as if it was issued by a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the item belongs.",
|
||||
"default": "false",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
@@ -3947,6 +3958,12 @@
|
||||
"description": "Whether the requesting application supports Team Drives.",
|
||||
"default": "false",
|
||||
"location": "query"
|
||||
},
|
||||
"useDomainAdminAccess": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the request should be treated as if it was issued by a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the item belongs.",
|
||||
"default": "false",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
@@ -4003,7 +4020,7 @@
|
||||
"parameters": {
|
||||
"emailMessage": {
|
||||
"type": "string",
|
||||
"description": "A custom message to include in notification emails.",
|
||||
"description": "A plain text custom message to include in notification emails.",
|
||||
"location": "query"
|
||||
},
|
||||
"fileId": {
|
||||
@@ -4023,6 +4040,12 @@
|
||||
"description": "Whether the requesting application supports Team Drives.",
|
||||
"default": "false",
|
||||
"location": "query"
|
||||
},
|
||||
"useDomainAdminAccess": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the request should be treated as if it was issued by a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the item belongs.",
|
||||
"default": "false",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
@@ -4069,6 +4092,12 @@
|
||||
"description": "Whether the requesting application supports Team Drives.",
|
||||
"default": "false",
|
||||
"location": "query"
|
||||
},
|
||||
"useDomainAdminAccess": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the request should be treated as if it was issued by a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the item belongs.",
|
||||
"default": "false",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
@@ -4121,6 +4150,12 @@
|
||||
"description": "Whether changing a role to 'owner' downgrades the current owners to writers. Does nothing if the specified role is not 'owner'.",
|
||||
"default": "false",
|
||||
"location": "query"
|
||||
},
|
||||
"useDomainAdminAccess": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the request should be treated as if it was issued by a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the item belongs.",
|
||||
"default": "false",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
@@ -4173,6 +4208,12 @@
|
||||
"description": "Whether changing a role to 'owner' downgrades the current owners to writers. Does nothing if the specified role is not 'owner'.",
|
||||
"default": "false",
|
||||
"location": "query"
|
||||
},
|
||||
"useDomainAdminAccess": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the request should be treated as if it was issued by a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the item belongs.",
|
||||
"default": "false",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
@@ -4960,6 +5001,12 @@
|
||||
"description": "The ID of the Team Drive",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"useDomainAdminAccess": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the request should be treated as if it was issued by a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the Team Drive belongs.",
|
||||
"default": "false",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
@@ -5018,6 +5065,17 @@
|
||||
"type": "string",
|
||||
"description": "Page token for Team Drives.",
|
||||
"location": "query"
|
||||
},
|
||||
"q": {
|
||||
"type": "string",
|
||||
"description": "Query string for searching Team Drives.",
|
||||
"location": "query"
|
||||
},
|
||||
"useDomainAdminAccess": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the request should be treated as if it was issued by a domain administrator; if set to true, then all Team Drives of the domain in which the requester is an administrator are returned.",
|
||||
"default": "false",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
|
||||
+352
-197
File diff suppressed because it is too large
Load Diff
+56
-4
@@ -1,11 +1,11 @@
|
||||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/4lSDxYnFTkLYmJZsTikGDh17fVo\"",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/JMDtpjXV6K9GRXGmSFN5aHZlstg\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "drive:v3",
|
||||
"name": "drive",
|
||||
"version": "v3",
|
||||
"revision": "20170825",
|
||||
"revision": "20180105",
|
||||
"title": "Drive API",
|
||||
"description": "Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions.",
|
||||
"ownerDomain": "google.com",
|
||||
@@ -754,7 +754,7 @@
|
||||
},
|
||||
"parents": {
|
||||
"type": "array",
|
||||
"description": "The IDs of the parent folders which contain the file.\nIf not specified as part of a create request, the file will be placed directly in the My Drive folder. Update requests must use the addParents and removeParents parameters to modify the values.",
|
||||
"description": "The IDs of the parent folders which contain the file.\nIf not specified as part of a create request, the file will be placed directly in the user's My Drive folder. If not specified as part of a copy request, the file will inherit any discoverable parents of the source file. Update requests must use the addParents and removeParents parameters to modify the parents list.",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
@@ -1324,6 +1324,11 @@
|
||||
"type": "string",
|
||||
"description": "The color of this Team Drive as an RGB hex string. It can only be set on a drive.teamdrives.update request that does not set themeId."
|
||||
},
|
||||
"createdTime": {
|
||||
"type": "string",
|
||||
"description": "The time at which the Team Drive was created (RFC 3339 date-time).",
|
||||
"format": "date-time"
|
||||
},
|
||||
"id": {
|
||||
"type": "string",
|
||||
"description": "The ID of this Team Drive which is also the ID of the top level folder for this Team Drive."
|
||||
@@ -2312,7 +2317,7 @@
|
||||
"parameters": {
|
||||
"emailMessage": {
|
||||
"type": "string",
|
||||
"description": "A custom message to include in the notification email.",
|
||||
"description": "A plain text custom message to include in the notification email.",
|
||||
"location": "query"
|
||||
},
|
||||
"fileId": {
|
||||
@@ -2337,6 +2342,12 @@
|
||||
"description": "Whether to transfer ownership to the specified user and downgrade the current owner to a writer. This parameter is required as an acknowledgement of the side effect.",
|
||||
"default": "false",
|
||||
"location": "query"
|
||||
},
|
||||
"useDomainAdminAccess": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the request should be treated as if it was issued by a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the item belongs.",
|
||||
"default": "false",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
@@ -2376,6 +2387,12 @@
|
||||
"description": "Whether the requesting application supports Team Drives.",
|
||||
"default": "false",
|
||||
"location": "query"
|
||||
},
|
||||
"useDomainAdminAccess": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the request should be treated as if it was issued by a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the item belongs.",
|
||||
"default": "false",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
@@ -2410,6 +2427,12 @@
|
||||
"description": "Whether the requesting application supports Team Drives.",
|
||||
"default": "false",
|
||||
"location": "query"
|
||||
},
|
||||
"useDomainAdminAccess": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the request should be treated as if it was issued by a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the item belongs.",
|
||||
"default": "false",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
@@ -2458,6 +2481,12 @@
|
||||
"description": "Whether the requesting application supports Team Drives.",
|
||||
"default": "false",
|
||||
"location": "query"
|
||||
},
|
||||
"useDomainAdminAccess": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the request should be treated as if it was issued by a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the item belongs.",
|
||||
"default": "false",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
@@ -2510,6 +2539,12 @@
|
||||
"description": "Whether to transfer ownership to the specified user and downgrade the current owner to a writer. This parameter is required as an acknowledgement of the side effect.",
|
||||
"default": "false",
|
||||
"location": "query"
|
||||
},
|
||||
"useDomainAdminAccess": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the request should be treated as if it was issued by a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the item belongs.",
|
||||
"default": "false",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
@@ -2954,6 +2989,12 @@
|
||||
"description": "The ID of the Team Drive",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"useDomainAdminAccess": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the request should be treated as if it was issued by a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the Team Drive belongs.",
|
||||
"default": "false",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
@@ -2986,6 +3027,17 @@
|
||||
"type": "string",
|
||||
"description": "Page token for Team Drives.",
|
||||
"location": "query"
|
||||
},
|
||||
"q": {
|
||||
"type": "string",
|
||||
"description": "Query string for searching Team Drives.",
|
||||
"location": "query"
|
||||
},
|
||||
"useDomainAdminAccess": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the request should be treated as if it was issued by a domain administrator; if set to true, then all Team Drives of the domain in which the requester is an administrator are returned.",
|
||||
"default": "false",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
|
||||
+236
-106
@@ -262,8 +262,8 @@ type About struct {
|
||||
}
|
||||
|
||||
func (s *About) MarshalJSON() ([]byte, error) {
|
||||
type noMethod About
|
||||
raw := noMethod(*s)
|
||||
type NoMethod About
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -301,8 +301,8 @@ type AboutStorageQuota struct {
|
||||
}
|
||||
|
||||
func (s *AboutStorageQuota) MarshalJSON() ([]byte, error) {
|
||||
type noMethod AboutStorageQuota
|
||||
raw := noMethod(*s)
|
||||
type NoMethod AboutStorageQuota
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -336,8 +336,8 @@ type AboutTeamDriveThemes struct {
|
||||
}
|
||||
|
||||
func (s *AboutTeamDriveThemes) MarshalJSON() ([]byte, error) {
|
||||
type noMethod AboutTeamDriveThemes
|
||||
raw := noMethod(*s)
|
||||
type NoMethod AboutTeamDriveThemes
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -390,8 +390,8 @@ type Change struct {
|
||||
}
|
||||
|
||||
func (s *Change) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Change
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Change
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -439,8 +439,8 @@ type ChangeList struct {
|
||||
}
|
||||
|
||||
func (s *ChangeList) MarshalJSON() ([]byte, error) {
|
||||
type noMethod ChangeList
|
||||
raw := noMethod(*s)
|
||||
type NoMethod ChangeList
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -505,8 +505,8 @@ type Channel struct {
|
||||
}
|
||||
|
||||
func (s *Channel) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Channel
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Channel
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -581,8 +581,8 @@ type Comment struct {
|
||||
}
|
||||
|
||||
func (s *Comment) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Comment
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Comment
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -615,8 +615,8 @@ type CommentQuotedFileContent struct {
|
||||
}
|
||||
|
||||
func (s *CommentQuotedFileContent) MarshalJSON() ([]byte, error) {
|
||||
type noMethod CommentQuotedFileContent
|
||||
raw := noMethod(*s)
|
||||
type NoMethod CommentQuotedFileContent
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -659,8 +659,8 @@ type CommentList struct {
|
||||
}
|
||||
|
||||
func (s *CommentList) MarshalJSON() ([]byte, error) {
|
||||
type noMethod CommentList
|
||||
raw := noMethod(*s)
|
||||
type NoMethod CommentList
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -791,8 +791,10 @@ type File struct {
|
||||
|
||||
// Parents: The IDs of the parent folders which contain the file.
|
||||
// If not specified as part of a create request, the file will be placed
|
||||
// directly in the My Drive folder. Update requests must use the
|
||||
// addParents and removeParents parameters to modify the values.
|
||||
// directly in the user's My Drive folder. If not specified as part of a
|
||||
// copy request, the file will inherit any discoverable parents of the
|
||||
// source file. Update requests must use the addParents and
|
||||
// removeParents parameters to modify the parents list.
|
||||
Parents []string `json:"parents,omitempty"`
|
||||
|
||||
// PermissionIds: List of permission IDs for users with access to this
|
||||
@@ -918,8 +920,8 @@ type File struct {
|
||||
}
|
||||
|
||||
func (s *File) MarshalJSON() ([]byte, error) {
|
||||
type noMethod File
|
||||
raw := noMethod(*s)
|
||||
type NoMethod File
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1014,8 +1016,8 @@ type FileCapabilities struct {
|
||||
}
|
||||
|
||||
func (s *FileCapabilities) MarshalJSON() ([]byte, error) {
|
||||
type noMethod FileCapabilities
|
||||
raw := noMethod(*s)
|
||||
type NoMethod FileCapabilities
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1049,8 +1051,8 @@ type FileContentHints struct {
|
||||
}
|
||||
|
||||
func (s *FileContentHints) MarshalJSON() ([]byte, error) {
|
||||
type noMethod FileContentHints
|
||||
raw := noMethod(*s)
|
||||
type NoMethod FileContentHints
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1082,8 +1084,8 @@ type FileContentHintsThumbnail struct {
|
||||
}
|
||||
|
||||
func (s *FileContentHintsThumbnail) MarshalJSON() ([]byte, error) {
|
||||
type noMethod FileContentHintsThumbnail
|
||||
raw := noMethod(*s)
|
||||
type NoMethod FileContentHintsThumbnail
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1174,22 +1176,22 @@ type FileImageMediaMetadata struct {
|
||||
}
|
||||
|
||||
func (s *FileImageMediaMetadata) MarshalJSON() ([]byte, error) {
|
||||
type noMethod FileImageMediaMetadata
|
||||
raw := noMethod(*s)
|
||||
type NoMethod FileImageMediaMetadata
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
func (s *FileImageMediaMetadata) UnmarshalJSON(data []byte) error {
|
||||
type noMethod FileImageMediaMetadata
|
||||
type NoMethod FileImageMediaMetadata
|
||||
var s1 struct {
|
||||
Aperture gensupport.JSONFloat64 `json:"aperture"`
|
||||
ExposureBias gensupport.JSONFloat64 `json:"exposureBias"`
|
||||
ExposureTime gensupport.JSONFloat64 `json:"exposureTime"`
|
||||
FocalLength gensupport.JSONFloat64 `json:"focalLength"`
|
||||
MaxApertureValue gensupport.JSONFloat64 `json:"maxApertureValue"`
|
||||
*noMethod
|
||||
*NoMethod
|
||||
}
|
||||
s1.noMethod = (*noMethod)(s)
|
||||
s1.NoMethod = (*NoMethod)(s)
|
||||
if err := json.Unmarshal(data, &s1); err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -1231,20 +1233,20 @@ type FileImageMediaMetadataLocation struct {
|
||||
}
|
||||
|
||||
func (s *FileImageMediaMetadataLocation) MarshalJSON() ([]byte, error) {
|
||||
type noMethod FileImageMediaMetadataLocation
|
||||
raw := noMethod(*s)
|
||||
type NoMethod FileImageMediaMetadataLocation
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
func (s *FileImageMediaMetadataLocation) UnmarshalJSON(data []byte) error {
|
||||
type noMethod FileImageMediaMetadataLocation
|
||||
type NoMethod FileImageMediaMetadataLocation
|
||||
var s1 struct {
|
||||
Altitude gensupport.JSONFloat64 `json:"altitude"`
|
||||
Latitude gensupport.JSONFloat64 `json:"latitude"`
|
||||
Longitude gensupport.JSONFloat64 `json:"longitude"`
|
||||
*noMethod
|
||||
*NoMethod
|
||||
}
|
||||
s1.noMethod = (*noMethod)(s)
|
||||
s1.NoMethod = (*NoMethod)(s)
|
||||
if err := json.Unmarshal(data, &s1); err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -1285,8 +1287,8 @@ type FileVideoMediaMetadata struct {
|
||||
}
|
||||
|
||||
func (s *FileVideoMediaMetadata) MarshalJSON() ([]byte, error) {
|
||||
type noMethod FileVideoMediaMetadata
|
||||
raw := noMethod(*s)
|
||||
type NoMethod FileVideoMediaMetadata
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1337,8 +1339,8 @@ type FileList struct {
|
||||
}
|
||||
|
||||
func (s *FileList) MarshalJSON() ([]byte, error) {
|
||||
type noMethod FileList
|
||||
raw := noMethod(*s)
|
||||
type NoMethod FileList
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1378,8 +1380,8 @@ type GeneratedIds struct {
|
||||
}
|
||||
|
||||
func (s *GeneratedIds) MarshalJSON() ([]byte, error) {
|
||||
type noMethod GeneratedIds
|
||||
raw := noMethod(*s)
|
||||
type NoMethod GeneratedIds
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1468,8 +1470,8 @@ type Permission struct {
|
||||
}
|
||||
|
||||
func (s *Permission) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Permission
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Permission
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1516,8 +1518,8 @@ type PermissionTeamDrivePermissionDetails struct {
|
||||
}
|
||||
|
||||
func (s *PermissionTeamDrivePermissionDetails) MarshalJSON() ([]byte, error) {
|
||||
type noMethod PermissionTeamDrivePermissionDetails
|
||||
raw := noMethod(*s)
|
||||
type NoMethod PermissionTeamDrivePermissionDetails
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1561,8 +1563,8 @@ type PermissionList struct {
|
||||
}
|
||||
|
||||
func (s *PermissionList) MarshalJSON() ([]byte, error) {
|
||||
type noMethod PermissionList
|
||||
raw := noMethod(*s)
|
||||
type NoMethod PermissionList
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1626,8 +1628,8 @@ type Reply struct {
|
||||
}
|
||||
|
||||
func (s *Reply) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Reply
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Reply
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1670,8 +1672,8 @@ type ReplyList struct {
|
||||
}
|
||||
|
||||
func (s *ReplyList) MarshalJSON() ([]byte, error) {
|
||||
type noMethod ReplyList
|
||||
raw := noMethod(*s)
|
||||
type NoMethod ReplyList
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1747,8 +1749,8 @@ type Revision struct {
|
||||
}
|
||||
|
||||
func (s *Revision) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Revision
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Revision
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1791,8 +1793,8 @@ type RevisionList struct {
|
||||
}
|
||||
|
||||
func (s *RevisionList) MarshalJSON() ([]byte, error) {
|
||||
type noMethod RevisionList
|
||||
raw := noMethod(*s)
|
||||
type NoMethod RevisionList
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1826,8 +1828,8 @@ type StartPageToken struct {
|
||||
}
|
||||
|
||||
func (s *StartPageToken) MarshalJSON() ([]byte, error) {
|
||||
type noMethod StartPageToken
|
||||
raw := noMethod(*s)
|
||||
type NoMethod StartPageToken
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1852,6 +1854,10 @@ type TeamDrive struct {
|
||||
// themeId.
|
||||
ColorRgb string `json:"colorRgb,omitempty"`
|
||||
|
||||
// CreatedTime: The time at which the Team Drive was created (RFC 3339
|
||||
// date-time).
|
||||
CreatedTime string `json:"createdTime,omitempty"`
|
||||
|
||||
// Id: The ID of this Team Drive which is also the ID of the top level
|
||||
// folder for this Team Drive.
|
||||
Id string `json:"id,omitempty"`
|
||||
@@ -1895,8 +1901,8 @@ type TeamDrive struct {
|
||||
}
|
||||
|
||||
func (s *TeamDrive) MarshalJSON() ([]byte, error) {
|
||||
type noMethod TeamDrive
|
||||
raw := noMethod(*s)
|
||||
type NoMethod TeamDrive
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1948,20 +1954,20 @@ type TeamDriveBackgroundImageFile struct {
|
||||
}
|
||||
|
||||
func (s *TeamDriveBackgroundImageFile) MarshalJSON() ([]byte, error) {
|
||||
type noMethod TeamDriveBackgroundImageFile
|
||||
raw := noMethod(*s)
|
||||
type NoMethod TeamDriveBackgroundImageFile
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
func (s *TeamDriveBackgroundImageFile) UnmarshalJSON(data []byte) error {
|
||||
type noMethod TeamDriveBackgroundImageFile
|
||||
type NoMethod TeamDriveBackgroundImageFile
|
||||
var s1 struct {
|
||||
Width gensupport.JSONFloat64 `json:"width"`
|
||||
XCoordinate gensupport.JSONFloat64 `json:"xCoordinate"`
|
||||
YCoordinate gensupport.JSONFloat64 `json:"yCoordinate"`
|
||||
*noMethod
|
||||
*NoMethod
|
||||
}
|
||||
s1.noMethod = (*noMethod)(s)
|
||||
s1.NoMethod = (*NoMethod)(s)
|
||||
if err := json.Unmarshal(data, &s1); err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -2048,8 +2054,8 @@ type TeamDriveCapabilities struct {
|
||||
}
|
||||
|
||||
func (s *TeamDriveCapabilities) MarshalJSON() ([]byte, error) {
|
||||
type noMethod TeamDriveCapabilities
|
||||
raw := noMethod(*s)
|
||||
type NoMethod TeamDriveCapabilities
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -2092,8 +2098,8 @@ type TeamDriveList struct {
|
||||
}
|
||||
|
||||
func (s *TeamDriveList) MarshalJSON() ([]byte, error) {
|
||||
type noMethod TeamDriveList
|
||||
raw := noMethod(*s)
|
||||
type NoMethod TeamDriveList
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -2138,8 +2144,8 @@ type User struct {
|
||||
}
|
||||
|
||||
func (s *User) MarshalJSON() ([]byte, error) {
|
||||
type noMethod User
|
||||
raw := noMethod(*s)
|
||||
type NoMethod User
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -2246,7 +2252,7 @@ func (c *AboutGetCall) Do(opts ...googleapi.CallOption) (*About, error) {
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -2389,7 +2395,7 @@ func (c *ChangesGetStartPageTokenCall) Do(opts ...googleapi.CallOption) (*StartP
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -2597,7 +2603,7 @@ func (c *ChangesListCall) Do(opts ...googleapi.CallOption) (*ChangeList, error)
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -2847,7 +2853,7 @@ func (c *ChangesWatchCall) Do(opts ...googleapi.CallOption) (*Channel, error) {
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -3134,7 +3140,7 @@ func (c *CommentsCreateCall) Do(opts ...googleapi.CallOption) (*Comment, error)
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -3392,7 +3398,7 @@ func (c *CommentsGetCall) Do(opts ...googleapi.CallOption) (*Comment, error) {
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -3575,7 +3581,7 @@ func (c *CommentsListCall) Do(opts ...googleapi.CallOption) (*CommentList, error
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -3756,7 +3762,7 @@ func (c *CommentsUpdateCall) Do(opts ...googleapi.CallOption) (*Comment, error)
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -3932,7 +3938,7 @@ func (c *FilesCopyCall) Do(opts ...googleapi.CallOption) (*File, error) {
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -4195,7 +4201,7 @@ func (c *FilesCreateCall) Do(opts ...googleapi.CallOption) (*File, error) {
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -4716,7 +4722,7 @@ func (c *FilesGenerateIdsCall) Do(opts ...googleapi.CallOption) (*GeneratedIds,
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -4893,7 +4899,7 @@ func (c *FilesGetCall) Do(opts ...googleapi.CallOption) (*File, error) {
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -5135,7 +5141,7 @@ func (c *FilesListCall) Do(opts ...googleapi.CallOption) (*FileList, error) {
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -5461,7 +5467,7 @@ func (c *FilesUpdateCall) Do(opts ...googleapi.CallOption) (*File, error) {
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -5680,7 +5686,7 @@ func (c *FilesWatchCall) Do(opts ...googleapi.CallOption) (*Channel, error) {
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -5754,8 +5760,8 @@ func (r *PermissionsService) Create(fileId string, permission *Permission) *Perm
|
||||
return c
|
||||
}
|
||||
|
||||
// EmailMessage sets the optional parameter "emailMessage": A custom
|
||||
// message to include in the notification email.
|
||||
// EmailMessage sets the optional parameter "emailMessage": A plain text
|
||||
// custom message to include in the notification email.
|
||||
func (c *PermissionsCreateCall) EmailMessage(emailMessage string) *PermissionsCreateCall {
|
||||
c.urlParams_.Set("emailMessage", emailMessage)
|
||||
return c
|
||||
@@ -5787,6 +5793,16 @@ func (c *PermissionsCreateCall) TransferOwnership(transferOwnership bool) *Permi
|
||||
return c
|
||||
}
|
||||
|
||||
// UseDomainAdminAccess sets the optional parameter
|
||||
// "useDomainAdminAccess": Whether the request should be treated as if
|
||||
// it was issued by a domain administrator; if set to true, then the
|
||||
// requester will be granted access if they are an administrator of the
|
||||
// domain to which the item belongs.
|
||||
func (c *PermissionsCreateCall) UseDomainAdminAccess(useDomainAdminAccess bool) *PermissionsCreateCall {
|
||||
c.urlParams_.Set("useDomainAdminAccess", fmt.Sprint(useDomainAdminAccess))
|
||||
return c
|
||||
}
|
||||
|
||||
// Fields allows partial responses to be retrieved. See
|
||||
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
|
||||
// for more information.
|
||||
@@ -5868,7 +5884,7 @@ func (c *PermissionsCreateCall) Do(opts ...googleapi.CallOption) (*Permission, e
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -5881,7 +5897,7 @@ func (c *PermissionsCreateCall) Do(opts ...googleapi.CallOption) (*Permission, e
|
||||
// ],
|
||||
// "parameters": {
|
||||
// "emailMessage": {
|
||||
// "description": "A custom message to include in the notification email.",
|
||||
// "description": "A plain text custom message to include in the notification email.",
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
// },
|
||||
@@ -5907,6 +5923,12 @@ func (c *PermissionsCreateCall) Do(opts ...googleapi.CallOption) (*Permission, e
|
||||
// "description": "Whether to transfer ownership to the specified user and downgrade the current owner to a writer. This parameter is required as an acknowledgement of the side effect.",
|
||||
// "location": "query",
|
||||
// "type": "boolean"
|
||||
// },
|
||||
// "useDomainAdminAccess": {
|
||||
// "default": "false",
|
||||
// "description": "Whether the request should be treated as if it was issued by a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the item belongs.",
|
||||
// "location": "query",
|
||||
// "type": "boolean"
|
||||
// }
|
||||
// },
|
||||
// "path": "files/{fileId}/permissions",
|
||||
@@ -5950,6 +5972,16 @@ func (c *PermissionsDeleteCall) SupportsTeamDrives(supportsTeamDrives bool) *Per
|
||||
return c
|
||||
}
|
||||
|
||||
// UseDomainAdminAccess sets the optional parameter
|
||||
// "useDomainAdminAccess": Whether the request should be treated as if
|
||||
// it was issued by a domain administrator; if set to true, then the
|
||||
// requester will be granted access if they are an administrator of the
|
||||
// domain to which the item belongs.
|
||||
func (c *PermissionsDeleteCall) UseDomainAdminAccess(useDomainAdminAccess bool) *PermissionsDeleteCall {
|
||||
c.urlParams_.Set("useDomainAdminAccess", fmt.Sprint(useDomainAdminAccess))
|
||||
return c
|
||||
}
|
||||
|
||||
// Fields allows partial responses to be retrieved. See
|
||||
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
|
||||
// for more information.
|
||||
@@ -6032,6 +6064,12 @@ func (c *PermissionsDeleteCall) Do(opts ...googleapi.CallOption) error {
|
||||
// "description": "Whether the requesting application supports Team Drives.",
|
||||
// "location": "query",
|
||||
// "type": "boolean"
|
||||
// },
|
||||
// "useDomainAdminAccess": {
|
||||
// "default": "false",
|
||||
// "description": "Whether the request should be treated as if it was issued by a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the item belongs.",
|
||||
// "location": "query",
|
||||
// "type": "boolean"
|
||||
// }
|
||||
// },
|
||||
// "path": "files/{fileId}/permissions/{permissionId}",
|
||||
@@ -6070,6 +6108,16 @@ func (c *PermissionsGetCall) SupportsTeamDrives(supportsTeamDrives bool) *Permis
|
||||
return c
|
||||
}
|
||||
|
||||
// UseDomainAdminAccess sets the optional parameter
|
||||
// "useDomainAdminAccess": Whether the request should be treated as if
|
||||
// it was issued by a domain administrator; if set to true, then the
|
||||
// requester will be granted access if they are an administrator of the
|
||||
// domain to which the item belongs.
|
||||
func (c *PermissionsGetCall) UseDomainAdminAccess(useDomainAdminAccess bool) *PermissionsGetCall {
|
||||
c.urlParams_.Set("useDomainAdminAccess", fmt.Sprint(useDomainAdminAccess))
|
||||
return c
|
||||
}
|
||||
|
||||
// Fields allows partial responses to be retrieved. See
|
||||
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
|
||||
// for more information.
|
||||
@@ -6160,7 +6208,7 @@ func (c *PermissionsGetCall) Do(opts ...googleapi.CallOption) (*Permission, erro
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -6190,6 +6238,12 @@ func (c *PermissionsGetCall) Do(opts ...googleapi.CallOption) (*Permission, erro
|
||||
// "description": "Whether the requesting application supports Team Drives.",
|
||||
// "location": "query",
|
||||
// "type": "boolean"
|
||||
// },
|
||||
// "useDomainAdminAccess": {
|
||||
// "default": "false",
|
||||
// "description": "Whether the request should be treated as if it was issued by a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the item belongs.",
|
||||
// "location": "query",
|
||||
// "type": "boolean"
|
||||
// }
|
||||
// },
|
||||
// "path": "files/{fileId}/permissions/{permissionId}",
|
||||
@@ -6250,6 +6304,16 @@ func (c *PermissionsListCall) SupportsTeamDrives(supportsTeamDrives bool) *Permi
|
||||
return c
|
||||
}
|
||||
|
||||
// UseDomainAdminAccess sets the optional parameter
|
||||
// "useDomainAdminAccess": Whether the request should be treated as if
|
||||
// it was issued by a domain administrator; if set to true, then the
|
||||
// requester will be granted access if they are an administrator of the
|
||||
// domain to which the item belongs.
|
||||
func (c *PermissionsListCall) UseDomainAdminAccess(useDomainAdminAccess bool) *PermissionsListCall {
|
||||
c.urlParams_.Set("useDomainAdminAccess", fmt.Sprint(useDomainAdminAccess))
|
||||
return c
|
||||
}
|
||||
|
||||
// Fields allows partial responses to be retrieved. See
|
||||
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
|
||||
// for more information.
|
||||
@@ -6339,7 +6403,7 @@ func (c *PermissionsListCall) Do(opts ...googleapi.CallOption) (*PermissionList,
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -6375,6 +6439,12 @@ func (c *PermissionsListCall) Do(opts ...googleapi.CallOption) (*PermissionList,
|
||||
// "description": "Whether the requesting application supports Team Drives.",
|
||||
// "location": "query",
|
||||
// "type": "boolean"
|
||||
// },
|
||||
// "useDomainAdminAccess": {
|
||||
// "default": "false",
|
||||
// "description": "Whether the request should be treated as if it was issued by a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the item belongs.",
|
||||
// "location": "query",
|
||||
// "type": "boolean"
|
||||
// }
|
||||
// },
|
||||
// "path": "files/{fileId}/permissions",
|
||||
@@ -6458,6 +6528,16 @@ func (c *PermissionsUpdateCall) TransferOwnership(transferOwnership bool) *Permi
|
||||
return c
|
||||
}
|
||||
|
||||
// UseDomainAdminAccess sets the optional parameter
|
||||
// "useDomainAdminAccess": Whether the request should be treated as if
|
||||
// it was issued by a domain administrator; if set to true, then the
|
||||
// requester will be granted access if they are an administrator of the
|
||||
// domain to which the item belongs.
|
||||
func (c *PermissionsUpdateCall) UseDomainAdminAccess(useDomainAdminAccess bool) *PermissionsUpdateCall {
|
||||
c.urlParams_.Set("useDomainAdminAccess", fmt.Sprint(useDomainAdminAccess))
|
||||
return c
|
||||
}
|
||||
|
||||
// Fields allows partial responses to be retrieved. See
|
||||
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
|
||||
// for more information.
|
||||
@@ -6540,7 +6620,7 @@ func (c *PermissionsUpdateCall) Do(opts ...googleapi.CallOption) (*Permission, e
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -6582,6 +6662,12 @@ func (c *PermissionsUpdateCall) Do(opts ...googleapi.CallOption) (*Permission, e
|
||||
// "description": "Whether to transfer ownership to the specified user and downgrade the current owner to a writer. This parameter is required as an acknowledgement of the side effect.",
|
||||
// "location": "query",
|
||||
// "type": "boolean"
|
||||
// },
|
||||
// "useDomainAdminAccess": {
|
||||
// "default": "false",
|
||||
// "description": "Whether the request should be treated as if it was issued by a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the item belongs.",
|
||||
// "location": "query",
|
||||
// "type": "boolean"
|
||||
// }
|
||||
// },
|
||||
// "path": "files/{fileId}/permissions/{permissionId}",
|
||||
@@ -6702,7 +6788,7 @@ func (c *RepliesCreateCall) Do(opts ...googleapi.CallOption) (*Reply, error) {
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -6980,7 +7066,7 @@ func (c *RepliesGetCall) Do(opts ...googleapi.CallOption) (*Reply, error) {
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -7165,7 +7251,7 @@ func (c *RepliesListCall) Do(opts ...googleapi.CallOption) (*ReplyList, error) {
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -7351,7 +7437,7 @@ func (c *RepliesUpdateCall) Do(opts ...googleapi.CallOption) (*Reply, error) {
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -7642,7 +7728,7 @@ func (c *RevisionsGetCall) Do(opts ...googleapi.CallOption) (*Revision, error) {
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -7815,7 +7901,7 @@ func (c *RevisionsListCall) Do(opts ...googleapi.CallOption) (*RevisionList, err
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -7989,7 +8075,7 @@ func (c *RevisionsUpdateCall) Do(opts ...googleapi.CallOption) (*Revision, error
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -8127,7 +8213,7 @@ func (c *TeamdrivesCreateCall) Do(opts ...googleapi.CallOption) (*TeamDrive, err
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -8274,6 +8360,16 @@ func (r *TeamdrivesService) Get(teamDriveId string) *TeamdrivesGetCall {
|
||||
return c
|
||||
}
|
||||
|
||||
// UseDomainAdminAccess sets the optional parameter
|
||||
// "useDomainAdminAccess": Whether the request should be treated as if
|
||||
// it was issued by a domain administrator; if set to true, then the
|
||||
// requester will be granted access if they are an administrator of the
|
||||
// domain to which the Team Drive belongs.
|
||||
func (c *TeamdrivesGetCall) UseDomainAdminAccess(useDomainAdminAccess bool) *TeamdrivesGetCall {
|
||||
c.urlParams_.Set("useDomainAdminAccess", fmt.Sprint(useDomainAdminAccess))
|
||||
return c
|
||||
}
|
||||
|
||||
// Fields allows partial responses to be retrieved. See
|
||||
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
|
||||
// for more information.
|
||||
@@ -8363,7 +8459,7 @@ func (c *TeamdrivesGetCall) Do(opts ...googleapi.CallOption) (*TeamDrive, error)
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -8380,6 +8476,12 @@ func (c *TeamdrivesGetCall) Do(opts ...googleapi.CallOption) (*TeamDrive, error)
|
||||
// "location": "path",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// },
|
||||
// "useDomainAdminAccess": {
|
||||
// "default": "false",
|
||||
// "description": "Whether the request should be treated as if it was issued by a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the Team Drive belongs.",
|
||||
// "location": "query",
|
||||
// "type": "boolean"
|
||||
// }
|
||||
// },
|
||||
// "path": "teamdrives/{teamDriveId}",
|
||||
@@ -8424,6 +8526,23 @@ func (c *TeamdrivesListCall) PageToken(pageToken string) *TeamdrivesListCall {
|
||||
return c
|
||||
}
|
||||
|
||||
// Q sets the optional parameter "q": Query string for searching Team
|
||||
// Drives.
|
||||
func (c *TeamdrivesListCall) Q(q string) *TeamdrivesListCall {
|
||||
c.urlParams_.Set("q", q)
|
||||
return c
|
||||
}
|
||||
|
||||
// UseDomainAdminAccess sets the optional parameter
|
||||
// "useDomainAdminAccess": Whether the request should be treated as if
|
||||
// it was issued by a domain administrator; if set to true, then all
|
||||
// Team Drives of the domain in which the requester is an administrator
|
||||
// are returned.
|
||||
func (c *TeamdrivesListCall) UseDomainAdminAccess(useDomainAdminAccess bool) *TeamdrivesListCall {
|
||||
c.urlParams_.Set("useDomainAdminAccess", fmt.Sprint(useDomainAdminAccess))
|
||||
return c
|
||||
}
|
||||
|
||||
// Fields allows partial responses to be retrieved. See
|
||||
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
|
||||
// for more information.
|
||||
@@ -8510,7 +8629,7 @@ func (c *TeamdrivesListCall) Do(opts ...googleapi.CallOption) (*TeamDriveList, e
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -8532,6 +8651,17 @@ func (c *TeamdrivesListCall) Do(opts ...googleapi.CallOption) (*TeamDriveList, e
|
||||
// "description": "Page token for Team Drives.",
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
// },
|
||||
// "q": {
|
||||
// "description": "Query string for searching Team Drives.",
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
// },
|
||||
// "useDomainAdminAccess": {
|
||||
// "default": "false",
|
||||
// "description": "Whether the request should be treated as if it was issued by a domain administrator; if set to true, then all Team Drives of the domain in which the requester is an administrator are returned.",
|
||||
// "location": "query",
|
||||
// "type": "boolean"
|
||||
// }
|
||||
// },
|
||||
// "path": "teamdrives",
|
||||
@@ -8667,7 +8797,7 @@ func (c *TeamdrivesUpdateCall) Do(opts ...googleapi.CallOption) (*TeamDrive, err
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
|
||||
Reference in New Issue
Block a user