google-apis-content_v2 0.12.0 → 0.16.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: b9432528fda852468212114a3c272894d5f81d5d8bbbd83e03b34c599ce88ed7
4
- data.tar.gz: 1b7d0c0a99954c47570da4c87f3f662a5fa64b6f411a5288d3ab9fff1ec74401
3
+ metadata.gz: 6798299d98ddde5bfb95f1076054db9e2240b2dcef5752215b2122984ebac4b1
4
+ data.tar.gz: 964a0e5e01dd30d0359e85fc4084b15cb23a23ac522446450ec1be85e7574035
5
5
  SHA512:
6
- metadata.gz: 24d59661bc3b23e984955acfb620660994debe5d23eef3c0d59c529f5fd4f51ec5dc7f28fa0b8ba2922623b928a581934930702bc3e5538f1cb96140273c9534
7
- data.tar.gz: f17ed6a913bc3dd632574c3cc3b1a6f91395b208c429569de5ba3b37f21b391042c7f70e0cf4a24348bcb78edcabad5789c425ab358eabfba918d7096528abbc
6
+ metadata.gz: 53ed3a21ed66abea1b39fa25505bff7e8f6c0aebafb65e0f4fbb201892234327c5b520814eb00bb819d0654a0065841a897d2d4ed99dcc4a1586901aefca7a91
7
+ data.tar.gz: d26794af8d9152e3aee044acc0bf5005a6872792fddad9ad23926ab0c4a4a6594e0c0f75f794260c7f4e802fa7549e2491164f1ec611278e148809761f5b53c1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-content_v2
2
2
 
3
+ ### v0.16.0 (2022-01-11)
4
+
5
+ * Regenerated from discovery document revision 20220105
6
+
7
+ ### v0.15.0 (2021-12-16)
8
+
9
+ * Unspecified changes
10
+
11
+ ### v0.14.0 (2021-10-20)
12
+
13
+ * Unspecified changes
14
+
15
+ ### v0.13.0 (2021-10-12)
16
+
17
+ * Regenerated from discovery document revision 20211007
18
+
3
19
  ### v0.12.0 (2021-09-15)
4
20
 
5
21
  * Regenerated from discovery document revision 20210911
data/OVERVIEW.md CHANGED
@@ -51,7 +51,7 @@ require "google/apis/content_v2"
51
51
  client = Google::Apis::ContentV2::ShoppingContentService.new
52
52
 
53
53
  # Authenticate calls
54
- client.authentication = # ... use the googleauth gem to create credentials
54
+ client.authorization = # ... use the googleauth gem to create credentials
55
55
  ```
56
56
 
57
57
  See the class reference docs for information on the methods you can call from a client.
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
60
60
 
61
61
  More detailed descriptions of the Google simple REST clients are available in two documents.
62
62
 
63
- * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
- * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
63
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
+ * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
65
65
 
66
66
  (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Content service in particular.)
67
67
 
@@ -1505,6 +1505,52 @@ module Google
1505
1505
  end
1506
1506
  end
1507
1507
 
1508
+ #
1509
+ class Address
1510
+ include Google::Apis::Core::Hashable
1511
+
1512
+ # Required. Top-level administrative subdivision of the country. For example, a
1513
+ # state like California ("CA") or a province like Quebec ("QC").
1514
+ # Corresponds to the JSON property `administrativeArea`
1515
+ # @return [String]
1516
+ attr_accessor :administrative_area
1517
+
1518
+ # Required. City, town or commune. May also include dependent localities or
1519
+ # sublocalities (e.g. neighborhoods or suburbs).
1520
+ # Corresponds to the JSON property `city`
1521
+ # @return [String]
1522
+ attr_accessor :city
1523
+
1524
+ # Required. [CLDR country code](http://www.unicode.org/repos/cldr/tags/latest/
1525
+ # common/main/en.xml)(e.g. "US").
1526
+ # Corresponds to the JSON property `country`
1527
+ # @return [String]
1528
+ attr_accessor :country
1529
+
1530
+ # Required. Postal code or ZIP (e.g. "94043"). Required.
1531
+ # Corresponds to the JSON property `postalCode`
1532
+ # @return [String]
1533
+ attr_accessor :postal_code
1534
+
1535
+ # Street-level part of the address.
1536
+ # Corresponds to the JSON property `streetAddress`
1537
+ # @return [String]
1538
+ attr_accessor :street_address
1539
+
1540
+ def initialize(**args)
1541
+ update!(**args)
1542
+ end
1543
+
1544
+ # Update properties of this object
1545
+ def update!(**args)
1546
+ @administrative_area = args[:administrative_area] if args.key?(:administrative_area)
1547
+ @city = args[:city] if args.key?(:city)
1548
+ @country = args[:country] if args.key?(:country)
1549
+ @postal_code = args[:postal_code] if args.key?(:postal_code)
1550
+ @street_address = args[:street_address] if args.key?(:street_address)
1551
+ end
1552
+ end
1553
+
1508
1554
  #
1509
1555
  class Amount
1510
1556
  include Google::Apis::Core::Hashable
@@ -8691,12 +8737,27 @@ module Google
8691
8737
  class PosStore
8692
8738
  include Google::Apis::Core::Hashable
8693
8739
 
8740
+ # The business type of the store.
8741
+ # Corresponds to the JSON property `gcidCategory`
8742
+ # @return [Array<String>]
8743
+ attr_accessor :gcid_category
8744
+
8694
8745
  # Identifies what kind of resource this is. Value: the fixed string "`content#
8695
8746
  # posStore`"
8696
8747
  # Corresponds to the JSON property `kind`
8697
8748
  # @return [String]
8698
8749
  attr_accessor :kind
8699
8750
 
8751
+ # The store phone number.
8752
+ # Corresponds to the JSON property `phoneNumber`
8753
+ # @return [String]
8754
+ attr_accessor :phone_number
8755
+
8756
+ # The Google Place Id of the store location.
8757
+ # Corresponds to the JSON property `placeId`
8758
+ # @return [String]
8759
+ attr_accessor :place_id
8760
+
8700
8761
  # Required. The street address of the store.
8701
8762
  # Corresponds to the JSON property `storeAddress`
8702
8763
  # @return [String]
@@ -8707,15 +8768,30 @@ module Google
8707
8768
  # @return [String]
8708
8769
  attr_accessor :store_code
8709
8770
 
8771
+ # The merchant or store name.
8772
+ # Corresponds to the JSON property `storeName`
8773
+ # @return [String]
8774
+ attr_accessor :store_name
8775
+
8776
+ # The website url for the store or merchant.
8777
+ # Corresponds to the JSON property `websiteUrl`
8778
+ # @return [String]
8779
+ attr_accessor :website_url
8780
+
8710
8781
  def initialize(**args)
8711
8782
  update!(**args)
8712
8783
  end
8713
8784
 
8714
8785
  # Update properties of this object
8715
8786
  def update!(**args)
8787
+ @gcid_category = args[:gcid_category] if args.key?(:gcid_category)
8716
8788
  @kind = args[:kind] if args.key?(:kind)
8789
+ @phone_number = args[:phone_number] if args.key?(:phone_number)
8790
+ @place_id = args[:place_id] if args.key?(:place_id)
8717
8791
  @store_address = args[:store_address] if args.key?(:store_address)
8718
8792
  @store_code = args[:store_code] if args.key?(:store_code)
8793
+ @store_name = args[:store_name] if args.key?(:store_name)
8794
+ @website_url = args[:website_url] if args.key?(:website_url)
8719
8795
  end
8720
8796
  end
8721
8797
 
@@ -10654,6 +10730,11 @@ module Google
10654
10730
  # @return [Array<Google::Apis::ContentV2::Service>]
10655
10731
  attr_accessor :services
10656
10732
 
10733
+ # Optional. A list of warehouses which can be referred to in `services`.
10734
+ # Corresponds to the JSON property `warehouses`
10735
+ # @return [Array<Google::Apis::ContentV2::Warehouse>]
10736
+ attr_accessor :warehouses
10737
+
10657
10738
  def initialize(**args)
10658
10739
  update!(**args)
10659
10740
  end
