@maxim_mazurok/gapi.client.merchantapi-quota_v1 0.1.20251115 → 0.1.20251120
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.
- package/index.d.ts +82 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://merchantapi.googleapis.com/$discovery/rest?version=quota_v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20251120
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -28,6 +28,18 @@ declare namespace gapi.client {
|
|
|
28
28
|
): void;
|
|
29
29
|
|
|
30
30
|
namespace merchantapi {
|
|
31
|
+
interface AccountLimit {
|
|
32
|
+
/** Identifier. The limit part of the name will be a combination of the type and the scope. For example: `accounts/123/limits/products~ADS_NON_EEA` Format: `accounts/{account}/limits/{limit}` */
|
|
33
|
+
name?: string;
|
|
34
|
+
/** The limit for products. */
|
|
35
|
+
products?: ProductLimit;
|
|
36
|
+
}
|
|
37
|
+
interface ListAccountLimitsResponse {
|
|
38
|
+
/** The limits for the given account. */
|
|
39
|
+
accountLimits?: AccountLimit[];
|
|
40
|
+
/** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
|
|
41
|
+
nextPageToken?: string;
|
|
42
|
+
}
|
|
31
43
|
interface ListQuotaGroupsResponse {
|
|
32
44
|
/** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
|
|
33
45
|
nextPageToken?: string;
|
|
@@ -54,6 +66,12 @@ declare namespace gapi.client {
|
|
|
54
66
|
/** Reporting contexts that have the change (if applicable). Currently this field supports only (`SHOPPING_ADS`, `LOCAL_INVENTORY_ADS`, `YOUTUBE_SHOPPING`, `YOUTUBE_CHECKOUT`, `YOUTUBE_AFFILIATE`) from the enum value [ReportingContextEnum](/merchant/api/reference/rest/Shared.Types/ReportingContextEnum) */
|
|
55
67
|
reportingContext?: string;
|
|
56
68
|
}
|
|
69
|
+
interface ProductLimit {
|
|
70
|
+
/** Required. The maximum number of products that are allowed in the account in the given scope. */
|
|
71
|
+
limit?: string;
|
|
72
|
+
/** Required. The scope of the product limit. */
|
|
73
|
+
scope?: string;
|
|
74
|
+
}
|
|
57
75
|
interface ProductStatusChangeMessage {
|
|
58
76
|
/** The target account that owns the entity that changed. Format : `accounts/{merchant_id}` */
|
|
59
77
|
account?: string;
|
|
@@ -86,6 +104,68 @@ declare namespace gapi.client {
|
|
|
86
104
|
/** Output only. The current quota usage, meaning the number of calls already made on a given day to the methods in the group. The daily quota limits reset at at 12:00 PM midday UTC. */
|
|
87
105
|
quotaUsage?: string;
|
|
88
106
|
}
|
|
107
|
+
interface LimitsResource {
|
|
108
|
+
/** Retrieves an account limit. */
|
|
109
|
+
get(request?: {
|
|
110
|
+
/** V1 error format. */
|
|
111
|
+
'$.xgafv'?: string;
|
|
112
|
+
/** OAuth access token. */
|
|
113
|
+
access_token?: string;
|
|
114
|
+
/** Data format for response. */
|
|
115
|
+
alt?: string;
|
|
116
|
+
/** JSONP */
|
|
117
|
+
callback?: string;
|
|
118
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
119
|
+
fields?: string;
|
|
120
|
+
/** 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. */
|
|
121
|
+
key?: string;
|
|
122
|
+
/** Required. The name of the limit to retrieve. Format: `accounts/{account}/limits/{limit}` For example: `accounts/123/limits/products~ADS_NON_EEA` */
|
|
123
|
+
name: string;
|
|
124
|
+
/** OAuth 2.0 token for the current user. */
|
|
125
|
+
oauth_token?: string;
|
|
126
|
+
/** Returns response with indentations and line breaks. */
|
|
127
|
+
prettyPrint?: boolean;
|
|
128
|
+
/** 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. */
|
|
129
|
+
quotaUser?: string;
|
|
130
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
131
|
+
upload_protocol?: string;
|
|
132
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
133
|
+
uploadType?: string;
|
|
134
|
+
}): Request<AccountLimit>;
|
|
135
|
+
/** Lists the limits of an account. */
|
|
136
|
+
list(request?: {
|
|
137
|
+
/** V1 error format. */
|
|
138
|
+
'$.xgafv'?: string;
|
|
139
|
+
/** OAuth access token. */
|
|
140
|
+
access_token?: string;
|
|
141
|
+
/** Data format for response. */
|
|
142
|
+
alt?: string;
|
|
143
|
+
/** JSONP */
|
|
144
|
+
callback?: string;
|
|
145
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
146
|
+
fields?: string;
|
|
147
|
+
/** Required. A filter on the limit `type` is required, for example, `type = "products"`. */
|
|
148
|
+
filter?: string;
|
|
149
|
+
/** 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. */
|
|
150
|
+
key?: string;
|
|
151
|
+
/** OAuth 2.0 token for the current user. */
|
|
152
|
+
oauth_token?: string;
|
|
153
|
+
/** Optional. The maximum number of limits to return. The service may return fewer than this value. If unspecified, at most 100 limits will be returned. The maximum value is 100; values above 100 will be coerced to 100. */
|
|
154
|
+
pageSize?: number;
|
|
155
|
+
/** Optional. A page token, received from a previous `ListAccountLimits` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAccountLimits` must match the call that provided the page token. */
|
|
156
|
+
pageToken?: string;
|
|
157
|
+
/** Required. The parent account. Format: `accounts/{account}` */
|
|
158
|
+
parent: string;
|
|
159
|
+
/** Returns response with indentations and line breaks. */
|
|
160
|
+
prettyPrint?: boolean;
|
|
161
|
+
/** 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. */
|
|
162
|
+
quotaUser?: string;
|
|
163
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
164
|
+
upload_protocol?: string;
|
|
165
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
166
|
+
uploadType?: string;
|
|
167
|
+
}): Request<ListAccountLimitsResponse>;
|
|
168
|
+
}
|
|
89
169
|
interface QuotasResource {
|
|
90
170
|
/** Lists the daily call quota and usage per group for your Merchant Center account. */
|
|
91
171
|
list(request?: {
|
|
@@ -120,6 +200,7 @@ declare namespace gapi.client {
|
|
|
120
200
|
}): Request<ListQuotaGroupsResponse>;
|
|
121
201
|
}
|
|
122
202
|
interface AccountsResource {
|
|
203
|
+
limits: LimitsResource;
|
|
123
204
|
quotas: QuotasResource;
|
|
124
205
|
}
|
|
125
206
|
|