@azure/container-registry 1.0.0-beta.3 → 1.0.0
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/CHANGELOG.md +32 -0
- package/README.md +70 -37
- package/dist/index.js +1255 -1123
- package/dist/index.js.map +1 -1
- package/dist-esm/src/containerRegistryChallengeHandler.js +35 -38
- package/dist-esm/src/containerRegistryChallengeHandler.js.map +1 -1
- package/dist-esm/src/containerRegistryClient.js +69 -50
- package/dist-esm/src/containerRegistryClient.js.map +1 -1
- package/dist-esm/src/containerRegistryTokenCredential.js +39 -126
- package/dist-esm/src/containerRegistryTokenCredential.js.map +1 -1
- package/dist-esm/src/containerRepository.js +100 -63
- package/dist-esm/src/containerRepository.js.map +1 -1
- package/dist-esm/src/generated/generatedClient.js +7 -6
- package/dist-esm/src/generated/generatedClient.js.map +1 -1
- package/dist-esm/src/generated/generatedClientContext.js +13 -2
- package/dist-esm/src/generated/generatedClientContext.js.map +1 -1
- package/dist-esm/src/generated/index.js +1 -0
- package/dist-esm/src/generated/index.js.map +1 -1
- package/dist-esm/src/generated/models/index.js +61 -1
- package/dist-esm/src/generated/models/index.js.map +1 -1
- package/dist-esm/src/generated/models/mappers.js +514 -557
- package/dist-esm/src/generated/models/mappers.js.map +1 -1
- package/dist-esm/src/generated/models/parameters.js +87 -7
- package/dist-esm/src/generated/models/parameters.js.map +1 -1
- package/dist-esm/src/generated/operations/authentication.js +28 -8
- package/dist-esm/src/generated/operations/authentication.js.map +1 -1
- package/dist-esm/src/generated/operations/containerRegistry.js +27 -7
- package/dist-esm/src/generated/operations/containerRegistry.js.map +1 -1
- package/dist-esm/src/generated/operations/containerRegistryBlob.js +2 -2
- package/dist-esm/src/generated/operations/containerRegistryBlob.js.map +1 -1
- package/dist-esm/src/generated/operationsInterfaces/authentication.js +9 -0
- package/dist-esm/src/generated/operationsInterfaces/authentication.js.map +1 -0
- package/dist-esm/src/generated/operationsInterfaces/containerRegistry.js +9 -0
- package/dist-esm/src/generated/operationsInterfaces/containerRegistry.js.map +1 -0
- package/dist-esm/src/generated/operationsInterfaces/containerRegistryBlob.js +9 -0
- package/dist-esm/src/generated/operationsInterfaces/containerRegistryBlob.js.map +1 -0
- package/dist-esm/src/generated/operationsInterfaces/index.js +11 -0
- package/dist-esm/src/generated/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/models.js +43 -2
- package/dist-esm/src/models.js.map +1 -1
- package/dist-esm/src/registryArtifact.js +176 -135
- package/dist-esm/src/registryArtifact.js.map +1 -1
- package/dist-esm/src/tracing.js +1 -1
- package/dist-esm/src/tracing.js.map +1 -1
- package/dist-esm/src/transformations.js +2 -2
- package/dist-esm/src/transformations.js.map +1 -1
- package/dist-esm/src/{base64.browser.js → utils/base64.browser.js} +0 -0
- package/dist-esm/src/utils/base64.browser.js.map +1 -0
- package/dist-esm/src/{base64.js → utils/base64.js} +0 -0
- package/dist-esm/src/utils/base64.js.map +1 -0
- package/dist-esm/src/{utils.js → utils/helpers.js} +1 -1
- package/dist-esm/src/utils/helpers.js.map +1 -0
- package/dist-esm/src/{tokenCycler.js → utils/tokenCycler.js} +29 -34
- package/dist-esm/src/utils/tokenCycler.js.map +1 -0
- package/dist-esm/src/{url.browser.js → utils/url.browser.js} +0 -0
- package/dist-esm/src/utils/url.browser.js.map +1 -0
- package/dist-esm/src/{url.js → utils/url.js} +0 -0
- package/dist-esm/src/utils/url.js.map +1 -0
- package/dist-esm/src/{wwwAuthenticateParser.js → utils/wwwAuthenticateParser.js} +0 -0
- package/dist-esm/src/utils/wwwAuthenticateParser.js.map +1 -0
- package/package.json +22 -25
- package/types/container-registry.d.ts +258 -83
- package/dist-esm/src/base64.browser.js.map +0 -1
- package/dist-esm/src/base64.js.map +0 -1
- package/dist-esm/src/constants.js +0 -4
- package/dist-esm/src/constants.js.map +0 -1
- package/dist-esm/src/tokenCycler.js.map +0 -1
- package/dist-esm/src/url.browser.js.map +0 -1
- package/dist-esm/src/url.js.map +0 -1
- package/dist-esm/src/utils.js.map +0 -1
- package/dist-esm/src/wwwAuthenticateParser.js.map +0 -1
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
import * as coreClient from "@azure/core-client";
|
|
9
9
|
import * as Mappers from "../models/mappers";
|
|
10
10
|
import * as Parameters from "../models/parameters";
|
|
11
|
-
/** Class
|
|
12
|
-
export class
|
|
11
|
+
/** Class containing Authentication operations. */
|
|
12
|
+
export class AuthenticationImpl {
|
|
13
13
|
/**
|
|
14
14
|
* Initialize a new instance of the class Authentication class.
|
|
15
15
|
* @param client Reference to the service client
|
|
@@ -19,17 +19,24 @@ export class Authentication {
|
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* Exchange AAD tokens for an ACR refresh Token
|
|
22
|
+
* @param grantType Can take a value of access_token_refresh_token, or access_token, or refresh_token
|
|
23
|
+
* @param service Indicates the name of your Azure container registry.
|
|
22
24
|
* @param options The options parameters.
|
|
23
25
|
*/
|
|
24
|
-
exchangeAadAccessTokenForAcrRefreshToken(options) {
|
|
25
|
-
return this.client.sendOperationRequest({ options }, exchangeAadAccessTokenForAcrRefreshTokenOperationSpec);
|
|
26
|
+
exchangeAadAccessTokenForAcrRefreshToken(grantType, service, options) {
|
|
27
|
+
return this.client.sendOperationRequest({ grantType, service, options }, exchangeAadAccessTokenForAcrRefreshTokenOperationSpec);
|
|
26
28
|
}
|
|
27
29
|
/**
|
|
28
30
|
* Exchange ACR Refresh token for an ACR Access Token
|
|
31
|
+
* @param service Indicates the name of your Azure container registry.
|
|
32
|
+
* @param scope Which is expected to be a valid scope, and can be specified more than once for multiple
|
|
33
|
+
* scope requests. You obtained this from the Www-Authenticate response header from the challenge.
|
|
34
|
+
* @param refreshToken Must be a valid ACR refresh token
|
|
35
|
+
* @param grantType Grant type is expected to be refresh_token
|
|
29
36
|
* @param options The options parameters.
|
|
30
37
|
*/
|
|
31
|
-
exchangeAcrRefreshTokenForAcrAccessToken(options) {
|
|
32
|
-
return this.client.sendOperationRequest({ options }, exchangeAcrRefreshTokenForAcrAccessTokenOperationSpec);
|
|
38
|
+
exchangeAcrRefreshTokenForAcrAccessToken(service, scope, refreshToken, grantType, options) {
|
|
39
|
+
return this.client.sendOperationRequest({ service, scope, refreshToken, grantType, options }, exchangeAcrRefreshTokenForAcrAccessTokenOperationSpec);
|
|
33
40
|
}
|
|
34
41
|
}
|
|
35
42
|
// Operation Specifications
|
|
@@ -45,7 +52,14 @@ const exchangeAadAccessTokenForAcrRefreshTokenOperationSpec = {
|
|
|
45
52
|
bodyMapper: Mappers.AcrErrors
|
|
46
53
|
}
|
|
47
54
|
},
|
|
48
|
-
formDataParameters: [
|
|
55
|
+
formDataParameters: [
|
|
56
|
+
Parameters.grantType,
|
|
57
|
+
Parameters.service,
|
|
58
|
+
Parameters.tenant,
|
|
59
|
+
Parameters.refreshToken,
|
|
60
|
+
Parameters.accessToken
|
|
61
|
+
],
|
|
62
|
+
queryParameters: [Parameters.apiVersion],
|
|
49
63
|
urlParameters: [Parameters.url],
|
|
50
64
|
headerParameters: [Parameters.contentType3, Parameters.accept4],
|
|
51
65
|
serializer
|
|
@@ -61,7 +75,13 @@ const exchangeAcrRefreshTokenForAcrAccessTokenOperationSpec = {
|
|
|
61
75
|
bodyMapper: Mappers.AcrErrors
|
|
62
76
|
}
|
|
63
77
|
},
|
|
64
|
-
formDataParameters: [
|
|
78
|
+
formDataParameters: [
|
|
79
|
+
Parameters.service,
|
|
80
|
+
Parameters.scope,
|
|
81
|
+
Parameters.refreshToken1,
|
|
82
|
+
Parameters.grantType1
|
|
83
|
+
],
|
|
84
|
+
queryParameters: [Parameters.apiVersion],
|
|
65
85
|
urlParameters: [Parameters.url],
|
|
66
86
|
headerParameters: [Parameters.contentType3, Parameters.accept4],
|
|
67
87
|
serializer
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authentication.js","sourceRoot":"","sources":["../../../../src/generated/operations/authentication.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;
|
|
1
|
+
{"version":3,"file":"authentication.js","sourceRoot":"","sources":["../../../../src/generated/operations/authentication.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAWnD,kDAAkD;AAClD,MAAM,OAAO,kBAAkB;IAG7B;;;OAGG;IACH,YAAY,MAA8B;QACxC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,wCAAwC,CACtC,SAAqC,EACrC,OAAe,EACf,OAA8E;QAE9E,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,EAC/B,qDAAqD,CACtD,CAAC;IACJ,CAAC;IAED;;;;;;;;OAQG;IACH,wCAAwC,CACtC,OAAe,EACf,KAAa,EACb,YAAoB,EACpB,SAAyB,EACzB,OAA8E;QAE9E,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,OAAO,EAAE,EACpD,qDAAqD,CACtD,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,qDAAqD,GAA6B;IACtF,IAAI,EAAE,kBAAkB;IACxB,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,eAAe;SACpC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,SAAS;SAC9B;KACF;IACD,kBAAkB,EAAE;QAClB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,MAAM;QACjB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,WAAW;KACvB;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC;IAC/B,gBAAgB,EAAE,CAAC,UAAU,CAAC,YAAY,EAAE,UAAU,CAAC,OAAO,CAAC;IAC/D,UAAU;CACX,CAAC;AACF,MAAM,qDAAqD,GAA6B;IACtF,IAAI,EAAE,eAAe;IACrB,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,cAAc;SACnC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,SAAS;SAC9B;KACF;IACD,kBAAkB,EAAE;QAClB,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,UAAU;KACtB;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC;IAC/B,gBAAgB,EAAE,CAAC,UAAU,CAAC,YAAY,EAAE,UAAU,CAAC,OAAO,CAAC;IAC/D,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { Authentication } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { GeneratedClientContext } from \"../generatedClientContext\";\nimport {\n PostContentSchemaGrantType,\n AuthenticationExchangeAadAccessTokenForAcrRefreshTokenOptionalParams,\n AuthenticationExchangeAadAccessTokenForAcrRefreshTokenResponse,\n TokenGrantType,\n AuthenticationExchangeAcrRefreshTokenForAcrAccessTokenOptionalParams,\n AuthenticationExchangeAcrRefreshTokenForAcrAccessTokenResponse\n} from \"../models\";\n\n/** Class containing Authentication operations. */\nexport class AuthenticationImpl implements Authentication {\n private readonly client: GeneratedClientContext;\n\n /**\n * Initialize a new instance of the class Authentication class.\n * @param client Reference to the service client\n */\n constructor(client: GeneratedClientContext) {\n this.client = client;\n }\n\n /**\n * Exchange AAD tokens for an ACR refresh Token\n * @param grantType Can take a value of access_token_refresh_token, or access_token, or refresh_token\n * @param service Indicates the name of your Azure container registry.\n * @param options The options parameters.\n */\n exchangeAadAccessTokenForAcrRefreshToken(\n grantType: PostContentSchemaGrantType,\n service: string,\n options?: AuthenticationExchangeAadAccessTokenForAcrRefreshTokenOptionalParams\n ): Promise<AuthenticationExchangeAadAccessTokenForAcrRefreshTokenResponse> {\n return this.client.sendOperationRequest(\n { grantType, service, options },\n exchangeAadAccessTokenForAcrRefreshTokenOperationSpec\n );\n }\n\n /**\n * Exchange ACR Refresh token for an ACR Access Token\n * @param service Indicates the name of your Azure container registry.\n * @param scope Which is expected to be a valid scope, and can be specified more than once for multiple\n * scope requests. You obtained this from the Www-Authenticate response header from the challenge.\n * @param refreshToken Must be a valid ACR refresh token\n * @param grantType Grant type is expected to be refresh_token\n * @param options The options parameters.\n */\n exchangeAcrRefreshTokenForAcrAccessToken(\n service: string,\n scope: string,\n refreshToken: string,\n grantType: TokenGrantType,\n options?: AuthenticationExchangeAcrRefreshTokenForAcrAccessTokenOptionalParams\n ): Promise<AuthenticationExchangeAcrRefreshTokenForAcrAccessTokenResponse> {\n return this.client.sendOperationRequest(\n { service, scope, refreshToken, grantType, options },\n exchangeAcrRefreshTokenForAcrAccessTokenOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst exchangeAadAccessTokenForAcrRefreshTokenOperationSpec: coreClient.OperationSpec = {\n path: \"/oauth2/exchange\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.AcrRefreshToken\n },\n default: {\n bodyMapper: Mappers.AcrErrors\n }\n },\n formDataParameters: [\n Parameters.grantType,\n Parameters.service,\n Parameters.tenant,\n Parameters.refreshToken,\n Parameters.accessToken\n ],\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.url],\n headerParameters: [Parameters.contentType3, Parameters.accept4],\n serializer\n};\nconst exchangeAcrRefreshTokenForAcrAccessTokenOperationSpec: coreClient.OperationSpec = {\n path: \"/oauth2/token\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.AcrAccessToken\n },\n default: {\n bodyMapper: Mappers.AcrErrors\n }\n },\n formDataParameters: [\n Parameters.service,\n Parameters.scope,\n Parameters.refreshToken1,\n Parameters.grantType1\n ],\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.url],\n headerParameters: [Parameters.contentType3, Parameters.accept4],\n serializer\n};\n"]}
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
import * as coreClient from "@azure/core-client";
|
|
9
9
|
import * as Mappers from "../models/mappers";
|
|
10
10
|
import * as Parameters from "../models/parameters";
|
|
11
|
-
/** Class
|
|
12
|
-
export class
|
|
11
|
+
/** Class containing ContainerRegistry operations. */
|
|
12
|
+
export class ContainerRegistryImpl {
|
|
13
13
|
/**
|
|
14
14
|
* Initialize a new instance of the class ContainerRegistry class.
|
|
15
15
|
* @param client Reference to the service client
|
|
@@ -192,7 +192,7 @@ const getManifestOperationSpec = {
|
|
|
192
192
|
httpMethod: "GET",
|
|
193
193
|
responses: {
|
|
194
194
|
200: {
|
|
195
|
-
bodyMapper: Mappers.
|
|
195
|
+
bodyMapper: Mappers.ManifestWrapper
|
|
196
196
|
},
|
|
197
197
|
default: {
|
|
198
198
|
bodyMapper: Mappers.AcrErrors
|
|
@@ -246,7 +246,7 @@ const getRepositoriesOperationSpec = {
|
|
|
246
246
|
bodyMapper: Mappers.AcrErrors
|
|
247
247
|
}
|
|
248
248
|
},
|
|
249
|
-
queryParameters: [Parameters.last, Parameters.n],
|
|
249
|
+
queryParameters: [Parameters.last, Parameters.n, Parameters.apiVersion],
|
|
250
250
|
urlParameters: [Parameters.url],
|
|
251
251
|
headerParameters: [Parameters.accept],
|
|
252
252
|
serializer
|
|
@@ -262,6 +262,7 @@ const getPropertiesOperationSpec = {
|
|
|
262
262
|
bodyMapper: Mappers.AcrErrors
|
|
263
263
|
}
|
|
264
264
|
},
|
|
265
|
+
queryParameters: [Parameters.apiVersion],
|
|
265
266
|
urlParameters: [Parameters.url, Parameters.name],
|
|
266
267
|
headerParameters: [Parameters.accept],
|
|
267
268
|
serializer
|
|
@@ -276,6 +277,7 @@ const deleteRepositoryOperationSpec = {
|
|
|
276
277
|
bodyMapper: Mappers.AcrErrors
|
|
277
278
|
}
|
|
278
279
|
},
|
|
280
|
+
queryParameters: [Parameters.apiVersion],
|
|
279
281
|
urlParameters: [Parameters.url, Parameters.name],
|
|
280
282
|
headerParameters: [Parameters.accept],
|
|
281
283
|
serializer
|
|
@@ -292,6 +294,7 @@ const updatePropertiesOperationSpec = {
|
|
|
292
294
|
}
|
|
293
295
|
},
|
|
294
296
|
requestBody: Parameters.value,
|
|
297
|
+
queryParameters: [Parameters.apiVersion],
|
|
295
298
|
urlParameters: [Parameters.url, Parameters.name],
|
|
296
299
|
headerParameters: [Parameters.accept, Parameters.contentType1],
|
|
297
300
|
mediaType: "json",
|
|
@@ -312,6 +315,7 @@ const getTagsOperationSpec = {
|
|
|
312
315
|
queryParameters: [
|
|
313
316
|
Parameters.last,
|
|
314
317
|
Parameters.n,
|
|
318
|
+
Parameters.apiVersion,
|
|
315
319
|
Parameters.orderby,
|
|
316
320
|
Parameters.digest
|
|
317
321
|
],
|
|
@@ -330,6 +334,7 @@ const getTagPropertiesOperationSpec = {
|
|
|
330
334
|
bodyMapper: Mappers.AcrErrors
|
|
331
335
|
}
|
|
332
336
|
},
|
|
337
|
+
queryParameters: [Parameters.apiVersion],
|
|
333
338
|
urlParameters: [Parameters.url, Parameters.name, Parameters.reference],
|
|
334
339
|
headerParameters: [Parameters.accept],
|
|
335
340
|
serializer
|
|
@@ -346,6 +351,7 @@ const updateTagAttributesOperationSpec = {
|
|
|
346
351
|
}
|
|
347
352
|
},
|
|
348
353
|
requestBody: Parameters.value1,
|
|
354
|
+
queryParameters: [Parameters.apiVersion],
|
|
349
355
|
urlParameters: [Parameters.url, Parameters.name, Parameters.reference],
|
|
350
356
|
headerParameters: [Parameters.accept, Parameters.contentType1],
|
|
351
357
|
mediaType: "json",
|
|
@@ -361,6 +367,7 @@ const deleteTagOperationSpec = {
|
|
|
361
367
|
bodyMapper: Mappers.AcrErrors
|
|
362
368
|
}
|
|
363
369
|
},
|
|
370
|
+
queryParameters: [Parameters.apiVersion],
|
|
364
371
|
urlParameters: [Parameters.url, Parameters.name, Parameters.reference],
|
|
365
372
|
headerParameters: [Parameters.accept],
|
|
366
373
|
serializer
|
|
@@ -377,7 +384,12 @@ const getManifestsOperationSpec = {
|
|
|
377
384
|
bodyMapper: Mappers.AcrErrors
|
|
378
385
|
}
|
|
379
386
|
},
|
|
380
|
-
queryParameters: [
|
|
387
|
+
queryParameters: [
|
|
388
|
+
Parameters.last,
|
|
389
|
+
Parameters.n,
|
|
390
|
+
Parameters.apiVersion,
|
|
391
|
+
Parameters.orderby
|
|
392
|
+
],
|
|
381
393
|
urlParameters: [Parameters.url, Parameters.name],
|
|
382
394
|
headerParameters: [Parameters.accept],
|
|
383
395
|
serializer
|
|
@@ -393,6 +405,7 @@ const getManifestPropertiesOperationSpec = {
|
|
|
393
405
|
bodyMapper: Mappers.AcrErrors
|
|
394
406
|
}
|
|
395
407
|
},
|
|
408
|
+
queryParameters: [Parameters.apiVersion],
|
|
396
409
|
urlParameters: [Parameters.url, Parameters.name, Parameters.digest1],
|
|
397
410
|
headerParameters: [Parameters.accept],
|
|
398
411
|
serializer
|
|
@@ -409,6 +422,7 @@ const updateManifestPropertiesOperationSpec = {
|
|
|
409
422
|
}
|
|
410
423
|
},
|
|
411
424
|
requestBody: Parameters.value2,
|
|
425
|
+
queryParameters: [Parameters.apiVersion],
|
|
412
426
|
urlParameters: [Parameters.url, Parameters.name, Parameters.digest1],
|
|
413
427
|
headerParameters: [Parameters.accept, Parameters.contentType1],
|
|
414
428
|
mediaType: "json",
|
|
@@ -426,7 +440,7 @@ const getRepositoriesNextOperationSpec = {
|
|
|
426
440
|
bodyMapper: Mappers.AcrErrors
|
|
427
441
|
}
|
|
428
442
|
},
|
|
429
|
-
queryParameters: [Parameters.last, Parameters.n],
|
|
443
|
+
queryParameters: [Parameters.last, Parameters.n, Parameters.apiVersion],
|
|
430
444
|
urlParameters: [Parameters.url, Parameters.nextLink],
|
|
431
445
|
headerParameters: [Parameters.accept],
|
|
432
446
|
serializer
|
|
@@ -446,6 +460,7 @@ const getTagsNextOperationSpec = {
|
|
|
446
460
|
queryParameters: [
|
|
447
461
|
Parameters.last,
|
|
448
462
|
Parameters.n,
|
|
463
|
+
Parameters.apiVersion,
|
|
449
464
|
Parameters.orderby,
|
|
450
465
|
Parameters.digest
|
|
451
466
|
],
|
|
@@ -465,7 +480,12 @@ const getManifestsNextOperationSpec = {
|
|
|
465
480
|
bodyMapper: Mappers.AcrErrors
|
|
466
481
|
}
|
|
467
482
|
},
|
|
468
|
-
queryParameters: [
|
|
483
|
+
queryParameters: [
|
|
484
|
+
Parameters.last,
|
|
485
|
+
Parameters.n,
|
|
486
|
+
Parameters.apiVersion,
|
|
487
|
+
Parameters.orderby
|
|
488
|
+
],
|
|
469
489
|
urlParameters: [Parameters.url, Parameters.name, Parameters.nextLink],
|
|
470
490
|
headerParameters: [Parameters.accept],
|
|
471
491
|
serializer
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"containerRegistry.js","sourceRoot":"","sources":["../../../../src/generated/operations/containerRegistry.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MA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AAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,YAAY;YAChC,aAAa,EAAE,OAAO,CAAC,wCAAwC;SAChE;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,SAAS;SAC9B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,EAAE,UAAU,CAAC,OAAO,CAAC;IACpE,aAAa,EAAE,CAAC,UAAU,CAAC,GAAG,EAAE,UAAU,CAAC,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC;IACrE,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { GeneratedClientContext } from \"../generatedClientContext\";\nimport {\n ContainerRegistryGetManifestOptionalParams,\n ContainerRegistryGetManifestResponse,\n Manifest,\n ContainerRegistryCreateManifestResponse,\n ContainerRegistryGetRepositoriesOptionalParams,\n ContainerRegistryGetRepositoriesResponse,\n ContainerRegistryGetPropertiesResponse,\n ContainerRegistryUpdatePropertiesOptionalParams,\n ContainerRegistryUpdatePropertiesResponse,\n ContainerRegistryGetTagsOptionalParams,\n ContainerRegistryGetTagsResponse,\n ContainerRegistryGetTagPropertiesResponse,\n ContainerRegistryUpdateTagAttributesOptionalParams,\n ContainerRegistryUpdateTagAttributesResponse,\n ContainerRegistryGetManifestsOptionalParams,\n ContainerRegistryGetManifestsResponse,\n ContainerRegistryGetManifestPropertiesResponse,\n ContainerRegistryUpdateManifestPropertiesOptionalParams,\n ContainerRegistryUpdateManifestPropertiesResponse,\n ContainerRegistryGetRepositoriesNextOptionalParams,\n ContainerRegistryGetRepositoriesNextResponse,\n ContainerRegistryGetTagsNextOptionalParams,\n ContainerRegistryGetTagsNextResponse,\n ContainerRegistryGetManifestsNextOptionalParams,\n ContainerRegistryGetManifestsNextResponse\n} from \"../models\";\n\n/** Class representing a ContainerRegistry. */\nexport class ContainerRegistry {\n private readonly client: GeneratedClientContext;\n\n /**\n * Initialize a new instance of the class ContainerRegistry class.\n * @param client Reference to the service client\n */\n constructor(client: GeneratedClientContext) {\n this.client = client;\n }\n\n /**\n * Tells whether this Docker Registry instance supports Docker Registry HTTP API v2\n * @param options The options parameters.\n */\n checkDockerV2Support(options?: coreClient.OperationOptions): Promise<void> {\n return this.client.sendOperationRequest(\n { options },\n checkDockerV2SupportOperationSpec\n );\n }\n\n /**\n * Get the manifest identified by `name` and `reference` where `reference` can be a tag or digest.\n * @param name Name of the image (including the namespace)\n * @param reference A tag or a digest, pointing to a specific image\n * @param options The options parameters.\n */\n getManifest(\n name: string,\n reference: string,\n options?: ContainerRegistryGetManifestOptionalParams\n ): Promise<ContainerRegistryGetManifestResponse> {\n return this.client.sendOperationRequest(\n { name, reference, options },\n getManifestOperationSpec\n );\n }\n\n /**\n * Put the manifest identified by `name` and `reference` where `reference` can be a tag or digest.\n * @param name Name of the image (including the namespace)\n * @param reference A tag or a digest, pointing to a specific image\n * @param payload Manifest body, can take v1 or v2 values depending on accept header\n * @param options The options parameters.\n */\n createManifest(\n name: string,\n reference: string,\n payload: Manifest,\n options?: coreClient.OperationOptions\n ): Promise<ContainerRegistryCreateManifestResponse> {\n return this.client.sendOperationRequest(\n { name, reference, payload, options },\n createManifestOperationSpec\n );\n }\n\n /**\n * Delete the manifest identified by `name` and `reference`. Note that a manifest can _only_ be deleted\n * by `digest`.\n * @param name Name of the image (including the namespace)\n * @param reference Digest of a BLOB\n * @param options The options parameters.\n */\n deleteManifest(\n name: string,\n reference: string,\n options?: coreClient.OperationOptions\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { name, reference, options },\n deleteManifestOperationSpec\n );\n }\n\n /**\n * List repositories\n * @param options The options parameters.\n */\n getRepositories(\n options?: ContainerRegistryGetRepositoriesOptionalParams\n ): Promise<ContainerRegistryGetRepositoriesResponse> {\n return this.client.sendOperationRequest(\n { options },\n getRepositoriesOperationSpec\n );\n }\n\n /**\n * Get repository attributes\n * @param name Name of the image (including the namespace)\n * @param options The options parameters.\n */\n getProperties(\n name: string,\n options?: coreClient.OperationOptions\n ): Promise<ContainerRegistryGetPropertiesResponse> {\n return this.client.sendOperationRequest(\n { name, options },\n getPropertiesOperationSpec\n );\n }\n\n /**\n * Delete the repository identified by `name`\n * @param name Name of the image (including the namespace)\n * @param options The options parameters.\n */\n deleteRepository(\n name: string,\n options?: coreClient.OperationOptions\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { name, options },\n deleteRepositoryOperationSpec\n );\n }\n\n /**\n * Update the attribute identified by `name` where `reference` is the name of the repository.\n * @param name Name of the image (including the namespace)\n * @param options The options parameters.\n */\n updateProperties(\n name: string,\n options?: ContainerRegistryUpdatePropertiesOptionalParams\n ): Promise<ContainerRegistryUpdatePropertiesResponse> {\n return this.client.sendOperationRequest(\n { name, options },\n updatePropertiesOperationSpec\n );\n }\n\n /**\n * List tags of a repository\n * @param name Name of the image (including the namespace)\n * @param options The options parameters.\n */\n getTags(\n name: string,\n options?: ContainerRegistryGetTagsOptionalParams\n ): Promise<ContainerRegistryGetTagsResponse> {\n return this.client.sendOperationRequest(\n { name, options },\n getTagsOperationSpec\n );\n }\n\n /**\n * Get tag attributes by tag\n * @param name Name of the image (including the namespace)\n * @param reference Tag name\n * @param options The options parameters.\n */\n getTagProperties(\n name: string,\n reference: string,\n options?: coreClient.OperationOptions\n ): Promise<ContainerRegistryGetTagPropertiesResponse> {\n return this.client.sendOperationRequest(\n { name, reference, options },\n getTagPropertiesOperationSpec\n );\n }\n\n /**\n * Update tag attributes\n * @param name Name of the image (including the namespace)\n * @param reference Tag name\n * @param options The options parameters.\n */\n updateTagAttributes(\n name: string,\n reference: string,\n options?: ContainerRegistryUpdateTagAttributesOptionalParams\n ): Promise<ContainerRegistryUpdateTagAttributesResponse> {\n return this.client.sendOperationRequest(\n { name, reference, options },\n updateTagAttributesOperationSpec\n );\n }\n\n /**\n * Delete tag\n * @param name Name of the image (including the namespace)\n * @param reference Tag name\n * @param options The options parameters.\n */\n deleteTag(\n name: string,\n reference: string,\n options?: coreClient.OperationOptions\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { name, reference, options },\n deleteTagOperationSpec\n );\n }\n\n /**\n * List manifests of a repository\n * @param name Name of the image (including the namespace)\n * @param options The options parameters.\n */\n getManifests(\n name: string,\n options?: ContainerRegistryGetManifestsOptionalParams\n ): Promise<ContainerRegistryGetManifestsResponse> {\n return this.client.sendOperationRequest(\n { name, options },\n getManifestsOperationSpec\n );\n }\n\n /**\n * Get manifest attributes\n * @param name Name of the image (including the namespace)\n * @param digest Digest of a BLOB\n * @param options The options parameters.\n */\n getManifestProperties(\n name: string,\n digest: string,\n options?: coreClient.OperationOptions\n ): Promise<ContainerRegistryGetManifestPropertiesResponse> {\n return this.client.sendOperationRequest(\n { name, digest, options },\n getManifestPropertiesOperationSpec\n );\n }\n\n /**\n * Update properties of a manifest\n * @param name Name of the image (including the namespace)\n * @param digest Digest of a BLOB\n * @param options The options parameters.\n */\n updateManifestProperties(\n name: string,\n digest: string,\n options?: ContainerRegistryUpdateManifestPropertiesOptionalParams\n ): Promise<ContainerRegistryUpdateManifestPropertiesResponse> {\n return this.client.sendOperationRequest(\n { name, digest, options },\n updateManifestPropertiesOperationSpec\n );\n }\n\n /**\n * GetRepositoriesNext\n * @param nextLink The nextLink from the previous successful call to the GetRepositories method.\n * @param options The options parameters.\n */\n getRepositoriesNext(\n nextLink: string,\n options?: ContainerRegistryGetRepositoriesNextOptionalParams\n ): Promise<ContainerRegistryGetRepositoriesNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n getRepositoriesNextOperationSpec\n );\n }\n\n /**\n * GetTagsNext\n * @param name Name of the image (including the namespace)\n * @param nextLink The nextLink from the previous successful call to the GetTags method.\n * @param options The options parameters.\n */\n getTagsNext(\n name: string,\n nextLink: string,\n options?: ContainerRegistryGetTagsNextOptionalParams\n ): Promise<ContainerRegistryGetTagsNextResponse> {\n return this.client.sendOperationRequest(\n { name, nextLink, options },\n getTagsNextOperationSpec\n );\n }\n\n /**\n * GetManifestsNext\n * @param name Name of the image (including the namespace)\n * @param nextLink The nextLink from the previous successful call to the GetManifests method.\n * @param options The options parameters.\n */\n getManifestsNext(\n name: string,\n nextLink: string,\n options?: ContainerRegistryGetManifestsNextOptionalParams\n ): Promise<ContainerRegistryGetManifestsNextResponse> {\n return this.client.sendOperationRequest(\n { name, nextLink, options },\n getManifestsNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst checkDockerV2SupportOperationSpec: coreClient.OperationSpec = {\n path: \"/v2/\",\n httpMethod: \"GET\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.AcrErrors\n }\n },\n urlParameters: [Parameters.url],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getManifestOperationSpec: coreClient.OperationSpec = {\n path: \"/v2/{name}/manifests/{reference}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Manifest\n },\n default: {\n bodyMapper: Mappers.AcrErrors\n }\n },\n urlParameters: [Parameters.url, Parameters.name, Parameters.reference],\n headerParameters: [Parameters.accept, Parameters.accept1],\n serializer\n};\nconst createManifestOperationSpec: coreClient.OperationSpec = {\n path: \"/v2/{name}/manifests/{reference}\",\n httpMethod: \"PUT\",\n responses: {\n 201: {\n bodyMapper: { type: { name: \"any\" } },\n headersMapper: Mappers.ContainerRegistryCreateManifestHeaders\n },\n default: {\n bodyMapper: Mappers.AcrErrors\n }\n },\n requestBody: Parameters.payload,\n urlParameters: [Parameters.url, Parameters.name, Parameters.reference],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteManifestOperationSpec: coreClient.OperationSpec = {\n path: \"/v2/{name}/manifests/{reference}\",\n httpMethod: \"DELETE\",\n responses: {\n 202: {},\n 404: {},\n default: {\n bodyMapper: Mappers.AcrErrors\n }\n },\n urlParameters: [Parameters.url, Parameters.name, Parameters.reference],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getRepositoriesOperationSpec: coreClient.OperationSpec = {\n path: \"/acr/v1/_catalog\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Repositories,\n headersMapper: Mappers.ContainerRegistryGetRepositoriesHeaders\n },\n default: {\n bodyMapper: Mappers.AcrErrors\n }\n },\n queryParameters: [Parameters.last, Parameters.n],\n urlParameters: [Parameters.url],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getPropertiesOperationSpec: coreClient.OperationSpec = {\n path: \"/acr/v1/{name}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ContainerRepositoryProperties\n },\n default: {\n bodyMapper: Mappers.AcrErrors\n }\n },\n urlParameters: [Parameters.url, Parameters.name],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteRepositoryOperationSpec: coreClient.OperationSpec = {\n path: \"/acr/v1/{name}\",\n httpMethod: \"DELETE\",\n responses: {\n 202: {},\n 404: {},\n default: {\n bodyMapper: Mappers.AcrErrors\n }\n },\n urlParameters: [Parameters.url, Parameters.name],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst updatePropertiesOperationSpec: coreClient.OperationSpec = {\n path: \"/acr/v1/{name}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ContainerRepositoryProperties\n },\n default: {\n bodyMapper: Mappers.AcrErrors\n }\n },\n requestBody: Parameters.value,\n urlParameters: [Parameters.url, Parameters.name],\n headerParameters: [Parameters.accept, Parameters.contentType1],\n mediaType: \"json\",\n serializer\n};\nconst getTagsOperationSpec: coreClient.OperationSpec = {\n path: \"/acr/v1/{name}/_tags\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TagList,\n headersMapper: Mappers.ContainerRegistryGetTagsHeaders\n },\n default: {\n bodyMapper: Mappers.AcrErrors\n }\n },\n queryParameters: [\n Parameters.last,\n Parameters.n,\n Parameters.orderby,\n Parameters.digest\n ],\n urlParameters: [Parameters.url, Parameters.name],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getTagPropertiesOperationSpec: coreClient.OperationSpec = {\n path: \"/acr/v1/{name}/_tags/{reference}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ArtifactTagProperties\n },\n default: {\n bodyMapper: Mappers.AcrErrors\n }\n },\n urlParameters: [Parameters.url, Parameters.name, Parameters.reference],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst updateTagAttributesOperationSpec: coreClient.OperationSpec = {\n path: \"/acr/v1/{name}/_tags/{reference}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ArtifactTagProperties\n },\n default: {\n bodyMapper: Mappers.AcrErrors\n }\n },\n requestBody: Parameters.value1,\n urlParameters: [Parameters.url, Parameters.name, Parameters.reference],\n headerParameters: [Parameters.accept, Parameters.contentType1],\n mediaType: \"json\",\n serializer\n};\nconst deleteTagOperationSpec: coreClient.OperationSpec = {\n path: \"/acr/v1/{name}/_tags/{reference}\",\n httpMethod: \"DELETE\",\n responses: {\n 202: {},\n 404: {},\n default: {\n bodyMapper: Mappers.AcrErrors\n }\n },\n urlParameters: [Parameters.url, Parameters.name, Parameters.reference],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getManifestsOperationSpec: coreClient.OperationSpec = {\n path: \"/acr/v1/{name}/_manifests\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AcrManifests,\n headersMapper: Mappers.ContainerRegistryGetManifestsHeaders\n },\n default: {\n bodyMapper: Mappers.AcrErrors\n }\n },\n queryParameters: [Parameters.last, Parameters.n, Parameters.orderby],\n urlParameters: [Parameters.url, Parameters.name],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getManifestPropertiesOperationSpec: coreClient.OperationSpec = {\n path: \"/acr/v1/{name}/_manifests/{digest}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ArtifactManifestProperties\n },\n default: {\n bodyMapper: Mappers.AcrErrors\n }\n },\n urlParameters: [Parameters.url, Parameters.name, Parameters.digest1],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst updateManifestPropertiesOperationSpec: coreClient.OperationSpec = {\n path: \"/acr/v1/{name}/_manifests/{digest}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ArtifactManifestProperties\n },\n default: {\n bodyMapper: Mappers.AcrErrors\n }\n },\n requestBody: Parameters.value2,\n urlParameters: [Parameters.url, Parameters.name, Parameters.digest1],\n headerParameters: [Parameters.accept, Parameters.contentType1],\n mediaType: \"json\",\n serializer\n};\nconst getRepositoriesNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Repositories,\n headersMapper: Mappers.ContainerRegistryGetRepositoriesNextHeaders\n },\n default: {\n bodyMapper: Mappers.AcrErrors\n }\n },\n queryParameters: [Parameters.last, Parameters.n],\n urlParameters: [Parameters.url, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getTagsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TagList,\n headersMapper: Mappers.ContainerRegistryGetTagsNextHeaders\n },\n default: {\n bodyMapper: Mappers.AcrErrors\n }\n },\n queryParameters: [\n Parameters.last,\n Parameters.n,\n Parameters.orderby,\n Parameters.digest\n ],\n urlParameters: [Parameters.url, Parameters.name, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getManifestsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AcrManifests,\n headersMapper: Mappers.ContainerRegistryGetManifestsNextHeaders\n },\n default: {\n bodyMapper: Mappers.AcrErrors\n }\n },\n queryParameters: [Parameters.last, Parameters.n, Parameters.orderby],\n urlParameters: [Parameters.url, Parameters.name, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"containerRegistry.js","sourceRoot":"","sources":["../../../../src/generated/operations/containerRegistry.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAsCnD,qDAAqD;AACrD,MAAM,OAAO,qBAAqB;IAGhC;;;OAGG;IACH,YAAY,MAA8B;QACxC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACH,oBAAoB,CAClB,OAA6D;QAE7D,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,OAAO,EAAE,EACX,iCAAiC,CAClC,CAAC;IACJ,CAAC;IAED;;;;;OAKG;IACH,WAAW,CACT,IAAY,EACZ,SAAiB,EACjB,OAAoD;QAEpD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,EAC5B,wBAAwB,CACzB,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACH,cAAc,CACZ,IAAY,EACZ,SAAiB,EACjB,OAAiB,EACjB,OAAuD;QAEvD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,EACrC,2BAA2B,CAC5B,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UAAU,CAAC,CAAC;QACZ,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,OAAO;KACnB;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,GAAG,EAAE,UAAU,CAAC,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC;IACrE,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { ContainerRegistry } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { GeneratedClientContext } from \"../generatedClientContext\";\nimport {\n ContainerRegistryCheckDockerV2SupportOptionalParams,\n ContainerRegistryGetManifestOptionalParams,\n ContainerRegistryGetManifestResponse,\n Manifest,\n ContainerRegistryCreateManifestOptionalParams,\n ContainerRegistryCreateManifestResponse,\n ContainerRegistryDeleteManifestOptionalParams,\n ContainerRegistryGetRepositoriesOptionalParams,\n ContainerRegistryGetRepositoriesResponse,\n ContainerRegistryGetPropertiesOptionalParams,\n ContainerRegistryGetPropertiesResponse,\n ContainerRegistryDeleteRepositoryOptionalParams,\n ContainerRegistryUpdatePropertiesOptionalParams,\n ContainerRegistryUpdatePropertiesResponse,\n ContainerRegistryGetTagsOptionalParams,\n ContainerRegistryGetTagsResponse,\n ContainerRegistryGetTagPropertiesOptionalParams,\n ContainerRegistryGetTagPropertiesResponse,\n ContainerRegistryUpdateTagAttributesOptionalParams,\n ContainerRegistryUpdateTagAttributesResponse,\n ContainerRegistryDeleteTagOptionalParams,\n ContainerRegistryGetManifestsOptionalParams,\n ContainerRegistryGetManifestsResponse,\n ContainerRegistryGetManifestPropertiesOptionalParams,\n ContainerRegistryGetManifestPropertiesResponse,\n ContainerRegistryUpdateManifestPropertiesOptionalParams,\n ContainerRegistryUpdateManifestPropertiesResponse,\n ContainerRegistryGetRepositoriesNextOptionalParams,\n ContainerRegistryGetRepositoriesNextResponse,\n ContainerRegistryGetTagsNextOptionalParams,\n ContainerRegistryGetTagsNextResponse,\n ContainerRegistryGetManifestsNextOptionalParams,\n ContainerRegistryGetManifestsNextResponse\n} from \"../models\";\n\n/** Class containing ContainerRegistry operations. */\nexport class ContainerRegistryImpl implements ContainerRegistry {\n private readonly client: GeneratedClientContext;\n\n /**\n * Initialize a new instance of the class ContainerRegistry class.\n * @param client Reference to the service client\n */\n constructor(client: GeneratedClientContext) {\n this.client = client;\n }\n\n /**\n * Tells whether this Docker Registry instance supports Docker Registry HTTP API v2\n * @param options The options parameters.\n */\n checkDockerV2Support(\n options?: ContainerRegistryCheckDockerV2SupportOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { options },\n checkDockerV2SupportOperationSpec\n );\n }\n\n /**\n * Get the manifest identified by `name` and `reference` where `reference` can be a tag or digest.\n * @param name Name of the image (including the namespace)\n * @param reference A tag or a digest, pointing to a specific image\n * @param options The options parameters.\n */\n getManifest(\n name: string,\n reference: string,\n options?: ContainerRegistryGetManifestOptionalParams\n ): Promise<ContainerRegistryGetManifestResponse> {\n return this.client.sendOperationRequest(\n { name, reference, options },\n getManifestOperationSpec\n );\n }\n\n /**\n * Put the manifest identified by `name` and `reference` where `reference` can be a tag or digest.\n * @param name Name of the image (including the namespace)\n * @param reference A tag or a digest, pointing to a specific image\n * @param payload Manifest body, can take v1 or v2 values depending on accept header\n * @param options The options parameters.\n */\n createManifest(\n name: string,\n reference: string,\n payload: Manifest,\n options?: ContainerRegistryCreateManifestOptionalParams\n ): Promise<ContainerRegistryCreateManifestResponse> {\n return this.client.sendOperationRequest(\n { name, reference, payload, options },\n createManifestOperationSpec\n );\n }\n\n /**\n * Delete the manifest identified by `name` and `reference`. Note that a manifest can _only_ be deleted\n * by `digest`.\n * @param name Name of the image (including the namespace)\n * @param reference Digest of a BLOB\n * @param options The options parameters.\n */\n deleteManifest(\n name: string,\n reference: string,\n options?: ContainerRegistryDeleteManifestOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { name, reference, options },\n deleteManifestOperationSpec\n );\n }\n\n /**\n * List repositories\n * @param options The options parameters.\n */\n getRepositories(\n options?: ContainerRegistryGetRepositoriesOptionalParams\n ): Promise<ContainerRegistryGetRepositoriesResponse> {\n return this.client.sendOperationRequest(\n { options },\n getRepositoriesOperationSpec\n );\n }\n\n /**\n * Get repository attributes\n * @param name Name of the image (including the namespace)\n * @param options The options parameters.\n */\n getProperties(\n name: string,\n options?: ContainerRegistryGetPropertiesOptionalParams\n ): Promise<ContainerRegistryGetPropertiesResponse> {\n return this.client.sendOperationRequest(\n { name, options },\n getPropertiesOperationSpec\n );\n }\n\n /**\n * Delete the repository identified by `name`\n * @param name Name of the image (including the namespace)\n * @param options The options parameters.\n */\n deleteRepository(\n name: string,\n options?: ContainerRegistryDeleteRepositoryOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { name, options },\n deleteRepositoryOperationSpec\n );\n }\n\n /**\n * Update the attribute identified by `name` where `reference` is the name of the repository.\n * @param name Name of the image (including the namespace)\n * @param options The options parameters.\n */\n updateProperties(\n name: string,\n options?: ContainerRegistryUpdatePropertiesOptionalParams\n ): Promise<ContainerRegistryUpdatePropertiesResponse> {\n return this.client.sendOperationRequest(\n { name, options },\n updatePropertiesOperationSpec\n );\n }\n\n /**\n * List tags of a repository\n * @param name Name of the image (including the namespace)\n * @param options The options parameters.\n */\n getTags(\n name: string,\n options?: ContainerRegistryGetTagsOptionalParams\n ): Promise<ContainerRegistryGetTagsResponse> {\n return this.client.sendOperationRequest(\n { name, options },\n getTagsOperationSpec\n );\n }\n\n /**\n * Get tag attributes by tag\n * @param name Name of the image (including the namespace)\n * @param reference Tag name\n * @param options The options parameters.\n */\n getTagProperties(\n name: string,\n reference: string,\n options?: ContainerRegistryGetTagPropertiesOptionalParams\n ): Promise<ContainerRegistryGetTagPropertiesResponse> {\n return this.client.sendOperationRequest(\n { name, reference, options },\n getTagPropertiesOperationSpec\n );\n }\n\n /**\n * Update tag attributes\n * @param name Name of the image (including the namespace)\n * @param reference Tag name\n * @param options The options parameters.\n */\n updateTagAttributes(\n name: string,\n reference: string,\n options?: ContainerRegistryUpdateTagAttributesOptionalParams\n ): Promise<ContainerRegistryUpdateTagAttributesResponse> {\n return this.client.sendOperationRequest(\n { name, reference, options },\n updateTagAttributesOperationSpec\n );\n }\n\n /**\n * Delete tag\n * @param name Name of the image (including the namespace)\n * @param reference Tag name\n * @param options The options parameters.\n */\n deleteTag(\n name: string,\n reference: string,\n options?: ContainerRegistryDeleteTagOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { name, reference, options },\n deleteTagOperationSpec\n );\n }\n\n /**\n * List manifests of a repository\n * @param name Name of the image (including the namespace)\n * @param options The options parameters.\n */\n getManifests(\n name: string,\n options?: ContainerRegistryGetManifestsOptionalParams\n ): Promise<ContainerRegistryGetManifestsResponse> {\n return this.client.sendOperationRequest(\n { name, options },\n getManifestsOperationSpec\n );\n }\n\n /**\n * Get manifest attributes\n * @param name Name of the image (including the namespace)\n * @param digest Digest of a BLOB\n * @param options The options parameters.\n */\n getManifestProperties(\n name: string,\n digest: string,\n options?: ContainerRegistryGetManifestPropertiesOptionalParams\n ): Promise<ContainerRegistryGetManifestPropertiesResponse> {\n return this.client.sendOperationRequest(\n { name, digest, options },\n getManifestPropertiesOperationSpec\n );\n }\n\n /**\n * Update properties of a manifest\n * @param name Name of the image (including the namespace)\n * @param digest Digest of a BLOB\n * @param options The options parameters.\n */\n updateManifestProperties(\n name: string,\n digest: string,\n options?: ContainerRegistryUpdateManifestPropertiesOptionalParams\n ): Promise<ContainerRegistryUpdateManifestPropertiesResponse> {\n return this.client.sendOperationRequest(\n { name, digest, options },\n updateManifestPropertiesOperationSpec\n );\n }\n\n /**\n * GetRepositoriesNext\n * @param nextLink The nextLink from the previous successful call to the GetRepositories method.\n * @param options The options parameters.\n */\n getRepositoriesNext(\n nextLink: string,\n options?: ContainerRegistryGetRepositoriesNextOptionalParams\n ): Promise<ContainerRegistryGetRepositoriesNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n getRepositoriesNextOperationSpec\n );\n }\n\n /**\n * GetTagsNext\n * @param name Name of the image (including the namespace)\n * @param nextLink The nextLink from the previous successful call to the GetTags method.\n * @param options The options parameters.\n */\n getTagsNext(\n name: string,\n nextLink: string,\n options?: ContainerRegistryGetTagsNextOptionalParams\n ): Promise<ContainerRegistryGetTagsNextResponse> {\n return this.client.sendOperationRequest(\n { name, nextLink, options },\n getTagsNextOperationSpec\n );\n }\n\n /**\n * GetManifestsNext\n * @param name Name of the image (including the namespace)\n * @param nextLink The nextLink from the previous successful call to the GetManifests method.\n * @param options The options parameters.\n */\n getManifestsNext(\n name: string,\n nextLink: string,\n options?: ContainerRegistryGetManifestsNextOptionalParams\n ): Promise<ContainerRegistryGetManifestsNextResponse> {\n return this.client.sendOperationRequest(\n { name, nextLink, options },\n getManifestsNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst checkDockerV2SupportOperationSpec: coreClient.OperationSpec = {\n path: \"/v2/\",\n httpMethod: \"GET\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.AcrErrors\n }\n },\n urlParameters: [Parameters.url],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getManifestOperationSpec: coreClient.OperationSpec = {\n path: \"/v2/{name}/manifests/{reference}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ManifestWrapper\n },\n default: {\n bodyMapper: Mappers.AcrErrors\n }\n },\n urlParameters: [Parameters.url, Parameters.name, Parameters.reference],\n headerParameters: [Parameters.accept, Parameters.accept1],\n serializer\n};\nconst createManifestOperationSpec: coreClient.OperationSpec = {\n path: \"/v2/{name}/manifests/{reference}\",\n httpMethod: \"PUT\",\n responses: {\n 201: {\n bodyMapper: { type: { name: \"any\" } },\n headersMapper: Mappers.ContainerRegistryCreateManifestHeaders\n },\n default: {\n bodyMapper: Mappers.AcrErrors\n }\n },\n requestBody: Parameters.payload,\n urlParameters: [Parameters.url, Parameters.name, Parameters.reference],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteManifestOperationSpec: coreClient.OperationSpec = {\n path: \"/v2/{name}/manifests/{reference}\",\n httpMethod: \"DELETE\",\n responses: {\n 202: {},\n 404: {},\n default: {\n bodyMapper: Mappers.AcrErrors\n }\n },\n urlParameters: [Parameters.url, Parameters.name, Parameters.reference],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getRepositoriesOperationSpec: coreClient.OperationSpec = {\n path: \"/acr/v1/_catalog\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Repositories,\n headersMapper: Mappers.ContainerRegistryGetRepositoriesHeaders\n },\n default: {\n bodyMapper: Mappers.AcrErrors\n }\n },\n queryParameters: [Parameters.last, Parameters.n, Parameters.apiVersion],\n urlParameters: [Parameters.url],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getPropertiesOperationSpec: coreClient.OperationSpec = {\n path: \"/acr/v1/{name}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ContainerRepositoryProperties\n },\n default: {\n bodyMapper: Mappers.AcrErrors\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.url, Parameters.name],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteRepositoryOperationSpec: coreClient.OperationSpec = {\n path: \"/acr/v1/{name}\",\n httpMethod: \"DELETE\",\n responses: {\n 202: {},\n 404: {},\n default: {\n bodyMapper: Mappers.AcrErrors\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.url, Parameters.name],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst updatePropertiesOperationSpec: coreClient.OperationSpec = {\n path: \"/acr/v1/{name}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ContainerRepositoryProperties\n },\n default: {\n bodyMapper: Mappers.AcrErrors\n }\n },\n requestBody: Parameters.value,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.url, Parameters.name],\n headerParameters: [Parameters.accept, Parameters.contentType1],\n mediaType: \"json\",\n serializer\n};\nconst getTagsOperationSpec: coreClient.OperationSpec = {\n path: \"/acr/v1/{name}/_tags\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TagList,\n headersMapper: Mappers.ContainerRegistryGetTagsHeaders\n },\n default: {\n bodyMapper: Mappers.AcrErrors\n }\n },\n queryParameters: [\n Parameters.last,\n Parameters.n,\n Parameters.apiVersion,\n Parameters.orderby,\n Parameters.digest\n ],\n urlParameters: [Parameters.url, Parameters.name],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getTagPropertiesOperationSpec: coreClient.OperationSpec = {\n path: \"/acr/v1/{name}/_tags/{reference}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ArtifactTagProperties\n },\n default: {\n bodyMapper: Mappers.AcrErrors\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.url, Parameters.name, Parameters.reference],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst updateTagAttributesOperationSpec: coreClient.OperationSpec = {\n path: \"/acr/v1/{name}/_tags/{reference}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ArtifactTagProperties\n },\n default: {\n bodyMapper: Mappers.AcrErrors\n }\n },\n requestBody: Parameters.value1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.url, Parameters.name, Parameters.reference],\n headerParameters: [Parameters.accept, Parameters.contentType1],\n mediaType: \"json\",\n serializer\n};\nconst deleteTagOperationSpec: coreClient.OperationSpec = {\n path: \"/acr/v1/{name}/_tags/{reference}\",\n httpMethod: \"DELETE\",\n responses: {\n 202: {},\n 404: {},\n default: {\n bodyMapper: Mappers.AcrErrors\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.url, Parameters.name, Parameters.reference],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getManifestsOperationSpec: coreClient.OperationSpec = {\n path: \"/acr/v1/{name}/_manifests\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AcrManifests,\n headersMapper: Mappers.ContainerRegistryGetManifestsHeaders\n },\n default: {\n bodyMapper: Mappers.AcrErrors\n }\n },\n queryParameters: [\n Parameters.last,\n Parameters.n,\n Parameters.apiVersion,\n Parameters.orderby\n ],\n urlParameters: [Parameters.url, Parameters.name],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getManifestPropertiesOperationSpec: coreClient.OperationSpec = {\n path: \"/acr/v1/{name}/_manifests/{digest}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ArtifactManifestProperties\n },\n default: {\n bodyMapper: Mappers.AcrErrors\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.url, Parameters.name, Parameters.digest1],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst updateManifestPropertiesOperationSpec: coreClient.OperationSpec = {\n path: \"/acr/v1/{name}/_manifests/{digest}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ArtifactManifestProperties\n },\n default: {\n bodyMapper: Mappers.AcrErrors\n }\n },\n requestBody: Parameters.value2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.url, Parameters.name, Parameters.digest1],\n headerParameters: [Parameters.accept, Parameters.contentType1],\n mediaType: \"json\",\n serializer\n};\nconst getRepositoriesNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Repositories,\n headersMapper: Mappers.ContainerRegistryGetRepositoriesNextHeaders\n },\n default: {\n bodyMapper: Mappers.AcrErrors\n }\n },\n queryParameters: [Parameters.last, Parameters.n, Parameters.apiVersion],\n urlParameters: [Parameters.url, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getTagsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TagList,\n headersMapper: Mappers.ContainerRegistryGetTagsNextHeaders\n },\n default: {\n bodyMapper: Mappers.AcrErrors\n }\n },\n queryParameters: [\n Parameters.last,\n Parameters.n,\n Parameters.apiVersion,\n Parameters.orderby,\n Parameters.digest\n ],\n urlParameters: [Parameters.url, Parameters.name, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getManifestsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AcrManifests,\n headersMapper: Mappers.ContainerRegistryGetManifestsNextHeaders\n },\n default: {\n bodyMapper: Mappers.AcrErrors\n }\n },\n queryParameters: [\n Parameters.last,\n Parameters.n,\n Parameters.apiVersion,\n Parameters.orderby\n ],\n urlParameters: [Parameters.url, Parameters.name, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
import * as coreClient from "@azure/core-client";
|
|
9
9
|
import * as Mappers from "../models/mappers";
|
|
10
10
|
import * as Parameters from "../models/parameters";
|
|
11
|
-
/** Class
|
|
12
|
-
export class
|
|
11
|
+
/** Class containing ContainerRegistryBlob operations. */
|
|
12
|
+
export class ContainerRegistryBlobImpl {
|
|
13
13
|
/**
|
|
14
14
|
* Initialize a new instance of the class ContainerRegistryBlob class.
|
|
15
15
|
* @param client Reference to the service client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"containerRegistryBlob.js","sourceRoot":"","sources":["../../../../src/generated/operations/containerRegistryBlob.ts"],"names":[],"m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,EAAE;QACT,GAAG,EAAE;YACH,aAAa,EAAE,OAAO,CAAC,uCAAuC;SAC/D;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,SAAS;SAC9B;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,GAAG,EAAE,UAAU,CAAC,IAAI,CAAC;IAChD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,2BAA2B;IACjC,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE;gBACV,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBACxB,cAAc,EAAE,gBAAgB;aACjC;YACD,aAAa,EAAE,OAAO,CAAC,oCAAoC;SAC5D;QACD,OAAO,EAAE,EAAE;KACZ;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,GAAG,EAAE,UAAU,CAAC,IAAI,EAAE,UAAU,CAAC,OAAO,CAAC;IACpE,gBAAgB,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,UAAU,CAAC,KAAK,CAAC;IACxD,UAAU;CACX,CAAC;AACF,MAAM,6BAA6B,GAA6B;IAC9D,IAAI,EAAE,2BAA2B;IACjC,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,aAAa,EAAE,OAAO,CAAC,4CAA4C;SACpE;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,SAAS;SAC9B;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,GAAG,EAAE,UAAU,CAAC,IAAI,EAAE,UAAU,CAAC,OAAO,CAAC;IACpE,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,KAAK,CAAC;IACvD,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreHttps from \"@azure/core-rest-pipeline\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { GeneratedClientContext } from \"../generatedClientContext\";\nimport {\n ContainerRegistryBlobGetBlobResponse,\n ContainerRegistryBlobCheckBlobExistsResponse,\n ContainerRegistryBlobDeleteBlobResponse,\n ContainerRegistryBlobMountBlobResponse,\n ContainerRegistryBlobGetUploadStatusResponse,\n ContainerRegistryBlobUploadChunkResponse,\n ContainerRegistryBlobCompleteUploadOptionalParams,\n ContainerRegistryBlobCompleteUploadResponse,\n ContainerRegistryBlobStartUploadResponse,\n ContainerRegistryBlobGetChunkResponse,\n ContainerRegistryBlobCheckChunkExistsResponse\n} from \"../models\";\n\n/** Class representing a ContainerRegistryBlob. */\nexport class ContainerRegistryBlob {\n private readonly client: GeneratedClientContext;\n\n /**\n * Initialize a new instance of the class ContainerRegistryBlob class.\n * @param client Reference to the service client\n */\n constructor(client: GeneratedClientContext) {\n this.client = client;\n }\n\n /**\n * Retrieve the blob from the registry identified by digest.\n * @param name Name of the image (including the namespace)\n * @param digest Digest of a BLOB\n * @param options The options parameters.\n */\n getBlob(\n name: string,\n digest: string,\n options?: coreClient.OperationOptions\n ): Promise<ContainerRegistryBlobGetBlobResponse> {\n return this.client.sendOperationRequest(\n { name, digest, options },\n getBlobOperationSpec\n );\n }\n\n /**\n * Same as GET, except only the headers are returned.\n * @param name Name of the image (including the namespace)\n * @param digest Digest of a BLOB\n * @param options The options parameters.\n */\n checkBlobExists(\n name: string,\n digest: string,\n options?: coreClient.OperationOptions\n ): Promise<ContainerRegistryBlobCheckBlobExistsResponse> {\n return this.client.sendOperationRequest(\n { name, digest, options },\n checkBlobExistsOperationSpec\n );\n }\n\n /**\n * Removes an already uploaded blob.\n * @param name Name of the image (including the namespace)\n * @param digest Digest of a BLOB\n * @param options The options parameters.\n */\n deleteBlob(\n name: string,\n digest: string,\n options?: coreClient.OperationOptions\n ): Promise<ContainerRegistryBlobDeleteBlobResponse> {\n return this.client.sendOperationRequest(\n { name, digest, options },\n deleteBlobOperationSpec\n );\n }\n\n /**\n * Mount a blob identified by the `mount` parameter from another repository.\n * @param name Name of the image (including the namespace)\n * @param mount Digest of blob to mount from the source repository.\n * @param fromParam Name of the source repository.\n * @param options The options parameters.\n */\n mountBlob(\n name: string,\n mount: string,\n fromParam: string,\n options?: coreClient.OperationOptions\n ): Promise<ContainerRegistryBlobMountBlobResponse> {\n return this.client.sendOperationRequest(\n { name, mount, fromParam, options },\n mountBlobOperationSpec\n );\n }\n\n /**\n * Retrieve status of upload identified by uuid. The primary purpose of this endpoint is to resolve the\n * current status of a resumable upload.\n * @param location Link acquired from upload start or previous chunk. Note, do not include initial /\n * (must do substring(1) )\n * @param options The options parameters.\n */\n getUploadStatus(\n location: string,\n options?: coreClient.OperationOptions\n ): Promise<ContainerRegistryBlobGetUploadStatusResponse> {\n return this.client.sendOperationRequest(\n { location, options },\n getUploadStatusOperationSpec\n );\n }\n\n /**\n * Upload a stream of data without completing the upload.\n * @param location Link acquired from upload start or previous chunk. Note, do not include initial /\n * (must do substring(1) )\n * @param value Raw data of blob\n * @param options The options parameters.\n */\n uploadChunk(\n location: string,\n value: coreHttps.RequestBodyType,\n options?: coreClient.OperationOptions\n ): Promise<ContainerRegistryBlobUploadChunkResponse> {\n return this.client.sendOperationRequest(\n { location, value, options },\n uploadChunkOperationSpec\n );\n }\n\n /**\n * Complete the upload, providing all the data in the body, if necessary. A request without a body will\n * just complete the upload with previously uploaded content.\n * @param digest Digest of a BLOB\n * @param location Link acquired from upload start or previous chunk. Note, do not include initial /\n * (must do substring(1) )\n * @param options The options parameters.\n */\n completeUpload(\n digest: string,\n location: string,\n options?: ContainerRegistryBlobCompleteUploadOptionalParams\n ): Promise<ContainerRegistryBlobCompleteUploadResponse> {\n return this.client.sendOperationRequest(\n { digest, location, options },\n completeUploadOperationSpec\n );\n }\n\n /**\n * Cancel outstanding upload processes, releasing associated resources. If this is not called, the\n * unfinished uploads will eventually timeout.\n * @param location Link acquired from upload start or previous chunk. Note, do not include initial /\n * (must do substring(1) )\n * @param options The options parameters.\n */\n cancelUpload(\n location: string,\n options?: coreClient.OperationOptions\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { location, options },\n cancelUploadOperationSpec\n );\n }\n\n /**\n * Initiate a resumable blob upload with an empty request body.\n * @param name Name of the image (including the namespace)\n * @param options The options parameters.\n */\n startUpload(\n name: string,\n options?: coreClient.OperationOptions\n ): Promise<ContainerRegistryBlobStartUploadResponse> {\n return this.client.sendOperationRequest(\n { name, options },\n startUploadOperationSpec\n );\n }\n\n /**\n * Retrieve the blob from the registry identified by `digest`. This endpoint may also support RFC7233\n * compliant range requests. Support can be detected by issuing a HEAD request. If the header\n * `Accept-Range: bytes` is returned, range requests can be used to fetch partial content.\n * @param name Name of the image (including the namespace)\n * @param digest Digest of a BLOB\n * @param range Format : bytes=<start>-<end>, HTTP Range header specifying blob chunk.\n * @param options The options parameters.\n */\n getChunk(\n name: string,\n digest: string,\n range: string,\n options?: coreClient.OperationOptions\n ): Promise<ContainerRegistryBlobGetChunkResponse> {\n return this.client.sendOperationRequest(\n { name, digest, range, options },\n getChunkOperationSpec\n );\n }\n\n /**\n * Same as GET, except only the headers are returned.\n * @param name Name of the image (including the namespace)\n * @param digest Digest of a BLOB\n * @param range Format : bytes=<start>-<end>, HTTP Range header specifying blob chunk.\n * @param options The options parameters.\n */\n checkChunkExists(\n name: string,\n digest: string,\n range: string,\n options?: coreClient.OperationOptions\n ): Promise<ContainerRegistryBlobCheckChunkExistsResponse> {\n return this.client.sendOperationRequest(\n { name, digest, range, options },\n checkChunkExistsOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getBlobOperationSpec: coreClient.OperationSpec = {\n path: \"/v2/{name}/blobs/{digest}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: {\n type: { name: \"Stream\" },\n serializedName: \"parsedResponse\"\n },\n headersMapper: Mappers.ContainerRegistryBlobGetBlobHeaders\n },\n 307: {\n headersMapper: Mappers.ContainerRegistryBlobGetBlobHeaders\n },\n default: {}\n },\n urlParameters: [Parameters.url, Parameters.name, Parameters.digest1],\n headerParameters: [Parameters.accept2],\n serializer\n};\nconst checkBlobExistsOperationSpec: coreClient.OperationSpec = {\n path: \"/v2/{name}/blobs/{digest}\",\n httpMethod: \"HEAD\",\n responses: {\n 200: {\n headersMapper: Mappers.ContainerRegistryBlobCheckBlobExistsHeaders\n },\n 307: {\n headersMapper: Mappers.ContainerRegistryBlobCheckBlobExistsHeaders\n },\n default: {\n bodyMapper: Mappers.AcrErrors\n }\n },\n urlParameters: [Parameters.url, Parameters.name, Parameters.digest1],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteBlobOperationSpec: coreClient.OperationSpec = {\n path: \"/v2/{name}/blobs/{digest}\",\n httpMethod: \"DELETE\",\n responses: {\n 202: {\n bodyMapper: {\n type: { name: \"Stream\" },\n serializedName: \"parsedResponse\"\n },\n headersMapper: Mappers.ContainerRegistryBlobDeleteBlobHeaders\n },\n default: {}\n },\n urlParameters: [Parameters.url, Parameters.name, Parameters.digest1],\n headerParameters: [Parameters.accept2],\n serializer\n};\nconst mountBlobOperationSpec: coreClient.OperationSpec = {\n path: \"/v2/{name}/blobs/uploads/\",\n httpMethod: \"POST\",\n responses: {\n 201: {\n headersMapper: Mappers.ContainerRegistryBlobMountBlobHeaders\n },\n default: {\n bodyMapper: Mappers.AcrErrors\n }\n },\n queryParameters: [Parameters.fromParam, Parameters.mount],\n urlParameters: [Parameters.url, Parameters.name],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getUploadStatusOperationSpec: coreClient.OperationSpec = {\n path: \"/{nextBlobUuidLink}\",\n httpMethod: \"GET\",\n responses: {\n 204: {\n headersMapper: Mappers.ContainerRegistryBlobGetUploadStatusHeaders\n },\n default: {\n bodyMapper: Mappers.AcrErrors\n }\n },\n urlParameters: [Parameters.url, Parameters.location],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst uploadChunkOperationSpec: coreClient.OperationSpec = {\n path: \"/{nextBlobUuidLink}\",\n httpMethod: \"PATCH\",\n responses: {\n 202: {\n headersMapper: Mappers.ContainerRegistryBlobUploadChunkHeaders\n },\n default: {\n bodyMapper: Mappers.AcrErrors\n }\n },\n requestBody: Parameters.value3,\n urlParameters: [Parameters.url, Parameters.location],\n headerParameters: [Parameters.contentType2, Parameters.accept3],\n mediaType: \"binary\",\n serializer\n};\nconst completeUploadOperationSpec: coreClient.OperationSpec = {\n path: \"/{nextBlobUuidLink}\",\n httpMethod: \"PUT\",\n responses: {\n 201: {\n headersMapper: Mappers.ContainerRegistryBlobCompleteUploadHeaders\n },\n default: {\n bodyMapper: Mappers.AcrErrors\n }\n },\n requestBody: Parameters.value4,\n queryParameters: [Parameters.digest2],\n urlParameters: [Parameters.url, Parameters.location],\n headerParameters: [Parameters.contentType2, Parameters.accept3],\n mediaType: \"binary\",\n serializer\n};\nconst cancelUploadOperationSpec: coreClient.OperationSpec = {\n path: \"/{nextBlobUuidLink}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.AcrErrors\n }\n },\n urlParameters: [Parameters.url, Parameters.location],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst startUploadOperationSpec: coreClient.OperationSpec = {\n path: \"/v2/{name}/blobs/uploads/\",\n httpMethod: \"POST\",\n responses: {\n 202: {\n headersMapper: Mappers.ContainerRegistryBlobStartUploadHeaders\n },\n default: {\n bodyMapper: Mappers.AcrErrors\n }\n },\n urlParameters: [Parameters.url, Parameters.name],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getChunkOperationSpec: coreClient.OperationSpec = {\n path: \"/v2/{name}/blobs/{digest}\",\n httpMethod: \"GET\",\n responses: {\n 206: {\n bodyMapper: {\n type: { name: \"Stream\" },\n serializedName: \"parsedResponse\"\n },\n headersMapper: Mappers.ContainerRegistryBlobGetChunkHeaders\n },\n default: {}\n },\n urlParameters: [Parameters.url, Parameters.name, Parameters.digest1],\n headerParameters: [Parameters.accept2, Parameters.range],\n serializer\n};\nconst checkChunkExistsOperationSpec: coreClient.OperationSpec = {\n path: \"/v2/{name}/blobs/{digest}\",\n httpMethod: \"HEAD\",\n responses: {\n 200: {\n headersMapper: Mappers.ContainerRegistryBlobCheckChunkExistsHeaders\n },\n default: {\n bodyMapper: Mappers.AcrErrors\n }\n },\n urlParameters: [Parameters.url, Parameters.name, Parameters.digest1],\n headerParameters: [Parameters.accept, Parameters.range],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"containerRegistryBlob.js","sourceRoot":"","sources":["../../../../src/generated/operations/containerRegistryBlob.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AA0BnD,yDAAyD;AACzD,MAAM,OAAO,yBAAyB;IAGpC;;;OAGG;IACH,YAAY,MAA8B;QACxC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,OAAO,CACL,IAAY,EACZ,MAAc,EACd,OAAoD;QAEpD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EACzB,oBAAoB,CACrB,CAAC;IACJ,CAAC;IAED;;;;;OAKG;IACH,eAAe,CACb,IAAY,EACZ,MAAc,EACd,OAA4D;QAE5D,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EACzB,4BAA4B,CAC7B,CAAC;IACJ,CAAC;IAED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AE,CAAC,UAAU,CAAC,OAAO,EAAE,UAAU,CAAC,KAAK,CAAC;IACxD,UAAU;CACX,CAAC;AACF,MAAM,6BAA6B,GAA6B;IAC9D,IAAI,EAAE,2BAA2B;IACjC,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,aAAa,EAAE,OAAO,CAAC,4CAA4C;SACpE;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,SAAS;SAC9B;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,GAAG,EAAE,UAAU,CAAC,IAAI,EAAE,UAAU,CAAC,OAAO,CAAC;IACpE,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,KAAK,CAAC;IACvD,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { ContainerRegistryBlob } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { GeneratedClientContext } from \"../generatedClientContext\";\nimport {\n ContainerRegistryBlobGetBlobOptionalParams,\n ContainerRegistryBlobGetBlobResponse,\n ContainerRegistryBlobCheckBlobExistsOptionalParams,\n ContainerRegistryBlobCheckBlobExistsResponse,\n ContainerRegistryBlobDeleteBlobOptionalParams,\n ContainerRegistryBlobDeleteBlobResponse,\n ContainerRegistryBlobMountBlobOptionalParams,\n ContainerRegistryBlobMountBlobResponse,\n ContainerRegistryBlobGetUploadStatusOptionalParams,\n ContainerRegistryBlobGetUploadStatusResponse,\n ContainerRegistryBlobUploadChunkOptionalParams,\n ContainerRegistryBlobUploadChunkResponse,\n ContainerRegistryBlobCompleteUploadOptionalParams,\n ContainerRegistryBlobCompleteUploadResponse,\n ContainerRegistryBlobCancelUploadOptionalParams,\n ContainerRegistryBlobStartUploadOptionalParams,\n ContainerRegistryBlobStartUploadResponse,\n ContainerRegistryBlobGetChunkOptionalParams,\n ContainerRegistryBlobGetChunkResponse,\n ContainerRegistryBlobCheckChunkExistsOptionalParams,\n ContainerRegistryBlobCheckChunkExistsResponse\n} from \"../models\";\n\n/** Class containing ContainerRegistryBlob operations. */\nexport class ContainerRegistryBlobImpl implements ContainerRegistryBlob {\n private readonly client: GeneratedClientContext;\n\n /**\n * Initialize a new instance of the class ContainerRegistryBlob class.\n * @param client Reference to the service client\n */\n constructor(client: GeneratedClientContext) {\n this.client = client;\n }\n\n /**\n * Retrieve the blob from the registry identified by digest.\n * @param name Name of the image (including the namespace)\n * @param digest Digest of a BLOB\n * @param options The options parameters.\n */\n getBlob(\n name: string,\n digest: string,\n options?: ContainerRegistryBlobGetBlobOptionalParams\n ): Promise<ContainerRegistryBlobGetBlobResponse> {\n return this.client.sendOperationRequest(\n { name, digest, options },\n getBlobOperationSpec\n );\n }\n\n /**\n * Same as GET, except only the headers are returned.\n * @param name Name of the image (including the namespace)\n * @param digest Digest of a BLOB\n * @param options The options parameters.\n */\n checkBlobExists(\n name: string,\n digest: string,\n options?: ContainerRegistryBlobCheckBlobExistsOptionalParams\n ): Promise<ContainerRegistryBlobCheckBlobExistsResponse> {\n return this.client.sendOperationRequest(\n { name, digest, options },\n checkBlobExistsOperationSpec\n );\n }\n\n /**\n * Removes an already uploaded blob.\n * @param name Name of the image (including the namespace)\n * @param digest Digest of a BLOB\n * @param options The options parameters.\n */\n deleteBlob(\n name: string,\n digest: string,\n options?: ContainerRegistryBlobDeleteBlobOptionalParams\n ): Promise<ContainerRegistryBlobDeleteBlobResponse> {\n return this.client.sendOperationRequest(\n { name, digest, options },\n deleteBlobOperationSpec\n );\n }\n\n /**\n * Mount a blob identified by the `mount` parameter from another repository.\n * @param name Name of the image (including the namespace)\n * @param mount Digest of blob to mount from the source repository.\n * @param fromParam Name of the source repository.\n * @param options The options parameters.\n */\n mountBlob(\n name: string,\n mount: string,\n fromParam: string,\n options?: ContainerRegistryBlobMountBlobOptionalParams\n ): Promise<ContainerRegistryBlobMountBlobResponse> {\n return this.client.sendOperationRequest(\n { name, mount, fromParam, options },\n mountBlobOperationSpec\n );\n }\n\n /**\n * Retrieve status of upload identified by uuid. The primary purpose of this endpoint is to resolve the\n * current status of a resumable upload.\n * @param location Link acquired from upload start or previous chunk. Note, do not include initial /\n * (must do substring(1) )\n * @param options The options parameters.\n */\n getUploadStatus(\n location: string,\n options?: ContainerRegistryBlobGetUploadStatusOptionalParams\n ): Promise<ContainerRegistryBlobGetUploadStatusResponse> {\n return this.client.sendOperationRequest(\n { location, options },\n getUploadStatusOperationSpec\n );\n }\n\n /**\n * Upload a stream of data without completing the upload.\n * @param location Link acquired from upload start or previous chunk. Note, do not include initial /\n * (must do substring(1) )\n * @param value Raw data of blob\n * @param options The options parameters.\n */\n uploadChunk(\n location: string,\n value: coreRestPipeline.RequestBodyType,\n options?: ContainerRegistryBlobUploadChunkOptionalParams\n ): Promise<ContainerRegistryBlobUploadChunkResponse> {\n return this.client.sendOperationRequest(\n { location, value, options },\n uploadChunkOperationSpec\n );\n }\n\n /**\n * Complete the upload, providing all the data in the body, if necessary. A request without a body will\n * just complete the upload with previously uploaded content.\n * @param digest Digest of a BLOB\n * @param location Link acquired from upload start or previous chunk. Note, do not include initial /\n * (must do substring(1) )\n * @param options The options parameters.\n */\n completeUpload(\n digest: string,\n location: string,\n options?: ContainerRegistryBlobCompleteUploadOptionalParams\n ): Promise<ContainerRegistryBlobCompleteUploadResponse> {\n return this.client.sendOperationRequest(\n { digest, location, options },\n completeUploadOperationSpec\n );\n }\n\n /**\n * Cancel outstanding upload processes, releasing associated resources. If this is not called, the\n * unfinished uploads will eventually timeout.\n * @param location Link acquired from upload start or previous chunk. Note, do not include initial /\n * (must do substring(1) )\n * @param options The options parameters.\n */\n cancelUpload(\n location: string,\n options?: ContainerRegistryBlobCancelUploadOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { location, options },\n cancelUploadOperationSpec\n );\n }\n\n /**\n * Initiate a resumable blob upload with an empty request body.\n * @param name Name of the image (including the namespace)\n * @param options The options parameters.\n */\n startUpload(\n name: string,\n options?: ContainerRegistryBlobStartUploadOptionalParams\n ): Promise<ContainerRegistryBlobStartUploadResponse> {\n return this.client.sendOperationRequest(\n { name, options },\n startUploadOperationSpec\n );\n }\n\n /**\n * Retrieve the blob from the registry identified by `digest`. This endpoint may also support RFC7233\n * compliant range requests. Support can be detected by issuing a HEAD request. If the header\n * `Accept-Range: bytes` is returned, range requests can be used to fetch partial content.\n * @param name Name of the image (including the namespace)\n * @param digest Digest of a BLOB\n * @param range Format : bytes=<start>-<end>, HTTP Range header specifying blob chunk.\n * @param options The options parameters.\n */\n getChunk(\n name: string,\n digest: string,\n range: string,\n options?: ContainerRegistryBlobGetChunkOptionalParams\n ): Promise<ContainerRegistryBlobGetChunkResponse> {\n return this.client.sendOperationRequest(\n { name, digest, range, options },\n getChunkOperationSpec\n );\n }\n\n /**\n * Same as GET, except only the headers are returned.\n * @param name Name of the image (including the namespace)\n * @param digest Digest of a BLOB\n * @param range Format : bytes=<start>-<end>, HTTP Range header specifying blob chunk.\n * @param options The options parameters.\n */\n checkChunkExists(\n name: string,\n digest: string,\n range: string,\n options?: ContainerRegistryBlobCheckChunkExistsOptionalParams\n ): Promise<ContainerRegistryBlobCheckChunkExistsResponse> {\n return this.client.sendOperationRequest(\n { name, digest, range, options },\n checkChunkExistsOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getBlobOperationSpec: coreClient.OperationSpec = {\n path: \"/v2/{name}/blobs/{digest}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: {\n type: { name: \"Stream\" },\n serializedName: \"parsedResponse\"\n },\n headersMapper: Mappers.ContainerRegistryBlobGetBlobHeaders\n },\n 307: {\n headersMapper: Mappers.ContainerRegistryBlobGetBlobHeaders\n },\n default: {}\n },\n urlParameters: [Parameters.url, Parameters.name, Parameters.digest1],\n headerParameters: [Parameters.accept2],\n serializer\n};\nconst checkBlobExistsOperationSpec: coreClient.OperationSpec = {\n path: \"/v2/{name}/blobs/{digest}\",\n httpMethod: \"HEAD\",\n responses: {\n 200: {\n headersMapper: Mappers.ContainerRegistryBlobCheckBlobExistsHeaders\n },\n 307: {\n headersMapper: Mappers.ContainerRegistryBlobCheckBlobExistsHeaders\n },\n default: {\n bodyMapper: Mappers.AcrErrors\n }\n },\n urlParameters: [Parameters.url, Parameters.name, Parameters.digest1],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteBlobOperationSpec: coreClient.OperationSpec = {\n path: \"/v2/{name}/blobs/{digest}\",\n httpMethod: \"DELETE\",\n responses: {\n 202: {\n bodyMapper: {\n type: { name: \"Stream\" },\n serializedName: \"parsedResponse\"\n },\n headersMapper: Mappers.ContainerRegistryBlobDeleteBlobHeaders\n },\n default: {}\n },\n urlParameters: [Parameters.url, Parameters.name, Parameters.digest1],\n headerParameters: [Parameters.accept2],\n serializer\n};\nconst mountBlobOperationSpec: coreClient.OperationSpec = {\n path: \"/v2/{name}/blobs/uploads/\",\n httpMethod: \"POST\",\n responses: {\n 201: {\n headersMapper: Mappers.ContainerRegistryBlobMountBlobHeaders\n },\n default: {\n bodyMapper: Mappers.AcrErrors\n }\n },\n queryParameters: [Parameters.fromParam, Parameters.mount],\n urlParameters: [Parameters.url, Parameters.name],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getUploadStatusOperationSpec: coreClient.OperationSpec = {\n path: \"/{nextBlobUuidLink}\",\n httpMethod: \"GET\",\n responses: {\n 204: {\n headersMapper: Mappers.ContainerRegistryBlobGetUploadStatusHeaders\n },\n default: {\n bodyMapper: Mappers.AcrErrors\n }\n },\n urlParameters: [Parameters.url, Parameters.location],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst uploadChunkOperationSpec: coreClient.OperationSpec = {\n path: \"/{nextBlobUuidLink}\",\n httpMethod: \"PATCH\",\n responses: {\n 202: {\n headersMapper: Mappers.ContainerRegistryBlobUploadChunkHeaders\n },\n default: {\n bodyMapper: Mappers.AcrErrors\n }\n },\n requestBody: Parameters.value3,\n urlParameters: [Parameters.url, Parameters.location],\n headerParameters: [Parameters.contentType2, Parameters.accept3],\n mediaType: \"binary\",\n serializer\n};\nconst completeUploadOperationSpec: coreClient.OperationSpec = {\n path: \"/{nextBlobUuidLink}\",\n httpMethod: \"PUT\",\n responses: {\n 201: {\n headersMapper: Mappers.ContainerRegistryBlobCompleteUploadHeaders\n },\n default: {\n bodyMapper: Mappers.AcrErrors\n }\n },\n requestBody: Parameters.value4,\n queryParameters: [Parameters.digest2],\n urlParameters: [Parameters.url, Parameters.location],\n headerParameters: [Parameters.contentType2, Parameters.accept3],\n mediaType: \"binary\",\n serializer\n};\nconst cancelUploadOperationSpec: coreClient.OperationSpec = {\n path: \"/{nextBlobUuidLink}\",\n httpMethod: \"DELETE\",\n responses: {\n 204: {},\n default: {\n bodyMapper: Mappers.AcrErrors\n }\n },\n urlParameters: [Parameters.url, Parameters.location],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst startUploadOperationSpec: coreClient.OperationSpec = {\n path: \"/v2/{name}/blobs/uploads/\",\n httpMethod: \"POST\",\n responses: {\n 202: {\n headersMapper: Mappers.ContainerRegistryBlobStartUploadHeaders\n },\n default: {\n bodyMapper: Mappers.AcrErrors\n }\n },\n urlParameters: [Parameters.url, Parameters.name],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getChunkOperationSpec: coreClient.OperationSpec = {\n path: \"/v2/{name}/blobs/{digest}\",\n httpMethod: \"GET\",\n responses: {\n 206: {\n bodyMapper: {\n type: { name: \"Stream\" },\n serializedName: \"parsedResponse\"\n },\n headersMapper: Mappers.ContainerRegistryBlobGetChunkHeaders\n },\n default: {}\n },\n urlParameters: [Parameters.url, Parameters.name, Parameters.digest1],\n headerParameters: [Parameters.accept2, Parameters.range],\n serializer\n};\nconst checkChunkExistsOperationSpec: coreClient.OperationSpec = {\n path: \"/v2/{name}/blobs/{digest}\",\n httpMethod: \"HEAD\",\n responses: {\n 200: {\n headersMapper: Mappers.ContainerRegistryBlobCheckChunkExistsHeaders\n },\n default: {\n bodyMapper: Mappers.AcrErrors\n }\n },\n urlParameters: [Parameters.url, Parameters.name, Parameters.digest1],\n headerParameters: [Parameters.accept, Parameters.range],\n serializer\n};\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=authentication.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authentication.js","sourceRoot":"","sources":["../../../../src/generated/operationsInterfaces/authentication.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport {\n PostContentSchemaGrantType,\n AuthenticationExchangeAadAccessTokenForAcrRefreshTokenOptionalParams,\n AuthenticationExchangeAadAccessTokenForAcrRefreshTokenResponse,\n TokenGrantType,\n AuthenticationExchangeAcrRefreshTokenForAcrAccessTokenOptionalParams,\n AuthenticationExchangeAcrRefreshTokenForAcrAccessTokenResponse\n} from \"../models\";\n\n/** Interface representing a Authentication. */\nexport interface Authentication {\n /**\n * Exchange AAD tokens for an ACR refresh Token\n * @param grantType Can take a value of access_token_refresh_token, or access_token, or refresh_token\n * @param service Indicates the name of your Azure container registry.\n * @param options The options parameters.\n */\n exchangeAadAccessTokenForAcrRefreshToken(\n grantType: PostContentSchemaGrantType,\n service: string,\n options?: AuthenticationExchangeAadAccessTokenForAcrRefreshTokenOptionalParams\n ): Promise<AuthenticationExchangeAadAccessTokenForAcrRefreshTokenResponse>;\n /**\n * Exchange ACR Refresh token for an ACR Access Token\n * @param service Indicates the name of your Azure container registry.\n * @param scope Which is expected to be a valid scope, and can be specified more than once for multiple\n * scope requests. You obtained this from the Www-Authenticate response header from the challenge.\n * @param refreshToken Must be a valid ACR refresh token\n * @param grantType Grant type is expected to be refresh_token\n * @param options The options parameters.\n */\n exchangeAcrRefreshTokenForAcrAccessToken(\n service: string,\n scope: string,\n refreshToken: string,\n grantType: TokenGrantType,\n options?: AuthenticationExchangeAcrRefreshTokenForAcrAccessTokenOptionalParams\n ): Promise<AuthenticationExchangeAcrRefreshTokenForAcrAccessTokenResponse>;\n}\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=containerRegistry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"containerRegistry.js","sourceRoot":"","sources":["../../../../src/generated/operationsInterfaces/containerRegistry.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport {\n ContainerRegistryCheckDockerV2SupportOptionalParams,\n ContainerRegistryGetManifestOptionalParams,\n ContainerRegistryGetManifestResponse,\n Manifest,\n ContainerRegistryCreateManifestOptionalParams,\n ContainerRegistryCreateManifestResponse,\n ContainerRegistryDeleteManifestOptionalParams,\n ContainerRegistryGetRepositoriesOptionalParams,\n ContainerRegistryGetRepositoriesResponse,\n ContainerRegistryGetPropertiesOptionalParams,\n ContainerRegistryGetPropertiesResponse,\n ContainerRegistryDeleteRepositoryOptionalParams,\n ContainerRegistryUpdatePropertiesOptionalParams,\n ContainerRegistryUpdatePropertiesResponse,\n ContainerRegistryGetTagsOptionalParams,\n ContainerRegistryGetTagsResponse,\n ContainerRegistryGetTagPropertiesOptionalParams,\n ContainerRegistryGetTagPropertiesResponse,\n ContainerRegistryUpdateTagAttributesOptionalParams,\n ContainerRegistryUpdateTagAttributesResponse,\n ContainerRegistryDeleteTagOptionalParams,\n ContainerRegistryGetManifestsOptionalParams,\n ContainerRegistryGetManifestsResponse,\n ContainerRegistryGetManifestPropertiesOptionalParams,\n ContainerRegistryGetManifestPropertiesResponse,\n ContainerRegistryUpdateManifestPropertiesOptionalParams,\n ContainerRegistryUpdateManifestPropertiesResponse,\n ContainerRegistryGetRepositoriesNextOptionalParams,\n ContainerRegistryGetRepositoriesNextResponse,\n ContainerRegistryGetTagsNextOptionalParams,\n ContainerRegistryGetTagsNextResponse,\n ContainerRegistryGetManifestsNextOptionalParams,\n ContainerRegistryGetManifestsNextResponse\n} from \"../models\";\n\n/** Interface representing a ContainerRegistry. */\nexport interface ContainerRegistry {\n /**\n * Tells whether this Docker Registry instance supports Docker Registry HTTP API v2\n * @param options The options parameters.\n */\n checkDockerV2Support(\n options?: ContainerRegistryCheckDockerV2SupportOptionalParams\n ): Promise<void>;\n /**\n * Get the manifest identified by `name` and `reference` where `reference` can be a tag or digest.\n * @param name Name of the image (including the namespace)\n * @param reference A tag or a digest, pointing to a specific image\n * @param options The options parameters.\n */\n getManifest(\n name: string,\n reference: string,\n options?: ContainerRegistryGetManifestOptionalParams\n ): Promise<ContainerRegistryGetManifestResponse>;\n /**\n * Put the manifest identified by `name` and `reference` where `reference` can be a tag or digest.\n * @param name Name of the image (including the namespace)\n * @param reference A tag or a digest, pointing to a specific image\n * @param payload Manifest body, can take v1 or v2 values depending on accept header\n * @param options The options parameters.\n */\n createManifest(\n name: string,\n reference: string,\n payload: Manifest,\n options?: ContainerRegistryCreateManifestOptionalParams\n ): Promise<ContainerRegistryCreateManifestResponse>;\n /**\n * Delete the manifest identified by `name` and `reference`. Note that a manifest can _only_ be deleted\n * by `digest`.\n * @param name Name of the image (including the namespace)\n * @param reference Digest of a BLOB\n * @param options The options parameters.\n */\n deleteManifest(\n name: string,\n reference: string,\n options?: ContainerRegistryDeleteManifestOptionalParams\n ): Promise<void>;\n /**\n * List repositories\n * @param options The options parameters.\n */\n getRepositories(\n options?: ContainerRegistryGetRepositoriesOptionalParams\n ): Promise<ContainerRegistryGetRepositoriesResponse>;\n /**\n * Get repository attributes\n * @param name Name of the image (including the namespace)\n * @param options The options parameters.\n */\n getProperties(\n name: string,\n options?: ContainerRegistryGetPropertiesOptionalParams\n ): Promise<ContainerRegistryGetPropertiesResponse>;\n /**\n * Delete the repository identified by `name`\n * @param name Name of the image (including the namespace)\n * @param options The options parameters.\n */\n deleteRepository(\n name: string,\n options?: ContainerRegistryDeleteRepositoryOptionalParams\n ): Promise<void>;\n /**\n * Update the attribute identified by `name` where `reference` is the name of the repository.\n * @param name Name of the image (including the namespace)\n * @param options The options parameters.\n */\n updateProperties(\n name: string,\n options?: ContainerRegistryUpdatePropertiesOptionalParams\n ): Promise<ContainerRegistryUpdatePropertiesResponse>;\n /**\n * List tags of a repository\n * @param name Name of the image (including the namespace)\n * @param options The options parameters.\n */\n getTags(\n name: string,\n options?: ContainerRegistryGetTagsOptionalParams\n ): Promise<ContainerRegistryGetTagsResponse>;\n /**\n * Get tag attributes by tag\n * @param name Name of the image (including the namespace)\n * @param reference Tag name\n * @param options The options parameters.\n */\n getTagProperties(\n name: string,\n reference: string,\n options?: ContainerRegistryGetTagPropertiesOptionalParams\n ): Promise<ContainerRegistryGetTagPropertiesResponse>;\n /**\n * Update tag attributes\n * @param name Name of the image (including the namespace)\n * @param reference Tag name\n * @param options The options parameters.\n */\n updateTagAttributes(\n name: string,\n reference: string,\n options?: ContainerRegistryUpdateTagAttributesOptionalParams\n ): Promise<ContainerRegistryUpdateTagAttributesResponse>;\n /**\n * Delete tag\n * @param name Name of the image (including the namespace)\n * @param reference Tag name\n * @param options The options parameters.\n */\n deleteTag(\n name: string,\n reference: string,\n options?: ContainerRegistryDeleteTagOptionalParams\n ): Promise<void>;\n /**\n * List manifests of a repository\n * @param name Name of the image (including the namespace)\n * @param options The options parameters.\n */\n getManifests(\n name: string,\n options?: ContainerRegistryGetManifestsOptionalParams\n ): Promise<ContainerRegistryGetManifestsResponse>;\n /**\n * Get manifest attributes\n * @param name Name of the image (including the namespace)\n * @param digest Digest of a BLOB\n * @param options The options parameters.\n */\n getManifestProperties(\n name: string,\n digest: string,\n options?: ContainerRegistryGetManifestPropertiesOptionalParams\n ): Promise<ContainerRegistryGetManifestPropertiesResponse>;\n /**\n * Update properties of a manifest\n * @param name Name of the image (including the namespace)\n * @param digest Digest of a BLOB\n * @param options The options parameters.\n */\n updateManifestProperties(\n name: string,\n digest: string,\n options?: ContainerRegistryUpdateManifestPropertiesOptionalParams\n ): Promise<ContainerRegistryUpdateManifestPropertiesResponse>;\n /**\n * GetRepositoriesNext\n * @param nextLink The nextLink from the previous successful call to the GetRepositories method.\n * @param options The options parameters.\n */\n getRepositoriesNext(\n nextLink: string,\n options?: ContainerRegistryGetRepositoriesNextOptionalParams\n ): Promise<ContainerRegistryGetRepositoriesNextResponse>;\n /**\n * GetTagsNext\n * @param name Name of the image (including the namespace)\n * @param nextLink The nextLink from the previous successful call to the GetTags method.\n * @param options The options parameters.\n */\n getTagsNext(\n name: string,\n nextLink: string,\n options?: ContainerRegistryGetTagsNextOptionalParams\n ): Promise<ContainerRegistryGetTagsNextResponse>;\n /**\n * GetManifestsNext\n * @param name Name of the image (including the namespace)\n * @param nextLink The nextLink from the previous successful call to the GetManifests method.\n * @param options The options parameters.\n */\n getManifestsNext(\n name: string,\n nextLink: string,\n options?: ContainerRegistryGetManifestsNextOptionalParams\n ): Promise<ContainerRegistryGetManifestsNextResponse>;\n}\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=containerRegistryBlob.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"containerRegistryBlob.js","sourceRoot":"","sources":["../../../../src/generated/operationsInterfaces/containerRegistryBlob.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n ContainerRegistryBlobGetBlobOptionalParams,\n ContainerRegistryBlobGetBlobResponse,\n ContainerRegistryBlobCheckBlobExistsOptionalParams,\n ContainerRegistryBlobCheckBlobExistsResponse,\n ContainerRegistryBlobDeleteBlobOptionalParams,\n ContainerRegistryBlobDeleteBlobResponse,\n ContainerRegistryBlobMountBlobOptionalParams,\n ContainerRegistryBlobMountBlobResponse,\n ContainerRegistryBlobGetUploadStatusOptionalParams,\n ContainerRegistryBlobGetUploadStatusResponse,\n ContainerRegistryBlobUploadChunkOptionalParams,\n ContainerRegistryBlobUploadChunkResponse,\n ContainerRegistryBlobCompleteUploadOptionalParams,\n ContainerRegistryBlobCompleteUploadResponse,\n ContainerRegistryBlobCancelUploadOptionalParams,\n ContainerRegistryBlobStartUploadOptionalParams,\n ContainerRegistryBlobStartUploadResponse,\n ContainerRegistryBlobGetChunkOptionalParams,\n ContainerRegistryBlobGetChunkResponse,\n ContainerRegistryBlobCheckChunkExistsOptionalParams,\n ContainerRegistryBlobCheckChunkExistsResponse\n} from \"../models\";\n\n/** Interface representing a ContainerRegistryBlob. */\nexport interface ContainerRegistryBlob {\n /**\n * Retrieve the blob from the registry identified by digest.\n * @param name Name of the image (including the namespace)\n * @param digest Digest of a BLOB\n * @param options The options parameters.\n */\n getBlob(\n name: string,\n digest: string,\n options?: ContainerRegistryBlobGetBlobOptionalParams\n ): Promise<ContainerRegistryBlobGetBlobResponse>;\n /**\n * Same as GET, except only the headers are returned.\n * @param name Name of the image (including the namespace)\n * @param digest Digest of a BLOB\n * @param options The options parameters.\n */\n checkBlobExists(\n name: string,\n digest: string,\n options?: ContainerRegistryBlobCheckBlobExistsOptionalParams\n ): Promise<ContainerRegistryBlobCheckBlobExistsResponse>;\n /**\n * Removes an already uploaded blob.\n * @param name Name of the image (including the namespace)\n * @param digest Digest of a BLOB\n * @param options The options parameters.\n */\n deleteBlob(\n name: string,\n digest: string,\n options?: ContainerRegistryBlobDeleteBlobOptionalParams\n ): Promise<ContainerRegistryBlobDeleteBlobResponse>;\n /**\n * Mount a blob identified by the `mount` parameter from another repository.\n * @param name Name of the image (including the namespace)\n * @param mount Digest of blob to mount from the source repository.\n * @param fromParam Name of the source repository.\n * @param options The options parameters.\n */\n mountBlob(\n name: string,\n mount: string,\n fromParam: string,\n options?: ContainerRegistryBlobMountBlobOptionalParams\n ): Promise<ContainerRegistryBlobMountBlobResponse>;\n /**\n * Retrieve status of upload identified by uuid. The primary purpose of this endpoint is to resolve the\n * current status of a resumable upload.\n * @param location Link acquired from upload start or previous chunk. Note, do not include initial /\n * (must do substring(1) )\n * @param options The options parameters.\n */\n getUploadStatus(\n location: string,\n options?: ContainerRegistryBlobGetUploadStatusOptionalParams\n ): Promise<ContainerRegistryBlobGetUploadStatusResponse>;\n /**\n * Upload a stream of data without completing the upload.\n * @param location Link acquired from upload start or previous chunk. Note, do not include initial /\n * (must do substring(1) )\n * @param value Raw data of blob\n * @param options The options parameters.\n */\n uploadChunk(\n location: string,\n value: coreRestPipeline.RequestBodyType,\n options?: ContainerRegistryBlobUploadChunkOptionalParams\n ): Promise<ContainerRegistryBlobUploadChunkResponse>;\n /**\n * Complete the upload, providing all the data in the body, if necessary. A request without a body will\n * just complete the upload with previously uploaded content.\n * @param digest Digest of a BLOB\n * @param location Link acquired from upload start or previous chunk. Note, do not include initial /\n * (must do substring(1) )\n * @param options The options parameters.\n */\n completeUpload(\n digest: string,\n location: string,\n options?: ContainerRegistryBlobCompleteUploadOptionalParams\n ): Promise<ContainerRegistryBlobCompleteUploadResponse>;\n /**\n * Cancel outstanding upload processes, releasing associated resources. If this is not called, the\n * unfinished uploads will eventually timeout.\n * @param location Link acquired from upload start or previous chunk. Note, do not include initial /\n * (must do substring(1) )\n * @param options The options parameters.\n */\n cancelUpload(\n location: string,\n options?: ContainerRegistryBlobCancelUploadOptionalParams\n ): Promise<void>;\n /**\n * Initiate a resumable blob upload with an empty request body.\n * @param name Name of the image (including the namespace)\n * @param options The options parameters.\n */\n startUpload(\n name: string,\n options?: ContainerRegistryBlobStartUploadOptionalParams\n ): Promise<ContainerRegistryBlobStartUploadResponse>;\n /**\n * Retrieve the blob from the registry identified by `digest`. This endpoint may also support RFC7233\n * compliant range requests. Support can be detected by issuing a HEAD request. If the header\n * `Accept-Range: bytes` is returned, range requests can be used to fetch partial content.\n * @param name Name of the image (including the namespace)\n * @param digest Digest of a BLOB\n * @param range Format : bytes=<start>-<end>, HTTP Range header specifying blob chunk.\n * @param options The options parameters.\n */\n getChunk(\n name: string,\n digest: string,\n range: string,\n options?: ContainerRegistryBlobGetChunkOptionalParams\n ): Promise<ContainerRegistryBlobGetChunkResponse>;\n /**\n * Same as GET, except only the headers are returned.\n * @param name Name of the image (including the namespace)\n * @param digest Digest of a BLOB\n * @param range Format : bytes=<start>-<end>, HTTP Range header specifying blob chunk.\n * @param options The options parameters.\n */\n checkChunkExists(\n name: string,\n digest: string,\n range: string,\n options?: ContainerRegistryBlobCheckChunkExistsOptionalParams\n ): Promise<ContainerRegistryBlobCheckChunkExistsResponse>;\n}\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
export * from "./containerRegistry";
|
|
9
|
+
export * from "./containerRegistryBlob";
|
|
10
|
+
export * from "./authentication";
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/generated/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./containerRegistry\";\nexport * from \"./containerRegistryBlob\";\nexport * from \"./authentication\";\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,cAAc,2BAA2B,CAAC;AAkB1C,cAAc,UAAU,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nexport * from \"./containerRegistryClient\";\nexport {\n ContainerRepository,\n DeleteRepositoryOptions,\n GetRepositoryPropertiesOptions,\n UpdateRepositoryPropertiesOptions,\n ListManifestPropertiesOptions
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,cAAc,2BAA2B,CAAC;AAkB1C,cAAc,UAAU,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nexport * from \"./containerRegistryClient\";\nexport {\n ContainerRepository,\n DeleteRepositoryOptions,\n GetRepositoryPropertiesOptions,\n UpdateRepositoryPropertiesOptions,\n ListManifestPropertiesOptions,\n} from \"./containerRepository\";\nexport {\n RegistryArtifact,\n DeleteArtifactOptions,\n DeleteTagOptions,\n GetManifestPropertiesOptions,\n GetTagPropertiesOptions,\n UpdateManifestPropertiesOptions,\n UpdateTagPropertiesOptions,\n ListTagPropertiesOptions,\n} from \"./registryArtifact\";\nexport * from \"./models\";\n"]}
|