blob: e34692d4db8de7f1c48cd5b1e4b61bbe33caabea [file] [log] [blame]
ehdoub5066cd2016-11-10 22:15:42 +02001package securityservices
2
3import "github.com/gophercloud/gophercloud"
4
5// SecurityService contains all the information associated with an OpenStack
6// SecurityService.
7type 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
36type commonResult struct {
37 gophercloud.Result
38}
39
40// Extract will get the SecurityService object out of the commonResult object.
41func (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.
50type CreateResult struct {
51 commonResult
52}