Skip to content

Commit 1a68b4c

Browse files
feat(drive): update the API
#### drive:v3 The following keys were added: - resources.approvals.methods.get.description - resources.approvals.methods.get.flatPath - resources.approvals.methods.get.httpMethod - resources.approvals.methods.get.id - resources.approvals.methods.get.parameterOrder - resources.approvals.methods.get.parameters.approvalId.description - resources.approvals.methods.get.parameters.approvalId.location - resources.approvals.methods.get.parameters.approvalId.required - resources.approvals.methods.get.parameters.approvalId.type - resources.approvals.methods.get.parameters.fileId.description - resources.approvals.methods.get.parameters.fileId.location - resources.approvals.methods.get.parameters.fileId.required - resources.approvals.methods.get.parameters.fileId.type - resources.approvals.methods.get.path - resources.approvals.methods.get.response.$ref - resources.approvals.methods.get.scopes - resources.approvals.methods.list.description - resources.approvals.methods.list.flatPath - resources.approvals.methods.list.httpMethod - resources.approvals.methods.list.id - resources.approvals.methods.list.parameterOrder - resources.approvals.methods.list.parameters.fileId.description - resources.approvals.methods.list.parameters.fileId.location - resources.approvals.methods.list.parameters.fileId.required - resources.approvals.methods.list.parameters.fileId.type - resources.approvals.methods.list.parameters.pageSize.description - resources.approvals.methods.list.parameters.pageSize.format - resources.approvals.methods.list.parameters.pageSize.location - resources.approvals.methods.list.parameters.pageSize.type - resources.approvals.methods.list.parameters.pageToken.description - resources.approvals.methods.list.parameters.pageToken.location - resources.approvals.methods.list.parameters.pageToken.type - resources.approvals.methods.list.path - resources.approvals.methods.list.response.$ref - resources.approvals.methods.list.scopes - schemas.Approval.description - schemas.Approval.id - schemas.Approval.properties.approvalId.description - schemas.Approval.properties.approvalId.type - schemas.Approval.properties.completeTime.description - schemas.Approval.properties.completeTime.format - schemas.Approval.properties.completeTime.readOnly - schemas.Approval.properties.completeTime.type - schemas.Approval.properties.createTime.description - schemas.Approval.properties.createTime.format - schemas.Approval.properties.createTime.readOnly - schemas.Approval.properties.createTime.type - schemas.Approval.properties.dueTime.description - schemas.Approval.properties.dueTime.format - schemas.Approval.properties.dueTime.type - schemas.Approval.properties.initiator.$ref - schemas.Approval.properties.initiator.description - schemas.Approval.properties.kind.description - schemas.Approval.properties.kind.type - schemas.Approval.properties.modifyTime.description - schemas.Approval.properties.modifyTime.format - schemas.Approval.properties.modifyTime.readOnly - schemas.Approval.properties.modifyTime.type - schemas.Approval.properties.reviewerResponses.description - schemas.Approval.properties.reviewerResponses.items.$ref - schemas.Approval.properties.reviewerResponses.type - schemas.Approval.properties.status.description - schemas.Approval.properties.status.enum - schemas.Approval.properties.status.enumDescriptions - schemas.Approval.properties.status.readOnly - schemas.Approval.properties.status.type - schemas.Approval.properties.targetFileId.description - schemas.Approval.properties.targetFileId.type - schemas.Approval.type - schemas.ApprovalList.description - schemas.ApprovalList.id - schemas.ApprovalList.properties.items.description - schemas.ApprovalList.properties.items.items.$ref - schemas.ApprovalList.properties.items.type - schemas.ApprovalList.properties.kind.description - schemas.ApprovalList.properties.kind.type - schemas.ApprovalList.properties.nextPageToken.description - schemas.ApprovalList.properties.nextPageToken.type - schemas.ApprovalList.type - schemas.ReviewerResponse.description - schemas.ReviewerResponse.id - schemas.ReviewerResponse.properties.kind.description - schemas.ReviewerResponse.properties.kind.type - schemas.ReviewerResponse.properties.response.description - schemas.ReviewerResponse.properties.response.enum - schemas.ReviewerResponse.properties.response.enumDescriptions - schemas.ReviewerResponse.properties.response.type - schemas.ReviewerResponse.properties.reviewer.$ref - schemas.ReviewerResponse.properties.reviewer.description - schemas.ReviewerResponse.type
1 parent c9bacae commit 1a68b4c

