google-apis-retail_v2alpha 0.100.0 → 0.102.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: 2213df304beb6f8de922f4a063033b6499c60878e76b150ed8deb63e267d2a7b
|
4
|
+
data.tar.gz: 4bea5d96573aa9a33a1cdb3d5a35d3f38cbecd631fe612e42344cf12fc7022c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4e8dc8b305dbb81c15d155ebbb6bdf9331e3d84c74159d6b8bf4089e0a923d70d03abfadc7232973a554b61d222970ec7007c19e96c8b5da42144abf8fe4a3a
|
7
|
+
data.tar.gz: ac6724f46b037cba19a3e8309b9f47516fca240bed07706527071d6a9585397c69a522b2b76f41bed645452872ea9c9ea3d5dfc2723b773ec1eade7686cd8222
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Release history for google-apis-retail_v2alpha
|
2
2
|
|
3
|
+
### v0.102.0 (2024-05-19)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20240509
|
6
|
+
* Regenerated using generator version 0.15.0
|
7
|
+
|
8
|
+
### v0.101.0 (2024-04-28)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20240418
|
11
|
+
|
3
12
|
### v0.100.0 (2024-04-21)
|
4
13
|
|
5
14
|
* Regenerated from discovery document revision 20240411
|
@@ -1678,6 +1678,191 @@ module Google
|
|
1678
1678
|
end
|
1679
1679
|
end
|
1680
1680
|
|
1681
|
+
# A data branch that stores Products.
|
1682
|
+
class GoogleCloudRetailV2alphaBranch
|
1683
|
+
include Google::Apis::Core::Hashable
|
1684
|
+
|
1685
|
+
# Output only. Human readable name of the branch to display in the UI.
|
1686
|
+
# Corresponds to the JSON property `displayName`
|
1687
|
+
# @return [String]
|
1688
|
+
attr_accessor :display_name
|
1689
|
+
|
1690
|
+
# Output only. Indicates whether this branch is set as the default branch of its
|
1691
|
+
# parent catalog.
|
1692
|
+
# Corresponds to the JSON property `isDefault`
|
1693
|
+
# @return [Boolean]
|
1694
|
+
attr_accessor :is_default
|
1695
|
+
alias_method :is_default?, :is_default
|
1696
|
+
|
1697
|
+
# Output only. Timestamp of last import through ProductService.ImportProducts.
|
1698
|
+
# Empty value means no import has been made to this branch.
|
1699
|
+
# Corresponds to the JSON property `lastProductImportTime`
|
1700
|
+
# @return [String]
|
1701
|
+
attr_accessor :last_product_import_time
|
1702
|
+
|
1703
|
+
# Immutable. Full resource name of the branch, such as `projects/*/locations/
|
1704
|
+
# global/catalogs/default_catalog/branches/branch_id`.
|
1705
|
+
# Corresponds to the JSON property `name`
|
1706
|
+
# @return [String]
|
1707
|
+
attr_accessor :name
|
1708
|
+
|
1709
|
+
# Output only. Statistics for number of products in the branch, provided for
|
1710
|
+
# different scopes. This field is not populated in BranchView.BASIC view.
|
1711
|
+
# Corresponds to the JSON property `productCountStats`
|
1712
|
+
# @return [Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaBranchProductCountStatistic>]
|
1713
|
+
attr_accessor :product_count_stats
|
1714
|
+
|
1715
|
+
# Output only. The number of products in different groups that this branch has.
|
1716
|
+
# The key is a group representing a set of products, and the value is the number
|
1717
|
+
# of products in that group. Note: keys in this map may change over time.
|
1718
|
+
# Possible keys: * "primary-in-stock", products have Product.Type.PRIMARY type
|
1719
|
+
# and Product.Availability.IN_STOCK availability. * "primary-out-of-stock",
|
1720
|
+
# products have Product.Type.PRIMARY type and Product.Availability.OUT_OF_STOCK
|
1721
|
+
# availability. * "primary-preorder", products have Product.Type.PRIMARY type
|
1722
|
+
# and Product.Availability.PREORDER availability. * "primary-backorder",
|
1723
|
+
# products have Product.Type.PRIMARY type and Product.Availability.BACKORDER
|
1724
|
+
# availability. * "variant-in-stock", products have Product.Type.VARIANT type
|
1725
|
+
# and Product.Availability.IN_STOCK availability. * "variant-out-of-stock",
|
1726
|
+
# products have Product.Type.VARIANT type and Product.Availability.OUT_OF_STOCK
|
1727
|
+
# availability. * "variant-preorder", products have Product.Type.VARIANT type
|
1728
|
+
# and Product.Availability.PREORDER availability. * "variant-backorder",
|
1729
|
+
# products have Product.Type.VARIANT type and Product.Availability.BACKORDER
|
1730
|
+
# availability. * "price-discounted", products have [Product.price_info.price] <
|
1731
|
+
# [Product.price_info.original_price]. This field is not populated in BranchView.
|
1732
|
+
# BASIC view.
|
1733
|
+
# Corresponds to the JSON property `productCounts`
|
1734
|
+
# @return [Hash<String,Fixnum>]
|
1735
|
+
attr_accessor :product_counts
|
1736
|
+
|
1737
|
+
# Output only. The quality metrics measured among products of this branch. See
|
1738
|
+
# QualityMetric.requirement_key for supported metrics. Metrics could be missing
|
1739
|
+
# if failed to retrieve. This field is not populated in BranchView.BASIC view.
|
1740
|
+
# Corresponds to the JSON property `qualityMetrics`
|
1741
|
+
# @return [Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaBranchQualityMetric>]
|
1742
|
+
attr_accessor :quality_metrics
|
1743
|
+
|
1744
|
+
def initialize(**args)
|
1745
|
+
update!(**args)
|
1746
|
+
end
|
1747
|
+
|
1748
|
+
# Update properties of this object
|
1749
|
+
def update!(**args)
|
1750
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
1751
|
+
@is_default = args[:is_default] if args.key?(:is_default)
|
1752
|
+
@last_product_import_time = args[:last_product_import_time] if args.key?(:last_product_import_time)
|
1753
|
+
@name = args[:name] if args.key?(:name)
|
1754
|
+
@product_count_stats = args[:product_count_stats] if args.key?(:product_count_stats)
|
1755
|
+
@product_counts = args[:product_counts] if args.key?(:product_counts)
|
1756
|
+
@quality_metrics = args[:quality_metrics] if args.key?(:quality_metrics)
|
1757
|
+
end
|
1758
|
+
end
|
1759
|
+
|
1760
|
+
# A statistic about the number of products in a branch.
|
1761
|
+
class GoogleCloudRetailV2alphaBranchProductCountStatistic
|
1762
|
+
include Google::Apis::Core::Hashable
|
1763
|
+
|
1764
|
+
# The number of products in scope broken down into different groups. The key is
|
1765
|
+
# a group representing a set of products, and the value is the number of
|
1766
|
+
# products in that group. Note: keys in this map may change over time. Possible
|
1767
|
+
# keys: * "primary-in-stock", products have Product.Type.PRIMARY type and
|
1768
|
+
# Product.Availability.IN_STOCK availability. * "primary-out-of-stock", products
|
1769
|
+
# have Product.Type.PRIMARY type and Product.Availability.OUT_OF_STOCK
|
1770
|
+
# availability. * "primary-preorder", products have Product.Type.PRIMARY type
|
1771
|
+
# and Product.Availability.PREORDER availability. * "primary-backorder",
|
1772
|
+
# products have Product.Type.PRIMARY type and Product.Availability.BACKORDER
|
1773
|
+
# availability. * "variant-in-stock", products have Product.Type.VARIANT type
|
1774
|
+
# and Product.Availability.IN_STOCK availability. * "variant-out-of-stock",
|
1775
|
+
# products have Product.Type.VARIANT type and Product.Availability.OUT_OF_STOCK
|
1776
|
+
# availability. * "variant-preorder", products have Product.Type.VARIANT type
|
1777
|
+
# and Product.Availability.PREORDER availability. * "variant-backorder",
|
1778
|
+
# products have Product.Type.VARIANT type and Product.Availability.BACKORDER
|
1779
|
+
# availability. * "price-discounted", products have [Product.price_info.price] <
|
1780
|
+
# [Product.price_info.original_price].
|
1781
|
+
# Corresponds to the JSON property `counts`
|
1782
|
+
# @return [Hash<String,Fixnum>]
|
1783
|
+
attr_accessor :counts
|
1784
|
+
|
1785
|
+
# [ProductCountScope] of the [counts].
|
1786
|
+
# Corresponds to the JSON property `scope`
|
1787
|
+
# @return [String]
|
1788
|
+
attr_accessor :scope
|
1789
|
+
|
1790
|
+
def initialize(**args)
|
1791
|
+
update!(**args)
|
1792
|
+
end
|
1793
|
+
|
1794
|
+
# Update properties of this object
|
1795
|
+
def update!(**args)
|
1796
|
+
@counts = args[:counts] if args.key?(:counts)
|
1797
|
+
@scope = args[:scope] if args.key?(:scope)
|
1798
|
+
end
|
1799
|
+
end
|
1800
|
+
|
1801
|
+
# Metric measured on a group of Products against a certain quality requirement.
|
1802
|
+
# Contains the number of products that pass the check and the number of products
|
1803
|
+
# that don't.
|
1804
|
+
class GoogleCloudRetailV2alphaBranchQualityMetric
|
1805
|
+
include Google::Apis::Core::Hashable
|
1806
|
+
|
1807
|
+
# Number of products passing the quality requirement check. We only check
|
1808
|
+
# searchable products.
|
1809
|
+
# Corresponds to the JSON property `qualifiedProductCount`
|
1810
|
+
# @return [Fixnum]
|
1811
|
+
attr_accessor :qualified_product_count
|
1812
|
+
|
1813
|
+
# The key that represents a quality requirement rule. Supported keys: * "has-
|
1814
|
+
# valid-uri": product has a valid and accessible uri. * "available-expire-time-
|
1815
|
+
# conformance": Product.available_time is early than "now", and Product.
|
1816
|
+
# expire_time is greater than "now". * "has-searchable-attributes": product has
|
1817
|
+
# at least one attribute set to searchable. * "has-description": product has non-
|
1818
|
+
# empty description. * "has-at-least-bigram-title": Product title has at least
|
1819
|
+
# two words. A comprehensive title helps to improve search quality. * "variant-
|
1820
|
+
# has-image": the variant products has at least one image. You may ignore this
|
1821
|
+
# metric if all your products are at primary level. * "variant-has-price-info":
|
1822
|
+
# the variant products has price_info set. You may ignore this metric if all
|
1823
|
+
# your products are at primary level. * "has-publish-time": product has non-
|
1824
|
+
# empty publish_time.
|
1825
|
+
# Corresponds to the JSON property `requirementKey`
|
1826
|
+
# @return [String]
|
1827
|
+
attr_accessor :requirement_key
|
1828
|
+
|
1829
|
+
# Value from 0 to 100 representing the suggested percentage of products that
|
1830
|
+
# meet the quality requirements to get good search and recommendation
|
1831
|
+
# performance. 100 * (qualified_product_count) / (qualified_product_count +
|
1832
|
+
# unqualified_product_count) should be greater or equal to this suggestion.
|
1833
|
+
# Corresponds to the JSON property `suggestedQualityPercentThreshold`
|
1834
|
+
# @return [Float]
|
1835
|
+
attr_accessor :suggested_quality_percent_threshold
|
1836
|
+
|
1837
|
+
# Number of products failing the quality requirement check. We only check
|
1838
|
+
# searchable products.
|
1839
|
+
# Corresponds to the JSON property `unqualifiedProductCount`
|
1840
|
+
# @return [Fixnum]
|
1841
|
+
attr_accessor :unqualified_product_count
|
1842
|
+
|
1843
|
+
# A list of a maximum of 100 sample products that do not qualify for this
|
1844
|
+
# requirement. This field is only populated in the response to BranchService.
|
1845
|
+
# GetBranch API, and is always empty for BranchService.ListBranches. Only the
|
1846
|
+
# following fields are set in the Product. * Product.name * Product.id * Product.
|
1847
|
+
# title
|
1848
|
+
# Corresponds to the JSON property `unqualifiedSampleProducts`
|
1849
|
+
# @return [Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProduct>]
|
1850
|
+
attr_accessor :unqualified_sample_products
|
1851
|
+
|
1852
|
+
def initialize(**args)
|
1853
|
+
update!(**args)
|
1854
|
+
end
|
1855
|
+
|
1856
|
+
# Update properties of this object
|
1857
|
+
def update!(**args)
|
1858
|
+
@qualified_product_count = args[:qualified_product_count] if args.key?(:qualified_product_count)
|
1859
|
+
@requirement_key = args[:requirement_key] if args.key?(:requirement_key)
|
1860
|
+
@suggested_quality_percent_threshold = args[:suggested_quality_percent_threshold] if args.key?(:suggested_quality_percent_threshold)
|
1861
|
+
@unqualified_product_count = args[:unqualified_product_count] if args.key?(:unqualified_product_count)
|
1862
|
+
@unqualified_sample_products = args[:unqualified_sample_products] if args.key?(:unqualified_sample_products)
|
1863
|
+
end
|
1864
|
+
end
|
1865
|
+
|
1681
1866
|
# The catalog configuration.
|
1682
1867
|
class GoogleCloudRetailV2alphaCatalog
|
1683
1868
|
include Google::Apis::Core::Hashable
|
@@ -3412,6 +3597,25 @@ module Google
|
|
3412
3597
|
end
|
3413
3598
|
end
|
3414
3599
|
|
3600
|
+
# Response for BranchService.ListBranches method.
|
3601
|
+
class GoogleCloudRetailV2alphaListBranchesResponse
|
3602
|
+
include Google::Apis::Core::Hashable
|
3603
|
+
|
3604
|
+
# The Branches.
|
3605
|
+
# Corresponds to the JSON property `branches`
|
3606
|
+
# @return [Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaBranch>]
|
3607
|
+
attr_accessor :branches
|
3608
|
+
|
3609
|
+
def initialize(**args)
|
3610
|
+
update!(**args)
|
3611
|
+
end
|
3612
|
+
|
3613
|
+
# Update properties of this object
|
3614
|
+
def update!(**args)
|
3615
|
+
@branches = args[:branches] if args.key?(:branches)
|
3616
|
+
end
|
3617
|
+
end
|
3618
|
+
|
3415
3619
|
# Response for CatalogService.ListCatalogs method.
|
3416
3620
|
class GoogleCloudRetailV2alphaListCatalogsResponse
|
3417
3621
|
include Google::Apis::Core::Hashable
|
@@ -7537,12 +7741,13 @@ module Google
|
|
7537
7741
|
attr_accessor :event_time
|
7538
7742
|
|
7539
7743
|
# Required. User event type. Allowed values are: * `add-to-cart`: Products being
|
7540
|
-
# added to cart. * `
|
7541
|
-
#
|
7542
|
-
# view`:
|
7543
|
-
# * `promotion-
|
7544
|
-
#
|
7545
|
-
#
|
7744
|
+
# added to cart. * `remove-from-cart`: Products being removed from cart. * `
|
7745
|
+
# category-page-view`: Special pages such as sale or promotion pages viewed. * `
|
7746
|
+
# detail-page-view`: Products detail page viewed. * `home-page-view`: Homepage
|
7747
|
+
# viewed. * `promotion-offered`: Promotion is offered to a user. * `promotion-
|
7748
|
+
# not-offered`: Promotion is not offered to a user. * `purchase-complete`: User
|
7749
|
+
# finishing a purchase. * `search`: Product search. * `shopping-cart-page-view`:
|
7750
|
+
# User viewing a shopping cart.
|
7546
7751
|
# Corresponds to the JSON property `eventType`
|
7547
7752
|
# @return [String]
|
7548
7753
|
attr_accessor :event_type
|
@@ -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.102.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.15.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20240509"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -382,6 +382,24 @@ module Google
|
|
382
382
|
include Google::Apis::Core::JsonObjectSupport
|
383
383
|
end
|
384
384
|
|
385
|
+
class GoogleCloudRetailV2alphaBranch
|
386
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
387
|
+
|
388
|
+
include Google::Apis::Core::JsonObjectSupport
|
389
|
+
end
|
390
|
+
|
391
|
+
class GoogleCloudRetailV2alphaBranchProductCountStatistic
|
392
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
393
|
+
|
394
|
+
include Google::Apis::Core::JsonObjectSupport
|
395
|
+
end
|
396
|
+
|
397
|
+
class GoogleCloudRetailV2alphaBranchQualityMetric
|
398
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
399
|
+
|
400
|
+
include Google::Apis::Core::JsonObjectSupport
|
401
|
+
end
|
402
|
+
|
385
403
|
class GoogleCloudRetailV2alphaCatalog
|
386
404
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
387
405
|
|
@@ -664,6 +682,12 @@ module Google
|
|
664
682
|
include Google::Apis::Core::JsonObjectSupport
|
665
683
|
end
|
666
684
|
|
685
|
+
class GoogleCloudRetailV2alphaListBranchesResponse
|
686
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
687
|
+
|
688
|
+
include Google::Apis::Core::JsonObjectSupport
|
689
|
+
end
|
690
|
+
|
667
691
|
class GoogleCloudRetailV2alphaListCatalogsResponse
|
668
692
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
669
693
|
|
@@ -2033,6 +2057,41 @@ module Google
|
|
2033
2057
|
end
|
2034
2058
|
end
|
2035
2059
|
|
2060
|
+
class GoogleCloudRetailV2alphaBranch
|
2061
|
+
# @private
|
2062
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2063
|
+
property :display_name, as: 'displayName'
|
2064
|
+
property :is_default, as: 'isDefault'
|
2065
|
+
property :last_product_import_time, as: 'lastProductImportTime'
|
2066
|
+
property :name, as: 'name'
|
2067
|
+
collection :product_count_stats, as: 'productCountStats', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaBranchProductCountStatistic, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaBranchProductCountStatistic::Representation
|
2068
|
+
|
2069
|
+
hash :product_counts, as: 'productCounts'
|
2070
|
+
collection :quality_metrics, as: 'qualityMetrics', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaBranchQualityMetric, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaBranchQualityMetric::Representation
|
2071
|
+
|
2072
|
+
end
|
2073
|
+
end
|
2074
|
+
|
2075
|
+
class GoogleCloudRetailV2alphaBranchProductCountStatistic
|
2076
|
+
# @private
|
2077
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2078
|
+
hash :counts, as: 'counts'
|
2079
|
+
property :scope, as: 'scope'
|
2080
|
+
end
|
2081
|
+
end
|
2082
|
+
|
2083
|
+
class GoogleCloudRetailV2alphaBranchQualityMetric
|
2084
|
+
# @private
|
2085
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2086
|
+
property :qualified_product_count, as: 'qualifiedProductCount'
|
2087
|
+
property :requirement_key, as: 'requirementKey'
|
2088
|
+
property :suggested_quality_percent_threshold, as: 'suggestedQualityPercentThreshold'
|
2089
|
+
property :unqualified_product_count, as: 'unqualifiedProductCount'
|
2090
|
+
collection :unqualified_sample_products, as: 'unqualifiedSampleProducts', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProduct, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProduct::Representation
|
2091
|
+
|
2092
|
+
end
|
2093
|
+
end
|
2094
|
+
|
2036
2095
|
class GoogleCloudRetailV2alphaCatalog
|
2037
2096
|
# @private
|
2038
2097
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2496,6 +2555,14 @@ module Google
|
|
2496
2555
|
end
|
2497
2556
|
end
|
2498
2557
|
|
2558
|
+
class GoogleCloudRetailV2alphaListBranchesResponse
|
2559
|
+
# @private
|
2560
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2561
|
+
collection :branches, as: 'branches', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaBranch, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaBranch::Representation
|
2562
|
+
|
2563
|
+
end
|
2564
|
+
end
|
2565
|
+
|
2499
2566
|
class GoogleCloudRetailV2alphaListCatalogsResponse
|
2500
2567
|
# @private
|
2501
2568
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -867,6 +867,79 @@ module Google
|
|
867
867
|
execute_or_queue_command(command, &block)
|
868
868
|
end
|
869
869
|
|
870
|
+
# Retrieves a Branch.
|
871
|
+
# @param [String] name
|
872
|
+
# Required. The name of the branch to retrieve. Format: `projects/*/locations/
|
873
|
+
# global/catalogs/default_catalog/branches/some_branch_id`. "default_branch" can
|
874
|
+
# be used as a special branch_id, it returns the default branch that has been
|
875
|
+
# set for the catalog.
|
876
|
+
# @param [String] view
|
877
|
+
# The view to apply to the returned Branch. Defaults to [Branch.BranchView.BASIC]
|
878
|
+
# if unspecified. See documentation of fields of Branch to find what fields are
|
879
|
+
# excluded from BASIC view.
|
880
|
+
# @param [String] fields
|
881
|
+
# Selector specifying which fields to include in a partial response.
|
882
|
+
# @param [String] quota_user
|
883
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
884
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
885
|
+
# @param [Google::Apis::RequestOptions] options
|
886
|
+
# Request-specific options
|
887
|
+
#
|
888
|
+
# @yield [result, err] Result & error if block supplied
|
889
|
+
# @yieldparam result [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaBranch] parsed result object
|
890
|
+
# @yieldparam err [StandardError] error object if request failed
|
891
|
+
#
|
892
|
+
# @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaBranch]
|
893
|
+
#
|
894
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
895
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
896
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
897
|
+
def get_project_location_catalog_branch(name, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
898
|
+
command = make_simple_command(:get, 'v2alpha/{+name}', options)
|
899
|
+
command.response_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaBranch::Representation
|
900
|
+
command.response_class = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaBranch
|
901
|
+
command.params['name'] = name unless name.nil?
|
902
|
+
command.query['view'] = view unless view.nil?
|
903
|
+
command.query['fields'] = fields unless fields.nil?
|
904
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
905
|
+
execute_or_queue_command(command, &block)
|
906
|
+
end
|
907
|
+
|
908
|
+
# Lists all Branchs under the specified parent Catalog.
|
909
|
+
# @param [String] parent
|
910
|
+
# Required. The parent catalog resource name.
|
911
|
+
# @param [String] view
|
912
|
+
# The view to apply to the returned Branch. Defaults to [Branch.BranchView.BASIC]
|
913
|
+
# if unspecified. See documentation of fields of Branch to find what fields are
|
914
|
+
# excluded from BASIC view.
|
915
|
+
# @param [String] fields
|
916
|
+
# Selector specifying which fields to include in a partial response.
|
917
|
+
# @param [String] quota_user
|
918
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
919
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
920
|
+
# @param [Google::Apis::RequestOptions] options
|
921
|
+
# Request-specific options
|
922
|
+
#
|
923
|
+
# @yield [result, err] Result & error if block supplied
|
924
|
+
# @yieldparam result [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaListBranchesResponse] parsed result object
|
925
|
+
# @yieldparam err [StandardError] error object if request failed
|
926
|
+
#
|
927
|
+
# @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaListBranchesResponse]
|
928
|
+
#
|
929
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
930
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
931
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
932
|
+
def list_project_location_catalog_branches(parent, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
933
|
+
command = make_simple_command(:get, 'v2alpha/{+parent}/branches', options)
|
934
|
+
command.response_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaListBranchesResponse::Representation
|
935
|
+
command.response_class = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaListBranchesResponse
|
936
|
+
command.params['parent'] = parent unless parent.nil?
|
937
|
+
command.query['view'] = view unless view.nil?
|
938
|
+
command.query['fields'] = fields unless fields.nil?
|
939
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
940
|
+
execute_or_queue_command(command, &block)
|
941
|
+
end
|
942
|
+
|
870
943
|
# Gets the latest state of a long-running operation. Clients can use this method
|
871
944
|
# to poll the operation result at intervals as recommended by the API service.
|
872
945
|
# @param [String] name
|
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.102.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-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.15.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.15.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -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.102.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: []
|