Skip to content

Commit

Permalink
fix(version): Release SDK for API version 2020-07-28 (#10)
Browse files Browse the repository at this point in the history
* fix(version): Release SDK for API version 2020-07-28

* fix(cap): Fix capitalization issue with CidR, cidr to CIDR
  • Loading branch information
astha-jain authored Aug 6, 2020
1 parent 6dfdc5a commit 4550ccc
Show file tree
Hide file tree
Showing 10 changed files with 3,660 additions and 7,071 deletions.
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.14

require (
github.com/IBM/go-sdk-core/v4 v4.0.4
github.com/IBM/go-sdk-core/v4 v4.0.6
github.com/go-openapi/strfmt v0.19.5
github.com/onsi/ginkgo v1.13.0
github.com/onsi/gomega v1.10.1
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/v4 v4.0.4 h1:HP5NEwifM9G4RWaUM8ZvvjJ8haGrjRAi4WnPdmTCyak=
github.com/IBM/go-sdk-core/v4 v4.0.4/go.mod h1:lTUXbqIX6/aAbSCkP6q59+dyFsTwZAc0ewRS2vJWVbg=
github.com/IBM/go-sdk-core/v4 v4.0.6 h1:87OcgjuoUpgEZXygcV94C1xUSZ1Iav+RvARZrVwAve8=
github.com/IBM/go-sdk-core/v4 v4.0.6/go.mod h1:lTUXbqIX6/aAbSCkP6q59+dyFsTwZAc0ewRS2vJWVbg=
github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a h1:idn718Q4B6AGu/h5Sxe66HYVdqdGu2l9Iebqhi/AEoA=
github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
Expand Down
4,747 changes: 1,328 additions & 3,419 deletions vpcclassicv1/vpc_classic_v1.go

Large diffs are not rendered by default.

9 changes: 4 additions & 5 deletions vpcclassicv1/vpc_classic_v1_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,6 @@ func TestVPCResources(t *testing.T) {

t.Run("Create Subnet", func(t *testing.T) {
name := getName("subnet")
fmt.Println("here", *createdVpcID)
res, _, err := CreateSubnet(vpcService, *createdVpcID, name, *defaultZoneName, *skipForMockTesting)
ValidateResponse(t, res, err, POST, detailed, increment)
createdSubnetID = res.ID
Expand Down Expand Up @@ -1105,13 +1104,13 @@ func TestVPCVpn(t *testing.T) {
ValidateResponse(t, res, err, GET, detailed, increment)
})

t.Run("List VpnGateway Connection Local Cidrs", func(t *testing.T) {
res, _, err := ListVPNGatewayConnectionLocalCidrs(vpcService, *createdVpnGatewayID, *createdVpnGatewayConnID)
t.Run("List VpnGateway Connection Local CIDRs", func(t *testing.T) {
res, _, err := ListVPNGatewayConnectionLocalCIDRs(vpcService, *createdVpnGatewayID, *createdVpnGatewayConnID)
ValidateResponse(t, res, err, GET, detailed, increment)
})

t.Run("List VpnGateway Connection Peer Cidrs", func(t *testing.T) {
res, _, err := ListVPNGatewayConnectionPeerCidrs(vpcService, *createdVpnGatewayID, *createdVpnGatewayConnID)
t.Run("List VpnGateway Connection Peer CIDRs", func(t *testing.T) {
res, _, err := ListVPNGatewayConnectionPeerCIDRs(vpcService, *createdVpnGatewayID, *createdVpnGatewayConnID)
ValidateResponse(t, res, err, GET, detailed, increment)
})

Expand Down
22 changes: 11 additions & 11 deletions vpcclassicv1/vpc_classic_v1_integration_utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,7 @@ func GetInstanceInitialization(vpcService *vpcclassicv1.VpcClassicV1, instanceID
// ListNetworkInterfaces GET
// /instances/{instance_id}/network_interfaces
// List all network interfaces on an instance
func ListNetworkInterfaces(vpcService *vpcclassicv1.VpcClassicV1, id string) (netInterfaces *vpcclassicv1.NetworkInterfaceCollection, response *core.DetailedResponse, err error) {
func ListNetworkInterfaces(vpcService *vpcclassicv1.VpcClassicV1, id string) (netInterfaces *vpcclassicv1.NetworkInterfaceUnpaginatedCollection, response *core.DetailedResponse, err error) {
options := &vpcclassicv1.ListInstanceNetworkInterfacesOptions{}
options.SetInstanceID(id)
netInterfaces, response, err = vpcService.ListInstanceNetworkInterfaces(options)
Expand Down Expand Up @@ -1920,9 +1920,9 @@ func CreateVPNGatewayConnection(vpcService *vpcclassicv1.VpcClassicV1, gatewayID
options.SetPeerAddress("192.168.0.1")
options.SetPsk("pre-shared-key")
local := []string{"192.132.0.0/28"}
options.SetLocalCidrs(local)
options.SetLocalCIDRs(local)
peer := []string{"197.155.0.0/28"}
options.SetPeerCidrs(peer)
options.SetPeerCIDRs(peer)
connection, response, err = vpcService.CreateVPNGatewayConnection(options)
return
}
Expand Down Expand Up @@ -1962,14 +1962,14 @@ func UpdateVPNGatewayConnection(vpcService *vpcclassicv1.VpcClassicV1, gatewayID
return
}

// ListVPNGatewayConnectionLocalCidrs GET
// ListVPNGatewayConnectionLocalCIDRs GET
// /vpn_gateways/{vpn_gateway_id}/connections/{id}/local_cidrs
// List all local CIDRs for a resource
func ListVPNGatewayConnectionLocalCidrs(vpcService *vpcclassicv1.VpcClassicV1, gatewayID, connID string) (cidr *vpcclassicv1.VPNGatewayConnectionLocalCidrs, response *core.DetailedResponse, err error) {
options := &vpcclassicv1.ListVPNGatewayConnectionLocalCidrsOptions{}
func ListVPNGatewayConnectionLocalCIDRs(vpcService *vpcclassicv1.VpcClassicV1, gatewayID, connID string) (cidr *vpcclassicv1.VPNGatewayConnectionLocalCIDRs, response *core.DetailedResponse, err error) {
options := &vpcclassicv1.ListVPNGatewayConnectionLocalCIDRsOptions{}
options.SetVPNGatewayID(gatewayID)
options.SetID(connID)
cidr, response, err = vpcService.ListVPNGatewayConnectionLocalCidrs(options)
cidr, response, err = vpcService.ListVPNGatewayConnectionLocalCIDRs(options)
return
}

Expand Down Expand Up @@ -2012,14 +2012,14 @@ func SetVPNGatewayConnectionLocalCidr(vpcService *vpcclassicv1.VpcClassicV1, gat
return
}

// ListVPNGatewayConnectionPeerCidrs GET
// ListVPNGatewayConnectionPeerCIDRs GET
// /vpn_gateways/{vpn_gateway_id}/connections/{id}/peer_cidrs
// List all peer CIDRs for a resource
func ListVPNGatewayConnectionPeerCidrs(vpcService *vpcclassicv1.VpcClassicV1, gatewayID, connID string) (cidr *vpcclassicv1.VPNGatewayConnectionPeerCidrs, response *core.DetailedResponse, err error) {
options := &vpcclassicv1.ListVPNGatewayConnectionPeerCidrsOptions{}
func ListVPNGatewayConnectionPeerCIDRs(vpcService *vpcclassicv1.VpcClassicV1, gatewayID, connID string) (cidr *vpcclassicv1.VPNGatewayConnectionPeerCIDRs, response *core.DetailedResponse, err error) {
options := &vpcclassicv1.ListVPNGatewayConnectionPeerCIDRsOptions{}
options.SetVPNGatewayID(gatewayID)
options.SetID(connID)
cidr, response, err = vpcService.ListVPNGatewayConnectionPeerCidrs(options)
cidr, response, err = vpcService.ListVPNGatewayConnectionPeerCIDRs(options)
return
}

Expand Down
Loading

0 comments on commit 4550ccc

Please sign in to comment.