Skip to content

Commit d06f3cb

Browse files
feat: Automated regeneration of gkehub v1 client (googleapis#22003)
Auto-created at 2025-03-09 10:07:42 +0000 using the toys pull request generator.
1 parent 8b1f5ec commit d06f3cb

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
@@ -238823,6 +238823,8 @@
238823238823
"/gkehub:v1/ComplianceStandard/standard": standard
238824238824
"/gkehub:v1/ConfigManagementConfigSync": config_management_config_sync
238825238825
"/gkehub:v1/ConfigManagementConfigSync/allowVerticalScale": allow_vertical_scale
238826+
"/gkehub:v1/ConfigManagementConfigSync/deploymentOverrides": deployment_overrides
238827+
"/gkehub:v1/ConfigManagementConfigSync/deploymentOverrides/deployment_override": deployment_override
238826238828
"/gkehub:v1/ConfigManagementConfigSync/enabled": enabled
238827238829
"/gkehub:v1/ConfigManagementConfigSync/git": git
238828238830
"/gkehub:v1/ConfigManagementConfigSync/managed": managed
@@ -238866,10 +238868,21 @@
238866238868
"/gkehub:v1/ConfigManagementConfigSyncVersion/resourceGroupControllerManager": resource_group_controller_manager
238867238869
"/gkehub:v1/ConfigManagementConfigSyncVersion/rootReconciler": root_reconciler
238868238870
"/gkehub:v1/ConfigManagementConfigSyncVersion/syncer": syncer
238871+
"/gkehub:v1/ConfigManagementContainerOverride": config_management_container_override
238872+
"/gkehub:v1/ConfigManagementContainerOverride/containerName": container_name
238873+
"/gkehub:v1/ConfigManagementContainerOverride/cpuLimit": cpu_limit
238874+
"/gkehub:v1/ConfigManagementContainerOverride/cpuRequest": cpu_request
238875+
"/gkehub:v1/ConfigManagementContainerOverride/memoryLimit": memory_limit
238876+
"/gkehub:v1/ConfigManagementContainerOverride/memoryRequest": memory_request
238869238877
"/gkehub:v1/ConfigManagementContainerResourceRequirements": config_management_container_resource_requirements
238870238878
"/gkehub:v1/ConfigManagementContainerResourceRequirements/containerName": container_name
238871238879
"/gkehub:v1/ConfigManagementContainerResourceRequirements/cpuLimit": cpu_limit
238872238880
"/gkehub:v1/ConfigManagementContainerResourceRequirements/memoryLimit": memory_limit
238881+
"/gkehub:v1/ConfigManagementDeploymentOverride": config_management_deployment_override
238882+
"/gkehub:v1/ConfigManagementDeploymentOverride/containers": containers
238883+
"/gkehub:v1/ConfigManagementDeploymentOverride/containers/container": container
238884+
"/gkehub:v1/ConfigManagementDeploymentOverride/deploymentName": deployment_name
238885+
"/gkehub:v1/ConfigManagementDeploymentOverride/deploymentNamespace": deployment_namespace
238873238886
"/gkehub:v1/ConfigManagementErrorResource": config_management_error_resource
238874238887
"/gkehub:v1/ConfigManagementErrorResource/resourceGvk": resource_gvk
238875238888
"/gkehub:v1/ConfigManagementErrorResource/resourceName": resource_name

generated/google-apis-gkehub_v1/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_v1
22

3+
### v0.83.0 (2025-03-09)
4+
5+
* Regenerated from discovery document revision 20250302
6+
37
### v0.82.0 (2025-02-26)
48

59
* Regenerated from discovery document revision 20250209

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

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

880+
# Optional. Configuration for deployment overrides.
881+
# Corresponds to the JSON property `deploymentOverrides`
882+
# @return [Array<Google::Apis::GkehubV1::ConfigManagementDeploymentOverride>]
883+
attr_accessor :deployment_overrides
884+
880885
# Optional. Enables the installation of ConfigSync. If set to true, ConfigSync
881886
# resources will be created and the other ConfigSync fields will be applied if
882887
# exist. If set to false, all other ConfigSync fields will be ignored,
@@ -937,6 +942,7 @@ def initialize(**args)
937942

938943
# Update properties of this object
939944
def update!(**args)
945+
@deployment_overrides = args[:deployment_overrides] if args.key?(:deployment_overrides)
940946
@enabled = args[:enabled] if args.key?(:enabled)
941947
@git = args[:git] if args.key?(:git)
942948
@metrics_gcp_service_account_email = args[:metrics_gcp_service_account_email] if args.key?(:metrics_gcp_service_account_email)
@@ -1169,6 +1175,80 @@ def update!(**args)
11691175
end
11701176
end
11711177

1178+
# Configuration for a container override.
1179+
class ConfigManagementContainerOverride
1180+
include Google::Apis::Core::Hashable
1181+
1182+
# Required. The name of the container.
1183+
# Corresponds to the JSON property `containerName`
1184+
# @return [String]
1185+
attr_accessor :container_name
1186+
1187+
# Optional. The cpu limit of the container.
1188+
# Corresponds to the JSON property `cpuLimit`
1189+
# @return [String]
1190+
attr_accessor :cpu_limit
1191+
1192+
# Optional. The cpu request of the container.
1193+
# Corresponds to the JSON property `cpuRequest`
1194+
# @return [String]
1195+
attr_accessor :cpu_request
1196+
1197+
# Optional. The memory limit of the container.
1198+
# Corresponds to the JSON property `memoryLimit`
1199+
# @return [String]
1200+
attr_accessor :memory_limit
1201+
1202+
# Optional. The memory request of the container.
1203+
# Corresponds to the JSON property `memoryRequest`
1204+
# @return [String]
1205+
attr_accessor :memory_request
1206+
1207+
def initialize(**args)
1208+
update!(**args)
1209+
end
1210+
1211+
# Update properties of this object
1212+
def update!(**args)
1213+
@container_name = args[:container_name] if args.key?(:container_name)
1214+
@cpu_limit = args[:cpu_limit] if args.key?(:cpu_limit)
1215+
@cpu_request = args[:cpu_request] if args.key?(:cpu_request)
1216+
@memory_limit = args[:memory_limit] if args.key?(:memory_limit)
1217+
@memory_request = args[:memory_request] if args.key?(:memory_request)
1218+
end
1219+
end
1220+
1221+
# Configuration for a deployment override.
1222+
class ConfigManagementDeploymentOverride
1223+
include Google::Apis::Core::Hashable
1224+
1225+
# Optional. The containers of the deployment resource to be overridden.
1226+
# Corresponds to the JSON property `containers`
1227+
# @return [Array<Google::Apis::GkehubV1::ConfigManagementContainerOverride>]
1228+
attr_accessor :containers
1229+
1230+
# Required. The name of the deployment resource to be overridden.
1231+
# Corresponds to the JSON property `deploymentName`
1232+
# @return [String]
1233+
attr_accessor :deployment_name
1234+
1235+
# Required. The namespace of the deployment resource to be overridden..
1236+
# Corresponds to the JSON property `deploymentNamespace`
1237+
# @return [String]
1238+
attr_accessor :deployment_namespace
1239+
1240+
def initialize(**args)
1241+
update!(**args)
1242+
end
1243+
1244+
# Update properties of this object
1245+
def update!(**args)
1246+
@containers = args[:containers] if args.key?(:containers)
1247+
@deployment_name = args[:deployment_name] if args.key?(:deployment_name)
1248+
@deployment_namespace = args[:deployment_namespace] if args.key?(:deployment_namespace)
1249+
end
1250+
end
1251+
11721252
# Model for a config file in the git repo with an associated Sync error
11731253
class ConfigManagementErrorResource
11741254
include Google::Apis::Core::Hashable

generated/google-apis-gkehub_v1/lib/google/apis/gkehub_v1/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 GkehubV1
1818
# Version of the google-apis-gkehub_v1 gem
19-
GEM_VERSION = "0.82.0"
19+
GEM_VERSION = "0.83.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 = "20250209"
25+
REVISION = "20250302"
2626
end
2727
end
2828
end

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

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
208208
include Google::Apis::Core::JsonObjectSupport
209209
end
210210

211+
class ConfigManagementContainerOverride
212+
class Representation < Google::Apis::Core::JsonRepresentation; end
213+
214+
include Google::Apis::Core::JsonObjectSupport
215+
end
216+
217+
class ConfigManagementDeploymentOverride
218+
class Representation < Google::Apis::Core::JsonRepresentation; end
219+
220+
include Google::Apis::Core::JsonObjectSupport
221+
end
222+
211223
class ConfigManagementErrorResource
212224
class Representation < Google::Apis::Core::JsonRepresentation; end
213225

@@ -1223,6 +1235,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
12231235
class ConfigManagementConfigSync
12241236
# @private
12251237
class Representation < Google::Apis::Core::JsonRepresentation
1238+
collection :deployment_overrides, as: 'deploymentOverrides', class: Google::Apis::GkehubV1::ConfigManagementDeploymentOverride, decorator: Google::Apis::GkehubV1::ConfigManagementDeploymentOverride::Representation
1239+
12261240
property :enabled, as: 'enabled'
12271241
property :git, as: 'git', class: Google::Apis::GkehubV1::ConfigManagementGitConfig, decorator: Google::Apis::GkehubV1::ConfigManagementGitConfig::Representation
12281242

@@ -1291,6 +1305,27 @@ class Representation < Google::Apis::Core::JsonRepresentation
12911305
end
12921306
end
12931307

1308+
class ConfigManagementContainerOverride
1309+
# @private
1310+
class Representation < Google::Apis::Core::JsonRepresentation
1311+
property :container_name, as: 'containerName'
1312+
property :cpu_limit, as: 'cpuLimit'
1313+
property :cpu_request, as: 'cpuRequest'
1314+
property :memory_limit, as: 'memoryLimit'
1315+
property :memory_request, as: 'memoryRequest'
1316+
end
1317+
end
1318+
1319+
class ConfigManagementDeploymentOverride
1320+
# @private
1321+
class Representation < Google::Apis::Core::JsonRepresentation
1322+
collection :containers, as: 'containers', class: Google::Apis::GkehubV1::ConfigManagementContainerOverride, decorator: Google::Apis::GkehubV1::ConfigManagementContainerOverride::Representation
1323+
1324+
property :deployment_name, as: 'deploymentName'
1325+
property :deployment_namespace, as: 'deploymentNamespace'
1326+
end
1327+
end
1328+
12941329
class ConfigManagementErrorResource
12951330
# @private
12961331
class Representation < Google::Apis::Core::JsonRepresentation

0 commit comments

Comments
 (0)