Skip to content

Commit d563f0a

Browse files
feat: Automated regeneration of gkehub v2alpha client (googleapis#22024)
Auto-created at 2025-03-09 10:27:47 +0000 using the toys pull request generator.
1 parent afdab2d commit d563f0a

File tree

5 files changed

+134
-2
lines changed

5 files changed

+134
-2
lines changed

api_names_out.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243090,6 +243090,8 @@
243090243090
"/gkehub:v2alpha/ConfigManagementBinauthzVersion/webhookVersion": webhook_version
243091243091
"/gkehub:v2alpha/ConfigManagementConfigSync": config_management_config_sync
243092243092
"/gkehub:v2alpha/ConfigManagementConfigSync/allowVerticalScale": allow_vertical_scale
243093+
"/gkehub:v2alpha/ConfigManagementConfigSync/deploymentOverrides": deployment_overrides
243094+
"/gkehub:v2alpha/ConfigManagementConfigSync/deploymentOverrides/deployment_override": deployment_override
243093243095
"/gkehub:v2alpha/ConfigManagementConfigSync/enabled": enabled
243094243096
"/gkehub:v2alpha/ConfigManagementConfigSync/git": git
243095243097
"/gkehub:v2alpha/ConfigManagementConfigSync/metricsGcpServiceAccountEmail": metrics_gcp_service_account_email
@@ -243130,6 +243132,17 @@
243130243132
"/gkehub:v2alpha/ConfigManagementConfigSyncVersion/resourceGroupControllerManager": resource_group_controller_manager
243131243133
"/gkehub:v2alpha/ConfigManagementConfigSyncVersion/rootReconciler": root_reconciler
243132243134
"/gkehub:v2alpha/ConfigManagementConfigSyncVersion/syncer": syncer
243135+
"/gkehub:v2alpha/ConfigManagementContainerOverride": config_management_container_override
243136+
"/gkehub:v2alpha/ConfigManagementContainerOverride/containerName": container_name
243137+
"/gkehub:v2alpha/ConfigManagementContainerOverride/cpuLimit": cpu_limit
243138+
"/gkehub:v2alpha/ConfigManagementContainerOverride/cpuRequest": cpu_request
243139+
"/gkehub:v2alpha/ConfigManagementContainerOverride/memoryLimit": memory_limit
243140+
"/gkehub:v2alpha/ConfigManagementContainerOverride/memoryRequest": memory_request
243141+
"/gkehub:v2alpha/ConfigManagementDeploymentOverride": config_management_deployment_override
243142+
"/gkehub:v2alpha/ConfigManagementDeploymentOverride/containers": containers
243143+
"/gkehub:v2alpha/ConfigManagementDeploymentOverride/containers/container": container
243144+
"/gkehub:v2alpha/ConfigManagementDeploymentOverride/deploymentName": deployment_name
243145+
"/gkehub:v2alpha/ConfigManagementDeploymentOverride/deploymentNamespace": deployment_namespace
243133243146
"/gkehub:v2alpha/ConfigManagementErrorResource": config_management_error_resource
243134243147
"/gkehub:v2alpha/ConfigManagementErrorResource/resourceGvk": resource_gvk
243135243148
"/gkehub:v2alpha/ConfigManagementErrorResource/resourceName": resource_name

generated/google-apis-gkehub_v2alpha/CHANGELOG.md

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

3+
### v0.22.0 (2025-03-09)
4+
5+
* Regenerated from discovery document revision 20250302
6+
37
### v0.21.0 (2025-01-19)
48

59
* Regenerated from discovery document revision 20250113

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

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

310+
# Optional. Configuration for deployment overrides.
311+
# Corresponds to the JSON property `deploymentOverrides`
312+
# @return [Array<Google::Apis::GkehubV2alpha::ConfigManagementDeploymentOverride>]
313+
attr_accessor :deployment_overrides
314+
310315
# Optional. Enables the installation of ConfigSync. If set to true, ConfigSync
311316
# resources will be created and the other ConfigSync fields will be applied if
312317
# exist. If set to false, all other ConfigSync fields will be ignored,
@@ -367,6 +372,7 @@ def initialize(**args)
367372

368373
# Update properties of this object
369374
def update!(**args)
375+
@deployment_overrides = args[:deployment_overrides] if args.key?(:deployment_overrides)
370376
@enabled = args[:enabled] if args.key?(:enabled)
371377
@git = args[:git] if args.key?(:git)
372378
@metrics_gcp_service_account_email = args[:metrics_gcp_service_account_email] if args.key?(:metrics_gcp_service_account_email)
@@ -599,6 +605,80 @@ def update!(**args)
599605
end
600606
end
601607

608+
# Configuration for a container override.
609+
class ConfigManagementContainerOverride
610+
include Google::Apis::Core::Hashable
611+
612+
# Required. The name of the container.
613+
# Corresponds to the JSON property `containerName`
614+
# @return [String]
615+
attr_accessor :container_name
616+
617+
# Optional. The cpu limit of the container.
618+
# Corresponds to the JSON property `cpuLimit`
619+
# @return [String]
620+
attr_accessor :cpu_limit
621+
622+
# Optional. The cpu request of the container.
623+
# Corresponds to the JSON property `cpuRequest`
624+
# @return [String]
625+
attr_accessor :cpu_request
626+
627+
# Optional. The memory limit of the container.
628+
# Corresponds to the JSON property `memoryLimit`
629+
# @return [String]
630+
attr_accessor :memory_limit
631+
632+
# Optional. The memory request of the container.
633+
# Corresponds to the JSON property `memoryRequest`
634+
# @return [String]
635+
attr_accessor :memory_request
636+
637+
def initialize(**args)
638+
update!(**args)
639+
end
640+
641+
# Update properties of this object
642+
def update!(**args)
643+
@container_name = args[:container_name] if args.key?(:container_name)
644+
@cpu_limit = args[:cpu_limit] if args.key?(:cpu_limit)
645+
@cpu_request = args[:cpu_request] if args.key?(:cpu_request)
646+
@memory_limit = args[:memory_limit] if args.key?(:memory_limit)
647+
@memory_request = args[:memory_request] if args.key?(:memory_request)
648+
end
649+
end
650+
651+
# Configuration for a deployment override.
652+
class ConfigManagementDeploymentOverride
653+
include Google::Apis::Core::Hashable
654+
655+
# Optional. The containers of the deployment resource to be overridden.
656+
# Corresponds to the JSON property `containers`
657+
# @return [Array<Google::Apis::GkehubV2alpha::ConfigManagementContainerOverride>]
658+
attr_accessor :containers
659+
660+
# Required. The name of the deployment resource to be overridden.
661+
# Corresponds to the JSON property `deploymentName`
662+
# @return [String]
663+
attr_accessor :deployment_name
664+
665+
# Required. The namespace of the deployment resource to be overridden..
666+
# Corresponds to the JSON property `deploymentNamespace`
667+
# @return [String]
668+
attr_accessor :deployment_namespace
669+
670+
def initialize(**args)
671+
update!(**args)
672+
end
673+
674+
# Update properties of this object
675+
def update!(**args)
676+
@containers = args[:containers] if args.key?(:containers)
677+
@deployment_name = args[:deployment_name] if args.key?(:deployment_name)
678+
@deployment_namespace = args[:deployment_namespace] if args.key?(:deployment_namespace)
679+
end
680+
end
681+
602682
# Model for a config file in the git repo with an associated Sync error.
603683
class ConfigManagementErrorResource
604684
include Google::Apis::Core::Hashable

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module GkehubV2alpha
1818
# Version of the google-apis-gkehub_v2alpha gem
19-
GEM_VERSION = "0.21.0"
19+
GEM_VERSION = "0.22.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.16.0"
2323

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

generated/google-apis-gkehub_v2alpha/lib/google/apis/gkehub_v2alpha/representations.rb

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
124124
include Google::Apis::Core::JsonObjectSupport
125125
end
126126

127+
class ConfigManagementContainerOverride
128+
class Representation < Google::Apis::Core::JsonRepresentation; end
129+
130+
include Google::Apis::Core::JsonObjectSupport
131+
end
132+
133+
class ConfigManagementDeploymentOverride
134+
class Representation < Google::Apis::Core::JsonRepresentation; end
135+
136+
include Google::Apis::Core::JsonObjectSupport
137+
end
138+
127139
class ConfigManagementErrorResource
128140
class Representation < Google::Apis::Core::JsonRepresentation; end
129141

@@ -663,6 +675,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
663675
class ConfigManagementConfigSync
664676
# @private
665677
class Representation < Google::Apis::Core::JsonRepresentation
678+
collection :deployment_overrides, as: 'deploymentOverrides', class: Google::Apis::GkehubV2alpha::ConfigManagementDeploymentOverride, decorator: Google::Apis::GkehubV2alpha::ConfigManagementDeploymentOverride::Representation
679+
666680
property :enabled, as: 'enabled'
667681
property :git, as: 'git', class: Google::Apis::GkehubV2alpha::ConfigManagementGitConfig, decorator: Google::Apis::GkehubV2alpha::ConfigManagementGitConfig::Representation
668682

@@ -731,6 +745,27 @@ class Representation < Google::Apis::Core::JsonRepresentation
731745
end
732746
end
733747

748+
class ConfigManagementContainerOverride
749+
# @private
750+
class Representation < Google::Apis::Core::JsonRepresentation
751+
property :container_name, as: 'containerName'
752+
property :cpu_limit, as: 'cpuLimit'
753+
property :cpu_request, as: 'cpuRequest'
754+
property :memory_limit, as: 'memoryLimit'
755+
property :memory_request, as: 'memoryRequest'
756+
end
757+
end
758+
759+
class ConfigManagementDeploymentOverride
760+
# @private
761+
class Representation < Google::Apis::Core::JsonRepresentation
762+
collection :containers, as: 'containers', class: Google::Apis::GkehubV2alpha::ConfigManagementContainerOverride, decorator: Google::Apis::GkehubV2alpha::ConfigManagementContainerOverride::Representation
763+
764+
property :deployment_name, as: 'deploymentName'
765+
property :deployment_namespace, as: 'deploymentNamespace'
766+
end
767+
end
768+
734769
class ConfigManagementErrorResource
735770
# @private
736771
class Representation < Google::Apis::Core::JsonRepresentation

0 commit comments

Comments
 (0)