mirror of
https://github.com/LukeHagar/plexterraform.git
synced 2025-12-07 04:20:54 +00:00
ci: regenerated with OpenAPI Doc 0.0.3, Speakeasy CLI 1.193.4
This commit is contained in:
@@ -1,20 +1,20 @@
|
|||||||
lockVersion: 2.0.0
|
lockVersion: 2.0.0
|
||||||
id: e742591b-391d-4f4e-8484-d01a093b32ec
|
id: e742591b-391d-4f4e-8484-d01a093b32ec
|
||||||
management:
|
management:
|
||||||
docChecksum: 278d186496d83d5830ba4870f8cad39d
|
docChecksum: e34dac84738ebf2d447ea2b9055a6eeb
|
||||||
docVersion: 0.0.3
|
docVersion: 0.0.3
|
||||||
speakeasyVersion: internal
|
speakeasyVersion: internal
|
||||||
generationVersion: 2.269.0
|
generationVersion: 2.272.4
|
||||||
releaseVersion: 0.6.0
|
releaseVersion: 0.6.1
|
||||||
configChecksum: 8b5014a8db27030d0bae86f162af255d
|
configChecksum: e752e44e3eb091bcb6d52058f838ee2f
|
||||||
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.3
|
constsAndDefaults: 0.1.3
|
||||||
core: 3.10.0
|
core: 3.10.2
|
||||||
globalSecurity: 2.81.3
|
globalSecurity: 2.81.4
|
||||||
globalServerURLs: 2.82.1
|
globalServerURLs: 2.82.1
|
||||||
methodServerURLs: 2.82.1
|
methodServerURLs: 2.82.1
|
||||||
nameOverrides: 2.81.1
|
nameOverrides: 2.81.1
|
||||||
@@ -30,7 +30,7 @@ generatedFiles:
|
|||||||
- internal/sdk/log.go
|
- internal/sdk/log.go
|
||||||
- internal/sdk/plex.go
|
- internal/sdk/plex.go
|
||||||
- internal/sdk/playlists.go
|
- internal/sdk/playlists.go
|
||||||
- internal/sdk/security.go
|
- internal/sdk/authentication.go
|
||||||
- internal/sdk/statistics.go
|
- internal/sdk/statistics.go
|
||||||
- internal/sdk/sessions.go
|
- internal/sdk/sessions.go
|
||||||
- internal/sdk/updater.go
|
- internal/sdk/updater.go
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ terraform {
|
|||||||
required_providers {
|
required_providers {
|
||||||
PlexAPI = {
|
PlexAPI = {
|
||||||
source = "LukeHagar/PlexAPI"
|
source = "LukeHagar/PlexAPI"
|
||||||
version = "0.6.0"
|
version = "0.6.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
10
RELEASES.md
10
RELEASES.md
@@ -118,4 +118,12 @@ Based on:
|
|||||||
- OpenAPI Doc 0.0.3
|
- OpenAPI Doc 0.0.3
|
||||||
- Speakeasy CLI 1.193.0 (2.269.0) https://github.com/speakeasy-api/speakeasy
|
- Speakeasy CLI 1.193.0 (2.269.0) https://github.com/speakeasy-api/speakeasy
|
||||||
### Generated
|
### Generated
|
||||||
- [terraform v0.6.0] .
|
- [terraform v0.6.0] .
|
||||||
|
|
||||||
|
## 2024-02-24 01:00:54
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc 0.0.3
|
||||||
|
- Speakeasy CLI 1.193.4 (2.272.4) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [terraform v0.6.1] .
|
||||||
@@ -17,7 +17,7 @@ terraform {
|
|||||||
required_providers {
|
required_providers {
|
||||||
PlexAPI = {
|
PlexAPI = {
|
||||||
source = "LukeHagar/PlexAPI"
|
source = "LukeHagar/PlexAPI"
|
||||||
version = "0.6.0"
|
version = "0.6.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ terraform {
|
|||||||
required_providers {
|
required_providers {
|
||||||
PlexAPI = {
|
PlexAPI = {
|
||||||
source = "LukeHagar/PlexAPI"
|
source = "LukeHagar/PlexAPI"
|
||||||
version = "0.6.0"
|
version = "0.6.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
4
gen.yaml
4
gen.yaml
@@ -9,8 +9,10 @@ generation:
|
|||||||
nameResolutionDec2023: false
|
nameResolutionDec2023: false
|
||||||
parameterOrderingFeb2024: false
|
parameterOrderingFeb2024: false
|
||||||
requestResponseComponentNamesFeb2024: false
|
requestResponseComponentNamesFeb2024: false
|
||||||
|
auth:
|
||||||
|
oAuth2ClientCredentialsEnabled: false
|
||||||
terraform:
|
terraform:
|
||||||
version: 0.6.0
|
version: 0.6.1
|
||||||
author: LukeHagar
|
author: LukeHagar
|
||||||
imports:
|
imports:
|
||||||
option: openapi
|
option: openapi
|
||||||
|
|||||||
@@ -14,20 +14,20 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Security - API Calls against Security for Plex Media Server
|
// Authentication - API Calls regarding authentication for Plex Media Server
|
||||||
type Security struct {
|
type Authentication struct {
|
||||||
sdkConfiguration sdkConfiguration
|
sdkConfiguration sdkConfiguration
|
||||||
}
|
}
|
||||||
|
|
||||||
func newSecurity(sdkConfig sdkConfiguration) *Security {
|
func newAuthentication(sdkConfig sdkConfiguration) *Authentication {
|
||||||
return &Security{
|
return &Authentication{
|
||||||
sdkConfiguration: sdkConfig,
|
sdkConfiguration: sdkConfig,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetTransientToken - Get a Transient Token.
|
// GetTransientToken - Get a Transient Token.
|
||||||
// This endpoint provides the caller with a temporary token with the same access level as the caller's token. These tokens are valid for up to 48 hours and are destroyed if the server instance is restarted.
|
// This endpoint provides the caller with a temporary token with the same access level as the caller's token. These tokens are valid for up to 48 hours and are destroyed if the server instance is restarted.
|
||||||
func (s *Security) GetTransientToken(ctx context.Context, request operations.GetTransientTokenRequest) (*operations.GetTransientTokenResponse, error) {
|
func (s *Authentication) GetTransientToken(ctx context.Context, request operations.GetTransientTokenRequest) (*operations.GetTransientTokenResponse, error) {
|
||||||
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
|
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
|
||||||
url := strings.TrimSuffix(baseURL, "/") + "/security/token"
|
url := strings.TrimSuffix(baseURL, "/") + "/security/token"
|
||||||
|
|
||||||
@@ -90,7 +90,7 @@ func (s *Security) GetTransientToken(ctx context.Context, request operations.Get
|
|||||||
// GetSourceConnectionInformation - Get Source Connection Information
|
// GetSourceConnectionInformation - Get Source Connection Information
|
||||||
// If a caller requires connection details and a transient token for a source that is known to the server, for example a cloud media provider or shared PMS, then this endpoint can be called. This endpoint is only accessible with either an admin token or a valid transient token generated from an admin token.
|
// If a caller requires connection details and a transient token for a source that is known to the server, for example a cloud media provider or shared PMS, then this endpoint can be called. This endpoint is only accessible with either an admin token or a valid transient token generated from an admin token.
|
||||||
// Note: requires Plex Media Server >= 1.15.4.
|
// Note: requires Plex Media Server >= 1.15.4.
|
||||||
func (s *Security) GetSourceConnectionInformation(ctx context.Context, request operations.GetSourceConnectionInformationRequest) (*operations.GetSourceConnectionInformationResponse, error) {
|
func (s *Authentication) GetSourceConnectionInformation(ctx context.Context, request operations.GetSourceConnectionInformationRequest) (*operations.GetSourceConnectionInformationResponse, error) {
|
||||||
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
|
baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails())
|
||||||
url := strings.TrimSuffix(baseURL, "/") + "/security/resources"
|
url := strings.TrimSuffix(baseURL, "/") + "/security/resources"
|
||||||
|
|
||||||
@@ -58,7 +58,7 @@ func (s *Plex) GetPin(ctx context.Context, request operations.GetPinRequest, opt
|
|||||||
return nil, fmt.Errorf("error populating query params: %w", err)
|
return nil, fmt.Errorf("error populating query params: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
client := s.sdkConfiguration.SecurityClient
|
client := s.sdkConfiguration.DefaultClient
|
||||||
|
|
||||||
httpRes, err := client.Do(req)
|
httpRes, err := client.Do(req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@@ -144,7 +144,7 @@ func (s *Plex) GetToken(ctx context.Context, request operations.GetTokenRequest,
|
|||||||
|
|
||||||
utils.PopulateHeaders(ctx, req, request)
|
utils.PopulateHeaders(ctx, req, request)
|
||||||
|
|
||||||
client := s.sdkConfiguration.SecurityClient
|
client := s.sdkConfiguration.DefaultClient
|
||||||
|
|
||||||
httpRes, err := client.Do(req)
|
httpRes, err := client.Do(req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
@@ -109,9 +109,9 @@ type PlexAPI struct {
|
|||||||
// This may cause the duration and number of items to change.
|
// This may cause the duration and number of items to change.
|
||||||
//
|
//
|
||||||
Playlists *Playlists
|
Playlists *Playlists
|
||||||
// API Calls against Security for Plex Media Server
|
// API Calls regarding authentication for Plex Media Server
|
||||||
//
|
//
|
||||||
Security *Security
|
Authentication *Authentication
|
||||||
// API Calls that perform operations with Plex Media Server Statistics
|
// API Calls that perform operations with Plex Media Server Statistics
|
||||||
//
|
//
|
||||||
Statistics *Statistics
|
Statistics *Statistics
|
||||||
@@ -265,9 +265,9 @@ func New(opts ...SDKOption) *PlexAPI {
|
|||||||
sdkConfiguration: sdkConfiguration{
|
sdkConfiguration: sdkConfiguration{
|
||||||
Language: "go",
|
Language: "go",
|
||||||
OpenAPIDocVersion: "0.0.3",
|
OpenAPIDocVersion: "0.0.3",
|
||||||
SDKVersion: "0.6.0",
|
SDKVersion: "0.6.1",
|
||||||
GenVersion: "2.269.0",
|
GenVersion: "2.272.4",
|
||||||
UserAgent: "speakeasy-sdk/go 0.6.0 2.269.0 0.0.3 PlexAPI",
|
UserAgent: "speakeasy-sdk/go 0.6.1 2.272.4 0.0.3 PlexAPI",
|
||||||
ServerDefaults: []map[string]string{
|
ServerDefaults: []map[string]string{
|
||||||
{
|
{
|
||||||
"protocol": "http",
|
"protocol": "http",
|
||||||
@@ -315,7 +315,7 @@ func New(opts ...SDKOption) *PlexAPI {
|
|||||||
|
|
||||||
sdk.Playlists = newPlaylists(sdk.sdkConfiguration)
|
sdk.Playlists = newPlaylists(sdk.sdkConfiguration)
|
||||||
|
|
||||||
sdk.Security = newSecurity(sdk.sdkConfiguration)
|
sdk.Authentication = newAuthentication(sdk.sdkConfiguration)
|
||||||
|
|
||||||
sdk.Statistics = newStatistics(sdk.sdkConfiguration)
|
sdk.Statistics = newStatistics(sdk.sdkConfiguration)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user