Skip to content

Commit

Permalink
Merge pull request #15 from splunk-soar-connectors/next
Browse files Browse the repository at this point in the history
Merging next to main for release 2.1.1
  • Loading branch information
ishans-crest authored Dec 12, 2023
2 parents e4e7114 + d806bc5 commit c13156b
Show file tree
Hide file tree
Showing 44 changed files with 120 additions and 153 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/generate-doc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Generate Readme Doc
on:
workflow_dispatch:
push:
paths:
- '*.json'
- 'readme.html'
- 'manual_readme_content.md'
tags-ignore:
- '**'
branches-ignore:
- next
- main
jobs:
generate-doc:
runs-on: ubuntu-latest
steps:
- uses: 'phantomcyber/dev-cicd-tools/github-actions/generate-doc@main'
with:
GITHUB_TOKEN: ${{ secrets.SOAR_APPS_TOKEN }}
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/phantomcyber/dev-cicd-tools
rev: v1.13
rev: v1.16
hooks:
- id: org-hook
- id: package-app-dependencies
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright (c) 2018-2022 Splunk Inc.
Copyright (c) 2018-2023 Splunk Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
7 changes: 1 addition & 6 deletions NOTICE
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Splunk SOAR Big Query
Copyright (c) 2018-2022 Splunk Inc.
Copyright (c) 2018-2023 Splunk Inc.

Third-party Software Attributions:

Expand All @@ -13,11 +13,6 @@ Version: 0.4.6
License: BSD 2
Copyright 2005-2019 Ilya Etingof <[email protected]>

Library: requests
Version: 2.25.0
License: Apache 2.0
Kenneth Reitz

Library: rsa
Version: 4.7.2
License: Apache 2.0
Expand Down
80 changes: 40 additions & 40 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
# Big Query

Publisher: Splunk
Connector Version: 2\.1\.0
Connector Version: 2.1.1
Product Vendor: Google
Product Name: Big Query
Product Version Supported (regex): "\.\*"
Minimum Product Version: 5\.3\.0
Product Version Supported (regex): ".\*"
Minimum Product Version: 5.3.0

This app allows running investigative actions against Google BigQuery

[comment]: # " File: README.md"
[comment]: # " Copyright (c) 2018-2022 Splunk Inc."
[comment]: # " Copyright (c) 2018-2023 Splunk Inc."
[comment]: # ""
[comment]: # "Licensed under the Apache License, Version 2.0 (the 'License');"
[comment]: # "you may not use this file except in compliance with the License."
Expand Down Expand Up @@ -51,7 +51,7 @@ The below configuration variables are required for this Connector to operate. T

VARIABLE | REQUIRED | TYPE | DESCRIPTION
-------- | -------- | ---- | -----------
**key\_json** | required | password | Contents of Service Account JSON file
**key_json** | required | password | Contents of Service Account JSON file

