google-apis-retail_v2 0.27.0 → 0.30.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: f538c46e9575d2587ad6bbfa1f9799530a07525068a42a743ce1d0f3b3cc37c5
|
4
|
+
data.tar.gz: 4900fa441a89e0497c8c3b6703dc162feeb70474678e079e24110eb05ed817d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0cd1410672154990235eaedaf2284e07ecc5f516df84ae244988d6ff7d58c2c756c5792ffc4349a3345f1422f3ae641c09def5d32bebf8de4e4a0c725930e570
|
7
|
+
data.tar.gz: ec2b387f5eb362ae64372827ab6ee30c1897cfb19a7c3c266dd5f5257c4c821eee767174ced1c4fee9ed84e42b3684b4ed0b67838916c780706e92e52a9599d4
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# Release history for google-apis-retail_v2
|
2
2
|
|
3
|
+
### v0.30.0 (2022-03-09)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220303
|
6
|
+
|
7
|
+
### v0.29.0 (2022-02-24)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20220217
|
10
|
+
|
11
|
+
### v0.28.0 (2022-02-12)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20220210
|
14
|
+
|
3
15
|
### v0.27.0 (2022-02-03)
|
4
16
|
|
5
17
|
* Regenerated from discovery document revision 20220127
|
@@ -412,7 +412,11 @@ module Google
|
|
412
412
|
# Importing catalog data from Merchant Center](https://cloud.google.com/retail/
|
413
413
|
# recommendations-ai/docs/upload-catalog#mc). Supported values for user events
|
414
414
|
# imports: * `user_event` (default): One JSON UserEvent per line. * `
|
415
|
-
# user_event_ga360`:
|
415
|
+
# user_event_ga360`: The schema is available here: https://support.google.com/
|
416
|
+
# analytics/answer/3437719. * `user_event_ga4`: This feature is in private
|
417
|
+
# preview. Please contact the support team for importing Google Analytics 4
|
418
|
+
# events. The schema is available here: https://support.google.com/analytics/
|
419
|
+
# answer/7029846.
|
416
420
|
# Corresponds to the JSON property `dataSchema`
|
417
421
|
# @return [String]
|
418
422
|
attr_accessor :data_schema
|
@@ -433,11 +437,11 @@ module Google
|
|
433
437
|
# Represents a whole or partial calendar date, such as a birthday. The time of
|
434
438
|
# day and time zone are either specified elsewhere or are insignificant. The
|
435
439
|
# date is relative to the Gregorian Calendar. This can represent one of the
|
436
|
-
# following: * A full date, with non-zero year, month, and day values * A month
|
437
|
-
# and day
|
438
|
-
# with zero month and day
|
439
|
-
#
|
440
|
-
# google.protobuf.Timestamp
|
440
|
+
# following: * A full date, with non-zero year, month, and day values. * A month
|
441
|
+
# and day, with a zero year (for example, an anniversary). * A year on its own,
|
442
|
+
# with a zero month and a zero day. * A year and month, with a zero day (for
|
443
|
+
# example, a credit card expiration date). Related types: * google.type.
|
444
|
+
# TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
|
441
445
|
# Corresponds to the JSON property `partitionDate`
|
442
446
|
# @return [Google::Apis::RetailV2::GoogleTypeDate]
|
443
447
|
attr_accessor :partition_date
|
@@ -686,10 +690,12 @@ module Google
|
|
686
690
|
class GoogleCloudRetailV2CustomAttribute
|
687
691
|
include Google::Apis::Core::Hashable
|
688
692
|
|
689
|
-
#
|
690
|
-
#
|
691
|
-
#
|
692
|
-
#
|
693
|
+
# This field will only be used when AttributesConfig.attribute_config_level of
|
694
|
+
# the Catalog is 'PRODUCT_LEVEL_ATTRIBUTE_CONFIG', if true, custom attribute
|
695
|
+
# values are indexed, so that it can be filtered, faceted or boosted in
|
696
|
+
# SearchService.Search. This field is ignored in a UserEvent. See SearchRequest.
|
697
|
+
# filter, SearchRequest.facet_specs and SearchRequest.boost_spec for more
|
698
|
+
# details.
|
693
699
|
# Corresponds to the JSON property `indexable`
|
694
700
|
# @return [Boolean]
|
695
701
|
attr_accessor :indexable
|
@@ -702,17 +708,20 @@ module Google
|
|
702
708
|
# @return [Array<Float>]
|
703
709
|
attr_accessor :numbers
|
704
710
|
|
705
|
-
#
|
706
|
-
#
|
707
|
-
# text
|
711
|
+
# This field will only be used when AttributesConfig.attribute_config_level of
|
712
|
+
# the Catalog is 'PRODUCT_LEVEL_ATTRIBUTE_CONFIG', if true, custom attribute
|
713
|
+
# values are searchable by text queries in SearchService.Search. This field is
|
714
|
+
# ignored in a UserEvent. Only set if type text is set. Otherwise, a
|
715
|
+
# INVALID_ARGUMENT error is returned.
|
708
716
|
# Corresponds to the JSON property `searchable`
|
709
717
|
# @return [Boolean]
|
710
718
|
attr_accessor :searchable
|
711
719
|
alias_method :searchable?, :searchable
|
712
720
|
|
713
721
|
# The textual values of this custom attribute. For example, `["yellow", "green"]`
|
714
|
-
# when the key is "color".
|
715
|
-
#
|
722
|
+
# when the key is "color". Empty string is not allowed. Otherwise, an
|
723
|
+
# INVALID_ARGUMENT error is returned. Exactly one of text or numbers should be
|
724
|
+
# set. Otherwise, an INVALID_ARGUMENT error is returned.
|
716
725
|
# Corresponds to the JSON property `text`
|
717
726
|
# @return [Array<String>]
|
718
727
|
attr_accessor :text
|
@@ -928,9 +937,9 @@ module Google
|
|
928
937
|
class GoogleCloudRetailV2ImportErrorsConfig
|
929
938
|
include Google::Apis::Core::Hashable
|
930
939
|
|
931
|
-
# Google Cloud Storage
|
932
|
-
# Cloud Storage
|
933
|
-
# one per line, as a JSON-encoded `google.rpc.Status` message.
|
940
|
+
# Google Cloud Storage prefix for import errors. This must be an empty, existing
|
941
|
+
# Cloud Storage directory. Import errors will be written to sharded files in
|
942
|
+
# this directory, one per line, as a JSON-encoded `google.rpc.Status` message.
|
934
943
|
# Corresponds to the JSON property `gcsPrefix`
|
935
944
|
# @return [String]
|
936
945
|
attr_accessor :gcs_prefix
|
@@ -1523,9 +1532,9 @@ module Google
|
|
1523
1532
|
# be a UTF-8 encoded string with a length limit of 128 characters. * For
|
1524
1533
|
# indexable attribute, the key must match the pattern: `a-zA-Z0-9*`. For example,
|
1525
1534
|
# `key0LikeThis` or `KEY_1_LIKE_THIS`. * For text attributes, at most 400
|
1526
|
-
# values are allowed. Empty values are not allowed. Each value must be a
|
1527
|
-
# encoded string with a length limit of 256 characters. * For number
|
1528
|
-
# at most 400 values are allowed.
|
1535
|
+
# values are allowed. Empty values are not allowed. Each value must be a non-
|
1536
|
+
# empty UTF-8 encoded string with a length limit of 256 characters. * For number
|
1537
|
+
# attributes, at most 400 values are allowed.
|
1529
1538
|
# Corresponds to the JSON property `attributes`
|
1530
1539
|
# @return [Hash<String,Google::Apis::RetailV2::GoogleCloudRetailV2CustomAttribute>]
|
1531
1540
|
attr_accessor :attributes
|
@@ -1680,7 +1689,7 @@ module Google
|
|
1680
1689
|
|
1681
1690
|
# The material of the product. For example, "leather", "wooden". A maximum of 20
|
1682
1691
|
# values are allowed. Each value must be a UTF-8 encoded string with a length
|
1683
|
-
# limit of
|
1692
|
+
# limit of 200 characters. Otherwise, an INVALID_ARGUMENT error is returned.
|
1684
1693
|
# Corresponding properties: Google Merchant Center property [material](https://
|
1685
1694
|
# support.google.com/merchants/answer/6324410). Schema.org property [Product.
|
1686
1695
|
# material](https://schema.org/material).
|
@@ -2512,6 +2521,14 @@ module Google
|
|
2512
2521
|
# @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestBoostSpecConditionBoostSpec>]
|
2513
2522
|
attr_accessor :condition_boost_specs
|
2514
2523
|
|
2524
|
+
# Whether to skip boostspec validation. If this field is set to true, invalid
|
2525
|
+
# BoostSpec.condition_boost_specs will be ignored and valid BoostSpec.
|
2526
|
+
# condition_boost_specs will still be applied.
|
2527
|
+
# Corresponds to the JSON property `skipBoostSpecValidation`
|
2528
|
+
# @return [Boolean]
|
2529
|
+
attr_accessor :skip_boost_spec_validation
|
2530
|
+
alias_method :skip_boost_spec_validation?, :skip_boost_spec_validation
|
2531
|
+
|
2515
2532
|
def initialize(**args)
|
2516
2533
|
update!(**args)
|
2517
2534
|
end
|
@@ -2519,6 +2536,7 @@ module Google
|
|
2519
2536
|
# Update properties of this object
|
2520
2537
|
def update!(**args)
|
2521
2538
|
@condition_boost_specs = args[:condition_boost_specs] if args.key?(:condition_boost_specs)
|
2539
|
+
@skip_boost_spec_validation = args[:skip_boost_spec_validation] if args.key?(:skip_boost_spec_validation)
|
2522
2540
|
end
|
2523
2541
|
end
|
2524
2542
|
|
@@ -2816,6 +2834,12 @@ module Google
|
|
2816
2834
|
# @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2SearchResponseFacet>]
|
2817
2835
|
attr_accessor :facets
|
2818
2836
|
|
2837
|
+
# The invalid SearchRequest.BoostSpec.condition_boost_specs that are not applied
|
2838
|
+
# during serving.
|
2839
|
+
# Corresponds to the JSON property `invalidConditionBoostSpecs`
|
2840
|
+
# @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestBoostSpecConditionBoostSpec>]
|
2841
|
+
attr_accessor :invalid_condition_boost_specs
|
2842
|
+
|
2819
2843
|
# A token that can be sent as SearchRequest.page_token to retrieve the next page.
|
2820
2844
|
# If this field is omitted, there are no subsequent pages.
|
2821
2845
|
# Corresponds to the JSON property `nextPageToken`
|
@@ -2857,6 +2881,7 @@ module Google
|
|
2857
2881
|
@attribution_token = args[:attribution_token] if args.key?(:attribution_token)
|
2858
2882
|
@corrected_query = args[:corrected_query] if args.key?(:corrected_query)
|
2859
2883
|
@facets = args[:facets] if args.key?(:facets)
|
2884
|
+
@invalid_condition_boost_specs = args[:invalid_condition_boost_specs] if args.key?(:invalid_condition_boost_specs)
|
2860
2885
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
2861
2886
|
@query_expansion_info = args[:query_expansion_info] if args.key?(:query_expansion_info)
|
2862
2887
|
@redirect_uri = args[:redirect_uri] if args.key?(:redirect_uri)
|
@@ -3021,11 +3046,20 @@ module Google
|
|
3021
3046
|
include Google::Apis::Core::Hashable
|
3022
3047
|
|
3023
3048
|
# The final component of the resource name of a branch. This field must be one
|
3024
|
-
# of "0", "1" or "2". Otherwise, an INVALID_ARGUMENT error is returned.
|
3049
|
+
# of "0", "1" or "2". Otherwise, an INVALID_ARGUMENT error is returned. If there
|
3050
|
+
# are no sufficient active products in the targeted branch and force is not set,
|
3051
|
+
# a FAILED_PRECONDITION error is returned.
|
3025
3052
|
# Corresponds to the JSON property `branchId`
|
3026
3053
|
# @return [String]
|
3027
3054
|
attr_accessor :branch_id
|
3028
3055
|
|
3056
|
+
# If set to true, it permits switching to a branch with branch_id even if it has
|
3057
|
+
# no sufficient active products.
|
3058
|
+
# Corresponds to the JSON property `force`
|
3059
|
+
# @return [Boolean]
|
3060
|
+
attr_accessor :force
|
3061
|
+
alias_method :force?, :force
|
3062
|
+
|
3029
3063
|
# Some note on this request, this can be retrieved by CatalogService.
|
3030
3064
|
# GetDefaultBranch before next valid default branch set occurs. This field must
|
3031
3065
|
# be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise,
|
@@ -3041,6 +3075,7 @@ module Google
|
|
3041
3075
|
# Update properties of this object
|
3042
3076
|
def update!(**args)
|
3043
3077
|
@branch_id = args[:branch_id] if args.key?(:branch_id)
|
3078
|
+
@force = args[:force] if args.key?(:force)
|
3044
3079
|
@note = args[:note] if args.key?(:note)
|
3045
3080
|
end
|
3046
3081
|
end
|
@@ -3657,9 +3692,9 @@ module Google
|
|
3657
3692
|
class GoogleCloudRetailV2alphaImportErrorsConfig
|
3658
3693
|
include Google::Apis::Core::Hashable
|
3659
3694
|
|
3660
|
-
# Google Cloud Storage
|
3661
|
-
# Cloud Storage
|
3662
|
-
# one per line, as a JSON-encoded `google.rpc.Status` message.
|
3695
|
+
# Google Cloud Storage prefix for import errors. This must be an empty, existing
|
3696
|
+
# Cloud Storage directory. Import errors will be written to sharded files in
|
3697
|
+
# this directory, one per line, as a JSON-encoded `google.rpc.Status` message.
|
3663
3698
|
# Corresponds to the JSON property `gcsPrefix`
|
3664
3699
|
# @return [String]
|
3665
3700
|
attr_accessor :gcs_prefix
|
@@ -4127,9 +4162,9 @@ module Google
|
|
4127
4162
|
class GoogleCloudRetailV2betaImportErrorsConfig
|
4128
4163
|
include Google::Apis::Core::Hashable
|
4129
4164
|
|
4130
|
-
# Google Cloud Storage
|
4131
|
-
# Cloud Storage
|
4132
|
-
# one per line, as a JSON-encoded `google.rpc.Status` message.
|
4165
|
+
# Google Cloud Storage prefix for import errors. This must be an empty, existing
|
4166
|
+
# Cloud Storage directory. Import errors will be written to sharded files in
|
4167
|
+
# this directory, one per line, as a JSON-encoded `google.rpc.Status` message.
|
4133
4168
|
# Corresponds to the JSON property `gcsPrefix`
|
4134
4169
|
# @return [String]
|
4135
4170
|
attr_accessor :gcs_prefix
|
@@ -4558,11 +4593,11 @@ module Google
|
|
4558
4593
|
# Represents a whole or partial calendar date, such as a birthday. The time of
|
4559
4594
|
# day and time zone are either specified elsewhere or are insignificant. The
|
4560
4595
|
# date is relative to the Gregorian Calendar. This can represent one of the
|
4561
|
-
# following: * A full date, with non-zero year, month, and day values * A month
|
4562
|
-
# and day
|
4563
|
-
# with zero month and day
|
4564
|
-
#
|
4565
|
-
# google.protobuf.Timestamp
|
4596
|
+
# following: * A full date, with non-zero year, month, and day values. * A month
|
4597
|
+
# and day, with a zero year (for example, an anniversary). * A year on its own,
|
4598
|
+
# with a zero month and a zero day. * A year and month, with a zero day (for
|
4599
|
+
# example, a credit card expiration date). Related types: * google.type.
|
4600
|
+
# TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
|
4566
4601
|
class GoogleTypeDate
|
4567
4602
|
include Google::Apis::Core::Hashable
|
4568
4603
|
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module RetailV2
|
18
18
|
# Version of the google-apis-retail_v2 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.30.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220303"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -1385,6 +1385,7 @@ module Google
|
|
1385
1385
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1386
1386
|
collection :condition_boost_specs, as: 'conditionBoostSpecs', class: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestBoostSpecConditionBoostSpec, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestBoostSpecConditionBoostSpec::Representation
|
1387
1387
|
|
1388
|
+
property :skip_boost_spec_validation, as: 'skipBoostSpecValidation'
|
1388
1389
|
end
|
1389
1390
|
end
|
1390
1391
|
|
@@ -1451,6 +1452,8 @@ module Google
|
|
1451
1452
|
property :corrected_query, as: 'correctedQuery'
|
1452
1453
|
collection :facets, as: 'facets', class: Google::Apis::RetailV2::GoogleCloudRetailV2SearchResponseFacet, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2SearchResponseFacet::Representation
|
1453
1454
|
|
1455
|
+
collection :invalid_condition_boost_specs, as: 'invalidConditionBoostSpecs', class: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestBoostSpecConditionBoostSpec, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestBoostSpecConditionBoostSpec::Representation
|
1456
|
+
|
1454
1457
|
property :next_page_token, as: 'nextPageToken'
|
1455
1458
|
property :query_expansion_info, as: 'queryExpansionInfo', class: Google::Apis::RetailV2::GoogleCloudRetailV2SearchResponseQueryExpansionInfo, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2SearchResponseQueryExpansionInfo::Representation
|
1456
1459
|
|
@@ -1505,6 +1508,7 @@ module Google
|
|
1505
1508
|
# @private
|
1506
1509
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1507
1510
|
property :branch_id, as: 'branchId'
|
1511
|
+
property :force, as: 'force'
|
1508
1512
|
property :note, as: 'note'
|
1509
1513
|
end
|
1510
1514
|
end
|
@@ -72,10 +72,12 @@ module Google
|
|
72
72
|
# `UNKNOWN_DEVICE_TYPE` * `DESKTOP` * `MOBILE` * A customized string starts with
|
73
73
|
# `OTHER_`, e.g. `OTHER_IPHONE`.
|
74
74
|
# @param [Array<String>, String] language_codes
|
75
|
-
# The
|
76
|
-
#
|
77
|
-
#
|
78
|
-
#
|
75
|
+
# The language filters applied to the output suggestions. If set, it should
|
76
|
+
# contain the language of the query. If not set, suggestions are returned
|
77
|
+
# without considering language restrictions. This is the BCP-47 language code,
|
78
|
+
# such as "en-US" or "sr-Latn". For more information, see [Tags for Identifying
|
79
|
+
# Languages](https://tools.ietf.org/html/bcp47). The maximum number of language
|
80
|
+
# codes is 3.
|
79
81
|
# @param [Fixnum] max_suggestions
|
80
82
|
# Completion max suggestions. If left unset or set to 0, then will fallback to
|
81
83
|
# the configured value CompletionConfig.max_suggestions. The maximum allowed max
|
@@ -124,10 +126,7 @@ module Google
|
|
124
126
|
end
|
125
127
|
|
126
128
|
# Get which branch is currently default branch set by CatalogService.
|
127
|
-
# SetDefaultBranch method under a specified parent catalog.
|
128
|
-
# available for users who have Retail Search enabled. Please submit a form [here]
|
129
|
-
# (https://cloud.google.com/contact) to contact cloud sales if you are
|
130
|
-
# interested in using Retail Search.
|
129
|
+
# SetDefaultBranch method under a specified parent catalog.
|
131
130
|
# @param [String] catalog
|
132
131
|
# The parent catalog resource name, such as `projects/*/locations/global/
|
133
132
|
# catalogs/default_catalog`.
|
@@ -256,9 +255,7 @@ module Google
|
|
256
255
|
# PredictionService will only return product IDs from branch `newBranch`. *
|
257
256
|
# SearchService will only return product IDs from branch `newBranch` (if branch
|
258
257
|
# is not explicitly set). * UserEventService will only join events with products
|
259
|
-
# from branch `newBranch`.
|
260
|
-
# Retail Search enabled. Please submit a form [here](https://cloud.google.com/
|
261
|
-
# contact) to contact cloud sales if you are interested in using Retail Search.
|
258
|
+
# from branch `newBranch`.
|
262
259
|
# @param [String] catalog
|
263
260
|
# Full resource name of the catalog, such as `projects/*/locations/global/
|
264
261
|
# catalogs/default_catalog`.
|
@@ -687,7 +684,7 @@ module Google
|
|
687
684
|
# CreateProduct or UpdateProduct request. If no inventory fields are set in
|
688
685
|
# CreateProductRequest.product, then any pre-existing inventory information for
|
689
686
|
# this product will be used. If no inventory fields are set in
|
690
|
-
#
|
687
|
+
# SetInventoryRequest.set_mask, then any existing inventory information will be
|
691
688
|
# preserved. Pre-existing inventory information can only be updated with
|
692
689
|
# SetInventory, AddFulfillmentPlaces, and RemoveFulfillmentPlaces. This feature
|
693
690
|
# is only available for users who have Retail Search enabled. Please submit a
|
@@ -1190,6 +1187,83 @@ module Google
|
|
1190
1187
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1191
1188
|
execute_or_queue_command(command, &block)
|
1192
1189
|
end
|
1190
|
+
|
1191
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
1192
|
+
# to poll the operation result at intervals as recommended by the API service.
|
1193
|
+
# @param [String] name
|
1194
|
+
# The name of the operation resource.
|
1195
|
+
# @param [String] fields
|
1196
|
+
# Selector specifying which fields to include in a partial response.
|
1197
|
+
# @param [String] quota_user
|
1198
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1199
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1200
|
+
# @param [Google::Apis::RequestOptions] options
|
1201
|
+
# Request-specific options
|
1202
|
+
#
|
1203
|
+
# @yield [result, err] Result & error if block supplied
|
1204
|
+
# @yieldparam result [Google::Apis::RetailV2::GoogleLongrunningOperation] parsed result object
|
1205
|
+
# @yieldparam err [StandardError] error object if request failed
|
1206
|
+
#
|
1207
|
+
# @return [Google::Apis::RetailV2::GoogleLongrunningOperation]
|
1208
|
+
#
|
1209
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1210
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1211
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1212
|
+
def get_project_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
1213
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
1214
|
+
command.response_representation = Google::Apis::RetailV2::GoogleLongrunningOperation::Representation
|
1215
|
+
command.response_class = Google::Apis::RetailV2::GoogleLongrunningOperation
|
1216
|
+
command.params['name'] = name unless name.nil?
|
1217
|
+
command.query['fields'] = fields unless fields.nil?
|
1218
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1219
|
+
execute_or_queue_command(command, &block)
|
1220
|
+
end
|
1221
|
+
|
1222
|
+
# Lists operations that match the specified filter in the request. If the server
|
1223
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
|
1224
|
+
# binding allows API services to override the binding to use different resource
|
1225
|
+
# name schemes, such as `users/*/operations`. To override the binding, API
|
1226
|
+
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
|
1227
|
+
# service configuration. For backwards compatibility, the default name includes
|
1228
|
+
# the operations collection id, however overriding users must ensure the name
|
1229
|
+
# binding is the parent resource, without the operations collection id.
|
1230
|
+
# @param [String] name
|
1231
|
+
# The name of the operation's parent resource.
|
1232
|
+
# @param [String] filter
|
1233
|
+
# The standard list filter.
|
1234
|
+
# @param [Fixnum] page_size
|
1235
|
+
# The standard list page size.
|
1236
|
+
# @param [String] page_token
|
1237
|
+
# The standard list page token.
|
1238
|
+
# @param [String] fields
|
1239
|
+
# Selector specifying which fields to include in a partial response.
|
1240
|
+
# @param [String] quota_user
|
1241
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1242
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1243
|
+
# @param [Google::Apis::RequestOptions] options
|
1244
|
+
# Request-specific options
|
1245
|
+
#
|
1246
|
+
# @yield [result, err] Result & error if block supplied
|
1247
|
+
# @yieldparam result [Google::Apis::RetailV2::GoogleLongrunningListOperationsResponse] parsed result object
|
1248
|
+
# @yieldparam err [StandardError] error object if request failed
|
1249
|
+
#
|
1250
|
+
# @return [Google::Apis::RetailV2::GoogleLongrunningListOperationsResponse]
|
1251
|
+
#
|
1252
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1253
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1254
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1255
|
+
def list_project_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1256
|
+
command = make_simple_command(:get, 'v2/{+name}/operations', options)
|
1257
|
+
command.response_representation = Google::Apis::RetailV2::GoogleLongrunningListOperationsResponse::Representation
|
1258
|
+
command.response_class = Google::Apis::RetailV2::GoogleLongrunningListOperationsResponse
|
1259
|
+
command.params['name'] = name unless name.nil?
|
1260
|
+
command.query['filter'] = filter unless filter.nil?
|
1261
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1262
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1263
|
+
command.query['fields'] = fields unless fields.nil?
|
1264
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1265
|
+
execute_or_queue_command(command, &block)
|
1266
|
+
end
|
1193
1267
|
|
1194
1268
|
protected
|
1195
1269
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-retail_v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.30.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: 2022-
|
11
|
+
date: 2022-03-14 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_v2/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.30.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|