google-apis-retail_v2 0.34.0 → 0.37.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a813962e4570bfe41ed865ea4b7ad39a2947507cee3a4810020185ff1b71ba51
4
- data.tar.gz: '078ff530d7ab11b7cd3121ae3a6a880047fb98af9c53ecc8e1641d1214ae4f8b'
3
+ metadata.gz: dd90dc15eae51189a2fdf09351866ee524f8bd62397647b2353c03ae9ca36bad
4
+ data.tar.gz: 42363471e109c8942ce12d29f5e0c4b5cac38f46b7e67301e62b71471f31ab0d
5
5
  SHA512:
6
- metadata.gz: 15cfe72834120580d3152e2d4fa47340b7dbe30b3a41f7c4f179dd1345934e5bf38250600cceaeeb3623d4861c6c6b9ae29b7b11247f2380414b198ee14843df
7
- data.tar.gz: 228d224d330e862b8bf89f448a61b7be1cb782bbe683a8e35d95a44c8088cd1daa95a9f6fa4fccc826b421e4f26a782ea33a760d8fc50f08cef098395642bf27
6
+ metadata.gz: 21ccfd5f4793c22478f7c65f2cc824b8fe80a70aec1170ede60bc7c0fb457627df7c38450b50b7abd388a90c9a9f3788efcad6ca5e43e8a145ff43bb4c592c47
7
+ data.tar.gz: 5aeaa410de3a3bb4e502047c077c0e20e93cdb0f3420c3ee6abd65cc899bef6907f8ad960d2c70ce4d879d34c76816ab76f013904dea5441d39d5ec2776cf5fe
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release history for google-apis-retail_v2
2
2
 
3
+ ### v0.37.0 (2022-05-05)
4
+
5
+ * Regenerated from discovery document revision 20220430
6
+
7
+ ### v0.36.0 (2022-04-28)
8
+
9
+ * Regenerated from discovery document revision 20220421
10
+
11
+ ### v0.35.0 (2022-04-22)
12
+
13
+ * Regenerated from discovery document revision 20220414
14
+
3
15
  ### v0.34.0 (2022-04-14)
4
16
 
5
17
  * Regenerated from discovery document revision 20220408
@@ -774,12 +774,13 @@ module Google
774
774
  class GoogleCloudRetailV2CustomAttribute
775
775
  include Google::Apis::Core::Hashable
776
776
 
777
- # This field will only be used when AttributesConfig.attribute_config_level of
778
- # the Catalog is 'PRODUCT_LEVEL_ATTRIBUTE_CONFIG', if true, custom attribute
779
- # values are indexed, so that it can be filtered, faceted or boosted in
780
- # SearchService.Search. This field is ignored in a UserEvent. See SearchRequest.
781
- # filter, SearchRequest.facet_specs and SearchRequest.boost_spec for more
782
- # details.
777
+ # This field is normally ignored unless AttributesConfig.attribute_config_level
778
+ # of the Catalog is set to the deprecated 'PRODUCT_LEVEL_ATTRIBUTE_CONFIG' mode.
779
+ # You may learn more on [configuration mode] (https://cloud.google.com/retail/
780
+ # docs/attribute-config#config-modes). if true, custom attribute values are
781
+ # indexed, so that it can be filtered, faceted or boosted in SearchService.
782
+ # Search. This field is ignored in a UserEvent. See SearchRequest.filter,
783
+ # SearchRequest.facet_specs and SearchRequest.boost_spec for more details.
783
784
  # Corresponds to the JSON property `indexable`
784
785
  # @return [Boolean]
785
786
  attr_accessor :indexable
@@ -792,11 +793,13 @@ module Google
792
793
  # @return [Array<Float>]
793
794
  attr_accessor :numbers
794
795
 
