github.com/chnsz/golangsdk@v0.0.0-20240506093406-85a3fbfa605b/openstack/dli/v1/databases/results.go (about) 1 package databases 2 3 // RequestResp is a object that represents the result of Create and UpdateDBOwner operation. 4 type RequestResp struct { 5 // Whether the request is successfully executed. Value true indicates that the request is successfully executed. 6 IsSuccess bool `json:"is_success"` 7 // System prompt. If execution succeeds, the parameter setting may be left blank. 8 Message string `json:"message"` 9 } 10 11 // ListResp is a object that represents the result of List operation. 12 type ListResp struct { 13 // Indicates whether the request is successfully executed. 14 // Value true indicates that the request is successfully executed. 15 IsSuccess bool `json:"is_success"` 16 // System prompt. If execution succeeds, the parameter setting may be left blank. 17 Message string `json:"message"` 18 // Total number of databases. 19 DatabaseCount int `json:"database_count"` 20 // Database information. 21 Databases []Database `json:"databases"` 22 } 23 24 // Database is a object that represents the database detail. 25 type Database struct { 26 // Name of a database. 27 Name string `json:"database_name"` 28 // Creator of a database. 29 Owner string `json:"owner"` 30 // Number of tables in a database. 31 TableNumber int `json:"table_number"` 32 // Information about a database. 33 Description string `json:"description"` 34 // Whether database is shared. 35 IsShared bool `json:"is_shared"` 36 // Enterprise project ID. The value 0 indicates the default enterprise project. 37 // NOTE: Users who have enabled Enterprise Management can set this parameter to bind a specified project. 38 EnterpriseProjectId string `json:"enterprise_project_id"` 39 // Resource ID. 40 ResourceId string `json:"resource_id"` 41 }