From b85cbf966ed5699a53a1bbeaf2ea6661c1b38eb4 Mon Sep 17 00:00:00 2001 From: jlevypaloalto Date: Mon, 15 May 2023 18:07:38 +0300 Subject: [PATCH 01/33] added credtential option to Cylance Protect --- Packs/Cylance_Protect/.pack-ignore | 2 +- .../Cylance_Protect_v2/Cylance_Protect_v2.py | 12 +++++++----- .../Cylance_Protect_v2/Cylance_Protect_v2.yml | 18 +++++++++++++++--- 3 files changed, 23 insertions(+), 9 deletions(-) diff --git a/Packs/Cylance_Protect/.pack-ignore b/Packs/Cylance_Protect/.pack-ignore index 3c619872aaaa..94bcfe14c051 100644 --- a/Packs/Cylance_Protect/.pack-ignore +++ b/Packs/Cylance_Protect/.pack-ignore @@ -5,7 +5,7 @@ ignore=BA101 ignore=PA116 [file:Cylance_Protect_v2.yml] -ignore=IN126,BA108,BA109,IN145 +ignore=IN126,BA108,BA109 [file:README.md] ignore=RM104 diff --git a/Packs/Cylance_Protect/Integrations/Cylance_Protect_v2/Cylance_Protect_v2.py b/Packs/Cylance_Protect/Integrations/Cylance_Protect_v2/Cylance_Protect_v2.py index 86b0b8827358..9935acca352d 100644 --- a/Packs/Cylance_Protect/Integrations/Cylance_Protect_v2/Cylance_Protect_v2.py +++ b/Packs/Cylance_Protect/Integrations/Cylance_Protect_v2/Cylance_Protect_v2.py @@ -1513,18 +1513,20 @@ def add_capitalized_hash_to_context(threats_context): # pragma: no cover # EXECUTION def main(): # pragma: no cover + params = demisto.params() + global APP_ID - APP_ID = demisto.params()['app_id'] + APP_ID = params.get('app_creds', {}).get('identifier') or params.get('app_id') global APP_SECRET - APP_SECRET = demisto.params()['app_secret'] + APP_SECRET = params.get('app_creds', {}).get('password') or params.get('app_secret') global TID - TID = demisto.params()['tid'] + TID = params.get('api_key', {}).get('password') or params.get('tid') global SERVER_URL SERVER_URL = load_server_url() global FILE_THRESHOLD - FILE_THRESHOLD = demisto.params()['file_threshold'] + FILE_THRESHOLD = params['file_threshold'] global USE_SSL - USE_SSL = not demisto.params().get('unsecure', False) + USE_SSL = not params.get('unsecure', False) command = demisto.command() LOG(f'Command being called is {command}') diff --git a/Packs/Cylance_Protect/Integrations/Cylance_Protect_v2/Cylance_Protect_v2.yml b/Packs/Cylance_Protect/Integrations/Cylance_Protect_v2/Cylance_Protect_v2.yml index 8a1748549a51..8f5286dca5d7 100644 --- a/Packs/Cylance_Protect/Integrations/Cylance_Protect_v2/Cylance_Protect_v2.yml +++ b/Packs/Cylance_Protect/Integrations/Cylance_Protect_v2/Cylance_Protect_v2.yml @@ -14,19 +14,31 @@ configuration: section: Connect - display: Application ID name: app_id - required: true type: 0 section: Connect + hidden: true - display: Application Secret name: app_secret - required: true type: 4 section: Connect + hidden: true - display: Tenant API Key name: tid - required: true type: 4 section: Connect + hidden: true +- display: Application ID + displaypassword: Application Secret + name: app_creds + required: false + type: 9 + section: Connect +- hiddenusername: true + displaypassword: Tenant API Key + name: api_key + required: false + type: 9 + section: Connect - display: Use system proxy settings name: proxy required: false From 4f5a6b406c8799f4b3d14ce8715ad9d27933962b Mon Sep 17 00:00:00 2001 From: jlevypaloalto Date: Mon, 15 May 2023 18:14:22 +0300 Subject: [PATCH 02/33] updated release notes --- .../Cylance_Protect_v2/Cylance_Protect_v2.py | 2 +- .../Cylance_Protect_v2/Cylance_Protect_v2.yml | 10 +++++----- Packs/Cylance_Protect/ReleaseNotes/1_2_0.md | 10 ++++++++++ Packs/Cylance_Protect/pack_metadata.json | 2 +- 4 files changed, 17 insertions(+), 7 deletions(-) create mode 100644 Packs/Cylance_Protect/ReleaseNotes/1_2_0.md diff --git a/Packs/Cylance_Protect/Integrations/Cylance_Protect_v2/Cylance_Protect_v2.py b/Packs/Cylance_Protect/Integrations/Cylance_Protect_v2/Cylance_Protect_v2.py index 9935acca352d..a974110ea9ac 100644 --- a/Packs/Cylance_Protect/Integrations/Cylance_Protect_v2/Cylance_Protect_v2.py +++ b/Packs/Cylance_Protect/Integrations/Cylance_Protect_v2/Cylance_Protect_v2.py @@ -1514,7 +1514,7 @@ def add_capitalized_hash_to_context(threats_context): # pragma: no cover # EXECUTION def main(): # pragma: no cover params = demisto.params() - + global APP_ID APP_ID = params.get('app_creds', {}).get('identifier') or params.get('app_id') global APP_SECRET diff --git a/Packs/Cylance_Protect/Integrations/Cylance_Protect_v2/Cylance_Protect_v2.yml b/Packs/Cylance_Protect/Integrations/Cylance_Protect_v2/Cylance_Protect_v2.yml index 8f5286dca5d7..10b2e687d35a 100644 --- a/Packs/Cylance_Protect/Integrations/Cylance_Protect_v2/Cylance_Protect_v2.yml +++ b/Packs/Cylance_Protect/Integrations/Cylance_Protect_v2/Cylance_Protect_v2.yml @@ -28,17 +28,17 @@ configuration: section: Connect hidden: true - display: Application ID - displaypassword: Application Secret name: app_creds required: false type: 9 section: Connect -- hiddenusername: true - displaypassword: Tenant API Key - name: api_key + displaypassword: Application Secret +- name: api_key required: false type: 9 section: Connect + hiddenusername: true + displaypassword: Tenant API Key - display: Use system proxy settings name: proxy required: false @@ -965,7 +965,7 @@ script: - contextPath: InstaQuery.List description: The list of InstaQuery type: string - dockerimage: demisto/pyjwt3:1.0.0.56580 + dockerimage: demisto/pyjwt3:1.0.0.58911 isfetch: true runonce: false script: '' diff --git a/Packs/Cylance_Protect/ReleaseNotes/1_2_0.md b/Packs/Cylance_Protect/ReleaseNotes/1_2_0.md new file mode 100644 index 000000000000..3acf083379bb --- /dev/null +++ b/Packs/Cylance_Protect/ReleaseNotes/1_2_0.md @@ -0,0 +1,10 @@ + +#### Integrations + +##### Cylance Protect v2 + +- Added the following integration parameters to support credentials fetching object: + - *Application ID* + - *Application Secret* + - *Tenant API Key* +- Updated the Docker image to: *demisto/pyjwt3:1.0.0.58911*. \ No newline at end of file diff --git a/Packs/Cylance_Protect/pack_metadata.json b/Packs/Cylance_Protect/pack_metadata.json index 4cc5ea68f3bc..1fd63f1e34a5 100644 --- a/Packs/Cylance_Protect/pack_metadata.json +++ b/Packs/Cylance_Protect/pack_metadata.json @@ -2,7 +2,7 @@ "name": "Cylance Protect", "description": "Manage Endpoints using Cylance protect", "support": "xsoar", - "currentVersion": "1.1.14", + "currentVersion": "1.2.0", "author": "Cortex XSOAR", "url": "https://www.paloaltonetworks.com/cortex", "email": "", From 12dd49d36b48d4767d1ad947c382ef13e8689f15 Mon Sep 17 00:00:00 2001 From: jlevypaloalto Date: Tue, 16 May 2023 10:53:12 +0300 Subject: [PATCH 03/33] added error in case of insufficient creds --- .../Integrations/Cylance_Protect_v2/Cylance_Protect_v2.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Packs/Cylance_Protect/Integrations/Cylance_Protect_v2/Cylance_Protect_v2.py b/Packs/Cylance_Protect/Integrations/Cylance_Protect_v2/Cylance_Protect_v2.py index a974110ea9ac..64acad062dad 100644 --- a/Packs/Cylance_Protect/Integrations/Cylance_Protect_v2/Cylance_Protect_v2.py +++ b/Packs/Cylance_Protect/Integrations/Cylance_Protect_v2/Cylance_Protect_v2.py @@ -1528,6 +1528,9 @@ def main(): # pragma: no cover global USE_SSL USE_SSL = not params.get('unsecure', False) command = demisto.command() + + if not any((APP_ID, APP_SECRET, TID)): + raise DemistoException('Please fill out the Application ID, Application Secret and Tenant API Key') LOG(f'Command being called is {command}') try: From 2940f4426c625900e2b6ea7e149305c768d65c25 Mon Sep 17 00:00:00 2001 From: jlevypaloalto Date: Tue, 16 May 2023 11:14:00 +0300 Subject: [PATCH 04/33] fixed bug in error in case of insufficient creds --- .../Integrations/Cylance_Protect_v2/Cylance_Protect_v2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Packs/Cylance_Protect/Integrations/Cylance_Protect_v2/Cylance_Protect_v2.py b/Packs/Cylance_Protect/Integrations/Cylance_Protect_v2/Cylance_Protect_v2.py index 64acad062dad..d2a6472ceaaf 100644 --- a/Packs/Cylance_Protect/Integrations/Cylance_Protect_v2/Cylance_Protect_v2.py +++ b/Packs/Cylance_Protect/Integrations/Cylance_Protect_v2/Cylance_Protect_v2.py @@ -1529,7 +1529,7 @@ def main(): # pragma: no cover USE_SSL = not params.get('unsecure', False) command = demisto.command() - if not any((APP_ID, APP_SECRET, TID)): + if not all((APP_ID, APP_SECRET, TID)): raise DemistoException('Please fill out the Application ID, Application Secret and Tenant API Key') LOG(f'Command being called is {command}') From fbee802696788582e2cc843c3b4a1dad0c18a8e4 Mon Sep 17 00:00:00 2001 From: jlevypaloalto Date: Tue, 16 May 2023 17:32:30 +0300 Subject: [PATCH 05/33] added creds as config option --- Packs/GoogleDrive/.pack-ignore | 2 +- .../Integrations/GoogleDrive/GoogleDrive.py | 11 +++++++++-- .../Integrations/GoogleDrive/GoogleDrive.yml | 7 ++++++- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/Packs/GoogleDrive/.pack-ignore b/Packs/GoogleDrive/.pack-ignore index dde83fc81a0c..ccdef19aaee6 100644 --- a/Packs/GoogleDrive/.pack-ignore +++ b/Packs/GoogleDrive/.pack-ignore @@ -5,7 +5,7 @@ ignore=RM104 ignore=BA101 [file:GoogleDrive.yml] -ignore=IN145 +ignore= [file:GoogleDrive_image.png] ignore=IM111 diff --git a/Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.py b/Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.py index 64d3cd1f200b..c2dda4d58ac0 100644 --- a/Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.py +++ b/Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.py @@ -1686,7 +1686,14 @@ def main() -> None: try: params = demisto.params() - service_account_dict = GSuiteClient.safe_load_non_strict_json(params.get('user_service_account_json')) + + account_json = params.get('user_creds', {}).get('password') or params.get('user_service_account_json') + user_id = params.get('user_creds', {}).get('identifier') or params.get('user_id', '') + + if not account_json: + raise DemistoException('Please fill out the User\'s Service Account JSON field.') + + service_account_dict = GSuiteClient.safe_load_non_strict_json(account_json) verify_certificate = not params.get('insecure', False) proxy = params.get('proxy', False) @@ -1698,7 +1705,7 @@ def main() -> None: gsuite_client = GSuiteClient(service_account_dict, base_url='https://www.googleapis.com/', verify=verify_certificate, proxy=proxy, headers=headers, - user_id=params.get('user_id', '')) + user_id=user_id) # Trim the arguments args = GSuiteClient.strip_dict(demisto.args()) diff --git a/Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.yml b/Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.yml index 2cfe66bcb9ef..e6d61d2b57bb 100644 --- a/Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.yml +++ b/Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.yml @@ -7,7 +7,6 @@ sectionOrder: configuration: - name: user_service_account_json display: User's Service Account JSON - required: true defaultvalue: type: 4 section: Connect @@ -20,6 +19,12 @@ configuration: section: Connect advanced: true additionalinfo: The primary email address of the user to fetch the incident(s). +- display: User ID + displaypassword: User's Service Account JSON + name: user_creds + required: false + type: 9 + section: Connect - name: action_detail_case_include display: Action Detail Case Include required: false From 0579e375dd848a7fefe9261c92013b3aeef0bad3 Mon Sep 17 00:00:00 2001 From: jlevypaloalto Date: Tue, 16 May 2023 20:25:22 +0300 Subject: [PATCH 06/33] added hidden to old fields --- Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.py | 6 +++--- Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.yml | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.py b/Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.py index c2dda4d58ac0..2f4bfec3de3a 100644 --- a/Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.py +++ b/Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.py @@ -1686,13 +1686,13 @@ def main() -> None: try: params = demisto.params() - + account_json = params.get('user_creds', {}).get('password') or params.get('user_service_account_json') user_id = params.get('user_creds', {}).get('identifier') or params.get('user_id', '') - + if not account_json: raise DemistoException('Please fill out the User\'s Service Account JSON field.') - + service_account_dict = GSuiteClient.safe_load_non_strict_json(account_json) verify_certificate = not params.get('insecure', False) proxy = params.get('proxy', False) diff --git a/Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.yml b/Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.yml index e6d61d2b57bb..cd4dbba46bcb 100644 --- a/Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.yml +++ b/Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.yml @@ -11,6 +11,7 @@ configuration: type: 4 section: Connect additionalinfo: + hidden: true - name: user_id display: User ID required: false @@ -19,6 +20,7 @@ configuration: section: Connect advanced: true additionalinfo: The primary email address of the user to fetch the incident(s). + hidden: true - display: User ID displaypassword: User's Service Account JSON name: user_creds From 1104829ab4810db3b49d5b630f90346172fdc004 Mon Sep 17 00:00:00 2001 From: jlevypaloalto Date: Wed, 17 May 2023 19:32:36 +0300 Subject: [PATCH 07/33] updated release notes --- Packs/GoogleDrive/ReleaseNotes/1_3_0.md | 8 ++++++++ Packs/GoogleDrive/pack_metadata.json | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 Packs/GoogleDrive/ReleaseNotes/1_3_0.md diff --git a/Packs/GoogleDrive/ReleaseNotes/1_3_0.md b/Packs/GoogleDrive/ReleaseNotes/1_3_0.md new file mode 100644 index 000000000000..c0f53aa61618 --- /dev/null +++ b/Packs/GoogleDrive/ReleaseNotes/1_3_0.md @@ -0,0 +1,8 @@ + +#### Integrations + +##### Google Drive + +- Added the following integration parameters to support credentials fetching object: + - *User ID* + - *User's Service Account JSON* \ No newline at end of file diff --git a/Packs/GoogleDrive/pack_metadata.json b/Packs/GoogleDrive/pack_metadata.json index 6500825217b7..d90c1cf70c83 100644 --- a/Packs/GoogleDrive/pack_metadata.json +++ b/Packs/GoogleDrive/pack_metadata.json @@ -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.30", + "currentVersion": "1.3.0", "author": "Cortex XSOAR", "url": "https://www.paloaltonetworks.com/cortex", "email": "", From 31d56a7a462ba871efb2a36a7a3ed091e32968ac Mon Sep 17 00:00:00 2001 From: jlevypaloalto Date: Thu, 18 May 2023 09:16:31 +0300 Subject: [PATCH 08/33] updated docker image --- .../Integrations/GoogleDrive/GoogleDrive.yml | 900 ++++++------------ 1 file changed, 283 insertions(+), 617 deletions(-) diff --git a/Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.yml b/Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.yml index cd4dbba46bcb..708436067ed5 100644 --- a/Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.yml +++ b/Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.yml @@ -21,12 +21,12 @@ configuration: advanced: true additionalinfo: The primary email address of the user to fetch the incident(s). hidden: true -- display: User ID - displaypassword: User's Service Account JSON - name: user_creds +- name: user_creds + display: User ID required: false type: 9 section: Connect + displaypassword: User's Service Account JSON - name: action_detail_case_include display: Action Detail Case Include required: false @@ -51,27 +51,25 @@ configuration: type: 15 section: Collect advanced: true - additionalinfo: itemName - Fetch activities for this drive item. The - format is "items/ITEM_ID". folderName - Fetch activities for this drive folder - and all children and descendants. The format is "items/ITEM_ID". + additionalinfo: itemName - Fetch activities for this drive item. The format is "items/ITEM_ID". folderName - Fetch activities for this drive folder and all children and descendants. The format is "items/ITEM_ID". options: - itemName - folderName - name: drive_item_search_value display: Drive Item Search Value required: false - defaultvalue: type: 0 section: Collect + defaultvalue: advanced: true additionalinfo: itemName or folderName for fetching the incident. -- name: isFetch - display: Fetch incidents +- display: Fetch incidents + name: isFetch required: false type: 8 section: Collect -- display: Incident type - name: incidentType +- name: incidentType + display: Incident type required: false type: 13 - name: max_fetch @@ -84,12 +82,11 @@ configuration: - name: first_fetch display: First Fetch Time Interval required: false - defaultvalue: 10 minutes type: 0 section: Collect advanced: true - additionalinfo: The time range to consider for the initial data fetch in the format - e.g., 1 hour, 2 hours, 6 hours, 12 hours, 24 hours, 48 hours. + additionalinfo: The time range to consider for the initial data fetch in the format e.g., 1 hour, 2 hours, 6 hours, 12 hours, 24 hours, 48 hours. + defaultvalue: 10 minutes - name: insecure display: Trust any certificate (not secure) required: false @@ -104,9 +101,7 @@ configuration: section: Connect advanced: true additionalinfo: -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. +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. script: commands: - arguments: @@ -147,8 +142,7 @@ script: description: Identifies what kind of resource this is. type: String - contextPath: GoogleDrive.Drive.id - description: The ID of the shared drive which is also the ID of the top level - folder of the shared drive. + description: The ID of the shared drive which is also the ID of the top level folder of the shared drive. type: String - contextPath: GoogleDrive.Drive.name description: The name of the shared drive. @@ -170,8 +164,7 @@ script: required: false secret: false - default: false - description: The shared drive from which changes are returned. Can be retrieved - using the `google-drive-drives-list` command. + description: The shared drive from which changes are returned. Can be retrieved using the `google-drive-drives-list` command. isArray: false name: drive_id required: false @@ -179,10 +172,7 @@ script: - auto: PREDEFINED default: false defaultValue: "false" - description: 'Whether changes should include the file resource if the file is - still accessible by the user at the time of the request, even when a file - was removed from the list of changes and there will be no further change entries - for this file. Possible values: "true" and "false".' + description: 'Whether changes should include the file resource if the file is still accessible by the user at the time of the request, even when a file was removed from the list of changes and there will be no further change entries for this file. Possible values: "true" and "false".' isArray: false name: include_corpus_removals predefined: @@ -193,8 +183,7 @@ script: - 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".' + 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: @@ -203,8 +192,7 @@ script: required: false secret: false - default: false - description: Specifies which additional view's permissions to include in the - response. Only 'published' is supported. + description: Specifies which additional view's permissions to include in the response. Only 'published' is supported. isArray: false name: include_permissions_for_view required: false @@ -212,9 +200,7 @@ script: - auto: PREDEFINED default: false defaultValue: "true" - description: 'Whether to include changes indicating that items have been removed - from the list of changes, for example by deletion or loss of access. - Possible values: "true" and "false".' + description: 'Whether to include changes indicating that items have been removed from the list of changes, for example by deletion or loss of access. Possible values: "true" and "false".' isArray: false name: include_removed predefined: @@ -224,8 +210,7 @@ script: secret: false - default: false defaultValue: 100 - description: The maximum number of changes to return per page. Acceptable values - are 1 to 1000, inclusive. + description: The maximum number of changes to return per page. Acceptable values are 1 to 1000, inclusive. isArray: false name: page_size required: false @@ -233,9 +218,7 @@ script: - auto: PREDEFINED default: false defaultValue: "false" - description: 'Whether to restrict the results to changes inside the My Drive - hierarchy. This omits changes to files such as those in the Application Data - folder or shared files which have not been added to My Drive. Possible values: "true" and "false".' + description: 'Whether to restrict the results to changes inside the My Drive hierarchy. This omits changes to files such as those in the Application Data folder or shared files which have not been added to My Drive. Possible values: "true" and "false".' isArray: false name: restrict_to_my_drive predefined: @@ -244,8 +227,7 @@ script: required: false secret: false - default: false - description: A comma-separated list of spaces to query within the user corpus. - Possible values are 'drive', 'appDataFolder', and 'photos'. + description: A comma-separated list of spaces to query within the user corpus. Possible values are 'drive', 'appDataFolder', and 'photos'. isArray: false name: spaces required: false @@ -253,8 +235,7 @@ script: - auto: PREDEFINED default: false defaultValue: "false" - description: 'Whether the requesting application supports both My Drives and - shared drives. Possible values: "true" and "false".' + description: 'Whether the requesting application supports both My Drives and shared drives. Possible values: "true" and "false".' isArray: false name: supports_all_drives predefined: @@ -265,9 +246,7 @@ script: - auto: PREDEFINED default: false defaultValue: basic - description: 'The paths of the fields you want to include in the response. Possible - values are: "basic" (the response will include a default set of fields specific - to this method) and "advance" (you can use the value * to return all the fields).' + description: 'The paths of the fields you want to include in the response. Possible values are: "basic" (the response will include a default set of fields specific to this method) and "advance" (you can use the value * to return all the fields).' isArray: false name: fields predefined: @@ -305,8 +284,7 @@ script: description: The time of this change (RFC 3339 date-time). type: Date - contextPath: GoogleDrive.DriveChange.removed - description: Whether the file or shared drive has been removed from this list - of changes, for example by deletion or loss of access. + description: Whether the file or shared drive has been removed from this list of changes, for example by deletion or loss of access. type: Boolean - contextPath: GoogleDrive.DriveChange.fileId description: The ID of the file which has changed. @@ -333,12 +311,10 @@ script: description: Whether the user has starred the file. type: Boolean - contextPath: GoogleDrive.DriveChange.file.trashed - description: Whether the file has been trashed, either explicitly or from a - trashed parent folder. Only the owner may trash a file. + description: Whether the file has been trashed, either explicitly or from a trashed parent folder. Only the owner may trash a file. type: Boolean - contextPath: GoogleDrive.DriveChange.file.explicitlyTrashed - description: Whether the file has been explicitly trashed, as opposed to recursively - trashed from a parent folder. + description: Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent folder. type: Boolean - contextPath: GoogleDrive.DriveChange.file.trashingUser.kind description: Identifies what kind of resource this is. @@ -356,40 +332,31 @@ script: description: The user's ID as visible in Permission resources. type: String - contextPath: GoogleDrive.DriveChange.file.trashingUser.emailAddress - description: The email address of the user. This may not be present in certain - contexts if the user has not made their email address visible to the requester. + description: The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester. type: String - contextPath: GoogleDrive.DriveChange.file.trashedTime - description: The time that the item was trashed (RFC 3339 date-time). Only populated - for items in shared drives. + description: The time that the item was trashed (RFC 3339 date-time). Only populated for items in shared drives. type: Date - contextPath: GoogleDrive.DriveChange.file.parents description: The IDs of the parent folders which contain the file. type: Unknown - contextPath: GoogleDrive.DriveChange.file.properties - description: A collection of arbitrary key-value pairs which are visible to - all apps. + description: A collection of arbitrary key-value pairs which are visible to all apps. type: Unknown - contextPath: GoogleDrive.DriveChange.file.appProperties - description: A collection of arbitrary key-value pairs which are private to - the requesting app. + description: A collection of arbitrary key-value pairs which are private to the requesting app. type: Unknown - contextPath: GoogleDrive.DriveChange.file.spaces - description: The list of spaces which contain the file. The currently supported - values are 'drive', 'appDataFolder' and 'photos'. + description: The list of spaces which contain the file. The currently supported values are 'drive', 'appDataFolder' and 'photos'. type: Unknown - contextPath: GoogleDrive.DriveChange.file.version - description: A monotonically increasing version number for the file. This reflects - every change made to the file on the server, even those not visible to the - user. + description: A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the user. type: Number - contextPath: GoogleDrive.DriveChange.file.webContentLink - description: A link for downloading the content of the file in a browser. This - is only available for files with binary content in Google Drive. + description: A link for downloading the content of the file in a browser. This is only available for files with binary content in Google Drive. type: String - contextPath: GoogleDrive.DriveChange.file.webViewLink - description: A link for opening the file in a relevant Google editor or viewer - in a browser. + description: A link for opening the file in a relevant Google editor or viewer in a browser. type: String - contextPath: GoogleDrive.DriveChange.file.iconLink description: A static, unauthenticated link to the file's icon. @@ -422,8 +389,7 @@ script: description: Whether the file has been modified by the user. type: Boolean - contextPath: GoogleDrive.DriveChange.file.sharedWithMeTime - description: The time at which the file was shared with the user, if applicable - (RFC 3339 date-time). + description: The time at which the file was shared with the user, if applicable (RFC 3339 date-time). type: Date - contextPath: GoogleDrive.DriveChange.file.sharingUser.kind description: Identifies what kind of resource this is. @@ -441,8 +407,7 @@ script: description: The user's ID as visible in Permission resources. type: String - contextPath: GoogleDrive.DriveChange.file.sharingUser.emailAddress - description: The email address of the user. This may not be present in certain - contexts if the user has not made their email address visible to the requester. + description: The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester. type: String - contextPath: GoogleDrive.DriveChange.file.owners.kind description: Identifies what kind of resource this is. @@ -460,12 +425,10 @@ script: description: The user's ID as visible in Permission resources. type: String - contextPath: GoogleDrive.DriveChange.file.owners.emailAddress - description: The email address of the user. This may not be present in certain - contexts if the user has not made their email address visible to the requester. + description: The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester. type: String - contextPath: GoogleDrive.DriveChange.file.driveId - description: ID of the shared drive the file resides in. Only populated for - items in shared drives. + description: ID of the shared drive the file resides in. Only populated for items in shared drives. type: String - contextPath: GoogleDrive.DriveChange.file.lastModifyingUser.kind description: Identifies what kind of resource this is. @@ -483,33 +446,25 @@ script: description: The user's ID as visible in Permission resources. type: String - contextPath: GoogleDrive.DriveChange.file.lastModifyingUser.emailAddress - description: The email address of the user. This may not be present in certain - contexts if the user has not made their email address visible to the requester. + description: The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester. type: String - contextPath: GoogleDrive.DriveChange.file.shared - description: Whether the file has been shared. Not populated for items in shared - drives. + description: Whether the file has been shared. Not populated for items in shared drives. type: Boolean - contextPath: GoogleDrive.DriveChange.file.ownedByMe - description: Whether the user owns the file. Not populated for items in shared - drives. + description: Whether the user owns the file. Not populated for items in shared drives. type: Boolean - contextPath: GoogleDrive.DriveChange.file.capabilities.canAddChildren - description: Whether the current user can add children to this folder. This - is always false when the item is not a folder. + description: Whether the current user can add children to this folder. This is always false when the item is not a folder. type: Boolean - contextPath: GoogleDrive.DriveChange.file.capabilities.canAddFolderFromAnotherDrive - description: Whether the current user can add a folder from another drive (different - shared drive or My Drive) to this folder. + description: Whether the current user can add a folder from another drive (different shared drive or My Drive) to this folder. type: Boolean - contextPath: GoogleDrive.DriveChange.file.capabilities.canAddMyDriveParent - description: Whether the current user can add a parent for the item without - removing an existing parent in the same request. Not populated for shared - drive files. + description: Whether the current user can add a parent for the item without removing an existing parent in the same request. Not populated for shared drive files. type: Boolean - contextPath: GoogleDrive.DriveChange.file.capabilities.canChangeCopyRequiresWriterPermission - description: Whether the current user can change the 'copy requires writer permission' - restriction of this file. + description: Whether the current user can change the 'copy requires writer permission' restriction of this file. type: Boolean - contextPath: GoogleDrive.DriveChange.file.capabilities.canComment description: Whether the current user can comment on this file. @@ -521,9 +476,7 @@ script: description: Whether the current user can delete this file. type: Boolean - contextPath: GoogleDrive.DriveChange.file.capabilities.canDeleteChildren - description: Whether the current user can delete children of this folder. This - is false when the item is not a folder. Only populated for items in shared - drives. + description: Whether the current user can delete children of this folder. This is false when the item is not a folder. Only populated for items in shared drives. type: Boolean - contextPath: GoogleDrive.DriveChange.file.capabilities.canDownload description: Whether the current user can download this file. @@ -532,72 +485,58 @@ script: description: Whether the current user can edit this file. type: Boolean - contextPath: GoogleDrive.DriveChange.file.capabilities.canListChildren - description: Whether the current user can list the children of this folder. - This is always false when the item is not a folder. + description: Whether the current user can list the children of this folder. This is always false when the item is not a folder. type: Boolean - contextPath: GoogleDrive.DriveChange.file.capabilities.canModifyContent description: Whether the current user can modify the content of this file. type: Boolean - contextPath: GoogleDrive.DriveChange.file.capabilities.canModifyContentRestriction - description: Whether the current user can modify restrictions on content of - this file. + description: Whether the current user can modify restrictions on content of this file. type: Boolean - contextPath: GoogleDrive.DriveChange.file.capabilities.canMoveChildrenOutOfDrive - description: Whether the current user can move children of this folder outside - of the shared drive. + description: Whether the current user can move children of this folder outside of the shared drive. type: Boolean - contextPath: GoogleDrive.DriveChange.file.capabilities.canMoveChildrenWithinDrive - description: Whether the current user can move children of this folder within - this drive. + description: Whether the current user can move children of this folder within this drive. type: Boolean - contextPath: GoogleDrive.DriveChange.file.capabilities.canMoveItemOutOfDrive - description: Whether the current user can move this item outside of this drive - by changing its parent. + description: Whether the current user can move this item outside of this drive by changing its parent. type: Boolean - contextPath: GoogleDrive.DriveChange.file.capabilities.canMoveItemWithinDrive description: Whether the current user can move this item within this drive. type: Boolean - contextPath: GoogleDrive.DriveChange.file.capabilities.canReadRevisions - description: Whether the current user can read the revisions resource of this - file. + description: Whether the current user can read the revisions resource of this file. type: Boolean - contextPath: GoogleDrive.DriveChange.file.capabilities.canReadDrive - description: Whether the current user can read the shared drive to which this - file belongs. Only populated for items in shared drives. + description: Whether the current user can read the shared drive to which this file belongs. Only populated for items in shared drives. type: Boolean - contextPath: GoogleDrive.DriveChange.file.capabilities.canRemoveChildren description: Whether the current user can remove children from this folder. type: Boolean - contextPath: GoogleDrive.DriveChange.file.capabilities.canRemoveMyDriveParent - description: Whether the current user can remove a parent from the item without - adding another parent in the same request. Not populated for shared drive - files. + description: Whether the current user can remove a parent from the item without adding another parent in the same request. Not populated for shared drive files. type: Boolean - contextPath: GoogleDrive.DriveChange.file.capabilities.canRename description: Whether the current user can rename this file. type: Boolean - contextPath: GoogleDrive.DriveChange.file.capabilities.canShare - description: Whether the current user can modify the sharing settings for this - file. + description: Whether the current user can modify the sharing settings for this file. type: Boolean - contextPath: GoogleDrive.DriveChange.file.capabilities.canTrash description: Whether the current user can move this file to trash. type: Boolean - contextPath: GoogleDrive.DriveChange.file.capabilities.canTrashChildren - description: Whether the current user can trash children of this folder. This - is false when the item is not a folder. Only populated for items in shared - drives. + description: Whether the current user can trash children of this folder. This is false when the item is not a folder. Only populated for items in shared drives. type: Boolean - contextPath: GoogleDrive.DriveChange.file.capabilities.canUntrash description: Whether the current user can restore this file from trash. type: Boolean - contextPath: GoogleDrive.DriveChange.file.copyRequiresWriterPermission - description: Whether the options to copy, print, or download this file, should - be disabled for readers and commenters. + description: Whether the options to copy, print, or download this file, should be disabled for readers and commenters. type: Boolean - contextPath: GoogleDrive.DriveChange.file.writersCanShare - description: Whether users with only writer permission can modify the file's - permissions. Not populated for items in shared drives. + description: Whether users with only writer permission can modify the file's permissions. Not populated for items in shared drives. type: Boolean - contextPath: GoogleDrive.DriveChange.file.permissions.kind description: Identifies what kind of resource this is. @@ -609,8 +548,7 @@ script: description: The type of the grantee. type: String - contextPath: GoogleDrive.DriveChange.file.permissions.emailAddress - description: The email address of the user or group to which this permission - refers. + description: The email address of the user or group to which this permission refers. type: String - contextPath: GoogleDrive.DriveChange.file.permissions.domain description: The domain to which this permission refers. @@ -622,8 +560,7 @@ script: description: Indicates the view for this permission. type: String - contextPath: GoogleDrive.DriveChange.file.permissions.allowFileDiscovery - description: Whether the permission allows the file to be discovered through - search. + description: Whether the permission allows the file to be discovered through search. type: Boolean - contextPath: GoogleDrive.DriveChange.file.permissions.displayName description: The "pretty" name of the value of the permission. @@ -653,50 +590,40 @@ script: description: List of permission IDs for users with access to this file. type: Unknown - contextPath: GoogleDrive.DriveChange.file.hasAugmentedPermissions - description: Whether there are permissions directly on this file. This field - is only populated for items in shared drives. + description: Whether there are permissions directly on this file. This field is only populated for items in shared drives. type: Boolean - contextPath: GoogleDrive.DriveChange.file.folderColorRgb description: The color for a folder as an RGB hex string. type: String - contextPath: GoogleDrive.DriveChange.file.originalFilename - description: The original filename of the uploaded content if available, or - else the original value of the name field. This is only available for files - with binary content in Google Drive. + description: The original filename of the uploaded content if available, or else the original value of the name field. This is only available for files with binary content in Google Drive. type: String - contextPath: GoogleDrive.DriveChange.file.fullFileExtension description: The full file extension extracted from the name field. type: String - contextPath: GoogleDrive.DriveChange.file.fileExtension - description: The final component of fullFileExtension. This is only available - for files with binary content in Google Drive. + description: The final component of fullFileExtension. This is only available for files with binary content in Google Drive. type: String - contextPath: GoogleDrive.DriveChange.file.md5Checksum - description: The MD5 checksum for the content of the file. This is only applicable - to files with binary content in Google Drive. + description: The MD5 checksum for the content of the file. This is only applicable to files with binary content in Google Drive. type: String - contextPath: GoogleDrive.DriveChange.file.size - description: The size of the file's content in bytes. This is only applicable - to files with binary content in Google Drive. + description: The size of the file's content in bytes. This is only applicable to files with binary content in Google Drive. type: Number - contextPath: GoogleDrive.DriveChange.file.quotaBytesUsed - description: The number of storage quota bytes used by the file. This includes - the head revision as well as previous revisions with keepForever enabled. + description: The number of storage quota bytes used by the file. This includes the head revision as well as previous revisions with keepForever enabled. type: Number - contextPath: GoogleDrive.DriveChange.file.headRevisionId - description: The ID of the file's head revision. This is currently only available - for files with binary content in Google Drive. + description: The ID of the file's head revision. This is currently only available for files with binary content in Google Drive. type: String - contextPath: GoogleDrive.DriveChange.file.contentHints.thumbnail.image - description: The thumbnail data encoded with URL-safe Base64 (RFC 4648 section - 5). + description: The thumbnail data encoded with URL-safe Base64 (RFC 4648 section 5). type: Unknown - contextPath: GoogleDrive.DriveChange.file.contentHints.thumbnail.mimeType description: The MIME type of the thumbnail. type: String - contextPath: GoogleDrive.DriveChange.file.contentHints.indexableText - description: Text to be indexed for the file to improve fullText queries. This - is limited to 128KB in length and may contain HTML elements. + description: Text to be indexed for the file to improve fullText queries. This is limited to 128KB in length and may contain HTML elements. type: String - contextPath: GoogleDrive.DriveChange.file.imageMediaMetadata.width description: The width of the image in pixels. @@ -705,8 +632,7 @@ script: description: The height of the image in pixels. type: Number - contextPath: GoogleDrive.DriveChange.file.imageMediaMetadata.rotation - description: The number of clockwise 90 degree rotations applied from the image's - original orientation. + description: The number of clockwise 90 degree rotations applied from the image's original orientation. type: Number - contextPath: GoogleDrive.DriveChange.file.imageMediaMetadata.location.latitude description: The latitude stored in the image. @@ -760,8 +686,7 @@ script: description: The exposure bias of the photo (APEX value). type: Number - contextPath: GoogleDrive.DriveChange.file.imageMediaMetadata.maxApertureValue - description: The smallest f-number of the lens at the focal length used to create - the photo (APEX value). + description: The smallest f-number of the lens at the focal length used to create the photo (APEX value). type: Number - contextPath: GoogleDrive.DriveChange.file.imageMediaMetadata.subjectDistance description: The distance to the subject of the photo, in meters. @@ -788,16 +713,13 @@ script: description: The ID of the file that this shortcut points to. type: String - contextPath: GoogleDrive.DriveChange.file.shortcutDetails.targetMimeType - description: The MIME type of the file that this shortcut points to. The value - of this field is a snapshot of the target's MIME type, captured when the shortcut - is created. + description: The MIME type of the file that this shortcut points to. The value of this field is a snapshot of the target's MIME type, captured when the shortcut is created. type: String - contextPath: GoogleDrive.DriveChange.file.contentRestrictions.readOnly description: Whether the content of the file is read-only. type: Boolean - contextPath: GoogleDrive.DriveChange.file.contentRestrictions.reason - description: Reason for why the content of the file is restricted. This is only - mutable on requests that also set readOnly=true. + description: Reason for why the content of the file is restricted. This is only mutable on requests that also set readOnly=true. type: String - contextPath: GoogleDrive.DriveChange.file.contentRestrictions.restrictingUser.kind description: Identifies what kind of resource this is. @@ -815,46 +737,37 @@ script: description: The user's ID as visible in Permission resources. type: String - contextPath: GoogleDrive.DriveChange.file.contentRestrictions.restrictingUser.emailAddress - description: The email address of the user. This may not be present in certain - contexts if the user has not made their email address visible to the requester. + description: The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester. type: String - contextPath: GoogleDrive.DriveChange.file.contentRestrictions.restrictionTime - description: The time at which the content restriction was set (formatted RFC - 3339 timestamp). Only populated if readOnly is true. + description: The time at which the content restriction was set (formatted RFC 3339 timestamp). Only populated if readOnly is true. type: Date - contextPath: GoogleDrive.DriveChange.file.contentRestrictions.type - description: The type of the content restriction. Currently the only possible - value is globalContentRestriction. + description: The type of the content restriction. Currently the only possible value is globalContentRestriction. type: String - contextPath: GoogleDrive.DriveChange.drive.kind description: Identifies what kind of resource this is. type: String - contextPath: GoogleDrive.DriveChange.drive.id - description: The ID of this shared drive which is also the ID of the top level - folder of this shared drive. + description: The ID of this shared drive which is also the ID of the top level folder of this shared drive. type: String - contextPath: GoogleDrive.DriveChange.drive.name description: The name of this shared drive. type: String - contextPath: GoogleDrive.DriveChange.drive.themeId - description: The ID of the theme from which the background image and color will - be set. + description: The ID of the theme from which the background image and color will be set. type: String - contextPath: GoogleDrive.DriveChange.drive.colorRgb - description: The color of this shared drive as an RGB hex string. It can only - be set on a drive.drives.update request that does not set themeId. + description: The color of this shared drive as an RGB hex string. It can only be set on a drive.drives.update request that does not set themeId. type: String - contextPath: GoogleDrive.DriveChange.drive.backgroundImageFile.id - description: The ID of an image file in Google Drive to use for the background - image. + description: The ID of an image file in Google Drive to use for the background image. type: String - contextPath: GoogleDrive.DriveChange.drive.backgroundImageFile.xCoordinate - description: The X coordinate of the upper left corner of the cropping area - in the background image. + description: The X coordinate of the upper left corner of the cropping area in the background image. type: Number - contextPath: GoogleDrive.DriveChange.drive.backgroundImageFile.yCoordinate - description: The Y coordinate of the upper left corner of the cropping area - in the background image. + description: The Y coordinate of the upper left corner of the cropping area in the background image. type: Number - contextPath: GoogleDrive.DriveChange.drive.backgroundImageFile.width description: The width of the cropped image in the closed range of 0 to 1. @@ -863,24 +776,19 @@ script: description: A short-lived link to this shared drive's background image. type: String - contextPath: GoogleDrive.DriveChange.drive.capabilities.canAddChildren - description: Whether the current user can add children to folders in this shared - drive. + description: Whether the current user can add children to folders in this shared drive. type: Boolean - contextPath: GoogleDrive.DriveChange.drive.capabilities.canChangeCopyRequiresWriterPermissionRestriction - description: Whether the current user can change the 'copy requires writer permission' - restriction of this shared drive. + description: Whether the current user can change the 'copy requires writer permission' restriction of this shared drive. type: Boolean - contextPath: GoogleDrive.DriveChange.drive.capabilities.canChangeDomainUsersOnlyRestriction - description: Whether the current user can change the 'domain users only' restriction - of this shared drive. + description: Whether the current user can change the 'domain users only' restriction of this shared drive. type: Boolean - contextPath: GoogleDrive.DriveChange.drive.capabilities.canChangeDriveBackground - description: Whether the current user can change the background of this shared - drive. + description: Whether the current user can change the background of this shared drive. type: Boolean - contextPath: GoogleDrive.DriveChange.drive.capabilities.canChangeDriveMembersOnlyRestriction - description: Whether the current user can change the 'drive members only' restriction - of this shared drive. + description: Whether the current user can change the 'drive members only' restriction of this shared drive. type: Boolean - contextPath: GoogleDrive.DriveChange.drive.capabilities.canComment description: Whether the current user can comment on files in this shared drive. @@ -889,8 +797,7 @@ script: description: Whether the current user can copy files in this shared drive. type: Boolean - contextPath: GoogleDrive.DriveChange.drive.capabilities.canDeleteChildren - description: Whether the current user can delete children from folders in this - shared drive. + description: Whether the current user can delete children from folders in this shared drive. type: Boolean - contextPath: GoogleDrive.DriveChange.drive.capabilities.canDeleteDrive description: Whether the current user can delete this shared drive. @@ -902,31 +809,25 @@ script: description: Whether the current user can edit files in this shared drive type: Boolean - contextPath: GoogleDrive.DriveChange.drive.capabilities.canListChildren - description: Whether the current user can list the children of folders in this - shared drive. + description: Whether the current user can list the children of folders in this shared drive. type: Boolean - contextPath: GoogleDrive.DriveChange.drive.capabilities.canManageMembers - description: Whether the current user can add members to this shared drive or - remove them or change their role. + description: Whether the current user can add members to this shared drive or remove them or change their role. type: Boolean - contextPath: GoogleDrive.DriveChange.drive.capabilities.canReadRevisions - description: Whether the current user can read the revisions resource of files - in this shared drive. + description: Whether the current user can read the revisions resource of files in this shared drive. type: Boolean - contextPath: GoogleDrive.DriveChange.drive.capabilities.canRename - description: Whether the current user can rename files or folders in this shared - drive. + description: Whether the current user can rename files or folders in this shared drive. type: Boolean - contextPath: GoogleDrive.DriveChange.drive.capabilities.canRenameDrive description: Whether the current user can rename this shared drive. type: Boolean - contextPath: GoogleDrive.DriveChange.drive.capabilities.canShare - description: Whether the current user can share files or folders in this shared - drive. + description: Whether the current user can share files or folders in this shared drive. type: Boolean - contextPath: GoogleDrive.DriveChange.drive.capabilities.canTrashChildren - description: Whether the current user can trash children from folders in this - shared drive. + description: Whether the current user can trash children from folders in this shared drive. type: Boolean - contextPath: GoogleDrive.DriveChange.drive.createdTime description: The time at which the shared drive was created (RFC 3339 date-time). @@ -935,20 +836,16 @@ script: description: Whether the shared drive is hidden from the default view. type: Boolean - contextPath: GoogleDrive.DriveChange.drive.restrictions.adminManagedRestrictions - description: Whether administrative privileges on this shared drive are required - to modify restrictions. + description: Whether administrative privileges on this shared drive are required to modify restrictions. type: Boolean - contextPath: GoogleDrive.DriveChange.drive.restrictions.copyRequiresWriterPermission - description: Whether the options to copy, print, or download files inside this - shared drive, should be disabled for readers and commenters. + description: Whether the options to copy, print, or download files inside this shared drive, should be disabled for readers and commenters. type: Boolean - contextPath: GoogleDrive.DriveChange.drive.restrictions.domainUsersOnly - description: Whether access to this shared drive and items inside this shared - drive is restricted to users of the domain to which this shared drive belongs. + description: Whether access to this shared drive and items inside this shared drive is restricted to users of the domain to which this shared drive belongs. type: Boolean - contextPath: GoogleDrive.DriveChange.drive.restrictions.driveMembersOnly - description: Whether access to items inside this shared drive is restricted - to its members. + description: Whether access to items inside this shared drive is restricted to its members. type: Boolean - arguments: - default: false @@ -958,8 +855,7 @@ script: required: false secret: false - default: false - 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 and all children and descendants. The format is "items/ITEM_ID". isArray: false name: folder_name required: false @@ -1044,9 +940,7 @@ script: required: false secret: false - default: false - description: The token identifying which page of results to return. Set this - to the nextPageToken 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 identifying which page of results to return. Set this to the nextPageToken value returned from a previous query to obtain the following page of results. If not set, the first page of results will be returned. isArray: false name: page_token required: false @@ -1057,8 +951,7 @@ script: name: google-drive-activity-list outputs: - contextPath: GoogleDrive.PageToken.DriveActivity.nextPageToken - description: Token to retrieve the next page of results, or empty if there are - no more results in the list. + description: Token to retrieve the next page of results, or empty if there are no more results in the list. type: String - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.create.new description: If true, the object was newly created. @@ -1139,12 +1032,10 @@ script: description: Indicates the Google Drive permissions role. type: String - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.permissionChange.addedPermissions.allowDiscovery - description: If true, the item can be discovered (e.g., in the user's "Shared - with me" collection) without needing a link to the item. + description: If true, the item can be discovered (e.g., in the user's "Shared with me" collection) without needing a link to the item. type: Boolean - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.permissionChange.addedPermissions.user.knownUser.personName - description: The identifier for this user that can be used with the People API - to get more information. The format is "people/ACCOUNT_ID". + description: The identifier for this user that can be used with the People API to get more information. The format is "people/ACCOUNT_ID". type: String - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.permissionChange.addedPermissions.user.knownUser.isCurrentUser description: True if this is the user making the request. @@ -1174,12 +1065,10 @@ script: description: Indicates the Google Drive permissions role. type: String - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.permissionChange.removedPermissions.allowDiscovery - description: If true, the item can be discovered (e.g., in the user's "Shared - with me" collection) without needing a link to the item. + description: If true, the item can be discovered (e.g., in the user's "Shared with me" collection) without needing a link to the item. type: Boolean - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.permissionChange.removedPermissions.user.knownUser.personName - description: The identifier for this user that can be used with the People API - to get more information. The format is "people/ACCOUNT_ID". + description: The identifier for this user that can be used with the People API to get more information. The format is "people/ACCOUNT_ID". type: String - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.permissionChange.removedPermissions.user.knownUser.isCurrentUser description: True if this is the user making the request. @@ -1206,8 +1095,7 @@ script: description: If true, represents any user (including a logged out user). type: Boolean - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.comment.mentionedUsers.knownUser.personName - description: The identifier for this user that can be used with the People API - to get more information. The format is "people/ACCOUNT_ID". + description: The identifier for this user that can be used with the People API to get more information. The format is "people/ACCOUNT_ID". type: String - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.comment.mentionedUsers.knownUser.isCurrentUser description: True if this is the user making the request. @@ -1225,8 +1113,7 @@ script: description: The sub-type of assignment event. type: String - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.comment.assignment.assignedUser.knownUser.personName - description: The identifier for this user that can be used with the People API - to get more information. The format is "people/ACCOUNT_ID". + description: The identifier for this user that can be used with the People API to get more information. The format is "people/ACCOUNT_ID". type: String - contextPath: GoogleDrive.DriveActivity.primaryActionDetail.comment.assignment.assignedUser.knownUser.isCurrentUser description: True if this is the user making the request. @@ -1253,8 +1140,7 @@ script: description: The restriction in place after the change. type: String - contextPath: GoogleDrive.DriveActivity.actors.user.knownUser.personName - description: The identifier for this user that can be used with the People API - to get more information. The format is "people/ACCOUNT_ID". + description: The identifier for this user that can be used with the People API to get more information. The format is "people/ACCOUNT_ID". type: String - contextPath: GoogleDrive.DriveActivity.actors.user.knownUser.isCurrentUser description: True if this is the user making the request. @@ -1269,8 +1155,7 @@ script: description: If true, the user is an anonymous user. type: Boolean - contextPath: GoogleDrive.DriveActivity.actors.impersonation.impersonatedUser.knownUser.personName - description: The identifier for this user that can be used with the People API - to get more information. The format is "people/ACCOUNT_ID". + description: The identifier for this user that can be used with the People API to get more information. The format is "people/ACCOUNT_ID". type: String - contextPath: GoogleDrive.DriveActivity.actors.impersonation.impersonatedUser.knownUser.isCurrentUser description: True if this is the user making the request. @@ -1366,12 +1251,10 @@ script: description: Indicates the Google Drive permissions role. type: String - contextPath: GoogleDrive.DriveActivity.actions.detail.permissionChange.addedPermissions.allowDiscovery - description: If true, the item can be discovered (e.g., in the user's "Shared - with me" collection) without needing a link to the item. + description: If true, the item can be discovered (e.g., in the user's "Shared with me" collection) without needing a link to the item. type: Boolean - contextPath: GoogleDrive.DriveActivity.actions.detail.permissionChange.addedPermissions.user.knownUser.personName - description: The identifier for this user that can be used with the People API - to get more information. The format is "people/ACCOUNT_ID". + description: The identifier for this user that can be used with the People API to get more information. The format is "people/ACCOUNT_ID". type: String - contextPath: GoogleDrive.DriveActivity.actions.detail.permissionChange.addedPermissions.user.knownUser.isCurrentUser description: True if this is the user making the request. @@ -1401,12 +1284,10 @@ script: description: Indicates the Google Drive permissions role. type: String - contextPath: GoogleDrive.DriveActivity.actions.detail.permissionChange.removedPermissions.allowDiscovery - description: If true, the item can be discovered (e.g., in the user's "Shared - with me" collection) without needing a link to the item. + description: If true, the item can be discovered (e.g., in the user's "Shared with me" collection) without needing a link to the item. type: Boolean - contextPath: GoogleDrive.DriveActivity.actions.detail.permissionChange.removedPermissions.user.knownUser.personName - description: The identifier for this user that can be used with the People API - to get more information. The format is "people/ACCOUNT_ID". + description: The identifier for this user that can be used with the People API to get more information. The format is "people/ACCOUNT_ID". type: String - contextPath: GoogleDrive.DriveActivity.actions.detail.permissionChange.removedPermissions.user.knownUser.isCurrentUser description: True if this is the user making the request. @@ -1433,8 +1314,7 @@ script: description: If true, represents any user (including a logged out user). type: Boolean - contextPath: GoogleDrive.DriveActivity.actions.detail.comment.mentionedUsers.knownUser.personName - description: The identifier for this user that can be used with the People API - to get more information. The format is "people/ACCOUNT_ID". + description: The identifier for this user that can be used with the People API to get more information. The format is "people/ACCOUNT_ID". type: String - contextPath: GoogleDrive.DriveActivity.actions.detail.comment.mentionedUsers.knownUser.isCurrentUser description: True if this is the user making the request. @@ -1452,8 +1332,7 @@ script: description: The sub-type of assignment event. type: String - contextPath: GoogleDrive.DriveActivity.actions.detail.comment.assignment.assignedUser.knownUser.personName - description: The identifier for this user that can be used with the People API - to get more information. The format is "people/ACCOUNT_ID". + description: The identifier for this user that can be used with the People API to get more information. The format is "people/ACCOUNT_ID". type: String - contextPath: GoogleDrive.DriveActivity.actions.detail.comment.assignment.assignedUser.knownUser.isCurrentUser description: True if this is the user making the request. @@ -1480,8 +1359,7 @@ script: description: The restriction in place after the change. type: String - contextPath: GoogleDrive.DriveActivity.actions.actor.user.knownUser.personName - description: The identifier for this user that can be used with the People API - to get more information. The format is "people/ACCOUNT_ID". + description: The identifier for this user that can be used with the People API to get more information. The format is "people/ACCOUNT_ID". type: String - contextPath: GoogleDrive.DriveActivity.actions.actor.user.knownUser.isCurrentUser description: True if this is the user making the request. @@ -1496,8 +1374,7 @@ script: description: If true, the user is an anonymous user. type: Boolean - contextPath: GoogleDrive.DriveActivity.actions.actor.impersonation.impersonatedUser.knownUser.personName - description: The identifier for this user that can be used with the People API - to get more information. The format is "people/ACCOUNT_ID". + description: The identifier for this user that can be used with the People API to get more information. The format is "people/ACCOUNT_ID". type: String - contextPath: GoogleDrive.DriveActivity.actions.actor.impersonation.impersonatedUser.knownUser.isCurrentUser description: True if this is the user making the request. @@ -1530,8 +1407,7 @@ script: description: An opaque string used to identify this domain. type: String - contextPath: GoogleDrive.DriveActivity.actions.target.driveItem.owner.user.knownUser.personName - description: The identifier for this user that can be used with the People API - to get more information. The format is "people/ACCOUNT_ID". + description: The identifier for this user that can be used with the People API to get more information. The format is "people/ACCOUNT_ID". type: String - contextPath: GoogleDrive.DriveActivity.actions.target.driveItem.owner.user.knownUser.isCurrentUser description: True if this is the user making the request. @@ -1576,8 +1452,7 @@ script: description: An opaque string used to identify this domain. type: String - contextPath: GoogleDrive.DriveActivity.actions.target.drive.root.owner.user.knownUser.personName - description: The identifier for this user that can be used with the People API - to get more information. The format is "people/ACCOUNT_ID". + description: The identifier for this user that can be used with the People API to get more information. The format is "people/ACCOUNT_ID". type: String - contextPath: GoogleDrive.DriveActivity.actions.target.drive.root.owner.user.knownUser.isCurrentUser description: True if this is the user making the request. @@ -1607,8 +1482,7 @@ script: description: The discussion thread to which the comment was added. type: String - contextPath: GoogleDrive.DriveActivity.actions.target.fileComment.linkToDiscussion - description: The link to the discussion thread containing this comment, for - example, "https://docs.google.com/DOCUMENT_ID/edit?disco=THREAD_ID". + description: The link to the discussion thread containing this comment, for example, "https://docs.google.com/DOCUMENT_ID/edit?disco=THREAD_ID". type: String - contextPath: GoogleDrive.DriveActivity.actions.target.fileComment.parent.name description: The target Drive item. The format is "items/ITEM_ID". @@ -1626,8 +1500,7 @@ script: description: An opaque string used to identify this domain. type: String - contextPath: GoogleDrive.DriveActivity.actions.target.fileComment.parent.owner.user.knownUser.personName - description: The identifier for this user that can be used with the People API - to get more information. The format is "people/ACCOUNT_ID". + description: The identifier for this user that can be used with the People API to get more information. The format is "people/ACCOUNT_ID". type: String - contextPath: GoogleDrive.DriveActivity.actions.target.fileComment.parent.owner.user.knownUser.isCurrentUser description: True if this is the user making the request. @@ -1675,8 +1548,7 @@ script: description: An opaque string used to identify this domain. type: String - contextPath: GoogleDrive.DriveActivity.targets.driveItem.owner.user.knownUser.personName - description: The identifier for this user that can be used with the People API - to get more information. The format is "people/ACCOUNT_ID". + description: The identifier for this user that can be used with the People API to get more information. The format is "people/ACCOUNT_ID". type: String - contextPath: GoogleDrive.DriveActivity.targets.driveItem.owner.user.knownUser.isCurrentUser description: True if this is the user making the request. @@ -1721,8 +1593,7 @@ script: description: An opaque string used to identify this domain. type: String - contextPath: GoogleDrive.DriveActivity.targets.drive.root.owner.user.knownUser.personName - description: The identifier for this user that can be used with the People API - to get more information. The format is "people/ACCOUNT_ID". + description: The identifier for this user that can be used with the People API to get more information. The format is "people/ACCOUNT_ID". type: String - contextPath: GoogleDrive.DriveActivity.targets.drive.root.owner.user.knownUser.isCurrentUser description: True if this is the user making the request. @@ -1752,8 +1623,7 @@ script: description: The discussion thread to which the comment was added. type: String - contextPath: GoogleDrive.DriveActivity.targets.fileComment.linkToDiscussion - description: The link to the discussion thread containing this comment, for - example, "https://docs.google.com/DOCUMENT_ID/edit?disco=THREAD_ID". + description: The link to the discussion thread containing this comment, for example, "https://docs.google.com/DOCUMENT_ID/edit?disco=THREAD_ID". type: String - contextPath: GoogleDrive.DriveActivity.targets.fileComment.parent.name description: The target Drive item. The format is "items/ITEM_ID". @@ -1771,8 +1641,7 @@ script: description: An opaque string used to identify this domain. type: String - contextPath: GoogleDrive.DriveActivity.targets.fileComment.parent.owner.user.knownUser.personName - description: The identifier for this user that can be used with the People API - to get more information. The format is "people/ACCOUNT_ID". + description: The identifier for this user that can be used with the People API to get more information. The format is "people/ACCOUNT_ID". type: String - contextPath: GoogleDrive.DriveActivity.targets.fileComment.parent.owner.user.knownUser.isCurrentUser description: True if this is the user making the request. @@ -1809,8 +1678,7 @@ script: deprecated: false arguments: - name: page_size - description: "Maximum number of shared drives to return. Acceptable values are\ - \ 1 to 100, inclusive." + description: "Maximum number of shared drives to return. Acceptable values are 1 to 100, inclusive." required: false isArray: false defaultValue: "100" @@ -1823,9 +1691,7 @@ script: required: false isArray: false - name: use_domain_admin_access - description: "Issue the request as a domain administrator. If set to true,\ - \ all shared drives of the domain in which the requester is an administrator\ - \ are returned." + description: "Issue the request as a domain administrator. If set to true, all shared drives of the domain in which the requester is an administrator are returned." required: false isArray: false defaultValue: "false" @@ -1835,8 +1701,7 @@ script: isArray: false outputs: - contextPath: GoogleDrive.Drive.Drive.id - description: The ID of this shared drive which is also the ID of the top level - folder of this shared drive. + description: The ID of this shared drive which is also the ID of the top level folder of this shared drive. type: String - contextPath: GoogleDrive.Drive.Drive.name description: The name of this shared drive. @@ -1845,24 +1710,19 @@ script: description: The color of this shared drive as an RGB hex string. type: String - contextPath: GoogleDrive.Drive.Drive.capabilities.canAddChildren - description: Whether the current user can add children to folders in this shared - drive. + description: Whether the current user can add children to folders in this shared drive. type: Boolean - contextPath: GoogleDrive.Drive.Drive.capabilities.canChangeCopyRequiresWriterPermissionRestriction - description: Whether the current user can change the 'copy requires writer permission' - restriction of this shared drive. + description: Whether the current user can change the 'copy requires writer permission' restriction of this shared drive. type: Boolean - contextPath: GoogleDrive.Drive.Drive.capabilities.canChangeDomainUsersOnlyRestriction - description: Whether the current user can change the 'domain users only' restriction - of this shared drive. + description: Whether the current user can change the 'domain users only' restriction of this shared drive. type: Boolean - contextPath: GoogleDrive.Drive.Drive.capabilities.canChangeDriveBackground - description: Whether the current user can change the background of this shared - drive. + description: Whether the current user can change the background of this shared drive. type: Boolean - contextPath: GoogleDrive.Drive.Drive.capabilities.canChangeDriveMembersOnlyRestriction - description: Whether the current user can change the 'drive members only' restriction - of this shared drive. + description: Whether the current user can change the 'drive members only' restriction of this shared drive. type: Boolean - contextPath: GoogleDrive.Drive.Drive.capabilities.canComment description: Whether the current user can comment on files in this shared drive. @@ -1871,8 +1731,7 @@ script: description: Whether the current user can copy files in this shared drive. type: Boolean - contextPath: GoogleDrive.Drive.Drive.capabilities.canDeleteChildren - description: Whether the current user can delete children from folders in this - shared drive. + description: Whether the current user can delete children from folders in this shared drive. type: Boolean - contextPath: GoogleDrive.Drive.Drive.capabilities.canDeleteDrive description: Whether the current user can delete this shared drive. @@ -1884,31 +1743,25 @@ script: description: Whether the current user can edit files in this shared drive type: Boolean - contextPath: GoogleDrive.Drive.Drive.capabilities.canListChildren - description: Whether the current user can list the children of folders in this - shared drive. + description: Whether the current user can list the children of folders in this shared drive. type: Boolean - contextPath: GoogleDrive.Drive.Drive.capabilities.canManageMembers - description: Whether the current user can add members to this shared drive or - remove them or change their role. + description: Whether the current user can add members to this shared drive or remove them or change their role. type: Boolean - contextPath: GoogleDrive.Drive.Drive.capabilities.canReadRevisions - description: Whether the current user can read the revisions resource of files - in this shared drive. + description: Whether the current user can read the revisions resource of files in this shared drive. type: Boolean - contextPath: GoogleDrive.Drive.Drive.capabilities.canRename - description: Whether the current user can rename files or folders in this shared - drive. + description: Whether the current user can rename files or folders in this shared drive. type: Boolean - contextPath: GoogleDrive.Drive.Drive.capabilities.canRenameDrive description: Whether the current user can rename this shared drive. type: Boolean - contextPath: GoogleDrive.Drive.Drive.capabilities.canShare - description: Whether the current user can share files or folders in this shared - drive. + description: Whether the current user can share files or folders in this shared drive. type: Boolean - contextPath: GoogleDrive.Drive.Drive.capabilities.canTrashChildren - description: Whether the current user can trash children from folders in this - shared drive. + description: Whether the current user can trash children from folders in this shared drive. type: Boolean - contextPath: GoogleDrive.Drive.Drive.createdTime description: The time at which the shared drive was created (RFC 3339 date-time). @@ -1917,33 +1770,23 @@ script: description: Whether the shared drive is hidden from the default view. type: Boolean - contextPath: GoogleDrive.Drive.Drive.restrictions.adminManagedRestrictions - description: Whether administrative privileges on this shared drive are required - to modify restrictions. + description: Whether administrative privileges on this shared drive are required to modify restrictions. type: Boolean - contextPath: GoogleDrive.Drive.Drive.restrictions.copyRequiresWriterPermission - description: Whether the options to copy, print, or download files inside this - shared drive, should be disabled for readers and commenters. When this restriction - is set to true, it will override the similarly named field to true for any - file inside this shared drive. + description: Whether the options to copy, print, or download files inside this shared drive, should be disabled for readers and commenters. When this restriction is set to true, it will override the similarly named field to true for any file inside this shared drive. type: Boolean - contextPath: GoogleDrive.Drive.Drive.restrictions.domainUsersOnly - description: Whether access to this shared drive and items inside this shared - drive is restricted to users of the domain to which this shared drive belongs. - This restriction may be overridden by other sharing policies controlled outside - of this shared drive. + description: Whether access to this shared drive and items inside this shared drive is restricted to users of the domain to which this shared drive belongs. This restriction may be overridden by other sharing policies controlled outside of this shared drive. type: Boolean - contextPath: GoogleDrive.Drive.Drive.restrictions.driveMembersOnly - description: Whether access to items inside this shared drive is restricted - to its members. + description: Whether access to items inside this shared drive is restricted to its members. type: Boolean - name: google-drive-drive-get description: Gets a user shared drives. deprecated: false arguments: - name: use_domain_admin_access - description: "Issue the request as a domain administrator. If set to true,\ - \ all shared drives of the domain in which the requester is an administrator\ - \ are returned." + description: "Issue the request as a domain administrator. If set to true, all shared drives of the domain in which the requester is an administrator are returned." required: false isArray: false defaultValue: "false" @@ -1952,8 +1795,7 @@ script: required: false isArray: false - name: drive_id - description: ID of the shared drive. Can be retrieved using the `google-drive-drives-list` - command. + description: ID of the shared drive. Can be retrieved using the `google-drive-drives-list` command. required: false isArray: false - name: fields @@ -1963,8 +1805,7 @@ script: defaultValue: kind, id, name, themeId, capabilities, createdTime, hidden, restrictions outputs: - contextPath: GoogleDrive.Drive.Drive.id - description: The ID of this shared drive which is also the ID of the top level - folder of this shared drive. + description: The ID of this shared drive which is also the ID of the top level folder of this shared drive. type: String - contextPath: GoogleDrive.Drive.Drive.name description: The name of this shared drive. @@ -1973,24 +1814,19 @@ script: description: The color of this shared drive as an RGB hex string. type: String - contextPath: GoogleDrive.Drive.Drive.capabilities.canAddChildren - description: Whether the current user can add children to folders in this shared - drive. + description: Whether the current user can add children to folders in this shared drive. type: Boolean - contextPath: GoogleDrive.Drive.Drive.capabilities.canChangeCopyRequiresWriterPermissionRestriction - description: Whether the current user can change the 'copy requires writer permission' - restriction of this shared drive. + description: Whether the current user can change the 'copy requires writer permission' restriction of this shared drive. type: Boolean - contextPath: GoogleDrive.Drive.Drive.capabilities.canChangeDomainUsersOnlyRestriction - description: Whether the current user can change the 'domain users only' restriction - of this shared drive. + description: Whether the current user can change the 'domain users only' restriction of this shared drive. type: Boolean - contextPath: GoogleDrive.Drive.Drive.capabilities.canChangeDriveBackground - description: Whether the current user can change the background of this shared - drive. + description: Whether the current user can change the background of this shared drive. type: Boolean - contextPath: GoogleDrive.Drive.Drive.capabilities.canChangeDriveMembersOnlyRestriction - description: Whether the current user can change the 'drive members only' restriction - of this shared drive. + description: Whether the current user can change the 'drive members only' restriction of this shared drive. type: Boolean - contextPath: GoogleDrive.Drive.Drive.capabilities.canComment description: Whether the current user can comment on files in this shared drive. @@ -1999,8 +1835,7 @@ script: description: Whether the current user can copy files in this shared drive. type: Boolean - contextPath: GoogleDrive.Drive.Drive.capabilities.canDeleteChildren - description: Whether the current user can delete children from folders in this - shared drive. + description: Whether the current user can delete children from folders in this shared drive. type: Boolean - contextPath: GoogleDrive.Drive.Drive.capabilities.canDeleteDrive description: Whether the current user can delete this shared drive. @@ -2012,31 +1847,25 @@ script: description: Whether the current user can edit files in this shared drive. type: Boolean - contextPath: GoogleDrive.Drive.Drive.capabilities.canListChildren - description: Whether the current user can list the children of folders in this - shared drive. + description: Whether the current user can list the children of folders in this shared drive. type: Boolean - contextPath: GoogleDrive.Drive.Drive.capabilities.canManageMembers - description: Whether the current user can add members to this shared drive or - remove them or change their role. + description: Whether the current user can add members to this shared drive or remove them or change their role. type: Boolean - contextPath: GoogleDrive.Drive.Drive.capabilities.canReadRevisions - description: Whether the current user can read the revisions resource of files - in this shared drive. + description: Whether the current user can read the revisions resource of files in this shared drive. type: Boolean - contextPath: GoogleDrive.Drive.Drive.capabilities.canRename - description: Whether the current user can rename files or folders in this shared - drive. + description: Whether the current user can rename files or folders in this shared drive. type: Boolean - contextPath: GoogleDrive.Drive.Drive.capabilities.canRenameDrive description: Whether the current user can rename this shared drive. type: Boolean - contextPath: GoogleDrive.Drive.Drive.capabilities.canShare - description: Whether the current user can share files or folders in this shared - drive. + description: Whether the current user can share files or folders in this shared drive. type: Boolean - contextPath: GoogleDrive.Drive.Drive.capabilities.canTrashChildren - description: Whether the current user can trash children from folders in this - shared drive. + description: Whether the current user can trash children from folders in this shared drive. type: Boolean - contextPath: GoogleDrive.Drive.Drive.createdTime description: The time at which the shared drive was created (RFC 3339 date-time). @@ -2045,32 +1874,23 @@ script: description: Whether the shared drive is hidden from the default view. type: Boolean - contextPath: GoogleDrive.Drive.Drive.restrictions.adminManagedRestrictions - description: Whether administrative privileges on this shared drive are required - to modify restrictions. + description: Whether administrative privileges on this shared drive are required to modify restrictions. type: Boolean - contextPath: GoogleDrive.Drive.Drive.restrictions.copyRequiresWriterPermission - description: Whether the options to copy, print, or download files inside this - shared drive, should be disabled for readers and commenters. When this restriction - is set to true, it will override the similarly named field to true for any - file inside this shared drive. + description: Whether the options to copy, print, or download files inside this shared drive, should be disabled for readers and commenters. When this restriction is set to true, it will override the similarly named field to true for any file inside this shared drive. type: Boolean - contextPath: GoogleDrive.Drive.Drive.restrictions.domainUsersOnly - description: Whether access to this shared drive and items inside this shared - drive is restricted to users of the domain to which this shared drive belongs. - This restriction may be overridden by other sharing policies controlled outside - of this shared drive. + description: Whether access to this shared drive and items inside this shared drive is restricted to users of the domain to which this shared drive belongs. This restriction may be overridden by other sharing policies controlled outside of this shared drive. type: Boolean - contextPath: GoogleDrive.Drive.Drive.restrictions.driveMembersOnly - description: Whether access to items inside this shared drive is restricted - to its members. + description: Whether access to items inside this shared drive is restricted to its members. type: Boolean - name: google-drive-files-list description: Lists the user's shared drives. deprecated: false arguments: - name: page_size - description: "Maximum number of shared drives to return. Acceptable values are\ - \ 1 to 100, inclusive." + description: "Maximum number of shared drives to return. Acceptable values are 1 to 100, inclusive." required: false isArray: false defaultValue: "100" @@ -2085,13 +1905,12 @@ script: - 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".' + 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" + - "true" + - "false" required: false secret: false - name: user_id @@ -2102,20 +1921,10 @@ script: description: The fields you want included in the response. required: false isArray: false - defaultValue: kind, id, name, mimeType, description, starred, trashed, explicitlyTrashed, - trashingUser, trashedTime, parents, properties, appProperties, spaces, version, - webContentLink, webViewLink, iconLink, hasThumbnail, thumbnailLink, thumbnailVersion, - viewedByMe, viewedByMeTime, createdTime, modifiedTime, modifiedByMeTime, modifiedByMe, - sharedWithMeTime, sharingUser, owners, teamDriveId, driveId, lastModifyingUser, - shared, ownedByMe, capabilities, viewersCanCopyContent, copyRequiresWriterPermission, - writersCanShare, permissions, permissionIds, hasAugmentedPermissions, folderColorRgb, - originalFilename, fullFileExtension, fileExtension, md5Checksum, size, quotaBytesUsed, - headRevisionId, contentHints, isAppAuthorized, exportLinks, shortcutDetails, - contentRestrictions, resourceKey, linkShareMetadata + defaultValue: kind, id, name, mimeType, description, starred, trashed, explicitlyTrashed, trashingUser, trashedTime, parents, properties, appProperties, spaces, version, webContentLink, webViewLink, iconLink, hasThumbnail, thumbnailLink, thumbnailVersion, viewedByMe, viewedByMeTime, createdTime, modifiedTime, modifiedByMeTime, modifiedByMe, sharedWithMeTime, sharingUser, owners, teamDriveId, driveId, lastModifyingUser, shared, ownedByMe, capabilities, viewersCanCopyContent, copyRequiresWriterPermission, writersCanShare, permissions, permissionIds, hasAugmentedPermissions, folderColorRgb, originalFilename, fullFileExtension, fileExtension, md5Checksum, size, quotaBytesUsed, headRevisionId, contentHints, isAppAuthorized, exportLinks, shortcutDetails, contentRestrictions, resourceKey, linkShareMetadata - auto: PREDEFINED default: false - description: Whether the requesting application supports both My Drives and - shared drives. + description: Whether the requesting application supports both My Drives and shared drives. isArray: false name: supports_all_drives defaultValue: "False" @@ -2142,8 +1951,7 @@ script: deprecated: false arguments: - name: file_id - description: ID of the requested file. Can be retrieved using the `google-drive-files-list` - command. + description: ID of the requested file. Can be retrieved using the `google-drive-files-list` command. required: false isArray: false - name: user_id @@ -2153,54 +1961,37 @@ script: - 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".' + 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" + - "true" + - "false" required: false secret: false - name: fields description: The fields you want included in the response. required: false isArray: false - defaultValue: kind, id, name, mimeType, description, starred, trashed, explicitlyTrashed, - trashingUser, trashedTime, parents, properties, appProperties, spaces, version, - webContentLink, webViewLink, iconLink, hasThumbnail, thumbnailLink, thumbnailVersion, - viewedByMe, viewedByMeTime, createdTime, modifiedTime, modifiedByMeTime, modifiedByMe, - sharedWithMeTime, sharingUser, owners, teamDriveId, driveId, lastModifyingUser, - shared, ownedByMe, capabilities, viewersCanCopyContent, copyRequiresWriterPermission, - writersCanShare, permissions, permissionIds, hasAugmentedPermissions, folderColorRgb, - originalFilename, fullFileExtension, fileExtension, md5Checksum, size, quotaBytesUsed, - headRevisionId, contentHints, isAppAuthorized, exportLinks, shortcutDetails, - contentRestrictions, resourceKey, linkShareMetadata + defaultValue: kind, id, name, mimeType, description, starred, trashed, explicitlyTrashed, trashingUser, trashedTime, parents, properties, appProperties, spaces, version, webContentLink, webViewLink, iconLink, hasThumbnail, thumbnailLink, thumbnailVersion, viewedByMe, viewedByMeTime, createdTime, modifiedTime, modifiedByMeTime, modifiedByMe, sharedWithMeTime, sharingUser, owners, teamDriveId, driveId, lastModifyingUser, shared, ownedByMe, capabilities, viewersCanCopyContent, copyRequiresWriterPermission, writersCanShare, permissions, permissionIds, hasAugmentedPermissions, folderColorRgb, originalFilename, fullFileExtension, fileExtension, md5Checksum, size, quotaBytesUsed, headRevisionId, contentHints, isAppAuthorized, exportLinks, shortcutDetails, contentRestrictions, resourceKey, linkShareMetadata outputs: - contextPath: GoogleDrive.File.File.capabilities.canAddChildren - description: Whether the current user can add children to this folder. This - is always false when the item is not a folder. + description: Whether the current user can add children to this folder. This is always false when the item is not a folder. type: Boolean - contextPath: GoogleDrive.File.File.capabilities.canAddMyDriveParent - description: Whether the current user can add a parent for the item without - removing an existing parent in the same request. Not populated for shared - drive files. + description: Whether the current user can add a parent for the item without removing an existing parent in the same request. Not populated for shared drive files. type: Boolean - contextPath: GoogleDrive.File.File.capabilities.canChangeCopyRequiresWriterPermission - description: Whether the current user can change the 'copy requires writer permission' - restriction of this file. + description: Whether the current user can change the 'copy requires writer permission' restriction of this file. type: Boolean - contextPath: GoogleDrive.File.File.capabilities.canChangeSecurityUpdateEnabled - description: Whether the current user can change the 'security update enabled' field - on link shared metadata. + description: Whether the current user can change the 'security update enabled' field on link shared metadata. type: Boolean - contextPath: GoogleDrive.File.File.capabilities.canComment description: Whether the current user can comment on this file. type: Boolean - contextPath: GoogleDrive.File.File.capabilities.canCopy - description: Whether the current user can copy this file. For an item in a shared - drive, whether the current user can copy non-folder descendants of this item, - or this item itself if it is not a folder. + description: Whether the current user can copy this file. For an item in a shared drive, whether the current user can copy non-folder descendants of this item, or this item itself if it is not a folder. type: Boolean - contextPath: GoogleDrive.File.File.capabilities.canDelete description: Whether the current user can delete this file. @@ -2212,43 +2003,34 @@ script: description: Whether the current user can edit this file. type: Boolean - contextPath: GoogleDrive.File.File.capabilities.canListChildren - description: Whether the current user can list the children of this folder. - This is always false when the item is not a folder. + description: Whether the current user can list the children of this folder. This is always false when the item is not a folder. type: Boolean - contextPath: GoogleDrive.File.File.capabilities.canModifyContent description: Whether the current user can modify the content of this file. type: Boolean - contextPath: GoogleDrive.File.File.capabilities.canMoveChildrenWithinDrive - description: Whether the current user can move children of this folder within - this drive. This is false when the item is not a folder. + description: Whether the current user can move children of this folder within this drive. This is false when the item is not a folder. type: Boolean - contextPath: GoogleDrive.File.File.capabilities.canMoveItemOutOfDrive - description: Whether the current user can move this item outside of this drive - by changing its parent. + description: Whether the current user can move this item outside of this drive by changing its parent. type: Boolean - contextPath: GoogleDrive.File.File.capabilities.canMoveItemWithinDrive description: Whether the current user can move this item within this drive. type: Boolean - contextPath: GoogleDrive.File.File.capabilities.canReadRevisions - description: Whether the current user can read the revisions resource of this - file. For a shared drive item, whether revisions of non-folder descendants - of this item, or this item itself if it is not a folder, can be read. + description: Whether the current user can read the revisions resource of this file. For a shared drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read. type: Boolean - contextPath: GoogleDrive.File.File.capabilities.canRemoveChildren - description: Whether the current user can remove children from this folder. - This is always false when the item is not a folder. + description: Whether the current user can remove children from this folder. This is always false when the item is not a folder. type: Boolean - contextPath: GoogleDrive.File.File.capabilities.canRemoveMyDriveParent - description: Whether the current user can remove a parent from the item without - adding another parent in the same request. Not populated for shared drive - files. + description: Whether the current user can remove a parent from the item without adding another parent in the same request. Not populated for shared drive files. type: Boolean - contextPath: GoogleDrive.File.File.capabilities.canRename description: Whether the current user can rename this file. type: Boolean - contextPath: GoogleDrive.File.File.capabilities.canShare - description: Whether the current user can modify the sharing settings for this - file. + description: Whether the current user can modify the sharing settings for this file. type: Boolean - contextPath: GoogleDrive.File.File.capabilities.canTrash description: Whether the current user can move this file to trash. @@ -2257,23 +2039,19 @@ script: description: Whether the current user can restore this file from trash. type: Boolean - contextPath: GoogleDrive.File.File.copyRequiresWriterPermission - description: Whether the options to copy, print, or download this file, should - be disabled for readers and commenters. + description: Whether the options to copy, print, or download this file, should be disabled for readers and commenters. type: Boolean - contextPath: GoogleDrive.File.File.createdTime description: The time at which the file was created (RFC 3339 date-time). type: Date - contextPath: GoogleDrive.File.File.explicitlyTrashed - description: Whether the file has been explicitly trashed, as opposed to recursively - trashed from a parent folder. + description: Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent folder. type: Boolean - contextPath: GoogleDrive.File.File.exportLinks description: Links for exporting Docs Editors files to specific formats. type: String - contextPath: GoogleDrive.File.File.hasThumbnail - description: Whether this file has a thumbnail. This does not indicate whether - the requesting app has access to the thumbnail. To check access, look for - the presence of the thumbnailLink field. + description: Whether this file has a thumbnail. This does not indicate whether the requesting app has access to the thumbnail. To check access, look for the presence of the thumbnailLink field. type: Boolean - contextPath: GoogleDrive.File.File.iconLink description: A static, unauthenticated link to the file's icon. @@ -2288,8 +2066,7 @@ script: description: A plain text displayable name for this user. type: String - contextPath: GoogleDrive.File.File.lastModifyingUser.emailAddress - description: The email address of the user. This may not be present in certain - contexts if the user has not made their email address visible to the requester. + description: The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester. type: String - contextPath: GoogleDrive.File.File.lastModifyingUser.me description: Whether this user is the requesting user. @@ -2319,20 +2096,16 @@ script: description: The last time the file was modified by anyone (RFC 3339 date-time). type: Date - contextPath: GoogleDrive.File.File.name - description: The name of the file. This is not necessarily unique within a folder. - Note that for immutable items such as the top level folders of shared drives, - My Drive root folder, and Application Data folder the name is constant. + description: The name of the file. This is not necessarily unique within a folder. Note that for immutable items such as the top level folders of shared drives, My Drive root folder, and Application Data folder the name is constant. type: String - contextPath: GoogleDrive.File.File.ownedByMe - description: Whether the user owns the file. Not populated for items in shared - drives. + description: Whether the user owns the file. Not populated for items in shared drives. type: Boolean - contextPath: GoogleDrive.File.File.owners.displayName description: A plain text displayable name for this user. type: String - contextPath: GoogleDrive.File.File.owners.emailAddress - description: The email address of the user. This may not be present in certain - contexts if the user has not made their email address visible to the requester. + description: The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester. type: String - contextPath: GoogleDrive.File.File.owners.me description: Whether this user is the requesting user. @@ -2371,35 +2144,28 @@ script: description: A link to the user's profile photo, if available. type: String - contextPath: GoogleDrive.File.File.quotaBytesUsed - description: The number of storage quota bytes used by the file. This includes - the head revision as well as previous revisions with keepForever enabled. + description: The number of storage quota bytes used by the file. This includes the head revision as well as previous revisions with keepForever enabled. type: String - contextPath: GoogleDrive.File.File.shared - description: Whether the file has been shared. Not populated for items in shared - drives. + description: Whether the file has been shared. Not populated for items in shared drives. type: Boolean - contextPath: GoogleDrive.File.File.spaces - description: The list of spaces which contain the file. The currently supported - values are 'drive', 'appDataFolder', and 'photos'. + description: The list of spaces which contain the file. The currently supported values are 'drive', 'appDataFolder', and 'photos'. type: String - contextPath: GoogleDrive.File.File.starred description: Whether the user has starred the file. type: Boolean - contextPath: GoogleDrive.File.File.thumbnailLink - description: A short-lived link to the file's thumbnail, if available. Typically - lasts on the order of hours. + description: A short-lived link to the file's thumbnail, if available. Typically lasts on the order of hours. type: String - contextPath: GoogleDrive.File.File.thumbnailVersion description: The thumbnail version for use in thumbnail cache invalidation. type: String - contextPath: GoogleDrive.File.File.trashed - description: Whether the file has been trashed, either explicitly or from a - trashed parent folder. + description: Whether the file has been trashed, either explicitly or from a trashed parent folder. type: Boolean - contextPath: GoogleDrive.File.File.version - description: A monotonically increasing version number for the file. This reflects - every change made to the file on the server, even those not visible to the - user. + description: A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the user. type: String - contextPath: GoogleDrive.File.File.viewedByMe description: Whether the file has been viewed by this user. @@ -2408,12 +2174,10 @@ script: description: The last time the file was viewed by the user (RFC 3339 date-time). type: Date - contextPath: GoogleDrive.File.File.webViewLink - description: A link for opening the file in a relevant Google editor or viewer - in a browser. + description: A link for opening the file in a relevant Google editor or viewer in a browser. type: String - contextPath: GoogleDrive.File.File.writersCanShare - description: Whether users with only writer permission can modify the file's - permissions. Not populated for items in shared drives. + description: Whether users with only writer permission can modify the file's permissions. Not populated for items in shared drives. type: Boolean - name: google-drive-file-upload description: Creates a new file. @@ -2428,9 +2192,7 @@ script: required: false isArray: false - name: parent - description: The ID of the parent folder which contains the file. If not specified - as part of a create request, the file will be placed directly in the user's - My Drive folder. + description: The ID of the parent folder which contains the file. If not specified as part of a create request, the file will be placed directly in the user's My Drive folder. required: false isArray: false outputs: @@ -2438,9 +2200,7 @@ script: description: The ID of the file. type: String - contextPath: GoogleDrive.File.File.name - description: The name of the file. This is not necessarily unique within a folder. - Note that for immutable items such as the top level folders of shared drives, - My Drive root folder, and Application Data folder, the name is constant. + description: The name of the file. This is not necessarily unique within a folder. Note that for immutable items such as the top level folders of shared drives, My Drive root folder, and Application Data folder, the name is constant. type: String - contextPath: GoogleDrive.File.File.mimeType description: The MIME type of the file. @@ -2449,40 +2209,31 @@ script: description: Whether the user has starred the file. type: Boolean - contextPath: GoogleDrive.File.File.trashed - description: Whether the file has been trashed, either explicitly or from a - trashed parent folder. + description: Whether the file has been trashed, either explicitly or from a trashed parent folder. type: Boolean - contextPath: GoogleDrive.File.File.explicitlyTrashed - description: Whether the file has been explicitly trashed, as opposed to recursively - trashed from a parent folder. + description: Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent folder. type: Boolean - contextPath: GoogleDrive.File.File.parents description: The IDs of the parent folders which contain the file. type: String - contextPath: GoogleDrive.File.File.spaces - description: The list of spaces which contain the file. The currently supported - values are 'drive', 'appDataFolder', and 'photos'. + description: The list of spaces which contain the file. The currently supported values are 'drive', 'appDataFolder', and 'photos'. type: String - contextPath: GoogleDrive.File.File.version - description: A monotonically increasing version number for the file. This reflects - every change made to the file on the server, even those not visible to the - user. + description: A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the user. type: String - contextPath: GoogleDrive.File.File.webContentLink - description: A link for downloading the content of the file in a browser. This - is only available for files with binary content in Google Drive. + description: A link for downloading the content of the file in a browser. This is only available for files with binary content in Google Drive. type: String - contextPath: GoogleDrive.File.File.webViewLink - description: A link for opening the file in a relevant Google editor or viewer - in a browser. + description: A link for opening the file in a relevant Google editor or viewer in a browser. type: String - contextPath: GoogleDrive.File.File.iconLink description: A static, unauthenticated link to the file's icon. type: String - contextPath: GoogleDrive.File.File.hasThumbnail - description: Whether this file has a thumbnail. This does not indicate whether - the requesting app has access to the thumbnail. To check access, look for - the presence of the thumbnailLink field. + description: Whether this file has a thumbnail. This does not indicate whether the requesting app has access to the thumbnail. To check access, look for the presence of the thumbnailLink field. type: Boolean - contextPath: GoogleDrive.File.File.thumbnailVersion description: The thumbnail version for use in thumbnail cache invalidation. @@ -2500,23 +2251,19 @@ script: description: The last time the file was modified by anyone (RFC 3339 date-time). type: Date - contextPath: GoogleDrive.File.File.thumbnailLink - description: A short-lived link to the file's thumbnail, if available. Typically - lasts on the order of hours. + description: A short-lived link to the file's thumbnail, if available. Typically lasts on the order of hours. type: String - contextPath: GoogleDrive.File.File.exportLinks description: Links for exporting Docs Editors files to specific formats. type: String - contextPath: GoogleDrive.File.File.quotaBytesUsed - description: The number of storage quota bytes used by the file. This includes - the head revision as well as previous revisions with keepForever enabled. + description: The number of storage quota bytes used by the file. This includes the head revision as well as previous revisions with keepForever enabled. type: String - contextPath: GoogleDrive.File.File.shared - description: Whether the file has been shared. Not populated for items in shared - drives. + description: Whether the file has been shared. Not populated for items in shared drives. type: Boolean - contextPath: GoogleDrive.File.File.writersCanShare - description: Whether users with only writer permission can modify the file's - permissions. Not populated for items in shared drives. + description: Whether users with only writer permission can modify the file's permissions. Not populated for items in shared drives. type: Boolean - contextPath: GoogleDrive.File.File.modifiedByMe description: Whether the file has been modified by this user. @@ -2525,36 +2272,28 @@ script: description: The last time the file was modified by the user (RFC 3339 date-time). type: Date - contextPath: GoogleDrive.File.File.ownedByMe - description: Whether the user owns the file. Not populated for items in shared - drives. + description: Whether the user owns the file. Not populated for items in shared drives. type: Boolean - contextPath: GoogleDrive.File.File.isAppAuthorized description: Whether the file was created or opened by the requesting app. type: Boolean - contextPath: GoogleDrive.File.File.capabilities.canAddChildren - description: Whether the current user can add children to this folder. This - is always false when the item is not a folder. + description: Whether the current user can add children to this folder. This is always false when the item is not a folder. type: Boolean - contextPath: GoogleDrive.File.File.capabilities.canAddMyDriveParent - description: Whether the current user can add a parent for the item without - removing an existing parent in the same request. Not populated for shared - drive files. + description: Whether the current user can add a parent for the item without removing an existing parent in the same request. Not populated for shared drive files. type: Boolean - contextPath: GoogleDrive.File.File.capabilities.canChangeCopyRequiresWriterPermission - description: Whether the current user can change the 'copy requires writer permission' - restriction of this file. + description: Whether the current user can change the 'copy requires writer permission' restriction of this file. type: Boolean - contextPath: GoogleDrive.File.File.capabilities.canChangeSecurityUpdateEnabled - description: Whether the current user can change the 'security update enabled' field - on link shared metadata. + description: Whether the current user can change the 'security update enabled' field on link shared metadata. type: Boolean - contextPath: GoogleDrive.File.File.capabilities.canComment description: Whether the current user can comment on this file. type: Boolean - contextPath: GoogleDrive.File.File.capabilities.canCopy - description: Whether the current user can copy this file. For an item in a shared - drive, whether the current user can copy non-folder descendants of this item, - or this item itself if it is not a folder. + description: Whether the current user can copy this file. For an item in a shared drive, whether the current user can copy non-folder descendants of this item, or this item itself if it is not a folder. type: Boolean - contextPath: GoogleDrive.File.File.capabilities.canDelete description: Whether the current user can delete this file. @@ -2566,43 +2305,34 @@ script: description: Whether the current user can edit this file. type: Boolean - contextPath: GoogleDrive.File.File.capabilities.canListChildren - description: Whether the current user can list the children of this folder. - This is always false when the item is not a folder. + description: Whether the current user can list the children of this folder. This is always false when the item is not a folder. type: Boolean - contextPath: GoogleDrive.File.File.capabilities.canModifyContent description: Whether the current user can modify the content of this file. type: Boolean - contextPath: GoogleDrive.File.File.capabilities.canMoveChildrenWithinDrive - description: Whether the current user can move children of this folder within - this drive. This is false when the item is not a folder. + description: Whether the current user can move children of this folder within this drive. This is false when the item is not a folder. type: Boolean - contextPath: GoogleDrive.File.File.capabilities.canMoveItemOutOfDrive - description: Whether the current user can move this item outside of this drive - by changing its parent. + description: Whether the current user can move this item outside of this drive by changing its parent. type: Boolean - contextPath: GoogleDrive.File.File.capabilities.canMoveItemWithinDrive description: Whether the current user can move this item within this drive. type: Boolean - contextPath: GoogleDrive.File.File.capabilities.canReadRevisions - description: Whether the current user can read the revisions resource of this - file. For a shared drive item, whether revisions of non-folder descendants - of this item, or this item itself if it is not a folder, can be read. + description: Whether the current user can read the revisions resource of this file. For a shared drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read. type: Boolean - contextPath: GoogleDrive.File.File.capabilities.canRemoveChildren - description: Whether the current user can remove children from this folder. - This is always false when the item is not a folder. + description: Whether the current user can remove children from this folder. This is always false when the item is not a folder. type: Boolean - contextPath: GoogleDrive.File.File.capabilities.canRemoveMyDriveParent - description: Whether the current user can remove a parent from the item without - adding another parent in the same request. Not populated for shared drive - files. + description: Whether the current user can remove a parent from the item without adding another parent in the same request. Not populated for shared drive files. type: Boolean - contextPath: GoogleDrive.File.File.capabilities.canRename description: Whether the current user can rename this file. type: Boolean - contextPath: GoogleDrive.File.File.capabilities.canShare - description: Whether the current user can modify the sharing settings for this - file. + description: Whether the current user can modify the sharing settings for this file. type: Boolean - contextPath: GoogleDrive.File.File.capabilities.canTrash description: Whether the current user can move this file to trash. @@ -2611,15 +2341,13 @@ script: description: Whether the current user can restore this file from trash. type: Boolean - contextPath: GoogleDrive.File.File.copyRequiresWriterPermission - description: Whether the options to copy, print, or download this file, should - be disabled for readers and commenters. + description: Whether the options to copy, print, or download this file, should be disabled for readers and commenters. type: Boolean - contextPath: GoogleDrive.File.File.lastModifyingUser.displayName description: A plain text displayable name for this user. type: String - contextPath: GoogleDrive.File.File.lastModifyingUser.emailAddress - description: The email address of the user. This may not be present in certain - contexts if the user has not made their email address visible to the requester. + description: The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester. type: String - contextPath: GoogleDrive.File.File.lastModifyingUser.me description: Whether this user is the requesting user. @@ -2640,8 +2368,7 @@ script: description: A plain text displayable name for this user. type: String - contextPath: GoogleDrive.File.File.owners.emailAddress - description: The email address of the user. This may not be present in certain - contexts if the user has not made their email address visible to the requester. + description: The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester. type: String - contextPath: GoogleDrive.File.File.owners.me description: Whether this user is the requesting user. @@ -2681,8 +2408,7 @@ script: deprecated: false arguments: - name: file_id - description: ID of the requested file. Can be retrieved using the `google-drive-files-list` - command. + description: ID of the requested file. Can be retrieved using the `google-drive-files-list` command. required: false isArray: false - name: file_name @@ -2730,8 +2456,7 @@ script: deprecated: false arguments: - name: file_id - description: ID of the file to replace. Can be retrieved using the `google-drive-files-list` - command. + description: ID of the file to replace. Can be retrieved using the `google-drive-files-list` command. required: false isArray: false - name: entry_id @@ -2743,9 +2468,7 @@ script: description: The ID of the file. type: String - contextPath: GoogleDrive.File.File.name - description: The name of the file. This is not necessarily unique within a folder. - Note that for immutable items such as the top level folders of shared drives, - My Drive root folder, and Application Data folder, the name is constant. + description: The name of the file. This is not necessarily unique within a folder. Note that for immutable items such as the top level folders of shared drives, My Drive root folder, and Application Data folder, the name is constant. type: String - contextPath: GoogleDrive.File.File.mimeType description: The MIME type of the file. @@ -2754,40 +2477,31 @@ script: description: Whether the user has starred the file. type: Boolean - contextPath: GoogleDrive.File.File.trashed - description: Whether the file has been trashed, either explicitly or from a - trashed parent folder. + description: Whether the file has been trashed, either explicitly or from a trashed parent folder. type: Boolean - contextPath: GoogleDrive.File.File.explicitlyTrashed - description: Whether the file has been explicitly trashed, as opposed to recursively - trashed from a parent folder. + description: Whether the file has been explicitly trashed, as opposed to recursively trashed from a parent folder. type: Boolean - contextPath: GoogleDrive.File.File.parents description: The IDs of the parent folders which contain the file. type: String - contextPath: GoogleDrive.File.File.spaces - description: The list of spaces which contain the file. The currently supported - values are 'drive', 'appDataFolder', and 'photos'. + description: The list of spaces which contain the file. The currently supported values are 'drive', 'appDataFolder', and 'photos'. type: String - contextPath: GoogleDrive.File.File.version - description: A monotonically increasing version number for the file. This reflects - every change made to the file on the server, even those not visible to the - user. + description: A monotonically increasing version number for the file. This reflects every change made to the file on the server, even those not visible to the user. type: String - contextPath: GoogleDrive.File.File.webContentLink - description: A link for downloading the content of the file in a browser. This - is only available for files with binary content in Google Drive. + description: A link for downloading the content of the file in a browser. This is only available for files with binary content in Google Drive. type: String - contextPath: GoogleDrive.File.File.webViewLink - description: A link for opening the file in a relevant Google editor or viewer - in a browser. + description: A link for opening the file in a relevant Google editor or viewer in a browser. type: String - contextPath: GoogleDrive.File.File.iconLink description: A static, unauthenticated link to the file's icon. type: String - contextPath: GoogleDrive.File.File.hasThumbnail - description: Whether this file has a thumbnail. This does not indicate whether - the requesting app has access to the thumbnail. To check access, look for - the presence of the thumbnailLink field. + description: Whether this file has a thumbnail. This does not indicate whether the requesting app has access to the thumbnail. To check access, look for the presence of the thumbnailLink field. type: Boolean - contextPath: GoogleDrive.File.File.thumbnailVersion description: The thumbnail version for use in thumbnail cache invalidation. @@ -2805,23 +2519,19 @@ script: description: The last time the file was modified by anyone (RFC 3339 date-time). type: Date - contextPath: GoogleDrive.File.File.thumbnailLink - description: A short-lived link to the file's thumbnail, if available. Typically - lasts on the order of hours. + description: A short-lived link to the file's thumbnail, if available. Typically lasts on the order of hours. type: String - contextPath: GoogleDrive.File.File.exportLinks description: Links for exporting Docs Editors files to specific formats. type: String - contextPath: GoogleDrive.File.File.quotaBytesUsed - description: The number of storage quota bytes used by the file. This includes - the head revision as well as previous revisions with keepForever enabled. + description: The number of storage quota bytes used by the file. This includes the head revision as well as previous revisions with keepForever enabled. type: String - contextPath: GoogleDrive.File.File.shared - description: Whether the file has been shared. Not populated for items in shared - drives. + description: Whether the file has been shared. Not populated for items in shared drives. type: Boolean - contextPath: GoogleDrive.File.File.writersCanShare - description: Whether users with only writer permission can modify the file's - permissions. Not populated for items in shared drives. + description: Whether users with only writer permission can modify the file's permissions. Not populated for items in shared drives. type: Boolean - contextPath: GoogleDrive.File.File.modifiedByMe description: Whether the file has been modified by this user. @@ -2830,36 +2540,28 @@ script: description: The last time the file was modified by the user (RFC 3339 date-time). type: Date - contextPath: GoogleDrive.File.File.ownedByMe - description: Whether the user owns the file. Not populated for items in shared - drives. + description: Whether the user owns the file. Not populated for items in shared drives. type: Boolean - contextPath: GoogleDrive.File.File.isAppAuthorized description: Whether the file was created or opened by the requesting app. type: Boolean - contextPath: GoogleDrive.File.File.capabilities.canAddChildren - description: Whether the current user can add children to this folder. This - is always false when the item is not a folder. + description: Whether the current user can add children to this folder. This is always false when the item is not a folder. type: Boolean - contextPath: GoogleDrive.File.File.capabilities.canAddMyDriveParent - description: Whether the current user can add a parent for the item without - removing an existing parent in the same request. Not populated for shared - drive files. + description: Whether the current user can add a parent for the item without removing an existing parent in the same request. Not populated for shared drive files. type: Boolean - contextPath: GoogleDrive.File.File.capabilities.canChangeCopyRequiresWriterPermission - description: Whether the current user can change the 'copy requires writer permission' - restriction of this file. + description: Whether the current user can change the 'copy requires writer permission' restriction of this file. type: Boolean - contextPath: GoogleDrive.File.File.capabilities.canChangeSecurityUpdateEnabled - description: Whether the current user can change the 'security update enabled' field - on link shared metadata. + description: Whether the current user can change the 'security update enabled' field on link shared metadata. type: Boolean - contextPath: GoogleDrive.File.File.capabilities.canComment description: Whether the current user can comment on this file. type: Boolean - contextPath: GoogleDrive.File.File.capabilities.canCopy - description: Whether the current user can copy this file. For an item in a shared - drive, whether the current user can copy non-folder descendants of this item, - or this item itself if it is not a folder. + description: Whether the current user can copy this file. For an item in a shared drive, whether the current user can copy non-folder descendants of this item, or this item itself if it is not a folder. type: Boolean - contextPath: GoogleDrive.File.File.capabilities.canDelete description: Whether the current user can delete this file. @@ -2871,43 +2573,34 @@ script: description: Whether the current user can edit this file. type: Boolean - contextPath: GoogleDrive.File.File.capabilities.canListChildren - description: Whether the current user can list the children of this folder. - This is always false when the item is not a folder. + description: Whether the current user can list the children of this folder. This is always false when the item is not a folder. type: Boolean - contextPath: GoogleDrive.File.File.capabilities.canModifyContent description: Whether the current user can modify the content of this file. type: Boolean - contextPath: GoogleDrive.File.File.capabilities.canMoveChildrenWithinDrive - description: Whether the current user can move children of this folder within - this drive. This is false when the item is not a folder. + description: Whether the current user can move children of this folder within this drive. This is false when the item is not a folder. type: Boolean - contextPath: GoogleDrive.File.File.capabilities.canMoveItemOutOfDrive - description: Whether the current user can move this item outside of this drive - by changing its parent. + description: Whether the current user can move this item outside of this drive by changing its parent. type: Boolean - contextPath: GoogleDrive.File.File.capabilities.canMoveItemWithinDrive description: Whether the current user can move this item within this drive. type: Boolean - contextPath: GoogleDrive.File.File.capabilities.canReadRevisions - description: Whether the current user can read the revisions resource of this - file. For a shared drive item, whether revisions of non-folder descendants - of this item, or this item itself if it is not a folder, can be read. + description: Whether the current user can read the revisions resource of this file. For a shared drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read. type: Boolean - contextPath: GoogleDrive.File.File.capabilities.canRemoveChildren - description: Whether the current user can remove children from this folder. - This is always false when the item is not a folder. + description: Whether the current user can remove children from this folder. This is always false when the item is not a folder. type: Boolean - contextPath: GoogleDrive.File.File.capabilities.canRemoveMyDriveParent - description: Whether the current user can remove a parent from the item without - adding another parent in the same request. Not populated for shared drive - files. + description: Whether the current user can remove a parent from the item without adding another parent in the same request. Not populated for shared drive files. type: Boolean - contextPath: GoogleDrive.File.File.capabilities.canRename description: Whether the current user can rename this file. type: Boolean - contextPath: GoogleDrive.File.File.capabilities.canShare - description: Whether the current user can modify the sharing settings for this - file. + description: Whether the current user can modify the sharing settings for this file. type: Boolean - contextPath: GoogleDrive.File.File.capabilities.canTrash description: Whether the current user can move this file to trash. @@ -2916,15 +2609,13 @@ script: description: Whether the current user can restore this file from trash. type: Boolean - contextPath: GoogleDrive.File.File.copyRequiresWriterPermission - description: Whether the options to copy, print, or download this file, should - be disabled for readers and commenters. + description: Whether the options to copy, print, or download this file, should be disabled for readers and commenters. type: Boolean - contextPath: GoogleDrive.File.File.lastModifyingUser.displayName description: A plain text displayable name for this user. type: String - contextPath: GoogleDrive.File.File.lastModifyingUser.emailAddress - description: The email address of the user. This may not be present in certain - contexts if the user has not made their email address visible to the requester. + description: The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester. type: String - contextPath: GoogleDrive.File.File.lastModifyingUser.me description: Whether this user is the requesting user. @@ -2945,8 +2636,7 @@ script: description: A plain text displayable name for this user. type: String - contextPath: GoogleDrive.File.File.owners.emailAddress - description: The email address of the user. This may not be present in certain - contexts if the user has not made their email address visible to the requester. + description: The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester. type: String - contextPath: GoogleDrive.File.File.owners.me description: Whether this user is the requesting user. @@ -2982,15 +2672,11 @@ script: description: A link to the user's profile photo, if available. type: String - name: google-drive-file-delete - description: Permanently deletes a file owned by the user without moving it to - the trash. If the file belongs to a shared drive the user must be an organizer - on the parent. If the target is a folder, all descendants owned by the user - are also deleted. + description: Permanently deletes a file owned by the user without moving it to the trash. If the file belongs to a shared drive the user must be an organizer on the parent. If the target is a folder, all descendants owned by the user are also deleted. deprecated: false arguments: - name: file_id - description: ID of the requested file. Can be retrieved using the `google-drive-files-list` - command. + description: ID of the requested file. Can be retrieved using the `google-drive-files-list` command. required: false isArray: false - name: user_id @@ -3000,8 +2686,7 @@ script: - auto: PREDEFINED default: false defaultValue: "false" - description: 'Whether the requesting application supports both My Drives and - shared drives. Possible values: "true" and "false".' + description: 'Whether the requesting application supports both My Drives and shared drives. Possible values: "true" and "false".' isArray: false name: supports_all_drives predefined: @@ -3018,8 +2703,7 @@ script: deprecated: false arguments: - name: file_id - description: ID of the requested file. Can be retrieved using the `google-drive-files-list` - command. + description: ID of the requested file. Can be retrieved using the `google-drive-files-list` command. required: false isArray: false - name: user_id @@ -3027,8 +2711,7 @@ script: required: false isArray: false - name: page_size - description: "Maximum number of shared drives to return. Acceptable values are\ - \ 1 to 100, inclusive." + description: "Maximum number of shared drives to return. Acceptable values are 1 to 100, inclusive." required: false isArray: false defaultValue: "100" @@ -3039,8 +2722,7 @@ script: - auto: PREDEFINED default: false defaultValue: "false" - description: 'Whether the requesting application supports both My Drives and - shared drives. Possible values: "true" and "false".' + description: 'Whether the requesting application supports both My Drives and shared drives. Possible values: "true" and "false".' isArray: false name: supports_all_drives predefined: @@ -3050,15 +2732,13 @@ script: secret: false outputs: - contextPath: GoogleDrive.FilePermission.FilePermission.deleted - description: Whether the account associated with this permission has been deleted. - This field only pertains to user and group permissions. + description: Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions. type: Boolean - contextPath: GoogleDrive.FilePermission.FilePermission.displayName description: The "pretty" name of the value of the permission. type: String - contextPath: GoogleDrive.FilePermission.FilePermission.emailAddress - description: The email address of the user or group to which this permission - refers. + description: The email address of the user or group to which this permission refers. type: String - contextPath: GoogleDrive.FilePermission.FilePermission.id description: The ID of this permission. @@ -3077,8 +2757,7 @@ script: deprecated: false arguments: - name: file_id - description: ID of the requested file. Can be retrieved using the `google-drive-files-list` - command. + description: ID of the requested file. Can be retrieved using the `google-drive-files-list` command. required: false isArray: false - name: user_id @@ -3114,10 +2793,7 @@ script: - auto: PREDEFINED default: false defaultValue: "anyone" - description: 'The type of the grantee. When creating a permission, if type is - user or group, you must provide an emailAddress for the user or group. When - type is domain, you must provide a domain. No extra information is required - for an anyone type. Possible values: "user", "group", "domain", and "anyone".' + description: 'The type of the grantee. When creating a permission, if type is user or group, you must provide an emailAddress for the user or group. When type is domain, you must provide a domain. No extra information is required for an anyone type. Possible values: "user", "group", "domain", and "anyone".' isArray: false name: type predefined: @@ -3132,21 +2808,18 @@ script: required: false isArray: false - name: email_address - description: The email address of the user or group to which this permission - refers. + description: The email address of the user or group to which this permission refers. required: false isArray: false outputs: - contextPath: GoogleDrive.FilePermission.FilePermission.deleted - description: Whether the account associated with this permission has been deleted. - This field only pertains to user and group permissions. + description: Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions. type: Boolean - contextPath: GoogleDrive.FilePermission.FilePermission.displayName description: The "pretty" name of the value of the permission. type: String - contextPath: GoogleDrive.FilePermission.FilePermission.emailAddress - description: The email address of the user or group to which this permission - refers. + description: The email address of the user or group to which this permission refers. type: String - contextPath: GoogleDrive.FilePermission.FilePermission.id description: The ID of this permission. @@ -3165,8 +2838,7 @@ script: deprecated: false arguments: - name: file_id - description: ID of the requested file. Can be retrieved using the `google-drive-files-list` - command. + description: ID of the requested file. Can be retrieved using the `google-drive-files-list` command. required: false isArray: false - name: user_id @@ -3178,8 +2850,7 @@ script: required: false isArray: false - name: permission_id - description: The ID of the permission. Can be retrieved using the `google-drive-file-permissions-list` - command. + description: The ID of the permission. Can be retrieved using the `google-drive-file-permissions-list` command. required: false isArray: false - auto: PREDEFINED @@ -3199,15 +2870,13 @@ script: secret: false outputs: - contextPath: GoogleDrive.FilePermission.FilePermission.deleted - description: Whether the account associated with this permission has been deleted. - This field only pertains to user and group permissions. + description: Whether the account associated with this permission has been deleted. This field only pertains to user and group permissions. type: Boolean - contextPath: GoogleDrive.FilePermission.FilePermission.displayName description: The "pretty" name of the value of the permission. type: String - contextPath: GoogleDrive.FilePermission.FilePermission.emailAddress - description: The email address of the user or group to which this permission - refers. + description: The email address of the user or group to which this permission refers. type: String - contextPath: GoogleDrive.FilePermission.FilePermission.id description: The ID of this permission. @@ -3226,8 +2895,7 @@ script: deprecated: false arguments: - name: file_id - description: ID of the requested file. Can be retrieved using the `google-drive-files-list` - command. + description: ID of the requested file. Can be retrieved using the `google-drive-files-list` command. required: false isArray: false - name: user_id @@ -3235,23 +2903,21 @@ script: required: false isArray: false - name: permission_id - description: The ID of the permission. Can be retrieved using the `google-drive-file-permissions-list` - command. + description: The ID of the permission. Can be retrieved using the `google-drive-file-permissions-list` command. required: false isArray: false - auto: PREDEFINED default: false defaultValue: "false" - description: 'Whether the requesting application supports both My Drives and - shared drives. Possible values: "true" and "false".' + description: 'Whether the requesting application supports both My Drives and shared drives. Possible values: "true" and "false".' isArray: false name: supports_all_drives predefined: - - "true" - - "false" + - "true" + - "false" required: false secret: false - dockerimage: demisto/googleapi-python3:1.0.0.57702 + dockerimage: demisto/googleapi-python3:1.0.0.59265 feed: false isfetch: true longRunning: false From 93925f9a492542dbdb351ad525aa6c685c42b6aa Mon Sep 17 00:00:00 2001 From: jlevypaloalto Date: Thu, 18 May 2023 11:50:30 +0300 Subject: [PATCH 09/33] updated docker image --- .../Integrations/Cylance_Protect_v2/Cylance_Protect_v2.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Packs/Cylance_Protect/Integrations/Cylance_Protect_v2/Cylance_Protect_v2.yml b/Packs/Cylance_Protect/Integrations/Cylance_Protect_v2/Cylance_Protect_v2.yml index 10b2e687d35a..6e97691b434b 100644 --- a/Packs/Cylance_Protect/Integrations/Cylance_Protect_v2/Cylance_Protect_v2.yml +++ b/Packs/Cylance_Protect/Integrations/Cylance_Protect_v2/Cylance_Protect_v2.yml @@ -965,7 +965,7 @@ script: - contextPath: InstaQuery.List description: The list of InstaQuery type: string - dockerimage: demisto/pyjwt3:1.0.0.58911 + dockerimage: demisto/pyjwt3:1.0.0.59487 isfetch: true runonce: false script: '' From 580451655ac4f6d2d34860881174a1c1b25c4f91 Mon Sep 17 00:00:00 2001 From: jlevypaloalto Date: Thu, 1 Jun 2023 13:12:30 +0300 Subject: [PATCH 10/33] updated secrets ignore --- .gitlab/ci/.gitlab-ci.yml | 2 +- .gitlab/ci/bucket-upload.yml | 20 +++++++++++------ .gitlab/ci/global.yml | 2 +- .gitlab/ci/on-push.yml | 32 ++++++++++++++++++--------- Packs/Cylance_Protect/.secrets-ignore | 3 ++- 5 files changed, 39 insertions(+), 20 deletions(-) diff --git a/.gitlab/ci/.gitlab-ci.yml b/.gitlab/ci/.gitlab-ci.yml index 840c65c7421e..fafe4e4e12b8 100644 --- a/.gitlab/ci/.gitlab-ci.yml +++ b/.gitlab/ci/.gitlab-ci.yml @@ -13,7 +13,7 @@ stages: - prepare-testing-bucket - run-instances - upload-to-marketplace - - are-jobs-realy-done + - are-jobs-really-done - fan-in # concentrate pipeline artifacts to single job before triggering child slack pipeline diff --git a/.gitlab/ci/bucket-upload.yml b/.gitlab/ci/bucket-upload.yml index be205d9d2cf9..b469d1a28a27 100644 --- a/.gitlab/ci/bucket-upload.yml +++ b/.gitlab/ci/bucket-upload.yml @@ -35,6 +35,8 @@ if [[ $TEST_UPLOAD == "false" ]]; then section_start "Upload content graph GraphML to GCP" --collapsed gsutil cp $ARTIFACTS_FOLDER/content_graph/$MARKETPLACE_VERSION.zip "gs://$GCS_MARKET_BUCKET_DEV/content_graph/$MARKETPLACE_VERSION.zip" + # copy the packs.json file to the bucket, used in contribution management + gsutil cp $ARTIFACTS_FOLDER/packs.json "gs://$GCS_MARKET_BUCKET_DEV/content_graph/"$MARKETPLACE_VERSION"_packs.json" section_end "Upload content graph GraphML to GCP" fi @@ -64,7 +66,7 @@ jobs-done-check-upload-flow: extends: - .jobs-done-check - .bucket-upload-rule - needs: ['run-unittests-and-lint-upload-flow', 'run-validations-upload-flow', 'mpv2-prepare-testing-bucket-upload-flow', 'upload-id-set-bucket', 'xpanse-prepare-testing-bucket-upload-flow', 'xsoar-prepare-testing-bucket-upload-flow', 'install-packs-in-server6_5', 'install-packs-in-server6_6', 'install-packs-in-server6_8', 'install-packs-in-server-master', 'install-packs-in-xsiam-ga', 'sync-buckets-between-projects', 'upload-packs-to-marketplace', 'upload-packs-to-marketplace-v2', 'upload-packs-to-xpanse-marketplace'] + needs: ['run-unittests-and-lint-upload-flow', 'run-validations-upload-flow', 'mpv2-prepare-testing-bucket-upload-flow', 'upload-id-set-bucket', 'xpanse-prepare-testing-bucket-upload-flow', 'xsoar-prepare-testing-bucket-upload-flow', 'install-packs-in-server6_6', 'install-packs-in-server6_8', 'install-packs-in-server6_9', 'install-packs-in-server6_10', 'install-packs-in-server-master', 'install-packs-in-xsiam-ga', 'sync-buckets-between-projects', 'upload-packs-to-marketplace', 'upload-packs-to-marketplace-v2', 'upload-packs-to-xpanse-marketplace'] tags: - gke @@ -154,11 +156,6 @@ xpanse-prepare-testing-bucket-upload-flow: - exit "$EXIT_CODE" -install-packs-in-server6_5: - extends: .install_packs_in_xsoar_server - variables: - INSTANCE_ROLE: "Server 6.5" - install-packs-in-server6_6: extends: .install_packs_in_xsoar_server variables: @@ -169,6 +166,15 @@ install-packs-in-server6_8: variables: INSTANCE_ROLE: "Server 6.8" +install-packs-in-server6_9: + extends: .install_packs_in_xsoar_server + variables: + INSTANCE_ROLE: "Server 6.9" + +install-packs-in-server6_10: + extends: .install_packs_in_xsoar_server + variables: + INSTANCE_ROLE: "Server 6.10" install-packs-in-server-master: extends: .install_packs_in_xsoar_server @@ -256,7 +262,7 @@ install-packs-in-xsiam-ga: upload-packs-to-marketplace: tags: - gke - needs: ["run-validations-upload-flow", "install-packs-in-server6_5", "install-packs-in-server6_6", "install-packs-in-server6_8", "run-unittests-and-lint-upload-flow"] + needs: ["run-validations-upload-flow", "install-packs-in-server6_6", "install-packs-in-server6_8", "install-packs-in-server6_9", "install-packs-in-server6_10", "run-unittests-and-lint-upload-flow"] stage: upload-to-marketplace artifacts: expire_in: 48 hrs diff --git a/.gitlab/ci/global.yml b/.gitlab/ci/global.yml index 0a716ea8ef5f..8f326322b765 100644 --- a/.gitlab/ci/global.yml +++ b/.gitlab/ci/global.yml @@ -362,6 +362,6 @@ - job-done .jobs-done-check: - stage: are-jobs-realy-done + stage: are-jobs-really-done script: - python3 Tests/scripts/check_jobs_done.py --job-done-files $PIPELINE_JOBS_FOLDER diff --git a/.gitlab/ci/on-push.yml b/.gitlab/ci/on-push.yml index ea330a45dcd9..3e510213d660 100644 --- a/.gitlab/ci/on-push.yml +++ b/.gitlab/ci/on-push.yml @@ -149,10 +149,10 @@ validate-content-conf: if [[ $MARKETPLACE_VERSION == "xsoar" ]]; then echo "Starting to create artifacts with zip for XSOAR." - python Tests/scripts/create_artifacts_graph/create_artifacts.py --marketplace "xsoar" --artifacts-output $ARTIFACTS_FOLDER/content_packs --dependencies-output $ARTIFACTS_FOLDER/packs_dependencies.json --bucket-upload "$BUCKET_UPLOAD" + python Tests/scripts/create_artifacts_graph/create_artifacts.py --marketplace "xsoar" --artifacts-output $ARTIFACTS_FOLDER/content_packs --dependencies-output $ARTIFACTS_FOLDER/packs_dependencies.json --packs-output $ARTIFACTS_FOLDER/packs.json --bucket-upload "$BUCKET_UPLOAD" else echo "Starting to create artifacts without zip." - python Tests/scripts/create_artifacts_graph/create_artifacts.py --marketplace "$MARKETPLACE_VERSION" --artifacts-output $ARTIFACTS_FOLDER/content_packs --dependencies-output $ARTIFACTS_FOLDER/packs_dependencies.json --no-zip --bucket-upload "$BUCKET_UPLOAD" + python Tests/scripts/create_artifacts_graph/create_artifacts.py --marketplace "$MARKETPLACE_VERSION" --artifacts-output $ARTIFACTS_FOLDER/content_packs --dependencies-output $ARTIFACTS_FOLDER/packs_dependencies.json --packs-output $ARTIFACTS_FOLDER/packs.json --no-zip --bucket-upload "$BUCKET_UPLOAD" fi - gcloud auth activate-service-account --key-file="$GCS_ARTIFACTS_KEY" @@ -288,32 +288,41 @@ xpanse-prepare-testing-bucket: - job-done - exit $EXIT_CODE -xsoar_server_6_5: +xsoar_server_6_6: extends: .test_content_on_xsoar_server_instances_base # No need to trigger in case of release branch or docker update branches (non-nightly packs) rules: - !reference [.filter-non-nightly-docker-updates-rule, rules] - if: '$CI_PIPELINE_SOURCE =~ /^(push|contrib)$/' variables: - INSTANCE_ROLE: "Server 6.5" + INSTANCE_ROLE: "Server 6.6" -xsoar_server_6_6: +xsoar_server_6_8: extends: .test_content_on_xsoar_server_instances_base # No need to trigger in case of release branch or docker update branches (non-nightly packs) rules: - !reference [.filter-non-nightly-docker-updates-rule, rules] - if: '$CI_PIPELINE_SOURCE =~ /^(push|contrib)$/' variables: - INSTANCE_ROLE: "Server 6.6" + INSTANCE_ROLE: "Server 6.8" -xsoar_server_6_8: +xsoar_server_6_9: extends: .test_content_on_xsoar_server_instances_base # No need to trigger in case of release branch or docker update branches (non-nightly packs) rules: - !reference [.filter-non-nightly-docker-updates-rule, rules] - if: '$CI_PIPELINE_SOURCE =~ /^(push|contrib)$/' variables: - INSTANCE_ROLE: "Server 6.8" + INSTANCE_ROLE: "Server 6.9" + +xsoar_server_6_10: + extends: .test_content_on_xsoar_server_instances_base + # No need to trigger in case of release branch or docker update branches (non-nightly packs) + rules: + - !reference [.filter-non-nightly-docker-updates-rule, rules] + - if: '$CI_PIPELINE_SOURCE =~ /^(push|contrib)$/' + variables: + INSTANCE_ROLE: "Server 6.10" xsoar_server_master: extends: @@ -367,12 +376,14 @@ jobs-done-check-on-push: optional: true - job: xsiam_server_ga optional: true - - job: xsoar_server_6_5 - optional: true - job: xsoar_server_6_6 optional: true - job: xsoar_server_6_8 optional: true + - job: xsoar_server_6_9 + optional: true + - job: xsoar_server_6_10 + optional: true - job: xsoar_server_master optional: true tags: @@ -544,6 +555,7 @@ xsoar_ng_server_ga: needs: - job: xsoar-prepare-testing-bucket optional: true + allow_failure: true test-upload-flow: diff --git a/Packs/Cylance_Protect/.secrets-ignore b/Packs/Cylance_Protect/.secrets-ignore index aa13dffd3323..d0a54b9a0ac6 100644 --- a/Packs/Cylance_Protect/.secrets-ignore +++ b/Packs/Cylance_Protect/.secrets-ignore @@ -1 +1,2 @@ -api_call(uri=URI_LISTS, \ No newline at end of file +api_call(uri=URI_LISTS, +displaypassword: \ No newline at end of file From 1219004d563d6cf8e92d89362b4fcc9acd643bd9 Mon Sep 17 00:00:00 2001 From: jlevypaloalto Date: Thu, 1 Jun 2023 13:16:25 +0300 Subject: [PATCH 11/33] updated secrets ignore again --- Packs/Cylance_Protect/.secrets-ignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Packs/Cylance_Protect/.secrets-ignore b/Packs/Cylance_Protect/.secrets-ignore index d0a54b9a0ac6..85e3558dc0f3 100644 --- a/Packs/Cylance_Protect/.secrets-ignore +++ b/Packs/Cylance_Protect/.secrets-ignore @@ -1,2 +1,3 @@ api_call(uri=URI_LISTS, -displaypassword: \ No newline at end of file + displaypassword: Application Secret + displaypassword: Tenant API Key \ No newline at end of file From 500dc75496bb9c7e6f8ccc9fc74deb3358e7cdf0 Mon Sep 17 00:00:00 2001 From: jlevypaloalto Date: Thu, 1 Jun 2023 15:32:58 +0300 Subject: [PATCH 12/33] updated docker --- .../Integrations/Cylance_Protect_v2/Cylance_Protect_v2.yml | 2 +- Packs/Cylance_Protect/ReleaseNotes/1_2_0.md | 2 +- Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Packs/Cylance_Protect/Integrations/Cylance_Protect_v2/Cylance_Protect_v2.yml b/Packs/Cylance_Protect/Integrations/Cylance_Protect_v2/Cylance_Protect_v2.yml index 6e97691b434b..62419b4f80fe 100644 --- a/Packs/Cylance_Protect/Integrations/Cylance_Protect_v2/Cylance_Protect_v2.yml +++ b/Packs/Cylance_Protect/Integrations/Cylance_Protect_v2/Cylance_Protect_v2.yml @@ -965,7 +965,7 @@ script: - contextPath: InstaQuery.List description: The list of InstaQuery type: string - dockerimage: demisto/pyjwt3:1.0.0.59487 + dockerimage: demisto/pyjwt3:1.0.0.62273 isfetch: true runonce: false script: '' diff --git a/Packs/Cylance_Protect/ReleaseNotes/1_2_0.md b/Packs/Cylance_Protect/ReleaseNotes/1_2_0.md index 3acf083379bb..30707c7825a2 100644 --- a/Packs/Cylance_Protect/ReleaseNotes/1_2_0.md +++ b/Packs/Cylance_Protect/ReleaseNotes/1_2_0.md @@ -2,9 +2,9 @@ #### Integrations ##### Cylance Protect v2 +- Updated the Docker image to: *demisto/pyjwt3:1.0.0.59487*. - Added the following integration parameters to support credentials fetching object: - *Application ID* - *Application Secret* - *Tenant API Key* -- Updated the Docker image to: *demisto/pyjwt3:1.0.0.58911*. \ No newline at end of file diff --git a/Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.yml b/Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.yml index 708436067ed5..8c01c77cda52 100644 --- a/Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.yml +++ b/Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.yml @@ -2917,7 +2917,7 @@ script: - "false" required: false secret: false - dockerimage: demisto/googleapi-python3:1.0.0.59265 + dockerimage: demisto/googleapi-python3:1.0.0.62140 feed: false isfetch: true longRunning: false From 04f45de6561768802155db50d2c22b587d79769d Mon Sep 17 00:00:00 2001 From: jlevypaloalto Date: Thu, 1 Jun 2023 16:21:17 +0300 Subject: [PATCH 13/33] Revert "updated secrets ignore" This reverts commit 580451655ac4f6d2d34860881174a1c1b25c4f91. --- .gitlab/ci/.gitlab-ci.yml | 2 +- .gitlab/ci/bucket-upload.yml | 20 ++++++----------- .gitlab/ci/global.yml | 2 +- .gitlab/ci/on-push.yml | 32 +++++++++------------------ Packs/Cylance_Protect/.secrets-ignore | 2 +- 5 files changed, 20 insertions(+), 38 deletions(-) diff --git a/.gitlab/ci/.gitlab-ci.yml b/.gitlab/ci/.gitlab-ci.yml index fafe4e4e12b8..840c65c7421e 100644 --- a/.gitlab/ci/.gitlab-ci.yml +++ b/.gitlab/ci/.gitlab-ci.yml @@ -13,7 +13,7 @@ stages: - prepare-testing-bucket - run-instances - upload-to-marketplace - - are-jobs-really-done + - are-jobs-realy-done - fan-in # concentrate pipeline artifacts to single job before triggering child slack pipeline diff --git a/.gitlab/ci/bucket-upload.yml b/.gitlab/ci/bucket-upload.yml index b469d1a28a27..be205d9d2cf9 100644 --- a/.gitlab/ci/bucket-upload.yml +++ b/.gitlab/ci/bucket-upload.yml @@ -35,8 +35,6 @@ if [[ $TEST_UPLOAD == "false" ]]; then section_start "Upload content graph GraphML to GCP" --collapsed gsutil cp $ARTIFACTS_FOLDER/content_graph/$MARKETPLACE_VERSION.zip "gs://$GCS_MARKET_BUCKET_DEV/content_graph/$MARKETPLACE_VERSION.zip" - # copy the packs.json file to the bucket, used in contribution management - gsutil cp $ARTIFACTS_FOLDER/packs.json "gs://$GCS_MARKET_BUCKET_DEV/content_graph/"$MARKETPLACE_VERSION"_packs.json" section_end "Upload content graph GraphML to GCP" fi @@ -66,7 +64,7 @@ jobs-done-check-upload-flow: extends: - .jobs-done-check - .bucket-upload-rule - needs: ['run-unittests-and-lint-upload-flow', 'run-validations-upload-flow', 'mpv2-prepare-testing-bucket-upload-flow', 'upload-id-set-bucket', 'xpanse-prepare-testing-bucket-upload-flow', 'xsoar-prepare-testing-bucket-upload-flow', 'install-packs-in-server6_6', 'install-packs-in-server6_8', 'install-packs-in-server6_9', 'install-packs-in-server6_10', 'install-packs-in-server-master', 'install-packs-in-xsiam-ga', 'sync-buckets-between-projects', 'upload-packs-to-marketplace', 'upload-packs-to-marketplace-v2', 'upload-packs-to-xpanse-marketplace'] + needs: ['run-unittests-and-lint-upload-flow', 'run-validations-upload-flow', 'mpv2-prepare-testing-bucket-upload-flow', 'upload-id-set-bucket', 'xpanse-prepare-testing-bucket-upload-flow', 'xsoar-prepare-testing-bucket-upload-flow', 'install-packs-in-server6_5', 'install-packs-in-server6_6', 'install-packs-in-server6_8', 'install-packs-in-server-master', 'install-packs-in-xsiam-ga', 'sync-buckets-between-projects', 'upload-packs-to-marketplace', 'upload-packs-to-marketplace-v2', 'upload-packs-to-xpanse-marketplace'] tags: - gke @@ -156,6 +154,11 @@ xpanse-prepare-testing-bucket-upload-flow: - exit "$EXIT_CODE" +install-packs-in-server6_5: + extends: .install_packs_in_xsoar_server + variables: + INSTANCE_ROLE: "Server 6.5" + install-packs-in-server6_6: extends: .install_packs_in_xsoar_server variables: @@ -166,15 +169,6 @@ install-packs-in-server6_8: variables: INSTANCE_ROLE: "Server 6.8" -install-packs-in-server6_9: - extends: .install_packs_in_xsoar_server - variables: - INSTANCE_ROLE: "Server 6.9" - -install-packs-in-server6_10: - extends: .install_packs_in_xsoar_server - variables: - INSTANCE_ROLE: "Server 6.10" install-packs-in-server-master: extends: .install_packs_in_xsoar_server @@ -262,7 +256,7 @@ install-packs-in-xsiam-ga: upload-packs-to-marketplace: tags: - gke - needs: ["run-validations-upload-flow", "install-packs-in-server6_6", "install-packs-in-server6_8", "install-packs-in-server6_9", "install-packs-in-server6_10", "run-unittests-and-lint-upload-flow"] + needs: ["run-validations-upload-flow", "install-packs-in-server6_5", "install-packs-in-server6_6", "install-packs-in-server6_8", "run-unittests-and-lint-upload-flow"] stage: upload-to-marketplace artifacts: expire_in: 48 hrs diff --git a/.gitlab/ci/global.yml b/.gitlab/ci/global.yml index 8f326322b765..0a716ea8ef5f 100644 --- a/.gitlab/ci/global.yml +++ b/.gitlab/ci/global.yml @@ -362,6 +362,6 @@ - job-done .jobs-done-check: - stage: are-jobs-really-done + stage: are-jobs-realy-done script: - python3 Tests/scripts/check_jobs_done.py --job-done-files $PIPELINE_JOBS_FOLDER diff --git a/.gitlab/ci/on-push.yml b/.gitlab/ci/on-push.yml index 3e510213d660..ea330a45dcd9 100644 --- a/.gitlab/ci/on-push.yml +++ b/.gitlab/ci/on-push.yml @@ -149,10 +149,10 @@ validate-content-conf: if [[ $MARKETPLACE_VERSION == "xsoar" ]]; then echo "Starting to create artifacts with zip for XSOAR." - python Tests/scripts/create_artifacts_graph/create_artifacts.py --marketplace "xsoar" --artifacts-output $ARTIFACTS_FOLDER/content_packs --dependencies-output $ARTIFACTS_FOLDER/packs_dependencies.json --packs-output $ARTIFACTS_FOLDER/packs.json --bucket-upload "$BUCKET_UPLOAD" + python Tests/scripts/create_artifacts_graph/create_artifacts.py --marketplace "xsoar" --artifacts-output $ARTIFACTS_FOLDER/content_packs --dependencies-output $ARTIFACTS_FOLDER/packs_dependencies.json --bucket-upload "$BUCKET_UPLOAD" else echo "Starting to create artifacts without zip." - python Tests/scripts/create_artifacts_graph/create_artifacts.py --marketplace "$MARKETPLACE_VERSION" --artifacts-output $ARTIFACTS_FOLDER/content_packs --dependencies-output $ARTIFACTS_FOLDER/packs_dependencies.json --packs-output $ARTIFACTS_FOLDER/packs.json --no-zip --bucket-upload "$BUCKET_UPLOAD" + python Tests/scripts/create_artifacts_graph/create_artifacts.py --marketplace "$MARKETPLACE_VERSION" --artifacts-output $ARTIFACTS_FOLDER/content_packs --dependencies-output $ARTIFACTS_FOLDER/packs_dependencies.json --no-zip --bucket-upload "$BUCKET_UPLOAD" fi - gcloud auth activate-service-account --key-file="$GCS_ARTIFACTS_KEY" @@ -288,41 +288,32 @@ xpanse-prepare-testing-bucket: - job-done - exit $EXIT_CODE -xsoar_server_6_6: - extends: .test_content_on_xsoar_server_instances_base - # No need to trigger in case of release branch or docker update branches (non-nightly packs) - rules: - - !reference [.filter-non-nightly-docker-updates-rule, rules] - - if: '$CI_PIPELINE_SOURCE =~ /^(push|contrib)$/' - variables: - INSTANCE_ROLE: "Server 6.6" - -xsoar_server_6_8: +xsoar_server_6_5: extends: .test_content_on_xsoar_server_instances_base # No need to trigger in case of release branch or docker update branches (non-nightly packs) rules: - !reference [.filter-non-nightly-docker-updates-rule, rules] - if: '$CI_PIPELINE_SOURCE =~ /^(push|contrib)$/' variables: - INSTANCE_ROLE: "Server 6.8" + INSTANCE_ROLE: "Server 6.5" -xsoar_server_6_9: +xsoar_server_6_6: extends: .test_content_on_xsoar_server_instances_base # No need to trigger in case of release branch or docker update branches (non-nightly packs) rules: - !reference [.filter-non-nightly-docker-updates-rule, rules] - if: '$CI_PIPELINE_SOURCE =~ /^(push|contrib)$/' variables: - INSTANCE_ROLE: "Server 6.9" + INSTANCE_ROLE: "Server 6.6" -xsoar_server_6_10: +xsoar_server_6_8: extends: .test_content_on_xsoar_server_instances_base # No need to trigger in case of release branch or docker update branches (non-nightly packs) rules: - !reference [.filter-non-nightly-docker-updates-rule, rules] - if: '$CI_PIPELINE_SOURCE =~ /^(push|contrib)$/' variables: - INSTANCE_ROLE: "Server 6.10" + INSTANCE_ROLE: "Server 6.8" xsoar_server_master: extends: @@ -376,14 +367,12 @@ jobs-done-check-on-push: optional: true - job: xsiam_server_ga optional: true + - job: xsoar_server_6_5 + optional: true - job: xsoar_server_6_6 optional: true - job: xsoar_server_6_8 optional: true - - job: xsoar_server_6_9 - optional: true - - job: xsoar_server_6_10 - optional: true - job: xsoar_server_master optional: true tags: @@ -555,7 +544,6 @@ xsoar_ng_server_ga: needs: - job: xsoar-prepare-testing-bucket optional: true - allow_failure: true test-upload-flow: diff --git a/Packs/Cylance_Protect/.secrets-ignore b/Packs/Cylance_Protect/.secrets-ignore index 85e3558dc0f3..c41763cf329c 100644 --- a/Packs/Cylance_Protect/.secrets-ignore +++ b/Packs/Cylance_Protect/.secrets-ignore @@ -1,3 +1,3 @@ api_call(uri=URI_LISTS, displaypassword: Application Secret - displaypassword: Tenant API Key \ No newline at end of file + displaypassword: Tenant API Key From 7eb134e7d9921f103a980992d547b5dffbf5a4f7 Mon Sep 17 00:00:00 2001 From: jlevypaloalto Date: Thu, 1 Jun 2023 16:30:13 +0300 Subject: [PATCH 14/33] revised release notes --- .gitlab/ci/.gitlab-ci.yml | 2 +- .gitlab/ci/bucket-upload.yml | 20 ++++++++---- .gitlab/ci/global.yml | 2 +- .gitlab/ci/on-push.yml | 32 +++++++++++++------ .../ReleaseNotes/{1_2_0.md => 1_1_16.md} | 0 Packs/Cylance_Protect/pack_metadata.json | 2 +- .../ReleaseNotes/{1_3_0.md => 1_2_31.md} | 0 Packs/GoogleDrive/pack_metadata.json | 2 +- 8 files changed, 39 insertions(+), 21 deletions(-) rename Packs/Cylance_Protect/ReleaseNotes/{1_2_0.md => 1_1_16.md} (100%) rename Packs/GoogleDrive/ReleaseNotes/{1_3_0.md => 1_2_31.md} (100%) diff --git a/.gitlab/ci/.gitlab-ci.yml b/.gitlab/ci/.gitlab-ci.yml index 840c65c7421e..fafe4e4e12b8 100644 --- a/.gitlab/ci/.gitlab-ci.yml +++ b/.gitlab/ci/.gitlab-ci.yml @@ -13,7 +13,7 @@ stages: - prepare-testing-bucket - run-instances - upload-to-marketplace - - are-jobs-realy-done + - are-jobs-really-done - fan-in # concentrate pipeline artifacts to single job before triggering child slack pipeline diff --git a/.gitlab/ci/bucket-upload.yml b/.gitlab/ci/bucket-upload.yml index be205d9d2cf9..b469d1a28a27 100644 --- a/.gitlab/ci/bucket-upload.yml +++ b/.gitlab/ci/bucket-upload.yml @@ -35,6 +35,8 @@ if [[ $TEST_UPLOAD == "false" ]]; then section_start "Upload content graph GraphML to GCP" --collapsed gsutil cp $ARTIFACTS_FOLDER/content_graph/$MARKETPLACE_VERSION.zip "gs://$GCS_MARKET_BUCKET_DEV/content_graph/$MARKETPLACE_VERSION.zip" + # copy the packs.json file to the bucket, used in contribution management + gsutil cp $ARTIFACTS_FOLDER/packs.json "gs://$GCS_MARKET_BUCKET_DEV/content_graph/"$MARKETPLACE_VERSION"_packs.json" section_end "Upload content graph GraphML to GCP" fi @@ -64,7 +66,7 @@ jobs-done-check-upload-flow: extends: - .jobs-done-check - .bucket-upload-rule - needs: ['run-unittests-and-lint-upload-flow', 'run-validations-upload-flow', 'mpv2-prepare-testing-bucket-upload-flow', 'upload-id-set-bucket', 'xpanse-prepare-testing-bucket-upload-flow', 'xsoar-prepare-testing-bucket-upload-flow', 'install-packs-in-server6_5', 'install-packs-in-server6_6', 'install-packs-in-server6_8', 'install-packs-in-server-master', 'install-packs-in-xsiam-ga', 'sync-buckets-between-projects', 'upload-packs-to-marketplace', 'upload-packs-to-marketplace-v2', 'upload-packs-to-xpanse-marketplace'] + needs: ['run-unittests-and-lint-upload-flow', 'run-validations-upload-flow', 'mpv2-prepare-testing-bucket-upload-flow', 'upload-id-set-bucket', 'xpanse-prepare-testing-bucket-upload-flow', 'xsoar-prepare-testing-bucket-upload-flow', 'install-packs-in-server6_6', 'install-packs-in-server6_8', 'install-packs-in-server6_9', 'install-packs-in-server6_10', 'install-packs-in-server-master', 'install-packs-in-xsiam-ga', 'sync-buckets-between-projects', 'upload-packs-to-marketplace', 'upload-packs-to-marketplace-v2', 'upload-packs-to-xpanse-marketplace'] tags: - gke @@ -154,11 +156,6 @@ xpanse-prepare-testing-bucket-upload-flow: - exit "$EXIT_CODE" -install-packs-in-server6_5: - extends: .install_packs_in_xsoar_server - variables: - INSTANCE_ROLE: "Server 6.5" - install-packs-in-server6_6: extends: .install_packs_in_xsoar_server variables: @@ -169,6 +166,15 @@ install-packs-in-server6_8: variables: INSTANCE_ROLE: "Server 6.8" +install-packs-in-server6_9: + extends: .install_packs_in_xsoar_server + variables: + INSTANCE_ROLE: "Server 6.9" + +install-packs-in-server6_10: + extends: .install_packs_in_xsoar_server + variables: + INSTANCE_ROLE: "Server 6.10" install-packs-in-server-master: extends: .install_packs_in_xsoar_server @@ -256,7 +262,7 @@ install-packs-in-xsiam-ga: upload-packs-to-marketplace: tags: - gke - needs: ["run-validations-upload-flow", "install-packs-in-server6_5", "install-packs-in-server6_6", "install-packs-in-server6_8", "run-unittests-and-lint-upload-flow"] + needs: ["run-validations-upload-flow", "install-packs-in-server6_6", "install-packs-in-server6_8", "install-packs-in-server6_9", "install-packs-in-server6_10", "run-unittests-and-lint-upload-flow"] stage: upload-to-marketplace artifacts: expire_in: 48 hrs diff --git a/.gitlab/ci/global.yml b/.gitlab/ci/global.yml index 0a716ea8ef5f..8f326322b765 100644 --- a/.gitlab/ci/global.yml +++ b/.gitlab/ci/global.yml @@ -362,6 +362,6 @@ - job-done .jobs-done-check: - stage: are-jobs-realy-done + stage: are-jobs-really-done script: - python3 Tests/scripts/check_jobs_done.py --job-done-files $PIPELINE_JOBS_FOLDER diff --git a/.gitlab/ci/on-push.yml b/.gitlab/ci/on-push.yml index ea330a45dcd9..3e510213d660 100644 --- a/.gitlab/ci/on-push.yml +++ b/.gitlab/ci/on-push.yml @@ -149,10 +149,10 @@ validate-content-conf: if [[ $MARKETPLACE_VERSION == "xsoar" ]]; then echo "Starting to create artifacts with zip for XSOAR." - python Tests/scripts/create_artifacts_graph/create_artifacts.py --marketplace "xsoar" --artifacts-output $ARTIFACTS_FOLDER/content_packs --dependencies-output $ARTIFACTS_FOLDER/packs_dependencies.json --bucket-upload "$BUCKET_UPLOAD" + python Tests/scripts/create_artifacts_graph/create_artifacts.py --marketplace "xsoar" --artifacts-output $ARTIFACTS_FOLDER/content_packs --dependencies-output $ARTIFACTS_FOLDER/packs_dependencies.json --packs-output $ARTIFACTS_FOLDER/packs.json --bucket-upload "$BUCKET_UPLOAD" else echo "Starting to create artifacts without zip." - python Tests/scripts/create_artifacts_graph/create_artifacts.py --marketplace "$MARKETPLACE_VERSION" --artifacts-output $ARTIFACTS_FOLDER/content_packs --dependencies-output $ARTIFACTS_FOLDER/packs_dependencies.json --no-zip --bucket-upload "$BUCKET_UPLOAD" + python Tests/scripts/create_artifacts_graph/create_artifacts.py --marketplace "$MARKETPLACE_VERSION" --artifacts-output $ARTIFACTS_FOLDER/content_packs --dependencies-output $ARTIFACTS_FOLDER/packs_dependencies.json --packs-output $ARTIFACTS_FOLDER/packs.json --no-zip --bucket-upload "$BUCKET_UPLOAD" fi - gcloud auth activate-service-account --key-file="$GCS_ARTIFACTS_KEY" @@ -288,32 +288,41 @@ xpanse-prepare-testing-bucket: - job-done - exit $EXIT_CODE -xsoar_server_6_5: +xsoar_server_6_6: extends: .test_content_on_xsoar_server_instances_base # No need to trigger in case of release branch or docker update branches (non-nightly packs) rules: - !reference [.filter-non-nightly-docker-updates-rule, rules] - if: '$CI_PIPELINE_SOURCE =~ /^(push|contrib)$/' variables: - INSTANCE_ROLE: "Server 6.5" + INSTANCE_ROLE: "Server 6.6" -xsoar_server_6_6: +xsoar_server_6_8: extends: .test_content_on_xsoar_server_instances_base # No need to trigger in case of release branch or docker update branches (non-nightly packs) rules: - !reference [.filter-non-nightly-docker-updates-rule, rules] - if: '$CI_PIPELINE_SOURCE =~ /^(push|contrib)$/' variables: - INSTANCE_ROLE: "Server 6.6" + INSTANCE_ROLE: "Server 6.8" -xsoar_server_6_8: +xsoar_server_6_9: extends: .test_content_on_xsoar_server_instances_base # No need to trigger in case of release branch or docker update branches (non-nightly packs) rules: - !reference [.filter-non-nightly-docker-updates-rule, rules] - if: '$CI_PIPELINE_SOURCE =~ /^(push|contrib)$/' variables: - INSTANCE_ROLE: "Server 6.8" + INSTANCE_ROLE: "Server 6.9" + +xsoar_server_6_10: + extends: .test_content_on_xsoar_server_instances_base + # No need to trigger in case of release branch or docker update branches (non-nightly packs) + rules: + - !reference [.filter-non-nightly-docker-updates-rule, rules] + - if: '$CI_PIPELINE_SOURCE =~ /^(push|contrib)$/' + variables: + INSTANCE_ROLE: "Server 6.10" xsoar_server_master: extends: @@ -367,12 +376,14 @@ jobs-done-check-on-push: optional: true - job: xsiam_server_ga optional: true - - job: xsoar_server_6_5 - optional: true - job: xsoar_server_6_6 optional: true - job: xsoar_server_6_8 optional: true + - job: xsoar_server_6_9 + optional: true + - job: xsoar_server_6_10 + optional: true - job: xsoar_server_master optional: true tags: @@ -544,6 +555,7 @@ xsoar_ng_server_ga: needs: - job: xsoar-prepare-testing-bucket optional: true + allow_failure: true test-upload-flow: diff --git a/Packs/Cylance_Protect/ReleaseNotes/1_2_0.md b/Packs/Cylance_Protect/ReleaseNotes/1_1_16.md similarity index 100% rename from Packs/Cylance_Protect/ReleaseNotes/1_2_0.md rename to Packs/Cylance_Protect/ReleaseNotes/1_1_16.md diff --git a/Packs/Cylance_Protect/pack_metadata.json b/Packs/Cylance_Protect/pack_metadata.json index 1fd63f1e34a5..d672c6ee7e31 100644 --- a/Packs/Cylance_Protect/pack_metadata.json +++ b/Packs/Cylance_Protect/pack_metadata.json @@ -2,7 +2,7 @@ "name": "Cylance Protect", "description": "Manage Endpoints using Cylance protect", "support": "xsoar", - "currentVersion": "1.2.0", + "currentVersion": "1.1.16", "author": "Cortex XSOAR", "url": "https://www.paloaltonetworks.com/cortex", "email": "", diff --git a/Packs/GoogleDrive/ReleaseNotes/1_3_0.md b/Packs/GoogleDrive/ReleaseNotes/1_2_31.md similarity index 100% rename from Packs/GoogleDrive/ReleaseNotes/1_3_0.md rename to Packs/GoogleDrive/ReleaseNotes/1_2_31.md diff --git a/Packs/GoogleDrive/pack_metadata.json b/Packs/GoogleDrive/pack_metadata.json index d90c1cf70c83..b635651f5c5b 100644 --- a/Packs/GoogleDrive/pack_metadata.json +++ b/Packs/GoogleDrive/pack_metadata.json @@ -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.3.0", + "currentVersion": "1.2.31", "author": "Cortex XSOAR", "url": "https://www.paloaltonetworks.com/cortex", "email": "", From 6844e1c0653e48377b2698630d8f21ee770caabe Mon Sep 17 00:00:00 2001 From: jlevypaloalto Date: Thu, 1 Jun 2023 16:43:55 +0300 Subject: [PATCH 15/33] remove pipeline files --- .gitlab/ci/.gitlab-ci.yml | 2 +- .gitlab/ci/bucket-upload.yml | 20 +++++++------------- .gitlab/ci/global.yml | 2 +- .gitlab/ci/on-push.yml | 32 ++++++++++---------------------- 4 files changed, 19 insertions(+), 37 deletions(-) diff --git a/.gitlab/ci/.gitlab-ci.yml b/.gitlab/ci/.gitlab-ci.yml index fafe4e4e12b8..840c65c7421e 100644 --- a/.gitlab/ci/.gitlab-ci.yml +++ b/.gitlab/ci/.gitlab-ci.yml @@ -13,7 +13,7 @@ stages: - prepare-testing-bucket - run-instances - upload-to-marketplace - - are-jobs-really-done + - are-jobs-realy-done - fan-in # concentrate pipeline artifacts to single job before triggering child slack pipeline diff --git a/.gitlab/ci/bucket-upload.yml b/.gitlab/ci/bucket-upload.yml index b469d1a28a27..be205d9d2cf9 100644 --- a/.gitlab/ci/bucket-upload.yml +++ b/.gitlab/ci/bucket-upload.yml @@ -35,8 +35,6 @@ if [[ $TEST_UPLOAD == "false" ]]; then section_start "Upload content graph GraphML to GCP" --collapsed gsutil cp $ARTIFACTS_FOLDER/content_graph/$MARKETPLACE_VERSION.zip "gs://$GCS_MARKET_BUCKET_DEV/content_graph/$MARKETPLACE_VERSION.zip" - # copy the packs.json file to the bucket, used in contribution management - gsutil cp $ARTIFACTS_FOLDER/packs.json "gs://$GCS_MARKET_BUCKET_DEV/content_graph/"$MARKETPLACE_VERSION"_packs.json" section_end "Upload content graph GraphML to GCP" fi @@ -66,7 +64,7 @@ jobs-done-check-upload-flow: extends: - .jobs-done-check - .bucket-upload-rule - needs: ['run-unittests-and-lint-upload-flow', 'run-validations-upload-flow', 'mpv2-prepare-testing-bucket-upload-flow', 'upload-id-set-bucket', 'xpanse-prepare-testing-bucket-upload-flow', 'xsoar-prepare-testing-bucket-upload-flow', 'install-packs-in-server6_6', 'install-packs-in-server6_8', 'install-packs-in-server6_9', 'install-packs-in-server6_10', 'install-packs-in-server-master', 'install-packs-in-xsiam-ga', 'sync-buckets-between-projects', 'upload-packs-to-marketplace', 'upload-packs-to-marketplace-v2', 'upload-packs-to-xpanse-marketplace'] + needs: ['run-unittests-and-lint-upload-flow', 'run-validations-upload-flow', 'mpv2-prepare-testing-bucket-upload-flow', 'upload-id-set-bucket', 'xpanse-prepare-testing-bucket-upload-flow', 'xsoar-prepare-testing-bucket-upload-flow', 'install-packs-in-server6_5', 'install-packs-in-server6_6', 'install-packs-in-server6_8', 'install-packs-in-server-master', 'install-packs-in-xsiam-ga', 'sync-buckets-between-projects', 'upload-packs-to-marketplace', 'upload-packs-to-marketplace-v2', 'upload-packs-to-xpanse-marketplace'] tags: - gke @@ -156,6 +154,11 @@ xpanse-prepare-testing-bucket-upload-flow: - exit "$EXIT_CODE" +install-packs-in-server6_5: + extends: .install_packs_in_xsoar_server + variables: + INSTANCE_ROLE: "Server 6.5" + install-packs-in-server6_6: extends: .install_packs_in_xsoar_server variables: @@ -166,15 +169,6 @@ install-packs-in-server6_8: variables: INSTANCE_ROLE: "Server 6.8" -install-packs-in-server6_9: - extends: .install_packs_in_xsoar_server - variables: - INSTANCE_ROLE: "Server 6.9" - -install-packs-in-server6_10: - extends: .install_packs_in_xsoar_server - variables: - INSTANCE_ROLE: "Server 6.10" install-packs-in-server-master: extends: .install_packs_in_xsoar_server @@ -262,7 +256,7 @@ install-packs-in-xsiam-ga: upload-packs-to-marketplace: tags: - gke - needs: ["run-validations-upload-flow", "install-packs-in-server6_6", "install-packs-in-server6_8", "install-packs-in-server6_9", "install-packs-in-server6_10", "run-unittests-and-lint-upload-flow"] + needs: ["run-validations-upload-flow", "install-packs-in-server6_5", "install-packs-in-server6_6", "install-packs-in-server6_8", "run-unittests-and-lint-upload-flow"] stage: upload-to-marketplace artifacts: expire_in: 48 hrs diff --git a/.gitlab/ci/global.yml b/.gitlab/ci/global.yml index 8f326322b765..0a716ea8ef5f 100644 --- a/.gitlab/ci/global.yml +++ b/.gitlab/ci/global.yml @@ -362,6 +362,6 @@ - job-done .jobs-done-check: - stage: are-jobs-really-done + stage: are-jobs-realy-done script: - python3 Tests/scripts/check_jobs_done.py --job-done-files $PIPELINE_JOBS_FOLDER diff --git a/.gitlab/ci/on-push.yml b/.gitlab/ci/on-push.yml index 3e510213d660..ea330a45dcd9 100644 --- a/.gitlab/ci/on-push.yml +++ b/.gitlab/ci/on-push.yml @@ -149,10 +149,10 @@ validate-content-conf: if [[ $MARKETPLACE_VERSION == "xsoar" ]]; then echo "Starting to create artifacts with zip for XSOAR." - python Tests/scripts/create_artifacts_graph/create_artifacts.py --marketplace "xsoar" --artifacts-output $ARTIFACTS_FOLDER/content_packs --dependencies-output $ARTIFACTS_FOLDER/packs_dependencies.json --packs-output $ARTIFACTS_FOLDER/packs.json --bucket-upload "$BUCKET_UPLOAD" + python Tests/scripts/create_artifacts_graph/create_artifacts.py --marketplace "xsoar" --artifacts-output $ARTIFACTS_FOLDER/content_packs --dependencies-output $ARTIFACTS_FOLDER/packs_dependencies.json --bucket-upload "$BUCKET_UPLOAD" else echo "Starting to create artifacts without zip." - python Tests/scripts/create_artifacts_graph/create_artifacts.py --marketplace "$MARKETPLACE_VERSION" --artifacts-output $ARTIFACTS_FOLDER/content_packs --dependencies-output $ARTIFACTS_FOLDER/packs_dependencies.json --packs-output $ARTIFACTS_FOLDER/packs.json --no-zip --bucket-upload "$BUCKET_UPLOAD" + python Tests/scripts/create_artifacts_graph/create_artifacts.py --marketplace "$MARKETPLACE_VERSION" --artifacts-output $ARTIFACTS_FOLDER/content_packs --dependencies-output $ARTIFACTS_FOLDER/packs_dependencies.json --no-zip --bucket-upload "$BUCKET_UPLOAD" fi - gcloud auth activate-service-account --key-file="$GCS_ARTIFACTS_KEY" @@ -288,41 +288,32 @@ xpanse-prepare-testing-bucket: - job-done - exit $EXIT_CODE -xsoar_server_6_6: - extends: .test_content_on_xsoar_server_instances_base - # No need to trigger in case of release branch or docker update branches (non-nightly packs) - rules: - - !reference [.filter-non-nightly-docker-updates-rule, rules] - - if: '$CI_PIPELINE_SOURCE =~ /^(push|contrib)$/' - variables: - INSTANCE_ROLE: "Server 6.6" - -xsoar_server_6_8: +xsoar_server_6_5: extends: .test_content_on_xsoar_server_instances_base # No need to trigger in case of release branch or docker update branches (non-nightly packs) rules: - !reference [.filter-non-nightly-docker-updates-rule, rules] - if: '$CI_PIPELINE_SOURCE =~ /^(push|contrib)$/' variables: - INSTANCE_ROLE: "Server 6.8" + INSTANCE_ROLE: "Server 6.5" -xsoar_server_6_9: +xsoar_server_6_6: extends: .test_content_on_xsoar_server_instances_base # No need to trigger in case of release branch or docker update branches (non-nightly packs) rules: - !reference [.filter-non-nightly-docker-updates-rule, rules] - if: '$CI_PIPELINE_SOURCE =~ /^(push|contrib)$/' variables: - INSTANCE_ROLE: "Server 6.9" + INSTANCE_ROLE: "Server 6.6" -xsoar_server_6_10: +xsoar_server_6_8: extends: .test_content_on_xsoar_server_instances_base # No need to trigger in case of release branch or docker update branches (non-nightly packs) rules: - !reference [.filter-non-nightly-docker-updates-rule, rules] - if: '$CI_PIPELINE_SOURCE =~ /^(push|contrib)$/' variables: - INSTANCE_ROLE: "Server 6.10" + INSTANCE_ROLE: "Server 6.8" xsoar_server_master: extends: @@ -376,14 +367,12 @@ jobs-done-check-on-push: optional: true - job: xsiam_server_ga optional: true + - job: xsoar_server_6_5 + optional: true - job: xsoar_server_6_6 optional: true - job: xsoar_server_6_8 optional: true - - job: xsoar_server_6_9 - optional: true - - job: xsoar_server_6_10 - optional: true - job: xsoar_server_master optional: true tags: @@ -555,7 +544,6 @@ xsoar_ng_server_ga: needs: - job: xsoar-prepare-testing-bucket optional: true - allow_failure: true test-upload-flow: From cd4e547b534b8977f59dcd4dbadf74251a639672 Mon Sep 17 00:00:00 2001 From: Jacob Levy <129657918+jlevypaloalto@users.noreply.github.com> Date: Sun, 4 Jun 2023 09:27:30 +0300 Subject: [PATCH 16/33] Update 1_2_31.md --- Packs/GoogleDrive/ReleaseNotes/1_2_31.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Packs/GoogleDrive/ReleaseNotes/1_2_31.md b/Packs/GoogleDrive/ReleaseNotes/1_2_31.md index c6e6060703de..7b8fbe464a93 100644 --- a/Packs/GoogleDrive/ReleaseNotes/1_2_31.md +++ b/Packs/GoogleDrive/ReleaseNotes/1_2_31.md @@ -1,7 +1,4 @@ #### Integrations ##### Google Drive -- Added the following integration parameters to support credentials fetching object: - - *User ID* - - *User's Service Account JSON* -- Updated the Docker image to: *demisto/googleapi-python3:1.0.0.62140*. \ No newline at end of file +- Updated the Docker image to: *demisto/googleapi-python3:1.0.0.62140*. From 6744e8f4f0c2b14dce7cc42127e957038b6bae02 Mon Sep 17 00:00:00 2001 From: Jacob Levy <129657918+jlevypaloalto@users.noreply.github.com> Date: Sun, 4 Jun 2023 09:32:18 +0300 Subject: [PATCH 17/33] Revert 1_2_31.md to bot version --- Packs/GoogleDrive/ReleaseNotes/1_2_31.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Packs/GoogleDrive/ReleaseNotes/1_2_31.md b/Packs/GoogleDrive/ReleaseNotes/1_2_31.md index 7b8fbe464a93..9208e206a50f 100644 --- a/Packs/GoogleDrive/ReleaseNotes/1_2_31.md +++ b/Packs/GoogleDrive/ReleaseNotes/1_2_31.md @@ -1,4 +1,4 @@ #### Integrations ##### Google Drive -- Updated the Docker image to: *demisto/googleapi-python3:1.0.0.62140*. +- Updated the Docker image to: *demisto/googleapi-python3:1.0.0.61820*. From 3640bad7f13106b2a99f0ef37eabda7d5e757470 Mon Sep 17 00:00:00 2001 From: Jacob Levy <129657918+jlevypaloalto@users.noreply.github.com> Date: Sun, 4 Jun 2023 09:32:48 +0300 Subject: [PATCH 18/33] Update 1_2_31.md --- Packs/GoogleDrive/ReleaseNotes/1_2_31.md | 1 - 1 file changed, 1 deletion(-) diff --git a/Packs/GoogleDrive/ReleaseNotes/1_2_31.md b/Packs/GoogleDrive/ReleaseNotes/1_2_31.md index 9208e206a50f..fa739535ff12 100644 --- a/Packs/GoogleDrive/ReleaseNotes/1_2_31.md +++ b/Packs/GoogleDrive/ReleaseNotes/1_2_31.md @@ -1,4 +1,3 @@ #### Integrations - ##### Google Drive - Updated the Docker image to: *demisto/googleapi-python3:1.0.0.61820*. From c123846db71c6c1888663d9d590581fddcc3b100 Mon Sep 17 00:00:00 2001 From: Jacob Levy <129657918+jlevypaloalto@users.noreply.github.com> Date: Sun, 4 Jun 2023 09:35:17 +0300 Subject: [PATCH 19/33] Update 1_1_16.md to bot version --- Packs/Cylance_Protect/ReleaseNotes/1_1_16.md | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Packs/Cylance_Protect/ReleaseNotes/1_1_16.md b/Packs/Cylance_Protect/ReleaseNotes/1_1_16.md index 3d6b552965bc..6aca5917b678 100644 --- a/Packs/Cylance_Protect/ReleaseNotes/1_1_16.md +++ b/Packs/Cylance_Protect/ReleaseNotes/1_1_16.md @@ -1,9 +1,3 @@ - #### Integrations - ##### Cylance Protect v2 -- Added the following integration parameters to support credentials fetching object: - - *Application ID* - - *Application Secret* - - *Tenant API Key* -- Updated the Docker image to: *demisto/pyjwt3:1.0.0.62273*. \ No newline at end of file +- Updated the Docker image to: *demisto/pyjwt3:1.0.0.61733*. From 94cfe34f4aebeaa47b0f45e96cbdd6909be8fdc7 Mon Sep 17 00:00:00 2001 From: jlevypaloalto Date: Sun, 4 Jun 2023 09:57:20 +0300 Subject: [PATCH 20/33] update release notes --- Packs/GoogleDrive/ReleaseNotes/1_2_32.md | 7 +++++++ Packs/GoogleDrive/pack_metadata.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 Packs/GoogleDrive/ReleaseNotes/1_2_32.md diff --git a/Packs/GoogleDrive/ReleaseNotes/1_2_32.md b/Packs/GoogleDrive/ReleaseNotes/1_2_32.md new file mode 100644 index 000000000000..8d1e3b0fc9e5 --- /dev/null +++ b/Packs/GoogleDrive/ReleaseNotes/1_2_32.md @@ -0,0 +1,7 @@ +#### Integrations + +##### Google Drive + +- Added the following integration parameters to support credentials fetching object: + - *User ID* + - *User's Service Account JSON* diff --git a/Packs/GoogleDrive/pack_metadata.json b/Packs/GoogleDrive/pack_metadata.json index b635651f5c5b..5dfc7f6b44f8 100644 --- a/Packs/GoogleDrive/pack_metadata.json +++ b/Packs/GoogleDrive/pack_metadata.json @@ -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.31", + "currentVersion": "1.2.32", "author": "Cortex XSOAR", "url": "https://www.paloaltonetworks.com/cortex", "email": "", From 5b4c49df2c043c2e8d46d0d4263106c015806e63 Mon Sep 17 00:00:00 2001 From: jlevypaloalto Date: Sun, 4 Jun 2023 10:17:40 +0300 Subject: [PATCH 21/33] update release notes pylance project --- Packs/Cylance_Protect/ReleaseNotes/1_1_17.md | 8 ++++++++ Packs/Cylance_Protect/pack_metadata.json | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 Packs/Cylance_Protect/ReleaseNotes/1_1_17.md diff --git a/Packs/Cylance_Protect/ReleaseNotes/1_1_17.md b/Packs/Cylance_Protect/ReleaseNotes/1_1_17.md new file mode 100644 index 000000000000..be763e3cded7 --- /dev/null +++ b/Packs/Cylance_Protect/ReleaseNotes/1_1_17.md @@ -0,0 +1,8 @@ +#### Integrations + +##### Cylance Protect v2 + +- Added the following integration parameters to support credentials fetching object: + - *Application ID* + - *Application Secret* + - *Tenant API Key* diff --git a/Packs/Cylance_Protect/pack_metadata.json b/Packs/Cylance_Protect/pack_metadata.json index d672c6ee7e31..2357361b2904 100644 --- a/Packs/Cylance_Protect/pack_metadata.json +++ b/Packs/Cylance_Protect/pack_metadata.json @@ -2,7 +2,7 @@ "name": "Cylance Protect", "description": "Manage Endpoints using Cylance protect", "support": "xsoar", - "currentVersion": "1.1.16", + "currentVersion": "1.1.17", "author": "Cortex XSOAR", "url": "https://www.paloaltonetworks.com/cortex", "email": "", From 27e3867a88ddeb19c2f57f41ea05c17245ac61f1 Mon Sep 17 00:00:00 2001 From: jlevypaloalto Date: Sun, 4 Jun 2023 11:30:00 +0300 Subject: [PATCH 22/33] fixed test errors --- .../Integrations/Cylance_Protect_v2/Cylance_Protect_v2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Packs/Cylance_Protect/Integrations/Cylance_Protect_v2/Cylance_Protect_v2.py b/Packs/Cylance_Protect/Integrations/Cylance_Protect_v2/Cylance_Protect_v2.py index d2a6472ceaaf..95b351f4ea8c 100644 --- a/Packs/Cylance_Protect/Integrations/Cylance_Protect_v2/Cylance_Protect_v2.py +++ b/Packs/Cylance_Protect/Integrations/Cylance_Protect_v2/Cylance_Protect_v2.py @@ -1528,7 +1528,7 @@ def main(): # pragma: no cover global USE_SSL USE_SSL = not params.get('unsecure', False) command = demisto.command() - + if not all((APP_ID, APP_SECRET, TID)): raise DemistoException('Please fill out the Application ID, Application Secret and Tenant API Key') From 6a24e35845226eef1058cc09d2a9140eb32353c3 Mon Sep 17 00:00:00 2001 From: jlevypaloalto Date: Mon, 5 Jun 2023 10:18:13 +0300 Subject: [PATCH 23/33] update docker image --- .../Integrations/Cylance_Protect_v2/Cylance_Protect_v2.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Packs/Cylance_Protect/Integrations/Cylance_Protect_v2/Cylance_Protect_v2.yml b/Packs/Cylance_Protect/Integrations/Cylance_Protect_v2/Cylance_Protect_v2.yml index 62419b4f80fe..8f0a2f31fcc7 100644 --- a/Packs/Cylance_Protect/Integrations/Cylance_Protect_v2/Cylance_Protect_v2.yml +++ b/Packs/Cylance_Protect/Integrations/Cylance_Protect_v2/Cylance_Protect_v2.yml @@ -965,7 +965,7 @@ script: - contextPath: InstaQuery.List description: The list of InstaQuery type: string - dockerimage: demisto/pyjwt3:1.0.0.62273 + dockerimage: demisto/pyjwt3:1.0.0.62486 isfetch: true runonce: false script: '' From ec1eec9eaa8a50d6cb529de397d0d4643e0b8c4a Mon Sep 17 00:00:00 2001 From: Jacob Levy <129657918+jlevypaloalto@users.noreply.github.com> Date: Tue, 6 Jun 2023 09:17:38 +0300 Subject: [PATCH 24/33] Remove empty ignore from .pack-ignore --- Packs/GoogleDrive/.pack-ignore | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Packs/GoogleDrive/.pack-ignore b/Packs/GoogleDrive/.pack-ignore index ccdef19aaee6..29cd653cf019 100644 --- a/Packs/GoogleDrive/.pack-ignore +++ b/Packs/GoogleDrive/.pack-ignore @@ -4,11 +4,8 @@ ignore=RM104 [file:classifier-mapper-incoming-Google_Drive.json] ignore=BA101 -[file:GoogleDrive.yml] -ignore= - [file:GoogleDrive_image.png] ignore=IM111 [file:classifier-Google_Drive.json] -ignore=BA101 \ No newline at end of file +ignore=BA101 From 881997970b1a7105f9bbab210fd17069f8b75f58 Mon Sep 17 00:00:00 2001 From: jlevypaloalto Date: Wed, 7 Jun 2023 15:34:30 +0300 Subject: [PATCH 25/33] fixed user_id bug --- Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.py b/Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.py index 2f4bfec3de3a..2fcdcf6fde11 100644 --- a/Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.py +++ b/Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.py @@ -1689,7 +1689,8 @@ def main() -> None: account_json = params.get('user_creds', {}).get('password') or params.get('user_service_account_json') user_id = params.get('user_creds', {}).get('identifier') or params.get('user_id', '') - + params['user_id'] = user_id + if not account_json: raise DemistoException('Please fill out the User\'s Service Account JSON field.') From e557609fda7405b7a64bb2a77935f801c8792354 Mon Sep 17 00:00:00 2001 From: jlevypaloalto Date: Wed, 7 Jun 2023 16:41:41 +0300 Subject: [PATCH 26/33] updated release notes --- Packs/GoogleDrive/ReleaseNotes/1_2_32.md | 5 ----- Packs/GoogleDrive/ReleaseNotes/1_2_33.md | 8 ++++++++ Packs/GoogleDrive/pack_metadata.json | 2 +- 3 files changed, 9 insertions(+), 6 deletions(-) create mode 100644 Packs/GoogleDrive/ReleaseNotes/1_2_33.md diff --git a/Packs/GoogleDrive/ReleaseNotes/1_2_32.md b/Packs/GoogleDrive/ReleaseNotes/1_2_32.md index 15eff0bb829f..11333417dfb4 100644 --- a/Packs/GoogleDrive/ReleaseNotes/1_2_32.md +++ b/Packs/GoogleDrive/ReleaseNotes/1_2_32.md @@ -1,8 +1,3 @@ #### Integrations - ##### Google Drive - -- Added the following integration parameters to support credentials fetching object: - - *User ID* - - *User's Service Account JSON* - Updated the Docker image to: *demisto/googleapi-python3:1.0.0.62140*. \ No newline at end of file diff --git a/Packs/GoogleDrive/ReleaseNotes/1_2_33.md b/Packs/GoogleDrive/ReleaseNotes/1_2_33.md new file mode 100644 index 000000000000..c0f53aa61618 --- /dev/null +++ b/Packs/GoogleDrive/ReleaseNotes/1_2_33.md @@ -0,0 +1,8 @@ + +#### Integrations + +##### Google Drive + +- Added the following integration parameters to support credentials fetching object: + - *User ID* + - *User's Service Account JSON* \ No newline at end of file diff --git a/Packs/GoogleDrive/pack_metadata.json b/Packs/GoogleDrive/pack_metadata.json index 5dfc7f6b44f8..271a59ccc16c 100644 --- a/Packs/GoogleDrive/pack_metadata.json +++ b/Packs/GoogleDrive/pack_metadata.json @@ -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.32", + "currentVersion": "1.2.33", "author": "Cortex XSOAR", "url": "https://www.paloaltonetworks.com/cortex", "email": "", From 946df10b88796eedb039ddf8e6741b8159090197 Mon Sep 17 00:00:00 2001 From: jlevypaloalto Date: Wed, 7 Jun 2023 17:30:29 +0300 Subject: [PATCH 27/33] fixed precommit errors --- Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.py b/Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.py index 2fcdcf6fde11..2228d7b9ee1d 100644 --- a/Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.py +++ b/Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.py @@ -1690,7 +1690,7 @@ def main() -> None: account_json = params.get('user_creds', {}).get('password') or params.get('user_service_account_json') user_id = params.get('user_creds', {}).get('identifier') or params.get('user_id', '') params['user_id'] = user_id - + if not account_json: raise DemistoException('Please fill out the User\'s Service Account JSON field.') From fbd0e121b38804a82b00378e70298ceff05095f3 Mon Sep 17 00:00:00 2001 From: jlevypaloalto Date: Thu, 8 Jun 2023 10:10:57 +0300 Subject: [PATCH 28/33] possible solution to server error --- Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.py b/Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.py index 2228d7b9ee1d..56f4cf883150 100644 --- a/Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.py +++ b/Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.py @@ -1690,6 +1690,7 @@ def main() -> None: account_json = params.get('user_creds', {}).get('password') or params.get('user_service_account_json') user_id = params.get('user_creds', {}).get('identifier') or params.get('user_id', '') params['user_id'] = user_id + params['user_service_account_json'] = account_json if not account_json: raise DemistoException('Please fill out the User\'s Service Account JSON field.') From 35348686d1ec7a6799658a061004b2d7280bbe36 Mon Sep 17 00:00:00 2001 From: jlevypaloalto Date: Thu, 8 Jun 2023 11:21:20 +0300 Subject: [PATCH 29/33] update docker --- Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.yml b/Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.yml index 8c01c77cda52..1000d11b6e66 100644 --- a/Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.yml +++ b/Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.yml @@ -2917,7 +2917,7 @@ script: - "false" required: false secret: false - dockerimage: demisto/googleapi-python3:1.0.0.62140 + dockerimage: demisto/googleapi-python3:1.0.0.62767 feed: false isfetch: true longRunning: false From b21cfbc79688761dcf9d48e3627937a3bb37ff81 Mon Sep 17 00:00:00 2001 From: jlevypaloalto Date: Wed, 14 Jun 2023 11:20:02 +0300 Subject: [PATCH 30/33] updated docker --- .../Integrations/Cylance_Protect_v2/Cylance_Protect_v2.yml | 2 +- Packs/Cylance_Protect/ReleaseNotes/1_1_17.md | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Packs/Cylance_Protect/Integrations/Cylance_Protect_v2/Cylance_Protect_v2.yml b/Packs/Cylance_Protect/Integrations/Cylance_Protect_v2/Cylance_Protect_v2.yml index 8f0a2f31fcc7..20756c4a8a00 100644 --- a/Packs/Cylance_Protect/Integrations/Cylance_Protect_v2/Cylance_Protect_v2.yml +++ b/Packs/Cylance_Protect/Integrations/Cylance_Protect_v2/Cylance_Protect_v2.yml @@ -965,7 +965,7 @@ script: - contextPath: InstaQuery.List description: The list of InstaQuery type: string - dockerimage: demisto/pyjwt3:1.0.0.62486 + dockerimage: demisto/pyjwt3:1.0.0.62977 isfetch: true runonce: false script: '' diff --git a/Packs/Cylance_Protect/ReleaseNotes/1_1_17.md b/Packs/Cylance_Protect/ReleaseNotes/1_1_17.md index be763e3cded7..bd5b4963f81a 100644 --- a/Packs/Cylance_Protect/ReleaseNotes/1_1_17.md +++ b/Packs/Cylance_Protect/ReleaseNotes/1_1_17.md @@ -6,3 +6,4 @@ - *Application ID* - *Application Secret* - *Tenant API Key* +- Updated Docker image to demisto/pyjwt3:1.0.0.62977. \ No newline at end of file From 9ffc5da8d6061027a32a1875706e630137372384 Mon Sep 17 00:00:00 2001 From: jlevypaloalto Date: Wed, 14 Jun 2023 13:55:57 +0300 Subject: [PATCH 31/33] updated docker --- Packs/Cylance_Protect/ReleaseNotes/1_1_17.md | 2 +- Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.yml | 2 +- Packs/GoogleDrive/ReleaseNotes/1_2_33.md | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Packs/Cylance_Protect/ReleaseNotes/1_1_17.md b/Packs/Cylance_Protect/ReleaseNotes/1_1_17.md index bd5b4963f81a..b8e6c94d0f44 100644 --- a/Packs/Cylance_Protect/ReleaseNotes/1_1_17.md +++ b/Packs/Cylance_Protect/ReleaseNotes/1_1_17.md @@ -6,4 +6,4 @@ - *Application ID* - *Application Secret* - *Tenant API Key* -- Updated Docker image to demisto/pyjwt3:1.0.0.62977. \ No newline at end of file +- Updated the Docker image to demisto/pyjwt3:1.0.0.62977. \ No newline at end of file diff --git a/Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.yml b/Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.yml index 1000d11b6e66..6abdeef52115 100644 --- a/Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.yml +++ b/Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.yml @@ -2917,7 +2917,7 @@ script: - "false" required: false secret: false - dockerimage: demisto/googleapi-python3:1.0.0.62767 + dockerimage: demisto/googleapi-python3:1.0.0.63217 feed: false isfetch: true longRunning: false diff --git a/Packs/GoogleDrive/ReleaseNotes/1_2_33.md b/Packs/GoogleDrive/ReleaseNotes/1_2_33.md index c0f53aa61618..53fae3998927 100644 --- a/Packs/GoogleDrive/ReleaseNotes/1_2_33.md +++ b/Packs/GoogleDrive/ReleaseNotes/1_2_33.md @@ -5,4 +5,5 @@ - Added the following integration parameters to support credentials fetching object: - *User ID* - - *User's Service Account JSON* \ No newline at end of file + - *User's Service Account JSON* +- Updated the Docker image to demisto/googleapi-python3:1.0.0.63217 \ No newline at end of file From 8c8519dfc4a4fad9c823947e39da6fd0c07b4edc Mon Sep 17 00:00:00 2001 From: Jacob Levy <129657918+jlevypaloalto@users.noreply.github.com> Date: Thu, 15 Jun 2023 11:13:11 +0300 Subject: [PATCH 32/33] Added period to 1_2_33.md --- Packs/GoogleDrive/ReleaseNotes/1_2_33.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Packs/GoogleDrive/ReleaseNotes/1_2_33.md b/Packs/GoogleDrive/ReleaseNotes/1_2_33.md index 53fae3998927..538f56695b27 100644 --- a/Packs/GoogleDrive/ReleaseNotes/1_2_33.md +++ b/Packs/GoogleDrive/ReleaseNotes/1_2_33.md @@ -6,4 +6,4 @@ - Added the following integration parameters to support credentials fetching object: - *User ID* - *User's Service Account JSON* -- Updated the Docker image to demisto/googleapi-python3:1.0.0.63217 \ No newline at end of file +- Updated the Docker image to *demisto/googleapi-python3:1.0.0.63217*. From f08cf9f141c77c6c8f1ac70e53deba9236ccaff9 Mon Sep 17 00:00:00 2001 From: jlevypaloalto Date: Thu, 15 Jun 2023 11:37:36 +0300 Subject: [PATCH 33/33] update docker --- Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.yml | 2 +- Packs/GoogleDrive/ReleaseNotes/1_2_33.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.yml b/Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.yml index 6abdeef52115..f7c7d25ebe82 100644 --- a/Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.yml +++ b/Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.yml @@ -2917,7 +2917,7 @@ script: - "false" required: false secret: false - dockerimage: demisto/googleapi-python3:1.0.0.63217 + dockerimage: demisto/googleapi-python3:1.0.0.63394 feed: false isfetch: true longRunning: false diff --git a/Packs/GoogleDrive/ReleaseNotes/1_2_33.md b/Packs/GoogleDrive/ReleaseNotes/1_2_33.md index 538f56695b27..6447604f755d 100644 --- a/Packs/GoogleDrive/ReleaseNotes/1_2_33.md +++ b/Packs/GoogleDrive/ReleaseNotes/1_2_33.md @@ -6,4 +6,4 @@ - Added the following integration parameters to support credentials fetching object: - *User ID* - *User's Service Account JSON* -- Updated the Docker image to *demisto/googleapi-python3:1.0.0.63217*. +- Updated the Docker image to *demisto/googleapi-python3:1.0.0.63394*.