google-apis-retail_v2alpha 0.85.0 → 0.86.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 528165472c875a99bf4a7ec4e90cd496d14066233eb1d58a1eb892eab13b7e60
|
4
|
+
data.tar.gz: 9f9f5711a2717e4697a8f6b4c817ffeade1ceb818604a9e996d718c6e084cc3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0315319ad0abd171ad175d48ff13a1b425f3943dfaebbcbab1a47e93a75905c97dafb88651d5a52f8de0a976b5e959da2965eb47050ef58957986de235233dcc'
|
7
|
+
data.tar.gz: 6b05a9cf87b65de032c9dd1bf91050144833e1cf782201e9b4e3370d509a8bbf176ffa7150b761a3c37f93ec551335ef4c4132d1398c4add48b9140f6c218a87
|
data/CHANGELOG.md
CHANGED
@@ -3249,6 +3249,98 @@ module Google
|
|
3249
3249
|
end
|
3250
3250
|
end
|
3251
3251
|
|
3252
|
+
# Project level logging config to control what level of log will be generated
|
3253
|
+
# and written to Cloud Logging.
|
3254
|
+
class GoogleCloudRetailV2alphaLoggingConfig
|
3255
|
+
include Google::Apis::Core::Hashable
|
3256
|
+
|
3257
|
+
# The logging configurations for services supporting log generation.
|
3258
|
+
# Corresponds to the JSON property `defaultLogGenerationRule`
|
3259
|
+
# @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaLoggingConfigLogGenerationRule]
|
3260
|
+
attr_accessor :default_log_generation_rule
|
3261
|
+
|
3262
|
+
# Required. Immutable. The name of the LoggingConfig singleton resource. Format:
|
3263
|
+
# projects/*/loggingConfig
|
3264
|
+
# Corresponds to the JSON property `name`
|
3265
|
+
# @return [String]
|
3266
|
+
attr_accessor :name
|
3267
|
+
|
3268
|
+
# Controls logging configurations more granularly for each supported service.
|
3269
|
+
# This overrides the default_log_generation_rule for the services specified. For
|
3270
|
+
# those not mentioned, they will fallback to the default log generation rule.
|
3271
|
+
# Corresponds to the JSON property `serviceLogGenerationRules`
|
3272
|
+
# @return [Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaLoggingConfigServiceLogGenerationRule>]
|
3273
|
+
attr_accessor :service_log_generation_rules
|
3274
|
+
|
3275
|
+
def initialize(**args)
|
3276
|
+
update!(**args)
|
3277
|
+
end
|
3278
|
+
|
3279
|
+
# Update properties of this object
|
3280
|
+
def update!(**args)
|
3281
|
+
@default_log_generation_rule = args[:default_log_generation_rule] if args.key?(:default_log_generation_rule)
|
3282
|
+
@name = args[:name] if args.key?(:name)
|
3283
|
+
@service_log_generation_rules = args[:service_log_generation_rules] if args.key?(:service_log_generation_rules)
|
3284
|
+
end
|
3285
|
+
end
|
3286
|
+
|
3287
|
+
# The logging configurations for services supporting log generation.
|
3288
|
+
class GoogleCloudRetailV2alphaLoggingConfigLogGenerationRule
|
3289
|
+
include Google::Apis::Core::Hashable
|
3290
|
+
|
3291
|
+
# The log sample rate for INFO level log entries. You can use this to reduce the
|
3292
|
+
# number of entries generated for INFO level logs. DO NOT set this field if the
|
3293
|
+
# logging_level is not LoggingLevel.LOG_ALL. Otherwise, an INVALID_ARGUMENT
|
3294
|
+
# error is returned. Sample rate for INFO logs defaults to 1 when unset (
|
3295
|
+
# generate and send all INFO logs to Cloud Logging). Its value must be greater
|
3296
|
+
# than 0 and less than or equal to 1.
|
3297
|
+
# Corresponds to the JSON property `infoLogSampleRate`
|
3298
|
+
# @return [Float]
|
3299
|
+
attr_accessor :info_log_sample_rate
|
3300
|
+
|
3301
|
+
# The logging level. By default it is set to `LOG_WARNINGS_AND_ABOVE`.
|
3302
|
+
# Corresponds to the JSON property `loggingLevel`
|
3303
|
+
# @return [String]
|
3304
|
+
attr_accessor :logging_level
|
3305
|
+
|
3306
|
+
def initialize(**args)
|
3307
|
+
update!(**args)
|
3308
|
+
end
|
3309
|
+
|
3310
|
+
# Update properties of this object
|
3311
|
+
def update!(**args)
|
3312
|
+
@info_log_sample_rate = args[:info_log_sample_rate] if args.key?(:info_log_sample_rate)
|
3313
|
+
@logging_level = args[:logging_level] if args.key?(:logging_level)
|
3314
|
+
end
|
3315
|
+
end
|
3316
|
+
|
3317
|
+
# The granular logging configurations for supported services.
|
3318
|
+
class GoogleCloudRetailV2alphaLoggingConfigServiceLogGenerationRule
|
3319
|
+
include Google::Apis::Core::Hashable
|
3320
|
+
|
3321
|
+
# The logging configurations for services supporting log generation.
|
3322
|
+
# Corresponds to the JSON property `logGenerationRule`
|
3323
|
+
# @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaLoggingConfigLogGenerationRule]
|
3324
|
+
attr_accessor :log_generation_rule
|
3325
|
+
|
3326
|
+
# Required. Supported service names: "CatalogService", "CompletionService", "
|
3327
|
+
# ControlService", "MerchantCenterStreaming", "ModelService", "PredictionService"
|
3328
|
+
# , "ProductService", "ServingConfigService", "UserEventService",
|
3329
|
+
# Corresponds to the JSON property `serviceName`
|
3330
|
+
# @return [String]
|
3331
|
+
attr_accessor :service_name
|
3332
|
+
|
3333
|
+
def initialize(**args)
|
3334
|
+
update!(**args)
|
3335
|
+
end
|
3336
|
+
|
3337
|
+
# Update properties of this object
|
3338
|
+
def update!(**args)
|
3339
|
+
@log_generation_rule = args[:log_generation_rule] if args.key?(:log_generation_rule)
|
3340
|
+
@service_name = args[:service_name] if args.key?(:service_name)
|
3341
|
+
end
|
3342
|
+
end
|
3343
|
+
|
3252
3344
|
# Represents a link between a Merchant Center account and a branch. After a link
|
3253
3345
|
# is established, products from the linked Merchant Center account are streamed
|
3254
3346
|
# 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.
|
19
|
+
GEM_VERSION = "0.86.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 = "
|
25
|
+
REVISION = "20231005"
|
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.
|
4
|
+
version: 0.86.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
|
+
date: 2023-10-15 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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2alpha/v0.86.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: []
|