github.com/opentelekomcloud/gophertelekomcloud@v0.9.3/openstack/identity/v3/federation/metadata/results.go (about) 1 package metadata 2 3 import golangsdk "github.com/opentelekomcloud/gophertelekomcloud" 4 5 type Metadata struct { 6 ID string `json:"id"` 7 ProviderID string `json:"idp_id"` 8 EntityID string `json:"entity_id"` 9 ProtocolID string `json:"protocol_id"` 10 DomainID string `json:"domain_id"` 11 XAccountType string `json:"xaccount_type"` 12 UpdateTime string `json:"update_time"` 13 Data string `json:"data"` 14 } 15 16 type GetResult struct { 17 golangsdk.Result 18 } 19 20 func (r GetResult) Extract() (*Metadata, error) { 21 metadata := new(Metadata) 22 err := r.ExtractIntoStructPtr(metadata, "") 23 if err != nil { 24 return nil, err 25 } 26 return metadata, nil 27 } 28 29 type ImportResult struct { 30 golangsdk.ErrResult 31 }