google-apis-manufacturers_v1 0.13.0 → 0.15.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: 88ddcf87b1e3c010545d4b406c17bb87ce3f61bfd1da2a161c2cc0925a6d29ce
4
- data.tar.gz: 2b68fb8b8db2738ad60d605c60522a82ee698764a555f4ec23d735a3a660ed83
3
+ metadata.gz: 1d1a4357fcb71b451f797c58cf0c40835184e63fb9c56d4079d48dc984d64f88
4
+ data.tar.gz: 56e94a5112a564d061e66e46424b9da926574748becea0fb8ea150a3b7a2fea3
5
5
  SHA512:
6
- metadata.gz: c726d75b3cc8b322f9a9a64902bd7f4b8751aa7d983672b88bd85fea603e518f4cd1ca4ad01cc3f7c97347109d6a9b10e03f30a70cc33ca0376abba61709b108
7
- data.tar.gz: acdcaa28e6ed6454e9844b43ad9e1d95d3611a35498b9a33e36a1b37b1e91c771125e15774af2711166452e9c39d932606b8e0da519009179f5edd93fb58f4ca
6
+ metadata.gz: 045b120a96dfd9b6c636d105e784fe59d457eff8a58b08ed88c90718e96eb8039db32fcf14cb1e96c5ceff4844de4579151b61b49c427b5966604f8a8bdff6e2
7
+ data.tar.gz: 6f62fe47c0a3435a9febea9d24fce0d5dc4ae3579c3113a7c267e8d50dfc0959ee03029e3ed4987e54103135466d674926567a7ff54974446f42591689355f54
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-manufacturers_v1
2
2
 
3
+ ### v0.15.0 (2022-09-14)
4
+
5
+ * Regenerated from discovery document revision 20220913
6
+
7
+ ### v0.14.0 (2022-08-10)
8
+
9
+ * Regenerated from discovery document revision 20220809
10
+ * Regenerated using generator version 0.9.0
11
+
3
12
  ### v0.13.0 (2022-07-03)
4
13
 
5
14
  * Regenerated using generator version 0.8.0
@@ -106,6 +106,12 @@ module Google
106
106
  # @return [String]
107
107
  attr_accessor :gender
108
108
 
109
+ # Grocery Attributes. See more at https://support.google.com/manufacturers/
110
+ # answer/12098458#grocery.
111
+ # Corresponds to the JSON property `grocery`
112
+ # @return [Google::Apis::ManufacturersV1::Grocery]
113
+ attr_accessor :grocery
114
+
109
115
  # The Global Trade Item Number (GTIN) of the product. For more information, see
110
116
  # https://support.google.com/manufacturers/answer/6124116#gtin.
111
117
  # Corresponds to the JSON property `gtin`
@@ -142,6 +148,12 @@ module Google
142
148
  # @return [String]
143
149
  attr_accessor :mpn
144
150
 
151
+ # Nutrition Attributes. See more at https://support.google.com/manufacturers/
152
+ # answer/12098458#food-servings.
153
+ # Corresponds to the JSON property `nutrition`
154
+ # @return [Google::Apis::ManufacturersV1::Nutrition]
155
+ attr_accessor :nutrition
156
+
145
157
  # The pattern of the product. For more information, see https://support.google.
146
158
  # com/manufacturers/answer/6124116#pattern.
147
159
  # Corresponds to the JSON property `pattern`
@@ -269,12 +281,14 @@ module Google
269
281
  @flavor = args[:flavor] if args.key?(:flavor)
270
282
  @format = args[:format] if args.key?(:format)
271
283
  @gender = args[:gender] if args.key?(:gender)
284
+ @grocery = args[:grocery] if args.key?(:grocery)
272
285
  @gtin = args[:gtin] if args.key?(:gtin)
273
286
  @image_link = args[:image_link] if args.key?(:image_link)
274
287
  @included_destination = args[:included_destination] if args.key?(:included_destination)
275
288
  @item_group_id = args[:item_group_id] if args.key?(:item_group_id)
276
289
  @material = args[:material] if args.key?(:material)
277
290
  @mpn = args[:mpn] if args.key?(:mpn)
291
+ @nutrition = args[:nutrition] if args.key?(:nutrition)
278
292
  @pattern = args[:pattern] if args.key?(:pattern)
279
293
  @product_detail = args[:product_detail] if args.key?(:product_detail)
280
294
  @product_highlight = args[:product_highlight] if args.key?(:product_highlight)
