@@ -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