Skip to content

Commit ccbce4c

Browse files
feat: Automated regeneration of apihub v1 client (#26044)
Auto-created at 2026-03-22 10:53:55 +0000 using the toys pull request generator.
1 parent c0ac5d8 commit ccbce4c

6 files changed

Lines changed: 94 additions & 3 deletions

File tree

api_names_out.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44905,6 +44905,8 @@
4490544905
"/apihub:v1/GoogleCloudApihubV1AddonConfig": google_cloud_apihub_v1_addon_config
4490644906
"/apihub:v1/GoogleCloudApihubV1AddonConfig/allDataAddonConfig": all_data_addon_config
4490744907
"/apihub:v1/GoogleCloudApihubV1AddonConfig/gatewayPluginAddonConfig": gateway_plugin_addon_config
44908+
"/apihub:v1/GoogleCloudApihubV1AgentRegistrySyncConfig": google_cloud_apihub_v1_agent_registry_sync_config
44909+
"/apihub:v1/GoogleCloudApihubV1AgentRegistrySyncConfig/disabled": disabled
4490844910
"/apihub:v1/GoogleCloudApihubV1AllDataAddonConfig": google_cloud_apihub_v1_all_data_addon_config
4490944911
"/apihub:v1/GoogleCloudApihubV1AllDataAddonConfig/enabled": enabled
4491044912
"/apihub:v1/GoogleCloudApihubV1AllowedValue": google_cloud_apihub_v1_allowed_value
@@ -45019,6 +45021,7 @@
4501945021
"/apihub:v1/GoogleCloudApihubV1CollectApiDataRequest/collectionType": collection_type
4502045022
"/apihub:v1/GoogleCloudApihubV1CollectApiDataRequest/pluginInstance": plugin_instance
4502145023
"/apihub:v1/GoogleCloudApihubV1Config": google_cloud_apihub_v1_config
45024+
"/apihub:v1/GoogleCloudApihubV1Config/agentRegistrySyncConfig": agent_registry_sync_config
4502245025
"/apihub:v1/GoogleCloudApihubV1Config/cmekKeyName": cmek_key_name
4502345026
"/apihub:v1/GoogleCloudApihubV1Config/disableSearch": disable_search
4502445027
"/apihub:v1/GoogleCloudApihubV1Config/encryptionType": encryption_type
@@ -45632,6 +45635,9 @@
4563245635
"/apihub:v1/apihub.projects.locations.apiHubInstances.get/name": name
4563345636
"/apihub:v1/apihub.projects.locations.apiHubInstances.lookup": lookup_project_location_api_hub_instance
4563445637
"/apihub:v1/apihub.projects.locations.apiHubInstances.lookup/parent": parent
45638+
"/apihub:v1/apihub.projects.locations.apiHubInstances.patch": patch_project_location_api_hub_instance
45639+
"/apihub:v1/apihub.projects.locations.apiHubInstances.patch/name": name
45640+
"/apihub:v1/apihub.projects.locations.apiHubInstances.patch/updateMask": update_mask
4563545641
"/apihub:v1/apihub.projects.locations.apis.create": create_project_location_api
4563645642
"/apihub:v1/apihub.projects.locations.apis.create/apiId": api_id
4563745643
"/apihub:v1/apihub.projects.locations.apis.create/parent": parent

generated/google-apis-apihub_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-apihub_v1
22

3+
### v0.14.0 (2026-03-22)
4+
5+
* Regenerated from discovery document revision 20260311
6+
37
### v0.13.0 (2026-02-15)
48

59
* Regenerated from discovery document revision 20260211

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

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,27 @@ def update!(**args)
235235
end
236236
end
237237

238+
# The configuration for Agent Registry sync.
239+
class GoogleCloudApihubV1AgentRegistrySyncConfig
240+
include Google::Apis::Core::Hashable
241+
242+
# Optional. If true, the MCP data sync to the Agent Registry will be disabled.
243+
# The default value is false.
244+
# Corresponds to the JSON property `disabled`
245+
# @return [Boolean]
246+
attr_accessor :disabled
247+
alias_method :disabled?, :disabled
248+
249+
def initialize(**args)
250+
update!(**args)
251+
end
252+
253+
# Update properties of this object
254+
def update!(**args)
255+
@disabled = args[:disabled] if args.key?(:disabled)
256+
end
257+
end
258+
238259
# Configuration for addons which act on all data in the API hub. This is used to
239260
# specify if the addon is enabled for all data in the API hub.
240261
class GoogleCloudApihubV1AllDataAddonConfig
@@ -1092,6 +1113,11 @@ def update!(**args)
10921113
class GoogleCloudApihubV1Config
10931114
include Google::Apis::Core::Hashable
10941115

1116+
# The configuration for Agent Registry sync.
1117+
# Corresponds to the JSON property `agentRegistrySyncConfig`
1118+
# @return [Google::Apis::ApihubV1::GoogleCloudApihubV1AgentRegistrySyncConfig]
1119+
attr_accessor :agent_registry_sync_config
1120+
10951121
# Optional. The Customer Managed Encryption Key (CMEK) used for data encryption.
10961122
# The CMEK name should follow the format of `projects/([^/]+)/locations/([^/]+)/
10971123
# keyRings/([^/]+)/cryptoKeys/([^/]+)`, where the location must match the
@@ -1126,6 +1152,7 @@ def initialize(**args)
11261152

11271153
# Update properties of this object
11281154
def update!(**args)
1155+
@agent_registry_sync_config = args[:agent_registry_sync_config] if args.key?(:agent_registry_sync_config)
11291156
@cmek_key_name = args[:cmek_key_name] if args.key?(:cmek_key_name)
11301157
@disable_search = args[:disable_search] if args.key?(:disable_search)
11311158
@encryption_type = args[:encryption_type] if args.key?(:encryption_type)
@@ -4229,7 +4256,7 @@ def update!(**args)
42294256
class GoogleCloudApihubV1RetrieveApiViewsResponse
42304257
include Google::Apis::Core::Hashable
42314258

4232-
# The list of API views.
4259+
# Output only. The list of API views.
42334260
# Corresponds to the JSON property `apiViews`
42344261
# @return [Array<Google::Apis::ApihubV1::GoogleCloudApihubV1ApiView>]
42354262
attr_accessor :api_views

generated/google-apis-apihub_v1/lib/google/apis/apihub_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 ApihubV1
1818
# Version of the google-apis-apihub_v1 gem
19-
GEM_VERSION = "0.13.0"
19+
GEM_VERSION = "0.14.0"
2020

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

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

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
5858
include Google::Apis::Core::JsonObjectSupport
5959
end
6060

61+
class GoogleCloudApihubV1AgentRegistrySyncConfig
62+
class Representation < Google::Apis::Core::JsonRepresentation; end
63+
64+
include Google::Apis::Core::JsonObjectSupport
65+
end
66+
6167
class GoogleCloudApihubV1AllDataAddonConfig
6268
class Representation < Google::Apis::Core::JsonRepresentation; end
6369

@@ -931,6 +937,13 @@ class Representation < Google::Apis::Core::JsonRepresentation
931937
end
932938
end
933939

940+
class GoogleCloudApihubV1AgentRegistrySyncConfig
941+
# @private
942+
class Representation < Google::Apis::Core::JsonRepresentation
943+
property :disabled, as: 'disabled'
944+
end
945+
end
946+
934947
class GoogleCloudApihubV1AllDataAddonConfig
935948
# @private
936949
class Representation < Google::Apis::Core::JsonRepresentation
@@ -1174,6 +1187,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
11741187
class GoogleCloudApihubV1Config
11751188
# @private
11761189
class Representation < Google::Apis::Core::JsonRepresentation
1190+
property :agent_registry_sync_config, as: 'agentRegistrySyncConfig', class: Google::Apis::ApihubV1::GoogleCloudApihubV1AgentRegistrySyncConfig, decorator: Google::Apis::ApihubV1::GoogleCloudApihubV1AgentRegistrySyncConfig::Representation
1191+
11771192
property :cmek_key_name, as: 'cmekKeyName'
11781193
property :disable_search, as: 'disableSearch'
11791194
property :encryption_type, as: 'encryptionType'

generated/google-apis-apihub_v1/lib/google/apis/apihub_v1/service.rb

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,45 @@ def lookup_project_location_api_hub_instance(parent, fields: nil, quota_user: ni
532532
execute_or_queue_command(command, &block)
533533
end
534534

535+
# Update an Api Hub instance. The following fields in the ApiHubInstance can be
536+
# updated: * disable_search * vertex_location * agent_registry_sync_config The
537+
# update_mask should be used to specify the fields being updated.
538+
# @param [String] name
539+
# Identifier. Format: `projects/`project`/locations/`location`/apiHubInstances/`
540+
# apiHubInstance``.
541+
# @param [Google::Apis::ApihubV1::GoogleCloudApihubV1ApiHubInstance] google_cloud_apihub_v1_api_hub_instance_object
542+
# @param [String] update_mask
543+
# Optional. The list of fields to update.
544+
# @param [String] fields
545+
# Selector specifying which fields to include in a partial response.
546+
# @param [String] quota_user
547+
# Available to use for quota purposes for server-side applications. Can be any
548+
# arbitrary string assigned to a user, but should not exceed 40 characters.
549+
# @param [Google::Apis::RequestOptions] options
550+
# Request-specific options
551+
#
552+
# @yield [result, err] Result & error if block supplied
553+
# @yieldparam result [Google::Apis::ApihubV1::GoogleLongrunningOperation] parsed result object
554+
# @yieldparam err [StandardError] error object if request failed
555+
#
556+
# @return [Google::Apis::ApihubV1::GoogleLongrunningOperation]
557+
#
558+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
559+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
560+
# @raise [Google::Apis::AuthorizationError] Authorization is required
561+
def patch_project_location_api_hub_instance(name, google_cloud_apihub_v1_api_hub_instance_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
562+
command = make_simple_command(:patch, 'v1/{+name}', options)
563+
command.request_representation = Google::Apis::ApihubV1::GoogleCloudApihubV1ApiHubInstance::Representation
564+
command.request_object = google_cloud_apihub_v1_api_hub_instance_object
565+
command.response_representation = Google::Apis::ApihubV1::GoogleLongrunningOperation::Representation
566+
command.response_class = Google::Apis::ApihubV1::GoogleLongrunningOperation
567+
command.params['name'] = name unless name.nil?
568+
command.query['updateMask'] = update_mask unless update_mask.nil?
569+
command.query['fields'] = fields unless fields.nil?
570+
command.query['quotaUser'] = quota_user unless quota_user.nil?
571+
execute_or_queue_command(command, &block)
572+
end
573+
535574
# Create an API resource in the API hub. Once an API resource is created,
536575
# versions can be added to it.
537576
# @param [String] parent

0 commit comments

Comments
 (0)