google-apis-retail_v2alpha 0.89.0 → 0.91.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: de351a4cde2fb82b4d68e56bc5f469ad8c46c96333e383077034e8e95b39ec4d
4
- data.tar.gz: f2f70de17c05152cfb271775bf51ba0a3117cc2a414a64ee4a27202bd00f4ed5
3
+ metadata.gz: 626effe9f2ebae76599f28005ba979a3a6f31c00c46de63f8c0d46764bd69899
4
+ data.tar.gz: dedaaad92fdfb6a41e04118f8e7fde0836e06838e93dcde0f813777d66d327a1
5
5
  SHA512:
6
- metadata.gz: 2e4a8f6477860f0b301e9d8e9999696d0f146bed594255f5dd866dbc3894fa29f55954a32ad33e8c21e11c594b950b9b326137a4140594528525c7c6106dd5bd
7
- data.tar.gz: 1682c3fa9838907fb18ed9d6caf50109156b17071ea5ae44f6c0d70eff20cf41f80db6ef73a3010c6571743df748767f8b94ef985d8be1bd8c38cdc9416ff29e
6
+ metadata.gz: 3095cb59479d4f5ed8db8ed6dfa60d2c96d12e384659ae8c3e52bc4d3e42cd465703a28ede9b8ab050f299737a2586e183ed9373a287abe35f1c78b3e7163718
7
+ data.tar.gz: 1e6d42802b636bb7d81af2db008a00b54eb78ba08bcd4c2d3ba68519216ba235325e785528b49b68e0d9ffc36fdc3faecf475eeecff45a8495e299c29abb9956
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-retail_v2alpha
2
2
 
3
+ ### v0.91.0 (2023-12-17)
4
+
5
+ * Regenerated from discovery document revision 20231207
6
+
7
+ ### v0.90.0 (2023-12-10)
8
+
9
+ * Regenerated from discovery document revision 20231130
10
+
3
11
  ### v0.89.0 (2023-11-19)
4
12
 
5
13
  * Regenerated from discovery document revision 20231109
@@ -2417,6 +2417,73 @@ module Google
2417
2417
  end
2418
2418
  end
2419
2419
 
2420
+ # Request message for the `ExportAnalyticsMetrics` method.
2421
+ class GoogleCloudRetailV2alphaExportAnalyticsMetricsRequest
2422
+ include Google::Apis::Core::Hashable
2423
+
2424
+ # A filtering expression to specify restrictions on returned metrics. The
2425
+ # expression is a sequence of terms. Each term applies a restriction to the
2426
+ # returned metrics. Use this expression to restrict results to a specific time
2427
+ # range. Currently we expect only one types of fields: * `timestamp`: This can
2428
+ # be specified twice, once with a less than operator and once with a greater
2429
+ # than operator. The `timestamp` restriction should result in one, contiguous,
2430
+ # valid, `timestamp` range. Some examples of valid filters expressions: *
2431
+ # Example 1: `timestamp > "2012-04-23T18:25:43.511Z" timestamp < "2012-04-23T18:
2432
+ # 30:43.511Z"` * Example 2: `timestamp > "2012-04-23T18:25:43.511Z"`
2433
+ # Corresponds to the JSON property `filter`
2434
+ # @return [String]
2435
+ attr_accessor :filter
2436
+
2437
+ # The output configuration setting.
2438
+ # Corresponds to the JSON property `outputConfig`
2439
+ # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaOutputConfig]
2440
+ attr_accessor :output_config
2441
+
2442
+ def initialize(**args)
2443
+ update!(**args)
2444
+ end
2445
+
2446
+ # Update properties of this object
2447
+ def update!(**args)
2448
+ @filter = args[:filter] if args.key?(:filter)
2449
+ @output_config = args[:output_config] if args.key?(:output_config)
2450
+ end
2451
+ end
2452
+
2453
+ # Response of the ExportAnalyticsMetricsRequest. If the long running operation
2454
+ # was successful, then this message is returned by the google.longrunning.
2455
+ # Operations.response field if the operation was successful.
2456
+ class GoogleCloudRetailV2alphaExportAnalyticsMetricsResponse
2457
+ include Google::Apis::Core::Hashable
2458
+
2459
+ # A sample of errors encountered while processing the request.
2460
+ # Corresponds to the JSON property `errorSamples`
2461
+ # @return [Array<Google::Apis::RetailV2alpha::GoogleRpcStatus>]
2462
+ attr_accessor :error_samples
2463
+
2464
+ # Configuration of destination for Export related errors.
2465
+ # Corresponds to the JSON property `errorsConfig`
2466
+ # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaExportErrorsConfig]
2467
+ attr_accessor :errors_config
2468
+
2469
+ # Output result that stores the information about where the exported data is
2470
+ # stored.
2471
+ # Corresponds to the JSON property `outputResult`
2472
+ # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaOutputResult]
2473
+ attr_accessor :output_result
2474
+
2475
+ def initialize(**args)
2476
+ update!(**args)
2477
+ end
2478
+
2479
+ # Update properties of this object
2480
+ def update!(**args)
2481
+ @error_samples = args[:error_samples] if args.key?(:error_samples)
2482
+ @errors_config = args[:errors_config] if args.key?(:errors_config)
2483
+ @output_result = args[:output_result] if args.key?(:output_result)
2484
+ end
2485
+ end
2486
+
2420
2487
  # Configuration of destination for Export related errors.
