@maxim_mazurok/gapi.client.cloudprofiler-v2 0.0.20230416 → 0.0.20230429
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 +179 -90
- 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://cloudprofiler.googleapis.com/$discovery/rest?version=v2
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230429
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -24,9 +24,11 @@ declare namespace gapi.client {
|
|
|
24
24
|
namespace cloudprofiler {
|
|
25
25
|
interface CreateProfileRequest {
|
|
26
26
|
/** Deployment details. */
|
|
27
|
-
deployment?:
|
|
27
|
+
deployment?:
|
|
28
|
+
Deployment;
|
|
28
29
|
/** One or more profile types that the agent is capable of providing. */
|
|
29
|
-
profileType?:
|
|
30
|
+
profileType?:
|
|
31
|
+
string[];
|
|
30
32
|
}
|
|
31
33
|
interface Deployment {
|
|
32
34
|
/**
|
|
@@ -35,35 +37,44 @@ declare namespace gapi.client {
|
|
|
35
37
|
* deployment. The standard choices for the value include "java", "go", "python", "ruby", "nodejs", "php", "dotnet". For deployments running on Google Cloud Platform, "zone" or
|
|
36
38
|
* "region" label should be present describing the deployment location. An example of a zone is "us-central1-a", an example of a region is "us-central1" or "us-central".
|
|
37
39
|
*/
|
|
38
|
-
labels?:
|
|
40
|
+
labels?:
|
|
41
|
+
{ [P in string]: string };
|
|
39
42
|
/** Project ID is the ID of a cloud project. Validation regex: `^a-z{4,61}[a-z0-9]$`. */
|
|
40
|
-
projectId?:
|
|
43
|
+
projectId?:
|
|
44
|
+
string;
|
|
41
45
|
/**
|
|
42
46
|
* Target is the service name used to group related deployments: * Service name for App Engine Flex / Standard. * Cluster and container name for GKE. * User-specified string for direct
|
|
43
47
|
* Compute Engine profiling (e.g. Java). * Job name for Dataflow. Validation regex: `^[a-z0-9]([-a-z0-9_.]{0,253}[a-z0-9])?$`.
|
|
44
48
|
*/
|
|
45
|
-
target?:
|
|
49
|
+
target?:
|
|
50
|
+
string;
|
|
46
51
|
}
|
|
47
52
|
interface Profile {
|
|
48
53
|
/** Deployment this profile corresponds to. */
|
|
49
|
-
deployment?:
|
|
54
|
+
deployment?:
|
|
55
|
+
Deployment;
|
|
50
56
|
/**
|
|
51
57
|
* Duration of the profiling session. Input (for the offline mode) or output (for the online mode). The field represents requested profiling duration. It may slightly differ from the
|
|
52
58
|
* effective profiling duration, which is recorded in the profile data, in case the profiling can't be stopped immediately (e.g. in case stopping the profiling is handled
|
|
53
59
|
* asynchronously).
|
|
54
60
|
*/
|
|
55
|
-
duration?:
|
|
61
|
+
duration?:
|
|
62
|
+
string;
|
|
56
63
|
/**
|
|
57
64
|
* Input only. Labels associated to this specific profile. These labels will get merged with the deployment labels for the final data set. See documentation on deployment labels for
|
|
58
65
|
* validation rules and limits.
|
|
59
66
|
*/
|
|
60
|
-
labels?:
|
|
67
|
+
labels?:
|
|
68
|
+
{ [P in string]: string };
|
|
61
69
|
/** Output only. Opaque, server-assigned, unique ID for this profile. */
|
|
62
|
-
name?:
|
|
70
|
+
name?:
|
|
71
|
+
string;
|
|
63
72
|
/** Input only. Profile bytes, as a gzip compressed serialized proto, the format is https://github.com/google/pprof/blob/master/proto/profile.proto. */
|
|
64
|
-
profileBytes?:
|
|
73
|
+
profileBytes?:
|
|
74
|
+
string;
|
|
65
75
|
/** Type of profile. For offline mode, this must be specified when creating the profile. For online mode it is assigned and returned by the server. */
|
|
66
|
-
profileType?:
|
|
76
|
+
profileType?:
|
|
77
|
+
string;
|
|
67
78
|
}
|
|
68
79
|
interface ProfilesResource {
|
|
69
80
|
/**
|
|
@@ -74,113 +85,163 @@ declare namespace gapi.client {
|
|
|
74
85
|
*/
|
|
75
86
|
create(request: {
|
|
76
87
|
/** V1 error format. */
|
|
77
|
-
"$.xgafv"?:
|
|
88
|
+
"$.xgafv"?:
|
|
89
|
+
string;
|
|
78
90
|
/** OAuth access token. */
|
|
79
|
-
access_token?:
|
|
91
|
+
access_token?:
|
|
92
|
+
string;
|
|
80
93
|
/** Data format for response. */
|
|
81
|
-
alt?:
|
|
94
|
+
alt?:
|
|
95
|
+
string;
|
|
82
96
|
/** JSONP */
|
|
83
|
-
callback?:
|
|
97
|
+
callback?:
|
|
98
|
+
string;
|
|
84
99
|
/** Selector specifying which fields to include in a partial response. */
|
|
85
|
-
fields?:
|
|
100
|
+
fields?:
|
|
101
|
+
string;
|
|
86
102
|
/** 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. */
|
|
87
|
-
key?:
|
|
103
|
+
key?:
|
|
104
|
+
string;
|
|
88
105
|
/** OAuth 2.0 token for the current user. */
|
|
89
|
-
oauth_token?:
|
|
106
|
+
oauth_token?:
|
|
107
|
+
string;
|
|
90
108
|
/** Parent project to create the profile in. */
|
|
91
|
-
parent:
|
|
109
|
+
parent:
|
|
110
|
+
string;
|
|
92
111
|
/** Returns response with indentations and line breaks. */
|
|
93
|
-
prettyPrint?:
|
|
112
|
+
prettyPrint?:
|
|
113
|
+
boolean;
|
|
94
114
|
/** 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. */
|
|
95
|
-
quotaUser?:
|
|
115
|
+
quotaUser?:
|
|
116
|
+
string;
|
|
96
117
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
97
|
-
upload_protocol?:
|
|
118
|
+
upload_protocol?:
|
|
119
|
+
string;
|
|
98
120
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
99
|
-
uploadType?:
|
|
121
|
+
uploadType?:
|
|
122
|
+
string;
|
|
100
123
|
/** Request body */
|
|
101
|
-
resource:
|
|
124
|
+
resource:
|
|
125
|
+
CreateProfileRequest;
|
|
102
126
|
}): Request<Profile>;
|
|
103
127
|
create(request: {
|
|
104
128
|
/** V1 error format. */
|
|
105
|
-
"$.xgafv"?:
|
|
129
|
+
"$.xgafv"?:
|
|
130
|
+
string;
|
|
106
131
|
/** OAuth access token. */
|
|
107
|
-
access_token?:
|
|
132
|
+
access_token?:
|
|
133
|
+
string;
|
|
108
134
|
/** Data format for response. */
|
|
109
|
-
alt?:
|
|
135
|
+
alt?:
|
|
136
|
+
string;
|
|
110
137
|
/** JSONP */
|
|
111
|
-
callback?:
|
|
138
|
+
callback?:
|
|
139
|
+
string;
|
|
112
140
|
/** Selector specifying which fields to include in a partial response. */
|
|
113
|
-
fields?:
|
|
141
|
+
fields?:
|
|
142
|
+
string;
|
|
114
143
|
/** 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. */
|
|
115
|
-
key?:
|
|
144
|
+
key?:
|
|
145
|
+
string;
|
|
116
146
|
/** OAuth 2.0 token for the current user. */
|
|
117
|
-
oauth_token?:
|
|
147
|
+
oauth_token?:
|
|
148
|
+
string;
|
|
118
149
|
/** Parent project to create the profile in. */
|
|
119
|
-
parent:
|
|
150
|
+
parent:
|
|
151
|
+
string;
|
|
120
152
|
/** Returns response with indentations and line breaks. */
|
|
121
|
-
prettyPrint?:
|
|
153
|
+
prettyPrint?:
|
|
154
|
+
boolean;
|
|
122
155
|
/** 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. */
|
|
123
|
-
quotaUser?:
|
|
156
|
+
quotaUser?:
|
|
157
|
+
string;
|
|
124
158
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
125
|
-
upload_protocol?:
|
|
159
|
+
upload_protocol?:
|
|
160
|
+
string;
|
|
126
161
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
127
|
-
uploadType?:
|
|
162
|
+
uploadType?:
|
|
163
|
+
string;
|
|
128
164
|
},
|
|
129
165
|
body: CreateProfileRequest): Request<Profile>;
|
|
130
166
|
/** CreateOfflineProfile creates a new profile resource in the offline mode. The client provides the profile to create along with the profile bytes, the server records it. */
|
|
131
167
|
createOffline(request: {
|
|
132
168
|
/** V1 error format. */
|
|
133
|
-
"$.xgafv"?:
|
|
169
|
+
"$.xgafv"?:
|
|
170
|
+
string;
|
|
134
171
|
/** OAuth access token. */
|
|
135
|
-
access_token?:
|
|
172
|
+
access_token?:
|
|
173
|
+
string;
|
|
136
174
|
/** Data format for response. */
|
|
137
|
-
alt?:
|
|
175
|
+
alt?:
|
|
176
|
+
string;
|
|
138
177
|
/** JSONP */
|
|
139
|
-
callback?:
|
|
178
|
+
callback?:
|
|
179
|
+
string;
|
|
140
180
|
/** Selector specifying which fields to include in a partial response. */
|
|
141
|
-
fields?:
|
|
181
|
+
fields?:
|
|
182
|
+
string;
|
|
142
183
|
/** 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. */
|
|
143
|
-
key?:
|
|
184
|
+
key?:
|
|
185
|
+
string;
|
|
144
186
|
/** OAuth 2.0 token for the current user. */
|
|
145
|
-
oauth_token?:
|
|
187
|
+
oauth_token?:
|
|
188
|
+
string;
|
|
146
189
|
/** Parent project to create the profile in. */
|
|
147
|
-
parent:
|
|
190
|
+
parent:
|
|
191
|
+
string;
|
|
148
192
|
/** Returns response with indentations and line breaks. */
|
|
149
|
-
prettyPrint?:
|
|
193
|
+
prettyPrint?:
|
|
194
|
+
boolean;
|
|
150
195
|
/** 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. */
|
|
151
|
-
quotaUser?:
|
|
196
|
+
quotaUser?:
|
|
197
|
+
string;
|
|
152
198
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
153
|
-
upload_protocol?:
|
|
199
|
+
upload_protocol?:
|
|
200
|
+
string;
|
|
154
201
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
155
|
-
uploadType?:
|
|
202
|
+
uploadType?:
|
|
203
|
+
string;
|
|
156
204
|
/** Request body */
|
|
157
|
-
resource:
|
|
205
|
+
resource:
|
|
206
|
+
Profile;
|
|
158
207
|
}): Request<Profile>;
|
|
159
208
|
createOffline(request: {
|
|
160
209
|
/** V1 error format. */
|
|
161
|
-
"$.xgafv"?:
|
|
210
|
+
"$.xgafv"?:
|
|
211
|
+
string;
|
|
162
212
|
/** OAuth access token. */
|
|
163
|
-
access_token?:
|
|
213
|
+
access_token?:
|
|
214
|
+
string;
|
|
164
215
|
/** Data format for response. */
|
|
165
|
-
alt?:
|
|
216
|
+
alt?:
|
|
217
|
+
string;
|
|
166
218
|
/** JSONP */
|
|
167
|
-
callback?:
|
|
219
|
+
callback?:
|
|
220
|
+
string;
|
|
168
221
|
/** Selector specifying which fields to include in a partial response. */
|
|
169
|
-
fields?:
|
|
222
|
+
fields?:
|
|
223
|
+
string;
|
|
170
224
|
/** 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. */
|
|
171
|
-
key?:
|
|
225
|
+
key?:
|
|
226
|
+
string;
|
|
172
227
|
/** OAuth 2.0 token for the current user. */
|
|
173
|
-
oauth_token?:
|
|
228
|
+
oauth_token?:
|
|
229
|
+
string;
|
|
174
230
|
/** Parent project to create the profile in. */
|
|
175
|
-
parent:
|
|
231
|
+
parent:
|
|
232
|
+
string;
|
|
176
233
|
/** Returns response with indentations and line breaks. */
|
|
177
|
-
prettyPrint?:
|
|
234
|
+
prettyPrint?:
|
|
235
|
+
boolean;
|
|
178
236
|
/** 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. */
|
|
179
|
-
quotaUser?:
|
|
237
|
+
quotaUser?:
|
|
238
|
+
string;
|
|
180
239
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
181
|
-
upload_protocol?:
|
|
240
|
+
upload_protocol?:
|
|
241
|
+
string;
|
|
182
242
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
183
|
-
uploadType?:
|
|
243
|
+
uploadType?:
|
|
244
|
+
string;
|
|
184
245
|
},
|
|
185
246
|
body: Profile): Request<Profile>;
|
|
186
247
|
/**
|
|
@@ -189,72 +250,100 @@ declare namespace gapi.client {
|
|
|
189
250
|
*/
|
|
190
251
|
patch(request: {
|
|
191
252
|
/** V1 error format. */
|
|
192
|
-
"$.xgafv"?:
|
|
253
|
+
"$.xgafv"?:
|
|
254
|
+
string;
|
|
193
255
|
/** OAuth access token. */
|
|
194
|
-
access_token?:
|
|
256
|
+
access_token?:
|
|
257
|
+
string;
|
|
195
258
|
/** Data format for response. */
|
|
196
|
-
alt?:
|
|
259
|
+
alt?:
|
|
260
|
+
string;
|
|
197
261
|
/** JSONP */
|
|
198
|
-
callback?:
|
|
262
|
+
callback?:
|
|
263
|
+
string;
|
|
199
264
|
/** Selector specifying which fields to include in a partial response. */
|
|
200
|
-
fields?:
|
|
265
|
+
fields?:
|
|
266
|
+
string;
|
|
201
267
|
/** 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. */
|
|
202
|
-
key?:
|
|
268
|
+
key?:
|
|
269
|
+
string;
|
|
203
270
|
/** Output only. Opaque, server-assigned, unique ID for this profile. */
|
|
204
|
-
name:
|
|
271
|
+
name:
|
|
272
|
+
string;
|
|
205
273
|
/** OAuth 2.0 token for the current user. */
|
|
206
|
-
oauth_token?:
|
|
274
|
+
oauth_token?:
|
|
275
|
+
string;
|
|
207
276
|
/** Returns response with indentations and line breaks. */
|
|
208
|
-
prettyPrint?:
|
|
277
|
+
prettyPrint?:
|
|
278
|
+
boolean;
|
|
209
279
|
/** 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. */
|
|
210
|
-
quotaUser?:
|
|
280
|
+
quotaUser?:
|
|
281
|
+
string;
|
|
211
282
|
/**
|
|
212
283
|
* Field mask used to specify the fields to be overwritten. Currently only profile_bytes and labels fields are supported by UpdateProfile, so only those fields can be specified in
|
|
213
284
|
* the mask. When no mask is provided, all fields are overwritten.
|
|
214
285
|
*/
|
|
215
|
-
updateMask?:
|
|
286
|
+
updateMask?:
|
|
287
|
+
string;
|
|
216
288
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
217
|
-
upload_protocol?:
|
|
289
|
+
upload_protocol?:
|
|
290
|
+
string;
|
|
218
291
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
219
|
-
uploadType?:
|
|
292
|
+
uploadType?:
|
|
293
|
+
string;
|
|
220
294
|
/** Request body */
|
|
221
|
-
resource:
|
|
295
|
+
resource:
|
|
296
|
+
Profile;
|
|
222
297
|
}): Request<Profile>;
|
|
223
298
|
patch(request: {
|
|
224
299
|
/** V1 error format. */
|
|
225
|
-
"$.xgafv"?:
|
|
300
|
+
"$.xgafv"?:
|
|
301
|
+
string;
|
|
226
302
|
/** OAuth access token. */
|
|
227
|
-
access_token?:
|
|
303
|
+
access_token?:
|
|
304
|
+
string;
|
|
228
305
|
/** Data format for response. */
|
|
229
|
-
alt?:
|
|
306
|
+
alt?:
|
|
307
|
+
string;
|
|
230
308
|
/** JSONP */
|
|
231
|
-
callback?:
|
|
309
|
+
callback?:
|
|
310
|
+
string;
|
|
232
311
|
/** Selector specifying which fields to include in a partial response. */
|
|
233
|
-
fields?:
|
|
312
|
+
fields?:
|
|
313
|
+
string;
|
|
234
314
|
/** 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. */
|
|
235
|
-
key?:
|
|
315
|
+
key?:
|
|
316
|
+
string;
|
|
236
317
|
/** Output only. Opaque, server-assigned, unique ID for this profile. */
|
|
237
|
-
name:
|
|
318
|
+
name:
|
|
319
|
+
string;
|
|
238
320
|
/** OAuth 2.0 token for the current user. */
|
|
239
|
-
oauth_token?:
|
|
321
|
+
oauth_token?:
|
|
322
|
+
string;
|
|
240
323
|
/** Returns response with indentations and line breaks. */
|
|
241
|
-
prettyPrint?:
|
|
324
|
+
prettyPrint?:
|
|
325
|
+
boolean;
|
|
242
326
|
/** 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. */
|
|
243
|
-
quotaUser?:
|
|
327
|
+
quotaUser?:
|
|
328
|
+
string;
|
|
244
329
|
/**
|
|
245
330
|
* Field mask used to specify the fields to be overwritten. Currently only profile_bytes and labels fields are supported by UpdateProfile, so only those fields can be specified in
|
|
246
331
|
* the mask. When no mask is provided, all fields are overwritten.
|
|
247
332
|
*/
|
|
248
|
-
updateMask?:
|
|
333
|
+
updateMask?:
|
|
334
|
+
string;
|
|
249
335
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
250
|
-
upload_protocol?:
|
|
336
|
+
upload_protocol?:
|
|
337
|
+
string;
|
|
251
338
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
252
|
-
uploadType?:
|
|
339
|
+
uploadType?:
|
|
340
|
+
string;
|
|
253
341
|
},
|
|
254
342
|
body: Profile): Request<Profile>;
|
|
255
343
|
}
|
|
256
344
|
interface ProjectsResource {
|
|
257
|
-
profiles:
|
|
345
|
+
profiles:
|
|
346
|
+
ProfilesResource;
|
|
258
347
|
}
|
|
259
348
|
|
|
260
349
|
const projects: ProjectsResource;
|
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: 20230429
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|