@maxim_mazurok/gapi.client.servicecontrol-v2 0.0.20230421 → 0.0.20230428
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 +401 -201
- package/package.json +1 -1
- package/tests.ts +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://servicecontrol.googleapis.com/$discovery/rest?version=v2
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230428
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -27,85 +27,112 @@ declare namespace gapi.client {
|
|
|
27
27
|
* The API operation name. For gRPC requests, it is the fully qualified API method name, such as "google.pubsub.v1.Publisher.Publish". For OpenAPI requests, it is the `operationId`,
|
|
28
28
|
* such as "getPet".
|
|
29
29
|
*/
|
|
30
|
-
operation?:
|
|
30
|
+
operation?:
|
|
31
|
+
string;
|
|
31
32
|
/** The API protocol used for sending the request, such as "http", "https", "grpc", or "internal". */
|
|
32
|
-
protocol?:
|
|
33
|
+
protocol?:
|
|
34
|
+
string;
|
|
33
35
|
/**
|
|
34
36
|
* The API service name. It is a logical identifier for a networked API, such as "pubsub.googleapis.com". The naming syntax depends on the API management system being used for handling
|
|
35
37
|
* the request.
|
|
36
38
|
*/
|
|
37
|
-
service?:
|
|
39
|
+
service?:
|
|
40
|
+
string;
|
|
38
41
|
/** The API version associated with the API operation above, such as "v1" or "v1alpha1". */
|
|
39
|
-
version?:
|
|
42
|
+
version?:
|
|
43
|
+
string;
|
|
40
44
|
}
|
|
41
45
|
interface AttributeContext {
|
|
42
46
|
/** Represents an API operation that is involved to a network activity. */
|
|
43
|
-
api?:
|
|
47
|
+
api?:
|
|
48
|
+
Api;
|
|
44
49
|
/** The destination of a network activity, such as accepting a TCP connection. In a multi hop network activity, the destination represents the receiver of the last hop. */
|
|
45
|
-
destination?:
|
|
50
|
+
destination?:
|
|
51
|
+
Peer;
|
|
46
52
|
/** Supports extensions for advanced use cases, such as logs and metrics. */
|
|
47
|
-
extensions?:
|
|
53
|
+
extensions?:
|
|
54
|
+
Array<{ [P in string]: any }>;
|
|
48
55
|
/**
|
|
49
56
|
* The origin of a network activity. In a multi hop network activity, the origin represents the sender of the first hop. For the first hop, the `source` and the `origin` must have the
|
|
50
57
|
* same content.
|
|
51
58
|
*/
|
|
52
|
-
origin?:
|
|
59
|
+
origin?:
|
|
60
|
+
Peer;
|
|
53
61
|
/** Represents a network request, such as an HTTP request. */
|
|
54
|
-
request?:
|
|
62
|
+
request?:
|
|
63
|
+
Request;
|
|
55
64
|
/** Represents a target resource that is involved with a network activity. If multiple resources are involved with an activity, this must be the primary one. */
|
|
56
|
-
resource?:
|
|
65
|
+
resource?:
|
|
66
|
+
Resource;
|
|
57
67
|
/** Represents a network response, such as an HTTP response. */
|
|
58
|
-
response?:
|
|
68
|
+
response?:
|
|
69
|
+
Response;
|
|
59
70
|
/** The source of a network activity, such as starting a TCP connection. In a multi hop network activity, the source represents the sender of the last hop. */
|
|
60
|
-
source?:
|
|
71
|
+
source?:
|
|
72
|
+
Peer;
|
|
61
73
|
}
|
|
62
74
|
interface AuditLog {
|
|
63
75
|
/** Authentication information. */
|
|
64
|
-
authenticationInfo?:
|
|
76
|
+
authenticationInfo?:
|
|
77
|
+
AuthenticationInfo;
|
|
65
78
|
/** Authorization information. If there are multiple resources or permissions involved, then there is one AuthorizationInfo element for each {resource, permission} tuple. */
|
|
66
|
-
authorizationInfo?:
|
|
79
|
+
authorizationInfo?:
|
|
80
|
+
AuthorizationInfo[];
|
|
67
81
|
/** Other service-specific data about the request, response, and other information associated with the current audited event. */
|
|
68
|
-
metadata?:
|
|
82
|
+
metadata?:
|
|
83
|
+
{ [P in string]: any };
|
|
69
84
|
/**
|
|
70
85
|
* The name of the service method or operation. For API calls, this should be the name of the API method. For example, "google.cloud.bigquery.v2.TableService.InsertTable"
|
|
71
86
|
* "google.logging.v2.ConfigServiceV2.CreateSink"
|
|
72
87
|
*/
|
|
73
|
-
methodName?:
|
|
88
|
+
methodName?:
|
|
89
|
+
string;
|
|
74
90
|
/** The number of items returned from a List or Query API method, if applicable. */
|
|
75
|
-
numResponseItems?:
|
|
91
|
+
numResponseItems?:
|
|
92
|
+
string;
|
|
76
93
|
/** Indicates the policy violations for this request. If the request is denied by the policy, violation information will be logged here. */
|
|
77
|
-
policyViolationInfo?:
|
|
94
|
+
policyViolationInfo?:
|
|
95
|
+
PolicyViolationInfo;
|
|
78
96
|
/**
|
|
79
97
|
* The operation request. This may not include all request parameters, such as those that are too large, privacy-sensitive, or duplicated elsewhere in the log record. It should never
|
|
80
98
|
* include user-generated data, such as file contents. When the JSON object represented here has a proto equivalent, the proto name will be indicated in the `@type` property.
|
|
81
99
|
*/
|
|
82
|
-
request?:
|
|
100
|
+
request?:
|
|
101
|
+
{ [P in string]: any };
|
|
83
102
|
/** Metadata about the operation. */
|
|
84
|
-
requestMetadata?:
|
|
103
|
+
requestMetadata?:
|
|
104
|
+
RequestMetadata;
|
|
85
105
|
/** The resource location information. */
|
|
86
|
-
resourceLocation?:
|
|
106
|
+
resourceLocation?:
|
|
107
|
+
ResourceLocation;
|
|
87
108
|
/**
|
|
88
109
|
* The resource or collection that is the target of the operation. The name is a scheme-less URI, not including the API service name. For example:
|
|
89
110
|
* "projects/PROJECT_ID/zones/us-central1-a/instances" "projects/PROJECT_ID/datasets/DATASET_ID"
|
|
90
111
|
*/
|
|
91
|
-
resourceName?:
|
|
112
|
+
resourceName?:
|
|
113
|
+
string;
|
|
92
114
|
/**
|
|
93
115
|
* The resource's original state before mutation. Present only for operations which have successfully modified the targeted resource(s). In general, this field should contain all
|
|
94
116
|
* changed fields, except those that are already been included in `request`, `response`, `metadata` or `service_data` fields. When the JSON object represented here has a proto
|
|
95
117
|
* equivalent, the proto name will be indicated in the `@type` property.
|
|
96
118
|
*/
|
|
97
|
-
resourceOriginalState?:
|
|
119
|
+
resourceOriginalState?:
|
|
120
|
+
{ [P in string]: any };
|
|
98
121
|
/**
|
|
99
122
|
* The operation response. This may not include all response elements, such as those that are too large, privacy-sensitive, or duplicated elsewhere in the log record. It should never
|
|
100
123
|
* include user-generated data, such as file contents. When the JSON object represented here has a proto equivalent, the proto name will be indicated in the `@type` property.
|
|
101
124
|
*/
|
|
102
|
-
response?:
|
|
125
|
+
response?:
|
|
126
|
+
{ [P in string]: any };
|
|
103
127
|
/** Deprecated. Use the `metadata` field instead. Other service-specific data about the request, response, and other activities. */
|
|
104
|
-
serviceData?:
|
|
128
|
+
serviceData?:
|
|
129
|
+
{ [P in string]: any };
|
|
105
130
|
/** The name of the API service performing the operation. For example, `"compute.googleapis.com"`. */
|
|
106
|
-
serviceName?:
|
|
131
|
+
serviceName?:
|
|
132
|
+
string;
|
|
107
133
|
/** The status of the overall operation. */
|
|
108
|
-
status?:
|
|
134
|
+
status?:
|
|
135
|
+
Status;
|
|
109
136
|
}
|
|
110
137
|
interface Auth {
|
|
111
138
|
/**
|
|
@@ -113,179 +140,226 @@ declare namespace gapi.client {
|
|
|
113
140
|
* string has the format: "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}" Example:
|
|
114
141
|
* "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
|
|
115
142
|
*/
|
|
116
|
-
accessLevels?:
|
|
143
|
+
accessLevels?:
|
|
144
|
+
string[];
|
|
117
145
|
/**
|
|
118
146
|
* The intended audience(s) for this authentication information. Reflects the audience (`aud`) claim within a JWT. The audience value(s) depends on the `issuer`, but typically include
|
|
119
147
|
* one or more of the following pieces of information: * The services intended to receive the credential. For example, ["https://pubsub.googleapis.com/",
|
|
120
148
|
* "https://storage.googleapis.com/"]. * A set of service-based scopes. For example, ["https://www.googleapis.com/auth/cloud-platform"]. * The client id of an app, such as the Firebase
|
|
121
149
|
* project id for JWTs from Firebase Auth. Consult the documentation for the credential issuer to determine the information provided.
|
|
122
150
|
*/
|
|
123
|
-
audiences?:
|
|
151
|
+
audiences?:
|
|
152
|
+
string[];
|
|
124
153
|
/**
|
|
125
154
|
* Structured claims presented with the credential. JWTs include `{key: value}` pairs for standard and private claims. The following is a subset of the standard required and optional
|
|
126
155
|
* claims that would typically be presented for a Google-based JWT: {'iss': 'accounts.google.com', 'sub': '113289723416554971153', 'aud': ['123456789012', 'pubsub.googleapis.com'],
|
|
127
156
|
* 'azp': '123456789012.apps.googleusercontent.com', 'email': 'jsmith@example.com', 'iat': 1353601026, 'exp': 1353604926} SAML assertions are similarly specified, but with an identity
|
|
128
157
|
* provider dependent structure.
|
|
129
158
|
*/
|
|
130
|
-
claims?:
|
|
159
|
+
claims?:
|
|
160
|
+
{ [P in string]: any };
|
|
131
161
|
/**
|
|
132
162
|
* The authorized presenter of the credential. Reflects the optional Authorized Presenter (`azp`) claim within a JWT or the OAuth client id. For example, a Google Cloud Platform client
|
|
133
163
|
* id looks as follows: "123456789012.apps.googleusercontent.com".
|
|
134
164
|
*/
|
|
135
|
-
presenter?:
|
|
165
|
+
presenter?:
|
|
166
|
+
string;
|
|
136
167
|
/**
|
|
137
168
|
* The authenticated principal. Reflects the issuer (`iss`) and subject (`sub`) claims within a JWT. The issuer and subject should be `/` delimited, with `/` percent-encoded within the
|
|
138
169
|
* subject fragment. For Google accounts, the principal format is: "https://accounts.google.com/{id}"
|
|
139
170
|
*/
|
|
140
|
-
principal?:
|
|
171
|
+
principal?:
|
|
172
|
+
string;
|
|
141
173
|
}
|
|
142
174
|
interface AuthenticationInfo {
|
|
143
175
|
/** The authority selector specified by the requestor, if any. It is not guaranteed that the principal was allowed to use this authority. */
|
|
144
|
-
authoritySelector?:
|
|
176
|
+
authoritySelector?:
|
|
177
|
+
string;
|
|
145
178
|
/**
|
|
146
179
|
* The email address of the authenticated user (or service account on behalf of third party principal) making the request. For third party identity callers, the `principal_subject`
|
|
147
180
|
* field is populated instead of this field. For privacy reasons, the principal email address is sometimes redacted. For more information, see [Caller identities in audit
|
|
148
181
|
* logs](https://cloud.google.com/logging/docs/audit#user-id).
|
|
149
182
|
*/
|
|
150
|
-
principalEmail?:
|
|
183
|
+
principalEmail?:
|
|
184
|
+
string;
|
|
151
185
|
/** String representation of identity of requesting party. Populated for both first and third party identities. */
|
|
152
|
-
principalSubject?:
|
|
186
|
+
principalSubject?:
|
|
187
|
+
string;
|
|
153
188
|
/**
|
|
154
189
|
* Identity delegation history of an authenticated service account that makes the request. It contains information on the real authorities that try to access GCP resources by
|
|
155
190
|
* delegating on a service account. When multiple authorities present, they are guaranteed to be sorted based on the original ordering of the identity delegation events.
|
|
156
191
|
*/
|
|
157
|
-
serviceAccountDelegationInfo?:
|
|
192
|
+
serviceAccountDelegationInfo?:
|
|
193
|
+
ServiceAccountDelegationInfo[];
|
|
158
194
|
/**
|
|
159
195
|
* The name of the service account key used to create or exchange credentials for authenticating the service account making the request. This is a scheme-less URI full resource name.
|
|
160
196
|
* For example: "//iam.googleapis.com/projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}"
|
|
161
197
|
*/
|
|
162
|
-
serviceAccountKeyName?:
|
|
198
|
+
serviceAccountKeyName?:
|
|
199
|
+
string;
|
|
163
200
|
/**
|
|
164
201
|
* The third party identification (if any) of the authenticated user making the request. When the JSON object represented here has a proto equivalent, the proto name will be indicated
|
|
165
202
|
* in the `@type` property.
|
|
166
203
|
*/
|
|
167
|
-
thirdPartyPrincipal?:
|
|
204
|
+
thirdPartyPrincipal?:
|
|
205
|
+
{ [P in string]: any };
|
|
168
206
|
}
|
|
169
207
|
interface AuthorizationInfo {
|
|
170
208
|
/** Whether or not authorization for `resource` and `permission` was granted. */
|
|
171
|
-
granted?:
|
|
209
|
+
granted?:
|
|
210
|
+
boolean;
|
|
172
211
|
/** The required IAM permission. */
|
|
173
|
-
permission?:
|
|
212
|
+
permission?:
|
|
213
|
+
string;
|
|
174
214
|
/**
|
|
175
215
|
* The resource being accessed, as a REST-style or cloud resource string. For example: bigquery.googleapis.com/projects/PROJECTID/datasets/DATASETID or
|
|
176
216
|
* projects/PROJECTID/datasets/DATASETID
|
|
177
217
|
*/
|
|
178
|
-
resource?:
|
|
218
|
+
resource?:
|
|
219
|
+
string;
|
|
179
220
|
/**
|
|
180
221
|
* Resource attributes used in IAM condition evaluation. This field contains resource attributes like resource type and resource name. To get the whole view of the attributes used in
|
|
181
222
|
* IAM condition evaluation, the user must also look into `AuditLog.request_metadata.request_attributes`.
|
|
182
223
|
*/
|
|
183
|
-
resourceAttributes?:
|
|
224
|
+
resourceAttributes?:
|
|
225
|
+
Resource;
|
|
184
226
|
}
|
|
185
227
|
interface CheckRequest {
|
|
186
228
|
/** Describes attributes about the operation being executed by the service. */
|
|
187
|
-
attributes?:
|
|
229
|
+
attributes?:
|
|
230
|
+
AttributeContext;
|
|
188
231
|
/** Optional. Contains a comma-separated list of flags. */
|
|
189
|
-
flags?:
|
|
232
|
+
flags?:
|
|
233
|
+
string;
|
|
190
234
|
/** Describes the resources and the policies applied to each resource. */
|
|
191
|
-
resources?:
|
|
235
|
+
resources?:
|
|
236
|
+
ResourceInfo[];
|
|
192
237
|
/**
|
|
193
238
|
* Specifies the version of the service configuration that should be used to process the request. Must not be empty. Set this field to 'latest' to specify using the latest
|
|
194
239
|
* configuration.
|
|
195
240
|
*/
|
|
196
|
-
serviceConfigId?:
|
|
241
|
+
serviceConfigId?:
|
|
242
|
+
string;
|
|
197
243
|
}
|
|
198
244
|
interface CheckResponse {
|
|
199
245
|
/** Returns a set of request contexts generated from the `CheckRequest`. */
|
|
200
|
-
headers?:
|
|
246
|
+
headers?:
|
|
247
|
+
{ [P in string]: string };
|
|
201
248
|
/** Operation is allowed when this field is not set. Any non-'OK' status indicates a denial; google.rpc.Status.details would contain additional details about the denial. */
|
|
202
|
-
status?:
|
|
249
|
+
status?:
|
|
250
|
+
Status;
|
|
203
251
|
}
|
|
204
252
|
interface FirstPartyPrincipal {
|
|
205
253
|
/** The email address of a Google account. . */
|
|
206
|
-
principalEmail?:
|
|
254
|
+
principalEmail?:
|
|
255
|
+
string;
|
|
207
256
|
/** Metadata about the service that uses the service account. . */
|
|
208
|
-
serviceMetadata?:
|
|
257
|
+
serviceMetadata?:
|
|
258
|
+
{ [P in string]: any };
|
|
209
259
|
}
|
|
210
260
|
interface OrgPolicyViolationInfo {
|
|
211
261
|
/**
|
|
212
262
|
* Optional. Resource payload that is currently in scope and is subjected to orgpolicy conditions. This payload may be the subset of the actual Resource that may come in the request.
|
|
213
263
|
* This payload should not contain any core content.
|
|
214
264
|
*/
|
|
215
|
-
payload?:
|
|
265
|
+
payload?:
|
|
266
|
+
{ [P in string]: any };
|
|
216
267
|
/**
|
|
217
268
|
* Optional. Tags referenced on the resource at the time of evaluation. These also include the federated tags, if they are supplied in the CheckOrgPolicy or CheckCustomConstraints
|
|
218
269
|
* Requests. Optional field as of now. These tags are the Cloud tags that are available on the resource during the policy evaluation and will be available as part of the OrgPolicy
|
|
219
270
|
* check response for logging purposes.
|
|
220
271
|
*/
|
|
221
|
-
resourceTags?:
|
|
272
|
+
resourceTags?:
|
|
273
|
+
{ [P in string]: string };
|
|
222
274
|
/** Optional. Resource type that the orgpolicy is checked against. Example: compute.googleapis.com/Instance, store.googleapis.com/bucket */
|
|
223
|
-
resourceType?:
|
|
275
|
+
resourceType?:
|
|
276
|
+
string;
|
|
224
277
|
/** Optional. Policy violations */
|
|
225
|
-
violationInfo?:
|
|
278
|
+
violationInfo?:
|
|
279
|
+
ViolationInfo[];
|
|
226
280
|
}
|
|
227
281
|
interface Peer {
|
|
228
282
|
/** The IP address of the peer. */
|
|
229
|
-
ip?:
|
|
283
|
+
ip?:
|
|
284
|
+
string;
|
|
230
285
|
/** The labels associated with the peer. */
|
|
231
|
-
labels?:
|
|
286
|
+
labels?:
|
|
287
|
+
{ [P in string]: string };
|
|
232
288
|
/** The network port of the peer. */
|
|
233
|
-
port?:
|
|
289
|
+
port?:
|
|
290
|
+
string;
|
|
234
291
|
/**
|
|
235
292
|
* The identity of this peer. Similar to `Request.auth.principal`, but relative to the peer instead of the request. For example, the identity associated with a load balancer that
|
|
236
293
|
* forwarded the request.
|
|
237
294
|
*/
|
|
238
|
-
principal?:
|
|
295
|
+
principal?:
|
|
296
|
+
string;
|
|
239
297
|
/** The CLDR country/region code associated with the above IP address. If the IP address is private, the `region_code` should reflect the physical location where this peer is running. */
|
|
240
|
-
regionCode?:
|
|
298
|
+
regionCode?:
|
|
299
|
+
string;
|
|
241
300
|
}
|
|
242
301
|
interface PolicyViolationInfo {
|
|
243
302
|
/** Indicates the orgpolicy violations for this resource. */
|
|
244
|
-
orgPolicyViolationInfo?:
|
|
303
|
+
orgPolicyViolationInfo?:
|
|
304
|
+
OrgPolicyViolationInfo;
|
|
245
305
|
}
|
|
246
306
|
interface ReportRequest {
|
|
247
307
|
/** Describes the list of operations to be reported. Each operation is represented as an AttributeContext, and contains all attributes around an API access. */
|
|
248
|
-
operations?:
|
|
308
|
+
operations?:
|
|
309
|
+
AttributeContext[];
|
|
249
310
|
/**
|
|
250
311
|
* Specifies the version of the service configuration that should be used to process the request. Must not be empty. Set this field to 'latest' to specify using the latest
|
|
251
312
|
* configuration.
|
|
252
313
|
*/
|
|
253
|
-
serviceConfigId?:
|
|
314
|
+
serviceConfigId?:
|
|
315
|
+
string;
|
|
254
316
|
}
|
|
255
317
|
// tslint:disable-next-line:no-empty-interface
|
|
256
318
|
interface ReportResponse {
|
|
257
319
|
}
|
|
258
320
|
interface Request {
|
|
259
321
|
/** The request authentication. May be absent for unauthenticated requests. Derived from the HTTP request `Authorization` header or equivalent. */
|
|
260
|
-
auth?:
|
|
322
|
+
auth?:
|
|
323
|
+
Auth;
|
|
261
324
|
/**
|
|
262
325
|
* The HTTP request headers. If multiple headers share the same key, they must be merged according to the HTTP spec. All header keys must be lowercased, because HTTP header keys are
|
|
263
326
|
* case-insensitive.
|
|
264
327
|
*/
|
|
265
|
-
headers?:
|
|
328
|
+
headers?:
|
|
329
|
+
{ [P in string]: string };
|
|
266
330
|
/** The HTTP request `Host` header value. */
|
|
267
|
-
host?:
|
|
331
|
+
host?:
|
|
332
|
+
string;
|
|
268
333
|
/** The unique ID for a request, which can be propagated to downstream systems. The ID should have low probability of collision within a single day for a specific service. */
|
|
269
|
-
id?:
|
|
334
|
+
id?:
|
|
335
|
+
string;
|
|
270
336
|
/** The HTTP request method, such as `GET`, `POST`. */
|
|
271
|
-
method?:
|
|
337
|
+
method?:
|
|
338
|
+
string;
|
|
272
339
|
/** The HTTP URL path, excluding the query parameters. */
|
|
273
|
-
path?:
|
|
340
|
+
path?:
|
|
341
|
+
string;
|
|
274
342
|
/**
|
|
275
343
|
* The network protocol used with the request, such as "http/1.1", "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See
|
|
276
344
|
* https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids for details.
|
|
277
345
|
*/
|
|
278
|
-
protocol?:
|
|
346
|
+
protocol?:
|
|
347
|
+
string;
|
|
279
348
|
/** The HTTP URL query in the format of `name1=value1&name2=value2`, as it appears in the first line of the HTTP request. No decoding is performed. */
|
|
280
|
-
query?:
|
|
349
|
+
query?:
|
|
350
|
+
string;
|
|
281
351
|
/** A special parameter for request reason. It is used by security systems to associate auditing information with a request. */
|
|
282
|
-
reason?:
|
|
352
|
+
reason?:
|
|
353
|
+
string;
|
|
283
354
|
/** The HTTP URL scheme, such as `http` and `https`. */
|
|
284
|
-
scheme?:
|
|
355
|
+
scheme?:
|
|
356
|
+
string;
|
|
285
357
|
/** The HTTP request size in bytes. If unknown, it must be -1. */
|
|
286
|
-
size?:
|
|
358
|
+
size?:
|
|
359
|
+
string;
|
|
287
360
|
/** The timestamp when the `destination` service receives the last byte of the request. */
|
|
288
|
-
time?:
|
|
361
|
+
time?:
|
|
362
|
+
string;
|
|
289
363
|
}
|
|
290
364
|
interface RequestMetadata {
|
|
291
365
|
/**
|
|
@@ -294,136 +368,168 @@ declare namespace gapi.client {
|
|
|
294
368
|
* address. For a caller from a Compute Engine VM without a external IP address, if the VM is in the same organization (or project) as the accessed resource, `caller_ip` will be the
|
|
295
369
|
* VM's internal IPv4 address, otherwise `caller_ip` will be redacted to "gce-internal-ip". See https://cloud.google.com/compute/docs/vpc/ for more information.
|
|
296
370
|
*/
|
|
297
|
-
callerIp?:
|
|
371
|
+
callerIp?:
|
|
372
|
+
string;
|
|
298
373
|
/**
|
|
299
374
|
* The network of the caller. Set only if the network host project is part of the same GCP organization (or project) as the accessed resource. See
|
|
300
375
|
* https://cloud.google.com/compute/docs/vpc/ for more information. This is a scheme-less URI full resource name. For example:
|
|
301
376
|
* "//compute.googleapis.com/projects/PROJECT_ID/global/networks/NETWORK_ID"
|
|
302
377
|
*/
|
|
303
|
-
callerNetwork?:
|
|
378
|
+
callerNetwork?:
|
|
379
|
+
string;
|
|
304
380
|
/**
|
|
305
381
|
* The user agent of the caller. This information is not authenticated and should be treated accordingly. For example: + `google-api-python-client/1.4.0`: The request was made by the
|
|
306
382
|
* Google API client for Python. + `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`: The request was made by the Google Cloud SDK CLI (gcloud). + `AppEngine-Google;
|
|
307
383
|
* (+http://code.google.com/appengine; appid: s~my-project`: The request was made from the `my-project` App Engine app.
|
|
308
384
|
*/
|
|
309
|
-
callerSuppliedUserAgent?:
|
|
385
|
+
callerSuppliedUserAgent?:
|
|
386
|
+
string;
|
|
310
387
|
/**
|
|
311
388
|
* The destination of a network activity, such as accepting a TCP connection. In a multi hop network activity, the destination represents the receiver of the last hop. Only two fields
|
|
312
389
|
* are used in this message, Peer.port and Peer.ip. These fields are optionally populated by those services utilizing the IAM condition feature.
|
|
313
390
|
*/
|
|
314
|
-
destinationAttributes?:
|
|
391
|
+
destinationAttributes?:
|
|
392
|
+
Peer;
|
|
315
393
|
/**
|
|
316
394
|
* Request attributes used in IAM condition evaluation. This field contains request attributes like request time and access levels associated with the request. To get the whole view of
|
|
317
395
|
* the attributes used in IAM condition evaluation, the user must also look into `AuditLog.authentication_info.resource_attributes`.
|
|
318
396
|
*/
|
|
319
|
-
requestAttributes?:
|
|
397
|
+
requestAttributes?:
|
|
398
|
+
Request;
|
|
320
399
|
}
|
|
321
400
|
interface Resource {
|
|
322
401
|
/**
|
|
323
402
|
* Annotations is an unstructured key-value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be
|
|
324
403
|
* preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
|
|
325
404
|
*/
|
|
326
|
-
annotations?:
|
|
405
|
+
annotations?:
|
|
406
|
+
{ [P in string]: string };
|
|
327
407
|
/** Output only. The timestamp when the resource was created. This may be either the time creation was initiated or when it was completed. */
|
|
328
|
-
createTime?:
|
|
408
|
+
createTime?:
|
|
409
|
+
string;
|
|
329
410
|
/** Output only. The timestamp when the resource was deleted. If the resource is not deleted, this must be empty. */
|
|
330
|
-
deleteTime?:
|
|
411
|
+
deleteTime?:
|
|
412
|
+
string;
|
|
331
413
|
/** Mutable. The display name set by clients. Must be <= 63 characters. */
|
|
332
|
-
displayName?:
|
|
414
|
+
displayName?:
|
|
415
|
+
string;
|
|
333
416
|
/**
|
|
334
417
|
* Output only. An opaque value that uniquely identifies a version or generation of a resource. It can be used to confirm that the client and server agree on the ordering of a resource
|
|
335
418
|
* being written.
|
|
336
419
|
*/
|
|
337
|
-
etag?:
|
|
420
|
+
etag?:
|
|
421
|
+
string;
|
|
338
422
|
/** The labels or tags on the resource, such as AWS resource tags and Kubernetes resource labels. */
|
|
339
|
-
labels?:
|
|
423
|
+
labels?:
|
|
424
|
+
{ [P in string]: string };
|
|
340
425
|
/**
|
|
341
426
|
* Immutable. The location of the resource. The location encoding is specific to the service provider, and new encoding may be introduced as the service evolves. For Google Cloud
|
|
342
427
|
* products, the encoding is what is used by Google Cloud APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The semantics of `location` is identical to the
|
|
343
428
|
* `cloud.googleapis.com/location` label used by some Google Cloud APIs.
|
|
344
429
|
*/
|
|
345
|
-
location?:
|
|
430
|
+
location?:
|
|
431
|
+
string;
|
|
346
432
|
/**
|
|
347
433
|
* The stable identifier (name) of a resource on the `service`. A resource can be logically identified as "//{resource.service}/{resource.name}". The differences between a resource
|
|
348
434
|
* name and a URI are: * Resource name is a logical identifier, independent of network protocol and API version. For example, `//pubsub.googleapis.com/projects/123/topics/news-feed`. *
|
|
349
435
|
* URI often includes protocol and version information, so it can be used directly by applications. For example, `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`. See
|
|
350
436
|
* https://cloud.google.com/apis/design/resource_names for details.
|
|
351
437
|
*/
|
|
352
|
-
name?:
|
|
438
|
+
name?:
|
|
439
|
+
string;
|
|
353
440
|
/** The name of the service that this resource belongs to, such as `pubsub.googleapis.com`. The service may be different from the DNS hostname that actually serves the request. */
|
|
354
|
-
service?:
|
|
441
|
+
service?:
|
|
442
|
+
string;
|
|
355
443
|
/**
|
|
356
444
|
* The type of the resource. The syntax is platform-specific because different platforms define their resources differently. For Google APIs, the type format must be
|
|
357
445
|
* "{service}/{kind}", such as "pubsub.googleapis.com/Topic".
|
|
358
446
|
*/
|
|
359
|
-
type?:
|
|
447
|
+
type?:
|
|
448
|
+
string;
|
|
360
449
|
/**
|
|
361
450
|
* The unique identifier of the resource. UID is unique in the time and space for this resource within the scope of the service. It is typically generated by the server on successful
|
|
362
451
|
* creation of a resource and must not be changed. UID is used to uniquely identify resources with resource name reuses. This should be a UUID4.
|
|
363
452
|
*/
|
|
364
|
-
uid?:
|
|
453
|
+
uid?:
|
|
454
|
+
string;
|
|
365
455
|
/**
|
|
366
456
|
* Output only. The timestamp when the resource was last updated. Any change to the resource made by users must refresh this value. Changes to a resource made by the service should
|
|
367
457
|
* refresh this value.
|
|
368
458
|
*/
|
|
369
|
-
updateTime?:
|
|
459
|
+
updateTime?:
|
|
460
|
+
string;
|
|
370
461
|
}
|
|
371
462
|
interface ResourceInfo {
|
|
372
463
|
/**
|
|
373
464
|
* Optional. The identifier of the container of this resource. For Google Cloud APIs, the resource container must be one of the following formats: - `projects/` - `folders/` -
|
|
374
465
|
* `organizations/` For the policy enforcement on the container level (VPCSC and Location Policy check), this field takes precedence on the container extracted from name when presents.
|
|
375
466
|
*/
|
|
376
|
-
container?:
|
|
467
|
+
container?:
|
|
468
|
+
string;
|
|
377
469
|
/** Optional. The location of the resource. The value must be a valid zone, region or multiregion. For example: "europe-west4" or "northamerica-northeast1-a" */
|
|
378
|
-
location?:
|
|
470
|
+
location?:
|
|
471
|
+
string;
|
|
379
472
|
/** The name of the resource referenced in the request. */
|
|
380
|
-
name?:
|
|
473
|
+
name?:
|
|
474
|
+
string;
|
|
381
475
|
/** The resource permission needed for this request. The format must be "{service}/{plural}.{verb}". */
|
|
382
|
-
permission?:
|
|
476
|
+
permission?:
|
|
477
|
+
string;
|
|
383
478
|
/** The resource type in the format of "{service}/{kind}". */
|
|
384
|
-
type?:
|
|
479
|
+
type?:
|
|
480
|
+
string;
|
|
385
481
|
}
|
|
386
482
|
interface ResourceLocation {
|
|
387
483
|
/**
|
|
388
484
|
* The locations of a resource after the execution of the operation. Requests to create or delete a location based resource must populate the 'current_locations' field and not the
|
|
389
485
|
* 'original_locations' field. For example: "europe-west1-a" "us-east1" "nam3"
|
|
390
486
|
*/
|
|
391
|
-
currentLocations?:
|
|
487
|
+
currentLocations?:
|
|
488
|
+
string[];
|
|
392
489
|
/**
|
|
393
490
|
* The locations of a resource prior to the execution of the operation. Requests that mutate the resource's location must populate both the 'original_locations' as well as the
|
|
394
491
|
* 'current_locations' fields. For example: "europe-west1-a" "us-east1" "nam3"
|
|
395
492
|
*/
|
|
396
|
-
originalLocations?:
|
|
493
|
+
originalLocations?:
|
|
494
|
+
string[];
|
|
397
495
|
}
|
|
398
496
|
interface Response {
|
|
399
497
|
/**
|
|
400
498
|
* The amount of time it takes the backend service to fully respond to a request. Measured from when the destination service starts to send the request to the backend until when the
|
|
401
499
|
* destination service receives the complete response from the backend.
|
|
402
500
|
*/
|
|
403
|
-
backendLatency?:
|
|
501
|
+
backendLatency?:
|
|
502
|
+
string;
|
|
404
503
|
/** The HTTP response status code, such as `200` and `404`. */
|
|
405
|
-
code?:
|
|
504
|
+
code?:
|
|
505
|
+
string;
|
|
406
506
|
/**
|
|
407
507
|
* The HTTP response headers. If multiple headers share the same key, they must be merged according to HTTP spec. All header keys must be lowercased, because HTTP header keys are
|
|
408
508
|
* case-insensitive.
|
|
409
509
|
*/
|
|
410
|
-
headers?:
|
|
510
|
+
headers?:
|
|
511
|
+
{ [P in string]: string };
|
|
411
512
|
/** The HTTP response size in bytes. If unknown, it must be -1. */
|
|
412
|
-
size?:
|
|
513
|
+
size?:
|
|
514
|
+
string;
|
|
413
515
|
/** The timestamp when the `destination` service sends the last byte of the response. */
|
|
414
|
-
time?:
|
|
516
|
+
time?:
|
|
517
|
+
string;
|
|
415
518
|
}
|
|
416
519
|
interface ServiceAccountDelegationInfo {
|
|
417
520
|
/** First party (Google) identity as the real authority. */
|
|
418
|
-
firstPartyPrincipal?:
|
|
521
|
+
firstPartyPrincipal?:
|
|
522
|
+
FirstPartyPrincipal;
|
|
419
523
|
/**
|
|
420
524
|
* A string representing the principal_subject associated with the identity. For most identities, the format will be `principal://iam.googleapis.com/{identity pool
|
|
421
525
|
* name}/subject/{subject)` except for some GKE identities (GKE_WORKLOAD, FREEFORM, GKE_HUB_WORKLOAD) that are still in the legacy format `serviceAccount:{identity pool
|
|
422
526
|
* name}[{subject}]`
|
|
423
527
|
*/
|
|
424
|
-
principalSubject?:
|
|
528
|
+
principalSubject?:
|
|
529
|
+
string;
|
|
425
530
|
/** Third party identity as the real authority. */
|
|
426
|
-
thirdPartyPrincipal?:
|
|
531
|
+
thirdPartyPrincipal?:
|
|
532
|
+
ThirdPartyPrincipal;
|
|
427
533
|
}
|
|
428
534
|
interface SpanContext {
|
|
429
535
|
/**
|
|
@@ -431,120 +537,164 @@ declare namespace gapi.client {
|
|
|
431
537
|
* is a 32-character hexadecimal encoding of a 16-byte array. `[SPAN_ID]` is a unique identifier for a span within a trace; it is a 16-character hexadecimal encoding of an 8-byte
|
|
432
538
|
* array.
|
|
433
539
|
*/
|
|
434
|
-
spanName?:
|
|
540
|
+
spanName?:
|
|
541
|
+
string;
|
|
435
542
|
}
|
|
436
543
|
interface Status {
|
|
437
544
|
/** The status code, which should be an enum value of google.rpc.Code. */
|
|
438
|
-
code?:
|
|
545
|
+
code?:
|
|
546
|
+
number;
|
|
439
547
|
/** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
|
|
440
|
-
details?:
|
|
548
|
+
details?:
|
|
549
|
+
Array<{ [P in string]: any }>;
|
|
441
550
|
/**
|
|
442
551
|
* 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
|
|
443
552
|
* client.
|
|
444
553
|
*/
|
|
445
|
-
message?:
|
|
554
|
+
message?:
|
|
555
|
+
string;
|
|
446
556
|
}
|
|
447
557
|
interface ThirdPartyPrincipal {
|
|
448
558
|
/** Metadata about third party identity. */
|
|
449
|
-
thirdPartyClaims?:
|
|
559
|
+
thirdPartyClaims?:
|
|
560
|
+
{ [P in string]: any };
|
|
450
561
|
}
|
|
451
562
|
interface V2HttpRequest {
|
|
452
563
|
/** The number of HTTP response bytes inserted into cache. Set only when a cache fill was attempted. */
|
|
453
|
-
cacheFillBytes?:
|
|
564
|
+
cacheFillBytes?:
|
|
565
|
+
string;
|
|
454
566
|
/** Whether or not an entity was served from cache (with or without validation). */
|
|
455
|
-
cacheHit?:
|
|
567
|
+
cacheHit?:
|
|
568
|
+
boolean;
|
|
456
569
|
/** Whether or not a cache lookup was attempted. */
|
|
457
|
-
cacheLookup?:
|
|
570
|
+
cacheLookup?:
|
|
571
|
+
boolean;
|
|
458
572
|
/** Whether or not the response was validated with the origin server before being served from cache. This field is only meaningful if `cache_hit` is True. */
|
|
459
|
-
cacheValidatedWithOriginServer?:
|
|
573
|
+
cacheValidatedWithOriginServer?:
|
|
574
|
+
boolean;
|
|
460
575
|
/** The request processing latency on the server, from the time the request was received until the response was sent. */
|
|
461
|
-
latency?:
|
|
576
|
+
latency?:
|
|
577
|
+
string;
|
|
462
578
|
/** Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket" */
|
|
463
|
-
protocol?:
|
|
579
|
+
protocol?:
|
|
580
|
+
string;
|
|
464
581
|
/** The referer URL of the request, as defined in [HTTP/1.1 Header Field Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html). */
|
|
465
|
-
referer?:
|
|
582
|
+
referer?:
|
|
583
|
+
string;
|
|
466
584
|
/** The IP address (IPv4 or IPv6) of the client that issued the HTTP request. Examples: `"192.168.1.1"`, `"FE80::0202:B3FF:FE1E:8329"`. */
|
|
467
|
-
remoteIp?:
|
|
585
|
+
remoteIp?:
|
|
586
|
+
string;
|
|
468
587
|
/** The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`. */
|
|
469
|
-
requestMethod?:
|
|
588
|
+
requestMethod?:
|
|
589
|
+
string;
|
|
470
590
|
/** The size of the HTTP request message in bytes, including the request headers and the request body. */
|
|
471
|
-
requestSize?:
|
|
591
|
+
requestSize?:
|
|
592
|
+
string;
|
|
472
593
|
/** The scheme (http, https), the host name, the path, and the query portion of the URL that was requested. Example: `"http://example.com/some/info?color=red"`. */
|
|
473
|
-
requestUrl?:
|
|
594
|
+
requestUrl?:
|
|
595
|
+
string;
|
|
474
596
|
/** The size of the HTTP response message sent back to the client, in bytes, including the response headers and the response body. */
|
|
475
|
-
responseSize?:
|
|
597
|
+
responseSize?:
|
|
598
|
+
string;
|
|
476
599
|
/** The IP address (IPv4 or IPv6) of the origin server that the request was sent to. */
|
|
477
|
-
serverIp?:
|
|
600
|
+
serverIp?:
|
|
601
|
+
string;
|
|
478
602
|
/** The response code indicating the status of the response. Examples: 200, 404. */
|
|
479
|
-
status?:
|
|
603
|
+
status?:
|
|
604
|
+
number;
|
|
480
605
|
/** The user agent sent by the client. Example: `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET CLR 1.0.3705)"`. */
|
|
481
|
-
userAgent?:
|
|
606
|
+
userAgent?:
|
|
607
|
+
string;
|
|
482
608
|
}
|
|
483
609
|
interface V2LogEntry {
|
|
484
610
|
/** Optional. Information about the HTTP request associated with this log entry, if applicable. */
|
|
485
|
-
httpRequest?:
|
|
611
|
+
httpRequest?:
|
|
612
|
+
V2HttpRequest;
|
|
486
613
|
/** A unique ID for the log entry used for deduplication. If omitted, the implementation will generate one based on operation_id. */
|
|
487
|
-
insertId?:
|
|
614
|
+
insertId?:
|
|
615
|
+
string;
|
|
488
616
|
/** A set of user-defined (key, value) data that provides additional information about the log entry. */
|
|
489
|
-
labels?:
|
|
617
|
+
labels?:
|
|
618
|
+
{ [P in string]: string };
|
|
490
619
|
/** A set of user-defined (key, value) data that provides additional information about the moniotored resource that the log entry belongs to. */
|
|
491
|
-
monitoredResourceLabels?:
|
|
620
|
+
monitoredResourceLabels?:
|
|
621
|
+
{ [P in string]: string };
|
|
492
622
|
/** Required. The log to which this log entry belongs. Examples: `"syslog"`, `"book_log"`. */
|
|
493
|
-
name?:
|
|
623
|
+
name?:
|
|
624
|
+
string;
|
|
494
625
|
/** Optional. Information about an operation associated with the log entry, if applicable. */
|
|
495
|
-
operation?:
|
|
626
|
+
operation?:
|
|
627
|
+
V2LogEntryOperation;
|
|
496
628
|
/** The log entry payload, represented as a protocol buffer that is expressed as a JSON object. The only accepted type currently is AuditLog. */
|
|
497
|
-
protoPayload?:
|
|
629
|
+
protoPayload?:
|
|
630
|
+
{ [P in string]: any };
|
|
498
631
|
/** The severity of the log entry. The default value is `LogSeverity.DEFAULT`. */
|
|
499
|
-
severity?:
|
|
632
|
+
severity?:
|
|
633
|
+
string;
|
|
500
634
|
/** Optional. Source code location information associated with the log entry, if any. */
|
|
501
|
-
sourceLocation?:
|
|
635
|
+
sourceLocation?:
|
|
636
|
+
V2LogEntrySourceLocation;
|
|
502
637
|
/** The log entry payload, represented as a structure that is expressed as a JSON object. */
|
|
503
|
-
structPayload?:
|
|
638
|
+
structPayload?:
|
|
639
|
+
{ [P in string]: any };
|
|
504
640
|
/** The log entry payload, represented as a Unicode string (UTF-8). */
|
|
505
|
-
textPayload?:
|
|
641
|
+
textPayload?:
|
|
642
|
+
string;
|
|
506
643
|
/** The time the event described by the log entry occurred. If omitted, defaults to operation start time. */
|
|
507
|
-
timestamp?:
|
|
644
|
+
timestamp?:
|
|
645
|
+
string;
|
|
508
646
|
/**
|
|
509
647
|
* Optional. Resource name of the trace associated with the log entry, if any. If this field contains a relative resource name, you can assume the name is relative to
|
|
510
648
|
* `//tracing.googleapis.com`. Example: `projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824`
|
|
511
649
|
*/
|
|
512
|
-
trace?:
|
|
650
|
+
trace?:
|
|
651
|
+
string;
|
|
513
652
|
}
|
|
514
653
|
interface V2LogEntryOperation {
|
|
515
654
|
/** Optional. Set this to True if this is the first log entry in the operation. */
|
|
516
|
-
first?:
|
|
655
|
+
first?:
|
|
656
|
+
boolean;
|
|
517
657
|
/** Optional. An arbitrary operation identifier. Log entries with the same identifier are assumed to be part of the same operation. */
|
|
518
|
-
id?:
|
|
658
|
+
id?:
|
|
659
|
+
string;
|
|
519
660
|
/** Optional. Set this to True if this is the last log entry in the operation. */
|
|
520
|
-
last?:
|
|
661
|
+
last?:
|
|
662
|
+
boolean;
|
|
521
663
|
/**
|
|
522
664
|
* Optional. An arbitrary producer identifier. The combination of `id` and `producer` must be globally unique. Examples for `producer`: `"MyDivision.MyBigCompany.com"`,
|
|
523
665
|
* `"github.com/MyProject/MyApplication"`.
|
|
524
666
|
*/
|
|
525
|
-
producer?:
|
|
667
|
+
producer?:
|
|
668
|
+
string;
|
|
526
669
|
}
|
|
527
670
|
interface V2LogEntrySourceLocation {
|
|
528
671
|
/** Optional. Source file name. Depending on the runtime environment, this might be a simple name or a fully-qualified name. */
|
|
529
|
-
file?:
|
|
672
|
+
file?:
|
|
673
|
+
string;
|
|
530
674
|
/**
|
|
531
675
|
* Optional. Human-readable name of the function or method being invoked, with optional context such as the class or package name. This information may be used in contexts such as the
|
|
532
676
|
* logs viewer, where a file and line number are less meaningful. The format can vary by language. For example: `qual.if.ied.Class.method` (Java), `dir/package.func` (Go), `function`
|
|
533
677
|
* (Python).
|
|
534
678
|
*/
|
|
535
|
-
function?:
|
|
679
|
+
function?:
|
|
680
|
+
string;
|
|
536
681
|
/** Optional. Line within the source file. 1-based; 0 indicates no line number available. */
|
|
537
|
-
line?:
|
|
682
|
+
line?:
|
|
683
|
+
string;
|
|
538
684
|
}
|
|
539
685
|
interface ViolationInfo {
|
|
540
686
|
/** Optional. Value that is being checked for the policy. This could be in encrypted form (if pii sensitive). This field will only be emitted in LIST_POLICY types */
|
|
541
|
-
checkedValue?:
|
|
687
|
+
checkedValue?:
|
|
688
|
+
string;
|
|
542
689
|
/** Optional. Constraint name */
|
|
543
|
-
constraint?:
|
|
690
|
+
constraint?:
|
|
691
|
+
string;
|
|
544
692
|
/** Optional. Error message that policy is indicating. */
|
|
545
|
-
errorMessage?:
|
|
693
|
+
errorMessage?:
|
|
694
|
+
string;
|
|
546
695
|
/** Optional. Indicates the type of the policy. */
|
|
547
|
-
policyType?:
|
|
696
|
+
policyType?:
|
|
697
|
+
string;
|
|
548
698
|
}
|
|
549
699
|
interface ServicesResource {
|
|
550
700
|
/**
|
|
@@ -558,63 +708,88 @@ declare namespace gapi.client {
|
|
|
558
708
|
*/
|
|
559
709
|
check(request: {
|
|
560
710
|
/** V1 error format. */
|
|
561
|
-
"$.xgafv"?:
|
|
711
|
+
"$.xgafv"?:
|
|
712
|
+
string;
|
|
562
713
|
/** OAuth access token. */
|
|
563
|
-
access_token?:
|
|
714
|
+
access_token?:
|
|
715
|
+
string;
|
|
564
716
|
/** Data format for response. */
|
|
565
|
-
alt?:
|
|
717
|
+
alt?:
|
|
718
|
+
string;
|
|
566
719
|
/** JSONP */
|
|
567
|
-
callback?:
|
|
720
|
+
callback?:
|
|
721
|
+
string;
|
|
568
722
|
/** Selector specifying which fields to include in a partial response. */
|
|
569
|
-
fields?:
|
|
723
|
+
fields?:
|
|
724
|
+
string;
|
|
570
725
|
/** 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. */
|
|
571
|
-
key?:
|
|
726
|
+
key?:
|
|
727
|
+
string;
|
|
572
728
|
/** OAuth 2.0 token for the current user. */
|
|
573
|
-
oauth_token?:
|
|
729
|
+
oauth_token?:
|
|
730
|
+
string;
|
|
574
731
|
/** Returns response with indentations and line breaks. */
|
|
575
|
-
prettyPrint?:
|
|
732
|
+
prettyPrint?:
|
|
733
|
+
boolean;
|
|
576
734
|
/** 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. */
|
|
577
|
-
quotaUser?:
|
|
735
|
+
quotaUser?:
|
|
736
|
+
string;
|
|
578
737
|
/**
|
|
579
738
|
* The service name as specified in its service configuration. For example, `"pubsub.googleapis.com"`. See
|
|
580
739
|
* [google.api.Service](https://cloud.google.com/service-management/reference/rpc/google.api#google.api.Service) for the definition of a service name.
|
|
581
740
|
*/
|
|
582
|
-
serviceName:
|
|
741
|
+
serviceName:
|
|
742
|
+
string;
|
|
583
743
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
584
|
-
upload_protocol?:
|
|
744
|
+
upload_protocol?:
|
|
745
|
+
string;
|
|
585
746
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
586
|
-
uploadType?:
|
|
747
|
+
uploadType?:
|
|
748
|
+
string;
|
|
587
749
|
/** Request body */
|
|
588
|
-
resource:
|
|
750
|
+
resource:
|
|
751
|
+
CheckRequest;
|
|
589
752
|
}): client.Request<CheckResponse>;
|
|
590
753
|
check(request: {
|
|
591
754
|
/** V1 error format. */
|
|
592
|
-
"$.xgafv"?:
|
|
755
|
+
"$.xgafv"?:
|
|
756
|
+
string;
|
|
593
757
|
/** OAuth access token. */
|
|
594
|
-
access_token?:
|
|
758
|
+
access_token?:
|
|
759
|
+
string;
|
|
595
760
|
/** Data format for response. */
|
|
596
|
-
alt?:
|
|
761
|
+
alt?:
|
|
762
|
+
string;
|
|
597
763
|
/** JSONP */
|
|
598
|
-
callback?:
|
|
764
|
+
callback?:
|
|
765
|
+
string;
|
|
599
766
|
/** Selector specifying which fields to include in a partial response. */
|
|
600
|
-
fields?:
|
|
767
|
+
fields?:
|
|
768
|
+
string;
|
|
601
769
|
/** 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. */
|
|
602
|
-
key?:
|
|
770
|
+
key?:
|
|
771
|
+
string;
|
|
603
772
|
/** OAuth 2.0 token for the current user. */
|
|
604
|
-
oauth_token?:
|
|
773
|
+
oauth_token?:
|
|
774
|
+
string;
|
|
605
775
|
/** Returns response with indentations and line breaks. */
|
|
606
|
-
prettyPrint?:
|
|
776
|
+
prettyPrint?:
|
|
777
|
+
boolean;
|
|
607
778
|
/** 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. */
|
|
608
|
-
quotaUser?:
|
|
779
|
+
quotaUser?:
|
|
780
|
+
string;
|
|
609
781
|
/**
|
|
610
782
|
* The service name as specified in its service configuration. For example, `"pubsub.googleapis.com"`. See
|
|
611
783
|
* [google.api.Service](https://cloud.google.com/service-management/reference/rpc/google.api#google.api.Service) for the definition of a service name.
|
|
612
784
|
*/
|
|
613
|
-
serviceName:
|
|
785
|
+
serviceName:
|
|
786
|
+
string;
|
|
614
787
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
615
|
-
upload_protocol?:
|
|
788
|
+
upload_protocol?:
|
|
789
|
+
string;
|
|
616
790
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
617
|
-
uploadType?:
|
|
791
|
+
uploadType?:
|
|
792
|
+
string;
|
|
618
793
|
},
|
|
619
794
|
body: CheckRequest): client.Request<CheckResponse>;
|
|
620
795
|
/**
|
|
@@ -626,63 +801,88 @@ declare namespace gapi.client {
|
|
|
626
801
|
*/
|
|
627
802
|
report(request: {
|
|
628
803
|
/** V1 error format. */
|
|
629
|
-
"$.xgafv"?:
|
|
804
|
+
"$.xgafv"?:
|
|
805
|
+
string;
|
|
630
806
|
/** OAuth access token. */
|
|
631
|
-
access_token?:
|
|
807
|
+
access_token?:
|
|
808
|
+
string;
|
|
632
809
|
/** Data format for response. */
|
|
633
|
-
alt?:
|
|
810
|
+
alt?:
|
|
811
|
+
string;
|
|
634
812
|
/** JSONP */
|
|
635
|
-
callback?:
|
|
813
|
+
callback?:
|
|
814
|
+
string;
|
|
636
815
|
/** Selector specifying which fields to include in a partial response. */
|
|
637
|
-
fields?:
|
|
816
|
+
fields?:
|
|
817
|
+
string;
|
|
638
818
|
/** 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. */
|
|
639
|
-
key?:
|
|
819
|
+
key?:
|
|
820
|
+
string;
|
|
640
821
|
/** OAuth 2.0 token for the current user. */
|
|
641
|
-
oauth_token?:
|
|
822
|
+
oauth_token?:
|
|
823
|
+
string;
|
|
642
824
|
/** Returns response with indentations and line breaks. */
|
|
643
|
-
prettyPrint?:
|
|
825
|
+
prettyPrint?:
|
|
826
|
+
boolean;
|
|
644
827
|
/** 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. */
|
|
645
|
-
quotaUser?:
|
|
828
|
+
quotaUser?:
|
|
829
|
+
string;
|
|
646
830
|
/**
|
|
647
831
|
* The service name as specified in its service configuration. For example, `"pubsub.googleapis.com"`. See
|
|
648
832
|
* [google.api.Service](https://cloud.google.com/service-management/reference/rpc/google.api#google.api.Service) for the definition of a service name.
|
|
649
833
|
*/
|
|
650
|
-
serviceName:
|
|
834
|
+
serviceName:
|
|
835
|
+
string;
|
|
651
836
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
652
|
-
upload_protocol?:
|
|
837
|
+
upload_protocol?:
|
|
838
|
+
string;
|
|
653
839
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
654
|
-
uploadType?:
|
|
840
|
+
uploadType?:
|
|
841
|
+
string;
|
|
655
842
|
/** Request body */
|
|
656
|
-
resource:
|
|
843
|
+
resource:
|
|
844
|
+
ReportRequest;
|
|
657
845
|
}): client.Request<{}>;
|
|
658
846
|
report(request: {
|
|
659
847
|
/** V1 error format. */
|
|
660
|
-
"$.xgafv"?:
|
|
848
|
+
"$.xgafv"?:
|
|
849
|
+
string;
|
|
661
850
|
/** OAuth access token. */
|
|
662
|
-
access_token?:
|
|
851
|
+
access_token?:
|
|
852
|
+
string;
|
|
663
853
|
/** Data format for response. */
|
|
664
|
-
alt?:
|
|
854
|
+
alt?:
|
|
855
|
+
string;
|
|
665
856
|
/** JSONP */
|
|
666
|
-
callback?:
|
|
857
|
+
callback?:
|
|
858
|
+
string;
|
|
667
859
|
/** Selector specifying which fields to include in a partial response. */
|
|
668
|
-
fields?:
|
|
860
|
+
fields?:
|
|
861
|
+
string;
|
|
669
862
|
/** 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. */
|
|
670
|
-
key?:
|
|
863
|
+
key?:
|
|
864
|
+
string;
|
|
671
865
|
/** OAuth 2.0 token for the current user. */
|
|
672
|
-
oauth_token?:
|
|
866
|
+
oauth_token?:
|
|
867
|
+
string;
|
|
673
868
|
/** Returns response with indentations and line breaks. */
|
|
674
|
-
prettyPrint?:
|
|
869
|
+
prettyPrint?:
|
|
870
|
+
boolean;
|
|
675
871
|
/** 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. */
|
|
676
|
-
quotaUser?:
|
|
872
|
+
quotaUser?:
|
|
873
|
+
string;
|
|
677
874
|
/**
|
|
678
875
|
* The service name as specified in its service configuration. For example, `"pubsub.googleapis.com"`. See
|
|
679
876
|
* [google.api.Service](https://cloud.google.com/service-management/reference/rpc/google.api#google.api.Service) for the definition of a service name.
|
|
680
877
|
*/
|
|
681
|
-
serviceName:
|
|
878
|
+
serviceName:
|
|
879
|
+
string;
|
|
682
880
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
683
|
-
upload_protocol?:
|
|
881
|
+
upload_protocol?:
|
|
882
|
+
string;
|
|
684
883
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
685
|
-
uploadType?:
|
|
884
|
+
uploadType?:
|
|
885
|
+
string;
|
|
686
886
|
},
|
|
687
887
|
body: ReportRequest): client.Request<{}>;
|
|
688
888
|
}
|
package/package.json
CHANGED
package/tests.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
4
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
5
|
|
|
6
|
-
// Revision:
|
|
6
|
+
// Revision: 20230428
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|