github.com/chnsz/golangsdk@v0.0.0-20240506093406-85a3fbfa605b/openstack/apigw/shared/v1/environments/results.go (about) 1 package environments 2 3 import ( 4 "github.com/chnsz/golangsdk/pagination" 5 ) 6 7 type ListResp struct { 8 // Number of environments that match the query conditions. 9 Total int `json:"total"` 10 // Length of the returned environment list. 11 Size int `json:"size"` 12 // Environment list. 13 Environments []Environment `json:"envs"` 14 } 15 16 // EnvironmentPage represents the response pages of the List method. 17 type EnvironmentPage struct { 18 pagination.SinglePageBase 19 } 20 21 type Environment struct { 22 // Environment ID. 23 Id string `json:"id"` 24 // Environment name. 25 Name string `json:"name"` 26 // Time when the environment is created. 27 CreateTime string `json:"create_time"` 28 // Description of the environment. 29 Description string `json:"remark"` 30 }