From 8be6614b72b681a129d4e63973ab825a88a5a860 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Date: Tue, 4 Oct 2022 07:14:51 +0000 Subject: [PATCH] feat(driveactivity): update the api #### driveactivity:v2 The following keys were added: - schemas.ActionDetail.properties.appliedLabelChange.$ref (Total Keys: 1) - schemas.AppliedLabelChange (Total Keys: 11) - schemas.Date (Total Keys: 4) - schemas.FieldValue (Total Keys: 16) - schemas.Integer (Total Keys: 4) - schemas.Selection (Total Keys: 8) - schemas.SingleUser (Total Keys: 3) - schemas.Text (Total Keys: 7) - schemas.UserList (Total Keys: 4) --- docs/dyn/driveactivity_v2.activity.html | 194 +++++++++++++++ .../documents/driveactivity.v2.json | 228 +++++++++++++++++- 2 files changed, 421 insertions(+), 1 deletion(-) diff --git a/docs/dyn/driveactivity_v2.activity.html b/docs/dyn/driveactivity_v2.activity.html index ba836a05132..60a4c7e0934 100644 --- a/docs/dyn/driveactivity_v2.activity.html +++ b/docs/dyn/driveactivity_v2.activity.html @@ -156,6 +156,103 @@

Method Details

}, }, "detail": { # Data describing the type and additional information of an action. # The type and detailed information about the action. + "appliedLabelChange": { # Label changes that were made on the Target. # Label was changed. + "changes": [ # Changes that were made to the Label on the Target. + { # A change made to a Label on the Target. + "fieldChanges": [ # Field Changes. Only present if `types` contains `LABEL_FIELD_VALUE_CHANGED`. + { # Change to a Field value. + "displayName": "A String", # The human-readable display name for this field. + "fieldId": "A String", # The ID of this field. Field IDs are unique within a Label. + "newValue": { # Contains a value of a Field. # The value that is now set on the field. If not present, the field was cleared. At least one of {old_value|new_value} is always set. + "date": { # Wrapper for Date Field value. # Date Field value. + "value": "A String", # Date value. + }, + "integer": { # Wrapper for Integer Field value. # Integer Field value. + "value": "A String", # Integer value. + }, + "selection": { # Wrapper for Selection Field value as combined value/display_name pair for selected choice. # Selection Field value. + "displayName": "A String", # Selection value as human-readable display string. + "value": "A String", # Selection value as Field Choice ID. + }, + "selectionList": { # Wrapper for SelectionList Field value. # Selection List Field value. + "values": [ # Selection values. + { # Wrapper for Selection Field value as combined value/display_name pair for selected choice. + "displayName": "A String", # Selection value as human-readable display string. + "value": "A String", # Selection value as Field Choice ID. + }, + ], + }, + "text": { # Wrapper for Text Field value. # Text Field value. + "value": "A String", # Value of Text Field. + }, + "textList": { # Wrapper for Text List Field value. # Text List Field value. + "values": [ # Text values. + { # Wrapper for Text Field value. + "value": "A String", # Value of Text Field. + }, + ], + }, + "user": { # Wrapper for User Field value. # User Field value. + "value": "A String", # User value as email. + }, + "userList": { # Wrapper for UserList Field value. # User List Field value. + "values": [ # User values. + { # Wrapper for User Field value. + "value": "A String", # User value as email. + }, + ], + }, + }, + "oldValue": { # Contains a value of a Field. # The value that was previously set on the field. If not present, the field was newly set. At least one of {old_value|new_value} is always set. + "date": { # Wrapper for Date Field value. # Date Field value. + "value": "A String", # Date value. + }, + "integer": { # Wrapper for Integer Field value. # Integer Field value. + "value": "A String", # Integer value. + }, + "selection": { # Wrapper for Selection Field value as combined value/display_name pair for selected choice. # Selection Field value. + "displayName": "A String", # Selection value as human-readable display string. + "value": "A String", # Selection value as Field Choice ID. + }, + "selectionList": { # Wrapper for SelectionList Field value. # Selection List Field value. + "values": [ # Selection values. + { # Wrapper for Selection Field value as combined value/display_name pair for selected choice. + "displayName": "A String", # Selection value as human-readable display string. + "value": "A String", # Selection value as Field Choice ID. + }, + ], + }, + "text": { # Wrapper for Text Field value. # Text Field value. + "value": "A String", # Value of Text Field. + }, + "textList": { # Wrapper for Text List Field value. # Text List Field value. + "values": [ # Text values. + { # Wrapper for Text Field value. + "value": "A String", # Value of Text Field. + }, + ], + }, + "user": { # Wrapper for User Field value. # User Field value. + "value": "A String", # User value as email. + }, + "userList": { # Wrapper for UserList Field value. # User List Field value. + "values": [ # User values. + { # Wrapper for User Field value. + "value": "A String", # User value as email. + }, + ], + }, + }, + }, + ], + "label": "A String", # The Label name representing the Label that changed. This name always contains the revision of the Label that was used when this Action occurred. The format is `labels/id@revision`. + "title": "A String", # The human-readable title of the label that changed. + "types": [ # The types of changes made to the Label on the Target. + "A String", + ], + }, + ], + }, "comment": { # A change about comments on an object. # A change about comments was made. "assignment": { # A comment with an assignment. # A change on an assignment. "assignedUser": { # Information about an end user. # The user to whom the comment was assigned. @@ -568,6 +665,103 @@

Method Details

}, ], "primaryActionDetail": { # Data describing the type and additional information of an action. # Key information about the primary action for this activity. This is either representative, or the most important, of all actions in the activity, according to the ConsolidationStrategy in the request. + "appliedLabelChange": { # Label changes that were made on the Target. # Label was changed. + "changes": [ # Changes that were made to the Label on the Target. + { # A change made to a Label on the Target. + "fieldChanges": [ # Field Changes. Only present if `types` contains `LABEL_FIELD_VALUE_CHANGED`. + { # Change to a Field value. + "displayName": "A String", # The human-readable display name for this field. + "fieldId": "A String", # The ID of this field. Field IDs are unique within a Label. + "newValue": { # Contains a value of a Field. # The value that is now set on the field. If not present, the field was cleared. At least one of {old_value|new_value} is always set. + "date": { # Wrapper for Date Field value. # Date Field value. + "value": "A String", # Date value. + }, + "integer": { # Wrapper for Integer Field value. # Integer Field value. + "value": "A String", # Integer value. + }, + "selection": { # Wrapper for Selection Field value as combined value/display_name pair for selected choice. # Selection Field value. + "displayName": "A String", # Selection value as human-readable display string. + "value": "A String", # Selection value as Field Choice ID. + }, + "selectionList": { # Wrapper for SelectionList Field value. # Selection List Field value. + "values": [ # Selection values. + { # Wrapper for Selection Field value as combined value/display_name pair for selected choice. + "displayName": "A String", # Selection value as human-readable display string. + "value": "A String", # Selection value as Field Choice ID. + }, + ], + }, + "text": { # Wrapper for Text Field value. # Text Field value. + "value": "A String", # Value of Text Field. + }, + "textList": { # Wrapper for Text List Field value. # Text List Field value. + "values": [ # Text values. + { # Wrapper for Text Field value. + "value": "A String", # Value of Text Field. + }, + ], + }, + "user": { # Wrapper for User Field value. # User Field value. + "value": "A String", # User value as email. + }, + "userList": { # Wrapper for UserList Field value. # User List Field value. + "values": [ # User values. + { # Wrapper for User Field value. + "value": "A String", # User value as email. + }, + ], + }, + }, + "oldValue": { # Contains a value of a Field. # The value that was previously set on the field. If not present, the field was newly set. At least one of {old_value|new_value} is always set. + "date": { # Wrapper for Date Field value. # Date Field value. + "value": "A String", # Date value. + }, + "integer": { # Wrapper for Integer Field value. # Integer Field value. + "value": "A String", # Integer value. + }, + "selection": { # Wrapper for Selection Field value as combined value/display_name pair for selected choice. # Selection Field value. + "displayName": "A String", # Selection value as human-readable display string. + "value": "A String", # Selection value as Field Choice ID. + }, + "selectionList": { # Wrapper for SelectionList Field value. # Selection List Field value. + "values": [ # Selection values. + { # Wrapper for Selection Field value as combined value/display_name pair for selected choice. + "displayName": "A String", # Selection value as human-readable display string. + "value": "A String", # Selection value as Field Choice ID. + }, + ], + }, + "text": { # Wrapper for Text Field value. # Text Field value. + "value": "A String", # Value of Text Field. + }, + "textList": { # Wrapper for Text List Field value. # Text List Field value. + "values": [ # Text values. + { # Wrapper for Text Field value. + "value": "A String", # Value of Text Field. + }, + ], + }, + "user": { # Wrapper for User Field value. # User Field value. + "value": "A String", # User value as email. + }, + "userList": { # Wrapper for UserList Field value. # User List Field value. + "values": [ # User values. + { # Wrapper for User Field value. + "value": "A String", # User value as email. + }, + ], + }, + }, + }, + ], + "label": "A String", # The Label name representing the Label that changed. This name always contains the revision of the Label that was used when this Action occurred. The format is `labels/id@revision`. + "title": "A String", # The human-readable title of the label that changed. + "types": [ # The types of changes made to the Label on the Target. + "A String", + ], + }, + ], + }, "comment": { # A change about comments on an object. # A change about comments was made. "assignment": { # A comment with an assignment. # A change on an assignment. "assignedUser": { # Information about an end user. # The user to whom the comment was assigned. diff --git a/googleapiclient/discovery_cache/documents/driveactivity.v2.json b/googleapiclient/discovery_cache/documents/driveactivity.v2.json index 963926e52c0..81055c627fc 100644 --- a/googleapiclient/discovery_cache/documents/driveactivity.v2.json +++ b/googleapiclient/discovery_cache/documents/driveactivity.v2.json @@ -132,7 +132,7 @@ } } }, - "revision": "20220920", + "revision": "20220928", "rootUrl": "https://driveactivity.googleapis.com/", "schemas": { "Action": { @@ -167,6 +167,10 @@ "description": "Data describing the type and additional information of an action.", "id": "ActionDetail", "properties": { + "appliedLabelChange": { + "$ref": "AppliedLabelChange", + "description": "Label was changed." + }, "comment": { "$ref": "Comment", "description": "A change about comments was made." @@ -280,6 +284,63 @@ }, "type": "object" }, + "AppliedLabelChange": { + "description": "Label changes that were made on the Target.", + "id": "AppliedLabelChange", + "properties": { + "changes": { + "description": "Changes that were made to the Label on the Target.", + "items": { + "$ref": "AppliedLabelChangeDetail" + }, + "type": "array" + } + }, + "type": "object" + }, + "AppliedLabelChangeDetail": { + "description": "A change made to a Label on the Target.", + "id": "AppliedLabelChangeDetail", + "properties": { + "fieldChanges": { + "description": "Field Changes. Only present if `types` contains `LABEL_FIELD_VALUE_CHANGED`.", + "items": { + "$ref": "FieldValueChange" + }, + "type": "array" + }, + "label": { + "description": "The Label name representing the Label that changed. This name always contains the revision of the Label that was used when this Action occurred. The format is `labels/id@revision`.", + "type": "string" + }, + "title": { + "description": "The human-readable title of the label that changed.", + "type": "string" + }, + "types": { + "description": "The types of changes made to the Label on the Target.", + "items": { + "enum": [ + "TYPE_UNSPECIFIED", + "LABEL_ADDED", + "LABEL_REMOVED", + "LABEL_FIELD_VALUE_CHANGED", + "LABEL_APPLIED_BY_ITEM_CREATE" + ], + "enumDescriptions": [ + "The type of change to this Label is not available.", + "The identified Label was added to the Target.", + "The identified Label was removed from the Target.", + "Field values were changed on the Target.", + "The Label was applied as a side-effect of Drive item creation." + ], + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "Assignment": { "description": "A comment with an assignment.", "id": "Assignment", @@ -407,6 +468,18 @@ }, "type": "object" }, + "Date": { + "description": "Wrapper for Date Field value.", + "id": "Date", + "properties": { + "value": { + "description": "Date value.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, "Delete": { "description": "An object was deleted.", "id": "Delete", @@ -629,6 +702,68 @@ "properties": {}, "type": "object" }, + "FieldValue": { + "description": "Contains a value of a Field.", + "id": "FieldValue", + "properties": { + "date": { + "$ref": "Date", + "description": "Date Field value." + }, + "integer": { + "$ref": "Integer", + "description": "Integer Field value." + }, + "selection": { + "$ref": "Selection", + "description": "Selection Field value." + }, + "selectionList": { + "$ref": "SelectionList", + "description": "Selection List Field value." + }, + "text": { + "$ref": "Text", + "description": "Text Field value." + }, + "textList": { + "$ref": "TextList", + "description": "Text List Field value." + }, + "user": { + "$ref": "SingleUser", + "description": "User Field value." + }, + "userList": { + "$ref": "UserList", + "description": "User List Field value." + } + }, + "type": "object" + }, + "FieldValueChange": { + "description": "Change to a Field value.", + "id": "FieldValueChange", + "properties": { + "displayName": { + "description": "The human-readable display name for this field.", + "type": "string" + }, + "fieldId": { + "description": "The ID of this field. Field IDs are unique within a Label.", + "type": "string" + }, + "newValue": { + "$ref": "FieldValue", + "description": "The value that is now set on the field. If not present, the field was cleared. At least one of {old_value|new_value} is always set." + }, + "oldValue": { + "$ref": "FieldValue", + "description": "The value that was previously set on the field. If not present, the field was newly set. At least one of {old_value|new_value} is always set." + } + }, + "type": "object" + }, "File": { "description": "This item is deprecated; please see `DriveFile` instead.", "id": "File", @@ -707,6 +842,18 @@ }, "type": "object" }, + "Integer": { + "description": "Wrapper for Integer Field value.", + "id": "Integer", + "properties": { + "value": { + "description": "Integer value.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, "KnownUser": { "description": "A known user.", "id": "KnownUser", @@ -1008,6 +1155,35 @@ }, "type": "object" }, + "Selection": { + "description": "Wrapper for Selection Field value as combined value/display_name pair for selected choice.", + "id": "Selection", + "properties": { + "displayName": { + "description": "Selection value as human-readable display string.", + "type": "string" + }, + "value": { + "description": "Selection value as Field Choice ID.", + "type": "string" + } + }, + "type": "object" + }, + "SelectionList": { + "description": "Wrapper for SelectionList Field value.", + "id": "SelectionList", + "properties": { + "values": { + "description": "Selection values.", + "items": { + "$ref": "Selection" + }, + "type": "array" + } + }, + "type": "object" + }, "SettingsChange": { "description": "Information about settings changes.", "id": "SettingsChange", @@ -1022,6 +1198,17 @@ }, "type": "object" }, + "SingleUser": { + "description": "Wrapper for User Field value.", + "id": "SingleUser", + "properties": { + "value": { + "description": "User value as email.", + "type": "string" + } + }, + "type": "object" + }, "Suggestion": { "description": "A suggestion.", "id": "Suggestion", @@ -1152,6 +1339,31 @@ }, "type": "object" }, + "Text": { + "description": "Wrapper for Text Field value.", + "id": "Text", + "properties": { + "value": { + "description": "Value of Text Field.", + "type": "string" + } + }, + "type": "object" + }, + "TextList": { + "description": "Wrapper for Text List Field value.", + "id": "TextList", + "properties": { + "values": { + "description": "Text values.", + "items": { + "$ref": "Text" + }, + "type": "array" + } + }, + "type": "object" + }, "TimeRange": { "description": "Information about time ranges.", "id": "TimeRange", @@ -1199,6 +1411,20 @@ } }, "type": "object" + }, + "UserList": { + "description": "Wrapper for UserList Field value.", + "id": "UserList", + "properties": { + "values": { + "description": "User values.", + "items": { + "$ref": "SingleUser" + }, + "type": "array" + } + }, + "type": "object" } }, "servicePath": "",