mirror of
https://github.com/restic/restic.git
synced 2025-12-08 06:09:56 +00:00
Update vendored library google.golang.org/api
This commit is contained in:
parent
5b6568875c
commit
c0960f538f
363 changed files with 581827 additions and 452273 deletions
930
vendor/google.golang.org/api/appsactivity/v1/appsactivity-api.json
generated
vendored
930
vendor/google.golang.org/api/appsactivity/v1/appsactivity-api.json
generated
vendored
|
|
@ -1,489 +1,475 @@
|
|||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/pDZ7o52oB1KPiP4jc8rmQ24ThMo\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "appsactivity:v1",
|
||||
"name": "appsactivity",
|
||||
"version": "v1",
|
||||
"revision": "20170619",
|
||||
"title": "G Suite Activity API",
|
||||
"description": "Provides a historical view of activity.",
|
||||
"ownerDomain": "google.com",
|
||||
"ownerName": "Google",
|
||||
"icons": {
|
||||
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
|
||||
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
|
||||
},
|
||||
"documentationLink": "https://developers.google.com/google-apps/activity/",
|
||||
"protocol": "rest",
|
||||
"baseUrl": "https://www.googleapis.com/appsactivity/v1/",
|
||||
"basePath": "/appsactivity/v1/",
|
||||
"rootUrl": "https://www.googleapis.com/",
|
||||
"servicePath": "appsactivity/v1/",
|
||||
"batchPath": "batch/appsactivity/v1",
|
||||
"parameters": {
|
||||
"alt": {
|
||||
"type": "string",
|
||||
"description": "Data format for the response.",
|
||||
"default": "json",
|
||||
"enum": [
|
||||
"json"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Responses with Content-Type of application/json"
|
||||
],
|
||||
"location": "query"
|
||||
},
|
||||
"fields": {
|
||||
"type": "string",
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"location": "query"
|
||||
},
|
||||
"key": {
|
||||
"type": "string",
|
||||
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
|
||||
"location": "query"
|
||||
},
|
||||
"oauth_token": {
|
||||
"type": "string",
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"location": "query"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"type": "boolean",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"default": "true",
|
||||
"location": "query"
|
||||
},
|
||||
"quotaUser": {
|
||||
"type": "string",
|
||||
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.",
|
||||
"location": "query"
|
||||
},
|
||||
"userIp": {
|
||||
"type": "string",
|
||||
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
"oauth2": {
|
||||
"scopes": {
|
||||
"https://www.googleapis.com/auth/activity": {
|
||||
"description": "View the activity history of your Google apps"
|
||||
},
|
||||
"https://www.googleapis.com/auth/drive": {
|
||||
"description": "View and manage the files in your Google Drive"
|
||||
},
|
||||
"https://www.googleapis.com/auth/drive.metadata": {
|
||||
"description": "View and manage metadata of files in your Google Drive"
|
||||
},
|
||||
"https://www.googleapis.com/auth/drive.metadata.readonly": {
|
||||
"description": "View metadata for files in your Google Drive"
|
||||
},
|
||||
"https://www.googleapis.com/auth/drive.readonly": {
|
||||
"description": "View the files in your Google Drive"
|
||||
"auth": {
|
||||
"oauth2": {
|
||||
"scopes": {
|
||||
"https://www.googleapis.com/auth/activity": {
|
||||
"description": "View the activity history of your Google apps"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"schemas": {
|
||||
"Activity": {
|
||||
"id": "Activity",
|
||||
"type": "object",
|
||||
"description": "An Activity resource is a combined view of multiple events. An activity has a list of individual events and a combined view of the common fields among all events.",
|
||||
"properties": {
|
||||
"combinedEvent": {
|
||||
"$ref": "Event",
|
||||
"description": "The fields common to all of the singleEvents that make up the Activity."
|
||||
},
|
||||
"singleEvents": {
|
||||
"type": "array",
|
||||
"description": "A list of all the Events that make up the Activity.",
|
||||
"items": {
|
||||
"$ref": "Event"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"Event": {
|
||||
"id": "Event",
|
||||
"type": "object",
|
||||
"description": "Represents the changes associated with an action taken by a user.",
|
||||
"properties": {
|
||||
"additionalEventTypes": {
|
||||
"type": "array",
|
||||
"description": "Additional event types. Some events may have multiple types when multiple actions are part of a single event. For example, creating a document, renaming it, and sharing it may be part of a single file-creation event.",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"basePath": "/appsactivity/v1/",
|
||||
"baseUrl": "https://www.googleapis.com/appsactivity/v1/",
|
||||
"batchPath": "batch/appsactivity/v1",
|
||||
"description": "Provides a historical view of activity.",
|
||||
"discoveryVersion": "v1",
|
||||
"documentationLink": "https://developers.google.com/google-apps/activity/",
|
||||
"etag": "\"-iA1DTNe4s-I6JZXPt1t1Ypy8IU/i2G9IjUY6hcmy1d1bAWQZIc125s\"",
|
||||
"icons": {
|
||||
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
|
||||
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
|
||||
},
|
||||
"id": "appsactivity:v1",
|
||||
"kind": "discovery#restDescription",
|
||||
"name": "appsactivity",
|
||||
"ownerDomain": "google.com",
|
||||
"ownerName": "Google",
|
||||
"parameters": {
|
||||
"alt": {
|
||||
"default": "json",
|
||||
"description": "Data format for the response.",
|
||||
"enum": [
|
||||
"comment",
|
||||
"create",
|
||||
"edit",
|
||||
"emptyTrash",
|
||||
"move",
|
||||
"permissionChange",
|
||||
"rename",
|
||||
"trash",
|
||||
"unknown",
|
||||
"untrash",
|
||||
"upload"
|
||||
"json"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
]
|
||||
}
|
||||
"Responses with Content-Type of application/json"
|
||||
],
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"eventTimeMillis": {
|
||||
"type": "string",
|
||||
"description": "The time at which the event occurred formatted as Unix time in milliseconds.",
|
||||
"format": "uint64"
|
||||
"fields": {
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"fromUserDeletion": {
|
||||
"type": "boolean",
|
||||
"description": "Whether this event is caused by a user being deleted."
|
||||
"key": {
|
||||
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"move": {
|
||||
"$ref": "Move",
|
||||
"description": "Extra information for move type events, such as changes in an object's parents."
|
||||
"oauth_token": {
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"permissionChanges": {
|
||||
"type": "array",
|
||||
"description": "Extra information for permissionChange type events, such as the user or group the new permission applies to.",
|
||||
"items": {
|
||||
"$ref": "PermissionChange"
|
||||
}
|
||||
"prettyPrint": {
|
||||
"default": "true",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"location": "query",
|
||||
"type": "boolean"
|
||||
},
|
||||
"primaryEventType": {
|
||||
"type": "string",
|
||||
"description": "The main type of event that occurred.",
|
||||
"enum": [
|
||||
"comment",
|
||||
"create",
|
||||
"edit",
|
||||
"emptyTrash",
|
||||
"move",
|
||||
"permissionChange",
|
||||
"rename",
|
||||
"trash",
|
||||
"unknown",
|
||||
"untrash",
|
||||
"upload"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
]
|
||||
"quotaUser": {
|
||||
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"rename": {
|
||||
"$ref": "Rename",
|
||||
"description": "Extra information for rename type events, such as the old and new names."
|
||||
},
|
||||
"target": {
|
||||
"$ref": "Target",
|
||||
"description": "Information specific to the Target object modified by the event."
|
||||
},
|
||||
"user": {
|
||||
"$ref": "User",
|
||||
"description": "Represents the user responsible for the event."
|
||||
"userIp": {
|
||||
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"ListActivitiesResponse": {
|
||||
"id": "ListActivitiesResponse",
|
||||
"type": "object",
|
||||
"description": "The response from the list request. Contains a list of activities and a token to retrieve the next page of results.",
|
||||
"properties": {
|
||||
"protocol": "rest",
|
||||
"resources": {
|
||||
"activities": {
|
||||
"type": "array",
|
||||
"description": "List of activities.",
|
||||
"items": {
|
||||
"$ref": "Activity"
|
||||
}
|
||||
},
|
||||
"nextPageToken": {
|
||||
"type": "string",
|
||||
"description": "Token for the next page of results."
|
||||
}
|
||||
}
|
||||
},
|
||||
"Move": {
|
||||
"id": "Move",
|
||||
"type": "object",
|
||||
"description": "Contains information about changes in an object's parents as a result of a move type event.",
|
||||
"properties": {
|
||||
"addedParents": {
|
||||
"type": "array",
|
||||
"description": "The added parent(s).",
|
||||
"items": {
|
||||
"$ref": "Parent"
|
||||
}
|
||||
},
|
||||
"removedParents": {
|
||||
"type": "array",
|
||||
"description": "The removed parent(s).",
|
||||
"items": {
|
||||
"$ref": "Parent"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"Parent": {
|
||||
"id": "Parent",
|
||||
"type": "object",
|
||||
"description": "Contains information about a parent object. For example, a folder in Drive is a parent for all files within it.",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"description": "The parent's ID."
|
||||
},
|
||||
"isRoot": {
|
||||
"type": "boolean",
|
||||
"description": "Whether this is the root folder."
|
||||
},
|
||||
"title": {
|
||||
"type": "string",
|
||||
"description": "The parent's title."
|
||||
}
|
||||
}
|
||||
},
|
||||
"Permission": {
|
||||
"id": "Permission",
|
||||
"type": "object",
|
||||
"description": "Contains information about the permissions and type of access allowed with regards to a Google Drive object. This is a subset of the fields contained in a corresponding Drive Permissions object.",
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "The name of the user or group the permission applies to."
|
||||
},
|
||||
"permissionId": {
|
||||
"type": "string",
|
||||
"description": "The ID for this permission. Corresponds to the Drive API's permission ID returned as part of the Drive Permissions resource."
|
||||
},
|
||||
"role": {
|
||||
"type": "string",
|
||||
"description": "Indicates the Google Drive permissions role. The role determines a user's ability to read, write, or comment on the file.",
|
||||
"enum": [
|
||||
"commenter",
|
||||
"owner",
|
||||
"reader",
|
||||
"writer"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"description": "Indicates how widely permissions are granted.",
|
||||
"enum": [
|
||||
"anyone",
|
||||
"domain",
|
||||
"group",
|
||||
"user"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
]
|
||||
},
|
||||
"user": {
|
||||
"$ref": "User",
|
||||
"description": "The user's information if the type is USER."
|
||||
},
|
||||
"withLink": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the permission requires a link to the file."
|
||||
}
|
||||
}
|
||||
},
|
||||
"PermissionChange": {
|
||||
"id": "PermissionChange",
|
||||
"type": "object",
|
||||
"description": "Contains information about a Drive object's permissions that changed as a result of a permissionChange type event.",
|
||||
"properties": {
|
||||
"addedPermissions": {
|
||||
"type": "array",
|
||||
"description": "Lists all Permission objects added.",
|
||||
"items": {
|
||||
"$ref": "Permission"
|
||||
}
|
||||
},
|
||||
"removedPermissions": {
|
||||
"type": "array",
|
||||
"description": "Lists all Permission objects removed.",
|
||||
"items": {
|
||||
"$ref": "Permission"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"Photo": {
|
||||
"id": "Photo",
|
||||
"type": "object",
|
||||
"description": "Photo information for a user.",
|
||||
"properties": {
|
||||
"url": {
|
||||
"type": "string",
|
||||
"description": "The URL of the photo."
|
||||
}
|
||||
}
|
||||
},
|
||||
"Rename": {
|
||||
"id": "Rename",
|
||||
"type": "object",
|
||||
"description": "Contains information about a renametype event.",
|
||||
"properties": {
|
||||
"newTitle": {
|
||||
"type": "string",
|
||||
"description": "The new title."
|
||||
},
|
||||
"oldTitle": {
|
||||
"type": "string",
|
||||
"description": "The old title."
|
||||
}
|
||||
}
|
||||
},
|
||||
"Target": {
|
||||
"id": "Target",
|
||||
"type": "object",
|
||||
"description": "Information about the object modified by the event.",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"description": "The ID of the target. For example, in Google Drive, this is the file or folder ID."
|
||||
},
|
||||
"mimeType": {
|
||||
"type": "string",
|
||||
"description": "The MIME type of the target."
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "The name of the target. For example, in Google Drive, this is the title of the file."
|
||||
}
|
||||
}
|
||||
},
|
||||
"User": {
|
||||
"id": "User",
|
||||
"type": "object",
|
||||
"description": "A representation of a user.",
|
||||
"properties": {
|
||||
"isDeleted": {
|
||||
"type": "boolean",
|
||||
"description": "A boolean which indicates whether the specified User was deleted. If true, name, photo and permission_id will be omitted."
|
||||
},
|
||||
"isMe": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the user is the authenticated user."
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "The displayable name of the user."
|
||||
},
|
||||
"permissionId": {
|
||||
"type": "string",
|
||||
"description": "The permission ID associated with this user. Equivalent to the Drive API's permission ID for this user, returned as part of the Drive Permissions resource."
|
||||
},
|
||||
"photo": {
|
||||
"$ref": "Photo",
|
||||
"description": "The profile photo of the user. Not present if the user has no profile photo."
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"resources": {
|
||||
"activities": {
|
||||
"methods": {
|
||||
"list": {
|
||||
"id": "appsactivity.activities.list",
|
||||
"path": "activities",
|
||||
"httpMethod": "GET",
|
||||
"description": "Returns a list of activities visible to the current logged in user. Visible activities are determined by the visiblity settings of the object that was acted on, e.g. Drive files a user can see. An activity is a record of past events. Multiple events may be merged if they are similar. A request is scoped to activities from a given Google service using the source parameter.",
|
||||
"parameters": {
|
||||
"drive.ancestorId": {
|
||||
"type": "string",
|
||||
"description": "Identifies the Drive folder containing the items for which to return activities.",
|
||||
"location": "query"
|
||||
},
|
||||
"drive.fileId": {
|
||||
"type": "string",
|
||||
"description": "Identifies the Drive item to return activities for.",
|
||||
"location": "query"
|
||||
},
|
||||
"groupingStrategy": {
|
||||
"type": "string",
|
||||
"description": "Indicates the strategy to use when grouping singleEvents items in the associated combinedEvent object.",
|
||||
"default": "driveUi",
|
||||
"enum": [
|
||||
"driveUi",
|
||||
"none"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"",
|
||||
""
|
||||
],
|
||||
"location": "query"
|
||||
},
|
||||
"pageSize": {
|
||||
"type": "integer",
|
||||
"description": "The maximum number of events to return on a page. The response includes a continuation token if there are more events.",
|
||||
"default": "50",
|
||||
"format": "int32",
|
||||
"location": "query"
|
||||
},
|
||||
"pageToken": {
|
||||
"type": "string",
|
||||
"description": "A token to retrieve a specific page of results.",
|
||||
"location": "query"
|
||||
},
|
||||
"source": {
|
||||
"type": "string",
|
||||
"description": "The Google service from which to return activities. Possible values of source are: \n- drive.google.com",
|
||||
"location": "query"
|
||||
},
|
||||
"userId": {
|
||||
"type": "string",
|
||||
"description": "Indicates the user to return activity for. Use the special value me to indicate the currently authenticated user.",
|
||||
"default": "me",
|
||||
"location": "query"
|
||||
"methods": {
|
||||
"list": {
|
||||
"description": "Returns a list of activities visible to the current logged in user. Visible activities are determined by the visiblity settings of the object that was acted on, e.g. Drive files a user can see. An activity is a record of past events. Multiple events may be merged if they are similar. A request is scoped to activities from a given Google service using the source parameter.",
|
||||
"httpMethod": "GET",
|
||||
"id": "appsactivity.activities.list",
|
||||
"parameters": {
|
||||
"drive.ancestorId": {
|
||||
"description": "Identifies the Drive folder containing the items for which to return activities.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"drive.fileId": {
|
||||
"description": "Identifies the Drive item to return activities for.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"groupingStrategy": {
|
||||
"default": "driveUi",
|
||||
"description": "Indicates the strategy to use when grouping singleEvents items in the associated combinedEvent object.",
|
||||
"enum": [
|
||||
"driveUi",
|
||||
"none"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"",
|
||||
""
|
||||
],
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"pageSize": {
|
||||
"default": "50",
|
||||
"description": "The maximum number of events to return on a page. The response includes a continuation token if there are more events.",
|
||||
"format": "int32",
|
||||
"location": "query",
|
||||
"type": "integer"
|
||||
},
|
||||
"pageToken": {
|
||||
"description": "A token to retrieve a specific page of results.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"source": {
|
||||
"description": "The Google service from which to return activities. Possible values of source are: \n- drive.google.com",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"userId": {
|
||||
"default": "me",
|
||||
"description": "Indicates the user to return activity for. Use the special value me to indicate the currently authenticated user.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "activities",
|
||||
"response": {
|
||||
"$ref": "ListActivitiesResponse"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/activity"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"$ref": "ListActivitiesResponse"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/activity",
|
||||
"https://www.googleapis.com/auth/drive",
|
||||
"https://www.googleapis.com/auth/drive.metadata",
|
||||
"https://www.googleapis.com/auth/drive.metadata.readonly",
|
||||
"https://www.googleapis.com/auth/drive.readonly"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"revision": "20180204",
|
||||
"rootUrl": "https://www.googleapis.com/",
|
||||
"schemas": {
|
||||
"Activity": {
|
||||
"description": "An Activity resource is a combined view of multiple events. An activity has a list of individual events and a combined view of the common fields among all events.",
|
||||
"id": "Activity",
|
||||
"properties": {
|
||||
"combinedEvent": {
|
||||
"$ref": "Event",
|
||||
"description": "The fields common to all of the singleEvents that make up the Activity."
|
||||
},
|
||||
"singleEvents": {
|
||||
"description": "A list of all the Events that make up the Activity.",
|
||||
"items": {
|
||||
"$ref": "Event"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"Event": {
|
||||
"description": "Represents the changes associated with an action taken by a user.",
|
||||
"id": "Event",
|
||||
"properties": {
|
||||
"additionalEventTypes": {
|
||||
"description": "Additional event types. Some events may have multiple types when multiple actions are part of a single event. For example, creating a document, renaming it, and sharing it may be part of a single file-creation event.",
|
||||
"items": {
|
||||
"enum": [
|
||||
"comment",
|
||||
"create",
|
||||
"edit",
|
||||
"emptyTrash",
|
||||
"move",
|
||||
"permissionChange",
|
||||
"rename",
|
||||
"trash",
|
||||
"unknown",
|
||||
"untrash",
|
||||
"upload"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"eventTimeMillis": {
|
||||
"description": "The time at which the event occurred formatted as Unix time in milliseconds.",
|
||||
"format": "uint64",
|
||||
"type": "string"
|
||||
},
|
||||
"fromUserDeletion": {
|
||||
"description": "Whether this event is caused by a user being deleted.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"move": {
|
||||
"$ref": "Move",
|
||||
"description": "Extra information for move type events, such as changes in an object's parents."
|
||||
},
|
||||
"permissionChanges": {
|
||||
"description": "Extra information for permissionChange type events, such as the user or group the new permission applies to.",
|
||||
"items": {
|
||||
"$ref": "PermissionChange"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"primaryEventType": {
|
||||
"description": "The main type of event that occurred.",
|
||||
"enum": [
|
||||
"comment",
|
||||
"create",
|
||||
"edit",
|
||||
"emptyTrash",
|
||||
"move",
|
||||
"permissionChange",
|
||||
"rename",
|
||||
"trash",
|
||||
"unknown",
|
||||
"untrash",
|
||||
"upload"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"rename": {
|
||||
"$ref": "Rename",
|
||||
"description": "Extra information for rename type events, such as the old and new names."
|
||||
},
|
||||
"target": {
|
||||
"$ref": "Target",
|
||||
"description": "Information specific to the Target object modified by the event."
|
||||
},
|
||||
"user": {
|
||||
"$ref": "User",
|
||||
"description": "Represents the user responsible for the event."
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"ListActivitiesResponse": {
|
||||
"description": "The response from the list request. Contains a list of activities and a token to retrieve the next page of results.",
|
||||
"id": "ListActivitiesResponse",
|
||||
"properties": {
|
||||
"activities": {
|
||||
"description": "List of activities.",
|
||||
"items": {
|
||||
"$ref": "Activity"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"nextPageToken": {
|
||||
"description": "Token for the next page of results.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"Move": {
|
||||
"description": "Contains information about changes in an object's parents as a result of a move type event.",
|
||||
"id": "Move",
|
||||
"properties": {
|
||||
"addedParents": {
|
||||
"description": "The added parent(s).",
|
||||
"items": {
|
||||
"$ref": "Parent"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"removedParents": {
|
||||
"description": "The removed parent(s).",
|
||||
"items": {
|
||||
"$ref": "Parent"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"Parent": {
|
||||
"description": "Contains information about a parent object. For example, a folder in Drive is a parent for all files within it.",
|
||||
"id": "Parent",
|
||||
"properties": {
|
||||
"id": {
|
||||
"description": "The parent's ID.",
|
||||
"type": "string"
|
||||
},
|
||||
"isRoot": {
|
||||
"description": "Whether this is the root folder.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"title": {
|
||||
"description": "The parent's title.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"Permission": {
|
||||
"description": "Contains information about the permissions and type of access allowed with regards to a Google Drive object. This is a subset of the fields contained in a corresponding Drive Permissions object.",
|
||||
"id": "Permission",
|
||||
"properties": {
|
||||
"name": {
|
||||
"description": "The name of the user or group the permission applies to.",
|
||||
"type": "string"
|
||||
},
|
||||
"permissionId": {
|
||||
"description": "The ID for this permission. Corresponds to the Drive API's permission ID returned as part of the Drive Permissions resource.",
|
||||
"type": "string"
|
||||
},
|
||||
"role": {
|
||||
"description": "Indicates the Google Drive permissions role. The role determines a user's ability to read, write, or comment on the file.",
|
||||
"enum": [
|
||||
"commenter",
|
||||
"owner",
|
||||
"publishedReader",
|
||||
"reader",
|
||||
"writer"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"description": "Indicates how widely permissions are granted.",
|
||||
"enum": [
|
||||
"anyone",
|
||||
"domain",
|
||||
"group",
|
||||
"user"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"user": {
|
||||
"$ref": "User",
|
||||
"description": "The user's information if the type is USER."
|
||||
},
|
||||
"withLink": {
|
||||
"description": "Whether the permission requires a link to the file.",
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"PermissionChange": {
|
||||
"description": "Contains information about a Drive object's permissions that changed as a result of a permissionChange type event.",
|
||||
"id": "PermissionChange",
|
||||
"properties": {
|
||||
"addedPermissions": {
|
||||
"description": "Lists all Permission objects added.",
|
||||
"items": {
|
||||
"$ref": "Permission"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"removedPermissions": {
|
||||
"description": "Lists all Permission objects removed.",
|
||||
"items": {
|
||||
"$ref": "Permission"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"Photo": {
|
||||
"description": "Photo information for a user.",
|
||||
"id": "Photo",
|
||||
"properties": {
|
||||
"url": {
|
||||
"description": "The URL of the photo.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"Rename": {
|
||||
"description": "Contains information about a renametype event.",
|
||||
"id": "Rename",
|
||||
"properties": {
|
||||
"newTitle": {
|
||||
"description": "The new title.",
|
||||
"type": "string"
|
||||
},
|
||||
"oldTitle": {
|
||||
"description": "The old title.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"Target": {
|
||||
"description": "Information about the object modified by the event.",
|
||||
"id": "Target",
|
||||
"properties": {
|
||||
"id": {
|
||||
"description": "The ID of the target. For example, in Google Drive, this is the file or folder ID.",
|
||||
"type": "string"
|
||||
},
|
||||
"mimeType": {
|
||||
"description": "The MIME type of the target.",
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"description": "The name of the target. For example, in Google Drive, this is the title of the file.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"User": {
|
||||
"description": "A representation of a user.",
|
||||
"id": "User",
|
||||
"properties": {
|
||||
"isDeleted": {
|
||||
"description": "A boolean which indicates whether the specified User was deleted. If true, name, photo and permission_id will be omitted.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"isMe": {
|
||||
"description": "Whether the user is the authenticated user.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"name": {
|
||||
"description": "The displayable name of the user.",
|
||||
"type": "string"
|
||||
},
|
||||
"permissionId": {
|
||||
"description": "The permission ID associated with this user. Equivalent to the Drive API's permission ID for this user, returned as part of the Drive Permissions resource.",
|
||||
"type": "string"
|
||||
},
|
||||
"photo": {
|
||||
"$ref": "Photo",
|
||||
"description": "The profile photo of the user. Not present if the user has no profile photo."
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"servicePath": "appsactivity/v1/",
|
||||
"title": "G Suite Activity API",
|
||||
"version": "v1"
|
||||
}
|
||||
19
vendor/google.golang.org/api/appsactivity/v1/appsactivity-gen.go
generated
vendored
19
vendor/google.golang.org/api/appsactivity/v1/appsactivity-gen.go
generated
vendored
|
|
@ -49,18 +49,6 @@ const basePath = "https://www.googleapis.com/appsactivity/v1/"
|
|||
const (
|
||||
// View the activity history of your Google apps
|
||||
ActivityScope = "https://www.googleapis.com/auth/activity"
|
||||
|
||||
// View and manage the files in your Google Drive
|
||||
DriveScope = "https://www.googleapis.com/auth/drive"
|
||||
|
||||
// View and manage metadata of files in your Google Drive
|
||||
DriveMetadataScope = "https://www.googleapis.com/auth/drive.metadata"
|
||||
|
||||
// View metadata for files in your Google Drive
|
||||
DriveMetadataReadonlyScope = "https://www.googleapis.com/auth/drive.metadata.readonly"
|
||||
|
||||
// View the files in your Google Drive
|
||||
DriveReadonlyScope = "https://www.googleapis.com/auth/drive.readonly"
|
||||
)
|
||||
|
||||
func New(client *http.Client) (*Service, error) {
|
||||
|
|
@ -343,6 +331,7 @@ type Permission struct {
|
|||
// Possible values:
|
||||
// "commenter"
|
||||
// "owner"
|
||||
// "publishedReader"
|
||||
// "reader"
|
||||
// "writer"
|
||||
Role string `json:"role,omitempty"`
|
||||
|
|
@ -785,11 +774,7 @@ func (c *ActivitiesListCall) Do(opts ...googleapi.CallOption) (*ListActivitiesRe
|
|||
// "$ref": "ListActivitiesResponse"
|
||||
// },
|
||||
// "scopes": [
|
||||
// "https://www.googleapis.com/auth/activity",
|
||||
// "https://www.googleapis.com/auth/drive",
|
||||
// "https://www.googleapis.com/auth/drive.metadata",
|
||||
// "https://www.googleapis.com/auth/drive.metadata.readonly",
|
||||
// "https://www.googleapis.com/auth/drive.readonly"
|
||||
// "https://www.googleapis.com/auth/activity"
|
||||
// ]
|
||||
// }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue