google-api-client 0.9.25 → 0.9.26

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/api_names.yaml +279 -0
  4. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  5. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +110 -110
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +25 -25
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +145 -145
  8. data/generated/google/apis/adsense_v1_4.rb +1 -1
  9. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  10. data/generated/google/apis/calendar_v3.rb +1 -1
  11. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  12. data/generated/google/apis/cloudbuild_v1/classes.rb +419 -419
  13. data/generated/google/apis/cloudbuild_v1/representations.rb +73 -73
  14. data/generated/google/apis/cloudbuild_v1/service.rb +86 -86
  15. data/generated/google/apis/cloudkms_v1beta1.rb +34 -0
  16. data/generated/google/apis/cloudkms_v1beta1/classes.rb +999 -0
  17. data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
  18. data/generated/google/apis/cloudkms_v1beta1/service.rb +932 -0
  19. data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
  20. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +478 -478
  21. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +96 -96
  22. data/generated/google/apis/cloudresourcemanager_v1/service.rb +271 -271
  23. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  24. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +353 -353
  25. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +81 -81
  26. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +299 -299
  27. data/generated/google/apis/container_v1.rb +1 -1
  28. data/generated/google/apis/container_v1/classes.rb +287 -16
  29. data/generated/google/apis/container_v1/representations.rb +113 -2
  30. data/generated/google/apis/container_v1/service.rb +130 -0
  31. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  32. data/generated/google/apis/drive_v2.rb +1 -1
  33. data/generated/google/apis/drive_v3.rb +1 -1
  34. data/generated/google/apis/genomics_v1.rb +8 -8
  35. data/generated/google/apis/genomics_v1/classes.rb +2259 -2257
  36. data/generated/google/apis/genomics_v1/representations.rb +461 -526
  37. data/generated/google/apis/genomics_v1/service.rb +1203 -1105
  38. data/generated/google/apis/gmail_v1.rb +1 -1
  39. data/generated/google/apis/logging_v2beta1.rb +1 -1
  40. data/generated/google/apis/logging_v2beta1/classes.rb +852 -852
  41. data/generated/google/apis/logging_v2beta1/representations.rb +168 -168
  42. data/generated/google/apis/logging_v2beta1/service.rb +230 -230
  43. data/generated/google/apis/manufacturers_v1.rb +34 -0
  44. data/generated/google/apis/manufacturers_v1/classes.rb +258 -0
  45. data/generated/google/apis/manufacturers_v1/representations.rb +103 -0
  46. data/generated/google/apis/manufacturers_v1/service.rb +138 -0
  47. data/generated/google/apis/monitoring_v3.rb +7 -7
  48. data/generated/google/apis/monitoring_v3/classes.rb +744 -744
  49. data/generated/google/apis/monitoring_v3/representations.rb +164 -164
  50. data/generated/google/apis/monitoring_v3/service.rb +335 -335
  51. data/generated/google/apis/plus_domains_v1.rb +1 -1
  52. data/generated/google/apis/plus_v1.rb +1 -1
  53. data/generated/google/apis/pubsub_v1.rb +3 -3
  54. data/generated/google/apis/pubsub_v1/classes.rb +325 -325
  55. data/generated/google/apis/pubsub_v1/representations.rb +80 -80
  56. data/generated/google/apis/pubsub_v1/service.rb +256 -256
  57. data/generated/google/apis/sheets_v4.rb +3 -3
  58. data/generated/google/apis/sheets_v4/classes.rb +4283 -4283
  59. data/generated/google/apis/sheets_v4/representations.rb +833 -833
  60. data/generated/google/apis/sheets_v4/service.rb +184 -184
  61. data/generated/google/apis/speech_v1beta1.rb +1 -1
  62. data/generated/google/apis/speech_v1beta1/classes.rb +213 -211
  63. data/generated/google/apis/speech_v1beta1/representations.rb +49 -49
  64. data/generated/google/apis/speech_v1beta1/service.rb +71 -71
  65. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  66. data/generated/google/apis/sqladmin_v1beta4/classes.rb +20 -0
  67. data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -0
  68. data/generated/google/apis/vision_v1.rb +1 -1
  69. data/generated/google/apis/vision_v1/classes.rb +861 -859
  70. data/generated/google/apis/vision_v1/representations.rb +140 -140
  71. data/generated/google/apis/vision_v1/service.rb +4 -4
  72. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  73. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  74. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  75. data/generated/google/apis/youtubereporting_v1/classes.rb +139 -139
  76. data/generated/google/apis/youtubereporting_v1/representations.rb +36 -36
  77. data/generated/google/apis/youtubereporting_v1/service.rb +152 -152
  78. data/lib/google/apis/version.rb +1 -1
  79. metadata +9 -1