### Supported Actions
[test connectivity](#action-test-connectivity) - Validate the asset configuration for connectivity using supplied configuration
Expand Down Expand Up @@ -83,18 +83,18 @@ PARAMETER | REQUIRED | DESCRIPTION | TYPE | CONTAINS
**dataset** | optional | Only list tables in this dataset | string | `bigquery dataset`

#### Action Output
DATA PATH | TYPE | CONTAINS
--------- | ---- | --------
action\_result\.status | string |
action\_result\.parameter\.dataset | string | `bigquery dataset`
action\_result\.data\.\*\.dataset\_id | string | `bigquery dataset`
action\_result\.data\.\*\.full\_table\_id | string |
action\_result\.data\.\*\.project\_id | string |
action\_result\.data\.\*\.table\_id | string |
action\_result\.summary\.total\_tables | numeric |
action\_result\.message | string |
summary\.total\_objects | numeric |
summary\.total\_objects\_successful | numeric |
DATA PATH | TYPE | CONTAINS | EXAMPLE VALUES
--------- | ---- | -------- | --------------
action_result.status | string | | success failed
action_result.parameter.dataset | string | `bigquery dataset` |
action_result.data.\*.dataset_id | string | `bigquery dataset` | company_dataset
action_result.data.\*.full_table_id | string | | my-company-project-513002:company_dataset.test_table_1
action_result.data.\*.project_id | string | | my-company-project-513002
action_result.data.\*.table_id | string | | test_table_1
action_result.summary.total_tables | numeric | |
action_result.message | string | | Successfully listed tables
summary.total_objects | numeric | | 1
summary.total_objects_successful | numeric | | 1

## action: 'get results'
Get results from a job started with 'run query'
Expand All @@ -105,21 +105,21 @@ Read only: **True**
#### Action Parameters
PARAMETER | REQUIRED | DESCRIPTION | TYPE | CONTAINS
--------- | -------- | ----------- | ---- | --------
**job\_id** | required | Job ID | string | `bigquery job id`
**job_id** | required | Job ID | string | `bigquery job id`
**timeout** | optional | How long to wait for results | numeric |

#### Action Output
DATA PATH | TYPE | CONTAINS
--------- | ---- | --------
action\_result\.status | string |
action\_result\.parameter\.job\_id | string | `bigquery job id`
action\_result\.parameter\.timeout | numeric |
action\_result\.data\.\* | string |
action\_result\.summary\.job\_id | string | `bigquery job id`
action\_result\.summary\.num\_rows | numeric |
action\_result\.message | string |
summary\.total\_objects | numeric |
summary\.total\_objects\_successful | numeric |
DATA PATH | TYPE | CONTAINS | EXAMPLE VALUES
--------- | ---- | -------- | --------------
action_result.status | string | | success failed
action_result.parameter.job_id | string | `bigquery job id` | 5a9e1de5-342d-4be8-a1e4-93aff49174ff
action_result.parameter.timeout | numeric | | 30
action_result.data.\* | string | |
action_result.summary.job_id | string | `bigquery job id` | 5a9e1de5-342d-4be8-a1e4-93aff49174ff
action_result.summary.num_rows | numeric | | 1000
action_result.message | string | | Successfully retrieved results from Query
summary.total_objects | numeric | | 1
summary.total_objects_successful | numeric | | 1

## action: 'run query'
Run a Query
Expand All @@ -134,14 +134,14 @@ PARAMETER | REQUIRED | DESCRIPTION | TYPE | CONTAINS
**timeout** | optional | How long to wait for results | numeric |

#### Action Output
DATA PATH | TYPE | CONTAINS
--------- | ---- | --------
action\_result\.status | string |
action\_result\.parameter\.query | string | `bigquery query`
action\_result\.parameter\.timeout | numeric |
action\_result\.data\.\* | string |
action\_result\.summary\.job\_id | string | `bigquery job id`
action\_result\.summary\.num\_rows | numeric |
action\_result\.message | string |
summary\.total\_objects | numeric |
summary\.total\_objects\_successful | numeric |
DATA PATH | TYPE | CONTAINS | EXAMPLE VALUES
--------- | ---- | -------- | --------------
action_result.status | string | | success failed
action_result.parameter.query | string | `bigquery query` | SELECT weight_pounds, state, year, gestation_weeks FROM `bigquery-public-data.samples.natality` LIMIT 1000;
action_result.parameter.timeout | numeric | | 1
action_result.data.\* | string | |
action_result.summary.job_id | string | `bigquery job id` | 5a9e1de5-342d-4be8-a1e4-93aff49174ff
action_result.summary.num_rows | numeric | | 1000
action_result.message | string | | Successfully retrieved results from Query
summary.total_objects | numeric | | 1
summary.total_objects_successful | numeric | | 1
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# File: __init__.py
#
# Copyright (c) 2018-2022 Splunk Inc.
# Copyright (c) 2018-2023 Splunk Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
78 changes: 17 additions & 61 deletions bigquery.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"product_name": "Big Query",
"product_version_regex": ".*",
"publisher": "Splunk",
"license": "Copyright (c) 2018-2022 Splunk Inc.",
"app_version": "2.1.0",
"license": "Copyright (c) 2018-2023 Splunk Inc.",
"app_version": "2.1.1",
"utctime_updated": "2022-02-02T18:30:29.000000Z",
"package_name": "phantom_bigquery",
"main_module": "bigquery_connector.py",
Expand All @@ -27,21 +27,13 @@
"module": "cachetools",
"input_file": "wheels/shared/cachetools-2.0.1-py2.py3-none-any.whl"
},
{
"module": "certifi",
"input_file": "wheels/py3/certifi-2022.9.24-py3-none-any.whl"
},
{
"module": "chardet",
"input_file": "wheels/shared/chardet-3.0.4-py2.py3-none-any.whl"
},
{
"module": "google_api_core",
"input_file": "wheels/py3/google_api_core-2.8.2-py3-none-any.whl"
},
{
"module": "google_auth",
"input_file": "wheels/shared/google_auth-2.13.0-py2.py3-none-any.whl"
"input_file": "wheels/shared/google_auth-2.22.0-py2.py3-none-any.whl"
},
{
"module": "google_cloud_bigquery",
Expand Down Expand Up @@ -71,17 +63,13 @@
"module": "grpcio_status",
"input_file": "wheels/py3/grpcio_status-1.48.2-py3-none-any.whl"
},
{
"module": "idna",
"input_file": "wheels/shared/idna-2.10-py2.py3-none-any.whl"
},
{
"module": "packaging",
"input_file": "wheels/py3/packaging-21.3-py3-none-any.whl"
},
{
"module": "proto_plus",
"input_file": "wheels/py3/proto_plus-1.22.1-py3-none-any.whl"
"input_file": "wheels/py3/proto_plus-1.22.3-py3-none-any.whl"
},
{
"module": "protobuf",
Expand All @@ -93,20 +81,16 @@
},
{
"module": "pyasn1_modules",
"input_file": "wheels/shared/pyasn1_modules-0.2.8-py2.py3-none-any.whl"
"input_file": "wheels/shared/pyasn1_modules-0.3.0-py2.py3-none-any.whl"
},
{
"module": "pyparsing",
"input_file": "wheels/py3/pyparsing-3.0.9-py3-none-any.whl"
"input_file": "wheels/py3/pyparsing-3.1.1-py3-none-any.whl"
},
{
"module": "python_dateutil",
"input_file": "wheels/shared/python_dateutil-2.8.2-py2.py3-none-any.whl"
},
{
"module": "requests",
"input_file": "wheels/shared/requests-2.25.0-py2.py3-none-any.whl"
},
{
"module": "rsa",
"input_file": "wheels/py3/rsa-4.7.2-py3-none-any.whl"
Expand All @@ -118,10 +102,6 @@
{
"module": "uritemplate",
"input_file": "wheels/shared/uritemplate-3.0.0-py2.py3-none-any.whl"
},
{
"module": "urllib3",
"input_file": "wheels/shared/urllib3-1.26.12-py2.py3-none-any.whl"
}
]
},
Expand Down Expand Up @@ -453,86 +433,66 @@
"module": "cachetools",
"input_file": "wheels/shared/cachetools-2.0.1-py2.py3-none-any.whl"
},
{
"module": "certifi",
"input_file": "wheels/py3/certifi-2022.9.24-py3-none-any.whl"
},
{
"module": "chardet",
"input_file": "wheels/shared/chardet-3.0.4-py2.py3-none-any.whl"
},
{
"module": "google_api_core",
"input_file": "wheels/py3/google_api_core-2.10.2-py3-none-any.whl"
"input_file": "wheels/py3/google_api_core-2.14.0-py3-none-any.whl"
},
{
"module": "google_auth",
"input_file": "wheels/shared/google_auth-2.13.0-py2.py3-none-any.whl"
"input_file": "wheels/shared/google_auth-2.25.1-py2.py3-none-any.whl"
},
{
"module": "google_cloud_bigquery",
"input_file": "wheels/shared/google_cloud_bigquery-2.31.0-py2.py3-none-any.whl"
},
{
"module": "google_cloud_core",
"input_file": "wheels/shared/google_cloud_core-2.3.2-py2.py3-none-any.whl"
"input_file": "wheels/shared/google_cloud_core-2.3.3-py2.py3-none-any.whl"
},
{
"module": "google_crc32c",
"input_file": "wheels/py39/google_crc32c-1.5.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.whl"
},
{
"module": "google_resumable_media",
"input_file": "wheels/shared/google_resumable_media-2.4.0-py2.py3-none-any.whl"
"input_file": "wheels/shared/google_resumable_media-2.6.0-py2.py3-none-any.whl"
},
{
"module": "googleapis_common_protos",
"input_file": "wheels/shared/googleapis_common_protos-1.56.4-py2.py3-none-any.whl"
"input_file": "wheels/shared/googleapis_common_protos-1.61.0-py2.py3-none-any.whl"
},
{
"module": "grpcio",
"input_file": "wheels/py39/grpcio-1.50.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl"
"input_file": "wheels/py39/grpcio-1.59.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl"
},
{
"module": "grpcio_status",
"input_file": "wheels/py3/grpcio_status-1.50.0-py3-none-any.whl"
},
{
"module": "idna",
"input_file": "wheels/shared/idna-2.10-py2.py3-none-any.whl"
"input_file": "wheels/py3/grpcio_status-1.59.3-py3-none-any.whl"
},
{
"module": "packaging",
"input_file": "wheels/py3/packaging-21.3-py3-none-any.whl"
"input_file": "wheels/py3/packaging-23.2-py3-none-any.whl"
},
{
"module": "proto_plus",
"input_file": "wheels/py3/proto_plus-1.22.1-py3-none-any.whl"
"input_file": "wheels/py3/proto_plus-1.22.3-py3-none-any.whl"
},
{
"module": "protobuf",
"input_file": "wheels/py3/protobuf-4.21.8-cp37-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl"
"input_file": "wheels/py3/protobuf-4.25.1-cp37-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl"
},
{
"module": "pyasn1",
"input_file": "wheels/shared/pyasn1-0.4.6-py2.py3-none-any.whl"
},
{
"module": "pyasn1_modules",
"input_file": "wheels/shared/pyasn1_modules-0.2.8-py2.py3-none-any.whl"
},
{
"module": "pyparsing",
"input_file": "wheels/py3/pyparsing-3.0.9-py3-none-any.whl"
"input_file": "wheels/shared/pyasn1_modules-0.3.0-py2.py3-none-any.whl"
},
{
"module": "python_dateutil",
"input_file": "wheels/shared/python_dateutil-2.8.2-py2.py3-none-any.whl"
},
{
"module": "requests",
"input_file": "wheels/shared/requests-2.25.0-py2.py3-none-any.whl"
},
{
"module": "rsa",
"input_file": "wheels/py3/rsa-4.7.2-py3-none-any.whl"
Expand All @@ -544,10 +504,6 @@
{
"module": "uritemplate",
"input_file": "wheels/shared/uritemplate-3.0.0-py2.py3-none-any.whl"
},
{
"module": "urllib3",
"input_file": "wheels/shared/urllib3-1.26.12-py2.py3-none-any.whl"
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion bigquery_connector.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# File: bigquery_connector.py
#
# Copyright (c) 2018-2022 Splunk Inc.
# Copyright (c) 2018-2023 Splunk Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion bigquery_consts.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# File: bigquery_consts.py
#
# Copyright (c) 2018-2022 Splunk Inc.
# Copyright (c) 2018-2023 Splunk Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
Loading

0 comments on commit c13156b

Please sign in to comment.