mirror of
https://github.com/LukeHagar/plexterraform.git
synced 2025-12-06 12:37:47 +00:00
ci: regenerated with OpenAPI Doc 0.0.3, Speakeasy CLI 1.147.0
This commit is contained in:
@@ -1,12 +1,12 @@
|
|||||||
lockVersion: 2.0.0
|
lockVersion: 2.0.0
|
||||||
id: e742591b-391d-4f4e-8484-d01a093b32ec
|
id: e742591b-391d-4f4e-8484-d01a093b32ec
|
||||||
management:
|
management:
|
||||||
docChecksum: 34d22936f2456c2c461abdfc773e3fc4
|
docChecksum: 45c73686e6dbe8c29b7e2857b6194ccf
|
||||||
docVersion: 0.0.3
|
docVersion: 0.0.3
|
||||||
speakeasyVersion: internal
|
speakeasyVersion: internal
|
||||||
generationVersion: 2.234.3
|
generationVersion: 2.237.2
|
||||||
releaseVersion: 0.2.3
|
releaseVersion: 0.2.4
|
||||||
configChecksum: a62c254751ec3db136aa0909b843cc5c
|
configChecksum: 3eabe9635f0405c71d695a4559488aae
|
||||||
repoURL: https://github.com/LukeHagar/plexterraform.git
|
repoURL: https://github.com/LukeHagar/plexterraform.git
|
||||||
repoSubDirectory: .
|
repoSubDirectory: .
|
||||||
published: true
|
published: true
|
||||||
@@ -14,7 +14,7 @@ features:
|
|||||||
terraform:
|
terraform:
|
||||||
constsAndDefaults: 0.1.2
|
constsAndDefaults: 0.1.2
|
||||||
core: 3.8.4
|
core: 3.8.4
|
||||||
globalSecurity: 2.81.2
|
globalSecurity: 2.81.3
|
||||||
globalServerURLs: 2.82.1
|
globalServerURLs: 2.82.1
|
||||||
nameOverrides: 2.81.1
|
nameOverrides: 2.81.1
|
||||||
generatedFiles:
|
generatedFiles:
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ terraform {
|
|||||||
required_providers {
|
required_providers {
|
||||||
PlexAPI = {
|
PlexAPI = {
|
||||||
source = "LukeHagar/PlexAPI"
|
source = "LukeHagar/PlexAPI"
|
||||||
version = "0.2.3"
|
version = "0.2.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
10
RELEASES.md
10
RELEASES.md
@@ -46,4 +46,12 @@ Based on:
|
|||||||
- OpenAPI Doc 0.0.3
|
- OpenAPI Doc 0.0.3
|
||||||
- Speakeasy CLI 1.142.1 (2.234.3) https://github.com/speakeasy-api/speakeasy
|
- Speakeasy CLI 1.142.1 (2.234.3) https://github.com/speakeasy-api/speakeasy
|
||||||
### Generated
|
### Generated
|
||||||
- [terraform v0.2.3] .
|
- [terraform v0.2.3] .
|
||||||
|
|
||||||
|
## 2024-01-18 23:37:15
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc 0.0.3
|
||||||
|
- Speakeasy CLI 1.147.0 (2.237.2) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [terraform v0.2.4] .
|
||||||
@@ -17,7 +17,7 @@ terraform {
|
|||||||
required_providers {
|
required_providers {
|
||||||
PlexAPI = {
|
PlexAPI = {
|
||||||
source = "LukeHagar/PlexAPI"
|
source = "LukeHagar/PlexAPI"
|
||||||
version = "0.2.3"
|
version = "0.2.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ terraform {
|
|||||||
required_providers {
|
required_providers {
|
||||||
PlexAPI = {
|
PlexAPI = {
|
||||||
source = "LukeHagar/PlexAPI"
|
source = "LukeHagar/PlexAPI"
|
||||||
version = "0.2.3"
|
version = "0.2.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
2
gen.yaml
2
gen.yaml
@@ -8,7 +8,7 @@ generation:
|
|||||||
fixes:
|
fixes:
|
||||||
nameResolutionDec2023: false
|
nameResolutionDec2023: false
|
||||||
terraform:
|
terraform:
|
||||||
version: 0.2.3
|
version: 0.2.4
|
||||||
author: LukeHagar
|
author: LukeHagar
|
||||||
imports:
|
imports:
|
||||||
option: openapi
|
option: openapi
|
||||||
|
|||||||
@@ -199,9 +199,6 @@ func (s *Library) GetLibraries(ctx context.Context) (*operations.GetLibrariesRes
|
|||||||
}
|
}
|
||||||
switch {
|
switch {
|
||||||
case httpRes.StatusCode == 200:
|
case httpRes.StatusCode == 200:
|
||||||
fallthrough
|
|
||||||
case httpRes.StatusCode == 400:
|
|
||||||
case httpRes.StatusCode == 401:
|
|
||||||
switch {
|
switch {
|
||||||
case utils.MatchContentType(contentType, `application/json`):
|
case utils.MatchContentType(contentType, `application/json`):
|
||||||
var out operations.GetLibrariesResponseBody
|
var out operations.GetLibrariesResponseBody
|
||||||
@@ -209,7 +206,20 @@ func (s *Library) GetLibraries(ctx context.Context) (*operations.GetLibrariesRes
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
res.Object = &out
|
res.TwoHundredApplicationJSONObject = &out
|
||||||
|
default:
|
||||||
|
return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
|
||||||
|
}
|
||||||
|
case httpRes.StatusCode == 400:
|
||||||
|
case httpRes.StatusCode == 401:
|
||||||
|
switch {
|
||||||
|
case utils.MatchContentType(contentType, `application/json`):
|
||||||
|
var out operations.GetLibrariesLibraryResponseBody
|
||||||
|
if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
res.FourHundredAndOneApplicationJSONObject = &out
|
||||||
default:
|
default:
|
||||||
return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
|
return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,18 +33,255 @@ func (o *GetLibrariesErrors) GetStatus() *float64 {
|
|||||||
return o.Status
|
return o.Status
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetLibrariesResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
// GetLibrariesLibraryResponseBody - Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
type GetLibrariesResponseBody struct {
|
type GetLibrariesLibraryResponseBody struct {
|
||||||
Errors []GetLibrariesErrors `json:"errors,omitempty"`
|
Errors []GetLibrariesErrors `json:"errors,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *GetLibrariesResponseBody) GetErrors() []GetLibrariesErrors {
|
func (o *GetLibrariesLibraryResponseBody) GetErrors() []GetLibrariesErrors {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
return o.Errors
|
return o.Errors
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type Location struct {
|
||||||
|
ID *int `json:"id,omitempty"`
|
||||||
|
Path *string `json:"path,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *Location) GetID() *int {
|
||||||
|
if o == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return o.ID
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *Location) GetPath() *string {
|
||||||
|
if o == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return o.Path
|
||||||
|
}
|
||||||
|
|
||||||
|
type GetLibrariesDirectory struct {
|
||||||
|
AllowSync *bool `json:"allowSync,omitempty"`
|
||||||
|
Art *string `json:"art,omitempty"`
|
||||||
|
Composite *string `json:"composite,omitempty"`
|
||||||
|
Filters *bool `json:"filters,omitempty"`
|
||||||
|
Refreshing *bool `json:"refreshing,omitempty"`
|
||||||
|
Thumb *string `json:"thumb,omitempty"`
|
||||||
|
Key *string `json:"key,omitempty"`
|
||||||
|
Type *string `json:"type,omitempty"`
|
||||||
|
Title *string `json:"title,omitempty"`
|
||||||
|
Agent *string `json:"agent,omitempty"`
|
||||||
|
Scanner *string `json:"scanner,omitempty"`
|
||||||
|
Language *string `json:"language,omitempty"`
|
||||||
|
UUID *string `json:"uuid,omitempty"`
|
||||||
|
UpdatedAt *int `json:"updatedAt,omitempty"`
|
||||||
|
CreatedAt *int `json:"createdAt,omitempty"`
|
||||||
|
ScannedAt *int `json:"scannedAt,omitempty"`
|
||||||
|
Content *bool `json:"content,omitempty"`
|
||||||
|
Directory *bool `json:"directory,omitempty"`
|
||||||
|
ContentChangedAt *int `json:"contentChangedAt,omitempty"`
|
||||||
|
Hidden *int `json:"hidden,omitempty"`
|
||||||
|
Location []Location `json:"Location,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *GetLibrariesDirectory) GetAllowSync() *bool {
|
||||||
|
if o == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return o.AllowSync
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *GetLibrariesDirectory) GetArt() *string {
|
||||||
|
if o == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return o.Art
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *GetLibrariesDirectory) GetComposite() *string {
|
||||||
|
if o == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return o.Composite
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *GetLibrariesDirectory) GetFilters() *bool {
|
||||||
|
if o == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return o.Filters
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *GetLibrariesDirectory) GetRefreshing() *bool {
|
||||||
|
if o == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return o.Refreshing
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *GetLibrariesDirectory) GetThumb() *string {
|
||||||
|
if o == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return o.Thumb
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *GetLibrariesDirectory) GetKey() *string {
|
||||||
|
if o == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return o.Key
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *GetLibrariesDirectory) GetType() *string {
|
||||||
|
if o == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return o.Type
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *GetLibrariesDirectory) GetTitle() *string {
|
||||||
|
if o == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return o.Title
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *GetLibrariesDirectory) GetAgent() *string {
|
||||||
|
if o == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return o.Agent
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *GetLibrariesDirectory) GetScanner() *string {
|
||||||
|
if o == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return o.Scanner
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *GetLibrariesDirectory) GetLanguage() *string {
|
||||||
|
if o == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return o.Language
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *GetLibrariesDirectory) GetUUID() *string {
|
||||||
|
if o == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return o.UUID
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *GetLibrariesDirectory) GetUpdatedAt() *int {
|
||||||
|
if o == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return o.UpdatedAt
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *GetLibrariesDirectory) GetCreatedAt() *int {
|
||||||
|
if o == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return o.CreatedAt
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *GetLibrariesDirectory) GetScannedAt() *int {
|
||||||
|
if o == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return o.ScannedAt
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *GetLibrariesDirectory) GetContent() *bool {
|
||||||
|
if o == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return o.Content
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *GetLibrariesDirectory) GetDirectory() *bool {
|
||||||
|
if o == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return o.Directory
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *GetLibrariesDirectory) GetContentChangedAt() *int {
|
||||||
|
if o == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return o.ContentChangedAt
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *GetLibrariesDirectory) GetHidden() *int {
|
||||||
|
if o == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return o.Hidden
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *GetLibrariesDirectory) GetLocation() []Location {
|
||||||
|
if o == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return o.Location
|
||||||
|
}
|
||||||
|
|
||||||
|
type GetLibrariesMediaContainer struct {
|
||||||
|
Size *int `json:"size,omitempty"`
|
||||||
|
AllowSync *bool `json:"allowSync,omitempty"`
|
||||||
|
Title1 *string `json:"title1,omitempty"`
|
||||||
|
Directory []GetLibrariesDirectory `json:"Directory,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *GetLibrariesMediaContainer) GetSize() *int {
|
||||||
|
if o == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return o.Size
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *GetLibrariesMediaContainer) GetAllowSync() *bool {
|
||||||
|
if o == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return o.AllowSync
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *GetLibrariesMediaContainer) GetTitle1() *string {
|
||||||
|
if o == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return o.Title1
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *GetLibrariesMediaContainer) GetDirectory() []GetLibrariesDirectory {
|
||||||
|
if o == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return o.Directory
|
||||||
|
}
|
||||||
|
|
||||||
|
// GetLibrariesResponseBody - The libraries available on the Server
|
||||||
|
type GetLibrariesResponseBody struct {
|
||||||
|
MediaContainer *GetLibrariesMediaContainer `json:"MediaContainer,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *GetLibrariesResponseBody) GetMediaContainer() *GetLibrariesMediaContainer {
|
||||||
|
if o == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return o.MediaContainer
|
||||||
|
}
|
||||||
|
|
||||||
type GetLibrariesResponse struct {
|
type GetLibrariesResponse struct {
|
||||||
// HTTP response content type for this operation
|
// HTTP response content type for this operation
|
||||||
ContentType string
|
ContentType string
|
||||||
@@ -52,8 +289,10 @@ type GetLibrariesResponse struct {
|
|||||||
StatusCode int
|
StatusCode int
|
||||||
// Raw HTTP response; suitable for custom response parsing
|
// Raw HTTP response; suitable for custom response parsing
|
||||||
RawResponse *http.Response
|
RawResponse *http.Response
|
||||||
|
// The libraries available on the Server
|
||||||
|
TwoHundredApplicationJSONObject *GetLibrariesResponseBody
|
||||||
// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
Object *GetLibrariesResponseBody
|
FourHundredAndOneApplicationJSONObject *GetLibrariesLibraryResponseBody
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *GetLibrariesResponse) GetContentType() string {
|
func (o *GetLibrariesResponse) GetContentType() string {
|
||||||
@@ -77,9 +316,16 @@ func (o *GetLibrariesResponse) GetRawResponse() *http.Response {
|
|||||||
return o.RawResponse
|
return o.RawResponse
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *GetLibrariesResponse) GetObject() *GetLibrariesResponseBody {
|
func (o *GetLibrariesResponse) GetTwoHundredApplicationJSONObject() *GetLibrariesResponseBody {
|
||||||
if o == nil {
|
if o == nil {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
return o.Object
|
return o.TwoHundredApplicationJSONObject
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *GetLibrariesResponse) GetFourHundredAndOneApplicationJSONObject() *GetLibrariesLibraryResponseBody {
|
||||||
|
if o == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return o.FourHundredAndOneApplicationJSONObject
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -204,9 +204,9 @@ func parseSecuritySchemeValue(client *securityConfig, schemeTag *securityTag, se
|
|||||||
panic("not supported")
|
panic("not supported")
|
||||||
}
|
}
|
||||||
case "openIdConnect":
|
case "openIdConnect":
|
||||||
client.headers[secTag.Name] = valToString(val)
|
client.headers[secTag.Name] = prefixBearer(valToString(val))
|
||||||
case "oauth2":
|
case "oauth2":
|
||||||
client.headers[secTag.Name] = valToString(val)
|
client.headers[secTag.Name] = prefixBearer(valToString(val))
|
||||||
case "http":
|
case "http":
|
||||||
switch schemeTag.SubType {
|
switch schemeTag.SubType {
|
||||||
case "bearer":
|
case "bearer":
|
||||||
|
|||||||
@@ -259,9 +259,9 @@ func New(opts ...SDKOption) *PlexAPI {
|
|||||||
sdkConfiguration: sdkConfiguration{
|
sdkConfiguration: sdkConfiguration{
|
||||||
Language: "go",
|
Language: "go",
|
||||||
OpenAPIDocVersion: "0.0.3",
|
OpenAPIDocVersion: "0.0.3",
|
||||||
SDKVersion: "0.2.3",
|
SDKVersion: "0.2.4",
|
||||||
GenVersion: "2.234.3",
|
GenVersion: "2.237.2",
|
||||||
UserAgent: "speakeasy-sdk/go 0.2.3 2.234.3 0.0.3 PlexAPI",
|
UserAgent: "speakeasy-sdk/go 0.2.4 2.237.2 0.0.3 PlexAPI",
|
||||||
ServerDefaults: []map[string]string{
|
ServerDefaults: []map[string]string{
|
||||||
{
|
{
|
||||||
"protocol": "http",
|
"protocol": "http",
|
||||||
|
|||||||
Reference in New Issue
Block a user