/
index.ts
1219 lines (1096 loc) · 39 KB
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import * as coreClient from "@azure/core-client";
import * as coreRestPipeline from "@azure/core-rest-pipeline";
/** Acr error response describing why the operation failed */
export interface AcrErrors {
/** Array of detailed error */
errors?: AcrErrorInfo[];
}
/** Error information */
export interface AcrErrorInfo {
/** Error code */
code?: string;
/** Error message */
message?: string;
/** Error details */
detail?: Record<string, unknown>;
}
/** List of repositories */
export interface Repositories {
/** Repository names */
repositories?: string[];
link?: string;
}
/** Properties of this repository. */
export interface ContainerRepositoryProperties {
/**
* Registry login server name. This is likely to be similar to {registry-name}.azurecr.io.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly registryLoginServer: string;
/**
* Image name
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly name: string;
/**
* Image created time
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly createdOn: Date;
/**
* Image last update time
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly lastUpdatedOn: Date;
/**
* Number of the manifests
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly manifestCount: number;
/**
* Number of the tags
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly tagCount: number;
/** Delete enabled */
canDelete?: boolean;
/** Write enabled */
canWrite?: boolean;
/** List enabled */
canList?: boolean;
/** Read enabled */
canRead?: boolean;
}
/** Changeable attributes for Repository */
export interface RepositoryWriteableProperties {
/** Delete enabled */
canDelete?: boolean;
/** Write enabled */
canWrite?: boolean;
/** List enabled */
canList?: boolean;
/** Read enabled */
canRead?: boolean;
}
/** List of tag details */
export interface TagList {
/** Registry login server name. This is likely to be similar to {registry-name}.azurecr.io. */
registryLoginServer: string;
/** Image name */
repository: string;
/** List of tag attribute details */
tagAttributeBases: TagAttributesBase[];
link?: string;
}
/** Tag attribute details */
export interface TagAttributesBase {
/**
* Tag name
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly name: string;
/**
* Tag digest
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly digest: string;
/**
* Tag created time
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly createdOn: Date;
/**
* Tag last update time
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly lastUpdatedOn: Date;
/** Delete enabled */
canDelete?: boolean;
/** Write enabled */
canWrite?: boolean;
/** List enabled */
canList?: boolean;
/** Read enabled */
canRead?: boolean;
}
/** Changeable attributes */
export interface TagWriteableProperties {
/** Delete enabled */
canDelete?: boolean;
/** Write enabled */
canWrite?: boolean;
/** List enabled */
canList?: boolean;
/** Read enabled */
canRead?: boolean;
}
/** Tag attributes */
export interface ArtifactTagProperties {
/**
* Registry login server name. This is likely to be similar to {registry-name}.azurecr.io.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly registryLoginServer: string;
/**
* Image name
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly repositoryName: string;
/**
* Tag name
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly name: string;
/**
* Tag digest
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly digest: string;
/**
* Tag created time
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly createdOn: Date;
/**
* Tag last update time
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly lastUpdatedOn: Date;
/** Delete enabled */
canDelete?: boolean;
/** Write enabled */
canWrite?: boolean;
/** List enabled */
canList?: boolean;
/** Read enabled */
canRead?: boolean;
}
/** Manifest attributes */
export interface AcrManifests {
/** Registry login server name. This is likely to be similar to {registry-name}.azurecr.io. */
registryLoginServer?: string;
/** Image name */
repository?: string;
/** List of manifests */
manifests?: ManifestAttributesBase[];
link?: string;
}
/** Manifest details */
export interface ManifestAttributesBase {
/**
* Manifest
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly digest: string;
/**
* Image size
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly size?: number;
/**
* Created time
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly createdOn: Date;
/**
* Last update time
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly lastUpdatedOn: Date;
/**
* CPU architecture
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly architecture?: ArtifactArchitecture;
/**
* Operating system
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly operatingSystem?: ArtifactOperatingSystem;
/**
* List of artifacts that are referenced by this manifest list, with information about the platform each supports. This list will be empty if this is a leaf manifest and not a manifest list.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly relatedArtifacts?: ArtifactManifestPlatform[];
/**
* List of tags
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly tags?: string[];
/** Delete enabled */
canDelete?: boolean;
/** Write enabled */
canWrite?: boolean;
/** List enabled */
canList?: boolean;
/** Read enabled */
canRead?: boolean;
}
/** The artifact's platform, consisting of operating system and architecture. */
export interface ArtifactManifestPlatform {
/**
* Manifest digest
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly digest: string;
/**
* CPU architecture
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly architecture?: ArtifactArchitecture;
/**
* Operating system
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly operatingSystem?: ArtifactOperatingSystem;
}
/** Changeable attributes */
export interface ManifestWriteableProperties {
/** Delete enabled */
canDelete?: boolean;
/** Write enabled */
canWrite?: boolean;
/** List enabled */
canList?: boolean;
/** Read enabled */
canRead?: boolean;
}
/** Manifest attributes details */
export interface ArtifactManifestProperties {
/**
* Registry login server name. This is likely to be similar to {registry-name}.azurecr.io.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly registryLoginServer?: string;
/**
* Repository name
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly repositoryName?: string;
/**
* Manifest
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly digest: string;
/**
* Image size
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly size?: number;
/**
* Created time
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly createdOn: Date;
/**
* Last update time
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly lastUpdatedOn: Date;
/**
* CPU architecture
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly architecture?: ArtifactArchitecture;
/**
* Operating system
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly operatingSystem?: ArtifactOperatingSystem;
/**
* List of artifacts that are referenced by this manifest list, with information about the platform each supports. This list will be empty if this is a leaf manifest and not a manifest list.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly relatedArtifacts?: ArtifactManifestPlatform[];
/**
* List of tags
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly tags?: string[];
/** Delete enabled */
canDelete?: boolean;
/** Write enabled */
canWrite?: boolean;
/** List enabled */
canList?: boolean;
/** Read enabled */
canRead?: boolean;
}
export interface AcrRefreshToken {
/** The refresh token to be used for generating access tokens */
refreshToken?: string;
}
export interface AcrAccessToken {
/** The access token for performing authenticated requests */
accessToken?: string;
}
/** Result of the request to list tags of the image */
export interface RepositoryTags {
/** Name of the image */
name?: string;
/** List of tags */
tags?: string[];
}
/** Signature of a signed manifest */
export interface ImageSignature {
/** A JSON web signature */
header?: Jwk;
/** A signature for the image manifest, signed by a libtrust private key */
signature?: string;
/** The signed protected header */
protected?: string;
}
/** A JSON web signature */
export interface Jwk {
/** JSON web key parameter */
jwk?: JWKHeader;
/** The algorithm used to sign or encrypt the JWT */
alg?: string;
}
/** JSON web key parameter */
export interface JWKHeader {
/** crv value */
crv?: string;
/** kid value */
kid?: string;
/** kty value */
kty?: string;
/** x value */
x?: string;
/** y value */
y?: string;
}
/** A list of unstructured historical data for v1 compatibility */
export interface History {
/** The raw v1 compatibility information */
v1Compatibility?: string;
}
/** Deleted repository */
export interface DeleteRepositoryResult {
/**
* SHA of the deleted image
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly deletedManifests?: string[];
/**
* Tag of the deleted image
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly deletedTags?: string[];
}
/** Image layer information */
export interface FsLayer {
/** SHA of an image layer */
blobSum?: string;
}
/** Docker V2 image layer descriptor including config and layers */
export interface Descriptor {
/** Layer media type */
mediaType?: string;
/** Layer size */
size?: number;
/** Layer digest */
digest?: string;
/** Specifies a list of URIs from which this object may be downloaded. */
urls?: string[];
/** Additional information provided through arbitrary metadata. */
annotations?: Annotations;
}
/** Additional information provided through arbitrary metadata. */
export interface Annotations {
/** Describes unknown properties. The value of an unknown property can be of "any" type. */
[property: string]: any;
/** Date and time on which the image was built (string, date-time as defined by https://tools.ietf.org/html/rfc3339#section-5.6) */
createdOn?: Date;
/** Contact details of the people or organization responsible for the image. */
authors?: string;
/** URL to find more information on the image. */
url?: string;
/** URL to get documentation on the image. */
documentation?: string;
/** URL to get source code for building the image. */
source?: string;
/** Version of the packaged software. The version MAY match a label or tag in the source code repository, may also be Semantic versioning-compatible */
version?: string;
/** Source control revision identifier for the packaged software. */
revision?: string;
/** Name of the distributing entity, organization or individual. */
vendor?: string;
/** License(s) under which contained software is distributed as an SPDX License Expression. */
licenses?: string;
/** Name of the reference for a target. */
name?: string;
/** Human-readable title of the image */
title?: string;
/** Human-readable description of the software packaged in the image */
description?: string;
}
/** Tag */
export interface TagAttributesTag {
/** SignatureRecord value */
signatureRecord?: string;
}
/** List of manifest attributes */
export interface ManifestAttributesManifest {
/** List of manifest attributes details */
references?: ArtifactManifestPlatform[];
}
/** Returns the requested manifest file */
export interface Manifest {
/** Schema version */
schemaVersion?: number;
}
export interface ManifestListAttributes {
/** The MIME type of the referenced object. This will generally be application/vnd.docker.image.manifest.v2+json, but it could also be application/vnd.docker.image.manifest.v1+json */
mediaType?: string;
/** The size in bytes of the object */
size?: number;
/** The digest of the content, as defined by the Registry V2 HTTP API Specification */
digest?: string;
/** The platform object describes the platform which the image in the manifest runs on. A full list of valid operating system and architecture values are listed in the Go language documentation for $GOOS and $GOARCH */
platform?: Platform;
}
/** The platform object describes the platform which the image in the manifest runs on. A full list of valid operating system and architecture values are listed in the Go language documentation for $GOOS and $GOARCH */
export interface Platform {
/** Specifies the CPU architecture, for example amd64 or ppc64le. */
architecture?: string;
/** The os field specifies the operating system, for example linux or windows. */
os?: string;
/** The optional os.version field specifies the operating system version, for example 10.0.10586. */
osVersion?: string;
/** The optional os.features field specifies an array of strings, each listing a required OS feature (for example on Windows win32k */
osFeatures?: string[];
/** The optional variant field specifies a variant of the CPU, for example armv6l to specify a particular CPU variant of the ARM CPU. */
variant?: string;
/** The optional features field specifies an array of strings, each listing a required CPU feature (for example sse4 or aes */
features?: string[];
}
/** Returns the requested OCI Manifest file */
export interface OCIManifest {
/** V2 image config descriptor */
config?: Descriptor;
/** List of V2 image layer information */
layers?: Descriptor[];
/** Additional information provided through arbitrary metadata. */
annotations?: Annotations;
/** Schema version */
schemaVersion?: number;
}
export interface Paths108HwamOauth2ExchangePostRequestbodyContentApplicationXWwwFormUrlencodedSchema {
/** Can take a value of access_token_refresh_token, or access_token, or refresh_token */
grantType: PostContentSchemaGrantType;
/** Indicates the name of your Azure container registry. */
service: string;
/** AAD tenant associated to the AAD credentials. */
tenant?: string;
/** AAD refresh token, mandatory when grant_type is access_token_refresh_token or refresh_token */
refreshToken?: string;
/** AAD access token, mandatory when grant_type is access_token_refresh_token or access_token. */
aadAccessToken?: string;
}
export interface PathsV3R3RxOauth2TokenPostRequestbodyContentApplicationXWwwFormUrlencodedSchema {
/** Indicates the name of your Azure container registry. */
service: string;
/** Which is expected to be a valid scope, and can be specified more than once for multiple scope requests. You obtained this from the Www-Authenticate response header from the challenge. */
scope: string;
/** Must be a valid ACR refresh token */
acrRefreshToken: string;
/** Grant type is expected to be refresh_token */
grantType: TokenGrantType;
}
/** Returns the requested manifest file */
export type ManifestWrapper = Manifest & {
/** Media type for this Manifest */
mediaType?: string;
/** (ManifestList, OCIIndex) List of V2 image layer information */
manifests?: ManifestListAttributes[];
/** (V2, OCI) Image config descriptor */
config?: Descriptor;
/** (V2, OCI) List of V2 image layer information */
layers?: Descriptor[];
/** (OCI, OCIIndex) Additional metadata */
annotations?: Annotations;
/** (V1) CPU architecture */
architecture?: string;
/** (V1) Image name */
name?: string;
/** (V1) Image tag */
tag?: string;
/** (V1) List of layer information */
fsLayers?: FsLayer[];
/** (V1) Image history */
history?: History[];
/** (V1) Image signature */
signatures?: ImageSignature[];
};
/** Returns the requested Docker multi-arch-manifest file */
export type ManifestList = Manifest & {
/** Media type for this Manifest */
mediaType?: string;
/** List of V2 image layer information */
manifests?: ManifestListAttributes[];
};
/** Returns the requested Docker V2 Manifest file */
export type V2Manifest = Manifest & {
/** Media type for this Manifest */
mediaType?: string;
/** V2 image config descriptor */
config?: Descriptor;
/** List of V2 image layer information */
layers?: Descriptor[];
};
/** Returns the requested OCI index file */
export type OCIIndex = Manifest & {
/** List of OCI image layer information */
manifests?: ManifestListAttributes[];
/** Additional information provided through arbitrary metadata. */
annotations?: Annotations;
};
/** Returns the requested V1 manifest file */
export type V1Manifest = Manifest & {
/** CPU architecture */
architecture?: string;
/** Image name */
name?: string;
/** Image tag */
tag?: string;
/** List of layer information */
fsLayers?: FsLayer[];
/** Image history */
history?: History[];
/** Image signature */
signatures?: ImageSignature[];
};
/** Defines headers for ContainerRegistry_getManifest operation. */
export interface ContainerRegistryGetManifestHeaders {
/** Identifies the docker upload uuid for the current request. */
dockerContentDigest?: string;
}
/** Defines headers for ContainerRegistry_createManifest operation. */
export interface ContainerRegistryCreateManifestHeaders {
/** Identifies the docker upload uuid for the current request. */
dockerContentDigest?: string;
/** The canonical location url of the uploaded manifest. */
location?: string;
/** The length of the requested blob content. */
contentLength?: number;
}
/** Defines headers for ContainerRegistry_getRepositories operation. */
export interface ContainerRegistryGetRepositoriesHeaders {
/** next paginated result */
link?: string;
}
/** Defines headers for ContainerRegistry_getTags operation. */
export interface ContainerRegistryGetTagsHeaders {
/** next paginated result */
link?: string;
}
/** Defines headers for ContainerRegistry_getManifests operation. */
export interface ContainerRegistryGetManifestsHeaders {
/** next paginated result */
link?: string;
}
/** Defines headers for ContainerRegistry_getRepositoriesNext operation. */
export interface ContainerRegistryGetRepositoriesNextHeaders {
/** next paginated result */
link?: string;
}
/** Defines headers for ContainerRegistry_getTagsNext operation. */
export interface ContainerRegistryGetTagsNextHeaders {
/** next paginated result */
link?: string;
}
/** Defines headers for ContainerRegistry_getManifestsNext operation. */
export interface ContainerRegistryGetManifestsNextHeaders {
/** next paginated result */
link?: string;
}
/** Defines headers for ContainerRegistryBlob_getBlob operation. */
export interface ContainerRegistryBlobGetBlobHeaders {
/** The length of the requested blob content. */
contentLength?: number;
/** Digest of the targeted content for the request. */
dockerContentDigest?: string;
}
/** Defines headers for ContainerRegistryBlob_checkBlobExists operation. */
export interface ContainerRegistryBlobCheckBlobExistsHeaders {
/** The length of the requested blob content. */
contentLength?: number;
/** Digest of the targeted content for the request. */
dockerContentDigest?: string;
}
/** Defines headers for ContainerRegistryBlob_deleteBlob operation. */
export interface ContainerRegistryBlobDeleteBlobHeaders {
/** Digest of the targeted content for the request. */
dockerContentDigest?: string;
}
/** Defines headers for ContainerRegistryBlob_mountBlob operation. */
export interface ContainerRegistryBlobMountBlobHeaders {
/** Provided location for blob */
location?: string;
/** Identifies the docker upload uuid for the current request. */
dockerUploadUuid?: string;
/** Digest of the targeted content for the request. */
dockerContentDigest?: string;
}
/** Defines headers for ContainerRegistryBlob_getUploadStatus operation. */
export interface ContainerRegistryBlobGetUploadStatusHeaders {
/** Range indicating the current progress of the upload. */
range?: string;
/** Identifies the docker upload uuid for the current request. */
dockerUploadUuid?: string;
}
/** Defines headers for ContainerRegistryBlob_uploadChunk operation. */
export interface ContainerRegistryBlobUploadChunkHeaders {
/** Provided location for blob */
location?: string;
/** Range indicating the current progress of the upload. */
range?: string;
/** Identifies the docker upload uuid for the current request. */
dockerUploadUuid?: string;
}
/** Defines headers for ContainerRegistryBlob_completeUpload operation. */
export interface ContainerRegistryBlobCompleteUploadHeaders {
/** Provided location for blob */
location?: string;
/** Range indicating the current progress of the upload. */
range?: string;
/** Digest of the targeted content for the request. */
dockerContentDigest?: string;
}
/** Defines headers for ContainerRegistryBlob_startUpload operation. */
export interface ContainerRegistryBlobStartUploadHeaders {
/** Provided location for blob */
location?: string;
/** Range indicating the current progress of the upload. */
range?: string;
/** Identifies the docker upload uuid for the current request. */
dockerUploadUuid?: string;
}
/** Defines headers for ContainerRegistryBlob_getChunk operation. */
export interface ContainerRegistryBlobGetChunkHeaders {
/** The length of the requested blob content. */
contentLength?: number;
/** Content range of blob chunk. */
contentRange?: string;
}
/** Defines headers for ContainerRegistryBlob_checkChunkExists operation. */
export interface ContainerRegistryBlobCheckChunkExistsHeaders {
/** The length of the requested blob content. */
contentLength?: number;
/** Content range of blob chunk. */
contentRange?: string;
}
/** Known values of {@link ApiVersion20210701} that the service accepts. */
export enum KnownApiVersion20210701 {
/** Api Version '2021-07-01' */
TwoThousandTwentyOne0701 = "2021-07-01"
}
/**
* Defines values for ApiVersion20210701. \
* {@link KnownApiVersion20210701} can be used interchangeably with ApiVersion20210701,
* this enum contains the known values that the service supports.
* ### Known values supported by the service
* **2021-07-01**: Api Version '2021-07-01'
*/
export type ApiVersion20210701 = string;
/** Known values of {@link ArtifactArchitecture} that the service accepts. */
export enum KnownArtifactArchitecture {
/** i386 */
I386 = "386",
/** AMD64 */
Amd64 = "amd64",
/** ARM */
Arm = "arm",
/** ARM64 */
Arm64 = "arm64",
/** MIPS */
Mips = "mips",
/** MIPSLE */
MipsLe = "mipsle",
/** MIPS64 */
Mips64 = "mips64",
/** MIPS64LE */
Mips64Le = "mips64le",
/** PPC64 */
Ppc64 = "ppc64",
/** PPC64LE */
Ppc64Le = "ppc64le",
/** RISCv64 */
RiscV64 = "riscv64",
/** s390x */
S390X = "s390x",
/** Wasm */
Wasm = "wasm"
}
/**
* Defines values for ArtifactArchitecture. \
* {@link KnownArtifactArchitecture} can be used interchangeably with ArtifactArchitecture,
* this enum contains the known values that the service supports.
* ### Known values supported by the service
* **386**: i386 \
* **amd64**: AMD64 \
* **arm**: ARM \
* **arm64**: ARM64 \
* **mips**: MIPS \
* **mipsle**: MIPSLE \
* **mips64**: MIPS64 \
* **mips64le**: MIPS64LE \
* **ppc64**: PPC64 \
* **ppc64le**: PPC64LE \
* **riscv64**: RISCv64 \
* **s390x**: s390x \
* **wasm**: Wasm
*/
export type ArtifactArchitecture = string;
/** Known values of {@link ArtifactOperatingSystem} that the service accepts. */
export enum KnownArtifactOperatingSystem {
Aix = "aix",
Android = "android",
Darwin = "darwin",
Dragonfly = "dragonfly",
FreeBsd = "freebsd",
Illumos = "illumos",
IOS = "ios",
JS = "js",
Linux = "linux",
NetBsd = "netbsd",
OpenBsd = "openbsd",
Plan9 = "plan9",
Solaris = "solaris",
Windows = "windows"
}
/**
* Defines values for ArtifactOperatingSystem. \
* {@link KnownArtifactOperatingSystem} can be used interchangeably with ArtifactOperatingSystem,
* this enum contains the known values that the service supports.
* ### Known values supported by the service
* **aix** \
* **android** \
* **darwin** \
* **dragonfly** \
* **freebsd** \
* **illumos** \
* **ios** \
* **js** \
* **linux** \
* **netbsd** \
* **openbsd** \
* **plan9** \
* **solaris** \
* **windows**
*/
export type ArtifactOperatingSystem = string;
/** Known values of {@link PostContentSchemaGrantType} that the service accepts. */
export enum KnownPostContentSchemaGrantType {
AccessTokenRefreshToken = "access_token_refresh_token",
AccessToken = "access_token",
RefreshToken = "refresh_token"
}
/**
* Defines values for PostContentSchemaGrantType. \
* {@link KnownPostContentSchemaGrantType} can be used interchangeably with PostContentSchemaGrantType,
* this enum contains the known values that the service supports.
* ### Known values supported by the service
* **access_token_refresh_token** \
* **access_token** \
* **refresh_token**
*/
export type PostContentSchemaGrantType = string;
/** Defines values for TokenGrantType. */
export type TokenGrantType = "refresh_token" | "password";
/** Defines values for ArtifactTagOrderBy. */
export type ArtifactTagOrderBy = "none" | "timedesc" | "timeasc";
/** Defines values for ArtifactManifestOrderBy. */
export type ArtifactManifestOrderBy = "none" | "timedesc" | "timeasc";
/** Optional parameters. */
export interface ContainerRegistryCheckDockerV2SupportOptionalParams
extends coreClient.OperationOptions {}
/** Optional parameters. */
export interface ContainerRegistryGetManifestOptionalParams
extends coreClient.OperationOptions {
/** Accept header string delimited by comma. For example, application/vnd.docker.distribution.manifest.v2+json */
accept?: string;
}
/** Contains response data for the getManifest operation. */
export type ContainerRegistryGetManifestResponse = ContainerRegistryGetManifestHeaders & {
/**
* BROWSER ONLY
*
* The response body as a browser Blob.
* Always `undefined` in node.js.
*/
blobBody?: Promise<Blob>;
/**
* NODEJS ONLY
*
* The response body as a node.js Readable stream.
* Always `undefined` in the browser.
*/
readableStreamBody?: NodeJS.ReadableStream;
};
/** Optional parameters. */
export interface ContainerRegistryCreateManifestOptionalParams
extends coreClient.OperationOptions {
/** The manifest's Content-Type. */
contentType?: string;
}
/** Contains response data for the createManifest operation. */
export type ContainerRegistryCreateManifestResponse = ContainerRegistryCreateManifestHeaders;
/** Optional parameters. */
export interface ContainerRegistryDeleteManifestOptionalParams
extends coreClient.OperationOptions {}
/** Optional parameters. */
export interface ContainerRegistryGetRepositoriesOptionalParams
extends coreClient.OperationOptions {
/** Query parameter for the last item in previous query. Result set will include values lexically after last. */
last?: string;
/** query parameter for max number of items */
n?: number;
}
/** Contains response data for the getRepositories operation. */
export type ContainerRegistryGetRepositoriesResponse = ContainerRegistryGetRepositoriesHeaders &
Repositories;
/** Optional parameters. */
export interface ContainerRegistryGetPropertiesOptionalParams
extends coreClient.OperationOptions {}
/** Contains response data for the getProperties operation. */
export type ContainerRegistryGetPropertiesResponse = ContainerRepositoryProperties;
/** Optional parameters. */
export interface ContainerRegistryDeleteRepositoryOptionalParams
extends coreClient.OperationOptions {}
/** Optional parameters. */
export interface ContainerRegistryUpdatePropertiesOptionalParams
extends coreClient.OperationOptions {
/** Repository attribute value */
value?: RepositoryWriteableProperties;
}
/** Contains response data for the updateProperties operation. */
export type ContainerRegistryUpdatePropertiesResponse = ContainerRepositoryProperties;
/** Optional parameters. */
export interface ContainerRegistryGetTagsOptionalParams
extends coreClient.OperationOptions {
/** Query parameter for the last item in previous query. Result set will include values lexically after last. */
last?: string;
/** query parameter for max number of items */
n?: number;
/** orderby query parameter */
orderby?: string;
/** filter by digest */
digest?: string;
}
/** Contains response data for the getTags operation. */
export type ContainerRegistryGetTagsResponse = ContainerRegistryGetTagsHeaders &
TagList;
/** Optional parameters. */
export interface ContainerRegistryGetTagPropertiesOptionalParams
extends coreClient.OperationOptions {}
/** Contains response data for the getTagProperties operation. */
export type ContainerRegistryGetTagPropertiesResponse = ArtifactTagProperties;
/** Optional parameters. */
export interface ContainerRegistryUpdateTagAttributesOptionalParams
extends coreClient.OperationOptions {
/** Tag attribute value */
value?: TagWriteableProperties;
}
/** Contains response data for the updateTagAttributes operation. */
export type ContainerRegistryUpdateTagAttributesResponse = ArtifactTagProperties;
/** Optional parameters. */
export interface ContainerRegistryDeleteTagOptionalParams
extends coreClient.OperationOptions {}
/** Optional parameters. */
export interface ContainerRegistryGetManifestsOptionalParams
extends coreClient.OperationOptions {
/** Query parameter for the last item in previous query. Result set will include values lexically after last. */
last?: string;
/** query parameter for max number of items */
n?: number;