google-apis-retail_v2alpha 0.89.0 → 0.90.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: de351a4cde2fb82b4d68e56bc5f469ad8c46c96333e383077034e8e95b39ec4d
4
- data.tar.gz: f2f70de17c05152cfb271775bf51ba0a3117cc2a414a64ee4a27202bd00f4ed5
3
+ metadata.gz: f3ce5c6a458912f0770cc1395e341b3002f4a02f9dc7df93d738a1d5503a34ed
4
+ data.tar.gz: be3b2e82bda2d111c288c10ee82829140062af8f953eefaa79e7eb46b2da5f07
5
5
  SHA512:
6
- metadata.gz: 2e4a8f6477860f0b301e9d8e9999696d0f146bed594255f5dd866dbc3894fa29f55954a32ad33e8c21e11c594b950b9b326137a4140594528525c7c6106dd5bd
7
- data.tar.gz: 1682c3fa9838907fb18ed9d6caf50109156b17071ea5ae44f6c0d70eff20cf41f80db6ef73a3010c6571743df748767f8b94ef985d8be1bd8c38cdc9416ff29e
6
+ metadata.gz: 32134ef63eaa1f5b1287e5e02f2d38ebc51522901dfb7147ce9c7252c8603ae8bdeb27038728eded04b515fff7714573b46b0738923715f94ce8ffc7d82ed0b3
7
+ data.tar.gz: 2c8c1b477f2a31e13d4b4f8ba24d60ff7ebfd43215452513a6088fcb021acf3a08f7af9eae4fc964a8e156d23d41fcc4e46ca73e46beaffa3d47a3f768c631b6
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-retail_v2alpha
2
2
 
3
+ ### v0.90.0 (2023-12-10)
4
+
5
+ * Regenerated from discovery document revision 20231130
6
+
3
7
  ### v0.89.0 (2023-11-19)
4
8
 
5
9
  * 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,73 @@ 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
+ def initialize(**args)
3997
+ update!(**args)
3998
+ end
3999
+
4000
+ # Update properties of this object
4001
+ def update!(**args)
4002
+ @dataset_id = args[:dataset_id] if args.key?(:dataset_id)
4003
+ end
4004
+ end
4005
+
4006
+ # The Google Cloud Storage output destination configuration.
4007
+ class GoogleCloudRetailV2alphaOutputConfigGcsDestination
4008
+ include Google::Apis::Core::Hashable
4009
+
4010
+ # Required. The output uri prefix for saving output data to json files. Some
4011
+ # mapping examples are as follows: output_uri_prefix sample output(assuming the
4012
+ # object is foo.json) ======================== ==================================
4013
+ # =========== gs://bucket/ gs://bucket/foo.json gs://bucket/folder/ gs://bucket/
4014
+ # folder/foo.json gs://bucket/folder/item_ gs://bucket/folder/item_foo.json
4015
+ # Corresponds to the JSON property `outputUriPrefix`
4016
+ # @return [String]
4017
+ attr_accessor :output_uri_prefix
4018
+
4019
+ def initialize(**args)
4020
+ update!(**args)
4021
+ end
4022
+
4023
+ # Update properties of this object
4024
+ def update!(**args)
4025
+ @output_uri_prefix = args[:output_uri_prefix] if args.key?(:output_uri_prefix)
4026
+ end
4027
+ end
4028
+
3895
4029
  # Output result that stores the information about where the exported data is
3896
4030
  # stored.
3897
4031
  class GoogleCloudRetailV2alphaOutputResult
@@ -4281,13 +4415,13 @@ module Google
4281
4415
  # Fitness" -> "Athletic Clothing" -> "Shoes"], it could be represented as: "
4282
4416
  # categories": [ "Shoes & Accessories > Shoes", "Sports & Fitness > Athletic
4283
4417
  # 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
4418
+ # INVALID_ARGUMENT error is returned. At most 250 values are allowed per Product
4419
+ # unless overridden via pantheon UI. Empty values are not allowed. Each value
4420
+ # must be a UTF-8 encoded string with a length limit of 5,000 characters.
4421
+ # Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties:
4422
+ # Google Merchant Center property google_product_category. Schema.org property [
4423
+ # Product.category] (https://schema.org/category). [mc_google_product_category]:
4424
+ # https://support.google.com/merchants/answer/6324436
4291
4425
  # Corresponds to the JSON property `categories`
4292
4426
  # @return [Array<String>]
4293
4427
  attr_accessor :categories
@@ -4326,16 +4460,16 @@ module Google
4326
4460
  # @return [String]
4327
4461
  attr_accessor :description
4328
4462
 
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).
4463
+ # Note that this field is applied in the following ways: * If the Product is
4464
+ # already expired when it is uploaded, this product is not indexed for search. *
4465
+ # If the Product is not expired when it is uploaded, only the Type.PRIMARY's and
4466
+ # Type.COLLECTION's expireTime is respected, and Type.VARIANT's expireTime is
4467
+ # not used. In general, we suggest the users to delete the stale products
4468
+ # explicitly, instead of using this field to determine staleness. expire_time
4469
+ # must be later than available_time and publish_time, otherwise an
4470
+ # INVALID_ARGUMENT error is thrown. Corresponding properties: Google Merchant
4471
+ # Center property [expiration_date](https://support.google.com/merchants/answer/
4472
+ # 6324499).
4339
4473
  # Corresponds to the JSON property `expireTime`
4340
4474
  # @return [String]
4341
4475
  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.90.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 = "20231130"
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,30 @@ 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
+ end
2573
+ end
2574
+
2575
+ class GoogleCloudRetailV2alphaOutputConfigGcsDestination
2576
+ # @private
2577
+ class Representation < Google::Apis::Core::JsonRepresentation
2578
+ property :output_uri_prefix, as: 'outputUriPrefix'
2579
+ end
2580
+ end
2581
+
2507
2582
  class GoogleCloudRetailV2alphaOutputResult
2508
2583
  # @private
2509
2584
  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.90.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-10 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.90.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: []