{
  "slug": "gcloud-storage-batch-operations-jobs-create-adds-storage-class-rewriting-bdf0378aaab4",
  "title": "gcloud storage batch-operations jobs create adds storage-class rewriting",
  "tools": [
    "gcloud"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-03-24T00:00:00.000Z",
  "announced_at": "2026-03-24T00:00:00.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When creating a batch job to rewrite object storage classes, use `--rewrite-object=storage-class=<STORAGE_CLASS>` with the job’s bucket and object-selection arguments.",
    "examples": [
      "gcloud storage batch-operations jobs create <JOB_ID> --bucket=<BUCKET> --included-object-prefixes=<PREFIX> --rewrite-object=storage-class=<STORAGE_CLASS>",
      "gcloud storage batch-operations jobs create <JOB_ID> --bucket=<BUCKET> --manifest-location=<MANIFEST_URI> --rewrite-object=storage-class=<STORAGE_CLASS>"
    ],
    "gotchas": [
      "--rewrite-object=storage-class=<STORAGE_CLASS> (required): Rewrites objects to the specified class. Supported values: STANDARD, NEARLINE, COLDLINE, ARCHIVE. A metadata field must be specified.",
      "--bucket=<BUCKET> (required): Bucket containing the objects to process; use either this or `--bucket-list`.",
      "--included-object-prefixes=<PREFIX> (required): Selects objects by prefix; use this or `--manifest-location`.",
      "--manifest-location=<MANIFEST_URI> (required): Selects objects using a manifest; use this or `--included-object-prefixes`.",
      "Prerequisite: Configure Storage Intelligence on the bucket where the job will run.",
      "Prerequisite: For storage-class changes through rewrite, required permissions are `storage.objects.create`, `storage.objects.delete`, `storage.objects.get`, and `storage.objects.list`."
    ]
  },
  "why_it_matters": "Rewrite object storage classes in a batch-operations job.",
  "sources": [
    "https://docs.cloud.google.com/sdk/docs/release-notes#56200_2026-03-24",
    "https://docs.cloud.google.com/sdk/gcloud/reference/storage/batch-operations/jobs/create",
    "https://docs.cloud.google.com/storage/docs/batch-operations/create-manage-batch-operation-jobs",
    "https://docs.cloud.google.com/storage/docs/changing-storage-classes"
  ],
  "rank": 0.94026,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v1+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "cloud-20261008",
    "verdict_id": "cloud-20261008:cloud-20261008-5dfc56a5662d833f-9:gate",
    "evidence_hash": "ea8359a0f061776797b5be87b0e0c319fe95f45bf021d553dafb58809c26aec9"
  },
  "review": {
    "draft_hash": "66db0eba941c1dce4318cce7154a6cb5ca684bd45c614d1487e0e719dcf164f8",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "cloud-20261008:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.94 >= 0.9; 2 needed) and Jev gave 0.65 (>= 0.6 needed)."
  }
}
