Skip to content

Commit dcd7218

Browse files
authored
docs(marketplace): adding marketplace v2 documentation (#1633)
1 parent cd0e1bd commit dcd7218

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

api/marketplace/v2/marketplace_sdk.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ type ListImagesRequest struct {
248248
}
249249

250250
// ListImages: list marketplace images.
251+
// List all available images on the marketplace, their UUID, CPU architecture and description.
251252
func (s *API) ListImages(req *ListImagesRequest, opts ...scw.RequestOption) (*ListImagesResponse, error) {
252253
var err error
253254

@@ -286,6 +287,7 @@ type GetImageRequest struct {
286287
}
287288

288289
// GetImage: get a specific marketplace image.
290+
// Get detailed information about a marketplace image, specified by its `image_id` (UUID format).
289291
func (s *API) GetImage(req *GetImageRequest, opts ...scw.RequestOption) (*Image, error) {
290292
var err error
291293

@@ -318,6 +320,8 @@ type ListVersionsRequest struct {
318320
OrderBy ListVersionsRequestOrderBy `json:"-"`
319321
}
320322

323+
// ListVersions: list versions of an Image.
324+
// Get a list of all available version of an image, specified by its `image_id` (UUID format).
321325
func (s *API) ListVersions(req *ListVersionsRequest, opts ...scw.RequestOption) (*ListVersionsResponse, error) {
322326
var err error
323327

@@ -352,6 +356,8 @@ type GetVersionRequest struct {
352356
VersionID string `json:"-"`
353357
}
354358

359+
// GetVersion: get a specific image version.
360+
// Get information such as the name, creation date, last update and published date for an image version specified by its `version_id` (UUID format).
355361
func (s *API) GetVersion(req *GetVersionRequest, opts ...scw.RequestOption) (*Version, error) {
356362
var err error
357363

@@ -391,6 +397,7 @@ type ListLocalImagesRequest struct {
391397
}
392398

393399
// ListLocalImages: list local images from a specific image or version.
400+
// List information about local images in a specific Availability Zone, specified by its `image_id` (UUID format), `version_id` (UUID format) or `image_label`. Only one of these three parameters may be set.
394401
func (s *API) ListLocalImages(req *ListLocalImagesRequest, opts ...scw.RequestOption) (*ListLocalImagesResponse, error) {
395402
var err error
396403

@@ -433,6 +440,8 @@ type GetLocalImageRequest struct {
433440
LocalImageID string `json:"-"`
434441
}
435442

443+
// GetLocalImage: get a specific local image by ID.
444+
// Get detailed information about a local image, including compatible commercial types, supported architecture, labels and the Availability Zone of the image, specified by its `local_image_id` (UUID format).
436445
func (s *API) GetLocalImage(req *GetLocalImageRequest, opts ...scw.RequestOption) (*LocalImage, error) {
437446
var err error
438447

@@ -461,6 +470,8 @@ type ListCategoriesRequest struct {
461470
Page *int32 `json:"-"`
462471
}
463472

473+
// ListCategories: list existing image categories.
474+
// Get a list of all existing categories. The output can be paginated.
464475
func (s *API) ListCategories(req *ListCategoriesRequest, opts ...scw.RequestOption) (*ListCategoriesResponse, error) {
465476
var err error
466477

@@ -493,6 +504,8 @@ type GetCategoryRequest struct {
493504
CategoryID string `json:"-"`
494505
}
495506

507+
// GetCategory: get a specific category.
508+
// Get information about a specific category of the marketplace catalog, specified by its `category_id` (UUID format).
496509
func (s *API) GetCategory(req *GetCategoryRequest, opts ...scw.RequestOption) (*Category, error) {
497510
var err error
498511

0 commit comments

Comments
 (0)