Skip to content

Commit

Permalink
fix(deps): update module github.com/equinix/equinix-sdk-go to v0.45.0 (
Browse files Browse the repository at this point in the history
…#759)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/equinix/equinix-sdk-go](https://redirect.github.com/equinix/equinix-sdk-go)
| `v0.44.0` -> `v0.45.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fequinix%2fequinix-sdk-go/v0.45.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.45.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.44.0/v0.45.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.44.0/v0.45.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>equinix/equinix-sdk-go
(github.com/equinix/equinix-sdk-go)</summary>

###
[`v0.45.0`](https://redirect.github.com/equinix/equinix-sdk-go/releases/tag/v0.45.0)

[Compare
Source](https://redirect.github.com/equinix/equinix-sdk-go/compare/v0.44.2...v0.45.0)

##### Features

- API Sync by GitHub Action for
[@&#8203;sbhatnagar-equinix](https://redirect.github.com/sbhatnagar-equinix)
([#&#8203;79](https://redirect.github.com/equinix/equinix-sdk-go/issues/79))
([6bb8a81](https://redirect.github.com/equinix/equinix-sdk-go/commit/6bb8a81dfcf675ebfa2b9c31a06ffc6279e0c896))

###
[`v0.44.2`](https://redirect.github.com/equinix/equinix-sdk-go/releases/tag/v0.44.2)

[Compare
Source](https://redirect.github.com/equinix/equinix-sdk-go/compare/v0.44.1...v0.44.2)

#####
[0.44.2](https://redirect.github.com/equinix/equinix-sdk-go/compare/v0.44.1...v0.44.2)
(2024-09-10)

##### Bug Fixes

- Patch change operation models
([#&#8203;78](https://redirect.github.com/equinix/equinix-sdk-go/issues/78))
([5641132](https://redirect.github.com/equinix/equinix-sdk-go/commit/5641132f2fa29b00d51b7100b9b5dbf9de35cf61))

###
[`v0.44.1`](https://redirect.github.com/equinix/equinix-sdk-go/releases/tag/v0.44.1)

[Compare
Source](https://redirect.github.com/equinix/equinix-sdk-go/compare/v0.44.0...v0.44.1)

#####
[0.44.1](https://redirect.github.com/equinix/equinix-sdk-go/compare/v0.44.0...v0.44.1)
(2024-08-22)

##### Bug Fixes

- Validate connection patch
([#&#8203;76](https://redirect.github.com/equinix/equinix-sdk-go/issues/76))
([d2e244f](https://redirect.github.com/equinix/equinix-sdk-go/commit/d2e244f6b8d47d6a2077ec28098ae365be1389f1))

</details>

---

### 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 is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/equinix/terraform-provider-equinix).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4yNi4xIiwidXBkYXRlZEluVmVyIjoiMzguODAuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Charles Treatman <ctreatman@equinix.com>
  • Loading branch information
renovate[bot] and ctreatma authored Sep 19, 2024
1 parent 16ba618 commit c3324ae
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 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/equinix/terraform-provider-equinix
go 1.22

require (
github.com/equinix/equinix-sdk-go v0.44.0
github.com/equinix/equinix-sdk-go v0.45.0
github.com/equinix/ne-go v1.17.0
github.com/equinix/oauth2-go v1.0.0
github.com/equinix/rest-go v1.3.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ github.com/dnaeon/go-vcr v1.2.0 h1:zHCHvJYTMh1N7xnV7zf1m1GPBF9Ad0Jk/whtQ1663qI=
github.com/dnaeon/go-vcr v1.2.0/go.mod h1:R4UdLID7HZT3taECzJs4YgbbH6PIGXB6W/sc5OLb6RQ=
github.com/emirpasic/gods v1.18.1 h1:FXtiHYKDGKCW2KzwZKx0iC0PQmdlorYgdFG9jPXJ1Bc=
github.com/emirpasic/gods v1.18.1/go.mod h1:8tpGGwCnJ5H4r6BWwaV6OrWmMoPhUl5jm/FMNAnJvWQ=
github.com/equinix/equinix-sdk-go v0.44.0 h1:v4ejvEGC6TYiwQ29NW4zaq7SlnqLe9SJmfLb4aanbkQ=
github.com/equinix/equinix-sdk-go v0.44.0/go.mod h1:hEb3XLaedz7xhl/dpPIS6eOIiXNPeqNiVoyDrT6paIg=
github.com/equinix/equinix-sdk-go v0.45.0 h1:M1moRw4Zt/nkxskDqzslfBc5TgB+QbqBiqBEfPkhl/Y=
github.com/equinix/equinix-sdk-go v0.45.0/go.mod h1:hEb3XLaedz7xhl/dpPIS6eOIiXNPeqNiVoyDrT6paIg=
github.com/equinix/ne-go v1.17.0 h1:+wZq0GNognpiTHTsBXtATOCphTFvnowF046NzQXj0n0=
github.com/equinix/ne-go v1.17.0/go.mod h1:eHkkxM4nbTB7DZ9X9zGnwfYnxIJWIsU3aHA+FAoZ1EI=
github.com/equinix/oauth2-go v1.0.0 h1:fHtAPGq82PdgtK5vEThs8Vwz6f7D/8SX4tE3NJu+KcU=
Expand Down
11 changes: 6 additions & 5 deletions internal/resources/metal/project/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ package project

import (
"context"
"github.com/equinix/equinix-sdk-go/services/metalv1"
"path"
"strings"
"time"

"github.com/equinix/equinix-sdk-go/services/metalv1"

fwtypes "github.com/equinix/terraform-provider-equinix/internal/framework/types"
"github.com/hashicorp/terraform-plugin-framework/diag"
"github.com/hashicorp/terraform-plugin-framework/types"
Expand Down Expand Up @@ -50,8 +51,8 @@ func (m *ResourceModel) parse(ctx context.Context, project *metalv1.Project, bgp
m.Name = types.StringValue(project.GetName())
m.Created = types.StringValue(project.GetCreatedAt().Format(time.RFC3339))
m.Updated = types.StringValue(project.GetUpdatedAt().Format(time.RFC3339))
m.BackendTransfer = types.BoolValue(project.AdditionalProperties["backend_transfer_enabled"].(bool)) // No backend_transfer_enabled property in API spec
m.OrganizationID = types.StringValue(path.Base(project.Organization.AdditionalProperties["href"].(string)))
m.BackendTransfer = types.BoolValue(project.GetBackendTransferEnabled())
m.OrganizationID = types.StringValue(path.Base(project.Organization.GetHref()))

m.PaymentMethodID = types.StringValue("")
if len(project.PaymentMethod.GetHref()) != 0 {
Expand All @@ -74,8 +75,8 @@ func (m *DataSourceModel) parse(ctx context.Context, project *metalv1.Project, b
m.Name = types.StringValue(project.GetName())
m.Created = types.StringValue(project.GetCreatedAt().Format(time.RFC3339))
m.Updated = types.StringValue(project.GetUpdatedAt().Format(time.RFC3339))
m.BackendTransfer = types.BoolValue(project.AdditionalProperties["backend_transfer_enabled"].(bool)) // No backend_transfer_enabled property in API spec
m.OrganizationID = types.StringValue(path.Base(project.Organization.AdditionalProperties["href"].(string)))
m.BackendTransfer = types.BoolValue(project.GetBackendTransferEnabled())
m.OrganizationID = types.StringValue(path.Base(project.Organization.GetHref()))

m.PaymentMethodID = types.StringValue("")
if len(project.PaymentMethod.GetHref()) != 0 {
Expand Down

0 comments on commit c3324ae

Please sign in to comment.