@@ -10663,6 +10744,7 @@ module Google
10663
10744
  @account_id = args[:account_id] if args.key?(:account_id)
10664
10745
  @postal_code_groups = args[:postal_code_groups] if args.key?(:postal_code_groups)
10665
10746
  @services = args[:services] if args.key?(:services)
10747
+ @warehouses = args[:warehouses] if args.key?(:warehouses)
10666
10748
  end
10667
10749
  end
10668
10750
 
@@ -11525,6 +11607,54 @@ module Google
11525
11607
  end
11526
11608
  end
11527
11609
 
11610
+ # A fulfillment warehouse, which stores and handles inventory.
11611
+ class Warehouse
11612
+ include Google::Apis::Core::Hashable
11613
+
11614
+ # Business days of the warehouse. If not set, will be Monday to Friday by
11615
+ # default.
11616
+ # Corresponds to the JSON property `businessDayConfig`
11617
+ # @return [Google::Apis::ContentV2::BusinessDayConfig]
11618
+ attr_accessor :business_day_config
11619
+
11620
+ # Required. The latest time of day that an order can be accepted and begin
11621
+ # processing. Later orders will be processed in the next day. The time is based
11622
+ # on the warehouse postal code.
11623
+ # Corresponds to the JSON property `cutoffTime`
11624
+ # @return [Google::Apis::ContentV2::WarehouseCutoffTime]
11625
+ attr_accessor :cutoff_time
11626
+
11627
+ # Required. The number of days it takes for this warehouse to pack up and ship
11628
+ # an item. This is on the warehouse level, but can be overridden on the offer
11629
+ # level based on the attributes of an item.
11630
+ # Corresponds to the JSON property `handlingDays`
11631
+ # @return [Fixnum]
11632
+ attr_accessor :handling_days
11633
+
11634
+ # Required. The name of the warehouse. Must be unique within account.
11635
+ # Corresponds to the JSON property `name`
11636
+ # @return [String]
11637
+ attr_accessor :name
11638
+
11639
+ # Required. Shipping address of the warehouse.
11640
+ # Corresponds to the JSON property `shippingAddress`
11641
+ # @return [Google::Apis::ContentV2::Address]
11642
+ attr_accessor :shipping_address
11643
+
11644
+ def initialize(**args)
11645
+ update!(**args)
11646
+ end
11647
+
11648
+ # Update properties of this object
11649
+ def update!(**args)
11650
+ @business_day_config = args[:business_day_config] if args.key?(:business_day_config)
11651
+ @cutoff_time = args[:cutoff_time] if args.key?(:cutoff_time)
11652
+ @handling_days = args[:handling_days] if args.key?(:handling_days)
11653
+ @name = args[:name] if args.key?(:name)
11654
+ @shipping_address = args[:shipping_address] if args.key?(:shipping_address)
11655
+ end
11656
+ end
11657
+
11528
11658
  #
11529
11659
  class WarehouseBasedDeliveryTime
11530
11660
  include Google::Apis::Core::Hashable
@@ -11543,23 +11673,23 @@ module Google
11543
11673
  # @return [String]
11544
11674
  attr_accessor :carrier_service
11545
11675
 
11546
- # Required. Shipping origin's state.
11676
+ # Shipping origin's state.
11547
11677
  # Corresponds to the JSON property `originAdministrativeArea`
11548
11678
  # @return [String]
11549
11679
  attr_accessor :origin_administrative_area
11550
11680
 
11551
- # Required. Shipping origin's city.
11681
+ # Shipping origin's city.
11552
11682
  # Corresponds to the JSON property `originCity`
11553
11683
  # @return [String]
11554
11684
  attr_accessor :origin_city
11555
11685
 
11556
- # Required. Shipping origin's country represented as a [CLDR territory code](
11557
- # http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml).
11686
+ # Shipping origin's country represented as a [CLDR territory code](http://www.
11687
+ # unicode.org/repos/cldr/tags/latest/common/main/en.xml).
11558
11688
  # Corresponds to the JSON property `originCountry`
11559
11689
  # @return [String]
11560
11690
  attr_accessor :origin_country
11561
11691
 
