diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock new file mode 100755 index 0000000..69c4b52 --- /dev/null +++ b/.speakeasy/gen.lock @@ -0,0 +1,148 @@ +lockVersion: 2.0.0 +id: e742591b-391d-4f4e-8484-d01a093b32ec +management: + docChecksum: 550154cf1b4d0c237436fb18c418b5db + docVersion: 0.0.3 + speakeasyVersion: internal + generationVersion: 2.225.2 + releaseVersion: 0.1.0 + configChecksum: d92408a91beb4360d3ade54235c386a6 + repoURL: https://github.com/LukeHagar/plexterraform.git + repoSubDirectory: . + published: true +features: + terraform: + constsAndDefaults: 0.1.2 + core: 3.7.0 + globalSecurity: 2.81.2 + globalServerURLs: 2.82.1 + nameOverrides: 2.81.1 +generatedFiles: + - internal/sdk/server.go + - internal/sdk/media.go + - internal/sdk/activities.go + - internal/sdk/butler.go + - internal/sdk/hubs.go + - internal/sdk/search.go + - internal/sdk/library.go + - internal/sdk/log.go + - internal/sdk/playlists.go + - internal/sdk/security.go + - internal/sdk/sessions.go + - internal/sdk/updater.go + - internal/sdk/video.go + - internal/sdk/sdk.go + - examples/README.md + - go.mod + - go.sum + - internal/planmodifiers/boolplanmodifier/suppress_diff.go + - internal/planmodifiers/float64planmodifier/suppress_diff.go + - internal/planmodifiers/int64planmodifier/suppress_diff.go + - internal/planmodifiers/listplanmodifier/suppress_diff.go + - internal/planmodifiers/mapplanmodifier/suppress_diff.go + - internal/planmodifiers/numberplanmodifier/suppress_diff.go + - internal/planmodifiers/objectplanmodifier/suppress_diff.go + - internal/planmodifiers/setplanmodifier/suppress_diff.go + - internal/planmodifiers/stringplanmodifier/suppress_diff.go + - internal/planmodifiers/utils/state_check.go + - internal/provider/reflect/diags.go + - internal/provider/reflect/doc.go + - internal/provider/reflect/generic_attr_value.go + - internal/provider/reflect/helpers.go + - internal/provider/reflect/interfaces.go + - internal/provider/reflect/into.go + - internal/provider/reflect/map.go + - internal/provider/reflect/number.go + - internal/provider/reflect/options.go + - internal/provider/reflect/outof.go + - internal/provider/reflect/pointer.go + - internal/provider/reflect/primitive.go + - internal/provider/reflect/slice.go + - internal/provider/reflect/struct.go + - internal/provider/utils.go + - internal/sdk/pkg/models/sdkerrors/sdkerror.go + - internal/sdk/pkg/types/bigint.go + - internal/sdk/pkg/types/date.go + - internal/sdk/pkg/types/datetime.go + - internal/sdk/pkg/types/decimal.go + - internal/sdk/pkg/types/pointers.go + - internal/sdk/pkg/utils/contenttype.go + - internal/sdk/pkg/utils/form.go + - internal/sdk/pkg/utils/headers.go + - internal/sdk/pkg/utils/json.go + - internal/sdk/pkg/utils/pathparams.go + - internal/sdk/pkg/utils/queryparams.go + - internal/sdk/pkg/utils/requestbody.go + - internal/sdk/pkg/utils/retries.go + - internal/sdk/pkg/utils/security.go + - internal/sdk/pkg/utils/utils.go + - internal/validators/DateValidator.go + - internal/validators/ExactlyOneChild.go + - internal/validators/JSONParseValidator.go + - internal/validators/RFC3339Validator.go + - main.go + - terraform-registry-manifest.json + - tools/tools.go + - internal/sdk/pkg/models/operations/getservercapabilities.go + - internal/sdk/pkg/models/operations/getserverpreferences.go + - internal/sdk/pkg/models/operations/getavailableclients.go + - internal/sdk/pkg/models/operations/getdevices.go + - internal/sdk/pkg/models/operations/getserveridentity.go + - internal/sdk/pkg/models/operations/getmyplexaccount.go + - internal/sdk/pkg/models/operations/getresizedphoto.go + - internal/sdk/pkg/models/operations/getserverlist.go + - internal/sdk/pkg/models/operations/markplayed.go + - internal/sdk/pkg/models/operations/markunplayed.go + - internal/sdk/pkg/models/operations/updateplayprogress.go + - internal/sdk/pkg/models/operations/getserveractivities.go + - internal/sdk/pkg/models/operations/cancelserveractivities.go + - internal/sdk/pkg/models/operations/getbutlertasks.go + - internal/sdk/pkg/models/operations/startalltasks.go + - internal/sdk/pkg/models/operations/stopalltasks.go + - internal/sdk/pkg/models/operations/starttask.go + - internal/sdk/pkg/models/operations/stoptask.go + - internal/sdk/pkg/models/operations/getglobalhubs.go + - internal/sdk/pkg/models/operations/getlibraryhubs.go + - internal/sdk/pkg/models/operations/performsearch.go + - internal/sdk/pkg/models/operations/performvoicesearch.go + - internal/sdk/pkg/models/operations/getsearchresults.go + - internal/sdk/pkg/models/operations/getfilehash.go + - internal/sdk/pkg/models/operations/getrecentlyadded.go + - internal/sdk/pkg/models/operations/getlibraries.go + - internal/sdk/pkg/models/operations/getlibrary.go + - internal/sdk/pkg/models/operations/deletelibrary.go + - internal/sdk/pkg/models/operations/getlibraryitems.go + - internal/sdk/pkg/models/operations/refreshlibrary.go + - internal/sdk/pkg/models/operations/getlatestlibraryitems.go + - internal/sdk/pkg/models/operations/getcommonlibraryitems.go + - internal/sdk/pkg/models/operations/getmetadata.go + - internal/sdk/pkg/models/operations/getmetadatachildren.go + - internal/sdk/pkg/models/operations/getondeck.go + - internal/sdk/pkg/models/operations/logline.go + - internal/sdk/pkg/models/operations/logmultiline.go + - internal/sdk/pkg/models/operations/enablepapertrail.go + - internal/sdk/pkg/models/operations/createplaylist.go + - internal/sdk/pkg/models/operations/getplaylists.go + - internal/sdk/pkg/models/operations/getplaylist.go + - internal/sdk/pkg/models/operations/deleteplaylist.go + - internal/sdk/pkg/models/operations/updateplaylist.go + - internal/sdk/pkg/models/operations/getplaylistcontents.go + - internal/sdk/pkg/models/operations/clearplaylistcontents.go + - internal/sdk/pkg/models/operations/addplaylistcontents.go + - internal/sdk/pkg/models/operations/uploadplaylist.go + - internal/sdk/pkg/models/operations/gettransienttoken.go + - internal/sdk/pkg/models/operations/getsourceconnectioninformation.go + - internal/sdk/pkg/models/operations/getsessions.go + - internal/sdk/pkg/models/operations/getsessionhistory.go + - internal/sdk/pkg/models/operations/gettranscodesessions.go + - internal/sdk/pkg/models/operations/stoptranscodesession.go + - internal/sdk/pkg/models/operations/getupdatestatus.go + - internal/sdk/pkg/models/operations/checkforupdates.go + - internal/sdk/pkg/models/operations/applyupdates.go + - internal/sdk/pkg/models/operations/startuniversaltranscode.go + - internal/sdk/pkg/models/operations/gettimeline.go + - internal/sdk/pkg/models/shared/security.go + - USAGE.md + - internal/provider/provider.go + - examples/provider/provider.tf + - .gitattributes diff --git a/README.md b/README.md index 8f74d74..f5b29bb 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,54 @@ TF_REATTACH_PROVIDERS=... terraform apply + +## SDK Installation + +To install this provider, copy and paste this code into your Terraform configuration. Then, run `terraform init`. + +```hcl +terraform { + required_providers { + PlexAPI = { + source = "LukeHagar/PlexAPI" + version = "0.1.0" + } + } +} + +provider "PlexAPI" { + # Configuration options +} +``` + + + +## SDK Example Usage + +### Testing the provider locally + +Should you want to validate a change locally, the `--debug` flag allows you to execute the provider against a terraform instance locally. + +This also allows for debuggers (e.g. delve) to be attached to the provider. + +### Example + +```sh +go run main.go --debug +# Copy the TF_REATTACH_PROVIDERS env var +# In a new terminal +cd examples/your-example +TF_REATTACH_PROVIDERS=... terraform init +TF_REATTACH_PROVIDERS=... terraform apply +``` + + + +## Available Resources and Operations + + + + Terraform allows you to use local provider builds by setting a `dev_overrides` block in a configuration file called `.terraformrc`. This block overrides all other configured installation methods. diff --git a/RELEASES.md b/RELEASES.md index 5fc6d40..1038b2e 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -6,4 +6,12 @@ Based on: - OpenAPI Doc 0.0.3 - Speakeasy CLI 1.129.1 (2.223.3) https://github.com/speakeasy-api/speakeasy ### Generated +- [terraform v0.1.0] . + +## 2024-01-05 01:07:51 +### Changes +Based on: +- OpenAPI Doc 0.0.3 +- Speakeasy CLI 1.130.1 (2.225.2) https://github.com/speakeasy-api/speakeasy +### Generated - [terraform v0.1.0] . \ No newline at end of file diff --git a/gen.yaml b/gen.yaml index 82ec157..cd87f71 100644 --- a/gen.yaml +++ b/gen.yaml @@ -1,26 +1,12 @@ -configVersion: 1.0.0 -management: - docChecksum: 550154cf1b4d0c237436fb18c418b5db - docVersion: 0.0.3 - speakeasyVersion: 1.129.1 - generationVersion: 2.223.3 +configVersion: 2.0.0 generation: - comments: {} sdkClassName: Plex-API - repoURL: https://github.com/speakeasy-sdks/Personal-sample-sdk-9.git maintainOpenAPIOrder: true usageSnippets: optionalPropertyRendering: withExample useClassNamesForArrayFields: true fixes: nameResolutionDec2023: false -features: - terraform: - constsAndDefaults: 0.1.2 - core: 3.6.3 - globalSecurity: 2.81.2 - globalServerURLs: 2.82.1 - nameOverrides: 2.81.1 terraform: version: 0.1.0 author: LukeHagar @@ -35,5 +21,3 @@ terraform: inputModelSuffix: input outputModelSuffix: output packageName: PlexAPI - published: true - repoSubDirectory: . diff --git a/internal/sdk/sdk.go b/internal/sdk/sdk.go index 14cd4e4..942bf70 100644 --- a/internal/sdk/sdk.go +++ b/internal/sdk/sdk.go @@ -262,8 +262,8 @@ func New(opts ...SDKOption) *PlexAPI { Language: "go", OpenAPIDocVersion: "0.0.3", SDKVersion: "0.1.0", - GenVersion: "2.223.3", - UserAgent: "speakeasy-sdk/go 0.1.0 2.223.3 0.0.3 PlexAPI", + GenVersion: "2.225.2", + UserAgent: "speakeasy-sdk/go 0.1.0 2.225.2 0.0.3 PlexAPI", ServerDefaults: []map[string]string{ {}, {