795
- # This field will only be used when AttributesConfig.attribute_config_level of
796
- # the Catalog is 'PRODUCT_LEVEL_ATTRIBUTE_CONFIG', if true, custom attribute
797
- # values are searchable by text queries in SearchService.Search. This field is
798
- # ignored in a UserEvent. Only set if type text is set. Otherwise, a
799
- # INVALID_ARGUMENT error is returned.
796
+ # This field is normally ignored unless AttributesConfig.attribute_config_level
797
+ # of the Catalog is set to the deprecated 'PRODUCT_LEVEL_ATTRIBUTE_CONFIG' mode.
798
+ # You may learn more on [configuration mode] (https://cloud.google.com/retail/
799
+ # docs/attribute-config#config-modes). If true, custom attribute values are
800
+ # searchable by text queries in SearchService.Search. This field is ignored in a
801
+ # UserEvent. Only set if type text is set. Otherwise, a INVALID_ARGUMENT error
802
+ # is returned.
800
803
  # Corresponds to the JSON property `searchable`
801
804
  # @return [Boolean]
802
805
  attr_accessor :searchable
@@ -1109,11 +1112,15 @@ module Google
1109
1112
  # @return [Google::Apis::RetailV2::GoogleCloudRetailV2ProductInputConfig]
1110
1113
  attr_accessor :input_config
1111
1114
 
1112
- # Pub/Sub topic for receiving notification. If this field is set, when the
1113
- # import is finished, a notification will be sent to specified Pub/Sub topic.
1115
+ # Full Pub/Sub topic name for receiving notification. If this field is set, when
1116
+ # the import is finished, a notification will be sent to specified Pub/Sub topic.
1114
1117
  # The message data will be JSON string of a Operation. Format of the Pub/Sub
1115
- # topic is `projects/`project`/topics/`topic``. Only supported when
1116
- # ImportProductsRequest.reconciliation_mode is set to `FULL`.
1118
+ # topic is `projects/`project`/topics/`topic``. It has to be within the same
1119
+ # project as ImportProductsRequest.parent. Make sure that both `cloud-retail-
1120
+ # customer-data-access@system.gserviceaccount.com` and `service-@gcp-sa-retail.
1121
+ # iam.gserviceaccount.com` have the `pubsub.topics.publish` IAM permission on
1122
+ # the topic. Only supported when ImportProductsRequest.reconciliation_mode is
1123
+ # set to `FULL`.
1117
1124
  # Corresponds to the JSON property `notificationPubsubTopic`
1118
1125
  # @return [String]
1119
1126
  attr_accessor :notification_pubsub_topic
@@ -1573,7 +1580,8 @@ module Google
1573
1580
  attr_accessor :currency_code
1574
1581
 
1575
1582
  # Price of the product without any discount. If zero, by default set to be the
1576
- # price.
1583
+ # price. If set, original_price should be greater than or equal to price,
1584
+ # otherwise an INVALID_ARGUMENT error is thrown.
1577
1585
  # Corresponds to the JSON property `originalPrice`
1578
1586
  # @return [Float]
1579
1587
  attr_accessor :original_price
@@ -2578,6 +2586,21 @@ module Google
2578
2586
  # @return [String]
2579
2587
  attr_accessor :filter
2580
2588
 
2589
+ # The labels applied to a resource must meet the following requirements: * Each
2590
+ # resource can have multiple labels, up to a maximum of 64. * Each label must be
2591
+ # a key-value pair. * Keys have a minimum length of 1 character and a maximum
2592
+ # length of 63 characters, and cannot be empty. Values can be empty, and have a
2593
+ # maximum length of 63 characters. * Keys and values can contain only lowercase
2594
+ # letters, numeric characters, underscores, and dashes. All characters must use
2595
+ # UTF-8 encoding, and international characters are allowed. * The key portion of
2596
+ # a label must be unique. However, you can use the same key with multiple
2597
+ # resources. * Keys must start with a lowercase letter or international
2598
+ # character. See [Google Cloud Document](https://cloud.google.com/resource-
2599
+ # manager/docs/creating-managing-labels#requirements) for more details.
2600
+ # Corresponds to the JSON property `labels`
2601
+ # @return [Hash<String,String>]
2602
+ attr_accessor :labels
2603
+
2581
2604
  # A 0-indexed integer that specifies the current offset (that is, starting
