Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions generated/google-apis-apihub_v1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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<Google::Apis::ApihubV1::GoogleCloudApihubV1PluginActionConfig>]
attr_accessor :actions_config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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>, 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
Expand Down Expand Up @@ -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``.
Expand Down Expand Up @@ -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
Expand Down
Loading