2421
2488
  class GoogleCloudRetailV2alphaExportErrorsConfig
2422
2489
  include Google::Apis::Core::Hashable
@@ -3892,6 +3959,87 @@ module Google
3892
3959
  end
3893
3960
  end
3894
3961
 
3962
+ # The output configuration setting.
3963
+ class GoogleCloudRetailV2alphaOutputConfig
3964
+ include Google::Apis::Core::Hashable
3965
+
3966
+ # The BigQuery output destination configuration.
3967
+ # Corresponds to the JSON property `bigqueryDestination`
3968
+ # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaOutputConfigBigQueryDestination]
3969
+ attr_accessor :bigquery_destination
3970
+
3971
+ # The Google Cloud Storage output destination configuration.
3972
+ # Corresponds to the JSON property `gcsDestination`
3973
+ # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaOutputConfigGcsDestination]
3974
+ attr_accessor :gcs_destination
3975
+
3976
+ def initialize(**args)
3977
+ update!(**args)
3978
+ end
3979
+
3980
+ # Update properties of this object
3981
+ def update!(**args)
3982
+ @bigquery_destination = args[:bigquery_destination] if args.key?(:bigquery_destination)
3983
+ @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
3984
+ end
3985
+ end
3986
+
3987
+ # The BigQuery output destination configuration.
3988
+ class GoogleCloudRetailV2alphaOutputConfigBigQueryDestination
3989
+ include Google::Apis::Core::Hashable
3990
+
3991
+ # Required. The ID of a BigQuery Dataset.
3992
+ # Corresponds to the JSON property `datasetId`
3993
+ # @return [String]
3994
+ attr_accessor :dataset_id
3995
+
3996
+ # Required. The prefix of exported BigQuery tables.
3997
+ # Corresponds to the JSON property `tableIdPrefix`
3998
+ # @return [String]
3999
+ attr_accessor :table_id_prefix
4000
+
4001
+ # Required. Describes the table type. The following values are supported: * `
4002
+ # table`: A BigQuery native table. * `view`: A virtual table defined by a SQL
4003
+ # query.
4004
+ # Corresponds to the JSON property `tableType`
4005
+ # @return [String]
4006
+ attr_accessor :table_type
4007
+
4008
+ def initialize(**args)
4009
+ update!(**args)
4010
+ end
4011
+
4012
+ # Update properties of this object
4013
+ def update!(**args)
4014
+ @dataset_id = args[:dataset_id] if args.key?(:dataset_id)
4015
+ @table_id_prefix = args[:table_id_prefix] if args.key?(:table_id_prefix)
4016
+ @table_type = args[:table_type] if args.key?(:table_type)
4017
+ end
4018
+ end
4019
+
4020
+ # The Google Cloud Storage output destination configuration.
4021
+ class GoogleCloudRetailV2alphaOutputConfigGcsDestination
4022
+ include Google::Apis::Core::Hashable
4023
+
4024
+ # Required. The output uri prefix for saving output data to json files. Some
4025
+ # mapping examples are as follows: output_uri_prefix sample output(assuming the
4026
+ # object is foo.json) ======================== ==================================
4027
+ # =========== gs://bucket/ gs://bucket/foo.json gs://bucket/folder/ gs://bucket/
4028
+ # folder/foo.json gs://bucket/folder/item_ gs://bucket/folder/item_foo.json
4029
+ # Corresponds to the JSON property `outputUriPrefix`
4030
+ # @return [String]
4031
+ attr_accessor :output_uri_prefix
4032
+
4033
+ def initialize(**args)
4034
+ update!(**args)
4035
+ end
4036
+
4037
+ # Update properties of this object
4038
+ def update!(**args)
4039
+ @output_uri_prefix = args[:output_uri_prefix] if args.key?(:output_uri_prefix)
4040
+ end
4041
+ end
4042
+
3895
4043
  # Output result that stores the information about where the exported data is