@@ -421,6 +435,98 @@ module Google
421
435
  end
422
436
  end
423
437
 
438
+ # Combination of float amount and unit.
439
+ class FloatUnit
440
+ include Google::Apis::Core::Hashable
441
+
442
+ # amount.
443
+ # Corresponds to the JSON property `amount`
444
+ # @return [Float]
445
+ attr_accessor :amount
446
+
447
+ # unit.
448
+ # Corresponds to the JSON property `unit`
449
+ # @return [String]
450
+ attr_accessor :unit
451
+
452
+ def initialize(**args)
453
+ update!(**args)
454
+ end
455
+
456
+ # Update properties of this object
457
+ def update!(**args)
458
+ @amount = args[:amount] if args.key?(:amount)
459
+ @unit = args[:unit] if args.key?(:unit)
460
+ end
461
+ end
462
+
463
+ #
464
+ class Grocery
465
+ include Google::Apis::Core::Hashable
466
+
467
+ # Active ingredients.
468
+ # Corresponds to the JSON property `activeIngredients`
469
+ # @return [String]
470
+ attr_accessor :active_ingredients
471
+
472
+ # Alcohol by volume.
473
+ # Corresponds to the JSON property `alcoholByVolume`
474
+ # @return [Float]
475
+ attr_accessor :alcohol_by_volume
476
+
477
+ # Allergens.
478
+ # Corresponds to the JSON property `allergens`
479
+ # @return [String]
480
+ attr_accessor :allergens
481
+
482
+ # Derived nutrition claim.
483
+ # Corresponds to the JSON property `derivedNutritionClaim`
484
+ # @return [Array<String>]
485
+ attr_accessor :derived_nutrition_claim
486
+
487
+ # Directions.
488
+ # Corresponds to the JSON property `directions`
489
+ # @return [String]
490
+ attr_accessor :directions
491
+
492
+ # Indications.
493
+ # Corresponds to the JSON property `indications`
494
+ # @return [String]
495
+ attr_accessor :indications
496
+
497
+ # Ingredients.
498
+ # Corresponds to the JSON property `ingredients`
499
+ # @return [String]
500
+ attr_accessor :ingredients
501
+
502
+ # Nutrition claim.
503
+ # Corresponds to the JSON property `nutritionClaim`
504
+ # @return [Array<String>]
505
+ attr_accessor :nutrition_claim
506
+
507
+ # Storage instructions.
508
+ # Corresponds to the JSON property `storageInstructions`
509
+ # @return [String]
510
+ attr_accessor :storage_instructions
511
+
512
+ def initialize(**args)
513
+ update!(**args)
514
+ end
515
+
516
+ # Update properties of this object
517
+ def update!(**args)
518
+ @active_ingredients = args[:active_ingredients] if args.key?(:active_ingredients)
519
+ @alcohol_by_volume = args[:alcohol_by_volume] if args.key?(:alcohol_by_volume)
520
+ @allergens = args[:allergens] if args.key?(:allergens)
521
+ @derived_nutrition_claim = args[:derived_nutrition_claim] if args.key?(:derived_nutrition_claim)
522
+ @directions = args[:directions] if args.key?(:directions)
523
+ @indications = args[:indications] if args.key?(:indications)
524
+ @ingredients = args[:ingredients] if args.key?(:ingredients)
525
+ @nutrition_claim = args[:nutrition_claim] if args.key?(:nutrition_claim)
526
+ @storage_instructions = args[:storage_instructions] if args.key?(:storage_instructions)
527
+ end
528
+ end
529
+
424
530
  # An image.
425
531
  class Image
426
532
  include Google::Apis::Core::Hashable
@@ -542,6 +648,277 @@ module Google
542
648
  end
543
649
  end
544
650
 
