From dc553dbd005878f46fb39e04c44e916c8d96a42f Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 10 May 2024 14:41:10 -0500 Subject: [PATCH] fix(deps): update module github.com/equinix/equinix-sdk-go to v0.35.0 (#450) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [github.com/equinix/equinix-sdk-go](https://togithub.com/equinix/equinix-sdk-go) | `v0.32.0` -> `v0.35.0` | [![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fequinix%2fequinix-sdk-go/v0.35.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fequinix%2fequinix-sdk-go/v0.35.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fequinix%2fequinix-sdk-go/v0.32.0/v0.35.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fequinix%2fequinix-sdk-go/v0.32.0/v0.35.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
equinix/equinix-sdk-go (github.com/equinix/equinix-sdk-go) ### [`v0.35.0`](https://togithub.com/equinix/equinix-sdk-go/releases/tag/v0.35.0) [Compare Source](https://togithub.com/equinix/equinix-sdk-go/compare/v0.34.1...v0.35.0) ##### Features - API Sync by GitHub Action for [@​0xch4z](https://togithub.com/0xch4z) ([#​40](https://togithub.com/equinix/equinix-sdk-go/issues/40)) ([69f97a5](https://togithub.com/equinix/equinix-sdk-go/commit/69f97a56da22b1ae56ecb0c44b692518eb595247)) ### [`v0.34.1`](https://togithub.com/equinix/equinix-sdk-go/releases/tag/v0.34.1) [Compare Source](https://togithub.com/equinix/equinix-sdk-go/compare/v0.34.0...v0.34.1) ##### [0.34.1](https://togithub.com/equinix/equinix-sdk-go/compare/v0.34.0...v0.34.1) (2024-03-06) ##### Bug Fixes - Correct Fabricv4 API Spec via patching to use valid any type ([#​42](https://togithub.com/equinix/equinix-sdk-go/issues/42)) ([c243f46](https://togithub.com/equinix/equinix-sdk-go/commit/c243f46a60c9bd1ea4a1aa99ba5109edd44be810)) ### [`v0.34.0`](https://togithub.com/equinix/equinix-sdk-go/releases/tag/v0.34.0) [Compare Source](https://togithub.com/equinix/equinix-sdk-go/compare/v0.33.0...v0.34.0) ##### Features - API Sync by GitHub Action for [@​ctreatma](https://togithub.com/ctreatma) ([#​34](https://togithub.com/equinix/equinix-sdk-go/issues/34)) ([201c82c](https://togithub.com/equinix/equinix-sdk-go/commit/201c82c6ce7921412992714b3df3166fa16e18f3)) - Onboarding Fabric v4 Service to Equinix-SDK-Go ([#​37](https://togithub.com/equinix/equinix-sdk-go/issues/37)) ([82266c4](https://togithub.com/equinix/equinix-sdk-go/commit/82266c4f3f825b3479fff32fa609df89afebb1f0)) ### [`v0.33.0`](https://togithub.com/equinix/equinix-sdk-go/releases/tag/v0.33.0) [Compare Source](https://togithub.com/equinix/equinix-sdk-go/compare/v0.32.0...v0.33.0) ##### Features - upgrade openapi-generator to latest version ([#​15](https://togithub.com/equinix/equinix-sdk-go/issues/15)) ([725a10a](https://togithub.com/equinix/equinix-sdk-go/commit/725a10a42f51a932e65740cb73c7762b5806a3d7)) **Full Changelog**: https://github.com/equinix/equinix-sdk-go/compare/v0.32.0...v0.33.0
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/equinix/metal-cli). --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Charles Treatman --- go.mod | 4 ++-- go.sum | 4 ++++ internal/interconnections/create.go | 3 ++- internal/virtualcircuit/create.go | 4 ++-- test/helper/helper.go | 2 +- 5 files changed, 11 insertions(+), 6 deletions(-) diff --git a/go.mod b/go.mod index e65d4537..f7151f67 100644 --- a/go.mod +++ b/go.mod @@ -3,13 +3,13 @@ module github.com/equinix/metal-cli go 1.19 require ( - github.com/equinix/equinix-sdk-go v0.32.0 + github.com/equinix/equinix-sdk-go v0.35.0 github.com/olekukonko/tablewriter v0.0.5 github.com/pkg/errors v0.9.1 github.com/spf13/cobra v1.8.0 github.com/spf13/pflag v1.0.5 github.com/spf13/viper v1.18.2 - github.com/stretchr/testify v1.8.4 + github.com/stretchr/testify v1.9.0 golang.org/x/exp v0.0.0-20240119083558-1b970713d09a golang.org/x/term v0.16.0 sigs.k8s.io/yaml v1.3.0 diff --git a/go.sum b/go.sum index 2728e619..595fe10d 100644 --- a/go.sum +++ b/go.sum @@ -6,6 +6,8 @@ github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1 github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/equinix/equinix-sdk-go v0.32.0 h1:zUn0Em5FJe6f6bntftrDBpO9L+XhbpFMPuQ7RKEOgXM= github.com/equinix/equinix-sdk-go v0.32.0/go.mod h1:qnpdRzVftHFNaJFk1VSIrAOTLrIoeDrxzUr3l8ARyvQ= +github.com/equinix/equinix-sdk-go v0.35.0 h1:p/uwA8QPBAuNnKGc3mQkwjw+6++qUadLNnKFQ8jw+wg= +github.com/equinix/equinix-sdk-go v0.35.0/go.mod h1:hEb3XLaedz7xhl/dpPIS6eOIiXNPeqNiVoyDrT6paIg= github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8= github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA= github.com/fsnotify/fsnotify v1.7.0/go.mod h1:40Bi/Hjc2AVfZrqy+aj+yEI+/bRxZnMJyTJwOpGvigM= @@ -58,6 +60,8 @@ github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/ github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= +github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8= github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU= go.uber.org/atomic v1.9.0 h1:ECmE8Bn/WFTYwEW/bpKD3M8VtR/zQVbavAoalC1PYyE= diff --git a/internal/interconnections/create.go b/internal/interconnections/create.go index cfd54254..5ac5f82a 100644 --- a/internal/interconnections/create.go +++ b/internal/interconnections/create.go @@ -4,6 +4,7 @@ import ( "context" "errors" "fmt" + "strconv" metal "github.com/equinix/equinix-sdk-go/services/metalv1" "github.com/spf13/cobra" @@ -46,7 +47,7 @@ func (c *Client) Create() *cobra.Command { ) in.Vlans = vlans // default speed - in.SetSpeed(speed) + in.SetSpeed(strconv.Itoa(int(speed))) createOrganizationInterconnectionRequest. VlanFabricVcCreateInput = in diff --git a/internal/virtualcircuit/create.go b/internal/virtualcircuit/create.go index ca8910fe..c4d6fb01 100644 --- a/internal/virtualcircuit/create.go +++ b/internal/virtualcircuit/create.go @@ -47,7 +47,7 @@ func createVrfVirtualCircuit(vrfInput *metal.VrfVirtualCircuitCreateInput, proje vrfInput.SetMetalIp(metalIP) vrfInput.SetMd5(md5) if speed > 0 { - vrfInput.SetSpeed(int32(speed)) + vrfInput.SetSpeed(strconv.Itoa(speed)) } return metal.VirtualCircuitCreateInput{VrfVirtualCircuitCreateInput: vrfInput} @@ -60,7 +60,7 @@ func createVlanVirtualCircuit(vlanInput *metal.VlanVirtualCircuitCreateInput, vn vlanInput.SetNniVlan(int32(nnVlan)) } if speed > 0 { - vlanInput.SetSpeed(int64(speed)) + vlanInput.SetSpeed(strconv.Itoa(speed)) } vlanInput.SetVnid(vnid) diff --git a/test/helper/helper.go b/test/helper/helper.go index 1d7b4e84..8f757350 100644 --- a/test/helper/helper.go +++ b/test/helper/helper.go @@ -467,7 +467,7 @@ func CreateTestVirtualCircuit(t *testing.T, projectId, connId, portId, vlanId, n vlanVCCreateInput := metalv1.NewVlanVirtualCircuitCreateInput(projectId) vlanVCCreateInput.SetVnid(vlanId) - vlanVCCreateInput.SetSpeed(100) + vlanVCCreateInput.SetSpeed("100") vlanVCCreateInput.SetNniVlan(1110) vlanVCCreateInput.SetName(name)