/
containerRegistryBlob.ts
166 lines (164 loc) · 6.53 KB
/
containerRegistryBlob.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
/*
* 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 coreRestPipeline from "@azure/core-rest-pipeline";
import {
ContainerRegistryBlobGetBlobOptionalParams,
ContainerRegistryBlobGetBlobResponse,
ContainerRegistryBlobCheckBlobExistsOptionalParams,
ContainerRegistryBlobCheckBlobExistsResponse,
ContainerRegistryBlobDeleteBlobOptionalParams,
ContainerRegistryBlobDeleteBlobResponse,
ContainerRegistryBlobMountBlobOptionalParams,
ContainerRegistryBlobMountBlobResponse,
ContainerRegistryBlobGetUploadStatusOptionalParams,
ContainerRegistryBlobGetUploadStatusResponse,
ContainerRegistryBlobUploadChunkOptionalParams,
ContainerRegistryBlobUploadChunkResponse,
ContainerRegistryBlobCompleteUploadOptionalParams,
ContainerRegistryBlobCompleteUploadResponse,
ContainerRegistryBlobCancelUploadOptionalParams,
ContainerRegistryBlobStartUploadOptionalParams,
ContainerRegistryBlobStartUploadResponse,
ContainerRegistryBlobGetChunkOptionalParams,
ContainerRegistryBlobGetChunkResponse,
ContainerRegistryBlobCheckChunkExistsOptionalParams,
ContainerRegistryBlobCheckChunkExistsResponse
} from "../models";
/** Interface representing a ContainerRegistryBlob. */
export interface ContainerRegistryBlob {
/**
* Retrieve the blob from the registry identified by digest.
* @param name Name of the image (including the namespace)
* @param digest Digest of a BLOB
* @param options The options parameters.
*/
getBlob(
name: string,
digest: string,
options?: ContainerRegistryBlobGetBlobOptionalParams
): Promise<ContainerRegistryBlobGetBlobResponse>;
/**
* Same as GET, except only the headers are returned.
* @param name Name of the image (including the namespace)
* @param digest Digest of a BLOB
* @param options The options parameters.
*/
checkBlobExists(
name: string,
digest: string,
options?: ContainerRegistryBlobCheckBlobExistsOptionalParams
): Promise<ContainerRegistryBlobCheckBlobExistsResponse>;
/**
* Removes an already uploaded blob.
* @param name Name of the image (including the namespace)
* @param digest Digest of a BLOB
* @param options The options parameters.
*/
deleteBlob(
name: string,
digest: string,
options?: ContainerRegistryBlobDeleteBlobOptionalParams
): Promise<ContainerRegistryBlobDeleteBlobResponse>;
/**
* Mount a blob identified by the `mount` parameter from another repository.
* @param name Name of the image (including the namespace)
* @param mount Digest of blob to mount from the source repository.
* @param fromParam Name of the source repository.
* @param options The options parameters.
*/
mountBlob(
name: string,
mount: string,
fromParam: string,
options?: ContainerRegistryBlobMountBlobOptionalParams
): Promise<ContainerRegistryBlobMountBlobResponse>;
/**
* Retrieve status of upload identified by uuid. The primary purpose of this endpoint is to resolve the
* current status of a resumable upload.
* @param location Link acquired from upload start or previous chunk. Note, do not include initial /
* (must do substring(1) )
* @param options The options parameters.
*/
getUploadStatus(
location: string,
options?: ContainerRegistryBlobGetUploadStatusOptionalParams
): Promise<ContainerRegistryBlobGetUploadStatusResponse>;
/**
* Upload a stream of data without completing the upload.
* @param location Link acquired from upload start or previous chunk. Note, do not include initial /
* (must do substring(1) )
* @param value Raw data of blob
* @param options The options parameters.
*/
uploadChunk(
location: string,
value: coreRestPipeline.RequestBodyType,
options?: ContainerRegistryBlobUploadChunkOptionalParams
): Promise<ContainerRegistryBlobUploadChunkResponse>;
/**
* Complete the upload, providing all the data in the body, if necessary. A request without a body will
* just complete the upload with previously uploaded content.
* @param digest Digest of a BLOB
* @param location Link acquired from upload start or previous chunk. Note, do not include initial /
* (must do substring(1) )
* @param options The options parameters.
*/
completeUpload(
digest: string,
location: string,
options?: ContainerRegistryBlobCompleteUploadOptionalParams
): Promise<ContainerRegistryBlobCompleteUploadResponse>;
/**
* Cancel outstanding upload processes, releasing associated resources. If this is not called, the
* unfinished uploads will eventually timeout.
* @param location Link acquired from upload start or previous chunk. Note, do not include initial /
* (must do substring(1) )
* @param options The options parameters.
*/
cancelUpload(
location: string,
options?: ContainerRegistryBlobCancelUploadOptionalParams
): Promise<void>;
/**
* Initiate a resumable blob upload with an empty request body.
* @param name Name of the image (including the namespace)
* @param options The options parameters.
*/
startUpload(
name: string,
options?: ContainerRegistryBlobStartUploadOptionalParams
): Promise<ContainerRegistryBlobStartUploadResponse>;
/**
* Retrieve the blob from the registry identified by `digest`. This endpoint may also support RFC7233
* compliant range requests. Support can be detected by issuing a HEAD request. If the header
* `Accept-Range: bytes` is returned, range requests can be used to fetch partial content.
* @param name Name of the image (including the namespace)
* @param digest Digest of a BLOB
* @param range Format : bytes=<start>-<end>, HTTP Range header specifying blob chunk.
* @param options The options parameters.
*/
getChunk(
name: string,
digest: string,
range: string,
options?: ContainerRegistryBlobGetChunkOptionalParams
): Promise<ContainerRegistryBlobGetChunkResponse>;
/**
* Same as GET, except only the headers are returned.
* @param name Name of the image (including the namespace)
* @param digest Digest of a BLOB
* @param range Format : bytes=<start>-<end>, HTTP Range header specifying blob chunk.
* @param options The options parameters.
*/
checkChunkExists(
name: string,
digest: string,
range: string,
options?: ContainerRegistryBlobCheckChunkExistsOptionalParams
): Promise<ContainerRegistryBlobCheckChunkExistsResponse>;
}