11562
- # Required. Shipping origin.
11692
+ # Shipping origin.
11563
11693
  # Corresponds to the JSON property `originPostalCode`
11564
11694
  # @return [String]
11565
11695
  attr_accessor :origin_postal_code
@@ -11569,6 +11699,13 @@ module Google
11569
11699
  # @return [String]
11570
11700
  attr_accessor :origin_street_address
11571
11701
 
11702
+ # The name of the warehouse. Warehouse name need to be matched with name. If
11703
+ # warehouseName is set, the below fields will be ignored. The warehouse info
11704
+ # will be read from warehouse.
11705
+ # Corresponds to the JSON property `warehouseName`
11706
+ # @return [String]
11707
+ attr_accessor :warehouse_name
11708
+
11572
11709
  def initialize(**args)
11573
11710
  update!(**args)
11574
11711
  end
@@ -11582,6 +11719,36 @@ module Google
11582
11719
  @origin_country = args[:origin_country] if args.key?(:origin_country)
11583
11720
  @origin_postal_code = args[:origin_postal_code] if args.key?(:origin_postal_code)
11584
11721
  @origin_street_address = args[:origin_street_address] if args.key?(:origin_street_address)
11722
+ @warehouse_name = args[:warehouse_name] if args.key?(:warehouse_name)
11723
+ end
11724
+ end
11725
+
11726
+ #
11727
+ class WarehouseCutoffTime
11728
+ include Google::Apis::Core::Hashable
11729
+
11730
+ # Required. Hour (24-hour clock) of the cutoff time until which an order has to
11731
+ # be placed to be processed in the same day by the warehouse. Hour is based on
11732
+ # the timezone of warehouse.
11733
+ # Corresponds to the JSON property `hour`
11734
+ # @return [Fixnum]
11735
+ attr_accessor :hour
11736
+
11737
+ # Required. Minute of the cutoff time until which an order has to be placed to
11738
+ # be processed in the same day by the warehouse. Minute is based on the timezone
11739
+ # of warehouse.
11740
+ # Corresponds to the JSON property `minute`
11741
+ # @return [Fixnum]
11742
+ attr_accessor :minute
11743
+
11744
+ def initialize(**args)
11745
+ update!(**args)
11746
+ end
11747
+
11748
+ # Update properties of this object
11749
+ def update!(**args)
11750
+ @hour = args[:hour] if args.key?(:hour)
11751
+ @minute = args[:minute] if args.key?(:minute)
11585
11752
  end
11586
11753
  end
11587
11754
 
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ContentV2
18
18
  # Version of the google-apis-content_v2 gem
19
- GEM_VERSION = "0.12.0"
19
+ GEM_VERSION = "0.16.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210911"
25
+ REVISION = "20220105"
26
26
  end
27
27
  end
28
28
  end
@@ -250,6 +250,12 @@ module Google
250
250
  include Google::Apis::Core::JsonObjectSupport
251
251
  end
252
252
 
253
+ class Address
254
+ class Representation < Google::Apis::Core::JsonRepresentation; end
255
+
256
+ include Google::Apis::Core::JsonObjectSupport
257
+ end
258
+
253
259
  class Amount
254
260
  class Representation < Google::Apis::Core::JsonRepresentation; end
255
261
 
@@ -1636,12 +1642,24 @@ module Google
1636
1642
  include Google::Apis::Core::JsonObjectSupport
1637
1643
  end
1638
1644
 
1645
+ class Warehouse
1646
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1647
+
1648
+ include Google::Apis::Core::JsonObjectSupport
1649
+ end
1650
+
1639
1651
  class WarehouseBasedDeliveryTime
1640
1652
  class Representation < Google::Apis::Core::JsonRepresentation; end
1641
1653
 
1642
1654
  include Google::Apis::Core::JsonObjectSupport
1643
1655
  end
1644
1656
 
1657
+ class WarehouseCutoffTime
1658
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1659
+
1660
+ include Google::Apis::Core::JsonObjectSupport
1661
+ end
1662
+
1645
1663
  class Weight
1646
1664
  class Representation < Google::Apis::Core::JsonRepresentation; end
1647
1665
 
@@ -2059,6 +2077,17 @@ module Google
2059
2077
  end
