Compare commits

...

2 Commits

Author SHA1 Message Date
speakeasybot
9132d30c11 ci: regenerated with OpenAPI Doc 0.0.3, Speakeasy CLI 1.133.1 2024-01-05 19:51:02 +00:00
Luke Hagar
bba1a7ab9e Update README.md 2024-01-05 13:43:58 -06:00
5 changed files with 20 additions and 23 deletions

View File

@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: dfa99515-01c0-42eb-9be5-ee212fd03eb3
management:
docChecksum: 550154cf1b4d0c237436fb18c418b5db
docChecksum: 34d22936f2456c2c461abdfc773e3fc4
docVersion: 0.0.3
speakeasyVersion: internal
generationVersion: 2.228.1
releaseVersion: 0.0.1
configChecksum: 17cc95530e519354b089a256cb0ca7f6
releaseVersion: 0.0.2
configChecksum: 8ec0262eb88fedd583b12ba41ef0ef38
repoURL: https://github.com/LukeHagar/plexgo.git
repoSubDirectory: .
installationURL: https://github.com/LukeHagar/plexgo

View File

@@ -7,15 +7,6 @@
</a>
</div>
## 🏗 **Welcome to your new SDK!** 🏗
It has been generated successfully based on your OpenAPI spec. However, it is not yet ready for production use. Here are some next steps:
- [ ] 🛠 Make your SDK feel handcrafted by [customizing it](https://www.speakeasyapi.dev/docs/customize-sdks)
- [ ] ♻️ Refine your SDK quickly by iterating locally with the [Speakeasy CLI](https://github.com/speakeasy-api/speakeasy)
- [ ] 🎁 Publish your SDK to package managers by [configuring automatic publishing](https://www.speakeasyapi.dev/docs/productionize-sdks/publish-sdks)
- [ ] ✨ When ready to productionize, delete this section from the README
<!-- Start SDK Installation [installation] -->
## SDK Installation
@@ -218,8 +209,7 @@ You can override the default server globally using the `WithServerIndex` option
| # | Server | Variables |
| - | ------ | --------- |
| 0 | `http://10.10.10.47:32400` | None |
| 1 | `{protocol}://{ip}:{port}` | `protocol` (default is `http`), `ip` (default is `10.10.10.47`), `port` (default is `32400`) |
| 0 | `{protocol}://{ip}:{port}` | `protocol` (default is `http`), `ip` (default is `10.10.10.47`), `port` (default is `32400`) |
#### Example
@@ -235,7 +225,7 @@ import (
func main() {
s := plexgo.New(
plexgo.WithServerIndex(1),
plexgo.WithServerIndex(0),
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
)
@@ -274,7 +264,7 @@ import (
func main() {
s := plexgo.New(
plexgo.WithServerURL("http://10.10.10.47:32400"),
plexgo.WithServerURL("{protocol}://{ip}:{port}"),
plexgo.WithSecurity("<YOUR_API_KEY_HERE>"),
)

View File

@@ -8,4 +8,14 @@ Based on:
### Generated
- [go v0.0.1] .
### Releases
- [Go v0.0.1] https://github.com/LukeHagar/plexgo/releases/tag/v0.0.1 - .
- [Go v0.0.1] https://github.com/LukeHagar/plexgo/releases/tag/v0.0.1 - .
## 2024-01-05 19:50:49
### Changes
Based on:
- OpenAPI Doc 0.0.3
- Speakeasy CLI 1.133.1 (2.228.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.0.2] .
### Releases
- [Go v0.0.2] https://github.com/LukeHagar/plexgo/releases/tag/v0.0.2 - .

View File

@@ -8,7 +8,7 @@ generation:
fixes:
nameResolutionDec2023: false
go:
version: 0.0.1
version: 0.0.2
clientServerStatusCodesAsErrors: true
flattenGlobalSecurity: true
imports:

View File

@@ -14,8 +14,6 @@ import (
// ServerList contains the list of servers available to the SDK
var ServerList = []string{
// The full address of your Plex Server
"http://10.10.10.47:32400",
// The full address of your Plex Server
"{protocol}://{ip}:{port}",
}
@@ -253,11 +251,10 @@ func New(opts ...SDKOption) *PlexAPI {
sdkConfiguration: sdkConfiguration{
Language: "go",
OpenAPIDocVersion: "0.0.3",
SDKVersion: "0.0.1",
SDKVersion: "0.0.2",
GenVersion: "2.228.1",
UserAgent: "speakeasy-sdk/go 0.0.1 2.228.1 0.0.3 github.com/LukeHagar/plexgo",
UserAgent: "speakeasy-sdk/go 0.0.2 2.228.1 0.0.3 github.com/LukeHagar/plexgo",
ServerDefaults: []map[string]string{
{},
{
"protocol": "http",
"ip": "10.10.10.47",