ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.227.0

This commit is contained in:
speakeasybot
2024-03-27 01:04:55 +00:00
parent 09f023bdea
commit 64d63e5f09
9 changed files with 25 additions and 15 deletions

View File

@@ -3,17 +3,17 @@ id: e742591b-391d-4f4e-8484-d01a093b32ec
management:
docChecksum: e34dac84738ebf2d447ea2b9055a6eeb
docVersion: 0.0.3
speakeasyVersion: 1.215.1
generationVersion: 2.286.4
releaseVersion: 0.7.0
configChecksum: d39fbfbc5f1443a36c3b73aa6888a696
speakeasyVersion: 1.227.0
generationVersion: 2.291.0
releaseVersion: 0.8.0
configChecksum: cf2b262b65e980e20f7b8d5bac0073c9
repoURL: https://github.com/LukeHagar/plexterraform.git
repoSubDirectory: .
published: true
features:
terraform:
constsAndDefaults: 0.1.4
core: 3.11.1
core: 3.12.1
globalSecurity: 2.81.6
globalServerURLs: 2.82.1
methodServerURLs: 2.82.1

View File

@@ -12,7 +12,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: false
terraform:
version: 0.7.0
version: 0.8.0
author: LukeHagar
imports:
option: openapi

View File

@@ -61,7 +61,7 @@ terraform {
required_providers {
PlexAPI = {
source = "LukeHagar/PlexAPI"
version = "0.7.0"
version = "0.8.0"
}
}
}

View File

@@ -143,3 +143,11 @@ Based on:
- Speakeasy CLI 1.215.1 (2.286.4) https://github.com/speakeasy-api/speakeasy
### Generated
- [terraform v0.7.0] .
## 2024-03-27 01:03:57
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.227.0 (2.291.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [terraform v0.8.0] .

View File

@@ -17,7 +17,7 @@ terraform {
required_providers {
PlexAPI = {
source = "LukeHagar/PlexAPI"
version = "0.7.0"
version = "0.8.0"
}
}
}

View File

@@ -2,7 +2,7 @@ terraform {
required_providers {
PlexAPI = {
source = "LukeHagar/PlexAPI"
version = "0.7.0"
version = "0.8.0"
}
}
}

View File

@@ -10,7 +10,7 @@ import (
"strings"
)
func PopulateHeaders(ctx context.Context, req *http.Request, headers interface{}) {
func PopulateHeaders(ctx context.Context, req *http.Request, headers interface{}, globals map[string]map[string]map[string]interface{}) {
headerParamsStructType := reflect.TypeOf(headers)
headerParamsValType := reflect.ValueOf(headers)
@@ -18,6 +18,8 @@ func PopulateHeaders(ctx context.Context, req *http.Request, headers interface{}
fieldType := headerParamsStructType.Field(i)
valType := headerParamsValType.Field(i)
valType = populateFromGlobals(fieldType, valType, "header", globals)
tag := parseParamTag(headerParamTagKey, fieldType, "simple", false)
if tag == nil {
continue

View File

@@ -63,7 +63,7 @@ func (s *Plex) GetPin(ctx context.Context, request operations.GetPinRequest, opt
req.Header.Set("Accept", "application/json")
req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent)
utils.PopulateHeaders(ctx, req, request)
utils.PopulateHeaders(ctx, req, request, nil)
if err := utils.PopulateQueryParams(ctx, req, request, nil); err != nil {
return nil, fmt.Errorf("error populating query params: %w", err)
@@ -178,7 +178,7 @@ func (s *Plex) GetToken(ctx context.Context, request operations.GetTokenRequest,
req.Header.Set("Accept", "application/json")
req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent)
utils.PopulateHeaders(ctx, req, request)
utils.PopulateHeaders(ctx, req, request, nil)
req, err = s.sdkConfiguration.Hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req)
if err != nil {

View File

@@ -267,8 +267,8 @@ func New(opts ...SDKOption) *PlexAPI {
Language: "go",
OpenAPIDocVersion: "0.0.3",
SDKVersion: "0.0.1",
GenVersion: "2.286.4",
UserAgent: "speakeasy-sdk/go 0.0.1 2.286.4 0.0.3 github.com/LukeHagar/terraform-provider-PlexAPI/internal/sdk",
GenVersion: "2.291.0",
UserAgent: "speakeasy-sdk/go 0.0.1 2.291.0 0.0.3 github.com/LukeHagar/terraform-provider-PlexAPI/internal/sdk",
ServerDefaults: []map[string]string{
{
"protocol": "http",