Skip to content

Commit

Permalink
feat(groupsmigration)!: update the API
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This release has breaking changes.
#### groupsmigration:v1
The following keys were deleted:
- etag
- parameters.userIp.description
- parameters.userIp.location
- parameters.userIp.type
- resources.archive.methods.insert.mediaUpload.protocols.resumable.multipart
- resources.archive.methods.insert.mediaUpload.protocols.resumable.path
- schemas.Groups.properties.kind.default

The following keys were added:
- mtlsRootUrl
- parameters.$.xgafv.description
- parameters.$.xgafv.enum
- parameters.$.xgafv.enumDescriptions
- parameters.$.xgafv.location
- parameters.$.xgafv.type
- parameters.access_token.description
- parameters.access_token.location
- parameters.access_token.type
- parameters.callback.description
- parameters.callback.location
- parameters.callback.type
- parameters.uploadType.description
- parameters.uploadType.location
- parameters.uploadType.type
- parameters.upload_protocol.description
- parameters.upload_protocol.location
- parameters.upload_protocol.type
- resources.archive.methods.insert.flatPath

The following keys were changed:
- baseUrl
- batchPath
- description
- icons.x16
- icons.x32
- parameters.alt.description
- parameters.alt.enum
- parameters.alt.enumDescriptions
- parameters.quotaUser.description
- resources.archive.methods.insert.mediaUpload.maxSize
- resources.archive.methods.insert.path
- rootUrl
  • Loading branch information
sofisl committed Aug 25, 2020
1 parent 37d0f0b commit cc6fb96
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 29 deletions.
74 changes: 51 additions & 23 deletions discovery/groupsmigration-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,36 +8,63 @@
}
}
},
"basePath": "/groups/v1/groups/",
"baseUrl": "https://www.googleapis.com/groups/v1/groups/",
"batchPath": "batch/groupsmigration/v1",
"basePath": "",
"baseUrl": "https://groupsmigration.googleapis.com/",
"batchPath": "batch",
"canonicalName": "Groups Migration",
"description": "Groups Migration Api.",
"description": "The Groups Migration API allows domain administrators to archive emails into Google groups.",
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/google-apps/groups-migration/",
"etag": "\"u9GIe6H63LSGq-9_t39K2Zx_EAc/qDu5470S_QfnHCP_4GxoX8OU3Kg\"",
"icons": {
"x16": "https://www.google.com/images/icons/product/discussions-16.gif",
"x32": "https://www.google.com/images/icons/product/discussions-32.gif"
"x16": "http://www.google.com/images/icons/product/search-16.gif",
"x32": "http://www.google.com/images/icons/product/search-32.gif"
},
"id": "groupsmigration:v1",
"kind": "discovery#restDescription",
"mtlsRootUrl": "https://groupsmigration.mtls.googleapis.com/",
"name": "groupsmigration",
"ownerDomain": "google.com",
"ownerName": "Google",
"parameters": {
"$.xgafv": {
"description": "V1 error format.",
"enum": [
"1",
"2"
],
"enumDescriptions": [
"v1 error format",
"v2 error format"
],
"location": "query",
"type": "string"
},
"access_token": {
"description": "OAuth access token.",
"location": "query",
"type": "string"
},
"alt": {
"default": "json",
"description": "Data format for the response.",
"description": "Data format for response.",
"enum": [
"json"
"json",
"media",
"proto"
],
"enumDescriptions": [
"Responses with Content-Type of application/json"
"Responses with Content-Type of application/json",
"Media download with context-dependent Content-Type",
"Responses with Content-Type of application/x-protobuf"
],
"location": "query",
"type": "string"
},
"callback": {
"description": "JSONP",
"location": "query",
"type": "string"
},
"fields": {
"description": "Selector specifying which fields to include in a partial response.",
"location": "query",
Expand All @@ -60,12 +87,17 @@
"type": "boolean"
},
"quotaUser": {
"description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.",
"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.",
"location": "query",
"type": "string"
},
"userIp": {
"description": "Deprecated. Please use quotaUser instead.",
"uploadType": {
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
"location": "query",
"type": "string"
},
"upload_protocol": {
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
"location": "query",
"type": "string"
}
Expand All @@ -76,18 +108,15 @@
"methods": {
"insert": {
"description": "Inserts a new mail into the archive of the Google group.",
"flatPath": "groups/v1/groups/{groupId}/archive",
"httpMethod": "POST",
"id": "groupsmigration.archive.insert",
"mediaUpload": {
"accept": [
"message/rfc822"
],
"maxSize": "25MB",
"maxSize": "26214400",
"protocols": {
"resumable": {
"multipart": true,
"path": "/resumable/upload/groups/v1/groups/{groupId}/archive"
},
"simple": {
"multipart": true,
"path": "/upload/groups/v1/groups/{groupId}/archive"
Expand All @@ -105,7 +134,7 @@
"type": "string"
}
},
"path": "{groupId}/archive",
"path": "groups/v1/groups/{groupId}/archive",
"response": {
"$ref": "Groups"
},
Expand All @@ -117,15 +146,14 @@
}
}
},
"revision": "20181126",
"rootUrl": "https://www.googleapis.com/",
"revision": "20200820",
"rootUrl": "https://groupsmigration.googleapis.com/",
"schemas": {
"Groups": {
"description": "JSON response template for groups migration API.",
"id": "Groups",
"properties": {
"kind": {
"default": "groupsmigration#groups",
"description": "The kind of insert resource this is.",
"type": "string"
},
Expand All @@ -137,7 +165,7 @@
"type": "object"
}
},
"servicePath": "groups/v1/groups/",
"servicePath": "",
"title": "Groups Migration API",
"version": "v1"
}
29 changes: 23 additions & 6 deletions src/apis/groupsmigration/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,21 @@ export namespace groupsmigration_v1 {
| GoogleAuth;

/**
* Data format for the response.
* V1 error format.
*/
'$.xgafv'?: string;
/**
* OAuth access token.
*/
access_token?: string;
/**
* Data format for response.
*/
alt?: string;
/**
* JSONP
*/
callback?: string;
/**
* Selector specifying which fields to include in a partial response.
*/
Expand All @@ -73,19 +85,23 @@ export namespace groupsmigration_v1 {
*/
prettyPrint?: boolean;
/**
* An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
* 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.
*/
quotaUser?: string;
/**
* Deprecated. Please use quotaUser instead.
* Legacy upload protocol for media (e.g. "media", "multipart").
*/
uploadType?: string;
/**
* Upload protocol for media (e.g. "raw", "multipart").
*/
userIp?: string;
upload_protocol?: string;
}

/**
* Groups Migration API
*
* Groups Migration Api.
* The Groups Migration API allows domain administrators to archive emails into Google groups.
*
* @example
* const {google} = require('googleapis');
Expand Down Expand Up @@ -246,7 +262,8 @@ export namespace groupsmigration_v1 {
options = {};
}

const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
const rootUrl =
options.rootUrl || 'https://groupsmigration.googleapis.com/';
const parameters = {
options: Object.assign(
{
Expand Down

0 comments on commit cc6fb96

Please sign in to comment.