update-api-version

command
v1.44.1-0...-df9783c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 18, 2024 License: MPL-2.0 Imports: 15 Imported by: 0

README

Tool: update-api-version

This tool automatically updates import references from one API version to another API version when using hashicorp/go-azure-sdk.

This works against a Service and takes both the old and the new API versions, for example:

./update-api-version -service="advisor" -old-api-version="2020-01-01" -new-api-version="2022-01-01"

The arguments are:

  • service - the name of the Service Package (e.g. compute, network etc).
  • old-api-version - the existing API version (for example 2020-01-01 or 2020-01-01-preview) which should be replaced.
  • new-api-version - the new API version which should be used in place of the value for old-api-version.

This tool supports updating both explicit SDK references, that is:

import (
    "github.com/hashicorp/go-azure-sdk/resource-manager/{service}/{api-version}/{sdk}"
)

as well as Meta Clients (which includes updating the import alias):

import (
    service_api_version "github.com/hashicorp/go-azure-sdk/resource-manager/{service}/{api-version}"
)

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL