@@ -49,11 +49,7 @@ const jsonContentHeaders = {
4949 'Content-Type' : 'application/json; charset=utf-8' ,
5050}
5151
52- /**
53- * Registry API.
54- *
55- * Container registry API. Registry API.
56- */
52+ /** Container Registry API. */
5753export class API extends ParentAPI {
5854 /** Lists the available regions of the API. */
5955 public static readonly LOCALITIES : Region [ ] = [ 'fr-par' , 'nl-ams' , 'pl-waw' ]
@@ -84,7 +80,11 @@ export class API extends ParentAPI {
8480 )
8581
8682 /**
87- * List all your namespaces.
83+ * List namespaces. List all namespaces in a specified region. By default, the
84+ * namespaces listed are ordered by creation date in ascending order. This can
85+ * be modified via the order_by field. You can also define additional
86+ * parameters for your query, such as the `instance_id` and `project_id`
87+ * parameters.
8888 *
8989 * @param request - The request {@link ListNamespacesRequest}
9090 * @returns A Promise of ListNamespacesResponse
@@ -93,7 +93,10 @@ export class API extends ParentAPI {
9393 enrichForPagination ( 'namespaces' , this . pageOfListNamespaces , request )
9494
9595 /**
96- * Get a namespace. Get the namespace associated with the given id.
96+ * Get a namespace. Retrieve information about a given namespace, specified by
97+ * its `namespace_id` and region. Full details about the namespace, such as
98+ * `description`, `project_id`, `status`, `endpoint`, `is_public`, `size`, and
99+ * `image_count` are returned in the response.
97100 *
98101 * @param request - The request {@link GetNamespaceRequest}
99102 * @returns A Promise of Namespace
@@ -131,7 +134,10 @@ export class API extends ParentAPI {
131134 )
132135
133136 /**
134- * Create a new namespace.
137+ * Create a namespace. Create a new Container Registry namespace. You must
138+ * specify the namespace name and region in which you want it to be created.
139+ * Optionally, you can specify the `project_id` and `is_public` in the request
140+ * payload.
135141 *
136142 * @param request - The request {@link CreateNamespaceRequest}
137143 * @returns A Promise of Namespace
@@ -153,8 +159,9 @@ export class API extends ParentAPI {
153159 )
154160
155161 /**
156- * Update an existing namespace. Update the namespace associated with the
157- * given id.
162+ * Update a namespace. Update the parameters of a given namespace, specified
163+ * by its `namespace_id` and `region`. You can update the `description` and
164+ * `is_public` parameters.
158165 *
159166 * @param request - The request {@link UpdateNamespaceRequest}
160167 * @returns A Promise of Namespace
@@ -176,8 +183,9 @@ export class API extends ParentAPI {
176183 )
177184
178185 /**
179- * Delete an existing namespace. Delete the namespace associated with the
180- * given id.
186+ * Delete a namespace. Delete a given namespace. You must specify, in the
187+ * endpoint, the `region` and `namespace_id` parameters of the namespace you
188+ * want to delete.
181189 *
182190 * @param request - The request {@link DeleteNamespaceRequest}
183191 * @returns A Promise of Namespace
@@ -219,7 +227,10 @@ export class API extends ParentAPI {
219227 )
220228
221229 /**
222- * List all your images.
230+ * List images. List all images in a specified region. By default, the images
231+ * listed are ordered by creation date in ascending order. This can be
232+ * modified via the order_by field. You can also define additional parameters
233+ * for your query, such as the `namespace_id` and `project_id` parameters.
223234 *
224235 * @param request - The request {@link ListImagesRequest}
225236 * @returns A Promise of ListImagesResponse
@@ -228,7 +239,10 @@ export class API extends ParentAPI {
228239 enrichForPagination ( 'images' , this . pageOfListImages , request )
229240
230241 /**
231- * Get a image. Get the image associated with the given id.
242+ * Get an image. Retrieve information about a given container image, specified
243+ * by its `image_id` and region. Full details about the image, such as `name`,
244+ * `namespace_id`, `status`, `visibility`, and `size` are returned in the
245+ * response.
232246 *
233247 * @param request - The request {@link GetImageRequest}
234248 * @returns A Promise of Image
@@ -266,7 +280,8 @@ export class API extends ParentAPI {
266280 )
267281
268282 /**
269- * Update an existing image. Update the image associated with the given id.
283+ * Update an image. Update the parameters of a given image, specified by its
284+ * `image_id` and `region`. You can update the `visibility` parameter.
270285 *
271286 * @param request - The request {@link UpdateImageRequest}
272287 * @returns A Promise of Image
@@ -288,7 +303,8 @@ export class API extends ParentAPI {
288303 )
289304
290305 /**
291- * Delete an image. Delete the image associated with the given id.
306+ * Delete an image. Delete a given image. You must specify, in the endpoint,
307+ * the `region` and `image_id` parameters of the image you want to delete.
292308 *
293309 * @param request - The request {@link DeleteImageRequest}
294310 * @returns A Promise of Image
@@ -327,7 +343,10 @@ export class API extends ParentAPI {
327343 )
328344
329345 /**
330- * List all your tags.
346+ * List tags. List all tags for a given image, specified by region. By
347+ * default, the tags listed are ordered by creation date in ascending order.
348+ * This can be modified via the order_by field. You can also define additional
349+ * parameters for your query, such as the `name`.
331350 *
332351 * @param request - The request {@link ListTagsRequest}
333352 * @returns A Promise of ListTagsResponse
@@ -336,7 +355,9 @@ export class API extends ParentAPI {
336355 enrichForPagination ( 'tags' , this . pageOfListTags , request )
337356
338357 /**
339- * Get a tag. Get the tag associated with the given id.
358+ * Get a tag. Retrieve information about a given image tag, specified by its
359+ * `tag_id` and region. Full details about the tag, such as `name`,
360+ * `image_id`, `status`, and `digest` are returned in the response.
340361 *
341362 * @param request - The request {@link GetTagRequest}
342363 * @returns A Promise of Tag
@@ -373,7 +394,8 @@ export class API extends ParentAPI {
373394 )
374395
375396 /**
376- * Delete a tag. Delete the tag associated with the given id.
397+ * Delete a tag. Delete a given image tag. You must specify, in the endpoint,
398+ * the `region` and `tag_id` parameters of the tag you want to delete.
377399 *
378400 * @param request - The request {@link DeleteTagRequest}
379401 * @returns A Promise of Tag
0 commit comments