chore: update openapi ref to latest (#345)

* chore: update openapi ref to latest

* chore: update to openapi master
This commit is contained in:
William Baker
2021-12-21 15:15:50 -05:00
committed by GitHub
parent 327f239c6f
commit 68ac116959
8 changed files with 577 additions and 49 deletions

View File

@ -65,14 +65,14 @@ func (c Client) Create(ctx context.Context, params *CreateParams) error {
return err
}
newTelegraf := api.TelegrafRequest{
newTelegraf := api.TelegrafPluginRequest{
Name: &params.Name,
Description: &params.Desc,
Config: &params.Config,
OrgID: &orgID,
}
graf, err := c.PostTelegrafs(ctx).TelegrafRequest(newTelegraf).Execute()
graf, err := c.PostTelegrafs(ctx).TelegrafPluginRequest(newTelegraf).Execute()
if err != nil {
return fmt.Errorf("failed to create telegraf config %q: %w", params.Name, err)
}