add GDrive provider support (#118)
* GDrive provider support * More reliable basedir ownership * Fix mimetype
This commit is contained in:
committed by
Remco Verhoef
parent
d0c7241b31
commit
82493d6dcb
411
vendor/google.golang.org/api/admin/datatransfer/v1/admin-api.json
generated
vendored
Normal file
411
vendor/google.golang.org/api/admin/datatransfer/v1/admin-api.json
generated
vendored
Normal file
@@ -0,0 +1,411 @@
|
||||
{
|
||||
"auth": {
|
||||
"oauth2": {
|
||||
"scopes": {
|
||||
"https://www.googleapis.com/auth/admin.datatransfer": {
|
||||
"description": "View and manage data transfers between users in your organization"
|
||||
},
|
||||
"https://www.googleapis.com/auth/admin.datatransfer.readonly": {
|
||||
"description": "View data transfers between users in your organization"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"basePath": "/admin/datatransfer/v1/",
|
||||
"baseUrl": "https://www.googleapis.com/admin/datatransfer/v1/",
|
||||
"batchPath": "batch/admin/datatransfer_v1",
|
||||
"canonicalName": "DataTransfer",
|
||||
"description": "Transfers user data from one user to another.",
|
||||
"discoveryVersion": "v1",
|
||||
"documentationLink": "https://developers.google.com/admin-sdk/data-transfer/",
|
||||
"etag": "\"Zkyw9ACJZUvcYmlFaKGChzhmtnE/PJB_zqya-G8YVADxM394C0jmFUA\"",
|
||||
"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": "admin:datatransfer_v1",
|
||||
"kind": "discovery#restDescription",
|
||||
"name": "admin",
|
||||
"ownerDomain": "google.com",
|
||||
"ownerName": "Google",
|
||||
"packagePath": "admin",
|
||||
"parameters": {
|
||||
"alt": {
|
||||
"default": "json",
|
||||
"description": "Data format for the response.",
|
||||
"enum": [
|
||||
"json"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Responses with Content-Type of application/json"
|
||||
],
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"fields": {
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"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"
|
||||
},
|
||||
"oauth_token": {
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"default": "true",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"location": "query",
|
||||
"type": "boolean"
|
||||
},
|
||||
"quotaUser": {
|
||||
"description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"userIp": {
|
||||
"description": "Deprecated. Please use quotaUser instead.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"protocol": "rest",
|
||||
"resources": {
|
||||
"applications": {
|
||||
"methods": {
|
||||
"get": {
|
||||
"description": "Retrieves information about an application for the given application ID.",
|
||||
"httpMethod": "GET",
|
||||
"id": "datatransfer.applications.get",
|
||||
"parameterOrder": [
|
||||
"applicationId"
|
||||
],
|
||||
"parameters": {
|
||||
"applicationId": {
|
||||
"description": "ID of the application resource to be retrieved.",
|
||||
"format": "int64",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "applications/{applicationId}",
|
||||
"response": {
|
||||
"$ref": "Application"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/admin.datatransfer",
|
||||
"https://www.googleapis.com/auth/admin.datatransfer.readonly"
|
||||
]
|
||||
},
|
||||
"list": {
|
||||
"description": "Lists the applications available for data transfer for a customer.",
|
||||
"httpMethod": "GET",
|
||||
"id": "datatransfer.applications.list",
|
||||
"parameters": {
|
||||
"customerId": {
|
||||
"description": "Immutable ID of the Google Apps account.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"maxResults": {
|
||||
"description": "Maximum number of results to return. Default is 100.",
|
||||
"format": "int32",
|
||||
"location": "query",
|
||||
"maximum": "500",
|
||||
"minimum": "1",
|
||||
"type": "integer"
|
||||
},
|
||||
"pageToken": {
|
||||
"description": "Token to specify next page in the list.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "applications",
|
||||
"response": {
|
||||
"$ref": "ApplicationsListResponse"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/admin.datatransfer",
|
||||
"https://www.googleapis.com/auth/admin.datatransfer.readonly"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"transfers": {
|
||||
"methods": {
|
||||
"get": {
|
||||
"description": "Retrieves a data transfer request by its resource ID.",
|
||||
"httpMethod": "GET",
|
||||
"id": "datatransfer.transfers.get",
|
||||
"parameterOrder": [
|
||||
"dataTransferId"
|
||||
],
|
||||
"parameters": {
|
||||
"dataTransferId": {
|
||||
"description": "ID of the resource to be retrieved. This is returned in the response from the insert method.",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "transfers/{dataTransferId}",
|
||||
"response": {
|
||||
"$ref": "DataTransfer"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/admin.datatransfer",
|
||||
"https://www.googleapis.com/auth/admin.datatransfer.readonly"
|
||||
]
|
||||
},
|
||||
"insert": {
|
||||
"description": "Inserts a data transfer request.",
|
||||
"httpMethod": "POST",
|
||||
"id": "datatransfer.transfers.insert",
|
||||
"path": "transfers",
|
||||
"request": {
|
||||
"$ref": "DataTransfer"
|
||||
},
|
||||
"response": {
|
||||
"$ref": "DataTransfer"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/admin.datatransfer"
|
||||
]
|
||||
},
|
||||
"list": {
|
||||
"description": "Lists the transfers for a customer by source user, destination user, or status.",
|
||||
"httpMethod": "GET",
|
||||
"id": "datatransfer.transfers.list",
|
||||
"parameters": {
|
||||
"customerId": {
|
||||
"description": "Immutable ID of the Google Apps account.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"maxResults": {
|
||||
"description": "Maximum number of results to return. Default is 100.",
|
||||
"format": "int32",
|
||||
"location": "query",
|
||||
"maximum": "500",
|
||||
"minimum": "1",
|
||||
"type": "integer"
|
||||
},
|
||||
"newOwnerUserId": {
|
||||
"description": "Destination user's profile ID.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"oldOwnerUserId": {
|
||||
"description": "Source user's profile ID.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"pageToken": {
|
||||
"description": "Token to specify the next page in the list.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"status": {
|
||||
"description": "Status of the transfer.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "transfers",
|
||||
"response": {
|
||||
"$ref": "DataTransfersListResponse"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/admin.datatransfer",
|
||||
"https://www.googleapis.com/auth/admin.datatransfer.readonly"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"revision": "20160223",
|
||||
"rootUrl": "https://www.googleapis.com/",
|
||||
"schemas": {
|
||||
"Application": {
|
||||
"description": "The JSON template for an Application resource.",
|
||||
"id": "Application",
|
||||
"properties": {
|
||||
"etag": {
|
||||
"description": "Etag of the resource.",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"description": "The application's ID.",
|
||||
"format": "int64",
|
||||
"type": "string"
|
||||
},
|
||||
"kind": {
|
||||
"default": "admin#datatransfer#ApplicationResource",
|
||||
"description": "Identifies the resource as a DataTransfer Application Resource.",
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"description": "The application's name.",
|
||||
"type": "string"
|
||||
},
|
||||
"transferParams": {
|
||||
"description": "The list of all possible transfer parameters for this application. These parameters can be used to select the data of the user in this application to be transfered.",
|
||||
"items": {
|
||||
"$ref": "ApplicationTransferParam"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"ApplicationDataTransfer": {
|
||||
"description": "Template to map fields of ApplicationDataTransfer resource.",
|
||||
"id": "ApplicationDataTransfer",
|
||||
"properties": {
|
||||
"applicationId": {
|
||||
"description": "The application's ID.",
|
||||
"format": "int64",
|
||||
"type": "string"
|
||||
},
|
||||
"applicationTransferParams": {
|
||||
"description": "The transfer parameters for the application. These parameters are used to select the data which will get transfered in context of this application.",
|
||||
"items": {
|
||||
"$ref": "ApplicationTransferParam"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"applicationTransferStatus": {
|
||||
"description": "Current status of transfer for this application. (Read-only)",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"ApplicationTransferParam": {
|
||||
"description": "Template for application transfer parameters.",
|
||||
"id": "ApplicationTransferParam",
|
||||
"properties": {
|
||||
"key": {
|
||||
"description": "The type of the transfer parameter. eg: 'PRIVACY_LEVEL'",
|
||||
"type": "string"
|
||||
},
|
||||
"value": {
|
||||
"description": "The value of the coressponding transfer parameter. eg: 'PRIVATE' or 'SHARED'",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"ApplicationsListResponse": {
|
||||
"description": "Template for a collection of Applications.",
|
||||
"id": "ApplicationsListResponse",
|
||||
"properties": {
|
||||
"applications": {
|
||||
"description": "List of applications that support data transfer and are also installed for the customer.",
|
||||
"items": {
|
||||
"$ref": "Application"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"etag": {
|
||||
"description": "ETag of the resource.",
|
||||
"type": "string"
|
||||
},
|
||||
"kind": {
|
||||
"default": "admin#datatransfer#applicationsList",
|
||||
"description": "Identifies the resource as a collection of Applications.",
|
||||
"type": "string"
|
||||
},
|
||||
"nextPageToken": {
|
||||
"description": "Continuation token which will be used to specify next page in list API.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"DataTransfer": {
|
||||
"description": "The JSON template for a DataTransfer resource.",
|
||||
"id": "DataTransfer",
|
||||
"properties": {
|
||||
"applicationDataTransfers": {
|
||||
"description": "List of per application data transfer resources. It contains data transfer details of the applications associated with this transfer resource. Note that this list is also used to specify the applications for which data transfer has to be done at the time of the transfer resource creation.",
|
||||
"items": {
|
||||
"$ref": "ApplicationDataTransfer"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"etag": {
|
||||
"description": "ETag of the resource.",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"description": "The transfer's ID (Read-only).",
|
||||
"type": "string"
|
||||
},
|
||||
"kind": {
|
||||
"default": "admin#datatransfer#DataTransfer",
|
||||
"description": "Identifies the resource as a DataTransfer request.",
|
||||
"type": "string"
|
||||
},
|
||||
"newOwnerUserId": {
|
||||
"description": "ID of the user to whom the data is being transfered.",
|
||||
"type": "string"
|
||||
},
|
||||
"oldOwnerUserId": {
|
||||
"description": "ID of the user whose data is being transfered.",
|
||||
"type": "string"
|
||||
},
|
||||
"overallTransferStatusCode": {
|
||||
"description": "Overall transfer status (Read-only).",
|
||||
"type": "string"
|
||||
},
|
||||
"requestTime": {
|
||||
"description": "The time at which the data transfer was requested (Read-only).",
|
||||
"format": "date-time",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"DataTransfersListResponse": {
|
||||
"description": "Template for a collection of DataTransfer resources.",
|
||||
"id": "DataTransfersListResponse",
|
||||
"properties": {
|
||||
"dataTransfers": {
|
||||
"description": "List of data transfer requests.",
|
||||
"items": {
|
||||
"$ref": "DataTransfer"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"etag": {
|
||||
"description": "ETag of the resource.",
|
||||
"type": "string"
|
||||
},
|
||||
"kind": {
|
||||
"default": "admin#datatransfer#dataTransfersList",
|
||||
"description": "Identifies the resource as a collection of data transfer requests.",
|
||||
"type": "string"
|
||||
},
|
||||
"nextPageToken": {
|
||||
"description": "Continuation token which will be used to specify next page in list API.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"servicePath": "admin/datatransfer/v1/",
|
||||
"title": "Admin Data Transfer API",
|
||||
"version": "datatransfer_v1"
|
||||
}
|
||||
1164
vendor/google.golang.org/api/admin/datatransfer/v1/admin-gen.go
generated
vendored
Normal file
1164
vendor/google.golang.org/api/admin/datatransfer/v1/admin-gen.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
6799
vendor/google.golang.org/api/admin/directory/v1/admin-api.json
generated
vendored
Normal file
6799
vendor/google.golang.org/api/admin/directory/v1/admin-api.json
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
20675
vendor/google.golang.org/api/admin/directory/v1/admin-gen.go
generated
vendored
Normal file
20675
vendor/google.golang.org/api/admin/directory/v1/admin-gen.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
822
vendor/google.golang.org/api/admin/reports/v1/admin-api.json
generated
vendored
Normal file
822
vendor/google.golang.org/api/admin/reports/v1/admin-api.json
generated
vendored
Normal file
@@ -0,0 +1,822 @@
|
||||
{
|
||||
"auth": {
|
||||
"oauth2": {
|
||||
"scopes": {
|
||||
"https://www.googleapis.com/auth/admin.reports.audit.readonly": {
|
||||
"description": "View audit reports for your G Suite domain"
|
||||
},
|
||||
"https://www.googleapis.com/auth/admin.reports.usage.readonly": {
|
||||
"description": "View usage reports for your G Suite domain"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"basePath": "/admin/reports/v1/",
|
||||
"baseUrl": "https://www.googleapis.com/admin/reports/v1/",
|
||||
"batchPath": "batch/admin/reports_v1",
|
||||
"canonicalName": "reports",
|
||||
"description": "Fetches reports for the administrators of G Suite customers about the usage, collaboration, security, and risk for their users.",
|
||||
"discoveryVersion": "v1",
|
||||
"documentationLink": "https://developers.google.com/admin-sdk/reports/",
|
||||
"etag": "\"Zkyw9ACJZUvcYmlFaKGChzhmtnE/qLYAvJFGLfyQS5NN2Ycs-uWKdaw\"",
|
||||
"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": "admin:reports_v1",
|
||||
"kind": "discovery#restDescription",
|
||||
"name": "admin",
|
||||
"ownerDomain": "google.com",
|
||||
"ownerName": "Google",
|
||||
"packagePath": "admin",
|
||||
"parameters": {
|
||||
"alt": {
|
||||
"default": "json",
|
||||
"description": "Data format for the response.",
|
||||
"enum": [
|
||||
"json"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Responses with Content-Type of application/json"
|
||||
],
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"fields": {
|
||||
"description": "Selector specifying which fields to include in a partial response.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"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"
|
||||
},
|
||||
"oauth_token": {
|
||||
"description": "OAuth 2.0 token for the current user.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"default": "true",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
"location": "query",
|
||||
"type": "boolean"
|
||||
},
|
||||
"quotaUser": {
|
||||
"description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"userIp": {
|
||||
"description": "Deprecated. Please use quotaUser instead.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"protocol": "rest",
|
||||
"resources": {
|
||||
"activities": {
|
||||
"methods": {
|
||||
"list": {
|
||||
"description": "Retrieves a list of activities for a specific customer and application.",
|
||||
"httpMethod": "GET",
|
||||
"id": "reports.activities.list",
|
||||
"parameterOrder": [
|
||||
"userKey",
|
||||
"applicationName"
|
||||
],
|
||||
"parameters": {
|
||||
"actorIpAddress": {
|
||||
"description": "IP Address of host where the event was performed. Supports both IPv4 and IPv6 addresses.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"applicationName": {
|
||||
"description": "Application name for which the events are to be retrieved.",
|
||||
"location": "path",
|
||||
"pattern": "(admin)|(calendar)|(drive)|(login)|(mobile)|(token)|(groups)|(saml)|(chat)|(gplus)|(rules)|(jamboard)|(meet)",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"customerId": {
|
||||
"description": "Represents the customer for which the data is to be fetched.",
|
||||
"location": "query",
|
||||
"pattern": "C.+",
|
||||
"type": "string"
|
||||
},
|
||||
"endTime": {
|
||||
"description": "Return events which occurred at or before this time.",
|
||||
"location": "query",
|
||||
"pattern": "(\\d\\d\\d\\d)-(\\d\\d)-(\\d\\d)T(\\d\\d):(\\d\\d):(\\d\\d)(?:\\.(\\d+))?(?:(Z)|([-+])(\\d\\d):(\\d\\d))",
|
||||
"type": "string"
|
||||
},
|
||||
"eventName": {
|
||||
"description": "Name of the event being queried.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"filters": {
|
||||
"description": "Event parameters in the form [parameter1 name][operator][parameter1 value],[parameter2 name][operator][parameter2 value],...",
|
||||
"location": "query",
|
||||
"pattern": "(.+[\u003c,\u003c=,==,\u003e=,\u003e,\u003c\u003e].+,)*(.+[\u003c,\u003c=,==,\u003e=,\u003e,\u003c\u003e].+)",
|
||||
"type": "string"
|
||||
},
|
||||
"maxResults": {
|
||||
"description": "Number of activity records to be shown in each page.",
|
||||
"format": "int32",
|
||||
"location": "query",
|
||||
"maximum": "1000",
|
||||
"minimum": "1",
|
||||
"type": "integer"
|
||||
},
|
||||
"pageToken": {
|
||||
"description": "Token to specify next page.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"startTime": {
|
||||
"description": "Return events which occurred at or after this time.",
|
||||
"location": "query",
|
||||
"pattern": "(\\d\\d\\d\\d)-(\\d\\d)-(\\d\\d)T(\\d\\d):(\\d\\d):(\\d\\d)(?:\\.(\\d+))?(?:(Z)|([-+])(\\d\\d):(\\d\\d))",
|
||||
"type": "string"
|
||||
},
|
||||
"userKey": {
|
||||
"description": "Represents the profile id or the user email for which the data should be filtered. When 'all' is specified as the userKey, it returns usageReports for all users.",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "activity/users/{userKey}/applications/{applicationName}",
|
||||
"response": {
|
||||
"$ref": "Activities"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/admin.reports.audit.readonly"
|
||||
],
|
||||
"supportsSubscription": true
|
||||
},
|
||||
"watch": {
|
||||
"description": "Push changes to activities",
|
||||
"httpMethod": "POST",
|
||||
"id": "reports.activities.watch",
|
||||
"parameterOrder": [
|
||||
"userKey",
|
||||
"applicationName"
|
||||
],
|
||||
"parameters": {
|
||||
"actorIpAddress": {
|
||||
"description": "IP Address of host where the event was performed. Supports both IPv4 and IPv6 addresses.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"applicationName": {
|
||||
"description": "Application name for which the events are to be retrieved.",
|
||||
"location": "path",
|
||||
"pattern": "(admin)|(calendar)|(drive)|(login)|(mobile)|(token)|(groups)|(saml)|(chat)|(gplus)|(rules)|(jamboard)|(meet)",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"customerId": {
|
||||
"description": "Represents the customer for which the data is to be fetched.",
|
||||
"location": "query",
|
||||
"pattern": "C.+",
|
||||
"type": "string"
|
||||
},
|
||||
"endTime": {
|
||||
"description": "Return events which occurred at or before this time.",
|
||||
"location": "query",
|
||||
"pattern": "(\\d\\d\\d\\d)-(\\d\\d)-(\\d\\d)T(\\d\\d):(\\d\\d):(\\d\\d)(?:\\.(\\d+))?(?:(Z)|([-+])(\\d\\d):(\\d\\d))",
|
||||
"type": "string"
|
||||
},
|
||||
"eventName": {
|
||||
"description": "Name of the event being queried.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"filters": {
|
||||
"description": "Event parameters in the form [parameter1 name][operator][parameter1 value],[parameter2 name][operator][parameter2 value],...",
|
||||
"location": "query",
|
||||
"pattern": "(.+[\u003c,\u003c=,==,\u003e=,\u003e,\u003c\u003e].+,)*(.+[\u003c,\u003c=,==,\u003e=,\u003e,\u003c\u003e].+)",
|
||||
"type": "string"
|
||||
},
|
||||
"maxResults": {
|
||||
"description": "Number of activity records to be shown in each page.",
|
||||
"format": "int32",
|
||||
"location": "query",
|
||||
"maximum": "1000",
|
||||
"minimum": "1",
|
||||
"type": "integer"
|
||||
},
|
||||
"pageToken": {
|
||||
"description": "Token to specify next page.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"startTime": {
|
||||
"description": "Return events which occurred at or after this time.",
|
||||
"location": "query",
|
||||
"pattern": "(\\d\\d\\d\\d)-(\\d\\d)-(\\d\\d)T(\\d\\d):(\\d\\d):(\\d\\d)(?:\\.(\\d+))?(?:(Z)|([-+])(\\d\\d):(\\d\\d))",
|
||||
"type": "string"
|
||||
},
|
||||
"userKey": {
|
||||
"description": "Represents the profile id or the user email for which the data should be filtered. When 'all' is specified as the userKey, it returns usageReports for all users.",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "activity/users/{userKey}/applications/{applicationName}/watch",
|
||||
"request": {
|
||||
"$ref": "Channel",
|
||||
"parameterName": "resource"
|
||||
},
|
||||
"response": {
|
||||
"$ref": "Channel"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/admin.reports.audit.readonly"
|
||||
],
|
||||
"supportsSubscription": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"channels": {
|
||||
"methods": {
|
||||
"stop": {
|
||||
"description": "Stop watching resources through this channel",
|
||||
"httpMethod": "POST",
|
||||
"id": "admin.channels.stop",
|
||||
"path": "/admin/reports_v1/channels/stop",
|
||||
"request": {
|
||||
"$ref": "Channel",
|
||||
"parameterName": "resource"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/admin.reports.audit.readonly"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"customerUsageReports": {
|
||||
"methods": {
|
||||
"get": {
|
||||
"description": "Retrieves a report which is a collection of properties / statistics for a specific customer.",
|
||||
"httpMethod": "GET",
|
||||
"id": "reports.customerUsageReports.get",
|
||||
"parameterOrder": [
|
||||
"date"
|
||||
],
|
||||
"parameters": {
|
||||
"customerId": {
|
||||
"description": "Represents the customer for which the data is to be fetched.",
|
||||
"location": "query",
|
||||
"pattern": "C.+",
|
||||
"type": "string"
|
||||
},
|
||||
"date": {
|
||||
"description": "Represents the date in yyyy-mm-dd format for which the data is to be fetched.",
|
||||
"location": "path",
|
||||
"pattern": "(\\d){4}-(\\d){2}-(\\d){2}",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"pageToken": {
|
||||
"description": "Token to specify next page.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"parameters": {
|
||||
"description": "Represents the application name, parameter name pairs to fetch in csv as app_name1:param_name1, app_name2:param_name2.",
|
||||
"location": "query",
|
||||
"pattern": "(((accounts)|(app_maker)|(apps_scripts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)|(meet)):[^,]+,)*(((accounts)|(app_maker)|(apps_scripts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)|(meet)):[^,]+)",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "usage/dates/{date}",
|
||||
"response": {
|
||||
"$ref": "UsageReports"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/admin.reports.usage.readonly"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"entityUsageReports": {
|
||||
"methods": {
|
||||
"get": {
|
||||
"description": "Retrieves a report which is a collection of properties / statistics for a set of objects.",
|
||||
"httpMethod": "GET",
|
||||
"id": "reports.entityUsageReports.get",
|
||||
"parameterOrder": [
|
||||
"entityType",
|
||||
"entityKey",
|
||||
"date"
|
||||
],
|
||||
"parameters": {
|
||||
"customerId": {
|
||||
"description": "Represents the customer for which the data is to be fetched.",
|
||||
"location": "query",
|
||||
"pattern": "C.+",
|
||||
"type": "string"
|
||||
},
|
||||
"date": {
|
||||
"description": "Represents the date in yyyy-mm-dd format for which the data is to be fetched.",
|
||||
"location": "path",
|
||||
"pattern": "(\\d){4}-(\\d){2}-(\\d){2}",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"entityKey": {
|
||||
"description": "Represents the key of object for which the data should be filtered.",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"entityType": {
|
||||
"description": "Type of object. Should be one of - gplus_communities.",
|
||||
"location": "path",
|
||||
"pattern": "(gplus_communities)",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"filters": {
|
||||
"description": "Represents the set of filters including parameter operator value.",
|
||||
"location": "query",
|
||||
"pattern": "(((gplus)):[a-z0-9_]+[\u003c,\u003c=,==,\u003e=,\u003e,!=][^,]+,)*(((gplus)):[a-z0-9_]+[\u003c,\u003c=,==,\u003e=,\u003e,!=][^,]+)",
|
||||
"type": "string"
|
||||
},
|
||||
"maxResults": {
|
||||
"description": "Maximum number of results to return. Maximum allowed is 1000",
|
||||
"format": "uint32",
|
||||
"location": "query",
|
||||
"maximum": "1000",
|
||||
"type": "integer"
|
||||
},
|
||||
"pageToken": {
|
||||
"description": "Token to specify next page.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"parameters": {
|
||||
"description": "Represents the application name, parameter name pairs to fetch in csv as app_name1:param_name1, app_name2:param_name2.",
|
||||
"location": "query",
|
||||
"pattern": "(((gplus)):[^,]+,)*(((gplus)):[^,]+)",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "usage/{entityType}/{entityKey}/dates/{date}",
|
||||
"response": {
|
||||
"$ref": "UsageReports"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/admin.reports.usage.readonly"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"userUsageReport": {
|
||||
"methods": {
|
||||
"get": {
|
||||
"description": "Retrieves a report which is a collection of properties / statistics for a set of users.",
|
||||
"httpMethod": "GET",
|
||||
"id": "reports.userUsageReport.get",
|
||||
"parameterOrder": [
|
||||
"userKey",
|
||||
"date"
|
||||
],
|
||||
"parameters": {
|
||||
"customerId": {
|
||||
"description": "Represents the customer for which the data is to be fetched.",
|
||||
"location": "query",
|
||||
"pattern": "C.+",
|
||||
"type": "string"
|
||||
},
|
||||
"date": {
|
||||
"description": "Represents the date in yyyy-mm-dd format for which the data is to be fetched.",
|
||||
"location": "path",
|
||||
"pattern": "(\\d){4}-(\\d){2}-(\\d){2}",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"filters": {
|
||||
"description": "Represents the set of filters including parameter operator value.",
|
||||
"location": "query",
|
||||
"pattern": "(((accounts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)):[a-z0-9_]+[\u003c,\u003c=,==,\u003e=,\u003e,!=][^,]+,)*(((accounts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)):[a-z0-9_]+[\u003c,\u003c=,==,\u003e=,\u003e,!=][^,]+)",
|
||||
"type": "string"
|
||||
},
|
||||
"maxResults": {
|
||||
"description": "Maximum number of results to return. Maximum allowed is 1000",
|
||||
"format": "uint32",
|
||||
"location": "query",
|
||||
"maximum": "1000",
|
||||
"type": "integer"
|
||||
},
|
||||
"pageToken": {
|
||||
"description": "Token to specify next page.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"parameters": {
|
||||
"description": "Represents the application name, parameter name pairs to fetch in csv as app_name1:param_name1, app_name2:param_name2.",
|
||||
"location": "query",
|
||||
"pattern": "(((accounts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)):[^,]+,)*(((accounts)|(classroom)|(cros)|(gmail)|(calendar)|(docs)|(gplus)|(sites)|(device_management)|(drive)):[^,]+)",
|
||||
"type": "string"
|
||||
},
|
||||
"userKey": {
|
||||
"description": "Represents the profile id or the user email for which the data should be filtered.",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "usage/users/{userKey}/dates/{date}",
|
||||
"response": {
|
||||
"$ref": "UsageReports"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/admin.reports.usage.readonly"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"revision": "20180514",
|
||||
"rootUrl": "https://www.googleapis.com/",
|
||||
"schemas": {
|
||||
"Activities": {
|
||||
"description": "JSON template for a collection of activites.",
|
||||
"id": "Activities",
|
||||
"properties": {
|
||||
"etag": {
|
||||
"description": "ETag of the resource.",
|
||||
"type": "string"
|
||||
},
|
||||
"items": {
|
||||
"description": "Each record in read response.",
|
||||
"items": {
|
||||
"$ref": "Activity"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"kind": {
|
||||
"default": "admin#reports#activities",
|
||||
"description": "Kind of list response this is.",
|
||||
"type": "string"
|
||||
},
|
||||
"nextPageToken": {
|
||||
"description": "Token for retrieving the next page",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"Activity": {
|
||||
"description": "JSON template for the activity resource.",
|
||||
"id": "Activity",
|
||||
"properties": {
|
||||
"actor": {
|
||||
"description": "User doing the action.",
|
||||
"properties": {
|
||||
"callerType": {
|
||||
"description": "User or OAuth 2LO request.",
|
||||
"type": "string"
|
||||
},
|
||||
"email": {
|
||||
"description": "Email address of the user.",
|
||||
"type": "string"
|
||||
},
|
||||
"key": {
|
||||
"description": "For OAuth 2LO API requests, consumer_key of the requestor.",
|
||||
"type": "string"
|
||||
},
|
||||
"profileId": {
|
||||
"description": "Obfuscated user id of the user.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"etag": {
|
||||
"description": "ETag of the entry.",
|
||||
"type": "string"
|
||||
},
|
||||
"events": {
|
||||
"description": "Activity events.",
|
||||
"items": {
|
||||
"properties": {
|
||||
"name": {
|
||||
"description": "Name of event.",
|
||||
"type": "string"
|
||||
},
|
||||
"parameters": {
|
||||
"description": "Parameter value pairs for various applications.",
|
||||
"items": {
|
||||
"properties": {
|
||||
"boolValue": {
|
||||
"description": "Boolean value of the parameter.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"intValue": {
|
||||
"description": "Integral value of the parameter.",
|
||||
"format": "int64",
|
||||
"type": "string"
|
||||
},
|
||||
"multiIntValue": {
|
||||
"description": "Multi-int value of the parameter.",
|
||||
"items": {
|
||||
"format": "int64",
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"multiValue": {
|
||||
"description": "Multi-string value of the parameter.",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"name": {
|
||||
"description": "The name of the parameter.",
|
||||
"type": "string"
|
||||
},
|
||||
"value": {
|
||||
"description": "String value of the parameter.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"type": {
|
||||
"description": "Type of event.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"id": {
|
||||
"description": "Unique identifier for each activity record.",
|
||||
"properties": {
|
||||
"applicationName": {
|
||||
"description": "Application name to which the event belongs.",
|
||||
"type": "string"
|
||||
},
|
||||
"customerId": {
|
||||
"description": "Obfuscated customer ID of the source customer.",
|
||||
"type": "string"
|
||||
},
|
||||
"time": {
|
||||
"description": "Time of occurrence of the activity.",
|
||||
"format": "date-time",
|
||||
"type": "string"
|
||||
},
|
||||
"uniqueQualifier": {
|
||||
"description": "Unique qualifier if multiple events have the same time.",
|
||||
"format": "int64",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"ipAddress": {
|
||||
"description": "IP Address of the user doing the action.",
|
||||
"type": "string"
|
||||
},
|
||||
"kind": {
|
||||
"default": "admin#reports#activity",
|
||||
"description": "Kind of resource this is.",
|
||||
"type": "string"
|
||||
},
|
||||
"ownerDomain": {
|
||||
"description": "Domain of source customer.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"Channel": {
|
||||
"description": "An notification channel used to watch for resource changes.",
|
||||
"id": "Channel",
|
||||
"properties": {
|
||||
"address": {
|
||||
"description": "The address where notifications are delivered for this channel.",
|
||||
"type": "string"
|
||||
},
|
||||
"expiration": {
|
||||
"description": "Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional.",
|
||||
"format": "int64",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"description": "A UUID or similar unique string that identifies this channel.",
|
||||
"type": "string"
|
||||
},
|
||||
"kind": {
|
||||
"default": "api#channel",
|
||||
"description": "Identifies this as a notification channel used to watch for changes to a resource. Value: the fixed string \"api#channel\".",
|
||||
"type": "string"
|
||||
},
|
||||
"params": {
|
||||
"additionalProperties": {
|
||||
"description": "Declares a new parameter by name.",
|
||||
"type": "string"
|
||||
},
|
||||
"description": "Additional parameters controlling delivery channel behavior. Optional.",
|
||||
"type": "object"
|
||||
},
|
||||
"payload": {
|
||||
"description": "A Boolean value to indicate whether payload is wanted. Optional.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"resourceId": {
|
||||
"description": "An opaque ID that identifies the resource being watched on this channel. Stable across different API versions.",
|
||||
"type": "string"
|
||||
},
|
||||
"resourceUri": {
|
||||
"description": "A version-specific identifier for the watched resource.",
|
||||
"type": "string"
|
||||
},
|
||||
"token": {
|
||||
"description": "An arbitrary string delivered to the target address with each notification delivered over this channel. Optional.",
|
||||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"description": "The type of delivery mechanism used for this channel.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"UsageReport": {
|
||||
"description": "JSON template for a usage report.",
|
||||
"id": "UsageReport",
|
||||
"properties": {
|
||||
"date": {
|
||||
"description": "The date to which the record belongs.",
|
||||
"readOnly": true,
|
||||
"type": "string"
|
||||
},
|
||||
"entity": {
|
||||
"description": "Information about the type of the item.",
|
||||
"properties": {
|
||||
"customerId": {
|
||||
"description": "Obfuscated customer id for the record.",
|
||||
"readOnly": true,
|
||||
"type": "string"
|
||||
},
|
||||
"entityId": {
|
||||
"description": "Object key. Only relevant if entity.type = \"OBJECT\" Note: external-facing name of report is \"Entities\" rather than \"Objects\".",
|
||||
"readOnly": true,
|
||||
"type": "string"
|
||||
},
|
||||
"profileId": {
|
||||
"description": "Obfuscated user id for the record.",
|
||||
"readOnly": true,
|
||||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"description": "The type of item, can be customer, user, or entity (aka. object).",
|
||||
"readOnly": true,
|
||||
"type": "string"
|
||||
},
|
||||
"userEmail": {
|
||||
"description": "user's email. Only relevant if entity.type = \"USER\"",
|
||||
"readOnly": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"readOnly": true,
|
||||
"type": "object"
|
||||
},
|
||||
"etag": {
|
||||
"description": "ETag of the resource.",
|
||||
"type": "string"
|
||||
},
|
||||
"kind": {
|
||||
"default": "admin#reports#usageReport",
|
||||
"description": "The kind of object.",
|
||||
"type": "string"
|
||||
},
|
||||
"parameters": {
|
||||
"description": "Parameter value pairs for various applications.",
|
||||
"items": {
|
||||
"properties": {
|
||||
"boolValue": {
|
||||
"description": "Boolean value of the parameter.",
|
||||
"readOnly": true,
|
||||
"type": "boolean"
|
||||
},
|
||||
"datetimeValue": {
|
||||
"description": "RFC 3339 formatted value of the parameter.",
|
||||
"format": "date-time",
|
||||
"readOnly": true,
|
||||
"type": "string"
|
||||
},
|
||||
"intValue": {
|
||||
"description": "Integral value of the parameter.",
|
||||
"format": "int64",
|
||||
"readOnly": true,
|
||||
"type": "string"
|
||||
},
|
||||
"msgValue": {
|
||||
"description": "Nested message value of the parameter.",
|
||||
"items": {
|
||||
"additionalProperties": {
|
||||
"type": "any"
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"readOnly": true,
|
||||
"type": "array"
|
||||
},
|
||||
"name": {
|
||||
"description": "The name of the parameter.",
|
||||
"type": "string"
|
||||
},
|
||||
"stringValue": {
|
||||
"description": "String value of the parameter.",
|
||||
"readOnly": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"readOnly": true,
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"UsageReports": {
|
||||
"description": "JSON template for a collection of usage reports.",
|
||||
"id": "UsageReports",
|
||||
"properties": {
|
||||
"etag": {
|
||||
"description": "ETag of the resource.",
|
||||
"type": "string"
|
||||
},
|
||||
"kind": {
|
||||
"default": "admin#reports#usageReports",
|
||||
"description": "The kind of object.",
|
||||
"type": "string"
|
||||
},
|
||||
"nextPageToken": {
|
||||
"description": "Token for retrieving the next page",
|
||||
"type": "string"
|
||||
},
|
||||
"usageReports": {
|
||||
"description": "Various application parameter records.",
|
||||
"items": {
|
||||
"$ref": "UsageReport"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"warnings": {
|
||||
"description": "Warnings if any.",
|
||||
"items": {
|
||||
"properties": {
|
||||
"code": {
|
||||
"description": "Machine readable code / warning type.",
|
||||
"type": "string"
|
||||
},
|
||||
"data": {
|
||||
"description": "Key-Value pairs to give detailed information on the warning.",
|
||||
"items": {
|
||||
"properties": {
|
||||
"key": {
|
||||
"description": "Key associated with a key-value pair to give detailed information on the warning.",
|
||||
"type": "string"
|
||||
},
|
||||
"value": {
|
||||
"description": "Value associated with a key-value pair to give detailed information on the warning.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"message": {
|
||||
"description": "Human readable message for the warning.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"servicePath": "admin/reports/v1/",
|
||||
"title": "Admin Reports API",
|
||||
"version": "reports_v1"
|
||||
}
|
||||
1972
vendor/google.golang.org/api/admin/reports/v1/admin-gen.go
generated
vendored
Normal file
1972
vendor/google.golang.org/api/admin/reports/v1/admin-gen.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user