3896
4044
  # stored.
3897
4045
  class GoogleCloudRetailV2alphaOutputResult
@@ -4281,13 +4429,13 @@ module Google
4281
4429
  # Fitness" -> "Athletic Clothing" -> "Shoes"], it could be represented as: "
4282
4430
  # categories": [ "Shoes & Accessories > Shoes", "Sports & Fitness > Athletic
4283
4431
  # Clothing > Shoes" ] Must be set for Type.PRIMARY Product otherwise an
4284
- # INVALID_ARGUMENT error is returned. At most 250 values are allowed per Product.
4285
- # Empty values are not allowed. Each value must be a UTF-8 encoded string with
4286
- # a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is
4287
- # returned. Corresponding properties: Google Merchant Center property
4288
- # google_product_category. Schema.org property [Product.category] (https://
4289
- # schema.org/category). [mc_google_product_category]: https://support.google.com/
4290
- # merchants/answer/6324436
4432
+ # INVALID_ARGUMENT error is returned. At most 250 values are allowed per Product
4433
+ # unless overridden via pantheon UI. Empty values are not allowed. Each value
4434
+ # must be a UTF-8 encoded string with a length limit of 5,000 characters.
4435
+ # Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties:
4436
+ # Google Merchant Center property google_product_category. Schema.org property [
4437
+ # Product.category] (https://schema.org/category). [mc_google_product_category]:
4438
+ # https://support.google.com/merchants/answer/6324436
4291
4439
  # Corresponds to the JSON property `categories`
4292
4440
  # @return [Array<String>]
4293
4441
  attr_accessor :categories
@@ -4326,16 +4474,16 @@ module Google
4326
4474
  # @return [String]
4327
4475
  attr_accessor :description
4328
4476
 
4329
- # The timestamp when this product becomes unavailable for SearchService.Search.
4330
- # Note that this is only applicable to Type.PRIMARY and Type.COLLECTION, and
4331
- # ignored for Type.VARIANT. In general, we suggest the users to delete the stale
4332
- # products explicitly, instead of using this field to determine staleness. If it
4333
- # is set, the Product is not available for SearchService.Search after
4334
- # expire_time. However, the product can still be retrieved by ProductService.
4335
- # GetProduct and ProductService.ListProducts. expire_time must be later than
4336
- # available_time and publish_time, otherwise an INVALID_ARGUMENT error is thrown.
4337
- # Corresponding properties: Google Merchant Center property [expiration_date](
4338
- # https://support.google.com/merchants/answer/6324499).
4477
+ # Note that this field is applied in the following ways: * If the Product is
4478
+ # already expired when it is uploaded, this product is not indexed for search. *
4479
+ # If the Product is not expired when it is uploaded, only the Type.PRIMARY's and
4480
+ # Type.COLLECTION's expireTime is respected, and Type.VARIANT's expireTime is
4481
+ # not used. In general, we suggest the users to delete the stale products
4482
+ # explicitly, instead of using this field to determine staleness. expire_time
4483
+ # must be later than available_time and publish_time, otherwise an
4484
+ # INVALID_ARGUMENT error is thrown. Corresponding properties: Google Merchant
4485
+ # Center property [expiration_date](https://support.google.com/merchants/answer/
4486
+ # 6324499).
4339
4487
  # Corresponds to the JSON property `expireTime`
