Skip to content

Commit c3b9ac4

Browse files
feat: Automated regeneration of apihub v1 client (#24361)
Auto-created at 2025-09-21 10:23:22 +0000 using the toys pull request generator.
1 parent edba705 commit c3b9ac4

File tree

6 files changed

+136
-6
lines changed

6 files changed

+136
-6
lines changed

api_names_out.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40976,6 +40976,12 @@
4097640976
"/apihub:v1/GoogleCloudApihubV1LookupApiHubInstanceResponse/apiHubInstance": api_hub_instance
4097740977
"/apihub:v1/GoogleCloudApihubV1LookupRuntimeProjectAttachmentResponse": google_cloud_apihub_v1_lookup_runtime_project_attachment_response
4097840978
"/apihub:v1/GoogleCloudApihubV1LookupRuntimeProjectAttachmentResponse/runtimeProjectAttachment": runtime_project_attachment
40979+
"/apihub:v1/GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest": google_cloud_apihub_v1_manage_plugin_instance_source_data_request
40980+
"/apihub:v1/GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest/action": action
40981+
"/apihub:v1/GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest/data": data
40982+
"/apihub:v1/GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest/dataType": data_type
40983+
"/apihub:v1/GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest/relativePath": relative_path
40984+
"/apihub:v1/GoogleCloudApihubV1ManagePluginInstanceSourceDataResponse": google_cloud_apihub_v1_manage_plugin_instance_source_data_response
4097940985
"/apihub:v1/GoogleCloudApihubV1MatchResult": google_cloud_apihub_v1_match_result
4098040986
"/apihub:v1/GoogleCloudApihubV1MatchResult/name": name
4098140987
"/apihub:v1/GoogleCloudApihubV1MultiIntValues": google_cloud_apihub_v1_multi_int_values
@@ -41446,6 +41452,8 @@
4144641452
"/apihub:v1/apihub.projects.locations.plugins.instances.list/pageSize": page_size
4144741453
"/apihub:v1/apihub.projects.locations.plugins.instances.list/pageToken": page_token
4144841454
"/apihub:v1/apihub.projects.locations.plugins.instances.list/parent": parent
41455+
"/apihub:v1/apihub.projects.locations.plugins.instances.manageSourceData": manage_project_location_plugin_instance_source_data
41456+
"/apihub:v1/apihub.projects.locations.plugins.instances.manageSourceData/name": name
4144941457
"/apihub:v1/apihub.projects.locations.plugins.instances.patch": patch_project_location_plugin_instance
4145041458
"/apihub:v1/apihub.projects.locations.plugins.instances.patch/name": name
4145141459
"/apihub:v1/apihub.projects.locations.plugins.instances.patch/updateMask": update_mask

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.8.0 (2025-09-21)
4+
5+
* Regenerated from discovery document revision 20250912
6+
37
### v0.7.0 (2025-09-07)
48

59
* Regenerated from discovery document revision 20250829

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

Lines changed: 54 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2811,6 +2811,57 @@ def update!(**args)
28112811
end
28122812
end
28132813

2814+
# The ManagePluginInstanceSourceData method's request.
2815+
class GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest
2816+
include Google::Apis::Core::Hashable
2817+
2818+
# Required. Action to be performed.
2819+
# Corresponds to the JSON property `action`
2820+
# @return [String]
2821+
attr_accessor :action
2822+
2823+
# Required. Data to be managed.
2824+
# Corresponds to the JSON property `data`
2825+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
2826+
# @return [String]
2827+
attr_accessor :data
2828+
2829+
# Required. Type of data to be managed.
2830+
# Corresponds to the JSON property `dataType`
2831+
# @return [String]
2832+
attr_accessor :data_type
2833+
2834+
# Required. Relative path of data being managed for a given plugin instance.
2835+
# Corresponds to the JSON property `relativePath`
2836+
# @return [String]
2837+
attr_accessor :relative_path
2838+
2839+
def initialize(**args)
2840+
update!(**args)
2841+
end
2842+
2843+
# Update properties of this object
2844+
def update!(**args)
2845+
@action = args[:action] if args.key?(:action)
2846+
@data = args[:data] if args.key?(:data)
2847+
@data_type = args[:data_type] if args.key?(:data_type)
2848+
@relative_path = args[:relative_path] if args.key?(:relative_path)
2849+
end
2850+
end
2851+
2852+
# The ManagePluginInstanceSourceData method's response.
2853+
class GoogleCloudApihubV1ManagePluginInstanceSourceDataResponse
2854+
include Google::Apis::Core::Hashable
2855+
2856+
def initialize(**args)
2857+
update!(**args)
2858+
end
2859+
2860+
# Update properties of this object
2861+
def update!(**args)
2862+
end
2863+
end
2864+
28142865
# MatchResult represents the result of matching a discovered API operation with
28152866
# a catalog API operation.
28162867
class GoogleCloudApihubV1MatchResult
@@ -3129,7 +3180,9 @@ def update!(**args)
31293180
class GoogleCloudApihubV1Plugin
31303181
include Google::Apis::Core::Hashable
31313182

3132-
# Required. The configuration of actions supported by the plugin.
3183+
# Optional. The configuration of actions supported by the plugin. **REQUIRED**:
3184+
# This field must be provided when creating or updating a Plugin. The server
3185+
# will reject requests if this field is missing.
31333186
# Corresponds to the JSON property `actionsConfig`
31343187
# @return [Array<Google::Apis::ApihubV1::GoogleCloudApihubV1PluginActionConfig>]
31353188
attr_accessor :actions_config

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.7.0"
19+
GEM_VERSION = "0.8.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 = "20250829"
25+
REVISION = "20250912"
2626
end
2727
end
2828
end

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

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
454454
include Google::Apis::Core::JsonObjectSupport
455455
end
456456

457+
class GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest
458+
class Representation < Google::Apis::Core::JsonRepresentation; end
459+
460+
include Google::Apis::Core::JsonObjectSupport
461+
end
462+
463+
class GoogleCloudApihubV1ManagePluginInstanceSourceDataResponse
464+
class Representation < Google::Apis::Core::JsonRepresentation; end
465+
466+
include Google::Apis::Core::JsonObjectSupport
467+
end
468+
457469
class GoogleCloudApihubV1MatchResult
458470
class Representation < Google::Apis::Core::JsonRepresentation; end
459471

@@ -1538,6 +1550,22 @@ class Representation < Google::Apis::Core::JsonRepresentation
15381550
end
15391551
end
15401552

1553+
class GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest
1554+
# @private
1555+
class Representation < Google::Apis::Core::JsonRepresentation
1556+
property :action, as: 'action'
1557+
property :data, :base64 => true, as: 'data'
1558+
property :data_type, as: 'dataType'
1559+
property :relative_path, as: 'relativePath'
1560+
end
1561+
end
1562+
1563+
class GoogleCloudApihubV1ManagePluginInstanceSourceDataResponse
1564+
# @private
1565+
class Representation < Google::Apis::Core::JsonRepresentation
1566+
end
1567+
end
1568+
15411569
class GoogleCloudApihubV1MatchResult
15421570
# @private
15431571
class Representation < Google::Apis::Core::JsonRepresentation

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

Lines changed: 40 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ def get_project_location(name, fields: nil, quota_user: nil, options: nil, &bloc
119119
# @param [String] name
120120
# The resource that owns the locations collection, if applicable.
121121
# @param [Array<String>, String] extra_location_types
122-
# Optional. Do not use this field. It is unsupported and is ignored unless
123-
# explicitly documented otherwise. This is primarily for internal usage.
122+
# Optional. Unless explicitly documented otherwise, don't use this unsupported
123+
# field which is primarily intended for internal usage.
124124
# @param [String] filter
125125
# A filter to narrow down results to a preferred subset. The filtering language
126126
# accepts strings like `"displayName=tokyo"`, and is documented in more detail
@@ -270,7 +270,9 @@ def create_project_location_api_hub_instance(parent, google_cloud_apihub_v1_api_
270270
execute_or_queue_command(command, &block)
271271
end
272272

273-
# Deletes the API hub instance.
273+
# Deletes the API hub instance. Deleting the API hub instance will also result
274+
# in the removal of all associated runtime project attachments and the host
275+
# project registration.
274276
# @param [String] name
275277
# Required. The name of the Api Hub instance to delete. Format: `projects/`
276278
# project`/locations/`location`/apiHubInstances/`apiHubInstance``.
@@ -3614,6 +3616,41 @@ def list_project_location_plugin_instances(parent, filter: nil, page_size: nil,
36143616
execute_or_queue_command(command, &block)
36153617
end
36163618

3619+
# Manages data for a given plugin instance.
3620+
# @param [String] name
3621+
# Required. The name of the plugin instance for which data needs to be managed.
3622+
# Format: `projects/`project`/locations/`location`/plugins/`plugin`/instances/`
3623+
# instance``
3624+
# @param [Google::Apis::ApihubV1::GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest] google_cloud_apihub_v1_manage_plugin_instance_source_data_request_object
3625+
# @param [String] fields
3626+
# Selector specifying which fields to include in a partial response.
3627+
# @param [String] quota_user
3628+
# Available to use for quota purposes for server-side applications. Can be any
3629+
# arbitrary string assigned to a user, but should not exceed 40 characters.
3630+
# @param [Google::Apis::RequestOptions] options
3631+
# Request-specific options
3632+
#
3633+
# @yield [result, err] Result & error if block supplied
3634+
# @yieldparam result [Google::Apis::ApihubV1::GoogleCloudApihubV1ManagePluginInstanceSourceDataResponse] parsed result object
3635+
# @yieldparam err [StandardError] error object if request failed
3636+
#
3637+
# @return [Google::Apis::ApihubV1::GoogleCloudApihubV1ManagePluginInstanceSourceDataResponse]
3638+
#
3639+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3640+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3641+
# @raise [Google::Apis::AuthorizationError] Authorization is required
3642+
def manage_project_location_plugin_instance_source_data(name, google_cloud_apihub_v1_manage_plugin_instance_source_data_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3643+
command = make_simple_command(:post, 'v1/{+name}:manageSourceData', options)
3644+
command.request_representation = Google::Apis::ApihubV1::GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest::Representation
3645+
command.request_object = google_cloud_apihub_v1_manage_plugin_instance_source_data_request_object
3646+
command.response_representation = Google::Apis::ApihubV1::GoogleCloudApihubV1ManagePluginInstanceSourceDataResponse::Representation
3647+
command.response_class = Google::Apis::ApihubV1::GoogleCloudApihubV1ManagePluginInstanceSourceDataResponse
3648+
command.params['name'] = name unless name.nil?
3649+
command.query['fields'] = fields unless fields.nil?
3650+
command.query['quotaUser'] = quota_user unless quota_user.nil?
3651+
execute_or_queue_command(command, &block)
3652+
end
3653+
36173654
# Updates a plugin instance in the API hub. The following fields in the
36183655
# plugin_instance can be updated currently: * display_name *
36193656
# schedule_cron_expression The update_mask should be used to specify the fields

0 commit comments

Comments
 (0)