mirror of
https://github.com/LukeHagar/plexterraform.git
synced 2025-12-06 20:47:43 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.227.0
This commit is contained in:
@@ -3,17 +3,17 @@ id: e742591b-391d-4f4e-8484-d01a093b32ec
|
|||||||
management:
|
management:
|
||||||
docChecksum: e34dac84738ebf2d447ea2b9055a6eeb
|
docChecksum: e34dac84738ebf2d447ea2b9055a6eeb
|
||||||
docVersion: 0.0.3
|
docVersion: 0.0.3
|
||||||
speakeasyVersion: 1.215.1
|
speakeasyVersion: 1.227.0
|
||||||
generationVersion: 2.286.4
|
generationVersion: 2.291.0
|
||||||
releaseVersion: 0.7.0
|
releaseVersion: 0.8.0
|
||||||
configChecksum: d39fbfbc5f1443a36c3b73aa6888a696
|
configChecksum: cf2b262b65e980e20f7b8d5bac0073c9
|
||||||
repoURL: https://github.com/LukeHagar/plexterraform.git
|
repoURL: https://github.com/LukeHagar/plexterraform.git
|
||||||
repoSubDirectory: .
|
repoSubDirectory: .
|
||||||
published: true
|
published: true
|
||||||
features:
|
features:
|
||||||
terraform:
|
terraform:
|
||||||
constsAndDefaults: 0.1.4
|
constsAndDefaults: 0.1.4
|
||||||
core: 3.11.1
|
core: 3.12.1
|
||||||
globalSecurity: 2.81.6
|
globalSecurity: 2.81.6
|
||||||
globalServerURLs: 2.82.1
|
globalServerURLs: 2.82.1
|
||||||
methodServerURLs: 2.82.1
|
methodServerURLs: 2.82.1
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ generation:
|
|||||||
auth:
|
auth:
|
||||||
oAuth2ClientCredentialsEnabled: false
|
oAuth2ClientCredentialsEnabled: false
|
||||||
terraform:
|
terraform:
|
||||||
version: 0.7.0
|
version: 0.8.0
|
||||||
author: LukeHagar
|
author: LukeHagar
|
||||||
imports:
|
imports:
|
||||||
option: openapi
|
option: openapi
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ terraform {
|
|||||||
required_providers {
|
required_providers {
|
||||||
PlexAPI = {
|
PlexAPI = {
|
||||||
source = "LukeHagar/PlexAPI"
|
source = "LukeHagar/PlexAPI"
|
||||||
version = "0.7.0"
|
version = "0.8.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -143,3 +143,11 @@ Based on:
|
|||||||
- Speakeasy CLI 1.215.1 (2.286.4) https://github.com/speakeasy-api/speakeasy
|
- Speakeasy CLI 1.215.1 (2.286.4) https://github.com/speakeasy-api/speakeasy
|
||||||
### Generated
|
### Generated
|
||||||
- [terraform v0.7.0] .
|
- [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] .
|
||||||
@@ -17,7 +17,7 @@ terraform {
|
|||||||
required_providers {
|
required_providers {
|
||||||
PlexAPI = {
|
PlexAPI = {
|
||||||
source = "LukeHagar/PlexAPI"
|
source = "LukeHagar/PlexAPI"
|
||||||
version = "0.7.0"
|
version = "0.8.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ terraform {
|
|||||||
required_providers {
|
required_providers {
|
||||||
PlexAPI = {
|
PlexAPI = {
|
||||||
source = "LukeHagar/PlexAPI"
|
source = "LukeHagar/PlexAPI"
|
||||||
version = "0.7.0"
|
version = "0.8.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import (
|
|||||||
"strings"
|
"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)
|
headerParamsStructType := reflect.TypeOf(headers)
|
||||||
headerParamsValType := reflect.ValueOf(headers)
|
headerParamsValType := reflect.ValueOf(headers)
|
||||||
|
|
||||||
@@ -18,6 +18,8 @@ func PopulateHeaders(ctx context.Context, req *http.Request, headers interface{}
|
|||||||
fieldType := headerParamsStructType.Field(i)
|
fieldType := headerParamsStructType.Field(i)
|
||||||
valType := headerParamsValType.Field(i)
|
valType := headerParamsValType.Field(i)
|
||||||
|
|
||||||
|
valType = populateFromGlobals(fieldType, valType, "header", globals)
|
||||||
|
|
||||||
tag := parseParamTag(headerParamTagKey, fieldType, "simple", false)
|
tag := parseParamTag(headerParamTagKey, fieldType, "simple", false)
|
||||||
if tag == nil {
|
if tag == nil {
|
||||||
continue
|
continue
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ func (s *Plex) GetPin(ctx context.Context, request operations.GetPinRequest, opt
|
|||||||
req.Header.Set("Accept", "application/json")
|
req.Header.Set("Accept", "application/json")
|
||||||
req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent)
|
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 {
|
if err := utils.PopulateQueryParams(ctx, req, request, nil); err != nil {
|
||||||
return nil, fmt.Errorf("error populating query params: %w", err)
|
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("Accept", "application/json")
|
||||||
req.Header.Set("User-Agent", s.sdkConfiguration.UserAgent)
|
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)
|
req, err = s.sdkConfiguration.Hooks.BeforeRequest(hooks.BeforeRequestContext{HookContext: hookCtx}, req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
@@ -267,8 +267,8 @@ func New(opts ...SDKOption) *PlexAPI {
|
|||||||
Language: "go",
|
Language: "go",
|
||||||
OpenAPIDocVersion: "0.0.3",
|
OpenAPIDocVersion: "0.0.3",
|
||||||
SDKVersion: "0.0.1",
|
SDKVersion: "0.0.1",
|
||||||
GenVersion: "2.286.4",
|
GenVersion: "2.291.0",
|
||||||
UserAgent: "speakeasy-sdk/go 0.0.1 2.286.4 0.0.3 github.com/LukeHagar/terraform-provider-PlexAPI/internal/sdk",
|
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{
|
ServerDefaults: []map[string]string{
|
||||||
{
|
{
|
||||||
"protocol": "http",
|
"protocol": "http",
|
||||||
|
|||||||
Reference in New Issue
Block a user