651
+ #
652
+ class Nutrition
653
+ include Google::Apis::Core::Hashable
654
+
655
+ # Combination of float amount and unit.
656
+ # Corresponds to the JSON property `addedSugars`
657
+ # @return [Google::Apis::ManufacturersV1::FloatUnit]
658
+ attr_accessor :added_sugars
659
+
660
+ # Added sugars daily percentage.
661
+ # Corresponds to the JSON property `addedSugarsDailyPercentage`
662
+ # @return [Float]
663
+ attr_accessor :added_sugars_daily_percentage
664
+
665
+ # Combination of float amount and unit.
666
+ # Corresponds to the JSON property `calcium`
667
+ # @return [Google::Apis::ManufacturersV1::FloatUnit]
668
+ attr_accessor :calcium
669
+
670
+ # Calcium daily percentage.
671
+ # Corresponds to the JSON property `calciumDailyPercentage`
672
+ # @return [Float]
673
+ attr_accessor :calcium_daily_percentage
674
+
675
+ # Combination of float amount and unit.
676
+ # Corresponds to the JSON property `cholesterol`
677
+ # @return [Google::Apis::ManufacturersV1::FloatUnit]
678
+ attr_accessor :cholesterol
679
+
680
+ # Cholesterol daily percentage.
681
+ # Corresponds to the JSON property `cholesterolDailyPercentage`
682
+ # @return [Float]
683
+ attr_accessor :cholesterol_daily_percentage
684
+
685
+ # Combination of float amount and unit.
686
+ # Corresponds to the JSON property `dietaryFiber`
687
+ # @return [Google::Apis::ManufacturersV1::FloatUnit]
688
+ attr_accessor :dietary_fiber
689
+
690
+ # Dietary fiber daily percentage.
691
+ # Corresponds to the JSON property `dietaryFiberDailyPercentage`
692
+ # @return [Float]
693
+ attr_accessor :dietary_fiber_daily_percentage
694
+
695
+ # Combination of float amount and unit.
696
+ # Corresponds to the JSON property `energy`
697
+ # @return [Google::Apis::ManufacturersV1::FloatUnit]
698
+ attr_accessor :energy
699
+
700
+ # Combination of float amount and unit.
701
+ # Corresponds to the JSON property `energyFromFat`
702
+ # @return [Google::Apis::ManufacturersV1::FloatUnit]
703
+ attr_accessor :energy_from_fat
704
+
705
+ # Folate daily percentage.
706
+ # Corresponds to the JSON property `folateDailyPercentage`
707
+ # @return [Float]
708
+ attr_accessor :folate_daily_percentage
709
+
710
+ # Combination of float amount and unit.
711
+ # Corresponds to the JSON property `folateFolicAcid`
712
+ # @return [Google::Apis::ManufacturersV1::FloatUnit]
713
+ attr_accessor :folate_folic_acid
714
+
715
+ # Folate mcg DFE.
716
+ # Corresponds to the JSON property `folateMcgDfe`
717
+ # @return [Float]
718
+ attr_accessor :folate_mcg_dfe
719
+
720
+ # Combination of float amount and unit.
721
+ # Corresponds to the JSON property `iron`
722
+ # @return [Google::Apis::ManufacturersV1::FloatUnit]
723
+ attr_accessor :iron
724
+
725
+ # Iron daily percentage.
726
+ # Corresponds to the JSON property `ironDailyPercentage`
727
+ # @return [Float]
728
+ attr_accessor :iron_daily_percentage
729
+
730
+ # Combination of float amount and unit.
731
+ # Corresponds to the JSON property `monounsaturatedFat`
732
+ # @return [Google::Apis::ManufacturersV1::FloatUnit]
733
+ attr_accessor :monounsaturated_fat
734
+
735
+ # Nutrition fact measure.
736
+ # Corresponds to the JSON property `nutritionFactMeasure`
737
+ # @return [String]
738
+ attr_accessor :nutrition_fact_measure
739
+
740
+ # Combination of float amount and unit.
741
+ # Corresponds to the JSON property `polyols`
742
+ # @return [Google::Apis::ManufacturersV1::FloatUnit]
743
+ attr_accessor :polyols
744
+
745
+ # Combination of float amount and unit.
746
+ # Corresponds to the JSON property `polyunsaturatedFat`
747
+ # @return [Google::Apis::ManufacturersV1::FloatUnit]
748
+ attr_accessor :polyunsaturated_fat
749
+
750
+ # Combination of float amount and unit.
751
+ # Corresponds to the JSON property `potassium`
752
+ # @return [Google::Apis::ManufacturersV1::FloatUnit]
753
+ attr_accessor :potassium
754
+
755
+ # Potassium daily percentage.
756
+ # Corresponds to the JSON property `potassiumDailyPercentage`
757
+ # @return [Float]
758
+ attr_accessor :potassium_daily_percentage
759
+
760
+ # Prepared size description.
761
+ # Corresponds to the JSON property `preparedSizeDescription`
762
+ # @return [String]
763
+ attr_accessor :prepared_size_description
764
+
765
+ # Combination of float amount and unit.
766
+ # Corresponds to the JSON property `protein`
767
+ # @return [Google::Apis::ManufacturersV1::FloatUnit]
768
+ attr_accessor :protein
769
+
770
+ # Protein daily percentage.
771
+ # Corresponds to the JSON property `proteinDailyPercentage`
772
+ # @return [Float]
773
+ attr_accessor :protein_daily_percentage
774
+
775
+ # Combination of float amount and unit.
776
+ # Corresponds to the JSON property `saturatedFat`
777
+ # @return [Google::Apis::ManufacturersV1::FloatUnit]
778
+ attr_accessor :saturated_fat
779
+
780
+ # Saturated fat daily percentage.
781
+ # Corresponds to the JSON property `saturatedFatDailyPercentage`
782
+ # @return [Float]
783
+ attr_accessor :saturated_fat_daily_percentage
784
+
785
+ # Food Serving Size. Serving size description.
786
+ # Corresponds to the JSON property `servingSizeDescription`
787
+ # @return [String]
788
+ attr_accessor :serving_size_description
789
+
790
+ # Combination of float amount and unit.
791
+ # Corresponds to the JSON property `servingSizeMeasure`
792
+ # @return [Google::Apis::ManufacturersV1::FloatUnit]
793
+ attr_accessor :serving_size_measure
794
+
795
+ # Servings per container.
796
+ # Corresponds to the JSON property `servingsPerContainer`
797
+ # @return [String]
798
+ attr_accessor :servings_per_container
799
+
800
+ # Combination of float amount and unit.
801
+ # Corresponds to the JSON property `sodium`
802
+ # @return [Google::Apis::ManufacturersV1::FloatUnit]
803
+ attr_accessor :sodium
804
+
805
+ # Sodium daily percentage.
806
+ # Corresponds to the JSON property `sodiumDailyPercentage`
807
+ # @return [Float]
808
+ attr_accessor :sodium_daily_percentage
809
+
810
+ # Combination of float amount and unit.
811
+ # Corresponds to the JSON property `starch`
812
+ # @return [Google::Apis::ManufacturersV1::FloatUnit]
813
+ attr_accessor :starch
814
+
815
+ # Combination of float amount and unit.
816
+ # Corresponds to the JSON property `totalCarbohydrate`
817
+ # @return [Google::Apis::ManufacturersV1::FloatUnit]
818
+ attr_accessor :total_carbohydrate
819
+
820
+ # Total carbohydrate daily percentage.
821
+ # Corresponds to the JSON property `totalCarbohydrateDailyPercentage`
822
+ # @return [Float]
823
+ attr_accessor :total_carbohydrate_daily_percentage
824
+
825
+ # Combination of float amount and unit.
826
+ # Corresponds to the JSON property `totalFat`
827
+ # @return [Google::Apis::ManufacturersV1::FloatUnit]
828
+ attr_accessor :total_fat
829
+
830
+ # Total fat daily percentage.
831
+ # Corresponds to the JSON property `totalFatDailyPercentage`
832
+ # @return [Float]
833
+ attr_accessor :total_fat_daily_percentage
834
+
835
+ # Combination of float amount and unit.
836
+ # Corresponds to the JSON property `totalSugars`
837
+ # @return [Google::Apis::ManufacturersV1::FloatUnit]
838
+ attr_accessor :total_sugars
839
+
840
+ # Total sugars daily percentage.
841
+ # Corresponds to the JSON property `totalSugarsDailyPercentage`
842
+ # @return [Float]
843
+ attr_accessor :total_sugars_daily_percentage
844
+
845
+ # Combination of float amount and unit.
846
+ # Corresponds to the JSON property `transFat`
847
+ # @return [Google::Apis::ManufacturersV1::FloatUnit]
848
+ attr_accessor :trans_fat
849
+
850
+ # Trans fat daily percentage.
851
+ # Corresponds to the JSON property `transFatDailyPercentage`
852
+ # @return [Float]
853
+ attr_accessor :trans_fat_daily_percentage
854
+
855
+ # Combination of float amount and unit.
856
+ # Corresponds to the JSON property `vitaminD`
857
+ # @return [Google::Apis::ManufacturersV1::FloatUnit]
858
+ attr_accessor :vitamin_d
859
+
860
+ # Vitamin D daily percentage.
861
+ # Corresponds to the JSON property `vitaminDDailyPercentage`
862
+ # @return [Float]
863
+ attr_accessor :vitamin_d_daily_percentage
864
+
865
+ # Voluntary nutrition fact.
866
+ # Corresponds to the JSON property `voluntaryNutritionFact`
867
+ # @return [Array<Google::Apis::ManufacturersV1::VoluntaryNutritionFact>]
868
+ attr_accessor :voluntary_nutrition_fact
869
+
870
+ def initialize(**args)
871
+ update!(**args)
872
+ end
873
+
874
+ # Update properties of this object
875
+ def update!(**args)
876
+ @added_sugars = args[:added_sugars] if args.key?(:added_sugars)
877
+ @added_sugars_daily_percentage = args[:added_sugars_daily_percentage] if args.key?(:added_sugars_daily_percentage)
878
+ @calcium = args[:calcium] if args.key?(:calcium)
879
+ @calcium_daily_percentage = args[:calcium_daily_percentage] if args.key?(:calcium_daily_percentage)
880
+ @cholesterol = args[:cholesterol] if args.key?(:cholesterol)
881
+ @cholesterol_daily_percentage = args[:cholesterol_daily_percentage] if args.key?(:cholesterol_daily_percentage)
882
+ @dietary_fiber = args[:dietary_fiber] if args.key?(:dietary_fiber)
883
+ @dietary_fiber_daily_percentage = args[:dietary_fiber_daily_percentage] if args.key?(:dietary_fiber_daily_percentage)
884
+ @energy = args[:energy] if args.key?(:energy)
885
+ @energy_from_fat = args[:energy_from_fat] if args.key?(:energy_from_fat)
886
+ @folate_daily_percentage = args[:folate_daily_percentage] if args.key?(:folate_daily_percentage)
887
+ @folate_folic_acid = args[:folate_folic_acid] if args.key?(:folate_folic_acid)
888
+ @folate_mcg_dfe = args[:folate_mcg_dfe] if args.key?(:folate_mcg_dfe)
889
+ @iron = args[:iron] if args.key?(:iron)
890
+ @iron_daily_percentage = args[:iron_daily_percentage] if args.key?(:iron_daily_percentage)
891
+ @monounsaturated_fat = args[:monounsaturated_fat] if args.key?(:monounsaturated_fat)
892
+ @nutrition_fact_measure = args[:nutrition_fact_measure] if args.key?(:nutrition_fact_measure)
893
+ @polyols = args[:polyols] if args.key?(:polyols)
894
+ @polyunsaturated_fat = args[:polyunsaturated_fat] if args.key?(:polyunsaturated_fat)
895
+ @potassium = args[:potassium] if args.key?(:potassium)
896
+ @potassium_daily_percentage = args[:potassium_daily_percentage] if args.key?(:potassium_daily_percentage)
897
+ @prepared_size_description = args[:prepared_size_description] if args.key?(:prepared_size_description)
898
+ @protein = args[:protein] if args.key?(:protein)
899
+ @protein_daily_percentage = args[:protein_daily_percentage] if args.key?(:protein_daily_percentage)
900
+ @saturated_fat = args[:saturated_fat] if args.key?(:saturated_fat)
901
+ @saturated_fat_daily_percentage = args[:saturated_fat_daily_percentage] if args.key?(:saturated_fat_daily_percentage)
902
+ @serving_size_description = args[:serving_size_description] if args.key?(:serving_size_description)
903
+ @serving_size_measure = args[:serving_size_measure] if args.key?(:serving_size_measure)
904
+ @servings_per_container = args[:servings_per_container] if args.key?(:servings_per_container)
905
+ @sodium = args[:sodium] if args.key?(:sodium)
906
+ @sodium_daily_percentage = args[:sodium_daily_percentage] if args.key?(:sodium_daily_percentage)
907
+ @starch = args[:starch] if args.key?(:starch)
908
+ @total_carbohydrate = args[:total_carbohydrate] if args.key?(:total_carbohydrate)
909
+ @total_carbohydrate_daily_percentage = args[:total_carbohydrate_daily_percentage] if args.key?(:total_carbohydrate_daily_percentage)
910
+ @total_fat = args[:total_fat] if args.key?(:total_fat)
911
+ @total_fat_daily_percentage = args[:total_fat_daily_percentage] if args.key?(:total_fat_daily_percentage)
912
+ @total_sugars = args[:total_sugars] if args.key?(:total_sugars)
913
+ @total_sugars_daily_percentage = args[:total_sugars_daily_percentage] if args.key?(:total_sugars_daily_percentage)
914
+ @trans_fat = args[:trans_fat] if args.key?(:trans_fat)
915
+ @trans_fat_daily_percentage = args[:trans_fat_daily_percentage] if args.key?(:trans_fat_daily_percentage)
916
+ @vitamin_d = args[:vitamin_d] if args.key?(:vitamin_d)
917
+ @vitamin_d_daily_percentage = args[:vitamin_d_daily_percentage] if args.key?(:vitamin_d_daily_percentage)
918
+ @voluntary_nutrition_fact = args[:voluntary_nutrition_fact] if args.key?(:voluntary_nutrition_fact)
919
+ end
920
+ end
921
+
545
922
  # A price.
