Skip to content

Commit

Permalink
Formatted entities in clients
Browse files Browse the repository at this point in the history
Formatted entities in clients
  • Loading branch information
ruslangabitov committed Oct 2, 2014
1 parent 0adc3f4 commit 4f1c2ed
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 56 deletions.
4 changes: 2 additions & 2 deletions clients/imageClient/entities.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
)

type ImageList struct {
XMLName xml.Name `xml:"Images"`
XMLName xml.Name `xml:"Images"`
Xmlns string `xml:"xmlns,attr"`
OSImages []OSImage `xml:"OSImage"`
OSImages []OSImage `xml:"OSImage"`
}

type OSImage struct {
Expand Down
4 changes: 2 additions & 2 deletions clients/locationClient/entities.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
)

type LocationList struct {
XMLName xml.Name `xml:"Locations"`
XMLName xml.Name `xml:"Locations"`
Xmlns string `xml:"xmlns,attr"`
Locations []Location `xml:"Location"`
Locations []Location `xml:"Location"`
}

type Location struct {
Expand Down
28 changes: 14 additions & 14 deletions clients/storageServiceClient/entities.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ import (
)

type StorageServiceList struct {
XMLName xml.Name `xml:"StorageServices"`
Xmlns string `xml:"xmlns,attr"`
XMLName xml.Name `xml:"StorageServices"`
Xmlns string `xml:"xmlns,attr"`
StorageServices []StorageService `xml:"StorageService"`
}

type StorageService struct {
Url string
ServiceName string
Url string
ServiceName string
StorageServiceProperties StorageServiceProperties
}

Expand All @@ -27,16 +27,16 @@ type StorageServiceProperties struct {
}

type StorageServiceDeployment struct {
XMLName xml.Name `xml:"CreateStorageServiceInput"`
Xmlns string `xml:"xmlns,attr"`
ServiceName string
Description string
Label string
AffinityGroup string `xml:",omitempty"`
Location string `xml:",omitempty"`
GeoReplicationEnabled bool
ExtendedProperties ExtendedPropertyList
SecondaryReadEnabled bool
XMLName xml.Name `xml:"CreateStorageServiceInput"`
Xmlns string `xml:"xmlns,attr"`
ServiceName string
Description string
Label string
AffinityGroup string `xml:",omitempty"`
Location string `xml:",omitempty"`
GeoReplicationEnabled bool
ExtendedProperties ExtendedPropertyList
SecondaryReadEnabled bool
}

type ExtendedPropertyList struct {
Expand Down
77 changes: 39 additions & 38 deletions clients/vmClient/entities.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@ import (
)

type VMDeployment struct {
XMLName xml.Name `xml:"Deployment"`
Xmlns string `xml:"xmlns,attr"`
Name string
DeploymentSlot string
Status string `xml:",omitempty"`
Label string
Url string `xml:",omitempty"`
RoleList RoleList
XMLName xml.Name `xml:"Deployment"`
Xmlns string `xml:"xmlns,attr"`
Name string
DeploymentSlot string
Status string `xml:",omitempty"`
Label string
Url string `xml:",omitempty"`
RoleList RoleList
}

type HostedServiceDeployment struct {
XMLName xml.Name `xml:"CreateHostedService"`
Xmlns string `xml:"xmlns,attr"`
XMLName xml.Name `xml:"CreateHostedService"`
Xmlns string `xml:"xmlns,attr"`
ServiceName string
Label string
Description string
Expand All @@ -29,15 +29,15 @@ type RoleList struct {
}

type Role struct {
RoleName string
RoleType string
ConfigurationSets ConfigurationSets
RoleName string
RoleType string
ConfigurationSets ConfigurationSets
ResourceExtensionReferences ResourceExtensionReferences `xml:",omitempty"`
OSVirtualHardDisk OSVirtualHardDisk
RoleSize string
ProvisionGuestAgent bool
UseCertAuth bool `xml:"-"`
CertPath string `xml:"-"`
OSVirtualHardDisk OSVirtualHardDisk
RoleSize string
ProvisionGuestAgent bool
UseCertAuth bool `xml:"-"`
CertPath string `xml:"-"`
}

type ConfigurationSets struct {
Expand All @@ -57,12 +57,12 @@ type SubnetNames struct {
}

type ResourceExtensionReference struct {
ReferenceName string
Publisher string
Name string
Version string
ResourceExtensionParameterValues ResourceExtensionParameterValues `xml:",omitempty"`
State string
ReferenceName string
Publisher string
Name string
Version string
ResourceExtensionParameterValues ResourceExtensionParameterValues `xml:",omitempty"`
State string
}

type ResourceExtensionParameterValues struct {
Expand All @@ -84,14 +84,14 @@ type OSVirtualHardDisk struct {
}

type ConfigurationSet struct {
ConfigurationSetType string
HostName string `xml:",omitempty"`
UserName string `xml:",omitempty"`
UserPassword string `xml:",omitempty"`
DisableSshPasswordAuthentication bool
InputEndpoints InputEndpoints `xml:",omitempty"`
SubnetNames SubnetNames `xml:",omitempty"`
SSH SSH `xml:",omitempty"`
ConfigurationSetType string
HostName string `xml:",omitempty"`
UserName string `xml:",omitempty"`
UserPassword string `xml:",omitempty"`
DisableSshPasswordAuthentication bool
InputEndpoints InputEndpoints `xml:",omitempty"`
SubnetNames SubnetNames `xml:",omitempty"`
SSH SSH `xml:",omitempty"`
}

type SSH struct {
Expand All @@ -108,22 +108,23 @@ type PublicKey struct {
}

type InputEndpoint struct {
LocalPort int
LocalPort int
Name string
Port int
Port int
Protocol string
Vip string
}

//!TODO
type SubnetName struct {
}

type ServiceCertificate struct {
XMLName xml.Name `xml:"CertificateFile"`
Xmlns string `xml:"xmlns,attr"`
Data string
XMLName xml.Name `xml:"CertificateFile"`
Xmlns string `xml:"xmlns,attr"`
Data string
CertificateFormat string
Password string `xml:",omitempty"`
Password string `xml:",omitempty"`
}

type StartRoleOperation struct {
Expand Down

0 comments on commit 4f1c2ed

Please sign in to comment.