Skip to content

Commit

Permalink
Rename MemoryGB into MemoryGb for consistency
Browse files Browse the repository at this point in the history
Also, rename IsManagedOS into IsManagedOs
  • Loading branch information
ldmberman committed Sep 3, 2015
1 parent 675ca82 commit 17039a5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion autocomplete/autocomplete_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ func TestArgumentsAutocomplete(t *testing.T) {
t.Errorf("Invalid result.\n Expected: %s,\n obtained: %s", arguments, got)
}

args = []string{"server", "create", "--cpu", "0", "--memoryGB"}
args = []string{"server", "create", "--cpu", "0", "--memory-gb"}
got = strings.Split(autocomplete.Run(args), " ")
sort.Strings(got)
if !reflect.DeepEqual(got, arguments) {
Expand Down
2 changes: 1 addition & 1 deletion init.go
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ func init() {
},
},
{
"--memoryGB",
"--memory-gb",
[]string{
"Required. Number of GB of memory to configure the server with (1-128). If this value is different from the one specified in the OVF,",
"the import process will resize the server according to the value specified here.",
Expand Down
4 changes: 2 additions & 2 deletions models/server/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type CreateReq struct {
SourceServerId string
TemplateId string
TemplateName string `json:",omitempty"`
IsManagedOS bool `json:",omitempty"`
IsManagedOs bool `json:",omitempty"`
IsManagedBackup bool `json:",omitempty"`
PrimaryDns string `json:",omitempty"`
SecondaryDns string `json:",omitempty"`
Expand All @@ -27,7 +27,7 @@ type CreateReq struct {
SourceServerPassword string `json:",omitempty"`
Cpu int64 `valid:"required"`
CpuAutoscalePolicyId string `json:",omitempty"`
MemoryGB int64 `valid:"required"`
MemoryGb int64 `valid:"required"`
Type string `valid:"required" oneOf:"standard,hyperscale,bareMetal"`
StorageType string `json:",omitempty" oneOf:"standard,premium,hyperscale"`
AntiAffinityPolicyId string `json:",omitempty"`
Expand Down
2 changes: 1 addition & 1 deletion models/server/import.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type Import struct {
NetworkId string `json:",omitempty"`
RootPassword string `valid:"required"`
Cpu int64 `valid:"required"`
MemoryGB int64 `valid:"required"`
MemoryGb int64 `valid:"required"`
Type string `valid:"required" oneOf:"standard,hyperscale"`
StorageType string `json:",omitempty" oneOf:"standard,premium,hyperscale"`
CustomFields []CustomFieldDef `json:",omitempty"`
Expand Down

0 comments on commit 17039a5

Please sign in to comment.