546
923
  class Price
547
924
  include Google::Apis::Core::Hashable
@@ -668,6 +1045,37 @@ module Google
668
1045
  @section_name = args[:section_name] if args.key?(:section_name)
669
1046
  end
670
1047
  end
1048
+
1049
+ # Voluntary Nutrition Facts.
1050
+ class VoluntaryNutritionFact
1051
+ include Google::Apis::Core::Hashable
1052
+
1053
+ # Daily percentage.
1054
+ # Corresponds to the JSON property `dailyPercentage`
1055
+ # @return [Float]
1056
+ attr_accessor :daily_percentage
1057
+
1058
+ # Name.
1059
+ # Corresponds to the JSON property `name`
1060
+ # @return [String]
1061
+ attr_accessor :name
1062
+
1063
+ # Combination of float amount and unit.
1064
+ # Corresponds to the JSON property `value`
1065
+ # @return [Google::Apis::ManufacturersV1::FloatUnit]
1066
+ attr_accessor :value
1067
+
1068
+ def initialize(**args)
1069
+ update!(**args)
1070
+ end
1071
+
1072
+ # Update properties of this object
1073
+ def update!(**args)
1074
+ @daily_percentage = args[:daily_percentage] if args.key?(:daily_percentage)
1075
+ @name = args[:name] if args.key?(:name)
1076
+ @value = args[:value] if args.key?(:value)
1077
+ end
1078
+ end
671
1079
  end
