Skip to content

Commit 6d11407

Browse files
thomhurstthomhurst
andauthored
chore: Update gcloud CLI options (#2759)
Co-authored-by: thomhurst <9139608+thomhurst@users.noreply.github.com>
1 parent 81ef6cf commit 6d11407

16 files changed

Lines changed: 170 additions & 71 deletions

src/ModularPipelines.Google/AssemblyInfo.Generated.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
using System.Reflection;
77

88
[assembly: AssemblyMetadata("ModularPipelines.OptionsGenerator.Tool", "gcloud")]
9-
[assembly: AssemblyMetadata("ModularPipelines.OptionsGenerator.GeneratedAt", "2026-05-31T03:52:44.6508261Z")]
9+
[assembly: AssemblyMetadata("ModularPipelines.OptionsGenerator.GeneratedAt", "2026-06-07T03:54:10.0656324Z")]

src/ModularPipelines.Google/Enums/GcloudUpdateRedisConfig.Generated.cs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,24 @@ namespace ModularPipelines.Google.Enums;
1414
[GeneratedCode("ModularPipelines.OptionsGenerator", "")]
1515
public enum GcloudUpdateRedisConfig
1616
{
17-
[Description("friday")]
18-
Friday,
17+
[Description("SUNDAY")]
18+
Sunday,
1919

20-
[Description("monday")]
20+
[Description("MONDAY")]
2121
Monday,
2222

23-
[Description("saturday")]
24-
Saturday,
23+
[Description("TUESDAY")]
24+
Tuesday,
2525

26-
[Description("sunday")]
27-
Sunday,
26+
[Description("WEDNESDAY")]
27+
Wednesday,
2828

29-
[Description("thursday")]
29+
[Description("THURSDAY")]
3030
Thursday,
3131

32-
[Description("tuesday")]
33-
Tuesday,
32+
[Description("FRIDAY")]
33+
Friday,
3434

35-
[Description("wednesday")]
36-
Wednesday
35+
[Description("SATURDAY")]
36+
Saturday
3737
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// <auto-generated>
2+
// This file was generated by ModularPipelines.OptionsGenerator.
3+
// Do not edit this file manually.
4+
// </auto-generated>
5+
6+
using System.CodeDom.Compiler;
7+
using System.ComponentModel;
8+
9+
namespace ModularPipelines.Google.Enums;
10+
11+
/// <summary>
12+
/// Allowed values for --workermincpuplatform.
13+
/// </summary>
14+
[GeneratedCode("ModularPipelines.OptionsGenerator", "")]
15+
public enum GcloudWorkerMinCpuPlatform
16+
{
17+
[Description("SEV")]
18+
Sev,
19+
20+
[Description("SEV_SNP")]
21+
SevSnp,
22+
23+
[Description("TDX")]
24+
Tdx
25+
}

src/ModularPipelines.Google/Options/GcloudComputeBackendServicesUpdateOptions.Generated.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public record GcloudComputeBackendServicesUpdateOptions(
157157
public IEnumerable<string>? HttpsHealthChecks { get; set; }
158158

159159
/// <summary>
160-
/// Change the Identity Aware Proxy (IAP) service configuration for the backend service. You can set IAP to 'enabled' or 'disabled', or modify the OAuth2 client configuration (oauth2-client-id and oauth2-client-secret) used by IAP. If any fields are unspecified, their values will not be modified. For instance, if IAP is enabled, '--iap=disabled' will disable IAP, and a subsequent '--iap=enabled' will then enable it with the same OAuth2 client configuration as the first time it was enabled. See https://cloud.google.com/iap/ for more information about this feature.
160+
/// Change the Identity Aware Proxy (IAP) service configuration for the backend service. You can set IAP to 'enabled' or 'disabled', or modify the OAuth2 client configuration (oauth2-client-id and oauth2-client-secret) used by IAP. If any fields are unspecified, their values will not be modified. For instance, if IAP is enabled, '--iap=disabled' will disable IAP, and a subsequent '--iap=enabled' will then enable it with the same OAuth2 client configuration as the first time it was enabled. To clear the OAuth2 client ID and secret, set their values to a single space character (e.g., '--iap=enabled,oauth2-client-id=" ",oauth2-client-secret=" "'). Setting them to empty strings will result in an error. Example output of gcloud compute backend-services describe after clearing: iap: enabled: true oauth2ClientId: ' ' See https://cloud.google.com/iap/ for more information about this feature.
161161
/// </summary>
162162
[CliOption("--iap", Format = OptionFormat.EqualsSeparated)]
163163
public string? Iap { get; set; }

src/ModularPipelines.Google/Options/GcloudDataprocClustersCreateOptions.Generated.cs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,6 @@ public record GcloudDataprocClustersCreateOptions : GcloudOptions
5353
[CliOption("--cluster-type", Format = OptionFormat.EqualsSeparated)]
5454
public GcloudClusterType? ClusterType { get; set; }
5555

56-
/// <summary>
57-
/// Enables Confidential VM. See https://cloud.google.com/compute/confidential-vm/docs for more information. Note that Confidential VM can only be enabled when the machine types are N2D (https://cloud.google.com/compute/docs/machine-types#n2d_machine_types) and the image is SEV Compatible.
58-
/// </summary>
59-
[CliFlag("--confidential-compute")]
60-
public bool? ConfidentialCompute { get; set; }
61-
6256
/// <summary>
6357
/// Specify the name of a Dataproc Metastore service to be used as an external metastore in the format: "projects/{project-id}/locations/{region}/services/{service-name}".
6458
/// </summary>
@@ -381,10 +375,10 @@ public record GcloudDataprocClustersCreateOptions : GcloudOptions
381375
public string? WorkerLocalSsdInterface { get; set; }
382376

383377
/// <summary>
384-
/// When specified, the VM is scheduled on the host with a specified CPU architecture or a more recent CPU platform that's available in that zone. To list available CPU platforms in a zone, run: $ gcloud compute zones describe ZONE CPU platform selection may not be available in a zone. Zones that support CPU platform selection provide an availableCpuPlatforms field, which contains the list of available CPU platforms in the zone (see Availability of CPU platforms for more information). At most one of these can be specified: --auto-zone-exclude-zones=[ZONE,...] A comma-separated list of compute zones (such as us-central1-a) to exclude when Dataproc Auto Zone placement (https://docs.cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone) picks the zone for the cluster. --zone=ZONE, -z ZONE The compute zone (such as us-central1-a) for the cluster. If empty and --region is set to a value other than global, Dataproc Auto Zone placement (https://docs.cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone) will pick a zone in the region. Overrides the default compute/zone property value for this command invocation. At most one of these can be specified: --delete-expiration-time=DELETE_EXPIRATION_TIME The time when the cluster will be auto-deleted, such as "2017-08-29T18:52:51.142Z." See $ gcloud topic datetimes for information on time formats. --delete-max-age=DELETE_MAX_AGE The lifespan of the cluster, with auto-deletion upon completion, such as "2h" or "1d". See $ gcloud topic datetimes for information on duration formats. Key resource - The Cloud KMS (Key Management Service) cryptokey that will be used to protect the cluster. The 'Compute Engine Service Agent' service account must hold permission 'Cloud KMS CryptoKey Encrypter/Decrypter'. The arguments in this group can be used to specify the attributes of this resource.
378+
/// When specified, the VM is scheduled on the host with a specified CPU architecture or a more recent CPU platform that's available in that zone. To list available CPU platforms in a zone, run: $ gcloud compute zones describe ZONE CPU platform selection may not be available in a zone. Zones that support CPU platform selection provide an availableCpuPlatforms field, which contains the list of available CPU platforms in the zone (see Availability of CPU platforms for more information). At most one of these can be specified: --auto-zone-exclude-zones=[ZONE,...] A comma-separated list of compute zones (such as us-central1-a) to exclude when Dataproc Auto Zone placement (https://docs.cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone) picks the zone for the cluster. --zone=ZONE, -z ZONE The compute zone (such as us-central1-a) for the cluster. If empty and --region is set to a value other than global, Dataproc Auto Zone placement (https://docs.cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone) will pick a zone in the region. Overrides the default compute/zone property value for this command invocation. At most one of these can be specified: --confidential-compute (DEPRECATED) Enables Confidential VM. See https://cloud.google.com/confidential-computing/confidential-vm/docs/ for more information. This flag uses AMD SEV confidential compute technology, which is only supported on N2D, C2D, C3D, and C4D machine types (https://cloud.google.com/compute/docs/machine-types). The --confidential-compute flag is deprecated. Please use --confidential-compute-type=SEV instead. --confidential-compute-type=CONFIDENTIAL_COMPUTE_TYPE Enables Confidential VM. See https://cloud.google.com/confidential-computing/confidential-vm/docs/ for more information. This flag specifies the type of Confidential Compute technology. See https://cloud.google.com/confidential-computing/confidential-vm/docs/supported-configurations#machine-type-cpu-zone for each machine type supported by Confidential Compute technology. CONFIDENTIAL_COMPUTE_TYPE must be one of: SEV, SEV_SNP, TDX. At most one of these can be specified: --delete-expiration-time=DELETE_EXPIRATION_TIME The time when the cluster will be auto-deleted, such as "2017-08-29T18:52:51.142Z." See $ gcloud topic datetimes for information on time formats. --delete-max-age=DELETE_MAX_AGE The lifespan of the cluster, with auto-deletion upon completion, such as "2h" or "1d". See $ gcloud topic datetimes for information on duration formats. Key resource - The Cloud KMS (Key Management Service) cryptokey that will be used to protect the cluster. The 'Compute Engine Service Agent' service account must hold permission 'Cloud KMS CryptoKey Encrypter/Decrypter'. The arguments in this group can be used to specify the attributes of this resource.
385379
/// </summary>
386380
[CliOption("--worker-min-cpu-platform", Format = OptionFormat.EqualsSeparated)]
387-
public string? WorkerMinCpuPlatform { get; set; }
381+
public GcloudWorkerMinCpuPlatform? WorkerMinCpuPlatform { get; set; }
388382

389383
/// <summary>
390384
/// ID of the key or fully qualified identifier for the key. To set the kms-key attribute: ◆ provide the argument --gce-pd-kms-key on the command line. This flag argument must be specified if any of the other arguments in this group are specified.

src/ModularPipelines.Google/Options/GcloudDataprocWorkflowTemplatesSetManagedClusterOptions.Generated.cs

Lines changed: 2 additions & 8 deletions
Large diffs are not rendered by default.

src/ModularPipelines.Google/Options/GcloudDatastreamObjectsStartBackfillOptions.Generated.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,10 @@ namespace ModularPipelines.Google.Options;
2121
[CliSubCommand("datastream", "objects", "start-backfill")]
2222
public record GcloudDatastreamObjectsStartBackfillOptions : GcloudOptions
2323
{
24+
/// <summary>
25+
/// A SQL-query WHERE clause selecting which data should be included, not including the "WHERE" keyword itself. e.g., t.key1 = 'value1' AND t.key2 = 'value2'. Only supported for SQL sources.
26+
/// </summary>
27+
[CliOption("--sql-where-clause", Format = OptionFormat.EqualsSeparated)]
28+
public string? SqlWhereClause { get; set; }
29+
2430
}

src/ModularPipelines.Google/Options/GcloudNetappBackupVaultsBackupsCreateOptions.Generated.cs

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
using System.Diagnostics.CodeAnalysis;
1111
using ModularPipelines.Attributes;
1212
using ModularPipelines.Google.Options;
13-
using ModularPipelines.Models;
1413

1514
namespace ModularPipelines.Google.Options;
1615

@@ -22,40 +21,4 @@ namespace ModularPipelines.Google.Options;
2221
[CliSubCommand("netapp", "backup-vaults", "backups", "create")]
2322
public record GcloudNetappBackupVaultsBackupsCreateOptions : GcloudOptions
2423
{
25-
/// <summary>
26-
/// Return immediately, without waiting for the operation in progress to complete. Backup vault resource - The Backup Vault that the Backup is stored in This represents a Cloud resource. (NOTE) Some attributes are not given arguments in this group but can be set in other ways. To set the project attribute: ◆ provide the argument --backup-vault on the command line with a fully specified name; ◆ provide the argument --project on the command line; ◆ set the property core/project. To set the location attribute: ◆ provide the argument --backup-vault on the command line with a fully specified name; ◆ provide the argument --location on the command line; ◆ set the property netapp/location.
27-
/// </summary>
28-
[CliFlag("--async")]
29-
public bool? Async { get; set; }
30-
31-
/// <summary>
32-
/// ID of the backup_vault or fully qualified identifier for the backup_vault. To set the backup_vault attribute: ◆ provide the argument --backup-vault on the command line.
33-
/// </summary>
34-
[CliOption("--backup-vault", Format = OptionFormat.EqualsSeparated)]
35-
public string? BackupVault { get; set; }
36-
37-
/// <summary>
38-
/// A description of the Cloud NetApp Backup Vault
39-
/// </summary>
40-
[CliOption("--description", Format = OptionFormat.EqualsSeparated)]
41-
public string? Description { get; set; }
42-
43-
/// <summary>
44-
/// List of label KEY=VALUE pairs to add. Keys must start with a lowercase character and contain only hyphens (-), underscores (_), lowercase characters, and numbers. Values must contain only hyphens (-), underscores (_), lowercase characters, and numbers. Snapshot resource - The full name of the Source Snapshot that the Backup is based on', Format: projects/{project_id}/locations/{location}/volumes/{volume_id}/snapshots/{snapshot_id} This represents a Cloud resource. (NOTE) Some attributes are not given arguments in this group but can be set in other ways. To set the project attribute: ◆ provide the argument --source-snapshot on the command line with a fully specified name; ◆ provide the argument --project on the command line; ◆ set the property core/project. To set the location attribute: ◆ provide the argument --source-snapshot on the command line with a fully specified name; ◆ set the property netapp/location. To set the volume attribute: ◆ provide the argument --source-snapshot on the command line with a fully specified name.
45-
/// </summary>
46-
[CliOption("--labels", Format = OptionFormat.EqualsSeparated, AllowMultiple = true)]
47-
public KeyValue[]? Labels { get; set; }
48-
49-
/// <summary>
50-
/// ID of the snapshot or fully qualified identifier for the snapshot. To set the snapshot attribute: ◆ provide the argument --source-snapshot on the command line. Volume resource - The full name of the Source Volume that the Backup is based on', Format: projects/{projects_id}/locations/{location}/volumes/{volume_id} This represents a Cloud resource. (NOTE) Some attributes are not given arguments in this group but can be set in other ways. To set the project attribute: ◆ provide the argument --source-volume on the command line with a fully specified name; ◆ provide the argument --volume on the command line with a fully specified name; ◆ provide the argument --project on the command line; ◆ set the property core/project. To set the location attribute: ◆ provide the argument --source-volume on the command line with a fully specified name; ◆ provide the argument --volume on the command line with a fully specified name; ◆ provide the argument --location on the command line; ◆ set the property netapp/location.
51-
/// </summary>
52-
[CliOption("--source-snapshot", Format = OptionFormat.EqualsSeparated)]
53-
public string? SourceSnapshot { get; set; }
54-
55-
/// <summary>
56-
/// ID of the volume or fully qualified identifier for the volume. To set the volume attribute: ◆ provide the argument --source-volume on the command line; ◆ provide the argument --volume on the command line.
57-
/// </summary>
58-
[CliOption("--source-volume", Format = OptionFormat.EqualsSeparated)]
59-
public string? SourceVolume { get; set; }
60-
6124
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// <auto-generated>
2+
// This file was generated by ModularPipelines.OptionsGenerator.
3+
// Source: https://cloud.google.com/sdk/gcloud/reference/netapp/storage-pools/list-backup-configs
4+
// Do not edit this file manually.
5+
// </auto-generated>
6+
7+
#nullable enable
8+
9+
using System.CodeDom.Compiler;
10+
using System.Diagnostics.CodeAnalysis;
11+
using ModularPipelines.Attributes;
12+
using ModularPipelines.Google.Options;
13+
14+
namespace ModularPipelines.Google.Options;
15+
16+
/// <summary>
17+
/// list backup configurations for all volumes in an ONTAP-mode Storage Pool
18+
/// </summary>
19+
[GeneratedCode("ModularPipelines.OptionsGenerator", "")]
20+
[ExcludeFromCodeCoverage]
21+
[CliSubCommand("netapp", "storage-pools", "list-backup-configs")]
22+
public record GcloudNetappStoragePoolsListBackupConfigsOptions : GcloudOptions
23+
{
24+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// <auto-generated>
2+
// This file was generated by ModularPipelines.OptionsGenerator.
3+
// Source: https://cloud.google.com/sdk/gcloud/reference/netapp/storage-pools/restore-volume
4+
// Do not edit this file manually.
5+
// </auto-generated>
6+
7+
#nullable enable
8+
9+
using System.CodeDom.Compiler;
10+
using System.Diagnostics.CodeAnalysis;
11+
using ModularPipelines.Attributes;
12+
using ModularPipelines.Google.Options;
13+
14+
namespace ModularPipelines.Google.Options;
15+
16+
/// <summary>
17+
/// restore a backup to a volume in a specified ONTAP-mode Storage Pool
18+
/// </summary>
19+
[GeneratedCode("ModularPipelines.OptionsGenerator", "")]
20+
[ExcludeFromCodeCoverage]
21+
[CliSubCommand("netapp", "storage-pools", "restore-volume")]
22+
public record GcloudNetappStoragePoolsRestoreVolumeOptions : GcloudOptions
23+
{
24+
}

0 commit comments

Comments
 (0)