@maxim_mazurok/gapi.client.artifactregistry-v1 0.0.20230607 → 0.0.20230622
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 +111 -1
- package/package.json +1 -1
- package/tests.ts +6 -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://artifactregistry.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230622
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -138,6 +138,20 @@ declare namespace gapi.client {
|
|
|
138
138
|
title?:
|
|
139
139
|
string;
|
|
140
140
|
}
|
|
141
|
+
interface GoModule {
|
|
142
|
+
/** Output only. The time when the Go module is created. */
|
|
143
|
+
createTime?:
|
|
144
|
+
string;
|
|
145
|
+
/** The resource name of a Go module. */
|
|
146
|
+
name?:
|
|
147
|
+
string;
|
|
148
|
+
/** Output only. The time when the Go module is updated. */
|
|
149
|
+
updateTime?:
|
|
150
|
+
string;
|
|
151
|
+
/** The version of the Go module. Must be a valid canonical version as defined in https://go.dev/ref/mod#glos-canonical-version. */
|
|
152
|
+
version?:
|
|
153
|
+
string;
|
|
154
|
+
}
|
|
141
155
|
interface GoogetArtifact {
|
|
142
156
|
/** Output only. Operating system architecture of the artifact. */
|
|
143
157
|
architecture?:
|
|
@@ -695,6 +709,17 @@ declare namespace gapi.client {
|
|
|
695
709
|
aptArtifacts?:
|
|
696
710
|
AptArtifact[];
|
|
697
711
|
}
|
|
712
|
+
interface UploadGoModuleMediaResponse {
|
|
713
|
+
/** Operation to be returned to the user. */
|
|
714
|
+
operation?:
|
|
715
|
+
Operation;
|
|
716
|
+
}
|
|
717
|
+
// tslint:disable-next-line:no-empty-interface
|
|
718
|
+
interface UploadGoModuleMetadata {
|
|
719
|
+
}
|
|
720
|
+
// tslint:disable-next-line:no-empty-interface
|
|
721
|
+
interface UploadGoModuleRequest {
|
|
722
|
+
}
|
|
698
723
|
interface UploadGoogetArtifactMediaResponse {
|
|
699
724
|
/** Operation to be returned to the user. */
|
|
700
725
|
operation?:
|
|
@@ -1203,6 +1228,89 @@ declare namespace gapi.client {
|
|
|
1203
1228
|
string;
|
|
1204
1229
|
}): Request<ListFilesResponse>;
|
|
1205
1230
|
}
|
|
1231
|
+
interface GoModulesResource {
|
|
1232
|
+
/** Directly uploads a Go module. The returned Operation will complete once the Go module is uploaded. Package, Version, and File resources are created based on the uploaded Go module. */
|
|
1233
|
+
upload(request: {
|
|
1234
|
+
/** V1 error format. */
|
|
1235
|
+
"$.xgafv"?:
|
|
1236
|
+
string;
|
|
1237
|
+
/** OAuth access token. */
|
|
1238
|
+
access_token?:
|
|
1239
|
+
string;
|
|
1240
|
+
/** Data format for response. */
|
|
1241
|
+
alt?:
|
|
1242
|
+
string;
|
|
1243
|
+
/** JSONP */
|
|
1244
|
+
callback?:
|
|
1245
|
+
string;
|
|
1246
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1247
|
+
fields?:
|
|
1248
|
+
string;
|
|
1249
|
+
/** 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. */
|
|
1250
|
+
key?:
|
|
1251
|
+
string;
|
|
1252
|
+
/** OAuth 2.0 token for the current user. */
|
|
1253
|
+
oauth_token?:
|
|
1254
|
+
string;
|
|
1255
|
+
/** The resource name of the repository where the Go module will be uploaded. */
|
|
1256
|
+
parent:
|
|
1257
|
+
string;
|
|
1258
|
+
/** Returns response with indentations and line breaks. */
|
|
1259
|
+
prettyPrint?:
|
|
1260
|
+
boolean;
|
|
1261
|
+
/** 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. */
|
|
1262
|
+
quotaUser?:
|
|
1263
|
+
string;
|
|
1264
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1265
|
+
upload_protocol?:
|
|
1266
|
+
string;
|
|
1267
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1268
|
+
uploadType?:
|
|
1269
|
+
string;
|
|
1270
|
+
/** Request body */
|
|
1271
|
+
resource:
|
|
1272
|
+
UploadGoModuleRequest;
|
|
1273
|
+
}): Request<UploadGoModuleMediaResponse>;
|
|
1274
|
+
upload(request: {
|
|
1275
|
+
/** V1 error format. */
|
|
1276
|
+
"$.xgafv"?:
|
|
1277
|
+
string;
|
|
1278
|
+
/** OAuth access token. */
|
|
1279
|
+
access_token?:
|
|
1280
|
+
string;
|
|
1281
|
+
/** Data format for response. */
|
|
1282
|
+
alt?:
|
|
1283
|
+
string;
|
|
1284
|
+
/** JSONP */
|
|
1285
|
+
callback?:
|
|
1286
|
+
string;
|
|
1287
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1288
|
+
fields?:
|
|
1289
|
+
string;
|
|
1290
|
+
/** 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. */
|
|
1291
|
+
key?:
|
|
1292
|
+
string;
|
|
1293
|
+
/** OAuth 2.0 token for the current user. */
|
|
1294
|
+
oauth_token?:
|
|
1295
|
+
string;
|
|
1296
|
+
/** The resource name of the repository where the Go module will be uploaded. */
|
|
1297
|
+
parent:
|
|
1298
|
+
string;
|
|
1299
|
+
/** Returns response with indentations and line breaks. */
|
|
1300
|
+
prettyPrint?:
|
|
1301
|
+
boolean;
|
|
1302
|
+
/** 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. */
|
|
1303
|
+
quotaUser?:
|
|
1304
|
+
string;
|
|
1305
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1306
|
+
upload_protocol?:
|
|
1307
|
+
string;
|
|
1308
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1309
|
+
uploadType?:
|
|
1310
|
+
string;
|
|
1311
|
+
},
|
|
1312
|
+
body: UploadGoModuleRequest): Request<UploadGoModuleMediaResponse>;
|
|
1313
|
+
}
|
|
1206
1314
|
interface GoogetArtifactsResource {
|
|
1207
1315
|
/**
|
|
1208
1316
|
* Imports GooGet artifacts. The returned Operation will complete once the resources are imported. Package, Version, and File resources are created based on the imported artifacts.
|
|
@@ -2908,6 +3016,8 @@ declare namespace gapi.client {
|
|
|
2908
3016
|
DockerImagesResource;
|
|
2909
3017
|
files:
|
|
2910
3018
|
FilesResource;
|
|
3019
|
+
goModules:
|
|
3020
|
+
GoModulesResource;
|
|
2911
3021
|
googetArtifacts:
|
|
2912
3022
|
GoogetArtifactsResource;
|
|
2913
3023
|
kfpArtifacts:
|
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: 20230622
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -266,6 +266,11 @@ gapi.load('client', async () => {
|
|
|
266
266
|
pageToken: "Test string",
|
|
267
267
|
parent: "Test string",
|
|
268
268
|
});
|
|
269
|
+
/** Directly uploads a Go module. The returned Operation will complete once the Go module is uploaded. Package, Version, and File resources are created based on the uploaded Go module. */
|
|
270
|
+
await gapi.client.artifactregistry.projects.locations.repositories.goModules.upload({
|
|
271
|
+
parent: "Test string",
|
|
272
|
+
}, {
|
|
273
|
+
});
|
|
269
274
|
/**
|
|
270
275
|
* Imports GooGet artifacts. The returned Operation will complete once the resources are imported. Package, Version, and File resources are created based on the imported artifacts.
|
|
271
276
|
* Imported artifacts that conflict with existing resources are ignored.
|