Skip to content

Commit

Permalink
fix(driveactivity): update the API
Browse files Browse the repository at this point in the history
#### driveactivity:v2

The following keys were changed:
- schemas.ConsolidationStrategy.description
- schemas.Legacy.description
- schemas.NoConsolidation.description
- schemas.QueryDriveActivityRequest.properties.ancestorName.description
- schemas.QueryDriveActivityRequest.properties.consolidationStrategy.description
- schemas.QueryDriveActivityRequest.properties.filter.description
- schemas.QueryDriveActivityRequest.properties.pageSize.description
- schemas.QueryDriveActivityRequest.properties.pageToken.description
- schemas.Target.description
  • Loading branch information
yoshi-automation authored and sofisl committed Feb 2, 2023
1 parent 5f33f78 commit 2858e5a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
20 changes: 10 additions & 10 deletions discovery/driveactivity-v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
}
}
},
"revision": "20221025",
"revision": "20230128",
"rootUrl": "https://driveactivity.googleapis.com/",
"schemas": {
"Action": {
Expand Down Expand Up @@ -403,7 +403,7 @@
"type": "object"
},
"ConsolidationStrategy": {
"description": "How the individual activities are consolidated. A set of activities may be consolidated into one combined activity if they are related in some way, such as one actor performing the same action on multiple targets, or multiple actors performing the same action on a single target. The strategy defines the rules for which activities are related.",
"description": "How the individual activities are consolidated. If a set of activities is related they can be consolidated into one combined activity, such as one actor performing the same action on multiple targets, or multiple actors performing the same action on a single target. The strategy defines the rules for which activities are related.",
"id": "ConsolidationStrategy",
"properties": {
"legacy": {
Expand Down Expand Up @@ -870,7 +870,7 @@
"type": "object"
},
"Legacy": {
"description": "A strategy which consolidates activities using the grouping rules from the legacy V1 Activity API. Similar actions occurring within a window of time can be grouped across multiple targets (such as moving a set of files at once) or multiple actors (such as several users editing the same item). Grouping rules for this strategy are specific to each type of action.",
"description": "A strategy that consolidates activities using the grouping rules from the legacy V1 Activity API. Similar actions occurring within a window of time can be grouped across multiple targets (such as moving a set of files at once) or multiple actors (such as several users editing the same item). Grouping rules for this strategy are specific to each type of action.",
"id": "Legacy",
"properties": {},
"type": "object"
Expand Down Expand Up @@ -903,7 +903,7 @@
"type": "object"
},
"NoConsolidation": {
"description": "A strategy which does no consolidation of individual activities.",
"description": "A strategy that does no consolidation of individual activities.",
"id": "NoConsolidation",
"properties": {},
"type": "object"
Expand Down Expand Up @@ -1037,28 +1037,28 @@
"id": "QueryDriveActivityRequest",
"properties": {
"ancestorName": {
"description": "Return activities for this Drive folder and all children and descendants. The format is `items/ITEM_ID`.",
"description": "Return activities for this Drive folder, plus all children and descendants. The format is `items/ITEM_ID`.",
"type": "string"
},
"consolidationStrategy": {
"$ref": "ConsolidationStrategy",
"description": "Details on how to consolidate related actions that make up the activity. If not set, then related actions are not consolidated."
"description": "Details on how to consolidate related actions that make up the activity. If not set, then related actions aren't consolidated."
},
"filter": {
"description": "The filtering for items returned from this query request. The format of the filter string is a sequence of expressions, joined by an optional \"AND\", where each expression is of the form \"field operator value\". Supported fields: - `time`: Uses numerical operators on date values either in terms of milliseconds since Jan 1, 1970 or in RFC 3339 format. Examples: - `time > 1452409200000 AND time <= 1492812924310` - `time >= \"2016-01-10T01:02:03-05:00\"` - `detail.action_detail_case`: Uses the \"has\" operator (:) and either a singular value or a list of allowed action types enclosed in parentheses. Examples: - `detail.action_detail_case: RENAME` - `detail.action_detail_case:(CREATE EDIT)` - `-detail.action_detail_case:MOVE` ",
"description": "The filtering for items returned from this query request. The format of the filter string is a sequence of expressions, joined by an optional \"AND\", where each expression is of the form \"field operator value\". Supported fields: - `time`: Uses numerical operators on date values either in terms of milliseconds since Jan 1, 1970 or in RFC 3339 format. Examples: - `time > 1452409200000 AND time <= 1492812924310` - `time >= \"2016-01-10T01:02:03-05:00\"` - `detail.action_detail_case`: Uses the \"has\" operator (:) and either a singular value or a list of allowed action types enclosed in parentheses, separated by a space. To exclude a result from the response, prepend a hyphen (`-`) to the beginning of the filter string. Examples: - `detail.action_detail_case:RENAME` - `detail.action_detail_case:(CREATE RESTORE)` - `-detail.action_detail_case:MOVE` ",
"type": "string"
},
"itemName": {
"description": "Return activities for this Drive item. The format is `items/ITEM_ID`.",
"type": "string"
},
"pageSize": {
"description": "The miminum number of activities desired in the response; the server will attempt to return at least this quanitity. The server may also return fewer activities if it has a partial response ready before the request times out. If not set, a default value is used.",
"description": "The minimum number of activities desired in the response; the server attempts to return at least this quantity. The server may also return fewer activities if it has a partial response ready before the request times out. If not set, a default value is used.",
"format": "int32",
"type": "integer"
},
"pageToken": {
"description": "The token identifying which page of results to return. Set this to the next_page_token value returned from a previous query to obtain the following page of results. If not set, the first page of results will be returned.",
"description": "The token identifies which page of results to return. Set this to the next_page_token value returned from a previous query to obtain the following page of results. If not set, the first page of results is returned.",
"type": "string"
}
},
Expand Down Expand Up @@ -1264,7 +1264,7 @@
"type": "object"
},
"Target": {
"description": "Information about the target of activity.",
"description": "Information about the target of activity. For more information on how activity history is shared with users, see [Activity history visibility](https://developers.google.com/drive/activity/v2#activityhistory).",
"id": "Target",
"properties": {
"drive": {
Expand Down
18 changes: 9 additions & 9 deletions src/apis/driveactivity/v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ export namespace driveactivity_v2 {
suggestion?: Schema$Suggestion;
}
/**
* How the individual activities are consolidated. A set of activities may be consolidated into one combined activity if they are related in some way, such as one actor performing the same action on multiple targets, or multiple actors performing the same action on a single target. The strategy defines the rules for which activities are related.
* How the individual activities are consolidated. If a set of activities is related they can be consolidated into one combined activity, such as one actor performing the same action on multiple targets, or multiple actors performing the same action on a single target. The strategy defines the rules for which activities are related.
*/
export interface Schema$ConsolidationStrategy {
/**
Expand Down Expand Up @@ -674,7 +674,7 @@ export namespace driveactivity_v2 {
personName?: string | null;
}
/**
* A strategy which consolidates activities using the grouping rules from the legacy V1 Activity API. Similar actions occurring within a window of time can be grouped across multiple targets (such as moving a set of files at once) or multiple actors (such as several users editing the same item). Grouping rules for this strategy are specific to each type of action.
* A strategy that consolidates activities using the grouping rules from the legacy V1 Activity API. Similar actions occurring within a window of time can be grouped across multiple targets (such as moving a set of files at once) or multiple actors (such as several users editing the same item). Grouping rules for this strategy are specific to each type of action.
*/
export interface Schema$Legacy {}
/**
Expand All @@ -695,7 +695,7 @@ export namespace driveactivity_v2 {
*/
export interface Schema$New {}
/**
* A strategy which does no consolidation of individual activities.
* A strategy that does no consolidation of individual activities.
*/
export interface Schema$NoConsolidation {}
/**
Expand Down Expand Up @@ -775,27 +775,27 @@ export namespace driveactivity_v2 {
*/
export interface Schema$QueryDriveActivityRequest {
/**
* Return activities for this Drive folder and all children and descendants. The format is `items/ITEM_ID`.
* Return activities for this Drive folder, plus all children and descendants. The format is `items/ITEM_ID`.
*/
ancestorName?: string | null;
/**
* Details on how to consolidate related actions that make up the activity. If not set, then related actions are not consolidated.
* Details on how to consolidate related actions that make up the activity. If not set, then related actions aren't consolidated.
*/
consolidationStrategy?: Schema$ConsolidationStrategy;
/**
* The filtering for items returned from this query request. The format of the filter string is a sequence of expressions, joined by an optional "AND", where each expression is of the form "field operator value". Supported fields: - `time`: Uses numerical operators on date values either in terms of milliseconds since Jan 1, 1970 or in RFC 3339 format. Examples: - `time \> 1452409200000 AND time <= 1492812924310` - `time \>= "2016-01-10T01:02:03-05:00"` - `detail.action_detail_case`: Uses the "has" operator (:) and either a singular value or a list of allowed action types enclosed in parentheses. Examples: - `detail.action_detail_case: RENAME` - `detail.action_detail_case:(CREATE EDIT)` - `-detail.action_detail_case:MOVE`
* The filtering for items returned from this query request. The format of the filter string is a sequence of expressions, joined by an optional "AND", where each expression is of the form "field operator value". Supported fields: - `time`: Uses numerical operators on date values either in terms of milliseconds since Jan 1, 1970 or in RFC 3339 format. Examples: - `time \> 1452409200000 AND time <= 1492812924310` - `time \>= "2016-01-10T01:02:03-05:00"` - `detail.action_detail_case`: Uses the "has" operator (:) and either a singular value or a list of allowed action types enclosed in parentheses, separated by a space. To exclude a result from the response, prepend a hyphen (`-`) to the beginning of the filter string. Examples: - `detail.action_detail_case:RENAME` - `detail.action_detail_case:(CREATE RESTORE)` - `-detail.action_detail_case:MOVE`
*/
filter?: string | null;
/**
* Return activities for this Drive item. The format is `items/ITEM_ID`.
*/
itemName?: string | null;
/**
* The miminum number of activities desired in the response; the server will attempt to return at least this quanitity. The server may also return fewer activities if it has a partial response ready before the request times out. If not set, a default value is used.
* The minimum number of activities desired in the response; the server attempts to return at least this quantity. The server may also return fewer activities if it has a partial response ready before the request times out. If not set, a default value is used.
*/
pageSize?: number | null;
/**
* The token identifying which page of results to return. Set this to the next_page_token value returned from a previous query to obtain the following page of results. If not set, the first page of results will be returned.
* The token identifies which page of results to return. Set this to the next_page_token value returned from a previous query to obtain the following page of results. If not set, the first page of results is returned.
*/
pageToken?: string | null;
}
Expand Down Expand Up @@ -906,7 +906,7 @@ export namespace driveactivity_v2 {
type?: string | null;
}
/**
* Information about the target of activity.
* Information about the target of activity. For more information on how activity history is shared with users, see [Activity history visibility](https://developers.google.com/drive/activity/v2#activityhistory).
*/
export interface Schema$Target {
/**
Expand Down

0 comments on commit 2858e5a

Please sign in to comment.