Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update module github.com/equinix/equinix-sdk-go to v0.45.0 #480

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions cmd/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import (
"github.com/equinix/metal-cli/internal/ports"
"github.com/equinix/metal-cli/internal/projects"
"github.com/equinix/metal-cli/internal/ssh"
"github.com/equinix/metal-cli/internal/twofa"
"github.com/equinix/metal-cli/internal/users"
"github.com/equinix/metal-cli/internal/virtualcircuit"
"github.com/equinix/metal-cli/internal/vlan"
Expand Down Expand Up @@ -93,7 +92,6 @@ func (cli *Cli) RegisterCommands(client *root.Client) {
projects.NewClient(client, cli.Outputer).NewCommand(),
ips.NewClient(client, cli.Outputer).NewCommand(),
ssh.NewClient(client, cli.Outputer).NewCommand(),
twofa.NewClient(client, cli.Outputer).NewCommand(),
gateway.NewClient(client, cli.Outputer).NewCommand(),
ports.NewClient(client, cli.Outputer).NewCommand(),
interconnections.NewClient(client, cli.Outputer).NewCommand(),
Expand Down
1 change: 0 additions & 1 deletion docs/metal.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ Command line interface for Equinix Metal

### SEE ALSO

* [metal 2fa](metal_2fa.md) - Two-factor Authentication operations: receive, enable, disable.
* [metal capacity](metal_capacity.md) - Capacity operations: get, check
* [metal completion](metal_completion.md) - Generates completion scripts.
* [metal device](metal_device.md) - Device operations: create, get, update, delete, reinstall, start, stop, and reboot.
Expand Down
36 changes: 0 additions & 36 deletions docs/metal_2fa.md

This file was deleted.

50 changes: 0 additions & 50 deletions docs/metal_2fa_disable.md

This file was deleted.

50 changes: 0 additions & 50 deletions docs/metal_2fa_enable.md

This file was deleted.

49 changes: 0 additions & 49 deletions docs/metal_2fa_receive.md

This file was deleted.

3 changes: 1 addition & 2 deletions docs/metal_organization_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Creates an organization.
Creates a new organization with the current user as the organization's owner.

```
metal organization create -n <name> [-d <description>] [-w <website_URL>] [-t <twitter_URL>] [-l <logo_URL>] [flags]
metal organization create -n <name> [-d <description>] [-w <website_URL>] [-t <twitter_URL>] [flags]
```

### Examples
Expand All @@ -25,7 +25,6 @@ metal organization create -n <name> [-d <description>] [-w <website_URL>] [-t <t
```
-d, --description string Description of the organization.
-h, --help help for create
-l, --logo string A Logo image URL.]
-n, --name string Name of the organization.
-t, --twitter string Twitter URL of the organization.
-w, --website string Website URL of the organization.
Expand Down
5 changes: 2 additions & 3 deletions docs/metal_organization_update.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ Updates the specified organization.

### Synopsis

Updates the specified organization. You can update the name, website, Twitter, or logo.
Updates the specified organization. You can update the name, website, or Twitter.

```
metal organization update -i <organization_UUID> [-n <name>] [-d <description>] [-w <website_URL>] [-t <twitter_URL>] [-l <logo_URL>] [flags]
metal organization update -i <organization_UUID> [-n <name>] [-d <description>] [-w <website_URL>] [-t <twitter_URL>] [flags]
```

### Examples
Expand All @@ -23,7 +23,6 @@ metal organization update -i <organization_UUID> [-n <name>] [-d <description>]
-d, --description string User-friendly description of the organization.
-h, --help help for update
-i, --id string An organization UUID.
-l, --logo string A logo image URL for the organization.
-n, --name string New name for the organization.
-t, --twitter string A Twitter URL of the organization.
-w, --website string A website URL for the organization.
Expand Down
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/metal-cli
go 1.22

require (
github.com/equinix/equinix-sdk-go v0.42.0
github.com/equinix/equinix-sdk-go v0.45.0
github.com/olekukonko/tablewriter v0.0.5
github.com/pkg/errors v0.9.1
github.com/spf13/cobra v1.8.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSs
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM=
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.42.0 h1:jjgdFs0rx6nOwsu/dLh6ImopD0M1Rn7QIn9ZSMWzWUc=
github.com/equinix/equinix-sdk-go v0.42.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/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8=
github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0=
github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA=
Expand Down
2 changes: 1 addition & 1 deletion internal/gateway/createbgpneighbours.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (c *Client) CreateBgpNeighbors() *cobra.Command {
return nil
}

bgpNeighbor, _, err := c.VrfService.
bgpNeighbor, _, err := c.Service.
CreateBgpDynamicNeighbor(context.Background(), gatewayId).
BgpDynamicNeighborCreateInput(*metal.NewBgpDynamicNeighborCreateInput(bgpNeighborRange, asn)).
Include(c.Servicer.Includes([]string{"created_by"})).
Expand Down
2 changes: 1 addition & 1 deletion internal/gateway/listbgpneighbours.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func (c *Client) ListBgpNeighbors() *cobra.Command {
RunE: func(cmd *cobra.Command, args []string) error {
cmd.SilenceUsage = true

n, _, err := c.VrfService.
n, _, err := c.Service.
GetBgpDynamicNeighbors(context.Background(), gatewayId).
Include(c.Servicer.Includes([]string{"created_by"})).
Exclude(c.Servicer.Excludes([]string{})).
Expand Down
8 changes: 1 addition & 7 deletions internal/organizations/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,13 @@ func (c *Client) Create() *cobra.Command {
var (
website string
twitter string
logo string
name string
description string
)

// createOrganizationCmd represents the createOrganization command
createOrganizationCmd := &cobra.Command{
Use: `create -n <name> [-d <description>] [-w <website_URL>] [-t <twitter_URL>] [-l <logo_URL>]`,
Use: `create -n <name> [-d <description>] [-w <website_URL>] [-t <twitter_URL>]`,
Short: "Creates an organization.",
Long: "Creates a new organization with the current user as the organization's owner. ",
Example: ` # Creates a new organization named "it-backend-infra":
Expand Down Expand Up @@ -73,10 +72,6 @@ func (c *Client) Create() *cobra.Command {
req.Website = &website
}

if logo != "" {
req.Logo = &logo
}

org, _, err := c.Service.CreateOrganization(context.Background()).OrganizationInput(*req).Include(include).Exclude(exclude).Execute()
if err != nil {
return fmt.Errorf("Could not create Organization: %w", err)
Expand All @@ -95,7 +90,6 @@ func (c *Client) Create() *cobra.Command {
createOrganizationCmd.Flags().StringVarP(&description, "description", "d", "", "Description of the organization.")
createOrganizationCmd.Flags().StringVarP(&website, "website", "w", "", "Website URL of the organization.")
createOrganizationCmd.Flags().StringVarP(&twitter, "twitter", "t", "", "Twitter URL of the organization.")
createOrganizationCmd.Flags().StringVarP(&logo, "logo", "l", "", "A Logo image URL.]")

_ = createOrganizationCmd.MarkFlagRequired("name")
return createOrganizationCmd
Expand Down
11 changes: 3 additions & 8 deletions internal/organizations/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ import (
)

func (c *Client) Update() *cobra.Command {
var organizationID, name, description, twitter, logo, website string
var organizationID, name, description, twitter, website string
// createOrganizationCmd represents the createOrganization command
updateOrganizationCmd := &cobra.Command{
Use: `update -i <organization_UUID> [-n <name>] [-d <description>] [-w <website_URL>] [-t <twitter_URL>] [-l <logo_URL>]`,
Use: `update -i <organization_UUID> [-n <name>] [-d <description>] [-w <website_URL>] [-t <twitter_URL>]`,
Short: "Updates the specified organization.",
Long: "Updates the specified organization. You can update the name, website, Twitter, or logo.",
Long: "Updates the specified organization. You can update the name, website, or Twitter.",
Example: ` # Updates the name of an organization:
metal organization update -i 3bd5bf07-6094-48ad-bd03-d94e8712fdc8 --name test-cluster02`,

Expand All @@ -61,10 +61,6 @@ func (c *Client) Update() *cobra.Command {
req.Twitter = &twitter
}

if logo != "" {
req.Logo = &logo
}

if website != "" {
req.Website = &website
}
Expand All @@ -88,7 +84,6 @@ func (c *Client) Update() *cobra.Command {
updateOrganizationCmd.Flags().StringVarP(&description, "description", "d", "", "User-friendly description of the organization.")
updateOrganizationCmd.Flags().StringVarP(&website, "website", "w", "", "A website URL for the organization.")
updateOrganizationCmd.Flags().StringVarP(&twitter, "twitter", "t", "", "A Twitter URL of the organization.")
updateOrganizationCmd.Flags().StringVarP(&logo, "logo", "l", "", "A logo image URL for the organization.")

_ = updateOrganizationCmd.MarkFlagRequired("id")
return updateOrganizationCmd
Expand Down
Loading
Loading