Skip to content

Commit

Permalink
Fixed a minor error in the account services where it wasn't including…
Browse files Browse the repository at this point in the history
… the datatypes properly
  • Loading branch information
allmightyspiff committed Jan 23, 2024
1 parent 52f04cd commit ab1ecee
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

```
Expand All @@ -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.
6 changes: 3 additions & 3 deletions services/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit ab1ecee

Please sign in to comment.