@@ -0,0 +1,34 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/manufacturers_v1/service.rb'
16
+ require 'google/apis/manufacturers_v1/classes.rb'
17
+ require 'google/apis/manufacturers_v1/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # Manufacturer Center API
22
+ #
23
+ # Public API for managing Manufacturer Center related data.
24
+ #
25
+ # @see https://developers.google.com/manufacturers/
26
+ module ManufacturersV1
27
+ VERSION = 'V1'
28
+ REVISION = '20161028'
29
+
30
+ # Manage your product listings for Google Manufacturer Center
31
+ AUTH_MANUFACTURERCENTER = 'https://www.googleapis.com/auth/manufacturercenter'
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,258 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module ManufacturersV1
24
+
25
+ #
26
+ class ListProductsResponse
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # The token for the retrieval of the next page of product statuses.
30
+ # Corresponds to the JSON property `nextPageToken`
31
+ # @return [String]
32
+ attr_accessor :next_page_token
33
+
34
+ # List of the products.
35
+ # Corresponds to the JSON property `products`
36
+ # @return [Array<Google::Apis::ManufacturersV1::Product>]
37
+ attr_accessor :products
38
+
39
+ def initialize(**args)
40
+ update!(**args)
41
+ end
42
+
43
+ # Update properties of this object
44
+ def update!(**args)
45
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
46
+ @products = args[:products] if args.key?(:products)
47
+ end
48
+ end
49
+
50
+ # Product issue.
51
+ class Issue
52
+ include Google::Apis::Core::Hashable
53
+
54
+ # The severity of the issue.
55
+ # Corresponds to the JSON property `severity`
56
+ # @return [String]
57
+ attr_accessor :severity
58
+
59
+ # Description of the issue.
60
+ # Corresponds to the JSON property `description`
61
+ # @return [String]
62
+ attr_accessor :description
63
+
64
+ # If present, the attribute that triggered the issue. For more information
65
+ # about attributes, see
66
+ # https://support.google.com/manufacturers/answer/6124116.
67
+ # Corresponds to the JSON property `attribute`
68
+ # @return [String]
69
+ attr_accessor :attribute
70
+
71
+ # The server-generated type of the issue, for example,
72
+ # “INCORRECT_TEXT_FORMATTING”, “IMAGE_NOT_SERVEABLE”, etc.
73
+ # Corresponds to the JSON property `type`
74
+ # @return [String]
75
+ attr_accessor :type
76
+
77
+ def initialize(**args)
78
+ update!(**args)
79
+ end
80
+
81
+ # Update properties of this object
82
+ def update!(**args)
83
+ @severity = args[:severity] if args.key?(:severity)
84
+ @description = args[:description] if args.key?(:description)
85
+ @attribute = args[:attribute] if args.key?(:attribute)
86
+ @type = args[:type] if args.key?(:type)
87
+ end
88
+ end
89
+
90
+ # Attributes of the product. For more information, see
91
+ # https://support.google.com/manufacturers/answer/6124116.
92
+ class Attributes
93
+ include Google::Apis::Core::Hashable
94
+
95
+ # The URL of the manufacturer's detail page of the product. For more
96
+ # information, see
97
+ # https://support.google.com/manufacturers/answer/6124116#productpage.
98
+ # Corresponds to the JSON property `productPageUrl`
99
+ # @return [String]
100
+ attr_accessor :product_page_url
101
+
102
+ # The Manufacturer Part Number (MPN) of the product. For more information,
103
+ # see https://support.google.com/manufacturers/answer/6124116#mpn.
104
+ # Corresponds to the JSON property `mpn`
105
+ # @return [String]
106
+ attr_accessor :mpn
107
+
108
+ # The title of the product. For more information, see
109
+ # https://support.google.com/manufacturers/answer/6124116#title.
110
+ # Corresponds to the JSON property `title`
111
+ # @return [String]
112
+ attr_accessor :title
113
+
114
+ # The name of the group of products related to the product. For more
115
+ # information, see
116
+ # https://support.google.com/manufacturers/answer/6124116#productline.
117
+ # Corresponds to the JSON property `productLine`
118
+ # @return [String]
119
+ attr_accessor :product_line
120
+
121
+ # The canonical name of the product. For more information, see
122
+ # https://support.google.com/manufacturers/answer/6124116#productname.
123
+ # Corresponds to the JSON property `productName`
124
+ # @return [String]
125
+ attr_accessor :product_name
126
+
127
+ # The brand name of the product. For more information, see
128
+ # https://support.google.com/manufacturers/answer/6124116#brand.
129
+ # Corresponds to the JSON property `brand`
130
+ # @return [String]
131
+ attr_accessor :brand
132
+
133
+ # The manufacturer's category of the product. For more information, see
134
+ # https://support.google.com/manufacturers/answer/6124116#producttype.
135
+ # Corresponds to the JSON property `productType`
136
+ # @return [Array<String>]
137
+ attr_accessor :product_type
138
+
139
+ # The Global Trade Item Number (GTIN) of the product. For more information,
140
+ # see https://support.google.com/manufacturers/answer/6124116#gtin.
141
+ # Corresponds to the JSON property `gtin`
142
+ # @return [Array<String>]
143
+ attr_accessor :gtin
144
+
145
+ def initialize(**args)
146
+ update!(**args)
147
+ end
148
+
149
+ # Update properties of this object
150
+ def update!(**args)
151
+ @product_page_url = args[:product_page_url] if args.key?(:product_page_url)
152
+ @mpn = args[:mpn] if args.key?(:mpn)
153
+ @title = args[:title] if args.key?(:title)
154
+ @product_line = args[:product_line] if args.key?(:product_line)
155
+ @product_name = args[:product_name] if args.key?(:product_name)
156
+ @brand = args[:brand] if args.key?(:brand)
157
+ @product_type = args[:product_type] if args.key?(:product_type)
158
+ @gtin = args[:gtin] if args.key?(:gtin)
159
+ end
160
+ end
161
+
162
+ # Product data.
163
+ class Product
164
+ include Google::Apis::Core::Hashable
165
+
166
+ # Parent ID in the format `accounts/`account_id``.
167
+ # `account_id` - The ID of the Manufacturer Center account.
168
+ # @OutputOnly
169
+ # Corresponds to the JSON property `parent`
170
+ # @return [String]
171
+ attr_accessor :parent
172
+
173
+ # The target country of the product as a CLDR territory code (for example,
174
+ # US).
175
+ # @OutputOnly
176
+ # Corresponds to the JSON property `targetCountry`
177
+ # @return [String]
178
+ attr_accessor :target_country
179
+
180
+ # The content language of the product as a two-letter ISO 639-1 language code
181
+ # (for example, en).
182
+ # @OutputOnly
183
+ # Corresponds to the JSON property `contentLanguage`
184
+ # @return [String]
185
+ attr_accessor :content_language
186
+
187
+ # Names of the attributes of the product deleted manually via the
188
+ # Manufacturer Center UI.
189
+ # @OutputOnly
190
+ # Corresponds to the JSON property `manuallyDeletedAttributes`
191
+ # @return [Array<String>]
192
+ attr_accessor :manually_deleted_attributes
193
+
194
+ # The ID of the product. For more information, see
195
+ # https://support.google.com/manufacturers/answer/6124116#id.
196
+ # @OutputOnly
197
+ # Corresponds to the JSON property `productId`
198
+ # @return [String]
199
+ attr_accessor :product_id
200
+
201
+ # Attributes of the product. For more information, see
202
+ # https://support.google.com/manufacturers/answer/6124116.
203
+ # Corresponds to the JSON property `finalAttributes`
204
+ # @return [Google::Apis::ManufacturersV1::Attributes]
205
+ attr_accessor :final_attributes
206
+
207
+ # A server-generated list of issues associated with the product.
208
+ # @OutputOnly
209
+ # Corresponds to the JSON property `issues`
210
+ # @return [Array<Google::Apis::ManufacturersV1::Issue>]
211
+ attr_accessor :issues
212
+
213
+ # Name in the format ``target_country`:`content_language`:`product_id``.
214
+ # `target_country` - The target country of the product as a CLDR territory
215
+ # code (for example, US).
216
+ # `content_language` - The content language of the product as a two-letter
217
+ # ISO 639-1 language code (for example, en).
218
+ # `product_id` - The ID of the product. For more information, see
219
+ # https://support.google.com/manufacturers/answer/6124116#
220
+ # id.
221
+ # @OutputOnly
222
+ # Corresponds to the JSON property `name`
223
+ # @return [String]
224
+ attr_accessor :name
225
+
226
+ # Attributes of the product. For more information, see
227
+ # https://support.google.com/manufacturers/answer/6124116.
228
+ # Corresponds to the JSON property `uploadedAttributes`
229
+ # @return [Google::Apis::ManufacturersV1::Attributes]
230
+ attr_accessor :uploaded_attributes
231
+
232
+ # Attributes of the product. For more information, see
233
+ # https://support.google.com/manufacturers/answer/6124116.
234
+ # Corresponds to the JSON property `manuallyProvidedAttributes`
235
+ # @return [Google::Apis::ManufacturersV1::Attributes]
236
+ attr_accessor :manually_provided_attributes
237
+
238
+ def initialize(**args)
239
+ update!(**args)
240
+ end
241
+
242
+ # Update properties of this object
243
+ def update!(**args)
244
+ @parent = args[:parent] if args.key?(:parent)
245
+ @target_country = args[:target_country] if args.key?(:target_country)
246
+ @content_language = args[:content_language] if args.key?(:content_language)
247
+ @manually_deleted_attributes = args[:manually_deleted_attributes] if args.key?(:manually_deleted_attributes)
248
+ @product_id = args[:product_id] if args.key?(:product_id)
249
+ @final_attributes = args[:final_attributes] if args.key?(:final_attributes)
250
+ @issues = args[:issues] if args.key?(:issues)
251
+ @name = args[:name] if args.key?(:name)
252
+ @uploaded_attributes = args[:uploaded_attributes] if args.key?(:uploaded_attributes)
253
+ @manually_provided_attributes = args[:manually_provided_attributes] if args.key?(:manually_provided_attributes)
254
+ end
255
+ end
256
+ end
257
+ end
258
+ end
@@ -0,0 +1,103 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module ManufacturersV1
24
+
25
+ class ListProductsResponse
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class Issue
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class Attributes
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class Product
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class ListProductsResponse
50
+ # @private
51
+ class Representation < Google::Apis::Core::JsonRepresentation
52
+ property :next_page_token, as: 'nextPageToken'
53
+ collection :products, as: 'products', class: Google::Apis::ManufacturersV1::Product, decorator: Google::Apis::ManufacturersV1::Product::Representation
54
+
55
+ end
56
+ end
57
+
58
+ class Issue
59
+ # @private
60
+ class Representation < Google::Apis::Core::JsonRepresentation
61
+ property :severity, as: 'severity'
62
+ property :description, as: 'description'
63
+ property :attribute, as: 'attribute'
64
+ property :type, as: 'type'
65
+ end
66
+ end
67
+
68
+ class Attributes
69
+ # @private
70
+ class Representation < Google::Apis::Core::JsonRepresentation
71
+ property :product_page_url, as: 'productPageUrl'
72
+ property :mpn, as: 'mpn'
73
+ property :title, as: 'title'
74
+ property :product_line, as: 'productLine'
75
+ property :product_name, as: 'productName'
76
+ property :brand, as: 'brand'
77
+ collection :product_type, as: 'productType'
78
+ collection :gtin, as: 'gtin'
79
+ end
80
+ end
81
+
82
+ class Product
83
+ # @private
84
+ class Representation < Google::Apis::Core::JsonRepresentation
85
+ property :parent, as: 'parent'
86
+ property :target_country, as: 'targetCountry'
87
+ property :content_language, as: 'contentLanguage'
88
+ collection :manually_deleted_attributes, as: 'manuallyDeletedAttributes'
89
+ property :product_id, as: 'productId'
90
+ property :final_attributes, as: 'finalAttributes', class: Google::Apis::ManufacturersV1::Attributes, decorator: Google::Apis::ManufacturersV1::Attributes::Representation
91
+
92
+ collection :issues, as: 'issues', class: Google::Apis::ManufacturersV1::Issue, decorator: Google::Apis::ManufacturersV1::Issue::Representation
93
+
94
+ property :name, as: 'name'
95
+ property :uploaded_attributes, as: 'uploadedAttributes', class: Google::Apis::ManufacturersV1::Attributes, decorator: Google::Apis::ManufacturersV1::Attributes::Representation
96
+
97
+ property :manually_provided_attributes, as: 'manuallyProvidedAttributes', class: Google::Apis::ManufacturersV1::Attributes, decorator: Google::Apis::ManufacturersV1::Attributes::Representation
98
+
99
+ end
100
+ end
101
+ end
102
+ end
103
+ end
@@ -0,0 +1,138 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module ManufacturersV1
23
+ # Manufacturer Center API
24
+ #
25
+ # Public API for managing Manufacturer Center related data.
26
+ #
27
+ # @example
28
+ # require 'google/apis/manufacturers_v1'
29
+ #
30
+ # Manufacturers = Google::Apis::ManufacturersV1 # Alias the module
31
+ # service = Manufacturers::ManufacturerCenterService.new
32
+ #
33
+ # @see https://developers.google.com/manufacturers/
34
+ class ManufacturerCenterService < Google::Apis::Core::BaseService
35
+ # @return [String]
36
+ # API key. Your API key identifies your project and provides you with API access,
37
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
38
+ attr_accessor :key
39
+
40
+ # @return [String]
41
+ # Available to use for quota purposes for server-side applications. Can be any
42
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
43
+ attr_accessor :quota_user
44
+
45
+ def initialize
46
+ super('https://manufacturers.googleapis.com/', '')
47
+ end
48
+
49
+ # Gets the product from a Manufacturer Center account, including product
50
+ # issues.
51
+ # @param [String] parent
52
+ # Parent ID in the format `accounts/`account_id``.
53
+ # `account_id` - The ID of the Manufacturer Center account.
54
+ # @param [String] name
55
+ # Name in the format ``target_country`:`content_language`:`product_id``.
56
+ # `target_country` - The target country of the product as a CLDR territory
57
+ # code (for example, US).
58
+ # `content_language` - The content language of the product as a two-letter
59
+ # ISO 639-1 language code (for example, en).
60
+ # `product_id` - The ID of the product. For more information, see
61
+ # https://support.google.com/manufacturers/answer/6124116#
62
+ # id.
63
+ # @param [String] quota_user
64
+ # Available to use for quota purposes for server-side applications. Can be any
65
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
66
+ # @param [String] fields
67
+ # Selector specifying which fields to include in a partial response.
68
+ # @param [Google::Apis::RequestOptions] options
69
+ # Request-specific options
70
+ #
71
+ # @yield [result, err] Result & error if block supplied
72
+ # @yieldparam result [Google::Apis::ManufacturersV1::Product] parsed result object
73
+ # @yieldparam err [StandardError] error object if request failed
74
+ #
75
+ # @return [Google::Apis::ManufacturersV1::Product]
76
+ #
77
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
78
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
79
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
80
+ def get_account_product(parent, name, quota_user: nil, fields: nil, options: nil, &block)
81
+ command = make_simple_command(:get, 'v1/{+parent}/products/{+name}', options)
82
+ command.response_representation = Google::Apis::ManufacturersV1::Product::Representation
83
+ command.response_class = Google::Apis::ManufacturersV1::Product
84
+ command.params['parent'] = parent unless parent.nil?
85
+ command.params['name'] = name unless name.nil?
86
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
87
+ command.query['fields'] = fields unless fields.nil?
88
+ execute_or_queue_command(command, &block)
89
+ end
90
+
91
+ # Lists all the products in a Manufacturer Center account.
92
+ # @param [String] parent
93
+ # Parent ID in the format `accounts/`account_id``.
94
+ # `account_id` - The ID of the Manufacturer Center account.
95
+ # @param [Fixnum] page_size
96
+ # Maximum number of product statuses to return in the response, used for
97
+ # paging.
98
+ # @param [String] page_token
99
+ # The token returned by the previous request.
100
+ # @param [String] quota_user
101
+ # Available to use for quota purposes for server-side applications. Can be any
102
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
103
+ # @param [String] fields
104
+ # Selector specifying which fields to include in a partial response.
105
+ # @param [Google::Apis::RequestOptions] options
106
+ # Request-specific options
107
+ #
108
+ # @yield [result, err] Result & error if block supplied
109
+ # @yieldparam result [Google::Apis::ManufacturersV1::ListProductsResponse] parsed result object
110
+ # @yieldparam err [StandardError] error object if request failed
111
+ #
112
+ # @return [Google::Apis::ManufacturersV1::ListProductsResponse]
113
+ #
114
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
115
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
116
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
117
+ def list_account_products(parent, page_size: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
118
+ command = make_simple_command(:get, 'v1/{+parent}/products', options)
119
+ command.response_representation = Google::Apis::ManufacturersV1::ListProductsResponse::Representation
120
+ command.response_class = Google::Apis::ManufacturersV1::ListProductsResponse
121
+ command.params['parent'] = parent unless parent.nil?
122
+ command.query['pageSize'] = page_size unless page_size.nil?
123
+ command.query['pageToken'] = page_token unless page_token.nil?
124
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
125
+ command.query['fields'] = fields unless fields.nil?
126
+ execute_or_queue_command(command, &block)
127
+ end
128
+
129
+ protected
130
+
131
+ def apply_command_defaults(command)
132
+ command.query['key'] = key unless key.nil?
133
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
134
+ end
135
+ end
136
+ end
137
+ end
138
+ end