@@ -9,16 +9,18 @@ import (
99)
1010
1111type TemplateRequest struct {
12- UUID *string `json:"uuid" readonly:"true" swaggerignore:"true"`
13- Name *string `json:"name" validate:"required"` // Name of the template
14- Description *string `json:"description"` // Description of the template
15- RepositoryUUIDS []string `json:"repository_uuids" validate:"required"` // Repositories to add to the template
16- Arch *string `json:"arch" validate:"required"` // Architecture of the template
17- Version *string `json:"version" validate:"required"` // Version of the template
18- Date *EmptiableDate `json:"date"` // Latest date to include snapshots for
19- OrgID *string `json:"org_id" readonly:"true" swaggerignore:"true"` // Organization ID of the owner
20- User *string `json:"created_by" readonly:"true" swaggerignore:"true"` // User creating the template
21- UseLatest *bool `json:"use_latest"` // Use latest snapshot for all repositories in the template
12+ UUID *string `json:"uuid" readonly:"true" swaggerignore:"true"`
13+ Name *string `json:"name" validate:"required"` // Name of the template
14+ Description *string `json:"description"` // Description of the template
15+ RepositoryUUIDS []string `json:"repository_uuids" validate:"required"` // Repositories to add to the template
16+ Arch *string `json:"arch" validate:"required"` // Architecture of the template
17+ Version *string `json:"version" validate:"required"` // Version of the template
18+ ExtendedRelease *string `json:"extended_release"` // Extended release type (eus, e4s)
19+ ExtendedReleaseVersion *string `json:"extended_release_version"` // Extended release version (9.4, 9.6, etc.)
20+ Date *EmptiableDate `json:"date"` // Latest date to include snapshots for
21+ OrgID *string `json:"org_id" readonly:"true" swaggerignore:"true"` // Organization ID of the owner
22+ User *string `json:"created_by" readonly:"true" swaggerignore:"true"` // User creating the template
23+ UseLatest *bool `json:"use_latest"` // Use latest snapshot for all repositories in the template
2224}
2325
2426type TemplateResponse struct {
@@ -28,6 +30,8 @@ type TemplateResponse struct {
2830 Description string `json:"description"` // Description of the template
2931 Arch string `json:"arch"` // Architecture of the template
3032 Version string `json:"version"` // Version of the template
33+ ExtendedRelease string `json:"extended_release,omitempty"` // Extended release type (eus, e4s)
34+ ExtendedReleaseVersion string `json:"extended_release_version,omitempty"` // Extended release version (9.4, 9.6, etc.)
3135 Date time.Time `json:"date"` // Latest date to include snapshots for
3236 RepositoryUUIDS []string `json:"repository_uuids"` // Repositories added to the template
3337 Snapshots []SnapshotResponse `json:"snapshots,omitempty" readonly:"true"` // The list of snapshots in use by the template
@@ -69,13 +73,15 @@ func (r *TemplateCollectionResponse) SetMetadata(meta ResponseMetadata, links Li
6973}
7074
7175type TemplateFilterData struct {
72- Name string `json:"name"` // Filter templates by name using an exact match.
73- Arch string `json:"arch"` // Filter templates by arch using an exact match.
74- Version string `json:"version"` // Filter templates by version using an exact match.
75- Search string `json:"search"` // Search string based query to optionally filter on
76- RepositoryUUIDs []string `json:"repository_uuids"` // List templates that contain one or more of these Repositories
77- SnapshotUUIDs []string `json:"snapshot_uuids"` // List templates that contain one or more of these Snapshots
78- UseLatest bool `json:"use_latest"` // List templates that have use_latest set to true
76+ Name string `json:"name"` // Filter templates by name using an exact match.
77+ Arch string `json:"arch"` // Filter templates by arch using an exact match.
78+ Version string `json:"version"` // Filter templates by version using an exact match.
79+ ExtendedRelease string `json:"extended_release"` // Filter templates by extended release type using an exact match.
80+ ExtendedReleaseVersion string `json:"extended_release_version"` // Filter templates by extended release version using an exact match.
81+ Search string `json:"search"` // Search string based query to optionally filter on
82+ RepositoryUUIDs []string `json:"repository_uuids"` // List templates that contain one or more of these Repositories
83+ SnapshotUUIDs []string `json:"snapshot_uuids"` // List templates that contain one or more of these Snapshots
84+ UseLatest bool `json:"use_latest"` // List templates that have use_latest set to true
7985}
8086
8187// Provides defaults if not provided during PUT request
0 commit comments