672
1080
  end
673
1081
  end
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ManufacturersV1
18
18
  # Version of the google-apis-manufacturers_v1 gem
19
- GEM_VERSION = "0.13.0"
19
+ GEM_VERSION = "0.15.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.8.0"
22
+ GENERATOR_VERSION = "0.9.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220323"
25
+ REVISION = "20220913"
26
26
  end
27
27
  end
28
28
  end
@@ -58,6 +58,18 @@ module Google
58
58
  include Google::Apis::Core::JsonObjectSupport
59
59
  end
60
60
 
61
+ class FloatUnit
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class Grocery
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
61
73
  class Image
62
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
75
 
@@ -76,6 +88,12 @@ module Google
76
88
  include Google::Apis::Core::JsonObjectSupport
77
89
  end
78
90
 
91
+ class Nutrition
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
79
97
  class Price
80
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
99
 
@@ -94,6 +112,12 @@ module Google
94
112
  include Google::Apis::Core::JsonObjectSupport
95
113
  end
96
114
 
115
+ class VoluntaryNutritionFact
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
97
121
  class Attributes
98
122
  # @private
99
123
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -114,6 +138,8 @@ module Google
114
138
  property :flavor, as: 'flavor'
115
139
  property :format, as: 'format'
116
140
  property :gender, as: 'gender'
