Skip to content

Commit

Permalink
Ran latest generator with version 7.3.0 and ran make fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
MinJiang00 committed Feb 26, 2024
1 parent 26fe0a1 commit df86a33
Show file tree
Hide file tree
Showing 155 changed files with 6,841 additions and 4,474 deletions.
2 changes: 1 addition & 1 deletion dns_config/.openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.0.1
7.3.0
24 changes: 12 additions & 12 deletions dns_config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,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 dns_config "github.com/infobloxopen/bloxone-go-client"
```

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

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

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

### Select Server Configuration

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

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

### Templated Server URL

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

```golang
```go
ctx := context.WithValue(context.Background(), dns_config.ContextServerVariables, map[string]string{
"basePath": "v2",
})
Expand All @@ -60,9 +60,9 @@ Note, enum values are always validated and all unused variables are silently ign

Each operation can use different server URL defined using `OperationServers` map in the `Configuration`.
An operation is uniquely identified by `"{classname}Service.{nickname}"` string.
Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps.
Similar rules for overriding default operation server index and variables applies by using `dns_config.ContextOperationServerIndices` and `dns_config.ContextOperationServerVariables` context maps.

```golang
```go
ctx := context.WithValue(context.Background(), dns_config.ContextOperationServerIndices, map[string]int{
"{classname}Service.{nickname}": 2,
})
Expand Down Expand Up @@ -266,11 +266,11 @@ 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(),
sw.ContextAPIKeys,
map[string]sw.APIKey{
dns_config.ContextAPIKeys,
map[string]dns_config.APIKey{
"Authorization": {Key: "API_KEY_STRING"},
},
)
Expand Down
56 changes: 28 additions & 28 deletions dns_config/api_acl.go

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

56 changes: 28 additions & 28 deletions dns_config/api_auth_nsg.go

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

66 changes: 33 additions & 33 deletions dns_config/api_auth_zone.go

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

Loading

0 comments on commit df86a33

Please sign in to comment.