@depup/googleapis 178.0.0-depup.0 → 180.0.0-depup.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 (155) hide show
  1. package/README.md +4 -4
  2. package/build/src/apis/accesscontextmanager/v1.d.ts +172 -8
  3. package/build/src/apis/accesscontextmanager/v1.js +83 -0
  4. package/build/src/apis/admin/directory_v1.d.ts +16 -0
  5. package/build/src/apis/agenciesandbrands/index.d.ts +12 -0
  6. package/build/src/apis/agenciesandbrands/index.js +30 -0
  7. package/build/src/apis/agenciesandbrands/v1.d.ts +1139 -0
  8. package/build/src/apis/agenciesandbrands/v1.js +337 -0
  9. package/build/src/apis/agentregistry/v1.d.ts +375 -0
  10. package/build/src/apis/agentregistry/v1.js +108 -0
  11. package/build/src/apis/agentregistry/v1alpha.d.ts +629 -0
  12. package/build/src/apis/agentregistry/v1alpha.js +205 -0
  13. package/build/src/apis/alloydb/v1.d.ts +62 -9
  14. package/build/src/apis/alloydb/v1alpha.d.ts +25 -9
  15. package/build/src/apis/alloydb/v1beta.d.ts +25 -9
  16. package/build/src/apis/analyticsadmin/v1alpha.d.ts +1 -1
  17. package/build/src/apis/analyticsadmin/v1beta.d.ts +1 -1
  18. package/build/src/apis/androidpublisher/v3.d.ts +42 -1
  19. package/build/src/apis/apigateway/v1.d.ts +14 -0
  20. package/build/src/apis/apigateway/v1beta.d.ts +14 -0
  21. package/build/src/apis/apihub/v1.d.ts +5 -0
  22. package/build/src/apis/artifactregistry/v1.d.ts +14 -2
  23. package/build/src/apis/auditmanager/index.d.ts +12 -0
  24. package/build/src/apis/auditmanager/index.js +30 -0
  25. package/build/src/apis/auditmanager/v1.d.ts +3830 -0
  26. package/build/src/apis/auditmanager/v1.js +1576 -0
  27. package/build/src/apis/authorizedbuyersmarketplace/v1alpha.d.ts +18 -7
  28. package/build/src/apis/authorizedbuyersmarketplace/v1beta.d.ts +18 -7
  29. package/build/src/apis/backupdr/index.d.ts +5 -0
  30. package/build/src/apis/backupdr/index.js +4 -1
  31. package/build/src/apis/backupdr/v1beta.d.ts +10301 -0
  32. package/build/src/apis/backupdr/v1beta.js +2664 -0
  33. package/build/src/apis/bigquerydatatransfer/v1.d.ts +33 -0
  34. package/build/src/apis/bigqueryreservation/v1.d.ts +1 -1
  35. package/build/src/apis/ces/v1.d.ts +646 -20
  36. package/build/src/apis/ces/v1.js +130 -0
  37. package/build/src/apis/ces/v1beta.d.ts +646 -20
  38. package/build/src/apis/ces/v1beta.js +130 -0
  39. package/build/src/apis/chat/v1.d.ts +5 -5
  40. package/build/src/apis/chromemanagement/v1.d.ts +485 -0
  41. package/build/src/apis/chromemanagement/v1.js +96 -0
  42. package/build/src/apis/classroom/v1.d.ts +6 -6
  43. package/build/src/apis/cloudbilling/v1.d.ts +1552 -13
  44. package/build/src/apis/cloudbilling/v1.js +350 -0
  45. package/build/src/apis/cloudidentity/v1.d.ts +2 -2
  46. package/build/src/apis/cloudidentity/v1beta1.d.ts +2 -2
  47. package/build/src/apis/cloudkms/v1.d.ts +74 -1
  48. package/build/src/apis/cloudkms/v1.js +32 -0
  49. package/build/src/apis/cloudnumberregistry/v1alpha.d.ts +25 -1
  50. package/build/src/apis/cloudresourcemanager/v1.d.ts +43 -0
  51. package/build/src/apis/cloudresourcemanager/v1beta1.d.ts +44 -0
  52. package/build/src/apis/cloudresourcemanager/v2.d.ts +35 -0
  53. package/build/src/apis/cloudresourcemanager/v2beta1.d.ts +35 -0
  54. package/build/src/apis/cloudresourcemanager/v3.d.ts +42 -0
  55. package/build/src/apis/cloudtasks/v2.d.ts +105 -1
  56. package/build/src/apis/cloudtasks/v2.js +41 -0
  57. package/build/src/apis/cloudtasks/v2beta2.d.ts +1 -1
  58. package/build/src/apis/cloudtasks/v2beta3.d.ts +1 -1
  59. package/build/src/apis/composer/v1.d.ts +7 -0
  60. package/build/src/apis/composer/v1beta1.d.ts +183 -0
  61. package/build/src/apis/composer/v1beta1.js +65 -0
  62. package/build/src/apis/compute/alpha.d.ts +105 -25
  63. package/build/src/apis/compute/beta.d.ts +5356 -407
  64. package/build/src/apis/compute/beta.js +1136 -165
  65. package/build/src/apis/compute/v1.d.ts +637 -1
  66. package/build/src/apis/compute/v1.js +106 -0
  67. package/build/src/apis/contactcenterinsights/v1.d.ts +4 -0
  68. package/build/src/apis/container/v1.d.ts +5 -1
  69. package/build/src/apis/container/v1beta1.d.ts +6 -2
  70. package/build/src/apis/containeranalysis/v1.d.ts +29 -0
  71. package/build/src/apis/containeranalysis/v1alpha1.d.ts +29 -0
  72. package/build/src/apis/containeranalysis/v1beta1.d.ts +29 -0
  73. package/build/src/apis/content/index.d.ts +0 -5
  74. package/build/src/apis/content/index.js +1 -4
  75. package/build/src/apis/curationpartners/index.d.ts +12 -0
  76. package/build/src/apis/curationpartners/index.js +30 -0
  77. package/build/src/apis/curationpartners/v1.d.ts +2706 -0
  78. package/build/src/apis/curationpartners/v1.js +780 -0
  79. package/build/src/apis/dataflow/v1b3.d.ts +18 -0
  80. package/build/src/apis/dataform/v1beta1.d.ts +1 -1
  81. package/build/src/apis/datamanager/v1.d.ts +67 -1640
  82. package/build/src/apis/dataplex/v1.d.ts +14 -0
  83. package/build/src/apis/dataproc/v1.d.ts +5 -1
  84. package/build/src/apis/developerconnect/v1.d.ts +30 -0
  85. package/build/src/apis/developerknowledge/v1.d.ts +1 -1
  86. package/build/src/apis/developerknowledge/v1alpha.d.ts +1 -1
  87. package/build/src/apis/discoveryengine/v1.d.ts +718 -10
  88. package/build/src/apis/discoveryengine/v1.js +198 -0
  89. package/build/src/apis/discoveryengine/v1alpha.d.ts +167 -1191
  90. package/build/src/apis/discoveryengine/v1alpha.js +0 -268
  91. package/build/src/apis/discoveryengine/v1beta.d.ts +489 -3
  92. package/build/src/apis/discoveryengine/v1beta.js +132 -0
  93. package/build/src/apis/displayvideo/v2.d.ts +2 -2
  94. package/build/src/apis/displayvideo/v3.d.ts +3 -3
  95. package/build/src/apis/displayvideo/v4.d.ts +3 -3
  96. package/build/src/apis/dlp/v2.d.ts +18 -16
  97. package/build/src/apis/docs/v1.d.ts +3 -3
  98. package/build/src/apis/drive/v3.d.ts +6 -0
  99. package/build/src/apis/file/v1.d.ts +4 -0
  100. package/build/src/apis/file/v1beta1.d.ts +39 -155
  101. package/build/src/apis/firebaseappcheck/v1.d.ts +118 -0
  102. package/build/src/apis/firebaseappcheck/v1.js +32 -0
  103. package/build/src/apis/firebaseappcheck/v1beta.d.ts +118 -0
  104. package/build/src/apis/firebaseappcheck/v1beta.js +32 -0
  105. package/build/src/apis/firebaseml/v2beta.d.ts +17 -0
  106. package/build/src/apis/firestore/v1.d.ts +1 -1
  107. package/build/src/apis/games/v1.d.ts +0 -4
  108. package/build/src/apis/gkebackup/v1.d.ts +5 -1
  109. package/build/src/apis/health/index.d.ts +5 -0
  110. package/build/src/apis/health/index.js +4 -1
  111. package/build/src/apis/health/v4.d.ts +68 -6
  112. package/build/src/apis/health/v4beta.d.ts +5722 -0
  113. package/build/src/apis/health/v4beta.js +1000 -0
  114. package/build/src/apis/hypercomputecluster/v1.d.ts +7 -0
  115. package/build/src/apis/iam/v1.d.ts +249 -0
  116. package/build/src/apis/iam/v1.js +99 -0
  117. package/build/src/apis/index.d.ts +6 -0
  118. package/build/src/apis/index.js +9 -0
  119. package/build/src/apis/managedkafka/v1.d.ts +77 -1
  120. package/build/src/apis/merchantapi/products_v1.d.ts +9 -1
  121. package/build/src/apis/merchantapi/products_v1beta.d.ts +9 -1
  122. package/build/src/apis/metastore/v1.d.ts +300 -68
  123. package/build/src/apis/metastore/v1alpha.d.ts +5 -88
  124. package/build/src/apis/metastore/v1beta.d.ts +5 -88
  125. package/build/src/apis/mybusinessbusinessinformation/v1.d.ts +5 -5
  126. package/build/src/apis/networksecurity/v1.d.ts +10 -3
  127. package/build/src/apis/networksecurity/v1beta1.d.ts +21 -4
  128. package/build/src/apis/networkservices/v1beta1.d.ts +510 -0
  129. package/build/src/apis/networkservices/v1beta1.js +174 -0
  130. package/build/src/apis/ondemandscanning/v1.d.ts +29 -0
  131. package/build/src/apis/ondemandscanning/v1beta1.d.ts +29 -0
  132. package/build/src/apis/parametermanager/v1.d.ts +24 -0
  133. package/build/src/apis/pubsub/v1.d.ts +23 -0
  134. package/build/src/apis/recaptchaenterprise/v1.d.ts +5 -1
  135. package/build/src/apis/retail/v2alpha.d.ts +16 -11
  136. package/build/src/apis/run/v1.d.ts +1 -1
  137. package/build/src/apis/run/v2.d.ts +62 -12
  138. package/build/src/apis/serviceusage/v1.d.ts +1 -1
  139. package/build/src/apis/serviceusage/v1beta1.d.ts +1 -1
  140. package/build/src/apis/sqladmin/v1.d.ts +1101 -74
  141. package/build/src/apis/sqladmin/v1.js +169 -0
  142. package/build/src/apis/sqladmin/v1beta4.d.ts +1120 -64
  143. package/build/src/apis/sqladmin/v1beta4.js +169 -0
  144. package/build/src/apis/threatintelligence/v1beta.d.ts +77 -17
  145. package/build/src/apis/webcontentpublisher/v1.d.ts +11 -21
  146. package/build/src/apis/workstations/v1.d.ts +108 -2
  147. package/build/src/apis/workstations/v1.js +33 -0
  148. package/build/src/apis/workstations/v1beta.d.ts +9 -2
  149. package/build/src/apis/youtube/v3.d.ts +1 -0
  150. package/build/src/index.d.ts +5 -1
  151. package/build/src/index.js +571 -563
  152. package/changes.json +3 -3
  153. package/package.json +8 -8
  154. package/build/src/apis/content/v2.1.d.ts +0 -17798
  155. package/build/src/apis/content/v2.1.js +0 -4348
