google-apis-retail_v2alpha 0.96.0 → 0.97.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: 686c1693e45238de318999bcaafd280ddf83f9cdd81f92a4d2fa0ff84d95dd9d
|
4
|
+
data.tar.gz: a30d2bd8128e5e513ac78164a97f99b443964fe0bbb6f6b46840dcb95133c422
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1271de4115c75781dbf7fb20b3e97e2b6b78102232ff7de411310e6271dc130313c5c84ede45eb9cde80231f2d5b948d2b18cae93f307142493dfdcc28d0a23
|
7
|
+
data.tar.gz: 11f57a34d72ce7f15a9c441c4885ca80b9270b54e9cb6e98baee8465aa039b8a759ecba899918df6f7f4e611158027f77da17ff0a0dc650a5f8d5881a101af69
|
data/CHANGELOG.md
CHANGED
@@ -1380,6 +1380,84 @@ module Google
|
|
1380
1380
|
end
|
1381
1381
|
end
|
1382
1382
|
|
1383
|
+
# Project level alert config.
|
1384
|
+
class GoogleCloudRetailV2alphaAlertConfig
|
1385
|
+
include Google::Apis::Core::Hashable
|
1386
|
+
|
1387
|
+
# Alert policies for a customer. They must be unique by [AlertPolicy.alert_group]
|
1388
|
+
# Corresponds to the JSON property `alertPolicies`
|
1389
|
+
# @return [Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAlertConfigAlertPolicy>]
|
1390
|
+
attr_accessor :alert_policies
|
1391
|
+
|
1392
|
+
# Required. Immutable. The name of the AlertConfig singleton resource. Format:
|
1393
|
+
# projects/*/alertConfig
|
1394
|
+
# Corresponds to the JSON property `name`
|
1395
|
+
# @return [String]
|
1396
|
+
attr_accessor :name
|
1397
|
+
|
1398
|
+
def initialize(**args)
|
1399
|
+
update!(**args)
|
1400
|
+
end
|
1401
|
+
|
1402
|
+
# Update properties of this object
|
1403
|
+
def update!(**args)
|
1404
|
+
@alert_policies = args[:alert_policies] if args.key?(:alert_policies)
|
1405
|
+
@name = args[:name] if args.key?(:name)
|
1406
|
+
end
|
1407
|
+
end
|
1408
|
+
|
1409
|
+
# Alert policy for a customer.
|
1410
|
+
class GoogleCloudRetailV2alphaAlertConfigAlertPolicy
|
1411
|
+
include Google::Apis::Core::Hashable
|
1412
|
+
|
1413
|
+
# The feature that provides alerting capability. Supported value is only `search-
|
1414
|
+
# data-quality` for now.
|
1415
|
+
# Corresponds to the JSON property `alertGroup`
|
1416
|
+
# @return [String]
|
1417
|
+
attr_accessor :alert_group
|
1418
|
+
|
1419
|
+
# The enrollment status of a customer.
|
1420
|
+
# Corresponds to the JSON property `enrollStatus`
|
1421
|
+
# @return [String]
|
1422
|
+
attr_accessor :enroll_status
|
1423
|
+
|
1424
|
+
# Recipients for the alert policy. One alert policy should not exceed 20
|
1425
|
+
# recipients.
|
1426
|
+
# Corresponds to the JSON property `recipients`
|
1427
|
+
# @return [Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAlertConfigAlertPolicyRecipient>]
|
1428
|
+
attr_accessor :recipients
|
1429
|
+
|
1430
|
+
def initialize(**args)
|
1431
|
+
update!(**args)
|
1432
|
+
end
|
1433
|
+
|
1434
|
+
# Update properties of this object
|
1435
|
+
def update!(**args)
|
1436
|
+
@alert_group = args[:alert_group] if args.key?(:alert_group)
|
1437
|
+
@enroll_status = args[:enroll_status] if args.key?(:enroll_status)
|
1438
|
+
@recipients = args[:recipients] if args.key?(:recipients)
|
1439
|
+
end
|
1440
|
+
end
|
1441
|
+
|
1442
|
+
# Recipient contact information.
|
1443
|
+
class GoogleCloudRetailV2alphaAlertConfigAlertPolicyRecipient
|
1444
|
+
include Google::Apis::Core::Hashable
|
1445
|
+
|
1446
|
+
# Email address of the recipient.
|
1447
|
+
# Corresponds to the JSON property `emailAddress`
|
1448
|
+
# @return [String]
|
1449
|
+
attr_accessor :email_address
|
1450
|
+
|
1451
|
+
def initialize(**args)
|
1452
|
+
update!(**args)
|
1453
|
+
end
|
1454
|
+
|
1455
|
+
# Update properties of this object
|
1456
|
+
def update!(**args)
|
1457
|
+
@email_address = args[:email_address] if args.key?(:email_address)
|
1458
|
+
end
|
1459
|
+
end
|
1460
|
+
|
1383
1461
|
# Catalog level attribute config.
|
1384
1462
|
class GoogleCloudRetailV2alphaAttributesConfig
|
1385
1463
|
include Google::Apis::Core::Hashable
|
@@ -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.97.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.14.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20240229"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -328,6 +328,24 @@ module Google
|
|
328
328
|
include Google::Apis::Core::JsonObjectSupport
|
329
329
|
end
|
330
330
|
|
331
|
+
class GoogleCloudRetailV2alphaAlertConfig
|
332
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
333
|
+
|
334
|
+
include Google::Apis::Core::JsonObjectSupport
|
335
|
+
end
|
336
|
+
|
337
|
+
class GoogleCloudRetailV2alphaAlertConfigAlertPolicy
|
338
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
339
|
+
|
340
|
+
include Google::Apis::Core::JsonObjectSupport
|
341
|
+
end
|
342
|
+
|
343
|
+
class GoogleCloudRetailV2alphaAlertConfigAlertPolicyRecipient
|
344
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
345
|
+
|
346
|
+
include Google::Apis::Core::JsonObjectSupport
|
347
|
+
end
|
348
|
+
|
331
349
|
class GoogleCloudRetailV2alphaAttributesConfig
|
332
350
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
333
351
|
|
@@ -1935,6 +1953,32 @@ module Google
|
|
1935
1953
|
end
|
1936
1954
|
end
|
1937
1955
|
|
1956
|
+
class GoogleCloudRetailV2alphaAlertConfig
|
1957
|
+
# @private
|
1958
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1959
|
+
collection :alert_policies, as: 'alertPolicies', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAlertConfigAlertPolicy, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAlertConfigAlertPolicy::Representation
|
1960
|
+
|
1961
|
+
property :name, as: 'name'
|
1962
|
+
end
|
1963
|
+
end
|
1964
|
+
|
1965
|
+
class GoogleCloudRetailV2alphaAlertConfigAlertPolicy
|
1966
|
+
# @private
|
1967
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1968
|
+
property :alert_group, as: 'alertGroup'
|
1969
|
+
property :enroll_status, as: 'enrollStatus'
|
1970
|
+
collection :recipients, as: 'recipients', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAlertConfigAlertPolicyRecipient, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAlertConfigAlertPolicyRecipient::Representation
|
1971
|
+
|
1972
|
+
end
|
1973
|
+
end
|
1974
|
+
|
1975
|
+
class GoogleCloudRetailV2alphaAlertConfigAlertPolicyRecipient
|
1976
|
+
# @private
|
1977
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1978
|
+
property :email_address, as: 'emailAddress'
|
1979
|
+
end
|
1980
|
+
end
|
1981
|
+
|
1938
1982
|
class GoogleCloudRetailV2alphaAttributesConfig
|
1939
1983
|
# @private
|
1940
1984
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -91,6 +91,37 @@ module Google
|
|
91
91
|
execute_or_queue_command(command, &block)
|
92
92
|
end
|
93
93
|
|
94
|
+
# Get the AlertConfig of the requested project.
|
95
|
+
# @param [String] name
|
96
|
+
# Required. Full AlertConfig resource name. Format: projects/`project_number`/
|
97
|
+
# alertConfig
|
98
|
+
# @param [String] fields
|
99
|
+
# Selector specifying which fields to include in a partial response.
|
100
|
+
# @param [String] quota_user
|
101
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
102
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
103
|
+
# @param [Google::Apis::RequestOptions] options
|
104
|
+
# Request-specific options
|
105
|
+
#
|
106
|
+
# @yield [result, err] Result & error if block supplied
|
107
|
+
# @yieldparam result [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAlertConfig] parsed result object
|
108
|
+
# @yieldparam err [StandardError] error object if request failed
|
109
|
+
#
|
110
|
+
# @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAlertConfig]
|
111
|
+
#
|
112
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
113
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
114
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
115
|
+
def get_project_alert_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
116
|
+
command = make_simple_command(:get, 'v2alpha/{+name}', options)
|
117
|
+
command.response_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAlertConfig::Representation
|
118
|
+
command.response_class = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAlertConfig
|
119
|
+
command.params['name'] = name unless name.nil?
|
120
|
+
command.query['fields'] = fields unless fields.nil?
|
121
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
122
|
+
execute_or_queue_command(command, &block)
|
123
|
+
end
|
124
|
+
|
94
125
|
# Gets the LoggingConfig of the requested project.
|
95
126
|
# @param [String] name
|
96
127
|
# Required. Full LoggingConfig resource name. Format: projects/`project_number`/
|
@@ -185,6 +216,44 @@ module Google
|
|
185
216
|
execute_or_queue_command(command, &block)
|
186
217
|
end
|
187
218
|
|
219
|
+
# Update the alert config of the requested project.
|
220
|
+
# @param [String] name
|
221
|
+
# Required. Immutable. The name of the AlertConfig singleton resource. Format:
|
222
|
+
# projects/*/alertConfig
|
223
|
+
# @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAlertConfig] google_cloud_retail_v2alpha_alert_config_object
|
224
|
+
# @param [String] update_mask
|
225
|
+
# Indicates which fields in the provided AlertConfig to update. If not set, all
|
226
|
+
# supported fields are updated.
|
227
|
+
# @param [String] fields
|
228
|
+
# Selector specifying which fields to include in a partial response.
|
229
|
+
# @param [String] quota_user
|
230
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
231
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
232
|
+
# @param [Google::Apis::RequestOptions] options
|
233
|
+
# Request-specific options
|
234
|
+
#
|
235
|
+
# @yield [result, err] Result & error if block supplied
|
236
|
+
# @yieldparam result [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAlertConfig] parsed result object
|
237
|
+
# @yieldparam err [StandardError] error object if request failed
|
238
|
+
#
|
239
|
+
# @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAlertConfig]
|
240
|
+
#
|
241
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
242
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
243
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
244
|
+
def update_project_alert_config(name, google_cloud_retail_v2alpha_alert_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
245
|
+
command = make_simple_command(:patch, 'v2alpha/{+name}', options)
|
246
|
+
command.request_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAlertConfig::Representation
|
247
|
+
command.request_object = google_cloud_retail_v2alpha_alert_config_object
|
248
|
+
command.response_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAlertConfig::Representation
|
249
|
+
command.response_class = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAlertConfig
|
250
|
+
command.params['name'] = name unless name.nil?
|
251
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
252
|
+
command.query['fields'] = fields unless fields.nil?
|
253
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
254
|
+
execute_or_queue_command(command, &block)
|
255
|
+
end
|
256
|
+
|
188
257
|
# Updates the LoggingConfig of the requested project.
|
189
258
|
# @param [String] name
|
190
259
|
# Required. Immutable. The name of the LoggingConfig singleton resource. Format:
|
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.97.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: 2024-
|
11
|
+
date: 2024-03-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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2alpha/v0.97.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: []
|