Skip to content

Commit

Permalink
chore: regenerate code with latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
ctreatma committed Feb 9, 2024
1 parent 3efc5e6 commit 318e828
Show file tree
Hide file tree
Showing 229 changed files with 735 additions and 732 deletions.
14 changes: 7 additions & 7 deletions services/metalv1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,20 +94,20 @@ This API client was generated by the [OpenAPI Generator](https://openapi-generat

Install the following dependencies:

```shell
```sh
go get github.com/stretchr/testify/assert
go get golang.org/x/net/context
```

Put the package under your project folder and add the following in import:

```golang
```go
import metalv1 "github.com/equinix/equinix-sdk-go/services/metalv1"
```

To use a proxy, set the environment variable `HTTP_PROXY`:

```golang
```go
os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")
```

Expand All @@ -119,15 +119,15 @@ Default configuration comes with `Servers` field that contains server objects as

For using other server than the one defined on index 0 set context value `metalv1.ContextServerIndex` of type `int`.

```golang
```go
ctx := context.WithValue(context.Background(), metalv1.ContextServerIndex, 1)
```

### Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value `metalv1.ContextServerVariables` of type `map[string]string`.

```golang
```go
ctx := context.WithValue(context.Background(), metalv1.ContextServerVariables, map[string]string{
"basePath": "v2",
})
Expand All @@ -141,7 +141,7 @@ Each operation can use different server URL defined using `OperationServers` map
An operation is uniquely identified by `"{classname}Service.{nickname}"` string.
Similar rules for overriding default operation server index and variables applies by using `metalv1.ContextOperationServerIndices` and `metalv1.ContextOperationServerVariables` context maps.

```golang
```go
ctx := context.WithValue(context.Background(), metalv1.ContextOperationServerIndices, map[string]int{
"{classname}Service.{nickname}": 2,
})
Expand Down Expand Up @@ -699,7 +699,7 @@ Note, each API key must be added to a map of `map[string]APIKey` where the key i

Example

```golang
```go
auth := context.WithValue(
context.Background(),
metalv1.ContextAPIKeys,
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions services/metalv1/model_address.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions services/metalv1/model_attribute.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions services/metalv1/model_attribute_data.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions services/metalv1/model_auth_token.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions services/metalv1/model_auth_token_input.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions services/metalv1/model_auth_token_list.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions services/metalv1/model_auth_token_project.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions services/metalv1/model_auth_token_user.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions services/metalv1/model_batch.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions services/metalv1/model_batches_list.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions services/metalv1/model_bgp_config.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions services/metalv1/model_bgp_config_request_input.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions services/metalv1/model_bgp_dynamic_neighbor.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 318e828

Please sign in to comment.