mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-23 15:49:49 +01:00
Update to latest versions of API declarations
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
{
|
||||
"kind": "discovery#restDescription",
|
||||
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/KN8GrB2y-CsV6bxSvl7bWp7E8GE\"",
|
||||
"etag": "\"J3WqvAcMk4eQjJXvfSI4Yr8VouA/zhBQnUVXp-QQ6Y6QUt5UiGZD_sA\"",
|
||||
"discoveryVersion": "v1",
|
||||
"id": "gmail:v1",
|
||||
"name": "gmail",
|
||||
"version": "v1",
|
||||
"revision": "20171128",
|
||||
"revision": "20180904",
|
||||
"title": "Gmail API",
|
||||
"description": "Access Gmail mailboxes including sending user email.",
|
||||
"ownerDomain": "google.com",
|
||||
@@ -57,12 +57,12 @@
|
||||
},
|
||||
"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.",
|
||||
"description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.",
|
||||
"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.",
|
||||
"description": "Deprecated. Please use quotaUser instead.",
|
||||
"location": "query"
|
||||
}
|
||||
},
|
||||
@@ -176,6 +176,35 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"Delegate": {
|
||||
"id": "Delegate",
|
||||
"type": "object",
|
||||
"description": "Settings for a delegate. Delegates can read, send, and delete messages, as well as manage contacts, for the delegator's account. See \"Set up mail delegation\" for more information about delegates.",
|
||||
"properties": {
|
||||
"delegateEmail": {
|
||||
"type": "string",
|
||||
"description": "The email address of the delegate."
|
||||
},
|
||||
"verificationStatus": {
|
||||
"type": "string",
|
||||
"description": "Indicates whether this address has been verified and can act as a delegate for the account. Read-only.",
|
||||
"enum": [
|
||||
"accepted",
|
||||
"expired",
|
||||
"pending",
|
||||
"rejected",
|
||||
"verificationStatusUnspecified"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"Draft": {
|
||||
"id": "Draft",
|
||||
"type": "object",
|
||||
@@ -457,6 +486,10 @@
|
||||
"type": "object",
|
||||
"description": "Labels are used to categorize messages and threads within the user's mailbox.",
|
||||
"properties": {
|
||||
"color": {
|
||||
"$ref": "LabelColor",
|
||||
"description": "The color to assign to the label. Color is only available for labels that have their type set to user."
|
||||
},
|
||||
"id": {
|
||||
"type": "string",
|
||||
"description": "The immutable ID of the label.",
|
||||
@@ -548,6 +581,34 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"LabelColor": {
|
||||
"id": "LabelColor",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"backgroundColor": {
|
||||
"type": "string",
|
||||
"description": "The background color represented as hex string #RRGGBB (ex #000000). This field is required in order to set the color of a label. Only the following predefined set of color values are allowed:\n#000000, #434343, #666666, #999999, #cccccc, #efefef, #f3f3f3, #ffffff, #fb4c2f, #ffad47, #fad165, #16a766, #43d692, #4a86e8, #a479e2, #f691b3, #f6c5be, #ffe6c7, #fef1d1, #b9e4d0, #c6f3de, #c9daf8, #e4d7f5, #fcdee8, #efa093, #ffd6a2, #fce8b3, #89d3b2, #a0eac9, #a4c2f4, #d0bcf1, #fbc8d9, #e66550, #ffbc6b, #fcda83, #44b984, #68dfa9, #6d9eeb, #b694e8, #f7a7c0, #cc3a21, #eaa041, #f2c960, #149e60, #3dc789, #3c78d8, #8e63ce, #e07798, #ac2b16, #cf8933, #d5ae49, #0b804b, #2a9c68, #285bac, #653e9b, #b65775, #822111, #a46a21, #aa8831, #076239, #1a764d, #1c4587, #41236d, #83334c"
|
||||
},
|
||||
"textColor": {
|
||||
"type": "string",
|
||||
"description": "The text color of the label, represented as hex string. This field is required in order to set the color of a label. Only the following predefined set of color values are allowed:\n#000000, #434343, #666666, #999999, #cccccc, #efefef, #f3f3f3, #ffffff, #fb4c2f, #ffad47, #fad165, #16a766, #43d692, #4a86e8, #a479e2, #f691b3, #f6c5be, #ffe6c7, #fef1d1, #b9e4d0, #c6f3de, #c9daf8, #e4d7f5, #fcdee8, #efa093, #ffd6a2, #fce8b3, #89d3b2, #a0eac9, #a4c2f4, #d0bcf1, #fbc8d9, #e66550, #ffbc6b, #fcda83, #44b984, #68dfa9, #6d9eeb, #b694e8, #f7a7c0, #cc3a21, #eaa041, #f2c960, #149e60, #3dc789, #3c78d8, #8e63ce, #e07798, #ac2b16, #cf8933, #d5ae49, #0b804b, #2a9c68, #285bac, #653e9b, #b65775, #822111, #a46a21, #aa8831, #076239, #1a764d, #1c4587, #41236d, #83334c"
|
||||
}
|
||||
}
|
||||
},
|
||||
"ListDelegatesResponse": {
|
||||
"id": "ListDelegatesResponse",
|
||||
"type": "object",
|
||||
"description": "Response for the ListDelegates method.",
|
||||
"properties": {
|
||||
"delegates": {
|
||||
"type": "array",
|
||||
"description": "List of the user's delegates (with any verification status).",
|
||||
"items": {
|
||||
"$ref": "Delegate"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"ListDraftsResponse": {
|
||||
"id": "ListDraftsResponse",
|
||||
"type": "object",
|
||||
@@ -948,7 +1009,7 @@
|
||||
"properties": {
|
||||
"displayName": {
|
||||
"type": "string",
|
||||
"description": "A name that appears in the \"From:\" header for mail sent using this alias. For custom \"from\" addresses, when this is empty, Gmail will populate the \"From:\" header with the name that is used for the primary address associated with the account."
|
||||
"description": "A name that appears in the \"From:\" header for mail sent using this alias. For custom \"from\" addresses, when this is empty, Gmail will populate the \"From:\" header with the name that is used for the primary address associated with the account. If the admin has disabled the ability for users to update their name format, requests to update this field for the primary login will silently fail."
|
||||
},
|
||||
"isDefault": {
|
||||
"type": "boolean",
|
||||
@@ -2576,6 +2637,126 @@
|
||||
}
|
||||
},
|
||||
"resources": {
|
||||
"delegates": {
|
||||
"methods": {
|
||||
"create": {
|
||||
"id": "gmail.users.settings.delegates.create",
|
||||
"path": "{userId}/settings/delegates",
|
||||
"httpMethod": "POST",
|
||||
"description": "Adds a delegate with its verification status set directly to accepted, without sending any verification email. The delegate user must be a member of the same G Suite organization as the delegator user.\n\nGmail imposes limtations on the number of delegates and delegators each user in a G Suite organization can have. These limits depend on your organization, but in general each user can have up to 25 delegates and up to 10 delegators.\n\nNote that a delegate user must be referred to by their primary email address, and not an email alias.\n\nAlso note that when a new delegate is created, there may be up to a one minute delay before the new delegate is available for use.\n\nThis method is only available to service account clients that have been delegated domain-wide authority.",
|
||||
"parameters": {
|
||||
"userId": {
|
||||
"type": "string",
|
||||
"description": "User's email address. The special value \"me\" can be used to indicate the authenticated user.",
|
||||
"default": "me",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"userId"
|
||||
],
|
||||
"request": {
|
||||
"$ref": "Delegate"
|
||||
},
|
||||
"response": {
|
||||
"$ref": "Delegate"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/gmail.settings.sharing"
|
||||
]
|
||||
},
|
||||
"delete": {
|
||||
"id": "gmail.users.settings.delegates.delete",
|
||||
"path": "{userId}/settings/delegates/{delegateEmail}",
|
||||
"httpMethod": "DELETE",
|
||||
"description": "Removes the specified delegate (which can be of any verification status), and revokes any verification that may have been required for using it.\n\nNote that a delegate user must be referred to by their primary email address, and not an email alias.\n\nThis method is only available to service account clients that have been delegated domain-wide authority.",
|
||||
"parameters": {
|
||||
"delegateEmail": {
|
||||
"type": "string",
|
||||
"description": "The email address of the user to be removed as a delegate.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"userId": {
|
||||
"type": "string",
|
||||
"description": "User's email address. The special value \"me\" can be used to indicate the authenticated user.",
|
||||
"default": "me",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"userId",
|
||||
"delegateEmail"
|
||||
],
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/gmail.settings.sharing"
|
||||
]
|
||||
},
|
||||
"get": {
|
||||
"id": "gmail.users.settings.delegates.get",
|
||||
"path": "{userId}/settings/delegates/{delegateEmail}",
|
||||
"httpMethod": "GET",
|
||||
"description": "Gets the specified delegate.\n\nNote that a delegate user must be referred to by their primary email address, and not an email alias.\n\nThis method is only available to service account clients that have been delegated domain-wide authority.",
|
||||
"parameters": {
|
||||
"delegateEmail": {
|
||||
"type": "string",
|
||||
"description": "The email address of the user whose delegate relationship is to be retrieved.",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
},
|
||||
"userId": {
|
||||
"type": "string",
|
||||
"description": "User's email address. The special value \"me\" can be used to indicate the authenticated user.",
|
||||
"default": "me",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"userId",
|
||||
"delegateEmail"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "Delegate"
|
||||
},
|
||||
"scopes": [
|
||||
"https://mail.google.com/",
|
||||
"https://www.googleapis.com/auth/gmail.modify",
|
||||
"https://www.googleapis.com/auth/gmail.readonly",
|
||||
"https://www.googleapis.com/auth/gmail.settings.basic"
|
||||
]
|
||||
},
|
||||
"list": {
|
||||
"id": "gmail.users.settings.delegates.list",
|
||||
"path": "{userId}/settings/delegates",
|
||||
"httpMethod": "GET",
|
||||
"description": "Lists the delegates for the specified account.\n\nThis method is only available to service account clients that have been delegated domain-wide authority.",
|
||||
"parameters": {
|
||||
"userId": {
|
||||
"type": "string",
|
||||
"description": "User's email address. The special value \"me\" can be used to indicate the authenticated user.",
|
||||
"default": "me",
|
||||
"required": true,
|
||||
"location": "path"
|
||||
}
|
||||
},
|
||||
"parameterOrder": [
|
||||
"userId"
|
||||
],
|
||||
"response": {
|
||||
"$ref": "ListDelegatesResponse"
|
||||
},
|
||||
"scopes": [
|
||||
"https://mail.google.com/",
|
||||
"https://www.googleapis.com/auth/gmail.modify",
|
||||
"https://www.googleapis.com/auth/gmail.readonly",
|
||||
"https://www.googleapis.com/auth/gmail.settings.basic"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"filters": {
|
||||
"methods": {
|
||||
"create": {
|
||||
|
||||
Reference in New Issue
Block a user