| ehdou | b5066cd | 2016-11-10 22:15:42 +0200 | [diff] [blame] | 1 | package securityservices | 
 | 2 |  | 
 | 3 | import "github.com/gophercloud/gophercloud" | 
 | 4 |  | 
 | 5 | // SecurityService contains all the information associated with an OpenStack | 
 | 6 | // SecurityService. | 
 | 7 | type SecurityService struct { | 
 | 8 | 	// The security service ID | 
 | 9 | 	ID string `json:"id"` | 
 | 10 | 	// The UUID of the project where the security service was created | 
 | 11 | 	ProjectID string `json:"project_id"` | 
 | 12 | 	// The security service domain | 
 | 13 | 	Domain string `json:"domain"` | 
 | 14 | 	// The security service status | 
 | 15 | 	Status string `json:"status"` | 
 | 16 | 	// The security service type. A valid value is ldap, kerberos, or active_directory | 
 | 17 | 	Type string `json:"type"` | 
 | 18 | 	// The security service name | 
 | 19 | 	Name string `json:"name"` | 
 | 20 | 	// The security service description | 
 | 21 | 	Description string `json:"description"` | 
 | 22 | 	// The DNS IP address that is used inside the tenant network | 
 | 23 | 	DNSIP string `json:"dns_ip"` | 
 | 24 | 	// The security service user or group name that is used by the tenant | 
 | 25 | 	User string `json:"user"` | 
 | 26 | 	// The user password, if you specify a user | 
 | 27 | 	Password string `json:"password"` | 
 | 28 | 	// The security service host name or IP address | 
 | 29 | 	Server string `json:"server"` | 
 | 30 | 	// The date and time stamp when the security service was created | 
 | 31 | 	CreatedAt gophercloud.JSONRFC3339MilliNoZ `json:"created_at"` | 
 | 32 | 	// The date and time stamp when the security service was updated | 
 | 33 | 	UpdatedAt gophercloud.JSONRFC3339MilliNoZ `json:"updated_at"` | 
 | 34 | } | 
 | 35 |  | 
 | 36 | type commonResult struct { | 
 | 37 | 	gophercloud.Result | 
 | 38 | } | 
 | 39 |  | 
 | 40 | // Extract will get the SecurityService object out of the commonResult object. | 
 | 41 | func (r commonResult) Extract() (*SecurityService, error) { | 
 | 42 | 	var s struct { | 
 | 43 | 		SecurityService *SecurityService `json:"security_service"` | 
 | 44 | 	} | 
 | 45 | 	err := r.ExtractInto(&s) | 
 | 46 | 	return s.SecurityService, err | 
 | 47 | } | 
 | 48 |  | 
 | 49 | // CreateResult contains the response body and error from a Create request. | 
 | 50 | type CreateResult struct { | 
 | 51 | 	commonResult | 
 | 52 | } | 
| ehdou | 894b50d | 2017-01-07 00:38:03 +0200 | [diff] [blame^] | 53 |  | 
 | 54 | // DeleteResult contains the response body and error from a Delete request. | 
 | 55 | type DeleteResult struct { | 
 | 56 | 	gophercloud.ErrResult | 
 | 57 | } |