141
+ property :grocery, as: 'grocery', class: Google::Apis::ManufacturersV1::Grocery, decorator: Google::Apis::ManufacturersV1::Grocery::Representation
142
+
117
143
  collection :gtin, as: 'gtin'
118
144
  property :image_link, as: 'imageLink', class: Google::Apis::ManufacturersV1::Image, decorator: Google::Apis::ManufacturersV1::Image::Representation
119
145
 
@@ -121,6 +147,8 @@ module Google
121
147
  property :item_group_id, as: 'itemGroupId'
122
148
  property :material, as: 'material'
123
149
  property :mpn, as: 'mpn'
150
+ property :nutrition, as: 'nutrition', class: Google::Apis::ManufacturersV1::Nutrition, decorator: Google::Apis::ManufacturersV1::Nutrition::Representation
151
+
124
152
  property :pattern, as: 'pattern'
125
153
  collection :product_detail, as: 'productDetail', class: Google::Apis::ManufacturersV1::ProductDetail, decorator: Google::Apis::ManufacturersV1::ProductDetail::Representation
126
154
 
@@ -184,6 +212,29 @@ module Google
184
212
  end
185
213
  end
186
214
 
215
+ class FloatUnit
216
+ # @private
217
+ class Representation < Google::Apis::Core::JsonRepresentation
218
+ property :amount, as: 'amount'
219
+ property :unit, as: 'unit'
220
+ end
221
+ end
222
+
223
+ class Grocery
224
+ # @private
225
+ class Representation < Google::Apis::Core::JsonRepresentation
226
+ property :active_ingredients, as: 'activeIngredients'
227
+ property :alcohol_by_volume, as: 'alcoholByVolume'
228
+ property :allergens, as: 'allergens'
229
+ collection :derived_nutrition_claim, as: 'derivedNutritionClaim'
230
+ property :directions, as: 'directions'
231
+ property :indications, as: 'indications'
232
+ property :ingredients, as: 'ingredients'
233
+ collection :nutrition_claim, as: 'nutritionClaim'
234
+ property :storage_instructions, as: 'storageInstructions'
235
+ end
236
+ end
237
+
187
238
  class Image
