From d12eb62c2bbcfca108bd08368e671e41807f06bc Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sun, 21 Sep 2025 10:23:23 +0000 Subject: [PATCH] feat: Automated regeneration of apihub v1 client --- api_names_out.yaml | 8 +++ generated/google-apis-apihub_v1/CHANGELOG.md | 4 ++ .../lib/google/apis/apihub_v1/classes.rb | 55 ++++++++++++++++++- .../lib/google/apis/apihub_v1/gem_version.rb | 4 +- .../google/apis/apihub_v1/representations.rb | 28 ++++++++++ .../lib/google/apis/apihub_v1/service.rb | 43 ++++++++++++++- 6 files changed, 136 insertions(+), 6 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index 88c83e32632..db76ba3d700 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -40836,6 +40836,12 @@ "/apihub:v1/GoogleCloudApihubV1LookupApiHubInstanceResponse/apiHubInstance": api_hub_instance "/apihub:v1/GoogleCloudApihubV1LookupRuntimeProjectAttachmentResponse": google_cloud_apihub_v1_lookup_runtime_project_attachment_response "/apihub:v1/GoogleCloudApihubV1LookupRuntimeProjectAttachmentResponse/runtimeProjectAttachment": runtime_project_attachment +"/apihub:v1/GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest": google_cloud_apihub_v1_manage_plugin_instance_source_data_request +"/apihub:v1/GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest/action": action +"/apihub:v1/GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest/data": data +"/apihub:v1/GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest/dataType": data_type +"/apihub:v1/GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest/relativePath": relative_path +"/apihub:v1/GoogleCloudApihubV1ManagePluginInstanceSourceDataResponse": google_cloud_apihub_v1_manage_plugin_instance_source_data_response "/apihub:v1/GoogleCloudApihubV1MatchResult": google_cloud_apihub_v1_match_result "/apihub:v1/GoogleCloudApihubV1MatchResult/name": name "/apihub:v1/GoogleCloudApihubV1MultiIntValues": google_cloud_apihub_v1_multi_int_values @@ -41306,6 +41312,8 @@ "/apihub:v1/apihub.projects.locations.plugins.instances.list/pageSize": page_size "/apihub:v1/apihub.projects.locations.plugins.instances.list/pageToken": page_token "/apihub:v1/apihub.projects.locations.plugins.instances.list/parent": parent +"/apihub:v1/apihub.projects.locations.plugins.instances.manageSourceData": manage_project_location_plugin_instance_source_data +"/apihub:v1/apihub.projects.locations.plugins.instances.manageSourceData/name": name "/apihub:v1/apihub.projects.locations.plugins.instances.patch": patch_project_location_plugin_instance "/apihub:v1/apihub.projects.locations.plugins.instances.patch/name": name "/apihub:v1/apihub.projects.locations.plugins.instances.patch/updateMask": update_mask diff --git a/generated/google-apis-apihub_v1/CHANGELOG.md b/generated/google-apis-apihub_v1/CHANGELOG.md index 1255e035549..886865d58fb 100644 --- a/generated/google-apis-apihub_v1/CHANGELOG.md +++ b/generated/google-apis-apihub_v1/CHANGELOG.md @@ -1,5 +1,9 @@ # Release history for google-apis-apihub_v1 +### v0.8.0 (2025-09-21) + +* Regenerated from discovery document revision 20250912 + ### v0.7.0 (2025-09-07) * Regenerated from discovery document revision 20250829 diff --git a/generated/google-apis-apihub_v1/lib/google/apis/apihub_v1/classes.rb b/generated/google-apis-apihub_v1/lib/google/apis/apihub_v1/classes.rb index 3659378ebc3..119e5b59a69 100644 --- a/generated/google-apis-apihub_v1/lib/google/apis/apihub_v1/classes.rb +++ b/generated/google-apis-apihub_v1/lib/google/apis/apihub_v1/classes.rb @@ -2811,6 +2811,57 @@ def update!(**args) end end + # The ManagePluginInstanceSourceData method's request. + class GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest + include Google::Apis::Core::Hashable + + # Required. Action to be performed. + # Corresponds to the JSON property `action` + # @return [String] + attr_accessor :action + + # Required. Data to be managed. + # Corresponds to the JSON property `data` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :data + + # Required. Type of data to be managed. + # Corresponds to the JSON property `dataType` + # @return [String] + attr_accessor :data_type + + # Required. Relative path of data being managed for a given plugin instance. + # Corresponds to the JSON property `relativePath` + # @return [String] + attr_accessor :relative_path + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @action = args[:action] if args.key?(:action) + @data = args[:data] if args.key?(:data) + @data_type = args[:data_type] if args.key?(:data_type) + @relative_path = args[:relative_path] if args.key?(:relative_path) + end + end + + # The ManagePluginInstanceSourceData method's response. + class GoogleCloudApihubV1ManagePluginInstanceSourceDataResponse + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + # MatchResult represents the result of matching a discovered API operation with # a catalog API operation. class GoogleCloudApihubV1MatchResult @@ -3129,7 +3180,9 @@ def update!(**args) class GoogleCloudApihubV1Plugin include Google::Apis::Core::Hashable - # Required. The configuration of actions supported by the plugin. + # Optional. The configuration of actions supported by the plugin. **REQUIRED**: + # This field must be provided when creating or updating a Plugin. The server + # will reject requests if this field is missing. # Corresponds to the JSON property `actionsConfig` # @return [Array] attr_accessor :actions_config diff --git a/generated/google-apis-apihub_v1/lib/google/apis/apihub_v1/gem_version.rb b/generated/google-apis-apihub_v1/lib/google/apis/apihub_v1/gem_version.rb index 1748abca945..6bd52d364fb 100644 --- a/generated/google-apis-apihub_v1/lib/google/apis/apihub_v1/gem_version.rb +++ b/generated/google-apis-apihub_v1/lib/google/apis/apihub_v1/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module ApihubV1 # Version of the google-apis-apihub_v1 gem - GEM_VERSION = "0.7.0" + GEM_VERSION = "0.8.0" # Version of the code generator used to generate this client GENERATOR_VERSION = "0.18.0" # Revision of the discovery document this client was generated from - REVISION = "20250829" + REVISION = "20250912" end end end diff --git a/generated/google-apis-apihub_v1/lib/google/apis/apihub_v1/representations.rb b/generated/google-apis-apihub_v1/lib/google/apis/apihub_v1/representations.rb index 10e746f1be8..073d1791348 100644 --- a/generated/google-apis-apihub_v1/lib/google/apis/apihub_v1/representations.rb +++ b/generated/google-apis-apihub_v1/lib/google/apis/apihub_v1/representations.rb @@ -454,6 +454,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudApihubV1ManagePluginInstanceSourceDataResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudApihubV1MatchResult class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1538,6 +1550,22 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :action, as: 'action' + property :data, :base64 => true, as: 'data' + property :data_type, as: 'dataType' + property :relative_path, as: 'relativePath' + end + end + + class GoogleCloudApihubV1ManagePluginInstanceSourceDataResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + class GoogleCloudApihubV1MatchResult # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google-apis-apihub_v1/lib/google/apis/apihub_v1/service.rb b/generated/google-apis-apihub_v1/lib/google/apis/apihub_v1/service.rb index 8be2fb1fa3c..333ffc874a7 100644 --- a/generated/google-apis-apihub_v1/lib/google/apis/apihub_v1/service.rb +++ b/generated/google-apis-apihub_v1/lib/google/apis/apihub_v1/service.rb @@ -119,8 +119,8 @@ def get_project_location(name, fields: nil, quota_user: nil, options: nil, &bloc # @param [String] name # The resource that owns the locations collection, if applicable. # @param [Array, String] extra_location_types - # Optional. Do not use this field. It is unsupported and is ignored unless - # explicitly documented otherwise. This is primarily for internal usage. + # Optional. Unless explicitly documented otherwise, don't use this unsupported + # field which is primarily intended for internal usage. # @param [String] filter # A filter to narrow down results to a preferred subset. The filtering language # 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_ execute_or_queue_command(command, &block) end - # Deletes the API hub instance. + # Deletes the API hub instance. Deleting the API hub instance will also result + # in the removal of all associated runtime project attachments and the host + # project registration. # @param [String] name # Required. The name of the Api Hub instance to delete. Format: `projects/` # project`/locations/`location`/apiHubInstances/`apiHubInstance``. @@ -3614,6 +3616,41 @@ def list_project_location_plugin_instances(parent, filter: nil, page_size: nil, execute_or_queue_command(command, &block) end + # Manages data for a given plugin instance. + # @param [String] name + # Required. The name of the plugin instance for which data needs to be managed. + # Format: `projects/`project`/locations/`location`/plugins/`plugin`/instances/` + # instance`` + # @param [Google::Apis::ApihubV1::GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest] google_cloud_apihub_v1_manage_plugin_instance_source_data_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ApihubV1::GoogleCloudApihubV1ManagePluginInstanceSourceDataResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ApihubV1::GoogleCloudApihubV1ManagePluginInstanceSourceDataResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + 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) + command = make_simple_command(:post, 'v1/{+name}:manageSourceData', options) + command.request_representation = Google::Apis::ApihubV1::GoogleCloudApihubV1ManagePluginInstanceSourceDataRequest::Representation + command.request_object = google_cloud_apihub_v1_manage_plugin_instance_source_data_request_object + command.response_representation = Google::Apis::ApihubV1::GoogleCloudApihubV1ManagePluginInstanceSourceDataResponse::Representation + command.response_class = Google::Apis::ApihubV1::GoogleCloudApihubV1ManagePluginInstanceSourceDataResponse + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Updates a plugin instance in the API hub. The following fields in the # plugin_instance can be updated currently: * display_name * # schedule_cron_expression The update_mask should be used to specify the fields