Skip to content

[Automated] Update gcloud CLI Options#2759

Merged
thomhurst merged 1 commit into
mainfrom
automated/update-cli-options-gcloud
Jun 7, 2026
Merged

[Automated] Update gcloud CLI Options#2759
thomhurst merged 1 commit into
mainfrom
automated/update-cli-options-gcloud

Conversation

@thomhurst
Copy link
Copy Markdown
Owner

Summary

This PR contains automatically generated updates to gcloud CLI options classes.

The generator scraped the latest CLI help output from the installed tool.

Changes

  • Updated options classes to reflect latest CLI documentation
  • Added new commands if any were detected
  • Updated option types and descriptions

Verification

  • Solution builds successfully

🤖 Generated with ModularPipelines.OptionsGenerator

@thomhurst thomhurst added automated dependencies Pull requests that update a dependency file labels Jun 7, 2026
@thomhurst thomhurst enabled auto-merge (squash) June 7, 2026 03:55
Copy link
Copy Markdown

@claude claude Bot left a comment

Choose a reason for hiding this comment

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

Code Review: [Automated] Update gcloud CLI Options

Overview

This automated PR syncs the ModularPipelines.Google package with the latest gcloud CLI help output. The generator scraped the installed CLI and regenerated affected options classes. The code generation tooling is working correctly overall, but there are a few issues worth flagging.


Issues & Concerns

1. Breaking Change: GcloudNetappBackupVaultsBackupsCreateOptions — All Properties Removed

File: GcloudNetappBackupVaultsBackupsCreateOptions.Generated.cs

Six properties were removed (Async, BackupVault, Description, Labels, SourceSnapshot, SourceVolume), leaving the class completely empty. This is a hard breaking change — any consumer using these properties will fail to compile.

Concern: If gcloud truly removed these flags from the netapp backup-vaults backups create command, this is correct. But if the generator failed to parse them (e.g., due to a help text format change), real options are silently missing. It's worth manually verifying against the live CLI:

gcloud netapp backup-vaults backups create --help

2. Missing Replacement for Deprecated ConfidentialCompute Flag

Files: GcloudDataprocClustersCreateOptions, GcloudDataprocWorkflowTemplatesSetManagedClusterOptions

The deprecated --confidential-compute bool property was removed, but its documented replacement — --confidential-compute-type=CONFIDENTIAL_COMPUTE_TYPE (accepting SEV, SEV_SNP, TDX) — was not added. The new GcloudWorkerMinCpuPlatform enum (SEV/SEV_SNP/TDX) exists and maps directly to those values.

A better approach would be to:

  1. Keep ConfidentialCompute marked [Obsolete("Use ConfidentialComputeType instead.")] rather than deleting it
  2. Add a new ConfidentialComputeType property using the same GcloudWorkerMinCpuPlatform enum (or a dedicated enum)

This gives consumers a migration path and makes the new capability discoverable.

3. Breaking Change: GcloudUpdateRedisConfig — Description Values Changed Case

File: GcloudUpdateRedisConfig.Generated.cs

The [Description] attribute values changed from lowercase ("monday") to UPPERCASE ("MONDAY"). If the framework uses these Description values to serialize the enum to the actual CLI flag value (which is the expected behavior given the attribute name and [CliOption] usage), then this is correct and necessary — gcloud now accepts uppercase values.

However, it is still a breaking change for any consumer who was matching on the Description string manually, and the enum member ordering also changed (now Sunday...Saturday vs. previous alphabetical order). Worth noting in a changelog entry.

4. Potentially Incomplete New Options Classes

Files:

  • GcloudNetappStoragePoolsListBackupConfigsOptions
  • GcloudNetappStoragePoolsRestoreVolumeOptions
  • GcloudNetappStoragePoolsUpdateBackupConfigOptions

All three new options classes are completely empty (no properties beyond the inherited base). For restore-volume in particular, the command clearly requires identifying a storage pool and a backup — the generator may have failed to detect required parameters. Please verify:

gcloud netapp storage-pools restore-volume --help
gcloud netapp storage-pools update-backup-config --help
gcloud netapp storage-pools list-backup-configs --help

5. Minor: Duplicate using Statement in New Files

All three new options files contain:

using ModularPipelines.Google.Options;
...
namespace ModularPipelines.Google.Options;

The using is redundant since the class is already in that namespace. This is a generator issue worth fixing to keep the output clean.


Positive Changes

  • Type safety improvement: WorkerMinCpuPlatform promoted from string? to GcloudWorkerMinCpuPlatform? — this is exactly the right direction, prevents invalid values from reaching the CLI.
  • New service methods: ListBackupConfigs, RestoreVolume, and UpdateBackupConfig added to GcloudNetappStoragePools with consistent signatures matching the rest of the service class.
  • Updated XML docs: The IAP option and security profile group docs now include better guidance on clearing OAuth2 credentials and resource type constraints.
  • Generator architecture: Using [Description] attributes for CLI serialization, [ExcludeFromCodeCoverage], and the auto-generated header comments all follow the established conventions correctly.

Summary

The main concern is around the missing --confidential-compute-type property and whether the empty GcloudNetappBackupVaultsBackupsCreateOptions is the result of a generator parsing failure vs. an actual API change. Both are worth confirming against the live CLI before merging.

@codacy-production
Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity

Metric Results
Complexity 0 (≤ 20 complexity)

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@thomhurst thomhurst merged commit 6d11407 into main Jun 7, 2026
11 of 12 checks passed
@thomhurst thomhurst deleted the automated/update-cli-options-gcloud branch June 7, 2026 04:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automated dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant