Skip to content

GCP: Cloud Run migration - #45636

Open
RotemAmit wants to merge 1 commit into
masterfrom
crtx-215177-GoogleCloudFunctions
Open

GCP: Cloud Run migration#45636
RotemAmit wants to merge 1 commit into
masterfrom
crtx-215177-GoogleCloudFunctions

Conversation

@RotemAmit

Copy link
Copy Markdown
Contributor

Contributing to Cortex XSOAR Content

Make sure to register your contribution by filling the contribution registration form

The Pull Request will be reviewed only after the contribution registration form is filled.

Status

  • In Progress
  • Ready
  • In Hold - (Reason for hold)

Related Issues

related: https://jira-dc.paloaltonetworks.com/browse/CRTX-215177

Description

Migrating the Google Cloud Functions command to the unified GCP, with the name Cloud Run Functions, as it was rebranded. Along with the usage of v2, instead of v1 which in deprecation process.

Must have

  • Tests
  • Documentation

@content-bot

Copy link
Copy Markdown
Contributor

🤖 AI-Powered Code Review Available

You can leverage AI-powered code review to assist with this PR!

Available Commands:

  • @marketplace-ai-reviewer start review - Initiate a full AI code review
  • @marketplace-ai-reviewer re-review - Incremental review for new commits

@github-actions

Copy link
Copy Markdown

Coverage

Coverage Report
FileStmtsMissCoverMissing
Packs/GCP/Integrations/GCP
   GCP.py9967892%38, 115, 144, 199, 449, 452, 535–536, 550–552, 567, 572, 609, 611, 613, 615, 617, 621, 623, 625, 629, 631, 844–846, 853–855, 897–898, 922, 926, 1003–1006, 1012–1013, 1057–1058, 1071, 1075, 1082, 1095, 1102–1105, 1285, 1382, 1469, 1609, 1641, 1674–1675, 1746, 1753, 1762, 1884, 2067–2069, 2071, 2073, 2079, 2086, 2100–2102, 2104, 2106, 2112, 2119, 2523–2524, 2867, 3032
TOTAL9967892% 

Tests Skipped Failures Errors Time
207 0 💤 0 ❌ 0 🔥 5.642s ⏱️

@content-bot

Copy link
Copy Markdown
Contributor

Validate summary
The following errors were reported as warnings: GR101, RM108, GR109, GR105, GR107, PB131, BA131, MC101, PB130, BA132, BA133, GR103.
If the AG100 validation in the pre-commit GitHub Action fails, the pull request cannot be force-merged.

Verdict: PR can be force merged from validate perspective? ✅

@content-bot

Copy link
Copy Markdown
Contributor

🔍 AI Triage Report Available

An automated triage report has been generated for this pipeline.

Status: failed
Report ID: 988c8525774770d4

📋 Triage Report
💡 Resolutions are available in the full report.

⚠️ AI-generated triage. Validate before acting.

@RotemAmit
RotemAmit marked this pull request as ready for review August 25, 2026 06:49
@RotemAmit RotemAmit added the ready-for-ai-review The PR is ready for reviewing the PR with the AI Reviewer. label Aug 25, 2026
@marketplace-ai-reviewer marketplace-ai-reviewer removed the ready-for-ai-review The PR is ready for reviewing the PR with the AI Reviewer. label Aug 25, 2026
@marketplace-ai-reviewer

Copy link
Copy Markdown
Contributor

🤖 Analysis started. Please wait for results...

@marketplace-ai-reviewer

Copy link
Copy Markdown
Contributor
🤖 AI Review Disclaimer

This review was generated by an AI-powered tool and may contain inaccuracies. Please be advised, and we extend our sincere apologies for any inconvenience this may cause.

@marketplace-ai-reviewer marketplace-ai-reviewer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hi! Thanks for your contribution to the GCP integration. I've reviewed the changes and have a few minor adjustments for you to make. Please update the pagination implementation to follow our standard argument contract, ensure all YAML descriptions start with "The " and end with a period, and add format examples to any date/time outputs. Thanks again for your hard work!

@RotemAmit please review and approve the results generated by the AI Reviewer by responding 👍 on this comment.

project_id = args.get("project_id")
# "-" is the API's wildcard for "every location".
region = args.get("region") or "-"
limit = arg_to_number(args.get("limit"))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please update the pagination implementation to follow the standard argument contract.

with the continuation token under `GCP.CloudRun.LocationsNextToken`.
"""
project_id = args.get("project_id")
limit = arg_to_number(args.get("limit"))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please update the pagination implementation to follow the standard argument contract.

required: false
- name: limit
defaultValue: '50'
description: "Maximum number of results to return. Acceptable values are 1 to 500, inclusive."

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Argument descriptions must start with "The " and end with a period.

- name: next_token
description: The token for the next set of items to return, used for pagination.
- name: filter
description: 'A filter expression for the functions listed in the response. For example, to return only active functions, use state="ACTIVE".'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Argument descriptions must start with "The " and end with a period.

description: 'The sort order of the returned functions, as a comma-separated list of fields. Append " desc" to a field to sort it in descending order. For example, name desc.'
outputs:
- contextPath: GCP.CloudRun.Functions.name
description: 'A user-defined name of the function. Function names are unique globally and match the pattern projects/*/locations/*/functions/*.'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Output descriptions must start with "The " and end with a period.

description: 'Whether the function is 1st Gen or 2nd Gen. Possible values are: ENVIRONMENT_UNSPECIFIED, GEN_1, GEN_2.'
type: String
- contextPath: GCP.CloudRun.Functions.upgradeInfo
description: Upgrade information for this function.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Output descriptions must start with "The " and end with a period.

description: The deployed URL of the function.
type: String
- contextPath: GCP.CloudRun.Functions.kmsKeyName
description: 'Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. Matches the pattern projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}.'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Output descriptions must start with "The " and end with a period.

description: 'Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. Matches the pattern projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}.'
type: String
- contextPath: GCP.CloudRun.Functions.satisfiesPzs
description: Reserved for future use.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Output descriptions must start with "The " and end with a period.

description: Reserved for future use.
type: Boolean
- contextPath: GCP.CloudRun.Functions.createTime
description: The create timestamp of the function. This is only applicable to 2nd Gen functions.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Date/time outputs must include a format example in their description.

description: The create timestamp of the function. This is only applicable to 2nd Gen functions.
type: Date
- contextPath: GCP.CloudRun.Functions.satisfiesPzi
description: Reserved for future use.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Output descriptions must start with "The " and end with a period.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants