google-apis-retail_v2alpha 0.85.0 → 0.87.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: cbd3edc5f0cbaf4278c58d0bf44bf3bab493d44432feee8ff28940d5b9fce433
4
- data.tar.gz: 849e0b88e0318fc16d93559947c2fec533f87662795a12d294852e228139073f
3
+ metadata.gz: 7c1d1e52c4a450cb4f0de4f5a988e43253196191c077a2ab701dc244ab1bc348
4
+ data.tar.gz: f06e9dd22a06907872c752bc8b88529a8338577f5314d98fc9c634c41fe12f7c
5
5
  SHA512:
6
- metadata.gz: 1674b9c9110c2f44256003872299978dfaaf30c7145604b7e4af1103fd34790ebde9cd0adeda675e7ce8e662b49a91cb03ad8414af93c604bfbd1d7bc301862f
7
- data.tar.gz: 275112551718726225362cb11dab2cafaad10af41ffb3eacb0b0068360ad32330e6a39c6aadf5025e8eb8182b47569ce77ae5dd2621e352c05e7fa4e4b584172
6
+ metadata.gz: cc5419cf515c5eb27aa1babd75f4dc732b63c661954092f5fe7be1f5e997d17a037aabb0b1368c6a6e827616f24a6b31c510107b2ae1411c9c6bad8916f11774
7
+ data.tar.gz: e925eb4f82ef631ccc5a8d1e6cb9b46b19aa5bcff42621fb007a161e28bed0e1bf0d7c6b52f024a57d50f8e921b889f8b295d2139ae6a58a566db18db3167c0d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-retail_v2alpha
2
2
 
3
+ ### v0.87.0 (2023-10-22)
4
+
5
+ * Regenerated from discovery document revision 20231012
6
+
7
+ ### v0.86.0 (2023-10-15)
8
+
9
+ * Regenerated from discovery document revision 20231005
10
+
3
11
  ### v0.85.0 (2023-09-10)
4
12
 
5
13
  * Regenerated from discovery document revision 20230831
@@ -1631,7 +1631,8 @@ module Google
1631
1631
  # only paths of length 1 are accepted. In other words, if "dark_blue" merged
1632
1632
  # into "BLUE", then the latter can't merge into "blues" because this would
1633
1633
  # create a path of length 2. The maximum number of instances of MergedFacetValue
1634
- # per CatalogAttribute is 100.
1634
+ # per CatalogAttribute is 100. This feature is available only for textual custom
1635
+ # attributes.
1635
1636
  # Corresponds to the JSON property `mergedFacetValues`
1636
1637
  # @return [Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCatalogAttributeFacetConfigMergedFacetValue>]
1637
1638
  attr_accessor :merged_facet_values
@@ -1670,7 +1671,7 @@ module Google
1670
1671
 
1671
1672
  # List of facet values to ignore for the following time range. The facet values
1672
1673
  # are the same as the attribute values. There is a limit of 10 values per
1673
- # instance of IgnoredFacetValues. Each value can have at most 60 characters.
1674
+ # instance of IgnoredFacetValues. Each value can have at most 128 characters.
1674
1675
  # Corresponds to the JSON property `values`
1675
1676
  # @return [Array<String>]
1676
1677
  attr_accessor :values
@@ -1687,21 +1688,21 @@ module Google
1687
1688
  end
1688
1689
  end
1689
1690
 
1690
- # Replaces a set of facet values by the same (possibly different) merged facet
1691
- # value. Each facet value should appear at most once as a value per
1692
- # CatalogAttribute.
1691
+ # Replaces a set of textual facet values by the same (possibly different) merged
1692
+ # facet value. Each facet value should appear at most once as a value per
1693
+ # CatalogAttribute. This feature is available only for textual custom attributes.
1693
1694
  class GoogleCloudRetailV2alphaCatalogAttributeFacetConfigMergedFacetValue
1694
1695
  include Google::Apis::Core::Hashable
1695
1696
 
1696
1697
  # All the previous values are replaced by this merged facet value. This
1697
- # merged_value must be non-empty and can have up to 60 characters.
1698
+ # merged_value must be non-empty and can have up to 128 characters.
1698
1699
  # Corresponds to the JSON property `mergedValue`
1699
1700
  # @return [String]
1700
1701
  attr_accessor :merged_value
1701
1702
 
1702
1703
  # All the facet values that are replaces by the same merged_value that follows.
1703
1704
  # The maximum number of values per MergedFacetValue is 25. Each value can have
1704
- # up to 60 characters.
1705
+ # up to 128 characters.
1705
1706
  # Corresponds to the JSON property `values`
1706
1707
  # @return [Array<String>]
1707
1708
  attr_accessor :values
@@ -3249,6 +3250,98 @@ module Google
3249
3250
  end
3250
3251
  end
3251
3252
 
3253
+ # Project level logging config to control what level of log will be generated
3254
+ # and written to Cloud Logging.
3255
+ class GoogleCloudRetailV2alphaLoggingConfig
3256
+ include Google::Apis::Core::Hashable
3257
+
3258
+ # The logging configurations for services supporting log generation.
3259
+ # Corresponds to the JSON property `defaultLogGenerationRule`
3260
+ # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaLoggingConfigLogGenerationRule]
3261
+ attr_accessor :default_log_generation_rule
3262
+
3263
+ # Required. Immutable. The name of the LoggingConfig singleton resource. Format:
3264
+ # projects/*/loggingConfig
3265
+ # Corresponds to the JSON property `name`
3266
+ # @return [String]
3267
+ attr_accessor :name
3268
+
3269
+ # Controls logging configurations more granularly for each supported service.
3270
+ # This overrides the default_log_generation_rule for the services specified. For
3271
+ # those not mentioned, they will fallback to the default log generation rule.
3272
+ # Corresponds to the JSON property `serviceLogGenerationRules`
3273
+ # @return [Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaLoggingConfigServiceLogGenerationRule>]
3274
+ attr_accessor :service_log_generation_rules
3275
+
3276
+ def initialize(**args)
3277
+ update!(**args)
3278
+ end
3279
+
3280
+ # Update properties of this object
3281
+ def update!(**args)
3282
+ @default_log_generation_rule = args[:default_log_generation_rule] if args.key?(:default_log_generation_rule)
3283
+ @name = args[:name] if args.key?(:name)
3284
+ @service_log_generation_rules = args[:service_log_generation_rules] if args.key?(:service_log_generation_rules)
3285
+ end
3286
+ end
3287
+
3288
+ # The logging configurations for services supporting log generation.
3289
+ class GoogleCloudRetailV2alphaLoggingConfigLogGenerationRule
3290
+ include Google::Apis::Core::Hashable
3291
+
3292
+ # The log sample rate for INFO level log entries. You can use this to reduce the
3293
+ # number of entries generated for INFO level logs. DO NOT set this field if the
3294
+ # logging_level is not LoggingLevel.LOG_ALL. Otherwise, an INVALID_ARGUMENT
3295
+ # error is returned. Sample rate for INFO logs defaults to 1 when unset (
3296
+ # generate and send all INFO logs to Cloud Logging). Its value must be greater
3297
+ # than 0 and less than or equal to 1.
3298
+ # Corresponds to the JSON property `infoLogSampleRate`
3299
+ # @return [Float]
3300
+ attr_accessor :info_log_sample_rate
3301
+
3302
+ # The logging level. By default it is set to `LOG_WARNINGS_AND_ABOVE`.
3303
+ # Corresponds to the JSON property `loggingLevel`
3304
+ # @return [String]
3305
+ attr_accessor :logging_level
3306
+
3307
+ def initialize(**args)
3308
+ update!(**args)
3309
+ end
3310
+
3311
+ # Update properties of this object
3312
+ def update!(**args)
3313
+ @info_log_sample_rate = args[:info_log_sample_rate] if args.key?(:info_log_sample_rate)
3314
+ @logging_level = args[:logging_level] if args.key?(:logging_level)
3315
+ end
3316
+ end
3317
+
3318
+ # The granular logging configurations for supported services.
3319
+ class GoogleCloudRetailV2alphaLoggingConfigServiceLogGenerationRule
3320
+ include Google::Apis::Core::Hashable
3321
+
3322
+ # The logging configurations for services supporting log generation.
3323
+ # Corresponds to the JSON property `logGenerationRule`
3324
+ # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaLoggingConfigLogGenerationRule]
3325
+ attr_accessor :log_generation_rule
3326
+
3327
+ # Required. Supported service names: "CatalogService", "CompletionService", "
3328
+ # ControlService", "MerchantCenterStreaming", "ModelService", "PredictionService"
3329
+ # , "ProductService", "ServingConfigService", "UserEventService",
3330
+ # Corresponds to the JSON property `serviceName`
3331
+ # @return [String]
3332
+ attr_accessor :service_name
3333
+
3334
+ def initialize(**args)
3335
+ update!(**args)
3336
+ end
3337
+
3338
+ # Update properties of this object
3339
+ def update!(**args)
3340
+ @log_generation_rule = args[:log_generation_rule] if args.key?(:log_generation_rule)
3341
+ @service_name = args[:service_name] if args.key?(:service_name)
3342
+ end
3343
+ end
3344
+
3252
3345
  # Represents a link between a Merchant Center account and a branch. After a link
3253
3346
  # is established, products from the linked Merchant Center account are streamed
3254
3347
  # to the linked branch.
@@ -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.85.0"
19
+ GEM_VERSION = "0.87.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 = "20230831"
25
+ REVISION = "20231012"
26
26
  end
27
27
  end
28
28
  end
@@ -634,6 +634,24 @@ module Google
634
634
  include Google::Apis::Core::JsonObjectSupport
635
635
  end
636
636
 
637
+ class GoogleCloudRetailV2alphaLoggingConfig
638
+ class Representation < Google::Apis::Core::JsonRepresentation; end
639
+
640
+ include Google::Apis::Core::JsonObjectSupport
641
+ end
642
+
643
+ class GoogleCloudRetailV2alphaLoggingConfigLogGenerationRule
644
+ class Representation < Google::Apis::Core::JsonRepresentation; end
645
+
646
+ include Google::Apis::Core::JsonObjectSupport
647
+ end
648
+
649
+ class GoogleCloudRetailV2alphaLoggingConfigServiceLogGenerationRule
650
+ class Representation < Google::Apis::Core::JsonRepresentation; end
651
+
652
+ include Google::Apis::Core::JsonObjectSupport
653
+ end
654
+
637
655
  class GoogleCloudRetailV2alphaMerchantCenterAccountLink
638
656
  class Representation < Google::Apis::Core::JsonRepresentation; end
639
657
 
@@ -2329,6 +2347,34 @@ module Google
2329
2347
  end
2330
2348
  end
2331
2349
 
2350
+ class GoogleCloudRetailV2alphaLoggingConfig
2351
+ # @private
2352
+ class Representation < Google::Apis::Core::JsonRepresentation
2353
+ property :default_log_generation_rule, as: 'defaultLogGenerationRule', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaLoggingConfigLogGenerationRule, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaLoggingConfigLogGenerationRule::Representation
2354
+
2355
+ property :name, as: 'name'
2356
+ collection :service_log_generation_rules, as: 'serviceLogGenerationRules', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaLoggingConfigServiceLogGenerationRule, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaLoggingConfigServiceLogGenerationRule::Representation
2357
+
2358
+ end
2359
+ end
2360
+
2361
+ class GoogleCloudRetailV2alphaLoggingConfigLogGenerationRule
2362
+ # @private
2363
+ class Representation < Google::Apis::Core::JsonRepresentation
2364
+ property :info_log_sample_rate, as: 'infoLogSampleRate'
2365
+ property :logging_level, as: 'loggingLevel'
2366
+ end
2367
+ end
2368
+
2369
+ class GoogleCloudRetailV2alphaLoggingConfigServiceLogGenerationRule
2370
+ # @private
2371
+ class Representation < Google::Apis::Core::JsonRepresentation
2372
+ property :log_generation_rule, as: 'logGenerationRule', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaLoggingConfigLogGenerationRule, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaLoggingConfigLogGenerationRule::Representation
2373
+
2374
+ property :service_name, as: 'serviceName'
2375
+ end
2376
+ end
2377
+
2332
2378
  class GoogleCloudRetailV2alphaMerchantCenterAccountLink
2333
2379
  # @private
2334
2380
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -88,6 +88,37 @@ module Google
88
88
  execute_or_queue_command(command, &block)
89
89
  end
90
90
 
91
+ # Gets the LoggingConfig of the requested project.
92
+ # @param [String] name
93
+ # Required. Full LoggingConfig resource name. Format: projects/`project_number`/
94
+ # loggingConfig
95
+ # @param [String] fields
96
+ # Selector specifying which fields to include in a partial response.
97
+ # @param [String] quota_user
98
+ # Available to use for quota purposes for server-side applications. Can be any
99
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
100
+ # @param [Google::Apis::RequestOptions] options
101
+ # Request-specific options
102
+ #
103
+ # @yield [result, err] Result & error if block supplied
104
+ # @yieldparam result [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaLoggingConfig] parsed result object
105
+ # @yieldparam err [StandardError] error object if request failed
106
+ #
107
+ # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaLoggingConfig]
108
+ #
109
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
110
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
111
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
112
+ def get_project_logging_config(name, fields: nil, quota_user: nil, options: nil, &block)
113
+ command = make_simple_command(:get, 'v2alpha/{+name}', options)
114
+ command.response_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaLoggingConfig::Representation
115
+ command.response_class = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaLoggingConfig
116
+ command.params['name'] = name unless name.nil?
117
+ command.query['fields'] = fields unless fields.nil?
118
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
119
+ execute_or_queue_command(command, &block)
120
+ end
121
+
91
122
  # Gets the project. Throws `NOT_FOUND` if the project wasn't initialized for the
92
123
  # Retail API service.
93
124
  # @param [String] name
@@ -151,6 +182,45 @@ module Google
151
182
  execute_or_queue_command(command, &block)
152
183
  end
153
184
 
185
+ # Updates the LoggingConfig of the requested project.
186
+ # @param [String] name
187
+ # Required. Immutable. The name of the LoggingConfig singleton resource. Format:
188
+ # projects/*/loggingConfig
189
+ # @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaLoggingConfig] google_cloud_retail_v2alpha_logging_config_object
190
+ # @param [String] update_mask
191
+ # Indicates which fields in the provided LoggingConfig to update. The following
192
+ # are the only supported fields: * default_log_generation_rule *
193
+ # per_service_log_generation_rules If not set, all supported fields are updated.
194
+ # @param [String] fields
195
+ # Selector specifying which fields to include in a partial response.
196
+ # @param [String] quota_user
197
+ # Available to use for quota purposes for server-side applications. Can be any
198
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
199
+ # @param [Google::Apis::RequestOptions] options
200
+ # Request-specific options
201
+ #
202
+ # @yield [result, err] Result & error if block supplied
203
+ # @yieldparam result [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaLoggingConfig] parsed result object
204
+ # @yieldparam err [StandardError] error object if request failed
205
+ #
206
+ # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaLoggingConfig]
207
+ #
208
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
209
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
210
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
211
+ def update_project_logging_config(name, google_cloud_retail_v2alpha_logging_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
212
+ command = make_simple_command(:patch, 'v2alpha/{+name}', options)
213
+ command.request_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaLoggingConfig::Representation
214
+ command.request_object = google_cloud_retail_v2alpha_logging_config_object
215
+ command.response_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaLoggingConfig::Representation
216
+ command.response_class = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaLoggingConfig
217
+ command.params['name'] = name unless name.nil?
218
+ command.query['updateMask'] = update_mask unless update_mask.nil?
219
+ command.query['fields'] = fields unless fields.nil?
220
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
221
+ execute_or_queue_command(command, &block)
222
+ end
223
+
154
224
  # Completes the specified prefix with keyword suggestions. This feature is only
155
225
  # available for users who have Retail Search enabled. Enable Retail Search on
156
226
  # Cloud Console before using this feature.
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.85.0
4
+ version: 0.87.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-09-17 00:00:00.000000000 Z
11
+ date: 2023-10-29 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.85.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2alpha/v0.87.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: []