google-api-client 0.23.9 → 0.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +42 -0
  3. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  4. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +2030 -58
  5. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +878 -43
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +604 -0
  7. data/generated/google/apis/adexperiencereport_v1.rb +1 -1
  8. data/generated/google/apis/adexperiencereport_v1/classes.rb +0 -1
  9. data/generated/google/apis/admin_directory_v1.rb +1 -1
  10. data/generated/google/apis/admin_directory_v1/classes.rb +8 -2
  11. data/generated/google/apis/admin_directory_v1/representations.rb +1 -0
  12. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  13. data/generated/google/apis/androidenterprise_v1/classes.rb +108 -5
  14. data/generated/google/apis/androidenterprise_v1/representations.rb +60 -0
  15. data/generated/google/apis/appengine_v1.rb +1 -1
  16. data/generated/google/apis/appengine_v1/classes.rb +1 -1
  17. data/generated/google/apis/appengine_v1/service.rb +3 -3
  18. data/generated/google/apis/appengine_v1beta.rb +1 -1
  19. data/generated/google/apis/appengine_v1beta/classes.rb +1 -1
  20. data/generated/google/apis/appengine_v1beta/service.rb +3 -3
  21. data/generated/google/apis/classroom_v1.rb +1 -1
  22. data/generated/google/apis/classroom_v1/classes.rb +14 -14
  23. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  24. data/generated/google/apis/cloudbuild_v1/classes.rb +6 -0
  25. data/generated/google/apis/cloudbuild_v1/representations.rb +1 -0
  26. data/generated/google/apis/cloudtrace_v1.rb +1 -1
  27. data/generated/google/apis/cloudtrace_v1/classes.rb +3 -2
  28. data/generated/google/apis/composer_v1.rb +1 -1
  29. data/generated/google/apis/composer_v1/classes.rb +1 -1
  30. data/generated/google/apis/composer_v1/service.rb +6 -6
  31. data/generated/google/apis/composer_v1beta1.rb +1 -1
  32. data/generated/google/apis/composer_v1beta1/classes.rb +1 -1
  33. data/generated/google/apis/dataproc_v1.rb +1 -1
  34. data/generated/google/apis/dataproc_v1/classes.rb +475 -0
  35. data/generated/google/apis/dataproc_v1/representations.rb +188 -0
  36. data/generated/google/apis/dataproc_v1/service.rb +550 -0
  37. data/generated/google/apis/dlp_v2.rb +1 -1
  38. data/generated/google/apis/dlp_v2/classes.rb +21 -21
  39. data/generated/google/apis/file_v1beta1.rb +34 -0
  40. data/generated/google/apis/file_v1beta1/classes.rb +810 -0
  41. data/generated/google/apis/file_v1beta1/representations.rb +298 -0
  42. data/generated/google/apis/file_v1beta1/service.rb +472 -0
  43. data/generated/google/apis/jobs_v3.rb +1 -1
  44. data/generated/google/apis/jobs_v3/classes.rb +16 -17
  45. data/generated/google/apis/logging_v2.rb +1 -1
  46. data/generated/google/apis/logging_v2/classes.rb +8 -9
  47. data/generated/google/apis/logging_v2/service.rb +9 -9
  48. data/generated/google/apis/logging_v2beta1.rb +1 -1
  49. data/generated/google/apis/logging_v2beta1/classes.rb +8 -9
  50. data/generated/google/apis/logging_v2beta1/service.rb +1 -1
  51. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  52. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +14 -14
  53. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  54. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +142 -98
  55. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  56. data/generated/google/apis/servicecontrol_v1/classes.rb +0 -2
  57. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  58. data/generated/google/apis/servicemanagement_v1/classes.rb +142 -98
  59. data/generated/google/apis/serviceusage_v1.rb +1 -1
  60. data/generated/google/apis/serviceusage_v1/classes.rb +142 -98
  61. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  62. data/generated/google/apis/serviceusage_v1beta1/classes.rb +142 -98
  63. data/generated/google/apis/serviceuser_v1.rb +1 -1
  64. data/generated/google/apis/serviceuser_v1/classes.rb +142 -98
  65. data/generated/google/apis/speech_v1.rb +1 -1
  66. data/generated/google/apis/speech_v1/classes.rb +91 -0
  67. data/generated/google/apis/speech_v1/representations.rb +18 -0
  68. data/generated/google/apis/speech_v1/service.rb +47 -0
  69. data/generated/google/apis/speech_v1beta1.rb +1 -1
  70. data/generated/google/apis/speech_v1beta1/classes.rb +25 -0
  71. data/generated/google/apis/speech_v1beta1/representations.rb +15 -0
  72. data/generated/google/apis/speech_v1beta1/service.rb +47 -0
  73. data/generated/google/apis/sqladmin_v1beta4.rb +3 -3
  74. data/generated/google/apis/sqladmin_v1beta4/classes.rb +34 -31
  75. data/generated/google/apis/sqladmin_v1beta4/service.rb +8 -8
  76. data/generated/google/apis/storage_v1.rb +1 -1
  77. data/generated/google/apis/storage_v1/classes.rb +3 -4
  78. data/generated/google/apis/storage_v1/service.rb +2 -1
  79. data/generated/google/apis/storage_v1beta2.rb +1 -1
  80. data/generated/google/apis/storage_v1beta2/classes.rb +1 -2
  81. data/generated/google/apis/storage_v1beta2/service.rb +2 -1
  82. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  83. data/generated/google/apis/storagetransfer_v1/classes.rb +21 -21
  84. data/generated/google/apis/testing_v1.rb +1 -1
  85. data/generated/google/apis/testing_v1/classes.rb +308 -14
  86. data/generated/google/apis/testing_v1/representations.rb +136 -0
  87. data/generated/google/apis/vision_v1.rb +1 -1
  88. data/generated/google/apis/vision_v1/classes.rb +156 -2
  89. data/generated/google/apis/vision_v1/representations.rb +60 -0
  90. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  91. data/generated/google/apis/vision_v1p1beta1/classes.rb +156 -2
  92. data/generated/google/apis/vision_v1p1beta1/representations.rb +60 -0
  93. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  94. data/generated/google/apis/vision_v1p2beta1/classes.rb +156 -2
  95. data/generated/google/apis/vision_v1p2beta1/representations.rb +60 -0
  96. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  97. data/lib/google/apis/version.rb +1 -1
  98. metadata +6 -14
  99. data/generated/google/apis/adexchangeseller_v1.rb +0 -37
  100. data/generated/google/apis/adexchangeseller_v1/classes.rb +0 -557
  101. data/generated/google/apis/adexchangeseller_v1/representations.rb +0 -248
  102. data/generated/google/apis/adexchangeseller_v1/service.rb +0 -544
  103. data/generated/google/apis/adexchangeseller_v1_1.rb +0 -37
  104. data/generated/google/apis/adexchangeseller_v1_1/classes.rb +0 -842
  105. data/generated/google/apis/adexchangeseller_v1_1/representations.rb +0 -364
  106. data/generated/google/apis/adexchangeseller_v1_1/service.rb +0 -735
  107. data/generated/google/apis/adexchangeseller_v2_0.rb +0 -37
  108. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +0 -792
  109. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +0 -347
  110. data/generated/google/apis/adexchangeseller_v2_0/service.rb +0 -638
@@ -1,248 +0,0 @@
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 AdexchangesellerV1
24
-
25
- class AdClient
26
- class Representation < Google::Apis::Core::JsonRepresentation; end
27
-
28
- include Google::Apis::Core::JsonObjectSupport
29
- end
30
-
31
- class AdClients
32
- class Representation < Google::Apis::Core::JsonRepresentation; end
33
-
34
- include Google::Apis::Core::JsonObjectSupport
35
- end
36
-
37
- class AdUnit
38
- class Representation < Google::Apis::Core::JsonRepresentation; end
39
-
40
- include Google::Apis::Core::JsonObjectSupport
41
- end
42
-
43
- class AdUnits
44
- class Representation < Google::Apis::Core::JsonRepresentation; end
45
-
46
- include Google::Apis::Core::JsonObjectSupport
47
- end
48
-
49
- class CustomChannel
50
- class Representation < Google::Apis::Core::JsonRepresentation; end
51
-
52
- class TargetingInfo
53
- class Representation < Google::Apis::Core::JsonRepresentation; end
54
-
55
- include Google::Apis::Core::JsonObjectSupport
56
- end
57
-
58
- include Google::Apis::Core::JsonObjectSupport
59
- end
60
-
61
- class CustomChannels
62
- class Representation < Google::Apis::Core::JsonRepresentation; end
63
-
64
- include Google::Apis::Core::JsonObjectSupport
65
- end
66
-
67
- class Report
68
- class Representation < Google::Apis::Core::JsonRepresentation; end
69
-
70
- class Header
71
- class Representation < Google::Apis::Core::JsonRepresentation; end
72
-
73
- include Google::Apis::Core::JsonObjectSupport
74
- end
75
-
76
- include Google::Apis::Core::JsonObjectSupport
77
- end
78
-
79
- class SavedReport
80
- class Representation < Google::Apis::Core::JsonRepresentation; end
81
-
82
- include Google::Apis::Core::JsonObjectSupport
83
- end
84
-
85
- class SavedReports
86
- class Representation < Google::Apis::Core::JsonRepresentation; end
87
-
88
- include Google::Apis::Core::JsonObjectSupport
89
- end
90
-
91
- class UrlChannel
92
- class Representation < Google::Apis::Core::JsonRepresentation; end
93
-
94
- include Google::Apis::Core::JsonObjectSupport
95
- end
96
-
97
- class UrlChannels
98
- class Representation < Google::Apis::Core::JsonRepresentation; end
99
-
100
- include Google::Apis::Core::JsonObjectSupport
101
- end
102
-
103
- class AdClient
104
- # @private
105
- class Representation < Google::Apis::Core::JsonRepresentation
106
- property :arc_opt_in, as: 'arcOptIn'
107
- property :id, as: 'id'
108
- property :kind, as: 'kind'
109
- property :product_code, as: 'productCode'
110
- property :supports_reporting, as: 'supportsReporting'
111
- end
112
- end
113
-
114
- class AdClients
115
- # @private
116
- class Representation < Google::Apis::Core::JsonRepresentation
117
- property :etag, as: 'etag'
118
- collection :items, as: 'items', class: Google::Apis::AdexchangesellerV1::AdClient, decorator: Google::Apis::AdexchangesellerV1::AdClient::Representation
119
-
120
- property :kind, as: 'kind'
121
- property :next_page_token, as: 'nextPageToken'
122
- end
123
- end
124
-
125
- class AdUnit
126
- # @private
127
- class Representation < Google::Apis::Core::JsonRepresentation
128
- property :code, as: 'code'
129
- property :id, as: 'id'
130
- property :kind, as: 'kind'
131
- property :name, as: 'name'
132
- property :status, as: 'status'
133
- end
134
- end
135
-
136
- class AdUnits
137
- # @private
138
- class Representation < Google::Apis::Core::JsonRepresentation
139
- property :etag, as: 'etag'
140
- collection :items, as: 'items', class: Google::Apis::AdexchangesellerV1::AdUnit, decorator: Google::Apis::AdexchangesellerV1::AdUnit::Representation
141
-
142
- property :kind, as: 'kind'
143
- property :next_page_token, as: 'nextPageToken'
144
- end
145
- end
146
-
147
- class CustomChannel
148
- # @private
149
- class Representation < Google::Apis::Core::JsonRepresentation
150
- property :code, as: 'code'
151
- property :id, as: 'id'
152
- property :kind, as: 'kind'
153
- property :name, as: 'name'
154
- property :targeting_info, as: 'targetingInfo', class: Google::Apis::AdexchangesellerV1::CustomChannel::TargetingInfo, decorator: Google::Apis::AdexchangesellerV1::CustomChannel::TargetingInfo::Representation
155
-
156
- end
157
-
158
- class TargetingInfo
159
- # @private
160
- class Representation < Google::Apis::Core::JsonRepresentation
161
- property :ads_appear_on, as: 'adsAppearOn'
162
- property :description, as: 'description'
163
- property :location, as: 'location'
164
- property :site_language, as: 'siteLanguage'
165
- end
166
- end
167
- end
168
-
169
- class CustomChannels
170
- # @private
171
- class Representation < Google::Apis::Core::JsonRepresentation
172
- property :etag, as: 'etag'
173
- collection :items, as: 'items', class: Google::Apis::AdexchangesellerV1::CustomChannel, decorator: Google::Apis::AdexchangesellerV1::CustomChannel::Representation
174
-
175
- property :kind, as: 'kind'
176
- property :next_page_token, as: 'nextPageToken'
177
- end
178
- end
179
-
180
- class Report
181
- # @private
182
- class Representation < Google::Apis::Core::JsonRepresentation
183
- collection :averages, as: 'averages'
184
- collection :headers, as: 'headers', class: Google::Apis::AdexchangesellerV1::Report::Header, decorator: Google::Apis::AdexchangesellerV1::Report::Header::Representation
185
-
186
- property :kind, as: 'kind'
187
- collection :rows, as: 'rows', :class => Array do
188
- include Representable::JSON::Collection
189
- items
190
- end
191
-
192
- property :total_matched_rows, :numeric_string => true, as: 'totalMatchedRows'
193
- collection :totals, as: 'totals'
194
- collection :warnings, as: 'warnings'
195
- end
196
-
197
- class Header
198
- # @private
199
- class Representation < Google::Apis::Core::JsonRepresentation
200
- property :currency, as: 'currency'
201
- property :name, as: 'name'
202
- property :type, as: 'type'
203
- end
204
- end
205
- end
206
-
207
- class SavedReport
208
- # @private
209
- class Representation < Google::Apis::Core::JsonRepresentation
210
- property :id, as: 'id'
211
- property :kind, as: 'kind'
212
- property :name, as: 'name'
213
- end
214
- end
215
-
216
- class SavedReports
217
- # @private
218
- class Representation < Google::Apis::Core::JsonRepresentation
219
- property :etag, as: 'etag'
220
- collection :items, as: 'items', class: Google::Apis::AdexchangesellerV1::SavedReport, decorator: Google::Apis::AdexchangesellerV1::SavedReport::Representation
221
-
222
- property :kind, as: 'kind'
223
- property :next_page_token, as: 'nextPageToken'
224
- end
225
- end
226
-
227
- class UrlChannel
228
- # @private
229
- class Representation < Google::Apis::Core::JsonRepresentation
230
- property :id, as: 'id'
231
- property :kind, as: 'kind'
232
- property :url_pattern, as: 'urlPattern'
233
- end
234
- end
235
-
236
- class UrlChannels
237
- # @private
238
- class Representation < Google::Apis::Core::JsonRepresentation
239
- property :etag, as: 'etag'
240
- collection :items, as: 'items', class: Google::Apis::AdexchangesellerV1::UrlChannel, decorator: Google::Apis::AdexchangesellerV1::UrlChannel::Representation
241
-
242
- property :kind, as: 'kind'
243
- property :next_page_token, as: 'nextPageToken'
244
- end
245
- end
246
- end
247
- end
248
- end
@@ -1,544 +0,0 @@
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 AdexchangesellerV1
23
- # Ad Exchange Seller API
24
- #
25
- # Accesses the inventory of Ad Exchange seller users and generates reports.
26
- #
27
- # @example
28
- # require 'google/apis/adexchangeseller_v1'
29
- #
30
- # Adexchangeseller = Google::Apis::AdexchangesellerV1 # Alias the module
31
- # service = Adexchangeseller::AdExchangeSellerService.new
32
- #
33
- # @see https://developers.google.com/ad-exchange/seller-rest/
34
- class AdExchangeSellerService < 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
- # An opaque string that represents a user for quota purposes. Must not exceed 40
42
- # characters.
43
- attr_accessor :quota_user
44
-
45
- # @return [String]
46
- # Deprecated. Please use quotaUser instead.
47
- attr_accessor :user_ip
48
-
49
- def initialize
50
- super('https://www.googleapis.com/', 'adexchangeseller/v1/')
51
- @batch_path = 'batch/adexchangeseller/v1'
52
- end
53
-
54
- # List all ad clients in this Ad Exchange account.
55
- # @param [Fixnum] max_results
56
- # The maximum number of ad clients to include in the response, used for paging.
57
- # @param [String] page_token
58
- # A continuation token, used to page through ad clients. To retrieve the next
59
- # page, set this parameter to the value of "nextPageToken" from the previous
60
- # response.
61
- # @param [String] fields
62
- # Selector specifying which fields to include in a partial response.
63
- # @param [String] quota_user
64
- # An opaque string that represents a user for quota purposes. Must not exceed 40
65
- # characters.
66
- # @param [String] user_ip
67
- # Deprecated. Please use quotaUser instead.
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::AdexchangesellerV1::AdClients] parsed result object
73
- # @yieldparam err [StandardError] error object if request failed
74
- #
75
- # @return [Google::Apis::AdexchangesellerV1::AdClients]
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 list_adclients(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
81
- command = make_simple_command(:get, 'adclients', options)
82
- command.response_representation = Google::Apis::AdexchangesellerV1::AdClients::Representation
83
- command.response_class = Google::Apis::AdexchangesellerV1::AdClients
84
- command.query['maxResults'] = max_results unless max_results.nil?
85
- command.query['pageToken'] = page_token unless page_token.nil?
86
- command.query['fields'] = fields unless fields.nil?
87
- command.query['quotaUser'] = quota_user unless quota_user.nil?
88
- command.query['userIp'] = user_ip unless user_ip.nil?
89
- execute_or_queue_command(command, &block)
90
- end
91
-
92
- # Gets the specified ad unit in the specified ad client.
93
- # @param [String] ad_client_id
94
- # Ad client for which to get the ad unit.
95
- # @param [String] ad_unit_id
96
- # Ad unit to retrieve.
97
- # @param [String] fields
98
- # Selector specifying which fields to include in a partial response.
99
- # @param [String] quota_user
100
- # An opaque string that represents a user for quota purposes. Must not exceed 40
101
- # characters.
102
- # @param [String] user_ip
103
- # Deprecated. Please use quotaUser instead.
104
- # @param [Google::Apis::RequestOptions] options
105
- # Request-specific options
106
- #
107
- # @yield [result, err] Result & error if block supplied
108
- # @yieldparam result [Google::Apis::AdexchangesellerV1::AdUnit] parsed result object
109
- # @yieldparam err [StandardError] error object if request failed
110
- #
111
- # @return [Google::Apis::AdexchangesellerV1::AdUnit]
112
- #
113
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
114
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
115
- # @raise [Google::Apis::AuthorizationError] Authorization is required
116
- def get_adunit(ad_client_id, ad_unit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
117
- command = make_simple_command(:get, 'adclients/{adClientId}/adunits/{adUnitId}', options)
118
- command.response_representation = Google::Apis::AdexchangesellerV1::AdUnit::Representation
119
- command.response_class = Google::Apis::AdexchangesellerV1::AdUnit
120
- command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
121
- command.params['adUnitId'] = ad_unit_id unless ad_unit_id.nil?
122
- command.query['fields'] = fields unless fields.nil?
123
- command.query['quotaUser'] = quota_user unless quota_user.nil?
124
- command.query['userIp'] = user_ip unless user_ip.nil?
125
- execute_or_queue_command(command, &block)
126
- end
127
-
128
- # List all ad units in the specified ad client for this Ad Exchange account.
129
- # @param [String] ad_client_id
130
- # Ad client for which to list ad units.
131
- # @param [Boolean] include_inactive
132
- # Whether to include inactive ad units. Default: true.
133
- # @param [Fixnum] max_results
134
- # The maximum number of ad units to include in the response, used for paging.
135
- # @param [String] page_token
136
- # A continuation token, used to page through ad units. To retrieve the next page,
137
- # set this parameter to the value of "nextPageToken" from the previous response.
138
- # @param [String] fields
139
- # Selector specifying which fields to include in a partial response.
140
- # @param [String] quota_user
141
- # An opaque string that represents a user for quota purposes. Must not exceed 40
142
- # characters.
143
- # @param [String] user_ip
144
- # Deprecated. Please use quotaUser instead.
145
- # @param [Google::Apis::RequestOptions] options
146
- # Request-specific options
147
- #
148
- # @yield [result, err] Result & error if block supplied
149
- # @yieldparam result [Google::Apis::AdexchangesellerV1::AdUnits] parsed result object
150
- # @yieldparam err [StandardError] error object if request failed
151
- #
152
- # @return [Google::Apis::AdexchangesellerV1::AdUnits]
153
- #
154
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
155
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
156
- # @raise [Google::Apis::AuthorizationError] Authorization is required
157
- def list_adunits(ad_client_id, include_inactive: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
158
- command = make_simple_command(:get, 'adclients/{adClientId}/adunits', options)
159
- command.response_representation = Google::Apis::AdexchangesellerV1::AdUnits::Representation
160
- command.response_class = Google::Apis::AdexchangesellerV1::AdUnits
161
- command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
162
- command.query['includeInactive'] = include_inactive unless include_inactive.nil?
163
- command.query['maxResults'] = max_results unless max_results.nil?
164
- command.query['pageToken'] = page_token unless page_token.nil?
165
- command.query['fields'] = fields unless fields.nil?
166
- command.query['quotaUser'] = quota_user unless quota_user.nil?
167
- command.query['userIp'] = user_ip unless user_ip.nil?
168
- execute_or_queue_command(command, &block)
169
- end
170
-
171
- # List all custom channels which the specified ad unit belongs to.
172
- # @param [String] ad_client_id
173
- # Ad client which contains the ad unit.
174
- # @param [String] ad_unit_id
175
- # Ad unit for which to list custom channels.
176
- # @param [Fixnum] max_results
177
- # The maximum number of custom channels to include in the response, used for
178
- # paging.
179
- # @param [String] page_token
180
- # A continuation token, used to page through custom channels. To retrieve the
181
- # next page, set this parameter to the value of "nextPageToken" from the
182
- # previous response.
183
- # @param [String] fields
184
- # Selector specifying which fields to include in a partial response.
185
- # @param [String] quota_user
186
- # An opaque string that represents a user for quota purposes. Must not exceed 40
187
- # characters.
188
- # @param [String] user_ip
189
- # Deprecated. Please use quotaUser instead.
190
- # @param [Google::Apis::RequestOptions] options
191
- # Request-specific options
192
- #
193
- # @yield [result, err] Result & error if block supplied
194
- # @yieldparam result [Google::Apis::AdexchangesellerV1::CustomChannels] parsed result object
195
- # @yieldparam err [StandardError] error object if request failed
196
- #
197
- # @return [Google::Apis::AdexchangesellerV1::CustomChannels]
198
- #
199
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
200
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
201
- # @raise [Google::Apis::AuthorizationError] Authorization is required
202
- def list_adunit_customchannels(ad_client_id, ad_unit_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
203
- command = make_simple_command(:get, 'adclients/{adClientId}/adunits/{adUnitId}/customchannels', options)
204
- command.response_representation = Google::Apis::AdexchangesellerV1::CustomChannels::Representation
205
- command.response_class = Google::Apis::AdexchangesellerV1::CustomChannels
206
- command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
207
- command.params['adUnitId'] = ad_unit_id unless ad_unit_id.nil?
208
- command.query['maxResults'] = max_results unless max_results.nil?
209
- command.query['pageToken'] = page_token unless page_token.nil?
210
- command.query['fields'] = fields unless fields.nil?
211
- command.query['quotaUser'] = quota_user unless quota_user.nil?
212
- command.query['userIp'] = user_ip unless user_ip.nil?
213
- execute_or_queue_command(command, &block)
214
- end
215
-
216
- # Get the specified custom channel from the specified ad client.
217
- # @param [String] ad_client_id
218
- # Ad client which contains the custom channel.
219
- # @param [String] custom_channel_id
220
- # Custom channel to retrieve.
221
- # @param [String] fields
222
- # Selector specifying which fields to include in a partial response.
223
- # @param [String] quota_user
224
- # An opaque string that represents a user for quota purposes. Must not exceed 40
225
- # characters.
226
- # @param [String] user_ip
227
- # Deprecated. Please use quotaUser instead.
228
- # @param [Google::Apis::RequestOptions] options
229
- # Request-specific options
230
- #
231
- # @yield [result, err] Result & error if block supplied
232
- # @yieldparam result [Google::Apis::AdexchangesellerV1::CustomChannel] parsed result object
233
- # @yieldparam err [StandardError] error object if request failed
234
- #
235
- # @return [Google::Apis::AdexchangesellerV1::CustomChannel]
236
- #
237
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
238
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
239
- # @raise [Google::Apis::AuthorizationError] Authorization is required
240
- def get_customchannel(ad_client_id, custom_channel_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
241
- command = make_simple_command(:get, 'adclients/{adClientId}/customchannels/{customChannelId}', options)
242
- command.response_representation = Google::Apis::AdexchangesellerV1::CustomChannel::Representation
243
- command.response_class = Google::Apis::AdexchangesellerV1::CustomChannel
244
- command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
245
- command.params['customChannelId'] = custom_channel_id unless custom_channel_id.nil?
246
- command.query['fields'] = fields unless fields.nil?
247
- command.query['quotaUser'] = quota_user unless quota_user.nil?
248
- command.query['userIp'] = user_ip unless user_ip.nil?
249
- execute_or_queue_command(command, &block)
250
- end
251
-
252
- # List all custom channels in the specified ad client for this Ad Exchange
253
- # account.
254
- # @param [String] ad_client_id
255
- # Ad client for which to list custom channels.
256
- # @param [Fixnum] max_results
257
- # The maximum number of custom channels to include in the response, used for
258
- # paging.
259
- # @param [String] page_token
260
- # A continuation token, used to page through custom channels. To retrieve the
261
- # next page, set this parameter to the value of "nextPageToken" from the
262
- # previous response.
263
- # @param [String] fields
264
- # Selector specifying which fields to include in a partial response.
265
- # @param [String] quota_user
266
- # An opaque string that represents a user for quota purposes. Must not exceed 40
267
- # characters.
268
- # @param [String] user_ip
269
- # Deprecated. Please use quotaUser instead.
270
- # @param [Google::Apis::RequestOptions] options
271
- # Request-specific options
272
- #
273
- # @yield [result, err] Result & error if block supplied
274
- # @yieldparam result [Google::Apis::AdexchangesellerV1::CustomChannels] parsed result object
275
- # @yieldparam err [StandardError] error object if request failed
276
- #
277
- # @return [Google::Apis::AdexchangesellerV1::CustomChannels]
278
- #
279
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
280
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
281
- # @raise [Google::Apis::AuthorizationError] Authorization is required
282
- def list_customchannels(ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
283
- command = make_simple_command(:get, 'adclients/{adClientId}/customchannels', options)
284
- command.response_representation = Google::Apis::AdexchangesellerV1::CustomChannels::Representation
285
- command.response_class = Google::Apis::AdexchangesellerV1::CustomChannels
286
- command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
287
- command.query['maxResults'] = max_results unless max_results.nil?
288
- command.query['pageToken'] = page_token unless page_token.nil?
289
- command.query['fields'] = fields unless fields.nil?
290
- command.query['quotaUser'] = quota_user unless quota_user.nil?
291
- command.query['userIp'] = user_ip unless user_ip.nil?
292
- execute_or_queue_command(command, &block)
293
- end
294
-
295
- # List all ad units in the specified custom channel.
296
- # @param [String] ad_client_id
297
- # Ad client which contains the custom channel.
298
- # @param [String] custom_channel_id
299
- # Custom channel for which to list ad units.
300
- # @param [Boolean] include_inactive
301
- # Whether to include inactive ad units. Default: true.
302
- # @param [Fixnum] max_results
303
- # The maximum number of ad units to include in the response, used for paging.
304
- # @param [String] page_token
305
- # A continuation token, used to page through ad units. To retrieve the next page,
306
- # set this parameter to the value of "nextPageToken" from the previous response.
307
- # @param [String] fields
308
- # Selector specifying which fields to include in a partial response.
309
- # @param [String] quota_user
310
- # An opaque string that represents a user for quota purposes. Must not exceed 40
311
- # characters.
312
- # @param [String] user_ip
313
- # Deprecated. Please use quotaUser instead.
314
- # @param [Google::Apis::RequestOptions] options
315
- # Request-specific options
316
- #
317
- # @yield [result, err] Result & error if block supplied
318
- # @yieldparam result [Google::Apis::AdexchangesellerV1::AdUnits] parsed result object
319
- # @yieldparam err [StandardError] error object if request failed
320
- #
321
- # @return [Google::Apis::AdexchangesellerV1::AdUnits]
322
- #
323
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
324
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
325
- # @raise [Google::Apis::AuthorizationError] Authorization is required
326
- def list_customchannel_adunits(ad_client_id, custom_channel_id, include_inactive: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
327
- command = make_simple_command(:get, 'adclients/{adClientId}/customchannels/{customChannelId}/adunits', options)
328
- command.response_representation = Google::Apis::AdexchangesellerV1::AdUnits::Representation
329
- command.response_class = Google::Apis::AdexchangesellerV1::AdUnits
330
- command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
331
- command.params['customChannelId'] = custom_channel_id unless custom_channel_id.nil?
332
- command.query['includeInactive'] = include_inactive unless include_inactive.nil?
333
- command.query['maxResults'] = max_results unless max_results.nil?
334
- command.query['pageToken'] = page_token unless page_token.nil?
335
- command.query['fields'] = fields unless fields.nil?
336
- command.query['quotaUser'] = quota_user unless quota_user.nil?
337
- command.query['userIp'] = user_ip unless user_ip.nil?
338
- execute_or_queue_command(command, &block)
339
- end
340
-
341
- # Generate an Ad Exchange report based on the report request sent in the query
342
- # parameters. Returns the result as JSON; to retrieve output in CSV format
343
- # specify "alt=csv" as a query parameter.
344
- # @param [String] start_date
345
- # Start of the date range to report on in "YYYY-MM-DD" format, inclusive.
346
- # @param [String] end_date
347
- # End of the date range to report on in "YYYY-MM-DD" format, inclusive.
348
- # @param [Array<String>, String] dimension
349
- # Dimensions to base the report on.
350
- # @param [Array<String>, String] filter
351
- # Filters to be run on the report.
352
- # @param [String] locale
353
- # Optional locale to use for translating report output to a local language.
354
- # Defaults to "en_US" if not specified.
355
- # @param [Fixnum] max_results
356
- # The maximum number of rows of report data to return.
357
- # @param [Array<String>, String] metric
358
- # Numeric columns to include in the report.
359
- # @param [Array<String>, String] sort
360
- # The name of a dimension or metric to sort the resulting report on, optionally
361
- # prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is
362
- # specified, the column is sorted ascending.
363
- # @param [Fixnum] start_index
364
- # Index of the first row of report data to return.
365
- # @param [String] fields
366
- # Selector specifying which fields to include in a partial response.
367
- # @param [String] quota_user
368
- # An opaque string that represents a user for quota purposes. Must not exceed 40
369
- # characters.
370
- # @param [String] user_ip
371
- # Deprecated. Please use quotaUser instead.
372
- # @param [IO, String] download_dest
373
- # IO stream or filename to receive content download
374
- # @param [Google::Apis::RequestOptions] options
375
- # Request-specific options
376
- #
377
- # @yield [result, err] Result & error if block supplied
378
- # @yieldparam result [Google::Apis::AdexchangesellerV1::Report] parsed result object
379
- # @yieldparam err [StandardError] error object if request failed
380
- #
381
- # @return [Google::Apis::AdexchangesellerV1::Report]
382
- #
383
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
384
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
385
- # @raise [Google::Apis::AuthorizationError] Authorization is required
386
- def generate_report(start_date, end_date, dimension: nil, filter: nil, locale: nil, max_results: nil, metric: nil, sort: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
387
- if download_dest.nil?
388
- command = make_simple_command(:get, 'reports', options)
389
- else
390
- command = make_download_command(:get, 'reports', options)
391
- command.download_dest = download_dest
392
- end
393
- command.response_representation = Google::Apis::AdexchangesellerV1::Report::Representation
394
- command.response_class = Google::Apis::AdexchangesellerV1::Report
395
- command.query['dimension'] = dimension unless dimension.nil?
396
- command.query['endDate'] = end_date unless end_date.nil?
397
- command.query['filter'] = filter unless filter.nil?
398
- command.query['locale'] = locale unless locale.nil?
399
- command.query['maxResults'] = max_results unless max_results.nil?
400
- command.query['metric'] = metric unless metric.nil?
401
- command.query['sort'] = sort unless sort.nil?
402
- command.query['startDate'] = start_date unless start_date.nil?
403
- command.query['startIndex'] = start_index unless start_index.nil?
404
- command.query['fields'] = fields unless fields.nil?
405
- command.query['quotaUser'] = quota_user unless quota_user.nil?
406
- command.query['userIp'] = user_ip unless user_ip.nil?
407
- execute_or_queue_command(command, &block)
408
- end
409
-
410
- # Generate an Ad Exchange report based on the saved report ID sent in the query
411
- # parameters.
412
- # @param [String] saved_report_id
413
- # The saved report to retrieve.
414
- # @param [String] locale
415
- # Optional locale to use for translating report output to a local language.
416
- # Defaults to "en_US" if not specified.
417
- # @param [Fixnum] max_results
418
- # The maximum number of rows of report data to return.
419
- # @param [Fixnum] start_index
420
- # Index of the first row of report data to return.
421
- # @param [String] fields
422
- # Selector specifying which fields to include in a partial response.
423
- # @param [String] quota_user
424
- # An opaque string that represents a user for quota purposes. Must not exceed 40
425
- # characters.
426
- # @param [String] user_ip
427
- # Deprecated. Please use quotaUser instead.
428
- # @param [Google::Apis::RequestOptions] options
429
- # Request-specific options
430
- #
431
- # @yield [result, err] Result & error if block supplied
432
- # @yieldparam result [Google::Apis::AdexchangesellerV1::Report] parsed result object
433
- # @yieldparam err [StandardError] error object if request failed
434
- #
435
- # @return [Google::Apis::AdexchangesellerV1::Report]
436
- #
437
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
438
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
439
- # @raise [Google::Apis::AuthorizationError] Authorization is required
440
- def generate_report_saved(saved_report_id, locale: nil, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
441
- command = make_simple_command(:get, 'reports/{savedReportId}', options)
442
- command.response_representation = Google::Apis::AdexchangesellerV1::Report::Representation
443
- command.response_class = Google::Apis::AdexchangesellerV1::Report
444
- command.params['savedReportId'] = saved_report_id unless saved_report_id.nil?
445
- command.query['locale'] = locale unless locale.nil?
446
- command.query['maxResults'] = max_results unless max_results.nil?
447
- command.query['startIndex'] = start_index unless start_index.nil?
448
- command.query['fields'] = fields unless fields.nil?
449
- command.query['quotaUser'] = quota_user unless quota_user.nil?
450
- command.query['userIp'] = user_ip unless user_ip.nil?
451
- execute_or_queue_command(command, &block)
452
- end
453
-
454
- # List all saved reports in this Ad Exchange account.
455
- # @param [Fixnum] max_results
456
- # The maximum number of saved reports to include in the response, used for
457
- # paging.
458
- # @param [String] page_token
459
- # A continuation token, used to page through saved reports. To retrieve the next
460
- # page, set this parameter to the value of "nextPageToken" from the previous
461
- # response.
462
- # @param [String] fields
463
- # Selector specifying which fields to include in a partial response.
464
- # @param [String] quota_user
465
- # An opaque string that represents a user for quota purposes. Must not exceed 40
466
- # characters.
467
- # @param [String] user_ip
468
- # Deprecated. Please use quotaUser instead.
469
- # @param [Google::Apis::RequestOptions] options
470
- # Request-specific options
471
- #
472
- # @yield [result, err] Result & error if block supplied
473
- # @yieldparam result [Google::Apis::AdexchangesellerV1::SavedReports] parsed result object
474
- # @yieldparam err [StandardError] error object if request failed
475
- #
476
- # @return [Google::Apis::AdexchangesellerV1::SavedReports]
477
- #
478
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
479
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
480
- # @raise [Google::Apis::AuthorizationError] Authorization is required
481
- def list_report_saveds(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
482
- command = make_simple_command(:get, 'reports/saved', options)
483
- command.response_representation = Google::Apis::AdexchangesellerV1::SavedReports::Representation
484
- command.response_class = Google::Apis::AdexchangesellerV1::SavedReports
485
- command.query['maxResults'] = max_results unless max_results.nil?
486
- command.query['pageToken'] = page_token unless page_token.nil?
487
- command.query['fields'] = fields unless fields.nil?
488
- command.query['quotaUser'] = quota_user unless quota_user.nil?
489
- command.query['userIp'] = user_ip unless user_ip.nil?
490
- execute_or_queue_command(command, &block)
491
- end
492
-
493
- # List all URL channels in the specified ad client for this Ad Exchange account.
494
- # @param [String] ad_client_id
495
- # Ad client for which to list URL channels.
496
- # @param [Fixnum] max_results
497
- # The maximum number of URL channels to include in the response, used for paging.
498
- # @param [String] page_token
499
- # A continuation token, used to page through URL channels. To retrieve the next
500
- # page, set this parameter to the value of "nextPageToken" from the previous
501
- # response.
502
- # @param [String] fields
503
- # Selector specifying which fields to include in a partial response.
504
- # @param [String] quota_user
505
- # An opaque string that represents a user for quota purposes. Must not exceed 40
506
- # characters.
507
- # @param [String] user_ip
508
- # Deprecated. Please use quotaUser instead.
509
- # @param [Google::Apis::RequestOptions] options
510
- # Request-specific options
511
- #
512
- # @yield [result, err] Result & error if block supplied
513
- # @yieldparam result [Google::Apis::AdexchangesellerV1::UrlChannels] parsed result object
514
- # @yieldparam err [StandardError] error object if request failed
515
- #
516
- # @return [Google::Apis::AdexchangesellerV1::UrlChannels]
517
- #
518
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
519
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
520
- # @raise [Google::Apis::AuthorizationError] Authorization is required
521
- def list_urlchannels(ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
522
- command = make_simple_command(:get, 'adclients/{adClientId}/urlchannels', options)
523
- command.response_representation = Google::Apis::AdexchangesellerV1::UrlChannels::Representation
524
- command.response_class = Google::Apis::AdexchangesellerV1::UrlChannels
525
- command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
526
- command.query['maxResults'] = max_results unless max_results.nil?
527
- command.query['pageToken'] = page_token unless page_token.nil?
528
- command.query['fields'] = fields unless fields.nil?
529
- command.query['quotaUser'] = quota_user unless quota_user.nil?
530
- command.query['userIp'] = user_ip unless user_ip.nil?
531
- execute_or_queue_command(command, &block)
532
- end
533
-
534
- protected
535
-
536
- def apply_command_defaults(command)
537
- command.query['key'] = key unless key.nil?
538
- command.query['quotaUser'] = quota_user unless quota_user.nil?
539
- command.query['userIp'] = user_ip unless user_ip.nil?
540
- end
541
- end
542
- end
543
- end
544
- end