188
239
  # @private
189
240
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -216,6 +267,78 @@ module Google
216
267
  end
217
268
  end
218
269
 
270
+ class Nutrition
271
+ # @private
272
+ class Representation < Google::Apis::Core::JsonRepresentation
273
+ property :added_sugars, as: 'addedSugars', class: Google::Apis::ManufacturersV1::FloatUnit, decorator: Google::Apis::ManufacturersV1::FloatUnit::Representation
274
+
275
+ property :added_sugars_daily_percentage, as: 'addedSugarsDailyPercentage'
276
+ property :calcium, as: 'calcium', class: Google::Apis::ManufacturersV1::FloatUnit, decorator: Google::Apis::ManufacturersV1::FloatUnit::Representation
277
+
278
+ property :calcium_daily_percentage, as: 'calciumDailyPercentage'
279
+ property :cholesterol, as: 'cholesterol', class: Google::Apis::ManufacturersV1::FloatUnit, decorator: Google::Apis::ManufacturersV1::FloatUnit::Representation
280
+
281
+ property :cholesterol_daily_percentage, as: 'cholesterolDailyPercentage'
282
+ property :dietary_fiber, as: 'dietaryFiber', class: Google::Apis::ManufacturersV1::FloatUnit, decorator: Google::Apis::ManufacturersV1::FloatUnit::Representation
283
+
284
+ property :dietary_fiber_daily_percentage, as: 'dietaryFiberDailyPercentage'
285
+ property :energy, as: 'energy', class: Google::Apis::ManufacturersV1::FloatUnit, decorator: Google::Apis::ManufacturersV1::FloatUnit::Representation
286
+
287
+ property :energy_from_fat, as: 'energyFromFat', class: Google::Apis::ManufacturersV1::FloatUnit, decorator: Google::Apis::ManufacturersV1::FloatUnit::Representation
288
+
289
+ property :folate_daily_percentage, as: 'folateDailyPercentage'
290
+ property :folate_folic_acid, as: 'folateFolicAcid', class: Google::Apis::ManufacturersV1::FloatUnit, decorator: Google::Apis::ManufacturersV1::FloatUnit::Representation
291
+
292
+ property :folate_mcg_dfe, as: 'folateMcgDfe'
293
+ property :iron, as: 'iron', class: Google::Apis::ManufacturersV1::FloatUnit, decorator: Google::Apis::ManufacturersV1::FloatUnit::Representation
294
+
295
+ property :iron_daily_percentage, as: 'ironDailyPercentage'
296
+ property :monounsaturated_fat, as: 'monounsaturatedFat', class: Google::Apis::ManufacturersV1::FloatUnit, decorator: Google::Apis::ManufacturersV1::FloatUnit::Representation
297
+
298
+ property :nutrition_fact_measure, as: 'nutritionFactMeasure'
299
+ property :polyols, as: 'polyols', class: Google::Apis::ManufacturersV1::FloatUnit, decorator: Google::Apis::ManufacturersV1::FloatUnit::Representation
300
+
301
+ property :polyunsaturated_fat, as: 'polyunsaturatedFat', class: Google::Apis::ManufacturersV1::FloatUnit, decorator: Google::Apis::ManufacturersV1::FloatUnit::Representation
302
+
303
+ property :potassium, as: 'potassium', class: Google::Apis::ManufacturersV1::FloatUnit, decorator: Google::Apis::ManufacturersV1::FloatUnit::Representation
304
+
305
+ property :potassium_daily_percentage, as: 'potassiumDailyPercentage'
306
+ property :prepared_size_description, as: 'preparedSizeDescription'
307
+ property :protein, as: 'protein', class: Google::Apis::ManufacturersV1::FloatUnit, decorator: Google::Apis::ManufacturersV1::FloatUnit::Representation
308
+
309
+ property :protein_daily_percentage, as: 'proteinDailyPercentage'
310
+ property :saturated_fat, as: 'saturatedFat', class: Google::Apis::ManufacturersV1::FloatUnit, decorator: Google::Apis::ManufacturersV1::FloatUnit::Representation
311
+
312
+ property :saturated_fat_daily_percentage, as: 'saturatedFatDailyPercentage'
313
+ property :serving_size_description, as: 'servingSizeDescription'
314
+ property :serving_size_measure, as: 'servingSizeMeasure', class: Google::Apis::ManufacturersV1::FloatUnit, decorator: Google::Apis::ManufacturersV1::FloatUnit::Representation
315
+
316
+ property :servings_per_container, as: 'servingsPerContainer'
317
+ property :sodium, as: 'sodium', class: Google::Apis::ManufacturersV1::FloatUnit, decorator: Google::Apis::ManufacturersV1::FloatUnit::Representation
318
+
319
+ property :sodium_daily_percentage, as: 'sodiumDailyPercentage'
320
+ property :starch, as: 'starch', class: Google::Apis::ManufacturersV1::FloatUnit, decorator: Google::Apis::ManufacturersV1::FloatUnit::Representation
321
+
322
+ property :total_carbohydrate, as: 'totalCarbohydrate', class: Google::Apis::ManufacturersV1::FloatUnit, decorator: Google::Apis::ManufacturersV1::FloatUnit::Representation
323
+
324
+ property :total_carbohydrate_daily_percentage, as: 'totalCarbohydrateDailyPercentage'
325
+ property :total_fat, as: 'totalFat', class: Google::Apis::ManufacturersV1::FloatUnit, decorator: Google::Apis::ManufacturersV1::FloatUnit::Representation
326
+
327
+ property :total_fat_daily_percentage, as: 'totalFatDailyPercentage'
328
+ property :total_sugars, as: 'totalSugars', class: Google::Apis::ManufacturersV1::FloatUnit, decorator: Google::Apis::ManufacturersV1::FloatUnit::Representation
329
+
330
+ property :total_sugars_daily_percentage, as: 'totalSugarsDailyPercentage'
331
+ property :trans_fat, as: 'transFat', class: Google::Apis::ManufacturersV1::FloatUnit, decorator: Google::Apis::ManufacturersV1::FloatUnit::Representation
332
+
333
+ property :trans_fat_daily_percentage, as: 'transFatDailyPercentage'
334
+ property :vitamin_d, as: 'vitaminD', class: Google::Apis::ManufacturersV1::FloatUnit, decorator: Google::Apis::ManufacturersV1::FloatUnit::Representation
335
+
336
+ property :vitamin_d_daily_percentage, as: 'vitaminDDailyPercentage'
337
+ collection :voluntary_nutrition_fact, as: 'voluntaryNutritionFact', class: Google::Apis::ManufacturersV1::VoluntaryNutritionFact, decorator: Google::Apis::ManufacturersV1::VoluntaryNutritionFact::Representation
338
+
339
+ end
340
+ end
341
+
219
342
  class Price
220
343
  # @private
221
344
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -249,6 +372,16 @@ module Google
249
372
  property :section_name, as: 'sectionName'
250
373
  end
251
374
  end
375
+
376
+ class VoluntaryNutritionFact
377
+ # @private
378
+ class Representation < Google::Apis::Core::JsonRepresentation
379
+ property :daily_percentage, as: 'dailyPercentage'
380
+ property :name, as: 'name'
381
+ property :value, as: 'value', class: Google::Apis::ManufacturersV1::FloatUnit, decorator: Google::Apis::ManufacturersV1::FloatUnit::Representation
382
+
383
+ end
384
+ end
252
385
  end
253
386
  end
254
387
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-manufacturers_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.15.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-07-04 00:00:00.000000000 Z
11
+ date: 2022-09-19 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-manufacturers_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-manufacturers_v1/v0.13.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-manufacturers_v1/v0.15.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-manufacturers_v1
63
63
  post_install_message:
64
64
  rdoc_options: []