From cc5da9f228af0cc972286da5a2e9e853283f5641 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 25 Jul 2023 00:04:38 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc v1, Speakeay CLI 1.64.1 --- RELEASES.md | 8 +- USAGE.md | 0 examples/README.md | 0 examples/provider/provider.tf | 2 +- examples/resources/abbey_demo/resource.tf | 2 + .../resources/abbey_grant_kit/resource.tf | 0 examples/resources/abbey_identity/resource.tf | 0 files.gen | 9 + gen.yaml | 6 +- go.mod | 0 go.sum | 0 .../boolplanmodifier/suppress_diff.go | 0 .../float64planmodifier/suppress_diff.go | 0 .../int64planmodifier/suppress_diff.go | 0 .../listplanmodifier/suppress_diff.go | 0 .../mapplanmodifier/suppress_diff.go | 0 .../numberplanmodifier/suppress_diff.go | 0 .../objectplanmodifier/suppress_diff.go | 0 .../setplanmodifier/suppress_diff.go | 0 .../stringplanmodifier/suppress_diff.go | 0 internal/planmodifiers/utils/state_check.go | 0 internal/provider/demo_resource.go | 229 ++++++++++++++++ internal/provider/demo_resource_sdk.go | 57 ++++ internal/provider/grantkit_resource.go | 0 internal/provider/grantkit_resource_sdk.go | 0 internal/provider/identity_resource.go | 0 internal/provider/identity_resource_sdk.go | 0 internal/provider/provider.go | 1 + internal/provider/reflect/diags.go | 0 internal/provider/reflect/doc.go | 0 .../provider/reflect/generic_attr_value.go | 0 internal/provider/reflect/helpers.go | 0 internal/provider/reflect/interfaces.go | 0 internal/provider/reflect/into.go | 0 internal/provider/reflect/map.go | 0 internal/provider/reflect/number.go | 0 internal/provider/reflect/options.go | 0 internal/provider/reflect/outof.go | 0 internal/provider/reflect/pointer.go | 0 internal/provider/reflect/primitive.go | 0 internal/provider/reflect/slice.go | 0 internal/provider/reflect/struct.go | 0 internal/provider/type_grant.go | 0 internal/provider/type_grant_workflow.go | 0 internal/provider/type_output.go | 0 internal/provider/type_policy.go | 0 internal/provider/type_request.go | 0 internal/provider/type_review.go | 0 internal/provider/type_reviewers.go | 0 internal/provider/type_step.go | 0 internal/provider/utils.go | 0 internal/sdk/apikeys.go | 0 internal/sdk/connections.go | 0 internal/sdk/connectionspecs.go | 0 internal/sdk/demo.go | 248 ++++++++++++++++++ internal/sdk/grantkits.go | 0 internal/sdk/grants.go | 0 internal/sdk/identities.go | 0 .../pkg/models/operations/approvereview.go | 0 .../models/operations/cancelrequestbyid.go | 0 .../sdk/pkg/models/operations/createapikey.go | 0 .../pkg/models/operations/createconnection.go | 0 .../sdk/pkg/models/operations/createdemo.go | 18 ++ .../pkg/models/operations/creategrantkit.go | 0 .../pkg/models/operations/createidentity.go | 0 .../pkg/models/operations/createrequest.go | 0 .../sdk/pkg/models/operations/deleteapikey.go | 0 .../sdk/pkg/models/operations/deletedemo.go | 18 ++ .../pkg/models/operations/deletegrantkit.go | 0 .../pkg/models/operations/deleteidentity.go | 0 .../sdk/pkg/models/operations/denyreview.go | 0 .../sdk/pkg/models/operations/getapikeys.go | 0 .../pkg/models/operations/getconnection.go | 0 internal/sdk/pkg/models/operations/getdemo.go | 18 ++ .../sdk/pkg/models/operations/getgrantbyid.go | 0 .../pkg/models/operations/getgrantkitbyid.go | 0 .../sdk/pkg/models/operations/getidentity.go | 0 .../pkg/models/operations/getrequestbyid.go | 0 .../pkg/models/operations/getreviewbyid.go | 0 .../pkg/models/operations/listconnections.go | 0 .../models/operations/listconnectionspecs.go | 0 .../pkg/models/operations/listgrantkits.go | 0 .../operations/listgrantkitversionsbyid.go | 0 .../sdk/pkg/models/operations/listgrants.go | 0 .../sdk/pkg/models/operations/listrequests.go | 0 .../sdk/pkg/models/operations/listreviews.go | 0 .../sdk/pkg/models/operations/revokegrant.go | 0 .../pkg/models/operations/updateconnection.go | 0 .../pkg/models/operations/updategrantkit.go | 0 internal/sdk/pkg/models/shared/apikey.go | 0 internal/sdk/pkg/models/shared/apikeys.go | 0 .../pkg/models/shared/apikeyscreateparams.go | 0 internal/sdk/pkg/models/shared/connection.go | 0 .../sdk/pkg/models/shared/connectionauth.go | 0 .../models/shared/connectionauthtypeenum.go | 0 .../pkg/models/shared/connectionlisting.go | 0 .../sdk/pkg/models/shared/connectionparams.go | 0 .../models/shared/connectionparamsgithub.go | 0 .../shared/connectionparamsgithubvariant.go | 0 .../models/shared/connectionrequestspec.go | 0 .../sdk/pkg/models/shared/connectionspec.go | 0 .../models/shared/connectionspeclisting.go | 0 .../sdk/pkg/models/shared/connectiontype.go | 0 .../models/shared/connectionupdateparams.go | 0 internal/sdk/pkg/models/shared/demo.go | 15 ++ internal/sdk/pkg/models/shared/demoparams.go | 37 +++ internal/sdk/pkg/models/shared/error.go | 0 internal/sdk/pkg/models/shared/grant.go | 0 internal/sdk/pkg/models/shared/grantkit.go | 0 .../pkg/models/shared/grantkitcreateparams.go | 0 .../pkg/models/shared/grantkitupdateparams.go | 0 .../sdk/pkg/models/shared/grantkitversion.go | 0 .../sdk/pkg/models/shared/grantworkflow.go | 0 internal/sdk/pkg/models/shared/httpmethod.go | 0 internal/sdk/pkg/models/shared/identity.go | 0 .../sdk/pkg/models/shared/identityparams.go | 0 .../sdk/pkg/models/shared/keyvaluepair.go | 0 internal/sdk/pkg/models/shared/oauth2flow.go | 0 .../pkg/models/shared/oauth2flowexchange.go | 0 .../sdk/pkg/models/shared/oauth2flowpkce.go | 0 internal/sdk/pkg/models/shared/output.go | 0 .../pkg/models/shared/pagerdutyconnection.go | 0 .../models/shared/pagerdutyconnectionvalue.go | 0 internal/sdk/pkg/models/shared/pkcemethod.go | 0 internal/sdk/pkg/models/shared/policy.go | 0 internal/sdk/pkg/models/shared/request.go | 0 .../pkg/models/shared/requestcancelparams.go | 0 .../pkg/models/shared/requestcontenttype.go | 0 .../sdk/pkg/models/shared/requestparams.go | 0 internal/sdk/pkg/models/shared/requestspec.go | 0 .../sdk/pkg/models/shared/requeststatus.go | 0 internal/sdk/pkg/models/shared/review.go | 0 internal/sdk/pkg/models/shared/reviewers.go | 0 .../sdk/pkg/models/shared/reviewstatus.go | 0 .../pkg/models/shared/reviewupdateparams.go | 0 internal/sdk/pkg/models/shared/security.go | 0 internal/sdk/pkg/models/shared/step.go | 0 internal/sdk/pkg/types/bigint.go | 0 internal/sdk/pkg/types/date.go | 0 internal/sdk/pkg/types/datetime.go | 0 internal/sdk/pkg/utils/contenttype.go | 0 internal/sdk/pkg/utils/form.go | 0 internal/sdk/pkg/utils/headers.go | 0 internal/sdk/pkg/utils/pathparams.go | 0 internal/sdk/pkg/utils/queryparams.go | 0 internal/sdk/pkg/utils/requestbody.go | 0 internal/sdk/pkg/utils/retries.go | 0 internal/sdk/pkg/utils/security.go | 0 internal/sdk/pkg/utils/utils.go | 0 internal/sdk/requests.go | 0 internal/sdk/reviews.go | 0 internal/sdk/sdk.go | 7 +- internal/validators/DateValidator.go | 0 internal/validators/ExactlyOneChild.go | 0 internal/validators/JSONParseValidator.go | 0 internal/validators/RFC3339Validator.go | 0 main.go | 0 terraform-registry-manifest.json | 0 tools/tools.go | 0 159 files changed, 669 insertions(+), 6 deletions(-) mode change 100644 => 100755 USAGE.md mode change 100644 => 100755 examples/README.md mode change 100644 => 100755 examples/provider/provider.tf create mode 100755 examples/resources/abbey_demo/resource.tf mode change 100644 => 100755 examples/resources/abbey_grant_kit/resource.tf mode change 100644 => 100755 examples/resources/abbey_identity/resource.tf mode change 100644 => 100755 go.mod mode change 100644 => 100755 go.sum mode change 100644 => 100755 internal/planmodifiers/boolplanmodifier/suppress_diff.go mode change 100644 => 100755 internal/planmodifiers/float64planmodifier/suppress_diff.go mode change 100644 => 100755 internal/planmodifiers/int64planmodifier/suppress_diff.go mode change 100644 => 100755 internal/planmodifiers/listplanmodifier/suppress_diff.go mode change 100644 => 100755 internal/planmodifiers/mapplanmodifier/suppress_diff.go mode change 100644 => 100755 internal/planmodifiers/numberplanmodifier/suppress_diff.go mode change 100644 => 100755 internal/planmodifiers/objectplanmodifier/suppress_diff.go mode change 100644 => 100755 internal/planmodifiers/setplanmodifier/suppress_diff.go mode change 100644 => 100755 internal/planmodifiers/stringplanmodifier/suppress_diff.go mode change 100644 => 100755 internal/planmodifiers/utils/state_check.go create mode 100755 internal/provider/demo_resource.go create mode 100755 internal/provider/demo_resource_sdk.go mode change 100644 => 100755 internal/provider/grantkit_resource.go mode change 100644 => 100755 internal/provider/grantkit_resource_sdk.go mode change 100644 => 100755 internal/provider/identity_resource.go mode change 100644 => 100755 internal/provider/identity_resource_sdk.go mode change 100644 => 100755 internal/provider/provider.go mode change 100644 => 100755 internal/provider/reflect/diags.go mode change 100644 => 100755 internal/provider/reflect/doc.go mode change 100644 => 100755 internal/provider/reflect/generic_attr_value.go mode change 100644 => 100755 internal/provider/reflect/helpers.go mode change 100644 => 100755 internal/provider/reflect/interfaces.go mode change 100644 => 100755 internal/provider/reflect/into.go mode change 100644 => 100755 internal/provider/reflect/map.go mode change 100644 => 100755 internal/provider/reflect/number.go mode change 100644 => 100755 internal/provider/reflect/options.go mode change 100644 => 100755 internal/provider/reflect/outof.go mode change 100644 => 100755 internal/provider/reflect/pointer.go mode change 100644 => 100755 internal/provider/reflect/primitive.go mode change 100644 => 100755 internal/provider/reflect/slice.go mode change 100644 => 100755 internal/provider/reflect/struct.go mode change 100644 => 100755 internal/provider/type_grant.go mode change 100644 => 100755 internal/provider/type_grant_workflow.go mode change 100644 => 100755 internal/provider/type_output.go mode change 100644 => 100755 internal/provider/type_policy.go mode change 100644 => 100755 internal/provider/type_request.go mode change 100644 => 100755 internal/provider/type_review.go mode change 100644 => 100755 internal/provider/type_reviewers.go mode change 100644 => 100755 internal/provider/type_step.go mode change 100644 => 100755 internal/provider/utils.go mode change 100644 => 100755 internal/sdk/apikeys.go mode change 100644 => 100755 internal/sdk/connections.go mode change 100644 => 100755 internal/sdk/connectionspecs.go create mode 100755 internal/sdk/demo.go mode change 100644 => 100755 internal/sdk/grantkits.go mode change 100644 => 100755 internal/sdk/grants.go mode change 100644 => 100755 internal/sdk/identities.go mode change 100644 => 100755 internal/sdk/pkg/models/operations/approvereview.go mode change 100644 => 100755 internal/sdk/pkg/models/operations/cancelrequestbyid.go mode change 100644 => 100755 internal/sdk/pkg/models/operations/createapikey.go mode change 100644 => 100755 internal/sdk/pkg/models/operations/createconnection.go create mode 100755 internal/sdk/pkg/models/operations/createdemo.go mode change 100644 => 100755 internal/sdk/pkg/models/operations/creategrantkit.go mode change 100644 => 100755 internal/sdk/pkg/models/operations/createidentity.go mode change 100644 => 100755 internal/sdk/pkg/models/operations/createrequest.go mode change 100644 => 100755 internal/sdk/pkg/models/operations/deleteapikey.go create mode 100755 internal/sdk/pkg/models/operations/deletedemo.go mode change 100644 => 100755 internal/sdk/pkg/models/operations/deletegrantkit.go mode change 100644 => 100755 internal/sdk/pkg/models/operations/deleteidentity.go mode change 100644 => 100755 internal/sdk/pkg/models/operations/denyreview.go mode change 100644 => 100755 internal/sdk/pkg/models/operations/getapikeys.go mode change 100644 => 100755 internal/sdk/pkg/models/operations/getconnection.go create mode 100755 internal/sdk/pkg/models/operations/getdemo.go mode change 100644 => 100755 internal/sdk/pkg/models/operations/getgrantbyid.go mode change 100644 => 100755 internal/sdk/pkg/models/operations/getgrantkitbyid.go mode change 100644 => 100755 internal/sdk/pkg/models/operations/getidentity.go mode change 100644 => 100755 internal/sdk/pkg/models/operations/getrequestbyid.go mode change 100644 => 100755 internal/sdk/pkg/models/operations/getreviewbyid.go mode change 100644 => 100755 internal/sdk/pkg/models/operations/listconnections.go mode change 100644 => 100755 internal/sdk/pkg/models/operations/listconnectionspecs.go mode change 100644 => 100755 internal/sdk/pkg/models/operations/listgrantkits.go mode change 100644 => 100755 internal/sdk/pkg/models/operations/listgrantkitversionsbyid.go mode change 100644 => 100755 internal/sdk/pkg/models/operations/listgrants.go mode change 100644 => 100755 internal/sdk/pkg/models/operations/listrequests.go mode change 100644 => 100755 internal/sdk/pkg/models/operations/listreviews.go mode change 100644 => 100755 internal/sdk/pkg/models/operations/revokegrant.go mode change 100644 => 100755 internal/sdk/pkg/models/operations/updateconnection.go mode change 100644 => 100755 internal/sdk/pkg/models/operations/updategrantkit.go mode change 100644 => 100755 internal/sdk/pkg/models/shared/apikey.go mode change 100644 => 100755 internal/sdk/pkg/models/shared/apikeys.go mode change 100644 => 100755 internal/sdk/pkg/models/shared/apikeyscreateparams.go mode change 100644 => 100755 internal/sdk/pkg/models/shared/connection.go mode change 100644 => 100755 internal/sdk/pkg/models/shared/connectionauth.go mode change 100644 => 100755 internal/sdk/pkg/models/shared/connectionauthtypeenum.go mode change 100644 => 100755 internal/sdk/pkg/models/shared/connectionlisting.go mode change 100644 => 100755 internal/sdk/pkg/models/shared/connectionparams.go mode change 100644 => 100755 internal/sdk/pkg/models/shared/connectionparamsgithub.go mode change 100644 => 100755 internal/sdk/pkg/models/shared/connectionparamsgithubvariant.go mode change 100644 => 100755 internal/sdk/pkg/models/shared/connectionrequestspec.go mode change 100644 => 100755 internal/sdk/pkg/models/shared/connectionspec.go mode change 100644 => 100755 internal/sdk/pkg/models/shared/connectionspeclisting.go mode change 100644 => 100755 internal/sdk/pkg/models/shared/connectiontype.go mode change 100644 => 100755 internal/sdk/pkg/models/shared/connectionupdateparams.go create mode 100755 internal/sdk/pkg/models/shared/demo.go create mode 100755 internal/sdk/pkg/models/shared/demoparams.go mode change 100644 => 100755 internal/sdk/pkg/models/shared/error.go mode change 100644 => 100755 internal/sdk/pkg/models/shared/grant.go mode change 100644 => 100755 internal/sdk/pkg/models/shared/grantkit.go mode change 100644 => 100755 internal/sdk/pkg/models/shared/grantkitcreateparams.go mode change 100644 => 100755 internal/sdk/pkg/models/shared/grantkitupdateparams.go mode change 100644 => 100755 internal/sdk/pkg/models/shared/grantkitversion.go mode change 100644 => 100755 internal/sdk/pkg/models/shared/grantworkflow.go mode change 100644 => 100755 internal/sdk/pkg/models/shared/httpmethod.go mode change 100644 => 100755 internal/sdk/pkg/models/shared/identity.go mode change 100644 => 100755 internal/sdk/pkg/models/shared/identityparams.go mode change 100644 => 100755 internal/sdk/pkg/models/shared/keyvaluepair.go mode change 100644 => 100755 internal/sdk/pkg/models/shared/oauth2flow.go mode change 100644 => 100755 internal/sdk/pkg/models/shared/oauth2flowexchange.go mode change 100644 => 100755 internal/sdk/pkg/models/shared/oauth2flowpkce.go mode change 100644 => 100755 internal/sdk/pkg/models/shared/output.go mode change 100644 => 100755 internal/sdk/pkg/models/shared/pagerdutyconnection.go mode change 100644 => 100755 internal/sdk/pkg/models/shared/pagerdutyconnectionvalue.go mode change 100644 => 100755 internal/sdk/pkg/models/shared/pkcemethod.go mode change 100644 => 100755 internal/sdk/pkg/models/shared/policy.go mode change 100644 => 100755 internal/sdk/pkg/models/shared/request.go mode change 100644 => 100755 internal/sdk/pkg/models/shared/requestcancelparams.go mode change 100644 => 100755 internal/sdk/pkg/models/shared/requestcontenttype.go mode change 100644 => 100755 internal/sdk/pkg/models/shared/requestparams.go mode change 100644 => 100755 internal/sdk/pkg/models/shared/requestspec.go mode change 100644 => 100755 internal/sdk/pkg/models/shared/requeststatus.go mode change 100644 => 100755 internal/sdk/pkg/models/shared/review.go mode change 100644 => 100755 internal/sdk/pkg/models/shared/reviewers.go mode change 100644 => 100755 internal/sdk/pkg/models/shared/reviewstatus.go mode change 100644 => 100755 internal/sdk/pkg/models/shared/reviewupdateparams.go mode change 100644 => 100755 internal/sdk/pkg/models/shared/security.go mode change 100644 => 100755 internal/sdk/pkg/models/shared/step.go mode change 100644 => 100755 internal/sdk/pkg/types/bigint.go mode change 100644 => 100755 internal/sdk/pkg/types/date.go mode change 100644 => 100755 internal/sdk/pkg/types/datetime.go mode change 100644 => 100755 internal/sdk/pkg/utils/contenttype.go mode change 100644 => 100755 internal/sdk/pkg/utils/form.go mode change 100644 => 100755 internal/sdk/pkg/utils/headers.go mode change 100644 => 100755 internal/sdk/pkg/utils/pathparams.go mode change 100644 => 100755 internal/sdk/pkg/utils/queryparams.go mode change 100644 => 100755 internal/sdk/pkg/utils/requestbody.go mode change 100644 => 100755 internal/sdk/pkg/utils/retries.go mode change 100644 => 100755 internal/sdk/pkg/utils/security.go mode change 100644 => 100755 internal/sdk/pkg/utils/utils.go mode change 100644 => 100755 internal/sdk/requests.go mode change 100644 => 100755 internal/sdk/reviews.go mode change 100644 => 100755 internal/sdk/sdk.go mode change 100644 => 100755 internal/validators/DateValidator.go mode change 100644 => 100755 internal/validators/ExactlyOneChild.go mode change 100644 => 100755 internal/validators/JSONParseValidator.go mode change 100644 => 100755 internal/validators/RFC3339Validator.go mode change 100644 => 100755 main.go mode change 100644 => 100755 terraform-registry-manifest.json mode change 100644 => 100755 tools/tools.go diff --git a/RELEASES.md b/RELEASES.md index 39cf249..5f62553 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -40,4 +40,10 @@ Based on: ### Changes Based on: - OpenAPI Doc v1 -- Speakeasy CLI 1.64.0 (2.71.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file +- Speakeasy CLI 1.64.0 (2.71.0) https://github.com/speakeasy-api/speakeasy + +## 2023-07-25 00:04:23 +### Changes +Based on: +- OpenAPI Doc v1 +- Speakeasy CLI 1.64.1 (2.71.0) https://github.com/speakeasy-api/speakeasy \ No newline at end of file diff --git a/USAGE.md b/USAGE.md old mode 100644 new mode 100755 diff --git a/examples/README.md b/examples/README.md old mode 100644 new mode 100755 diff --git a/examples/provider/provider.tf b/examples/provider/provider.tf old mode 100644 new mode 100755 index 70bd9ab..c99e2b4 --- a/examples/provider/provider.tf +++ b/examples/provider/provider.tf @@ -2,7 +2,7 @@ terraform { required_providers { abbey = { source = "abbeylabs/abbey" - version = "2.0.0" + version = "2.0.1" } } } diff --git a/examples/resources/abbey_demo/resource.tf b/examples/resources/abbey_demo/resource.tf new file mode 100755 index 0000000..06a122e --- /dev/null +++ b/examples/resources/abbey_demo/resource.tf @@ -0,0 +1,2 @@ +resource "abbey_demo" "my_demo" { +} \ No newline at end of file diff --git a/examples/resources/abbey_grant_kit/resource.tf b/examples/resources/abbey_grant_kit/resource.tf old mode 100644 new mode 100755 diff --git a/examples/resources/abbey_identity/resource.tf b/examples/resources/abbey_identity/resource.tf old mode 100644 new mode 100755 diff --git a/files.gen b/files.gen index 0788be8..6d087ee 100755 --- a/files.gen +++ b/files.gen @@ -1,6 +1,7 @@ internal/sdk/apikeys.go internal/sdk/connectionspecs.go internal/sdk/connections.go +internal/sdk/demo.go internal/sdk/grantkits.go internal/sdk/grants.go internal/sdk/identities.go @@ -70,6 +71,9 @@ internal/sdk/pkg/models/operations/createconnection.go internal/sdk/pkg/models/operations/getconnection.go internal/sdk/pkg/models/operations/listconnections.go internal/sdk/pkg/models/operations/updateconnection.go +internal/sdk/pkg/models/operations/createdemo.go +internal/sdk/pkg/models/operations/deletedemo.go +internal/sdk/pkg/models/operations/getdemo.go internal/sdk/pkg/models/operations/creategrantkit.go internal/sdk/pkg/models/operations/listgrantkits.go internal/sdk/pkg/models/operations/deletegrantkit.go @@ -116,6 +120,8 @@ internal/sdk/pkg/models/shared/pagerdutyconnectionvalue.go internal/sdk/pkg/models/shared/pagerdutyconnection.go internal/sdk/pkg/models/shared/connectionlisting.go internal/sdk/pkg/models/shared/connectionupdateparams.go +internal/sdk/pkg/models/shared/demo.go +internal/sdk/pkg/models/shared/demoparams.go internal/sdk/pkg/models/shared/grantkit.go internal/sdk/pkg/models/shared/grantworkflow.go internal/sdk/pkg/models/shared/step.go @@ -139,6 +145,9 @@ internal/sdk/pkg/models/shared/security.go USAGE.md internal/provider/provider.go examples/provider/provider.tf +internal/provider/demo_resource.go +internal/provider/demo_resource_sdk.go +examples/resources/abbey_demo/resource.tf internal/provider/grantkit_resource.go internal/provider/grantkit_resource_sdk.go examples/resources/abbey_grant_kit/resource.tf diff --git a/gen.yaml b/gen.yaml index 5023edc..5781937 100755 --- a/gen.yaml +++ b/gen.yaml @@ -1,13 +1,13 @@ configVersion: 1.0.0 management: - docChecksum: 4fefc92643a6585ae90c9ff2cebe9e5e + docChecksum: ad48929d9282323a385d356a103808af docVersion: v1 - speakeasyVersion: 1.64.0 + speakeasyVersion: 1.64.1 generationVersion: 2.71.0 generation: sdkClassName: SDK singleTagPerOp: false terraform: - version: 2.0.0 + version: 2.0.1 author: abbeylabs packageName: abbey diff --git a/go.mod b/go.mod old mode 100644 new mode 100755 diff --git a/go.sum b/go.sum old mode 100644 new mode 100755 diff --git a/internal/planmodifiers/boolplanmodifier/suppress_diff.go b/internal/planmodifiers/boolplanmodifier/suppress_diff.go old mode 100644 new mode 100755 diff --git a/internal/planmodifiers/float64planmodifier/suppress_diff.go b/internal/planmodifiers/float64planmodifier/suppress_diff.go old mode 100644 new mode 100755 diff --git a/internal/planmodifiers/int64planmodifier/suppress_diff.go b/internal/planmodifiers/int64planmodifier/suppress_diff.go old mode 100644 new mode 100755 diff --git a/internal/planmodifiers/listplanmodifier/suppress_diff.go b/internal/planmodifiers/listplanmodifier/suppress_diff.go old mode 100644 new mode 100755 diff --git a/internal/planmodifiers/mapplanmodifier/suppress_diff.go b/internal/planmodifiers/mapplanmodifier/suppress_diff.go old mode 100644 new mode 100755 diff --git a/internal/planmodifiers/numberplanmodifier/suppress_diff.go b/internal/planmodifiers/numberplanmodifier/suppress_diff.go old mode 100644 new mode 100755 diff --git a/internal/planmodifiers/objectplanmodifier/suppress_diff.go b/internal/planmodifiers/objectplanmodifier/suppress_diff.go old mode 100644 new mode 100755 diff --git a/internal/planmodifiers/setplanmodifier/suppress_diff.go b/internal/planmodifiers/setplanmodifier/suppress_diff.go old mode 100644 new mode 100755 diff --git a/internal/planmodifiers/stringplanmodifier/suppress_diff.go b/internal/planmodifiers/stringplanmodifier/suppress_diff.go old mode 100644 new mode 100755 diff --git a/internal/planmodifiers/utils/state_check.go b/internal/planmodifiers/utils/state_check.go old mode 100644 new mode 100755 diff --git a/internal/provider/demo_resource.go b/internal/provider/demo_resource.go new file mode 100755 index 0000000..60b278d --- /dev/null +++ b/internal/provider/demo_resource.go @@ -0,0 +1,229 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package provider + +import ( + "abbey/v2/internal/sdk" + "context" + "fmt" + + "abbey/v2/internal/validators" + "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" + "github.com/hashicorp/terraform-plugin-framework/resource" + "github.com/hashicorp/terraform-plugin-framework/resource/schema" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" +) + +// Ensure provider defined types fully satisfy framework interfaces. +var _ resource.Resource = &DemoResource{} +var _ resource.ResourceWithImportState = &DemoResource{} + +func NewDemoResource() resource.Resource { + return &DemoResource{} +} + +// DemoResource defines the resource implementation. +type DemoResource struct { + client *sdk.SDK +} + +// DemoResourceModel describes the resource data model. +type DemoResourceModel struct { + CreatedAt types.String `tfsdk:"created_at"` + Email types.String `tfsdk:"email"` + ID types.Int64 `tfsdk:"id"` + Permission types.String `tfsdk:"permission"` + UpdatedAt types.String `tfsdk:"updated_at"` + UserID types.String `tfsdk:"user_id"` +} + +func (r *DemoResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_demo" +} + +func (r *DemoResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { + resp.Schema = schema.Schema{ + MarkdownDescription: "Demo Resource", + + Attributes: map[string]schema.Attribute{ + "created_at": schema.StringAttribute{ + Computed: true, + Validators: []validator.String{ + validators.IsRFC3339(), + }, + }, + "email": schema.StringAttribute{ + PlanModifiers: []planmodifier.String{ + stringplanmodifier.RequiresReplace(), + }, + Optional: true, + }, + "id": schema.Int64Attribute{ + Computed: true, + }, + "permission": schema.StringAttribute{ + PlanModifiers: []planmodifier.String{ + stringplanmodifier.RequiresReplace(), + }, + Optional: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "read_write", + ), + }, + Description: `must be one of [read_write]`, + }, + "updated_at": schema.StringAttribute{ + Computed: true, + Validators: []validator.String{ + validators.IsRFC3339(), + }, + }, + "user_id": schema.StringAttribute{ + Computed: true, + }, + }, + } +} + +func (r *DemoResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse) { + // Prevent panic if the provider has not been configured. + if req.ProviderData == nil { + return + } + + client, ok := req.ProviderData.(*sdk.SDK) + + if !ok { + resp.Diagnostics.AddError( + "Unexpected Resource Configure Type", + fmt.Sprintf("Expected *sdk.SDK, got: %T. Please report this issue to the provider developers.", req.ProviderData), + ) + + return + } + + r.client = client +} + +func (r *DemoResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data *DemoResourceModel + var item types.Object + + resp.Diagnostics.Append(req.Plan.Get(ctx, &item)...) + if resp.Diagnostics.HasError() { + return + } + + resp.Diagnostics.Append(item.As(ctx, &data, basetypes.ObjectAsOptions{ + UnhandledNullAsEmpty: true, + UnhandledUnknownAsEmpty: true, + })...) + + if resp.Diagnostics.HasError() { + return + } + + request := *data.ToCreateSDKType() + res, err := r.client.Demo.CreateDemo(ctx, request) + if err != nil { + resp.Diagnostics.AddError("failure to invoke API", err.Error()) + return + } + if res == nil { + resp.Diagnostics.AddError("unexpected response from API", fmt.Sprintf("%v", res)) + return + } + if res.StatusCode != 201 { + resp.Diagnostics.AddError(fmt.Sprintf("unexpected response from API. Got an unexpected response code %v", res.StatusCode), debugResponse(res.RawResponse)) + return + } + if res.Demo == nil { + resp.Diagnostics.AddError("unexpected response from API. No response body", debugResponse(res.RawResponse)) + return + } + data.RefreshFromCreateResponse(res.Demo) + + // Save updated data into Terraform state + resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) +} + +func (r *DemoResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data *DemoResourceModel + var item types.Object + + resp.Diagnostics.Append(req.State.Get(ctx, &item)...) + if resp.Diagnostics.HasError() { + return + } + + resp.Diagnostics.Append(item.As(ctx, &data, basetypes.ObjectAsOptions{ + UnhandledNullAsEmpty: true, + UnhandledUnknownAsEmpty: true, + })...) + + if resp.Diagnostics.HasError() { + return + } + + // Not Implemented; we rely entirely on CREATE API request response + + // Save updated data into Terraform state + resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) +} + +func (r *DemoResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + var data *DemoResourceModel + merge(ctx, req, resp, &data) + if resp.Diagnostics.HasError() { + return + } + + // Not Implemented; all attributes marked as RequiresReplace + + // Save updated data into Terraform state + resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) +} + +func (r *DemoResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + var data *DemoResourceModel + var item types.Object + + resp.Diagnostics.Append(req.State.Get(ctx, &item)...) + if resp.Diagnostics.HasError() { + return + } + + resp.Diagnostics.Append(item.As(ctx, &data, basetypes.ObjectAsOptions{ + UnhandledNullAsEmpty: true, + UnhandledUnknownAsEmpty: true, + })...) + + if resp.Diagnostics.HasError() { + return + } + + request := *data.ToDeleteSDKType() + res, err := r.client.Demo.DeleteDemo(ctx, request) + if err != nil { + resp.Diagnostics.AddError("failure to invoke API", err.Error()) + return + } + if res == nil { + resp.Diagnostics.AddError("unexpected response from API", fmt.Sprintf("%v", res)) + return + } + if res.StatusCode != 200 { + resp.Diagnostics.AddError(fmt.Sprintf("unexpected response from API. Got an unexpected response code %v", res.StatusCode), debugResponse(res.RawResponse)) + return + } + +} + +func (r *DemoResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse) { + resp.Diagnostics.AddError("Not Implemented", "No available import state operation is available for resource demo.") +} diff --git a/internal/provider/demo_resource_sdk.go b/internal/provider/demo_resource_sdk.go new file mode 100755 index 0000000..a1aee28 --- /dev/null +++ b/internal/provider/demo_resource_sdk.go @@ -0,0 +1,57 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package provider + +import ( + "abbey/v2/internal/sdk/pkg/models/shared" + "github.com/hashicorp/terraform-plugin-framework/types" + "time" +) + +func (r *DemoResourceModel) ToCreateSDKType() *shared.DemoParams { + email := new(string) + if !r.Email.IsUnknown() && !r.Email.IsNull() { + *email = r.Email.ValueString() + } else { + email = nil + } + permission := new(shared.DemoParamsPermission) + if !r.Permission.IsUnknown() && !r.Permission.IsNull() { + *permission = shared.DemoParamsPermission(r.Permission.ValueString()) + } else { + permission = nil + } + out := shared.DemoParams{ + Email: email, + Permission: permission, + } + return &out +} + +func (r *DemoResourceModel) ToDeleteSDKType() *shared.DemoParams { + out := r.ToCreateSDKType() + return out +} + +func (r *DemoResourceModel) RefreshFromCreateResponse(resp *shared.Demo) { + if resp.CreatedAt != nil { + r.CreatedAt = types.StringValue(resp.CreatedAt.Format(time.RFC3339)) + } else { + r.CreatedAt = types.StringNull() + } + if resp.ID != nil { + r.ID = types.Int64Value(*resp.ID) + } else { + r.ID = types.Int64Null() + } + if resp.UpdatedAt != nil { + r.UpdatedAt = types.StringValue(resp.UpdatedAt.Format(time.RFC3339)) + } else { + r.UpdatedAt = types.StringNull() + } + if resp.UserID != nil { + r.UserID = types.StringValue(*resp.UserID) + } else { + r.UserID = types.StringNull() + } +} diff --git a/internal/provider/grantkit_resource.go b/internal/provider/grantkit_resource.go old mode 100644 new mode 100755 diff --git a/internal/provider/grantkit_resource_sdk.go b/internal/provider/grantkit_resource_sdk.go old mode 100644 new mode 100755 diff --git a/internal/provider/identity_resource.go b/internal/provider/identity_resource.go old mode 100644 new mode 100755 diff --git a/internal/provider/identity_resource_sdk.go b/internal/provider/identity_resource_sdk.go old mode 100644 new mode 100755 diff --git a/internal/provider/provider.go b/internal/provider/provider.go old mode 100644 new mode 100755 index 35114be..1d9fd5f --- a/internal/provider/provider.go +++ b/internal/provider/provider.go @@ -85,6 +85,7 @@ func (p *AbbeyProvider) Configure(ctx context.Context, req provider.ConfigureReq func (p *AbbeyProvider) Resources(ctx context.Context) []func() resource.Resource { return []func() resource.Resource{ + NewDemoResource, NewGrantKitResource, NewIdentityResource, } diff --git a/internal/provider/reflect/diags.go b/internal/provider/reflect/diags.go old mode 100644 new mode 100755 diff --git a/internal/provider/reflect/doc.go b/internal/provider/reflect/doc.go old mode 100644 new mode 100755 diff --git a/internal/provider/reflect/generic_attr_value.go b/internal/provider/reflect/generic_attr_value.go old mode 100644 new mode 100755 diff --git a/internal/provider/reflect/helpers.go b/internal/provider/reflect/helpers.go old mode 100644 new mode 100755 diff --git a/internal/provider/reflect/interfaces.go b/internal/provider/reflect/interfaces.go old mode 100644 new mode 100755 diff --git a/internal/provider/reflect/into.go b/internal/provider/reflect/into.go old mode 100644 new mode 100755 diff --git a/internal/provider/reflect/map.go b/internal/provider/reflect/map.go old mode 100644 new mode 100755 diff --git a/internal/provider/reflect/number.go b/internal/provider/reflect/number.go old mode 100644 new mode 100755 diff --git a/internal/provider/reflect/options.go b/internal/provider/reflect/options.go old mode 100644 new mode 100755 diff --git a/internal/provider/reflect/outof.go b/internal/provider/reflect/outof.go old mode 100644 new mode 100755 diff --git a/internal/provider/reflect/pointer.go b/internal/provider/reflect/pointer.go old mode 100644 new mode 100755 diff --git a/internal/provider/reflect/primitive.go b/internal/provider/reflect/primitive.go old mode 100644 new mode 100755 diff --git a/internal/provider/reflect/slice.go b/internal/provider/reflect/slice.go old mode 100644 new mode 100755 diff --git a/internal/provider/reflect/struct.go b/internal/provider/reflect/struct.go old mode 100644 new mode 100755 diff --git a/internal/provider/type_grant.go b/internal/provider/type_grant.go old mode 100644 new mode 100755 diff --git a/internal/provider/type_grant_workflow.go b/internal/provider/type_grant_workflow.go old mode 100644 new mode 100755 diff --git a/internal/provider/type_output.go b/internal/provider/type_output.go old mode 100644 new mode 100755 diff --git a/internal/provider/type_policy.go b/internal/provider/type_policy.go old mode 100644 new mode 100755 diff --git a/internal/provider/type_request.go b/internal/provider/type_request.go old mode 100644 new mode 100755 diff --git a/internal/provider/type_review.go b/internal/provider/type_review.go old mode 100644 new mode 100755 diff --git a/internal/provider/type_reviewers.go b/internal/provider/type_reviewers.go old mode 100644 new mode 100755 diff --git a/internal/provider/type_step.go b/internal/provider/type_step.go old mode 100644 new mode 100755 diff --git a/internal/provider/utils.go b/internal/provider/utils.go old mode 100644 new mode 100755 diff --git a/internal/sdk/apikeys.go b/internal/sdk/apikeys.go old mode 100644 new mode 100755 diff --git a/internal/sdk/connections.go b/internal/sdk/connections.go old mode 100644 new mode 100755 diff --git a/internal/sdk/connectionspecs.go b/internal/sdk/connectionspecs.go old mode 100644 new mode 100755 diff --git a/internal/sdk/demo.go b/internal/sdk/demo.go new file mode 100755 index 0000000..7557a2e --- /dev/null +++ b/internal/sdk/demo.go @@ -0,0 +1,248 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package sdk + +import ( + "abbey/v2/internal/sdk/pkg/models/operations" + "abbey/v2/internal/sdk/pkg/models/shared" + "abbey/v2/internal/sdk/pkg/utils" + "bytes" + "context" + "fmt" + "io" + "net/http" + "strings" +) + +// demo - Abbey Demo +// https://docs.abbey.io/getting-started/quickstart +type demo struct { + sdkConfiguration sdkConfiguration +} + +func newDemo(sdkConfig sdkConfiguration) *demo { + return &demo{ + sdkConfiguration: sdkConfig, + } +} + +// CreateDemo - Create Demo Access +// Creates a new Demo access +func (s *demo) CreateDemo(ctx context.Context, request shared.DemoParams) (*operations.CreateDemoResponse, error) { + baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + url := strings.TrimSuffix(baseURL, "/") + "/demo" + + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json") + if err != nil { + return nil, fmt.Errorf("error serializing request body: %w", err) + } + + req, err := http.NewRequestWithContext(ctx, "POST", url, bodyReader) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json;q=1, application/json;q=0") + req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion)) + + req.Header.Set("Content-Type", reqContentType) + + client := s.sdkConfiguration.SecurityClient + + httpRes, err := client.Do(req) + if err != nil { + return nil, fmt.Errorf("error sending request: %w", err) + } + if httpRes == nil { + return nil, fmt.Errorf("error sending request: no response") + } + + rawBody, err := io.ReadAll(httpRes.Body) + if err != nil { + return nil, fmt.Errorf("error reading response body: %w", err) + } + httpRes.Body.Close() + httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) + + contentType := httpRes.Header.Get("Content-Type") + + res := &operations.CreateDemoResponse{ + StatusCode: httpRes.StatusCode, + ContentType: contentType, + RawResponse: httpRes, + } + switch { + case httpRes.StatusCode == 201: + switch { + case utils.MatchContentType(contentType, `application/json`): + var out *shared.Demo + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { + return nil, err + } + + res.Demo = out + } + case httpRes.StatusCode == 400: + fallthrough + case httpRes.StatusCode == 401: + fallthrough + case httpRes.StatusCode == 429: + fallthrough + default: + switch { + case utils.MatchContentType(contentType, `application/json`): + var out *shared.Error + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { + return nil, err + } + + res.Error = out + } + } + + return res, nil +} + +// DeleteDemo - Delete Demo Access +// Deletes the Demo access +func (s *demo) DeleteDemo(ctx context.Context, request shared.DemoParams) (*operations.DeleteDemoResponse, error) { + baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + url := strings.TrimSuffix(baseURL, "/") + "/demo" + + bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, "Request", "json") + if err != nil { + return nil, fmt.Errorf("error serializing request body: %w", err) + } + + req, err := http.NewRequestWithContext(ctx, "DELETE", url, bodyReader) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json;q=1, application/json;q=0") + req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion)) + + req.Header.Set("Content-Type", reqContentType) + + client := s.sdkConfiguration.SecurityClient + + httpRes, err := client.Do(req) + if err != nil { + return nil, fmt.Errorf("error sending request: %w", err) + } + if httpRes == nil { + return nil, fmt.Errorf("error sending request: no response") + } + + rawBody, err := io.ReadAll(httpRes.Body) + if err != nil { + return nil, fmt.Errorf("error reading response body: %w", err) + } + httpRes.Body.Close() + httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) + + contentType := httpRes.Header.Get("Content-Type") + + res := &operations.DeleteDemoResponse{ + StatusCode: httpRes.StatusCode, + ContentType: contentType, + RawResponse: httpRes, + } + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(contentType, `application/json`): + var out *shared.Demo + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { + return nil, err + } + + res.Demo = out + } + case httpRes.StatusCode == 401: + fallthrough + case httpRes.StatusCode == 404: + fallthrough + case httpRes.StatusCode == 429: + fallthrough + default: + switch { + case utils.MatchContentType(contentType, `application/json`): + var out *shared.Error + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { + return nil, err + } + + res.Error = out + } + } + + return res, nil +} + +// GetDemo - Get Demo +// Get the demo response +func (s *demo) GetDemo(ctx context.Context) (*operations.GetDemoResponse, error) { + baseURL := utils.ReplaceParameters(s.sdkConfiguration.GetServerDetails()) + url := strings.TrimSuffix(baseURL, "/") + "/demo" + + req, err := http.NewRequestWithContext(ctx, "GET", url, nil) + if err != nil { + return nil, fmt.Errorf("error creating request: %w", err) + } + req.Header.Set("Accept", "application/json;q=1, application/json;q=0") + req.Header.Set("user-agent", fmt.Sprintf("speakeasy-sdk/%s %s %s %s", s.sdkConfiguration.Language, s.sdkConfiguration.SDKVersion, s.sdkConfiguration.GenVersion, s.sdkConfiguration.OpenAPIDocVersion)) + + client := s.sdkConfiguration.SecurityClient + + httpRes, err := client.Do(req) + if err != nil { + return nil, fmt.Errorf("error sending request: %w", err) + } + if httpRes == nil { + return nil, fmt.Errorf("error sending request: no response") + } + + rawBody, err := io.ReadAll(httpRes.Body) + if err != nil { + return nil, fmt.Errorf("error reading response body: %w", err) + } + httpRes.Body.Close() + httpRes.Body = io.NopCloser(bytes.NewBuffer(rawBody)) + + contentType := httpRes.Header.Get("Content-Type") + + res := &operations.GetDemoResponse{ + StatusCode: httpRes.StatusCode, + ContentType: contentType, + RawResponse: httpRes, + } + switch { + case httpRes.StatusCode == 200: + switch { + case utils.MatchContentType(contentType, `application/json`): + var out *shared.Demo + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { + return nil, err + } + + res.Demo = out + } + case httpRes.StatusCode == 401: + fallthrough + case httpRes.StatusCode == 403: + fallthrough + case httpRes.StatusCode == 429: + fallthrough + default: + switch { + case utils.MatchContentType(contentType, `application/json`): + var out *shared.Error + if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil { + return nil, err + } + + res.Error = out + } + } + + return res, nil +} diff --git a/internal/sdk/grantkits.go b/internal/sdk/grantkits.go old mode 100644 new mode 100755 diff --git a/internal/sdk/grants.go b/internal/sdk/grants.go old mode 100644 new mode 100755 diff --git a/internal/sdk/identities.go b/internal/sdk/identities.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/operations/approvereview.go b/internal/sdk/pkg/models/operations/approvereview.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/operations/cancelrequestbyid.go b/internal/sdk/pkg/models/operations/cancelrequestbyid.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/operations/createapikey.go b/internal/sdk/pkg/models/operations/createapikey.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/operations/createconnection.go b/internal/sdk/pkg/models/operations/createconnection.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/operations/createdemo.go b/internal/sdk/pkg/models/operations/createdemo.go new file mode 100755 index 0000000..04ee410 --- /dev/null +++ b/internal/sdk/pkg/models/operations/createdemo.go @@ -0,0 +1,18 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "abbey/v2/internal/sdk/pkg/models/shared" + "net/http" +) + +type CreateDemoResponse struct { + ContentType string + // Created + Demo *shared.Demo + // Request Failed + Error *shared.Error + StatusCode int + RawResponse *http.Response +} diff --git a/internal/sdk/pkg/models/operations/creategrantkit.go b/internal/sdk/pkg/models/operations/creategrantkit.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/operations/createidentity.go b/internal/sdk/pkg/models/operations/createidentity.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/operations/createrequest.go b/internal/sdk/pkg/models/operations/createrequest.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/operations/deleteapikey.go b/internal/sdk/pkg/models/operations/deleteapikey.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/operations/deletedemo.go b/internal/sdk/pkg/models/operations/deletedemo.go new file mode 100755 index 0000000..e4b1368 --- /dev/null +++ b/internal/sdk/pkg/models/operations/deletedemo.go @@ -0,0 +1,18 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "abbey/v2/internal/sdk/pkg/models/shared" + "net/http" +) + +type DeleteDemoResponse struct { + ContentType string + // Success + Demo *shared.Demo + // Authentication Failed + Error *shared.Error + StatusCode int + RawResponse *http.Response +} diff --git a/internal/sdk/pkg/models/operations/deletegrantkit.go b/internal/sdk/pkg/models/operations/deletegrantkit.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/operations/deleteidentity.go b/internal/sdk/pkg/models/operations/deleteidentity.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/operations/denyreview.go b/internal/sdk/pkg/models/operations/denyreview.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/operations/getapikeys.go b/internal/sdk/pkg/models/operations/getapikeys.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/operations/getconnection.go b/internal/sdk/pkg/models/operations/getconnection.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/operations/getdemo.go b/internal/sdk/pkg/models/operations/getdemo.go new file mode 100755 index 0000000..4146d67 --- /dev/null +++ b/internal/sdk/pkg/models/operations/getdemo.go @@ -0,0 +1,18 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package operations + +import ( + "abbey/v2/internal/sdk/pkg/models/shared" + "net/http" +) + +type GetDemoResponse struct { + ContentType string + // Success + Demo *shared.Demo + // Authentication Failed + Error *shared.Error + StatusCode int + RawResponse *http.Response +} diff --git a/internal/sdk/pkg/models/operations/getgrantbyid.go b/internal/sdk/pkg/models/operations/getgrantbyid.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/operations/getgrantkitbyid.go b/internal/sdk/pkg/models/operations/getgrantkitbyid.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/operations/getidentity.go b/internal/sdk/pkg/models/operations/getidentity.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/operations/getrequestbyid.go b/internal/sdk/pkg/models/operations/getrequestbyid.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/operations/getreviewbyid.go b/internal/sdk/pkg/models/operations/getreviewbyid.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/operations/listconnections.go b/internal/sdk/pkg/models/operations/listconnections.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/operations/listconnectionspecs.go b/internal/sdk/pkg/models/operations/listconnectionspecs.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/operations/listgrantkits.go b/internal/sdk/pkg/models/operations/listgrantkits.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/operations/listgrantkitversionsbyid.go b/internal/sdk/pkg/models/operations/listgrantkitversionsbyid.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/operations/listgrants.go b/internal/sdk/pkg/models/operations/listgrants.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/operations/listrequests.go b/internal/sdk/pkg/models/operations/listrequests.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/operations/listreviews.go b/internal/sdk/pkg/models/operations/listreviews.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/operations/revokegrant.go b/internal/sdk/pkg/models/operations/revokegrant.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/operations/updateconnection.go b/internal/sdk/pkg/models/operations/updateconnection.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/operations/updategrantkit.go b/internal/sdk/pkg/models/operations/updategrantkit.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/shared/apikey.go b/internal/sdk/pkg/models/shared/apikey.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/shared/apikeys.go b/internal/sdk/pkg/models/shared/apikeys.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/shared/apikeyscreateparams.go b/internal/sdk/pkg/models/shared/apikeyscreateparams.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/shared/connection.go b/internal/sdk/pkg/models/shared/connection.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/shared/connectionauth.go b/internal/sdk/pkg/models/shared/connectionauth.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/shared/connectionauthtypeenum.go b/internal/sdk/pkg/models/shared/connectionauthtypeenum.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/shared/connectionlisting.go b/internal/sdk/pkg/models/shared/connectionlisting.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/shared/connectionparams.go b/internal/sdk/pkg/models/shared/connectionparams.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/shared/connectionparamsgithub.go b/internal/sdk/pkg/models/shared/connectionparamsgithub.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/shared/connectionparamsgithubvariant.go b/internal/sdk/pkg/models/shared/connectionparamsgithubvariant.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/shared/connectionrequestspec.go b/internal/sdk/pkg/models/shared/connectionrequestspec.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/shared/connectionspec.go b/internal/sdk/pkg/models/shared/connectionspec.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/shared/connectionspeclisting.go b/internal/sdk/pkg/models/shared/connectionspeclisting.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/shared/connectiontype.go b/internal/sdk/pkg/models/shared/connectiontype.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/shared/connectionupdateparams.go b/internal/sdk/pkg/models/shared/connectionupdateparams.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/shared/demo.go b/internal/sdk/pkg/models/shared/demo.go new file mode 100755 index 0000000..fd0c91f --- /dev/null +++ b/internal/sdk/pkg/models/shared/demo.go @@ -0,0 +1,15 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +import ( + "time" +) + +// Demo - Success +type Demo struct { + CreatedAt *time.Time `json:"created_at,omitempty"` + ID *int64 `json:"id,omitempty"` + UpdatedAt *time.Time `json:"updated_at,omitempty"` + UserID *string `json:"user_id,omitempty"` +} diff --git a/internal/sdk/pkg/models/shared/demoparams.go b/internal/sdk/pkg/models/shared/demoparams.go new file mode 100755 index 0000000..a03ddf1 --- /dev/null +++ b/internal/sdk/pkg/models/shared/demoparams.go @@ -0,0 +1,37 @@ +// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + +package shared + +import ( + "encoding/json" + "fmt" +) + +type DemoParamsPermission string + +const ( + DemoParamsPermissionReadWrite DemoParamsPermission = "read_write" +) + +func (e DemoParamsPermission) ToPointer() *DemoParamsPermission { + return &e +} + +func (e *DemoParamsPermission) UnmarshalJSON(data []byte) error { + var v string + if err := json.Unmarshal(data, &v); err != nil { + return err + } + switch v { + case "read_write": + *e = DemoParamsPermission(v) + return nil + default: + return fmt.Errorf("invalid value for DemoParamsPermission: %v", v) + } +} + +type DemoParams struct { + Email *string `json:"email,omitempty"` + Permission *DemoParamsPermission `json:"permission,omitempty"` +} diff --git a/internal/sdk/pkg/models/shared/error.go b/internal/sdk/pkg/models/shared/error.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/shared/grant.go b/internal/sdk/pkg/models/shared/grant.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/shared/grantkit.go b/internal/sdk/pkg/models/shared/grantkit.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/shared/grantkitcreateparams.go b/internal/sdk/pkg/models/shared/grantkitcreateparams.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/shared/grantkitupdateparams.go b/internal/sdk/pkg/models/shared/grantkitupdateparams.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/shared/grantkitversion.go b/internal/sdk/pkg/models/shared/grantkitversion.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/shared/grantworkflow.go b/internal/sdk/pkg/models/shared/grantworkflow.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/shared/httpmethod.go b/internal/sdk/pkg/models/shared/httpmethod.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/shared/identity.go b/internal/sdk/pkg/models/shared/identity.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/shared/identityparams.go b/internal/sdk/pkg/models/shared/identityparams.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/shared/keyvaluepair.go b/internal/sdk/pkg/models/shared/keyvaluepair.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/shared/oauth2flow.go b/internal/sdk/pkg/models/shared/oauth2flow.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/shared/oauth2flowexchange.go b/internal/sdk/pkg/models/shared/oauth2flowexchange.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/shared/oauth2flowpkce.go b/internal/sdk/pkg/models/shared/oauth2flowpkce.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/shared/output.go b/internal/sdk/pkg/models/shared/output.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/shared/pagerdutyconnection.go b/internal/sdk/pkg/models/shared/pagerdutyconnection.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/shared/pagerdutyconnectionvalue.go b/internal/sdk/pkg/models/shared/pagerdutyconnectionvalue.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/shared/pkcemethod.go b/internal/sdk/pkg/models/shared/pkcemethod.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/shared/policy.go b/internal/sdk/pkg/models/shared/policy.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/shared/request.go b/internal/sdk/pkg/models/shared/request.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/shared/requestcancelparams.go b/internal/sdk/pkg/models/shared/requestcancelparams.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/shared/requestcontenttype.go b/internal/sdk/pkg/models/shared/requestcontenttype.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/shared/requestparams.go b/internal/sdk/pkg/models/shared/requestparams.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/shared/requestspec.go b/internal/sdk/pkg/models/shared/requestspec.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/shared/requeststatus.go b/internal/sdk/pkg/models/shared/requeststatus.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/shared/review.go b/internal/sdk/pkg/models/shared/review.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/shared/reviewers.go b/internal/sdk/pkg/models/shared/reviewers.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/shared/reviewstatus.go b/internal/sdk/pkg/models/shared/reviewstatus.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/shared/reviewupdateparams.go b/internal/sdk/pkg/models/shared/reviewupdateparams.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/shared/security.go b/internal/sdk/pkg/models/shared/security.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/models/shared/step.go b/internal/sdk/pkg/models/shared/step.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/types/bigint.go b/internal/sdk/pkg/types/bigint.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/types/date.go b/internal/sdk/pkg/types/date.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/types/datetime.go b/internal/sdk/pkg/types/datetime.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/utils/contenttype.go b/internal/sdk/pkg/utils/contenttype.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/utils/form.go b/internal/sdk/pkg/utils/form.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/utils/headers.go b/internal/sdk/pkg/utils/headers.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/utils/pathparams.go b/internal/sdk/pkg/utils/pathparams.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/utils/queryparams.go b/internal/sdk/pkg/utils/queryparams.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/utils/requestbody.go b/internal/sdk/pkg/utils/requestbody.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/utils/retries.go b/internal/sdk/pkg/utils/retries.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/utils/security.go b/internal/sdk/pkg/utils/security.go old mode 100644 new mode 100755 diff --git a/internal/sdk/pkg/utils/utils.go b/internal/sdk/pkg/utils/utils.go old mode 100644 new mode 100755 diff --git a/internal/sdk/requests.go b/internal/sdk/requests.go old mode 100644 new mode 100755 diff --git a/internal/sdk/reviews.go b/internal/sdk/reviews.go old mode 100644 new mode 100755 diff --git a/internal/sdk/sdk.go b/internal/sdk/sdk.go old mode 100644 new mode 100755 index 2941ca7..bb2a1c0 --- a/internal/sdk/sdk.go +++ b/internal/sdk/sdk.go @@ -86,6 +86,9 @@ type SDK struct { // // https://docs.abbey.io Connections *connections + // Demo - Abbey Demo + // https://docs.abbey.io/getting-started/quickstart + Demo *demo // GrantKits - Grant Kits are what you configure in code to control and automatically right-size permissions for resources. // A Grant Kit has 3 components: // @@ -174,7 +177,7 @@ func New(opts ...SDKOption) *SDK { sdkConfiguration: sdkConfiguration{ Language: "terraform", OpenAPIDocVersion: "v1", - SDKVersion: "2.0.0", + SDKVersion: "2.0.1", GenVersion: "2.71.0", }, } @@ -200,6 +203,8 @@ func New(opts ...SDKOption) *SDK { sdk.Connections = newConnections(sdk.sdkConfiguration) + sdk.Demo = newDemo(sdk.sdkConfiguration) + sdk.GrantKits = newGrantKits(sdk.sdkConfiguration) sdk.Grants = newGrants(sdk.sdkConfiguration) diff --git a/internal/validators/DateValidator.go b/internal/validators/DateValidator.go old mode 100644 new mode 100755 diff --git a/internal/validators/ExactlyOneChild.go b/internal/validators/ExactlyOneChild.go old mode 100644 new mode 100755 diff --git a/internal/validators/JSONParseValidator.go b/internal/validators/JSONParseValidator.go old mode 100644 new mode 100755 diff --git a/internal/validators/RFC3339Validator.go b/internal/validators/RFC3339Validator.go old mode 100644 new mode 100755 diff --git a/main.go b/main.go old mode 100644 new mode 100755 diff --git a/terraform-registry-manifest.json b/terraform-registry-manifest.json old mode 100644 new mode 100755 diff --git a/tools/tools.go b/tools/tools.go old mode 100644 new mode 100755