2060
2078
  end
2061
2079
 
2080
+ class Address
2081
+ # @private
2082
+ class Representation < Google::Apis::Core::JsonRepresentation
2083
+ property :administrative_area, as: 'administrativeArea'
2084
+ property :city, as: 'city'
2085
+ property :country, as: 'country'
2086
+ property :postal_code, as: 'postalCode'
2087
+ property :street_address, as: 'streetAddress'
2088
+ end
2089
+ end
2090
+
2062
2091
  class Amount
2063
2092
  # @private
2064
2093
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -4005,9 +4034,14 @@ module Google
4005
4034
  class PosStore
4006
4035
  # @private
4007
4036
  class Representation < Google::Apis::Core::JsonRepresentation
4037
+ collection :gcid_category, as: 'gcidCategory'
4008
4038
  property :kind, as: 'kind'
4039
+ property :phone_number, as: 'phoneNumber'
4040
+ property :place_id, as: 'placeId'
4009
4041
  property :store_address, as: 'storeAddress'
4010
4042
  property :store_code, as: 'storeCode'
4043
+ property :store_name, as: 'storeName'
4044
+ property :website_url, as: 'websiteUrl'
4011
4045
  end
4012
4046
  end
4013
4047
 
@@ -4504,6 +4538,8 @@ module Google
4504
4538
 
4505
4539
  collection :services, as: 'services', class: Google::Apis::ContentV2::Service, decorator: Google::Apis::ContentV2::Service::Representation
4506
4540
 
4541
+ collection :warehouses, as: 'warehouses', class: Google::Apis::ContentV2::Warehouse, decorator: Google::Apis::ContentV2::Warehouse::Representation
4542
+
4507
4543
  end
4508
4544
  end
4509
4545
 
@@ -4763,6 +4799,20 @@ module Google
4763
4799
  end
4764
4800
  end
4765
4801
 
4802
+ class Warehouse
4803
+ # @private
4804
+ class Representation < Google::Apis::Core::JsonRepresentation
4805
+ property :business_day_config, as: 'businessDayConfig', class: Google::Apis::ContentV2::BusinessDayConfig, decorator: Google::Apis::ContentV2::BusinessDayConfig::Representation
4806
+
4807
+ property :cutoff_time, as: 'cutoffTime', class: Google::Apis::ContentV2::WarehouseCutoffTime, decorator: Google::Apis::ContentV2::WarehouseCutoffTime::Representation
4808
+
4809
+ property :handling_days, :numeric_string => true, as: 'handlingDays'
4810
+ property :name, as: 'name'
4811
+ property :shipping_address, as: 'shippingAddress', class: Google::Apis::ContentV2::Address, decorator: Google::Apis::ContentV2::Address::Representation
4812
+
4813
+ end
4814
+ end
4815
+
4766
4816
  class WarehouseBasedDeliveryTime
4767
4817
  # @private
4768
4818
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -4773,6 +4823,15 @@ module Google
4773
4823
  property :origin_country, as: 'originCountry'
4774
4824
  property :origin_postal_code, as: 'originPostalCode'
4775
4825
  property :origin_street_address, as: 'originStreetAddress'
4826
+ property :warehouse_name, as: 'warehouseName'
4827
+ end
4828
+ end
4829
+
4830
+ class WarehouseCutoffTime
4831
+ # @private
4832
+ class Representation < Google::Apis::Core::JsonRepresentation
4833
+ property :hour, as: 'hour'
4834
+ property :minute, as: 'minute'
4776
4835
  end
4777
4836
  end
4778
4837
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-content_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.16.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: 2021-09-20 00:00:00.000000000 Z
11
+ date: 2022-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -57,9 +57,9 @@ licenses:
57
57
  - Apache-2.0
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
- changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-content_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-content_v2/v0.12.0
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-content_v2
60
+ changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-content_v2/CHANGELOG.md
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-content_v2/v0.16.0
62
+ source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-content_v2
63
63
  post_install_message:
64
64
  rdoc_options: []
65
65
  require_paths:
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.2.17
78
+ rubygems_version: 3.3.5
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Content API for Shopping V2