2582
2605
  # result location, amongst the Products deemed by the API as relevant) in search
2583
2606
  # results. This field is only considered if page_token is unset. If this field
@@ -2701,6 +2724,7 @@ module Google
2701
2724
  @dynamic_facet_spec = args[:dynamic_facet_spec] if args.key?(:dynamic_facet_spec)
2702
2725
  @facet_specs = args[:facet_specs] if args.key?(:facet_specs)
2703
2726
  @filter = args[:filter] if args.key?(:filter)
2727
+ @labels = args[:labels] if args.key?(:labels)
2704
2728
  @offset = args[:offset] if args.key?(:offset)
2705
2729
  @order_by = args[:order_by] if args.key?(:order_by)
2706
2730
  @page_categories = args[:page_categories] if args.key?(:page_categories)
@@ -3030,7 +3054,9 @@ module Google
3030
3054
  # @return [String]
3031
3055
  attr_accessor :attribution_token
3032
3056
 
3033
- # If spell correction applies, the corrected query. Otherwise, empty.
3057
+ # Contains the spell corrected query, if found. If the spell correction type is
3058
+ # AUTOMATIC, then the search results will be based on corrected_query, otherwise
3059
+ # the original query will be used for search.
3034
3060
  # Corresponds to the JSON property `correctedQuery`
3035
3061
  # @return [String]
3036
3062
  attr_accessor :corrected_query
@@ -3491,9 +3517,9 @@ module Google
3491
3517
  # @return [String]
3492
3518
  attr_accessor :page_view_id
3493
3519
 
3494
- # The main product details related to the event. This field is required for the
3495
- # following event types: * `add-to-cart` * `detail-page-view` * `purchase-
3496
- # complete` * `search` In a `search` event, this field represents the products
3520
+ # The main product details related to the event. This field is optional except
3521
+ # for the following event types: * `add-to-cart` * `detail-page-view` * `
3522
+ # purchase-complete` In a `search` event, this field represents the products
3497
3523
  # returned to the end user on the current page (the end user may have not
3498
3524
  # finished browsing the whole page yet). When a new page is returned to the end
3499
3525
  # user, after pagination/filtering/ordering even for the same query, a new `
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module RetailV2
18
18
  # Version of the google-apis-retail_v2 gem
19
- GEM_VERSION = "0.34.0"
19
+ GEM_VERSION = "0.37.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220408"
25
+ REVISION = "20220430"
26
26
  end
27
27
  end
28
28
  end
@@ -1496,6 +1496,7 @@ module Google
1496
1496
  collection :facet_specs, as: 'facetSpecs', class: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestFacetSpec, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestFacetSpec::Representation
1497
1497
 
1498
1498
  property :filter, as: 'filter'
1499
+ hash :labels, as: 'labels'
1499
1500
  property :offset, as: 'offset'
1500
1501
  property :order_by, as: 'orderBy'
1501
1502
  collection :page_categories, as: 'pageCategories'
@@ -62,8 +62,9 @@ module Google
62
62
  # the imported dataset through CompletionService.ImportCompletionData. "cloud-
63
63
  # retail" will use the dataset generated by cloud retail based on user events.
64
64
  # If leave empty, it will use the "user-data". Current supported values: * user-
65
- # data * cloud-retail This option requires additional allowlisting. Before using
66
- # cloud-retail, contact Cloud Retail support team first.
65
+ # data * cloud-retail: This option requires enabling auto-learning function
66
+ # first. See [guidelines](https://cloud.google.com/retail/docs/completion-
67
+ # overview#generated-completion-dataset).
67
68
  # @param [String] device_type
68
69
  # The device type context for completion suggestions. It is useful to apply
69
70
  # different suggestions on different device types, e.g. `DESKTOP`, `MOBILE`. If
