Skip to content

Commit

Permalink
Q2 Release 2024 (#413)
Browse files Browse the repository at this point in the history
* Add hostgroups (#326)

* Add hostgroups

* Fix build

* Update swagger client and models to service-broker v1.140.0 (#337)

* Generated Swagger client from service-broker commit f482db37dd0b38392de1f3aecdc2219212147830

* Fix build

---------

Co-authored-by: michael kad <[email protected]>

* Update swagger client and models to service-broker v1.140.0 (#336)

* Generated Swagger client from service-broker commit 9786c4b2360ad846a1aa8f68f01fbb41979af3c9

* Fix build

---------

Co-authored-by: michael kad <[email protected]>

* Update swagger client and models to service-broker v1.140.0 (#346)

* Bump github.com/IBM/go-sdk-core/v5 from 5.15.1 to 5.15.3

Bumps [github.com/IBM/go-sdk-core/v5](https://github.com/IBM/go-sdk-core) from 5.15.1 to 5.15.3.
- [Release notes](https://github.com/IBM/go-sdk-core/releases)
- [Changelog](https://github.com/IBM/go-sdk-core/blob/main/CHANGELOG.md)
- [Commits](IBM/go-sdk-core@v5.15.1...v5.15.3)

---
updated-dependencies:
- dependency-name: github.com/IBM/go-sdk-core/v5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Fix golangci-lint action v4 requirement

Signed-off-by: Yussuf Shaikh <[email protected]>

* Update golangci-lint version and skip cache

Signed-off-by: Yussuf Shaikh <[email protected]>

* Add branch to dependabot (#338)

* Add branch to dependabot

* Fix build

* Generated Swagger client from service-broker commit 1db48bf5f665abf4e91c66d019aa231b913db3d9

---------

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Yussuf Shaikh <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Yussuf Shaikh <[email protected]>
Co-authored-by: michaelkad <[email protected]>

* Update swagger client and models to service-broker v1.140.0 (#347)

* Bump github.com/IBM/go-sdk-core/v5 from 5.15.1 to 5.15.3

Bumps [github.com/IBM/go-sdk-core/v5](https://github.com/IBM/go-sdk-core) from 5.15.1 to 5.15.3.
- [Release notes](https://github.com/IBM/go-sdk-core/releases)
- [Changelog](https://github.com/IBM/go-sdk-core/blob/main/CHANGELOG.md)
- [Commits](IBM/go-sdk-core@v5.15.1...v5.15.3)

---
updated-dependencies:
- dependency-name: github.com/IBM/go-sdk-core/v5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Fix golangci-lint action v4 requirement

Signed-off-by: Yussuf Shaikh <[email protected]>

* Update golangci-lint version and skip cache

Signed-off-by: Yussuf Shaikh <[email protected]>

* Add branch to dependabot (#338)

* Add branch to dependabot

* Fix build

* Generated Swagger client from service-broker commit b0bfdfb575c650fd620a92f064c1f7b05d1dd56d

---------

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Yussuf Shaikh <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Yussuf Shaikh <[email protected]>
Co-authored-by: michaelkad <[email protected]>

* Bump github.com/IBM/go-sdk-core/v5 from 5.15.1 to 5.15.3

Bumps [github.com/IBM/go-sdk-core/v5](https://github.com/IBM/go-sdk-core) from 5.15.1 to 5.15.3.
- [Release notes](https://github.com/IBM/go-sdk-core/releases)
- [Changelog](https://github.com/IBM/go-sdk-core/blob/main/CHANGELOG.md)
- [Commits](IBM/go-sdk-core@v5.15.1...v5.15.3)

---
updated-dependencies:
- dependency-name: github.com/IBM/go-sdk-core/v5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Fix golangci-lint action v4 requirement

Signed-off-by: Yussuf Shaikh <[email protected]>

* Add branch to dependabot (#338)

* Add branch to dependabot

* Fix build

* Bump github.com/stretchr/testify from 1.8.4 to 1.9.0

Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.8.4 to 1.9.0.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](stretchr/testify@v1.8.4...v1.9.0)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump github.com/IBM/platform-services-go-sdk from 0.59.1 to 0.60.0

Bumps [github.com/IBM/platform-services-go-sdk](https://github.com/IBM/platform-services-go-sdk) from 0.59.1 to 0.60.0.
- [Release notes](https://github.com/IBM/platform-services-go-sdk/releases)
- [Changelog](https://github.com/IBM/platform-services-go-sdk/blob/main/CHANGELOG.md)
- [Commits](IBM/platform-services-go-sdk@v0.59.1...v0.60.0)

---
updated-dependencies:
- dependency-name: github.com/IBM/platform-services-go-sdk
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Add Removal of  Create VPN (#315)

Adding back vpn create removal

* Revert "Enable shared-processor-pool functionality on stratos" (#354)

This reverts commit d32d156.

* Remove duplicate go setup step (#348)

* Bump github.com/IBM/go-sdk-core/v5 from 5.15.1 to 5.15.3

Bumps [github.com/IBM/go-sdk-core/v5](https://github.com/IBM/go-sdk-core) from 5.15.1 to 5.15.3.
- [Release notes](https://github.com/IBM/go-sdk-core/releases)
- [Changelog](https://github.com/IBM/go-sdk-core/blob/main/CHANGELOG.md)
- [Commits](IBM/go-sdk-core@v5.15.1...v5.15.3)

---
updated-dependencies:
- dependency-name: github.com/IBM/go-sdk-core/v5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Fix golangci-lint action v4 requirement

Signed-off-by: Yussuf Shaikh <[email protected]>

* Bump github.com/IBM/platform-services-go-sdk from 0.56.4 to 0.57.0

Bumps [github.com/IBM/platform-services-go-sdk](https://github.com/IBM/platform-services-go-sdk) from 0.56.4 to 0.57.0.
- [Release notes](https://github.com/IBM/platform-services-go-sdk/releases)
- [Changelog](https://github.com/IBM/platform-services-go-sdk/blob/main/CHANGELOG.md)
- [Commits](IBM/platform-services-go-sdk@v0.56.4...v0.57.0)

---
updated-dependencies:
- dependency-name: github.com/IBM/platform-services-go-sdk
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump github.com/IBM/platform-services-go-sdk from 0.57.0 to 0.58.0

Bumps [github.com/IBM/platform-services-go-sdk](https://github.com/IBM/platform-services-go-sdk) from 0.57.0 to 0.58.0.
- [Release notes](https://github.com/IBM/platform-services-go-sdk/releases)
- [Changelog](https://github.com/IBM/platform-services-go-sdk/blob/main/CHANGELOG.md)
- [Commits](IBM/platform-services-go-sdk@v0.57.0...v0.58.0)

---
updated-dependencies:
- dependency-name: github.com/IBM/platform-services-go-sdk
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump github.com/IBM/platform-services-go-sdk from 0.58.0 to 0.59.0

Bumps [github.com/IBM/platform-services-go-sdk](https://github.com/IBM/platform-services-go-sdk) from 0.58.0 to 0.59.0.
- [Release notes](https://github.com/IBM/platform-services-go-sdk/releases)
- [Changelog](https://github.com/IBM/platform-services-go-sdk/blob/main/CHANGELOG.md)
- [Commits](IBM/platform-services-go-sdk@v0.58.0...v0.59.0)

---
updated-dependencies:
- dependency-name: github.com/IBM/platform-services-go-sdk
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump github.com/IBM/platform-services-go-sdk from 0.59.0 to 0.59.1

Bumps [github.com/IBM/platform-services-go-sdk](https://github.com/IBM/platform-services-go-sdk) from 0.59.0 to 0.59.1.
- [Release notes](https://github.com/IBM/platform-services-go-sdk/releases)
- [Changelog](https://github.com/IBM/platform-services-go-sdk/blob/main/CHANGELOG.md)
- [Commits](IBM/platform-services-go-sdk@v0.59.0...v0.59.1)

---
updated-dependencies:
- dependency-name: github.com/IBM/platform-services-go-sdk
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump github.com/IBM/go-sdk-core/v5 from 5.15.1 to 5.15.3

Bumps [github.com/IBM/go-sdk-core/v5](https://github.com/IBM/go-sdk-core) from 5.15.1 to 5.15.3.
- [Release notes](https://github.com/IBM/go-sdk-core/releases)
- [Changelog](https://github.com/IBM/go-sdk-core/blob/main/CHANGELOG.md)
- [Commits](IBM/go-sdk-core@v5.15.1...v5.15.3)

---
updated-dependencies:
- dependency-name: github.com/IBM/go-sdk-core/v5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump github.com/stretchr/testify from 1.8.4 to 1.9.0

Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.8.4 to 1.9.0.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](stretchr/testify@v1.8.4...v1.9.0)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump github.com/IBM/platform-services-go-sdk from 0.59.1 to 0.60.0

Bumps [github.com/IBM/platform-services-go-sdk](https://github.com/IBM/platform-services-go-sdk) from 0.59.1 to 0.60.0.
- [Release notes](https://github.com/IBM/platform-services-go-sdk/releases)
- [Changelog](https://github.com/IBM/platform-services-go-sdk/blob/main/CHANGELOG.md)
- [Commits](IBM/platform-services-go-sdk@v0.59.1...v0.60.0)

---
updated-dependencies:
- dependency-name: github.com/IBM/platform-services-go-sdk
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump github.com/IBM/go-sdk-core/v5 from 5.15.1 to 5.15.3

Bumps [github.com/IBM/go-sdk-core/v5](https://github.com/IBM/go-sdk-core) from 5.15.1 to 5.15.3.
- [Release notes](https://github.com/IBM/go-sdk-core/releases)
- [Changelog](https://github.com/IBM/go-sdk-core/blob/main/CHANGELOG.md)
- [Commits](IBM/go-sdk-core@v5.15.1...v5.15.3)

---
updated-dependencies:
- dependency-name: github.com/IBM/go-sdk-core/v5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Fix golangci-lint action v4 requirement

Signed-off-by: Yussuf Shaikh <[email protected]>

* Add branch to dependabot (#338)

* Add branch to dependabot

* Fix build

* Remove duplicate go setup step (#348)

* Update swagger client and models to service-broker v1.140.0 (#337)

* Generated Swagger client from service-broker commit f482db37dd0b38392de1f3aecdc2219212147830

* Fix build

---------

Co-authored-by: michael kad <[email protected]>

* Update swagger client and models to service-broker v1.140.0 (#346)

* Bump github.com/IBM/go-sdk-core/v5 from 5.15.1 to 5.15.3

Bumps [github.com/IBM/go-sdk-core/v5](https://github.com/IBM/go-sdk-core) from 5.15.1 to 5.15.3.
- [Release notes](https://github.com/IBM/go-sdk-core/releases)
- [Changelog](https://github.com/IBM/go-sdk-core/blob/main/CHANGELOG.md)
- [Commits](IBM/go-sdk-core@v5.15.1...v5.15.3)

---
updated-dependencies:
- dependency-name: github.com/IBM/go-sdk-core/v5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Fix golangci-lint action v4 requirement

Signed-off-by: Yussuf Shaikh <[email protected]>

* Update golangci-lint version and skip cache

Signed-off-by: Yussuf Shaikh <[email protected]>

* Add branch to dependabot (#338)

* Add branch to dependabot

* Fix build

* Generated Swagger client from service-broker commit 1db48bf5f665abf4e91c66d019aa231b913db3d9

---------

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Yussuf Shaikh <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Yussuf Shaikh <[email protected]>
Co-authored-by: michaelkad <[email protected]>

* Bump github.com/IBM/go-sdk-core/v5 from 5.15.1 to 5.15.3

Bumps [github.com/IBM/go-sdk-core/v5](https://github.com/IBM/go-sdk-core) from 5.15.1 to 5.15.3.
- [Release notes](https://github.com/IBM/go-sdk-core/releases)
- [Changelog](https://github.com/IBM/go-sdk-core/blob/main/CHANGELOG.md)
- [Commits](IBM/go-sdk-core@v5.15.1...v5.15.3)

---
updated-dependencies:
- dependency-name: github.com/IBM/go-sdk-core/v5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Add branch to dependabot (#338)

* Add branch to dependabot

* Fix build

* Bump github.com/IBM/go-sdk-core/v5 from 5.15.1 to 5.15.3

Bumps [github.com/IBM/go-sdk-core/v5](https://github.com/IBM/go-sdk-core) from 5.15.1 to 5.15.3.
- [Release notes](https://github.com/IBM/go-sdk-core/releases)
- [Changelog](https://github.com/IBM/go-sdk-core/blob/main/CHANGELOG.md)
- [Commits](IBM/go-sdk-core@v5.15.1...v5.15.3)

---
updated-dependencies:
- dependency-name: github.com/IBM/go-sdk-core/v5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Add hostgroups (#326)

* Add hostgroups

* Fix build

* Update swagger client and models to service-broker v1.140.0 (#337)

* Generated Swagger client from service-broker commit f482db37dd0b38392de1f3aecdc2219212147830

* Fix build

---------

Co-authored-by: michael kad <[email protected]>

* Update swagger client and models to service-broker v1.140.0 (#346)

* Bump github.com/IBM/go-sdk-core/v5 from 5.15.1 to 5.15.3

Bumps [github.com/IBM/go-sdk-core/v5](https://github.com/IBM/go-sdk-core) from 5.15.1 to 5.15.3.
- [Release notes](https://github.com/IBM/go-sdk-core/releases)
- [Changelog](https://github.com/IBM/go-sdk-core/blob/main/CHANGELOG.md)
- [Commits](IBM/go-sdk-core@v5.15.1...v5.15.3)

---
updated-dependencies:
- dependency-name: github.com/IBM/go-sdk-core/v5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Fix golangci-lint action v4 requirement

Signed-off-by: Yussuf Shaikh <[email protected]>

* Update golangci-lint version and skip cache

Signed-off-by: Yussuf Shaikh <[email protected]>

* Add branch to dependabot (#338)

* Add branch to dependabot

* Fix build

* Generated Swagger client from service-broker commit 1db48bf5f665abf4e91c66d019aa231b913db3d9

---------

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Yussuf Shaikh <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Yussuf Shaikh <[email protected]>
Co-authored-by: michaelkad <[email protected]>

* Update swagger client and models to service-broker v1.140.0 (#347)

* Bump github.com/IBM/go-sdk-core/v5 from 5.15.1 to 5.15.3

Bumps [github.com/IBM/go-sdk-core/v5](https://github.com/IBM/go-sdk-core) from 5.15.1 to 5.15.3.
- [Release notes](https://github.com/IBM/go-sdk-core/releases)
- [Changelog](https://github.com/IBM/go-sdk-core/blob/main/CHANGELOG.md)
- [Commits](IBM/go-sdk-core@v5.15.1...v5.15.3)

---
updated-dependencies:
- dependency-name: github.com/IBM/go-sdk-core/v5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Fix golangci-lint action v4 requirement

Signed-off-by: Yussuf Shaikh <[email protected]>

* Update golangci-lint version and skip cache

Signed-off-by: Yussuf Shaikh <[email protected]>

* Add branch to dependabot (#338)

* Add branch to dependabot

* Fix build

* Generated Swagger client from service-broker commit b0bfdfb575c650fd620a92f064c1f7b05d1dd56d

---------

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Yussuf Shaikh <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Yussuf Shaikh <[email protected]>
Co-authored-by: michaelkad <[email protected]>

* Bump github.com/IBM/go-sdk-core/v5 from 5.15.1 to 5.15.3

Bumps [github.com/IBM/go-sdk-core/v5](https://github.com/IBM/go-sdk-core) from 5.15.1 to 5.15.3.
- [Release notes](https://github.com/IBM/go-sdk-core/releases)
- [Changelog](https://github.com/IBM/go-sdk-core/blob/main/CHANGELOG.md)
- [Commits](IBM/go-sdk-core@v5.15.1...v5.15.3)

---
updated-dependencies:
- dependency-name: github.com/IBM/go-sdk-core/v5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Fix golangci-lint action v4 requirement

Signed-off-by: Yussuf Shaikh <[email protected]>

* Add branch to dependabot (#338)

* Add branch to dependabot

* Fix build

* Remove duplicate go setup step (#348)

* Bump github.com/IBM/go-sdk-core/v5 from 5.15.1 to 5.15.3

Bumps [github.com/IBM/go-sdk-core/v5](https://github.com/IBM/go-sdk-core) from 5.15.1 to 5.15.3.
- [Release notes](https://github.com/IBM/go-sdk-core/releases)
- [Changelog](https://github.com/IBM/go-sdk-core/blob/main/CHANGELOG.md)
- [Commits](IBM/go-sdk-core@v5.15.1...v5.15.3)

---
updated-dependencies:
- dependency-name: github.com/IBM/go-sdk-core/v5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Fix golangci-lint action v4 requirement

Signed-off-by: Yussuf Shaikh <[email protected]>

* Fix golangci-lint action v4 requirement

Signed-off-by: Yussuf Shaikh <[email protected]>

* Add branch to dependabot (#338)

* Add branch to dependabot

* Fix build

* Update swagger client and models to service-broker v1.140.0 (#337)

* Generated Swagger client from service-broker commit f482db37dd0b38392de1f3aecdc2219212147830

* Fix build

---------

Co-authored-by: michael kad <[email protected]>

* Update swagger client and models to service-broker v1.140.0 (#346)

* Bump github.com/IBM/go-sdk-core/v5 from 5.15.1 to 5.15.3

Bumps [github.com/IBM/go-sdk-core/v5](https://github.com/IBM/go-sdk-core) from 5.15.1 to 5.15.3.
- [Release notes](https://github.com/IBM/go-sdk-core/releases)
- [Changelog](https://github.com/IBM/go-sdk-core/blob/main/CHANGELOG.md)
- [Commits](IBM/go-sdk-core@v5.15.1...v5.15.3)

---
updated-dependencies:
- dependency-name: github.com/IBM/go-sdk-core/v5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Fix golangci-lint action v4 requirement

Signed-off-by: Yussuf Shaikh <[email protected]>

* Update golangci-lint version and skip cache

Signed-off-by: Yussuf Shaikh <[email protected]>

* Add branch to dependabot (#338)

* Add branch to dependabot

* Fix build

* Generated Swagger client from service-broker commit 1db48bf5f665abf4e91c66d019aa231b913db3d9

---------

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Yussuf Shaikh <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Yussuf Shaikh <[email protected]>
Co-authored-by: michaelkad <[email protected]>

* Bump github.com/IBM/go-sdk-core/v5 from 5.15.1 to 5.15.3

Bumps [github.com/IBM/go-sdk-core/v5](https://github.com/IBM/go-sdk-core) from 5.15.1 to 5.15.3.
- [Release notes](https://github.com/IBM/go-sdk-core/releases)
- [Changelog](https://github.com/IBM/go-sdk-core/blob/main/CHANGELOG.md)
- [Commits](IBM/go-sdk-core@v5.15.1...v5.15.3)

---
updated-dependencies:
- dependency-name: github.com/IBM/go-sdk-core/v5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Add branch to dependabot (#338)

* Add branch to dependabot

* Fix build

* Bump github.com/IBM/go-sdk-core/v5 from 5.15.1 to 5.15.3

Bumps [github.com/IBM/go-sdk-core/v5](https://github.com/IBM/go-sdk-core) from 5.15.1 to 5.15.3.
- [Release notes](https://github.com/IBM/go-sdk-core/releases)
- [Changelog](https://github.com/IBM/go-sdk-core/blob/main/CHANGELOG.md)
- [Commits](IBM/go-sdk-core@v5.15.1...v5.15.3)

---
updated-dependencies:
- dependency-name: github.com/IBM/go-sdk-core/v5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* Generated Swagger client from service-broker commit 0fecb85e68db0dcc5ddf2eb1072b39d45e2fef86 (#356)

* Generated Swagger client from service-broker commit a74a353d92fbe6cfeb2421df47b52c5cc0e9d689

* Generated Swagger client from service-broker commit e98a290ebdfbe53e5fec9ff5100a299bc77a6014

* Generated Swagger client from service-broker commit a9e6e612e2556e1c67678aebe155d22089a75639

* Generated Swagger client from service-broker commit 70b0722398f5a64ea1e7bf1fbd07c6b3e7f8c9fc (#360)

* Generated Swagger client from service-broker commit 8ea7617cec1e857b8597b60c4db288df066295f8 (#363)

* Generated Swagger client from service-broker commit 384961399c43e0ea945615662e92396491168189 (#362)

* Update Hostgroup client and add stratos validation (#361)

* Update Hostgroup client and add stratos validation

* Update name to hostGroup pattern

* Rename file

* Generated Swagger client from service-broker commit 125c585619c1c406c466dfae897cc2bff5faf797 (#364)

* Generated Swagger client from service-broker commit 6238c39937d5f7a63f07fba4fd83d5d18e18752b (#365)

* Refactor host group name (#367)

* Generated Swagger client from service-broker commit 4c221d25789a0cbf90427cfb5e22509532cf4265 (#366)

* Generated Swagger client from service-broker commit 1efc6f47450f757d13cf5813a45212ed381b2b8d (#368)

* Generated Swagger client from service-broker commit f627067b7cfb1a503a8fe46e15715957137676f5 (#370)

* Generated Swagger client from service-broker commit e43ad9dd41dd11d0210c10b8ffa0104e1b74afd0 (#371)

* [IBMPIHostGroupsClient]Fix typo (#369)

* Refactor host group name

* Fix typo

* sync branch

* Add checksum gates for powervs (#372)

* Generated Swagger client from service-broker commit 0562d1c6f66295c4ee5c4df5179dd6b2b41c0097 (#373)

* Generated Swagger client from service-broker commit c4cb98d889ffe37cd2324735bfc86efe4e1fdbb6 (#374)

* Generated Swagger client from service-broker commit 8f5f60718bab6db63d05bacb4fb30550762b50eb (#375)

* Generated Swagger client from service-broker commit b9bc7ab551a37f4cd3546c19757fe74b6eee179f (#380)

* Fix error in host-group example (#376)

There appeared to be a typo in the client definition
preventing the example from compiling.

* Add deploymentTarget safeguard for Stratos (#378)

* Add deploymentTarget safeguard

This option is only available off-prem where dedicated host commands are
supported.

* Remove IBMi safeguard for stratos

* Update instance create safeguard

* Update spp safeguards for stratos (#379)

* Update spp safeguards for stratos

SPP commands will be supported for Q2 for stratos, but not the
dedicated host-id option.

* Update host-id error message

* Generated Swagger client from service-broker commit 2a7c3111d7d5c55678486f3cab44f3437796762c (#381)

WorkspacePowerEdgeRouterDetails state addition

* Bump golang.org/x/net from 0.20.0 to 0.23.0 (#384)

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.20.0 to 0.23.0.
- [Commits](golang/net@v0.20.0...v0.23.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Generated Swagger client from service-broker commit a76fd7fb2c0026fa0c68c2a52417f395f801dd46 (#386)

* Generated Swagger client from service-broker commit bfe8b85d361707cf82c025266813ecb7889a556c (#388)

* Bump golangci/golangci-lint-action from 4 to 5

Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 4 to 5.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](golangci/golangci-lint-action@v4...v5)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
(cherry picked from commit 2c275e7)

* Bump golangci/golangci-lint-action from 4 to 5

Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 4 to 5.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](golangci/golangci-lint-action@v4...v5)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
(cherry picked from commit 2c275e7)

* Generated Swagger client from service-broker commit a433c612326d695146ca7953d6aef37ac709618f (#389)

* Generated Swagger client from service-broker commit 6f9b593c228169c62a3b446bfc480cab28b91ed2 (#390)

* Generated Swagger client from service-broker commit a08ee4720fe9268263f8c3bee59330454b619109 (#392)

* Generated Swagger client from service-broker commit bd9c5c4d29bd093067dd82a8dce8e5b746a0284b (#394)

* Update to go 1.22

* Generated Swagger client from service-broker commit 1a54ea3efa13779bf08f2c162677acdd026001c9 (#399)

* Update to go 1.22 (#396)

* Generated Swagger client from service-broker commit f43b28fb6f66ffdf7aa6499f4dc09619d22feeda (#401)

* Generated Swagger client from service-broker commit 814f6cac25d7b8aef6e71aa89b6ba9ebecbfff9e (#402)

* Generated Swagger client from service-broker commit d82c42a9b20ab1dcd2188c89e0b0a3c8ea8db1ff (#403)

* Generated Swagger client from service-broker commit ad5b24d0dca3b490cb45eadc0284d9bbcfbcea4e (#404)

* Generated Swagger client from service-broker commit 5fa65c3c11cd0c1479d3c3e135aa62c79cfd84bf (#405)

* Generated Swagger client from service-broker commit c455f6094ce91e25678e3fe9575767c3122cf837 (#406)

* Generated Swagger client from service-broker commit f19df27ca2e676ba6cb9f5e73036f4536d5c050c (#407)

* Generated Swagger client from service-broker commit f856adaa7760209889781f329a122db016cc5587 (#408)

* Generated Swagger client from service-broker commit b7a20105660b86a198fa90be0e47093ac3ff9a5d (#409)

---------

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Yussuf Shaikh <[email protected]>
Co-authored-by: powervs-ibm <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Yussuf Shaikh <[email protected]>
Co-authored-by: ismirlia <[email protected]>
Co-authored-by: powervs-ibm <[email protected]>
  • Loading branch information
6 people authored Jun 18, 2024
1 parent 7512fac commit b49e3fc
Show file tree
Hide file tree
Showing 394 changed files with 14,904 additions and 6,287 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
Expand All @@ -39,4 +39,4 @@ jobs:
run: go test -v `go list ./... | grep -v '/power/' | grep -v examples`

- name: Coverage
run: go test `go list ./... | grep -v '/power/' | grep -v examples` -coverprofile=profile.cov && go tool cover -func profile.cov
run: go test `go list ./... | grep -v '/power/' | grep -v examples` -coverprofile=profile.cov && go tool cover -func profile.cov
193 changes: 193 additions & 0 deletions clients/instance/ibm-pi-host-groups.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,193 @@
package instance

import (
"context"
"fmt"

"github.com/IBM-Cloud/power-go-client/helpers"
"github.com/IBM-Cloud/power-go-client/ibmpisession"
"github.com/IBM-Cloud/power-go-client/power/client/host_groups"
"github.com/IBM-Cloud/power-go-client/power/models"
)

// IBMPIHostGroupsClient
type IBMPIHostGroupsClient struct {
IBMPIClient
}

// NewIBMPIHostGroupsClient
func NewIBMPIHostGroupsClient(ctx context.Context, sess *ibmpisession.IBMPISession, cloudInstanceID string) *IBMPIHostGroupsClient {
return &IBMPIHostGroupsClient{
*NewIBMPIClient(ctx, sess, cloudInstanceID),
}
}

// Get All available hosts
func (f *IBMPIHostGroupsClient) GetAvailableHosts() (models.AvailableHostList, error) {
if f.session.IsOnPrem() {
return nil, fmt.Errorf("operation not supported in satellite location, check documentation")
}
params := host_groups.NewV1AvailableHostsParams().WithContext(f.ctx).WithTimeout(helpers.PIGetTimeOut)
resp, err := f.session.Power.HostGroups.V1AvailableHosts(params, f.session.AuthInfo(f.cloudInstanceID))
if err != nil {
return nil, ibmpisession.SDKFailWithAPIError(err, fmt.Errorf("failed to Get available hosts for %s: %w", f.cloudInstanceID, err))
}

if resp == nil || resp.Payload == nil {
return nil, fmt.Errorf("failed to get available hosts")
}
return resp.Payload, nil
}

// Get all host groups
func (f *IBMPIHostGroupsClient) GetHostGroups() (models.HostGroupList, error) {
if f.session.IsOnPrem() {
return nil, fmt.Errorf("operation not supported in satellite location, check documentation")
}
params := host_groups.NewV1HostGroupsGetParams().WithContext(f.ctx).WithTimeout(helpers.PIGetTimeOut)
resp, err := f.session.Power.HostGroups.V1HostGroupsGet(params, f.session.AuthInfo(f.cloudInstanceID))
if err != nil {
return nil, ibmpisession.SDKFailWithAPIError(err, fmt.Errorf("failed to get Host groups for %s: %w", f.cloudInstanceID, err))
}

if resp == nil || resp.Payload == nil {
return nil, fmt.Errorf("failed to get host groups")
}
return resp.Payload, nil
}

// Create a host group
func (f *IBMPIHostGroupsClient) CreateHostGroup(body *models.HostGroupCreate) (*models.HostGroup, error) {
if f.session.IsOnPrem() {
return nil, fmt.Errorf("operation not supported in satellite location, check documentation")
}
params := host_groups.NewV1HostGroupsPostParams().WithContext(f.ctx).WithTimeout(helpers.PICreateTimeOut).WithBody(body)
resp, err := f.session.Power.HostGroups.V1HostGroupsPost(params, f.session.AuthInfo(f.cloudInstanceID))
if err != nil {
return nil, ibmpisession.SDKFailWithAPIError(err, fmt.Errorf("failed to create host group for %s: %w", f.cloudInstanceID, err))
}

if resp == nil || resp.Payload == nil {
return nil, fmt.Errorf("failed to create host groups")
}
return resp.Payload, nil
}

// Update a host group
func (f *IBMPIHostGroupsClient) UpdateHostGroup(body *models.HostGroupShareOp, id string) (*models.HostGroup, error) {
if f.session.IsOnPrem() {
return nil, fmt.Errorf("operation not supported in satellite location, check documentation")
}
params := host_groups.NewV1HostGroupsIDPutParams().WithContext(f.ctx).WithTimeout(helpers.PICreateTimeOut).WithBody(body).WithHostGroupID(id)
resp, err := f.session.Power.HostGroups.V1HostGroupsIDPut(params, f.session.AuthInfo(f.cloudInstanceID))
if err != nil {
return nil, ibmpisession.SDKFailWithAPIError(err, fmt.Errorf("failed to update host group for %s: %w", f.cloudInstanceID, err))
}

if resp == nil || resp.Payload == nil {
return nil, fmt.Errorf("failed to update host groups")
}
return resp.Payload, nil
}

// Get a host group
func (f *IBMPIHostGroupsClient) GetHostGroup(id string) (*models.HostGroup, error) {
if f.session.IsOnPrem() {
return nil, fmt.Errorf("operation not supported in satellite location, check documentation")
}
params := host_groups.NewV1HostGroupsIDGetParams().WithContext(f.ctx).WithTimeout(helpers.PIGetTimeOut).WithHostGroupID(id)
resp, err := f.session.Power.HostGroups.V1HostGroupsIDGet(params, f.session.AuthInfo(f.cloudInstanceID))
if err != nil {
return nil, ibmpisession.SDKFailWithAPIError(err, fmt.Errorf("failed to get host group %s for %s: %w", id, f.cloudInstanceID, err))
}

if resp == nil || resp.Payload == nil {
return nil, fmt.Errorf("failed to get host group %s", id)
}
return resp.Payload, nil
}

// Get all hosts
func (f *IBMPIHostGroupsClient) GetHosts() (models.HostList, error) {
if f.session.IsOnPrem() {
return nil, fmt.Errorf("operation not supported in satellite location, check documentation")
}
params := host_groups.NewV1HostsGetParams().WithContext(f.ctx).WithTimeout(helpers.PIGetTimeOut)
resp, err := f.session.Power.HostGroups.V1HostsGet(params, f.session.AuthInfo(f.cloudInstanceID))
if err != nil {
return nil, ibmpisession.SDKFailWithAPIError(err, fmt.Errorf("failed to get hosts for %s: %w", f.cloudInstanceID, err))
}

if resp == nil || resp.Payload == nil {
return nil, fmt.Errorf("failed to get hosts")
}
return resp.Payload, nil
}

// Create a host
func (f *IBMPIHostGroupsClient) CreateHost(body *models.HostCreate) (models.HostList, error) {
if f.session.IsOnPrem() {
return nil, fmt.Errorf("operation not supported in satellite location, check documentation")
}
params := host_groups.NewV1HostsPostParams().WithContext(f.ctx).WithTimeout(helpers.PIGetTimeOut).WithBody(body)
resp, err := f.session.Power.HostGroups.V1HostsPost(params, f.session.AuthInfo(f.cloudInstanceID))
if err != nil {
return nil, ibmpisession.SDKFailWithAPIError(err, fmt.Errorf("failed to create a host for %s: %w", f.cloudInstanceID, err))
}

if resp == nil || resp.Payload == nil {
return nil, fmt.Errorf("failed to create a host")
}
return resp.Payload, nil
}

// Get a host
func (f *IBMPIHostGroupsClient) GetHost(id string) (*models.Host, error) {
if f.session.IsOnPrem() {
return nil, fmt.Errorf("operation not supported in satellite location, check documentation")
}
params := host_groups.NewV1HostsIDGetParams().WithContext(f.ctx).WithTimeout(helpers.PIGetTimeOut).WithHostID(id)
resp, err := f.session.Power.HostGroups.V1HostsIDGet(params, f.session.AuthInfo(f.cloudInstanceID))
if err != nil {
return nil, ibmpisession.SDKFailWithAPIError(err, fmt.Errorf("failed to get host %s for %s: %w", id, f.cloudInstanceID, err))
}

if resp == nil || resp.Payload == nil {
return nil, fmt.Errorf("failed to get host %s", id)
}
return resp.Payload, nil
}

// Update a host
func (f *IBMPIHostGroupsClient) UpdateHost(body *models.HostPut, id string) (*models.Host, error) {
if f.session.IsOnPrem() {
return nil, fmt.Errorf("operation not supported in satellite location, check documentation")
}
params := host_groups.NewV1HostsIDPutParams().WithContext(f.ctx).WithTimeout(helpers.PIGetTimeOut).WithHostID(id).WithBody(body)
resp, err := f.session.Power.HostGroups.V1HostsIDPut(params, f.session.AuthInfo(f.cloudInstanceID))
if err != nil {
return nil, ibmpisession.SDKFailWithAPIError(err, fmt.Errorf("failed to update host %s for %s: %w", id, f.cloudInstanceID, err))
}

if resp == nil || resp.Payload == nil {
return nil, fmt.Errorf("failed to update host %s", id)
}
return resp.Payload, nil
}

// Delete a host
func (f *IBMPIHostGroupsClient) DeleteHost(id string) error {
if f.session.IsOnPrem() {
return fmt.Errorf("operation not supported in satellite location, check documentation")
}
params := host_groups.NewV1HostsIDDeleteParams().WithContext(f.ctx).WithTimeout(helpers.PIGetTimeOut).WithHostID(id)
resp, err := f.session.Power.HostGroups.V1HostsIDDelete(params, f.session.AuthInfo(f.cloudInstanceID))
if err != nil {
return ibmpisession.SDKFailWithAPIError(err, fmt.Errorf("failed to delete host %s for %s: %w", id, f.cloudInstanceID, err))
}

if resp == nil || resp.Payload == nil {
return fmt.Errorf("failed to delete host %s", id)
}
return nil
}
8 changes: 8 additions & 0 deletions clients/instance/ibm-pi-image.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ func (f *IBMPIImageClient) Create(body *models.CreateImage) (*models.Image, erro

// Import an Image
func (f *IBMPIImageClient) CreateCosImage(body *models.CreateCosImageImportJob) (imageJob *models.JobReference, err error) {
// Check for satellite differences in this endpoint
if !f.session.IsOnPrem() && body.Checksum {
return nil, fmt.Errorf("checksum parameter is not supported off-premise")
}
params := p_cloud_images.NewPcloudV1CloudinstancesCosimagesPostParams().
WithContext(f.ctx).WithTimeout(helpers.PICreateTimeOut).
WithCloudInstanceID(f.cloudInstanceID).WithBody(body)
Expand All @@ -94,6 +98,10 @@ func (f *IBMPIImageClient) CreateCosImage(body *models.CreateCosImageImportJob)

// Export an Image
func (f *IBMPIImageClient) ExportImage(id string, body *models.ExportImage) (*models.JobReference, error) {
// Check for satellite differences in this endpoint
if !f.session.IsOnPrem() && body.Checksum {
return nil, fmt.Errorf("checksum parameter is not supported off-premise")
}
params := p_cloud_images.NewPcloudV2ImagesExportPostParams().
WithContext(f.ctx).WithTimeout(helpers.PICreateTimeOut).
WithCloudInstanceID(f.cloudInstanceID).WithImageID(id).WithBody(body)
Expand Down
8 changes: 6 additions & 2 deletions clients/instance/ibm-pi-instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ func (f *IBMPIInstanceClient) GetAll() (*models.PVMInstances, error) {
// Create an Instance
func (f *IBMPIInstanceClient) Create(body *models.PVMInstanceCreate) (*models.PVMInstanceList, error) {
// Check for satellite differences in this endpoint
if f.session.IsOnPrem() && (body.SoftwareLicenses != nil || body.SharedProcessorPool != "") {
return nil, fmt.Errorf("software licenses and shared processor pool parameters are not supported in satellite location, check documentation")
if f.session.IsOnPrem() && body.DeploymentTarget != nil {
return nil, fmt.Errorf("deployment target parameter is not supported in satellite location, check documentation")
}
params := p_cloud_p_vm_instances.NewPcloudPvminstancesPostParams().
WithContext(f.ctx).WithTimeout(helpers.PICreateTimeOut).
Expand Down Expand Up @@ -176,6 +176,10 @@ func (f *IBMPIInstanceClient) UpdateConsoleLanguage(id string, body *models.Cons

// Capture an Instance
func (f *IBMPIInstanceClient) CaptureInstanceToImageCatalog(id string, body *models.PVMInstanceCapture) error {
// Check for satellite differences in this endpoint
if !f.session.IsOnPrem() && body.Checksum {
return fmt.Errorf("checksum parameter is not supported off-premise")
}
params := p_cloud_p_vm_instances.NewPcloudPvminstancesCapturePostParams().
WithContext(f.ctx).WithTimeout(helpers.PIGetTimeOut).
WithCloudInstanceID(f.cloudInstanceID).WithPvmInstanceID(id).
Expand Down
17 changes: 3 additions & 14 deletions clients/instance/ibm-pi-shared-processor-pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ func NewIBMPISharedProcessorPoolClient(ctx context.Context, sess *ibmpisession.I

// Get a PI Shared Processor Pool
func (f *IBMPISharedProcessorPoolClient) Get(id string) (*models.SharedProcessorPoolDetail, error) {
if f.session.IsOnPrem() {
return nil, fmt.Errorf("operation not supported in satellite location, check documentation")
}
params := p_cloud_shared_processor_pools.NewPcloudSharedprocessorpoolsGetParams().
WithContext(f.ctx).WithTimeout(helpers.PIGetTimeOut).
WithCloudInstanceID(f.cloudInstanceID).WithSharedProcessorPoolID(id)
Expand All @@ -44,9 +41,6 @@ func (f *IBMPISharedProcessorPoolClient) Get(id string) (*models.SharedProcessor

// Get All Shared Processor Pools
func (f *IBMPISharedProcessorPoolClient) GetAll() (*models.SharedProcessorPools, error) {
if f.session.IsOnPrem() {
return nil, fmt.Errorf("operation not supported in satellite location, check documentation")
}
params := p_cloud_shared_processor_pools.NewPcloudSharedprocessorpoolsGetallParams().
WithContext(f.ctx).WithTimeout(helpers.PIGetTimeOut).
WithCloudInstanceID(f.cloudInstanceID)
Expand All @@ -62,8 +56,9 @@ func (f *IBMPISharedProcessorPoolClient) GetAll() (*models.SharedProcessorPools,

// Create a Shared Processor Pool
func (f *IBMPISharedProcessorPoolClient) Create(body *models.SharedProcessorPoolCreate) (*models.SharedProcessorPool, error) {
if f.session.IsOnPrem() {
return nil, fmt.Errorf("operation not supported in satellite location, check documentation")
// Check for satellite differences in this endpoint
if f.session.IsOnPrem() && body.HostID != "" {
return nil, fmt.Errorf("host id parameter is not supported in satellite location, check documentation")
}
params := p_cloud_shared_processor_pools.NewPcloudSharedprocessorpoolsPostParams().
WithContext(f.ctx).WithTimeout(helpers.PICreateTimeOut).
Expand All @@ -80,9 +75,6 @@ func (f *IBMPISharedProcessorPoolClient) Create(body *models.SharedProcessorPool

// Delete a Shared Processor Pool
func (f *IBMPISharedProcessorPoolClient) Delete(id string) error {
if f.session.IsOnPrem() {
return fmt.Errorf("operation not supported in satellite location, check documentation")
}
params := p_cloud_shared_processor_pools.NewPcloudSharedprocessorpoolsDeleteParams().
WithContext(f.ctx).WithTimeout(helpers.PIDeleteTimeOut).
WithCloudInstanceID(f.cloudInstanceID).WithSharedProcessorPoolID(id)
Expand All @@ -95,9 +87,6 @@ func (f *IBMPISharedProcessorPoolClient) Delete(id string) error {

// Update a PI Shared Processor Pool
func (f *IBMPISharedProcessorPoolClient) Update(id string, body *models.SharedProcessorPoolUpdate) (*models.SharedProcessorPool, error) {
if f.session.IsOnPrem() {
return nil, fmt.Errorf("operation not supported in satellite location, check documentation")
}
params := p_cloud_shared_processor_pools.NewPcloudSharedprocessorpoolsPutParams().
WithContext(f.ctx).WithTimeout(helpers.PIUpdateTimeOut).
WithCloudInstanceID(f.cloudInstanceID).WithBody(body).WithSharedProcessorPoolID(id)
Expand Down
62 changes: 62 additions & 0 deletions examples/host-groups/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
package main

import (
"context"
"log"

v "github.com/IBM-Cloud/power-go-client/clients/instance"
ps "github.com/IBM-Cloud/power-go-client/ibmpisession"
"github.com/IBM/go-sdk-core/v5/core"
)

func main() {
//session Inputs
// < IAM TOKEN >
// token := ""
apiKey := ""
region := " < REGION > "
zone := " < ZONE > "
accountID := " < ACCOUNT ID > "
url := region + ".power-iaas.test.cloud.ibm.com"

// dr location inputs
piID := " < POWER INSTANCE ID > "

// authenticator := &core.BearerTokenAuthenticator{
// BearerToken: token,
// }
authenticator := &core.IamAuthenticator{
ApiKey: apiKey,
// Uncomment for test environment
URL: "https://iam.test.cloud.ibm.com",
}

// Create the session
options := &ps.IBMPIOptions{
Authenticator: authenticator,
UserAccount: accountID,
Zone: zone,
URL: url,
Debug: true,
}
session, err := ps.NewIBMPISession(options)
if err != nil {
log.Fatal(err)
}
powerClient := v.NewIBMPIHostGroupsClient(context.Background(), session, piID)
if err != nil {
log.Fatal(err)
}

getAllAvailableHost, err := powerClient.GetAvailableHosts()
if err != nil {
log.Fatal(err)
}
log.Printf("***************[0]****************** %+v \n", getAllAvailableHost)

getHostGroups, err := powerClient.GetHostGroups()
if err != nil {
log.Fatal(err)
}
log.Printf("***************[1]****************** %+v \n", getHostGroups)
}
Loading

0 comments on commit b49e3fc

Please sign in to comment.