@@ -0,0 +1,1139 @@
1
+ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
2
+ import { Readable } from 'stream';
3
+ export declare namespace agenciesandbrands_v1 {
4
+ export interface Options extends GlobalOptions {
5
+ version: 'v1';
6
+ }
7
+ interface StandardParameters {
8
+ /**
9
+ * Auth client or API Key for the request
10
+ */
11
+ auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient | BaseExternalAccountClient | GoogleAuth;
12
+ /**
13
+ * V1 error format.
14
+ */
15
+ '$.xgafv'?: string;
16
+ /**
17
+ * OAuth access token.
18
+ */
19
+ access_token?: string;
20
+ /**
21
+ * Data format for response.
22
+ */
23
+ alt?: string;
24
+ /**
25
+ * JSONP
26
+ */
27
+ callback?: string;
28
+ /**
29
+ * Selector specifying which fields to include in a partial response.
30
+ */
31
+ fields?: string;
32
+ /**
33
+ * API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
34
+ */
35
+ key?: string;
36
+ /**
37
+ * OAuth 2.0 token for the current user.
38
+ */
39
+ oauth_token?: string;
40
+ /**
41
+ * Returns response with indentations and line breaks.
42
+ */
43
+ prettyPrint?: boolean;
44
+ /**
45
+ * Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
46
+ */
47
+ quotaUser?: string;
48
+ /**
49
+ * Legacy upload protocol for media (e.g. "media", "multipart").
50
+ */
51
+ uploadType?: string;
52
+ /**
53
+ * Upload protocol for media (e.g. "raw", "multipart").
54
+ */
55
+ upload_protocol?: string;
56
+ }
57
+ /**
58
+ * Agencies and Brands API
59
+ *
60
+ * Agencies and brands API is an externally available HTTP API for ad agencies and brands to programmatically manage their deals and spending with Google Ad Manager publishers.
61
+ *
62
+ * @example
63
+ * ```js
64
+ * const {google} = require('googleapis');
65
+ * const agenciesandbrands = google.agenciesandbrands('v1');
66
+ * ```
67
+ */
68
+ export class Agenciesandbrands {
69
+ context: APIRequestContext;
70
+ agencies: Resource$Agencies;
71
+ constructor(options: GlobalOptions, google?: GoogleConfigurable);
72
+ }
73
+ /**
74
+ * Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
75
+ */
76
+ export interface Schema$Date {
77
+ /**
78
+ * Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
79
+ */
80
+ day?: number | null;
81
+ /**
82
+ * Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
83
+ */
84
+ month?: number | null;
85
+ /**
86
+ * Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
87
+ */
88
+ year?: number | null;
89
+ }
90
+ /**
91
+ * A date range for a report.
92
+ */
93
+ export interface Schema$DateRange {
94
+ /**
95
+ * A fixed date range.
96
+ */
97
+ fixed?: Schema$FixedDateRange;
98
+ /**
99
+ * A relative date range.
100
+ */
101
+ relative?: string | null;
102
+ }
103
+ /**
104
+ * A list of double values.
105
+ */
106
+ export interface Schema$DoubleList {
107
+ /**
108
+ * The values
109
+ */
110
+ values?: number[] | null;
111
+ }
112
+ /**
113
+ * A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \}
114
+ */
115
+ export interface Schema$Empty {
116
+ }
117
+ /**
118
+ * The response message for the fetch report result rows endpoint.
119
+ */
120
+ export interface Schema$FetchReportResultRowsResponse {
121
+ /**
122
+ * The computed fixed date ranges this report includes. Only returned with the first page of results (when page_token is not included in the request).
123
+ */
124
+ dateRanges?: Schema$FixedDateRange[];
125
+ /**
126
+ * A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
127
+ */
128
+ nextPageToken?: string | null;
129
+ /**
130
+ * Up to `page_size` rows of report data.
131
+ */
132
+ rows?: Schema$Row[];
133
+ /**
134
+ * The time at which the report was scheduled to run. For non-scheduled reports, this is the time at which the report was requested to be run.
135
+ */
136
+ runTime?: string | null;
137
+ /**
138
+ * The total number of rows available from this report. Useful for pagination. Only returned with the first page of results (when page_token is not included in the request).
139
+ */
140
+ totalRowCount?: number | null;
141
+ }
142
+ /**
143
+ * A dimension or a metric in a report.
144
+ */
145
+ export interface Schema$Field {
146
+ /**
147
+ * The dimension this field represents.
148
+ */
149
+ dimension?: string | null;
150
+ /**
151
+ * The metric this field represents.
152
+ */
153
+ metric?: string | null;
154
+ }
155
+ /**
156
+ * A filter on a specific field.
157
+ */
158
+ export interface Schema$FieldFilter {
159
+ /**
160
+ * Required. The field to filter on.
161
+ */
162
+ field?: Schema$Field;
163
+ /**
164
+ * Required. The operation of this filter.
165
+ */
166
+ operation?: string | null;
167
+ /**
168
+ * Required. Values to filter to.
169
+ */
170
+ values?: Schema$ReportValue[];
171
+ }
172
+ /**
173
+ * A filter over one or more fields.
174
+ */
175
+ export interface Schema$Filter {
176
+ /**
177
+ * A list of filters whose results are AND-ed.
178
+ */
179
+ andFilter?: Schema$FilterList;
180
+ /**
181
+ * A filter on a single field.
182
+ */
183
+ fieldFilter?: Schema$FieldFilter;
184
+ /**
185
+ * A filter whose result is negated.
186
+ */
187
+ notFilter?: Schema$Filter;
188
+ /**
189
+ * A list of filters whose results are OR-ed.
190
+ */
191
+ orFilter?: Schema$FilterList;
192
+ }
193
+ /**
194
+ * A list of filters.
195
+ */
196
+ export interface Schema$FilterList {
197
+ /**
198
+ * Required. A list of filters.
199
+ */
200
+ filters?: Schema$Filter[];
201
+ }
202
+ /**
203
+ * A date range between two fixed dates (inclusive of end date).
204
+ */
205
+ export interface Schema$FixedDateRange {
206
+ /**
207
+ * Required. The end date (inclusive) of this date range.
208
+ */
209
+ endDate?: Schema$Date;
210
+ /**
211
+ * Required. The start date of this date range.
212
+ */
213
+ startDate?: Schema$Date;
214
+ }
215
+ /**
216
+ * A list of integer values.
217
+ */
218
+ export interface Schema$IntList {
219
+ /**
220
+ * The values
221
+ */
222
+ values?: string[] | null;
223
+ }
224
+ /**
225
+ * Response object for `ListReportsResponse` containing matching `Report` objects.
226
+ */
227
+ export interface Schema$ListReportsResponse {
228
+ /**
229
+ * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
230
+ */
231
+ nextPageToken?: string | null;
232
+ /**
233
+ * The `Report` objects from the specified network.
234
+ */
235
+ reports?: Schema$Report[];
236
+ /**
237
+ * Total number of `Report` objects. If a filter was included in the request, this reflects the total number after the filtering is applied. `total_size` won't be calculated in the response unless it has been included in a response field mask. The response field mask can be provided to the method by using the URL parameter `$fields` or `fields`, or by using the HTTP/gRPC header `X-Goog-FieldMask`. For more information, see https://developers.google.com/ad-manager/api/beta/field-masks
238
+ */
239
+ totalSize?: number | null;
240
+ }
241
+ /**
242
+ * Contains all metric values requested for a single date range and set of column dimension values (returned in the columns field of the response). The order of the metrics in each field corresponds to the order of the metrics specified in the request.
243
+ */
244
+ export interface Schema$MetricValueGroup {
245
+ /**
246
+ * Data for the PRIMARY MetricValueType.
247
+ */
248
+ primaryValues?: Schema$ReportValue[];
249
+ }
250
+ /**
251
+ * This resource represents a long-running operation that is the result of a network API call.
252
+ */
253
+ export interface Schema$Operation {
254
+ /**
255
+ * If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
256
+ */
257
+ done?: boolean | null;
258
+ /**
259
+ * The error result of the operation in case of failure or cancellation.
260
+ */
261
+ error?: Schema$Status;
262
+ /**
263
+ * Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
264
+ */
265
+ metadata?: {
266
+ [key: string]: any;
267
+ } | null;
268
+ /**
269
+ * The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id\}`.
270
+ */
271
+ name?: string | null;
272
+ /**
273
+ * The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
274
+ */
275
+ response?: {
276
+ [key: string]: any;
277
+ } | null;
278
+ }
279
+ /**
280
+ * The `Report` resource.
281
+ */
282
+ export interface Schema$Report {
283
+ /**
284
+ * Output only. The instant this report was created.
285
+ */
286
+ createTime?: string | null;
287
+ /**
288
+ * Optional. Display name for the report.
289
+ */
290
+ displayName?: string | null;
291
+ /**
292
+ * Output only. The locale of this report. Locale is set from the user's locale at the time of the request. Locale can't be modified.
293
+ */
294
+ locale?: string | null;
295
+ /**
296
+ * Identifier. The resource name of the report. Report resource name have the form: `agencies/{account_id\}/reports/{report_id\}`
297
+ */
298
+ name?: string | null;
299
+ /**
300
+ * Required. The report definition of the report.
301
+ */
302
+ reportDefinition?: Schema$ReportDefinition;
303
+ /**
304
+ * Output only. Report ID.
305
+ */
306
+ reportId?: string | null;
307
+ /**
308
+ * Output only. The instant this report was last modified.
309
+ */
310
+ updateTime?: string | null;
311
+ }
312
+ /**
313
+ * The definition of how a report should be run.
314
+ */
315
+ export interface Schema$ReportDefinition {
316
+ /**
317
+ * Optional. The ISO 4217 currency code for this report. Defaults to account currency code if not specified.
318
+ */
319
+ currencyCode?: string | null;
320
+ /**
321
+ * Required. The primary date range of this report.
322
+ */
323
+ dateRange?: Schema$DateRange;
324
+ /**
325
+ * Required. The list of dimensions to report on. If empty, the report will have no dimensions, and any metrics will be totals.
326
+ */
327
+ dimensions?: string[] | null;
328
+ /**
329
+ * Optional. The filters for this report.
330
+ */
331
+ filters?: Schema$Filter[];
332
+ /**
333
+ * Required. The list of metrics to report on. If empty, the report will have no metrics.
334
+ */
335
+ metrics?: string[] | null;
336
+ /**
337
+ * Optional. Default sorts to apply to this report.
338
+ */
339
+ sorts?: Schema$Sort[];
340
+ /**
341
+ * Optional. If time_zone_source is PROVIDED, this is the time zone to use for this report. Leave empty for any other time zone source. Time zone in IANA format. For example, "America/New_York".
342
+ */
343
+ timeZone?: string | null;
344
+ /**
345
+ * Optional. Where to get the time zone for this report. Defaults to using the Pacific time zone (PT). If source is PROVIDED, the time_zone field in the report definition must also set a time zone.
346
+ */
347
+ timeZoneSource?: string | null;
348
+ }
349
+ /**
350
+ * Represents a single value in a report.
351
+ */
352
+ export interface Schema$ReportValue {
353
+ /**
354
+ * For boolean values.
355
+ */
356
+ boolValue?: boolean | null;
357
+ /**
358
+ * For bytes values.
359
+ */
360
+ bytesValue?: string | null;
361
+ /**
362
+ * For lists of double values.
363
+ */
364
+ doubleListValue?: Schema$DoubleList;
365
+ /**
366
+ * For double values.
367
+ */
368
+ doubleValue?: number | null;
369
+ /**
370
+ * For lists of integer values.
371
+ */
372
+ intListValue?: Schema$IntList;
373
+ /**
374
+ * For integer values.
375
+ */
376
+ intValue?: string | null;
377
+ /**
378
+ * For lists of string values.
379
+ */
380
+ stringListValue?: Schema$StringList;
381
+ /**
382
+ * For string values.
383
+ */
384
+ stringValue?: string | null;
385
+ }
386
+ /**
387
+ * A row of report data.
388
+ */
389
+ export interface Schema$Row {
390
+ /**
391
+ * The order of the dimension values is the same as the order of the dimensions specified in the request.
392
+ */
393
+ dimensionValues?: Schema$ReportValue[];
394
+ /**
395
+ * The length of the metric_value_groups field will be equal to the length of the date_ranges field in the fetch response. The metric_value_groups field is ordered such that each index corresponds to the date_range at the same index. For example, given date_ranges [x, y], metric_value_groups will have a length of two. The first entry in metric_value_groups represents the metrics for date x and the second entry in metric_value_groups represents the metrics for date y.
396
+ */
397
+ metricValueGroups?: Schema$MetricValueGroup[];
398
+ }
399
+ /**
400
+ * `RunReport` operation metadata.
401
+ */
402
+ export interface Schema$RunReportMetadata {
403
+ /**
404
+ * An estimate of how close this report is to being completed. Will always be 100 for failed and completed reports.
405
+ */
406
+ percentComplete?: number | null;
407
+ /**
408
+ * The result's parent report.
409
+ */
410
+ report?: string | null;
411
+ }
412
+ /**
413
+ * Request message for a running a report.
414
+ */
415
+ export interface Schema$RunReportRequest {
416
+ }
417
+ /**
418
+ * Response message for a completed `RunReport` operation.
419
+ */
420
+ export interface Schema$RunReportResponse {
421
+ /**
422
+ * The unique name of the generated result. Use with `FetchReportResultRows` to retrieve data.
423
+ */
424
+ reportResult?: string | null;
425
+ }
426
+ /**
427
+ * Represents a sorting in a report.
428
+ */
429
+ export interface Schema$Sort {
430
+ /**
431
+ * Optional. The sort order. If true the sort will be descending.
432
+ */
433
+ descending?: boolean | null;
434
+ /**
435
+ * Required. A field (dimension or metric) to sort by.
436
+ */
437
+ field?: Schema$Field;
438
+ }
439
+ /**
440
+ * The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).
441
+ */
442
+ export interface Schema$Status {
443
+ /**
444
+ * The status code, which should be an enum value of google.rpc.Code.
445
+ */
446
+ code?: number | null;
447
+ /**
448
+ * A list of messages that carry the error details. There is a common set of message types for APIs to use.
449
+ */
450
+ details?: Array<{
451
+ [key: string]: any;
452
+ }> | null;
453
+ /**
454
+ * A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
455
+ */
456
+ message?: string | null;
457
+ }
458
+ /**
459
+ * A list of string values.
460
+ */
461
+ export interface Schema$StringList {
462
+ /**
463
+ * The values
464
+ */
465
+ values?: string[] | null;
466
+ }
467
+ export class Resource$Agencies {
468
+ context: APIRequestContext;
469
+ reports: Resource$Agencies$Reports;
470
+ constructor(context: APIRequestContext);
471
+ }
472
+ export class Resource$Agencies$Reports {
473
+ context: APIRequestContext;
474
+ operations: Resource$Agencies$Reports$Operations;
475
+ results: Resource$Agencies$Reports$Results;
476
+ constructor(context: APIRequestContext);
477
+ /**
478
+ * Creates a `Report` object.
479
+ * @example
480
+ * ```js
481
+ * // Before running the sample:
482
+ * // - Enable the API at:
483
+ * // https://console.developers.google.com/apis/api/agenciesandbrands.googleapis.com
484
+ * // - Login into gcloud by running:
485
+ * // ```sh
486
+ * // $ gcloud auth application-default login
487
+ * // ```
488
+ * // - Install the npm module by running:
489
+ * // ```sh
490
+ * // $ npm install googleapis
491
+ * // ```
492
+ *
493
+ * const {google} = require('googleapis');
494
+ * const agenciesandbrands = google.agenciesandbrands('v1');
495
+ *
496
+ * async function main() {
497
+ * const auth = new google.auth.GoogleAuth({
498
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
499
+ * scopes: ['https://www.googleapis.com/auth/agencies-and-brands'],
500
+ * });
501
+ *
502
+ * // Acquire an auth client, and bind it to all future calls
503
+ * const authClient = await auth.getClient();
504
+ * google.options({auth: authClient});
505
+ *
506
+ * // Do the magic
507
+ * const res = await agenciesandbrands.agencies.reports.create({
508
+ * // Required. The parent resource where this `Report` will be created. Format: `agencies/{account_id\}`
509
+ * parent: 'agencies/my-agencie',
510
+ *
511
+ * // Request body metadata
512
+ * requestBody: {
513
+ * // request body parameters
514
+ * // {
515
+ * // "createTime": "my_createTime",
516
+ * // "displayName": "my_displayName",
517
+ * // "locale": "my_locale",
518
+ * // "name": "my_name",
519
+ * // "reportDefinition": {},
520
+ * // "reportId": "my_reportId",
521
+ * // "updateTime": "my_updateTime"
522
+ * // }
523
+ * },
524
+ * });
525
+ * console.log(res.data);
526
+ *
527
+ * // Example response
528
+ * // {
529
+ * // "createTime": "my_createTime",
530
+ * // "displayName": "my_displayName",
531
+ * // "locale": "my_locale",
532
+ * // "name": "my_name",
533
+ * // "reportDefinition": {},
534
+ * // "reportId": "my_reportId",
535
+ * // "updateTime": "my_updateTime"
536
+ * // }
537
+ * }
538
+ *
539
+ * main().catch(e => {
540
+ * console.error(e);
541
+ * throw e;
542
+ * });
543
+ *
544
+ * ```
545
+ *
546
+ * @param params - Parameters for request
547
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
548
+ * @param callback - Optional callback that handles the response.
549
+ * @returns A promise if used with async/await, or void if used with a callback.
550
+ */
551
+ create(params: Params$Resource$Agencies$Reports$Create, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
552
+ create(params?: Params$Resource$Agencies$Reports$Create, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Report>>;
553
+ create(params: Params$Resource$Agencies$Reports$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
554
+ create(params: Params$Resource$Agencies$Reports$Create, options: MethodOptions | BodyResponseCallback<Schema$Report>, callback: BodyResponseCallback<Schema$Report>): void;
555
+ create(params: Params$Resource$Agencies$Reports$Create, callback: BodyResponseCallback<Schema$Report>): void;
556
+ create(callback: BodyResponseCallback<Schema$Report>): void;
557
+ /**
558
+ * Deletes a `Report` object.
559
+ * @example
560
+ * ```js
561
+ * // Before running the sample:
562
+ * // - Enable the API at:
563
+ * // https://console.developers.google.com/apis/api/agenciesandbrands.googleapis.com
564
+ * // - Login into gcloud by running:
565
+ * // ```sh
566
+ * // $ gcloud auth application-default login
567
+ * // ```
568
+ * // - Install the npm module by running:
569
+ * // ```sh
570
+ * // $ npm install googleapis
571
+ * // ```
572
+ *
573
+ * const {google} = require('googleapis');
574
+ * const agenciesandbrands = google.agenciesandbrands('v1');
575
+ *
576
+ * async function main() {
577
+ * const auth = new google.auth.GoogleAuth({
578
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
579
+ * scopes: ['https://www.googleapis.com/auth/agencies-and-brands'],
580
+ * });
581
+ *
582
+ * // Acquire an auth client, and bind it to all future calls
583
+ * const authClient = await auth.getClient();
584
+ * google.options({auth: authClient});
585
+ *
586
+ * // Do the magic
587
+ * const res = await agenciesandbrands.agencies.reports.delete({
588
+ * // Required. Resource name of the report to delete. Format: `agencies/{account_id\}/reports/{report_id\}`
589
+ * name: 'agencies/my-agencie/reports/my-report',
590
+ * });
591
+ * console.log(res.data);
592
+ *
593
+ * // Example response
594
+ * // {}
595
+ * }
596
+ *
597
+ * main().catch(e => {
598
+ * console.error(e);
599
+ * throw e;
600
+ * });
601
+ *
602
+ * ```
603
+ *
604
+ * @param params - Parameters for request
605
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
606
+ * @param callback - Optional callback that handles the response.
607
+ * @returns A promise if used with async/await, or void if used with a callback.
608
+ */
609
+ delete(params: Params$Resource$Agencies$Reports$Delete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
610
+ delete(params?: Params$Resource$Agencies$Reports$Delete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
611
+ delete(params: Params$Resource$Agencies$Reports$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
612
+ delete(params: Params$Resource$Agencies$Reports$Delete, options: MethodOptions | BodyResponseCallback<Schema$Empty>, callback: BodyResponseCallback<Schema$Empty>): void;
613
+ delete(params: Params$Resource$Agencies$Reports$Delete, callback: BodyResponseCallback<Schema$Empty>): void;
614
+ delete(callback: BodyResponseCallback<Schema$Empty>): void;
615
+ /**
616
+ * Retrieves a `Report` object.
617
+ * @example
618
+ * ```js
619
+ * // Before running the sample:
620
+ * // - Enable the API at:
621
+ * // https://console.developers.google.com/apis/api/agenciesandbrands.googleapis.com
622
+ * // - Login into gcloud by running:
623
+ * // ```sh
624
+ * // $ gcloud auth application-default login
625
+ * // ```
626
+ * // - Install the npm module by running:
627
+ * // ```sh
628
+ * // $ npm install googleapis
629
+ * // ```
630
+ *
631
+ * const {google} = require('googleapis');
632
+ * const agenciesandbrands = google.agenciesandbrands('v1');
633
+ *
634
+ * async function main() {
635
+ * const auth = new google.auth.GoogleAuth({
636
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
637
+ * scopes: ['https://www.googleapis.com/auth/agencies-and-brands'],
638
+ * });
639
+ *
640
+ * // Acquire an auth client, and bind it to all future calls
641
+ * const authClient = await auth.getClient();
642
+ * google.options({auth: authClient});
643
+ *
644
+ * // Do the magic
645
+ * const res = await agenciesandbrands.agencies.reports.get({
646
+ * // Required. The resource name of the report. Format: `agencies/{account_id\}/reports/{report_id\}`
647
+ * name: 'agencies/my-agencie/reports/my-report',
648
+ * });
649
+ * console.log(res.data);
650
+ *
651
+ * // Example response
652
+ * // {
653
+ * // "createTime": "my_createTime",
654
+ * // "displayName": "my_displayName",
655
+ * // "locale": "my_locale",
656
+ * // "name": "my_name",
657
+ * // "reportDefinition": {},
658
+ * // "reportId": "my_reportId",
659
+ * // "updateTime": "my_updateTime"
660
+ * // }
661
+ * }
662
+ *
663
+ * main().catch(e => {
664
+ * console.error(e);
665
+ * throw e;
666
+ * });
667
+ *
668
+ * ```
669
+ *
670
+ * @param params - Parameters for request
671
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
672
+ * @param callback - Optional callback that handles the response.
673
+ * @returns A promise if used with async/await, or void if used with a callback.
674
+ */
675
+ get(params: Params$Resource$Agencies$Reports$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
676
+ get(params?: Params$Resource$Agencies$Reports$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Report>>;
677
+ get(params: Params$Resource$Agencies$Reports$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
678
+ get(params: Params$Resource$Agencies$Reports$Get, options: MethodOptions | BodyResponseCallback<Schema$Report>, callback: BodyResponseCallback<Schema$Report>): void;
679
+ get(params: Params$Resource$Agencies$Reports$Get, callback: BodyResponseCallback<Schema$Report>): void;
680
+ get(callback: BodyResponseCallback<Schema$Report>): void;
681
+ /**
682
+ * Lists `Report` objects.
683
+ * @example
684
+ * ```js
685
+ * // Before running the sample:
686
+ * // - Enable the API at:
687
+ * // https://console.developers.google.com/apis/api/agenciesandbrands.googleapis.com
688
+ * // - Login into gcloud by running:
689
+ * // ```sh
690
+ * // $ gcloud auth application-default login
691
+ * // ```
692
+ * // - Install the npm module by running:
693
+ * // ```sh
694
+ * // $ npm install googleapis
695
+ * // ```
696
+ *
697
+ * const {google} = require('googleapis');
698
+ * const agenciesandbrands = google.agenciesandbrands('v1');
699
+ *
700
+ * async function main() {
701
+ * const auth = new google.auth.GoogleAuth({
702
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
703
+ * scopes: ['https://www.googleapis.com/auth/agencies-and-brands'],
704
+ * });
705
+ *
706
+ * // Acquire an auth client, and bind it to all future calls
707
+ * const authClient = await auth.getClient();
708
+ * google.options({auth: authClient});
709
+ *
710
+ * // Do the magic
711
+ * const res = await agenciesandbrands.agencies.reports.list({
712
+ * // Optional. Expression to filter the response. See syntax details at https://developers.google.com/ad-manager/api/beta/filters
713
+ * filter: 'placeholder-value',
714
+ * // Optional. Expression to specify sorting order. See syntax details at https://developers.google.com/ad-manager/api/beta/filters#order
715
+ * orderBy: 'placeholder-value',
716
+ * // Optional. The maximum number of `Reports` to return. The service may return fewer than this value. If unspecified, at most 50 `Reports` will be returned. The maximum value is 1000; values greater than 1000 will be coerced to 1000.
717
+ * pageSize: 'placeholder-value',
718
+ * // Optional. A page token, received from a previous `ListReports` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListReports` must match the call that provided the page token.
719
+ * pageToken: 'placeholder-value',
720
+ * // Required. The parent, which owns this collection of reports. Format: `agencies/{account_id\}`
721
+ * parent: 'agencies/my-agencie',
722
+ * // Optional. Number of individual resources to skip while paginating.
723
+ * skip: 'placeholder-value',
724
+ * });
725
+ * console.log(res.data);
726
+ *
727
+ * // Example response
728
+ * // {
729
+ * // "nextPageToken": "my_nextPageToken",
730
+ * // "reports": [],
731
+ * // "totalSize": 0
732
+ * // }
733
+ * }
734
+ *
735
+ * main().catch(e => {
736
+ * console.error(e);
737
+ * throw e;
738
+ * });
739
+ *
740
+ * ```
741
+ *
742
+ * @param params - Parameters for request
743
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
744
+ * @param callback - Optional callback that handles the response.
745
+ * @returns A promise if used with async/await, or void if used with a callback.
746
+ */
747
+ list(params: Params$Resource$Agencies$Reports$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
748
+ list(params?: Params$Resource$Agencies$Reports$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListReportsResponse>>;
749
+ list(params: Params$Resource$Agencies$Reports$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
750
+ list(params: Params$Resource$Agencies$Reports$List, options: MethodOptions | BodyResponseCallback<Schema$ListReportsResponse>, callback: BodyResponseCallback<Schema$ListReportsResponse>): void;
751
+ list(params: Params$Resource$Agencies$Reports$List, callback: BodyResponseCallback<Schema$ListReportsResponse>): void;
752
+ list(callback: BodyResponseCallback<Schema$ListReportsResponse>): void;
753
+ /**
754
+ * Updates a `Report` object.
755
+ * @example
756
+ * ```js
757
+ * // Before running the sample:
758
+ * // - Enable the API at:
759
+ * // https://console.developers.google.com/apis/api/agenciesandbrands.googleapis.com
760
+ * // - Login into gcloud by running:
761
+ * // ```sh
762
+ * // $ gcloud auth application-default login
763
+ * // ```
764
+ * // - Install the npm module by running:
765
+ * // ```sh
766
+ * // $ npm install googleapis
767
+ * // ```
768
+ *
769
+ * const {google} = require('googleapis');
770
+ * const agenciesandbrands = google.agenciesandbrands('v1');
771
+ *
772
+ * async function main() {
773
+ * const auth = new google.auth.GoogleAuth({
774
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
775
+ * scopes: ['https://www.googleapis.com/auth/agencies-and-brands'],
776
+ * });
777
+ *
778
+ * // Acquire an auth client, and bind it to all future calls
779
+ * const authClient = await auth.getClient();
780
+ * google.options({auth: authClient});
781
+ *
782
+ * // Do the magic
783
+ * const res = await agenciesandbrands.agencies.reports.patch({
784
+ * // Identifier. The resource name of the report. Report resource name have the form: `agencies/{account_id\}/reports/{report_id\}`
785
+ * name: 'agencies/my-agencie/reports/my-report',
786
+ * // Optional. The list of fields to update.
787
+ * updateMask: 'placeholder-value',
788
+ *
789
+ * // Request body metadata
790
+ * requestBody: {
791
+ * // request body parameters
792
+ * // {
793
+ * // "createTime": "my_createTime",
794
+ * // "displayName": "my_displayName",
795
+ * // "locale": "my_locale",
796
+ * // "name": "my_name",
797
+ * // "reportDefinition": {},
798
+ * // "reportId": "my_reportId",
799
+ * // "updateTime": "my_updateTime"
800
+ * // }
801
+ * },
802
+ * });
803
+ * console.log(res.data);
804
+ *
805
+ * // Example response
806
+ * // {
807
+ * // "createTime": "my_createTime",
808
+ * // "displayName": "my_displayName",
809
+ * // "locale": "my_locale",
810
+ * // "name": "my_name",
811
+ * // "reportDefinition": {},
812
+ * // "reportId": "my_reportId",
813
+ * // "updateTime": "my_updateTime"
814
+ * // }
815
+ * }
816
+ *
817
+ * main().catch(e => {
818
+ * console.error(e);
819
+ * throw e;
820
+ * });
821
+ *
822
+ * ```
823
+ *
824
+ * @param params - Parameters for request
825
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
826
+ * @param callback - Optional callback that handles the response.
827
+ * @returns A promise if used with async/await, or void if used with a callback.
828
+ */
829
+ patch(params: Params$Resource$Agencies$Reports$Patch, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
830
+ patch(params?: Params$Resource$Agencies$Reports$Patch, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Report>>;
831
+ patch(params: Params$Resource$Agencies$Reports$Patch, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
832
+ patch(params: Params$Resource$Agencies$Reports$Patch, options: MethodOptions | BodyResponseCallback<Schema$Report>, callback: BodyResponseCallback<Schema$Report>): void;
833
+ patch(params: Params$Resource$Agencies$Reports$Patch, callback: BodyResponseCallback<Schema$Report>): void;
834
+ patch(callback: BodyResponseCallback<Schema$Report>): void;
835
+ /**
836
+ * Initiates the execution of an existing report asynchronously. Users can get the report by polling this operation using `OperationsService.GetOperation`. Poll every 5 seconds initially, with an exponential backoff. Once a report is complete, the operation will contain a `RunReportResponse` in its response field containing a report_result that can be passed to the `FetchReportResultRows` method to retrieve the report data.
837
+ * @example
838
+ * ```js
839
+ * // Before running the sample:
840
+ * // - Enable the API at:
841
+ * // https://console.developers.google.com/apis/api/agenciesandbrands.googleapis.com
842
+ * // - Login into gcloud by running:
843
+ * // ```sh
844
+ * // $ gcloud auth application-default login
845
+ * // ```
846
+ * // - Install the npm module by running:
847
+ * // ```sh
848
+ * // $ npm install googleapis
849
+ * // ```
850
+ *
851
+ * const {google} = require('googleapis');
852
+ * const agenciesandbrands = google.agenciesandbrands('v1');
853
+ *
854
+ * async function main() {
855
+ * const auth = new google.auth.GoogleAuth({
856
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
857
+ * scopes: ['https://www.googleapis.com/auth/agencies-and-brands'],
858
+ * });
859
+ *
860
+ * // Acquire an auth client, and bind it to all future calls
861
+ * const authClient = await auth.getClient();
862
+ * google.options({auth: authClient});
863
+ *
864
+ * // Do the magic
865
+ * const res = await agenciesandbrands.agencies.reports.run({
866
+ * // Required. The report to run. Format: `agencies/{account_id\}/reports/{report_id\}`
867
+ * name: 'agencies/my-agencie/reports/my-report',
868
+ *
869
+ * // Request body metadata
870
+ * requestBody: {
871
+ * // request body parameters
872
+ * // {}
873
+ * },
874
+ * });
875
+ * console.log(res.data);
876
+ *
877
+ * // Example response
878
+ * // {
879
+ * // "done": false,
880
+ * // "error": {},
881
+ * // "metadata": {},
882
+ * // "name": "my_name",
883
+ * // "response": {}
884
+ * // }
885
+ * }
886
+ *
887
+ * main().catch(e => {
888
+ * console.error(e);
889
+ * throw e;
890
+ * });
891
+ *
892
+ * ```
893
+ *
894
+ * @param params - Parameters for request
895
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
896
+ * @param callback - Optional callback that handles the response.
897
+ * @returns A promise if used with async/await, or void if used with a callback.
898
+ */
899
+ run(params: Params$Resource$Agencies$Reports$Run, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
900
+ run(params?: Params$Resource$Agencies$Reports$Run, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
901
+ run(params: Params$Resource$Agencies$Reports$Run, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
902
+ run(params: Params$Resource$Agencies$Reports$Run, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
903
+ run(params: Params$Resource$Agencies$Reports$Run, callback: BodyResponseCallback<Schema$Operation>): void;
904
+ run(callback: BodyResponseCallback<Schema$Operation>): void;
905
+ }
906
+ export interface Params$Resource$Agencies$Reports$Create extends StandardParameters {
907
+ /**
908
+ * Required. The parent resource where this `Report` will be created. Format: `agencies/{account_id\}`
909
+ */
910
+ parent?: string;
911
+ /**
912
+ * Request body metadata
913
+ */
914
+ requestBody?: Schema$Report;
915
+ }
916
+ export interface Params$Resource$Agencies$Reports$Delete extends StandardParameters {
917
+ /**
918
+ * Required. Resource name of the report to delete. Format: `agencies/{account_id\}/reports/{report_id\}`
919
+ */
920
+ name?: string;
921
+ }
922
+ export interface Params$Resource$Agencies$Reports$Get extends StandardParameters {
923
+ /**
924
+ * Required. The resource name of the report. Format: `agencies/{account_id\}/reports/{report_id\}`
925
+ */
926
+ name?: string;
927
+ }
928
+ export interface Params$Resource$Agencies$Reports$List extends StandardParameters {
929
+ /**
930
+ * Optional. Expression to filter the response. See syntax details at https://developers.google.com/ad-manager/api/beta/filters
931
+ */
932
+ filter?: string;
933
+ /**
934
+ * Optional. Expression to specify sorting order. See syntax details at https://developers.google.com/ad-manager/api/beta/filters#order
935
+ */
936
+ orderBy?: string;
937
+ /**
938
+ * Optional. The maximum number of `Reports` to return. The service may return fewer than this value. If unspecified, at most 50 `Reports` will be returned. The maximum value is 1000; values greater than 1000 will be coerced to 1000.
939
+ */
940
+ pageSize?: number;
941
+ /**
942
+ * Optional. A page token, received from a previous `ListReports` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListReports` must match the call that provided the page token.
943
+ */
944
+ pageToken?: string;
945
+ /**
946
+ * Required. The parent, which owns this collection of reports. Format: `agencies/{account_id\}`
947
+ */
948
+ parent?: string;
949
+ /**
950
+ * Optional. Number of individual resources to skip while paginating.
951
+ */
952
+ skip?: number;
953
+ }
954
+ export interface Params$Resource$Agencies$Reports$Patch extends StandardParameters {
955
+ /**
956
+ * Identifier. The resource name of the report. Report resource name have the form: `agencies/{account_id\}/reports/{report_id\}`
957
+ */
958
+ name?: string;
959
+ /**
960
+ * Optional. The list of fields to update.
961
+ */
962
+ updateMask?: string;
963
+ /**
964
+ * Request body metadata
965
+ */
966
+ requestBody?: Schema$Report;
967
+ }
968
+ export interface Params$Resource$Agencies$Reports$Run extends StandardParameters {
969
+ /**
970
+ * Required. The report to run. Format: `agencies/{account_id\}/reports/{report_id\}`
971
+ */
972
+ name?: string;
973
+ /**
974
+ * Request body metadata
975
+ */
976
+ requestBody?: Schema$RunReportRequest;
977
+ }
978
+ export class Resource$Agencies$Reports$Operations {
979
+ context: APIRequestContext;
980
+ constructor(context: APIRequestContext);
981
+ /**
982
+ * Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
983
+ * @example
984
+ * ```js
985
+ * // Before running the sample:
986
+ * // - Enable the API at:
987
+ * // https://console.developers.google.com/apis/api/agenciesandbrands.googleapis.com
988
+ * // - Login into gcloud by running:
989
+ * // ```sh
990
+ * // $ gcloud auth application-default login
991
+ * // ```
992
+ * // - Install the npm module by running:
993
+ * // ```sh
994
+ * // $ npm install googleapis
995
+ * // ```
996
+ *
997
+ * const {google} = require('googleapis');
998
+ * const agenciesandbrands = google.agenciesandbrands('v1');
999
+ *
1000
+ * async function main() {
1001
+ * const auth = new google.auth.GoogleAuth({
1002
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1003
+ * scopes: ['https://www.googleapis.com/auth/agencies-and-brands'],
1004
+ * });
1005
+ *
1006
+ * // Acquire an auth client, and bind it to all future calls
1007
+ * const authClient = await auth.getClient();
1008
+ * google.options({auth: authClient});
1009
+ *
1010
+ * // Do the magic
1011
+ * const res = await agenciesandbrands.agencies.reports.operations.get({
1012
+ * // The name of the operation resource.
1013
+ * name: 'agencies/my-agencie/reports/my-report/operations/my-operation',
1014
+ * });
1015
+ * console.log(res.data);
1016
+ *
1017
+ * // Example response
1018
+ * // {
1019
+ * // "done": false,
1020
+ * // "error": {},
1021
+ * // "metadata": {},
1022
+ * // "name": "my_name",
1023
+ * // "response": {}
1024
+ * // }
1025
+ * }
1026
+ *
1027
+ * main().catch(e => {
1028
+ * console.error(e);
1029
+ * throw e;
1030
+ * });
1031
+ *
1032
+ * ```
1033
+ *
1034
+ * @param params - Parameters for request
1035
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
1036
+ * @param callback - Optional callback that handles the response.
1037
+ * @returns A promise if used with async/await, or void if used with a callback.
1038
+ */
1039
+ get(params: Params$Resource$Agencies$Reports$Operations$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
1040
+ get(params?: Params$Resource$Agencies$Reports$Operations$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
1041
+ get(params: Params$Resource$Agencies$Reports$Operations$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
1042
+ get(params: Params$Resource$Agencies$Reports$Operations$Get, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
1043
+ get(params: Params$Resource$Agencies$Reports$Operations$Get, callback: BodyResponseCallback<Schema$Operation>): void;
1044
+ get(callback: BodyResponseCallback<Schema$Operation>): void;
1045
+ }
1046
+ export interface Params$Resource$Agencies$Reports$Operations$Get extends StandardParameters {
1047
+ /**
1048
+ * The name of the operation resource.
1049
+ */
1050
+ name?: string;
1051
+ }
1052
+ export class Resource$Agencies$Reports$Results {
1053
+ context: APIRequestContext;
1054
+ constructor(context: APIRequestContext);
1055
+ /**
1056
+ * Returns the result rows from a completed report. The caller must have previously called `RunReport` and waited for that operation to complete. The rows will be returned according to the order specified by the `sorts` member of the report definition.
1057
+ * @example
1058
+ * ```js
1059
+ * // Before running the sample:
1060
+ * // - Enable the API at:
1061
+ * // https://console.developers.google.com/apis/api/agenciesandbrands.googleapis.com
1062
+ * // - Login into gcloud by running:
1063
+ * // ```sh
1064
+ * // $ gcloud auth application-default login
1065
+ * // ```
1066
+ * // - Install the npm module by running:
1067
+ * // ```sh
1068
+ * // $ npm install googleapis
1069
+ * // ```
1070
+ *
1071
+ * const {google} = require('googleapis');
1072
+ * const agenciesandbrands = google.agenciesandbrands('v1');
1073
+ *
1074
+ * async function main() {
1075
+ * const auth = new google.auth.GoogleAuth({
1076
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1077
+ * scopes: ['https://www.googleapis.com/auth/agencies-and-brands'],
1078
+ * });
1079
+ *
1080
+ * // Acquire an auth client, and bind it to all future calls
1081
+ * const authClient = await auth.getClient();
1082
+ * google.options({auth: authClient});
1083
+ *
1084
+ * // Do the magic
1085
+ * const res = await agenciesandbrands.agencies.reports.results.fetchRows({
1086
+ * // The report result being fetched. Format: `agencies/{account_id\}/reports/{report_id\}/results/{report_result_id\}`
1087
+ * name: 'agencies/my-agencie/reports/my-report/results/my-result',
1088
+ * // Optional. The maximum number of rows to return. The service may return fewer than this value. If unspecified, at most 1,000 rows will be returned. The maximum value is 10,000; values greater than 10,000 will be reduced to 10,000.
1089
+ * pageSize: 'placeholder-value',
1090
+ * // Optional. A page token, received from a previous `FetchReportResultRows` call. Provide this to retrieve the second and subsequent batches of rows.
1091
+ * pageToken: 'placeholder-value',
1092
+ * });
1093
+ * console.log(res.data);
1094
+ *
1095
+ * // Example response
1096
+ * // {
1097
+ * // "dateRanges": [],
1098
+ * // "nextPageToken": "my_nextPageToken",
1099
+ * // "rows": [],
1100
+ * // "runTime": "my_runTime",
1101
+ * // "totalRowCount": 0
1102
+ * // }
1103
+ * }
1104
+ *
1105
+ * main().catch(e => {
1106
+ * console.error(e);
1107
+ * throw e;
1108
+ * });
1109
+ *
1110
+ * ```
1111
+ *
1112
+ * @param params - Parameters for request
1113
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
1114
+ * @param callback - Optional callback that handles the response.
1115
+ * @returns A promise if used with async/await, or void if used with a callback.
1116
+ */
1117
+ fetchRows(params: Params$Resource$Agencies$Reports$Results$Fetchrows, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
1118
+ fetchRows(params?: Params$Resource$Agencies$Reports$Results$Fetchrows, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$FetchReportResultRowsResponse>>;
1119
+ fetchRows(params: Params$Resource$Agencies$Reports$Results$Fetchrows, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
1120
+ fetchRows(params: Params$Resource$Agencies$Reports$Results$Fetchrows, options: MethodOptions | BodyResponseCallback<Schema$FetchReportResultRowsResponse>, callback: BodyResponseCallback<Schema$FetchReportResultRowsResponse>): void;
1121
+ fetchRows(params: Params$Resource$Agencies$Reports$Results$Fetchrows, callback: BodyResponseCallback<Schema$FetchReportResultRowsResponse>): void;
1122
+ fetchRows(callback: BodyResponseCallback<Schema$FetchReportResultRowsResponse>): void;
1123
+ }
1124
+ export interface Params$Resource$Agencies$Reports$Results$Fetchrows extends StandardParameters {
1125
+ /**
1126
+ * The report result being fetched. Format: `agencies/{account_id\}/reports/{report_id\}/results/{report_result_id\}`
1127
+ */
1128
+ name?: string;
1129
+ /**
1130
+ * Optional. The maximum number of rows to return. The service may return fewer than this value. If unspecified, at most 1,000 rows will be returned. The maximum value is 10,000; values greater than 10,000 will be reduced to 10,000.
1131
+ */
1132
+ pageSize?: number;
1133
+ /**
1134
+ * Optional. A page token, received from a previous `FetchReportResultRows` call. Provide this to retrieve the second and subsequent batches of rows.
1135
+ */
1136
+ pageToken?: string;
1137
+ }
1138
+ export {};
1139
+ }