@@ -929,15 +930,12 @@ module Google
929
930
  # Makes a recommendation prediction.
930
931
  # @param [String] placement
931
932
  # Required. Full resource name of the format: `name=projects/*/locations/global/
932
- # catalogs/default_catalog/servingConfigs/*` or `name=projects/*/locations/
933
- # global/catalogs/default_catalog/placements/*`. We recommend using the `
934
- # servingConfigs` resource. `placements` is a legacy resource. The ID of the
935
- # Recommendations AI serving config or placement. Before you can request
936
- # predictions from your model, you must create at least one serving config or
937
- # placement for it. For more information, see [Managing serving configurations].
938
- # (https://cloud.google.com/retail/docs/manage-configs). The full list of
939
- # available serving configs can be seen at https://console.cloud.google.com/ai/
940
- # retail/catalogs/default_catalog/configs
933
+ # catalogs/default_catalog/placements/*` The ID of the Recommendations AI
934
+ # placement. Before you can request predictions from your model, you must create
935
+ # at least one placement for it. For more information, see [Managing placements](
936
+ # https://cloud.google.com/retail/recommendations-ai/docs/manage-placements).
937
+ # The full list of available placements can be seen at https://console.cloud.
938
+ # google.com/recommendation/catalogs/default_catalog/placements
941
939
  # @param [Google::Apis::RetailV2::GoogleCloudRetailV2PredictRequest] google_cloud_retail_v2_predict_request_object
942
940
  # @param [String] fields
943
941
  # Selector specifying which fields to include in a partial response.
@@ -972,12 +970,10 @@ module Google
972
970
  # Search enabled. Please enable Retail Search on Cloud Console before using this
973
971
  # feature.
974
972
  # @param [String] placement
975
- # Required. The resource name of the Retail Search serving config, such as `
976
- # projects/*/locations/global/catalogs/default_catalog/servingConfigs/
977
- # default_serving_config` or the name of the legacy placement resource, such as `
978
- # projects/*/locations/global/catalogs/default_catalog/placements/default_search`
979
- # . This field is used to identify the serving configuration name and the set of
980
- # models that will be used to make the search.
973
+ # Required. The resource name of the search engine placement, such as `projects/*
974
+ # /locations/global/catalogs/default_catalog/placements/default_search`. This
975
+ # field is used to identify the serving configuration name and the set of models
976
+ # that will be used to make the search.
981
977
  # @param [Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequest] google_cloud_retail_v2_search_request_object
982
978
  # @param [String] fields
983
979
  # Selector specifying which fields to include in a partial response.
@@ -1008,88 +1004,6 @@ module Google
1008
1004
  execute_or_queue_command(command, &block)
1009
1005
  end
1010
1006
 
