@maxim_mazurok/gapi.client.cloudprofiler-v2 0.1.20260302 → 0.2.20260302

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 (2) hide show
  1. package/index.d.ts +32 -16
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -32,7 +32,15 @@ declare namespace gapi.client {
32
32
  /** Deployment details. */
33
33
  deployment?: Deployment;
34
34
  /** One or more profile types that the agent is capable of providing. */
35
- profileType?: string[];
35
+ profileType?:
36
+ | 'PROFILE_TYPE_UNSPECIFIED'
37
+ | 'CPU'
38
+ | 'WALL'
39
+ | 'HEAP'
40
+ | 'THREADS'
41
+ | 'CONTENTION'
42
+ | 'PEAK_HEAP'
43
+ | 'HEAP_ALLOC'[];
36
44
  }
37
45
  interface Deployment {
38
46
  /** Labels identify the deployment within the user universe and same target. Validation regex for label names: `^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$`. Value for an individual label must be <= 512 bytes, the total size of all label names and values must be <= 1024 bytes. Label named "language" can be used to record the programming language of the profiled deployment. The standard choices for the value include "java", "go", "python", "ruby", "nodejs", "php", "dotnet". For deployments running on Google Cloud Platform, "zone" or "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". */
@@ -62,7 +70,15 @@ declare namespace gapi.client {
62
70
  /** Input only. Profile bytes, as a gzip compressed serialized proto, the format is https://github.com/google/pprof/blob/master/proto/profile.proto. */
63
71
  profileBytes?: string;
64
72
  /** 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. */
65
- profileType?: string;
73
+ profileType?:
74
+ | 'PROFILE_TYPE_UNSPECIFIED'
75
+ | 'CPU'
76
+ | 'WALL'
77
+ | 'HEAP'
78
+ | 'THREADS'
79
+ | 'CONTENTION'
80
+ | 'PEAK_HEAP'
81
+ | 'HEAP_ALLOC';
66
82
  /** Output only. Start time for the profile. This output is only present in response from the ListProfiles method. */
67
83
  startTime?: string;
68
84
  }
@@ -70,11 +86,11 @@ declare namespace gapi.client {
70
86
  /** CreateProfile creates a new profile resource in the online mode. _Direct use of this API is discouraged, please use a [supported profiler agent](https://cloud.google.com/profiler/docs/about-profiler#profiling_agent) instead for profile collection._ The server ensures that the new profiles are created at a constant rate per deployment, so the creation request may hang for some time until the next profile session is available. The request may fail with ABORTED error if the creation is not available within ~1m, the response will indicate the duration of the backoff the client should take before attempting creating a profile again. The backoff duration is returned in google.rpc.RetryInfo extension on the response status. To a gRPC client, the extension will be return as a binary-serialized proto in the trailing metadata item named "google.rpc.retryinfo-bin". */
71
87
  create(request: {
72
88
  /** V1 error format. */
73
- '$.xgafv'?: string;
89
+ '$.xgafv'?: '1' | '2';
74
90
  /** OAuth access token. */
75
91
  access_token?: string;
76
92
  /** Data format for response. */
77
- alt?: string;
93
+ alt?: 'json' | 'media' | 'proto';
78
94
  /** JSONP */
79
95
  callback?: string;
80
96
  /** Selector specifying which fields to include in a partial response. */
@@ -99,11 +115,11 @@ declare namespace gapi.client {
99
115
  create(
100
116
  request: {
101
117
  /** V1 error format. */
102
- '$.xgafv'?: string;
118
+ '$.xgafv'?: '1' | '2';
103
119
  /** OAuth access token. */
104
120
  access_token?: string;
105
121
  /** Data format for response. */
106
- alt?: string;
122
+ alt?: 'json' | 'media' | 'proto';
107
123
  /** JSONP */
108
124
  callback?: string;
109
125
  /** Selector specifying which fields to include in a partial response. */
@@ -128,11 +144,11 @@ declare namespace gapi.client {
128
144
  /** 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. _Direct use of this API is discouraged, please use a [supported profiler agent](https://cloud.google.com/profiler/docs/about-profiler#profiling_agent) instead for profile collection._ */
129
145
  createOffline(request: {
130
146
  /** V1 error format. */
131
- '$.xgafv'?: string;
147
+ '$.xgafv'?: '1' | '2';
132
148
  /** OAuth access token. */
133
149
  access_token?: string;
134
150
  /** Data format for response. */
135
- alt?: string;
151
+ alt?: 'json' | 'media' | 'proto';
136
152
  /** JSONP */
137
153
  callback?: string;
138
154
  /** Selector specifying which fields to include in a partial response. */
@@ -157,11 +173,11 @@ declare namespace gapi.client {
157
173
  createOffline(
158
174
  request: {
159
175
  /** V1 error format. */
160
- '$.xgafv'?: string;
176
+ '$.xgafv'?: '1' | '2';
161
177
  /** OAuth access token. */
162
178
  access_token?: string;
163
179
  /** Data format for response. */
164
- alt?: string;
180
+ alt?: 'json' | 'media' | 'proto';
165
181
  /** JSONP */
166
182
  callback?: string;
167
183
  /** Selector specifying which fields to include in a partial response. */
@@ -186,11 +202,11 @@ declare namespace gapi.client {
186
202
  /** Lists profiles which have been collected so far and for which the caller has permission to view. */
187
203
  list(request?: {
188
204
  /** V1 error format. */
189
- '$.xgafv'?: string;
205
+ '$.xgafv'?: '1' | '2';
190
206
  /** OAuth access token. */
191
207
  access_token?: string;
192
208
  /** Data format for response. */
193
- alt?: string;
209
+ alt?: 'json' | 'media' | 'proto';
194
210
  /** JSONP */
195
211
  callback?: string;
196
212
  /** Selector specifying which fields to include in a partial response. */
@@ -217,11 +233,11 @@ declare namespace gapi.client {
217
233
  /** UpdateProfile updates the profile bytes and labels on the profile resource created in the online mode. Updating the bytes for profiles created in the offline mode is currently not supported: the profile content must be provided at the time of the profile creation. _Direct use of this API is discouraged, please use a [supported profiler agent](https://cloud.google.com/profiler/docs/about-profiler#profiling_agent) instead for profile collection._ */
218
234
  patch(request: {
219
235
  /** V1 error format. */
220
- '$.xgafv'?: string;
236
+ '$.xgafv'?: '1' | '2';
221
237
  /** OAuth access token. */
222
238
  access_token?: string;
223
239
  /** Data format for response. */
224
- alt?: string;
240
+ alt?: 'json' | 'media' | 'proto';
225
241
  /** JSONP */
226
242
  callback?: string;
227
243
  /** Selector specifying which fields to include in a partial response. */
@@ -248,11 +264,11 @@ declare namespace gapi.client {
248
264
  patch(
249
265
  request: {
250
266
  /** V1 error format. */
251
- '$.xgafv'?: string;
267
+ '$.xgafv'?: '1' | '2';
252
268
  /** OAuth access token. */
253
269
  access_token?: string;
254
270
  /** Data format for response. */
255
- alt?: string;
271
+ alt?: 'json' | 'media' | 'proto';
256
272
  /** JSONP */
257
273
  callback?: string;
258
274
  /** Selector specifying which fields to include in a partial response. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.cloudprofiler-v2",
3
- "version": "0.1.20260302",
3
+ "version": "0.2.20260302",
4
4
  "description": "TypeScript typings for Cloud Profiler API v2",
5
5
  "repository": {
6
6
  "type": "git",