Skip to content

Commit

Permalink
Added RoleInstance entity to vmClient
Browse files Browse the repository at this point in the history
Added RoleInstance entity to vmClient
  • Loading branch information
ruslangabitov committed Oct 3, 2014
1 parent 4f1c2ed commit 116b917
Showing 1 changed file with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions clients/vmClient/entities.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ 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
RoleInstanceList RoleInstanceList `xml:",omitempty"`
}

type HostedServiceDeployment struct {
Expand All @@ -28,6 +29,18 @@ type RoleList struct {
Role []*Role
}

type RoleInstanceList struct {
RoleInstance []*RoleInstance
}

type RoleInstance struct {
RoleName string
InstanceName string
InstanceStatus string
InstanceSize string
PowerState string
}

type Role struct {
RoleName string
RoleType string
Expand Down

0 comments on commit 116b917

Please sign in to comment.