4340
4488
  # @return [String]
4341
4489
  attr_accessor :expire_time
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module RetailV2alpha
18
18
  # Version of the google-apis-retail_v2alpha gem
19
- GEM_VERSION = "0.89.0"
19
+ GEM_VERSION = "0.91.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20231109"
25
+ REVISION = "20231207"
26
26
  end
27
27
  end
28
28
  end
@@ -478,6 +478,18 @@ module Google
478
478
  include Google::Apis::Core::JsonObjectSupport
479
479
  end
480
480
 
481
+ class GoogleCloudRetailV2alphaExportAnalyticsMetricsRequest
482
+ class Representation < Google::Apis::Core::JsonRepresentation; end
483
+
484
+ include Google::Apis::Core::JsonObjectSupport
485
+ end
486
+
487
+ class GoogleCloudRetailV2alphaExportAnalyticsMetricsResponse
488
+ class Representation < Google::Apis::Core::JsonRepresentation; end
489
+
490
+ include Google::Apis::Core::JsonObjectSupport
491
+ end
492
+
481
493
  class GoogleCloudRetailV2alphaExportErrorsConfig
482
494
  class Representation < Google::Apis::Core::JsonRepresentation; end
483
495
 
@@ -724,6 +736,24 @@ module Google
724
736
  include Google::Apis::Core::JsonObjectSupport
725
737
  end
726
738
 
739
+ class GoogleCloudRetailV2alphaOutputConfig
740
+ class Representation < Google::Apis::Core::JsonRepresentation; end
741
+
742
+ include Google::Apis::Core::JsonObjectSupport
743
+ end
744
+
745
+ class GoogleCloudRetailV2alphaOutputConfigBigQueryDestination
746
+ class Representation < Google::Apis::Core::JsonRepresentation; end
747
+
748
+ include Google::Apis::Core::JsonObjectSupport
749
+ end
750
+
751
+ class GoogleCloudRetailV2alphaOutputConfigGcsDestination
752
+ class Representation < Google::Apis::Core::JsonRepresentation; end
753
+
754
+ include Google::Apis::Core::JsonObjectSupport
755
+ end
756
+
727
757
  class GoogleCloudRetailV2alphaOutputResult
728
758
  class Representation < Google::Apis::Core::JsonRepresentation; end
729
759
 
@@ -2099,6 +2129,27 @@ module Google
2099
2129
  end
2100
2130
  end
2101
2131
 
2132
+ class GoogleCloudRetailV2alphaExportAnalyticsMetricsRequest
2133
+ # @private
2134
+ class Representation < Google::Apis::Core::JsonRepresentation
2135
+ property :filter, as: 'filter'
2136
+ property :output_config, as: 'outputConfig', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaOutputConfig, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaOutputConfig::Representation
2137
+
2138
+ end
2139
+ end
2140
+
2141
+ class GoogleCloudRetailV2alphaExportAnalyticsMetricsResponse
2142
+ # @private
2143
+ class Representation < Google::Apis::Core::JsonRepresentation
2144
+ collection :error_samples, as: 'errorSamples', class: Google::Apis::RetailV2alpha::GoogleRpcStatus, decorator: Google::Apis::RetailV2alpha::GoogleRpcStatus::Representation
2145
+
2146
+ property :errors_config, as: 'errorsConfig', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaExportErrorsConfig, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaExportErrorsConfig::Representation
2147
+
2148
+ property :output_result, as: 'outputResult', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaOutputResult, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaOutputResult::Representation
2149
+
2150
+ end
2151
+ end
2152
+
2102
2153
  class GoogleCloudRetailV2alphaExportErrorsConfig
2103
2154
  # @private
2104
2155
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2504,6 +2555,32 @@ module Google
2504
2555
  end