File tree

2 files changed

+597
-1
lines changed

2 files changed

+597
-1
lines changed

discovery/drive-v3.json

Lines changed: 196 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,76 @@
265265
}
266266
}
267267
},
268+
"approvals": {
269+
"methods": {
270+
"get": {
271+
"description": "Gets an Approval by ID.",
272+
"flatPath": "files/{fileId}/approvals/{approvalId}",
273+
"httpMethod": "GET",
274+
"id": "drive.approvals.get",
275+
"parameterOrder": [
276+
"fileId",
277+
"approvalId"
278+
],
279+
"parameters": {
280+
"approvalId": {
281+
"description": "Required. The ID of the Approval.",
282+
"location": "path",
283+
"required": true,
284+
"type": "string"
285+
},
286+
"fileId": {
287+
"description": "Required. The ID of the file the Approval is on.",
288+
"location": "path",
289+
"required": true,
290+
"type": "string"
291+
}
292+
},
293+
"path": "files/{fileId}/approvals/{approvalId}",
294+
"response": {
295+
"$ref": "Approval"
296+
},
297+
"scopes": [
298+
"https://www.googleapis.com/auth/drive"
299+
]
300+
},
301+
"list": {
302+
"description": "Lists the Approvals on a file.",
303+
"flatPath": "files/{fileId}/approvals",
304+
"httpMethod": "GET",
305+
"id": "drive.approvals.list",
306+
"parameterOrder": [
307+
"fileId"
308+
],
309+
"parameters": {
310+
"fileId": {
311+
"description": "Required. The ID of the file the Approval is on.",
312+
"location": "path",
313+
"required": true,
314+
"type": "string"
315+
},
316+
"pageSize": {
317+
"description": "The maximum number of Approvals to return. When not set, at most 100 Approvals will be returned.",
318+
"format": "int32",
319+
"location": "query",
320+
"type": "integer"
321+
},
322+
"pageToken": {
323+
"description": "The token for continuing a previous list request on the next page. This should be set to the value of nextPageToken from a previous response.",
324+
"location": "query",
325+
"type": "string"
326+
}
327+
},
328+
"path": "files/{fileId}/approvals",
329+
"response": {
330+
"$ref": "ApprovalList"
331+
},
332+
"scopes": [
333+
"https://www.googleapis.com/auth/drive"
334+
]
335+
}
336+
}
337+
},
268338
"apps": {
269339
"methods": {
270340
"get": {
@@ -2720,7 +2790,7 @@
27202790
}
27212791
}
27222792
},
2723-
"revision": "20251114",
2793+
"revision": "20251201",
27242794
"rootUrl": "https://www.googleapis.com/",
27252795
"schemas": {
27262796
"About": {
@@ -3086,6 +3156,100 @@
30863156
},
30873157
"type": "object"
30883158
},
3159+
"Approval": {
3160+
"description": "Metadata for an approval. An approval is a review/approve process for a Drive item.",
3161+
"id": "Approval",
3162+
"properties": {
3163+
"approvalId": {
3164+
"description": "The Approval ID.",
3165+
"type": "string"
3166+
},
3167+
"completeTime": {
3168+
"description": "Output only. The time time the approval was completed.",
3169+
"format": "google-datetime",
3170+
"readOnly": true,
3171+
"type": "string"
3172+
},
3173+
"createTime": {
3174+
"description": "Output only. The time the approval was created.",
3175+
"format": "google-datetime",
3176+
"readOnly": true,
3177+
"type": "string"
3178+
},
3179+
"dueTime": {
3180+
"description": "The time that the approval is due.",
3181+
"format": "google-datetime",
3182+
"type": "string"
3183+
},
3184+
"initiator": {
3185+
"$ref": "User",
3186+
"description": "The user that requested the Approval."
3187+
},
3188+
"kind": {
3189+
"description": "This is always drive#approval.",
3190+
"type": "string"
3191+
},
3192+
"modifyTime": {
3193+
"description": "Output only. The most recent time the approval was modified.",
3194+
"format": "google-datetime",
3195+
"readOnly": true,
3196+
"type": "string"
3197+
},
3198+
"reviewerResponses": {
3199+
"description": "The responses made on the Approval by reviewers.",
3200+
"items": {
3201+
"$ref": "ReviewerResponse"
3202+
},
3203+
"type": "array"
3204+
},
3205+
"status": {
3206+
"description": "Output only. The status of the approval at the time this resource was requested.",
3207+
"enum": [
3208+
"STATUS_UNSPECIFIED",
3209+
"IN_PROGRESS",
3210+
"APPROVED",
3211+
"CANCELLED",
3212+
"DECLINED"
3213+
],
3214+
"enumDescriptions": [
3215+
"Approval status has not been set or was set to an invalid value.",
3216+
"The approval process has started and not finished.",
3217+
"The approval process is finished and the target was approved.",
3218+
"The approval process was cancelled before it finished.",
3219+
"The approval process is finished and the target was declined."
3220+
],
3221+
"readOnly": true,
3222+
"type": "string"
3223+
},
3224+
"targetFileId": {
3225+
"description": "Target file id of the approval.",
3226+
"type": "string"
3227+
}
3228+
},
3229+
"type": "object"
3230+
},
3231+
"ApprovalList": {
3232+
"description": "The response of an Approvals list request.",
3233+
"id": "ApprovalList",
3234+
"properties": {
3235+
"items": {
3236+
"description": "The list of Approvals. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched.",
3237+
"items": {
3238+
"$ref": "Approval"
3239+
},
3240+
"type": "array"
3241+
},
3242+
"kind": {
3243+
"description": "This is always drive#approvalList",
3244+
"type": "string"
3245+
},
3246+
"nextPageToken": {
3247+
"description": "The page token for the next page of Approvals. This will be absent if the end of the Approvals list has been reached. If the token is rejected for any reason, it should be discarded, and pagination should be restarted from the first page of results.",
3248+
"type": "string"
3249+
}
3250+
},
3251+
"type": "object"
3252+
},
30893253
"Change": {
30903254
"description": "A change to a file or shared drive.",
30913255
"id": "Change",
@@ -4896,6 +5060,37 @@
48965060
},
48975061
"type": "object"
48985062
},
5063+
"ReviewerResponse": {
5064+
"description": "A response on an Approval made by a specific Reviewer.",
5065+
"id": "ReviewerResponse",
5066+
"properties": {
5067+
"kind": {
5068+
"description": "This is always drive#reviewerResponse.",
5069+
"type": "string"
5070+
},
5071+
"response": {
5072+
"description": "A Reviewer’s Response for the Approval.",
5073+
"enum": [
5074+
"RESPONSE_UNSPECIFIED",
5075+
"NO_RESPONSE",
5076+
"APPROVED",
5077+
"DECLINED"
5078+
],
5079+
"enumDescriptions": [
5080+
"Response was set to an unrecognized value.",
5081+
"The reviewer has not yet responded",
5082+
"The Reviewer has approved the item.",
5083+
"The Reviewer has declined the item."
5084+
],
5085+
"type": "string"
5086+
},
5087+
"reviewer": {
5088+
"$ref": "User",
5089+
"description": "The user that is responsible for this response."
5090+
}
5091+
},
5092+
"type": "object"
5093+
},
48995094
"Revision": {
49005095
"description": "The metadata for a revision to a file. Some resource methods (such as `revisions.update`) require a `revisionId`. Use the `revisions.list` method to retrieve the ID for a revision.",
49015096
"id": "Revision",

0 commit comments

Comments
 (0)