Skip to content

Commit

Permalink
feat(spec): updated the sdk as per the api spec released on 2023-11-22 (
Browse files Browse the repository at this point in the history
#82)

* feat(spec): updated the sdk as per the api spec released on 2023-11-15

Signed-off-by: Ujjwal Kumar <[email protected]>

* updated travis to python3 and jammy

Signed-off-by: Ujjwal Kumar <[email protected]>

* feat(spec): updated the sdk as per the api spec released on 2023-11-22

Signed-off-by: Ujjwal Kumar <[email protected]>

---------

Signed-off-by: Ujjwal Kumar <[email protected]>
  • Loading branch information
ujjwal-ibm authored Nov 24, 2023
1 parent f734455 commit f350312
Show file tree
Hide file tree
Showing 10 changed files with 619 additions and 331 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: go

dist: bionic
dist: jammy

notifications:
email: true
Expand All @@ -16,7 +16,7 @@ env:

before_install:
- sudo apt-get update
- sudo apt-get install python
- sudo apt-get install python3
- nvm install 14
- npm install

Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/IBM/vpc-go-sdk)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)

# IBM Cloud VPC Go SDK Version 0.43.0
# IBM Cloud VPC Go SDK Version 0.44.0
Go client library to interact with the various [IBM Cloud VPC Services APIs](https://cloud.ibm.com/apidocs?category=vpc).

**Note:** Given the current version of all VPC SDKs across supported languages and the current VPC API specification, we retracted the vpc-go-sdk version 1.x to version v0.6.0, which had the same features as v1.0.1.
Consider using v0.43.0 from now on. Refrain from using commands like `go get -u ..` and `go get ..@latest` on go 1.14 and lower as you will not get the latest release.
Consider using v0.44.0 from now on. Refrain from using commands like `go get -u ..` and `go get ..@latest` on go 1.14 and lower as you will not get the latest release.

This SDK uses [Semantic Versioning](https://semver.org), and as such there may be backward-incompatible changes for any new `0.y.z` version.
## Table of Contents
Expand Down Expand Up @@ -64,7 +64,7 @@ Use this command to download and install the VPC Go SDK service to allow your Go
use it:

```
go get github.com/IBM/vpc-go-sdk@v0.43.0
go get github.com/IBM/vpc-go-sdk@v0.44.0
```


Expand All @@ -90,7 +90,7 @@ to your `Gopkg.toml` file. Here is an example:
```
[[constraint]]
name = "github.com/IBM/vpc-go-sdk/"
version = "0.43.0"
version = "0.44.0"
```

Then run `dep ensure`.
Expand Down
6 changes: 0 additions & 6 deletions common/headers.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ const (

SDK_NAME = "vpc-go-sdk"

X_CORRELATION_ID = "X-Correlation-Id"

X_REQUEST_ID = "X-Request-Id"
)

Expand Down Expand Up @@ -42,7 +40,6 @@ func GetSdkHeaders(serviceName string, serviceVersion string, operationId string
sdkHeaders := make(map[string]string)

sdkHeaders[HEADER_NAME_USER_AGENT] = GetUserAgentInfo()
sdkHeaders[X_CORRELATION_ID] = GetNewXCorrelationID()
sdkHeaders[X_REQUEST_ID] = GetNewXRequestID()

return sdkHeaders
Expand All @@ -53,9 +50,6 @@ var UserAgent string = fmt.Sprintf("%s-%s %s", SDK_NAME, Version, GetSystemInfo(
func GetUserAgentInfo() string {
return UserAgent
}
func GetNewXCorrelationID() string {
return uuid.New().String()
}
func GetNewXRequestID() string {
return uuid.New().String()
}
Expand Down
2 changes: 0 additions & 2 deletions common/headers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ func TestGetSdkHeaders(t *testing.T) {

_, foundIt = headers[HEADER_NAME_USER_AGENT]
assert.True(t, foundIt)
_, foundIt = headers[X_CORRELATION_ID]
assert.True(t, foundIt)
_, foundIt = headers[X_REQUEST_ID]
assert.True(t, foundIt)
}
2 changes: 1 addition & 1 deletion common/version.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package common

// Version of the SDK
const Version = "0.43.0"
const Version = "0.44.0"
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/IBM/vpc-go-sdk
go 1.18

require (
github.com/IBM/go-sdk-core/v5 v5.13.4
github.com/IBM/go-sdk-core/v5 v5.14.1
github.com/go-openapi/strfmt v0.21.5
github.com/google/uuid v1.1.1
github.com/onsi/ginkgo v1.16.5
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
github.com/IBM/go-sdk-core/v5 v5.13.4 h1:kJvBNQOwhFRkXCPapjNvKVC7n7n2vd1Nr6uUtDZGcfo=
github.com/IBM/go-sdk-core/v5 v5.13.4/go.mod h1:gKRSB+YyKsGlRQW7v5frlLbue5afulSvrRa4O26o4MM=
github.com/IBM/go-sdk-core/v5 v5.14.1 h1:WR1r0zz+gDW++xzZjF41r9ueY4JyjS2vgZjiYs8lO3c=
github.com/IBM/go-sdk-core/v5 v5.14.1/go.mod h1:MUvIr/1mgGh198ZXL+ByKz9Qs1JoEh80v/96x8jPXNY=
github.com/asaskevich/govalidator v0.0.0-20200907205600-7a23bdc65eef/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw=
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 h1:DklsrG3dyBCFEj5IhUbnKptjxatkF07cF2ak3yi77so=
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw=
Expand Down
Loading

0 comments on commit f350312

Please sign in to comment.