1011
- # Makes a recommendation prediction.
1012
- # @param [String] placement
1013
- # Required. Full resource name of the format: `name=projects/*/locations/global/
1014
- # catalogs/default_catalog/servingConfigs/*` or `name=projects/*/locations/
1015
- # global/catalogs/default_catalog/placements/*`. We recommend using the `
1016
- # servingConfigs` resource. `placements` is a legacy resource. The ID of the
1017
- # Recommendations AI serving config or placement. Before you can request
1018
- # predictions from your model, you must create at least one serving config or
1019
- # placement for it. For more information, see [Managing serving configurations].
1020
- # (https://cloud.google.com/retail/docs/manage-configs). The full list of
1021
- # available serving configs can be seen at https://console.cloud.google.com/ai/
1022
- # retail/catalogs/default_catalog/configs
1023
- # @param [Google::Apis::RetailV2::GoogleCloudRetailV2PredictRequest] google_cloud_retail_v2_predict_request_object
1024
- # @param [String] fields
1025
- # Selector specifying which fields to include in a partial response.
1026
- # @param [String] quota_user
1027
- # Available to use for quota purposes for server-side applications. Can be any
1028
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1029
- # @param [Google::Apis::RequestOptions] options
1030
- # Request-specific options
1031
- #
1032
- # @yield [result, err] Result & error if block supplied
1033
- # @yieldparam result [Google::Apis::RetailV2::GoogleCloudRetailV2PredictResponse] parsed result object
1034
- # @yieldparam err [StandardError] error object if request failed
1035
- #
1036
- # @return [Google::Apis::RetailV2::GoogleCloudRetailV2PredictResponse]
1037
- #
1038
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1039
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1040
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1041
- def predict_project_location_catalog_serving_config(placement, google_cloud_retail_v2_predict_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1042
- command = make_simple_command(:post, 'v2/{+placement}:predict', options)
1043
- command.request_representation = Google::Apis::RetailV2::GoogleCloudRetailV2PredictRequest::Representation
1044
- command.request_object = google_cloud_retail_v2_predict_request_object
1045
- command.response_representation = Google::Apis::RetailV2::GoogleCloudRetailV2PredictResponse::Representation
1046
- command.response_class = Google::Apis::RetailV2::GoogleCloudRetailV2PredictResponse
1047
- command.params['placement'] = placement unless placement.nil?
1048
- command.query['fields'] = fields unless fields.nil?
1049
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1050
- execute_or_queue_command(command, &block)
1051
- end
1052
-
1053
- # Performs a search. This feature is only available for users who have Retail
1054
- # Search enabled. Please enable Retail Search on Cloud Console before using this
1055
- # feature.
1056
- # @param [String] placement
1057
- # Required. The resource name of the Retail Search serving config, such as `
1058
- # projects/*/locations/global/catalogs/default_catalog/servingConfigs/
1059
- # default_serving_config` or the name of the legacy placement resource, such as `
1060
- # projects/*/locations/global/catalogs/default_catalog/placements/default_search`
1061
- # . This field is used to identify the serving configuration name and the set of
1062
- # models that will be used to make the search.
1063
- # @param [Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequest] google_cloud_retail_v2_search_request_object
1064
- # @param [String] fields
1065
- # Selector specifying which fields to include in a partial response.
1066
- # @param [String] quota_user
1067
- # Available to use for quota purposes for server-side applications. Can be any
1068
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1069
- # @param [Google::Apis::RequestOptions] options
1070
- # Request-specific options
1071
- #
1072
- # @yield [result, err] Result & error if block supplied
1073
- # @yieldparam result [Google::Apis::RetailV2::GoogleCloudRetailV2SearchResponse] parsed result object
1074
- # @yieldparam err [StandardError] error object if request failed
1075
- #
1076
- # @return [Google::Apis::RetailV2::GoogleCloudRetailV2SearchResponse]
1077
- #
1078
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1079
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1080
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1081
- def search_project_location_catalog_serving_configs(placement, google_cloud_retail_v2_search_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1082
- command = make_simple_command(:post, 'v2/{+placement}:search', options)
1083
- command.request_representation = Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequest::Representation
1084
- command.request_object = google_cloud_retail_v2_search_request_object
1085
- command.response_representation = Google::Apis::RetailV2::GoogleCloudRetailV2SearchResponse::Representation
1086
- command.response_class = Google::Apis::RetailV2::GoogleCloudRetailV2SearchResponse
1087
- command.params['placement'] = placement unless placement.nil?
1088
- command.query['fields'] = fields unless fields.nil?
1089
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1090
- execute_or_queue_command(command, &block)
1091
- end
1092
-
1093
1007
  # Writes a single user event from the browser. This uses a GET request to due to
1094
1008
  # browser restriction of POST-ing to a 3rd party domain. This method is used
1095
1009
  # only by the Retail API JavaScript pixel and Google Tag Manager. Users should
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-retail_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.34.0
4
+ version: 0.37.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-18 00:00:00.000000000 Z
11
+ date: 2022-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.34.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.37.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2
63
63
  post_install_message:
64
64
  rdoc_options: []