Class: Google::Apis::RetailV2beta::CloudRetailService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::RetailV2beta::CloudRetailService
- Defined in:
- lib/google/apis/retail_v2beta/service.rb
Overview
Vertex AI Search for Retail API
Vertex AI Search for Retail API is made up of Retail Search, Browse and Recommendations. These discovery AI solutions help you implement personalized search, browse and recommendations, based on machine learning models, across your websites and mobile applications.
Constant Summary collapse
- DEFAULT_ENDPOINT_TEMPLATE =
"https://retail.$UNIVERSE_DOMAIN$/"
Instance Attribute Summary collapse
-
#key ⇒ String
API key.
-
#quota_user ⇒ String
Available to use for quota purposes for server-side applications.
Instance Method Summary collapse
-
#add_project_location_catalog_attributes_config_catalog_attribute(attributes_config, google_cloud_retail_v2beta_add_catalog_attribute_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAttributesConfig
Adds the specified CatalogAttribute to the AttributesConfig.
-
#add_project_location_catalog_branch_product_fulfillment_places(product, google_cloud_retail_v2beta_add_fulfillment_places_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleLongrunningOperation
We recommend that you use the ProductService.AddLocalInventories method instead of the ProductService.AddFulfillmentPlaces method.
-
#add_project_location_catalog_branch_product_local_inventories(product, google_cloud_retail_v2beta_add_local_inventories_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleLongrunningOperation
Updates local inventory information for a Product at a list of places, while respecting the last update timestamps of each inventory field.
-
#add_project_location_catalog_serving_config_control(serving_config, google_cloud_retail_v2beta_add_control_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaServingConfig
Enables a Control on the specified ServingConfig.
-
#batch_project_location_catalog_attributes_config_remove_catalog_attributes(attributes_config, google_cloud_retail_v2beta_batch_remove_catalog_attributes_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaBatchRemoveCatalogAttributesResponse
Removes all specified CatalogAttributes from the AttributesConfig.
-
#batch_project_location_catalog_generative_question_update(parent, google_cloud_retail_v2beta_batch_update_generative_question_configs_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaBatchUpdateGenerativeQuestionConfigsResponse
Allows management of multiple questions.
-
#collect_project_location_catalog_user_event(parent, ets: nil, prebuilt_rule: nil, raw_json: nil, uri: nil, user_event: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleApiHttpBody
Writes a single user event from the browser.
-
#complete_project_location_catalog_query(catalog, dataset: nil, device_type: nil, enable_attribute_suggestions: nil, entity: nil, language_codes: nil, max_suggestions: nil, query: nil, visitor_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCompleteQueryResponse
Completes the specified prefix with keyword suggestions.
-
#create_project_location_catalog_branch_product(parent, google_cloud_retail_v2beta_product_object = nil, product_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaProduct
Creates a Product.
-
#create_project_location_catalog_control(parent, google_cloud_retail_v2beta_control_object = nil, control_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaControl
Creates a Control.
-
#create_project_location_catalog_model(parent, google_cloud_retail_v2beta_model_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleLongrunningOperation
Creates a new model.
-
#create_project_location_catalog_serving_config(parent, google_cloud_retail_v2beta_serving_config_object = nil, serving_config_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaServingConfig
Creates a ServingConfig.
-
#delete_project_location_catalog_branch_product(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleProtobufEmpty
Deletes a Product.
-
#delete_project_location_catalog_control(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleProtobufEmpty
Deletes a Control.
-
#delete_project_location_catalog_model(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleProtobufEmpty
Deletes an existing model.
-
#delete_project_location_catalog_serving_config(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleProtobufEmpty
Deletes a ServingConfig.
-
#export_project_location_catalog_analytics_metrics(catalog, google_cloud_retail_v2beta_export_analytics_metrics_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleLongrunningOperation
Exports analytics metrics.
-
#export_project_location_catalog_branch_product(parent, google_cloud_retail_v2beta_export_products_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleLongrunningOperation
Exports multiple Products.
-
#export_project_location_catalog_user_event(parent, google_cloud_retail_v2beta_export_user_events_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleLongrunningOperation
Exports user events.
-
#get_project_alert_config(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAlertConfig
Get the AlertConfig of the requested project.
-
#get_project_location_catalog_attributes_config(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAttributesConfig
Gets an AttributesConfig.
-
#get_project_location_catalog_branch_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleLongrunningOperation
Gets the latest state of a long-running operation.
-
#get_project_location_catalog_branch_product(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaProduct
Gets a Product.
-
#get_project_location_catalog_completion_config(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCompletionConfig
Gets a CompletionConfig.
-
#get_project_location_catalog_control(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaControl
Gets a Control.
-
#get_project_location_catalog_default_branch(catalog, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaGetDefaultBranchResponse
Get which branch is currently default branch set by CatalogService.
-
#get_project_location_catalog_generative_question_feature(catalog, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaGenerativeQuestionsFeatureConfig
Manages overal generative question feature state -- enables toggling feature on and off.
-
#get_project_location_catalog_model(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaModel
Gets a model.
-
#get_project_location_catalog_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleLongrunningOperation
Gets the latest state of a long-running operation.
-
#get_project_location_catalog_serving_config(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaServingConfig
Gets a ServingConfig.
-
#get_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleLongrunningOperation
Gets the latest state of a long-running operation.
-
#get_project_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleLongrunningOperation
Gets the latest state of a long-running operation.
-
#import_project_location_catalog_branch_product(parent, google_cloud_retail_v2beta_import_products_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleLongrunningOperation
Bulk import of multiple Products.
-
#import_project_location_catalog_completion_datum(parent, google_cloud_retail_v2beta_import_completion_data_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleLongrunningOperation
Bulk import of processed completion dataset.
-
#import_project_location_catalog_user_event(parent, google_cloud_retail_v2beta_import_user_events_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleLongrunningOperation
Bulk import of User events.
-
#initialize ⇒ CloudRetailService
constructor
A new instance of CloudRetailService.
-
#list_project_location_catalog_branch_products(parent, filter: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaListProductsResponse
Gets a list of Products.
-
#list_project_location_catalog_controls(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaListControlsResponse
Lists all Controls by their parent Catalog.
-
#list_project_location_catalog_generative_questions(parent, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaListGenerativeQuestionConfigsResponse
Returns all questions for a given catalog.
-
#list_project_location_catalog_models(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaListModelsResponse
Lists all the models linked to this event store.
-
#list_project_location_catalog_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleLongrunningListOperationsResponse
Lists operations that match the specified filter in the request.
-
#list_project_location_catalog_serving_configs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaListServingConfigsResponse
Lists all ServingConfigs linked to this catalog.
-
#list_project_location_catalogs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaListCatalogsResponse
Lists all the Catalogs associated with the project.
-
#list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleLongrunningListOperationsResponse
Lists operations that match the specified filter in the request.
-
#list_project_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleLongrunningListOperationsResponse
Lists operations that match the specified filter in the request.
-
#patch_project_location_catalog(name, google_cloud_retail_v2beta_catalog_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCatalog
Updates the Catalogs.
-
#patch_project_location_catalog_branch_product(name, google_cloud_retail_v2beta_product_object = nil, allow_missing: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaProduct
Updates a Product.
-
#patch_project_location_catalog_control(name, google_cloud_retail_v2beta_control_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaControl
Updates a Control.
-
#patch_project_location_catalog_model(name, google_cloud_retail_v2beta_model_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaModel
Update of model metadata.
-
#patch_project_location_catalog_serving_config(name, google_cloud_retail_v2beta_serving_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaServingConfig
Updates a ServingConfig.
-
#pause_project_location_catalog_model(name, google_cloud_retail_v2beta_pause_model_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaModel
Pauses the training of an existing model.
-
#predict_project_location_catalog_placement(placement, google_cloud_retail_v2beta_predict_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPredictResponse
Makes a recommendation prediction.
-
#predict_project_location_catalog_serving_config(placement, google_cloud_retail_v2beta_predict_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPredictResponse
Makes a recommendation prediction.
-
#purge_project_location_catalog_branch_product(parent, google_cloud_retail_v2beta_purge_products_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleLongrunningOperation
Permanently deletes all selected Products under a branch.
-
#purge_project_location_catalog_user_event(parent, google_cloud_retail_v2beta_purge_user_events_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleLongrunningOperation
Deletes permanently all user events specified by the filter provided.
-
#rejoin_project_location_catalog_user_event(parent, google_cloud_retail_v2beta_rejoin_user_events_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleLongrunningOperation
Starts a user-event rejoin operation with latest product catalog.
-
#remove_project_location_catalog_attributes_config_catalog_attribute(attributes_config, google_cloud_retail_v2beta_remove_catalog_attribute_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAttributesConfig
Removes the specified CatalogAttribute from the AttributesConfig.
-
#remove_project_location_catalog_branch_product_fulfillment_places(product, google_cloud_retail_v2beta_remove_fulfillment_places_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleLongrunningOperation
We recommend that you use the ProductService.RemoveLocalInventories method instead of the ProductService.RemoveFulfillmentPlaces method.
-
#remove_project_location_catalog_branch_product_local_inventories(product, google_cloud_retail_v2beta_remove_local_inventories_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleLongrunningOperation
Remove local inventory information for a Product at a list of places at a removal timestamp.
-
#remove_project_location_catalog_serving_config_control(serving_config, google_cloud_retail_v2beta_remove_control_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaServingConfig
Disables a Control on the specified ServingConfig.
-
#replace_project_location_catalog_attributes_config_catalog_attribute(attributes_config, google_cloud_retail_v2beta_replace_catalog_attribute_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAttributesConfig
Replaces the specified CatalogAttribute in the AttributesConfig by updating the catalog attribute with the same CatalogAttribute.key.
-
#resume_project_location_catalog_model(name, google_cloud_retail_v2beta_resume_model_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaModel
Resumes the training of an existing model.
-
#search_project_location_catalog_placements(placement, google_cloud_retail_v2beta_search_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchResponse
Performs a search.
-
#search_project_location_catalog_serving_configs(placement, google_cloud_retail_v2beta_search_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchResponse
Performs a search.
-
#set_project_location_catalog_branch_product_inventory(name, google_cloud_retail_v2beta_set_inventory_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleLongrunningOperation
Updates inventory information for a Product while respecting the last update timestamps of each inventory field.
-
#set_project_location_catalog_default_branch(catalog, google_cloud_retail_v2beta_set_default_branch_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleProtobufEmpty
Set a specified branch id as default branch.
-
#tune_project_location_catalog_model(name, google_cloud_retail_v2beta_tune_model_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleLongrunningOperation
Tunes an existing model.
-
#update_project_alert_config(name, google_cloud_retail_v2beta_alert_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAlertConfig
Update the alert config of the requested project.
-
#update_project_location_catalog_attributes_config(name, google_cloud_retail_v2beta_attributes_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAttributesConfig
Updates the AttributesConfig.
-
#update_project_location_catalog_completion_config(name, google_cloud_retail_v2beta_completion_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCompletionConfig
Updates the CompletionConfigs.
-
#update_project_location_catalog_generative_question(catalog, google_cloud_retail_v2beta_generative_question_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaGenerativeQuestionConfig
Allows management of individual questions.
-
#update_project_location_catalog_generative_question_feature(catalog, google_cloud_retail_v2beta_generative_questions_feature_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaGenerativeQuestionsFeatureConfig
Manages overal generative question feature state -- enables toggling feature on and off.
-
#write_project_location_catalog_user_event(parent, google_cloud_retail_v2beta_user_event_object = nil, write_async: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaUserEvent
Writes a single user event.
Constructor Details
#initialize ⇒ CloudRetailService
Returns a new instance of CloudRetailService.
50 51 52 53 54 55 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 50 def initialize super(DEFAULT_ENDPOINT_TEMPLATE, '', client_name: 'google-apis-retail_v2beta', client_version: Google::Apis::RetailV2beta::GEM_VERSION) @batch_path = 'batch' end |
Instance Attribute Details
#key ⇒ String
Returns API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
43 44 45 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 43 def key @key end |
#quota_user ⇒ String
Returns 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.
48 49 50 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 48 def quota_user @quota_user end |
Instance Method Details
#add_project_location_catalog_attributes_config_catalog_attribute(attributes_config, google_cloud_retail_v2beta_add_catalog_attribute_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAttributesConfig
Adds the specified CatalogAttribute to the AttributesConfig. If the CatalogAttribute to add already exists, an ALREADY_EXISTS error is returned.
692 693 694 695 696 697 698 699 700 701 702 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 692 def add_project_location_catalog_attributes_config_catalog_attribute(attributes_config, google_cloud_retail_v2beta_add_catalog_attribute_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2beta/{+attributesConfig}:addCatalogAttribute', ) command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAddCatalogAttributeRequest::Representation command.request_object = google_cloud_retail_v2beta_add_catalog_attribute_request_object command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAttributesConfig::Representation command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAttributesConfig command.params['attributesConfig'] = attributes_config unless attributes_config.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#add_project_location_catalog_branch_product_fulfillment_places(product, google_cloud_retail_v2beta_add_fulfillment_places_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleLongrunningOperation
We recommend that you use the ProductService.AddLocalInventories method instead of the ProductService.AddFulfillmentPlaces method. ProductService. AddLocalInventories achieves the same results but provides more fine-grained control over ingesting local inventory data. Incrementally adds place IDs to Product.fulfillment_info.place_ids. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the added place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete.
877 878 879 880 881 882 883 884 885 886 887 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 877 def add_project_location_catalog_branch_product_fulfillment_places(product, google_cloud_retail_v2beta_add_fulfillment_places_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2beta/{+product}:addFulfillmentPlaces', ) command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAddFulfillmentPlacesRequest::Representation command.request_object = google_cloud_retail_v2beta_add_fulfillment_places_request_object command.response_representation = Google::Apis::RetailV2beta::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::RetailV2beta::GoogleLongrunningOperation command.params['product'] = product unless product.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#add_project_location_catalog_branch_product_local_inventories(product, google_cloud_retail_v2beta_add_local_inventories_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleLongrunningOperation
Updates local inventory information for a Product at a list of places, while respecting the last update timestamps of each inventory field. This process is asynchronous and does not require the Product to exist before updating inventory information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, updates are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. Local inventory information can only be modified using this method. ProductService. CreateProduct and ProductService.UpdateProduct has no effect on local inventories. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete.
925 926 927 928 929 930 931 932 933 934 935 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 925 def add_project_location_catalog_branch_product_local_inventories(product, google_cloud_retail_v2beta_add_local_inventories_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2beta/{+product}:addLocalInventories', ) command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAddLocalInventoriesRequest::Representation command.request_object = google_cloud_retail_v2beta_add_local_inventories_request_object command.response_representation = Google::Apis::RetailV2beta::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::RetailV2beta::GoogleLongrunningOperation command.params['product'] = product unless product.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#add_project_location_catalog_serving_config_control(serving_config, google_cloud_retail_v2beta_add_control_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaServingConfig
Enables a Control on the specified ServingConfig. The control is added in the last position of the list of controls it belongs to (e.g. if it's a facet spec control it will be applied in the last position of servingConfig.facetSpecIds) Returns a ALREADY_EXISTS error if the control has already been applied. Returns a FAILED_PRECONDITION error if the addition could exceed maximum number of control allowed for that type of control.
2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 2189 def add_project_location_catalog_serving_config_control(serving_config, google_cloud_retail_v2beta_add_control_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2beta/{+servingConfig}:addControl', ) command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAddControlRequest::Representation command.request_object = google_cloud_retail_v2beta_add_control_request_object command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaServingConfig::Representation command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaServingConfig command.params['servingConfig'] = serving_config unless serving_config.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#batch_project_location_catalog_attributes_config_remove_catalog_attributes(attributes_config, google_cloud_retail_v2beta_batch_remove_catalog_attributes_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaBatchRemoveCatalogAttributesResponse
Removes all specified CatalogAttributes from the AttributesConfig.
727 728 729 730 731 732 733 734 735 736 737 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 727 def batch_project_location_catalog_attributes_config_remove_catalog_attributes(attributes_config, google_cloud_retail_v2beta_batch_remove_catalog_attributes_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2beta/{+attributesConfig}:batchRemoveCatalogAttributes', ) command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaBatchRemoveCatalogAttributesRequest::Representation command.request_object = google_cloud_retail_v2beta_batch_remove_catalog_attributes_request_object command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaBatchRemoveCatalogAttributesResponse::Representation command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaBatchRemoveCatalogAttributesResponse command.params['attributesConfig'] = attributes_config unless attributes_config.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#batch_project_location_catalog_generative_question_update(parent, google_cloud_retail_v2beta_batch_update_generative_question_configs_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaBatchUpdateGenerativeQuestionConfigsResponse
Allows management of multiple questions.
1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 1680 def batch_project_location_catalog_generative_question_update(parent, google_cloud_retail_v2beta_batch_update_generative_question_configs_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2beta/{+parent}/generativeQuestion:batchUpdate', ) command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaBatchUpdateGenerativeQuestionConfigsRequest::Representation command.request_object = google_cloud_retail_v2beta_batch_update_generative_question_configs_request_object command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaBatchUpdateGenerativeQuestionConfigsResponse::Representation command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaBatchUpdateGenerativeQuestionConfigsResponse command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#collect_project_location_catalog_user_event(parent, ets: nil, prebuilt_rule: nil, raw_json: nil, uri: nil, user_event: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleApiHttpBody
Writes a single user event from the browser. This uses a GET request to due to browser restriction of POST-ing to a 3rd party domain. This method is used only by the Retail API JavaScript pixel and Google Tag Manager. Users should not call this method directly.
2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 2547 def collect_project_location_catalog_user_event(parent, ets: nil, prebuilt_rule: nil, raw_json: nil, uri: nil, user_event: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2beta/{+parent}/userEvents:collect', ) command.response_representation = Google::Apis::RetailV2beta::GoogleApiHttpBody::Representation command.response_class = Google::Apis::RetailV2beta::GoogleApiHttpBody command.params['parent'] = parent unless parent.nil? command.query['ets'] = ets unless ets.nil? command.query['prebuiltRule'] = prebuilt_rule unless prebuilt_rule.nil? command.query['rawJson'] = raw_json unless raw_json.nil? command.query['uri'] = uri unless uri.nil? command.query['userEvent'] = user_event unless user_event.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#complete_project_location_catalog_query(catalog, dataset: nil, device_type: nil, enable_attribute_suggestions: nil, entity: nil, language_codes: nil, max_suggestions: nil, query: nil, visitor_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCompleteQueryResponse
Completes the specified prefix with keyword suggestions. This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature.
193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 193 def complete_project_location_catalog_query(catalog, dataset: nil, device_type: nil, enable_attribute_suggestions: nil, entity: nil, language_codes: nil, max_suggestions: nil, query: nil, visitor_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2beta/{+catalog}:completeQuery', ) command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCompleteQueryResponse::Representation command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCompleteQueryResponse command.params['catalog'] = catalog unless catalog.nil? command.query['dataset'] = dataset unless dataset.nil? command.query['deviceType'] = device_type unless device_type.nil? command.query['enableAttributeSuggestions'] = enable_attribute_suggestions unless enable_attribute_suggestions.nil? command.query['entity'] = entity unless entity.nil? command.query['languageCodes'] = language_codes unless language_codes.nil? command.query['maxSuggestions'] = max_suggestions unless max_suggestions.nil? command.query['query'] = query unless query.nil? command.query['visitorId'] = visitor_id unless visitor_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_catalog_branch_product(parent, google_cloud_retail_v2beta_product_object = nil, product_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaProduct
Creates a Product.
967 968 969 970 971 972 973 974 975 976 977 978 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 967 def create_project_location_catalog_branch_product(parent, google_cloud_retail_v2beta_product_object = nil, product_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2beta/{+parent}/products', ) command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaProduct::Representation command.request_object = google_cloud_retail_v2beta_product_object command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaProduct::Representation command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaProduct command.params['parent'] = parent unless parent.nil? command.query['productId'] = product_id unless product_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_catalog_control(parent, google_cloud_retail_v2beta_control_object = nil, control_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaControl
Creates a Control. If the Control to create already exists, an ALREADY_EXISTS error is returned.
1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 1494 def create_project_location_catalog_control(parent, google_cloud_retail_v2beta_control_object = nil, control_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2beta/{+parent}/controls', ) command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaControl::Representation command.request_object = google_cloud_retail_v2beta_control_object command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaControl::Representation command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaControl command.params['parent'] = parent unless parent.nil? command.query['controlId'] = control_id unless control_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_catalog_model(parent, google_cloud_retail_v2beta_model_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleLongrunningOperation
Creates a new model.
1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 1748 def create_project_location_catalog_model(parent, google_cloud_retail_v2beta_model_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2beta/{+parent}/models', ) command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaModel::Representation command.request_object = google_cloud_retail_v2beta_model_object command.response_representation = Google::Apis::RetailV2beta::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::RetailV2beta::GoogleLongrunningOperation command.params['parent'] = parent unless parent.nil? command.query['dryRun'] = dry_run unless dry_run.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_catalog_serving_config(parent, google_cloud_retail_v2beta_serving_config_object = nil, serving_config_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaServingConfig
Creates a ServingConfig. A maximum of 100 ServingConfigs are allowed in a Catalog, otherwise a FAILED_PRECONDITION error is returned.
2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 2228 def create_project_location_catalog_serving_config(parent, google_cloud_retail_v2beta_serving_config_object = nil, serving_config_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2beta/{+parent}/servingConfigs', ) command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaServingConfig::Representation command.request_object = google_cloud_retail_v2beta_serving_config_object command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaServingConfig::Representation command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaServingConfig command.params['parent'] = parent unless parent.nil? command.query['servingConfigId'] = serving_config_id unless serving_config_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_catalog_branch_product(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleProtobufEmpty
Deletes a Product.
1008 1009 1010 1011 1012 1013 1014 1015 1016 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 1008 def delete_project_location_catalog_branch_product(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v2beta/{+name}', ) command.response_representation = Google::Apis::RetailV2beta::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::RetailV2beta::GoogleProtobufEmpty 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 |
#delete_project_location_catalog_control(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleProtobufEmpty
Deletes a Control. If the Control to delete does not exist, a NOT_FOUND error is returned.
1530 1531 1532 1533 1534 1535 1536 1537 1538 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 1530 def delete_project_location_catalog_control(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v2beta/{+name}', ) command.response_representation = Google::Apis::RetailV2beta::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::RetailV2beta::GoogleProtobufEmpty 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 |
#delete_project_location_catalog_model(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleProtobufEmpty
Deletes an existing model.
1783 1784 1785 1786 1787 1788 1789 1790 1791 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 1783 def delete_project_location_catalog_model(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v2beta/{+name}', ) command.response_representation = Google::Apis::RetailV2beta::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::RetailV2beta::GoogleProtobufEmpty 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 |
#delete_project_location_catalog_serving_config(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleProtobufEmpty
Deletes a ServingConfig. Returns a NotFound error if the ServingConfig does not exist.
2264 2265 2266 2267 2268 2269 2270 2271 2272 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 2264 def delete_project_location_catalog_serving_config(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v2beta/{+name}', ) command.response_representation = Google::Apis::RetailV2beta::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::RetailV2beta::GoogleProtobufEmpty 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 |
#export_project_location_catalog_analytics_metrics(catalog, google_cloud_retail_v2beta_export_analytics_metrics_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleLongrunningOperation
Exports analytics metrics. Operation.response
is of type
ExportAnalyticsMetricsResponse
. Operation.metadata
is of type
ExportMetadata
.
235 236 237 238 239 240 241 242 243 244 245 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 235 def export_project_location_catalog_analytics_metrics(catalog, google_cloud_retail_v2beta_export_analytics_metrics_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2beta/{+catalog}:exportAnalyticsMetrics', ) command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaExportAnalyticsMetricsRequest::Representation command.request_object = google_cloud_retail_v2beta_export_analytics_metrics_request_object command.response_representation = Google::Apis::RetailV2beta::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::RetailV2beta::GoogleLongrunningOperation command.params['catalog'] = catalog unless catalog.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#export_project_location_catalog_branch_product(parent, google_cloud_retail_v2beta_export_products_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleLongrunningOperation
Exports multiple Products.
1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 1041 def export_project_location_catalog_branch_product(parent, google_cloud_retail_v2beta_export_products_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2beta/{+parent}/products:export', ) command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaExportProductsRequest::Representation command.request_object = google_cloud_retail_v2beta_export_products_request_object command.response_representation = Google::Apis::RetailV2beta::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::RetailV2beta::GoogleLongrunningOperation command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#export_project_location_catalog_user_event(parent, google_cloud_retail_v2beta_export_user_events_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleLongrunningOperation
Exports user events. Operation.response
is of type ExportResponse
.
Operation.metadata
is of type ExportMetadata
.
2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 2585 def export_project_location_catalog_user_event(parent, google_cloud_retail_v2beta_export_user_events_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2beta/{+parent}/userEvents:export', ) command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaExportUserEventsRequest::Representation command.request_object = google_cloud_retail_v2beta_export_user_events_request_object command.response_representation = Google::Apis::RetailV2beta::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::RetailV2beta::GoogleLongrunningOperation command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_alert_config(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAlertConfig
Get the AlertConfig of the requested project.
78 79 80 81 82 83 84 85 86 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 78 def get_project_alert_config(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2beta/{+name}', ) command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAlertConfig::Representation command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAlertConfig 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 |
#get_project_location_catalog_attributes_config(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAttributesConfig
Gets an AttributesConfig.
268 269 270 271 272 273 274 275 276 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 268 def get_project_location_catalog_attributes_config(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2beta/{+name}', ) command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAttributesConfig::Representation command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAttributesConfig 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 |
#get_project_location_catalog_branch_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleLongrunningOperation
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.
831 832 833 834 835 836 837 838 839 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 831 def get_project_location_catalog_branch_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2beta/{+name}', ) 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 |
#get_project_location_catalog_branch_product(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaProduct
Gets a Product.
1077 1078 1079 1080 1081 1082 1083 1084 1085 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 1077 def get_project_location_catalog_branch_product(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2beta/{+name}', ) command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaProduct::Representation command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaProduct 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 |
#get_project_location_catalog_completion_config(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCompletionConfig
Gets a CompletionConfig.
299 300 301 302 303 304 305 306 307 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 299 def get_project_location_catalog_completion_config(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2beta/{+name}', ) command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCompletionConfig::Representation command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCompletionConfig 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 |
#get_project_location_catalog_control(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaControl
Gets a Control.
1562 1563 1564 1565 1566 1567 1568 1569 1570 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 1562 def get_project_location_catalog_control(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2beta/{+name}', ) command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaControl::Representation command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaControl 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 |
#get_project_location_catalog_default_branch(catalog, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaGetDefaultBranchResponse
Get which branch is currently default branch set by CatalogService. SetDefaultBranch method under a specified parent catalog.
331 332 333 334 335 336 337 338 339 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 331 def get_project_location_catalog_default_branch(catalog, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2beta/{+catalog}:getDefaultBranch', ) command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaGetDefaultBranchResponse::Representation command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaGetDefaultBranchResponse command.params['catalog'] = catalog unless catalog.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_catalog_generative_question_feature(catalog, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaGenerativeQuestionsFeatureConfig
Manages overal generative question feature state -- enables toggling feature on and off.
363 364 365 366 367 368 369 370 371 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 363 def get_project_location_catalog_generative_question_feature(catalog, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2beta/{+catalog}/generativeQuestionFeature', ) command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaGenerativeQuestionsFeatureConfig::Representation command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaGenerativeQuestionsFeatureConfig command.params['catalog'] = catalog unless catalog.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_catalog_model(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaModel
Gets a model.
1814 1815 1816 1817 1818 1819 1820 1821 1822 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 1814 def get_project_location_catalog_model(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2beta/{+name}', ) command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaModel::Representation command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaModel 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 |
#get_project_location_catalog_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleLongrunningOperation
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.
2029 2030 2031 2032 2033 2034 2035 2036 2037 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 2029 def get_project_location_catalog_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2beta/{+name}', ) 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 |
#get_project_location_catalog_serving_config(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaServingConfig
Gets a ServingConfig. Returns a NotFound error if the ServingConfig does not exist.
2297 2298 2299 2300 2301 2302 2303 2304 2305 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 2297 def get_project_location_catalog_serving_config(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2beta/{+name}', ) command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaServingConfig::Representation command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaServingConfig 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 |
#get_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleLongrunningOperation
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.
2773 2774 2775 2776 2777 2778 2779 2780 2781 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 2773 def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2beta/{+name}', ) 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 |
#get_project_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleLongrunningOperation
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.
2844 2845 2846 2847 2848 2849 2850 2851 2852 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 2844 def get_project_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2beta/{+name}', ) 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 |
#import_project_location_catalog_branch_product(parent, google_cloud_retail_v2beta_import_products_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleLongrunningOperation
Bulk import of multiple Products. Request processing may be synchronous. Non- existing items are created. Note that it is possible for a subset of the Products to be successfully updated.
1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 1112 def import_project_location_catalog_branch_product(parent, google_cloud_retail_v2beta_import_products_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2beta/{+parent}/products:import', ) command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaImportProductsRequest::Representation command.request_object = google_cloud_retail_v2beta_import_products_request_object command.response_representation = Google::Apis::RetailV2beta::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::RetailV2beta::GoogleLongrunningOperation command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#import_project_location_catalog_completion_datum(parent, google_cloud_retail_v2beta_import_completion_data_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleLongrunningOperation
Bulk import of processed completion dataset. Request processing is asynchronous. Partial updating is not supported. The operation is successfully finished only after the imported suggestions are indexed successfully and ready for serving. The process takes hours. This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature.
1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 1455 def import_project_location_catalog_completion_datum(parent, google_cloud_retail_v2beta_import_completion_data_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2beta/{+parent}/completionData:import', ) command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaImportCompletionDataRequest::Representation command.request_object = google_cloud_retail_v2beta_import_completion_data_request_object command.response_representation = Google::Apis::RetailV2beta::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::RetailV2beta::GoogleLongrunningOperation command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#import_project_location_catalog_user_event(parent, google_cloud_retail_v2beta_import_user_events_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleLongrunningOperation
Bulk import of User events. Request processing might be synchronous. Events
that already exist are skipped. Use this method for backfilling historical
user events. Operation.response
is of type ImportResponse
. Note that it is
possible for a subset of the items to be successfully inserted. Operation.
metadata
is of type ImportMetadata
.
2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 2622 def import_project_location_catalog_user_event(parent, google_cloud_retail_v2beta_import_user_events_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2beta/{+parent}/userEvents:import', ) command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaImportUserEventsRequest::Representation command.request_object = google_cloud_retail_v2beta_import_user_events_request_object command.response_representation = Google::Apis::RetailV2beta::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::RetailV2beta::GoogleLongrunningOperation command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_catalog_branch_products(parent, filter: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaListProductsResponse
Gets a list of Products.
1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 1176 def list_project_location_catalog_branch_products(parent, filter: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2beta/{+parent}/products', ) command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaListProductsResponse::Representation command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaListProductsResponse command.params['parent'] = parent unless parent.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['readMask'] = read_mask unless read_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_catalog_controls(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaListControlsResponse
Lists all Controls by their parent Catalog.
1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 1604 def list_project_location_catalog_controls(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2beta/{+parent}/controls', ) command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaListControlsResponse::Representation command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaListControlsResponse command.params['parent'] = parent unless parent.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 |
#list_project_location_catalog_generative_questions(parent, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaListGenerativeQuestionConfigsResponse
Returns all questions for a given catalog.
1713 1714 1715 1716 1717 1718 1719 1720 1721 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 1713 def list_project_location_catalog_generative_questions(parent, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2beta/{+parent}/generativeQuestions', ) command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaListGenerativeQuestionConfigsResponse::Representation command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaListGenerativeQuestionConfigsResponse command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_catalog_models(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaListModelsResponse
Lists all the models linked to this event store.
1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 1851 def list_project_location_catalog_models(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2beta/{+parent}/models', ) command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaListModelsResponse::Representation command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaListModelsResponse command.params['parent'] = parent unless parent.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 |
#list_project_location_catalog_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleLongrunningListOperationsResponse
Lists operations that match the specified filter in the request. If the server
doesn't support this method, it returns UNIMPLEMENTED
.
2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 2066 def list_project_location_catalog_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', ) 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 |
#list_project_location_catalog_serving_configs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaListServingConfigsResponse
Lists all ServingConfigs linked to this catalog.
2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 2334 def list_project_location_catalog_serving_configs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2beta/{+parent}/servingConfigs', ) command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaListServingConfigsResponse::Representation command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaListServingConfigsResponse command.params['parent'] = parent unless parent.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 |
#list_project_location_catalogs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaListCatalogsResponse
Lists all the Catalogs associated with the project.
405 406 407 408 409 410 411 412 413 414 415 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 405 def list_project_location_catalogs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2beta/{+parent}/catalogs', ) command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaListCatalogsResponse::Representation command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaListCatalogsResponse command.params['parent'] = parent unless parent.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 |
#list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleLongrunningListOperationsResponse
Lists operations that match the specified filter in the request. If the server
doesn't support this method, it returns UNIMPLEMENTED
.
2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 2810 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', ) 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 |
#list_project_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleLongrunningListOperationsResponse
Lists operations that match the specified filter in the request. If the server
doesn't support this method, it returns UNIMPLEMENTED
.
2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 2881 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', ) 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 |
#patch_project_location_catalog(name, google_cloud_retail_v2beta_catalog_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCatalog
Updates the Catalogs.
441 442 443 444 445 446 447 448 449 450 451 452 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 441 def patch_project_location_catalog(name, google_cloud_retail_v2beta_catalog_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v2beta/{+name}', ) command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCatalog::Representation command.request_object = google_cloud_retail_v2beta_catalog_object command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCatalog::Representation command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCatalog command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_catalog_branch_product(name, google_cloud_retail_v2beta_product_object = nil, allow_missing: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaProduct
Updates a Product.
1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 1223 def patch_project_location_catalog_branch_product(name, google_cloud_retail_v2beta_product_object = nil, allow_missing: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v2beta/{+name}', ) command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaProduct::Representation command.request_object = google_cloud_retail_v2beta_product_object command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaProduct::Representation command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaProduct command.params['name'] = name unless name.nil? command.query['allowMissing'] = allow_missing unless allow_missing.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_catalog_control(name, google_cloud_retail_v2beta_control_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaControl
Updates a Control. Control cannot be set to a different oneof field, if so an INVALID_ARGUMENT is returned. If the Control to update does not exist, a NOT_FOUND error is returned.
1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 1645 def patch_project_location_catalog_control(name, google_cloud_retail_v2beta_control_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v2beta/{+name}', ) command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaControl::Representation command.request_object = google_cloud_retail_v2beta_control_object command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaControl::Representation command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaControl command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_catalog_model(name, google_cloud_retail_v2beta_model_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaModel
Update of model metadata. Only fields that currently can be updated are:
filtering_option
and periodic_tuning_state
. If other values are provided,
this API method ignores them.
1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 1892 def patch_project_location_catalog_model(name, google_cloud_retail_v2beta_model_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v2beta/{+name}', ) command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaModel::Representation command.request_object = google_cloud_retail_v2beta_model_object command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaModel::Representation command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaModel command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_catalog_serving_config(name, google_cloud_retail_v2beta_serving_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaServingConfig
Updates a ServingConfig.
2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 2372 def patch_project_location_catalog_serving_config(name, google_cloud_retail_v2beta_serving_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v2beta/{+name}', ) command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaServingConfig::Representation command.request_object = google_cloud_retail_v2beta_serving_config_object command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaServingConfig::Representation command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaServingConfig command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#pause_project_location_catalog_model(name, google_cloud_retail_v2beta_pause_model_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaModel
Pauses the training of an existing model.
1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 1927 def pause_project_location_catalog_model(name, google_cloud_retail_v2beta_pause_model_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2beta/{+name}:pause', ) command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPauseModelRequest::Representation command.request_object = google_cloud_retail_v2beta_pause_model_request_object command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaModel::Representation command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaModel 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 |
#predict_project_location_catalog_placement(placement, google_cloud_retail_v2beta_predict_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPredictResponse
Makes a recommendation prediction.
2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 2109 def predict_project_location_catalog_placement(placement, google_cloud_retail_v2beta_predict_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2beta/{+placement}:predict', ) command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPredictRequest::Representation command.request_object = google_cloud_retail_v2beta_predict_request_object command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPredictResponse::Representation command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPredictResponse command.params['placement'] = placement unless placement.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#predict_project_location_catalog_serving_config(placement, google_cloud_retail_v2beta_predict_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPredictResponse
Makes a recommendation prediction.
2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 2415 def predict_project_location_catalog_serving_config(placement, google_cloud_retail_v2beta_predict_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2beta/{+placement}:predict', ) command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPredictRequest::Representation command.request_object = google_cloud_retail_v2beta_predict_request_object command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPredictResponse::Representation command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPredictResponse command.params['placement'] = placement unless placement.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#purge_project_location_catalog_branch_product(parent, google_cloud_retail_v2beta_purge_products_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleLongrunningOperation
Permanently deletes all selected Products under a branch. This process is asynchronous. If the request is valid, the removal will be enqueued and processed offline. Depending on the number of Products, this operation could take hours to complete. Before the operation completes, some Products may still be returned by ProductService.GetProduct or ProductService.ListProducts. Depending on the number of Products, this operation could take hours to complete. To get a sample of Products that would be deleted, set PurgeProductsRequest.force to false.
1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 1267 def purge_project_location_catalog_branch_product(parent, google_cloud_retail_v2beta_purge_products_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2beta/{+parent}/products:purge', ) command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPurgeProductsRequest::Representation command.request_object = google_cloud_retail_v2beta_purge_products_request_object command.response_representation = Google::Apis::RetailV2beta::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::RetailV2beta::GoogleLongrunningOperation command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#purge_project_location_catalog_user_event(parent, google_cloud_retail_v2beta_purge_user_events_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleLongrunningOperation
Deletes permanently all user events specified by the filter provided. Depending on the number of events specified by the filter, this operation could take hours or days to complete. To test a filter, use the list command first.
2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 2659 def purge_project_location_catalog_user_event(parent, google_cloud_retail_v2beta_purge_user_events_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2beta/{+parent}/userEvents:purge', ) command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPurgeUserEventsRequest::Representation command.request_object = google_cloud_retail_v2beta_purge_user_events_request_object command.response_representation = Google::Apis::RetailV2beta::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::RetailV2beta::GoogleLongrunningOperation command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#rejoin_project_location_catalog_user_event(parent, google_cloud_retail_v2beta_rejoin_user_events_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleLongrunningOperation
Starts a user-event rejoin operation with latest product catalog. Events are not annotated with detailed product information for products that are missing from the catalog when the user event is ingested. These events are stored as unjoined events with limited usage on training and serving. You can use this method to start a join operation on specified events with the latest version of product catalog. You can also use this method to correct events joined with the wrong product catalog. A rejoin operation can take hours or days to complete.
2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 2700 def rejoin_project_location_catalog_user_event(parent, google_cloud_retail_v2beta_rejoin_user_events_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2beta/{+parent}/userEvents:rejoin', ) command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRejoinUserEventsRequest::Representation command.request_object = google_cloud_retail_v2beta_rejoin_user_events_request_object command.response_representation = Google::Apis::RetailV2beta::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::RetailV2beta::GoogleLongrunningOperation command.params['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#remove_project_location_catalog_attributes_config_catalog_attribute(attributes_config, google_cloud_retail_v2beta_remove_catalog_attribute_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAttributesConfig
Removes the specified CatalogAttribute from the AttributesConfig. If the CatalogAttribute to remove does not exist, a NOT_FOUND error is returned.
762 763 764 765 766 767 768 769 770 771 772 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 762 def remove_project_location_catalog_attributes_config_catalog_attribute(attributes_config, google_cloud_retail_v2beta_remove_catalog_attribute_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2beta/{+attributesConfig}:removeCatalogAttribute', ) command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRemoveCatalogAttributeRequest::Representation command.request_object = google_cloud_retail_v2beta_remove_catalog_attribute_request_object command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAttributesConfig::Representation command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAttributesConfig command.params['attributesConfig'] = attributes_config unless attributes_config.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#remove_project_location_catalog_branch_product_fulfillment_places(product, google_cloud_retail_v2beta_remove_fulfillment_places_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleLongrunningOperation
We recommend that you use the ProductService.RemoveLocalInventories method instead of the ProductService.RemoveFulfillmentPlaces method. ProductService. RemoveLocalInventories achieves the same results but provides more fine- grained control over ingesting local inventory data. Incrementally removes place IDs from a Product.fulfillment_info.place_ids. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the removed place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete.
1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 1316 def remove_project_location_catalog_branch_product_fulfillment_places(product, google_cloud_retail_v2beta_remove_fulfillment_places_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2beta/{+product}:removeFulfillmentPlaces', ) command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRemoveFulfillmentPlacesRequest::Representation command.request_object = google_cloud_retail_v2beta_remove_fulfillment_places_request_object command.response_representation = Google::Apis::RetailV2beta::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::RetailV2beta::GoogleLongrunningOperation command.params['product'] = product unless product.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#remove_project_location_catalog_branch_product_local_inventories(product, google_cloud_retail_v2beta_remove_local_inventories_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleLongrunningOperation
Remove local inventory information for a Product at a list of places at a removal timestamp. This process is asynchronous. If the request is valid, the removal will be enqueued and processed downstream. As a consequence, when a response is returned, removals are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. Local inventory information can only be removed using this method. ProductService. CreateProduct and ProductService.UpdateProduct has no effect on local inventories. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete.
1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 1362 def remove_project_location_catalog_branch_product_local_inventories(product, google_cloud_retail_v2beta_remove_local_inventories_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2beta/{+product}:removeLocalInventories', ) command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRemoveLocalInventoriesRequest::Representation command.request_object = google_cloud_retail_v2beta_remove_local_inventories_request_object command.response_representation = Google::Apis::RetailV2beta::GoogleLongrunningOperation::Representation command.response_class = Google::Apis::RetailV2beta::GoogleLongrunningOperation command.params['product'] = product unless product.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#remove_project_location_catalog_serving_config_control(serving_config, google_cloud_retail_v2beta_remove_control_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaServingConfig
Disables a Control on the specified ServingConfig. The control is removed from the ServingConfig. Returns a NOT_FOUND error if the Control is not enabled for the ServingConfig.
2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 2452 def remove_project_location_catalog_serving_config_control(serving_config, google_cloud_retail_v2beta_remove_control_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2beta/{+servingConfig}:removeControl', ) command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRemoveControlRequest::Representation command.request_object = google_cloud_retail_v2beta_remove_control_request_object command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaServingConfig::Representation command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaServingConfig command.params['servingConfig'] = serving_config unless serving_config.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#replace_project_location_catalog_attributes_config_catalog_attribute(attributes_config, google_cloud_retail_v2beta_replace_catalog_attribute_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAttributesConfig
Replaces the specified CatalogAttribute in the AttributesConfig by updating the catalog attribute with the same CatalogAttribute.key. If the CatalogAttribute to replace does not exist, a NOT_FOUND error is returned.
798 799 800 801 802 803 804 805 806 807 808 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 798 def replace_project_location_catalog_attributes_config_catalog_attribute(attributes_config, google_cloud_retail_v2beta_replace_catalog_attribute_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2beta/{+attributesConfig}:replaceCatalogAttribute', ) command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaReplaceCatalogAttributeRequest::Representation command.request_object = google_cloud_retail_v2beta_replace_catalog_attribute_request_object command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAttributesConfig::Representation command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAttributesConfig command.params['attributesConfig'] = attributes_config unless attributes_config.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#resume_project_location_catalog_model(name, google_cloud_retail_v2beta_resume_model_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaModel
Resumes the training of an existing model.
1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 1961 def resume_project_location_catalog_model(name, google_cloud_retail_v2beta_resume_model_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2beta/{+name}:resume', ) command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaResumeModelRequest::Representation command.request_object = google_cloud_retail_v2beta_resume_model_request_object command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaModel::Representation command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaModel 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 |
#search_project_location_catalog_placements(placement, google_cloud_retail_v2beta_search_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchResponse
Performs a search. This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature.
2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 2149 def search_project_location_catalog_placements(placement, google_cloud_retail_v2beta_search_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2beta/{+placement}:search', ) command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequest::Representation command.request_object = google_cloud_retail_v2beta_search_request_object command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchResponse::Representation command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchResponse command.params['placement'] = placement unless placement.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#search_project_location_catalog_serving_configs(placement, google_cloud_retail_v2beta_search_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchResponse
Performs a search. This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature.
2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 2492 def search_project_location_catalog_serving_configs(placement, google_cloud_retail_v2beta_search_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2beta/{+placement}:search', ) command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequest::Representation command.request_object = google_cloud_retail_v2beta_search_request_object command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchResponse::Representation command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchResponse command.params['placement'] = placement unless placement.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#set_project_location_catalog_branch_product_inventory(name, google_cloud_retail_v2beta_set_inventory_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleLongrunningOperation
Updates inventory information for a Product while respecting the last update
timestamps of each inventory field. This process is asynchronous and does not
require the Product to exist before updating fulfillment information. If the
request is valid, the update is enqueued and processed downstream. As a
consequence, when a response is returned, updates are not immediately
manifested in the Product queried by ProductService.GetProduct or
ProductService.ListProducts. When inventory is updated with ProductService.
CreateProduct and ProductService.UpdateProduct, the specified inventory field
value(s) overwrite any existing value(s) while ignoring the last update time
for this field. Furthermore, the last update times for the specified inventory
fields are overwritten by the times of the ProductService.CreateProduct or
ProductService.UpdateProduct request. If no inventory fields are set in
CreateProductRequest.product, then any pre-existing inventory information for
this product is used. If no inventory fields are set in SetInventoryRequest.
set_mask, then any existing inventory information is preserved. Pre-existing
inventory information can only be updated with ProductService.SetInventory,
ProductService.AddFulfillmentPlaces, and ProductService.
RemoveFulfillmentPlaces. The returned Operations is obsolete after one day,
and the GetOperation API returns NOT_FOUND
afterwards. If conflicting
updates are issued, the Operations associated with the stale updates are not
marked as done until they are obsolete.
1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 1416 def set_project_location_catalog_branch_product_inventory(name, google_cloud_retail_v2beta_set_inventory_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2beta/{+name}:setInventory', ) command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSetInventoryRequest::Representation command.request_object = google_cloud_retail_v2beta_set_inventory_request_object 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 |
#set_project_location_catalog_default_branch(catalog, google_cloud_retail_v2beta_set_default_branch_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleProtobufEmpty
Set a specified branch id as default branch. API methods such as SearchService.
Search, ProductService.GetProduct, ProductService.ListProducts will treat
requests using "default_branch" to the actual branch id set as default. For
example, if projects/*/locations/*/catalogs/*/branches/1
is set as default,
setting SearchRequest.branch to projects/*/locations/*/catalogs/*/branches/
default_branch
is equivalent to setting SearchRequest.branch to projects/*/
locations/*/catalogs/*/branches/1
. Using multiple branches can be useful when
developers would like to have a staging branch to test and verify for future
usage. When it becomes ready, developers switch on the staging branch using
this API while keeping using projects/*/locations/*/catalogs/*/branches/
default_branch
as SearchRequest.branch to route the traffic to this staging
branch. CAUTION: If you have live predict/search traffic, switching the
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
.
493 494 495 496 497 498 499 500 501 502 503 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 493 def set_project_location_catalog_default_branch(catalog, google_cloud_retail_v2beta_set_default_branch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2beta/{+catalog}:setDefaultBranch', ) command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSetDefaultBranchRequest::Representation command.request_object = google_cloud_retail_v2beta_set_default_branch_request_object command.response_representation = Google::Apis::RetailV2beta::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::RetailV2beta::GoogleProtobufEmpty command.params['catalog'] = catalog unless catalog.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#tune_project_location_catalog_model(name, google_cloud_retail_v2beta_tune_model_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleLongrunningOperation
Tunes an existing model.
1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 1996 def tune_project_location_catalog_model(name, google_cloud_retail_v2beta_tune_model_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2beta/{+name}:tune', ) command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaTuneModelRequest::Representation command.request_object = google_cloud_retail_v2beta_tune_model_request_object 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 |
#update_project_alert_config(name, google_cloud_retail_v2beta_alert_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAlertConfig
Update the alert config of the requested project.
113 114 115 116 117 118 119 120 121 122 123 124 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 113 def update_project_alert_config(name, google_cloud_retail_v2beta_alert_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v2beta/{+name}', ) command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAlertConfig::Representation command.request_object = google_cloud_retail_v2beta_alert_config_object command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAlertConfig::Representation command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAlertConfig command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#update_project_location_catalog_attributes_config(name, google_cloud_retail_v2beta_attributes_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAttributesConfig
Updates the AttributesConfig. The catalog attributes in the request will be updated in the catalog, or inserted if they do not exist. Existing catalog attributes not included in the request will remain unchanged. Attributes that are assigned to products, but do not exist at the catalog level, are always included in the response. The product attribute is assigned default values for missing catalog attribute fields, e.g., searchable and dynamic facetable options.
537 538 539 540 541 542 543 544 545 546 547 548 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 537 def update_project_location_catalog_attributes_config(name, google_cloud_retail_v2beta_attributes_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v2beta/{+name}', ) command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAttributesConfig::Representation command.request_object = google_cloud_retail_v2beta_attributes_config_object command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAttributesConfig::Representation command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAttributesConfig command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#update_project_location_catalog_completion_config(name, google_cloud_retail_v2beta_completion_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCompletionConfig
Updates the CompletionConfigs.
577 578 579 580 581 582 583 584 585 586 587 588 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 577 def update_project_location_catalog_completion_config(name, google_cloud_retail_v2beta_completion_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v2beta/{+name}', ) command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCompletionConfig::Representation command.request_object = google_cloud_retail_v2beta_completion_config_object command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCompletionConfig::Representation command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCompletionConfig command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#update_project_location_catalog_generative_question(catalog, google_cloud_retail_v2beta_generative_question_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaGenerativeQuestionConfig
Allows management of individual questions.
616 617 618 619 620 621 622 623 624 625 626 627 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 616 def update_project_location_catalog_generative_question(catalog, google_cloud_retail_v2beta_generative_question_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v2beta/{+catalog}/generativeQuestion', ) command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaGenerativeQuestionConfig::Representation command.request_object = google_cloud_retail_v2beta_generative_question_config_object command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaGenerativeQuestionConfig::Representation command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaGenerativeQuestionConfig command.params['catalog'] = catalog unless catalog.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#update_project_location_catalog_generative_question_feature(catalog, google_cloud_retail_v2beta_generative_questions_feature_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaGenerativeQuestionsFeatureConfig
Manages overal generative question feature state -- enables toggling feature on and off.
656 657 658 659 660 661 662 663 664 665 666 667 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 656 def update_project_location_catalog_generative_question_feature(catalog, google_cloud_retail_v2beta_generative_questions_feature_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v2beta/{+catalog}/generativeQuestionFeature', ) command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaGenerativeQuestionsFeatureConfig::Representation command.request_object = google_cloud_retail_v2beta_generative_questions_feature_config_object command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaGenerativeQuestionsFeatureConfig::Representation command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaGenerativeQuestionsFeatureConfig command.params['catalog'] = catalog unless catalog.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#write_project_location_catalog_user_event(parent, google_cloud_retail_v2beta_user_event_object = nil, write_async: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaUserEvent
Writes a single user event.
2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 |
# File 'lib/google/apis/retail_v2beta/service.rb', line 2739 def write_project_location_catalog_user_event(parent, google_cloud_retail_v2beta_user_event_object = nil, write_async: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2beta/{+parent}/userEvents:write', ) command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaUserEvent::Representation command.request_object = google_cloud_retail_v2beta_user_event_object command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaUserEvent::Representation command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaUserEvent command.params['parent'] = parent unless parent.nil? command.query['writeAsync'] = write_async unless write_async.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |