Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google drive includeshared issue #26014

Merged
merged 8 commits into from
Apr 24, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.py
Original file line number Diff line number Diff line change
Expand Up @@ -940,6 +940,7 @@ def prepare_file_read_request(client: 'GSuiteClient', args: Dict[str, str]) -> D
pageSize=args.get('page_size'),
pageToken=args.get('page_token'),
supportsAllDrives=args.get('supports_all_drives'),
includeItemsFromAllDrives=args.get('include_items_from_all_drives')
)

# user_id can be overridden in the args
Expand Down
24 changes: 24 additions & 0 deletions Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2075,6 +2075,18 @@ script:
description: Query string for searching shared drives.
required: false
isArray: false
- auto: PREDEFINED
default: false
defaultValue: "false"
description: 'Whether both My Drive and shared drive items should be included
in the results. Possible values: "true" and "false".'
isArray: false
name: include_items_from_all_drives
predefined:
- "true"
- "false"
required: false
secret: false
- name: user_id
description: The user's primary email address.
required: false
Expand Down Expand Up @@ -2131,6 +2143,18 @@ script:
description: The user's primary email address.
required: false
isArray: false
- auto: PREDEFINED
default: false
defaultValue: "false"
description: 'Whether both My Drive and shared drive items should be included
in the results. Possible values: "true" and "false".'
isArray: false
name: include_items_from_all_drives
predefined:
- "true"
- "false"
required: false
secret: false
- name: fields
description: The fields you want included in the response.
required: false
Expand Down
6 changes: 6 additions & 0 deletions Packs/GoogleDrive/ReleaseNotes/1_2_29.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

#### Integrations

##### Google Drive

- Added the **include_items_from_all_drives** argument to **google-drive-files-list** and **google-drive-files-list** commands
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Added the include_items_from_all_drives argument to google-drive-files-list and google-drive-file-get commands

2 changes: 1 addition & 1 deletion Packs/GoogleDrive/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Google Drive",
"description": "Google Drive allows users to store files on their servers, synchronize files across devices, and share files. This integration helps you to create a new drive, query past activity and view change logs performed by the users, as well as list drives and files, and manage their permissions.",
"support": "xsoar",
"currentVersion": "1.2.28",
"currentVersion": "1.2.29",
"author": "Cortex XSOAR",
"url": "https://www.paloaltonetworks.com/cortex",
"email": "",
Expand Down