@@ -23,23 +23,24 @@ type TemplateRequest struct {
2323
2424type TemplateResponse struct {
2525 UUID string `json:"uuid" readonly:"true"`
26- Name string `json:"name"` // Name of the template
27- OrgID string `json:"org_id"` // Organization ID of the owner
28- Description string `json:"description"` // Description of the template
29- Arch string `json:"arch"` // Architecture of the template
30- Version string `json:"version"` // Version of the template
31- Date time.Time `json:"date"` // Latest date to include snapshots for
32- RepositoryUUIDS []string `json:"repository_uuids"` // Repositories added to the template
33- RHSMEnvironmentID string `json:"rhsm_environment_id"` // Environment ID used by subscription-manager and candlepin
34- CreatedBy string `json:"created_by"` // User that created the template
35- LastUpdatedBy string `json:"last_updated_by"` // User that most recently updated the template
36- CreatedAt time.Time `json:"created_at"` // Datetime template was created
37- UpdatedAt time.Time `json:"updated_at"` // Datetime template was last updated
38- DeletedAt gorm.DeletedAt `json:"-" swaggerignore:"true"` // Datetime template was deleted
39- UseLatest bool `json:"use_latest"` // Use latest snapshot for all repositories in the template
40- LastUpdateSnapshotError string `json:"last_update_snapshot_error"` // Error of last update_latest_snapshot task that updated the template
41- LastUpdateTaskUUID string `json:"last_update_task_uuid,omitempty"` // UUID of the last update_template_content task that updated the template
42- LastUpdateTask * TaskInfoResponse `json:"last_update_task,omitempty"` // Response of last update_template_content task that updated the template
26+ Name string `json:"name"` // Name of the template
27+ OrgID string `json:"org_id"` // Organization ID of the owner
28+ Description string `json:"description"` // Description of the template
29+ Arch string `json:"arch"` // Architecture of the template
30+ Version string `json:"version"` // Version of the template
31+ Date time.Time `json:"date"` // Latest date to include snapshots for
32+ RepositoryUUIDS []string `json:"repository_uuids"` // Repositories added to the template
33+ RHSMEnvironmentID string `json:"rhsm_environment_id"` // Environment ID used by subscription-manager and candlepin
34+ CreatedBy string `json:"created_by"` // User that created the template
35+ LastUpdatedBy string `json:"last_updated_by"` // User that most recently updated the template
36+ CreatedAt time.Time `json:"created_at"` // Datetime template was created
37+ UpdatedAt time.Time `json:"updated_at"` // Datetime template was last updated
38+ DeletedAt gorm.DeletedAt `json:"-" swaggerignore:"true"` // Datetime template was deleted
39+ UseLatest bool `json:"use_latest"` // Use latest snapshot for all repositories in the template
40+ LastUpdateSnapshotError string `json:"last_update_snapshot_error"` // Error of last update_latest_snapshot task that updated the template
41+ LastUpdateTaskUUID string `json:"last_update_task_uuid,omitempty"` // UUID of the last update_template_content task that updated the template
42+ LastUpdateTask * TaskInfoResponse `json:"last_update_task,omitempty"` // Response of last update_template_content task that updated the template
43+ RHSMEnvironmentCreated bool `json:"rhsm_environment_created" readonly:"true"` // Whether the candlepin environment is created and systems can be added
4344}
4445
4546// We use a separate struct because version and arch cannot be updated
0 commit comments