2505
2556
  end
2506
2557
 
2558
+ class GoogleCloudRetailV2alphaOutputConfig
2559
+ # @private
2560
+ class Representation < Google::Apis::Core::JsonRepresentation
2561
+ property :bigquery_destination, as: 'bigqueryDestination', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaOutputConfigBigQueryDestination, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaOutputConfigBigQueryDestination::Representation
2562
+
2563
+ property :gcs_destination, as: 'gcsDestination', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaOutputConfigGcsDestination, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaOutputConfigGcsDestination::Representation
2564
+
2565
+ end
2566
+ end
2567
+
2568
+ class GoogleCloudRetailV2alphaOutputConfigBigQueryDestination
2569
+ # @private
2570
+ class Representation < Google::Apis::Core::JsonRepresentation
2571
+ property :dataset_id, as: 'datasetId'
2572
+ property :table_id_prefix, as: 'tableIdPrefix'
2573
+ property :table_type, as: 'tableType'
2574
+ end
2575
+ end
2576
+
2577
+ class GoogleCloudRetailV2alphaOutputConfigGcsDestination
2578
+ # @private
2579
+ class Representation < Google::Apis::Core::JsonRepresentation
2580
+ property :output_uri_prefix, as: 'outputUriPrefix'
2581
+ end
2582
+ end
2583
+
2507
2584
  class GoogleCloudRetailV2alphaOutputResult
2508
2585
  # @private
2509
2586
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -306,6 +306,42 @@ module Google
306
306
  execute_or_queue_command(command, &block)
307
307
  end
308
308
 
309
+ # Exports analytics metrics. `Operation.response` is of type `
310
+ # ExportAnalyticsMetricsResponse`. `Operation.metadata` is of type `
311
+ # ExportMetadata`.
312
+ # @param [String] catalog
313
+ # Required. Full resource name of the parent catalog. Expected format: `projects/
314
+ # */locations/*/catalogs/*`
315
+ # @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaExportAnalyticsMetricsRequest] google_cloud_retail_v2alpha_export_analytics_metrics_request_object
316
+ # @param [String] fields
317
+ # Selector specifying which fields to include in a partial response.
318
+ # @param [String] quota_user
319
+ # Available to use for quota purposes for server-side applications. Can be any
320
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
321
+ # @param [Google::Apis::RequestOptions] options
322
+ # Request-specific options
323
+ #
324
+ # @yield [result, err] Result & error if block supplied
325
+ # @yieldparam result [Google::Apis::RetailV2alpha::GoogleLongrunningOperation] parsed result object
326
+ # @yieldparam err [StandardError] error object if request failed
327
+ #
328
+ # @return [Google::Apis::RetailV2alpha::GoogleLongrunningOperation]
329
+ #
330
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
331
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
332
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
333
+ def export_project_location_catalog_analytics_metrics(catalog, google_cloud_retail_v2alpha_export_analytics_metrics_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
334
+ command = make_simple_command(:post, 'v2alpha/{+catalog}:exportAnalyticsMetrics', options)
335
+ command.request_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaExportAnalyticsMetricsRequest::Representation
336
+ command.request_object = google_cloud_retail_v2alpha_export_analytics_metrics_request_object
337
+ command.response_representation = Google::Apis::RetailV2alpha::GoogleLongrunningOperation::Representation
338
+ command.response_class = Google::Apis::RetailV2alpha::GoogleLongrunningOperation
339
+ command.params['catalog'] = catalog unless catalog.nil?
340
+ command.query['fields'] = fields unless fields.nil?
341
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
342
+ execute_or_queue_command(command, &block)
343
+ end
344
+
309
345
  # Gets an AttributesConfig.
310
346
  # @param [String] name
311
347
  # Required. Full AttributesConfig resource name. Format: `projects/`
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-retail_v2alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.89.0
4
+ version: 0.91.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: 2023-11-19 00:00:00.000000000 Z
11
+ date: 2023-12-17 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_v2alpha/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2alpha/v0.89.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2alpha/v0.91.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2alpha
63
63
  post_install_message:
64
64
  rdoc_options: []