lib/google/apis/retail_v2beta/service.rb in google-apis-retail_v2beta-0.27.0 vs lib/google/apis/retail_v2beta/service.rb in google-apis-retail_v2beta-0.28.0
- old
+ new
@@ -122,14 +122,11 @@
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Get which branch is currently default branch set by CatalogService.
- # SetDefaultBranch method under a specified parent catalog. This feature is only
- # available for users who have Retail Search enabled. Please submit a form [here]
- # (https://cloud.google.com/contact) to contact cloud sales if you are
- # interested in using Retail Search.
+ # SetDefaultBranch method under a specified parent catalog.
# @param [String] catalog
# The parent catalog resource name, such as `projects/*/locations/global/
# catalogs/default_catalog`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -254,13 +251,11 @@
# default branch could potentially cause outages if the ID space of the new
# branch is very different from the old one. More specifically: *
# PredictionService will only return product IDs from branch `newBranch`. *
# SearchService will only return product IDs from branch `newBranch` (if branch
# is not explicitly set). * UserEventService will only join events with products
- # from branch `newBranch`. This feature is only available for users who have
- # Retail Search enabled. Please submit a form [here](https://cloud.google.com/
- # contact) to contact cloud sales if you are interested in using Retail Search.
+ # from branch `newBranch`.
# @param [String] catalog
# Full resource name of the catalog, such as `projects/*/locations/global/
# catalogs/default_catalog`.
# @param [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSetDefaultBranchRequest] google_cloud_retail_v2beta_set_default_branch_request_object
# @param [String] fields
@@ -1629,9 +1624,86 @@
#
# @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 list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'v2beta/{+name}/operations', options)
+ command.response_representation = Google::Apis::RetailV2beta::GoogleLongrunningListOperationsResponse::Representation
+ command.response_class = Google::Apis::RetailV2beta::GoogleLongrunningListOperationsResponse
+ command.params['name'] = name unless name.nil?
+ command.query['filter'] = filter unless filter.nil?
+ command.query['pageSize'] = page_size unless page_size.nil?
+ command.query['pageToken'] = page_token unless page_token.nil?
+ command.query['fields'] = fields unless fields.nil?
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
+ execute_or_queue_command(command, &block)
+ end
+
+ # Gets the latest state of a long-running operation. Clients can use this method
+ # to poll the operation result at intervals as recommended by the API service.
+ # @param [String] name
+ # The name of the operation resource.
+ # @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::RetailV2beta::GoogleLongrunningOperation] parsed result object
+ # @yieldparam err [StandardError] error object if request failed
+ #
+ # @return [Google::Apis::RetailV2beta::GoogleLongrunningOperation]
+ #
+ # @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 get_project_operation(name, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'v2beta/{+name}', options)
+ command.response_representation = Google::Apis::RetailV2beta::GoogleLongrunningOperation::Representation
+ command.response_class = Google::Apis::RetailV2beta::GoogleLongrunningOperation
+ 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
+
+ # Lists operations that match the specified filter in the request. If the server
+ # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
+ # binding allows API services to override the binding to use different resource
+ # name schemes, such as `users/*/operations`. To override the binding, API
+ # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
+ # service configuration. For backwards compatibility, the default name includes
+ # the operations collection id, however overriding users must ensure the name
+ # binding is the parent resource, without the operations collection id.
+ # @param [String] name
+ # The name of the operation's parent resource.
+ # @param [String] filter
+ # The standard list filter.
+ # @param [Fixnum] page_size
+ # The standard list page size.
+ # @param [String] page_token
+ # The standard list page token.
+ # @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::RetailV2beta::GoogleLongrunningListOperationsResponse] parsed result object
+ # @yieldparam err [StandardError] error object if request failed
+ #
+ # @return [Google::Apis::RetailV2beta::GoogleLongrunningListOperationsResponse]
+ #
+ # @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 list_project_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v2beta/{+name}/operations', options)
command.response_representation = Google::Apis::RetailV2beta::GoogleLongrunningListOperationsResponse::Representation
command.response_class = Google::Apis::RetailV2beta::GoogleLongrunningListOperationsResponse
command.params['name'] = name unless name.nil?
command.query['filter'] = filter unless filter.nil?