Skip to content

Commit 438bfcd

Browse files
feat: Automated regeneration of gkehub v2 client (googleapis#21375)
Auto-created at 2025-01-12 10:33:13 +0000 using the toys pull request generator.
1 parent edca2d1 commit 438bfcd

File tree

3 files changed

+67
-57
lines changed

3 files changed

+67
-57
lines changed

generated/google-apis-gkehub_v2/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Release history for google-apis-gkehub_v2
22

3+
### v0.5.0 (2025-01-12)
4+
5+
* Regenerated from discovery document revision 20250103
6+
* Regenerated using generator version 0.16.0
7+
38
### v0.4.0 (2024-12-15)
49

510
* Regenerated from discovery document revision 20241206

generated/google-apis-gkehub_v2/lib/google/apis/gkehub_v2/classes.rb

Lines changed: 59 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -307,18 +307,18 @@ def update!(**args)
307307
class ConfigManagementConfigSync
308308
include Google::Apis::Core::Hashable
309309

310-
# Set to true to allow the vertical scaling. Defaults to false which disallows
311-
# vertical scaling. This field is deprecated.
310+
# Optional. Set to true to allow the vertical scaling. Defaults to false which
311+
# disallows vertical scaling. This field is deprecated.
312312
# Corresponds to the JSON property `allowVerticalScale`
313313
# @return [Boolean]
314314
attr_accessor :allow_vertical_scale
315315
alias_method :allow_vertical_scale?, :allow_vertical_scale
316316

317-
# Enables the installation of ConfigSync. If set to true, ConfigSync resources
318-
# will be created and the other ConfigSync fields will be applied if exist. If
319-
# set to false, all other ConfigSync fields will be ignored, ConfigSync
320-
# resources will be deleted. If omitted, ConfigSync resources will be managed
321-
# depends on the presence of the git or oci field.
317+
# Optional. Enables the installation of ConfigSync. If set to true, ConfigSync
318+
# resources will be created and the other ConfigSync fields will be applied if
319+
# exist. If set to false, all other ConfigSync fields will be ignored,
320+
# ConfigSync resources will be deleted. If omitted, ConfigSync resources will be
321+
# managed depends on the presence of the git or oci field.
322322
# Corresponds to the JSON property `enabled`
323323
# @return [Boolean]
324324
attr_accessor :enabled
@@ -329,15 +329,15 @@ class ConfigManagementConfigSync
329329
# @return [Google::Apis::GkehubV2::ConfigManagementGitConfig]
330330
attr_accessor :git
331331

332-
# The Email of the Google Cloud Service Account (GSA) used for exporting Config
333-
# Sync metrics to Cloud Monitoring and Cloud Monarch when Workload Identity is
334-
# enabled. The GSA should have the Monitoring Metric Writer (roles/monitoring.
335-
# metricWriter) IAM role. The Kubernetes ServiceAccount `default` in the
336-
# namespace `config-management-monitoring` should be bound to the GSA.
337-
# Deprecated: If Workload Identity Federation for GKE is enabled, Google Cloud
338-
# Service Account is no longer needed for exporting Config Sync metrics: https://
339-
# cloud.google.com/kubernetes-engine/enterprise/config-sync/docs/how-to/monitor-
340-
# config-sync-cloud-monitoring#custom-monitoring.
332+
# Optional. The Email of the Google Cloud Service Account (GSA) used for
333+
# exporting Config Sync metrics to Cloud Monitoring and Cloud Monarch when
334+
# Workload Identity is enabled. The GSA should have the Monitoring Metric Writer
335+
# (roles/monitoring.metricWriter) IAM role. The Kubernetes ServiceAccount `
336+
# default` in the namespace `config-management-monitoring` should be bound to
337+
# the GSA. Deprecated: If Workload Identity Federation for GKE is enabled,
338+
# Google Cloud Service Account is no longer needed for exporting Config Sync
339+
# metrics: https://cloud.google.com/kubernetes-engine/enterprise/config-sync/
340+
# docs/how-to/monitor-config-sync-cloud-monitoring#custom-monitoring.
341341
# Corresponds to the JSON property `metricsGcpServiceAccountEmail`
342342
# @return [String]
343343
attr_accessor :metrics_gcp_service_account_email
@@ -347,21 +347,22 @@ class ConfigManagementConfigSync
347347
# @return [Google::Apis::GkehubV2::ConfigManagementOciConfig]
348348
attr_accessor :oci
349349

350-
# Set to true to enable the Config Sync admission webhook to prevent drifts. If
351-
# set to `false`, disables the Config Sync admission webhook and does not
352-
# prevent drifts.
350+
# Optional. Set to true to enable the Config Sync admission webhook to prevent
351+
# drifts. If set to `false`, disables the Config Sync admission webhook and does
352+
# not prevent drifts.
353353
# Corresponds to the JSON property `preventDrift`
354354
# @return [Boolean]
355355
attr_accessor :prevent_drift
356356
alias_method :prevent_drift?, :prevent_drift
357357

358-
# Specifies whether the Config Sync Repo is in "hierarchical" or "unstructured"
359-
# mode.
358+
# Optional. Specifies whether the Config Sync Repo is in "hierarchical" or "
359+
# unstructured" mode.
360360
# Corresponds to the JSON property `sourceFormat`
361361
# @return [String]
362362
attr_accessor :source_format
363363

364-
# Set to true to stop syncing configs for a single cluster. Default to false.
364+
# Optional. Set to true to stop syncing configs for a single cluster. Default to
365+
# false.
365366
# Corresponds to the JSON property `stopSyncing`
366367
# @return [Boolean]
367368
attr_accessor :stop_syncing
@@ -474,7 +475,8 @@ def update!(**args)
474475
class ConfigManagementConfigSyncState
475476
include Google::Apis::Core::Hashable
476477

477-
# Whether syncing resources to the cluster is stopped at the cluster level.
478+
# Output only. Whether syncing resources to the cluster is stopped at the
479+
# cluster level.
478480
# Corresponds to the JSON property `clusterLevelStopSyncingState`
479481
# @return [String]
480482
attr_accessor :cluster_level_stop_syncing_state
@@ -489,22 +491,23 @@ class ConfigManagementConfigSyncState
489491
# @return [Google::Apis::GkehubV2::ConfigManagementConfigSyncDeploymentState]
490492
attr_accessor :deployment_state
491493

492-
# Errors pertaining to the installation of Config Sync.
494+
# Output only. Errors pertaining to the installation of Config Sync.
493495
# Corresponds to the JSON property `errors`
494496
# @return [Array<Google::Apis::GkehubV2::ConfigManagementConfigSyncError>]
495497
attr_accessor :errors
496498

497-
# The state of the Reposync CRD
499+
# Output only. The state of the Reposync CRD
498500
# Corresponds to the JSON property `reposyncCrd`
499501
# @return [String]
500502
attr_accessor :reposync_crd
501503

502-
# The state of the RootSync CRD
504+
# Output only. The state of the RootSync CRD
503505
# Corresponds to the JSON property `rootsyncCrd`
504506
# @return [String]
505507
attr_accessor :rootsync_crd
506508

507-
# The state of CS This field summarizes the other fields in this message.
509+
# Output only. The state of CS This field summarizes the other fields in this
510+
# message.
508511
# Corresponds to the JSON property `state`
509512
# @return [String]
510513
attr_accessor :state
@@ -676,46 +679,47 @@ def update!(**args)
676679
class ConfigManagementGitConfig
677680
include Google::Apis::Core::Hashable
678681

679-
# The Google Cloud Service Account Email used for auth when secret_type is
680-
# gcpServiceAccount.
682+
# Optional. The Google Cloud Service Account Email used for auth when
683+
# secret_type is gcpServiceAccount.
681684
# Corresponds to the JSON property `gcpServiceAccountEmail`
682685
# @return [String]
683686
attr_accessor :gcp_service_account_email
684687

685-
# URL for the HTTPS proxy to be used when communicating with the Git repo.
688+
# Optional. URL for the HTTPS proxy to be used when communicating with the Git
689+
# repo.
686690
# Corresponds to the JSON property `httpsProxy`
687691
# @return [String]
688692
attr_accessor :https_proxy
689693

690-
# The path within the Git repository that represents the top level of the repo
691-
# to sync. Default: the root directory of the repository.
694+
# Optional. The path within the Git repository that represents the top level of
695+
# the repo to sync. Default: the root directory of the repository.
692696
# Corresponds to the JSON property `policyDir`
693697
# @return [String]
694698
attr_accessor :policy_dir
695699

696-
# Type of secret configured for access to the Git repo. Must be one of ssh,
697-
# cookiefile, gcenode, token, gcpserviceaccount or none. The validation of this
698-
# is case-sensitive. Required.
700+
# Required. Type of secret configured for access to the Git repo. Must be one of
701+
# ssh, cookiefile, gcenode, token, gcpserviceaccount or none. The validation of
702+
# this is case-sensitive. Required.
699703
# Corresponds to the JSON property `secretType`
700704
# @return [String]
701705
attr_accessor :secret_type
702706

703-
# The branch of the repository to sync from. Default: master.
707+
# Optional. The branch of the repository to sync from. Default: master.
704708
# Corresponds to the JSON property `syncBranch`
705709
# @return [String]
706710
attr_accessor :sync_branch
707711

708-
# The URL of the Git repository to use as the source of truth.
712+
# Optional. The URL of the Git repository to use as the source of truth.
709713
# Corresponds to the JSON property `syncRepo`
710714
# @return [String]
711715
attr_accessor :sync_repo
712716

713-
# Git revision (tag or hash) to check out. Default HEAD.
717+
# Optional. Git revision (tag or hash) to check out. Default HEAD.
714718
# Corresponds to the JSON property `syncRev`
715719
# @return [String]
716720
attr_accessor :sync_rev
717721

718-
# Period in seconds between consecutive syncs. Default: 15.
722+
# Optional. Period in seconds between consecutive syncs. Default: 15.
719723
# Corresponds to the JSON property `syncWaitSecs`
720724
# @return [Fixnum]
721725
attr_accessor :sync_wait_secs
@@ -900,30 +904,30 @@ def update!(**args)
900904
class ConfigManagementOciConfig
901905
include Google::Apis::Core::Hashable
902906

903-
# The Google Cloud Service Account Email used for auth when secret_type is
904-
# gcpServiceAccount.
907+
# Optional. The Google Cloud Service Account Email used for auth when
908+
# secret_type is gcpServiceAccount.
905909
# Corresponds to the JSON property `gcpServiceAccountEmail`
906910
# @return [String]
907911
attr_accessor :gcp_service_account_email
908912

909-
# The absolute path of the directory that contains the local resources. Default:
910-
# the root directory of the image.
913+
# Optional. The absolute path of the directory that contains the local resources.
914+
# Default: the root directory of the image.
911915
# Corresponds to the JSON property `policyDir`
912916
# @return [String]
913917
attr_accessor :policy_dir
914918

915-
# Type of secret configured for access to the Git repo.
919+
# Optional. Type of secret configured for access to the Git repo.
916920
# Corresponds to the JSON property `secretType`
917921
# @return [String]
918922
attr_accessor :secret_type
919923

920-
# The OCI image repository URL for the package to sync from. e.g. `LOCATION-
921-
# docker.pkg.dev/PROJECT_ID/REPOSITORY_NAME/PACKAGE_NAME`.
924+
# Optional. The OCI image repository URL for the package to sync from. e.g. `
925+
# LOCATION-docker.pkg.dev/PROJECT_ID/REPOSITORY_NAME/PACKAGE_NAME`.
922926
# Corresponds to the JSON property `syncRepo`
923927
# @return [String]
924928
attr_accessor :sync_repo
925929

926-
# Period in seconds between consecutive syncs. Default: 15.
930+
# Optional. Period in seconds between consecutive syncs. Default: 15.
927931
# Corresponds to the JSON property `syncWaitSecs`
928932
# @return [Fixnum]
929933
attr_accessor :sync_wait_secs
@@ -1160,9 +1164,9 @@ class ConfigManagementSpec
11601164
# @return [Google::Apis::GkehubV2::ConfigManagementBinauthzConfig]
11611165
attr_accessor :binauthz
11621166

1163-
# The user-specified cluster name used by Config Sync cluster-name-selector
1164-
# annotation or ClusterSelector, for applying configs to only a subset of
1165-
# clusters. Omit this field if the cluster's fleet membership name is used by
1167+
# Optional. The user-specified cluster name used by Config Sync cluster-name-
1168+
# selector annotation or ClusterSelector, for applying configs to only a subset
1169+
# of clusters. Omit this field if the cluster's fleet membership name is used by
11661170
# Config Sync cluster-name-selector annotation or ClusterSelector. Set this
11671171
# field if a name different from the cluster's fleet membership name is used by
11681172
# Config Sync cluster-name-selector annotation or ClusterSelector.
@@ -1180,7 +1184,7 @@ class ConfigManagementSpec
11801184
# @return [Google::Apis::GkehubV2::ConfigManagementHierarchyControllerConfig]
11811185
attr_accessor :hierarchy_controller
11821186

1183-
# Enables automatic Feature management.
1187+
# Optional. Enables automatic Feature management.
11841188
# Corresponds to the JSON property `management`
11851189
# @return [String]
11861190
attr_accessor :management
@@ -1190,7 +1194,7 @@ class ConfigManagementSpec
11901194
# @return [Google::Apis::GkehubV2::ConfigManagementPolicyController]
11911195
attr_accessor :policy_controller
11921196

1193-
# Version of ACM installed.
1197+
# Optional. Version of ACM installed.
11941198
# Corresponds to the JSON property `version`
11951199
# @return [String]
11961200
attr_accessor :version
@@ -1220,8 +1224,9 @@ class ConfigManagementState
12201224
# @return [Google::Apis::GkehubV2::ConfigManagementBinauthzState]
12211225
attr_accessor :binauthz_state
12221226

1223-
# This field is set to the `cluster_name` field of the Membership Spec if it is
1224-
# not empty. Otherwise, it is set to the cluster's fleet membership name.
1227+
# Output only. This field is set to the `cluster_name` field of the Membership
1228+
# Spec if it is not empty. Otherwise, it is set to the cluster's fleet
1229+
# membership name.
12251230
# Corresponds to the JSON property `clusterName`
12261231
# @return [String]
12271232
attr_accessor :cluster_name

generated/google-apis-gkehub_v2/lib/google/apis/gkehub_v2/gem_version.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module GkehubV2
1818
# Version of the google-apis-gkehub_v2 gem
19-
GEM_VERSION = "0.4.0"
19+
GEM_VERSION = "0.5.0"
2020

2121
# Version of the code generator used to generate this client
22-
GENERATOR_VERSION = "0.15.1"
22+
GENERATOR_VERSION = "0.16.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20241206"
25+
REVISION = "20250103"
2626
end
2727
end
2828
end

0 commit comments

Comments
 (0)