Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
e29d194
ci: fix undefined CAIP_PROJECT_ID by exporting secrets to GITHUB_ENV …
angelcaamal Jul 9, 2026
1d8c421
feat(redis): create client side metrics for redis (#4319)
fosky94 Jul 13, 2026
38fad06
refactor: rename securitycenter list findings tag (#4380)
Kef131 Jul 14, 2026
906e305
chore(ai-platform): remove decommissioned video batch prediction samp…
angelcaamal Jul 15, 2026
cf26047
fix(dlp): resolve CommonJS compatibility issues and stabilize test (…
angelcaamal Jul 15, 2026
a3dd13b
fix(dataproc): add error handling for quota exhaustion (#4351)
angelcaamal Jul 15, 2026
a5db092
chore(vertexai): Decommission function_calling region tags (#4364)
angelcaamal Jul 15, 2026
7bf87a3
chore(vertexai): Decommission inference region tags (#4365)
angelcaamal Jul 15, 2026
5e2db28
feat(genai): add migrated functionCallingBasic sample from generative…
angelcaamal Jul 15, 2026
b8418de
chore(ai-platform): remove video action training pipeline samples (#4…
angelcaamal Jul 15, 2026
30dc2e6
chore(grounding): remove decommissioned grounding samples (#4376)
angelcaamal Jul 15, 2026
f684603
chore(ai-platform): remove decommissioned text and video dataset samp…
angelcaamal Jul 15, 2026
8af28f7
fix: update batch prediction model to gemini-2.5-flash (#4373)
angelcaamal Jul 16, 2026
d4c13c2
chore: remove obsolete gemini-translate, nonStreamingContent, and str…
angelcaamal Jul 17, 2026
ff51616
feat(genai): add migrated functionCallingStreamContent sample from ge…
angelcaamal Jul 17, 2026
034d08a
chore: decommission obsolete count tokens advanced sample (#4384)
angelcaamal Jul 21, 2026
2b54289
cleanup: remove obsolete function calling samples (#4387)
angelcaamal Jul 24, 2026
d8c246e
feat: BigQuery Storage v1beta1 API migration guide (#4352)
benhxy Jul 24, 2026
f4d2045
task: decommission legacy Vertex AI region tags under generative-ai (…
angelcaamal Jul 24, 2026
bfa3dcc
chore(generative-ai): decommission legacy Vertex AI region tags (part…
angelcaamal Jul 24, 2026
c9c8424
chore(generative-ai): decommission legacy Vertex AI region tags (part…
angelcaamal Jul 24, 2026
74ad310
fix(compute): update nodemailer and remove decommissioned smtp-transp…
angelcaamal Jul 28, 2026
a76527d
chore: remove decommissioned Vertex AI samples (#4391)
angelcaamal Jul 29, 2026
634707b
chore(generative-ai): remove decommissioned count tokens samples (#4390)
angelcaamal Jul 29, 2026
646f268
chore(generative-ai): remove decommissioned function calling samples …
angelcaamal Jul 29, 2026
2187603
chore(generative-ai): remove obsolete inference samples (#4388)
angelcaamal Jul 29, 2026
779d4c7
fix(imagemagick): bump sharp to ^0.35.3 to resolve libvips CVEs (#4392)
angelcaamal Jul 30, 2026
4c654a7
fix(ci): fix formatting and non-breaking spaces in iam-deny workflow …
angelcaamal Jul 30, 2026
793a616
fix(functions-v2-imagemagick): upgrade sharp to fix inherited libvips…
angelcaamal Jul 31, 2026
0d1cfb7
fix(run-image-processing): upgrade sharp to fix inherited libvips vul…
angelcaamal Jul 31, 2026
7de14fa
feat(storage): add samples and system tests for GCS bucket IP filteri…
thiyaguk09 Jun 12, 2026
82c81ff
feat: update storage bucket IP filter samples to preserve existing me…
thiyaguk09 Jun 12, 2026
ea52eef
feat: fetch fresh bucket metadata to display detailed IP filter infor…
thiyaguk09 Jun 12, 2026
faf2cf5
feat: update bucket IP filter logging to display current mode and saf…
thiyaguk09 Jun 12, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/workflows/ai-platform-snippets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ jobs:
secrets: |-
caip_id:nodejs-docs-samples-tests/nodejs-docs-samples-ai-platform-caip-project-id
location:nodejs-docs-samples-tests/nodejs-docs-samples-ai-platform-location
- name: Set environment variables
run: |
echo "CAIP_PROJECT_ID=${{ steps.secrets.outputs.caip_id }}" >> $GITHUB_ENV
echo "LOCATION=${{ steps.secrets.outputs.location }}" >> $GITHUB_ENV
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
with:
node-version: 16
Expand All @@ -77,6 +81,4 @@ jobs:
- name: Run Tests
run: make test dir=ai-platform/snippets
env:
GOOGLE_SAMPLES_PROJECT: "long-door-651"
LOCATION: ${{ steps.secrets.outputs.location }}
CAIP_PROJECT_ID: ${{ steps.secrets.outputs.caip_id }}
GOOGLE_SAMPLES_PROJECT: "long-door-651"
90 changes: 50 additions & 40 deletions .github/workflows/iam-deny.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,26 @@
# See the License for the specific language governing permissions and
# limitations under the License.


name: iam-deny
on:
push:
branches:
- main
- main
paths:
- 'iam/deny/**'
- '.github/workflows/iam-deny.yaml'
- 'iam/deny/**'
- '.github/workflows/iam-deny.yaml'
pull_request:
types:
- opened
- reopened
- synchronize
- labeled
- opened
- reopened
- synchronize
- labeled
paths:
- 'iam/deny/**'
- '.github/workflows/iam-deny.yaml'
- 'iam/deny/**'
- '.github/workflows/iam-deny.yaml'
schedule:
- cron: '0 0 * * 0'
- cron: '0 0 * * 0'

jobs:
test:
permissions:
Expand All @@ -44,38 +44,48 @@ jobs:
run:
working-directory: 'iam/deny'
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
ref: ${{github.event.pull_request.head.sha}}
- uses: 'google-github-actions/auth@7c6bc770dae815cd3e89ee6cdf493a5fab2cc093' # v3.0.0
with:
workload_identity_provider: 'projects/949737848314/locations/global/workloadIdentityPools/iam-deny-test-pool/providers/iam-deny-test-provider'
service_account: 'kokoro-ca@isakovf-iam-deny-samples.iam.gserviceaccount.com'
create_credentials_file: 'true'
access_token_lifetime: 600s
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
with:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
ref: ${{ github.event.pull_request.head.sha }}

- uses: 'google-github-actions/auth@7c6bc770dae815cd3e89ee6cdf493a5fab2cc093' # v3.0.0
with:
workload_identity_provider: 'projects/949737848314/locations/global/workloadIdentityPools/iam-deny-test-pool/providers/iam-deny-test-provider'
service_account: 'kokoro-ca@isakovf-iam-deny-samples.iam.gserviceaccount.com'
create_credentials_file: 'true'
access_token_lifetime: 600s

- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
with:
node-version: 16
- name: Get npm cache directory
id: npm-cache-dir
shell: bash
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
- uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4
id: npm-cache
with:

- name: Get npm cache directory
id: npm-cache-dir
shell: bash
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}

- uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
id: npm-cache
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: "${{ runner.os }}-node- \n"
- name: install repo dependencies
run: npm install
working-directory: .
- name: install directory dependencies
run: npm install
- run: npm run build --if-present
- name: set env vars for scheduled run
if: github.event.action == 'schedule'
run: |
restore-keys: |
${{ runner.os }}-node-

- name: install repo dependencies
run: npm install
working-directory: .

- name: install directory dependencies
run: npm install

- run: npm run build --if-present

- name: set env vars for scheduled run
if: github.event.action == 'schedule'
run: |
echo "MOCHA_REPORTER_SUITENAME=iam-deny" >> $GITHUB_ENV
echo "MOCHA_REPORTER_OUTPUT=${{github.run_id}}_sponge_log.xml" >> $GITHUB_ENV
echo "MOCHA_REPORTER=xunit" >> $GITHUB_ENV
- run: npm test

- run: npm test
1 change: 1 addition & 0 deletions CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ document-warehouse @GoogleCloudPlatform/nodejs-samples-reviewers @GoogleCloudPla
# Self-service
ai-platform @GoogleCloudPlatform/nodejs-samples-reviewers @GoogleCloudPlatform/text-embedding @GoogleCloudPlatform/cloud-samples-reviewers
asset @GoogleCloudPlatform/cloud-asset-analysis-team @GoogleCloudPlatform/nodejs-samples-reviewers @GoogleCloudPlatform/cloud-samples-reviewers
bigquery @GoogleCloudPlatform/bigquery-readapi-team @GoogleCloudPlatform/nodejs-samples-reviewers @GoogleCloudPlatform/cloud-samples-reviewers
dlp @GoogleCloudPlatform/googleapis-dlp @GoogleCloudPlatform/nodejs-samples-reviewers @GoogleCloudPlatform/cloud-samples-reviewers
model-armor @GoogleCloudPlatform/nodejs-samples-reviewers @GoogleCloudPlatform/cloud-samples-reviewers @GoogleCloudPlatform/cloud-modelarmor-team
security-center @GoogleCloudPlatform/gcp-security-command-center @GoogleCloudPlatform/nodejs-samples-reviewers @GoogleCloudPlatform/cloud-samples-reviewers
Expand Down
2 changes: 1 addition & 1 deletion ai-platform/snippets/batch-prediction/batch-predict-bq.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ async function main(projectId, outputUri) {
'bq://storage-samples.generative_ai.batch_requests_for_multimodal_input';
const location = 'us-central1';
const parent = `projects/${projectId}/locations/${location}`;
const modelName = `${parent}/publishers/google/models/gemini-2.0-flash-001`;
const modelName = `${parent}/publishers/google/models/gemini-2.5-flash`;

// Specify the location of the api endpoint.
const clientOptions = {
Expand Down
2 changes: 1 addition & 1 deletion ai-platform/snippets/batch-prediction/batch-predict-gcs.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ async function main(projectId, outputUri) {
'gs://cloud-samples-data/generative-ai/batch/batch_requests_for_multimodal_input.jsonl';
const location = 'us-central1';
const parent = `projects/${projectId}/locations/${location}`;
const modelName = `${parent}/publishers/google/models/gemini-2.0-flash-001`;
const modelName = `${parent}/publishers/google/models/gemini-2.5-flash`;

// Specify the location of the api endpoint.
const clientOptions = {
Expand Down

This file was deleted.

This file was deleted.

Loading