terraform/vendor/github.com/jen20/riviera/sql/get_server.go

35 lines
1.4 KiB
Go
Raw Normal View History

2016-02-04 00:40:32 +01:00
package sql
import "github.com/jen20/riviera/azure"
type GetServerResponse struct {
ID *string `mapstructure:"id"`
Name *string `mapstructure:"name"`
Location *string `mapstructure:"location"`
Tags *map[string]*string `mapstructure:"tags"`
Kind *string `mapstructure:"kind"`
FullyQualifiedDomainName *string `mapstructure:"fullyQualifiedDomainName"`
AdministratorLogin *string `mapstructure:"administratorLogin"`
AdministratorLoginPassword *string `mapstructure:"administratorLoginPassword"`
ExternalAdministratorLogin *string `mapstructure:"externalAdministratorLogin"`
ExternalAdministratorSid *string `mapstructure:"externalAdministratorSid"`
Version *string `mapstructure:"version"`
State *string `mapstructure:"state"`
}
type GetServer struct {
Name string `json:"-"`
ResourceGroupName string `json:"-"`
}
func (s GetServer) APIInfo() azure.APIInfo {
return azure.APIInfo{
APIVersion: apiVersion,
2016-02-04 00:40:32 +01:00
Method: "GET",
URLPathFunc: sqlServerDefaultURLPath(s.ResourceGroupName, s.Name),
ResponseTypeFunc: func() interface{} {
return &GetServerResponse{}
},
}
}