Skip to content

Commit

Permalink
update template
Browse files Browse the repository at this point in the history
  • Loading branch information
duytiennguyen-okta committed Jan 30, 2023
1 parent 66ab2dc commit 09cd260
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
13 changes: 13 additions & 0 deletions okta/okta.go

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

13 changes: 13 additions & 0 deletions openapi/generator/templates/okta.go.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,19 @@ func (c *Client) GetConfig() *config {
return c.config
}

func (c *Client) SetConfig(conf ...ConfigSetter) (err error) {
config := c.config
for _, confSetter := range conf {
confSetter(config)
}
_, err = validateConfig(config)
if err != nil {
return
}
c.config = config
return
}

// GetRequestExecutor returns underlying request executor
// Deprecated: please use CloneRequestExecutor() to avoid race conditions
func (c *Client) GetRequestExecutor() *RequestExecutor {
Expand Down

0 comments on commit 09cd260

Please sign in to comment.