diff --git a/README.md b/README.md index c64c438..6168eba 100644 --- a/README.md +++ b/README.md @@ -342,6 +342,14 @@ go get github.com/softlayer/softlayer-go/... make ``` +```bash +gofmt -w `find . -name '*.go' | grep -v vendor` +go vet -all $$(go list ./... | grep -v datatypes) +go get -d -v ./... +go build ./... + +``` + ### Test ``` @@ -354,6 +362,20 @@ make test make update_deps ``` +### Generate +This downloads the API definitions and creates go files for them. + +(with make) +```bash +make generate +``` + +(manually) +```bash +go run tools/main.go tools/loadmeta.go tools/common.go tools/version.go generate +``` + + ## Copyright This software is Copyright (c) 2016 IBM Corp. See the bundled LICENSE file for more information. diff --git a/services/account.go b/services/account.go index a71b823..a636f85 100644 --- a/services/account.go +++ b/services/account.go @@ -3183,7 +3183,7 @@ func (r Account_Internal_Ibm) GetAuthorizationUrl(requestId *int) (resp string, } // no documentation yet -func (r Account_Internal_Ibm) GetBmsCountries() (resp []BMS_Container_Country, err error) { +func (r Account_Internal_Ibm) GetBmsCountries() (resp []datatypes.BMS_Container_Country, err error) { err = r.Session.DoRequest("SoftLayer_Account_Internal_Ibm", "getBmsCountries", nil, &r.Options, &resp) return } @@ -3296,7 +3296,7 @@ func (r Account_Internal_Ibm_CostRecovery_Validator) Offset(offset int) Account_ } // Will return a container with information for a PACT or WBS account ID and BMS country ID. -func (r Account_Internal_Ibm_CostRecovery_Validator) GetSprintContainer(accountId *string, countryId *string) (resp Sprint_Container_CostRecovery, err error) { +func (r Account_Internal_Ibm_CostRecovery_Validator) GetSprintContainer(accountId *string, countryId *string) (resp datatypes.Sprint_Container_CostRecovery, err error) { params := []interface{}{ accountId, countryId, @@ -3306,7 +3306,7 @@ func (r Account_Internal_Ibm_CostRecovery_Validator) GetSprintContainer(accountI } // Will validate a PACT or WBS account ID and BMS country ID. If the record is invalid, an exception is thrown. Otherwise, a container with account information is returned. -func (r Account_Internal_Ibm_CostRecovery_Validator) ValidateByAccountAndCountryId(accountId *string, countryId *string) (resp Sprint_Container_CostRecovery, err error) { +func (r Account_Internal_Ibm_CostRecovery_Validator) ValidateByAccountAndCountryId(accountId *string, countryId *string) (resp datatypes.Sprint_Container_CostRecovery, err error) { params := []interface{}{ accountId, countryId,