Skip to content

Commit a7be2a5

Browse files
thomhurstthomhurst
andauthored
chore: Update gcloud CLI options (#2578)
Co-authored-by: thomhurst <9139608+thomhurst@users.noreply.github.com>
1 parent a6539b3 commit a7be2a5

103 files changed

Lines changed: 2447 additions & 64 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

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-04-26T03:45:21.8834943Z")]
9+
[assembly: AssemblyMetadata("ModularPipelines.OptionsGenerator.GeneratedAt", "2026-05-03T03:56:05.4249838Z")]
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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 --concurrencymode.
13+
/// </summary>
14+
[GeneratedCode("ModularPipelines.OptionsGenerator", "")]
15+
public enum GcloudConcurrencyMode
16+
{
17+
[Description("optimistic")]
18+
Optimistic,
19+
20+
[Description("pessimistic")]
21+
Pessimistic
22+
}

src/ModularPipelines.Google/Extensions/GcloudExtensions.Generated.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ public static IServiceCollection RegisterGcloudContext(this IServiceCollection s
156156
services.TryAddScoped<GcloudVmware>();
157157
services.TryAddScoped<GcloudWorkbench>();
158158
services.TryAddScoped<GcloudWorkflows>();
159+
services.TryAddScoped<GcloudWorkloadidentity>();
159160
services.TryAddScoped<GcloudWorkspaceaddons>();
160161
services.TryAddScoped<GcloudWorkstations>();
161162
return services;

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,6 @@ public record GcloudBeyondcorpSecurityGatewaysCreateOptions : GcloudOptions
3939
[CliOption("--hubs", Format = OptionFormat.EqualsSeparated, AllowMultiple = true)]
4040
public IEnumerable<string>? Hubs { get; set; }
4141

42-
/// <summary>
43-
/// Configuration for Cloud Logging. Shorthand Example: --logging= JSON Example: --logging={} File Example: --logging=path_to_file.(yaml|json)
44-
/// </summary>
45-
[CliOption("--logging", Format = OptionFormat.EqualsSeparated, AllowMultiple = true)]
46-
public IEnumerable<string>? Logging { get; set; }
47-
4842
/// <summary>
4943
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. The configuration for the proxy.
5044
/// </summary>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public record GcloudBeyondcorpSecurityGatewaysUpdateOptions : GcloudOptions
3434
public string? DisplayName { get; set; }
3535

3636
/// <summary>
37-
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request timed out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). Set the value of googleCloudBeyondcorpSecuritygatewaysV1SecurityGateway.logging by using flag [logging] or flags []. At most one of these can be specified: Configuration for Cloud Logging. --clear-logging Set googleCloudBeyondcorpSecuritygatewaysV1SecurityGateway.logging back to default value. --logging=[LOGGING,...] Configuration for Cloud Logging. Shorthand Example: --logging= JSON Example: --logging={} File Example: --logging=path_to_file.(yaml|json) The configuration for the proxy.
37+
/// An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request timed out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). The configuration for the proxy.
3838
/// </summary>
3939
[CliOption("--request-id", Format = OptionFormat.EqualsSeparated)]
4040
public string? RequestId { get; set; }

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public record GcloudBiglakeIcebergCatalogsUpdateOptions : GcloudOptions
2626
public string? CredentialMode { get; set; }
2727

2828
/// <summary>
29-
/// Description of the resource being created.
29+
/// Description of the resource.
3030
/// </summary>
3131
[CliOption("--description", Format = OptionFormat.EqualsSeparated)]
3232
public string? Description { get; set; }

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public record GcloudBigtableInstancesTablesUpdateOptions : GcloudOptions
3434
public bool? DeletionProtection { get; set; }
3535

3636
/// <summary>
37-
/// By default, Base64 encoding is applied to all binary fields in the YAML/JSON file (for example, encoding.delimitedBytes.delimiter). Use this to indicate that all binary fields are already encoded in the YAML/JSON file and should not be encoded again. This field is only used when row-key-schema-definition-file is set. It is ignored if clear-row-key-schema is set. At most one of these can be specified: --automated-backup-retention-period=AUTOMATED_BACKUP_RETENTION_PERIOD The retention period of automated backup in the format of 30d for 30 days. Min retention period is 3d and max is 90d. Setting this flag will enable automated backup for the table. --disable-automated-backup Once set, disables automated backup policy for the table. --enable-automated-backup Once set, enables the default automated backup policy (retention_period=7d, frequency=1d) for the table. Note: If a table has automated backup enabled, this flag resets it to the default policy. At most one of these can be specified: --change-stream-retention-period=CHANGE_STREAM_RETENTION_PERIOD The length of time to retain change stream data for the table, in the range of [1 day, 7 days]. Acceptable units are days (d), hours (h), minutes (m), and seconds (s). If not already specified, enables a change stream for the table. Examples: 5d or 48h. --clear-change-stream-retention-period This disables the change stream and eventually removes the change stream data. Whether to update or clear the row key schema in the updated table. Only one of these flags can be set. At most one of these can be specified: --clear-row-key-schema Whether to clear the row key schema in the updated table. --row-key-schema-definition-file=ROW_KEY_SCHEMA_DEFINITION_FILE The row key schema for the table. The schema is defined in a YAML or JSON file, equivalent to the StructType protobuf message. Example YAML: encoding: delimitedBytes: delimiter: '#' fields: - fieldName: field1 type: bytesType: encoding: raw: {} - fieldName: field2 type: bytesType: encoding: raw: {}
37+
/// By default, Base64 encoding is applied to all binary fields in the YAML/JSON file (for example, encoding.delimitedBytes.delimiter). Use this to indicate that all binary fields are already encoded in the YAML/JSON file and should not be encoded again. This field is only used when row-key-schema-definition-file is set. It is ignored if clear-row-key-schema is set. At most one of these can be specified: Group for automated backup policy parameters. --automated-backup-retention-period=AUTOMATED_BACKUP_RETENTION_PERIOD The retention period of automated backup in the format of 30d for 30 days. Min retention period is 3d and max is 90d. Setting this flag will enable automated backup for the table. At most one of these can be specified: --automated-backup-locations=[LOCATION,...] List of Cloud Bigtable zones where automated backups are allowed to be created. If empty, automated backups will be created in all zones of the instance. Locations are in the format projects/{project}/locations/{zone}. Setting this flag will enable automated backup for the table. --clear-automated-backup-locations Empty the automated backup locations list if populated. At most one of these can be specified: --disable-automated-backup Once set, disables automated backup policy for the table. --enable-automated-backup Once set, enables the default automated backup policy (retention_period=7d, frequency=1d) for the table. Note: If a table has automated backup enabled, this flag resets it to the default policy. At most one of these can be specified: --change-stream-retention-period=CHANGE_STREAM_RETENTION_PERIOD The length of time to retain change stream data for the table, in the range of [1 day, 7 days]. Acceptable units are days (d), hours (h), minutes (m), and seconds (s). If not already specified, enables a change stream for the table. Examples: 5d or 48h. --clear-change-stream-retention-period This disables the change stream and eventually removes the change stream data. Whether to update or clear the row key schema in the updated table. Only one of these flags can be set. At most one of these can be specified: --clear-row-key-schema Whether to clear the row key schema in the updated table. --row-key-schema-definition-file=ROW_KEY_SCHEMA_DEFINITION_FILE The row key schema for the table. The schema is defined in a YAML or JSON file, equivalent to the StructType protobuf message. Example YAML: encoding: delimitedBytes: delimiter: '#' fields: - fieldName: field1 type: bytesType: encoding: raw: {} - fieldName: field2 type: bytesType: encoding: raw: {}
3838
/// </summary>
3939
[CliFlag("--row-key-schema-pre-encoded-bytes")]
4040
public bool? RowKeySchemaPreEncodedBytes { get; set; }

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public record GcloudBigtableTablesUpdateOptions : GcloudOptions
3434
public bool? DeletionProtection { get; set; }
3535

3636
/// <summary>
37-
/// By default, Base64 encoding is applied to all binary fields in the YAML/JSON file (for example, encoding.delimitedBytes.delimiter). Use this to indicate that all binary fields are already encoded in the YAML/JSON file and should not be encoded again. This field is only used when row-key-schema-definition-file is set. It is ignored if clear-row-key-schema is set. At most one of these can be specified: --automated-backup-retention-period=AUTOMATED_BACKUP_RETENTION_PERIOD The retention period of automated backup in the format of 30d for 30 days. Min retention period is 3d and max is 90d. Setting this flag will enable automated backup for the table. --disable-automated-backup Once set, disables automated backup policy for the table. --enable-automated-backup Once set, enables the default automated backup policy (retention_period=7d, frequency=1d) for the table. Note: If a table has automated backup enabled, this flag resets it to the default policy. At most one of these can be specified: --change-stream-retention-period=CHANGE_STREAM_RETENTION_PERIOD The length of time to retain change stream data for the table, in the range of [1 day, 7 days]. Acceptable units are days (d), hours (h), minutes (m), and seconds (s). If not already specified, enables a change stream for the table. Examples: 5d or 48h. --clear-change-stream-retention-period This disables the change stream and eventually removes the change stream data. Whether to update or clear the row key schema in the updated table. Only one of these flags can be set. At most one of these can be specified: --clear-row-key-schema Whether to clear the row key schema in the updated table. --row-key-schema-definition-file=ROW_KEY_SCHEMA_DEFINITION_FILE The row key schema for the table. The schema is defined in a YAML or JSON file, equivalent to the StructType protobuf message. Example YAML: encoding: delimitedBytes: delimiter: '#' fields: - fieldName: field1 type: bytesType: encoding: raw: {} - fieldName: field2 type: bytesType: encoding: raw: {}
37+
/// By default, Base64 encoding is applied to all binary fields in the YAML/JSON file (for example, encoding.delimitedBytes.delimiter). Use this to indicate that all binary fields are already encoded in the YAML/JSON file and should not be encoded again. This field is only used when row-key-schema-definition-file is set. It is ignored if clear-row-key-schema is set. At most one of these can be specified: Group for automated backup policy parameters. --automated-backup-retention-period=AUTOMATED_BACKUP_RETENTION_PERIOD The retention period of automated backup in the format of 30d for 30 days. Min retention period is 3d and max is 90d. Setting this flag will enable automated backup for the table. At most one of these can be specified: --automated-backup-locations=[LOCATION,...] List of Cloud Bigtable zones where automated backups are allowed to be created. If empty, automated backups will be created in all zones of the instance. Locations are in the format projects/{project}/locations/{zone}. Setting this flag will enable automated backup for the table. --clear-automated-backup-locations Empty the automated backup locations list if populated. At most one of these can be specified: --disable-automated-backup Once set, disables automated backup policy for the table. --enable-automated-backup Once set, enables the default automated backup policy (retention_period=7d, frequency=1d) for the table. Note: If a table has automated backup enabled, this flag resets it to the default policy. At most one of these can be specified: --change-stream-retention-period=CHANGE_STREAM_RETENTION_PERIOD The length of time to retain change stream data for the table, in the range of [1 day, 7 days]. Acceptable units are days (d), hours (h), minutes (m), and seconds (s). If not already specified, enables a change stream for the table. Examples: 5d or 48h. --clear-change-stream-retention-period This disables the change stream and eventually removes the change stream data. Whether to update or clear the row key schema in the updated table. Only one of these flags can be set. At most one of these can be specified: --clear-row-key-schema Whether to clear the row key schema in the updated table. --row-key-schema-definition-file=ROW_KEY_SCHEMA_DEFINITION_FILE The row key schema for the table. The schema is defined in a YAML or JSON file, equivalent to the StructType protobuf message. Example YAML: encoding: delimitedBytes: delimiter: '#' fields: - fieldName: field1 type: bytesType: encoding: raw: {} - fieldName: field2 type: bytesType: encoding: raw: {}
3838
/// </summary>
3939
[CliFlag("--row-key-schema-pre-encoded-bytes")]
4040
public bool? RowKeySchemaPreEncodedBytes { get; set; }
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/compute/composite-health-checks/create
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+
/// create a composite health check
18+
/// </summary>
19+
[GeneratedCode("ModularPipelines.OptionsGenerator", "")]
20+
[ExcludeFromCodeCoverage]
21+
[CliSubCommand("compute", "composite-health-checks", "create")]
22+
public record GcloudComputeCompositeHealthChecksCreateOptions : GcloudOptions
23+
{
24+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// <auto-generated>
2+
// This file was generated by ModularPipelines.OptionsGenerator.
3+
// Source: https://cloud.google.com/sdk/gcloud/reference/compute/composite-health-checks/delete
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+
/// delete a composite health check
18+
/// </summary>
19+
[GeneratedCode("ModularPipelines.OptionsGenerator", "")]
20+
[ExcludeFromCodeCoverage]
21+
[CliSubCommand("compute", "composite-health-checks", "delete")]
22+
public record GcloudComputeCompositeHealthChecksDeleteOptions : GcloudOptions
23+
{
24+
/// <summary>
25+
/// Return immediately, without waiting for the operation in progress to complete.
26+
/// </summary>
27+
[CliFlag("--async")]
28+
public bool? Async { get; set; }
29+
30+
}

0 commit comments

Comments
 (0)