@maxim_mazurok/gapi.client.osconfig-v1alpha 0.2.20260312 → 0.2.20260604

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 (3) hide show
  1. package/index.d.ts +3 -209
  2. package/package.json +1 -1
  3. package/readme.md +17 -0
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://osconfig.googleapis.com/$discovery/rest?version=v1alpha
12
- // Revision: 20260312
12
+ // Revision: 20260604
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -95,54 +95,6 @@ declare namespace gapi.client {
95
95
  /** Specifies the relative value defined as a percentage, which will be multiplied by a reference value. */
96
96
  percent?: number;
97
97
  }
98
- interface GoogleCloudOsconfigCommonV1__OperationMetadata {
99
- /** Output only. API version used to start the operation. */
100
- apiVersion?: string;
101
- /** Output only. The time the operation was created. */
102
- createTime?: string;
103
- /** Output only. The time the operation finished running. */
104
- endTime?: string;
105
- /** Output only. Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. */
106
- requestedCancellation?: boolean;
107
- /** Output only. Human-readable status of the operation, if any. */
108
- statusMessage?: string;
109
- /** Output only. Server-defined resource path for the target of the operation. */
110
- target?: string;
111
- /** Output only. Name of the verb executed by the operation. */
112
- verb?: string;
113
- }
114
- interface GoogleCloudOsconfigCommonV1alpha__OperationMetadata {
115
- /** Output only. API version used to start the operation. */
116
- apiVersion?: string;
117
- /** Output only. The time the operation was created. */
118
- createTime?: string;
119
- /** Output only. The time the operation finished running. */
120
- endTime?: string;
121
- /** Output only. Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. */
122
- requestedCancellation?: boolean;
123
- /** Output only. Human-readable status of the operation, if any. */
124
- statusMessage?: string;
125
- /** Output only. Server-defined resource path for the target of the operation. */
126
- target?: string;
127
- /** Output only. Name of the verb executed by the operation. */
128
- verb?: string;
129
- }
130
- interface GoogleCloudOsconfigCommonV1main__OperationMetadata {
131
- /** Output only. API version used to start the operation. */
132
- apiVersion?: string;
133
- /** Output only. The time the operation was created. */
134
- createTime?: string;
135
- /** Output only. The time the operation finished running. */
136
- endTime?: string;
137
- /** Output only. Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. */
138
- requestedCancellation?: boolean;
139
- /** Output only. Human-readable status of the operation, if any. */
140
- statusMessage?: string;
141
- /** Output only. Server-defined resource path for the target of the operation. */
142
- target?: string;
143
- /** Output only. Name of the verb executed by the operation. */
144
- verb?: string;
145
- }
146
98
  interface GoogleCloudOsconfigV1__OSPolicyAssignmentOperationMetadata {
147
99
  /** The OS policy assignment API method. */
148
100
  apiMethod?: 'API_METHOD_UNSPECIFIED' | 'CREATE' | 'UPDATE' | 'DELETE';
@@ -372,14 +324,6 @@ declare namespace gapi.client {
372
324
  /** The pagination token to retrieve the next page of inventory objects. */
373
325
  nextPageToken?: string;
374
326
  }
375
- interface ListOperationsResponse {
376
- /** The standard List next-page token. */
377
- nextPageToken?: string;
378
- /** A list of operations that matches the specified filter in the request. */
379
- operations?: Operation[];
380
- /** Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections. For example, when attempting to list all resources across all supported locations. */
381
- unreachable?: string[];
382
- }
383
327
  interface ListOSPolicyAssignmentReportsResponse {
384
328
  /** The pagination token to retrieve the next page of OS policy assignment report objects. */
385
329
  nextPageToken?: string;
@@ -657,7 +601,7 @@ declare namespace gapi.client {
657
601
  uri?: string;
658
602
  }
659
603
  interface OSPolicyResourceFileResource {
660
- /** A a file with this content. The size of the content is limited to 32KiB. */
604
+ /** A file with this content. The size of the content is limited to 32KiB. */
661
605
  content?: string;
662
606
  /** A remote or local source. */
663
607
  file?: OSPolicyResourceFile;
@@ -784,7 +728,7 @@ declare namespace gapi.client {
784
728
  /** The status code, which should be an enum value of google.rpc.Code. */
785
729
  code?: number;
786
730
  /** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
787
- details?: Array<{[P in string]: any}>;
731
+ details?: {[P in string]: any}[];
788
732
  /** 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. */
789
733
  message?: string;
790
734
  }
@@ -1121,155 +1065,6 @@ declare namespace gapi.client {
1121
1065
  osPolicyAssignments: OsPolicyAssignmentsResource;
1122
1066
  vulnerabilityReports: VulnerabilityReportsResource;
1123
1067
  }
1124
- interface OperationsResource {
1125
- /** Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. */
1126
- cancel(request: {
1127
- /** V1 error format. */
1128
- '$.xgafv'?: '1' | '2';
1129
- /** OAuth access token. */
1130
- access_token?: string;
1131
- /** Data format for response. */
1132
- alt?: 'json' | 'media' | 'proto';
1133
- /** JSONP */
1134
- callback?: string;
1135
- /** Selector specifying which fields to include in a partial response. */
1136
- fields?: string;
1137
- /** 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. */
1138
- key?: string;
1139
- /** The name of the operation resource to be cancelled. */
1140
- name: string;
1141
- /** OAuth 2.0 token for the current user. */
1142
- oauth_token?: string;
1143
- /** Returns response with indentations and line breaks. */
1144
- prettyPrint?: boolean;
1145
- /** 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. */
1146
- quotaUser?: string;
1147
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1148
- upload_protocol?: string;
1149
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1150
- uploadType?: string;
1151
- /** Request body */
1152
- resource: CancelOperationRequest;
1153
- }): Request<{}>;
1154
- cancel(
1155
- request: {
1156
- /** V1 error format. */
1157
- '$.xgafv'?: '1' | '2';
1158
- /** OAuth access token. */
1159
- access_token?: string;
1160
- /** Data format for response. */
1161
- alt?: 'json' | 'media' | 'proto';
1162
- /** JSONP */
1163
- callback?: string;
1164
- /** Selector specifying which fields to include in a partial response. */
1165
- fields?: string;
1166
- /** 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. */
1167
- key?: string;
1168
- /** The name of the operation resource to be cancelled. */
1169
- name: string;
1170
- /** OAuth 2.0 token for the current user. */
1171
- oauth_token?: string;
1172
- /** Returns response with indentations and line breaks. */
1173
- prettyPrint?: boolean;
1174
- /** 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. */
1175
- quotaUser?: string;
1176
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1177
- upload_protocol?: string;
1178
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1179
- uploadType?: string;
1180
- },
1181
- body: CancelOperationRequest,
1182
- ): Request<{}>;
1183
- /** Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. */
1184
- delete(request?: {
1185
- /** V1 error format. */
1186
- '$.xgafv'?: '1' | '2';
1187
- /** OAuth access token. */
1188
- access_token?: string;
1189
- /** Data format for response. */
1190
- alt?: 'json' | 'media' | 'proto';
1191
- /** JSONP */
1192
- callback?: string;
1193
- /** Selector specifying which fields to include in a partial response. */
1194
- fields?: string;
1195
- /** 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. */
1196
- key?: string;
1197
- /** The name of the operation resource to be deleted. */
1198
- name: string;
1199
- /** OAuth 2.0 token for the current user. */
1200
- oauth_token?: string;
1201
- /** Returns response with indentations and line breaks. */
1202
- prettyPrint?: boolean;
1203
- /** 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. */
1204
- quotaUser?: string;
1205
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1206
- upload_protocol?: string;
1207
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1208
- uploadType?: string;
1209
- }): Request<{}>;
1210
- /** 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. */
1211
- get(request?: {
1212
- /** V1 error format. */
1213
- '$.xgafv'?: '1' | '2';
1214
- /** OAuth access token. */
1215
- access_token?: string;
1216
- /** Data format for response. */
1217
- alt?: 'json' | 'media' | 'proto';
1218
- /** JSONP */
1219
- callback?: string;
1220
- /** Selector specifying which fields to include in a partial response. */
1221
- fields?: string;
1222
- /** 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. */
1223
- key?: string;
1224
- /** The name of the operation resource. */
1225
- name: string;
1226
- /** OAuth 2.0 token for the current user. */
1227
- oauth_token?: string;
1228
- /** Returns response with indentations and line breaks. */
1229
- prettyPrint?: boolean;
1230
- /** 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. */
1231
- quotaUser?: string;
1232
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1233
- upload_protocol?: string;
1234
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1235
- uploadType?: string;
1236
- }): Request<Operation>;
1237
- /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
1238
- list(request?: {
1239
- /** V1 error format. */
1240
- '$.xgafv'?: '1' | '2';
1241
- /** OAuth access token. */
1242
- access_token?: string;
1243
- /** Data format for response. */
1244
- alt?: 'json' | 'media' | 'proto';
1245
- /** JSONP */
1246
- callback?: string;
1247
- /** Selector specifying which fields to include in a partial response. */
1248
- fields?: string;
1249
- /** The standard list filter. */
1250
- filter?: string;
1251
- /** 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. */
1252
- key?: string;
1253
- /** The name of the operation's parent resource. */
1254
- name: string;
1255
- /** OAuth 2.0 token for the current user. */
1256
- oauth_token?: string;
1257
- /** The standard list page size. */
1258
- pageSize?: number;
1259
- /** The standard list page token. */
1260
- pageToken?: string;
1261
- /** Returns response with indentations and line breaks. */
1262
- prettyPrint?: boolean;
1263
- /** 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. */
1264
- quotaUser?: string;
1265
- /** When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation. */
1266
- returnPartialSuccess?: boolean;
1267
- /** Upload protocol for media (e.g. "raw", "multipart"). */
1268
- upload_protocol?: string;
1269
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1270
- uploadType?: string;
1271
- }): Request<ListOperationsResponse>;
1272
- }
1273
1068
  interface OperationsResource {
1274
1069
  /** Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. */
1275
1070
  cancel(request: {
@@ -1617,7 +1412,6 @@ declare namespace gapi.client {
1617
1412
  interface LocationsResource {
1618
1413
  instanceOSPoliciesCompliances: InstanceOSPoliciesCompliancesResource;
1619
1414
  instances: InstancesResource;
1620
- operations: OperationsResource;
1621
1415
  osPolicyAssignments: OsPolicyAssignmentsResource;
1622
1416
  }
1623
1417
  interface ProjectsResource {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.osconfig-v1alpha",
3
- "version": "0.2.20260312",
3
+ "version": "0.2.20260604",
4
4
  "description": "TypeScript typings for OS Config API v1alpha",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -11,6 +11,23 @@ Install typings for OS Config API:
11
11
  npm install @types/gapi.client.osconfig-v1alpha --save-dev
12
12
  ```
13
13
 
14
+ ## TypeScript 6.0+
15
+
16
+ TypeScript 6.0 changed `types` to default to `[]`. You must now explicitly list type packages in `tsconfig.json`:
17
+
18
+ ```json
19
+ {
20
+ "compilerOptions": {
21
+ "types": [
22
+ "gapi",
23
+ "gapi.auth2",
24
+ "gapi.client",
25
+ "gapi.client.osconfig-v1alpha"
26
+ ]
27
+ }
28
+ }
29
+ ```
30
+
14
31
  ## Usage
15
32
 
16
33
  You need to initialize Google API client in your code: